html, body, #root { margin: 0; min-height: 100%; }
body { background: #f6f4fb; }
html, body, #root { font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif; }
.ap { --ink: #1f1b2e; --mut: #6b6783; font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--ink); max-width: 760px; margin: 0 auto; padding: 0 0 40px; background: #f6f4fb; min-height: 100vh; }
.ap button, .ap input { font: inherit; }
.ap-hero { background: linear-gradient(135deg, #b3001b 0%, #e11d2e 50%, #ff7a18 100%); color: #fff; padding: 22px 18px 18px; border-radius: 0 0 28px 28px; box-shadow: 0 10px 30px rgba(225,29,46,.3); }
.ap-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ap-kicker { font-size: 12px; opacity: .8; letter-spacing: .02em; }
.ap-title { margin: 2px 0 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.ap-title-in { margin-top: 4px; width: 100%; min-height: 40px; font-size: 22px; font-weight: 700; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); border-radius: 12px; padding: 0 12px; box-sizing: border-box; }
.ap-notes { flex: none; background: rgba(255,255,255,.2); color: #fff !important; border-radius: 999px; padding: 8px 14px; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.ap-stat { background: rgba(255,255,255,.16); border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ap-stat b { font-size: 20px; }
.ap-stat span { font-size: 11px; opacity: .85; }
.ap-stat-pct { background: rgba(255,255,255,.28); }
.ap-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.25); margin-top: 14px; overflow: hidden; }
.ap-bar i { display: block; height: 100%; background: #fff; border-radius: 8px; transition: width .3s; }
.ap-tabs { display: flex; gap: 6px; margin: 16px 14px 6px; padding: 5px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(31,27,46,.06); }
.ap-tab { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--mut); font-weight: 600; font-size: 14px; cursor: pointer; }
.ap-tab[data-on="true"] { background: linear-gradient(135deg, #e11d2e, #ff7a18); color: #fff; box-shadow: 0 4px 12px rgba(225,29,46,.35); }
.ap section { padding: 8px 14px 0; }
.ap-tools { display: flex; gap: 8px; margin: 8px 0; }
.ap-in { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #e4e0f0; border-radius: 14px; background: #fff; color: var(--ink); box-sizing: border-box; }
.ap-in:focus, .ap-title-in:focus { outline: 2px solid #e11d2e; }
.ap-add { min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ap-del { min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: #fee2e2; color: #b91c1c; font-weight: 700; cursor: pointer; }
.ap-flt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ap-pill { min-height: 38px; padding: 0 14px; border: 1px solid #e4e0f0; border-radius: 999px; background: #fff; color: var(--mut); cursor: pointer; }
.ap-pill[data-on="true"] { background: #1f1b2e; border-color: #1f1b2e; color: #fff; }
.ap-count { margin-inline-start: auto; font-size: 12px; color: var(--mut); }
.ap-card { background: #fff; border-radius: 20px; margin: 10px 0; box-shadow: 0 2px 12px rgba(31,27,46,.07); border: 1px solid transparent; overflow: hidden; }
.ap-card[data-open="true"] { border-color: var(--c); }
.ap-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: start; cursor: pointer; color: var(--ink); min-height: 64px; }
.ap-av { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ap-main strong { overflow-wrap: anywhere; font-size: 15px; }
.ap-prog { height: 6px; background: #eeebf6; border-radius: 6px; overflow: hidden; }
.ap-prog i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.ap-num { flex: none; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #f1eefa; color: var(--mut); }
.ap-num[data-full="true"] { background: #d1fae5; color: #047857; }
.ap-chev { color: var(--mut); }
.ap-body { padding: 4px 14px 16px; border-top: 1px dashed #e4e0f0; }
.ap-sec { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--mut); }
.ap-sec em { font-style: normal; font-weight: 400; color: #b91c1c; margin-inline-start: 6px; }
.ap-sec-big { font-size: 16px; color: var(--ink); margin-top: 20px; }
.ap-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.ap-m { min-height: 46px; border: 1px solid #e4e0f0; border-radius: 14px; background: #faf9fe; color: var(--ink); font-weight: 700; cursor: pointer; }
.ap-m[data-on="true"] { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.ap-m[data-rm="true"] { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.ap-m-add { background: #ede9fe; color: #6d28d9; border-style: dashed; }
.ap-m-rm { background: #f1f5f9; color: var(--mut); }
.ap-m-rm[data-on="true"] { background: #1f1b2e; color: #fff; }
.ap-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-cat { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--k); border-radius: 999px; background: #fff; color: var(--k); font-weight: 600; cursor: pointer; }
.ap-cat[data-on="true"] { background: var(--k); color: #fff; }
.ap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ap-kpi { background: #fff; border-radius: 18px; padding: 14px; border-inline-start: 5px solid var(--k); box-shadow: 0 2px 12px rgba(31,27,46,.07); display: flex; flex-direction: column; gap: 4px; }
.ap-kpi b { font-size: 26px; color: var(--k); }
.ap-kpi span { font-size: 13px; color: var(--mut); }
.ap-rep { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; margin: 10px 0; box-shadow: 0 2px 12px rgba(31,27,46,.07); }
.ap-rep p { margin: 4px 0 0; font-size: 13px; color: var(--mut); }
.ap-rep small { color: var(--mut); }
.ap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-tags span { background: #ede9fe; color: #6d28d9; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.ap-catrow { align-items: center; }
.ap-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--k); }
.ap-hint { color: var(--mut); font-size: 13px; padding: 4px 4px; }
@media (min-width: 700px) { .ap-hero { border-radius: 0 0 32px 32px; } .ap-title { font-size: 30px; } }
.ap a.ap-notes, .ap a.ap-notes:visited { color: #fff; background: rgba(255,255,255,.22); border: 0; box-shadow: none; text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.ap-tab { font-size: 15px; }
.ap a.ap-notes, .ap a.ap-notes * { color: #fff !important; text-decoration: none !important; border-bottom: 0 !important; }

.ap-big { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, var(--k), color-mix(in srgb, var(--k) 55%, #fff)); color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(31,27,46,.15); }
.ap-big strong { display: block; font-size: 18px; }
.ap-big small { display: block; opacity: .9; margin-top: 4px; font-size: 13px; }
.ap-big-ic { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,.22); border-radius: 18px; }
.ap-tab { font-size: 14px; padding: 0 4px; }

button.ap-kpi { border: 0; border-inline-start: 5px solid var(--k); text-align: start; cursor: pointer; font: inherit; color: inherit; min-height: 76px; }
.ap-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-mk { border: 0; background: #fff; border-radius: 16px; padding: 10px; min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 2px 10px rgba(31,27,46,.07); cursor: pointer; color: var(--ink); }
.ap-mk b { font-size: 20px; color: #e11d2e; }
.ap-mk span { font-size: 12px; color: var(--mut); }
.ap-view { padding: 12px 14px 0; }
.ap-back { min-height: 44px; border: 0; background: #fff; border-radius: 14px; padding: 0 16px; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(31,27,46,.07); }
.ap-vhead { margin: 14px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.ap-vhead h2 { margin: 0; font-size: 22px; }
.ap-vhead span { color: var(--mut); font-size: 13px; }
.ap-vact { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.ap-share { min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; font-weight: 700; cursor: pointer; }
.ap-share:disabled { opacity: .6; }
.ap-vrow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 12px; margin: 8px 0; box-shadow: 0 2px 10px rgba(31,27,46,.06); }
.ap-vrow .ap-av { width: 34px; height: 34px; font-size: 14px; border-radius: 11px; }

.ap-pl { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ap-pl span { flex: 1; overflow-wrap: anywhere; }
.ap-pl[data-x="true"] .ap-plt { text-decoration: line-through; color: var(--mut); }
.ap-chk { flex: none; width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--c, #e11d2e); background: #fff; color: #fff; font-weight: 700; cursor: pointer; }
.ap-chk[data-on="true"] { background: var(--c, #e11d2e); }
.ap-x2 { border: 0; background: none; color: #b91c1c; font-size: 20px; min-width: 36px; min-height: 36px; cursor: pointer; }
.ap-pb { flex: none; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #fff1e6; color: #c2410c; }
.ap-plwrap { flex: 1; min-width: 0; }
.ap-tab { font-size: 13px; }

.ap-form { background: #fff; border-radius: 20px; padding: 12px 14px 14px; margin: 8px 0 16px; box-shadow: 0 2px 12px rgba(31,27,46,.07); display: flex; flex-direction: column; gap: 8px; }
.ap-ta { padding: 10px 14px; min-height: 70px; resize: vertical; }
.ap-opt { text-align: start; min-height: 44px; border: 1px solid #e4e0f0; border-radius: 12px; background: #faf9fe; padding: 0 12px; cursor: pointer; color: var(--ink); }
.ap-pick { display: flex; align-items: center; gap: 8px; background: #ede9fe; border-radius: 12px; padding: 6px 12px; }
.ap-wide { width: 100%; }
.ap-add:disabled { opacity: .5; }
.ap-tag { font-style: normal; font-size: 11px; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: #ede9fe; color: #6d28d9; }
.ap-tag-done { background: #d1fae5; color: #047857; }
.ap-plan { margin: 10px 0 6px; padding: 12px 12px 6px; border-radius: 18px; background: linear-gradient(180deg, #fff7f2 0%, #faf9fe 100%); border: 1.5px solid color-mix(in srgb, var(--c) 40%, #fff); }
.ap-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ap-plan-t { font-size: 15px; font-weight: 700; color: var(--ink); }
.ap-plan-c { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); border-radius: 999px; padding: 3px 10px; }
.ap-plan-empty { margin: 8px 0 2px; font-size: 13px; line-height: 1.6; color: var(--mut); }
.ap-plan-add { margin: 8px 0 8px; }
.ap-plan .ap-pl { border-bottom: 1px dashed #ece7f6; }
.ap-plan .ap-pl:last-of-type { border-bottom: 0; }
.ap-kpi-wide { width: 100%; }

.ap-plan-m { background: linear-gradient(180deg, #f1f7ff 0%, #faf9fe 100%); }
.ap-mpick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.ap-mp { min-width: 42px; min-height: 42px; border: 1px solid #e4e0f0; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.ap-mp[data-on="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.ap-tag-mo { background: #e0f2fe; color: #0369a1; }
.ap-mplist { margin: 4px 0 0; }
.ap-pl[data-x="true"] .ap-tag { text-decoration: none; }
.ap-pl span .ap-tag-mo { margin-inline-start: 0; margin-inline-end: 8px; }

.ap-plit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ap-plit .ap-tag { margin-inline-start: 0; }
.ap-plt { font-weight: 400; }

.ap-mcell { display: flex; flex-direction: column; gap: 5px; }
.ap-mcell .ap-m { width: 100%; }
.ap-mp2 { min-height: 27px; padding: 0; border: 1px dashed #cfc9e2; border-radius: 9px; background: #fff; color: #6b6783; font-size: 11px; font-weight: 700; cursor: pointer; }
.ap-mp2[data-on="true"] { background: #10b981; border: 1px solid #10b981; color: #fff; box-shadow: 0 3px 8px rgba(16,185,129,.35); }
.ap-msp { min-height: 27px; }
.ap-mchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-mchip { background: #d1fae5; color: #047857; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.ap-sec-ok { color: var(--mut); font-weight: 400; font-size: 12px; }
.ap-pb-plan { background: #d1fae5; color: #047857; }
html, body, #root { margin: 0; min-height: 100%; }
body { background: #f6f4fb; }
html, body, #root { font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif; }

.nt-hero {
    background: linear-gradient(135deg, #b3001b 0%, #e11d2e 52%, #ff7a18 100%);
    color: #fff;
    padding: 26px 20px 20px;
    border-radius: 0 0 26px 26px;
    margin: -1px -1px 0;
    box-shadow: 0 10px 26px rgba(225, 29, 46, .22);
}
.nt-kicker { display: block; font-size: 12px; letter-spacing: .04em; opacity: .85; }
.nt-title { text-wrap: balance; margin: 6px 0 8px; font-size: 26px; line-height: 1.25; font-weight: 800; }
.nt-intro { margin: 0; font-size: 14px; line-height: 1.7; opacity: .95; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nt-chip {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .2); color: #fff !important;
    font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.nt-chip-ic { font-size: 15px; }

.nt-sec { margin: 16px 16px 0; border-radius: 20px; background: #fff; box-shadow: 0 3px 16px rgba(31, 27, 46, .08); overflow: hidden; }
.nt-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; color: #fff; }
.nt-sec-meet .nt-head { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.nt-sec-work .nt-head { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.nt-sec-files .nt-head { background: linear-gradient(135deg, #0284c7, #22d3ee); }
.nt-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 20px; }
.nt-head-txt { min-width: 0; }
.nt-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.nt-head p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.6; opacity: .95; }
.nt-body { padding: 4px 14px 14px; }
.nt-sec { scroll-margin-top: 12px; }

.nt-foot { padding: 18px 18px 8px; }

@media (max-width: 420px) {
    .nt-title { font-size: 22px; }
    .nt-sec { margin: 14px 12px 0; }
    .nt-chip { min-height: 44px; }
}

.nt-body .file-list:empty::after {
    content: 'لسه مفيش حاجة هنا — اضغط ＋ وضيف أول واحد';
    display: block;
    padding: 12px 2px 6px;
    color: #8b879b;
    font-size: 13px;
}
.nt-body .file-list { margin: 0; padding: 0; }
.nt-foot { color: #4b4660; }

.nt-fields { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.nt-fields span { background: #f3e8ff; color: #6d28d9; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 700; }
.nt-sec-work .nt-fields span { background: #ffedd5; color: #c2410c; }
.nt-sec-files .nt-fields span { background: #e0f2fe; color: #0369a1; }

.nt-meet { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.nt-add { min-height: 46px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.nt-form { display: flex; flex-direction: column; gap: 10px; background: #faf7ff; border: 1.5px solid #e9dcff; border-radius: 16px; padding: 14px; }
.nt-form-head { font-weight: 800; font-size: 15px; color: #5b21b6; }
.nt-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: #6b6783; }
.nt-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #e4e0f0; border-radius: 12px; background: #fff; color: #1f1b2e; font: inherit; font-weight: 400; }
.nt-input:focus { outline: 2px solid #7c3aed; }
.nt-area { resize: vertical; line-height: 1.6; }
.nt-form-act { display: flex; gap: 8px; }
.nt-save { flex: 1; min-height: 46px; border: 0; border-radius: 12px; background: #7c3aed; color: #fff; font-weight: 800; cursor: pointer; }
.nt-save:disabled { opacity: .5; }
.nt-cancel { min-height: 46px; padding: 0 16px; border: 1px solid #e4e0f0; border-radius: 12px; background: #fff; color: #6b6783; font-weight: 700; cursor: pointer; }
.nt-msg { margin: 0; font-size: 12.5px; color: #b91c1c; }
.nt-empty { margin: 4px 0; font-size: 13px; color: #8b879b; }
.nt-mcard { background: #fff; border: 1px solid #efe9fb; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(31,27,46,.05); }
.nt-mtopic { margin: 0; font-size: 16px; font-weight: 800; color: #1f1b2e; }
.nt-msummary { margin: 6px 0 0; font-size: 13.5px; line-height: 1.75; color: #4b4660; white-space: pre-wrap; }
.nt-mlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nt-mlink { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 6px 11px; border-radius: 999px; background: #eef2ff; color: #4338ca !important; font-size: 12px; font-weight: 700; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-mact { display: flex; gap: 8px; margin-top: 12px; }
.nt-edit { min-height: 38px; padding: 0 14px; border: 1px solid #e4e0f0; border-radius: 11px; background: #fff; color: #4b4660; font-weight: 700; cursor: pointer; }
.nt-del { min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: #fee2e2; color: #b91c1c; font-weight: 700; cursor: pointer; }

.nt-mlink { direction: ltr; unicode-bidi: isolate; text-align: left; max-width: 100%; }

.nt-ltr { direction: ltr; text-align: left; unicode-bidi: isolate; }

/* back link + chip buttons */
.nt-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; min-height: 38px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.22); color: #fff !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; border: 0; }
.nt-chip { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }

/* Cairo everywhere in this page, including the shared FileCard type */
.nt-hero, .nt-hero *, .nt-sec, .nt-sec *, .nt-foot, .nt-foot * { font-family: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* ---------- hosted build: page shell, copy button, notes lists ---------- */
.ap-copy { min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; font-weight: 700; cursor: pointer; }

.nt-page { max-width: 720px; margin: 16px auto 28px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 6px 26px rgba(31, 27, 46, .1); }
@media (max-width: 720px) { .nt-page { margin: 0 0 20px; border-radius: 0 0 22px 22px; } }

.nt-list { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.nt-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #efe9fb; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(31, 27, 46, .04); }
.nt-row[data-done="true"] .nt-row-t { text-decoration: line-through; color: #9a95ad; }
.nt-row-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.nt-check { flex: none; width: 30px; height: 30px; border-radius: 10px; border: 1.5px solid #d9d2ee; background: #fff; color: #fff; font-weight: 800; cursor: pointer; }
.nt-check[data-on="true"] { background: #10b981; border-color: #10b981; }
.nt-row-x { flex: none; width: 30px; height: 30px; border-radius: 10px; border: 0; background: #fee2e2; color: #b91c1c; font-size: 16px; font-weight: 700; cursor: pointer; }
.nt-addrow { display: flex; gap: 8px; margin-top: 4px; }
.nt-save-sm { flex: none; min-height: 44px; padding: 0 16px; }
.nt-note-box { background: #f7f4ff; border: 1px solid #ece4ff; border-radius: 16px; padding: 12px 14px; }
.nt-note-box strong { display: block; font-size: 13.5px; color: #5b21b6; margin-bottom: 4px; }
.nt-note-box p { margin: 0; font-size: 13px; line-height: 1.7; color: #4b4660; }

/* ---------- quick assistant ---------- */
.ap-ai { background: #fff; border-radius: 20px; margin: 10px 0 4px; box-shadow: 0 2px 14px rgba(31,27,46,.08); border: 1px solid #efeaf9; overflow: hidden; }
.ap-ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #1f1b2e, #4c1d95); color: #fff; }
.ap-ai-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 18px; }
.ap-ai-head strong { display: block; font-size: 15px; }
.ap-ai-head small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; opacity: .9; }
.ap-ai-input { display: block; width: calc(100% - 28px); margin: 12px 14px 0; padding: 10px 12px; border: 1px solid #e4e0f0; border-radius: 14px; font: inherit; font-size: 14px; line-height: 1.7; color: var(--ink); resize: vertical; box-sizing: border-box; }
.ap-ai-input:focus { outline: 2px solid #7c3aed; }
.ap-ai-act { display: flex; gap: 8px; padding: 10px 14px 12px; }
.ap-ai-btn { flex: 1; min-height: 44px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; font-weight: 800; cursor: pointer; }
.ap-ai-btn:disabled { opacity: .5; }
.ap-ai-cancel { min-height: 44px; padding: 0 16px; border: 1px solid #e4e0f0; border-radius: 14px; background: #fff; color: var(--mut); font-weight: 700; cursor: pointer; }
.ap-ai-flash { margin: 0 14px 12px; font-size: 12.5px; font-weight: 700; color: #047857; }
.ap-ai-prev { margin: 0 14px 14px; padding: 12px; border-radius: 14px; background: #f7f4ff; border: 1px solid #ece4ff; }
.ap-ai-prev-h { font-size: 12.5px; font-weight: 800; color: #5b21b6; margin-bottom: 8px; }
.ap-ai-line { margin: 0 0 6px; font-size: 13px; line-height: 1.7; color: #2b2540; }
.ap-ai-warn { margin: 0 0 6px; font-size: 13px; color: #b45309; font-weight: 700; }
.ap-ai-unk { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #ddd2f5; font-size: 12.5px; color: #b91c1c; }
.ap-ai-unk b { display: block; margin-bottom: 4px; }
.ap-ai-unk span { display: inline-block; margin: 0 0 4px 6px; background: #fee2e2; border-radius: 999px; padding: 3px 9px; }
.ap-ai-ok { width: 100%; margin-top: 10px; min-height: 46px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.ap-ai-need { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #ddd2f5; font-size: 12.5px; color: #b45309; }
.ap-ai-need b { display: block; margin-bottom: 4px; }
.ap-ai-need span { display: inline-block; margin: 0 0 4px 6px; background: #fef3c7; border-radius: 999px; padding: 3px 9px; font-weight: 700; }

/* ---------- year switch + month names ---------- */
.ap-years { display: flex; gap: 6px; margin-top: 12px; }
.ap-y { min-height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; }
.ap-y[data-on="true"] { background: #fff; color: #b3001b; border-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.ap-m { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.1; }
.ap-m small { display: block; font-size: 8.5px; font-weight: 600; opacity: .8; margin-top: 2px; }
.ap-m[data-on="true"] small { opacity: .95; }
