

/* ===== Extracted style block 1; original id=none ===== */

/* ==========================================================================
   FocusFlow — single, consolidated stylesheet
   Light/Dark themes are driven only by CSS variables on <html data-theme>.
   ========================================================================== */
:root{
  --bg:#e0e5ec;
  --panel:#ffffff;
  --panel-2:#f4f7fb;
  --ink:#203d62;
  --muted:#67809f;
  --line:rgba(32,61,98,.08);
  --blue:#4f97f5;
  --blue-light:#8bb5ff;
  --blue-dark:#3a7bd5;
  --blue-soft:rgba(79,151,245,.12);
  --success:#10b981;
  --warning:#f5a00b;
  --danger:#e5484d;
  --danger-soft:rgba(229,72,77,.12);
  --sd:#bec8d5;           /* neumorphic dark shadow */
  --sl:#ffffff;           /* neumorphic light shadow */
  --raise:6px 6px 14px var(--sd),-6px -6px 14px var(--sl);
  --raise-sm:3px 3px 8px var(--sd),-3px -3px 8px var(--sl);
  --inset:inset 3px 3px 7px var(--sd),inset -3px -3px 7px var(--sl);
  --heat-0:#d5dde8;
  --l1:#c3dafc;--l2:#8bb5ff;--l3:#4f97f5;--l4:#2c6fd1;
  --grad:linear-gradient(150deg,#8bb5ff,#4f97f5);
  --on-accent:#ffffff;
  --glow:rgba(79,151,245,.38);
  --r-lg:24px;--r-md:18px;--r-sm:12px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --nav-h:76px;
  color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#101722;
  --panel:#182332;
  --panel-2:#1d2a3b;
  --ink:#e8eef8;
  --muted:#a1b2c8;
  --line:rgba(255,255,255,.07);
  --blue-soft:rgba(79,151,245,.18);
  --danger-soft:rgba(229,72,77,.18);
  --sd:#080d14;
  --sl:#1f2c3e;
  --heat-0:#223044;
  --l1:#20406b;
  color-scheme:dark;
}

/* ---------- Light-mode colour palettes (Menu → Theme) ----------
   Each palette uses the 4 colours from its Color Hunt palette;
   --grad (buttons) is always a blend of palette colours. */
html[data-theme="light"][data-palette="amethyst"]{
  --bg:#ece4f3;--panel:#fbf8fd;--panel-2:#f3edf8;--ink:#4c2365;--muted:#7f5d99;--line:rgba(76,35,101,.1);
  --blue:#7f5d99;--blue-light:#9e7eb5;--blue-dark:#4c2365;--blue-soft:rgba(127,93,153,.14);
  --sd:#cfc0dd;--sl:#ffffff;--heat-0:#e2d6ec;
  --l1:#c4a4da;--l2:#9e7eb5;--l3:#7f5d99;--l4:#4c2365;
  --grad:linear-gradient(135deg,#c4a4da 0%,#9e7eb5 35%,#7f5d99 65%,#4c2365 100%);
  --on-accent:#ffffff;--glow:rgba(76,35,101,.32);
}
html[data-theme="light"][data-palette="bordeaux"]{
  --bg:#f3e6d5;--panel:#fff9f2;--panel-2:#f8eee2;--ink:#4d0f1f;--muted:#8a5d5f;--line:rgba(128,0,32,.09);
  --blue:#800020;--blue-light:#d45060;--blue-dark:#5c0017;--blue-soft:rgba(128,0,32,.1);
  --sd:#dcc9b2;--sl:#fffdf9;--heat-0:#ead8c3;
  --l1:#efc3c0;--l2:#d45060;--l3:#a8203a;--l4:#800020;
  --grad:linear-gradient(135deg,#d45060 0%,#800020 100%);
  --on-accent:#fff9f2;--glow:rgba(128,0,32,.3);
}
html[data-theme="light"][data-palette="blush"]{
  --bg:#fbefef;--panel:#fcf8f8;--panel-2:#f9e6e6;--ink:#55303a;--muted:#9a6d74;--line:rgba(85,48,58,.08);
  --blue:#d9737d;--blue-light:#f5afaf;--blue-dark:#b9545f;--blue-soft:rgba(245,175,175,.3);
  --sd:#ead0d0;--sl:#ffffff;--heat-0:#f6e2e2;
  --l1:#f9dfdf;--l2:#f5afaf;--l3:#e88b93;--l4:#c9646e;
  --grad:linear-gradient(135deg,#f9dfdf 0%,#f5afaf 45%,#e8939a 100%);
  --on-accent:#55303a;--glow:rgba(225,130,140,.35);
}
html[data-theme="light"][data-palette="sand"]{
  --bg:#f0e4d3;--panel:#faf7f3;--panel-2:#f5ede2;--ink:#4b3a2f;--muted:#8c7462;--line:rgba(75,58,47,.09);
  --blue:#b77b68;--blue-light:#d9a299;--blue-dark:#9a5f4e;--blue-soft:rgba(217,162,153,.24);
  --sd:#d9c8b3;--sl:#fffdfa;--heat-0:#e8dccb;
  --l1:#dcc5b2;--l2:#d9a299;--l3:#c48a7a;--l4:#9a5f4e;
  --grad:linear-gradient(135deg,#dcc5b2 0%,#d9a299 50%,#b77b68 100%);
  --on-accent:#ffffff;--glow:rgba(183,123,104,.32);
}
html[data-theme="light"][data-palette="sage"]{
  --bg:#ebf2d8;--panel:#fbffe4;--panel-2:#f2f7dc;--ink:#1f4a40;--muted:#5d8579;--line:rgba(31,74,64,.09);
  --blue:#3d8d7a;--blue-light:#a3d1c6;--blue-dark:#2b6b5c;--blue-soft:rgba(61,141,122,.13);
  --sd:#cdd8b6;--sl:#ffffff;--heat-0:#dfe8c8;
  --l1:#b3d8a8;--l2:#a3d1c6;--l3:#5fa894;--l4:#3d8d7a;
  --grad:linear-gradient(135deg,#b3d8a8 0%,#a3d1c6 40%,#3d8d7a 100%);
  --on-accent:#ffffff;--glow:rgba(61,141,122,.32);
}
html[data-theme="light"][data-palette="periwinkle"]{
  --bg:#e8f1fb;--panel:#fbfbfb;--panel-2:#eef6fd;--ink:#2e3566;--muted:#6b74a8;--line:rgba(46,53,102,.08);
  --blue:#7466e8;--blue-light:#c5baff;--blue-dark:#5546c9;--blue-soft:rgba(197,186,255,.3);
  --sd:#cfd9e8;--sl:#ffffff;--heat-0:#dde8f6;
  --l1:#e8f9ff;--l2:#c4d9ff;--l3:#c5baff;--l4:#7466e8;
  --grad:linear-gradient(135deg,#e8f9ff 0%,#c4d9ff 45%,#c5baff 100%);
  --on-accent:#2e3566;--glow:rgba(130,120,240,.3);
}

/* ---------- Dark-mode colour palettes (Menu → Theme → Dark) ----------
   Built from the 6 Color Hunt dark palettes. "midnight" = the original dark theme. */
html[data-theme="dark"][data-dpalette="forest"]{
  --bg:#092328;--panel:#0f2f33;--panel-2:#133a3c;--ink:#e3f1e6;--muted:#8db59c;--line:rgba(139,187,146,.1);
  --blue:#8bbb92;--blue-light:#b3d8b8;--blue-dark:#2a835f;--blue-soft:rgba(139,187,146,.16);
  --sd:#031316;--sl:#12383c;--heat-0:#143a3d;
  --l1:#12544f;--l2:#2a835f;--l3:#5a9f78;--l4:#8bbb92;
  --grad:linear-gradient(135deg,#8bbb92 0%,#2a835f 55%,#12544f 100%);
  --on-accent:#ffffff;--glow:rgba(42,131,95,.45);
}
html[data-theme="dark"][data-dpalette="cobalt"]{
  --bg:#080616;--panel:#110f2b;--panel-2:#16143a;--ink:#e9e9ff;--muted:#9897c8;--line:rgba(120,120,255,.1);
  --blue:#6a6af5;--blue-light:#9d9dff;--blue-dark:#2f2fe4;--blue-soft:rgba(47,47,228,.22);
  --sd:#020108;--sl:#1a1840;--heat-0:#1a1953;
  --l1:#1a1953;--l2:#162e93;--l3:#2f2fe4;--l4:#7d7dff;
  --grad:linear-gradient(135deg,#2f2fe4 0%,#162e93 100%);
  --on-accent:#ffffff;--glow:rgba(47,47,228,.5);
}
html[data-theme="dark"][data-dpalette="ultraviolet"]{
  --bg:#090040;--panel:#12074f;--panel-2:#180c5c;--ink:#f3ecff;--muted:#ad9fd6;--line:rgba(177,59,255,.12);
  --blue:#b13bff;--blue-light:#cf86ff;--blue-dark:#471396;--blue-soft:rgba(177,59,255,.2);
  --warning:#ffcc00;
  --sd:#040024;--sl:#1b0f63;--heat-0:#1d1063;
  --l1:#471396;--l2:#7b25cc;--l3:#b13bff;--l4:#ffcc00;
  --grad:linear-gradient(135deg,#b13bff 0%,#471396 100%);
  --on-accent:#ffffff;--glow:rgba(177,59,255,.45);
}
html[data-theme="dark"][data-dpalette="crimson"]{
  --bg:#001a3b;--panel:#00224d;--panel-2:#062b5a;--ink:#fdeef2;--muted:#a6b3cc;--line:rgba(255,32,78,.1);
  --blue:#ff204e;--blue-light:#ff6482;--blue-dark:#a0153e;--blue-soft:rgba(255,32,78,.16);
  --sd:#000d1f;--sl:#0a3163;--heat-0:#0b2f5e;
  --l1:#5d0e41;--l2:#a0153e;--l3:#d61a48;--l4:#ff204e;
  --grad:linear-gradient(135deg,#ff204e 0%,#a0153e 55%,#5d0e41 100%);
  --on-accent:#ffffff;--glow:rgba(255,32,78,.4);
}
html[data-theme="dark"][data-dpalette="ember"]{
  --bg:#0b192c;--panel:#10213a;--panel-2:#142a47;--ink:#f2f5fa;--muted:#93a6bf;--line:rgba(255,101,0,.1);
  --blue:#ff6500;--blue-light:#ff8f45;--blue-dark:#c94f00;--blue-soft:rgba(255,101,0,.16);
  --sd:#000000;--sl:#1a3150;--heat-0:#1e3e62;
  --l1:#5a3418;--l2:#a9480b;--l3:#e05800;--l4:#ff6500;
  --grad:linear-gradient(135deg,#ff8a3d 0%,#ff6500 50%,#d95300 100%);
  --on-accent:#ffffff;--glow:rgba(255,101,0,.4);
}
html[data-theme="dark"][data-dpalette="magenta"]{
  --bg:#12061d;--panel:#1c0a2b;--panel-2:#240e37;--ink:#fdebf5;--muted:#c198cf;--line:rgba(233,87,147,.1);
  --blue:#e95793;--blue-light:#f283b1;--blue-dark:#da0c81;--blue-soft:rgba(233,87,147,.16);
  --sd:#07010c;--sl:#2a1140;--heat-0:#2c1242;
  --l1:#610c9f;--l2:#940b92;--l3:#da0c81;--l4:#e95793;
  --grad:linear-gradient(135deg,#610c9f 0%,#940b92 35%,#da0c81 70%,#e95793 100%);
  --on-accent:#ffffff;--glow:rgba(218,12,129,.42);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{background:var(--bg);color:var(--ink);font-family:var(--font);line-height:1.5;min-height:100dvh;transition:background-color .3s ease,color .3s ease}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
img{display:block;max-width:100%}
[hidden]{display:none!important}
svg.ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.subtle{color:var(--muted);font-size:13px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- App shell ---------- */
.app{max-width:520px;margin:0 auto;padding:18px 16px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom));position:relative}
body.has-mini .app{padding-bottom:calc(var(--nav-h) + 120px + env(safe-area-inset-bottom))}

.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;font-size:22px;letter-spacing:-.01em;min-width:0}
.brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand svg{width:32px;height:32px;color:var(--blue)}
.topbar-actions{display:flex;align-items:center;gap:8px;flex:none}
.iconbtn{flex:none;width:46px;height:46px;border-radius:15px;background:var(--panel);box-shadow:var(--raise-sm);display:grid;place-items:center;color:var(--ink);position:relative;transition:transform .15s var(--ease),color .15s,box-shadow .2s}
.iconbtn:hover{color:var(--blue);transform:translateY(-1px)}
.iconbtn:active{transform:scale(.94);box-shadow:var(--inset)}
.iconbtn .badge-dot{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px var(--panel);animation:pulse 1.6s infinite}
.streak{display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:14px;color:#ec4c8b;padding:0 2px}
.streak svg{width:18px;height:18px}
@keyframes pulse{50%{transform:scale(1.35);opacity:.6}}

/* ---------- Pages ---------- */
.page{display:none}
.page.active{display:block;animation:pageIn .32s var(--ease)}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:4px 2px 16px}
.section-title h1{font-size:22px;font-weight:800;letter-spacing:-.01em}
.linkbtn{color:var(--blue);font-weight:700;font-size:14px;padding:6px 4px;border-radius:8px}
.linkbtn:hover{text-decoration:underline}
.card{background:var(--panel);border-radius:var(--r-lg);box-shadow:var(--raise);padding:18px}
.card + .card{margin-top:18px}
.card-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-weight:800;font-size:16px;margin-bottom:12px}
.card-title small{font-weight:600;color:var(--muted);font-size:12px}

/* ---------- Home: day header (compact) ---------- */
.day-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 2px;min-height:30px}
.day-head h1{font-size:15px;font-weight:800;line-height:1.2;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.day-head h1 span{font-size:13px;font-weight:600;color:var(--muted)}
.today-chip{flex:none;padding:5px 12px;border-radius:999px;background:var(--panel);box-shadow:var(--raise-sm);color:var(--blue);font-weight:700;font-size:12px}
.today-chip:active{box-shadow:var(--inset)}

/* ---------- Horizontal strips (dates / tags) ---------- */
.strip{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:12px 16px 14px;scroll-padding-inline:16px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.strip::-webkit-scrollbar{display:none}
#dateStrip{scroll-snap-type:x proximity;gap:7px;padding-top:8px;padding-bottom:10px}
.day{flex:0 0 auto;min-width:44px;padding:5px 6px 4px;border-radius:12px;background:var(--panel);box-shadow:var(--raise-sm);display:flex;flex-direction:column;align-items:center;gap:1px;scroll-snap-align:center;position:relative;transition:transform .2s var(--ease),box-shadow .2s,color .2s}
.day small{font-size:9.5px;line-height:1.3;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.day b{font-size:14px;font-weight:800;line-height:1.15}
.day i{width:4px;height:4px;border-radius:50%;background:transparent;margin-top:1px}
.day.has-task i{background:var(--blue)}
.day.all-done i{background:var(--blue)}
.day.today{outline:2px solid var(--blue);outline-offset:-2px}
.day.today small{color:var(--blue)}
.day:hover{transform:translateY(-1px)}
.day.active{background:var(--panel-2);color:var(--blue);box-shadow:inset 3px 3px 7px color-mix(in srgb,var(--sd) 90%,transparent),inset -3px -3px 7px var(--sl),0 0 0 1.5px color-mix(in srgb,var(--blue) 32%,transparent);outline:0}
.day.active small{color:inherit;opacity:.9}
.day.active i{background:var(--blue)!important}

.tag{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:999px;background:var(--panel);box-shadow:var(--raise-sm);font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap;transition:transform .15s,box-shadow .2s,color .2s}
.tag svg.ic{width:17px;height:17px;color:var(--cat,var(--muted))}
.tag .count{font-size:11px;font-weight:800;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--blue-soft);color:var(--blue);display:inline-grid;place-items:center}
.tag:hover{transform:translateY(-1px)}
.tag.active{box-shadow:var(--inset);color:var(--blue)}
.tag.active svg.ic{color:var(--blue)}

/* ---------- Task list ---------- */
.task-list{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.list-label{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--muted);text-transform:uppercase;margin:10px 4px -2px}
.task{--cat:var(--blue);display:flex;align-items:center;gap:12px;padding:14px 12px 14px 14px;border-radius:var(--r-md);background:var(--panel);box-shadow:var(--raise-sm);position:relative;overflow:hidden;animation:taskIn .3s var(--ease) both;transition:transform .2s var(--ease),opacity .2s,box-shadow .2s}
.task::before{content:"";position:absolute;inset:10px auto 10px 0;width:4px;border-radius:0 4px 4px 0;background:transparent}
.task.starred::before{background:var(--warning)}
.task:hover{transform:translateY(-1px)}
.task.removing{opacity:0;transform:translateX(30px) scale(.98)}
@keyframes taskIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.check{flex:none;position:relative;display:block;width:26px;height:26px;min-width:26px;cursor:pointer;line-height:0;box-sizing:border-box}
.check input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:2}
.check span{position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;border-radius:50%;border:2px solid color-mix(in srgb,var(--muted) 72%,var(--ink));box-shadow:var(--inset);background:var(--panel-2);display:grid;place-items:center;transition:background .2s,border-color .2s,box-shadow .2s}
.check span svg{position:absolute;left:50%;top:50%;display:block;width:15px;height:15px;margin:0;padding:0;transform:translate(-50%,-50%);overflow:visible;stroke:var(--on-accent);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .25s ease .05s;pointer-events:none}
.check input:checked + span{border-color:var(--blue-dark);background:var(--grad);box-shadow:0 3px 8px var(--glow)}
.check input:checked + span svg{stroke-dashoffset:0}
.check input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}

.task-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.task-title{font-weight:700;font-size:15.5px;line-height:1.35;overflow-wrap:anywhere;transition:color .2s}
.task.done .task-title{color:var(--muted)}
.task.done{opacity:.78}
.task-info{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.cat-pill{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 7px;border-radius:99px;background:color-mix(in srgb,var(--cat) 13%,transparent);color:var(--cat);font-weight:700;font-size:11.5px}
.cat-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

.task-actions{flex:none;display:flex;align-items:center;gap:6px}
.act{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--panel);box-shadow:var(--raise-sm);color:var(--muted);transition:color .15s,box-shadow .15s,transform .12s,background-color .15s}
.act svg.ic{width:18px;height:18px}
.act:hover{color:var(--blue)}
.act:active{transform:scale(.9);box-shadow:var(--inset)}
.act.star.on{color:var(--warning)}
.act.star.on svg{fill:currentColor}
.act.star:hover{color:var(--warning)}
/* Delete: visible neutral trash icon at rest, red on hover / focus / press */
.act.del{color:var(--muted)}
.act.del:hover,.act.del:focus-visible{color:var(--danger);background:var(--danger-soft);box-shadow:none}
.act.del:active{color:#fff;background:var(--danger)}

/* ---------- Empty state ---------- */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 20px 10px;animation:pageIn .35s var(--ease)}
.empty img{width:min(210px,62%);height:auto;margin-bottom:14px}
.empty h2{font-size:19px;font-weight:800;margin-bottom:6px}
.empty p{color:var(--muted);font-size:14px;max-width:290px}
.empty .primary{margin-top:16px;width:auto;padding:12px 22px}

/* ---------- Buttons / forms ---------- */
.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:12px 18px;border-radius:15px;background:var(--grad);color:var(--on-accent);font-weight:800;font-size:15px;box-shadow:0 8px 20px var(--glow);transition:transform .15s,box-shadow .2s,filter .2s}
.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.primary:active{transform:scale(.98)}
.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border-radius:15px;background:var(--panel);box-shadow:var(--raise-sm);font-weight:700;color:var(--ink)}
.secondary:active{box-shadow:var(--inset)}
.danger{background:var(--danger)!important;box-shadow:0 8px 20px rgba(229,72,77,.3)!important}
.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:16px}
.field input,.field select{width:100%;min-height:48px;padding:12px 14px;border-radius:14px;border:1.5px solid transparent;background:var(--panel-2);box-shadow:var(--inset);font-size:15px;font-weight:500;color:var(--ink);outline:none;transition:border-color .2s}
.field input:focus,.field select:focus{border-color:var(--blue)}
.field input::placeholder{color:var(--muted);opacity:.7}
.chip-group{display:flex;flex-wrap:wrap;gap:8px}
.chip-group label{cursor:pointer}
.chip-group input{position:absolute;opacity:0;pointer-events:none}
.chip-group span{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:99px;background:var(--panel);box-shadow:var(--raise-sm);font-size:13px;font-weight:700;color:var(--ink);transition:all .15s}
.chip-group span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--cat)}
.chip-group input:checked + span{box-shadow:var(--inset);color:var(--cat);background:color-mix(in srgb,var(--cat) 10%,var(--panel))}
.chip-group input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;background:var(--panel-2);margin-bottom:18px;font-weight:700;font-size:14px;cursor:pointer}
.switch-row small{display:block;font-weight:500;color:var(--muted);font-size:12px}
.switch{position:relative;width:46px;height:26px;flex:none}
.switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.switch span{position:absolute;inset:0;border-radius:99px;background:var(--heat-0);transition:background .2s}
.switch span::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:transform .2s var(--ease)}
.switch input:checked + span{background:var(--blue)}
.switch input:checked + span::after{transform:translateX(20px)}
.switch input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- Calendar ---------- */
.calendar-card{position:relative;overflow:hidden;padding:18px;background-color:var(--panel);background-size:cover;background-position:center}
.calendar-card::before{content:"";position:absolute;inset:0;background:color-mix(in srgb,var(--panel) 62%,transparent);pointer-events:none}
html[data-theme="dark"] .calendar-card::before{background:color-mix(in srgb,var(--panel) 84%,transparent)}
.calendar-card > *{position:relative}
.month-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.month-head strong{font-size:18px;font-weight:800}
.month-head button{width:40px;height:40px;border-radius:50%;background:var(--panel);box-shadow:var(--raise-sm);display:grid;place-items:center;color:var(--ink)}
.month-head button:active{box-shadow:var(--inset)}
.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;text-align:center}
.weekdays{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:8px}
.calday{aspect-ratio:1;border-radius:11px;background:var(--panel);box-shadow:0 2px 6px rgba(32,61,98,.08);font-weight:700;font-size:14px;position:relative;display:grid;place-items:center;transition:transform .15s,background .2s}
.calday:hover{transform:scale(1.07)}
.calday.muted{opacity:.45}
.calday.today{color:var(--blue);background:var(--blue-soft);box-shadow:0 0 0 2px var(--blue) inset}
.calday.selected{background:var(--panel-2);color:var(--blue);box-shadow:inset 3px 3px 7px color-mix(in srgb,var(--sd) 90%,transparent),inset -3px -3px 7px var(--sl),0 0 0 1.5px color-mix(in srgb,var(--blue) 34%,transparent)}
.calday.has-task::after{content:"";position:absolute;bottom:13%;left:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--blue)}
.calday.all-done::after{background:var(--blue)}
.calday.selected::after{background:var(--blue)}
.cal-hint{text-align:center;color:var(--muted);font-size:12px;margin-top:12px}
.cal-day-list{margin-top:18px}

/* ---------- Progress ---------- */
.stats-top{display:flex;flex-direction:column;align-items:center;gap:18px}
.ring{--p:0;width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--blue) calc(var(--p)*1%),var(--heat-0) 0);display:grid;place-items:center}
.ring-inner{width:120px;height:120px;border-radius:50%;background:var(--panel);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--inset)}
.ring-inner strong{font-size:30px;font-weight:800;line-height:1}
.ring-inner span{font-size:12px;color:var(--muted);margin-top:4px}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%}
.metric{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:16px;background:var(--panel);box-shadow:var(--raise-sm);font-size:12px;color:var(--muted);font-weight:600;text-align:center;transition:transform .15s}
.metric:hover{transform:translateY(-2px)}
.metric:active{box-shadow:var(--inset)}
.metric .mi{width:34px;height:34px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}
.metric .mi svg.ic{width:18px;height:18px}
.metric b{font-size:22px;color:var(--ink);font-weight:800;line-height:1.1}
.goal-card{display:grid;grid-template-columns:44px 1fr auto;gap:14px;align-items:center}
.goal-card .gi{width:44px;height:44px;border-radius:14px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}
.goal-card small{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
.goal-card h2{font-size:17px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.goal-card p{font-size:12.5px;color:var(--muted)}
.focus-chart svg{width:100%;height:auto;display:block;overflow:visible}
.focus-chart .grid{stroke:var(--line);stroke-width:1}
.focus-chart .axis{fill:var(--muted);font-size:10px;font-weight:600}
.focus-chart .line{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.focus-chart .pt{fill:var(--panel);stroke:var(--blue);stroke-width:2}
.focus-chart .pt.today{fill:var(--blue)}
.focus-chart .val{fill:var(--ink);font-size:10px;font-weight:800}
.chart-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin-top:6px}
.chart-note i{width:8px;height:8px;border-radius:50%;background:var(--blue)}
.heatmap-wrap{overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.heatmap{display:grid;grid-auto-flow:column;grid-template-rows:14px repeat(7,1fr);gap:3px;min-width:100%}
.heatmap .hm-month{font-size:10px;font-weight:700;color:var(--muted);white-space:nowrap;grid-row:1;overflow:visible}
.heatmap .hm-cell{width:100%;min-width:12px;aspect-ratio:1;border-radius:3px;background:var(--heat-0)}
.hm-cell.l1{background:var(--l1)}.hm-cell.l2{background:var(--l2)}.hm-cell.l3{background:var(--l3)}.hm-cell.l4{background:var(--l4)}
.hm-cell.future{opacity:.35}
.hm-cell.is-today{outline:1.5px solid var(--ink);outline-offset:1px}
.heat-legend{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:11px;color:var(--muted);margin-top:10px}
.heat-legend i{width:11px;height:11px;border-radius:3px;background:var(--heat-0)}
.cat-stats{display:flex;flex-direction:column;gap:14px}
.cat-row{--cat:var(--blue);display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center}
.cat-row .ci{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--cat) 14%,transparent);color:var(--cat)}
.cat-row .ci svg.ic{width:17px;height:17px}
.cat-row .cn{font-weight:700;font-size:14px}
.cat-row .cv{font-size:12px;font-weight:700;color:var(--muted)}
.cat-row .track{grid-column:2 / 4;height:6px;border-radius:99px;background:var(--heat-0);overflow:hidden;margin-top:-4px}
.cat-row .track span{display:block;height:100%;border-radius:inherit;background:var(--cat);transition:width .6s var(--ease)}

/* Today card (moved from Home) */
.today-card{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center}
.today-ring{--p:0;width:74px;height:74px;border-radius:50%;background:conic-gradient(var(--blue) calc(var(--p)*1%),var(--heat-0) 0);display:grid;place-items:center}
.today-ring b{width:58px;height:58px;border-radius:50%;background:var(--panel);display:grid;place-items:center;font-size:16px;font-weight:800}
.today-card h3{font-size:16px;font-weight:800}
.today-card p{font-size:13px;color:var(--muted);margin:2px 0 8px}
.today-bar{height:7px;border-radius:99px;background:var(--heat-0);overflow:hidden}
.today-bar span{display:block;height:100%;width:0;border-radius:inherit;background:var(--grad);transition:width .6s var(--ease)}
.today-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.today-chips span{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:99px;background:var(--blue-soft);color:var(--blue)}

/* ---------- Task stats page ---------- */
.stats-summary{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.stats-summary strong{font-size:34px;font-weight:800;color:var(--blue);line-height:1}

/* ---------- Music ---------- */
.music-hero{position:relative;overflow:hidden;border-radius:26px;padding:20px;min-height:170px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;background:#223;box-shadow:var(--raise);margin-bottom:20px;isolation:isolate}
.music-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transform:scale(1.05);transition:transform 6s ease}
.music-hero:hover img{transform:scale(1.12)}
.music-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,15,30,0) 10%,rgba(10,15,30,.78) 100%)}
.music-hero small{font-size:10.5px;font-weight:800;letter-spacing:.16em;opacity:.85}
.music-hero h2{font-size:22px;font-weight:800;line-height:1.2;margin:2px 0 4px}
.music-hero p{font-size:13px;opacity:.85}
.music-hero .hero-play{position:absolute;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;background:var(--grad);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 10px 24px rgba(0,0,0,.35);transition:transform .15s}
.music-hero .hero-play:hover{transform:scale(1.06)}
.music-hero .hero-play svg.ic{width:24px;height:24px}
.list-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 4px 10px;font-weight:800;font-size:15px}
.list-head small{font-weight:600;color:var(--muted);font-size:12px}
.music-list{display:flex;flex-direction:column;gap:10px}
.song{display:grid;grid-template-columns:22px 52px 1fr auto 40px;gap:12px;align-items:center;padding:10px 12px;border-radius:18px;background:var(--panel);box-shadow:var(--raise-sm);cursor:pointer;transition:transform .15s,box-shadow .2s}
.song:hover{transform:translateY(-1px)}
.song.current{box-shadow:0 0 0 2px var(--blue),var(--raise-sm)}
.song .num{font-size:13px;font-weight:800;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}
.song.current .num{color:var(--blue)}
.song .eq{display:none}
.song.playing .num{display:none}
.song.playing .eq{display:flex}
.eq{height:16px;align-items:flex-end;justify-content:center;gap:2px}
.eq i{width:3px;border-radius:2px;background:var(--blue);animation:eq 1s ease-in-out infinite}
.eq i:nth-child(2){animation-delay:-.3s}.eq i:nth-child(3){animation-delay:-.6s}
@keyframes eq{0%,100%{height:4px}50%{height:16px}}
.song img{width:52px;height:52px;border-radius:14px;object-fit:cover}
.song .tmeta{min-width:0}
.song strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song.current strong{color:var(--blue)}
.song p{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song .dur{font-size:12px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.song .play-btn{width:40px;height:40px;border-radius:50%;background:var(--panel);box-shadow:var(--raise-sm);display:grid;place-items:center;color:var(--blue)}
.song .play-btn svg.ic{width:17px;height:17px}
.song.current .play-btn{background:var(--grad);color:var(--on-accent);box-shadow:0 6px 14px var(--glow)}

/* Range sliders (seek + volume) */
.range{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:99px;background:linear-gradient(90deg,var(--blue) var(--pct,0%),var(--heat-0) var(--pct,0%));outline:none;cursor:pointer;margin:0}
.range::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--panel);border:4px solid var(--blue);box-shadow:0 2px 8px rgba(0,0,0,.2);transition:transform .15s}
.range::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:var(--panel);border:4px solid var(--blue);box-shadow:0 2px 8px rgba(0,0,0,.2)}
.range:active::-webkit-slider-thumb{transform:scale(1.25)}
.range:focus-visible{outline:2px solid var(--blue);outline-offset:6px}

/* Full player */
#playerPage{position:relative}
.player-bg{position:fixed;inset:-40px;z-index:-1;background-size:cover;background-position:center;filter:blur(48px) saturate(1.3);opacity:.35;transition:background-image .4s,opacity .4s;pointer-events:none}
html[data-theme="dark"] .player-bg{opacity:.28}
.player-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px}
.player-top .label{text-align:center;flex:1}
.player-top .label small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.16em;color:var(--muted)}
.player-top .label strong{font-size:14px}
.player-art{position:relative;width:min(300px,78vw);aspect-ratio:1;margin:0 auto;border-radius:32px;overflow:hidden;box-shadow:0 26px 50px -12px rgba(15,25,45,.45);transform:scale(.9);transition:transform .45s var(--ease)}
body.music-playing .player-art{transform:scale(1)}
.player-art img{width:100%;height:100%;object-fit:cover}
.visualizer{display:block;width:min(300px,78vw);height:46px;margin:14px auto 0}
.player-info{text-align:center;margin:10px 0 18px}
.player-info h2{font-size:23px;font-weight:800;line-height:1.2}
.player-info p{color:var(--muted);font-size:14px;margin-top:2px}
.player-seek .times{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);font-weight:700;margin-top:8px;font-variant-numeric:tabular-nums}
.player-controls{display:flex;align-items:center;justify-content:space-between;max-width:340px;margin:18px auto 20px}
.pc{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:var(--ink);position:relative;transition:transform .12s,color .15s}
.pc:active{transform:scale(.9)}
.pc svg.ic{width:24px;height:24px}
.pc.small{color:var(--muted)}
.pc.small svg.ic{width:20px;height:20px}
.pc.small.on{color:var(--blue)}
.pc .tag-mini{position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);font-size:9.5px;font-weight:800;color:var(--blue);white-space:nowrap}
.pc.big{width:76px;height:76px;background:var(--grad);color:var(--on-accent);box-shadow:0 12px 26px var(--glow)}
.pc.big svg.ic{width:30px;height:30px}
.pc.mid{width:56px;height:56px;background:var(--panel);box-shadow:var(--raise-sm)}
.player-volume{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:var(--panel);box-shadow:var(--raise-sm)}
.player-volume button{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--muted);flex:none}
.player-volume button:hover{color:var(--blue)}
.player-volume svg.ic{width:20px;height:20px}
.player-volume span{font-size:12px;font-weight:800;color:var(--muted);width:34px;text-align:right;font-variant-numeric:tabular-nums}
.up-next{margin-top:22px}

/* Mini player */
.mini-player{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));width:min(488px,calc(100% - 32px));display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;padding:8px 8px 8px 8px;border-radius:20px;background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 12px 30px rgba(20,40,70,.2);z-index:39;overflow:hidden;animation:pageIn .3s var(--ease);transition:transform .25s var(--ease),opacity .25s}
body.timer-open .mini-player{transform:translateX(-50%) translateY(calc(100% + 12px));opacity:0;pointer-events:none}
.mini-player img{width:46px;height:46px;border-radius:13px;object-fit:cover}
.mini-info{min-width:0;cursor:pointer}
.mini-info strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-info small{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.mini-controls{display:flex;align-items:center;gap:2px;direction:ltr;flex-direction:row;unicode-bidi:isolate}
.mini-controls button{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--ink)}
.mini-controls button:hover{color:var(--blue)}
.mini-controls svg.ic{width:18px;height:18px}
.mini-controls .mini-main{width:40px;height:40px;background:var(--grad);color:var(--on-accent);box-shadow:0 4px 12px var(--glow)}
.mini-controls .mini-main:hover{color:var(--on-accent)}
.mini-bar{position:absolute;left:0;top:0;height:3px;background:var(--grad);width:0;transition:width .25s linear}

/* ---------- Bottom nav ---------- */
.bottomnav{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));width:min(488px,calc(100% - 24px));height:var(--nav-h);display:grid;grid-template-columns:1fr 1fr 76px 1fr 1fr;align-items:center;padding:0 6px;border-radius:24px;background:color-mix(in srgb,var(--panel) 92%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(20,40,70,.16);z-index:50}
.navbtn{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;font-weight:600;color:var(--muted);padding:8px 0;border-radius:14px;transition:color .2s}
.navbtn svg.ic{width:22px;height:22px;transition:transform .2s var(--ease)}
.navbtn:hover{color:var(--ink)}
.navbtn.active{color:var(--blue);font-weight:800}
.navbtn.active svg.ic{transform:translateY(-2px)}
.navbtn .leaf{fill:currentColor;stroke:none}
.fab{justify-self:center;width:62px;height:62px;border-radius:50%;margin-top:-34px;background:var(--grad);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 10px 22px var(--glow),0 0 0 6px var(--bg);transition:transform .2s var(--ease)}
.fab svg.ic{width:28px;height:28px;stroke-width:2.6}
.fab:hover{transform:translateY(-2px) rotate(90deg)}
.fab:active{transform:scale(.92)}

/* ---------- Overlays / dialogs ---------- */
.overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(14,24,40,.38);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .22s ease,visibility .22s}
.overlay.show{opacity:1;visibility:visible}
.sheet{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:var(--panel);border-radius:26px;padding:22px;box-shadow:0 24px 60px rgba(10,20,40,.3);transform:translateY(16px) scale(.98);transition:transform .28s var(--ease)}
.overlay.show .sheet{transform:none}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.sheet-head h2{font-size:20px;font-weight:800}
.sheet-head .iconbtn{width:40px;height:40px;border-radius:13px}
.sheet-copy{color:var(--muted);font-size:14px;margin:-6px 0 16px}
@media (max-width:520px){
  .overlay.bottom{align-items:flex-end;padding:0}
  .overlay.bottom .sheet{width:100%;border-radius:26px 26px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom));transform:translateY(100%)}
  .overlay.bottom.show .sheet{transform:none}
}

.confirm{text-align:center;max-width:380px}
.confirm .sym{width:56px;height:56px;margin:0 auto 12px;border-radius:18px;display:grid;place-items:center;background:var(--danger-soft);color:var(--danger)}
.confirm .sym svg.ic{width:28px;height:28px}
.confirm h2{font-size:20px;font-weight:800;margin-bottom:6px}
.confirm p{color:var(--muted);font-size:14px;overflow-wrap:anywhere;margin-bottom:18px}
.confirm .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* Timer */
.timer-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.timer-mode{padding:10px 6px;border-radius:15px;background:var(--panel);box-shadow:var(--raise-sm);display:flex;flex-direction:column;align-items:center;color:var(--ink)}
.timer-mode strong{font-size:16px;font-weight:800}
.timer-mode span{font-size:11px;color:var(--muted);font-weight:600}
.timer-mode.active{box-shadow:var(--inset);color:var(--blue)}
.timer-ring{position:relative;width:min(230px,64vw);aspect-ratio:1;margin:0 auto 18px}
.timer-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.timer-ring .trk{stroke:var(--heat-0)}
.timer-ring .prog{stroke:var(--blue);stroke-linecap:round;transition:stroke-dashoffset .3s linear,stroke .3s}
.timer-ring.break .prog{stroke:var(--success)}
.timer-num{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.timer-num strong{font-size:48px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em;line-height:1}
.timer-num small{font-size:13px;color:var(--muted);margin-top:6px;font-weight:600}
.timer-running .timer-ring{animation:breathe 4s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.02)}}
.timer-custom{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-radius:15px;background:var(--panel-2);margin-bottom:14px;font-size:13px;font-weight:700;color:var(--muted)}
.timer-custom label{flex:1}
.timer-custom input{width:74px;min-height:40px;border-radius:11px;border:0;background:var(--panel);box-shadow:var(--inset);text-align:center;font-weight:800;font-size:15px;color:var(--ink)}
.timer-custom button{min-height:40px;padding:0 16px;border-radius:11px;background:var(--panel);box-shadow:var(--raise-sm);font-weight:800;color:var(--blue)}
.timer-controls{display:grid;grid-template-columns:1fr 2fr;gap:10px}
.timer-sessions{text-align:center;font-size:12px;color:var(--muted);margin-top:12px;font-weight:600}

/* Drawer */
.drawer-overlay{position:fixed;inset:0;z-index:100;background:rgba(14,24,40,.38);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s}
.drawer-overlay.show{opacity:1;visibility:visible}
.drawer{position:absolute;top:0;bottom:0;left:0;width:min(320px,86vw);background:var(--bg);padding:22px 18px calc(22px + env(safe-area-inset-bottom));overflow:auto;transform:translateX(-100%);transition:transform .3s var(--ease);border-radius:0 26px 26px 0;box-shadow:12px 0 40px rgba(10,20,40,.2)}
.drawer-overlay.show .drawer{transform:none}
.menu-group{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.menu-group h3{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--muted);margin:4px 4px 0}
.menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:15px;background:var(--panel);box-shadow:var(--raise-sm);font-weight:600;font-size:14px;color:var(--ink);text-align:left}
.menu-item svg.ic{width:20px;height:20px;color:var(--muted)}
.menu-item:hover svg.ic{color:var(--blue)}
.menu-item:active{box-shadow:var(--inset)}
.menu-item .end{margin-left:auto;font-size:12px;color:var(--muted);font-weight:700}
.menu-item.danger-text{color:var(--danger)}
.menu-item.danger-text svg.ic{color:var(--danger)}
.palette-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.palette{position:relative;display:flex;flex-direction:column;gap:8px;padding:8px 8px 10px;border-radius:16px;background:var(--panel);box-shadow:var(--raise-sm);text-align:left;font-size:12.5px;font-weight:700;color:var(--ink);transition:transform .15s,box-shadow .2s}
.palette:hover{transform:translateY(-2px)}
.palette .sw{display:flex;height:38px;border-radius:11px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.palette .sw i{flex:1}
.palette .btn-preview{height:8px;border-radius:99px}
.palette span{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 2px}
.palette .tick{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--blue);color:#fff;opacity:0;transform:scale(.6);transition:all .2s}
.palette .tick svg.ic{width:12px;height:12px;stroke-width:3}
.palette.active{box-shadow:0 0 0 2px var(--blue),var(--raise-sm)}
.palette.active .tick{opacity:1;transform:none}
.palette-note{font-size:11.5px;color:var(--muted);margin:2px 4px 0}
.app-version{text-align:center;font-size:11px;color:var(--muted)}

/* Search */
.search-overlay{align-items:flex-start;padding-top:calc(16px + env(safe-area-inset-top))}
.search-panel{width:min(488px,100%);display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-radius:18px;background:var(--panel);box-shadow:0 16px 40px rgba(10,20,40,.25);transform:translateY(-12px);transition:transform .25s var(--ease)}
.overlay.show .search-panel{transform:none}
.search-panel svg.ic{color:var(--muted)}
.search-panel input::-webkit-search-cancel-button{display:none}
.search-panel input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;padding:8px 0;color:var(--ink)}
.search-panel button{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--muted)}
.search-results{width:min(488px,100%);margin-top:12px;max-height:calc(100dvh - 120px);overflow:auto;display:flex;flex-direction:column;gap:10px;padding:4px}
.search-overlay{flex-direction:column;align-items:center;justify-content:flex-start}
.search-empty{color:#fff;text-align:center;font-weight:600;padding:20px;text-shadow:0 1px 4px rgba(0,0,0,.3)}

/* Toast */
.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + 26px + env(safe-area-inset-bottom));transform:translate(-50%,20px);display:flex;align-items:center;gap:14px;max-width:calc(100% - 32px);padding:12px 14px 12px 18px;border-radius:15px;background:#1c2b40;color:#fff;font-size:14px;font-weight:600;box-shadow:0 12px 30px rgba(0,0,0,.25);z-index:200;opacity:0;visibility:hidden;transition:opacity .2s,transform .25s var(--ease),visibility .2s}
html[data-theme="dark"] .toast{background:var(--ink);color:var(--bg)}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
body.has-mini .toast{bottom:calc(var(--nav-h) + 100px + env(safe-area-inset-bottom))}
.toast button{color:var(--blue-light);font-weight:800;padding:4px 8px;border-radius:8px}
html[data-theme="dark"] .toast button{color:var(--blue-dark)}

@media (max-width:430px){
  .brand{font-size:19px}
  .brand svg{width:27px;height:27px}
  .iconbtn{width:42px;height:42px;border-radius:14px}
}
@media (max-width:380px){
  .brand{font-size:17px;gap:6px}
  .brand svg{width:24px;height:24px}
  .topbar,.topbar-actions{gap:6px}
  .iconbtn{width:40px;height:40px}
}
@media (max-width:370px){
  .app{padding-inline:12px}
  .strip{margin:0 -12px;padding-inline:12px}
  .act{width:32px;height:32px;border-radius:10px}
  .task-actions{gap:4px}
}
@media (max-width:340px){
  .brand{font-size:15px}
  .iconbtn{width:38px;height:38px;border-radius:12px}
}

/* ---------- Theme picker groups ---------- */
.palette-sub{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--ink);margin:4px 4px -2px}
.palette-sub svg.ic{width:15px;height:15px;color:var(--muted)}
.palette .sw{align-items:stretch;padding:0;gap:0}
.palette.chosen{box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 35%,transparent),var(--raise-sm)}
.palette.chosen .tick{opacity:.45;transform:scale(.85)}

/* ---------- Motion / GSAP effects ---------- */
.fx-layer{position:fixed;inset:0;pointer-events:none;z-index:400;overflow:hidden}
.fx-layer i{position:absolute;left:0;top:0;will-change:transform,opacity}
.task.fx-busy,.task.flipping{transition:none!important}
.task-shine{position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;background:linear-gradient(100deg,transparent,color-mix(in srgb,var(--blue) 22%,transparent) 50%,transparent)}
.task-tint{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:var(--danger-soft);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--danger) 55%,transparent)}
.task-title .tt{background:linear-gradient(currentColor,currentColor) no-repeat 0 58%/0% 2px}
.task.done .task-title .tt{background-size:100% 2px}

/* Focus-session celebration */
.celebrate .cel-card{position:relative;width:min(380px,100%);text-align:center;background:var(--panel);border-radius:30px;padding:30px 22px 22px;box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden;isolation:isolate}
.celebrate .cel-card::before{content:"";position:absolute;left:-20%;right:-20%;top:-38%;height:75%;z-index:-1;background:radial-gradient(closest-side,var(--glow),transparent);opacity:.8;pointer-events:none}
.cel-badge{position:relative;width:132px;height:132px;margin:0 auto 16px;display:grid;place-items:center}
.cel-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.cel-ring circle{fill:none;stroke-width:7;stroke-linecap:round}
.cel-ring .trk{stroke:var(--heat-0)}
.cel-ring .prog{stroke:var(--blue)}
.cel-core{position:relative;width:88px;height:88px;border-radius:50%;background:var(--grad);color:var(--on-accent);display:grid;place-items:center;box-shadow:0 14px 30px var(--glow)}
.cel-check{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.cel-alt{display:none;width:42px!important;height:42px!important}
.celebrate.is-break .cel-check{display:none}
.celebrate.is-break .cel-alt{display:block}
.cel-wave{position:absolute;inset:22px;border-radius:50%;border:2px solid var(--blue);opacity:0}
.cel-rays{position:absolute;inset:0}
.cel-rays i{position:absolute;left:50%;top:50%;width:4px;height:16px;margin:-8px 0 0 -2px;border-radius:4px;background:var(--blue-light);opacity:0}
.cel-rays i:nth-child(even){background:var(--warning);height:10px;margin-top:-5px}
.celebrate h2{font-size:24px;font-weight:800;letter-spacing:-.01em;margin-bottom:4px}
.celebrate h2 .char{display:inline-block}
.celebrate p{color:var(--muted);font-size:14px;margin-bottom:18px}
.cel-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}
.cel-stats div{padding:10px 4px;border-radius:16px;background:var(--panel-2);box-shadow:var(--inset);display:flex;flex-direction:column;gap:2px}
.cel-stats b{font-size:20px;font-weight:800;color:var(--blue);font-variant-numeric:tabular-nums;line-height:1.15}
.cel-stats span{font-size:11px;color:var(--muted);font-weight:700}
.cel-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:10px}

.gsap-ready .page.active{animation:none}
.gsap-ready .empty{animation:none}
.intro-run,.intro-run *{transition:none!important}

/* ---------- Lite performance mode (weaker phones) ---------- */
html.perf-lite{--raise:4px 4px 9px var(--sd),-4px -4px 9px var(--sl);--raise-sm:2px 2px 5px var(--sd),-2px -2px 5px var(--sl);--inset:inset 2px 2px 4px var(--sd),inset -2px -2px 4px var(--sl)}
.perf-lite body{transition:none}
.perf-lite .overlay,.perf-lite .drawer-overlay{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(10,16,28,.58)}
.perf-lite .bottomnav,.perf-lite .mini-player{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--panel)}
.perf-lite .player-bg{display:none}
.perf-lite .music-hero img{transition:none}
.perf-lite .music-hero:hover img{transform:scale(1.05)}
.perf-lite .badge-dot,.perf-lite .timer-running .timer-ring{animation:none}
.perf-lite .sheet,.perf-lite .celebrate .cel-card{box-shadow:0 10px 28px rgba(0,0,0,.28)}
.perf-lite .celebrate .cel-card::before{display:none}
.perf-lite .fx-layer i{will-change:auto}
.menu-item small{display:block;font-weight:500;color:var(--muted);font-size:11.5px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* ---------- v28: palette spheres, urgency and dated task groups ---------- */
.palette{align-items:center;padding:14px 10px 10px;gap:12px}
.palette > .palette-caption{width:100%}
.palette .theme-orb{display:block;position:relative;flex:none;width:64px;height:64px;padding:0;border-radius:50%;
  background:radial-gradient(circle at 30% 23%,rgba(255,255,255,.85),rgba(255,255,255,.12) 29%,transparent 52%),
    radial-gradient(circle at 35% 28%,transparent 40%,rgba(0,0,0,.38) 100%),
    conic-gradient(from -35deg,var(--orb-1) 0deg 90deg,var(--orb-2) 90deg 180deg,var(--orb-3) 180deg 270deg,var(--orb-4) 270deg 360deg);
  box-shadow:inset -4px -6px 10px rgba(0,0,0,.16),inset 2px 2px 5px rgba(255,255,255,.5),0 7px 10px -5px rgba(0,0,0,.3);transition:transform .2s}
.palette:hover .theme-orb{transform:translateY(-2px) rotate(-8deg)}
.urgency-pill{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:2px 8px;font-size:11.5px;font-weight:700;color:var(--muted);background:var(--panel-2)}
.urgency-pill svg.ic{width:12px;height:12px}
.urgency-pill[data-urgency="low"]{color:var(--blue);background:var(--blue-soft)}
.urgency-pill[data-urgency="high"]{color:light-dark(#895400,#ffd084);background:light-dark(#fff1d9,#49321c)}
.urgency-pill[data-urgency="urgent"]{color:light-dark(#b52438,#ffacb9);background:light-dark(#ffe6eb,#4b1e2b)}
.task-date-group{display:flex;flex-direction:column;gap:12px;min-width:0}
.task-date-group + .task-date-group{margin-top:16px}
.task-date-heading{display:flex;align-items:center;gap:10px;padding:5px 3px 9px;border-bottom:1px solid var(--line);font-size:13px;font-weight:800;color:var(--ink)}
.task-date-heading time{flex:1;min-width:0}
.task-date-heading .date-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:var(--blue-soft);color:var(--blue);font-size:11px}
.search-results .task-date-heading{background:var(--panel);border-radius:12px;padding:10px 12px}
.desktop-home-summary{display:none}
/* The original phone layout stays intact; dashboard changes start at 1024px. */
@media (min-width:1024px){
  .app{max-width:1160px;padding:28px 32px calc(var(--nav-h) + 48px + env(safe-area-inset-bottom))}
  .topbar{margin-bottom:32px}
  #homePage.active{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px;align-items:start}
  .home-board{min-width:0}
  .desktop-home-summary{display:flex;flex-direction:column;gap:22px;padding-top:8px;min-width:0}
  .desktop-home-summary .card{margin:0;padding:22px}
  .desktop-home-summary .goal-card{grid-template-columns:44px 1fr;align-items:start}
  .desktop-home-summary .goal-card .linkbtn{grid-column:2;justify-self:start}
  .desktop-home-summary .goal-card h2{font-size:20px;margin:7px 0 9px}
  .desktop-home-summary .goal-card p{line-height:1.65}
  .desktop-home-summary .today-card{grid-template-columns:1fr;gap:18px}
  .desktop-home-summary .today-ring{width:90px;height:90px}
  .desktop-home-summary .today-card h3{font-size:18px}
  #calendarPage,#progressPage,#statsPage,#musicPage,#playerPage{max-width:760px;margin-inline:auto}
  .bottomnav{width:600px}
}


/* ---------- v29: desktop navigation and compact multi-column pages ---------- */
.desktop-search,.desktop-calendar-tools,.side-month{display:none}
.tag-rail,.calendar-months,.music-tracks,.player-media,.player-details{display:contents}
#previousMonthCard + #calendarCard{margin-top:0}
@media (min-width:1024px){
  .topbar{gap:20px;position:relative;z-index:60}
  .topbar .brand{flex:none}
  .topbar-actions{gap:14px}
  #searchBtn{display:none}
  .desktop-search{position:relative;display:flex;align-items:center;gap:10px;margin-left:auto;width:min(440px,100%);min-width:200px;height:46px;padding:0 14px;border-radius:15px;background:var(--panel);box-shadow:var(--inset);color:var(--muted)}
  .desktop-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
  .desktop-search input{flex:1;min-width:0;width:100%;height:100%;border:0;outline:none;background:none;font-size:14px;color:var(--ink)}
  .desktop-search input::placeholder{color:var(--muted)}
  .desktop-search input:focus-visible{outline:none}
  .desktop-search kbd{font:600 12px var(--font);border:1px solid var(--line);border-radius:6px;padding:1px 6px}
  .desktop-search-results{position:absolute;top:calc(100% + 14px);right:0;width:560px;max-width:calc(100vw - 80px);max-height:min(560px,calc(100dvh - 140px));overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--bg);box-shadow:0 18px 48px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:12px;color:var(--ink)}
  .desktop-search-results .search-empty{color:var(--muted);text-shadow:none;font-size:14px}
  .desktop-search-results .task{box-shadow:none;border:1px solid var(--line)}
  .desktop-search-results .task-date-heading{font-size:12px}
  .tag-rail{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:4px;margin:0 -4px}
  #tagStrip{margin:0;padding-inline:10px;scroll-padding-inline:10px;min-width:0;scrollbar-width:thin;scrollbar-color:var(--blue-light) transparent}
  #tagStrip::-webkit-scrollbar{display:block;height:4px}
  #tagStrip::-webkit-scrollbar-thumb{background:var(--blue-light);border-radius:99px}
  #tagStrip,#dateStrip{cursor:grab;user-select:none}
  #tagStrip.dragging,#dateStrip.dragging{cursor:grabbing;scroll-snap-type:none}
  .strip.dragging button{pointer-events:none}
  #calendarPage,#progressPage,#statsPage,#musicPage{max-width:none}
  .desktop-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
  .calendar-range{font-size:14px;font-weight:700;color:var(--muted)}
  .calendar-tools-actions{display:flex;align-items:center;gap:10px}
  .calendar-tools-actions .iconbtn{width:36px;height:36px;border-radius:12px}
  .calendar-tools-actions .today-chip{min-height:36px}
  .calendar-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
  .calendar-months .calendar-card{display:block;min-width:0;margin:0;padding:16px;border-radius:20px}
  .calendar-months .month-head{justify-content:center;min-height:28px;margin-bottom:14px}
  .calendar-months .month-head strong{font-size:16px}
  .calendar-months .month-head button,#calendarCard .cal-hint{display:none}
  .calendar-months .calendar-grid,.calendar-months .weekdays{gap:5px}
  .calendar-months .weekdays{font-size:10px}
  .calendar-months .calday{width:100%;height:clamp(30px,3vw,40px);aspect-ratio:auto;min-width:0;border-radius:9px;font-size:12px}
  .calendar-months .calday.has-task::after{width:4px;height:4px;margin-left:-2px;bottom:4px}
  .desktop-calendar-hint{justify-content:center;margin-top:16px;font-size:12px;color:var(--muted)}
  #progressPage.active{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
  #progressPage > .section-title{grid-column:1/-1;margin-bottom:0}
  #progressPage > .card{margin:0;min-width:0;padding:20px}
  #progressPage .stats-top{justify-content:center;gap:16px}
  #progressPage .ring{width:130px;height:130px}
  #progressPage .ring-inner{width:104px;height:104px}
  #progressPage .metrics{max-width:430px}
  #progressPage .metric{padding:10px 6px}
  #progressPage .focus-chart svg{max-height:210px}
  #progressPage .heatmap-wrap{max-width:460px;margin-inline:auto}
  #progressPage .cat-stats{max-height:230px;overflow:auto;padding:3px 6px 3px 0;scrollbar-width:thin}
  #progressPage .chart-note{font-size:11px}
  #statsList .task-date-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #statsList .task-date-heading{grid-column:1/-1}
  #statsPage .stats-summary{width:max-content;max-width:100%;padding:16px 22px}
  #musicPage.active{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px;align-items:start}
  #musicPage > .section-title{grid-column:1/-1;margin-bottom:0}
  #musicPage .music-hero{min-height:250px;margin:0;padding:24px}
  #musicPage .music-hero p{max-width:75%}
  .music-tracks{display:block;min-width:0}
  #playerPage{max-width:960px}
  #playerPage.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px 36px;align-items:center}
  #playerPage .player-top{grid-column:1/-1;margin:0}
  .player-media,.player-details{display:block;min-width:0}
  #playerPage .player-art{width:280px;max-width:100%}
  #playerPage .visualizer{width:280px;max-width:100%}
  #playerPage .player-details{padding:22px;border-radius:24px;background:var(--panel);box-shadow:var(--raise-sm)}
  #playerPage .up-next{grid-column:1/-1;margin-top:0}
  #playerPage #queueList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}


/* ---------- v30: desktop workspace refinements (phone styles unchanged) ---------- */
.tag-scroll-range,.month-summary,.calendar-agenda,.progress-caption{display:none}
.progress-ring-wrap,.metric-label{display:contents}
@media (min-width:1024px){
  .tag-rail{row-gap:0;margin-bottom:10px}
  #tagStrip{scrollbar-width:none;padding-bottom:9px;touch-action:pan-x}
  #tagStrip::-webkit-scrollbar{display:none}
  .tag-scroll-range{display:block;grid-column:1;width:100%;height:14px;margin:0;appearance:none;-webkit-appearance:none;cursor:ew-resize;background:transparent;accent-color:var(--blue)}
  .tag-scroll-range::-webkit-slider-runnable-track{height:4px;border-radius:8px;background:var(--heat-0)}
  .tag-scroll-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:48px;height:10px;margin-top:-3px;border-radius:8px;background:var(--blue);box-shadow:0 1px 4px var(--glow)}
  .tag-scroll-range::-moz-range-track{height:4px;border-radius:8px;background:var(--heat-0)}
  .tag-scroll-range::-moz-range-thumb{width:48px;height:10px;border:0;border-radius:8px;background:var(--blue)}
  .tag-scroll-range:disabled{opacity:.3}
  #calendarPage .section-title,#progressPage .section-title{margin-top:0}
  .desktop-calendar-tools:not(.desktop-calendar-hint){padding:10px 14px;background:var(--panel-2);border:1px solid var(--line);border-radius:16px;margin-bottom:16px}
  .calendar-range{font-size:13px;color:var(--ink)}
  .calendar-months{gap:16px}
  .calendar-months .calendar-card{background-color:var(--panel);border:1px solid var(--line);padding:16px;border-radius:20px;box-shadow:var(--raise-sm);overflow:hidden}
  .calendar-months .calendar-card[data-current-month="true"]{border-color:color-mix(in srgb,var(--blue) 55%,var(--panel));box-shadow:0 0 0 1px var(--blue-soft),var(--raise-sm)}
  .calendar-months .month-head{justify-content:space-between;min-height:26px;margin-bottom:10px}
  .calendar-months .calendar-grid{gap:4px}
  .calendar-months .month-head strong{font-size:16px;letter-spacing:-.02em}
  .calendar-months .calendar-card[data-current-month="true"] .month-head::after{content:"THIS MONTH";font-size:8px;font-weight:800;letter-spacing:.04em;padding:4px 6px;border-radius:6px;color:var(--blue);background:var(--blue-soft)}
  .calendar-months .weekdays{font-weight:700;font-size:10px;margin-bottom:8px}
  .calendar-months .calday{height:28px;background:transparent;box-shadow:none;border:1px solid transparent;font-size:12px;border-radius:9px}
  .calendar-months .calday:hover{background:var(--panel-2);transform:none;border-color:var(--line)}
  .calendar-months .calday.muted{opacity:.28}
  .calendar-months .calday.has-task{background:var(--blue-soft)}
  .calendar-months .calday.today{border-color:var(--blue);box-shadow:none;color:var(--blue);background:var(--blue-soft)}
  .calendar-months .calday.selected{background:color-mix(in srgb,var(--blue) 10%,var(--panel));color:var(--blue);border-color:color-mix(in srgb,var(--blue) 50%,var(--line));box-shadow:inset 2px 2px 5px color-mix(in srgb,var(--sd) 85%,transparent),inset -2px -2px 5px var(--sl)}
  .calendar-months .calday.has-task::after{bottom:3px}
  .month-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
  .month-summary strong{color:var(--ink);font-weight:700}
  .desktop-calendar-hint{justify-content:flex-start;font-size:11px;margin:12px 3px 16px}
  .calendar-agenda{display:block;border:1px solid var(--line);padding:16px 18px;box-shadow:var(--raise-sm)}
  .agenda-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
  .agenda-head small{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--muted);margin-bottom:3px}
  .agenda-head h2{font-size:16px;font-weight:800;line-height:1.3}
  .agenda-actions{display:flex;gap:16px;align-items:center;flex:none}
  .agenda-actions .primary{width:auto;min-height:36px;padding:7px 12px;font-size:12px;border-radius:11px;box-shadow:none}
  .agenda-actions .primary svg.ic{width:15px;height:15px}
  .agenda-actions .linkbtn{font-size:12px}
  .agenda-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:176px;overflow:auto;padding:2px;scrollbar-width:thin;overscroll-behavior:contain}
  .agenda-tasks .task{box-shadow:none;border:1px solid var(--line);background:var(--panel-2);padding:10px 12px;gap:10px}
  .agenda-tasks .task-title{font-size:13px}
  .agenda-tasks .act{width:30px;height:30px;border-radius:9px;box-shadow:none}
  .agenda-tasks .check{width:23px;height:23px}
  .agenda-empty{grid-column:1/-1;padding:12px;text-align:center;font-size:13px;color:var(--muted);border:1px dashed var(--line);border-radius:12px}
  #progressPage.active{grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:stretch}
  #progressPage > .section-title{order:0;grid-column:1/-1;margin:0 2px 0}
  #progressPage > .stats-top,#progressPage .metrics{display:contents}
  #progressPage > .stats-top{padding:0}
  .progress-ring-wrap{grid-column:span 3;order:1;display:flex;align-items:center;gap:14px;padding:16px;background:var(--panel);border-radius:20px;border:1px solid var(--line);box-shadow:var(--raise-sm);min-width:0}
  #progressPage .ring{width:72px;height:72px;flex:none}
  #progressPage .ring-inner{width:58px;height:58px;box-shadow:none}
  #progressPage .ring-inner strong{font-size:19px}
  #progressPage .ring-inner span{display:none}
  .progress-caption{display:block;min-width:0}
  .progress-caption strong{display:block;font-size:13px;font-weight:800;line-height:1.4}
  .progress-caption small{font-size:11px;color:var(--muted)}
  #progressPage .metric{grid-column:span 3;order:1;display:grid;grid-template-columns:42px minmax(0,1fr);gap:1px 12px;padding:20px;text-align:left;align-content:center;justify-items:start;border:1px solid var(--line);border-radius:20px;box-shadow:var(--raise-sm)}
  #progressPage .metric .mi{grid-row:1/3;width:38px;height:38px;border-radius:12px;align-self:center}
  #progressPage .metric .metric-label{display:block;font-size:12px;color:var(--muted);font-weight:600}
  #progressPage .metric b{grid-column:2;font-size:27px;line-height:1.25}
  #progressPage .metric[data-stats="completed"] .mi{background:color-mix(in srgb,var(--success) 12%,var(--panel));color:var(--success)}
  #progressPage .metric[data-stats="remaining"] .mi{background:color-mix(in srgb,var(--warning) 12%,var(--panel));color:var(--warning)}
  #progressPage > .focus-chart{grid-column:span 7;order:2;box-shadow:var(--raise-sm);border:1px solid var(--line)}
  #progressPage .focus-chart svg{height:174px;max-height:174px}
  #progressPage .chart-note{font-size:11px;margin-top:8px}
  #progressPage > .category-card{grid-column:span 5;order:2;box-shadow:var(--raise-sm);border:1px solid var(--line)}
  #progressPage .cat-stats{max-height:204px;padding-right:7px;gap:12px}
  #progressPage > .activity-card{grid-column:1/-1;order:3;display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px 28px;align-items:center;box-shadow:var(--raise-sm);border:1px solid var(--line)}
  #progressPage .activity-card .card-title{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0;align-self:end}
  #progressPage .activity-card .heatmap-wrap{grid-column:2;grid-row:1/3;margin:0;max-width:none;overflow:visible;padding:3px}
  #progressPage .activity-card .heatmap{grid-template-rows:14px repeat(7,12px);grid-auto-columns:16px;gap:3px;min-width:0;width:max-content}
  #progressPage .activity-card .hm-cell{width:20px;min-width:0;aspect-ratio:auto;height:12px;border-radius:3px}
  #progressPage .activity-card .heat-legend{grid-column:1;grid-row:2;justify-content:flex-start;align-self:start;margin:0}
}


/* ---------- v31: desktop navigation and true square calendar cells ---------- */
.desktop-nav-label,.desktop-nav-key{display:none}
@media (min-width:1024px){
  .app{padding-bottom:48px}
  body.has-mini .app{padding-bottom:120px}
  .topbar{margin-bottom:20px}
  .bottomnav{position:sticky;top:16px;bottom:auto;left:auto;transform:none;width:100%;height:62px;display:flex;gap:8px;padding:8px;margin:0 0 24px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:var(--raise-sm);backdrop-filter:none;-webkit-backdrop-filter:none;z-index:50}
  .bottomnav .navbtn{height:44px;min-width:118px;display:flex;flex-direction:row;justify-content:center;gap:9px;padding:10px 18px;font-size:13px;font-weight:700;border-radius:12px;transition:background .18s,color .18s}
  .bottomnav .navbtn svg.ic{width:19px;height:19px;transform:none}
  .bottomnav .navbtn:hover{background:var(--panel-2);color:var(--ink)}
  .bottomnav .navbtn.active{background:var(--blue-soft);color:var(--blue)}
  .bottomnav .fab{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;width:auto;height:42px;min-width:148px;margin:0 0 0 auto;padding:10px 16px;border-radius:12px;font-size:13px;font-weight:800;box-shadow:0 4px 10px var(--glow);transform:none;transition:filter .18s,transform .18s}
  .bottomnav .fab svg.ic{width:19px;height:19px;stroke-width:2.3}
  .bottomnav .fab:hover{transform:translateY(-1px);filter:brightness(1.06)}
  .bottomnav .fab:active{transform:scale(.98)}
  .desktop-nav-label{display:inline}
  .desktop-nav-key{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:6px;font:600 10px var(--font);border:1px solid currentColor;opacity:.65;border-radius:5px}
  .mini-player{left:auto;right:max(24px,calc((100vw - 1096px)/2));bottom:24px;transform:none;width:390px}
  body.timer-open .mini-player{transform:translateY(calc(100% + 32px))}
  .toast{bottom:24px}
  body.has-mini .toast{bottom:110px}
  .calendar-months .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:auto;align-items:start;gap:5px}
  .calendar-months .weekdays{gap:5px}
  .calendar-months .calday{width:100%;height:auto;min-height:0;min-width:0;aspect-ratio:1 / 1;padding:0;border-radius:8px;background:var(--panel-2);border:1px solid var(--line);font-variant-numeric:tabular-nums}
  .calendar-months .calday:hover{border-color:var(--blue);background:var(--blue-soft)}
  .calendar-months .calday.has-task{background:var(--blue-soft)}
  .calendar-months .calday.selected{background:var(--grad);color:var(--on-accent);border-color:transparent}
  .calendar-months .calday.today:not(.selected){border-color:var(--blue)}
  .calendar-months .calday.has-task::after{bottom:4px}
}


/* ---------- v32: compact level indicators and square activity days ---------- */
.task-level{--level-color:var(--muted);display:inline-flex;align-items:center;gap:6px;padding:2px 3px 2px 7px;border-inline-start:1px solid var(--line);font-size:11.5px;font-weight:700;line-height:1.4;white-space:nowrap;color:var(--muted)}
.task-level[data-urgency="low"]{--level-color:var(--blue)}
.task-level[data-urgency="normal"]{--level-color:var(--muted)}
.task-level[data-urgency="high"]{--level-color:light-dark(#a76608,#f4c16f)}
.task-level[data-urgency="urgent"]{--level-color:light-dark(#cc344d,#ff91a5)}
.level-signal{display:inline-flex;align-items:flex-end;gap:2px;width:18px;height:13px;flex:none}
.level-signal i{display:block;width:3px;border-radius:1px;background:var(--heat-0)}
.level-signal i:nth-child(1){height:4px}
.level-signal i:nth-child(2){height:7px}
.level-signal i:nth-child(3){height:10px}
.level-signal i:nth-child(4){height:13px}
.level-signal i.filled{background:var(--level-color)}
.task-level .level-name{color:var(--level-color)}
/* Same-size width and height at every breakpoint, including the phone map. */
.heatmap{grid-template-rows:14px repeat(7,auto)}
.heatmap .hm-cell{height:auto;aspect-ratio:1 / 1}
@media (min-width:1024px){
  #progressPage .activity-card .heatmap{grid-template-rows:14px repeat(7,20px);grid-auto-columns:20px;gap:3px}
  #progressPage .activity-card .hm-cell{width:20px;height:20px;aspect-ratio:1 / 1;border-radius:3px}
  #progressPage .activity-card .heat-legend .hm-cell{width:11px;height:11px;aspect-ratio:1 / 1}
}


/* ---------- v33: scrolling-only category rail, calendar art and tighter spacing ---------- */
@media (min-width:1024px){
  .app{max-width:1320px;padding:20px 24px 32px}
  body.has-mini .app{padding-bottom:108px}
  .topbar{margin-bottom:16px}
  .bottomnav{margin-bottom:18px}
  #homePage.active{gap:24px}
  .tag-rail{margin:0 0 8px;gap:0}
  #tagStrip{padding-inline:6px;scroll-padding-inline:6px}
  .tag-scroll-range{width:calc(100% - 12px);margin-inline:6px}
  /* Keep three compact months even when the surrounding page gets wider. */
  .calendar-months{max-width:1120px;margin-inline:auto}
  .calendar-months .calendar-card{background-size:cover;background-position:center}
  .calendar-months .calendar-card::before{background:color-mix(in srgb,var(--panel) 45%,transparent)}
  html[data-theme="dark"] .calendar-months .calendar-card::before{background:color-mix(in srgb,var(--panel) 70%,transparent)}
  .calendar-months .calday{background:color-mix(in srgb,var(--panel) 85%,transparent)}
  .calendar-months .calday.has-task{background:color-mix(in srgb,var(--blue) 18%,var(--panel))}
  .calendar-months .calday:hover{background:var(--panel);border-color:var(--blue)}
  .calendar-months .calday.selected{background:var(--grad);border-color:transparent}
  .calendar-months .calday.muted{opacity:.4}
  .calendar-months .month-summary{border-top-color:color-mix(in srgb,var(--ink) 15%,transparent)}
  .mini-player{right:max(24px,calc((100vw - 1272px)/2))}
}


/* ---------- v34: independent weekly planner ---------- */
.planner-title{align-items:center;flex-wrap:wrap}
.planner-title h1{font-size:22px}
.planner-independent{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:99px;background:var(--blue-soft);color:var(--blue);font-size:10px;font-weight:800;white-space:nowrap}
.planner-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:18px;margin-bottom:14px}
.planner-week-nav{display:flex;align-items:center;gap:8px}
.planner-week-nav .iconbtn{width:34px;height:34px;border-radius:10px;box-shadow:none;background:var(--panel-2)}
.planner-week-nav .iconbtn svg.ic{width:17px;height:17px}
.planner-week-title{font-size:15px;font-weight:800;line-height:1.4}
.planner-week-title small{display:block;font-size:11px;font-weight:500;color:var(--muted)}
.planner-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.planner-tools .today-chip{min-height:36px}
.planner-tools .primary{width:auto;min-height:36px;padding:8px 12px;border-radius:11px;font-size:12px;box-shadow:none}
.planner-tools .primary svg.ic{width:16px;height:16px}
.planner-jump{position:relative;display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);font-weight:700}
.planner-jump input{width:128px;min-height:34px;background:var(--panel-2);border:1px solid var(--line);border-radius:9px;padding:6px;font-size:11px;color:var(--ink)}
.planner-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 2px 14px;font-size:12px;color:var(--muted)}
.planner-summary strong{color:var(--ink);font-weight:800}
.planner-progress{display:flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap}
.planner-progress-track{width:80px;height:5px;border-radius:10px;background:var(--heat-0);overflow:hidden}
.planner-progress-track span{display:block;height:100%;background:var(--grad);width:0;transition:width .25s}
.planner-day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:12px}
.planner-day-tabs button{display:flex;flex-direction:column;align-items:center;padding:6px 2px;border:1px solid var(--line);border-radius:11px;background:var(--panel);font-size:10px;color:var(--muted)}
.planner-day-tabs b{font-size:14px;color:var(--ink)}
.planner-day-tabs button[aria-pressed="true"]{background:var(--panel-2);border-color:transparent;box-shadow:inset 3px 3px 7px color-mix(in srgb,var(--sd) 90%,transparent),inset -3px -3px 7px var(--sl),0 0 0 1.5px color-mix(in srgb,var(--blue) 32%,transparent);color:var(--blue)}.planner-day-tabs button[aria-pressed="true"] b{color:var(--blue)}
.planner-scroll{position:relative;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--blue-light) transparent;margin:0 -4px;padding:4px 4px 14px;overscroll-behavior-x:contain}
.planner-board{display:grid;grid-template-columns:repeat(7,minmax(250px,1fr));gap:12px;align-items:start}
.planner-day{min-width:0;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--panel-2);scroll-snap-align:start;min-height:320px;transition:background .15s,border-color .15s}
.planner-day.is-today{border-color:color-mix(in srgb,var(--blue) 55%,var(--panel));background:color-mix(in srgb,var(--blue) 4%,var(--panel-2))}
.planner-day.drag-over{background:var(--blue-soft);outline:2px dashed var(--blue);outline-offset:-3px}
.planner-day-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.planner-day-heading{display:flex;align-items:center;gap:8px}
.planner-day-heading b{font-size:17px;font-weight:800;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--panel)}
.planner-day.is-today .planner-day-heading b{background:var(--grad);color:var(--on-accent)}
.planner-day-heading h2{font-size:12px;line-height:1.25}
.planner-day-heading small{font-size:10px;color:var(--muted)}
.planner-day-head > button{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:var(--blue)}
.planner-day-head > button:hover{background:var(--blue-soft)}
.planner-day-head > button svg.ic{width:16px;height:16px}
.plan-list{display:flex;flex-direction:column;gap:10px}
.plan-card{padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 2px 6px color-mix(in srgb,var(--sd) 24%,transparent);overflow-wrap:anywhere;min-width:0}
.plan-card[draggable="true"]{cursor:grab}
.plan-card.dragging{opacity:.4}
.plan-card.done{opacity:.7}
.plan-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}
.plan-card-top .check{width:22px;height:22px}
.plan-time{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--muted);font-weight:700}
.plan-time svg.ic{width:12px;height:12px}
.plan-card h3{font-size:13px;line-height:1.45;font-weight:750}
.plan-card.done h3{text-decoration:line-through;color:var(--muted)}
.plan-notes{font-size:11px;line-height:1.5;color:var(--muted);white-space:pre-wrap;margin-top:6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.plan-actions{display:flex;align-items:center;gap:4px;margin-top:10px;padding-top:6px;border-top:1px solid var(--line)}
.plan-actions button{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--muted)}
.plan-actions button:hover{background:var(--blue-soft);color:var(--blue)}
.plan-actions .plan-delete{margin-left:auto}
.plan-actions .plan-delete:hover{background:var(--danger-soft);color:var(--danger)}
.plan-actions svg.ic{width:15px;height:15px}
.plan-empty{display:flex;flex-direction:column;align-items:center;gap:7px;justify-content:center;width:100%;min-height:130px;border:1px dashed color-mix(in srgb,var(--muted) 30%,transparent);border-radius:12px;color:var(--muted);font-size:11px;padding:12px;text-align:center}
.plan-empty svg.ic{width:19px;height:19px;color:var(--blue)}
.plan-empty:hover{background:var(--blue-soft);color:var(--blue)}
.planner-help{font-size:11px;line-height:1.6;color:var(--muted);margin:8px 2px 0}
.planner-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#plannerForm textarea{width:100%;resize:vertical;min-height:84px;max-height:200px;padding:12px 14px;border:1.5px solid transparent;border-radius:14px;background:var(--panel-2);box-shadow:var(--inset);font:500 14px var(--font);color:var(--ink)}
#plannerForm textarea:focus{outline:0;border-color:var(--blue)}
@media (min-width:1024px){
  .planner-board{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}
  .planner-day{min-height:370px;padding:10px}
  .planner-day-tabs{display:none}
  .planner-toolbar{padding:14px 18px}
  .bottomnav .navbtn{min-width:108px;padding-inline:14px}
  #plannerPage .section-title{margin-top:0}
}
@media (min-width:1024px) and (max-width:1199px){
  .planner-board{gap:8px}
  .planner-day{padding:7px}
  .planner-day-heading{gap:5px}
  .planner-day-heading b{width:26px;height:28px;font-size:15px}
  .plan-card{padding:8px}
  .plan-card h3{font-size:12px}
  .plan-actions{gap:1px}
}
@media (max-width:1023px){
  .bottomnav{grid-template-columns:1fr 1fr 64px 1fr 1fr}
  .bottomnav .navbtn{font-size:10px}
  .bottomnav .navbtn svg.ic{width:20px;height:20px}
  .planner-tools{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
  .planner-tools .planner-jump{justify-content:flex-end}
  .planner-tools .primary{grid-column:1/-1;width:100%}
  .planner-week-nav{width:100%;justify-content:space-between}
  .planner-week-title{text-align:center}
}
@media (max-width:350px){
  .bottomnav{grid-template-columns:1fr 1fr 56px 1fr 1fr;padding-inline:4px}
  .bottomnav .navbtn{font-size:9px}
  .bottomnav .fab{width:52px;height:52px}
  .planner-jump{width:100%;justify-content:flex-end}
  .planner-jump input{width:118px}
}


/* ---------- v35: Planner-inspired personal board ---------- */
#plannerPage{--pl-line:color-mix(in srgb,var(--ink) 12%,transparent)}
.pl-workspace-head{display:flex;align-items:center;gap:13px;margin:2px 0 20px}
.pl-workspace-icon{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:10px;color:#fff;background:linear-gradient(140deg,#287b66,#0d665d)}
.pl-workspace-icon svg.ic{width:25px;height:25px}
.pl-workspace-head h1{font-size:23px;letter-spacing:-.03em;line-height:1.2}
.pl-workspace-head p{font-size:12px;color:var(--muted);margin-top:5px}
.pl-workspace-head .planner-independent{margin-left:auto;background:var(--panel-2);color:var(--muted);border:1px solid var(--pl-line);font-weight:600}
.pl-viewbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--pl-line);margin-bottom:18px;min-height:49px}
.pl-view-tabs{display:flex;gap:24px;align-items:stretch}
.pl-view-tabs button{display:flex;align-items:center;gap:7px;padding:12px 0 14px;position:relative;font-size:13px;color:var(--muted);font-weight:650;border-radius:3px}
.pl-view-tabs button svg.ic{width:17px;height:17px}
.pl-view-tabs button[aria-selected="true"]{color:var(--ink);font-weight:800}
.pl-view-tabs button[aria-selected="true"]::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--blue);border-radius:3px 3px 0 0}
.pl-viewbar > .primary{width:auto;min-height:34px;font-size:12px;box-shadow:none;border-radius:6px;padding:7px 13px;margin-bottom:9px}
.pl-viewbar > .primary svg.ic{width:16px;height:16px}
.pl-board-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px;font-size:12px}
.pl-board-search{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--pl-line);border-radius:6px;padding:0 10px;min-width:180px;width:250px;height:35px}
.pl-board-search svg.ic{width:16px;height:16px;color:var(--muted)}
.pl-board-search input{border:0;outline:0;min-width:0;width:100%;height:100%;background:none;font-size:12px}
.pl-board-search input:focus-visible{outline:none}
.pl-board-search:focus-within{outline:2px solid var(--blue);outline-offset:1px}
.pl-toolbar-field{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}
.pl-toolbar-field select{background:var(--panel);color:var(--ink);border:1px solid var(--pl-line);border-radius:6px;min-height:35px;padding:6px 24px 6px 9px;font-size:12px;max-width:150px}
.pl-board-count{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}
.pl-filter-clear{font-size:11px;color:var(--blue);padding:5px}
.pl-kanban-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:2px 2px 14px;margin:0 -2px}
.pl-kanban{display:flex;gap:18px;align-items:flex-start;min-height:410px}
.pl-bucket{flex:0 0 286px;width:286px;min-width:0;padding:0 0 16px;border-radius:8px;min-height:380px}
.pl-bucket.drag-over{background:var(--blue-soft);outline:2px dashed var(--blue);outline-offset:5px}
.pl-bucket-head{display:flex;align-items:center;gap:8px;padding:0 2px 12px;min-height:34px}
.pl-bucket-head h2{font-size:14px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-bucket-dot{width:7px;height:7px;border-radius:50%;background:var(--bucket-color,var(--blue));flex:none}
.pl-bucket-count{font-size:11px;color:var(--muted)}
.pl-bucket-head button{margin-left:auto;color:var(--muted);width:25px;height:25px;display:grid;place-items:center;border-radius:4px}
.pl-bucket-head button:hover{background:var(--panel)}
.pl-bucket-head button svg.ic{width:14px;height:14px}
.pl-bucket-add{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid var(--pl-line);border-radius:6px;background:var(--panel);color:var(--muted);font-size:12px;text-align:left;margin-bottom:10px}
.pl-bucket-add:hover{border-color:var(--blue);color:var(--blue)}
.pl-bucket-add svg.ic{width:15px;height:15px}
.pl-bucket-empty{font-size:12px;line-height:1.6;color:var(--muted);padding:18px 10px;text-align:center}
.pl-new-bucket{flex:0 0 180px;width:180px;display:flex;align-items:center;gap:8px;align-self:flex-start;font-size:13px;font-weight:700;color:var(--muted);padding:5px 8px 14px}
.pl-new-bucket svg.ic{width:17px;height:17px}
.pl-new-bucket:hover{color:var(--blue)}
#plannerPage .plan-card{border-radius:7px;padding:13px;background:var(--panel);border:1px solid var(--pl-line);box-shadow:0 1px 2px rgba(0,0,0,.05);cursor:pointer;transition:box-shadow .15s,border-color .15s}
#plannerPage .plan-card:hover{border-color:color-mix(in srgb,var(--blue) 40%,var(--panel));box-shadow:0 3px 9px rgba(0,0,0,.08)}
#plannerPage .plan-card.dragging{opacity:.35}
#plannerPage .plan-card-top{justify-content:flex-start;align-items:flex-start;gap:9px;margin:0}
#plannerPage .plan-card-top h3{font-size:13px;line-height:1.5;font-weight:700;flex:1;min-width:0}
#plannerPage .plan-card .check{width:19px;height:19px;margin-top:1px}
#plannerPage .plan-card .check span{box-shadow:none;background:transparent;border:2px solid color-mix(in srgb,var(--muted) 72%,var(--ink))}
#plannerPage .plan-card .check input:checked + span{background:var(--blue);border-color:var(--blue-dark);box-shadow:none}
#plannerPage .plan-list{gap:10px}
#plannerPage .plan-notes{margin:9px 0 0 28px;-webkit-line-clamp:2;font-size:11px}
.pl-card-label{display:inline-flex;align-items:center;font-size:10px;font-weight:700;border-radius:4px;padding:3px 8px;margin-bottom:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:color-mix(in srgb,var(--label-color,var(--blue)) 12%,var(--panel));color:var(--label-color,var(--blue))}
.pl-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0 28px;font-size:10px;color:var(--muted)}
.pl-card-meta > span{display:inline-flex;align-items:center;gap:4px}
.pl-card-meta svg.ic{width:12px;height:12px}
.pl-card-meta .is-overdue{color:var(--danger)}
.pl-card-meta .pl-priority-urgent{color:var(--danger)}
.pl-card-meta .pl-priority-high{color:light-dark(#916109,#f4c16f)}
#plannerPage .plan-actions{margin-top:11px;padding-top:7px;gap:3px;border-top:1px solid var(--pl-line)}
.pl-card-status{display:inline-flex;align-items:center;gap:5px;margin-right:auto;font-size:10px;color:var(--muted);min-width:0}
.pl-card-status i{width:9px;height:9px;border-radius:50%;border:1.5px solid var(--muted);flex:none}
.pl-card-status[data-status="inprogress"] i{border-color:var(--blue);background:linear-gradient(90deg,var(--blue) 50%,transparent 50%)}
.pl-card-status[data-status="completed"] i{border-color:var(--success);background:var(--success)}
#plannerPage .plan-actions button{width:24px;height:24px;border-radius:4px}
#plannerPage .plan-actions .plan-delete{margin-left:0}
#plannerWeekView .plan-date{display:none}
#plannerWeekView .pl-card-status{font-size:0}
#plannerWeekView .plan-actions{gap:1px}
#plannerWeekView .pl-card-meta,#plannerWeekView .plan-notes{margin-left:0}
#plannerWeekView .plan-card{padding:10px}
#plannerWeekView .plan-card-top h3{font-size:12px}
#plannerWeekView .planner-toolbar{box-shadow:none;border-radius:8px}
#plannerWeekView .planner-day{border-radius:9px}
#plannerWeekView .planner-help,#plannerBoardView .planner-help{margin-top:12px;font-size:11px}
.pl-checklist-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:8px}
.pl-checklist{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}
.pl-checklist-row{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0;padding:7px 9px;border-radius:6px;background:var(--panel-2)}
.pl-checklist-row input{accent-color:var(--blue);width:15px;height:15px;flex:none}
.pl-checklist-row label{flex:1;overflow-wrap:anywhere}
.pl-checklist-row.is-done label{text-decoration:line-through;color:var(--muted)}
.pl-checklist-row button{display:grid;place-items:center;width:22px;height:22px;color:var(--muted);flex:none}
.pl-checklist-row svg.ic{width:14px;height:14px}
.pl-checklist-add{display:flex;gap:8px;margin-bottom:20px}
.pl-checklist-add input{min-width:0;flex:1;height:36px;padding:8px 10px;border:1px solid var(--line);background:var(--panel-2);border-radius:6px;font-size:12px}
.pl-checklist-add button{font-size:12px;font-weight:700;color:var(--blue);padding:6px 10px;border:1px solid var(--line);border-radius:6px}
#plannerOverlay .field input,#plannerOverlay .field select,#plannerForm textarea{box-shadow:none;border:1px solid var(--line);border-radius:6px;background:var(--panel-2);font-size:13px;min-height:40px;padding:9px 11px}
#plannerOverlay .field{margin-bottom:14px;font-size:11px;gap:6px}
#plannerOverlay .sheet-copy{font-size:12px}
#plannerOverlay .primary,#plannerBucketOverlay .primary{box-shadow:none;border-radius:6px;font-size:13px;min-height:40px}
#plannerBucketDelete{width:100%;margin-top:12px;font-size:12px;color:var(--danger);min-height:38px;box-shadow:none;border:1px solid var(--line);border-radius:6px}
.pl-chart-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.pl-chart-stat{background:var(--panel);border:1px solid var(--pl-line);border-radius:8px;padding:18px}
.pl-chart-stat small{display:block;font-size:12px;color:var(--muted)}
.pl-chart-stat b{font-size:27px;font-weight:750;display:block;margin-top:5px}
.pl-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.pl-chart-panel{background:var(--panel);border:1px solid var(--pl-line);border-radius:8px;padding:20px}
.pl-chart-panel h2{font-size:15px;margin-bottom:20px}
.pl-chart-row{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px;margin-bottom:15px}
.pl-chart-row:last-child{margin-bottom:0}
.pl-chart-row .track{grid-column:1/-1;height:7px;border-radius:10px;background:var(--heat-0);overflow:hidden}
.pl-chart-row .track span{display:block;height:100%;border-radius:10px;background:var(--bar-color,var(--blue))}
@media (min-width:1024px){
  #plannerOverlay{justify-content:flex-end;padding:0}
  #plannerOverlay .sheet{width:460px;height:100dvh;max-height:100dvh;border-radius:0;padding:24px;box-shadow:-12px 0 32px rgba(0,0,0,.15);transform:translateX(20px)}
  #plannerOverlay.show .sheet{transform:none}
}
@media (max-width:700px){
  .pl-workspace-head{gap:10px;margin-bottom:14px}
  .pl-workspace-head h1{font-size:21px}
  .pl-workspace-head .planner-independent{display:none}
  .pl-view-tabs{gap:17px}
  .pl-view-tabs button{font-size:12px;gap:5px}
  .pl-view-tabs button svg.ic{width:14px;height:14px}
  .pl-viewbar{gap:8px}
  .pl-viewbar > .primary{font-size:11px;padding:7px 9px;white-space:nowrap}
  .pl-board-toolbar{gap:10px}
  .pl-board-search{width:100%;flex-basis:100%}
  .pl-toolbar-field{font-size:10px;gap:5px}
  .pl-toolbar-field select{max-width:128px;font-size:11px;padding-right:15px}
  .pl-board-count{margin-left:0}
  .pl-bucket{flex-basis:min(286px,calc(100vw - 46px));width:min(286px,calc(100vw - 46px))}
  .pl-chart-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pl-chart-grid{grid-template-columns:1fr}
}

@media (max-width:350px){.pl-view-tabs{gap:14px}.pl-view-tabs button svg.ic{display:none}.pl-viewbar > .primary{font-size:10px;padding-inline:8px}}

/* ---------- v36: multiple plans, list view and expanded details ---------- */
.pl-projectbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.pl-projectbar label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:var(--muted)}
.pl-projectbar select{min-width:170px;max-width:320px;height:35px;border:1px solid var(--pl-line);background:var(--panel);border-radius:6px;padding:5px 26px 5px 10px;font-size:12px;color:var(--ink)}
.pl-projectbar > button{display:flex;align-items:center;gap:6px;min-height:35px;padding:7px 10px;font-size:12px;font-weight:600;border:1px solid var(--pl-line);border-radius:6px;background:var(--panel);color:var(--ink)}
.pl-projectbar > button svg.ic{width:14px;height:14px}
.pl-projectbar > button:hover{color:var(--blue);border-color:var(--blue)}
#plannerProjectDescription{max-width:700px;overflow-wrap:anywhere}
.pl-list-scroll{overflow-x:auto;border:1px solid var(--pl-line);border-radius:8px;background:var(--panel);scrollbar-width:thin}
.pl-list-table{border-collapse:collapse;width:100%;min-width:850px;text-align:left;font-size:12px}
.pl-list-table th{background:var(--panel-2);padding:12px;font-size:11px;font-weight:750;color:var(--muted);border-bottom:1px solid var(--pl-line);white-space:nowrap}
.pl-list-table td{padding:13px 12px;border-bottom:1px solid var(--pl-line);vertical-align:middle}
.pl-list-table tr:last-child td{border-bottom:0}
.pl-list-table tbody tr:hover{background:var(--panel-2)}
.pl-list-table .pl-list-check{width:36px;padding-right:0}
.pl-list-check input{accent-color:var(--blue);width:16px;height:16px;cursor:pointer}
.pl-list-title{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:180px;max-width:310px;text-align:left}
.pl-list-title strong{font-weight:700;font-size:12px;overflow-wrap:anywhere}
.pl-list-title .pl-card-label{margin:0;padding:2px 6px;font-size:9px}
.pl-list-table tr.is-done .pl-list-title strong{text-decoration:line-through;color:var(--muted)}
.pl-list-table .pl-card-status{white-space:nowrap;font-size:11px}
.pl-list-date{white-space:nowrap;font-size:11px}
.pl-list-date.overdue{color:var(--danger)}
.pl-list-date small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.pl-list-actions{display:flex;gap:4px}
.pl-list-actions button{display:grid;place-items:center;width:26px;height:26px;border-radius:4px;color:var(--muted)}
.pl-list-actions button:hover{color:var(--blue);background:var(--blue-soft)}
.pl-list-actions svg.ic{width:15px;height:15px}
.pl-list-empty{padding:32px;text-align:center;color:var(--muted);font-size:13px}
.pl-list-priority[data-priority="urgent"]{color:var(--danger);font-weight:700}
.pl-list-priority[data-priority="high"]{color:light-dark(#916109,#f4c16f);font-weight:700}
.pl-item-links{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.pl-item-link{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:6px;font-size:12px}
.pl-item-link svg.ic{width:15px;height:15px;flex:none;color:var(--muted)}
.pl-item-link a{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--blue);text-decoration:none}
.pl-item-link a:hover{text-decoration:underline}
.pl-item-link button{display:grid;place-items:center;flex:none;width:22px;height:22px;color:var(--muted)}
.pl-link-add{display:grid;grid-template-columns:1fr auto;gap:7px;margin-bottom:20px}
.pl-link-add input{min-width:0;grid-column:1/-1;padding:8px 10px;border:1px solid var(--line);background:var(--panel-2);border-radius:6px;font-size:12px;color:var(--ink)}
.pl-link-add input[type="url"]{grid-column:1}
.pl-link-add button{font-size:12px;padding:6px 10px;border-radius:6px;border:1px solid var(--line);color:var(--blue);font-weight:700}
#plannerProjectForm textarea{width:100%;min-height:84px;padding:10px 12px;resize:vertical;background:var(--panel-2);color:var(--ink);border:1px solid var(--line);border-radius:8px;font-size:13px}
#plannerProjectDelete{width:100%;margin-top:12px;min-height:38px;border:1px solid var(--line);border-radius:6px;color:var(--danger);box-shadow:none;font-size:12px}
#plannerProjectForm .primary{box-shadow:none;border-radius:6px}
#plannerFilters .pl-board-search{width:220px}
#plannerAdd{display:none}
@media (max-width:700px){
  .pl-projectbar{gap:8px}
  .pl-projectbar label{width:100%}
  .pl-projectbar select{flex:1;min-width:0;max-width:none}
  .pl-viewbar{flex-wrap:wrap;gap:0;align-items:center}
  .pl-view-tabs{gap:18px}
  .pl-view-tabs button{font-size:12px}
  .pl-view-tabs button svg.ic{display:none}
  .pl-viewbar > .primary{font-size:10px;padding:6px 8px;margin-left:auto}
  #plannerFilters .pl-board-search{width:100%}
  #plannerFilters .pl-toolbar-field{flex:1 1 calc(50% - 10px);justify-content:space-between}
  #plannerFilters .pl-toolbar-field select{flex:1;min-width:0;max-width:145px}
}
@media (max-width:380px){
  .pl-view-tabs{gap:15px}
  .pl-viewbar > .primary{margin-left:0;margin-top:5px}
}

.pl-workspace-head > div:not(.pl-workspace-icon){min-width:0}
#plannerProjectTitle{overflow-wrap:anywhere}

/* v37: table-first planner */
.pl-table-tools{display:flex;align-items:center;gap:16px;min-height:42px;padding:10px 0 12px;color:var(--muted);font-size:11px}
#plannerBoardCount{font-weight:700;color:var(--ink)}
#plannerTableHint{margin-left:auto}
#plannerGroupField{margin-left:auto}
.pl-list-scroll{border:1px solid var(--pl-line);border-radius:8px;overflow-x:auto;scrollbar-width:thin}
.pl-list-table{min-width:850px;background:var(--panel)}
.pl-list-table th,.pl-list-table td{border-right:1px solid var(--pl-line)}
.pl-list-table th:last-child,.pl-list-table td:last-child{border-right:0}
.pl-list-table th{padding:0;height:44px;text-align:left}
.pl-list-table th:first-child,.pl-list-table th:nth-last-child(-n+2){padding:12px}
.pl-list-table th button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;padding:12px;color:inherit;font:inherit;white-space:nowrap;text-align:left;border-radius:0}
.pl-list-table th button:hover{background:var(--blue-soft);color:var(--blue)}
.pl-list-table th[aria-sort]:not([aria-sort="none"]){color:var(--blue)}
.pl-sort-arrow{font-size:13px;opacity:.65}
.pl-list-table .pl-list-check{padding-right:8px;text-align:center}
.pl-list-table tbody tr:last-child td{border-bottom:1px solid var(--pl-line)}
.pl-list-table tfoot td{padding:0}
#plannerTableAdd{display:flex;align-items:center;gap:9px;width:100%;padding:14px 16px;text-align:left;color:var(--blue);font-size:12px;font-weight:700;border-radius:0}
#plannerTableAdd:hover{background:var(--blue-soft)}
#plannerTableAdd .ic{width:16px;height:16px}
.pl-table-scroll-hint{display:none;font-size:11px;color:var(--muted);margin:10px 0}
@media(max-width:900px){.pl-table-scroll-hint{display:block}#plannerTableHint{font-size:10px}}


/* ---------- v38: planner placement, settings theme screen, mobile planner cards ---------- */
@media (max-width:1023px){
  .topbar{justify-content:flex-start;gap:6px}
  .topbar .planner-top-link{display:flex;flex:none;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:7px 10px;border-radius:12px;background:var(--panel);box-shadow:var(--raise-sm);font-size:11px;font-weight:800;color:var(--muted)}
  .topbar .planner-top-link svg.ic{width:17px;height:17px}
  .topbar .planner-top-link span{display:none}
  .topbar .planner-top-link{width:40px;min-width:40px;padding:0}
  .topbar .planner-top-link.active{background:var(--blue-soft);color:var(--blue)}
  .topbar .brand{margin-right:auto;font-size:17px;gap:5px}
  .topbar .brand svg{width:23px;height:23px}
  .topbar-actions{margin-left:auto}
  .bottomnav{grid-template-columns:1fr 1fr 64px 1fr 1fr}
}
@media (max-width:380px){
  .topbar{gap:5px}
  .topbar .planner-top-link{min-height:38px;padding:6px 8px;font-size:10px;gap:4px}
  .topbar .planner-top-link svg.ic{width:16px;height:16px}
  .topbar .brand{font-size:15px}
  .topbar .brand svg{width:21px;height:21px}
}
@media (max-width:350px){.bottomnav{grid-template-columns:1fr 1fr 56px 1fr 1fr;padding-inline:4px}}
.settings-intro{margin:0 2px 16px;color:var(--muted);font-size:13px;line-height:1.55}
.settings-option{display:flex;align-items:center;gap:13px;width:100%;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--raise-sm);color:var(--ink);text-align:left}
.settings-option:hover{border-color:var(--blue)}
.settings-option-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:13px;background:var(--blue-soft);color:var(--blue)}
.settings-option-icon .ic{width:22px;height:22px}
.settings-option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.settings-option-copy strong{font-size:14px;font-weight:800}
.settings-option-copy small{font-size:11px;color:var(--muted)}
.settings-chevron{width:18px;height:18px;color:var(--muted)}
.theme-page-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px;margin:14px 0 12px}
.theme-page-grid .palette{padding:10px;border:1px solid var(--line)}
.theme-page-grid .theme-orb{width:68px;height:68px}
.theme-page-grid .palette-caption{font-size:12px}
@media(max-width:700px){
  #plannerPage .pl-workspace-icon{display:none}
  .pl-projectbar{display:flex;align-items:center;flex-wrap:nowrap;gap:7px}
  .pl-projectbar label{width:auto;flex:1;min-width:0;gap:6px;font-size:11px}
  .pl-projectbar select{width:100%;min-width:0;max-width:none;padding-inline:8px;font-size:11px}
  .pl-projectbar>button{width:36px;min-width:36px;height:36px;min-height:36px;justify-content:center;padding:0;border-radius:9px}
  .pl-projectbar>button svg.ic{width:17px;height:17px}
  .pl-projectbar>button span{display:none}
  .pl-table-tools{gap:8px;flex-wrap:wrap;min-height:32px;padding:4px 0 10px}
  #plannerTableHint{display:none}
  #plannerListView .pl-list-scroll{overflow:visible;border:0;border-radius:0;background:transparent}
  #plannerListView .pl-list-table{display:block;width:100%;min-width:0;border-collapse:separate;border-spacing:0;background:transparent}
  #plannerListView .pl-list-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #plannerListView .pl-list-table tbody{display:grid;gap:10px}
  #plannerListView .pl-list-table tbody tr{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:7px 12px 5px;border:1px solid var(--pl-line);border-radius:11px;background:var(--panel);box-shadow:0 2px 8px color-mix(in srgb,var(--sd) 14%,transparent)}
  #plannerListView .pl-list-table tbody tr:hover{background:var(--panel)}
  #plannerPage .pl-list-table tbody td{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:38px;padding:7px 1px;border:0;border-bottom:1px solid var(--line);border-right:0;text-align:right;overflow-wrap:anywhere;font-size:11px}
  #plannerPage .pl-list-table tbody td::before{content:attr(data-label);flex:none;color:var(--muted);font-size:10px;font-weight:700;text-align:left}
  #plannerPage .pl-list-table tbody td.pl-list-check{position:absolute;left:12px;top:17px;z-index:1;display:block;width:20px;height:20px;min-height:0;padding:0;border:0}
  #plannerPage .pl-list-table .pl-list-check input{width:18px;height:18px;margin:0}
  #plannerPage .pl-list-table tbody td[data-label="Title"]{grid-column:1/-1;justify-content:flex-start;min-height:48px;padding:6px 0 8px 29px;border-bottom:1px solid var(--line)}
  #plannerPage .pl-list-table tbody td[data-label="Title"]::before{display:none}
  #plannerPage .pl-list-title{width:100%;max-width:none;min-width:0;gap:5px}
  #plannerPage .pl-list-title strong{font-size:13px;line-height:1.4}
  #plannerPage .pl-list-table tbody td[data-label="Dates"]{align-items:flex-end}
  #plannerPage .pl-list-date small{margin-top:2px;font-size:9px}
  #plannerPage .pl-list-table tbody td[data-label="Actions"]{grid-column:1/-1;min-height:40px;padding:5px 0 0;border-bottom:0}
  #plannerPage .pl-list-actions{gap:7px}
  #plannerPage .pl-list-actions button{width:32px;height:32px;border-radius:8px;background:var(--panel-2);color:var(--blue)}
  #plannerListView .pl-list-table tbody .pl-list-empty{grid-column:1/-1;display:block;padding:22px 12px;border:0;text-align:center}
  #plannerListView .pl-list-table tfoot,#plannerListView .pl-list-table tfoot tr,#plannerListView .pl-list-table tfoot td{display:block;width:100%;border:0;padding:0}
  #plannerTableAdd{margin-top:10px;padding:12px 14px;border:1px dashed var(--pl-line);border-radius:10px;background:var(--panel);font-size:12px}
  .pl-table-scroll-hint{display:none}
}

/* v39: language, finance, mobile navigation refinements */
.localized-date-trigger{display:none;width:100%;min-height:42px;margin-top:5px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);color:var(--ink);text-align:start;font:inherit;font-size:13px}
.localized-date-trigger:not([hidden]){display:block}
.localized-date-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important}
.date-picker-sheet{width:min(420px,100%)}.date-picker-month{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px;margin:0 0 12px}.date-picker-month strong{text-align:center;font-size:15px;font-weight:800}.date-picker-month button{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--panel-2);color:var(--ink)}.date-picker-month .ic{width:19px;height:19px}
.date-picker-weekdays,.date-picker-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.date-picker-weekdays{margin-bottom:6px;color:var(--muted);font-size:11px;font-weight:800}.date-picker-weekdays span{padding:6px 0}.date-picker-day{min-width:0;aspect-ratio:1;border-radius:11px;color:var(--ink);font-size:13px;font-weight:650}.date-picker-day:hover{background:var(--blue-soft);color:var(--blue)}.date-picker-day.muted{opacity:.38}.date-picker-day.today{box-shadow:inset 0 0 0 1px var(--blue)}.date-picker-day.selected{background:var(--panel-2);color:var(--blue);box-shadow:inset 3px 3px 7px color-mix(in srgb,var(--sd) 90%,transparent),inset -3px -3px 7px var(--sl),0 0 0 1.5px color-mix(in srgb,var(--blue) 34%,transparent)}
@media(max-width:520px){.date-picker-sheet{max-height:calc(100dvh - 10px);padding:18px 16px calc(20px + env(safe-area-inset-bottom))}}
html[lang="fa"]{direction:rtl}
@font-face{font-family:'Vazir';src:url("../fonts/focusflow-font-01.woff2") format('woff2');font-weight:400;font-style:normal;font-display:swap;}
html[lang="fa"] body,html[lang="fa"] button,html[lang="fa"] input,html[lang="fa"] select,html[lang="fa"] textarea,html[lang="fa"] option{font-family:'Vazir',var(--font)}

html[lang="fa"] .topbar{direction:rtl}
html[lang="fa"] .drawer{left:auto;right:0;transform:translateX(100%);border-radius:26px 0 0 26px;box-shadow:-12px 0 40px rgba(10,20,40,.2)}
html[lang="fa"] .pl-list-table{text-align:right}
html[lang="fa"] .pl-list-table th button{text-align:right}
html[lang="fa"] .calendar-months .calendar-card[data-current-month="true"] .month-head::after{content:"ماه جاری"}
.settings-block{padding:14px;margin:0 0 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--raise-sm)}
.settings-block-head{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.settings-block-head strong{font-size:14px;font-weight:800}
.settings-block-head small{font-size:11px;color:var(--muted)}
.language-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.language-options button{min-height:40px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--ink);font-weight:700}
.language-options button.active{background:var(--blue-soft);border-color:var(--blue);color:var(--blue)}
.finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.finance-stat{padding:13px 10px;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:var(--raise-sm);min-width:0}
.finance-stat small{display:block;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:7px}
.finance-stat strong{display:block;font-size:clamp(12px,3.5vw,17px);font-weight:800;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.finance-stat.income strong{color:var(--success)}.finance-stat.expense strong{color:var(--danger)}
.finance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px}
.finance-toolbar h2{font-size:16px;font-weight:800}
.finance-toolbar .primary{width:auto;min-height:38px;padding:8px 12px;font-size:12px;box-shadow:none}
.finance-toolbar .primary .ic{width:16px;height:16px}
.finance-list{display:flex;flex-direction:column;gap:9px}
.finance-empty{padding:24px 14px;text-align:center;border:1px dashed var(--line);border-radius:14px;color:var(--muted);font-size:13px;background:var(--panel)}
.finance-row{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--raise-sm)}
.finance-kind{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--blue-soft);color:var(--blue)}
.finance-kind.expense{color:var(--danger);background:var(--danger-soft)}
.finance-detail{flex:1;min-width:0}.finance-detail strong{display:block;font-size:13px;overflow-wrap:anywhere}.finance-detail small{display:block;margin-top:3px;font-size:10px;color:var(--muted)}
.finance-amount{flex:none;text-align:end;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}.finance-amount.income{color:var(--success)}.finance-amount.expense{color:var(--danger)}
.finance-remove{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:9px;color:var(--muted)}
.finance-remove:hover{background:var(--danger-soft);color:var(--danger)}
@media(max-width:350px){.finance-summary{gap:6px}.finance-stat{padding:10px 7px}.finance-stat small{font-size:9px}}
@media(min-width:1024px){.finance-summary{max-width:900px}.finance-list{max-width:900px}.finance-toolbar{max-width:900px}}

/* v48: Finance denominations, session unlock, global search and mirrored desktop navigation */
.font-license{margin-top:14px;border-top:1px solid var(--line);padding:12px 2px;color:var(--muted);font-size:11px}.font-license summary{cursor:pointer;font-weight:700}.font-license pre{max-height:280px;overflow:auto;white-space:pre-wrap;direction:ltr;text-align:left;font:10px/1.5 ui-monospace,monospace;color:var(--muted);background:var(--panel-2);padding:10px;border-radius:8px}


/* v48 finance denomination and mirrored desktop navigation */
#timerTime,#playerCur,#playerDur,.dur{direction:ltr;unicode-bidi:isolate}
.finance-income-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:8px 0 13px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--raise-sm)}
.finance-income-strip small{display:block;color:var(--muted);font-size:11px;font-weight:700}.finance-income-strip strong{display:block;margin-top:3px;font-size:16px;font-variant-numeric:tabular-nums}.finance-income-strip .secondary{width:auto;min-height:34px;padding:7px 11px;font-size:11px}
.finance-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);align-items:stretch;gap:14px;margin-bottom:16px}.finance-overview .finance-summary{grid-template-columns:1fr;align-content:start;margin:0;gap:9px}.finance-overview .finance-stat{padding:13px 15px}.finance-pie-card{min-width:0;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:var(--raise-sm)}.finance-pie-card h2{font-size:14px;font-weight:800;margin:0 0 13px}.finance-pie-layout{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr);align-items:center;gap:14px}.finance-pie-chart{width:min(100%,170px);aspect-ratio:1;border-radius:50%;border:1px solid color-mix(in srgb,var(--ink) 10%,transparent);box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);margin:auto}.finance-pie-legend{display:flex;flex-direction:column;gap:7px;min-width:0}.finance-pie-legend-row{display:grid;grid-template-columns:10px minmax(48px,1fr) auto;align-items:center;gap:6px;font-size:10px}.finance-pie-legend-row i{width:9px;height:9px;border-radius:50%;background:var(--pie-color)}.finance-pie-legend-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.finance-pie-legend-row strong{font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}.finance-pie-legend-row small{grid-column:2/4;color:var(--muted);font-size:9px;direction:ltr;unicode-bidi:isolate}.finance-pie-empty{color:var(--muted);font-size:11px;line-height:1.5}.finance-row-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.finance-category-tag,.finance-ratio{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:750;background:color-mix(in srgb,var(--pie-color,#94a3b8) 13%,var(--panel));color:var(--ink)}.finance-ratio{background:var(--panel-2);color:var(--muted);direction:ltr;unicode-bidi:isolate}.finance-security-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.finance-security-actions>*{flex:1;min-width:145px}.finance-security-note{display:block;margin-top:12px;color:var(--muted);font-size:10px;line-height:1.5}.finance-security-error{display:block;min-height:17px;color:var(--danger);font-size:11px;margin:4px 0}.finance-reset-link{display:block;margin:8px auto 0;font-size:11px}.planner-finance-view{padding-bottom:8px}.planner-finance-view .finance-pie-card{min-height:100%}.search-result-heading{display:flex;align-items:center;gap:8px;margin:4px 2px 0;padding:8px 4px;color:var(--muted);font-size:12px;font-weight:800}.search-result-heading .ic{width:15px;height:15px}.search-result-heading small{margin-inline-start:auto;padding:2px 7px;border-radius:999px;background:var(--panel-2);font-size:10px}.search-type-badge{display:inline-flex;align-items:center;gap:4px;flex:none;padding:3px 7px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:9px;font-weight:800;line-height:1.2;white-space:nowrap}.search-type-badge .ic{width:12px;height:12px}.search-type-badge.planner{background:color-mix(in srgb,#8b5cf6 12%,var(--panel));color:#7c3aed}.task-title .search-type-badge{margin-inline-end:7px;vertical-align:middle}.planner-search-result{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;text-align:start;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--ink);box-shadow:var(--raise-sm)}.planner-search-result:hover,.planner-search-result:focus-visible{border-color:var(--blue);background:var(--panel-2)}.planner-search-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.planner-search-copy strong{font-size:13px;overflow-wrap:anywhere}.planner-search-copy small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.finance-toolbar,.finance-list,.finance-overview,.finance-income-strip{max-width:100%}
@media(max-width:700px){.finance-overview{grid-template-columns:1fr;gap:10px}.finance-overview .finance-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.finance-overview .finance-stat{padding:10px 7px}.finance-overview .finance-stat small{font-size:9px}.finance-pie-layout{grid-template-columns:minmax(105px,135px) minmax(0,1fr);gap:10px}.finance-pie-chart{max-width:135px}.finance-pie-legend-row{grid-template-columns:9px minmax(38px,1fr) auto;gap:4px;font-size:9px}.finance-pie-legend-row strong{font-size:9px}.finance-row{align-items:flex-start;flex-wrap:wrap}.finance-detail{flex-basis:calc(100% - 55px)}.finance-amount{margin-inline-start:auto}.finance-remove{margin-inline-start:0}.pl-view-tabs{gap:15px;max-width:calc(100vw - 130px);overflow-x:auto;scrollbar-width:none}.pl-view-tabs::-webkit-scrollbar{display:none}.pl-viewbar{gap:10px}.pl-viewbar>.primary{flex:none}}
@media(min-width:1024px){#financePage,#plannerFinanceView{max-width:980px;margin-inline:auto}.finance-overview{grid-template-columns:minmax(245px,.8fr) minmax(390px,1.2fr)}.finance-overview .finance-summary{grid-template-columns:1fr}.finance-pie-layout{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}.finance-pie-chart{max-width:200px}}


/* v50: mirrored desktop rail and language-specific typography */
.finance-ratio.currency-mismatch{color:var(--warning)}
@font-face{font-family:'Roboto';src:url("../fonts/focusflow-font-02.woff2") format('woff2');font-weight:100 900;font-style:normal;font-display:swap;}
html[lang="en"]{--font:'Roboto',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;}
html[lang="en"] body{font-family:var(--font)}
@media(min-width:1024px){
 .app{padding-inline-start:118px;padding-inline-end:30px;padding-top:20px;padding-bottom:32px}
 .bottomnav{position:fixed;inset-inline-start:18px;inset-inline-end:auto;top:50%;bottom:auto;left:auto;right:auto;transform:translateY(-50%);width:82px;height:auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;overflow:visible;gap:7px;padding:10px 8px;margin:0;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--raise-sm);backdrop-filter:none;-webkit-backdrop-filter:none;z-index:70}
 html[dir="rtl"] .app{padding-inline-start:30px;padding-inline-end:118px}
 html[dir="rtl"] .bottomnav{inset-inline-start:auto;inset-inline-end:18px}
 .bottomnav .navbtn{width:100%;min-width:0;height:auto;min-height:54px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:7px 4px;font-size:10px;line-height:1.2;text-align:center;white-space:normal}
 .bottomnav .navbtn svg.ic{width:20px;height:20px;flex:none}
 .bottomnav .fab{width:62px;height:62px;min-width:0;min-height:0;flex-direction:column;gap:3px;margin:3px auto 0;padding:7px 4px;border-radius:16px}
 .bottomnav .fab .desktop-nav-label{display:block;font-size:9px;line-height:1.1;text-align:center}
 .bottomnav .desktop-nav-key{display:none}
 .topbar{position:relative;padding-inline-end:52px}
 #menuBtn{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);z-index:2}
 .desktop-search{margin-left:0;margin-inline-start:auto}
 html[dir="rtl"] .desktop-search-results{left:0;right:auto}
}


/* v49 refinements: checkable plan goals, account balance, transaction editing, mobile nav */
.planner-goal-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:34px;padding:7px 10px;border:1px solid var(--pl-line);border-radius:10px;background:var(--panel);color:var(--muted);font-size:11px;font-weight:750;transition:background .18s,color .18s,border-color .18s}
.planner-goal-toggle .ic{width:15px;height:15px}.planner-goal-toggle[aria-pressed="true"]{background:color-mix(in srgb,var(--success) 12%,var(--panel));border-color:var(--success);color:var(--success)}.planner-goal-done{text-decoration:line-through;text-decoration-color:var(--success);opacity:.72}
.finance-stat.balance strong{display:flex;flex-wrap:wrap;gap:4px 8px;color:var(--blue)}.finance-stat.balance strong span{direction:auto;unicode-bidi:isolate;white-space:nowrap}
.finance-edit,.finance-remove{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:9px;color:var(--muted);transition:background .16s,color .16s}.finance-edit .ic,.finance-remove .ic{width:16px;height:16px}.finance-edit:hover{background:var(--blue-soft);color:var(--blue)}
@media(max-width:1023px){
 .topbar .music-top-link{display:flex;flex:none;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;border-radius:12px;background:var(--panel);box-shadow:var(--raise-sm);color:var(--muted)}
 .topbar .music-top-link .ic{width:18px;height:18px}.topbar .music-top-link span{display:none}.topbar .music-top-link.active{background:var(--blue-soft);color:var(--blue)}
 .bottomnav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px minmax(0,1fr) minmax(0,1fr)}
 .bottomnav .navbtn[data-page="finance"]{display:none}
 .bottomnav .navbtn{min-width:0;padding:4px 2px;gap:2px;font-size:10px;line-height:1.1;white-space:normal;overflow-wrap:anywhere}
 .bottomnav .navbtn .ic{width:20px;height:20px}
 .bottomnav .fab{grid-column:3;justify-self:center;width:54px;height:54px;min-width:54px;margin:0;padding:0}
 .bottomnav .navbtn[data-page="home"]{grid-column:1}.bottomnav .navbtn[data-page="calendar"]{grid-column:2}.bottomnav .navbtn[data-page="progress"]{grid-column:4}.bottomnav .navbtn[data-page="planner"]{grid-column:5}
 .pl-workspace-head{flex-wrap:wrap}.planner-goal-toggle{margin-inline-start:auto}
 .finance-overview .finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){.topbar .music-top-link{width:38px;min-width:38px;height:38px}.bottomnav{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 56px minmax(0,1fr) minmax(0,1fr);padding-inline:4px}.bottomnav .fab{width:50px;height:50px;min-width:50px}}
@media(max-width:350px){.bottomnav .navbtn{font-size:9px}.bottomnav .navbtn .ic{width:18px;height:18px}.planner-goal-toggle{font-size:10px;padding-inline:7px}}
@media(min-width:1024px){.finance-overview .finance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* v50: planner subtasks are visible and directly checkable in Week, Board and Table */
.plan-inline-checklist{display:flex;flex-direction:column;gap:3px;margin:8px 0 2px 28px;padding:7px 8px;border-top:1px solid var(--pl-line);border-radius:5px;background:color-mix(in srgb,var(--panel-2) 65%,transparent);max-height:150px;overflow:auto;overscroll-behavior:contain}
.plan-inline-checklist-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px;color:var(--muted);font-size:9px}.plan-inline-checklist-head strong{font-size:9px;font-weight:800}.plan-inline-checklist-head small{font-size:9px;font-variant-numeric:tabular-nums}
.plan-inline-task,.pl-table-subtask{display:flex;align-items:flex-start;gap:6px;min-width:0;padding:3px 2px;border-radius:4px;font-size:10px;line-height:1.35;cursor:pointer}.plan-inline-task input,.pl-table-subtask input{width:14px;height:14px;flex:none;margin-top:1px;accent-color:var(--success)}.plan-inline-task span,.pl-table-subtask span{min-width:0;overflow-wrap:anywhere}.plan-inline-task.is-done span,.pl-table-subtask.is-done span{text-decoration:line-through;color:var(--muted)}
.pl-table-subtasks{display:flex;flex-direction:column;gap:3px;min-width:145px;max-height:145px;overflow:auto;padding:3px}.pl-table-subtask{font-size:10px;padding:3px 4px}.pl-list-table td[data-label="Checklist"]{min-width:165px}
@media(max-width:700px){.plan-inline-checklist{margin-inline-start:22px}.pl-table-subtasks{min-width:135px}}


/* v52: fix top navigation spacing on phones only */
@media(max-width:767px){
 .topbar{width:100vw;margin-inline-start:calc(50% - 50vw);padding-inline:12px;justify-content:space-between;gap:8px;box-sizing:border-box}
 .topbar .brand{margin-inline:0;flex:0 1 auto;min-width:0}
 .topbar .topbar-actions{margin-inline:0;gap:6px;flex:none}
}
#settingsPage>.settings-option{margin-block:8px}
#settingsPage>.settings-block{margin-bottom:17px}
select{min-height:38px;border:1px solid var(--line);border-radius:11px;background-color:var(--panel);color:var(--ink);padding:8px 11px;box-shadow:0 1px 2px color-mix(in srgb,var(--sd) 16%,transparent);transition:border-color .18s,box-shadow .18s,background-color .18s}
select:not([multiple]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367809f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:14px;padding-inline-end:34px}
html[dir="rtl"] select:not([multiple]){background-position:left 11px center}
select:hover{border-color:color-mix(in srgb,var(--blue) 55%,var(--line))}
select:focus-visible{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft);outline:0}
select option{background:var(--panel);color:var(--ink);padding:8px 10px}
select option:checked{background:var(--blue);color:#fff}
.day.today{outline:2px solid var(--blue);outline-offset:-2px}
.day.today:not(.active) b{color:var(--blue)}
.day.today:not(.has-task) i{display:none}
.day.today.has-task i{width:5px;height:5px;background:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 18%,transparent)}
.day.active.today{outline-color:var(--blue);outline-offset:-3px}.day.active.has-task i{background:var(--blue)}
.planner-day-tabs button{position:relative;scroll-snap-align:center}
.planner-day-tabs button.has-plans::after{content:"";width:5px;height:5px;margin-top:4px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px var(--panel)}
.planner-day-tabs button.is-today{border-color:var(--blue);color:var(--blue)}.planner-day-tabs button.is-today b{color:var(--blue)}.planner-day-tabs button.is-today[aria-pressed="true"]{outline:2px solid color-mix(in srgb,var(--blue) 45%,transparent);outline-offset:1px}
.planner-day-tabs button.is-today::after{background:var(--blue)}.planner-day-tabs button.has-plans.is-today::after{background:var(--blue)}
.planner-day.is-selected{box-shadow:var(--inset),0 0 0 1.5px color-mix(in srgb,var(--blue) 32%,transparent)}
.planner-day.has-plans:not(.is-today) .planner-day-heading b{position:relative}
.planner-day.has-plans:not(.is-today) .planner-day-heading b::after,.planner-day.is-today.has-plans .planner-day-heading b::after{content:"";position:absolute;inset-inline-end:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 1px var(--panel)}
.planner-day.is-today.has-plans .planner-day-heading b::after{background:var(--blue)}
@media(max-width:1023px){.planner-scroll{scroll-snap-type:x mandatory;scroll-padding-inline:max(0px,calc((100vw - 250px)/2))}.planner-board{padding-inline:max(0px,calc((100vw - 250px)/2))}.planner-day{scroll-snap-align:center}}

/* ===== v52: tablet layout (768-1023px) ===== */
@media (min-width:768px) and (max-width:1023px){
 .app{max-width:880px;padding:22px 24px calc(var(--nav-h) + 44px + env(safe-area-inset-bottom))}
 .topbar{width:100%;margin-inline-start:0;padding-inline:0;justify-content:space-between;gap:16px}
 .topbar .brand{flex:none}
 .desktop-search{position:relative;display:flex;align-items:center;gap:10px;margin-inline-start:auto;width:min(360px,100%);height:44px;padding:0 14px;border-radius:15px;background:var(--panel);box-shadow:var(--inset);color:var(--muted)}
 .desktop-search input{flex:1;min-width:0;width:100%;height:100%;border:0;outline:none;background:none;font-size:14px;color:var(--ink)}
 .desktop-search kbd{font:600 12px var(--font);border:1px solid var(--line);border-radius:6px;padding:1px 6px}
 .desktop-search-results{position:absolute;top:calc(100% + 14px);inset-inline-end:0;width:min(560px,calc(100vw - 60px));max-height:min(520px,calc(100dvh - 140px));overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--bg);box-shadow:0 18px 48px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:12px;color:var(--ink)}
 .desktop-search-results .task{box-shadow:none;border:1px solid var(--line)}
 #searchBtn{display:none}
 .bottomnav{width:min(620px,calc(100% - 40px))}
 .strip{gap:12px;margin:0 -24px;padding:12px 24px 14px;scroll-padding-inline:24px}
 .day{min-width:54px;padding:7px 8px 5px;border-radius:14px}
 .day small{font-size:10.5px}
 .day b{font-size:16px}
 .task{padding:16px 16px 16px 18px}
 .task-title{font-size:16.5px}
 .sheet{width:min(620px,100%)}
 .overlay{padding:24px}
 .mini-player{width:min(600px,calc(100% - 48px))}
 #calendarPage.active{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:start}
 #calendarPage > .section-title{grid-column:1/-1;margin:0 2px 2px}
 .calendar-card .calendar-grid{gap:6px}
 .calendar-card .calday{aspect-ratio:auto;height:clamp(42px,6.4vw,58px);border-radius:13px;font-size:14.5px}
 .calendar-agenda{display:block;border:1px solid var(--line);padding:16px 18px;box-shadow:var(--raise-sm)}
 .agenda-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px;flex-wrap:wrap}
 .agenda-head small{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--muted);margin-bottom:3px}
 .agenda-head h2{font-size:16px;font-weight:800;line-height:1.35}
 .agenda-actions{display:flex;gap:12px;align-items:center;flex:none;flex-wrap:wrap}
 .agenda-actions .primary{width:auto;min-height:36px;padding:7px 12px;font-size:12px;border-radius:11px;box-shadow:none}
 .agenda-actions .primary svg.ic{width:15px;height:15px}
 .agenda-actions .linkbtn{font-size:12px}
 .agenda-tasks{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-height:460px;overflow:auto;padding:2px;scrollbar-width:thin;overscroll-behavior:contain}
 .agenda-tasks .task{box-shadow:none;border:1px solid var(--line);background:var(--panel-2);padding:10px 12px;gap:10px}
 .agenda-tasks .task-title{font-size:13.5px}
 .agenda-empty{grid-column:1/-1;padding:12px;text-align:center;font-size:13px;color:var(--muted);border:1px dashed var(--line);border-radius:12px}
 #progressPage.active{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
 #progressPage > .section-title{grid-column:1/-1;order:0;margin:0 2px 2px}
 #progressPage > .today-card{grid-column:1;order:1}
 #progressPage > .goal-card{grid-column:2;order:1}
 #progressPage > .stats-top{grid-column:1/-1;order:2;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:20px}
 #progressPage .metrics{max-width:520px}
 #progressPage > .focus-chart{grid-column:1;order:3}
 #progressPage > .category-card{grid-column:2;order:3}
 #progressPage > .activity-card{grid-column:1/-1;order:4}
 #progressPage .heatmap-wrap{max-width:560px;margin-inline:auto}
 #progressPage .cat-stats{max-height:260px;overflow:auto}
 #statsList .task-date-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #statsList .task-date-heading{grid-column:1/-1}
 #musicPage.active{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px;align-items:start}
 #musicPage > .section-title{grid-column:1/-1}
 #musicPage .music-hero{min-height:230px;margin:0}
 .music-tracks{display:block;min-width:0}
 #playerPage.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px 30px;align-items:start}
 #playerPage .player-top{grid-column:1/-1;margin:0}
 .player-media,.player-details{display:block;min-width:0}
 #playerPage .player-details{padding:20px;border-radius:24px;background:var(--panel);box-shadow:var(--raise-sm)}
 #playerPage .up-next{grid-column:1/-1;margin-top:0}
 #playerPage #queueList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .planner-scroll{scroll-snap-type:x proximity;scroll-padding-inline:24px;margin:0 -24px;padding:4px 0 14px}
 .planner-board{padding-inline:24px;grid-template-columns:repeat(7,minmax(272px,1fr))}
 .planner-day{min-height:380px}
 .planner-day-tabs button{padding:8px 4px;font-size:11px}
 .planner-day-tabs b{font-size:15px}
}

/* v52 polish: today is blue, the selected day is clearly pressed (neumorphic inset) */
.day.today:not(.active),.calday.today:not(.selected),.date-picker-day.today:not(.selected){background:var(--blue-soft)}
.day.today:not(.active) small{color:var(--blue)}
.day.active{background:color-mix(in srgb,var(--blue) 9%,var(--panel));color:var(--blue)}
.calday.selected,.date-picker-day.selected{background:color-mix(in srgb,var(--blue) 9%,var(--panel))}
.planner-day-tabs button[aria-pressed="true"]{background:color-mix(in srgb,var(--blue) 9%,var(--panel))}
.day.active,.calday.selected,.date-picker-day.selected,.planner-day-tabs button[aria-pressed="true"]{
  box-shadow:inset 4px 4px 9px var(--sd),inset -4px -4px 9px var(--sl),0 0 0 1.5px color-mix(in srgb,var(--blue) 34%,transparent);
}
.day.active b,.calday.selected,.date-picker-day.selected{color:var(--blue)}
.planner-jump .localized-date-trigger{width:auto;min-width:108px;min-height:34px;margin-top:0;padding:6px 10px;border-radius:9px;background:var(--panel-2);font-size:11px;font-weight:700;text-align:center}
@media (max-width:350px){.planner-jump .localized-date-trigger{min-width:0;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.day.active small{color:color-mix(in srgb,var(--blue) 82%,var(--muted))}
.calday.today.selected,.date-picker-day.today.selected{box-shadow:inset 4px 4px 9px var(--sd),inset -4px -4px 9px var(--sl),0 0 0 2px var(--blue)}


/* v53 targeted reliability fixes: RTL layout, scrolling, charts and music hero */
@media (min-width:1024px){
  html[dir="ltr"] .app{padding-inline-start:118px;padding-inline-end:30px}
  html[dir="rtl"] .app{padding-inline-start:118px;padding-inline-end:30px}
  html[dir="ltr"] .bottomnav{inset-inline-start:18px;inset-inline-end:auto;left:auto;right:auto}
  html[dir="rtl"] .bottomnav{inset-inline-start:18px;inset-inline-end:auto;left:auto;right:auto}
  html[dir="rtl"] #homePage.active{direction:ltr;grid-template-columns:minmax(0,1fr) 340px}
  html[dir="rtl"] #homePage .home-board{grid-column:1;grid-row:1;direction:rtl}
  html[dir="rtl"] #homePage .desktop-home-summary{grid-column:2;grid-row:1;direction:rtl;text-align:right}
  html[dir="ltr"] #homePage.active{direction:ltr;grid-template-columns:340px minmax(0,1fr)}
  html[dir="ltr"] #homePage .desktop-home-summary{grid-column:1;grid-row:1;direction:ltr;text-align:left}
  html[dir="ltr"] #homePage .home-board{grid-column:2;grid-row:1;direction:ltr}
}
html[dir="rtl"] .settings-option{direction:rtl;text-align:right}
html[dir="rtl"] .settings-option-copy{text-align:right}
html[dir="rtl"] label:has(input[type="checkbox"]){direction:rtl;text-align:right}
html[dir="rtl"] label:has(input[type="checkbox"]){flex-direction:row-reverse}
html[dir="rtl"] #prevMonth svg,
html[dir="rtl"] #nextMonth svg,
html[dir="rtl"] #prevQuarter svg,
html[dir="rtl"] #nextQuarter svg{transform:scaleX(-1)}
#tagStrip,#dateStrip,.agenda-tasks,.plan-inline-checklist,.pl-table-subtasks,.finance-list,.music-list,.settings-page,.modal,.sheet,.desktop-search-results{
  scrollbar-width:thin;scrollbar-color:var(--blue) color-mix(in srgb,var(--panel-2) 72%,transparent)
}
#tagStrip::-webkit-scrollbar,#dateStrip::-webkit-scrollbar,.agenda-tasks::-webkit-scrollbar,.plan-inline-checklist::-webkit-scrollbar,.pl-table-subtasks::-webkit-scrollbar,.finance-list::-webkit-scrollbar,.music-list::-webkit-scrollbar,.settings-page::-webkit-scrollbar,.modal::-webkit-scrollbar,.sheet::-webkit-scrollbar,.desktop-search-results::-webkit-scrollbar{width:8px;height:6px}
#tagStrip::-webkit-scrollbar-track,#dateStrip::-webkit-scrollbar-track,.agenda-tasks::-webkit-scrollbar-track,.plan-inline-checklist::-webkit-scrollbar-track,.pl-table-subtasks::-webkit-scrollbar-track,.finance-list::-webkit-scrollbar-track,.music-list::-webkit-scrollbar-track,.settings-page::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track,.sheet::-webkit-scrollbar-track,.desktop-search-results::-webkit-scrollbar-track{background:color-mix(in srgb,var(--panel-2) 72%,transparent);border-radius:99px}
#tagStrip::-webkit-scrollbar-thumb,#dateStrip::-webkit-scrollbar-thumb,.agenda-tasks::-webkit-scrollbar-thumb,.plan-inline-checklist::-webkit-scrollbar-thumb,.pl-table-subtasks::-webkit-scrollbar-thumb,.finance-list::-webkit-scrollbar-thumb,.music-list::-webkit-scrollbar-thumb,.settings-page::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb,.sheet::-webkit-scrollbar-thumb,.desktop-search-results::-webkit-scrollbar-thumb{background:var(--blue);border:2px solid transparent;background-clip:padding-box;border-radius:99px}
#tagStrip{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--blue) transparent}
#tagStrip::-webkit-scrollbar{display:block;height:6px}
#tagStrip::-webkit-scrollbar-thumb{background:var(--blue);border-radius:99px}
.tag-scroll-range{accent-color:var(--blue)}
.tag-scroll-range:disabled{opacity:.35;cursor:default}
.tag-scroll-range::-webkit-slider-runnable-track{background:color-mix(in srgb,var(--blue) 18%,var(--panel-2))}
.tag-scroll-range::-moz-range-track{background:color-mix(in srgb,var(--blue) 18%,var(--panel-2))}
.music-hero{padding-inline-end:92px;padding-bottom:24px}
.music-hero .hero-play{inset-inline-end:18px;inset-inline-start:auto;right:auto;bottom:18px;z-index:2;flex:none}
html[dir="rtl"] .music-hero{padding-inline-start:92px;padding-inline-end:20px;text-align:right}
html[dir="rtl"] .music-hero .hero-play{inset-inline-start:18px;inset-inline-end:auto}
.finance-pie-chart{position:relative;display:grid;place-items:center;overflow:visible;background:none!important;border:0;box-shadow:none}
.finance-pie-chart svg{display:block;width:100%;height:100%;overflow:visible;transform:rotate(0deg)}
.finance-pie-chart circle{cursor:help;transition:opacity .16s,stroke-width .16s}
.finance-pie-chart:hover circle{opacity:.78}
.finance-pie-chart circle:hover{opacity:1;stroke-width:17}
@media (max-width:1023px){.music-hero{padding-inline-end:86px}.music-hero .hero-play{width:48px;height:48px;bottom:16px}.finance-pie-chart{max-width:170px}}


/* asd-ste100: final desktop spacing, single-strip scrolling, music control clearance,
   and finance legend hover connector styling. */
@media (min-width:1024px){
  /* Keep the navigation rail outside the content area with a real 1rem gutter. */
  html[dir="ltr"] .app{padding-inline-start:calc(82px + 18px + 1rem)!important;padding-inline-end:30px!important;}
  html[dir="rtl"] .app{padding-inline-end:calc(82px + 18px + 1rem)!important;padding-inline-start:30px!important;}
  html[dir="ltr"] .bottomnav{inset-inline-start:18px!important;inset-inline-end:auto!important;}
  html[dir="rtl"] .bottomnav{inset-inline-end:18px!important;inset-inline-start:auto!important;}
}
/* Date strip is swipe/drag navigable but should not show a scrollbar. */
#dateStrip{scrollbar-width:none!important;}
#dateStrip::-webkit-scrollbar{display:none!important;height:0!important;}
/* Tags keep their own scrollbar; the duplicate range control is hidden. */
.tag-scroll-range{display:none!important;}
.tag-rail{display:block!important;min-width:0;}
#tagStrip{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;}
/* Give the play control its own protected area so it cannot overlap copy or cover. */
.music-hero{padding-inline-end:100px!important;padding-bottom:28px!important;}
.music-hero .hero-play{width:52px;height:52px;min-width:52px;min-height:52px;display:grid;place-items:center;position:absolute;inset-inline-end:20px;inset-inline-start:auto;bottom:20px;z-index:3;}
html[dir="rtl"] .music-hero{padding-inline-start:100px!important;padding-inline-end:20px!important;}
html[dir="rtl"] .music-hero .hero-play{inset-inline-start:20px;inset-inline-end:auto;}
.music-hero #heroTitle,.music-hero #heroSub,.music-hero #heroKicker{max-width:calc(100% - 6px);overflow-wrap:anywhere;}
.finance-net-note{font-size:8px!important;font-weight:400!important;opacity:.72;white-space:nowrap;vertical-align:baseline;}
.finance-stat:not(.income):not(.expense):not(.balance) small{line-height:1.5;}
.finance-pie-legend-row{position:relative;}
.finance-pie-legend-row.is-linked{background:color-mix(in srgb,var(--blue) 8%,transparent);border-radius:6px;}
.finance-pie-chart svg g{cursor:help;}
.finance-pie-chart svg g.is-linked circle{stroke-width:18;filter:drop-shadow(0 0 2px color-mix(in srgb,var(--blue) 40%,transparent));}
.finance-pie-layout{position:relative;isolation:isolate}.finance-pie-connector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:4}
.finance-pie-connector path{fill:none;stroke:var(--blue);stroke-width:1.5;stroke-dasharray:3 3;stroke-linecap:round;opacity:.9;}
@media(max-width:1023px){
 .music-hero{padding-inline-end:94px!important;}
 html[dir="rtl"] .music-hero{padding-inline-start:94px!important;padding-inline-end:18px!important;}
 .music-hero .hero-play{width:48px;height:48px;min-width:48px;min-height:48px;inset-inline-end:16px;bottom:16px;}
 html[dir="rtl"] .music-hero .hero-play{inset-inline-start:16px;inset-inline-end:auto;}
}


/* asd-ste103: centered desktop side rail, true RTL checkbox order, slice-to-title connectors. */
@media(min-width:1024px){
  .bottomnav{position:fixed!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:82px!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:7px!important;z-index:50!important;}
  html[dir="rtl"] .bottomnav{left:auto!important;right:18px!important;inset-inline-start:18px!important;inset-inline-end:auto!important;margin-left:0!important;margin-right:0!important;}
  html[dir="ltr"] .bottomnav{right:auto!important;left:18px!important;inset-inline-start:18px!important;inset-inline-end:auto!important;margin-left:0!important;margin-right:0!important;}
  html[dir="rtl"] .app{padding-right:calc(82px + 18px + 1rem)!important;padding-left:30px!important;}
  html[dir="ltr"] .app{padding-left:calc(82px + 18px + 1rem)!important;padding-right:30px!important;}
}
/* Main task cards: in Persian the first flex item (checkbox) sits on the right, with its title immediately to the left. */
html[dir="rtl"] .task{direction:rtl!important;flex-direction:row!important;text-align:right!important;}
html[dir="rtl"] .task .check{order:0!important;flex:none!important;}
html[dir="rtl"] .task .task-meta{order:1!important;text-align:right!important;}
html[dir="rtl"] .task .task-actions{order:2!important;}
html[dir="rtl"] .task-info{direction:rtl!important;justify-content:flex-start!important;}
html[dir="rtl"] #plannerPage .plan-card-top{direction:rtl!important;flex-direction:row!important;}
html[dir="rtl"] #plannerPage .plan-card-top .check{order:0!important;}
html[dir="rtl"] #plannerPage .plan-card-top h3{order:1!important;text-align:right!important;}
/* Avoid row-reverse here: combined with RTL direction it would flip checkbox and title twice. */
html[dir="rtl"] label.plan-inline-task:has(input[type="checkbox"]),
html[dir="rtl"] label.pl-table-subtask:has(input[type="checkbox"]){direction:rtl!important;flex-direction:row!important;text-align:right!important;justify-content:flex-start!important;}
html[dir="rtl"] .plan-inline-task input,
html[dir="rtl"] .pl-table-subtask input{order:0!important;margin-inline:0 6px!important;}
html[dir="rtl"] .plan-inline-task span,
html[dir="rtl"] .pl-table-subtask span{order:1!important;text-align:right!important;}
html[dir="rtl"] .pl-checklist-row{direction:rtl!important;flex-direction:row!important;text-align:right!important;}
html[dir="rtl"] .pl-checklist-row input{order:0!important;margin-inline:0 6px!important;}
html[dir="rtl"] .pl-checklist-row label{order:1!important;text-align:right!important;}
html[dir="rtl"] .pl-checklist-row button{order:2!important;}
@media(max-width:700px){
  html[dir="rtl"] #plannerPage .pl-list-table tbody td.pl-list-check{left:auto!important;right:12px!important;}
  html[dir="rtl"] #plannerPage .pl-list-table tbody td[data-label="Title"]{padding-left:0!important;padding-right:29px!important;justify-content:flex-start!important;}
  html[dir="rtl"] #plannerPage .pl-list-title{align-items:flex-end!important;text-align:right!important;}
  html[dir="rtl"] #plannerPage .pl-list-title strong{width:100%;text-align:right!important;}
}
/* Connectors inherit the exact hovered slice color and form a solid elbow to the top edge of that category title. */
.finance-pie-connector path{stroke:var(--connector-color,var(--blue))!important;stroke-width:2!important;stroke-dasharray:none!important;stroke-linejoin:round!important;stroke-linecap:round!important;}
.finance-pie-legend-row.is-linked{outline:1px solid color-mix(in srgb,var(--connector-color,var(--blue)) 32%,transparent);background:color-mix(in srgb,var(--connector-color,var(--blue)) 9%,transparent)!important;}


/* Consistent themed native select controls across FocusFlow */
select, .field select, input[type="date"], input[type="month"]{color:var(--ink);background-color:var(--panel-2);border:1.5px solid color-mix(in srgb,var(--muted) 22%,transparent);border-radius:13px;box-shadow:var(--inset);padding:10px 38px 10px 12px;min-height:44px;max-width:100%;accent-color:var(--blue);color-scheme:light}
html[data-theme="dark"] select,html[data-theme="dark"] .field select,html[data-theme="dark"] input[type="date"],html[data-theme="dark"] input[type="month"]{color-scheme:dark}
select:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-color:var(--blue)}
select option{background:var(--panel);color:var(--ink);padding:10px}
.plan-actions .plan-delete{flex:none;min-width:32px;min-height:32px;width:32px;height:32px;opacity:1;visibility:visible;color:var(--muted);border:1px solid color-mix(in srgb,var(--muted) 18%,transparent);background:var(--panel-2)}
.plan-actions .plan-delete svg.ic{display:block;width:17px;height:17px;stroke:currentColor;opacity:1;visibility:visible}
.plan-actions .plan-delete:hover{color:var(--danger);background:var(--danger-soft);border-color:var(--danger)}
.month-picker-overlay{position:fixed;inset:0;z-index:120;background:rgba(14,24,40,.42);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:18px}
.month-picker-overlay.show{display:flex}
.month-picker{width:min(390px,100%);max-height:80dvh;overflow:auto;padding:20px;border-radius:24px;background:var(--panel);box-shadow:0 24px 60px rgba(10,20,40,.3)}
.month-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-weight:800;font-size:18px}
.month-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.month-picker-grid button{min-height:46px;padding:8px 4px;border-radius:12px;background:var(--panel-2);box-shadow:var(--raise-sm);font-weight:700;font-size:13px}
.month-picker-grid button:hover,.month-picker-grid button[aria-current="true"]{background:var(--blue-soft);color:var(--blue);box-shadow:inset 0 0 0 1.5px var(--blue)}



/* ===== Extracted style block 2; original id=focusflow-consolidated-overrides ===== */


/* Consolidated from override-1. */
/* asd-ste104: grouped finance dates, data-cleanup controls, monthly closeout prompt. */
.finance-date-group{display:flex;flex-direction:column;gap:8px;min-width:0}
.finance-date-heading{margin:11px 4px 0;color:var(--muted);font-size:11px;font-weight:850;line-height:1.4}
.finance-date-group:first-child .finance-date-heading{margin-top:2px}
.finance-date-group .finance-row{margin:0}
.data-manager-sheet{width:min(520px,100%)}
.data-manager-group{padding:12px 0;border-top:1px solid var(--line)}
.data-manager-group:first-child{border-top:0;padding-top:0}
.data-manager-group h3{font-size:13px;font-weight:850;margin:0 0 9px;color:var(--ink)}
.data-manager-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.data-manager-actions button{min-height:40px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--ink);font-size:12px;font-weight:750;text-align:center}
.data-manager-actions button.danger{border-color:color-mix(in srgb,var(--danger) 28%,var(--line));color:var(--danger);background:var(--danger-soft)}
.data-manager-actions button:active{transform:scale(.99)}
.finance-month-close-overlay .sheet{width:min(440px,100%)}
.finance-month-close-overlay .field{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:12px;font-weight:750;color:var(--ink)}
.finance-month-close-overlay .field input,.finance-month-close-overlay .field select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--ink);font:inherit}
html[dir="rtl"] .data-manager-actions button{text-align:center}
@media(max-width:420px){.data-manager-actions{grid-template-columns:1fr}.finance-date-heading{font-size:10px}}
/* Consolidated from focusflow-requested-fixes. */
/* Planner: the global New item action is redundant in Week view; the day cards already have Add controls. */
#plannerPage[data-planner-view="week"] #plannerMainAdd{display:none!important}
/* Goal completion control: keep the check icon on the language's natural trailing side. */
html[dir="rtl"] #plannerGoalToggle{direction:rtl;flex-direction:row!important}
html[dir="ltr"] #plannerGoalToggle{direction:ltr;flex-direction:row!important}
html[dir="rtl"] #plannerGoalToggle>svg,html[dir="rtl"] #plannerGoalToggle>.ic{order:2}
html[dir="rtl"] #plannerGoalToggle>span{order:1}
html[dir="ltr"] #plannerGoalToggle>svg,html[dir="ltr"] #plannerGoalToggle>.ic{order:1}
html[dir="ltr"] #plannerGoalToggle>span{order:2}
/* Task category tags: full-width horizontal rail like the date strip, swipeable on mobile. */
#homePage .tag-rail{display:block!important;width:100%;min-width:0;max-width:100%;margin-inline:0;overflow:hidden}
#homePage #tagStrip{display:flex;flex-wrap:nowrap!important;align-items:stretch;justify-content:flex-start;gap:8px;width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overflow-y:hidden;white-space:nowrap;padding:2px 2px 8px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scroll-snap-type:x proximity}
#homePage #tagStrip::-webkit-scrollbar{display:none!important;height:0!important}
#homePage #tagStrip .tag{flex:0 0 auto!important;justify-content:center;min-width:max-content;max-width:none;white-space:nowrap;scroll-snap-align:start}
#homePage .tag-scroll-range{display:none!important}
/* Mobile browsers can leave a yellow focus/active outline around SVG chart hit areas. Keep the emphasis on the slice only. */
.finance-pie-chart,.finance-pie-chart:focus,.finance-pie-chart:focus-visible,.finance-pie-chart:active,
.finance-pie-chart svg,.finance-pie-chart svg:focus,.finance-pie-chart svg:focus-visible,
.finance-pie-chart svg g,.finance-pie-chart svg g:focus,.finance-pie-chart svg g:focus-visible,
.finance-pie-chart svg circle,.finance-pie-chart svg circle:focus,.finance-pie-chart svg circle:focus-visible{
  outline:none!important;outline-color:transparent!important;-webkit-tap-highlight-color:transparent;
}
.finance-pie-chart svg g.is-linked circle{stroke-width:16!important;filter:drop-shadow(0 0 2px color-mix(in srgb,var(--blue) 38%,transparent))!important}
/* Connector should terminate at the small colored category dot beside the title. */
.finance-pie-legend-row i{position:relative;z-index:6}
/* Consolidated from focusflow-final-rtl-tag-fix. */
/* Tag rail: edge-to-edge, no inherited outer spacing, single horizontal scroll row. */
#homePage .tag-rail,
#homePage #tagStrip{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
}
#homePage .tag-rail{
  display:block!important;
  overflow:hidden!important;
}
#homePage #tagStrip{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-x:contain!important;
  touch-action:pan-x pan-y!important;
  scroll-snap-type:x proximity!important;
}
#homePage #tagStrip::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#homePage #tagStrip .tag{
  flex:0 0 auto!important;
  margin:0!important;
  min-width:max-content!important;
  max-width:none!important;
  white-space:nowrap!important;
  scroll-snap-align:start!important;
}
/* v65: make the tag-filter rail fill the full width left by Manage Tags. */
#homePage .tag-rail{width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:minmax(0,1fr)!important;}
#homePage #tagStrip{width:100%!important;min-width:0!important;max-width:100%!important;flex:1 1 100%!important;}

/* Keep the button's flex layout LTR internally, so the icon is physically on the right in Persian. */
#plannerGoalToggle{
  display:inline-flex!important;
  direction:ltr!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:.55rem!important;
}
html[dir="rtl"] #plannerGoalToggle>svg,
html[dir="rtl"] #plannerGoalToggle>.ic,
html[lang="fa"] #plannerGoalToggle>svg,
html[lang="fa"] #plannerGoalToggle>.ic{order:2!important;flex:0 0 auto!important}
html[dir="rtl"] #plannerGoalToggle>span,
html[lang="fa"] #plannerGoalToggle>span{order:1!important;direction:rtl!important;text-align:right!important}
html[dir="ltr"] #plannerGoalToggle>svg,
html[dir="ltr"] #plannerGoalToggle>.ic,
html[lang="en"] #plannerGoalToggle>svg,
html[lang="en"] #plannerGoalToggle>.ic{order:1!important;flex:0 0 auto!important}
html[dir="ltr"] #plannerGoalToggle>span,
html[lang="en"] #plannerGoalToggle>span{order:2!important;direction:ltr!important;text-align:left!important}
/* Consolidated from focusflow-final-tag-width-and-goal-checkbox-fix. */
/* Category tags: full viewport width, horizontal scrolling, no horizontal body/page padding or margins; retain normal vertical spacing. */
#homePage .tag-rail{
  display:block!important;
  box-sizing:border-box!important;
  width:100vw!important; min-width:100vw!important; max-width:100vw!important;
  margin-inline:calc(50% - 50vw)!important;
  padding-inline:0!important;
  overflow:hidden!important;
}
#homePage #tagStrip{
  box-sizing:border-box!important;
  display:flex!important; flex-wrap:nowrap!important; gap:10px!important;
  width:100%!important; min-width:0!important; max-width:100%!important;
  margin-inline:0!important; padding-inline:0!important;
  scroll-padding-inline:0!important;
  overflow-x:auto!important; overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important; touch-action:pan-x!important;
}
#homePage #tagStrip .tag{
  flex:0 0 auto!important; margin-inline:0!important;
  white-space:nowrap!important; scroll-snap-align:start!important;
}
/* A real checkbox-like control, positioned immediately after Manage/Edit Plan. */
#plannerPage .pl-projectbar .planner-goal-checkbox{
  box-sizing:border-box!important; display:inline-flex!important;
  align-items:center!important; justify-content:center!important;
  flex:0 0 35px!important; width:35px!important; min-width:35px!important;
  height:35px!important; min-height:35px!important; padding:0!important;
  margin:0!important; border:1.5px solid var(--pl-line)!important;
  border-radius:7px!important; background:var(--panel)!important;
  color:var(--success)!important;
}
#plannerPage .pl-projectbar .planner-goal-checkbox .ic{width:18px!important;height:18px!important}
#plannerPage .pl-projectbar .planner-goal-checkbox[aria-checked="false"] .ic{display:none!important}
#plannerPage .pl-projectbar .planner-goal-checkbox[aria-checked="true"]{
  background:color-mix(in srgb,var(--success) 13%,var(--panel))!important;
  border-color:var(--success)!important;
}
#plannerPage #plannerProjectTitle.planner-goal-done{text-decoration:line-through!important;text-decoration-color:var(--success)!important;text-decoration-thickness:2px!important;opacity:.72}
@media(max-width:700px){
  #homePage .tag-rail{width:100vw!important;min-width:100vw!important;max-width:100vw!important;margin-inline:calc(50% - 50vw)!important;padding-inline:0!important}
  #homePage #tagStrip{padding-inline:0!important;scroll-padding-inline:0!important}
  #plannerPage .pl-projectbar .planner-goal-checkbox{flex-basis:34px!important;width:34px!important;min-width:34px!important;height:35px!important}
}
/* Early Persian text shaping safeguards. */
html[lang^="fa"] #timerOverlay .timer-num strong,
html[lang^="fa"] #timerOverlay .timer-num small,
html[lang^="fa"] #timerOverlay .timer-custom label,
html[lang^="fa"] #timerOverlay .timer-controls button,
html[lang^="fa"] .celebrate h2{letter-spacing:normal!important;word-spacing:normal!important;font-kerning:normal}
/* Consolidated from asd-ste101-layout-fix. */
@media (min-width:1024px){
  html[dir="rtl"] .bottomnav{right:18px!important;left:auto!important;inset-inline-start:18px!important;inset-inline-end:auto!important}
  html[dir="ltr"] .bottomnav{left:18px!important;right:auto!important;inset-inline-start:18px!important;inset-inline-end:auto!important}
  html[dir="rtl"] .app{padding-right:calc(82px + 18px + 1rem)!important;padding-left:30px!important}
  html[dir="ltr"] .app{padding-left:calc(82px + 18px + 1rem)!important;padding-right:30px!important}
}
.finance-pie-layout{position:relative!important;isolation:isolate}
.finance-pie-connector{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;overflow:visible!important;z-index:5!important}
.finance-pie-connector path{stroke:var(--connector-color,var(--blue))!important;stroke-width:2!important;stroke-dasharray:none!important;stroke-linejoin:round!important}
/* Consolidated from focusflow-latest-user-fixes. */
/* Task tags: preserve normal vertical spacing, but remove horizontal page padding/margins from the rail itself. */
#homePage .tag-rail{
  display:block!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-block:4px 8px!important;
  margin-inline:calc(50% - 50vw)!important;
  padding-block:0!important;padding-inline:0!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
#homePage #tagStrip{
  width:100vw!important;max-width:none!important;min-width:100vw!important;
  margin:0!important;
  padding-block:2px 8px!important;padding-inline:0!important;
  box-sizing:border-box!important;
  display:flex!important;flex-wrap:nowrap!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  gap:8px!important;scroll-padding-inline:0!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;
}
#homePage #tagStrip .tag{flex:0 0 auto!important;white-space:nowrap!important}
/* Completion toggle: force icon/text order and direction regardless of inherited button styles. */
html[dir="rtl"] #plannerGoalToggle,
html[lang="fa"] #plannerGoalToggle,
html[lang^="fa"] #plannerGoalToggle{direction:rtl!important;flex-direction:row-reverse!important}
html[dir="rtl"] #plannerGoalToggle>svg,
html[dir="rtl"] #plannerGoalToggle>.ic,
html[lang^="fa"] #plannerGoalToggle>svg,
html[lang^="fa"] #plannerGoalToggle>.ic{order:2!important;margin-inline-start:0!important;margin-inline-end:8px!important}
html[dir="rtl"] #plannerGoalToggle>span,
html[lang^="fa"] #plannerGoalToggle>span{order:1!important}
html[dir="ltr"] #plannerGoalToggle{direction:ltr!important;flex-direction:row!important}
html[dir="ltr"] #plannerGoalToggle>svg,
html[dir="ltr"] #plannerGoalToggle>.ic{order:1!important;margin-inline-end:8px!important;margin-inline-start:0!important}
html[dir="ltr"] #plannerGoalToggle>span{order:2!important}
/* Finance inside Planner must be finance-only, without project/plan controls or completion actions. */
#plannerPage:has(#plannerFinanceView:not([hidden])) .pl-projectbar,
#plannerPage:has(#plannerFinanceView:not([hidden])) #plannerMainAdd,
#plannerPage:has(#plannerFinanceView:not([hidden])) #plannerGoalToggle,
#plannerPage:has(#plannerFinanceView:not([hidden])) [data-plan-edit],
#plannerPage:has(#plannerFinanceView:not([hidden])) .plan-edit,
#plannerPage:has(#plannerFinanceView:not([hidden])) .plan-complete,
#plannerPage:has(#plannerFinanceView:not([hidden])) .planner-plan-name{display:none!important}

/* Final refinement: make the goal-completion action visibly identifiable as a checkbox. */
#plannerGoalToggle{display:inline-flex!important;align-items:center!important;gap:8px!important}
#plannerGoalToggle::before{content:"";display:inline-block;flex:0 0 18px;width:18px;height:18px;box-sizing:border-box;border:2px solid var(--muted-ink,var(--ink));border-radius:4px;background:var(--panel-2);box-shadow:0 0 0 2px color-mix(in srgb,var(--panel) 80%,transparent);}
#plannerGoalToggle[aria-pressed="true"]::before,#plannerGoalToggle[aria-checked="true"]::before,#plannerGoalToggle.is-complete::before,#plannerGoalToggle.active::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;background:var(--accent,var(--blue));border-color:var(--accent,var(--blue));color:#fff;font-size:13px;font-weight:800;line-height:1}
/* Tags rail uses the same content width as the date rail; only horizontal outer spacing is reset. */
#homePage .tag-rail{width:100%!important;max-width:100%!important;margin-inline:0!important;padding-inline:0!important;box-sizing:border-box!important;}
#homePage #tagStrip{width:100%!important;min-width:0!important;max-width:100%!important;margin-inline:0!important;padding-inline:0!important;box-sizing:border-box!important;}


/* FocusFlow fix: the planner goal checkbox must have a single checkmark only. */
#plannerPage .pl-projectbar .planner-goal-checkbox::before,
#plannerPage .pl-projectbar .planner-goal-checkbox::after{content:none!important;display:none!important}
#plannerPage .pl-projectbar .planner-goal-checkbox .ic{display:block!important;stroke:currentColor}
/* Consolidated from focusflow-checkbox-true-center-final. */
/* Keep the plan checkbox border visible and place the single checkmark at the exact geometric center. */
#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox{
  position:relative!important; display:inline-flex!important; align-items:center!important; justify-content:center!important;
  padding:0!important; gap:0!important; line-height:0!important; text-align:center!important;
}
#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox::before,
#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox::after{content:none!important;display:none!important}
#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox>.ic{
  position:absolute!important; left:50%!important; top:50%!important; transform:translate(-50%,-50%)!important;
  display:block!important; width:18px!important; height:18px!important; margin:0!important; padding:0!important;
  flex:none!important; inset-inline:auto!important; stroke:currentColor!important;
}
/* Consolidated from focusflow-user-refinements. */
/* Category chips in Add Task: horizontal touch/trackpad rail, matching the Home tag strip. */
#taskCategory{
  display:flex!important;flex-wrap:nowrap!important;gap:8px!important;
  width:calc(100% + 28px);max-width:calc(100% + 28px);box-sizing:border-box;
  margin-inline:-14px;padding:8px 14px 10px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;scroll-padding-inline:14px;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
#taskCategory::-webkit-scrollbar{display:none}
#taskCategory>label{flex:0 0 auto;scroll-snap-align:start}

/* A little breathing room before the Home task cards. */
#homePage .task-list{margin-top:10px!important}

/* Clearer, larger completion control on planner cards. */
#plannerPage .plan-card-top .check{
  width:28px!important;height:28px!important;min-width:28px!important;flex:0 0 28px!important;
}
#plannerPage .plan-card-top .check span{
  border-radius:8px!important;border-width:2px!important;
  border-color:color-mix(in srgb,var(--blue) 48%,var(--muted))!important;
  background:var(--panel-2)!important;box-shadow:0 1px 3px color-mix(in srgb,var(--sd) 28%,transparent)!important;
}
#plannerPage .plan-card-top .check:hover span{
  border-color:var(--blue)!important;box-shadow:0 0 0 3px var(--blue-soft)!important;
}
#plannerPage .plan-card-top .check input:checked+span{
  border-color:var(--blue-dark)!important;background:var(--grad)!important;
  box-shadow:0 3px 9px var(--glow)!important;
}
#plannerPage .plan-card-top .check span svg{width:17px!important;height:17px!important}
#plannerPage .plan-card-top .check input:focus-visible+span{outline:2px solid var(--blue)!important;outline-offset:3px!important}

/* On narrow screens the table uses data-label for its visible row labels.
   Keep structural English data-labels intact for layout selectors, but show Persian labels. */
@media(max-width:700px){
  html[lang^="fa"] #plannerPage .pl-list-table tbody td:nth-child(3)::before{content:"دسته"}
  html[lang^="fa"] #plannerPage .pl-list-table tbody td:nth-child(4)::before{content:"وضعیت"}
  html[lang^="fa"] #plannerPage .pl-list-table tbody td:nth-child(5)::before{content:"اولویت"}
  html[lang^="fa"] #plannerPage .pl-list-table tbody td:nth-child(6)::before{content:"تاریخ‌ها"}
  html[lang^="fa"] #plannerPage .pl-list-table tbody td:nth-child(7)::before{content:"فهرست کارها"}
  html[lang^="fa"] #plannerPage .pl-list-table tbody td:nth-child(8)::before{content:"عملیات"}
}

/* Star marker follows the reading direction: left in English, right in Persian. */
html[dir="ltr"] .task::before{left:0!important;right:auto!important;border-radius:0 4px 4px 0!important}
html[dir="rtl"] .task::before{left:auto!important;right:0!important;border-radius:4px 0 0 4px!important}
/* Consolidated from focusflow-native-plan-checkbox. */
#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;box-sizing:border-box!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex:0 0 18px!important;padding:0!important;margin:0 4px!important;border:initial!important;border-radius:initial!important;background:initial!important;box-shadow:none!important;accent-color:var(--success)!important;cursor:pointer!important;vertical-align:middle!important}
#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox::before,#plannerPage .pl-projectbar #plannerGoalToggle.planner-goal-checkbox::after{content:none!important;display:none!important}
/* Mobile: keep the Persian custom-duration text clear of the value and Set control. */
@media(max-width:420px){
  .timer-custom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;align-items:center;box-sizing:border-box;}
  .timer-custom label{grid-column:1/-1;min-width:0;line-height:1.45;}
  .timer-custom input{width:74px;box-sizing:border-box;}
  .timer-custom button{min-width:72px;padding-inline:12px;}
}




/* ===== Extracted style block 3; original id=bonfire-native-scoped-styles ===== */


#bonfire-native-root{--bg:#f5f2ed;--surface:#f8f6f2;--text:#282638;--muted:#858294;--line:rgba(65,57,91,.1);--purple:#b9a7f5;--blue:#a9d9f7;--mint:#b7e9d5;--pink:#f4c5d8;--yellow:#f5df9e;--shadow:9px 9px 20px #dedbd5,-9px -9px 20px #fff;--inset:inset 4px 4px 9px #e2dfd9,inset -4px -4px 9px #fff;--radius:24px}#bonfire-native-root *{box-sizing:border-box}#bonfire-native-root{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",Arial,sans-serif;transition:.25s}#bonfire-native-root.dark{--bg:#242330;--surface:#2c2b3a;--text:#f3f0ff;--muted:#aaa7bd;--line:rgba(255,255,255,.08);--shadow:8px 8px 18px #1c1b26,-7px -7px 18px #302f40;--inset:inset 4px 4px 8px #22212d,inset -4px -4px 8px #333243}#bonfire-native-root button, #bonfire-native-root input, #bonfire-native-root textarea, #bonfire-native-root select{font:inherit}#bonfire-native-root button{cursor:pointer;border:0;color:inherit;transition:transform .15s,box-shadow .15s}#bonfire-native-root button:active{transform:translateY(2px) scale(.98)}#bonfire-native-root .app{max-width:1280px;margin:auto;padding:18px 22px 90px}#bonfire-native-root .top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}#bonfire-native-root .brand{display:flex;align-items:center;gap:12px}#bonfire-native-root .logo{width:52px;height:52px;border-radius:15px;background:transparent;box-shadow:none;border:2px solid currentColor;display:grid;place-items:center;color:var(--text);padding:8px;flex:0 0 auto}#bonfire-native-root .pv-vault-logo{display:block;width:100%;height:100%;color:currentColor;fill:none;overflow:visible}#bonfire-native-root .list-brand-mark{display:inline-flex;vertical-align:middle;width:25px;height:25px;color:var(--text);margin-right:8px;align-items:center;justify-content:center}#bonfire-native-root .list-brand-mark .pv-vault-logo{width:25px;height:25px}#bonfire-native-root .brand h1{font-size:24px;margin:0 0 4px}#bonfire-native-root .brand p{margin:0;color:var(--muted);font-size:12px}#bonfire-native-root .actions{display:flex;gap:10px;align-items:center}#bonfire-native-root .iconbtn, #bonfire-native-root .softbtn{background:var(--surface);box-shadow:var(--shadow);border-radius:15px;padding:11px 14px}#bonfire-native-root .iconbtn{width:44px;height:44px;min-width:44px;padding:0;font-size:19px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}#bonfire-native-root .iconbtn svg{width:19px;height:19px;display:block}#bonfire-native-root .primary{background:linear-gradient(145deg,#b9a7f5,#a99aef);color:#292344;font-weight:bold;border-radius:16px;padding:13px 19px;box-shadow:5px 5px 12px #d5c9ed,-4px -4px 12px #fff}#bonfire-native-root .hero{border-radius:22px;padding:14px 18px;background:linear-gradient(120deg,rgba(185,167,245,.38),rgba(169,217,247,.34),rgba(183,233,213,.3));margin-bottom:23px;position:relative;overflow:hidden}#bonfire-native-root .hero h2{font-size:clamp(22px,3vw,34px);margin:0 0 9px}#bonfire-native-root .hero p{color:var(--muted);margin:0 0 22px}#bonfire-native-root .searchwrap{position:relative;max-width:760px}#bonfire-native-root .searchwrap span{position:absolute;left:17px;top:14px;font-size:20px}#bonfire-native-root .search{width:100%;border:1px solid var(--line);outline:none;background:var(--surface);color:var(--text);border-radius:18px;padding:16px 16px 16px 50px;box-shadow:var(--inset)}#bonfire-native-root .stats{display:flex;gap:12px;margin:18px 0 24px;flex-wrap:wrap}#bonfire-native-root .stat{flex:1;min-width:125px;padding:15px 17px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;gap:12px}#bonfire-native-root .stat .bubble{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font-size:20px}#bonfire-native-root .stat strong{display:block;font-size:21px}#bonfire-native-root .stat small{color:var(--muted)}#bonfire-native-root .sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:25px 0 14px}#bonfire-native-root .sectionhead h3{margin:0;font-size:18px}#bonfire-native-root .tagrow{display:flex;gap:10px;overflow-x:auto;padding:8px 3px 15px;scrollbar-width:thin}#bonfire-native-root .tag{white-space:nowrap;display:flex;align-items:center;gap:7px;padding:11px 14px;border-radius:15px;background:var(--surface);box-shadow:var(--shadow);border:1px solid transparent;font-size:13px}#bonfire-native-root .tag.active{border-color:var(--tag-color,#b9a7f5);box-shadow:var(--inset);background:color-mix(in srgb,var(--tag-color,#b9a7f5) 28%,var(--surface))}#bonfire-native-root .tag small{opacity:.7}#bonfire-native-root .tag.addtag{background:transparent;box-shadow:none;border:1px dashed var(--muted)}#bonfire-native-root .toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}#bonfire-native-root .control{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:13px;padding:10px 12px;outline:none}#bonfire-native-root .viewbtn{padding:10px 12px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}#bonfire-native-root .viewbtn.active{box-shadow:var(--inset)}#bonfire-native-root .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}#bonfire-native-root .cards.list{grid-template-columns:1fr}#bonfire-native-root .promptcard{border-radius:24px;padding:14px;background:var(--surface);box-shadow:var(--shadow);min-width:0;cursor:pointer;transition:transform .18s}#bonfire-native-root .promptcard:hover{transform:translateY(-3px)}#bonfire-native-root .cover{height:160px;border-radius:17px;overflow:hidden;background:linear-gradient(135deg,#c8b9fa,#b5e0f4,#f4c5d8);display:grid;place-items:center;position:relative;color:#554878;font-size:42px}#bonfire-native-root .cover img{width:100%;height:100%;object-fit:cover}#bonfire-native-root .cover .covericon{filter:drop-shadow(0 5px 4px #7774)}#bonfire-native-root .cardbody{padding:13px 4px 2px}#bonfire-native-root .cardtitle{font-size:16px;font-weight:bold;margin:0 0 9px;display:flex;align-items:center;gap:8px}#bonfire-native-root .cardtitle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#bonfire-native-root .excerpt{font-size:12px;line-height:1.9;color:var(--muted);height:45px;overflow:hidden;margin:0 0 12px;white-space:pre-wrap}#bonfire-native-root .minitags{display:flex;gap:6px;flex-wrap:wrap;max-height:52px;overflow:hidden}#bonfire-native-root .minitag{font-size:10px;border-radius:8px;padding:5px 8px;background:color-mix(in srgb,var(--c,#b9a7f5) 30%,var(--surface))}#bonfire-native-root .cardfoot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:13px}#bonfire-native-root .date{font-size:10px;color:var(--muted)}#bonfire-native-root .cardtools{display:flex;gap:5px}#bonfire-native-root .tiny{width:31px;height:31px;border-radius:10px;background:var(--surface);box-shadow:var(--shadow);font-size:14px}#bonfire-native-root .tiny.faved{background:#f6d88c}#bonfire-native-root .empty{grid-column:1/-1;text-align:center;padding:55px 20px;border-radius:24px;background:var(--surface);box-shadow:var(--inset);color:var(--muted)}#bonfire-native-root .empty .big{font-size:46px;margin-bottom:12px}#bonfire-native-root .empty h3{color:var(--text);margin:0 0 8px}#bonfire-native-root .bottomnav{display:none}#bonfire-native-root .modalback{position:fixed;inset:0;background:#16152588;backdrop-filter:blur(5px);z-index:20;display:none;align-items:center;justify-content:center;padding:16px}#bonfire-native-root .modalback.open{display:flex}#bonfire-native-root .modal{background:var(--bg);border-radius:28px;box-shadow:0 20px 70px #0003;width:min(760px,100%);max-height:92vh;overflow:auto;padding:22px}#bonfire-native-root .modalhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}#bonfire-native-root .modalhead h2{font-size:21px;margin:0}#bonfire-native-root .close{width:38px;height:38px;border-radius:13px;background:var(--surface);box-shadow:var(--shadow);font-size:20px;display:grid;place-items:center}#bonfire-native-root .close i{width:18px;height:18px}#bonfire-native-root .field{margin-bottom:16px}#bonfire-native-root .field label{display:block;font-size:13px;font-weight:bold;margin-bottom:8px}#bonfire-native-root .field input, #bonfire-native-root .field textarea, #bonfire-native-root .field select{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:14px;padding:12px;outline:none;box-shadow:var(--inset)}#bonfire-native-root .field textarea{resize:vertical;min-height:155px;line-height:1.9}#bonfire-native-root .field input:focus, #bonfire-native-root .field textarea:focus{border-color:#b9a7f5}#bonfire-native-root .field .hint{font-size:11px;color:var(--muted);margin-top:6px}#bonfire-native-root .formrow{display:grid;grid-template-columns:1fr 1fr;gap:13px}#bonfire-native-root .imagepick{display:flex;align-items:center;gap:13px;flex-wrap:wrap}#bonfire-native-root .preview{width:100px;height:75px;border-radius:13px;object-fit:cover;background:var(--surface);box-shadow:var(--inset);display:grid;place-items:center;font-size:25px;overflow:hidden}#bonfire-native-root .preview img{width:100%;height:100%;object-fit:cover}#bonfire-native-root .pickbtn{background:var(--surface);box-shadow:var(--shadow);border-radius:12px;padding:11px 13px;font-size:12px}#bonfire-native-root .tagpicker{display:flex;gap:8px;flex-wrap:wrap}#bonfire-native-root .tagpick{border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:var(--surface);font-size:12px}#bonfire-native-root .tagpick.selected{background:color-mix(in srgb,var(--tag-color,#b9a7f5) 40%,var(--surface));border-color:var(--tag-color,#b9a7f5)}#bonfire-native-root .formactions{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap;margin-top:20px}#bonfire-native-root .secondary{background:var(--surface);box-shadow:var(--shadow);border-radius:14px;padding:12px 17px}#bonfire-native-root .detailcover{height:230px;border-radius:19px;overflow:hidden;background:linear-gradient(135deg,#c8b9fa,#b5e0f4,#f4c5d8);display:grid;place-items:center;font-size:55px;margin-bottom:18px}#bonfire-native-root .detailcover img{width:100%;height:100%;object-fit:cover}#bonfire-native-root .detailtext{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2;background:var(--surface);box-shadow:var(--inset);padding:16px;border-radius:16px;font-size:13px;max-height:40vh;overflow:auto;direction:auto}#bonfire-native-root .toast{position:fixed;bottom:22px;right:50%;transform:translateX(50%) translateY(100px);background:#302d43;color:#fff;padding:13px 20px;border-radius:14px;z-index:50;box-shadow:0 8px 25px #0003;transition:.3s;font-size:13px}#bonfire-native-root .toast.show{transform:translateX(50%) translateY(0)}#bonfire-native-root .settingsgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#bonfire-native-root .settingcard{padding:15px;border-radius:17px;background:var(--surface);box-shadow:var(--shadow)}#bonfire-native-root .settingcard h4{margin:0 0 8px}#bonfire-native-root .settingcard p{color:var(--muted);font-size:12px;line-height:1.8}#bonfire-native-root .hidden{display:none!important}#bonfire-native-root .list .promptcard{display:grid;grid-template-columns:150px 1fr;gap:15px;align-items:center}#bonfire-native-root .list .cover{height:130px}#bonfire-native-root .list .cardbody{padding:5px}#bonfire-native-root .list .cardfoot{margin-top:8px}#bonfire-native-root .tagmanage{display:flex;align-items:center;gap:10px;padding:12px;border-radius:15px;background:var(--surface);box-shadow:var(--shadow);margin-bottom:10px}#bonfire-native-root .tagdot{width:35px;height:35px;border-radius:12px;display:grid;place-items:center}#bonfire-native-root .tagmanage .tagname{flex:1}#bonfire-native-root .tagmanage input[type=color]{width:36px;height:32px;border:0;background:transparent;padding:0}
#bonfire-native-root .top-add-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:14px;background:linear-gradient(135deg,#8bb5ff,#4f97f5);color:#fff;box-shadow:0 5px 14px #4f97f52b;font-weight:650;white-space:nowrap}#bonfire-native-root .top-add-btn i{width:18px;height:18px;stroke-width:2.4}#bonfire-native-root .top-add-btn span{font-size:13px}@media(max-width:620px){#bonfire-native-root .top-add-btn{min-height:40px;padding:0 11px;gap:5px;border-radius:12px}#bonfire-native-root .top-add-btn span{font-size:12px}}
@media(max-width:1000px){#bonfire-native-root .cards{grid-template-columns:repeat(3,minmax(0,1fr))}#bonfire-native-root .app{padding:18px 17px 100px}}@media(max-width:620px){#bonfire-native-root .app{padding:14px 13px 100px}#bonfire-native-root .top{margin-bottom:16px}#bonfire-native-root .brand h1{font-size:20px}#bonfire-native-root .brand p{font-size:10px}#bonfire-native-root .logo{width:44px;height:44px;border-radius:13px;padding:7px}#bonfire-native-root .top .primary{display:none}#bonfire-native-root .hero{padding:12px 13px;border-radius:20px}#bonfire-native-root .hero p{font-size:12px;line-height:1.8}#bonfire-native-root .stats{gap:9px}#bonfire-native-root .stat{min-width:calc(50% - 5px);padding:12px}#bonfire-native-root .stat strong{font-size:18px}#bonfire-native-root .stat .bubble{width:34px;height:34px}#bonfire-native-root .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#bonfire-native-root .promptcard{padding:9px;border-radius:19px}#bonfire-native-root .cover{height:112px;border-radius:13px;font-size:33px}#bonfire-native-root .cardbody{padding:10px 2px 2px}#bonfire-native-root .cardtitle{font-size:13px}#bonfire-native-root .excerpt{font-size:10px;height:39px;line-height:1.8}#bonfire-native-root .minitag{font-size:9px;padding:4px 6px}#bonfire-native-root .cardfoot{margin-top:10px;padding-top:9px}#bonfire-native-root .date{font-size:9px}#bonfire-native-root .tiny{width:27px;height:27px}#bonfire-native-root .toolbar{width:100%}#bonfire-native-root .toolbar .control{flex:1;min-width:0;font-size:11px;padding:9px 7px}#bonfire-native-root .sectionhead{align-items:flex-start;flex-direction:column}#bonfire-native-root .sectionhead h3{font-size:16px}#bonfire-native-root .fab{display:block}#bonfire-native-root .bottomnav{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:9;background:var(--surface);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -5px 18px #0000000a}#bonfire-native-root .navitem{background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:var(--muted);padding:5px 12px;border-radius:12px}#bonfire-native-root .navitem span{font-size:20px}#bonfire-native-root .navitem.active{color:var(--text);background:color-mix(in srgb,#b9a7f5 25%,var(--surface))}#bonfire-native-root .formrow, #bonfire-native-root .settingsgrid{grid-template-columns:1fr}#bonfire-native-root .modal{padding:17px;border-radius:23px}#bonfire-native-root .modalback{padding:9px}#bonfire-native-root .detailcover{height:170px}#bonfire-native-root .list .promptcard{grid-template-columns:95px 1fr;gap:9px}#bonfire-native-root .list .cover{height:100px}#bonfire-native-root .list .cardtitle{font-size:13px}#bonfire-native-root .list .cardfoot{flex-wrap:wrap}#bonfire-native-root .list .date{display:none}}

#bonfire-native-root .tag-icon-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;padding:3px 2px}#bonfire-native-root .tag-icon-option{aspect-ratio:1;min-width:0;border-radius:13px;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);display:grid;place-items:center;padding:0}#bonfire-native-root .tag-icon-option svg{width:21px;height:21px}#bonfire-native-root .tag-icon-option.selected{background:color-mix(in srgb,var(--purple) 32%,var(--surface));border-color:var(--purple);box-shadow:var(--inset)}#bonfire-native-root .tag-icon-preview{height:44px;display:flex;align-items:center;justify-content:center}#bonfire-native-root .tag-icon-preview svg{width:25px;height:25px}@media(max-width:420px){#bonfire-native-root .tag-icon-picker{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}}

/* Tag carousels: touch-scrollable on the home page and in Add Prompt. */
#bonfire-native-root .tag-section-head{align-items:center!important;flex-direction:row!important}
#bonfire-native-root .tag-head-actions{display:flex;align-items:center;gap:7px}
#bonfire-native-root .tag-scroll-btn{width:36px;height:36px;min-width:36px;border-radius:12px}
#bonfire-native-root .tag-scroll-btn svg{width:17px;height:17px}
#bonfire-native-root .tagrow{display:flex!important;flex-flow:row nowrap!important;align-items:center;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x proximity;touch-action:pan-x;max-width:100%;}
#bonfire-native-root .tagrow::-webkit-scrollbar{display:none}
#bonfire-native-root .tagrow>.tag{flex:0 0 auto!important;width:max-content;max-width:none;white-space:nowrap;scroll-snap-align:start;}
#bonfire-native-root .tagrow>.tag i, #bonfire-native-root .tagrow>.tag svg{flex:0 0 auto;width:16px;height:16px}
#bonfire-native-root .tagpicker{display:flex!important;flex-flow:row nowrap!important;gap:10px;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;padding:12px 5px 16px;scrollbar-width:thin;scrollbar-color:var(--purple) transparent;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;touch-action:pan-x}
#bonfire-native-root .tagpick{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 15px;white-space:nowrap;scroll-snap-align:center;transition:transform .18s,background .18s,border-color .18s}
#bonfire-native-root .tagpick svg, #bonfire-native-root .tagpick i{width:16px;height:16px;flex:0 0 auto}
#bonfire-native-root .tagpick.selected{transform:translateY(-2px);border-color:var(--tag-color,#b9a7f5);}
#bonfire-native-root .tagpicker:focus-visible, #bonfire-native-root .tagrow:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
@media(max-width:620px){#bonfire-native-root .tag-head-actions{gap:5px}#bonfire-native-root .tag-scroll-btn{width:32px;height:32px;min-width:32px}#bonfire-native-root .tagpicker{margin-right:-4px;margin-left:-4px;padding:11px 5px 14px}#bonfire-native-root .tagpick{padding:10px 13px}}






/* FocusFlow-inspired visual system: preserve PromptVault features and storage. */
#bonfire-native-root{--bg:#f5f2ed;--surface:#f8f6f2;--text:#282638;--muted:#858294;--line:rgba(65,57,91,.1);--purple:#b9a7f5;--blue:#a9d9f7;--mint:#b7e9d5;--pink:#f4c5d8;--yellow:#f5df9e;--shadow:9px 9px 20px #dedbd5,-9px -9px 20px #fff;--inset:inset 4px 4px 9px #e2dfd9,inset -4px -4px 9px #fff;--radius:24px}
#bonfire-native-root{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.5}
#bonfire-native-root.dark{--bg:#242330;--surface:#2c2b3a;--text:#f3f0ff;--muted:#aaa7bd;--line:rgba(255,255,255,.08);--purple:#b9a7f5;--blue:#a9d9f7;--mint:#b7e9d5;--shadow:8px 8px 18px #1c1b26,-7px -7px 18px #302f40;--inset:inset 4px 4px 8px #22212d,inset -4px -4px 8px #333243}
#bonfire-native-root .app{max-width:520px;padding:18px 16px calc(105px + env(safe-area-inset-bottom));}
#bonfire-native-root .top{gap:8px;margin-bottom:18px}#bonfire-native-root .brand{gap:9px}#bonfire-native-root .logo{width:42px;height:42px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow);color:var(--purple);font-size:23px}#bonfire-native-root .brand h1{font-size:22px;font-weight:800;letter-spacing:-.02em}#bonfire-native-root .brand p{display:none}#bonfire-native-root .actions{gap:8px}#bonfire-native-root .iconbtn, #bonfire-native-root .softbtn, #bonfire-native-root .viewbtn, #bonfire-native-root .tiny, #bonfire-native-root .pickbtn, #bonfire-native-root .secondary{background:var(--surface);color:var(--text);box-shadow:var(--shadow);border:0}#bonfire-native-root .iconbtn{width:44px;height:44px;border-radius:15px}#bonfire-native-root .iconbtn:active, #bonfire-native-root .softbtn:active, #bonfire-native-root .viewbtn:active, #bonfire-native-root .tiny:active, #bonfire-native-root .secondary:active, #bonfire-native-root .pickbtn:active{box-shadow:var(--inset)}
#bonfire-native-root .primary{background:linear-gradient(135deg,#8bb5ff,#4f97f5);color:#fff;border-radius:15px;box-shadow:0 8px 20px #4f97f538;padding:12px 17px;font-weight:800}#bonfire-native-root .hero{border-radius:22px;padding:14px 14px;background:var(--surface);box-shadow:var(--shadow);margin-bottom:18px;overflow:visible}#bonfire-native-root .hero h2{font-size:22px}#bonfire-native-root .hero p{font-size:13px;line-height:1.7;margin-bottom:14px}#bonfire-native-root .searchwrap{max-width:none}#bonfire-native-root .searchwrap span{left:15px;top:12px}#bonfire-native-root .search{border:0;border-radius:14px;background:var(--bg);box-shadow:var(--inset);padding:14px 14px 14px 45px;color:var(--text)}
#bonfire-native-root .stats{gap:10px;margin:14px 0 20px}#bonfire-native-root .stat{min-width:calc(50% - 5px);padding:13px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}#bonfire-native-root .stat .bubble{border-radius:12px}#bonfire-native-root .sectionhead{align-items:center;flex-direction:row;margin:20px 2px 10px}#bonfire-native-root .sectionhead h3{font-size:16px;font-weight:800}#bonfire-native-root .softbtn{padding:9px 12px;border-radius:13px;font-size:12px}#bonfire-native-root .tagrow{margin:0 -16px;padding:10px 16px 15px;gap:9px;scrollbar-width:none}#bonfire-native-root .tag{border-radius:999px;padding:9px 14px;background:var(--surface);box-shadow:var(--shadow);font-size:13px}#bonfire-native-root .tag.active{background:var(--surface);box-shadow:var(--inset);border-color:transparent}#bonfire-native-root .tag.addtag{border:1px dashed var(--muted);box-shadow:none}#bonfire-native-root .toolbar{gap:7px}#bonfire-native-root .control{background:var(--bg);border:0;box-shadow:var(--inset);border-radius:12px;color:var(--text)}#bonfire-native-root .viewbtn{border-radius:12px}#bonfire-native-root .viewbtn.active{box-shadow:var(--inset);color:var(--purple)}
#bonfire-native-root .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#bonfire-native-root .promptcard{border-radius:20px;padding:10px;background:var(--surface);box-shadow:var(--shadow);border:0}#bonfire-native-root .promptcard:hover{transform:translateY(-2px)}#bonfire-native-root .cover{height:112px;border-radius:14px;background:linear-gradient(135deg,#c3dafc,#8bb5ff,#dce8f7);color:#315987;font-size:32px}#bonfire-native-root .cardbody{padding:10px 2px 2px}#bonfire-native-root .cardtitle{font-size:13px;line-height:1.4;margin-bottom:7px}#bonfire-native-root .excerpt{font-size:11px;line-height:1.7;height:38px;margin-bottom:10px}#bonfire-native-root .minitag{border-radius:99px;padding:4px 7px;font-size:9px}#bonfire-native-root .cardfoot{gap:5px;margin-top:10px;padding-top:9px}#bonfire-native-root .date{font-size:9px;line-height:1.5}#bonfire-native-root .cardtools{gap:4px}#bonfire-native-root .tiny{width:28px;height:28px;border-radius:9px;font-size:13px}#bonfire-native-root .tiny.faved{background:#ffe5a8;color:#795600}#bonfire-native-root .empty{border-radius:22px;background:var(--surface);box-shadow:var(--inset);padding:35px 18px}#bonfire-native-root .empty h3{font-size:18px}#bonfire-native-root .fab{left:18px;bottom:88px;width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,#8bb5ff,#4f97f5);box-shadow:0 8px 22px #4f97f54a}
#bonfire-native-root .bottomnav{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:9;background:var(--surface);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -5px 18px #203d620b}#bonfire-native-root .navitem{background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:var(--muted);padding:5px 12px;border-radius:12px}#bonfire-native-root .navitem span{font-size:20px}#bonfire-native-root .navitem.active{color:var(--purple);background:color-mix(in srgb,#4f97f5 13%,var(--surface))}
#bonfire-native-root .modalback{background:#10172299;backdrop-filter:blur(7px);padding:10px}#bonfire-native-root .modal{background:var(--bg);border-radius:25px;box-shadow:0 20px 70px #0003;padding:18px;width:min(520px,100%);max-height:92dvh}#bonfire-native-root .modalhead h2{font-size:20px;font-weight:800}#bonfire-native-root .close{width:38px;height:38px;border-radius:13px;background:var(--surface);box-shadow:var(--shadow)}#bonfire-native-root .field label{font-size:13px;color:var(--muted)}#bonfire-native-root .field input, #bonfire-native-root .field textarea, #bonfire-native-root .field select{background:var(--bg);border:1.5px solid transparent;border-radius:14px;box-shadow:var(--inset);color:var(--text);padding:13px}#bonfire-native-root .field input:focus, #bonfire-native-root .field textarea:focus{border-color:var(--purple)}#bonfire-native-root .tagpick{border-radius:999px;background:var(--surface);box-shadow:var(--shadow)}#bonfire-native-root .tagpick.selected{box-shadow:var(--inset)}#bonfire-native-root .detailcover{border-radius:18px}#bonfire-native-root .detailtext{background:var(--bg);box-shadow:var(--inset);border-radius:15px}#bonfire-native-root .settingcard{background:var(--surface);border-radius:18px;box-shadow:var(--shadow)}#bonfire-native-root .toast{bottom:calc(78px + env(safe-area-inset-bottom));border-radius:14px}
@media(min-width:700px){#bonfire-native-root .app{max-width:900px;padding:24px 24px 100px}#bonfire-native-root .cards{grid-template-columns:repeat(3,minmax(0,1fr))}#bonfire-native-root .cover{height:145px}#bonfire-native-root .fab{display:none}#bonfire-native-root .bottomnav{display:none}#bonfire-native-root .top .primary{display:inline-flex}}
@media(max-width:620px){#bonfire-native-root .app{padding:14px 13px calc(100px + env(safe-area-inset-bottom))}#bonfire-native-root .top{margin-bottom:15px}#bonfire-native-root .brand h1{font-size:20px}#bonfire-native-root .logo{width:40px;height:40px}#bonfire-native-root .top .primary{display:none}#bonfire-native-root .hero{padding:12px;border-radius:19px}#bonfire-native-root .stats{gap:9px}#bonfire-native-root .stat{padding:12px}#bonfire-native-root .sectionhead{align-items:center;flex-direction:row}#bonfire-native-root .toolbar{width:100%}#bonfire-native-root .toolbar .control{flex:1;min-width:0;font-size:11px;padding:9px 7px}#bonfire-native-root .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}#bonfire-native-root .promptcard{padding:9px;border-radius:18px}#bonfire-native-root .cover{height:108px}#bonfire-native-root .fab{display:block}#bonfire-native-root .bottomnav{display:flex}#bonfire-native-root .formrow, #bonfire-native-root .settingsgrid{grid-template-columns:1fr}#bonfire-native-root .modal{padding:16px;border-radius:22px}#bonfire-native-root .modalback{padding:8px}#bonfire-native-root .detailcover{height:170px}#bonfire-native-root .list .promptcard{grid-template-columns:90px minmax(0,1fr);gap:9px}#bonfire-native-root .list .cover{height:95px}#bonfire-native-root .list .cardbody{padding:4px}#bonfire-native-root .list .date{display:none}#bonfire-native-root .list .cardfoot{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#bonfire-native-root *, #bonfire-native-root *::before, #bonfire-native-root *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
#bonfire-native-root i[data-lucide]{width:1em;height:1em;stroke-width:2;vertical-align:middle;display:inline-block;flex-shrink:0}#bonfire-native-root .logo i{width:27px;height:27px}#bonfire-native-root .iconbtn i{width:20px;height:20px}#bonfire-native-root .searchwrap span i{width:20px;height:20px}#bonfire-native-root .navitem span i{width:20px;height:20px}#bonfire-native-root .navitem span{font-size:0}#bonfire-native-root .primary i, #bonfire-native-root .softbtn i, #bonfire-native-root .pickbtn i, #bonfire-native-root .secondary i{width:16px;height:16px}#bonfire-native-root .viewbtn i{width:18px;height:18px}#bonfire-native-root .fab i{width:28px;height:28px}#bonfire-native-root .settingcard h4 i{width:17px;height:17px;margin-right:5px}



/* Icon-first controls: centered glyphs, compact square buttons. */
#bonfire-native-root .iconbtn, #bonfire-native-root .tiny, #bonfire-native-root .viewbtn, #bonfire-native-root .close, #bonfire-native-root .fab{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
#bonfire-native-root .iconbtn{width:44px;height:44px;padding:0;border-radius:14px}
#bonfire-native-root .tiny{width:36px;height:36px;padding:0;border-radius:11px}
#bonfire-native-root .viewbtn{width:42px;height:42px;padding:0;border-radius:12px}
#bonfire-native-root .close{width:40px;height:40px;padding:0}
#bonfire-native-root .iconbtn i, #bonfire-native-root .tiny i, #bonfire-native-root .viewbtn i, #bonfire-native-root .close i, #bonfire-native-root .fab i{display:block;margin:auto}
#bonfire-native-root .tagrow{display:flex!important;flex-flow:row nowrap!important;align-items:center;gap:9px;max-width:100%;width:calc(100% + 32px);overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:10px 16px 16px;margin:0 -16px 2px;visibility:visible;min-height:54px}
#bonfire-native-root .tagrow::-webkit-scrollbar{display:none}
#bonfire-native-root .tagrow>.tag{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:max-content;max-width:none;white-space:nowrap;line-height:1.2}
#bonfire-native-root .tagrow>.tag i{width:16px;height:16px;flex:0 0 auto}
#bonfire-native-root .tagrow>.tag small{flex:0 0 auto}
#bonfire-native-root .sectionhead{position:relative;z-index:1}
#bonfire-native-root .bottomnav{align-items:center;justify-content:space-around;gap:6px}
#bonfire-native-root .navitem{width:48px;height:44px;min-width:44px;padding:0;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:0;border-radius:14px}
#bonfire-native-root .navitem span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:0}
#bonfire-native-root .navitem span i{width:22px;height:22px;display:block}
#bonfire-native-root .navitem.active{box-shadow:var(--inset)}
/* Ensure tag controls are not clipped by surrounding layout. */
#bonfire-native-root .app{overflow:visible;min-width:0}
@media(max-width:620px){
 #bonfire-native-root .tagrow{width:calc(100% + 26px);margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px;min-height:55px}
 #bonfire-native-root .tagrow>.tag{padding:10px 13px}
 #bonfire-native-root .iconbtn{width:42px;height:42px;min-width:42px}
 #bonfire-native-root .tiny{width:32px;height:32px}
 #bonfire-native-root .navitem{width:50px;height:46px}
}



/* Consistent design-system treatment for color, select, and option controls. */
#bonfire-native-root{color-scheme:light}
#bonfire-native-root.dark{color-scheme:dark}
#bonfire-native-root select, #bonfire-native-root .control, #bonfire-native-root .field select{appearance:none;-webkit-appearance:none;background-color:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:11px 38px 11px 13px;min-height:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367809f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;box-shadow:var(--inset);cursor:pointer;transition:border-color .2s,box-shadow .2s}
#bonfire-native-root select:focus-visible, #bonfire-native-root .control:focus-visible, #bonfire-native-root .field select:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
#bonfire-native-root select option, #bonfire-native-root .field select option{background:var(--surface);color:var(--text);padding:10px}
#bonfire-native-root input[type="color"]{appearance:none;-webkit-appearance:none;width:100%;height:48px;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;overflow:hidden}
#bonfire-native-root input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
#bonfire-native-root input[type="color"]::-webkit-color-swatch{border:0;border-radius:9px}
#bonfire-native-root input[type="color"]::-moz-color-swatch{border:0;border-radius:9px}
#bonfire-native-root .tagmanage input[type="color"]{width:42px;min-width:42px;height:38px;padding:4px;border-radius:12px}
#bonfire-native-root .tag-icon-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto;padding:5px 3px 10px;overscroll-behavior:contain}
#bonfire-native-root .tag-icon-option{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;padding:0;border-radius:12px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);border:1px solid transparent}
#bonfire-native-root .tag-icon-option.selected{color:var(--purple);border-color:var(--purple);box-shadow:var(--inset);background:color-mix(in srgb,var(--purple) 12%,var(--surface))}
#bonfire-native-root .tag-icon-preview{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--surface);box-shadow:var(--inset);color:var(--purple)}
#bonfire-native-root .tagrow{scroll-snap-type:x proximity;touch-action:pan-x;}
#bonfire-native-root .tagrow>.tag{scroll-snap-align:start;}
#bonfire-native-root .tagrow>.tag:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
#bonfire-native-root .tag.active{box-shadow:var(--inset);border-color:var(--tag-color,var(--purple));}
@media(max-width:620px){#bonfire-native-root .tag-icon-picker{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}#bonfire-native-root .tag-icon-option{border-radius:10px}#bonfire-native-root .tagmanage input[type="color"]{width:38px;min-width:38px}}



/* FocusFlow-style tag rail: visible chips, native finger scrolling, no arrow controls. */
#bonfire-native-root .tag-section-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;margin-bottom:8px!important}
#bonfire-native-root .tag-head-actions{display:flex!important;align-items:center!important}
#bonfire-native-root .tagrow#tagRow{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;width:calc(100% + 32px)!important;max-width:none!important;min-height:64px!important;height:auto!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;padding:12px 18px 18px!important;margin:0 -16px 8px!important;visibility:visible!important;opacity:1!important;position:relative!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;touch-action:pan-x!important;scroll-snap-type:x proximity!important}
#bonfire-native-root #tagRow::-webkit-scrollbar{display:none!important}
#bonfire-native-root #tagRow>.tag{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;width:max-content!important;max-width:none!important;min-height:42px!important;white-space:nowrap!important;visibility:visible!important;opacity:1!important;scroll-snap-align:start!important}
#bonfire-native-root #tagRow>.tag svg, #bonfire-native-root #tagRow>.tag i{width:16px!important;height:16px!important;flex:0 0 16px!important}
@media(max-width:620px){#bonfire-native-root .tagrow#tagRow{padding-left:16px!important;padding-right:16px!important;min-height:62px!important}#bonfire-native-root .tag-section-head{flex-direction:row!important;align-items:center!important}}



#bonfire-native-root #searchPanel{margin-bottom:12px}
#bonfire-native-root #searchPanel.hidden{display:none!important}
#bonfire-native-root .tag-heading-spacer{display:none}
#bonfire-native-root .tag-section-head{margin-top:0;margin-bottom:0}
#bonfire-native-root .list-brand-mark{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:12px;background:linear-gradient(135deg,#c7b8ff,#9c8ae8);color:#fff;box-shadow:var(--shadow)}
#bonfire-native-root .list-brand-mark i{width:19px;height:19px}
#bonfire-native-root #listTitle{display:flex;align-items:center;gap:9px}



#bonfire-native-root .tag-section-head{display:none!important}
#bonfire-native-root .tagrow-wrap{display:flex;align-items:center;gap:8px;min-width:0;width:100%;margin:8px 0 14px}
#bonfire-native-root .tagrow-wrap .tagrow{flex:1;min-width:0;width:0;margin:0!important;overflow-x:auto;white-space:nowrap}
#bonfire-native-root .tagrow-wrap .tag-head-actions{display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0!important}
#bonfire-native-root .tagrow-wrap #manageTagsBtn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0}
#bonfire-native-root .tagrow-wrap #manageTagsBtn i, #bonfire-native-root .tagrow-wrap #manageTagsBtn svg{display:block;margin:auto}
#bonfire-native-root #tagRow{scrollbar-width:none}
#bonfire-native-root #tagRow::-webkit-scrollbar{display:none}
#bonfire-native-root .add-tag-icon, #bonfire-native-root .add-tag-btn i, #bonfire-native-root .add-tag-btn svg{display:flex;align-items:center;justify-content:center;margin-inline:auto}
@media(max-width:520px){#bonfire-native-root .tagrow-wrap{gap:6px}#bonfire-native-root .tagrow-wrap #manageTagsBtn{flex-basis:36px;width:36px;height:36px}}



/* Fill the space left by the removed Manage Tags button with the tag strip. */
#bonfire-native-root .tagrow-wrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:8px 0 14px!important;
  padding:0!important;
}
#bonfire-native-root .tagrow-wrap #tagRow{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:0 0 100%!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  gap:6px!important;
}
#bonfire-native-root .tagrow-wrap .tag-head-actions{display:none!important}
#bonfire-native-root .tagrow-wrap #manageTagsBtn{display:none!important}
#bonfire-native-root .tagrow-wrap #tagRow > *{flex:0 0 auto}



#bonfire-native-root #tagIconPreview{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center}
#bonfire-native-root #tagIconPreview svg{display:block;margin:auto}
#bonfire-native-root #tagIconPreview .tag-emoji-icon{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:27px;line-height:1}
#bonfire-native-root .tag-icon-option .tag-emoji-icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:25px;line-height:1}
#bonfire-native-root .tagrow .tag .tag-emoji-icon{display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;width:18px;height:18px;vertical-align:middle}



/* Main page tag filters use a clean flat style, not neumorphism. */
#bonfire-native-root #tagRow .tag, #bonfire-native-root #tagRow .tag-chip, #bonfire-native-root .tagrow-wrap #tagRow button{
  box-shadow:none!important;
  background:var(--surface)!important;
  border:1px solid var(--line)!important;
  transform:none!important;
}
#bonfire-native-root #tagRow .tag.active, #bonfire-native-root #tagRow .tag-chip.active, #bonfire-native-root .tagrow-wrap #tagRow button.active, #bonfire-native-root #tagRow [aria-pressed="true"]{
  background:var(--text)!important;
  color:var(--surface)!important;
  border-color:var(--text)!important;
  box-shadow:none!important;
}
#bonfire-native-root #tagRow .tag:hover, #bonfire-native-root #tagRow .tag-chip:hover, #bonfire-native-root .tagrow-wrap #tagRow button:hover{
  box-shadow:none!important;
  filter:brightness(.97);
}
#bonfire-native-root #tagRow svg{filter:none!important;box-shadow:none!important}



#bonfire-native-root .logo{background:var(--surface);box-shadow:var(--shadow)}#bonfire-native-root .logo .pv-vault-logo{display:block;width:30px;height:30px;object-fit:contain}
#bonfire-native-root .list-brand-mark{display:inline-flex;align-items:center;justify-content:center}
#bonfire-native-root .list-brand-mark .pv-vault-logo{display:block;width:24px;height:24px;object-fit:contain}
#bonfire-native-root .pv-filter-logo{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;color:var(--text);opacity:.88}
#bonfire-native-root .pv-filter-logo .pv-vault-logo{display:block;width:24px;height:24px;object-fit:contain}



/* Keep the tag-management control centered against the tag pills. */
#bonfire-native-root .tagrow-wrap, #bonfire-native-root .tagrow-wrap #tagRow, #bonfire-native-root .tagrow-wrap .tag-head-actions, #bonfire-native-root #tagRow, #bonfire-native-root #manageTagsBtn{
  align-items: center !important;
}
#bonfire-native-root .tagrow-wrap #manageTagsBtn{
  align-self: center !important;
  margin-block: 0 !important;
  transform: translateY(-2px);
}
#bonfire-native-root .tagrow-wrap #manageTagsBtn svg, #bonfire-native-root #manageTagsBtn svg{
  display: block !important;
  width: 18px;
  height: 18px;
  margin: auto !important;
}
/* A liked prompt changes the heart only; never tint the button background. */
#bonfire-native-root .tiny.faved{
  background: transparent !important;
  box-shadow: none !important;
  color: #e5394f !important;
}
#bonfire-native-root .tiny.faved svg, #bonfire-native-root .tiny.faved i, #bonfire-native-root .tiny.faved [data-lucide="heart"]{
  color: #e5394f !important;
  stroke: #e5394f !important;
  fill: #e5394f !important;
}
/* Refined, unfilled outline logo. */
#bonfire-native-root .logo{ color: #203d62; }
#bonfire-native-root .logo .pv-vault-logo, #bonfire-native-root .list-brand-mark .pv-vault-logo{ fill: none !important; }



/* Desktop has its own spacious layout; mobile keeps a compact, touch-first layout. */
@media (min-width: 1001px){
  #bonfire-native-root .app{max-width:1480px!important;padding:28px 38px 72px!important}
  #bonfire-native-root .top{gap:24px;margin-bottom:30px!important}
  #bonfire-native-root .brand h1{font-size:28px!important;letter-spacing:-.45px}
  #bonfire-native-root .logo{width:54px!important;height:54px!important;background:#fff!important;border:1px solid rgba(32,61,98,.08)!important;border-radius:17px!important;box-shadow:8px 8px 18px #cbd2dc,-7px -7px 17px #fff!important;color:#203d62!important}
  #bonfire-native-root .cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
  #bonfire-native-root .cover{height:176px!important}
  #bonfire-native-root .tagrow-wrap{align-items:center!important;gap:12px!important}
  #bonfire-native-root .tagrow-wrap #tagRow{cursor:grab!important;user-select:none!important;scrollbar-width:none!important}
  #bonfire-native-root .tagrow-wrap #tagRow.is-dragging{cursor:grabbing!important;scroll-snap-type:none!important}
  #bonfire-native-root .tagrow-wrap #manageTagsBtn{width:44px!important;height:44px!important;flex-basis:44px!important;transform:none!important;align-self:center!important}
  #bonfire-native-root .tag-icon-picker{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:7px!important}
}
@media (min-width: 700px) and (max-width: 1000px){
  #bonfire-native-root .app{max-width:1180px!important;padding:24px 28px 70px!important}
  #bonfire-native-root .cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #bonfire-native-root .top .primary{display:inline-flex!important}
  #bonfire-native-root .tag-icon-picker{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:7px!important}
}
/* Keep Add Prompt in the top bar; never show a floating blue add button. */
#bonfire-native-root .top-add-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;padding:0 16px!important;border-radius:14px!important;background:linear-gradient(135deg,#8bb5ff,#4f97f5)!important;color:#fff!important;box-shadow:0 5px 14px #4f97f52b!important;white-space:nowrap!important;flex:0 0 auto!important}
#bonfire-native-root .fab{display:none!important;visibility:hidden!important;pointer-events:none!important}
@media(max-width:699px){
  #bonfire-native-root .app{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
  #bonfire-native-root .top{align-items:center!important;gap:7px!important}
  #bonfire-native-root .top .actions{gap:6px!important}
  #bonfire-native-root .top .primary.top-add-btn{display:inline-flex!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border-radius:12px!important}
  #bonfire-native-root .top-add-btn span{display:none!important}
  #bonfire-native-root .top-add-btn i{width:20px!important;height:20px!important}
  #bonfire-native-root .brand{gap:8px!important;min-width:0}
  #bonfire-native-root .brand h1{font-size:19px!important;white-space:nowrap}
  #bonfire-native-root .logo{width:40px!important;height:40px!important;padding:5px!important;border-radius:12px!important;background:#fff!important;color:#203d62!important}
  #bonfire-native-root .top .iconbtn{width:36px!important;min-width:36px!important;height:36px!important;border-radius:12px!important}
  #bonfire-native-root .tag-icon-picker{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important}
}
/* The tag rail can be dragged horizontally on desktop and swiped on mobile. */
#bonfire-native-root .tagrow-wrap{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;margin:8px 0 14px!important}
#bonfire-native-root .tagrow-wrap #tagRow{flex:1 1 auto!important;min-width:0!important;width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;overscroll-behavior-x:contain!important}
#bonfire-native-root .tagrow-wrap #tagRow::-webkit-scrollbar{display:none!important}
#bonfire-native-root .tagrow-wrap #manageTagsBtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;margin:0!important;transform:none!important}
#bonfire-native-root .tagrow-wrap #manageTagsBtn svg{display:block!important;margin:auto!important}
/* Custom-designed sort menu, independent of the browser's native select popup. */
#bonfire-native-root .sort-wrap{position:relative;display:inline-flex;align-items:center;min-width:190px}
#bonfire-native-root .sort-trigger{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-height:44px!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;border:1px solid rgba(120,135,160,.12)!important;border-radius:14px!important;padding:10px 14px!important;text-align:left!important;white-space:nowrap}
#bonfire-native-root .sort-trigger svg{width:15px;height:15px;opacity:.7;flex:0 0 auto}
#bonfire-native-root .sort-menu{position:absolute;z-index:30;top:calc(100% + 7px);left:0;right:0;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:0 12px 30px #24354b24;display:flex;flex-direction:column;gap:2px;min-width:190px}
#bonfire-native-root .sort-menu.hidden{display:none!important}
#bonfire-native-root .sort-menu button{display:flex;align-items:center;width:100%;text-align:left;padding:10px 12px;border-radius:9px;background:transparent;color:var(--text);font-size:13px}
#bonfire-native-root .sort-menu button:hover{background:color-mix(in srgb,#4f97f5 12%,var(--surface))}
#bonfire-native-root .sort-menu button[aria-selected="true"]{background:#4f97f5;color:#fff}
@media(max-width:620px){#bonfire-native-root .sort-wrap{min-width:0;flex:1}#bonfire-native-root .sort-trigger{min-width:0;padding:9px 10px!important;font-size:11px}#bonfire-native-root .sort-menu{min-width:100%}}
/* Heart only turns red on favorite; no button fill or tinted background. */
#bonfire-native-root .tiny.faved, #bonfire-native-root .tiny.faved:hover, #bonfire-native-root .tiny.faved:focus{background:transparent!important;background-color:transparent!important;box-shadow:none!important;color:#e5394f!important}
#bonfire-native-root .tiny.faved svg{stroke:#e5394f!important;fill:#e5394f!important;color:#e5394f!important}
/* Clean outline logo: no colored interior fills. */
#bonfire-native-root .logo .pv-vault-logo, #bonfire-native-root .list-brand-mark .pv-vault-logo{fill:none!important;stroke:currentColor!important}
#bonfire-native-root .empty .empty-tag-icon{display:flex;align-items:center;justify-content:center;min-height:50px;margin-bottom:12px;color:var(--text)}



/* List view should use the full available content width, not a narrow card. */
#bonfire-native-root #cards.cards.list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:none!important;gap:14px!important}
#bonfire-native-root #cards.cards.list>.promptcard{display:grid!important;grid-template-columns:minmax(150px,220px) minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;gap:16px!important}
#bonfire-native-root #cards.cards.list>.promptcard .cover{width:100%!important;height:100%!important;min-height:150px!important;max-height:240px!important;align-self:stretch!important}
#bonfire-native-root #cards.cards.list>.promptcard .cardbody{min-width:0!important;width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
#bonfire-native-root #cards.cards.list>.promptcard .excerpt{height:auto!important;min-height:0!important;max-height:4.2em!important}
#bonfire-native-root #cards.cards.list>.promptcard .cardfoot{width:100%!important;margin-top:auto!important}
/* Remove the decorative logo and result count above the prompt cards. */
#bonfire-native-root #listTitle{display:none!important}
/* Top Add Prompt is a neutral icon-only button, matching the other header controls. */
#bonfire-native-root .top .primary.top-add-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;gap:0!important;border-radius:15px!important;background:var(--surface)!important;background-image:none!important;color:var(--text)!important;box-shadow:var(--shadow)!important;border:0!important}
#bonfire-native-root .top-add-btn span{display:none!important}
#bonfire-native-root .top-add-btn i, #bonfire-native-root .top-add-btn svg{width:20px!important;height:20px!important;display:block!important;margin:auto!important}
@media(max-width:699px){#bonfire-native-root .top .primary.top-add-btn{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:12px!important}}
@media(max-width:620px){
 #bonfire-native-root #cards.cards.list>.promptcard{grid-template-columns:minmax(100px,38%) minmax(0,1fr)!important;gap:10px!important;padding:10px!important;border-radius:20px!important}
 #bonfire-native-root #cards.cards.list>.promptcard .cover{min-height:145px!important;max-height:210px!important;border-radius:14px!important}
 #bonfire-native-root #cards.cards.list>.promptcard .cardbody{padding:2px!important}
 #bonfire-native-root #cards.cards.list>.promptcard .cardtitle{font-size:14px!important}
 #bonfire-native-root #cards.cards.list>.promptcard .excerpt{font-size:11px!important;line-height:1.65!important;max-height:3.3em!important;overflow:hidden!important}
 #bonfire-native-root #cards.cards.list>.promptcard .cardfoot{gap:5px!important;flex-wrap:wrap!important;padding-top:8px!important;margin-top:auto!important}
 #bonfire-native-root #cards.cards.list>.promptcard .date{font-size:9px!important;max-width:calc(100% - 100px)!important}
 #bonfire-native-root #cards.cards.list>.promptcard .cardtools{gap:4px!important}
 #bonfire-native-root #cards.cards.list>.promptcard .tiny{width:30px!important;height:30px!important}
}



#bonfire-native-root, #bonfire-native-root{width:100%;min-height:100%;margin:0;overflow-x:hidden;background:transparent!important;color:var(--text)}
#bonfire-native-root{font-family:inherit!important}
#bonfire-native-root .app{width:100%!important;max-width:none!important;min-height:100%;margin:0!important;padding:12px 8px 28px!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
#bonfire-native-root .top{display:none!important}#bonfire-native-root .hero, #bonfire-native-root #searchPanel{display:none!important}
#bonfire-native-root #bonfireThemeBtn, #bonfire-native-root #settingsBtn, #bonfire-native-root #navSettings, #bonfire-native-root #searchToggle, #bonfire-native-root #topAdd, #bonfire-native-root #navAdd{display:none!important}

#bonfire-native-root .tagrow-wrap{display:flex!important;align-items:center!important;justify-content:stretch!important;gap:10px!important;width:100%!important;min-width:0!important;margin:4px 0 18px!important}
#bonfire-native-root .tagrow-wrap #tagRow{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:1 1 auto!important;width:0!important;min-width:0!important;max-width:100%!important;gap:8px!important;margin:0!important;padding:7px 2px 10px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important}
#bonfire-native-root .tagrow-wrap #tagRow::-webkit-scrollbar{display:none!important}
#bonfire-native-root #tagRow .tag{flex:0 0 auto!important;min-height:38px!important;padding:9px 13px!important;border-radius:12px!important;border:1px solid var(--line)!important;background:var(--surface)!important;box-shadow:none!important;color:var(--text)!important;font-size:12px!important}
#bonfire-native-root #tagRow .tag.active{border-color:var(--accent,var(--purple,#8bb5ff))!important;background:color-mix(in srgb,var(--accent,var(--purple,#8bb5ff)) 16%,var(--surface))!important}
#bonfire-native-root .tag-head-actions{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;margin:0!important}
#bonfire-native-root #manageTagsBtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;border-radius:13px!important;background:var(--surface)!important;box-shadow:0 2px 8px rgba(20,35,55,.06)!important;color:var(--text)!important}
#bonfire-native-root .sectionhead{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;width:100%!important;min-width:0!important;margin:0 0 16px!important}
#bonfire-native-root #listTitle{display:none!important}#bonfire-native-root .toolbar{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;margin-left:auto!important}
#bonfire-native-root .sort-trigger{min-height:40px!important;padding:9px 12px!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:none!important;color:var(--text)!important;font-size:12px!important}
#bonfire-native-root .viewbtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:none!important;color:var(--muted)!important}
#bonfire-native-root .viewbtn.active{background:color-mix(in srgb,var(--accent,var(--purple,#8bb5ff)) 16%,var(--surface))!important;color:var(--text)!important}
#bonfire-native-root #cards.cards{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))!important;gap:16px!important;width:100%!important;min-width:0!important}
#bonfire-native-root #cards .promptcard{min-width:0!important;max-width:none!important;overflow:hidden!important;border:1px solid var(--line)!important;border-radius:18px!important;background:var(--surface)!important;box-shadow:0 4px 15px rgba(20,35,55,.06)!important}
#bonfire-native-root #cards .promptcard .cardbody{min-width:0!important}#bonfire-native-root #cards .promptcard .cardtitle{overflow-wrap:anywhere!important;line-height:1.35!important}
#bonfire-native-root .modalback{z-index:1000!important}#bonfire-native-root .modalback.open{display:flex!important}
#bonfire-native-root button:focus-visible, #bonfire-native-root input:focus-visible, #bonfire-native-root textarea:focus-visible, #bonfire-native-root select:focus-visible{outline:2px solid var(--accent,var(--purple,#8bb5ff))!important;outline-offset:2px!important}
@media(max-width:640px){#bonfire-native-root .app{padding:8px 2px 22px!important}#bonfire-native-root .tagrow-wrap{gap:6px!important}#bonfire-native-root #tagRow .tag{padding:8px 10px!important}#bonfire-native-root .sectionhead{gap:6px!important}#bonfire-native-root #cards.cards{grid-template-columns:1fr!important;gap:12px!important}#bonfire-native-root .sort-trigger{max-width:170px!important}}



#bonfire-native-root, #bonfire-native-root{background:transparent!important;color:var(--ff-text,var(--text))!important}
#bonfire-native-root{min-height:100%;box-sizing:border-box}
#bonfire-native-root .modal-backdrop, #bonfire-native-root .modal-overlay, #bonfire-native-root .overlay{position:fixed!important;inset:0!important;z-index:99999!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(12px,3vw,28px)!important;box-sizing:border-box}
#bonfire-native-root .modal, #bonfire-native-root .dialog, #bonfire-native-root .modal-card{max-height:calc(100dvh - 32px)!important;overflow:auto}



#bonfire-native-root[lang="fa"], #bonfire-native-root[lang="fa"] *{font-family:"Vazirmatn","Vazir",Tahoma,sans-serif!important}
#bonfire-native-root[lang="en"], #bonfire-native-root[lang="en"] *{font-family:Roboto,"Segoe UI",Arial,sans-serif}
#bonfire-native-root[lang="fa"]{direction:rtl}
#bonfire-native-root[lang="fa"] .actions, #bonfire-native-root[lang="fa"] .tagrow, #bonfire-native-root[lang="fa"] .sectionhead{direction:rtl}
#bonfire-native-root[lang="fa"] input, #bonfire-native-root[lang="fa"] textarea{text-align:start}



/* Real responsive grid: cards stay readable and grid differs clearly from list. */
#bonfire-native-root #cards.cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:stretch}
@media(min-width:760px){#bonfire-native-root #cards.cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}}
@media(min-width:1180px){#bonfire-native-root #cards.cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:22px!important}}
#bonfire-native-root #cards.cards.list{display:flex!important;flex-direction:column!important;gap:12px!important}
#bonfire-native-root #cards.cards.list .promptcard{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;min-height:92px}
#bonfire-native-root #cards.cards.list .promptcard .cover{display:none!important}
#bonfire-native-root #cards.cards:not(.list) .promptcard{min-width:0;display:flex;flex-direction:column;align-items:stretch}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cover{width:100%;aspect-ratio:4/3;height:auto!important;overflow:hidden}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cover img{width:100%;height:100%;object-fit:cover}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cardbody{min-width:0;width:100%}
#bonfire-native-root #detailActions{display:flex!important;gap:10px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
#bonfire-native-root #detailActions button{width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
#bonfire-native-root #detailActions button svg, #bonfire-native-root #detailActions button i{margin:0!important}
/* While a modal is open, expose the parent page beneath the full-screen blurred backdrop. */
#bonfire-native-root:has(.modalback.open), #bonfire-native-root:has(.modalback.open){background:transparent!important;background-color:transparent!important}
#bonfire-native-root:has(.modalback.open)>*:not(.modalback):not(script):not(style):not(#bonfireToast){visibility:hidden!important}
#bonfire-native-root:has(.modalback.open) .modalback{visibility:visible!important}
/* Make all modal backdrops fill the iframe viewport. */
#bonfire-native-root .modalback{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483000!important;background:rgba(13,17,25,.42)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;align-items:center!important;justify-content:center!important;padding:clamp(12px,3vw,30px)!important}
#bonfire-native-root .modalback .modal{max-height:calc(100dvh - 28px)!important;overflow:auto!important}
/* Keep Add Prompt visible and clickable on desktop and mobile. */
#bonfire-native-root #topAdd{display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
@media(max-width:620px){#bonfire-native-root #topAdd{display:inline-flex!important;min-width:42px!important;width:auto!important;padding:0 12px!important}#bonfire-native-root #topAdd span{display:inline!important}}
/* Remove selected/active appearance from prompt cards; selection belongs to tags/views only. */
#bonfire-native-root .promptcard.active, #bonfire-native-root .promptcard.selected, #bonfire-native-root .promptcard:focus{outline:none!important;box-shadow:var(--shadow,0 6px 18px rgba(0,0,0,.12))!important}
#bonfire-native-root .promptcard{cursor:pointer}



/* Use the approved bonfire artwork for the site brand and browser tab icon. */
#bonfire-native-root .logo{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:inherit!important;overflow:visible!important}
#bonfire-native-root .logo .pv-bonfire-logo{display:block;width:100%;height:100%;object-fit:contain;border-radius:0}
#bonfire-native-root .list-brand-mark{width:25px;height:25px;margin-right:8px;vertical-align:middle}
#bonfire-native-root .list-brand-mark .pv-bonfire-logo{display:block;width:25px;height:25px;object-fit:contain}
@media(max-width:620px){#bonfire-native-root .logo{width:40px!important;height:40px!important;padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important}}



#bonfire-native-root{position:relative;width:100%;min-width:0;color:var(--ff-text,var(--text));}
#bonfire-native-root .modalback{position:fixed!important;inset:0!important;z-index:2147483646!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;background:rgba(12,16,25,.42)!important;}
#bonfire-native-root .modalback.open{display:flex!important;}
#bonfire-native-root .cards:not(.list){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important;gap:18px!important;}
@media(max-width:600px){#bonfire-native-root .cards:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}}
@media(min-width:1000px){#bonfire-native-root .cards:not(.list){grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
#bonfire-native-root .cards.list{display:flex!important;flex-direction:column!important;}
#bonfire-native-root.is-persian,#bonfire-native-root.is-persian *{font-family:"Vazirmatn","Vazir",Tahoma,sans-serif!important;}
#bonfire-native-root:not(.is-persian),#bonfire-native-root:not(.is-persian) *{font-family:Roboto,"Segoe UI",Arial,sans-serif;}




/* ===== Extracted style block 4; original id=bonfire-host-layout-integration ===== */

/* Keep the host app's fixed navigation from overlapping Bonfire's own mobile bar. */
@media(max-width:699px){body:has(> .app > #bonfirePage.active) > .app > .bottomnav{display:none!important;}}



/* ===== Extracted style block 5; original id=planner-mobile-nav-and-workspace-menu-fix ===== */

/* Planner stays in desktop navigation, but moves into the hamburger menu on phones. */
@media (max-width: 1023px) { .bottomnav .navbtn[data-page="planner"] { display: none !important; } }
.menu-workspace-group { margin-bottom: 8px; }
.menu-workspace-group .menu-item { min-height: 46px; }



/* ===== Extracted style block 6; original id=focusflow-mobile-selector-navbar-fix-20261021 ===== */

/* Bonfire: keep the custom sort control and remove the duplicate native selector. */
#bonfire-native-root #sort { display: none !important; }
#bonfire-native-root .toolbar { min-width: 0 !important; flex-wrap: nowrap !important; }
#bonfire-native-root .sort-wrap { min-width: 0 !important; flex: 1 1 auto !important; }
#bonfire-native-root .sort-trigger { max-width: 100%; overflow: hidden; }
#bonfire-native-root #sortLabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* FocusFlow phone navigation: every destination stays on one horizontal row. */
@media (max-width: 1023px) {
  body > .bottomnav,
  .bottomnav[aria-label="Main navigation"] {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .bottomnav[aria-label="Main navigation"] .navbtn {
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 2px !important;
    font-size: clamp(10px, 2.8vw, 13px) !important;
    line-height: 1.1 !important;
  }
  .bottomnav[aria-label="Main navigation"] .navbtn span {
    display: block !important;
    white-space: nowrap !important;
  }
  .bottomnav[aria-label="Main navigation"] .fab {
    flex: 0 0 clamp(54px, 15vw, 64px) !important;
    width: clamp(54px, 15vw, 64px) !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }
  .bottomnav[aria-label="Main navigation"] .navbtn[data-page="planner"] {
    display: none !important;
  }
}

/* v18: one visible sort selector, centered raised mobile Add button */
.prompt-search-result{width:100%;text-align:start;cursor:pointer}
.prompt-search-result .planner-search-copy{min-width:0}
.prompt-search-result .planner-search-copy small{white-space:normal;overflow-wrap:anywhere}
#bonfire-native-root #sort{display:none!important;visibility:hidden!important;position:absolute!important;width:0!important;height:0!important;pointer-events:none!important}
@media(max-width:699px){
 .bottomnav[aria-label="Main navigation"]{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:end!important;justify-items:center!important;gap:0!important;overflow:visible!important;padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important}
 .bottomnav[aria-label="Main navigation"] .navbtn{min-width:0!important;width:100%!important;margin:0!important}
 .bottomnav[aria-label="Main navigation"] .fab{grid-column:3!important;grid-row:1!important;align-self:start!important;justify-self:center!important;width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;margin-top:-22px!important;margin-inline:0!important;padding:0!important;border-radius:50%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;z-index:5!important;box-shadow:0 8px 22px var(--glow),0 0 0 6px var(--bg)!important}
 .bottomnav[aria-label="Main navigation"] .fab .desktop-nav-label,.bottomnav[aria-label="Main navigation"] .fab .desktop-nav-key{display:none!important}
 .bottomnav[aria-label="Main navigation"] .navbtn.music-top-link{display:none!important}
 .bottomnav[aria-label="Main navigation"] .navbtn.planner-top-link{display:flex!important;grid-column:5!important;grid-row:1!important}
}



/* ===== Extracted style block 7; original id=focusflow-responsive-hardening ===== */

/* Responsive hardening: prevent narrow-screen overflow and preserve safe areas. */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:clip;scrollbar-gutter:stable}
body{width:100%;max-width:100%;min-width:320px;overflow-x:clip}
.app{width:100%;min-width:0}
.page,.card,.sheet,.topbar,.topbar-actions,.bottomnav,.music-hero,.music-list,.planner,.calendar,.finance{min-width:0;max-width:100%}
img,svg,canvas,video,iframe{max-width:100%}
input,select,textarea,button{min-width:0;max-width:100%}
.grid,.row,.card,.section-title,.task-row,.music-row,.planner-row{overflow-wrap:anywhere}
@media(max-width:380px){
  .app{padding-inline:12px}
  .topbar{gap:6px}
  .topbar .brand{font-size:clamp(17px,5vw,22px)}
  .topbar-actions{gap:5px}
  .iconbtn{width:42px;height:42px}
  .bottomnav{width:calc(100% - 16px);bottom:calc(8px + env(safe-area-inset-bottom))}
  .sheet{padding:18px}
}
@media(min-width:768px) and (max-width:1023px){
  .app{max-width:820px;padding-inline:24px}
  .bottomnav{width:min(600px,calc(100% - 32px))}
}
@media(min-width:1024px){
  .app{width:min(100%,1224px);margin-inline:auto}
  .page,.card{min-width:0}
}
@supports(height:100dvh){.overlay .sheet{max-height:calc(100dvh - 32px)}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}*,*::before,*::after{scroll-behavior:auto!important}}



/* ===== Extracted style block 8; original id=none ===== */

/* Global search: make result destinations obvious after navigation */
.search-result-target{outline:3px solid var(--blue)!important;outline-offset:3px!important;box-shadow:0 0 0 6px color-mix(in srgb,var(--blue) 16%,transparent)!important;transition:outline-color .2s ease,box-shadow .2s ease}
.global-search-task[role="link"]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}



/* ===== Extracted style block 9; original id=none ===== */

.prompt-search-result{width:100%;text-align:start;cursor:pointer;touch-action:manipulation;position:relative;z-index:1}
.prompt-search-result:focus-visible{outline:2px solid var(--blue);outline-offset:3px}



/* ===== Extracted style block 10; original id=v31-copy-music-progress-nav-fixes ===== */

/* Copying a prompt updates metadata only; it must not rebuild the Bonfire screen. */
/* Desktop navigation exposes Music and Bonfire, with contextual Add as the final control. */
@media (min-width:700px){
  body .bottomnav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;}
  body .bottomnav .navbtn.music-top-link,
  body .bottomnav .navbtn.bonfire-top-link{display:flex!important;}
  body .bottomnav .fab{order:99!important;}
  body .bottomnav .navbtn[data-page="home"]{order:1!important;}
  body .bottomnav .navbtn[data-page="calendar"]{order:2!important;}
  body .bottomnav .navbtn[data-page="progress"]{order:3!important;}
  body .bottomnav .navbtn.music-top-link{order:4!important;}
  body .bottomnav .navbtn.bonfire-top-link{order:5!important;}
  body .bottomnav .navbtn.planner-top-link{order:6!important;display:flex!important;}
  body .bottomnav .navbtn[data-page="finance"]{order:7!important;}
  body .bottomnav .fab{align-self:stretch!important;width:auto!important;min-width:0!important;border-radius:15px!important;transform:none!important;}
}
/* Track list stays visible even when desktop layout rules collapse wrappers. */
#musicPage .music-tracks{display:block!important;min-width:0!important;width:100%!important;visibility:visible!important;opacity:1!important;}
#musicPage .music-list{display:flex!important;flex-direction:column!important;gap:10px!important;visibility:visible!important;opacity:1!important;min-height:40px;}
#musicPage .music-list .track-row{display:grid!important;visibility:visible!important;opacity:1!important;}
#musicPage .list-head{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;}
@media (min-width:1100px){
  #progressPage.active{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important;}
  #progressPage>.section-title{grid-column:1/-1!important;}
  #progressPage>.today-card,#progressPage>.goal-card{grid-column:span 6!important;min-width:0;}
  #progressPage>.stats-top{grid-column:1/-1!important;display:flex!important;flex-wrap:wrap!important;justify-content:stretch!important;gap:14px!important;min-width:0;}
  #progressPage .metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;max-width:none!important;flex:1 1 100%;}
  #progressPage .metric{min-width:0!important;}
  #progressPage>.focus-chart{grid-column:span 7!important;min-width:0!important;}
  #progressPage>.category-card{grid-column:span 5!important;min-width:0!important;}
  #progressPage>.activity-card{grid-column:1/-1!important;min-width:0!important;}
  #progressPage .heatmap-wrap{max-width:100%!important;overflow-x:auto!important;}
  #progressPage .activity-card .heatmap{width:max-content!important;max-width:100%;}
}



/* ===== Extracted style block 11; original id=focusflow-v32-desktop-layout-fixes ===== */

/* Desktop navigation: one horizontal dock. Mobile navigation is intentionally untouched. */
@media (min-width:700px){
  body .bottomnav{
    display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:space-between!important;
    gap:clamp(5px,.8vw,14px)!important; width:min(1120px,calc(100% - 64px))!important; min-height:76px!important;
    height:auto!important; padding:10px 16px!important; overflow:visible!important; border-radius:24px!important;
  }
  body .bottomnav .navbtn{
    order:0!important; display:flex!important; flex:1 1 0!important; min-width:0!important; flex-direction:column!important;
    justify-content:center!important; gap:4px!important; padding:8px 5px!important; white-space:nowrap!important;
    font-size:12px!important; border-radius:14px!important;
  }
  body .bottomnav .navbtn[data-page="home"]{order:1!important}
  body .bottomnav .navbtn[data-page="calendar"]{order:2!important}
  body .bottomnav .navbtn[data-page="progress"]{order:3!important}
  body .bottomnav .navbtn.music-top-link{order:4!important}
  body .bottomnav .navbtn.bonfire-top-link{order:5!important}
  body .bottomnav .navbtn.planner-top-link{order:6!important}
  body .bottomnav .navbtn[data-page="finance"]{order:7!important}
  body .bottomnav .fab{
    order:8!important; flex:0 0 auto!important; align-self:center!important; width:auto!important; min-width:116px!important;
    min-height:48px!important; height:48px!important; margin:0!important; padding:0 16px!important; border-radius:15px!important;
    display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:center!important; gap:8px!important;
    transform:none!important; white-space:nowrap!important; box-shadow:0 7px 18px var(--glow)!important;
  }
  body .bottomnav .fab .desktop-nav-label{display:inline!important;font-size:13px!important;font-weight:800!important}
  body .bottomnav .fab .desktop-nav-key{display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:5px!important;padding:0 5px!important;font-size:10px!important}
}
/* Progress dashboard: balanced cards and readable charts on desktop, without clipped content. */
@media (min-width:1024px){
  #progressPage.active{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important}
  #progressPage>.section-title{grid-column:1/-1!important}
  #progressPage>.today-card,#progressPage>.goal-card{grid-column:span 6!important;min-width:0!important;align-self:stretch!important}
  #progressPage>.today-card{grid-template-columns:auto minmax(0,1fr)!important;align-content:center!important}
  #progressPage>.goal-card{grid-template-columns:44px minmax(0,1fr) auto!important}
  #progressPage>.stats-top{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(230px,.8fr) minmax(0,2fr)!important;gap:20px!important;align-items:center!important}
  #progressPage .progress-ring-wrap{display:flex!important;grid-column:auto!important;min-width:0!important}
  #progressPage .metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:none!important;width:100%!important;min-width:0!important;gap:14px!important}
  #progressPage .metric{grid-column:auto!important;display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:5px 12px!important;min-width:0!important;padding:18px!important;text-align:left!important;justify-items:start!important}
  #progressPage .metric .mi{grid-row:1/3!important;align-self:center!important}
  #progressPage .metric .metric-label{display:block!important;min-width:0!important;overflow-wrap:anywhere!important}
  #progressPage .metric b{grid-column:2!important;font-size:clamp(22px,2vw,30px)!important}
  #progressPage>.focus-chart{grid-column:span 7!important;min-width:0!important}
  #progressPage>.category-card{grid-column:span 5!important;min-width:0!important}
  #progressPage>.activity-card{grid-column:1/-1!important;min-width:0!important;display:block!important}
  #progressPage .cat-stats{max-height:none!important;overflow:visible!important;gap:14px!important}
  #progressPage .focus-chart svg{height:auto!important;max-height:260px!important}
  #progressPage .heatmap-wrap{max-width:100%!important;overflow-x:auto!important}
  #progressPage .activity-card .heatmap{width:max-content!important;max-width:100%!important}
}
/* Keep every music track visible; older desktop wrapper rules used display:contents. */
#musicPage .music-tracks{display:block!important;visibility:visible!important;opacity:1!important;min-width:0!important;width:100%!important}
#musicPage .music-list{display:flex!important;flex-direction:column!important;gap:10px!important;min-height:40px!important;visibility:visible!important;opacity:1!important}
#musicPage .music-list>.song,#musicPage .music-list>.track-row,#musicPage .music-list>[role="listitem"]{display:grid!important;visibility:visible!important;opacity:1!important}
/* Desktop Home keeps the daily goal and today's work clearly grouped beside the task board. */
@media (min-width:1024px){
  #homePage.active{grid-template-columns:minmax(0,1fr) minmax(280px,340px)!important;gap:28px!important}
  #homePage .desktop-home-summary{display:flex!important;flex-direction:column!important;gap:18px!important;align-self:start!important}
  #homePage .desktop-home-summary>.goal-card,#homePage .desktop-home-summary>.today-card{width:100%!important;min-width:0!important}
}



/* ===== Extracted style block 12; original id=focusflow-v33-reference-pages-desktop-only ===== */

/* Reference-page layout polish is intentionally desktop-only. Mobile navigation and mobile page rules remain untouched. */
@media (min-width: 1100px) {
  #homePage.active, #progressPage.active, #musicPage.active, #plannerPage.active {
    min-width: 0;
  }
  #homePage.active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
    align-items: start;
    gap: 22px;
  }
  #homePage .home-board { min-width: 0; grid-column: 1; }
  #homePage .desktop-home-summary { grid-column: 2; grid-row: 1 / span 4; min-width: 0; }
  #progressPage.active { min-width: 0; }
  #progressPage .section-title { margin-bottom: 22px; }
  #progressPage .stats-top, #progressPage .progress-grid, #progressPage .activity-heatmap,
  #progressPage .card { min-width: 0; }
  #musicPage.active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 16px 24px;
  }
  #musicPage > .section-title { grid-column: 1 / -1; }
  #musicPage .music-hero { grid-column: 2; grid-row: 2; min-width: 0; width: 100%; }
  #musicPage .music-tracks { grid-column: 1; grid-row: 2; min-width: 0; width: 100%; }
  #musicPage .music-list { min-width: 0; }
  #musicPage .music-list > * { min-width: 0; }
  #plannerPage.active { min-width: 0; }
  #plannerPage .pl-workspace-head, #plannerPage .pl-projectbar,
  #plannerPage .planner-tabs, #plannerPage .planner-table-wrap { min-width: 0; max-width: 100%; }
  #plannerPage .planner-table-wrap { overflow-x: auto; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  #homePage.active, #progressPage.active, #musicPage.active, #plannerPage.active { min-width: 0; }
  #musicPage .music-hero, #musicPage .music-tracks { min-width: 0; max-width: 100%; }
  #plannerPage .planner-table-wrap { max-width: 100%; overflow-x: auto; }
}



/* ===== Extracted style block 13; original id=focusflow-v34-reference-layout-correction ===== */

/* Reference layout: desktop uses a fixed vertical rail on the right. */
@media (min-width:1024px){
  body .app{
    width:100%!important;max-width:1580px!important;
    margin-inline:auto!important;
    padding:26px 150px 48px 28px!important;
    box-sizing:border-box!important;
  }
  body .topbar{margin-bottom:26px!important;gap:20px!important}
  body .bottomnav{
    position:fixed!important;right:20px!important;left:auto!important;top:50%!important;bottom:auto!important;
    transform:translateY(-50%)!important;
    width:100px!important;max-width:100px!important;height:auto!important;min-height:0!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    gap:5px!important;padding:12px 10px!important;margin:0!important;overflow:visible!important;
    border-radius:25px!important;z-index:1000!important;
  }
  body .bottomnav .navbtn{
    order:initial!important;display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;
    min-height:58px!important;height:auto!important;padding:8px 3px!important;
    flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
    border-radius:15px!important;
  }
  body .bottomnav .navbtn span{display:block!important;font-size:11px!important;line-height:1.25!important;text-align:center!important}
  body .bottomnav .navbtn.music-top-link{order:4!important;display:flex!important}
  body .bottomnav .navbtn.bonfire-top-link{order:5!important;display:flex!important}
  body .bottomnav .navbtn.planner-top-link{order:6!important;display:flex!important}
  body .bottomnav .navbtn[data-page="finance"]{order:7!important}
  body .bottomnav .fab{
    order:99!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;gap:3px!important;
    width:100%!important;min-width:0!important;height:68px!important;min-height:68px!important;
    margin-top:5px!important;padding:8px 3px!important;border-radius:18px!important;
  }
  body .bottomnav .fab .desktop-nav-label{display:block!important;font-size:11px!important;line-height:1.2!important;white-space:normal!important;text-align:center!important}
  body .bottomnav .fab .desktop-nav-key{display:none!important}
  /* Home: tasks occupy the main column, goal/today summary sits on the right. */
  #homePage.active{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,350px)!important;gap:26px!important;align-items:start!important}
  #homePage .home-board{grid-column:1;min-width:0!important}
  #homePage .desktop-home-summary{grid-column:2;grid-row:1;display:flex!important;flex-direction:column!important;gap:22px!important;min-width:0!important}
  #homePage .desktop-home-summary .card{margin:0!important}
  /* Progress: summary metrics, then category breakdown beside focus chart, then activity map. */
  #progressPage.active,#statsPage.active{
    display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important;
  }
  #progressPage>.section-title,#statsPage>.section-title{grid-column:1/-1!important}
  #progressPage>.today-card,#progressPage>.goal-card{grid-column:span 6!important;min-width:0!important}
  #progressPage>.stats-top,#statsPage>.stats-top{grid-column:1/-1!important;min-width:0!important}
  #progressPage .metrics,#statsPage .metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;max-width:none!important}
  #progressPage .metric,#statsPage .metric{min-width:0!important}
  #progressPage>.focus-chart,#statsPage>.focus-chart{grid-column:span 7!important;min-width:0!important}
  #progressPage>.category-card,#statsPage>.category-card{grid-column:span 5!important;min-width:0!important}
  #progressPage>.activity-card,#statsPage>.activity-card{grid-column:1/-1!important;min-width:0!important}
  #progressPage .heatmap-wrap,#statsPage .heatmap-wrap{max-width:100%!important;overflow-x:auto!important}
  /* Music: track list left, featured player card right, matching reference. */
  #musicPage.active{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;gap:24px!important;align-items:start!important;max-width:none!important;margin:0!important}
  #musicPage>.section-title{grid-column:1/-1!important}
  #musicPage .music-tracks{grid-column:1!important;grid-row:2!important;min-width:0!important}
  #musicPage .player-media,#musicPage .player-details{min-width:0!important}
  #musicPage .music-list{display:flex!important;flex-direction:column!important;gap:12px!important}
  #plannerPage.active{max-width:none!important;margin:0!important;min-width:0!important}
}
/* Phone navigation must stay compact: Music and Bonfire live in the hamburger menu. */
@media (max-width:1023px){
  body .bottomnav .navbtn.music-top-link,
  body .bottomnav .navbtn.bonfire-top-link{display:none!important}
  body .bottomnav{flex-wrap:nowrap!important}
  body .app{max-width:100%!important}
}
/* Keep the existing page content responsive and avoid accidental desktop overflow. */
@media (min-width:1024px) and (max-width:1250px){
  body .app{padding-right:132px!important;padding-left:22px!important}
  body .bottomnav{right:12px!important;width:92px!important;max-width:92px!important}
  #homePage.active{grid-template-columns:minmax(0,1fr) 290px!important;gap:18px!important}
}



/* ===== Extracted style block 14; original id=v37-home-desktop-actual-grid-fix ===== */

/* Desktop Home: task board on the left, goal + today's tasks in a right sidebar,
   matching the user's reference. Mobile styles are not modified. */
@media (min-width:1024px) {
  #homePage.active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px) !important;
    grid-template-areas: "board summary" !important;
    gap: 22px !important;
    align-items: start !important;
    direction: ltr !important; /* Explicitly neutralize RTL grid-column reversal. */
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #homePage > .home-board {
    grid-area: board !important;
    direction: rtl !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  #homePage > #desktopHomeSummary {
    grid-area: summary !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    justify-self: stretch !important;
    gap: 22px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #desktopHomeSummary > .goal-card,
  #desktopHomeSummary > .today-card {
    display: grid !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 24px !important;
    border-radius: 24px !important;
    overflow: visible !important;
  }
  #desktopHomeSummary > .goal-card {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px 14px !important;
  }
  #desktopHomeSummary > .goal-card h2 {
    font-size: 21px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
    margin: 4px 0 8px !important;
  }
  #desktopHomeSummary > .goal-card p {
    line-height: 1.85 !important;
    overflow-wrap: anywhere !important;
  }
  #desktopHomeSummary > .goal-card .linkbtn {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: 8px !important;
  }
  #desktopHomeSummary > .today-card {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    gap: 18px !important;
  }
  #desktopHomeSummary .today-ring {
    width: 106px !important;
    height: 106px !important;
    justify-self: center !important;
  }
  #desktopHomeSummary .today-ring b {
    width: 82px !important;
    height: 82px !important;
    font-size: 19px !important;
  }
  #desktopHomeSummary .today-card h3 {
    font-size: 19px !important;
    line-height: 1.5 !important;
    margin: 0 0 6px !important;
  }
  #desktopHomeSummary .today-card p {
    font-size: 13px !important;
    line-height: 1.8 !important;
    margin: 0 0 10px !important;
  }
  #desktopHomeSummary .today-bar { width: 100% !important; height: 8px !important; }
  #homePage .home-board .task-list,
  #homePage .home-board #dateStrip,
  #homePage .home-board #tagStrip {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Keep content clear of the fixed right-side desktop navigation. */
  .app { padding-right: max(32px, calc(var(--nav-w, 96px) + 42px)) !important; }
}
@media (min-width:1024px) and (max-width:1250px) {
  #homePage.active {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 300px) !important;
    gap: 18px !important;
  }
  #desktopHomeSummary > .goal-card,
  #desktopHomeSummary > .today-card { padding: 20px !important; }
}



/* ===== Extracted style block 15; original id=focusflow-prompt-task-sheet-polish ===== */

/* Prompt editor borrows the task-sheet surface, spacing and motion. */
#promptModal.modalback{align-items:flex-end;padding:clamp(10px,2.5vh,24px);overflow:hidden}
#promptModal .modal{width:min(680px,100%);max-height:calc(100dvh - 28px);max-height:calc(var(--ff-visual-height, 100dvh) - 28px);overflow-y:auto;overscroll-behavior:contain;border-radius:26px;background:var(--panel, var(--bg));padding:22px;box-shadow:0 24px 60px rgba(10,20,40,.28);transform:translateY(16px) scale(.99);transition:transform .25s ease;scroll-padding-block:24px}
#promptModal.open .modal{transform:none}
#promptModal .modalhead{position:sticky;top:-1px;z-index:4;background:var(--panel, var(--bg));padding:2px 0 12px;margin-bottom:14px;border-bottom:1px solid var(--line, rgba(120,120,120,.15))}
#promptModal .field{margin-bottom:16px;min-width:0}
#promptModal .field input,#promptModal .field textarea,#promptModal .field select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;border-radius:14px;padding:13px 14px;background:var(--panel-2, var(--surface));color:var(--ink, var(--text));border:1.5px solid var(--line, transparent);box-shadow:var(--inset, none);font:inherit;line-height:1.65}
#promptModal .field textarea{min-height:132px;resize:vertical;overflow-wrap:anywhere}
#promptModal .field input:focus,#promptModal .field textarea:focus,#promptModal .field select:focus{outline:none;border-color:var(--blue, #729fe8)}
#promptModal .modalfoot,#promptModal .form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#promptModal .tagpick{display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.25;vertical-align:middle}
#promptModal .tagpick svg,#promptModal .tagpick i{display:block;flex:none;width:1.05em;height:1.05em;align-self:center;margin:0;vertical-align:middle}
#promptModal .tagpick>*{align-self:center}
#promptModal .imagepick{align-items:center;gap:12px}
#promptModal .preview{flex:none}
@media(max-width:600px){
 #promptModal.modalback{padding:0;align-items:flex-end}
 #promptModal .modal{width:100%;max-height:var(--ff-visual-height, 100dvh);border-radius:26px 26px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));transform:translateY(100%);overscroll-behavior-y:contain}
 #promptModal.open .modal{transform:none}
 #promptModal .modalhead{top:-1px;padding-top:2px}
 #promptModal .field textarea{min-height:116px}
}
@media(prefers-reduced-motion:reduce){#promptModal .modal{transition:none}}



/* ===== Extracted style block 16; original id=focusflow-audit-repairs-css ===== */

/* FocusFlow 2026: Mobile Spacing, Safe Areas & Alignment System */
:root {
  --ff-safe-top: env(safe-area-inset-top, 0px);
  --ff-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ff-safe-left: env(safe-area-inset-left, 0px);
  --ff-safe-right: env(safe-area-inset-right, 0px);

  /* Mobile spacing scale */
  --ff-page-pad-x: 16px;
  --ff-content-top-gap: 20px;
  --ff-section-gap: 20px;
  --ff-component-gap: 10px;
  --ff-card-gap: 14px;
  --ff-card-pad: 16px;
  --ff-card-pad-compact: 12px;
  --ff-touch-min: 44px;
}

@media (max-width: 350px) {
  :root {
    --ff-page-pad-x: 12px;
    --ff-content-top-gap: 16px;
    --ff-section-gap: 16px;
    --ff-component-gap: 8px;
    --ff-card-gap: 12px;
    --ff-card-pad: 14px;
    --ff-card-pad-compact: 10px;
  }
}

@media (min-width: 415px) and (max-width: 767px) {
  :root {
    --ff-page-pad-x: 20px;
    --ff-content-top-gap: 22px;
    --ff-section-gap: 24px;
    --ff-card-gap: 16px;
    --ff-card-pad: 18px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --ff-page-pad-x: 24px;
    --ff-content-top-gap: 24px;
    --ff-section-gap: 24px;
    --ff-card-gap: 18px;
    --ff-card-pad: 20px;
  }
}

/* Base containment without artificial scrollbar gutters on mobile */
html, body {
  overflow-x: clip !important;
  max-width: 100% !important;
}
@media (max-width: 1023px) {
  html {
    scrollbar-gutter: auto !important;
  }
}

/* Page shell padding & safe areas */
@media (max-width: 1023px) {
  body > .app {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding-top: calc(16px + var(--ff-safe-top)) !important;
    padding-bottom: calc(var(--nav-h, 72px) + 36px + var(--ff-safe-bottom)) !important;
    padding-left: max(var(--ff-page-pad-x), var(--ff-safe-left)) !important;
    padding-right: max(var(--ff-page-pad-x), var(--ff-safe-right)) !important;
    padding-inline: max(var(--ff-page-pad-x), var(--ff-safe-left)) max(var(--ff-page-pad-x), var(--ff-safe-right)) !important;
  }
  body.has-mini > .app {
    padding-bottom: calc(var(--nav-h, 72px) + 110px + var(--ff-safe-bottom)) !important;
  }
}

/* Topbar header on mobile */
@media (max-width: 1023px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: var(--ff-content-top-gap) !important;
    padding: 0 !important;
    gap: 8px !important;
  }
  .topbar .iconbtn,
  #menuBtn,
  #searchBtn {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    display: inline-grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }
  .brand {
    font-size: 19px !important;
    gap: 8px !important;
  }
}

/* Mobile Bottom Navigation & Floating Action Button */
@media (max-width: 699px) {
  body nav.bottomnav[data-nav="main"],
  body > nav.bottomnav,
  body > .app > nav.bottomnav,
  nav.bottomnav:not(#bonfire-native-root nav) {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(12px + var(--ff-safe-bottom)) !important;
    width: calc(100% - (var(--ff-page-pad-x) * 2)) !important;
    max-width: 480px !important;
    height: auto !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 60px minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    padding: 6px 6px !important;
    border-radius: 24px !important;
    z-index: 90 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 10px 30px rgba(20,40,70,.18) !important;
  }

  body nav.bottomnav .navbtn {
    min-height: 48px !important;
    min-width: 44px !important;
    padding: 6px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  body nav.bottomnav .navbtn svg.ic {
    width: 21px !important;
    height: 21px !important;
  }
  body nav.bottomnav .navbtn span {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Centered elevated FAB */
  body nav.bottomnav .fab#addBtn {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 50% !important;
    margin-top: -24px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    box-shadow: 0 10px 22px var(--glow), 0 0 0 5px var(--bg) !important;
    transform: none !important;
    z-index: 2 !important;
  }
  body nav.bottomnav .fab#addBtn svg.ic {
    width: 26px !important;
    height: 26px !important;
  }
  body nav.bottomnav .fab#addBtn .desktop-nav-label,
  body nav.bottomnav .fab#addBtn .desktop-nav-key {
    display: none !important;
  }
}

/* Cards & Section Spacing (< 1024px) */
@media (max-width: 1023px) {
  .home-board, #homePage, #plannerPage, #calendarPage, #progressPage, #statsPage, #musicPage, #settingsPage, #financePage {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .card,
  .goal-card,
  .today-card,
  .chart-card,
  .settings-block,
  .music-hero,
  article.task,
  .planner-summary-card {
    border-radius: 20px !important;
    padding: var(--ff-card-pad) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .card + .card,
  .settings-block + .settings-block,
  .goal-card + .card,
  .card + .goal-card,
  .card + .chart-card {
    margin-top: var(--ff-card-gap) !important;
  }

  .card.compact,
  .stat-card {
    padding: var(--ff-card-pad-compact) !important;
  }

  /* Task List items & touch targets */
  .task-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 6px !important;
    width: 100% !important;
  }
  .task {
    padding: 13px 14px !important;
    border-radius: 16px !important;
    gap: 12px !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .task .star,
  .task .del {
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: inline-grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
  }
  .task .star svg.ic,
  .task .del svg.ic {
    width: 18px !important;
    height: 18px !important;
  }
  .task input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    cursor: pointer !important;
  }

  /* Date strip & Tag rail (contained, no negative margin overflow) */
  .strip,
  #dateStrip,
  #tagStrip {
    margin-inline: 0 !important;
    padding-inline: 4px !important;
    scroll-padding-inline: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
  }
  .day {
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
  }
  .cat-pill {
    min-height: 36px !important;
    padding: 6px 14px !important;
    border-radius: 12px !important;
  }

  /* Form inputs: 16px font to prevent iOS zoom */
  input[type="text"],
  input[type="search"],
  input[type="date"],
  input[type="month"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }
}

/* Overlays, Drawers & Sheets (< 1024px) */
@media (max-width: 1023px) {
  .overlay.bottom .sheet {
    width: 100% !important;
    max-width: 520px !important;
    border-radius: 26px 26px 0 0 !important;
    padding: 20px var(--ff-page-pad-x) calc(22px + var(--ff-safe-bottom)) !important;
    box-sizing: border-box !important;
    max-height: calc(100dvh - 32px) !important;
  }
  .drawer {
    padding-top: calc(18px + var(--ff-safe-top)) !important;
    padding-bottom: calc(22px + var(--ff-safe-bottom)) !important;
    padding-left: max(18px, var(--ff-safe-left)) !important;
    padding-right: max(18px, var(--ff-safe-right)) !important;
    box-sizing: border-box !important;
  }
  .drawer .menu-item {
    min-height: 48px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
  }
  .search-overlay {
    padding-top: calc(16px + var(--ff-safe-top)) !important;
    padding-left: max(16px, var(--ff-safe-left)) !important;
    padding-right: max(16px, var(--ff-safe-right)) !important;
  }
  .mini-player {
    bottom: calc(var(--nav-h, 72px) + 20px + var(--ff-safe-bottom)) !important;
    width: calc(100% - (var(--ff-page-pad-x) * 2)) !important;
    max-width: 480px !important;
    border-radius: 18px !important;
    z-index: 85 !important;
  }
  .toast {
    bottom: calc(var(--nav-h, 72px) + 24px + var(--ff-safe-bottom)) !important;
    max-width: calc(100% - 32px) !important;
    z-index: 1500 !important;
  }
  body.has-mini .toast {
    bottom: calc(var(--nav-h, 72px) + 90px + var(--ff-safe-bottom)) !important;
  }
}

/* Music Page (< 1024px) */
@media (max-width: 1023px) {
  #musicPage .music-hero {
    padding: 20px 20px 24px 20px !important;
    margin-bottom: 16px !important;
    border-radius: 20px !important;
  }
  #musicPage .music-track {
    min-height: 54px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 16px !important;
    gap: 12px !important;
  }
  #musicPage .track-play {
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
  }
}

/* Bonfire Mobile Spacing (< 1024px) */
@media (max-width: 1023px) {
  #bonfirePage #bonfire-native-root .app {
    padding: 12px var(--ff-page-pad-x) calc(var(--nav-h, 72px) + 36px + var(--ff-safe-bottom)) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  #bonfirePage #bonfire-native-root .hero {
    border-radius: 20px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
  }
  #bonfirePage #bonfire-native-root .promptcard {
    border-radius: 20px !important;
    padding: 14px !important;
  }
  #bonfirePage #bonfire-native-root .cardtools .tiny {
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;
  }
  #bonfirePage #bonfire-native-root .modalback {
    padding-bottom: calc(16px + var(--ff-safe-bottom)) !important;
    padding-top: calc(16px + var(--ff-safe-top)) !important;
  }
  #bonfirePage #bonfire-native-root .modal {
    border-radius: 24px !important;
    padding: 20px !important;
    max-height: calc(100dvh - 36px) !important;
  }
}

/* Bonfire prompt card metadata wrapping */
#bonfirePage #bonfire-native-root .cardfoot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
}
#bonfirePage #bonfire-native-root .promptcard .date {
  white-space: nowrap !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
  max-width: 100% !important;
}
#bonfirePage #bonfire-native-root .cardtools {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  margin-inline-start: auto !important;
}

/* Bonfire sort toolbar control */
#bonfirePage #bonfire-native-root .toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}
#bonfirePage #bonfire-native-root .toolbar .ff-select-shell {
  display: inline-flex !important;
  visibility: visible !important;
  flex: 0 1 200px !important;
  max-width: 220px !important;
  min-width: 150px !important;
}
#bonfirePage #bonfire-native-root .toolbar .ff-select-trigger {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 38px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
}

/* Planner table list delete button */
.pl-list-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.pl-list-del {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: var(--danger) !important;
  background: var(--danger-soft, rgba(229,72,77,.12)) !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform .15s ease, background-color .15s ease !important;
}
.pl-list-del:hover {
  transform: scale(1.08) !important;
  background: rgba(229,72,77,.22) !important;
}
.pl-list-del svg {
  width: 16px !important;
  height: 16px !important;
}



/* ===== Extracted style block 17; original id=focusflow-v54-refinement ===== */

/* Bonfire empty state: keep icon, heading, explanatory text and action centered. */
#bonfire-native-root .cards>.empty,#bonfire-native-root .cards>.empty-state,#bonfire-native-root .empty-state{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%!important;min-height:220px!important;margin-inline:auto!important;}
#bonfire-native-root .cards>.empty>* ,#bonfire-native-root .empty-state>*{text-align:center!important;margin-inline:auto!important;}
#bonfire-native-root .cards>.empty .covericon,#bonfire-native-root .empty-state .covericon{display:grid!important;place-items:center!important;}
/* Follow the active language's direction for all Bonfire controls, including view selectors and list/grid controls. */
#bonfirePage #bonfire-native-root{direction:inherit;}
html[dir="rtl"] #bonfirePage #bonfire-native-root .toolbar,html[dir="rtl"] #bonfirePage #bonfire-native-root .tagrow-wrap,html[dir="rtl"] #bonfirePage #bonfire-native-root .sectionhead{direction:rtl!important;}
html[dir="ltr"] #bonfirePage #bonfire-native-root .toolbar,html[dir="ltr"] #bonfirePage #bonfire-native-root .tagrow-wrap,html[dir="ltr"] #bonfirePage #bonfire-native-root .sectionhead{direction:ltr!important;}
html[dir="rtl"] #bonfirePage #bonfire-native-root .toolbar>*{margin-inline-start:0!important;}
#bonfirePage #bonfire-native-root .toolbar .ff-select-shell{flex:0 1 230px!important;width:min(230px,100%)!important;min-width:175px!important;max-width:260px!important;}
#bonfirePage #bonfire-native-root .toolbar .ff-select-trigger{gap:12px!important;padding-inline:15px!important;min-width:175px!important;}
#bonfirePage #bonfire-native-root .toolbar .ff-select-value{flex:1 1 auto!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;}
#bonfirePage #bonfire-native-root .toolbar .ff-select-chevron{flex:0 0 16px!important;}
#plannerPage .pl-projectbar label{min-width:190px;}
#plannerPage .pl-projectbar label select{min-width:150px;}
#progressPage>.ff-workspace-insights{order:999!important;}
@media(max-width:520px){#bonfirePage #bonfire-native-root .toolbar .ff-select-shell{flex:1 1 100%!important;width:100%!important;max-width:none!important;}#bonfirePage #bonfire-native-root .toolbar .ff-select-trigger{width:100%!important;}#plannerPage .pl-projectbar label{min-width:0;width:100%;}}
@media(prefers-reduced-motion:reduce){#homePage #tagStrip{scroll-behavior:auto!important;}}



/* ===== Extracted style block 18; original id=v67-smooth-tag-scrolling ===== */

/* Smooth, immediately responsive horizontal tag rails on Home and Bonfire/Prompt pages. */
#homePage #tagStrip,
#bonfire-native-root .tagrow,
#bonfire-native-root .tagpicker {
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  scroll-snap-type: x proximity !important;
  scroll-padding-inline: 8px !important;
  touch-action: pan-x pan-y !important;
  user-select: none;
  -webkit-user-select: none;
}
#homePage #tagStrip > .tag,
#bonfire-native-root .tagrow > .tag,
#bonfire-native-root .tagpicker > .tagpick {
  scroll-snap-align: start !important;
}
@media (prefers-reduced-motion: reduce) {
  #homePage #tagStrip, #bonfire-native-root .tagrow, #bonfire-native-root .tagpicker { scroll-behavior: auto !important; }
}



/* ===== Extracted style block 19; original id=focusflow-global-select-manager-drag-fixes ===== */

/* Consistent app-wide select styling. Keep these rules separate from destructive buttons. */
html body select,
html body input[type="date"],
html body input[type="month"] {
  box-sizing:border-box !important;
  max-width:100%;
  min-height:46px;
  border:1.5px solid color-mix(in srgb,var(--muted) 28%,transparent) !important;
  border-radius:13px !important;
  background-color:var(--panel-2) !important;
  color:var(--ink) !important;
  font:inherit;
  padding:10px 38px 10px 12px;
  accent-color:var(--blue);
}
html body select:not([multiple]):not([size]),
html body .field select:not([multiple]):not([size]) {
  -webkit-appearance:none !important;
  appearance:none !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367809f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-size:16px 16px !important;
  background-position:right 13px center !important;
  box-shadow:var(--inset) !important;
}
html[dir="rtl"] body select:not([multiple]):not([size]),
html[dir="rtl"] body .field select:not([multiple]):not([size]) {
  padding:10px 12px 10px 38px !important;
  background-position:left 13px center !important;
}
html body select option {
  background:var(--panel) !important;
  color:var(--ink) !important;
}
html body select option:checked { background:var(--blue) !important; color:#fff !important; }
html[data-theme="dark"] body select,
html[data-theme="dark"] body input[type="date"],
html[data-theme="dark"] body input[type="month"] { color-scheme:dark; }
html body #dataManagerGroups .data-manager-actions button.danger .data-action-icon,
html body #dataManagerGroups .data-manager-actions button.danger span:last-child { color:#fff !important; opacity:1 !important; visibility:visible !important; }
html body #dataManagerGroups .data-manager-actions button.danger .data-action-icon { display:inline-grid !important; place-items:center !important; width:18px !important; height:18px !important; flex:0 0 18px !important; }
html body #dataManagerGroups .data-manager-actions button.danger .data-action-icon svg.ic { display:block !important; width:18px !important; height:18px !important; fill:none !important; stroke:#fff !important; stroke-width:2.3 !important; opacity:1 !important; visibility:visible !important; }
html body #dataManagerGroups .data-manager-actions button.danger span:last-child { display:inline-block !important; min-width:0; font-weight:800 !important; text-align:center !important; }

/* The month label is a proper tap target, not plain text. */
#calendarCard .month-head #monthTitle.month-picker-trigger {
  display:block !important;
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  min-height:40px !important;
  height:auto !important;
  margin:0 4px !important;
  padding:6px 10px !important;
  border:0 !important;
  border-radius:12px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--ink) !important;
  font:inherit !important;
  font-size:18px !important;
  font-weight:850 !important;
  line-height:1.25 !important;
  text-align:center !important;
  cursor:pointer !important;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
#calendarCard .month-head #monthTitle.month-picker-trigger:hover,
#calendarCard .month-head #monthTitle.month-picker-trigger:focus-visible {
  background:var(--blue-soft) !important;
  color:var(--blue) !important;
  outline:2px solid color-mix(in srgb,var(--blue) 35%,transparent) !important;
  outline-offset:1px;
}
.month-picker-overlay { z-index:2147483000 !important; pointer-events:auto !important; touch-action:manipulation; }
.month-picker-overlay.show { display:flex !important; }
.month-picker-overlay .month-picker { pointer-events:auto !important; }
.month-picker { position:relative; z-index:1; }
.month-picker-grid .month-choice { min-width:0; overflow-wrap:anywhere; touch-action:manipulation; }
.month-picker-grid .month-choice[aria-pressed="true"] { border:1.5px solid var(--blue); background:var(--blue-soft); color:var(--blue); }
.month-picker-close { width:36px; height:36px; border-radius:11px; background:var(--panel-2); color:var(--ink); box-shadow:var(--raise-sm); font-size:24px; line-height:1; }


/* Add Task / Add Plan sheets: force the themed control skin on every select, including dynamically populated fields. */
html body #plannerBucketOverlay select,
html body #plannerBucketOverlay select:not([multiple]):not([size]),
html body .sheet form select,
html body .overlay form select {
  -webkit-appearance:none !important;
  appearance:none !important;
  display:block !important;
  width:100% !important;
  min-height:48px !important;
  padding:11px 42px 11px 13px !important;
  border:1px solid color-mix(in srgb,var(--muted) 28%,transparent) !important;
  border-radius:14px !important;
  background-color:var(--panel-2) !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367809f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-size:16px 16px !important;
  background-position:right 14px center !important;
  color:var(--ink) !important;
  font:inherit !important;
  box-shadow:var(--inset) !important;
}
html[dir="rtl"] body #plannerBucketOverlay select,
html[dir="rtl"] body .sheet form select,
html[dir="rtl"] body .overlay form select { padding:11px 13px 11px 42px !important; background-position:left 14px center !important; }
html body #plannerBucketOverlay select option,
html body .sheet form select option,
html body .overlay form select option { background:var(--panel) !important; color:var(--ink) !important; }


#focusflowMonthPicker.month-picker-overlay { position:fixed !important; inset:0 !important; z-index:2147483000 !important; display:none; align-items:center !important; justify-content:center !important; padding:18px !important; background:rgba(14,24,40,.48) !important; backdrop-filter:blur(7px); pointer-events:auto !important; }
#focusflowMonthPicker.month-picker-overlay.show { display:flex !important; }
#focusflowMonthPicker .month-picker { width:min(390px,100%) !important; max-height:80dvh !important; overflow:auto !important; padding:20px !important; border-radius:24px !important; background:var(--panel) !important; color:var(--ink) !important; box-shadow:0 24px 60px rgba(10,20,40,.3) !important; }
#focusflowMonthPicker .month-picker-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:9px !important; }
#focusflowMonthPicker .month-choice { min-width:0 !important; min-height:46px !important; padding:8px 4px !important; border:1px solid var(--line) !important; border-radius:12px !important; background:var(--panel-2) !important; color:var(--ink) !important; font:inherit !important; font-size:13px !important; font-weight:750 !important; touch-action:manipulation; }
#focusflowMonthPicker .month-choice[aria-pressed="true"] { border-color:var(--blue) !important; background:var(--blue-soft) !important; color:var(--blue) !important; }

/* FocusFlow themed goal actions and calendar month browser */
.goal-form-actions{display:grid;grid-template-columns:1fr;gap:10px}
.goal-form-actions .secondary{width:100%;min-height:44px}
#focusflowMonthPicker .month-picker{width:min(960px,100%) !important;max-height:88dvh !important}
#focusflowMonthPicker .month-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px !important}
#focusflowMonthPicker .month-choice{display:block !important;position:relative;isolation:isolate;overflow:hidden;min-height:0 !important;padding:10px !important;text-align:initial !important;background-color:var(--panel-2) !important;background-size:cover !important;background-position:center !important;border-radius:16px !important;box-shadow:var(--raise-sm) !important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease !important}
#focusflowMonthPicker .month-choice::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(145deg,rgba(10,18,35,.20),color-mix(in srgb,var(--panel) 28%,transparent) 62%,rgba(10,18,35,.18));pointer-events:none}
#focusflowMonthPicker .month-choice:hover{transform:translateY(-2px);box-shadow:0 10px 24px color-mix(in srgb,var(--sd) 30%,transparent) !important}
html[data-theme="dark"] #focusflowMonthPicker .month-choice::before{background:linear-gradient(145deg,rgba(5,9,20,.36),color-mix(in srgb,var(--panel) 38%,transparent) 62%,rgba(5,9,20,.42))}
#focusflowMonthPicker .month-choice>*{position:relative;z-index:1}
#focusflowMonthPicker .month-choice .mini-month-title{display:block;font-size:14px;font-weight:850;margin-bottom:7px;padding:3px 6px;border-radius:8px;background:color-mix(in srgb,var(--panel) 75%,transparent)}
#focusflowMonthPicker .mini-month-weekdays,#focusflowMonthPicker .mini-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
#focusflowMonthPicker .mini-month-weekdays{font-size:9px;font-weight:800;color:var(--muted);margin-bottom:4px}
#focusflowMonthPicker .mini-month-days span{display:grid;place-items:center;aspect-ratio:1;border-radius:5px;font-size:10px;font-weight:700;background:color-mix(in srgb,var(--panel) 78%,transparent);color:var(--ink)}
#focusflowMonthPicker .mini-month-days span.outside{opacity:.28;background:transparent}
#focusflowMonthPicker .mini-month-days span.today{outline:1px solid var(--blue);color:var(--blue)}
#focusflowMonthPicker .mini-month-days span.has-task{background:var(--blue-soft);color:var(--blue)}
#focusflowMonthPicker .month-choice[aria-pressed="true"]{border:2px solid var(--blue) !important;box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 24%,transparent),0 12px 28px color-mix(in srgb,var(--sd) 25%,transparent) !important}
#focusflowMonthPicker .mini-month-title{background:color-mix(in srgb,var(--panel) 78%,transparent) !important;backdrop-filter:blur(8px);box-shadow:0 2px 8px rgba(0,0,0,.08)}
#focusflowMonthPicker .mini-month-weekdays span{color:var(--ink) !important;text-shadow:0 1px 5px color-mix(in srgb,var(--panel) 70%,transparent)}
#focusflowMonthPicker .mini-month-days span{background:color-mix(in srgb,var(--panel) 72%,transparent) !important;backdrop-filter:blur(3px);text-shadow:0 1px 3px color-mix(in srgb,var(--panel) 35%,transparent)}
#focusflowMonthPicker .mini-month-days span.outside{background:transparent !important}

/* A consistent, premium FocusFlow select skin in Add Task and Add Plan forms. */
#taskOverlay #taskForm select,
#plannerOverlay #plannerForm select,
#plannerBucketOverlay #plannerBucketForm select{
  -webkit-appearance:none !important;appearance:none !important;display:block;width:100%;min-width:0;min-height:50px;
  padding:12px 44px 12px 15px !important;border:1px solid color-mix(in srgb,var(--line) 85%,var(--blue) 15%) !important;
  border-radius:15px !important;background-color:var(--panel-2) !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2367809f' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;background-position:right 15px center !important;background-size:17px 17px !important;
  color:var(--ink) !important;font:inherit !important;font-weight:650 !important;box-shadow:var(--inset),0 2px 6px color-mix(in srgb,var(--sd) 8%,transparent) !important;
  outline:none !important;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,transform .2s ease !important;
}
html[dir="rtl"] #taskOverlay #taskForm select,
html[dir="rtl"] #plannerOverlay #plannerForm select,
html[dir="rtl"] #plannerBucketOverlay #plannerBucketForm select{padding:12px 15px 12px 44px !important;background-position:left 15px center !important}
#taskOverlay #taskForm select:hover,#plannerOverlay #plannerForm select:hover,#plannerBucketOverlay #plannerBucketForm select:hover{border-color:color-mix(in srgb,var(--blue) 48%,var(--line)) !important}
#taskOverlay #taskForm select:focus-visible,#plannerOverlay #plannerForm select:focus-visible,#plannerBucketOverlay #plannerBucketForm select:focus-visible{border-color:var(--blue) !important;box-shadow:var(--inset),0 0 0 3px color-mix(in srgb,var(--blue) 18%,transparent) !important}
#taskOverlay #taskForm select option,#plannerOverlay #plannerForm select option,#plannerBucketOverlay #plannerBucketForm select option{background:var(--panel);color:var(--ink)}
@media(max-width:620px){
 #focusflowMonthPicker.month-picker-overlay{padding:10px !important}
 #focusflowMonthPicker .month-picker{padding:13px !important;border-radius:20px !important}
 #focusflowMonthPicker .month-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
 #focusflowMonthPicker .month-choice{padding:7px !important}
 #focusflowMonthPicker .mini-month-days span{font-size:9px}
}




/* ===== Extracted style block 20; original id=focusflow-month-performance-and-overflow-fixes ===== */

/* Use the calendar's already-embedded background artwork; keep month cards readable without heavy blur. */
#focusflowMonthPicker.month-picker-overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(10,18,32,.52)!important}
#focusflowMonthPicker .month-picker{width:min(920px,100%);max-height:min(86dvh,900px);overflow:auto;overscroll-behavior:contain;contain:layout paint;}
#focusflowMonthPicker .month-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#focusflowMonthPicker .month-choice{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;min-width:0;overflow:hidden;min-height:0;padding:12px;border:1px solid rgba(255,255,255,.22);border-radius:16px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.75);background-color:#27344a;background-size:cover;background-position:center;background-repeat:no-repeat;box-shadow:0 3px 10px rgba(0,0,0,.12);}
#focusflowMonthPicker .month-choice::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(145deg,rgba(9,18,34,.48),rgba(9,18,34,.72));pointer-events:none}
#focusflowMonthPicker .month-choice .mini-month-title{display:block;min-width:0;margin-bottom:8px;font-size:14px;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
#focusflowMonthPicker .mini-month-weekdays,#focusflowMonthPicker .mini-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;width:100%;min-width:0;text-align:center}
#focusflowMonthPicker .mini-month-weekdays{font-size:9px;opacity:.9;margin-bottom:4px}
#focusflowMonthPicker .mini-month-weekdays span,#focusflowMonthPicker .mini-month-days span{display:grid;place-items:center;min-width:0;min-height:18px;padding:1px 0;border-radius:4px;font-size:10px;line-height:1.15;overflow:hidden}
#focusflowMonthPicker .mini-month-days .outside{opacity:.38}
#focusflowMonthPicker .mini-month-days .today{outline:1px solid #fff;background:rgba(255,255,255,.18);font-weight:900}
#focusflowMonthPicker .mini-month-days .has-task{background:rgba(117,183,255,.55);font-weight:900}
#focusflowMonthPicker .month-choice[aria-pressed="true"]{outline:2px solid var(--blue);outline-offset:-2px;box-shadow:0 0 0 2px rgba(79,151,245,.2),0 4px 12px rgba(0,0,0,.16)}
/* Prevent long names, labels and numeric values from expanding cards or the page. */
html body :is(.task,.task-meta,.task-title,.task-info,.cat-pill,.finance-row,.finance-date-heading,.finance-date-group,.stat-card,.stat-value,.stat-label,.goal-card,.goal-title,.goal-value,.plan-card,.plan-title,.plan-meta,.calendar-card,.month-head,.month-summary,.section-title,.field,label,.setting-row,.setting-title,.setting-description,.tag,.tag-name,.metric,.metric-value,.metric-label){min-width:0;max-width:100%;}
html body :is(.task-title,.task-info,.cat-pill,.finance-row,.finance-date-heading,.stat-value,.stat-label,.goal-title,.goal-value,.plan-title,.plan-meta,.month-summary,.section-title,.setting-title,.setting-description,.tag-name,.metric-value,.metric-label){overflow-wrap:anywhere;word-break:normal;}
html body :is(input,select,textarea,button){max-width:100%;min-width:0;}
html body :is(.finance-row,.task,.plan-card,.setting-row,.stat-card,.goal-card){box-sizing:border-box;}
@media(max-width:650px){#focusflowMonthPicker.month-picker-overlay{padding:8px}#focusflowMonthPicker .month-picker{padding:14px;width:100%;max-height:calc(100dvh - 16px);border-radius:18px}#focusflowMonthPicker .month-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#focusflowMonthPicker .month-choice{padding:9px;border-radius:13px}#focusflowMonthPicker .mini-month-weekdays span,#focusflowMonthPicker .mini-month-days span{font-size:9px;min-height:16px}}
@media(max-width:350px){#focusflowMonthPicker .month-picker-grid{grid-template-columns:minmax(0,1fr)}html body :is(.task-actions,.plan-actions){gap:4px}}



/* ===== Extracted style block 21; original id=focusflow-overflow-and-real-custom-select-v6 ===== */

/* Keep oversized text/numbers inside their own layout cells instead of stretching the page. */
html body *{box-sizing:border-box;}
html body :is(.task-title,.task-info,.task-name,.tag-name,.plan-title,.plan-meta,.goal-title,.goal-value,.stat-value,.stat-label,.metric-value,.metric-label,.finance-row,.finance-date-heading,.finance-date-group,.month-summary,.section-title,.setting-title,.setting-description,.field,label,.cat-pill,.badge,.chip,.toast,.tooltip,.calendar-card,.stat-card,.goal-card,.plan-card,.task,.tag,.setting-row,.metric){min-width:0;max-width:100%;}
html body :is(.task-title,.task-info,.task-name,.tag-name,.plan-title,.plan-meta,.goal-title,.goal-value,.stat-value,.stat-label,.metric-value,.metric-label,.finance-row,.finance-date-heading,.finance-date-group,.month-summary,.section-title,.setting-title,.setting-description,.cat-pill,.badge,.chip,.toast,.tooltip,.calendar-card,.stat-card,.goal-card,.plan-card,.task,.tag,.setting-row,.metric){overflow-wrap:anywhere;word-break:break-word;}
html body :is(.task,.task-content,.task-main,.task-details,.task-info,.plan-card,.plan-content,.finance-row,.finance-row>* ,.stat-card,.goal-card,.setting-row,.setting-row>* ,.field,.planner-form-row,.planner-form-row>*){min-width:0;}
html body :is(input,textarea,select,button){max-width:100%;min-width:0;}
html body :is(.stat-value,.goal-value,.metric-value,.finance-amount,.amount,.number-value){font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
/* Actual custom select UI: native select remains the form value source, while this button/menu is styled consistently. */
html body select.ff-native-select{position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important;}
.ff-select-shell{position:relative!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-top:5px!important;}
.ff-select-trigger{appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;min-width:0!important;min-height:46px!important;padding:11px 14px!important;border:1px solid color-mix(in srgb,var(--blue) 27%,var(--line))!important;border-radius:14px!important;background:linear-gradient(145deg,var(--panel-2),var(--panel))!important;color:var(--ink)!important;font:inherit!important;font-size:14px!important;font-weight:650!important;text-align:start!important;box-shadow:var(--inset),0 4px 12px color-mix(in srgb,var(--sd) 9%,transparent)!important;cursor:pointer!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;}
.ff-select-trigger:hover{border-color:color-mix(in srgb,var(--blue) 65%,var(--line))!important;}
.ff-select-trigger:focus-visible,.ff-select-trigger[aria-expanded="true"]{outline:none!important;border-color:var(--blue)!important;box-shadow:var(--inset),0 0 0 3px color-mix(in srgb,var(--blue) 17%,transparent)!important;}
.ff-select-value{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.ff-select-chevron{flex:0 0 16px!important;width:16px!important;height:16px!important;color:var(--blue)!important;transition:transform .16s ease!important;}
.ff-select-trigger[aria-expanded="true"] .ff-select-chevron{transform:rotate(180deg)!important;}
.ff-select-menu{position:fixed!important;z-index:2147483000!important;display:none!important;min-width:160px!important;max-width:min(360px,calc(100vw - 20px))!important;max-height:min(320px,45vh)!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:6px!important;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line))!important;border-radius:15px!important;background:var(--panel)!important;color:var(--ink)!important;box-shadow:0 16px 44px rgba(0,0,0,.22),var(--raise-sm)!important;}
.ff-select-menu[data-open="true"]{display:block!important;}
.ff-select-option{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;min-width:0!important;padding:10px 11px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--ink)!important;font:inherit!important;font-size:13px!important;font-weight:550!important;text-align:start!important;overflow-wrap:anywhere!important;cursor:pointer!important;}
.ff-select-option:hover,.ff-select-option:focus-visible{outline:none!important;background:color-mix(in srgb,var(--blue) 11%,var(--panel-2))!important;}
.ff-select-option[aria-selected="true"]{background:color-mix(in srgb,var(--blue) 15%,var(--panel-2))!important;color:var(--blue)!important;font-weight:750!important;}
.ff-select-check{flex:0 0 16px!important;width:16px!important;height:16px!important;color:var(--blue)!important;}
html[data-theme="dark"] .ff-select-trigger{background:linear-gradient(145deg,var(--panel-2),var(--panel))!important;color:var(--ink)!important;}
html[dir="rtl"] .ff-select-trigger{direction:rtl!important;text-align:right!important;}
html[dir="ltr"] .ff-select-trigger{direction:ltr!important;text-align:left!important;}
@media(max-width:380px){.ff-select-trigger{min-height:43px!important;padding:9px 11px!important;border-radius:12px!important;font-size:13px!important}.ff-select-menu{max-width:calc(100vw - 16px)!important}.ff-select-option{padding:9px!important;font-size:12px!important}}



/* ===== Extracted style block 22; original id=focusflow-calendar-performance-fix ===== */

/* Performance fix: month picker uses lightweight theme surfaces, no image decoding or blur. */
#focusflowMonthPicker.month-picker-overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(10,18,32,.48)!important}
#focusflowMonthPicker .month-choice{background-image:none!important;background-color:var(--panel-2)!important;color:var(--ink)!important;text-shadow:none!important;box-shadow:var(--raise-sm)!important;transition:border-color .12s ease,background-color .12s ease!important}
#focusflowMonthPicker .month-choice::before{display:none!important}
#focusflowMonthPicker .month-choice .mini-month-title{background:transparent!important;backdrop-filter:none!important;box-shadow:none!important}
#focusflowMonthPicker .mini-month-weekdays span{color:var(--muted)!important;text-shadow:none!important}
#focusflowMonthPicker .mini-month-days span{background:var(--panel)!important;backdrop-filter:none!important;text-shadow:none!important;color:var(--ink)!important}
#focusflowMonthPicker .mini-month-days span.outside{background:transparent!important;opacity:.3}
#focusflowMonthPicker .mini-month-days span.today{outline:1px solid var(--blue)!important;color:var(--blue)!important}
#focusflowMonthPicker .month-choice[aria-pressed="true"]{border:2px solid var(--blue)!important;box-shadow:inset 0 0 0 1px var(--blue-soft)!important}



/* ===== Extracted style block 23; original id=focusflow-month-grid-four-and-select-refresh ===== */

/* Show four compact month calendars per row on desktop and mobile. */
#focusflowMonthPicker .month-picker{width:min(1180px,100%)!important;max-width:calc(100vw - 16px)!important;padding:12px!important}
#focusflowMonthPicker .month-picker-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}
#focusflowMonthPicker .month-choice{min-width:0!important;padding:6px!important;border-radius:10px!important}
#focusflowMonthPicker .month-choice .mini-month-title{font-size:11px!important;margin-bottom:3px!important;padding:2px!important;text-align:center!important}
#focusflowMonthPicker .mini-month-weekdays,#focusflowMonthPicker .mini-month-days{gap:1px!important}
#focusflowMonthPicker .mini-month-weekdays{font-size:7px!important;margin-bottom:2px!important}
#focusflowMonthPicker .mini-month-days span{font-size:7px!important;min-height:0!important;border-radius:2px!important}
#focusflowMonthPicker .month-picker-head{margin-bottom:8px!important;font-size:15px!important}
@media(max-width:650px){
 #focusflowMonthPicker.month-picker-overlay{padding:5px!important}
 #focusflowMonthPicker .month-picker{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 10px)!important;padding:8px!important;border-radius:14px!important}
 #focusflowMonthPicker .month-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
 #focusflowMonthPicker .month-choice{padding:3px!important;border-radius:7px!important}
 #focusflowMonthPicker .month-choice .mini-month-title{font-size:9px!important;margin-bottom:2px!important}
 #focusflowMonthPicker .mini-month-weekdays{font-size:6px!important}
 #focusflowMonthPicker .mini-month-days span{font-size:6px!important;border-radius:1px!important}
}
/* Consistent custom-styled select controls (closed state) across app forms. */
html body select:not([multiple]):not([size]){
 -webkit-appearance:none!important;appearance:none!important;display:block;max-width:100%;min-width:0;min-height:48px!important;
 border:1px solid color-mix(in srgb,var(--blue) 24%,var(--line))!important;border-radius:14px!important;
 background-color:var(--panel-2)!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2367809f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 13px center!important;background-size:16px 16px!important;
 color:var(--ink)!important;font:inherit!important;font-weight:650!important;padding:11px 40px 11px 13px!important;
 box-shadow:var(--inset),0 3px 10px color-mix(in srgb,var(--sd) 9%,transparent)!important;outline:none!important;
}
html[dir="rtl"] body select:not([multiple]):not([size]){background-position:left 13px center!important;padding:11px 13px 11px 40px!important}
html body select:not([multiple]):not([size]):focus{border-color:var(--blue)!important;box-shadow:var(--inset),0 0 0 3px color-mix(in srgb,var(--blue) 16%,transparent)!important}
html[data-theme="dark"] body select:not([multiple]):not([size]){background-color:var(--panel-2)!important;color:var(--ink)!important;color-scheme:dark}



/* ===== Extracted style block 24; original id=focusflow-overflow-containment-v7 ===== */

/* Keep long labels and unusually large numbers inside their own layout boxes. */
html,body,#app,.app,.main,.main-content,main,.page,.page-content,#financePage,#plannerFinanceView,
.finance-overview,.finance-summary,.finance-stat,.finance-income-strip,.finance-pie-card,
.finance-pie-layout,.finance-pie-legend,.finance-row,.finance-detail,.finance-toolbar,
.planner-finance-view,.card,.panel,.stat-card,.stat-tile,.metric-card{min-width:0;max-width:100%;box-sizing:border-box}
.finance-stat strong,.finance-income-strip strong,.finance-stat.balance strong,
.finance-stat.balance strong span,.finance-amount,.finance-pie-legend-row strong,
[class*="balance"] strong,[class*="income"] strong,[class*="amount"], [class*="currency"]{
  min-width:0!important;max-width:100%!important;white-space:normal!important;
  overflow-wrap:anywhere!important;word-break:break-word!important;
}
.finance-stat.balance strong{display:block!important;overflow:hidden}
.finance-stat.balance strong span{display:inline!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-all!important}
.finance-income-strip{flex-wrap:wrap!important}
.finance-income-strip>*,.finance-toolbar>*{min-width:0;max-width:100%}
.finance-income-strip strong{font-size:clamp(12px,3.5vw,16px)!important;line-height:1.45;overflow-wrap:anywhere!important;word-break:break-all!important}
.finance-overview>*{min-width:0!important}
/* Global guard against long names, IDs and numeric strings widening the page. */
body *{box-sizing:border-box}
body :where(h1,h2,h3,h4,p,strong,span,label,small,div,a,button){overflow-wrap:anywhere}
input,textarea,select,button{max-width:100%;min-width:0}
@media(max-width:700px){
  #financePage,#plannerFinanceView,.finance-overview,.finance-income-strip,.finance-pie-card{width:100%;max-width:100%;}
  .finance-overview .finance-summary{min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .finance-stat{min-width:0!important;padding:10px!important}
  .finance-stat strong,.finance-stat.balance strong span{font-size:clamp(11px,3.2vw,15px)!important;line-height:1.4}
}



/* ===== Extracted style block 25; original id=focusflow-persian-calendar-fix-v7 ===== */

/* Persian/Jalali month picker: right-to-left flow, Saturday-first week, readable Persian digits. */
html[dir="rtl"] #focusflowMonthPicker .month-picker,
html[dir="rtl"] #focusflowMonthPicker .month-picker-head { direction:rtl; }
html[dir="rtl"] #focusflowMonthPicker .month-picker-head { display:flex; align-items:center; justify-content:space-between; }
html[dir="rtl"] #focusflowMonthPicker .month-picker-grid { direction:rtl; }
html[dir="rtl"] #focusflowMonthPicker .month-choice { direction:rtl; }
html[dir="rtl"] #focusflowMonthPicker .mini-month-weekdays,
html[dir="rtl"] #focusflowMonthPicker .mini-month-days { direction:rtl; }
html[dir="rtl"] #focusflowMonthPicker .mini-month-title { direction:rtl; text-align:center; }
html[dir="rtl"] #focusflowMonthPicker .month-picker-year { font-variant-numeric: normal; }



/* ===== Extracted style block 26; original id=focusflow-persian-calendar-precision-v8 ===== */

/* Remove the extra current-month caption and align the Jalali calendar Saturday-first. */
html[lang="fa"] .calendar-months .calendar-card[data-current-month="true"] .month-head::after{content:none !important;display:none !important}
html[lang="fa"] #calendarCard .weekdays,
html[lang="fa"] #previousMonthCard .weekdays {direction:rtl !important}
html[lang="fa"] #calendarCard .calendar-grid,
html[lang="fa"] #previousMonthCard .calendar-grid {direction:rtl !important}
html[lang="fa"] #focusflowMonthPicker .mini-month-weekdays,
html[lang="fa"] #focusflowMonthPicker .mini-month-days {direction:rtl !important}
#focusflowMonthPicker .month-picker-grid {grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:7px !important}
#focusflowMonthPicker .month-choice {min-width:0;overflow:hidden}
#focusflowMonthPicker .mini-month-title {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#focusflowMonthPicker .mini-month-weekdays,
#focusflowMonthPicker .mini-month-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
#focusflowMonthPicker .mini-month-days span {min-width:0;overflow:hidden}
@media(max-width:480px){
 #focusflowMonthPicker .month-picker{padding:12px !important}
 #focusflowMonthPicker .month-picker-grid{gap:5px !important}
 #focusflowMonthPicker .month-choice{padding:5px 2px !important}
 #focusflowMonthPicker .mini-month-title{font-size:10px !important}
 #focusflowMonthPicker .mini-month-weekdays{font-size:8px !important}
 #focusflowMonthPicker .mini-month-days{font-size:8px !important}
}



/* ===== Extracted style block 27; original id=focusflow-fa-select-alignment-v9 ===== */

html[lang="fa"] body select,
html[lang="fa"] body input,
html[lang="fa"] body textarea,
html[dir="rtl"] body select,
html[dir="rtl"] body input,
html[dir="rtl"] body textarea { text-align:right !important; direction:rtl !important; }
html[lang="fa"] body select:not([multiple]):not([size]),
html[dir="rtl"] body select:not([multiple]):not([size]) {
  background-position:left 13px center !important;
  padding-inline:12px 40px !important;
  margin-inline-start:auto;
}
html[lang="fa"] body .form-row,
html[lang="fa"] body .form-group,
html[lang="fa"] body .field,
html[dir="rtl"] body .form-row,
html[dir="rtl"] body .form-group,
html[dir="rtl"] body .field { direction:rtl !important; }



/* ===== Extracted style block 28; original id=focusflow-calendar-polish-v10 ===== */

/* Full weekday names must stay on one line, especially Persian Wednesday. */
#calendarPage .calendar-card .weekdays{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:clamp(2px,1vw,6px)!important;width:100%;min-width:0;text-align:center;
}
#calendarPage .calendar-card .weekdays span{
  display:block!important;min-width:0!important;padding:0!important;
  white-space:nowrap!important;overflow:hidden;text-overflow:clip;
  overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none;
  line-height:1.4;font-size:clamp(7px,2.55vw,11px)!important;letter-spacing:0;
}
html[lang="fa"] #calendarPage .calendar-card .weekdays{direction:rtl!important}
html[lang="fa"] #calendarPage .calendar-card .calendar-grid{direction:rtl!important}

/* A lightweight month list replaces 504 tiny date cells. */
#focusflowMonthPicker.month-picker-overlay{
  display:none;position:fixed;inset:0;z-index:2147483000;align-items:center;justify-content:center;
  padding:16px;background:rgba(14,24,40,.46)!important;backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;opacity:0;transition:opacity .18s ease;
}
#focusflowMonthPicker.month-picker-overlay.show{display:flex!important;opacity:1}
#focusflowMonthPicker .month-picker{
  width:min(440px,100%)!important;max-width:100%;max-height:min(82dvh,680px)!important;
  overflow:auto;overscroll-behavior:contain;contain:layout paint;
  padding:18px!important;border-radius:22px!important;background:var(--panel)!important;color:var(--ink)!important;
  box-shadow:0 22px 56px rgba(10,20,40,.28)!important;
  animation:ffMonthPanelIn .23s cubic-bezier(.2,.8,.2,1) both;
}
#focusflowMonthPicker .month-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
#focusflowMonthPicker .month-picker-year{font-weight:850;font-size:20px;line-height:1.3}
#focusflowMonthPicker .month-picker-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:var(--panel-2);color:var(--ink);box-shadow:var(--raise-sm);font-size:24px;line-height:1}
#focusflowMonthPicker .month-picker-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;
  width:100%;min-width:0;direction:inherit;
}
#focusflowMonthPicker .month-choice{
  position:relative;display:flex!important;align-items:center;justify-content:center;min-width:0!important;
  min-height:48px!important;padding:9px 5px!important;border:1px solid var(--line)!important;
  border-radius:13px!important;background:var(--panel-2)!important;color:var(--ink)!important;
  box-shadow:var(--raise-sm)!important;text-shadow:none!important;font:inherit!important;
  font-size:clamp(11px,3.4vw,14px)!important;font-weight:750!important;text-align:center!important;
  overflow:hidden;touch-action:manipulation;animation:ffMonthSlideIn .32s cubic-bezier(.2,.8,.2,1) both;
  animation-delay:calc(var(--month-index,0)*18ms);transition:color .15s ease,background-color .15s ease,border-color .15s ease,transform .15s ease!important;
}
#focusflowMonthPicker .month-choice::before{display:none!important;content:none!important}
#focusflowMonthPicker .month-choice>*{position:relative;z-index:1;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#focusflowMonthPicker .month-choice:hover{transform:translateY(-1px);border-color:var(--blue)!important}
#focusflowMonthPicker .month-choice[aria-pressed="true"]{border:1.5px solid var(--blue)!important;background:var(--blue-soft)!important;color:var(--blue)!important;box-shadow:inset 0 0 0 1px var(--blue-soft)!important}
#focusflowMonthPicker .month-choice:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@keyframes ffMonthPanelIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes ffMonthSlideIn{from{opacity:0;transform:translate3d(var(--month-slide-x,12px),7px,0) scale(.98)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@media(min-width:560px){#focusflowMonthPicker .month-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}#focusflowMonthPicker .month-choice{min-height:52px!important}}
@media(max-width:360px){#calendarPage .calendar-card{padding:14px!important}#calendarPage .calendar-card .weekdays span{font-size:7px!important}#focusflowMonthPicker.month-picker-overlay{padding:8px}#focusflowMonthPicker .month-picker{padding:13px!important;border-radius:17px!important}#focusflowMonthPicker .month-picker-grid{gap:7px!important}#focusflowMonthPicker .month-choice{min-height:43px!important;padding:7px 3px!important;font-size:11px!important}}
@media(prefers-reduced-motion:reduce){#focusflowMonthPicker .month-picker,#focusflowMonthPicker .month-choice{animation:none!important;transition:none!important}#focusflowMonthPicker.month-picker-overlay{transition:none!important}}
html.perf-lite #focusflowMonthPicker .month-picker,html.perf-lite #focusflowMonthPicker .month-choice{animation-duration:.18s}
html.perf-lite #focusflowMonthPicker .month-choice{animation-delay:0ms}



/* ===== Extracted style block 29; original id=focusflow-month-revolver-v11 ===== */

/* Month picker: tactile horizontal revolver/carousel, optimized for touch and low-end phones. */
#focusflowMonthPicker .month-picker{width:min(560px,100%)!important;overflow:hidden!important;}
#focusflowMonthPicker .month-picker-grid{
  display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;
  overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory!important;scroll-padding-inline:calc(50% - 76px);
  padding:14px max(4px,calc(50% - 76px)) 18px!important;
  perspective:700px;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;
  scrollbar-width:none!important;direction:ltr!important;contain:layout paint;
}
#focusflowMonthPicker .month-picker-grid::-webkit-scrollbar{display:none!important}
#focusflowMonthPicker .month-choice{
  flex:0 0 152px!important;width:152px!important;min-height:112px!important;height:112px!important;
  scroll-snap-align:center!important;white-space:normal!important;border-radius:20px!important;
  transform:scale(.88) rotateY(0deg)!important;opacity:.72;box-shadow:var(--raise-sm)!important;
  transition:transform .22s ease,opacity .22s ease,background-color .18s ease,border-color .18s ease!important;
  animation:ffRevolverIn .25s ease both!important;animation-delay:calc(min(var(--month-index,0),5)*12ms)!important;
}
#focusflowMonthPicker .month-choice .month-choice-label{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4}
#focusflowMonthPicker .month-choice[aria-pressed="true"]{
  opacity:1!important;transform:scale(1) translateZ(18px)!important;border:2px solid var(--blue)!important;
  background:var(--blue-soft)!important;color:var(--blue)!important;box-shadow:0 10px 24px var(--glow)!important;
}
#focusflowMonthPicker .month-choice:active{transform:scale(.94)!important}
@keyframes ffRevolverIn{from{opacity:0;transform:translateY(7px) rotateY(-12deg) scale(.88)}to{opacity:.72;transform:translateY(0) rotateY(0) scale(.88)}}
#focusflowMonthPicker .month-choice[aria-pressed="true"]{animation:none!important}
@media(max-width:420px){
 #focusflowMonthPicker .month-picker{padding:15px!important}
 #focusflowMonthPicker .month-picker-grid{gap:9px!important;scroll-padding-inline:calc(50% - 66px);padding-inline:max(3px,calc(50% - 66px))!important}
 #focusflowMonthPicker .month-choice{flex-basis:132px!important;width:132px!important;height:100px!important;min-height:100px!important;font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){#focusflowMonthPicker .month-choice{animation:none!important;transition:none!important}}
html.perf-lite #focusflowMonthPicker .month-choice{animation:none!important;transition:opacity .12s ease!important}
/* Keep the original seasonal artwork visible behind the main calendar card. */
#calendarPage #calendarCard.calendar-card{background-size:cover;background-position:center;background-repeat:no-repeat}
#calendarPage #calendarCard.calendar-card::before{background:color-mix(in srgb,var(--panel) 48%,transparent)}
html[data-theme="dark"] #calendarPage #calendarCard.calendar-card::before{background:color-mix(in srgb,var(--panel) 72%,transparent)}



/* ===== Extracted style block 30; original id=focusflow-performance-locale-layout-v13 ===== */

/* Keep the performance control readable in both writing directions. */
#perfBtn, #settingsPerfBtn { min-width:0; gap:12px; }
#perfBtn .end, #settingsPerfBtn .end { flex:0 0 auto; white-space:nowrap; overflow-wrap:normal; word-break:keep-all; margin-inline-start:auto; max-width:none; text-align:center; }
#perfBtn > span:not(.end) { flex:1 1 auto; min-width:0; overflow-wrap:normal; word-break:normal; }
#perfBtn small { display:block; line-height:1.45; overflow-wrap:normal; word-break:normal; }
#settingsPerfBtn .settings-option-copy { flex:1 1 auto; min-width:0; text-align:start; overflow-wrap:normal; word-break:normal; }
#settingsPerfBtn .settings-option-copy strong { line-height:1.4; overflow-wrap:normal; word-break:normal; }
#settingsPerfBtn .settings-option-copy small { display:block; line-height:1.5; overflow-wrap:normal; word-break:normal; hyphens:none; }
html[dir="rtl"] #perfBtn, html[dir="rtl"] #settingsPerfBtn { direction:rtl; text-align:right; }
html[dir="ltr"] #perfBtn, html[dir="ltr"] #settingsPerfBtn { direction:ltr; text-align:left; }
@media (max-width:420px) {
  #settingsPerfBtn { padding:12px 13px; gap:10px; }
  #settingsPerfBtn .settings-option-copy small { font-size:11px; }
  #settingsPerfBtn .end { font-size:11px; }
}



/* ===== Extracted style block 31; original id=focusflow-v19-nav-and-bonfire-sort-fix ===== */

/* Bonfire has one visible sort selector: the custom accessible menu. */
#bonfire-native-root #sort.control,
#bonfire-native-root select#sort,
#bonfire-native-root .sort-wrap > select {
  display:none !important; visibility:hidden !important; width:0 !important; height:0 !important;
  min-width:0 !important; min-height:0 !important; padding:0 !important; margin:0 !important;
  border:0 !important; opacity:0 !important; pointer-events:none !important;
}
@media (max-width: 699px) {
  body .bottomnav {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 58px minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    overflow:visible !important;
  }
  body .bottomnav .fab {
    grid-column:3 !important; grid-row:1 !important; justify-self:center !important;
    align-self:center !important; transform:translateY(-13px) !important;
    width:54px !important; height:54px !important; min-width:54px !important;
    min-height:54px !important; margin:0 !important; padding:0 !important;
    border-radius:50% !important; z-index:3 !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    box-shadow:0 7px 18px rgba(65,120,220,.32),0 0 0 7px var(--panel) !important;
  }
  body .bottomnav .fab .desktop-nav-label,
  body .bottomnav .fab .desktop-nav-key { display:none !important; }
  body .bottomnav .navbtn[data-page="home"] {grid-column:1 !important;grid-row:1 !important}
  body .bottomnav .navbtn[data-page="calendar"] {grid-column:2 !important;grid-row:1 !important}
  body .bottomnav .navbtn[data-page="progress"] {grid-column:4 !important;grid-row:1 !important}
  body .bottomnav .navbtn.planner-top-link {grid-column:5 !important;grid-row:1 !important;display:flex !important}
  body .bottomnav .navbtn.music-top-link {display:none !important}
  body .bottomnav .navbtn[data-page="finance"] {display:none !important}
}



/* ===== Extracted style block 32; original id=focusflow-v22-bonfire-and-menu-fixes ===== */

/* Remove Planner only from the hamburger menu; keep its actual page/navigation intact. */
#plannerOpenMenu{display:none!important}
/* Bonfire / آتیشگاه: use the same active FocusFlow palette and consistent neumorphic surfaces. */
#bonfire-native-root{
  --pv-shadow:6px 6px 14px var(--sd),-6px -6px 14px var(--sl);
  --pv-inset:inset 3px 3px 7px var(--sd),inset -3px -3px 7px var(--sl);
}
#bonfire-native-root .primary,
#bonfire-native-root .top-add-btn,
#bonfire-native-root .modal .primary{
  background:var(--grad)!important;color:var(--on-accent)!important;
  border:0!important;border-radius:15px!important;box-shadow:0 7px 18px var(--glow)!important;
  font-weight:800;transition:transform .18s var(--ease),box-shadow .18s,filter .18s;
}
#bonfire-native-root .primary:hover,#bonfire-native-root .top-add-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}
#bonfire-native-root .iconbtn,#bonfire-native-root .softbtn,#bonfire-native-root .viewbtn,
#bonfire-native-root .tiny,#bonfire-native-root .pickbtn,#bonfire-native-root .secondary,
#bonfire-native-root .stat,#bonfire-native-root .promptcard,#bonfire-native-root .tag,
#bonfire-native-root .modal,#bonfire-native-root .close,#bonfire-native-root .navitem{
  box-shadow:var(--pv-shadow)!important;
}
#bonfire-native-root .iconbtn:active,#bonfire-native-root .softbtn:active,
#bonfire-native-root .viewbtn.active,#bonfire-native-root .tiny:active,
#bonfire-native-root .secondary:active,#bonfire-native-root .tag.active,
#bonfire-native-root .navitem.active{box-shadow:var(--pv-inset)!important}
#bonfire-native-root .search,#bonfire-native-root .control,
#bonfire-native-root .field input,#bonfire-native-root .field textarea,
#bonfire-native-root .field select{box-shadow:var(--pv-inset)!important;border-color:transparent}
#bonfire-native-root .promptcard{border:1px solid var(--line);border-radius:20px!important}
#bonfire-native-root .hero{box-shadow:var(--pv-shadow)!important}
#bonfire-native-root .primary:focus-visible,#bonfire-native-root button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* v23: prompt library inherits FocusFlow's active Home palette (light/dark + selected palette). */
#bonfirePage{
  --pv-home-bg:var(--bg); --pv-home-panel:var(--panel); --pv-home-panel-2:var(--panel-2);
  --pv-home-ink:var(--ink); --pv-home-muted:var(--muted); --pv-home-line:var(--line);
  --pv-home-shadow-dark:var(--sd); --pv-home-shadow-light:var(--sl);
  --pv-home-blue:var(--blue); --pv-home-blue-light:var(--blue-light); --pv-home-blue-dark:var(--blue-dark);
}
#bonfire-native-root{
  --bg:var(--pv-home-bg)!important; --surface:var(--pv-home-panel)!important;
  --text:var(--pv-home-ink)!important; --muted:var(--pv-home-muted)!important;
  --line:var(--pv-home-line)!important; --sd:var(--pv-home-shadow-dark)!important;
  --sl:var(--pv-home-shadow-light)!important;
  --purple:var(--pv-home-blue-light)!important; --blue:var(--pv-home-blue)!important;
  --mint:var(--pv-home-blue-light)!important; --pink:var(--pv-home-blue)!important;
  --yellow:var(--pv-home-blue-dark)!important;
  --shadow:6px 6px 14px var(--sd),-6px -6px 14px var(--sl)!important;
  --inset:inset 3px 3px 7px var(--sd),inset -3px -3px 7px var(--sl)!important;
}
#bonfire-native-root .app,#bonfire-native-root .main,#bonfire-native-root .content,
#bonfire-native-root .promptcard,#bonfire-native-root .settingcard,#bonfire-native-root .modal{
  color:var(--text)!important;
}
#bonfire-native-root .promptcard,#bonfire-native-root .settingcard,
#bonfire-native-root .search,#bonfire-native-root .control,
#bonfire-native-root .field input,#bonfire-native-root .field textarea,
#bonfire-native-root .field select{background:var(--surface)!important}
#bonfire-native-root .cover{background:linear-gradient(135deg,var(--pv-home-blue-light),var(--pv-home-blue),var(--pv-home-panel-2))!important}
#bonfire-native-root .primary,#bonfire-native-root .top-add-btn,#bonfire-native-root .modal .primary{
  background:var(--grad)!important;color:var(--on-accent)!important;
}
#bonfire-native-root .secondary,#bonfire-native-root .softbtn,#bonfire-native-root .iconbtn,
#bonfire-native-root .viewbtn,#bonfire-native-root .tiny,#bonfire-native-root .pickbtn{
  background:var(--surface)!important;color:var(--text)!important;
}



/* ===== Extracted style block 33; original id=v27-music-clean-rtl ===== */

html[dir="rtl"] .mini-controls { direction: ltr; flex-direction: row-reverse; }
html[dir="rtl"] .player-controls { direction: ltr; flex-direction: row-reverse; }
/* The dedicated Music page is the player surface; avoid a duplicate floating mini-player there. */
#musicPage.active ~ #miniPlayer, #miniPlayer[hidden] { display: none !important; }



/* ===== Extracted style block 34; original id=focusflow-v35-verified-desktop-fixes ===== */

/* Keep the desktop rail in its own reserved gutter; never let page text run underneath it. */
@media (min-width:1024px){
  body > .app{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:26px 154px 48px 28px!important;
    box-sizing:border-box!important;
  }
  html[dir="rtl"] body > .app{padding-right:154px!important;padding-left:28px!important}
  html[dir="ltr"] body > .app{padding-left:154px!important;padding-right:28px!important}
  body > .app > .page{min-width:0!important;max-width:none!important}
  body .bottomnav{right:20px!important;width:100px!important;max-width:100px!important}
  /* The nested Bonfire app is a separate application surface, not the host workspace. */
  #bonfirePage #bonfire-native-root,
  #bonfirePage #bonfire-native-root .app{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:0!important;box-sizing:border-box!important;
  }
  #bonfirePage.active{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
  #bonfirePage #bonfire-native-root{display:block!important;visibility:visible!important;opacity:1!important}
  #bonfirePage #bonfire-native-root .main,
  #bonfirePage #bonfire-native-root .content{width:100%!important;max-width:none!important;min-width:0!important}
  /* Progress matches the supplied reference: four compact summary tiles, chart beside categories, activity map below. */
  #progressPage.active,#statsPage.active{
    display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:18px!important;align-items:stretch!important;min-width:0!important;
  }
  #progressPage>.section-title,#statsPage>.section-title{grid-column:1/-1!important;order:0!important;margin:0 2px 0!important}
  #progressPage>.today-card,#progressPage>.goal-card,#statsPage>.today-card,#statsPage>.goal-card{display:none!important}
  #progressPage>.stats-top,#statsPage>.stats-top{display:contents!important}
  #progressPage .metrics,#statsPage .metrics{display:contents!important}
  #progressPage .progress-ring-wrap,#statsPage .progress-ring-wrap{grid-column:span 3!important;order:1!important;min-width:0!important}
  #progressPage .metric,#statsPage .metric{grid-column:span 3!important;order:1!important;min-width:0!important;margin:0!important}
  #progressPage>.focus-chart,#statsPage>.focus-chart{grid-column:span 7!important;order:2!important;min-width:0!important;margin:0!important}
  #progressPage>.category-card,#statsPage>.category-card{grid-column:span 5!important;order:2!important;min-width:0!important;margin:0!important}
  #progressPage>.activity-card,#statsPage>.activity-card{grid-column:1/-1!important;order:3!important;min-width:0!important;margin:0!important}
  #progressPage .activity-card .heatmap-wrap,#statsPage .activity-card .heatmap-wrap{max-width:100%!important;overflow-x:auto!important}
  #progressPage .activity-card .heatmap,#statsPage .activity-card .heatmap{width:max-content!important;max-width:none!important}
}
@media (min-width:1024px) and (max-width:1250px){
  body > .app{padding-right:126px!important;padding-left:20px!important}
  html[dir="rtl"] body > .app{padding-right:126px!important;padding-left:20px!important}
  html[dir="ltr"] body > .app{padding-left:126px!important;padding-right:20px!important}
  body .bottomnav{right:12px!important;width:92px!important;max-width:92px!important}
}
/* Preserve the existing compact phone navigation exactly; Bonfire and Music remain in the hamburger menu. */
@media (max-width:1023px){
  body > .app{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding-left:max(var(--ff-page-pad-x,16px),env(safe-area-inset-left,0px))!important;padding-right:max(var(--ff-page-pad-x,16px),env(safe-area-inset-right,0px))!important;padding-inline:max(var(--ff-page-pad-x,16px),env(safe-area-inset-left,0px)) max(var(--ff-page-pad-x,16px),env(safe-area-inset-right,0px))!important;}
  body .bottomnav .navbtn.music-top-link,body .bottomnav .navbtn.bonfire-top-link{display:none!important}
  #bonfirePage #bonfire-native-root .app{padding:0!important;margin:0!important;width:100%!important;max-width:100%!important}
}



/* ===== Extracted style block 35; original id=focusflow-v39-desktop-functional-fixes ===== */

@media (min-width: 1024px) {
  /* Keep only the global FocusFlow navigation in the desktop rail. The native Bonfire
     navigation stays inside Bonfire and remains hidden at desktop widths. */
  body > .app > nav.bottomnav[aria-label="Main navigation"],
  body > nav.bottomnav[aria-label="Main navigation"],
  .app > nav.bottomnav[aria-label="Main navigation"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  body nav.bottomnav[aria-label="Main navigation"] .fab#addBtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    order: 8 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    margin: 4px 0 0 !important;
    padding: 8px 4px !important;
    align-self: stretch !important;
    flex-direction: column !important;
    gap: 4px !important;
    border-radius: 16px !important;
    transform: none !important;
  }
  body nav.bottomnav[aria-label="Main navigation"] .fab#addBtn .desktop-nav-label {
    display: block !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  /* Planner: fit the full table in the desktop content area, including Actions. */
  #plannerPage .pl-list-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  #plannerPage .pl-list-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  #plannerPage .pl-list-table th,
  #plannerPage .pl-list-table td {
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
  #plannerPage .pl-list-table th:nth-child(1),
  #plannerPage .pl-list-table td:nth-child(1) { width: 4% !important; }
  #plannerPage .pl-list-table th:nth-child(2),
  #plannerPage .pl-list-table td:nth-child(2) { width: 20% !important; }
  #plannerPage .pl-list-table th:nth-child(3),
  #plannerPage .pl-list-table td:nth-child(3) { width: 10% !important; }
  #plannerPage .pl-list-table th:nth-child(4),
  #plannerPage .pl-list-table td:nth-child(4) { width: 11% !important; }
  #plannerPage .pl-list-table th:nth-child(5),
  #plannerPage .pl-list-table td:nth-child(5) { width: 9% !important; }
  #plannerPage .pl-list-table th:nth-child(6),
  #plannerPage .pl-list-table td:nth-child(6) { width: 12% !important; }
  #plannerPage .pl-list-table th:nth-child(7),
  #plannerPage .pl-list-table td:nth-child(7) { width: 19% !important; }
  #plannerPage .pl-list-table th:nth-child(8),
  #plannerPage .pl-list-table td:nth-child(8) {
    width: 15% !important;
    min-width: 112px !important;
    white-space: nowrap !important;
  }
  #plannerPage .pl-list-table th:last-child button {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  #plannerPage .pl-list-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    min-width: 0 !important;
  }
  #plannerPage .pl-list-actions button {
    display: inline-grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    place-items: center !important;
  }
  #plannerPage .pl-list-actions svg.ic { width: 16px !important; height: 16px !important; }

  /* Music: the hero is on the physical right in Persian and on the physical left in English. */
  #musicPage.active {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-areas: "heading heading" "hero tracks" !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    direction: ltr !important;
  }
  #musicPage > .section-title { grid-area: heading !important; grid-column: 1 / -1 !important; width: 100% !important; }
  #musicPage .music-hero {
    grid-area: hero !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 330px !important;
    height: auto !important;
    margin: 0 !important;
    align-self: start !important;
  }
  #musicPage .music-tracks {
    grid-area: tracks !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    align-self: start !important;
  }
  #musicPage .music-tracks .list-head { margin-top: 0 !important; }
  #musicPage .music-list { display: flex !important; flex-direction: column !important; width: 100% !important; min-width: 0 !important; }
  #musicPage .song { min-width: 0 !important; grid-template-columns: 22px 48px minmax(0,1fr) auto 38px !important; gap: 10px !important; }
  #musicPage .song img { width: 48px !important; height: 48px !important; }
  html[dir="rtl"] #musicPage .section-title,
  html[dir="rtl"] #musicPage .music-hero,
  html[dir="rtl"] #musicPage .music-tracks { direction: rtl !important; text-align: right !important; }
  html[dir="ltr"] #musicPage .section-title,
  html[dir="ltr"] #musicPage .music-hero,
  html[dir="ltr"] #musicPage .music-tracks { direction: ltr !important; text-align: left !important; }
  html[dir="rtl"] #musicPage.active { grid-template-areas: "heading heading" "tracks hero" !important; }
  html[dir="ltr"] #musicPage.active { grid-template-areas: "heading heading" "hero tracks" !important; }

  /* Bonfire / آتیشگاه: give the full prompt library a real desktop workspace. */
  #bonfirePage.active {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  #bonfirePage #bonfire-native-root {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 60vh !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    direction: inherit;
  }
  #bonfirePage #bonfire-native-root > .app {
    display: block !important;
    width: 100% !important;
    max-width: 1480px !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    padding: 22px 20px 40px !important;
    overflow: visible !important;
  }
  #bonfirePage #bonfire-native-root .top {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin: 0 0 24px !important;
  }
  #bonfirePage #bonfire-native-root .brand,
  #bonfirePage #bonfire-native-root .actions { min-width: 0 !important; }
  #bonfirePage #bonfire-native-root .top .top-add-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px !important;
    gap: 8px !important;
  }
  #bonfirePage #bonfire-native-root .hero.hidden { display: none !important; }
  #bonfirePage #bonfire-native-root .tag-section-head,
  #bonfirePage #bonfire-native-root .tagrow-wrap,
  #bonfirePage #bonfire-native-root .sectionhead,
  #bonfirePage #bonfire-native-root #cards {
    display: flex;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #bonfirePage #bonfire-native-root .tagrow-wrap { align-items: center !important; gap: 12px !important; }
  #bonfirePage #bonfire-native-root .tagrow-wrap #tagRow { flex: 1 1 auto !important; min-width: 0 !important; }
  #bonfirePage #bonfire-native-root .sectionhead:not(.tag-section-head) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 20px 0 14px !important;
  }
  #bonfirePage #bonfire-native-root #cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 220px !important;
  }
  #bonfirePage #bonfire-native-root #cards > .empty {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 220px !important;
    padding: 48px 24px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #bonfirePage #bonfire-native-root .promptcard { min-width: 0 !important; }
  #bonfirePage #bonfire-native-root .bottomnav { display: none !important; }
  #bonfirePage #bonfire-native-root .fab { display: none !important; }

  /* Keep row/column alignment tied to the language selected in Settings. */
  html[dir="rtl"] #plannerPage,
  html[dir="rtl"] #financePage,
  html[dir="rtl"] #progressPage,
  html[dir="rtl"] #bonfirePage #bonfire-native-root { direction: rtl !important; }
  html[dir="ltr"] #plannerPage,
  html[dir="ltr"] #financePage,
  html[dir="ltr"] #progressPage,
  html[dir="ltr"] #bonfirePage #bonfire-native-root { direction: ltr !important; }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  #plannerPage .pl-list-table { font-size: 10.5px !important; }
  #plannerPage .pl-list-table th button { padding-inline: 6px !important; font-size: 10px !important; }
  #plannerPage .pl-list-table td { padding: 10px 6px !important; }
  #plannerPage .pl-list-actions { gap: 3px !important; }
  #plannerPage .pl-list-actions button { flex-basis: 24px !important; width: 24px !important; min-width: 24px !important; height: 24px !important; }
  #bonfirePage #bonfire-native-root #cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
  #musicPage.active { gap: 14px !important; }
  #musicPage .song { grid-template-columns: 19px 42px minmax(0,1fr) auto 34px !important; gap: 7px !important; }
  #musicPage .song img { width: 42px !important; height: 42px !important; }
}



/* ===== Extracted style block 36; original id=focusflow-v43-prompt-layout-fixes ===== */

#bonfire-native-root .cards.list .promptcard{display:grid!important;grid-template-columns:minmax(112px,220px) minmax(0,1fr)!important;align-items:start!important;gap:14px!important;width:100%!important;box-sizing:border-box!important}
#bonfire-native-root .cards.list .cover{display:grid!important;visibility:visible!important;width:100%!important;height:150px!important;min-height:100px!important;grid-column:1!important;grid-row:1!important}
#bonfire-native-root .cards.list .cover img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
#bonfire-native-root .cards.list .cardbody{min-width:0!important;width:100%!important;grid-column:2!important;grid-row:1!important;padding:3px 2px!important}
#bonfire-native-root .cardfoot{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;gap:8px!important}
#bonfire-native-root .cardfoot .date{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:normal!important;writing-mode:horizontal-tb!important;line-height:1.5!important}
#bonfire-native-root .cardtools{flex:0 0 auto!important;display:flex!important;flex-flow:row nowrap!important;gap:5px!important}
#bonfire-native-root .bonfireToast{position:fixed!important;top:calc(14px + env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translate(-50%,-12px)!important;z-index:2147483647!important;width:max-content!important;max-width:calc(100vw - 28px)!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;padding:12px 18px!important;border-radius:14px!important;box-shadow:0 10px 32px #172b4650!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .22s ease,transform .22s ease,visibility .22s ease!important}
#bonfire-native-root .bonfireToast.show{opacity:1!important;visibility:visible!important;transform:translate(-50%,0)!important}
@media(max-width:620px){#bonfire-native-root .cards.list .promptcard{grid-template-columns:minmax(92px,34%) minmax(0,1fr)!important;gap:10px!important;padding:10px!important}#bonfire-native-root .cards.list .cover{height:112px!important}#bonfire-native-root .cards.list .cardbody{padding:0!important}#bonfire-native-root .cardfoot .date{font-size:9px!important}#bonfire-native-root .cards.list .cardtools{gap:4px!important}}



/* ===== Extracted style block 37; original id=focusflow-v47-prompt-tag-align-single-sort ===== */

/* v47: vertically align tag icon and label on the same center line. */
#bonfire-native-root .minitag{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;vertical-align:middle!important;line-height:1.2!important;padding-top:7px!important;padding-bottom:7px!important;}
#bonfire-native-root .minitag svg, #bonfire-native-root .minitag .tag-emoji-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;vertical-align:middle!important;margin:0!important;line-height:1!important;position:static!important;transform:none!important;}
#bonfire-native-root .minitag{white-space:nowrap!important;}
/* Keep one sorting/date control and the two layout controls only. Remove duplicate/blank filter controls. */
#bonfire-native-root #sort{display:none!important;visibility:hidden!important;}
#bonfire-native-root .toolbar > button:not(#gridBtn):not(#listBtn){display:none!important;}
#bonfire-native-root .toolbar > .sort-wrap ~ button:not(#gridBtn):not(#listBtn){display:none!important;}
@media(max-width:620px){#bonfire-native-root .minitag{gap:4px!important;padding-top:6px!important;padding-bottom:6px!important;font-size:11px!important;}}



/* ===== Extracted style block 38; original id=v57-mobile-card-and-tag-modal-fixes ===== */

/* Keep all four prompt actions inside each mobile grid card, including the favorite icon. */
@media(max-width:640px){
 #bonfire-native-root #cards.cards:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard{padding:12px!important;min-width:0!important;overflow:hidden!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cover{height:clamp(112px,34vw,160px)!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cardbody{min-width:0!important;padding:11px 2px 2px!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cardfoot{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;min-width:0!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cardfoot .date{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.6!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cardtools{width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;justify-content:stretch!important;min-width:0!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cardtools .tiny{width:100%!important;min-width:0!important;height:38px!important;flex:none!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;position:static!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .cardtools .tiny svg{width:17px!important;height:17px!important;max-width:100%!important}
 #bonfire-native-root #cards.cards:not(.list) .promptcard .prompt-delete{margin:0!important}
}
/* The tag editor is a sibling modal in the document; do not let parent/root stacking hide it. */
#tagEditModal.modalback{position:fixed!important;inset:0!important;z-index:2147483000!important;display:none;align-items:center!important;justify-content:center!important;visibility:visible!important;pointer-events:auto!important;opacity:1!important}
#tagEditModal.modalback.open{display:flex!important;pointer-events:auto!important;visibility:visible!important;opacity:1!important}
#tagEditModal.modal{pointer-events:auto!important}
#tagEditModal .modal{position:relative!important;z-index:1!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;overscroll-behavior:contain!important}
@media(max-width:640px){#tagEditModal.modalback{padding:12px!important}#tagEditModal .modal{width:100%!important;max-height:calc(100dvh - 24px)!important;padding:18px!important}}



/* ===== Extracted style block 39; original id=none ===== */

#bonfire-native-root #tagEditModal{position:fixed!important;inset:0!important;z-index:2147483000!important;display:none;align-items:center;justify-content:center;visibility:visible;opacity:1;pointer-events:auto;padding:12px!important;background:rgba(20,24,35,.48)!important}
#bonfire-native-root #tagEditModal.open{display:flex!important}
#bonfire-native-root #tagEditModal .modal{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;max-height:calc(100dvh - 24px);overflow:auto;width:min(760px,100%)}



/* ===== Extracted style block 40; original id=v63-tags-settings-location-fix ===== */

#bonfire-native-root #manageTagsBtn{display:none!important;visibility:hidden!important;pointer-events:none!important}
#bonfire-native-root #settingsModal{display:none}
#bonfire-native-root #settingsModal.open{display:flex!important;visibility:visible!important;pointer-events:auto!important}
#bonfire-native-root #settingsModal.open .modal{display:block!important;visibility:visible!important}
#bonfire-native-root .settings-tag-actions{display:flex!important;gap:8px;margin-top:8px}
#bonfire-native-root .settings-tag-actions button{flex:1;min-width:0;margin-top:0}



/* ===== Extracted style block 41; original id=focusflow-v25-prompt-tag-home-colors ===== */

/* Prompt library tag filters: reuse the exact Home-page palette and neumorphic states. */
#bonfirePage #bonfire-native-root #tagRow .tag,
#bonfirePage #bonfire-native-root .tagrow-wrap #tagRow button {
  background: var(--panel) !important;
  color: var(--ink) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  box-shadow: var(--raise-sm) !important;
  padding: 9px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag > i,
#bonfirePage #bonfire-native-root #tagRow .tag > svg,
#bonfirePage #bonfire-native-root #tagRow .tag > span > i,
#bonfirePage #bonfire-native-root #tagRow .tag > span > svg {
  color: var(--cat, var(--tag-color, var(--muted))) !important;
  stroke: currentColor !important;
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 7px !important;
  margin-inline-start: 2px !important;
  border-radius: 999px !important;
  background: var(--blue-soft) !important;
  color: var(--blue) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag.active,
#bonfirePage #bonfire-native-root #tagRow .tag[aria-pressed="true"] {
  background: var(--panel) !important;
  color: var(--blue) !important;
  border-color: transparent !important;
  box-shadow: var(--inset) !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag.active > i,
#bonfirePage #bonfire-native-root #tagRow .tag.active > svg,
#bonfirePage #bonfire-native-root #tagRow .tag[aria-pressed="true"] > i,
#bonfirePage #bonfire-native-root #tagRow .tag[aria-pressed="true"] > svg {
  color: var(--blue) !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag:hover:not(.active):not([aria-pressed="true"]) {
  transform: translateY(-1px) !important;
  box-shadow: var(--raise-sm) !important;
  filter: brightness(1.015);
}
#bonfirePage #bonfire-native-root #tagRow .tag:active { box-shadow: var(--inset) !important; }
#bonfirePage #bonfire-native-root #tagRow .tag:focus-visible {
  outline: 2px solid var(--blue) !important;
  outline-offset: 3px !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag.addtag {
  color: var(--ink) !important;
  border: 1px dashed var(--line) !important;
  box-shadow: none !important;
}
#bonfirePage #bonfire-native-root #tagRow .tag.addtag > i,
#bonfirePage #bonfire-native-root #tagRow .tag.addtag > svg { color: var(--blue) !important; }
@media (max-width: 620px) {
  #bonfirePage #bonfire-native-root #tagRow .tag { padding: 9px 12px !important; gap: 7px !important; }
}



/* ===== Extracted style block 42; original id=v53-home-wireframe ===== */

.topbar .topbar-actions{gap:8px}
#homePage .home-board{min-width:0}
#homePage .day-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px}
#homePage .day-head h1{font-size:clamp(25px,4vw,34px);letter-spacing:-.035em;font-weight:850}
#homePage .strip#dateStrip{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 2px 10px;scrollbar-width:none}
#homePage .strip#dateStrip::-webkit-scrollbar{display:none}
#homePage .tag-rail{margin:5px 0 16px}
#homePage .task-list{display:flex;flex-direction:column;gap:10px}
#homePage .task-list .task{border-radius:17px}
#homePage .task-list .task{padding:14px 16px}
#homePage .task-list .check{width:24px;height:24px;min-width:24px}
#homePage .empty{min-height:230px;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px 20px}
#homePage .empty img{max-width:130px;max-height:100px;object-fit:contain}
#timerBtn{position:relative}
#timerBtn .badge-dot{position:absolute;inset-block-start:5px;inset-inline-end:5px}
@media(max-width:767px){
  .topbar .topbar-actions{gap:6px}
  #homePage .day-head{margin-top:2px;margin-bottom:12px}
  #homePage .strip#dateStrip{margin-inline:-2px}
  #homePage .task-list{gap:9px}
  #homePage .task-list .task{padding:13px 12px}
  #homePage .empty{min-height:210px;margin-top:12px}
}
@media(min-width:1024px){#homePage .home-board{max-width:100%;} }



/* ===== Extracted style block 43; original id=v54-language-header-order ===== */

.topbar{display:flex;align-items:center;direction:rtl;gap:10px}
.topbar #menuBtn{position:relative;inset:auto;top:auto;transform:none;flex:none;order:4}
.topbar .brand{display:flex;align-items:center;flex:none;order:1;gap:7px}
.topbar .brand span{order:1}
.topbar .brand svg{order:2;flex:none}
.topbar .desktop-search{order:2;margin-inline-start:0;margin-inline-end:auto}
.topbar .topbar-actions{display:flex;align-items:center;order:3;margin-inline-start:0;flex:none}
html[lang="fa"] .topbar #menuBtn{order:1}
html[lang="fa"] .topbar .topbar-actions{order:2;margin-inline-start:0;margin-inline-end:0}
html[lang="fa"] .topbar .brand{order:3}
html[lang="fa"] .topbar .brand span{order:1}
html[lang="fa"] .topbar .brand svg{order:2}
html[lang="en"] .topbar .brand{order:1}
html[lang="en"] .topbar .brand span{order:1}
html[lang="en"] .topbar .brand svg{order:2}
html[lang="en"] .topbar .topbar-actions{order:2}
html[lang="en"] .topbar #menuBtn{order:3}
@media(min-width:1024px){
 .topbar{padding-inline-end:0}
 .topbar #menuBtn{position:relative;inset:auto;top:auto;transform:none}
 .topbar .desktop-search{flex:0 1 360px;min-width:180px;margin:0}
 html[lang="fa"] .topbar .desktop-search{order:2;margin-inline-start:0;margin-inline-end:auto}
 html[lang="en"] .topbar .desktop-search{order:2;margin-inline-start:0;margin-inline-end:auto}
}
@media(max-width:1023px){.topbar .desktop-search{display:none}}



/* ===== Extracted style block 44; original id=v55-header-two-groups ===== */

.topbar{justify-content:flex-start!important;gap:10px!important}
.topbar .brand{flex:none!important;margin:0!important;white-space:nowrap}
.topbar .desktop-search{flex:0 1 300px!important;min-width:140px;margin:0!important}
.topbar .topbar-actions{flex:none!important;margin:0!important}
html[lang="fa"] .topbar .brand{margin-inline-start:auto!important}
html[lang="en"] .topbar .brand{margin-inline-end:auto!important}
@media(max-width:1023px){
  .topbar .desktop-search{display:none!important}
  .topbar{gap:8px!important}
  html[lang="fa"] .topbar .brand{margin-inline-start:auto!important}
  html[lang="en"] .topbar .brand{margin-inline-end:auto!important}
}



/* ===== Extracted style block 45; original id=focusflow-v38-desktop-reference-pages ===== */

/* v38: desktop reference layouts for Home, Progress, Planner and Finance.
   Everything in this block is scoped to desktop widths; phone layouts remain unchanged. */
@media (min-width: 1024px) {
  :root { --ff-desktop-rail-width: clamp(84px, 5.3vw, 100px); }

  /* Keep the workspace centered while reserving a real gutter for the side rail. */
  body > .app {
    width: 100% !important;
    max-width: 1620px !important;
    margin-inline: auto !important;
    padding-top: 26px !important;
    padding-bottom: 48px !important;
    box-sizing: border-box !important;
  }
  html[dir="rtl"] body > .app {
    padding-left: 28px !important;
    padding-right: clamp(116px, calc(20vw - 139px), 270px) !important;
  }
  html[dir="ltr"] body > .app {
    padding-left: clamp(116px, calc(20vw - 139px), 270px) !important;
    padding-right: 28px !important;
  }
  body > .app > .page { width: 100% !important; min-width: 0 !important; max-width: none !important; }
  body > .app > .topbar { width: 100%; margin-bottom: 22px !important; }
  body > .app .desktop-search { width: min(520px, 100%); }

  /* Right-to-left or left-to-right vertical desktop navigation, including Bonfire. */
  body .bottomnav {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    width: var(--ff-desktop-rail-width) !important;
    max-width: 100px !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 10px 8px !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 1px solid var(--line) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb, var(--panel) 94%, transparent) !important;
    box-shadow: var(--raise-sm) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 1000 !important;
  }
  html[dir="rtl"] body .bottomnav {
    right: max(14px, calc((100vw - 1580px) / 2 - 8px)) !important;
  }
  html[dir="ltr"] body .bottomnav {
    left: max(14px, calc((100vw - 1580px) / 2 - 8px)) !important;
  }
  body .bottomnav .navbtn {
    order: 0 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 6px 2px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 14px !important;
    white-space: normal !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
  }
  body .bottomnav .navbtn svg.ic { width: 21px !important; height: 21px !important; }
  body .bottomnav .navbtn span {
    display: block !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }
  body .bottomnav .navbtn[data-page="home"] { order: 1 !important; }
  body .bottomnav .navbtn[data-page="calendar"] { order: 2 !important; }
  body .bottomnav .navbtn[data-page="progress"] { order: 3 !important; }
  body .bottomnav .navbtn.music-top-link { order: 4 !important; display: flex !important; }
  body .bottomnav .navbtn.bonfire-top-link { order: 5 !important; display: flex !important; }
  body .bottomnav .navbtn.planner-top-link { order: 6 !important; display: flex !important; }
  body .bottomnav .navbtn[data-page="finance"] { order: 7 !important; }
  body .bottomnav .navbtn.active { color: var(--blue) !important; background: var(--blue-soft) !important; }
  body .bottomnav .fab {
    order: 8 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    height: auto !important;
    margin: 3px 0 0 !important;
    padding: 8px 3px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    border-radius: 16px !important;
    white-space: normal !important;
    transform: none !important;
  }
  body .bottomnav .fab svg.ic { width: 22px !important; height: 22px !important; }
  body .bottomnav .fab .desktop-nav-label {
    display: block !important;
    max-width: 100% !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body .bottomnav .fab .desktop-nav-key { display: none !important; }

  /* HOME: compact date strip and category rail, centered empty state, summary cards beside tasks. */
  #homePage.active {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 22px !important;
    align-items: start !important;
    direction: ltr !important;
    box-sizing: border-box !important;
  }
  html[dir="rtl"] #homePage.active {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px) !important;
    grid-template-areas: "board summary" !important;
  }
  html[dir="ltr"] #homePage.active {
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr) !important;
    grid-template-areas: "summary board" !important;
  }
  #homePage > .home-board {
    grid-area: board !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  html[dir="rtl"] #homePage > .home-board { direction: rtl !important; }
  html[dir="ltr"] #homePage > .home-board { direction: ltr !important; }
  #homePage > #desktopHomeSummary {
    grid-area: summary !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    justify-self: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 3px 0 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: start !important;
  }
  html[dir="rtl"] #homePage > #desktopHomeSummary { direction: rtl !important; text-align: right !important; }
  html[dir="ltr"] #homePage > #desktopHomeSummary { direction: ltr !important; text-align: left !important; }
  #homePage .day-head { min-height: 26px !important; margin: 0 2px 5px !important; }
  #homePage .day-head h1 { font-size: 15px !important; line-height: 1.35 !important; letter-spacing: 0 !important; font-weight: 800 !important; }
  #homePage .day-head h1 span { font-size: 12px !important; }
  #homePage #dateStrip { gap: 7px !important; padding: 7px 3px 11px !important; }
  #homePage #dateStrip .day { min-width: 44px !important; min-height: 45px !important; padding: 5px 5px 4px !important; }
  #homePage .tag-rail { margin: 0 0 10px !important; gap: 0 !important; }
  #homePage #tagStrip { gap: 9px !important; padding: 8px 4px 11px !important; }
  #homePage #tagStrip .tag { padding: 9px 14px !important; }
  #homePage .task-list { gap: 11px !important; margin-top: 4px !important; }
  #homePage .task-list .task { border-radius: 16px !important; }
  #homePage .empty:not([hidden]) {
    display: flex !important;
    width: 100% !important;
    max-width: 570px !important;
    min-height: 360px !important;
    margin: 8px auto 0 !important;
    padding: 18px 20px 24px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    border-radius: 24px !important;
  }
  #homePage .empty img { width: min(235px, 58%) !important; max-width: 235px !important; max-height: 178px !important; object-fit: contain !important; margin: 0 0 10px !important; }
  #homePage .empty h2 { margin: 0 0 5px !important; font-size: 17px !important; }
  #homePage .empty p { max-width: 310px !important; font-size: 13px !important; line-height: 1.7 !important; }
  #homePage .empty .primary { width: auto !important; min-height: 46px !important; margin-top: 16px !important; padding: 11px 22px !important; }
  #desktopHomeSummary > .goal-card,
  #desktopHomeSummary > .today-card {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px !important;
    border-radius: 24px !important;
    overflow: visible !important;
  }
  #desktopHomeSummary > .goal-card { grid-template-columns: 40px minmax(0, 1fr) !important; gap: 10px 13px !important; align-items: start !important; }
  #desktopHomeSummary > .goal-card h2 { font-size: 20px !important; line-height: 1.45 !important; margin: 4px 0 7px !important; overflow-wrap: anywhere !important; }
  #desktopHomeSummary > .goal-card p { font-size: 12.5px !important; line-height: 1.8 !important; margin: 0 !important; }
  #desktopHomeSummary > .goal-card .linkbtn { grid-column: 2 !important; justify-self: start !important; margin-top: 7px !important; }
  #desktopHomeSummary > .today-card { grid-template-columns: minmax(0, 1fr) !important; justify-items: stretch !important; gap: 15px !important; }
  #desktopHomeSummary .today-ring { width: 90px !important; height: 90px !important; justify-self: center !important; }
  #desktopHomeSummary .today-ring b { width: 73px !important; height: 73px !important; font-size: 17px !important; }
  #desktopHomeSummary .today-card h3 { font-size: 17px !important; margin: 0 0 3px !important; }
  #desktopHomeSummary .today-card p { font-size: 12px !important; line-height: 1.65 !important; margin: 0 0 9px !important; }
  #desktopHomeSummary .today-bar { width: 100% !important; height: 7px !important; }

  /* PROGRESS: four top metrics, chart/category side-by-side, activity map in a full-width row. */
  #progressPage.active {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    min-width: 0 !important;
  }
  #progressPage > .section-title { grid-column: 1 / -1 !important; margin: 0 2px 2px !important; }
  #progressPage > .today-card, #progressPage > .goal-card { display: none !important; }
  #progressPage > .stats-top { display: contents !important; }
  #progressPage .metrics { display: contents !important; }
  #progressPage .progress-ring-wrap {
    display: flex !important;
    grid-column: span 3 !important;
    order: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 13px !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 15px !important;
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    background: var(--panel) !important;
    box-shadow: var(--raise-sm) !important;
  }
  #progressPage .ring { flex: 0 0 auto !important; width: 76px !important; height: 76px !important; }
  #progressPage .ring-inner { width: 62px !important; height: 62px !important; box-shadow: none !important; }
  #progressPage .ring-inner strong { font-size: 21px !important; }
  #progressPage .ring-inner span { display: none !important; }
  #progressPage .progress-caption { display: block !important; min-width: 0 !important; }
  #progressPage .progress-caption strong { display: block !important; font-size: 12.5px !important; line-height: 1.45 !important; }
  #progressPage .progress-caption small { display: block !important; margin-top: 3px !important; font-size: 10.5px !important; color: var(--muted) !important; }
  #progressPage .metric {
    grid-column: span 3 !important;
    order: 1 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 2px 12px !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: start !important;
    min-width: 0 !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 18px !important;
    text-align: start !important;
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    background: var(--panel) !important;
    box-shadow: var(--raise-sm) !important;
  }
  #progressPage .metric .mi { grid-row: 1 / 3 !important; width: 42px !important; height: 42px !important; border-radius: 13px !important; }
  #progressPage .metric-label { display: block !important; min-width: 0 !important; font-size: 12px !important; line-height: 1.35 !important; color: var(--muted) !important; }
  #progressPage .metric b { grid-column: 2 !important; font-size: clamp(22px, 1.8vw, 28px) !important; line-height: 1.2 !important; }
  #progressPage > .focus-chart { grid-column: span 7 !important; order: 2 !important; min-width: 0 !important; min-height: 320px !important; margin: 0 !important; padding: 22px !important; border: 1px solid var(--line) !important; border-radius: 25px !important; }
  #progressPage > .category-card { grid-column: span 5 !important; order: 2 !important; min-width: 0 !important; min-height: 320px !important; margin: 0 !important; padding: 22px !important; border: 1px solid var(--line) !important; border-radius: 25px !important; }
  #progressPage .focus-chart .card-title, #progressPage .category-card .card-title { margin-bottom: 18px !important; font-size: 16px !important; }
  #progressPage .focus-chart svg { width: 100% !important; max-height: 215px !important; }
  #progressPage .chart-note { margin-top: 8px !important; font-size: 11px !important; }
  #progressPage .cat-stats { max-height: 235px !important; overflow: auto !important; gap: 12px !important; padding: 2px 6px 4px 0 !important; scrollbar-width: thin !important; }
  #progressPage > .activity-card {
    grid-column: 1 / -1 !important;
    order: 3 !important;
    display: grid !important;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 10px 24px !important;
    min-width: 0 !important;
    min-height: 230px !important;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid var(--line) !important;
    border-radius: 25px !important;
  }
  #progressPage .activity-card .card-title { grid-column: 1 !important; grid-row: 1 !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 7px !important; margin: 0 !important; }
  #progressPage .activity-card .heat-legend { grid-column: 1 !important; grid-row: 2 !important; justify-content: flex-start !important; align-self: start !important; margin: 0 !important; flex-wrap: wrap !important; }
  #progressPage .activity-card .heatmap-wrap { grid-column: 2 !important; grid-row: 1 / 3 !important; align-self: center !important; justify-self: start !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 4px 0 !important; overflow-x: auto !important; }
  #progressPage .activity-card .heatmap { width: max-content !important; max-width: none !important; grid-template-rows: 14px repeat(7, 20px) !important; grid-auto-columns: 20px !important; gap: 3px !important; }
  #progressPage .activity-card .hm-cell { width: 20px !important; min-width: 0 !important; height: 20px !important; aspect-ratio: 1 / 1 !important; border-radius: 3px !important; }

  /* PLANNER: title and controls on the inline-start side, full-width task table, RTL-aware columns. */
  #plannerPage.active { display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; }
  #plannerPage .pl-workspace-head { align-items: flex-start !important; justify-content: space-between !important; gap: 16px !important; margin: 0 2px 22px !important; }
  #plannerPage .pl-workspace-head > div { min-width: 0 !important; }
  #plannerPage .pl-workspace-head h1 { font-size: 24px !important; line-height: 1.3 !important; letter-spacing: -.02em !important; }
  #plannerPage .pl-workspace-head p { margin-top: 5px !important; font-size: 12px !important; line-height: 1.7 !important; }
  #plannerPage .pl-workspace-head .planner-independent { flex: 0 0 auto !important; margin-inline-start: auto !important; margin-top: 2px !important; padding: 5px 10px !important; border-radius: 999px !important; font-size: 10px !important; }
  #plannerPage .pl-projectbar { align-items: center !important; flex-wrap: nowrap !important; gap: 10px !important; margin-bottom: 19px !important; }
  #plannerPage .pl-projectbar label { flex: 0 1 330px !important; min-width: 210px !important; gap: 8px !important; font-size: 12px !important; }
  #plannerPage .pl-projectbar select { width: 100% !important; max-width: none !important; height: 40px !important; border-radius: 10px !important; padding: 6px 12px !important; font-size: 12px !important; }
  #plannerPage .pl-projectbar > button { min-height: 40px !important; padding: 8px 13px !important; border-radius: 10px !important; font-size: 12px !important; white-space: nowrap !important; }
  #plannerPage .pl-projectbar > button svg.ic { width: 16px !important; height: 16px !important; }
  #plannerPage .pl-viewbar { align-items: stretch !important; justify-content: space-between !important; gap: 16px !important; min-height: 48px !important; margin-bottom: 20px !important; border-bottom: 1px solid var(--line) !important; }
  #plannerPage .pl-view-tabs { gap: clamp(18px, 2vw, 34px) !important; }
  #plannerPage .pl-view-tabs button { min-height: 46px !important; padding: 10px 0 12px !important; border-radius: 0 !important; font-size: 13px !important; }
  #plannerPage .pl-view-tabs button[aria-selected="true"]::after { height: 3px !important; border-radius: 4px 4px 0 0 !important; }
  #plannerPage .pl-viewbar > .primary { min-height: 39px !important; margin: 0 0 8px !important; padding: 8px 14px !important; border-radius: 10px !important; font-size: 12px !important; }
  #plannerPage .pl-table-tools { min-height: 43px !important; padding: 7px 2px 12px !important; font-size: 11px !important; }
  #plannerPage .pl-list-scroll { width: 100% !important; max-width: 100% !important; overflow-x: auto !important; border: 1px solid var(--pl-line) !important; border-radius: 9px !important; background: var(--panel) !important; }
  #plannerPage .pl-list-table { width: 100% !important; min-width: 900px !important; table-layout: fixed !important; border-collapse: collapse !important; font-size: 12px !important; }
  #plannerPage .pl-list-table th { height: 46px !important; padding: 0 !important; background: color-mix(in srgb, var(--blue) 9%, var(--panel-2)) !important; }
  #plannerPage .pl-list-table th button { align-items: center !important; justify-content: space-between !important; gap: 8px !important; min-height: 46px !important; padding: 10px 12px !important; font-size: 11px !important; text-align: start !important; white-space: normal !important; }
  #plannerPage .pl-list-table td { padding: 15px 11px !important; line-height: 1.55 !important; vertical-align: middle !important; overflow-wrap: anywhere !important; }
  #plannerPage .pl-list-table tbody tr { min-height: 70px !important; }
  #plannerPage .pl-list-table tbody tr:hover { background: color-mix(in srgb, var(--blue) 3%, var(--panel)) !important; }
  #plannerPage .pl-list-table th:nth-child(1), #plannerPage .pl-list-table td:nth-child(1) { width: 3.5% !important; }
  #plannerPage .pl-list-table th:nth-child(2), #plannerPage .pl-list-table td:nth-child(2) { width: 21% !important; }
  #plannerPage .pl-list-table th:nth-child(3), #plannerPage .pl-list-table td:nth-child(3) { width: 9.5% !important; }
  #plannerPage .pl-list-table th:nth-child(4), #plannerPage .pl-list-table td:nth-child(4) { width: 10.5% !important; }
  #plannerPage .pl-list-table th:nth-child(5), #plannerPage .pl-list-table td:nth-child(5) { width: 9% !important; }
  #plannerPage .pl-list-table th:nth-child(6), #plannerPage .pl-list-table td:nth-child(6) { width: 12% !important; }
  #plannerPage .pl-list-table th:nth-child(7), #plannerPage .pl-list-table td:nth-child(7) { width: 22% !important; }
  #plannerPage .pl-list-table th:nth-child(8), #plannerPage .pl-list-table td:nth-child(8) { width: 12.5% !important; }
  #plannerPage .pl-list-title { min-width: 0 !important; max-width: none !important; align-items: flex-start !important; text-align: start !important; }
  #plannerPage .pl-list-title strong { font-size: 12px !important; line-height: 1.55 !important; }
  #plannerPage .pl-list-check { text-align: center !important; }
  #plannerPage .pl-list-actions { justify-content: flex-start !important; gap: 5px !important; }
  #plannerPage .pl-list-actions button { width: 29px !important; height: 29px !important; border-radius: 7px !important; }
  #plannerPage #plannerTableAdd { padding: 14px 16px !important; font-size: 12px !important; text-align: start !important; }

  /* FINANCE: income banner, two-by-two financial summaries, large breakdown and transaction list. */
  #financePage.active { display: block !important; width: 100% !important; max-width: 1160px !important; min-width: 0 !important; margin-inline: auto !important; }
  #financePage > .section-title { margin: 0 2px 12px !important; }
  #financePage > .section-title h1 { font-size: 24px !important; font-weight: 850 !important; }
  #financePage > .settings-intro { margin: 0 2px 19px !important; max-width: 100% !important; font-size: 13px !important; line-height: 1.9 !important; }
  #financePage .finance-income-strip { min-height: 78px !important; padding: 16px 20px !important; margin: 0 0 15px !important; border-radius: 17px !important; gap: 16px !important; }
  #financePage .finance-income-strip small { font-size: 11px !important; }
  #financePage .finance-income-strip strong { margin-top: 4px !important; font-size: 17px !important; line-height: 1.5 !important; word-break: normal !important; }
  #financePage .finance-income-strip .secondary { min-height: 40px !important; padding: 9px 14px !important; border-radius: 999px !important; font-size: 12px !important; }
  #financePage .finance-overview { display: grid !important; grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr) !important; align-items: stretch !important; gap: 16px !important; margin: 0 0 16px !important; }
  #financePage .finance-overview .finance-summary { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: minmax(86px, auto) !important; align-content: start !important; align-items: stretch !important; gap: 10px !important; max-width: none !important; width: 100% !important; margin: 0 !important; }
  #financePage .finance-overview .finance-stat { display: flex !important; flex-direction: column !important; justify-content: center !important; min-width: 0 !important; min-height: 86px !important; padding: 15px 16px !important; border-radius: 18px !important; }
  #financePage .finance-stat small { font-size: 10.5px !important; line-height: 1.5 !important; margin-bottom: 6px !important; }
  #financePage .finance-stat strong { font-size: clamp(14px, 1.15vw, 18px) !important; line-height: 1.45 !important; overflow-wrap: anywhere !important; word-break: normal !important; }
  #financePage .finance-pie-card { display: flex !important; flex-direction: column !important; min-width: 0 !important; padding: 20px !important; border-radius: 20px !important; }
  #financePage .finance-pie-card h2 { margin-bottom: 14px !important; font-size: 15px !important; }
  #financePage .finance-pie-layout { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) !important; gap: 18px !important; flex: 1 !important; }
  #financePage .finance-pie-chart { width: min(100%, 210px) !important; max-width: 210px !important; }
  #financePage .finance-pie-legend { gap: 9px !important; }
  #financePage .finance-pie-legend-row { grid-template-columns: 10px minmax(60px, 1fr) auto !important; gap: 7px !important; font-size: 11px !important; }
  #financePage .finance-pie-legend-row strong { font-size: 11px !important; }
  #financePage .finance-pie-legend-row small { font-size: 10px !important; }
  #financePage .finance-toolbar { max-width: none !important; margin: 12px 2px 12px !important; gap: 12px !important; }
  #financePage .finance-toolbar h2 { font-size: 17px !important; }
  #financePage .finance-toolbar .primary { min-height: 42px !important; padding: 9px 15px !important; border-radius: 13px !important; font-size: 12px !important; }
  #financePage .finance-list { width: 100% !important; max-width: none !important; display: flex !important; flex-direction: column !important; gap: 11px !important; }
  #financePage .finance-row { min-width: 0 !important; padding: 15px 17px !important; border-radius: 17px !important; }
}

@media (min-width: 1024px) and (max-width: 1240px) {
  body > .app { padding-top: 20px !important; }
  #homePage.active { gap: 16px !important; }
  html[dir="rtl"] #homePage.active { grid-template-columns: minmax(0, 1fr) minmax(260px, 290px) !important; }
  html[dir="ltr"] #homePage.active { grid-template-columns: minmax(260px, 290px) minmax(0, 1fr) !important; }
  #homePage > #desktopHomeSummary { gap: 15px !important; }
  #desktopHomeSummary > .goal-card, #desktopHomeSummary > .today-card { padding: 18px !important; }
  #progressPage.active { gap: 12px !important; }
  #progressPage .progress-ring-wrap, #progressPage .metric { padding: 12px !important; }
  #progressPage .progress-ring-wrap { gap: 7px !important; }
  #progressPage .ring { width: 64px !important; height: 64px !important; }
  #progressPage .ring-inner { width: 52px !important; height: 52px !important; }
  #progressPage .ring-inner strong { font-size: 17px !important; }
  #progressPage .progress-caption strong { font-size: 11px !important; }
  #progressPage .progress-caption small { font-size: 9px !important; }
  #progressPage .metric { grid-template-columns: 32px minmax(0,1fr) !important; gap: 3px 7px !important; }
  #progressPage .metric .mi { width: 32px !important; height: 32px !important; }
  #financePage .finance-overview { grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr) !important; }
  #financePage .finance-pie-layout { grid-template-columns: minmax(125px, 165px) minmax(0,1fr) !important; gap: 10px !important; }
  #financePage .finance-pie-chart { max-width: 165px !important; }
  #financePage .finance-overview .finance-stat { padding: 12px !important; }
  #financePage .finance-stat strong { font-size: clamp(12px, 1.2vw, 16px) !important; }
  #plannerPage .pl-projectbar { gap: 7px !important; }
  #plannerPage .pl-projectbar label { flex-basis: 270px !important; }
  #plannerPage .pl-view-tabs { gap: 16px !important; }
}



/* ===== Extracted style block 46; original id=focusflow-v40-final-desktop-overrides ===== */

@media (min-width: 1024px) {
  /* Planner: fit every column, including Actions, in the available desktop width. */
  #plannerPage .pl-list-scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
  }
  #plannerPage .pl-list-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: clamp(10px, .78vw, 12px) !important;
  }
  #plannerPage .pl-list-table th,
  #plannerPage .pl-list-table td {
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
  #plannerPage .pl-list-table th:nth-child(1),
  #plannerPage .pl-list-table td:nth-child(1) { width: 4% !important; }
  #plannerPage .pl-list-table th:nth-child(2),
  #plannerPage .pl-list-table td:nth-child(2) { width: 18% !important; }
  #plannerPage .pl-list-table th:nth-child(3),
  #plannerPage .pl-list-table td:nth-child(3) { width: 10% !important; }
  #plannerPage .pl-list-table th:nth-child(4),
  #plannerPage .pl-list-table td:nth-child(4) { width: 12% !important; }
  #plannerPage .pl-list-table th:nth-child(5),
  #plannerPage .pl-list-table td:nth-child(5) { width: 9% !important; }
  #plannerPage .pl-list-table th:nth-child(6),
  #plannerPage .pl-list-table td:nth-child(6) { width: 13% !important; }
  #plannerPage .pl-list-table th:nth-child(7),
  #plannerPage .pl-list-table td:nth-child(7) { width: 18% !important; }
  #plannerPage .pl-list-table th:nth-child(8),
  #plannerPage .pl-list-table td:nth-child(8) { width: 16% !important; }
  #plannerPage .pl-list-table th button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 7px 5px !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: start !important;
    font-size: inherit !important;
  }
  #plannerPage .pl-list-table td { padding: 11px 7px !important; }
  #plannerPage .pl-list-title { width: 100% !important; min-width: 0 !important; white-space: normal !important; }
  #plannerPage .pl-list-title strong { white-space: normal !important; overflow-wrap: anywhere !important; }
  #plannerPage .pl-list-date { white-space: normal !important; }
  #plannerPage .pl-table-subtasks { width: 100% !important; min-width: 0 !important; }
  #plannerPage .pl-table-subtask { min-width: 0 !important; }
  #plannerPage .pl-list-actions {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(3px, .45vw, 7px) !important;
  }
  #plannerPage .pl-list-actions button {
    display: inline-grid !important;
    flex: 0 0 clamp(24px, 2.1vw, 32px) !important;
    width: clamp(24px, 2.1vw, 32px) !important;
    min-width: 0 !important;
    height: clamp(24px, 2.1vw, 32px) !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    place-items: center !important;
  }
  #plannerPage .pl-list-actions svg.ic { width: 15px !important; height: 15px !important; }
  #plannerPage .pl-table-scroll-hint { display: none !important; }
  html[dir="rtl"] #plannerPage .pl-list-table { direction: rtl !important; }
  html[dir="ltr"] #plannerPage .pl-list-table { direction: ltr !important; }

  /* Keep the app's own Add action at the end of the desktop rail. */
  body nav.bottomnav[aria-label="Main navigation"] .fab#addBtn {
    order: 8 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    margin: 4px 0 0 !important;
    padding: 8px 4px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  body nav.bottomnav[aria-label="Main navigation"] .fab#addBtn .desktop-nav-label {
    display: block !important;
    max-width: 100% !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
    overflow-wrap: anywhere !important;
  }
  body nav.bottomnav[aria-label="Main navigation"] .fab#addBtn .desktop-nav-key { display: none !important; }

  /* Bonfire: a real desktop prompt library, not a narrow mobile shell in a blank page. */
  #bonfirePage.active { display: block !important; width: 100% !important; min-width: 0 !important; }
  #bonfirePage #bonfire-native-root {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 60vh !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #bonfirePage #bonfire-native-root > .app {
    display: block !important;
    width: 100% !important;
    max-width: 1480px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 24px 18px 42px !important;
    overflow: visible !important;
  }
  #bonfirePage #bonfire-native-root .top {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 0 22px !important;
  }
  #bonfirePage #bonfire-native-root .brand,
  #bonfirePage #bonfire-native-root .actions { display: flex !important; visibility: visible !important; opacity: 1 !important; min-width: 0 !important; }
  #bonfirePage #bonfire-native-root .actions { flex-wrap: wrap !important; align-items: center !important; gap: 9px !important; }
  #bonfirePage #bonfire-native-root .top .top-add-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #bonfirePage #bonfire-native-root .tag-section-head,
  #bonfirePage #bonfire-native-root .tagrow-wrap,
  #bonfirePage #bonfire-native-root .sectionhead { display: flex !important; visibility: visible !important; opacity: 1 !important; }
  #bonfirePage #bonfire-native-root .tagrow-wrap { width: 100% !important; align-items: center !important; gap: 12px !important; }
  #bonfirePage #bonfire-native-root .tagrow-wrap #tagRow { flex: 1 1 auto !important; min-width: 0 !important; }
  #bonfirePage #bonfire-native-root .sectionhead:not(.tag-section-head) {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 20px 0 14px !important;
  }
  #bonfirePage #bonfire-native-root #cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 220px !important;
  }
  #bonfirePage #bonfire-native-root #cards > * { min-width: 0 !important; max-width: 100% !important; }
  #bonfirePage #bonfire-native-root #cards > .empty {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 220px !important;
    padding: 42px 22px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #bonfirePage #bonfire-native-root .bottomnav { display: none !important; }
  #bonfirePage #bonfire-native-root .fab { display: none !important; }

  /* RTL/LTR: let every desktop page align controls to the selected language. */
  html[dir="rtl"] #homePage,
  html[dir="rtl"] #progressPage,
  html[dir="rtl"] #plannerPage,
  html[dir="rtl"] #financePage,
  html[dir="rtl"] #bonfirePage #bonfire-native-root { direction: rtl !important; }
  html[dir="ltr"] #homePage,
  html[dir="ltr"] #progressPage,
  html[dir="ltr"] #plannerPage,
  html[dir="ltr"] #financePage,
  html[dir="ltr"] #bonfirePage #bonfire-native-root { direction: ltr !important; }
  #plannerPage .pl-workspace-head,
  #plannerPage .pl-projectbar,
  #plannerPage .pl-viewbar,
  #plannerPage .pl-table-tools,
  #financePage .finance-toolbar,
  #financePage .finance-income-strip { text-align: start !important; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  #bonfirePage #bonfire-native-root #cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
  #plannerPage .pl-list-table th button { padding-inline: 4px !important; font-size: 10px !important; }
  #plannerPage .pl-list-table td { padding-inline: 5px !important; }
  #plannerPage .pl-list-actions button { flex-basis: 24px !important; width: 24px !important; height: 24px !important; }
}



/* ===== Extracted style block 47; original id=focusflow-v41-desktop-polish ===== */

@media (min-width:1024px){
  /* The hamburger and its open menu must sit above the fixed navigation rail. */
  #menuBtn{position:relative!important;z-index:1305!important;isolation:isolate}
  .menu-overlay,.menu-drawer,.menu-panel,.sidebar-menu,.hamburger-menu,.dropdown-menu,
  #menuPanel,#menuDrawer,#sideMenu,#menuOverlay,#mobileMenu,.menu-content{z-index:1300!important}
  body > .app > nav.bottomnav[aria-label="Main navigation"],
  .app > nav.bottomnav[aria-label="Main navigation"]{z-index:1200!important}
  /* Home: right-to-left order is summary cards first, task board second; the rail is farther right. */
  html[dir="rtl"] #homePage.active{direction:ltr!important;grid-template-columns:minmax(0,1fr) minmax(280px,350px)!important;grid-template-areas:"board summary"!important}
  html[dir="ltr"] #homePage.active{direction:ltr!important;grid-template-columns:minmax(280px,350px) minmax(0,1fr)!important;grid-template-areas:"summary board"!important}
  #homePage > #desktopHomeSummary{grid-area:summary!important;position:relative!important;z-index:1!important}
  #homePage > .home-board{grid-area:board!important;position:relative!important;z-index:0!important}
  /* Planner table stays readable; operation controls are centered and never clipped by cell layout. */
  #plannerPage .planner-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;background:var(--panel,#fff)!important;border:1px solid var(--line,rgba(80,60,60,.16))!important;border-radius:14px!important;}
  #plannerPage .pl-list-table{width:100%!important;min-width:0!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;background:var(--panel,#fff)!important}
  #plannerPage .pl-list-table th,#plannerPage .pl-list-table td{vertical-align:middle!important;border-bottom:1px solid var(--line,rgba(80,60,60,.14))!important;background:transparent!important;opacity:1!important}
  #plannerPage .pl-list-table th:last-child,#plannerPage .pl-list-table td:last-child,
  #plannerPage .pl-list-table .pl-list-actions,#plannerPage .pl-list-table td:has(.pl-list-actions){text-align:center!important;vertical-align:middle!important}
  #plannerPage .pl-list-actions{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;margin-inline:auto!important}
  #plannerPage .pl-list-actions button{flex:0 0 30px!important;width:30px!important;height:30px!important;display:inline-grid!important;place-items:center!important;margin:0!important}
  /* Bonfire list is truly full-width, including its image column and actions. */
  #bonfirePage #bonfire-native-root #cards.cards.list{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;max-width:none!important;gap:14px!important}
  #bonfirePage #bonfire-native-root #cards.cards.list>.promptcard{display:grid!important;grid-template-columns:minmax(150px,220px) minmax(0,1fr)!important;align-items:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;gap:16px!important;padding:14px!important}
  #bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover{display:grid!important;width:100%!important;height:100%!important;min-height:150px!important;max-height:220px!important;align-self:stretch!important}
  #bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover img{display:block!important;width:100%!important;height:100%!important;min-height:150px!important;object-fit:cover!important}
  #bonfirePage #bonfire-native-root #cards.cards.list .cardbody{min-width:0!important;display:flex!important;flex-direction:column!important;padding:8px 4px!important}
  #bonfirePage #bonfire-native-root #cards.cards.list .cardfoot{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;margin-top:auto!important}
  #bonfirePage #bonfire-native-root #cards.cards.list .cardtools{display:flex!important;align-items:center!important;gap:7px!important}
  #bonfirePage #bonfire-native-root #cards.cards.list .prompt-delete{color:#c94b62!important;border:1px solid rgba(201,75,98,.22)!important}
  /* Only one sort selector: the custom accessible dropdown controls the hidden native select. */
  #bonfirePage #bonfire-native-root select#sort{display:none!important;visibility:hidden!important;width:0!important;height:0!important;padding:0!important;border:0!important}
  #bonfirePage #bonfire-native-root .sort-wrap{min-width:0!important;flex:1 1 220px!important}
  #bonfirePage #bonfire-native-root #sortToggle{width:100%!important;max-width:100%!important;justify-content:space-between!important}
  #bonfirePage #bonfire-native-root .toolbar{display:flex!important;align-items:center!important;flex-wrap:wrap!important}
}
@media (max-width:1023px){
  /* Keep the existing phone layout unchanged; only expose the new per-prompt delete action. */
  #bonfirePage #bonfire-native-root .prompt-delete{color:#c94b62!important}
}



/* ===== Extracted style block 48; original id=focusflow-v42-bonfire-images-spacing ===== */

/* v42: predictable spacing and one visible sorting control on every viewport. */
#bonfirePage #bonfire-native-root .app{padding:clamp(14px,2vw,24px) clamp(12px,2vw,24px) calc(88px + env(safe-area-inset-bottom))!important}
#bonfirePage #bonfire-native-root .top{gap:clamp(10px,1.5vw,18px)!important;margin-bottom:clamp(16px,2vw,25px)!important;flex-wrap:wrap}
#bonfirePage #bonfire-native-root .actions,#bonfirePage #bonfire-native-root .toolbar{gap:clamp(7px,1vw,12px)!important}
#bonfirePage #bonfire-native-root .hero{margin-bottom:clamp(16px,2vw,24px)!important;padding:clamp(12px,1.6vw,20px)!important}
#bonfirePage #bonfire-native-root .stats{gap:clamp(8px,1.2vw,14px)!important;margin:clamp(14px,1.8vw,20px) 0 clamp(18px,2vw,26px)!important}
#bonfirePage #bonfire-native-root .sectionhead{margin:clamp(18px,2vw,26px) 0 clamp(10px,1.2vw,15px)!important;gap:10px!important}
#bonfirePage #bonfire-native-root .tagrow{gap:clamp(7px,1vw,11px)!important;padding:8px 3px 13px!important}
#bonfirePage #bonfire-native-root #cards{gap:clamp(12px,1.4vw,18px)!important}
#bonfirePage #bonfire-native-root .promptcard{padding:clamp(10px,1.2vw,15px)!important}
#bonfirePage #bonfire-native-root .cardbody{padding:clamp(9px,1vw,13px) 4px 2px!important}
#bonfirePage #bonfire-native-root .cardfoot{gap:9px!important;padding-top:11px!important;margin-top:12px!important}
#bonfirePage #bonfire-native-root .sort-wrap{position:relative!important}
#bonfirePage #bonfire-native-root select#sort{display:none!important;visibility:hidden!important;pointer-events:none!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important}
#bonfirePage #bonfire-native-root #sortMenu{display:none!important}
#bonfirePage #bonfire-native-root #sortMenu:not(.hidden){display:block!important;position:absolute!important;z-index:30!important;top:calc(100% + 7px)!important;inset-inline-end:0!important;min-width:190px!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:6px!important;box-shadow:var(--shadow)!important}
#bonfirePage #bonfire-native-root #sortMenu button{display:block!important;width:100%!important;text-align:start!important;border-radius:9px!important;padding:10px 12px!important;background:transparent!important}
#bonfirePage #bonfire-native-root #sortMenu button:hover,#bonfirePage #bonfire-native-root #sortMenu button[aria-selected="true"]{background:color-mix(in srgb,var(--purple) 24%,var(--surface))!important}
#bonfirePage #bonfire-native-root .cover{overflow:hidden!important;isolation:isolate!important}
#bonfirePage #bonfire-native-root .cover .tag-fallback-art{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;position:absolute!important;inset:0!important;z-index:0!important}
#bonfirePage #bonfire-native-root .cover .covericon{position:relative;z-index:1;text-shadow:0 2px 10px #fff8}
#bonfirePage #bonfire-native-root .list .promptcard{grid-template-columns:clamp(120px,18vw,220px) minmax(0,1fr)!important;gap:clamp(10px,1.5vw,17px)!important}
#bonfirePage #bonfire-native-root .list .cover{min-height:130px!important;height:100%!important;max-height:240px!important}
#bonfirePage #bonfire-native-root .list .cover .tag-fallback-art{min-height:130px!important}
@media(max-width:620px){
 #bonfirePage #bonfire-native-root .app{padding:12px 12px calc(100px + env(safe-area-inset-bottom))!important}
 #bonfirePage #bonfire-native-root .top{margin-bottom:15px!important;gap:9px!important}
 #bonfirePage #bonfire-native-root .stats{gap:9px!important;margin:14px 0 19px!important}
 #bonfirePage #bonfire-native-root .sectionhead{margin:18px 0 10px!important}
 #bonfirePage #bonfire-native-root #cards{gap:12px!important}
 #bonfirePage #bonfire-native-root .promptcard{padding:10px!important}
 #bonfirePage #bonfire-native-root .list .promptcard{grid-template-columns:95px minmax(0,1fr)!important;gap:10px!important}
 #bonfirePage #bonfire-native-root .list .cover{min-height:100px!important;max-height:none!important}
}



/* ===== Extracted style block 49; original id=focusflow-v45-prompt-list-art-fix ===== */

#bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover,
#bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover img,
#bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover .tag-fallback-art{
  display:grid!important;visibility:visible!important;opacity:1!important;min-width:0!important;
}
#bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover{position:relative!important;overflow:hidden!important;min-height:150px!important;border-radius:16px!important;align-self:stretch!important}
#bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
#bonfirePage #bonfire-native-root #cards.cards.list>.promptcard>.cover .covericon{position:relative!important;z-index:1!important}



/* ===== Extracted style block 50; original id=focusflow-v48-remove-prompt-sort-ui-and-localize-view-buttons ===== */

/* The prompt library no longer displays either duplicate sort/filter selector. Keep only Grid and List. */
#bonfirePage #bonfire-native-root .toolbar .sort-wrap,
#bonfirePage #bonfire-native-root #sortToggle,
#bonfirePage #bonfire-native-root #sortMenu,
/* select#sort managed cleanly by custom select shell */
#bonfirePage #bonfire-native-root .toolbar { display:flex!important; align-items:center!important; justify-content:flex-start!important; flex-wrap:nowrap!important; gap:10px!important; width:100%!important; min-width:0!important; }
#bonfirePage #bonfire-native-root .toolbar #gridBtn,
#bonfirePage #bonfire-native-root .toolbar #listBtn { display:inline-flex!important; flex:0 0 auto!important; align-items:center!important; justify-content:center!important; order:initial!important; }
html[dir="rtl"] #bonfirePage #bonfire-native-root .toolbar { direction:rtl!important; }
html[dir="ltr"] #bonfirePage #bonfire-native-root .toolbar { direction:ltr!important; }
@media(max-width:620px){#bonfirePage #bonfire-native-root .toolbar{gap:9px!important;width:auto!important;}}



/* ===== Extracted style block 51; original id=focusflow-v49-language-direction-audit ===== */

/* Consistent logical alignment: never pin text/actions to the wrong physical edge. */
html[dir="rtl"] #bonfire-native-root,
html[dir="rtl"] #bonfire-native-root * { direction: rtl; }
html[dir="ltr"] #bonfire-native-root,
html[dir="ltr"] #bonfire-native-root * { direction: ltr; }
#bonfire-native-root .cardtitle,#bonfire-native-root .excerpt,#bonfire-native-root .date,
#bonfire-native-root .field>label,#bonfire-native-root .hint,#bonfire-native-root .modalhead,
#bonfire-native-root .detailtext { text-align: start; }
#bonfire-native-root .minitag { direction: inherit; }
#bonfire-native-root .minitag svg,#bonfire-native-root .minitag i { flex:0 0 auto; }
html[dir="rtl"] #bonfire-native-root .cards.list>.promptcard { direction:rtl!important; }
html[dir="ltr"] #bonfire-native-root .cards.list>.promptcard { direction:ltr!important; }
html[dir="rtl"] #bonfire-native-root .cards.list>.promptcard>.cover { grid-column:1; }
html[dir="rtl"] #bonfire-native-root .cards.list>.promptcard>.cardbody { grid-column:2; }
html[dir="ltr"] #bonfire-native-root .cards.list>.promptcard>.cover { grid-column:1; }
html[dir="ltr"] #bonfire-native-root .cards.list>.promptcard>.cardbody { grid-column:2; }
html[dir="rtl"] #bonfire-native-root .toolbar { flex-direction:row-reverse!important; justify-content:flex-start!important; }
html[dir="ltr"] #bonfire-native-root .toolbar { flex-direction:row!important; justify-content:flex-start!important; }
html[dir="rtl"] #bonfire-native-root .cardfoot { direction:rtl!important; }
html[dir="ltr"] #bonfire-native-root .cardfoot { direction:ltr!important; }
#bonfire-native-root .cardfoot .date { white-space:normal!important; overflow-wrap:anywhere; }
#bonfire-native-root .cards.list .cardfoot .date { min-width:0; }



/* ===== Extracted style block 52; original id=focusflow-v53-bonfire-and-insights ===== */

  /* Bonfire uses the real logo asset everywhere so its identity stays consistent. */
  .bonfire-shared-logo{display:block!important;width:22px!important;height:22px!important;min-width:22px!important;object-fit:contain!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;flex:0 0 auto!important}
  #bonfireOpen .bonfire-shared-logo{width:21px!important;height:21px!important}
  .bottomnav .bonfire-top-link .bonfire-shared-logo{width:23px!important;height:23px!important}

  /* Mobile gets a real page heading instead of an empty spacer above its categories. */
  #bonfire-native-root .bf-page-intro{display:none;min-width:0;margin:2px 0 17px;padding:0 2px;text-align:start}
  #bonfire-native-root .bf-page-intro h2{font-size:clamp(22px,6vw,28px);line-height:1.25;letter-spacing:-.025em;font-weight:850;margin:0 0 5px;color:var(--text)}
  #bonfire-native-root .bf-page-intro p{font-size:13px;line-height:1.75;margin:0;color:var(--muted);max-width:52ch}

  /* Use the same pill shape as FocusFlow's Home tags, while keeping each tag's own recognizable hue. */
  #bonfire-native-root #tagRow .tag{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    min-height:39px!important;padding:8px 14px!important;border-radius:999px!important;
    background:color-mix(in srgb,var(--tag-color,#7466e8) 32%,var(--surface))!important;
    border:1px solid color-mix(in srgb,var(--tag-color,#7466e8) 70%,transparent)!important;
    color:var(--text)!important;
    box-shadow:0 4px 11px color-mix(in srgb,var(--tag-color,#7466e8) 23%,transparent)!important;
    font-size:13px!important;font-weight:700!important;line-height:1.2!important;
    scroll-snap-align:start!important;transition:background-color .18s,box-shadow .18s,transform .18s!important;
  }
  #bonfire-native-root #tagRow .tag:hover{transform:translateY(-1px)!important;box-shadow:0 6px 15px color-mix(in srgb,var(--tag-color,#7466e8) 28%,transparent)!important}
  #bonfire-native-root #tagRow .tag.active{background:color-mix(in srgb,var(--tag-color,#7466e8) 50%,var(--surface))!important;border-color:var(--tag-color,#7466e8)!important;box-shadow:inset 2px 2px 5px color-mix(in srgb,var(--tag-color,#7466e8) 22%,transparent),0 3px 10px color-mix(in srgb,var(--tag-color,#7466e8) 19%,transparent)!important;color:var(--text)!important}
  #bonfire-native-root #tagRow .tag>small{display:none!important}
  #bonfire-native-root #tagRow .tag>i,#bonfire-native-root #tagRow .tag>svg{width:16px!important;height:16px!important;flex:0 0 auto!important;color:var(--tag-color,#7466e8)!important}
  #bonfire-native-root #tagRow{scroll-snap-type:x proximity!important;scroll-behavior:auto!important;overscroll-behavior-x:contain!important;touch-action:pan-x!important}
  #bonfire-native-root .tagrow-wrap{margin-top:7px!important;margin-bottom:15px!important}
  #bonfire-native-root .tagrow-wrap #manageTagsBtn{border-radius:999px!important}

  /* Color picker remains a native, accessible picker but visually belongs to the app design system. */
  #bonfire-native-root input[type="color"],
  #bonfire-native-root #tagManageList input[type="color"][data-color]{
    appearance:none!important;-webkit-appearance:none!important;display:block!important;
    width:42px!important;height:42px!important;min-width:42px!important;padding:5px!important;
    border-radius:13px!important;border:1px solid var(--line)!important;
    background:var(--surface)!important;box-shadow:var(--shadow)!important;cursor:pointer!important;
  }
  #bonfire-native-root input[type="color"]::-webkit-color-swatch-wrapper,
  #bonfire-native-root #tagManageList input[type="color"][data-color]::-webkit-color-swatch-wrapper{padding:2px!important}
  #bonfire-native-root input[type="color"]::-webkit-color-swatch,
  #bonfire-native-root #tagManageList input[type="color"][data-color]::-webkit-color-swatch{border:0!important;border-radius:8px!important}
  #bonfire-native-root input[type="color"]::-moz-color-swatch,
  #bonfire-native-root #tagManageList input[type="color"][data-color]::-moz-color-swatch{border:0!important;border-radius:8px!important}
  #bonfire-native-root input[type="color"]:focus-visible,
  #bonfire-native-root #tagManageList input[type="color"][data-color]:focus-visible{outline:2px solid var(--purple)!important;outline-offset:3px!important}

  /* Always align text and actions to the language's logical start edge. Avoid row-reverse + RTL double reversal. */
  #bonfire-native-root,#bonfire-native-root .app,#bonfire-native-root .top,#bonfire-native-root .brand,
  #bonfire-native-root .actions,#bonfire-native-root .sectionhead,#bonfire-native-root .tagrow-wrap,
  #bonfire-native-root .toolbar,#bonfire-native-root .cardfoot,#bonfire-native-root .modalhead,
  #bonfire-native-root .field,#bonfire-native-root .tagmanage{min-width:0}
  #bonfire-native-root .brand,#bonfire-native-root .actions,#bonfire-native-root .sectionhead,
  #bonfire-native-root .tagrow-wrap,#bonfire-native-root .toolbar,#bonfire-native-root .cardfoot{flex-direction:row!important}
  #bonfire-native-root .brand h1,#bonfire-native-root .brand p,#bonfire-native-root .cardtitle,
  #bonfire-native-root .excerpt,#bonfire-native-root .date,#bonfire-native-root .field>label,
  #bonfire-native-root .hint,#bonfire-native-root .modalhead,#bonfire-native-root .detailtext,
  #bonfire-native-root .tagmanage .tagname,#bonfire-native-root .control,#bonfire-native-root .search{text-align:start!important}
  #bonfire-native-root .toolbar{justify-content:flex-start!important}
  #bonfire-native-root .toolbar #gridBtn,#bonfire-native-root .toolbar #listBtn{margin-inline-start:0!important}
  #bonfire-native-root .cardfoot{justify-content:space-between!important}
  #bonfire-native-root .searchwrap span{left:auto!important;right:17px!important}
  #bonfire-native-root .search{padding:16px 50px 16px 16px!important}
  html[dir="ltr"] #bonfire-native-root .searchwrap span{left:17px!important;right:auto!important}
  html[dir="ltr"] #bonfire-native-root .search{padding:16px 16px 16px 50px!important}
  html[dir="rtl"] #bonfire-native-root .cards.list>.promptcard{direction:rtl!important}
  html[dir="ltr"] #bonfire-native-root .cards.list>.promptcard{direction:ltr!important}
  html[dir="rtl"] #bonfire-native-root .cards.list>.promptcard>.cover{grid-column:1!important}
  html[dir="rtl"] #bonfire-native-root .cards.list>.promptcard>.cardbody{grid-column:2!important}
  html[dir="ltr"] #bonfire-native-root .cards.list>.promptcard>.cover{grid-column:1!important}
  html[dir="ltr"] #bonfire-native-root .cards.list>.promptcard>.cardbody{grid-column:2!important}

  /* Styled, localized delete confirmation built from the prompt library's existing modal design. */
  #bonfire-native-root .ff-delete-confirm{z-index:2147483646!important}
  #bonfire-native-root .ff-delete-confirm .modal{width:min(430px,100%)!important;border-radius:26px!important;padding:clamp(20px,4vw,28px)!important}
  #bonfire-native-root .ff-delete-confirm .ff-delete-symbol{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 13px;border-radius:18px;background:rgba(220,65,90,.13);color:#d13f58}
  #bonfire-native-root .ff-delete-confirm .ff-delete-symbol svg{width:26px;height:26px}
  #bonfire-native-root .ff-delete-confirm h2{font-size:20px;font-weight:800;text-align:center;margin:0 0 7px}
  #bonfire-native-root .ff-delete-confirm p{font-size:14px;line-height:1.8;color:var(--muted);text-align:center;margin:0 0 20px;overflow-wrap:anywhere}
  #bonfire-native-root .ff-delete-confirm .ff-delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  #bonfire-native-root .ff-delete-confirm .ff-delete-actions button{min-height:45px;border-radius:14px;font-weight:800;padding:10px 14px}
  #bonfire-native-root .ff-delete-confirm .ff-delete-cancel{background:var(--surface);box-shadow:var(--shadow)}
  #bonfire-native-root .ff-delete-confirm .ff-delete-ok{background:#d9425b!important;color:#fff!important;box-shadow:0 6px 17px rgba(217,66,91,.25)!important}

  /* New Progress section: switchable, honest metrics for Planner, Finance and Bonfire. */
  #progressPage>.ff-workspace-insights{grid-column:1/-1!important;min-width:0!important;width:100%!important;margin-top:0!important}
  .ff-workspace-insights .ff-insight-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
  .ff-workspace-insights .ff-insight-head h2{font-size:18px;font-weight:850;line-height:1.35;margin:0 0 3px}
  .ff-workspace-insights .ff-insight-head p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}
  .ff-workspace-insights .ff-insight-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px}
  .ff-workspace-insights .ff-insight-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:999px;background:var(--panel-2);color:var(--muted);font-size:12.5px;font-weight:750;box-shadow:var(--raise-sm);white-space:nowrap}
  .ff-workspace-insights .ff-insight-tab[aria-selected="true"]{background:var(--blue-soft);color:var(--blue);box-shadow:var(--inset)}
  .ff-workspace-insights .ff-insight-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:15px}
  .ff-workspace-insights .ff-insight-metric{min-width:0;padding:12px;border-radius:15px;background:var(--panel-2);border:1px solid var(--line)}
  .ff-workspace-insights .ff-insight-metric span{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:4px}
  .ff-workspace-insights .ff-insight-metric strong{display:block;font-size:clamp(16px,2vw,22px);font-weight:850;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  .ff-workspace-insights .ff-insight-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:14px;align-items:start}
  .ff-workspace-insights .ff-insight-pane{min-width:0;padding:14px;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--panel) 84%,var(--panel-2))}
  .ff-workspace-insights .ff-insight-pane h3{font-size:13px;font-weight:850;margin:0 0 12px}
  .ff-workspace-insights .ff-insight-bars{display:flex;flex-direction:column;gap:12px}
  .ff-workspace-insights .ff-insight-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center;font-size:12px}
  .ff-workspace-insights .ff-insight-bar-row .ff-label{min-width:0;overflow-wrap:anywhere;color:var(--ink)}
  .ff-workspace-insights .ff-insight-bar-row b{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
  .ff-workspace-insights .ff-insight-track{grid-column:1/-1;display:block;height:8px;border-radius:999px;background:var(--heat-0);overflow:hidden}
  .ff-workspace-insights .ff-insight-track span{display:block;height:100%;max-width:100%;border-radius:inherit;background:var(--bar-color,var(--blue));transition:width .35s var(--ease)}
  .ff-workspace-insights .ff-insight-table-wrap{width:100%;max-width:100%;overflow-x:auto;border-radius:12px}
  .ff-workspace-insights .ff-insight-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}
  .ff-workspace-insights .ff-insight-table th,.ff-workspace-insights .ff-insight-table td{padding:9px 8px;border-bottom:1px solid var(--line);text-align:start;vertical-align:middle;overflow-wrap:anywhere}
  .ff-workspace-insights .ff-insight-table th{font-size:10.5px;color:var(--muted);font-weight:800;white-space:nowrap}
  .ff-workspace-insights .ff-insight-table td:first-child{font-weight:700}
  .ff-workspace-insights .ff-insight-table tr:last-child td{border-bottom:0}
  .ff-workspace-insights .ff-insight-empty{font-size:12px;color:var(--muted);line-height:1.8;padding:12px 2px}
  .ff-workspace-insights .ff-insight-unlock{display:flex;align-items:center;gap:12px;padding:15px;border-radius:16px;background:var(--panel-2);border:1px solid var(--line)}
  .ff-workspace-insights .ff-insight-unlock p{flex:1;font-size:13px;line-height:1.8;color:var(--muted)}
  .ff-workspace-insights .ff-insight-unlock button{flex:none;padding:10px 13px;border-radius:12px;background:var(--blue);color:white;font-size:12px;font-weight:800}
  .ff-workspace-insights .ff-insight-badge{display:inline-flex;padding:4px 8px;border-radius:99px;background:var(--blue-soft);color:var(--blue);font-size:10.5px;font-weight:800}
  html[dir="rtl"] .ff-workspace-insights,html[dir="rtl"] .ff-workspace-insights *{direction:rtl}
  html[dir="ltr"] .ff-workspace-insights,html[dir="ltr"] .ff-workspace-insights *{direction:ltr}
  html[dir="rtl"] .ff-workspace-insights .ff-insight-table{text-align:right}
  @media(max-width:700px){
    #bonfire-native-root .bf-page-intro{display:block}
    #bonfire-native-root .top{margin-bottom:11px!important}
    #bonfire-native-root .tagrow-wrap{margin-top:3px!important}
    #progressPage>.ff-workspace-insights{margin-top:0!important}
    .ff-workspace-insights .ff-insight-split{grid-template-columns:minmax(0,1fr);gap:11px}
    .ff-workspace-insights .ff-insight-metrics{gap:7px}
    .ff-workspace-insights .ff-insight-metric{padding:10px 9px}
    .ff-workspace-insights .ff-insight-metric span{font-size:10.5px}
    .ff-workspace-insights .ff-insight-tabs{gap:6px}
    .ff-workspace-insights .ff-insight-tab{flex:1 1 auto;padding:9px 10px}
    .ff-workspace-insights .ff-insight-unlock{align-items:stretch;flex-direction:column}
  }
  @media(max-width:380px){
    .ff-workspace-insights .ff-insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ff-workspace-insights .ff-insight-metric:last-child{grid-column:1/-1}
    #bonfire-native-root .bf-page-intro p{font-size:12px}
    #bonfire-native-root #tagRow .tag{padding:8px 12px!important}
  }
  html.perf-lite #bonfire-native-root .promptcard,html.perf-lite #bonfire-native-root .top,
  html.perf-lite #bonfire-native-root .hero,html.perf-lite #bonfire-native-root .sectionhead,
  html.perf-lite #bonfire-native-root .bf-page-intro{animation:none!important;transition-duration:.01ms!important}
  #bonfire-native-root.ff-reduced-motion *,#bonfire-native-root.ff-reduced-motion *::before,#bonfire-native-root.ff-reduced-motion *::after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}



/* ===== Extracted style block 53; original id=focusflow-v55-final-refinements ===== */

/* Global, theme-aware scrollbars. Applied to every scrolling surface, not only the page body. */
:root{--ff-scroll-thumb:color-mix(in srgb,var(--blue,#75aaf5) 68%,var(--purple,#a995ef));--ff-scroll-track:color-mix(in srgb,var(--panel,#e5e9f0) 60%,transparent)}
html,body,*{scrollbar-width:thin!important;scrollbar-color:var(--ff-scroll-thumb) transparent;scroll-behavior:smooth;}
::-webkit-scrollbar{width:9px!important;height:8px!important}
::-webkit-scrollbar-track{background:transparent!important;border-radius:999px!important}
::-webkit-scrollbar-thumb{background:var(--ff-scroll-thumb)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important;min-height:28px!important;}
::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--ff-scroll-thumb) 76%,var(--ink,#21354d))!important;border:1px solid transparent!important;background-clip:padding-box!important}
::-webkit-scrollbar-corner{background:transparent!important}
html[data-theme="dark"],html.dark,body.dark{--ff-scroll-thumb:color-mix(in srgb,var(--blue,#7cacf5) 58%,#9e8af0)}
/* Remove mandatory snap which caused tag strips to feel stepped or sticky. */
#homePage #tagStrip,#bonfire-native-root #tagRow,#bonfire-native-root .tagpicker{scroll-snap-type:none!important;scroll-behavior:smooth!important;scrollbar-width:thin!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;}
#homePage #tagStrip::-webkit-scrollbar,#bonfire-native-root #tagRow::-webkit-scrollbar,#bonfire-native-root .tagpicker::-webkit-scrollbar{display:block!important;height:6px!important}
#bonfire-native-root #tagRow>.tag,#bonfire-native-root .tagpick{scroll-snap-align:none!important;transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease!important}
@media(prefers-reduced-motion:reduce){html,body,*{scroll-behavior:auto!important}#homePage #tagStrip,#bonfire-native-root #tagRow,#bonfire-native-root .tagpicker{scroll-behavior:auto!important}}

/* Bonfire scrollbars inherit this page's jade/lavender palette. */
#bonfire-native-root{--ff-scroll-thumb:color-mix(in srgb,var(--mint,#79cbb0) 58%,var(--purple,#a995ef));}
#bonfire-native-root::-webkit-scrollbar-thumb{background:var(--ff-scroll-thumb)!important}

/* Bonfire: drive layout from the embedded app language, not the outer document's potentially stale dir. */
#bonfirePage #bonfire-native-root[lang="fa"]{direction:rtl!important}
#bonfirePage #bonfire-native-root[lang="en"]{direction:ltr!important}
#bonfirePage #bonfire-native-root[lang="fa"] .sectionhead{direction:rtl!important;justify-content:flex-start!important}
#bonfirePage #bonfire-native-root[lang="en"] .sectionhead{direction:ltr!important;justify-content:flex-start!important}
#bonfirePage #bonfire-native-root[lang="fa"] .toolbar{direction:rtl!important;direction:rtl;justify-content:flex-start!important;margin-inline:0!important;margin-left:0!important;width:auto!important;}
#bonfirePage #bonfire-native-root[lang="en"] .toolbar{direction:ltr!important;justify-content:flex-start!important;margin-inline:0!important;margin-left:0!important;width:auto!important;}
#bonfirePage #bonfire-native-root[lang="fa"] .toolbar>*{order:initial!important}
#bonfirePage #bonfire-native-root[lang="fa"] .toolbar .ff-select-shell{margin-inline:0!important;flex:0 1 250px!important;width:min(250px,100%)!important;min-width:210px!important;max-width:280px!important}
#bonfirePage #bonfire-native-root[lang="fa"] .toolbar .ff-select-trigger{direction:rtl!important;text-align:right!important;gap:12px!important;padding-inline:14px!important;min-width:210px!important;}
#bonfirePage #bonfire-native-root[lang="fa"] .toolbar .ff-select-value{direction:rtl!important;text-align:right!important;flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;}
#bonfirePage #bonfire-native-root[lang="fa"] .toolbar #gridBtn{margin-inline-start:0!important}
#bonfirePage #bonfire-native-root[lang="fa"] .tagrow-wrap{direction:rtl!important}
#bonfirePage #bonfire-native-root[lang="en"] .tagrow-wrap{direction:ltr!important}
@media(max-width:520px){#bonfirePage #bonfire-native-root[lang="fa"] .toolbar{width:100%!important;justify-content:flex-start!important}#bonfirePage #bonfire-native-root[lang="fa"] .toolbar .ff-select-shell{flex:1 1 100%!important;min-width:0!important;max-width:none!important;width:100%!important}#bonfirePage #bonfire-native-root[lang="fa"] .toolbar .ff-select-trigger{min-width:0!important;width:100%!important}}

/* Planner wording stays on one line in the compact side navigation and its project selector gets enough space. */
.bottomnav .navbtn[data-page="planner"] span{white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;font-size:9px!important;line-height:1.2!important;max-width:none!important}
.bottomnav .navbtn[data-page="planner"]{overflow:visible!important;min-width:0!important}
#plannerPage .pl-projectbar label{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:6px!important;width:min(100%,280px)!important;min-width:240px!important;white-space:nowrap!important;}
#plannerPage .pl-projectbar label .ff-select-shell{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important}
#plannerPage .pl-projectbar label .ff-select-trigger{width:100%!important;min-width:0!important;white-space:nowrap!important}
#plannerPage .pl-projectbar label .ff-select-value{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
@media(max-width:560px){#plannerPage .pl-projectbar label{width:100%!important;min-width:0!important;max-width:100%!important}}

/* Better color harmony for Bonfire tags: softly tinted chips with distinct accents, led by mint green. */
#bonfire-native-root .tag{background:color-mix(in srgb,var(--tag-color,#56b99a) 10%,var(--surface))!important;border-color:color-mix(in srgb,var(--tag-color,#56b99a) 23%,var(--line))!important;color:var(--text)!important;transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease!important}
#bonfire-native-root .tag:hover{background:color-mix(in srgb,var(--tag-color,#56b99a) 19%,var(--surface))!important;border-color:color-mix(in srgb,var(--tag-color,#56b99a) 55%,var(--line))!important;transform:translateY(-1px)}
#bonfire-native-root .tag.active{background:color-mix(in srgb,var(--tag-color,#56b99a) 27%,var(--surface))!important;border-color:var(--tag-color,#56b99a)!important;box-shadow:var(--inset)!important}
#bonfire-native-root .tag:not(.addtag) svg,#bonfire-native-root .tag:not(.addtag) i{color:var(--tag-color,#56b99a)!important}
#bonfire-native-root .tagpick{background:color-mix(in srgb,var(--tag-color,#56b99a) 8%,var(--surface))!important;border-color:color-mix(in srgb,var(--tag-color,#56b99a) 25%,var(--line))!important;color:var(--text)!important}
#bonfire-native-root .tagpick.selected{background:color-mix(in srgb,var(--tag-color,#56b99a) 27%,var(--surface))!important;border-color:var(--tag-color,#56b99a)!important;box-shadow:var(--inset)!important}
#bonfire-native-root .tagpick.selected svg,#bonfire-native-root .tagpick.selected i{color:var(--tag-color,#56b99a)!important}
#bonfire-native-root .tag.addtag{background:color-mix(in srgb,var(--mint,#b7e9d5) 22%,var(--surface))!important;border:1px dashed color-mix(in srgb,var(--mint,#b7e9d5) 78%,var(--text))!important;color:var(--text)!important}
#bonfire-native-root input[type="color"]{accent-color:#56b99a}

/* If a modal has an X, its duplicate Cancel action is unnecessary. Where there is no X, keep both actions on one row. */
body .modal:has(.modalhead .close) .formactions button[data-close],
body .modal:has(.modalhead button[aria-label="Close"]) .formactions button[data-close]{display:none!important}
body .modal .formactions{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important}
body .modal .formactions>button{flex:1 1 0!important;min-width:0!important;white-space:normal!important;}
#bonfire-native-root .modal:has(.modalhead .close) .formactions button[data-close]{display:none!important}
#bonfire-native-root .modal .formactions{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important}



/* ===== Extracted style block 54; original id=v56-targeted-fixes ===== */


/* v56 targeted fixes: prompt-card actions stay inside the card; reliable tag dialogs; mobile progress spacing */
#bonfire-native-root #cards.cards:not(.list) .promptcard{min-width:0;display:flex;flex-direction:column;overflow:hidden}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cardbody{min-width:0;display:flex;flex:1;flex-direction:column}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cardfoot{display:flex;flex-direction:column;align-items:stretch;gap:9px;min-width:0}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cardfoot .date{max-width:100%;overflow-wrap:anywhere}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cardtools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:100%;min-width:0}
#bonfire-native-root #cards.cards:not(.list) .promptcard .cardtools .tiny{flex:0 0 31px;position:static}
#bonfire-native-root #cards.cards:not(.list) .promptcard .prompt-delete{margin:0}
#bonfire-native-root .modalback{z-index:10020}
#bonfire-native-root .modalback.open{display:flex!important;visibility:visible!important;pointer-events:auto!important}
#bonfire-native-root #tagEditModal{z-index:10030}
@media(max-width:640px){
 #progressPage.active{display:flex!important;flex-direction:column!important;gap:18px!important}
 #progressPage > .card,#progressPage > .stats-top,#progressPage > .focus-chart{margin:0!important;width:100%;min-width:0}
 #progressPage .stats-top{padding:0 0 2px}
 #progressPage .metrics{gap:10px!important;margin-top:0}
 #progressPage .category-card,#progressPage .activity-card{margin:0!important}
 #progressPage > .card + .card{margin-top:0!important}
}




/* ===== Extracted style block 55; original id=v60-tag-dialog-top-layer ===== */

/* Put the tag editor in the document top layer, independent of the prompt modal's stacking context. */
#tagEditModal.ff-tag-dialog-top{
 position:fixed!important;inset:0!important;z-index:2147483647!important;
 display:none;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;padding:12px!important;
 background:rgba(20,24,35,.58)!important;visibility:visible!important;
 opacity:1!important;pointer-events:auto!important;
}
#tagEditModal.ff-tag-dialog-top.open{display:flex!important}
#tagEditModal.ff-tag-dialog-top>.modal{
 display:block!important;position:relative!important;z-index:1!important;
 width:min(760px,100%)!important;max-height:calc(100dvh - 24px)!important;
 overflow:auto!important;overscroll-behavior:contain!important;
 visibility:visible!important;opacity:1!important;pointer-events:auto!important;
}
#tagEditModal.ff-tag-dialog-top .tag-icon-picker{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;max-height:32vh!important;overflow:auto!important}
#tagEditModal.ff-tag-dialog-top .tag-icon-option{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:48px!important}
@media(max-width:640px){
 #tagEditModal.ff-tag-dialog-top{padding:12px!important}
 #tagEditModal.ff-tag-dialog-top>.modal{width:100%!important;max-height:calc(100dvh - 24px)!important;padding:18px!important}
}



/* ===== Extracted style block 56; original id=v61-tags-managed-from-settings ===== */
#bonfire-native-root #manageTagsBtn{display:none!important} #bonfire-native-root .tag.addtag{display:none!important}


/* ===== Extracted style block 57; original id=v61-settings-tag-card ===== */
#bonfire-native-root .settings-tag-actions{display:flex;gap:8px;margin-top:8px}#bonfire-native-root .settings-tag-actions button{flex:1;min-width:0;margin-top:0}
/* v64: reclaim the hidden Manage Tags button space; let the category strip use the full row */
#homePage .tag-rail{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important;padding-inline:0!important;grid-template-columns:minmax(0,1fr)!important;column-gap:0!important;}
#homePage .tag-rail #tagStrip{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;flex:1 1 100%!important;margin-inline:0!important;}
#homePage .tag-rail .tag-scroll-range{display:none!important;}



/* ===== Extracted style block 58; original id=focusflow-v69-requested-fixes ===== */

/* Bonfire grid cards: make the artwork box exactly square in grid mode; keep list thumbnails unchanged. */
#bonfirePage #bonfire-native-root #cards.cards:not(.list)>.promptcard>.cover{
  width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1/1!important;
  box-sizing:border-box!important;align-self:start!important;overflow:hidden!important;
  padding:0!important;border:0!important;position:relative!important;
}
#bonfirePage #bonfire-native-root #cards.cards:not(.list)>.promptcard>.cover>img,
#bonfirePage #bonfire-native-root #cards.cards:not(.list)>.promptcard>.cover>.tag-fallback-art{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;object-fit:cover!important;box-sizing:border-box!important;
}
#bonfirePage #bonfire-native-root #cards.cards:not(.list)>.promptcard>.cover>.covericon{position:relative;z-index:1}
/* The scroll viewport has rounded end caps while its tag chips remain individually rounded. */
#bonfirePage #bonfire-native-root .tagrow-wrap{
  border-radius:999px!important;overflow:hidden!important;isolation:isolate;
  clip-path:inset(0 round 999px);padding-inline:0!important;
}
#bonfirePage #bonfire-native-root .tagrow-wrap #tagRow{
  border-radius:999px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-padding-inline:12px;overscroll-behavior-inline:contain;
}
/* Dragging must follow the pointer immediately instead of fighting the entrance/position transition. */
#miniPlayer{touch-action:pan-y;will-change:left,top,transform;}
#miniPlayer.is-dragging{transition:none!important;cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important;}
#miniPlayer.is-dragging *{cursor:grabbing!important;}
#miniPlayer #miniCover,#miniPlayer #miniOpen,#miniPlayer #miniBar{touch-action:none;}
@media(prefers-reduced-motion:reduce){#bonfirePage #bonfire-native-root .v69-gsap-enter{animation:none!important;transition:none!important}}


