/* Base reset (the Claude artifact viewer used to supply this) */
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body { margin: 0; font: 14px/1.5 system-ui, -apple-system, sans-serif; overscroll-behavior-y: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: one calm column floating on a soft sage–lavender–taupe ground; translucent "liquid glass" layers carry content,
   a floating capsule tab bar holds the four everyday places, planning lives in a separate, quieter layer. */
:root {
  --ground: #EFEBE5; --blob-a: #BFD3C4; --blob-b: #D8D2EE; --blob-c: #E9DCCB;
  --glass: rgba(255, 253, 250, .56); --glass-strong: rgba(255, 253, 250, .82); --glass-line: rgba(255, 255, 255, .78); --glass-edge: rgba(70, 60, 50, .10);
  --ink: #1E1C19; --ink-2: #5D574F; --ink-3: #938B80; --hair: rgba(60, 50, 40, .10);
  --sage: #4D7860; --sage-soft: rgba(77, 120, 96, .13); --lav: #7166B0; --lav-soft: rgba(113, 102, 176, .13); --taupe: #8B7B6C;
  --warn: #A26F34; --warn-soft: rgba(196, 140, 72, .16); --danger: #A6544A; --on-ink: #FBF8F3;
  --shadow: 0 1px 1px rgba(50, 40, 30, .04), 0 10px 34px rgba(50, 40, 30, .09);
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --r: 14px; --r-lg: 24px; --blur: saturate(180%) blur(22px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #121211; --blob-a: #22382C; --blob-b: #2B2746; --blob-c: #33291F;
  --glass: rgba(38, 37, 35, .58); --glass-strong: rgba(36, 35, 33, .88); --glass-line: rgba(255, 255, 255, .10); --glass-edge: rgba(0, 0, 0, .4);
  --ink: #F3EFE9; --ink-2: #B9B2A7; --ink-3: #847D73; --hair: rgba(255, 255, 255, .09);
  --sage: #8FB89F; --sage-soft: rgba(143, 184, 159, .16); --lav: #AFA6E2; --lav-soft: rgba(175, 166, 226, .16); --taupe: #BBAA99;
  --warn: #DDAA69; --warn-soft: rgba(221, 170, 105, .15); --danger: #E0918A; --on-ink: #161514;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 36px rgba(0, 0, 0, .35); color-scheme: dark } }
:root[data-theme="dark"] {
  --ground: #121211; --blob-a: #22382C; --blob-b: #2B2746; --blob-c: #33291F;
  --glass: rgba(38, 37, 35, .58); --glass-strong: rgba(36, 35, 33, .88); --glass-line: rgba(255, 255, 255, .10); --glass-edge: rgba(0, 0, 0, .4);
  --ink: #F3EFE9; --ink-2: #B9B2A7; --ink-3: #847D73; --hair: rgba(255, 255, 255, .09);
  --sage: #8FB89F; --sage-soft: rgba(143, 184, 159, .16); --lav: #AFA6E2; --lav-soft: rgba(175, 166, 226, .16); --taupe: #BBAA99;
  --warn: #DDAA69; --warn-soft: rgba(221, 170, 105, .15); --danger: #E0918A; --on-ink: #161514;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 36px rgba(0, 0, 0, .35); color-scheme: dark }
html:lang(ar) { --f: "IBM Plex Sans Arabic", -apple-system, "Geist", system-ui, sans-serif; --f-display: "IBM Plex Sans Arabic", -apple-system, system-ui, sans-serif; }

* { box-sizing: border-box; }
body { background: var(--ground); color: var(--ink); font: 16px/1.45 var(--f); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; } .ic.xs { width: 12px; height: 12px; }
.ic circle[r="1.2"] { fill: currentColor; }
.muted { color: var(--ink-2); } .sm { font-size: .86rem; } .xs { font-size: .76rem; } .block { display: block; }
.warn-t { color: var(--warn); }
.eyebrow { font-size: .8rem; color: var(--ink-3); font-weight: 600; letter-spacing: .01em; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.row { display: flex; align-items: center; gap: 6px; } .row.gap { gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; } .grow { flex: 1; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 2px; border-radius: 10px; }

/* ---------- ground & glass ---------- */
.ground { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(48% 38% at 8% 4%, var(--blob-a), transparent 70%),
  radial-gradient(42% 36% at 96% 10%, var(--blob-b), transparent 70%),
  radial-gradient(55% 40% at 70% 100%, var(--blob-c), transparent 72%),
  radial-gradient(30% 28% at 15% 85%, var(--blob-b), transparent 70%), var(--ground); }
body:has(.layer2) .ground { background: radial-gradient(60% 40% at 50% 0%, var(--blob-b), transparent 75%), var(--ground); filter: saturate(.6); }
.glass { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 .5px var(--glass-edge), var(--shadow); }
.glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 .5px var(--glass-edge), var(--shadow); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-strong); } }

/* ---------- frame ---------- */
.frame { max-width: 760px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1rem; letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, var(--sage), var(--lav), var(--blob-c), var(--sage)); box-shadow: inset 0 1px 2px rgba(255,255,255,.7), 0 1px 3px rgba(0,0,0,.12); }
.top-r { display: flex; gap: 8px; align-items: center; }
.top-title { font-weight: 600; font-size: .95rem; }
.sync-mini { font-size: .74rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.top.l2 .sync-mini { min-width: 0; } @media (max-width: 520px) { .sync-mini { display: none; } }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 550; color: var(--ink); }
.page { display: flex; flex-direction: column; gap: 22px; padding-block: 6px calc(120px + env(safe-area-inset-bottom, 0px)); }
.layer2 .page { padding-bottom: 60px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: inline-block; } .dot.ok { background: var(--sage); } .dot.warn { background: var(--warn); }

/* floating dock: capsule tab bar + separate add button */
.dock { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; align-items: center; width: min(580px, calc(100% - 24px)); }
.tabbar { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 999px; padding: 5px; position: relative; overflow: hidden; }
.tabbar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%); pointer-events: none; }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; white-space: nowrap; border: 0; background: none; padding: 0; min-height: 50px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-size: .7rem; font-weight: 550; }
.tab .ic { width: 22px; height: 22px; }
.tab.on { color: var(--sage); background: var(--sage-soft); }
.fab { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.fab .ic { width: 26px; height: 26px; stroke-width: 2; }
.fab:active, .tab:active, .btn:active, .pill:active { transform: scale(.97); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--glass-strong); color: var(--ink); cursor: pointer; font-weight: 550; font-size: .9rem; white-space: nowrap; transition: transform .12s; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--sage-soft); color: var(--ink); }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: .84rem; } .btn.xs { min-height: 28px; padding: 0 10px; font-size: .78rem; }
.btn.block { width: 100%; min-height: 50px; font-size: 1rem; }
.btn.done-btn { background: var(--sage-soft); color: var(--sage); border-color: transparent; }
.btn.live { background: var(--lav-soft); color: var(--lav); border-color: transparent; }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.left { flex-direction: column; align-items: flex-start; justify-content: center; border-radius: var(--r); white-space: normal; text-align: start; padding: 10px 14px; }
.btn[disabled] { opacity: .4; cursor: default; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 1.1rem; }
.icon-btn.glass { border: 1px solid var(--glass-line); }
.icon-btn:hover { color: var(--ink); } .icon-btn.sm { width: 32px; height: 32px; } .icon-btn[disabled] { opacity: .3; }
.badge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--lav); color: #fff; font-size: .66rem; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.link { background: none; border: 0; color: var(--sage); cursor: pointer; padding: 0; font-weight: 550; font-size: .88rem; display: inline-flex; gap: 5px; align-items: center; }
.link.quiet { color: var(--ink-3); font-weight: 500; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font-size: .88rem; cursor: pointer; padding: 4px 0; margin-bottom: -10px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--glass-strong); min-width: 0; font-size: 16px; }
textarea { resize: vertical; min-height: 0; }
input.num { width: 74px !important; text-align: center; font-variant-numeric: tabular-nums; }
input[type=range] { accent-color: var(--sage); width: 100%; }
input[type=checkbox], input[type=radio] { accent-color: var(--sage); width: 18px; height: 18px; margin: 0; flex: none; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--ink-2); min-width: 0; }
label.check { flex-direction: row; align-items: center; gap: 11px; color: var(--ink); font-size: .95rem; cursor: pointer; }
label.check.inline { display: inline-flex; font-size: .78rem; color: var(--ink-2); gap: 5px; margin-inline-start: 6px; }
.lbl { font-size: .8rem; color: var(--ink-3); font-weight: 600; display: block; margin-bottom: 8px; }
.seg { display: inline-flex; border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-size: .86rem; font-weight: 550; }
.seg button.on { background: var(--glass-strong); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), inset 0 1px 0 var(--glass-line); }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.seg .count { color: var(--ink-3); font-weight: 500; margin-inline-start: 2px; }
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--hair); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { transform: translateX(18px); } html[dir=rtl] .switch input:checked + span::after { transform: translateX(-18px); }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; background: var(--hair); color: var(--ink-2); font-weight: 600; margin-inline-start: 6px; vertical-align: 2px; white-space: nowrap; }
.tag.live { background: var(--lav-soft); color: var(--lav); } .tag.freeze { background: var(--sage-soft); color: var(--sage); }
.chip { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: .72rem; background: var(--hair); color: var(--ink-2); font-weight: 600; }
.cdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.daychips, .chips, .swatches, .icons { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip, .fchip, .chip-btn { border: 1px solid var(--hair); background: var(--glass-strong); border-radius: 999px; min-height: 34px; padding: 0 13px; font-size: .84rem; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.dchip.on, .fchip.on { background: var(--sage-soft); border-color: transparent; color: var(--ink); font-weight: 600; }
.dchip-l { flex-direction: row; } .dchip-l input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dchip-l span { border: 1px solid var(--hair); background: var(--glass-strong); border-radius: 999px; padding: 6px 11px; font-size: .8rem; cursor: pointer; }
.dchip-l input:checked + span { background: var(--sage-soft); color: var(--ink); font-weight: 600; }
.dchip-l input:focus-visible + span { outline: 2px solid var(--lav); }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px var(--glass-strong); }
.sw.on { border-color: var(--ink); }
input[type=color] { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.icb { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hair); background: var(--glass-strong); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icb.on { color: var(--sage); background: var(--sage-soft); border-color: transparent; }
.bar { height: 5px; border-radius: 3px; background: var(--hair); overflow: hidden; } .bar span { display: block; height: 100%; background: var(--sage); border-radius: 3px; transition: width .3s; }

/* ---------- shared blocks ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.large { font-family: var(--f-display); font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
html:lang(ar) .large { letter-spacing: 0; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-h { font-size: .82rem; font-weight: 600; color: var(--ink-3); padding-inline: 16px; }
.list { list-style: none; margin: 0; padding: 4px 0; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.list > li + li { border-top: .5px solid var(--hair); }
.list.compact { background: none; padding: 0; }
.empty, .empty-state p { color: var(--ink-3); font-size: .92rem; }
.empty-state { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.callout { background: var(--sage-soft); border-radius: var(--r); padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.callout.glass { background: var(--glass); }
.callout.ok { background: var(--sage-soft); } .callout.warn { background: var(--warn-soft); }
.notice, .ask { border-radius: var(--r-lg); padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; }
.ask { flex-direction: column; align-items: flex-start; }
.insight { border-radius: var(--r); padding: 12px 15px; font-size: .9rem; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.dim { opacity: .55; } .off { opacity: .6; }
.cicon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; }
.cicon .ic { width: 19px; height: 19px; }

/* ---------- Today ---------- */
.hello { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.focus-in { margin-top: 10px; border: 0 !important; background: transparent !important; padding: 4px 0 !important; min-height: 0 !important; font-size: 1.05rem !important; color: var(--ink); border-radius: 0 !important; border-bottom: 1px dashed var(--hair) !important; }
.focus-in::placeholder { color: var(--ink-3); }
.daybar { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 550; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.daybar .bar { flex: 1; max-width: 220px; }
.act { display: flex; align-items: center; gap: 4px; padding-inline: 8px 6px; min-height: 58px; }
.tick { width: 44px; height: 44px; flex: none; border: 0; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent; position: relative; }
.tick::before { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid color-mix(in srgb, var(--c, var(--sage)) 75%, var(--ink-3)); transition: background .15s, transform .15s; }
.tick .ic { position: relative; width: 14px; height: 14px; stroke-width: 2.6; }
.act.done .tick::before, .tick.on::before { background: var(--c, var(--sage)); border-color: transparent; }
.act.done .tick, .tick.on { color: #fff; }
.tick:active::before { transform: scale(.88); }
.tick.sm { width: 32px; height: 32px; } .tick.sm::before { width: 20px; height: 20px; }
.act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; border: 0; background: none; padding: 8px 4px; text-align: start; cursor: pointer; min-height: 54px; }
.act-title { font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.act.done .act-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hair); }
.act-time { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fixed { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--lav); margin-inline-start: 7px; vertical-align: 1px; }
.dur { border: 0; background: none; cursor: pointer; font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--ink-2); padding: 8px 8px; border-radius: 10px; white-space: nowrap; min-height: 44px; }
.dur:hover { background: var(--hair); }
.prot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--ink-3); font-size: .9rem; font-style: italic; }
.prot .dur { margin-inline-start: auto; cursor: default; font-style: normal; min-height: 0; padding: 0; }
.today-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---------- Planner ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.postponed { border-radius: var(--r-lg); padding: 12px 14px; } .postponed summary { cursor: pointer; font-size: .9rem; font-weight: 550; }
.postponed .list { padding: 4px 0; } .postponed .row { padding: 6px 4px 0; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.frame:has(.week) { max-width: 1180px; }
.wday { border-radius: 18px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wday.is-today { box-shadow: inset 0 0 0 1.5px var(--sage), var(--shadow); }
.wday.past { opacity: .78; }
.wday-h { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; padding: 2px 4px; cursor: pointer; text-align: start; gap: 0; }
.wday-h .wd { font-size: .74rem; color: var(--ink-3); font-weight: 650; }
.wday-h .dn { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.witems { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wgrp { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wgrp-h { font-size: .66rem; color: var(--ink-3); font-weight: 650; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wit { display: flex; align-items: center; gap: 6px; border: 0; background: var(--glass-strong); border-radius: 9px; padding: 6px 7px; font-size: .76rem; cursor: pointer; text-align: start; min-width: 0; color: var(--ink); }
.wit.fixed { box-shadow: inset 0 0 0 1px var(--lav-soft); }
.wit-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wit-m { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wit.done .wit-t { text-decoration: line-through; color: var(--ink-3); }
.wprot { font-size: .7rem; color: var(--ink-3); font-style: italic; padding: 0 4px; }
.month { display: flex; flex-direction: column; gap: 6px; }
.mhead, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mhead span { font-size: .72rem; color: var(--ink-3); text-align: center; font-weight: 650; }
.mcell { aspect-ratio: 1 / .92; max-width: 100%; border: 1px solid var(--glass-line); background: var(--glass); border-radius: 12px; padding: 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: pointer; text-align: start; min-width: 0; overflow: hidden; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mcell.out { opacity: .45; } .mcell.is-today { box-shadow: inset 0 0 0 1.5px var(--sage); }
.mnum { font-weight: 650; font-size: .95rem; line-height: 1; }
.mdots { display: flex; flex-wrap: wrap; gap: 3px; } .mdots i { width: 7px; height: 7px; border-radius: 50%; }
.mmin { margin-top: auto; font-size: .66rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink-2); padding-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Goals ---------- */
.pin { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); cursor: pointer; text-align: start; color: var(--ink); }
.pin > .ic:first-child { color: var(--sage); width: 24px; height: 24px; }
.pin-t { flex: 1; display: flex; flex-direction: column; }
.goal-row, .hub-row { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; background: none; padding: 13px 16px; text-align: start; cursor: pointer; color: var(--ink); }
.goal-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.goal-t .t { font-weight: 550; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.goal-t .bar { margin-top: 4px; }
.hub-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-strong); color: var(--ink-2); flex: none; }
.dims { display: flex; flex-direction: column; gap: 0; margin: 0; border-radius: var(--r); background: var(--hair); overflow: hidden; }
.dims > div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 11px 14px; background: var(--glass-strong); }
.dims > div + div { margin-top: 1px; }
.dims dt { font-size: .8rem; font-weight: 650; color: var(--ink-3); } .dims dd { margin: 0; font-size: .9rem; }
.ms { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ms li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.ms-t { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ms-done .ms-t > span, .ms-final .ms-t > span { color: var(--ink-2); }

/* ---------- Progress & Accomplishments ---------- */
.statement { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.statement .big, .statement-t { font-family: var(--f-display); font-size: 1.3rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.more { border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.more summary, .advanced > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.more[open] { gap: 14px; } .more[open] > * + * { margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select, .filters input { width: auto !important; flex: 1 1 140px; font-size: .88rem; }
.pvc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pvc li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .86rem; }
.pvc-l { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl { display: block; height: 10px; background: var(--hair); border-radius: 5px; overflow: hidden; } .pl .dn { display: block; height: 100%; border-radius: 5px; }
.pvc-v { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.acc { border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.acc-h { display: flex; gap: 12px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts > div { display: flex; flex-direction: column; gap: 1px; } .facts b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.did { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 18px; font-size: .9rem; }
.did li { display: flex; justify-content: space-between; gap: 8px; border-bottom: .5px solid var(--hair); padding: 5px 0; }
.steps { display: flex; flex-direction: column; gap: 10px; }
.sbars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 110px; align-items: end; }
.sbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.sbar i { display: block; width: 100%; max-width: 36px; background: var(--sage); opacity: .55; border-radius: 6px 6px 3px 3px; }
.sbar.cur i { opacity: 1; } .sbar small { font-size: .68rem; font-variant-numeric: tabular-nums; }
.facts-list { list-style: none; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; background: var(--hair); border-radius: var(--r); font-size: .92rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form > input:first-child { flex: 2 1 200px; width: auto !important; }
.inline-form > input[type=date], .inline-form > select { flex: 1 1 140px; width: auto !important; }
.inline-form > input[type=number]:not(.num) { flex: 1 1 140px; width: auto !important; }
.pad { padding: 10px; border-radius: var(--r-lg); }

/* ---------- Layer 2 ---------- */
.layer2 .glass { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: var(--glass-strong); }
.hub { border-radius: var(--r-lg); background: var(--glass-strong); border: 1px solid var(--glass-line); }
.panel { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.panel-h { display: flex; gap: 12px; align-items: flex-start; }
.num-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: .82rem; font-weight: 700; flex: none; }
.trow { display: flex; align-items: center; gap: 10px; padding: 10px 2px; flex-wrap: wrap; }
.trow select { width: auto !important; min-width: 120px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--hair); padding: 2px; }
.stepper input.num { background: transparent !important; border: 0 !important; width: 58px !important; min-height: 32px; padding: 4px !important; }
.unit { min-width: 52px; }
.eff { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; }
.eff label { flex-direction: row; align-items: center; color: var(--ink); font-weight: 550; } .eff input { width: auto !important; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "›"; display: inline-block; margin-inline-end: 8px; transition: transform .15s; color: var(--ink-3); }
html[dir=rtl] details > summary::before { content: "‹"; }
details[open] > summary::before { transform: rotate(90deg); }
.panel details summary { cursor: pointer; font-weight: 550; padding: 6px 0; }
.advanced { border-radius: var(--r-lg); padding: 14px 16px; border: 1px dashed var(--hair); }
.adv-body { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.adv-body h3 { margin-top: 10px; }
.card { background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }
.sec-h h2 { margin-inline-end: auto; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.alloc { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.alloc > label { color: var(--ink); font-size: .88rem; }
.perday { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.perday label { align-items: center; font-size: .74rem; } .perday input.num { width: 100% !important; padding: 6px 2px !important; }
.alloc-table { display: flex; flex-direction: column; padding-top: 6px; }
.at-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .82rem; border-bottom: .5px dashed var(--hair); }
.at-row.over .at-v { color: var(--warn); font-weight: 650; }
.at-d { color: var(--ink-3); font-weight: 650; }
.at-items { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.at-i { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); font-size: .76rem; }
.at-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tpls { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.tpl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: .5px solid var(--hair); } .tpl:last-child { border-bottom: 0; }
ul.tpls.card { padding: 4px 16px; gap: 0; }
.tpl-main, .cat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 0; background: none; padding: 0; text-align: start; cursor: pointer; color: var(--ink); }
.tpl-main .t, .cat-main .t { font-weight: 550; }
.cats { list-style: none; padding: 4px 0; margin: 0; display: flex; flex-direction: column; background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: var(--r-lg); }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: .5px solid var(--hair); } .cat-row:last-child { border-bottom: 0; }
.prios { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.prios li { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 130px) auto; gap: 8px; align-items: center; }
.rank { color: var(--ink-3); font-weight: 650; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mode { border: 1px solid var(--hair); background: var(--glass-strong); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-align: start; cursor: pointer; color: var(--ink); }
.mode.on { border-color: transparent; background: var(--sage-soft); box-shadow: inset 0 0 0 1.5px var(--sage); }
.focus-cfg, .prefs { display: flex; flex-direction: column; gap: 12px; }
.prefs label.row { flex-direction: row; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.card-inset { background: var(--hair); border-radius: var(--r); padding: 12px; }
.grid2, .grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick > input:first-child { flex: 2 1 180px; width: auto !important; }
.quick > select, .quick > input[type=date] { flex: 1 1 140px; width: auto !important; }

/* ---------- CISSP ---------- */
.measures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.measure { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.measure .eyebrow { font-size: .74rem; }
.measure b { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats > div { display: flex; flex-direction: column; gap: 2px; } .stats b { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.domains { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.domains li { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(80px, 30%); gap: 10px; align-items: center; }
.domains .dn { color: var(--ink-3); font-weight: 650; } .domains .dt { display: flex; flex-direction: column; font-size: .9rem; }
.mods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mods li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: .5px solid var(--hair); } .mods li label { flex: 1; }
.reviews { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.reviews li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--glass-strong); border-radius: var(--r); padding: 10px 12px; }
.reviews li > div:first-child { display: flex; flex-direction: column; }
.sub-form { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(25, 22, 18, .28); z-index: 20; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.modal { position: fixed; z-index: 21; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(540px, calc(100% - 32px)); max-height: min(88vh, 900px); background: var(--glass-strong); -webkit-backdrop-filter: saturate(180%) blur(34px); backdrop-filter: saturate(180%) blur(34px); border-radius: 28px; border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-line), 0 30px 80px rgba(20, 15, 10, .25); display: flex; flex-direction: column; }
.modal.wide { width: min(700px, calc(100% - 32px)); }
.grabber { display: none; }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 18px 8px 20px; gap: 10px; }
.modal-h h2 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; }
.modal-b { padding: 6px 20px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.modal-f { display: flex; gap: 8px; padding: 12px 18px; border-top: .5px solid var(--hair); flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.qe-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qe-row .lbl { margin: 0; min-width: 62px; }
.qe-move { display: flex; flex-direction: column; gap: 8px; }
.qe-move input[type=date] { width: auto !important; }
.why-d summary { cursor: pointer; font-size: .88rem; color: var(--ink-2); }
.why-d[open] summary { margin-bottom: 8px; }
.qa-in { font-size: 1.15rem !important; min-height: 52px !important; border-radius: 16px !important; }
.qa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qa-f span { font-size: .74rem; font-weight: 650; color: var(--ink-3); }
.qa-f select, .qa-f input { min-height: 38px !important; padding: 6px 8px !important; font-size: .88rem !important; }
.qa-hint { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--sage-soft); }
.radios { display: flex; flex-direction: column; gap: 6px; } .radios.inline { flex-direction: row; flex-wrap: wrap; }
.radio { flex-direction: row; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--hair); border-radius: var(--r); color: var(--ink); cursor: pointer; flex-wrap: wrap; background: var(--glass-strong); }
.radio.on { background: var(--sage-soft); border-color: transparent; } .radio input[type=date] { width: auto !important; margin-inline-start: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { white-space: nowrap; }
.pills .pill { height: auto; padding: 3px 10px; background: var(--hair); font-size: .8rem; font-variant-numeric: tabular-nums; cursor: default; }
.pills .pill.add { background: var(--sage-soft); } .pills .pill.warn { background: var(--warn-soft); color: var(--warn); }
.changes { display: flex; flex-direction: column; gap: 12px; }
.ch-day h3 { font-size: .8rem; color: var(--ink-3); margin-bottom: 6px; }
.ch-day ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ch { padding: 9px 11px; border-radius: 12px; background: var(--hair); border-inline-start: 3px solid var(--ink-3); display: flex; flex-direction: column; gap: 4px; }
.ch-add { border-inline-start-color: var(--sage); } .ch-remove { border-inline-start-color: var(--taupe); } .ch-move { border-inline-start-color: var(--lav); } .ch-resize { border-inline-start-color: var(--warn); }
.ch-k { font-size: .72rem; color: var(--ink-3); font-weight: 650; }
.why { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); }
.sub-h { font-size: .88rem; margin-top: 4px; }
.unsched { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.unsched li { padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); display: flex; flex-direction: column; gap: 3px; }
.sug { padding: 11px 13px; border: 1px solid var(--hair); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.ms-edit { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.ms-edit li { display: flex; gap: 6px; align-items: center; } .ms-edit li select { width: auto !important; flex: none; }
.rems { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rems li { padding: 11px 13px; border: 1px solid var(--hair); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.rems li.due { background: var(--lav-soft); border-color: transparent; }
.rem-i { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; padding: 2px 0; cursor: pointer; text-align: start; color: var(--ink); }
.toast { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); padding: 8px 8px 8px 18px; border-radius: 999px; display: flex; align-items: center; gap: 12px; font-size: .9rem; max-width: calc(100% - 32px); }
html[dir=rtl] .toast { padding: 8px 18px 8px 8px; }
body:has(.layer2) .toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* ---------- phone ---------- */
@media (max-width: 1000px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .frame { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .week { grid-template-columns: 1fr; }
  .wday { flex-direction: row; align-items: flex-start; gap: 10px; }
  .wday-h { width: 56px; flex: none; }
  .witems { flex: 1; }
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal, .modal.wide { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 30px 30px 0 0; border-bottom: 0; }
  .grabber { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--hair); margin: 8px auto 0; }
  .modal-f { padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
  .modal-b { padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head .btn.primary { width: 100%; }
}
@media (max-width: 520px) {
  .grid3, .grid2, .form-grid { grid-template-columns: 1fr; }
  .alloc { grid-template-columns: 1fr auto; } .alloc > label { grid-column: 1 / -1; }
  .perday { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pvc li { grid-template-columns: 1fr auto; } .pvc-b { grid-column: 1 / -1; grid-row: 2; }
  .prios li { grid-template-columns: 22px 1fr auto; } .prios li input:nth-of-type(2), .prios li select { grid-column: 2 / -1; }
  .mcell { aspect-ratio: auto; min-height: 56px; padding: 5px; } .mmin { display: none; }
  .domains li { grid-template-columns: 22px 1fr; } .domains li .bar { grid-column: 2; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts b { font-size: 1.25rem; }
  .dims > div { grid-template-columns: 1fr; gap: 2px; }
  .tab span { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .fab:active, .tab:active, .btn:active, .pill:active { transform: none; } }

/* ---------- resources ---------- */
.search { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 4px 6px 4px 16px; color: var(--ink-3); }
html[dir=rtl] .search { padding: 4px 16px 4px 6px; }
.search input { border: 0 !important; background: transparent !important; min-height: 40px !important; padding: 0 !important; }
.res { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; }
.res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.res-t { color: var(--ink); font-weight: 550; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.res-t:hover { text-decoration: underline; text-decoration-color: var(--hair); }
.res-why { color: var(--sage); }
.res-act { display: flex; gap: 2px; align-items: center; flex: none; } .res-act.col { flex-direction: column; gap: 4px; }
.icon-btn.on { color: var(--sage); background: var(--sage-soft); }
.rec-g { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.rec-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; padding-inline: 4px; }
.plan-l { color: var(--lav); display: inline-flex; align-items: center; gap: 4px; }
.learn { border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.learn .list { padding: 0; } .learn .res { padding: 10px 0; }
.learn-btn { min-height: 44px; font-size: .92rem; background: var(--lav-soft); border-color: transparent; color: var(--ink); }
a.fchip { text-decoration: none; }

.top-r .icon-btn.on { color: var(--sage); background: var(--sage-soft); }
@media (max-width: 400px) { .tab span { font-size: .6rem; } .fab { width: 54px; height: 54px; } .dock { gap: 6px; } }

.tab .ic { width: 24px; height: 24px; }
.thumb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.thumb.tall { width: 46px; height: 72px; border-radius: 12px; }
.thumb.tiktok { background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c) 40%, #fff), color-mix(in srgb, var(--c) 45%, #111) 70%); }
.thumb.instagram { background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--c) 40%, #fff), color-mix(in srgb, var(--c) 80%, #6b4a7a) 70%); }
.thumb .ic { width: 26px; height: 26px; stroke-width: 1.8; opacity: .95; }
.th-src { position: absolute; left: 6px; right: 6px; top: 4px; font-size: .56rem; font-weight: 700; letter-spacing: .02em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-dur { position: absolute; right: 4px; bottom: 4px; font-size: .58rem; font-weight: 700; background: rgba(0,0,0,.35); border-radius: 6px; padding: 1px 4px; font-variant-numeric: tabular-nums; }
html[dir=rtl] .th-dur { right: auto; left: 4px; }

/* ---------- My Lists ---------- */
.list-add { display: flex; align-items: flex-end; gap: 6px; border-radius: 20px; padding: 6px 6px 6px 16px; }
html[dir=rtl] .list-add { padding: 6px 16px 6px 6px; }
.list-add textarea, .qa-in { resize: none; overflow: hidden; }
.list-add textarea { border: 0 !important; background: transparent !important; min-height: 44px !important; padding: 11px 0 !important; font-size: 1.05rem; line-height: 1.35; }
.list-add .icon-btn { width: 44px; height: 44px; background: var(--ink); color: var(--on-ink); flex: none; }
.li { display: flex; align-items: center; gap: 2px; padding-inline: 6px 8px; min-height: 56px; }
.tick.big { width: 48px; height: 48px; } .tick.big::before { width: 26px; height: 26px; }
.li.done .tick::before { background: var(--sage); border-color: transparent; } .li.done .tick { color: #fff; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; border: 0; background: none; padding: 10px 4px; text-align: start; cursor: pointer; color: var(--ink); }
.li-t { font-size: 1rem; overflow-wrap: anywhere; }
.li.done .li-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hair); }
.done-list { display: flex; flex-direction: column; gap: 8px; }
.done-list > summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.done-list[open] > summary { margin-bottom: 8px; }
.list-tools .search { min-width: 0; }

.title-in { font-family: var(--f-display); font-size: 1.35rem !important; font-weight: 700; letter-spacing: -.015em; border: 0 !important; background: transparent !important; padding: 2px 0 !important; min-height: 0 !important; border-radius: 0 !important; border-bottom: 1px dashed transparent !important; }
.title-in:focus { border-bottom-color: var(--hair) !important; outline: none; }
.del-btn { color: var(--danger); }

.when-chips .fchip { min-height: 32px; padding: 0 11px; font-size: .8rem; }
.when-chips .count { color: var(--ink-3); margin-inline-start: 3px; font-weight: 500; }
.when-tag { font-weight: 650; color: var(--ink-2); }
.when-tag.today, .when-tag.daily { color: var(--sage); } .when-tag.week, .when-tag.weekly { color: var(--lav); }
.group-h.row { display: flex; padding-inline-end: 8px; }

/* compact lists box on Today, kept apart from development activities */
.lw { border-radius: 20px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--lav-soft) 60%, var(--glass)); }
.lw-top { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.lw-top > span { display: inline-flex; align-items: center; gap: 6px; }
.lw-g { display: flex; flex-direction: column; }
.lw-h { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 650; color: var(--ink-3); padding: 2px 2px 0; }
.lw ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 10px; }
.lw-i { display: flex; align-items: center; min-height: 38px; min-width: 0; }
.lw-i .tick { width: 36px; height: 38px; } .lw-i .tick::before { width: 19px; height: 19px; border-color: var(--lav); }
.lw-i.done .tick::before { background: var(--lav); border-color: transparent; } .lw-i.done .tick { color: #fff; }
.lw-t { flex: 1; min-width: 0; border: 0; background: none; padding: 6px 2px; text-align: start; cursor: pointer; color: var(--ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-i.done .lw-t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--hair); }

/* ---------- Journal ---------- */
.jpage { border-radius: var(--r-lg); padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.jdate { display: flex; flex-direction: column; gap: 2px; font-weight: 650; }
.jprompt { align-self: flex-start; border: 0; background: var(--lav-soft); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .88rem; cursor: pointer; text-align: start; font-style: italic; }
html:lang(ar) .jprompt { font-style: normal; }
#jText { min-height: 220px; border: 0 !important; background: transparent !important; padding: 4px 0 !important; font-size: 1.05rem !important; line-height: 1.6; resize: vertical; border-radius: 0 !important; }
#jText:focus { outline: none; }
.jfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: .5px solid var(--hair); padding-top: 8px; }
.jd { display: flex; flex-direction: column; align-items: center; width: 40px; flex: none; } .jd b { font-size: 1.1rem; line-height: 1.1; }
@media (max-width: 380px) { .fab { width: 52px; height: 52px; } .dock { gap: 6px; } .tab .ic { width: 22px; height: 22px; } }

.grat { border-radius: var(--r-lg); padding: 12px 16px 8px; display: flex; flex-direction: column; background: color-mix(in srgb, #E9C9B8 22%, var(--glass)); }
.grat-h { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 650; color: var(--ink-2); margin-bottom: 2px; }
.grat-h .ic { color: #C0917F; }
.grat-row { display: flex; align-items: center; gap: 10px; border-top: .5px solid var(--hair); }
.grat-row:first-of-type { border-top: 0; }
.grat-n { width: 18px; text-align: center; color: var(--ink-3); font-weight: 650; font-size: .82rem; flex: none; }
.grat-row input { border: 0 !important; background: transparent !important; min-height: 44px !important; padding: 0 !important; border-radius: 0 !important; font-size: 1rem !important; }
.grat-row input:focus { outline: none; }

.jbox { border-radius: var(--r-lg); padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.jbox textarea { border: 0 !important; background: transparent !important; padding: 4px 0 !important; min-height: 0 !important; border-radius: 0 !important; font-size: 1rem !important; line-height: 1.5; resize: vertical; }
.jbox textarea:focus { outline: none; }
.jbox.imp { background: color-mix(in srgb, var(--sage-soft) 70%, var(--glass)); } .jbox.imp .grat-h .ic { color: var(--sage); }
.jbox.bet { background: color-mix(in srgb, var(--lav-soft) 70%, var(--glass)); } .jbox.bet .grat-h .ic { color: var(--lav); }
.jprev { padding: 6px 10px; border-radius: 10px; background: var(--glass-strong); }

.logo { display: block; height: 54px; aspect-ratio: 387 / 253; width: auto; border: 0; padding: 0; cursor: pointer; background: var(--ink); flex: none; }
.logo:focus-visible { outline-offset: 4px; }
@media (max-width: 380px) { .logo { height: 46px; } }

/* ---------- News ---------- */
.hello-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.hello-row .hello { min-width: 0; flex: 1; }
.nsq { flex: none; width: 128px; aspect-ratio: 1; border-radius: 22px; padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; text-align: start; cursor: pointer; color: var(--ink); overflow: hidden; margin-top: 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--lav-soft) 90%, var(--glass)), var(--glass)); }
.nsq-k { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: var(--lav); text-transform: uppercase; letter-spacing: .06em; }
html:lang(ar) .nsq-k { text-transform: none; letter-spacing: 0; }
.nsq-t { font-size: .8rem; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nsq-m { margin-top: auto; font-size: .64rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsq:active { transform: scale(.98); }
@media (max-width: 380px) { .nsq { width: 112px; } .nsq-t { -webkit-line-clamp: 3; } }
.nw a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.nw-t { font-weight: 600; line-height: 1.3; }
.nw.big .nw-t { font-size: 1.08rem; }
.nw-s { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw.read .nw-t { color: var(--ink-2); font-weight: 500; }
.nw-meta { color: var(--ink-3); }
.nw-sec { font-weight: 700; } .nw-sec.uae { color: var(--sage); } .nw-sec.cyber { color: var(--danger); } .nw-sec.ai { color: var(--lav); } .nw-sec.lead { color: var(--taupe); }

/* remark under a completed activity */
.list > li.remark { border-top: 0; padding: 0 14px 10px; padding-inline-start: 60px; margin-top: -8px; }
.remark .link { min-height: 30px; }
.remark-t { display: flex; align-items: flex-start; gap: 6px; border: 0; background: var(--sage-soft); color: var(--ink-2); border-radius: 10px; padding: 6px 10px; font-size: .85rem; text-align: start; cursor: pointer; max-width: 100%; }
.remark-t .ic { margin-top: 3px; color: var(--sage); }
.remark-t span { overflow-wrap: anywhere; }
.remark-f { display: flex; gap: 6px; align-items: center; }
.remark-f input { min-height: 36px !important; padding: 6px 10px !important; font-size: .92rem !important; }

/* news art & wider home widget */
.nsq { width: 172px; aspect-ratio: auto; height: 176px; padding: 0; gap: 0; }
.nsq-body { display: flex; flex-direction: column; gap: 4px; padding: 9px 12px 11px; min-height: 0; }
.nsq-k { font-size: .64rem; }
.nsq-t { -webkit-line-clamp: 3; font-size: .82rem; }
@media (max-width: 380px) { .nsq { width: 150px; height: 168px; } }
.nart { position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; flex: none;
  background: radial-gradient(120% 120% at 15% 0%, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000)); }
.nart .ic { width: 26px; height: 26px; opacity: .9; }
.nart::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 6px, transparent 6px 14px); }
.nart-src { position: absolute; left: 10px; bottom: 6px; right: 10px; font-size: .62rem; font-weight: 700; letter-spacing: .02em; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
html[dir=rtl] .nart-src { text-align: right; }
.nart.sq { height: 64px; border-radius: 22px 22px 0 0; }
.nart.row { width: 72px; height: 72px; border-radius: 14px; } .nart.row .nart-src { font-size: .52rem; left: 6px; right: 6px; bottom: 4px; }
.nart.wide { width: 100%; height: 108px; border-radius: 14px; } .nart.wide .ic { width: 34px; height: 34px; }
.nw a { flex-direction: row; align-items: flex-start; gap: 12px; }
.nw.big a { flex-direction: column; align-items: stretch; }
.nw-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.nsq { height: auto; align-self: flex-start; }
.hello-row .large { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem); }

/* Today: news stack */
.nwid { border-radius: 24px; padding: 4px 14px; display: flex; flex-direction: column; }
.nwid-i { display: flex; align-items: center; gap: 14px; border: 0; background: none; padding: 11px 0; text-align: start; cursor: pointer; color: var(--ink); width: 100%; }
.nwid-i + .nwid-i { border-top: .5px solid var(--hair); }
.nwid-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nwid-src { font-size: .72rem; font-weight: 600; color: var(--ink-3); }
.nwid-t { font-size: .98rem; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nart.thumb { width: 74px; height: 74px; border-radius: 14px; } .nart.thumb .ic { width: 28px; height: 28px; } .nart.thumb .nart-src { display: none; }
.nwid-i:active { opacity: .7; }
.nwid-t { font-size: .92rem; -webkit-line-clamp: 2; }
.nwid-i { padding: 9px 0; } .nart.thumb { width: 64px; height: 64px; border-radius: 12px; } .nart.thumb .ic { width: 24px; height: 24px; }

/* Standalone app additions */
.logo { -webkit-mask: url(assets/logo.png) center / contain no-repeat; mask: url(assets/logo.png) center / contain no-repeat; }
.update-bar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; font-size: .9rem; max-width: calc(100% - 32px); background: var(--glass-strong); }
html[dir=rtl] .update-bar { padding: 8px 16px 8px 8px; }
