/* CLUE Marketing console, in the language of the user's pinned reference dashboard:
   a floating dark icon rail, big soft white cards on pale grey, lavender data with hatched caps,
   one black stat card, a lavender and a peach gradient card, pill controls. Poppins throughout. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-regular-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-regular-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-medium-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-medium-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-semibold-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-semibold-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-bold-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-bold-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sans: "Poppins", system-ui, sans-serif; --mono: "Poppins", system-ui, sans-serif;
  --ground: #F3F4F7; --side: #1C1C21; --sheet: #FFFFFF; --sheet-2: #F6F6F9; --rule: #ECEDF1; --rule-2: #DCDDE3; --line-2: #E1E2E8;
  --ink: #1B1B20; --ink-2: #474A53; --ink-3: #6B6F78;
  --dark: #1C1C21; --lav-1: #EEEBFB; --lav-2: #CDC6F1; --lav-3: #8B7FD6; --lav-ink: #5B4FB8;
  --t-today-b: #EEEBFB; --t-today-f: #5B4FB8; --t-plan-b: #FCEFE6; --t-plan-f: #8A4B21; --t-run-b: #E8EEFB; --t-run-f: #2E4F96;
  --t-learn-b: #E6F4EE; --t-learn-f: #1D6B4A; --t-team-b: #F1F1F4; --t-team-f: #3E414A;
  --need: #5B4FB8; --need-ink: #FFFFFF; --need-text: #5B4FB8; --need-wash: #FFFFFF; --need-line: #ECEDF1;
  --sign: #157A43; --sign-ink: #FFFFFF; --sign-wash: #E5F5EC; --sign-deep: #0F5E33;
  --pen: #C0262C; --pen-wash: #FDECEC;
  --amber: #8F5400; --amber-wash: #FFF4DB; --amber-fill: #E0A100;
  --blue-ink: #2E4F96; --blue-wash: #E8EEFB;
  --c1: #8B7FD6; --c2: #9FB4E0; --c3: #E8A57A; --c4: #1C1C21; --c5: #5B4FB8; --c6: #A0A4AE; --c7: #6E6A86;
  --on-cat: #FFFFFF; --focus: #5B4FB8;
  --shadow-1: 0 1px 2px rgba(20, 20, 40, .03), 0 6px 20px -12px rgba(20, 20, 40, .10);
  --shadow-2: 0 18px 40px -16px rgba(20, 20, 40, .22), 0 2px 6px -2px rgba(20, 20, 40, .06);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #111216; --side: #08080A; --sheet: #1A1B20; --sheet-2: #212228; --rule: #2A2B32; --rule-2: #3A3B44; --line-2: #34353D;
  --ink: #EEEEF2; --ink-2: #C7C8D0; --ink-3: #9C9FA9;
  --dark: #000000; --lav-1: #2A2640; --lav-2: #5A519A; --lav-3: #A79CF0; --lav-ink: #C4BBFF;
  --t-today-b: #2A2640; --t-today-f: #C4BBFF; --t-plan-b: #3A2A20; --t-plan-f: #F2C2A6; --t-run-b: #1E2A42; --t-run-f: #A9C1F2;
  --t-learn-b: #183028; --t-learn-f: #8FD6B8; --t-team-b: #26272D; --t-team-f: #D0D1D8;
  --need: #A79CF0; --need-ink: #15122A; --need-text: #C4BBFF; --need-wash: #1A1B20; --need-line: #2A2B32;
  --sign: #5FD39A; --sign-ink: #0B1E12; --sign-wash: #14301F; --sign-deep: #8BE3B6;
  --pen: #FF8A80; --pen-wash: #3A1A18; --amber: #F2B84B; --amber-wash: #33270F; --amber-fill: #D9A13A; --blue-ink: #A9C1F2; --blue-wash: #1E2A42;
  --c1: #A79CF0; --c2: #9FB4E0; --c3: #F0B48E; --c4: #EEEEF2; --c5: #C4BBFF; --c6: #8E929C; --c7: #A9A4C8; --on-cat: #111216; --focus: #C4BBFF;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35); --shadow-2: 0 16px 36px -14px rgba(0, 0, 0, .7);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --ground: #111216; --side: #08080A; --sheet: #1A1B20; --sheet-2: #212228; --rule: #2A2B32; --rule-2: #3A3B44; --line-2: #34353D;
  --ink: #EEEEF2; --ink-2: #C7C8D0; --ink-3: #9C9FA9;
  --dark: #000000; --lav-1: #2A2640; --lav-2: #5A519A; --lav-3: #A79CF0; --lav-ink: #C4BBFF;
  --t-today-b: #2A2640; --t-today-f: #C4BBFF; --t-plan-b: #3A2A20; --t-plan-f: #F2C2A6; --t-run-b: #1E2A42; --t-run-f: #A9C1F2;
  --t-learn-b: #183028; --t-learn-f: #8FD6B8; --t-team-b: #26272D; --t-team-f: #D0D1D8;
  --need: #A79CF0; --need-ink: #15122A; --need-text: #C4BBFF; --need-wash: #1A1B20; --need-line: #2A2B32;
  --sign: #5FD39A; --sign-ink: #0B1E12; --sign-wash: #14301F; --sign-deep: #8BE3B6;
  --pen: #FF8A80; --pen-wash: #3A1A18; --amber: #F2B84B; --amber-wash: #33270F; --amber-fill: #D9A13A; --blue-ink: #A9C1F2; --blue-wash: #1E2A42;
  --c1: #A79CF0; --c2: #9FB4E0; --c3: #F0B48E; --c4: #EEEEF2; --c5: #C4BBFF; --c6: #8E929C; --c7: #A9A4C8; --on-cat: #111216; --focus: #C4BBFF;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35); --shadow-2: 0 16px 36px -14px rgba(0, 0, 0, .7);
  color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule-2) transparent; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.55 var(--sans); caret-color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
::selection { background: color-mix(in srgb, var(--c1) 22%, transparent); }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num, td.r { font-variant-numeric: tabular-nums; }
.fig { font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fig.xl { font-size: 48px; font-weight: 700; }
.sp { flex: 1; }
.dim { color: var(--ink-3); }
.note { font-size: 14px; color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-3); }
.err { color: var(--pen); font-weight: 700; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; margin-top: 14px; }
.center { text-align: center; margin-top: 20px; }
kbd { font: 600 12px var(--mono); border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--ink-3); background: var(--sheet); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--sheet); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* the element tile: the signature mark */
.el { position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; background: var(--gb, var(--sheet-2)); color: var(--gf, var(--ink-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gf, var(--ink-3)) 16%, transparent); }
.el b { font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.el i { position: absolute; top: 2px; left: 4px; font: 700 12px/1 var(--mono); font-style: normal; }
.el.nav { width: 34px; height: 34px; border-radius: 8px; } .el.nav b { font-size: 13px; } .el.nav .an:not([hidden]) ~ b { transform: translate(3px, 3px); }
.el .an { position: absolute; top: 2px; left: 4px; font: 700 11px/1 var(--mono); font-style: normal; color: var(--gf); }
.el .an.need { color: var(--need); font-weight: 700; }
.el.nav:has(.an.need:not([hidden])) { box-shadow: inset 0 0 0 1.5px var(--need); }
.el.sm { width: 22px; height: 22px; border-radius: 6px; } .el.sm b { font-size: 12px; }
.el.lg { width: 42px; height: 42px; border-radius: 10px; } .el.lg b { font-size: 18px; }
.g-today { --gb: var(--t-today-b); --gf: var(--t-today-f); } .g-plan { --gb: var(--t-plan-b); --gf: var(--t-plan-f); } .g-run { --gb: var(--t-run-b); --gf: var(--t-run-f); }
.g-learn { --gb: var(--t-learn-b); --gf: var(--t-learn-f); } .g-team { --gb: var(--t-team-b); --gf: var(--t-team-f); }
.g-need { --gb: var(--need); --gf: var(--need-ink); width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--need) 60%, transparent); }
.g-need b { font-size: 20px; }

/* shell: light sidebar */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 18px 14px 16px; background: var(--side); border-right: 1px solid var(--rule); scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.brand small { display: block; font-size: 13px; color: var(--ink-3); }
.askbar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 11px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--sheet); color: var(--ink-3); }
.askbar:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.askbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; flex: none; }
.side .askbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; padding: 0; min-height: 0; color: var(--ink); box-shadow: none; }
.askbar input::placeholder { color: var(--ink-3); opacity: 1; }
#nav { display: flex; flex-direction: column; gap: 14px; }
.ng { padding: 0 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
#nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 8px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
#nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
#nav a[aria-current] { background: var(--sheet); border-color: var(--rule-2); color: var(--ink); font-weight: 700; }
#nav a > span:not(.el) { flex: 1; min-width: 0; }
#nav a small { font-size: 12.5px; color: var(--ink-3); }
.n { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--need); color: var(--need-ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--rule); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.side-foot p { display: flex; align-items: center; gap: 8px; }
.side-foot .fine { font-weight: 400; margin-top: 2px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 22%, transparent); }
.main { min-width: 0; }
.demo-bar { background: var(--amber-wash); color: var(--ink); font-size: 13.5px; padding: 8px 32px; border-bottom: 1px solid color-mix(in srgb, var(--amber) 22%, transparent); }
.mbar, .dock { display: none; }
#screens { display: block; max-width: 1400px; padding: 26px 32px 80px; outline: 0; }

/* page head: a tile, a word, one line of numbers */
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.head-t { min-width: 0; }
.head h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 14px; color: var(--ink-3); }
.meta-line .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-2); }
.head-r { margin-left: auto; display: flex; gap: 8px; }

/* cards */
.block { margin-top: 20px; min-width: 0; padding: 18px 20px 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1); }
.band { display: grid; gap: 20px; margin-top: 20px; align-items: stretch; }
.band > .block, .band > .plate { margin-top: 0; }
.b-top, .b-mid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.b-6-4 { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.sec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.sec h2 { font-size: 15.5px; font-weight: 700; }
.sec small { font-size: 13px; color: var(--ink-3); }
.block > .sec ~ .sec { margin-top: 22px; }
h3.sub { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 4px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link .ic { width: 15px; height: 15px; }
.empty { padding: 18px 20px; background: var(--sheet); border: 1px dashed var(--rule-2); border-radius: 14px; margin-top: 20px; }
.block .empty { border: 0; padding: 6px 0; margin: 0; background: none; }
.empty p { font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.empty .btn { margin-top: 12px; white-space: normal; height: auto; min-height: 32px; padding: 6px 12px; text-align: left; }
.empty.bad p { color: var(--pen); }
.skel { padding: 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; }
.skel p { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.skel i { display: block; height: 14px; border-radius: 6px; background: var(--sheet-2); margin: 12px 0; width: 56%; }
.skel i.t { height: 28px; width: 30%; margin-bottom: 20px; }
.skel i.w { width: 82%; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--sheet); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--sheet-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .ic { width: 17px; height: 17px; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn.lg { height: 44px; font-size: 15.5px; padding: 0 18px; border-radius: 10px; }
.btn.primary { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--sheet)); }
.btn.sign { background: var(--sign); color: var(--sign-ink); border-color: var(--sign); }
.btn.sign:hover { background: var(--sign-deep); border-color: var(--sign-deep); color: var(--sheet); }
.btn.sign.armed { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sign) 30%, transparent); background: var(--sign-deep); color: var(--sheet); }
.btn.pen { background: var(--sheet); color: var(--pen); border-color: color-mix(in srgb, var(--pen) 45%, var(--rule-2)); }
.btn.pen:hover { background: var(--pen-wash); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn.ghost.pen { color: var(--pen); }
input:not([type=checkbox]), select, textarea { min-height: 38px; padding: 8px 11px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--sheet); font-size: 14.5px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
select { width: auto; padding-right: 30px; }
textarea { resize: vertical; line-height: 1.5; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, var(--sheet)); }
.seg.wrap { flex-wrap: wrap; }
.seg button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 13px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--sheet); font-size: 13.5px; font-weight: 600; text-align: left; }
.chip:hover { border-color: var(--ink-3); }
.search { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--sheet); color: var(--ink-3); }
.search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.search input { border: 0; min-height: 0; padding: 0; outline: 0; width: 180px; background: transparent; color: var(--ink); box-shadow: none !important; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.switch i { position: relative; width: 32px; height: 18px; border-radius: 9px; background: var(--rule-2); transition: background-color .15s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sheet); transition: transform .15s var(--ease); }
.switch[aria-checked="true"] i { background: var(--ink); }
.switch[aria-checked="true"] i::after { transform: translateX(14px); }

/* status pills: hollow / half / filled / signed / struck */
.mk { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.mk .fill, .mk-f circle { fill: currentColor; }
.mk-s circle { fill: currentColor; } .mk-s path { stroke: var(--sign-wash); stroke-width: 1.7; }
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--sheet-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.st .mk { color: var(--ink-3); }
.st-h { background: var(--amber-wash); color: var(--amber); box-shadow: none; } .st-h .mk { color: var(--amber); }
.st-f { background: var(--blue-wash); color: var(--blue-ink); box-shadow: none; } .st-f .mk { color: var(--blue-ink); }
.st-s { background: var(--sign-wash); color: var(--sign); box-shadow: none; } .st-s .mk { color: var(--sign); }
.st-x { background: var(--pen-wash); color: var(--pen); box-shadow: none; } .st-x .mk { color: var(--pen); }
abbr.plat { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 5px; font: 700 12px/1 var(--mono); text-decoration: none; background: var(--sheet-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.kdot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--k); flex: none; }

/* tables */
.tw { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.grid thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.grid tbody th, table.grid td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.grid tbody tr:last-child th, table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody th { font-weight: 700; }
table.grid tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 1px; }
table.grid .r { text-align: right; }
table.grid tr.click { cursor: pointer; }
table.grid tr.click:hover th, table.grid tr.click:hover td { background: var(--sheet-2); }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1; background: var(--sheet-2); color: var(--ink-2); }
.delta .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.delta.down { background: var(--pen-wash); color: var(--pen); }
td.remark { font-style: normal; color: var(--ink-2); font-size: 14px; }
.hist { display: block; max-width: 100%; }
.hist rect { fill: color-mix(in srgb, var(--c1) 75%, var(--sheet)); }
.hist rect.now { fill: none; stroke: var(--c1); stroke-width: 1; stroke-dasharray: 2 1.5; }
td.budget { min-width: 170px; }
td.budget small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.meter { height: 7px; border-radius: 4px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--c1); border-radius: 4px; }
.meter.warn i { background: var(--amber-fill); }
.meter.role { display: block; height: 8px; } .meter.role i { background: color-mix(in srgb, var(--gf, var(--c1)) 55%, var(--sheet)); }

/* the needs-you card: violet is reserved for it */
.plate { position: relative; min-width: 0; padding: 18px 18px 10px; background: var(--need-wash); border: 1px solid var(--need-line); border-radius: 16px; box-shadow: var(--shadow-1); }
.plate-h { display: flex; align-items: center; gap: 14px; padding: 0 2px 12px; }
.plate-h > div { flex: 1; min-width: 0; }
.plate h2 { font-size: 18px; font-weight: 700; }
.plate-h p { margin-top: 1px; color: var(--ink-2); font-size: 14px; }
.plate-link { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; font-size: 14px; color: var(--need-text); text-decoration: none; }
.plate-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.plate-more { display: inline-block; margin: 2px 4px 6px; font-size: 13.5px; font-weight: 700; color: var(--need-text); }
.decs { display: flex; flex-direction: column; padding-bottom: 4px; }
.dec { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-1); max-height: 240px; }
.dec.need { grid-template-columns: minmax(0, 1fr) auto; }
.plate .dec { background: transparent; border: 0; border-top: 1px solid var(--need-line); border-radius: 0; box-shadow: none; padding: 12px 4px; }
.plate .dthumb { background: var(--sheet); }
.dthumb { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--rule); }
.dthumb.ico { display: grid; place-items: center; color: var(--ink-3); }
.dthumb.ico .ic { width: 22px; height: 22px; }
.plats-i { display: inline-flex; gap: 3px; }
.dt { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.dm { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.dm .amt { color: var(--ink); font-weight: 700; }
.late { color: var(--pen); font-weight: 700; }
.soon { color: var(--ink); font-weight: 700; }
.dact { display: flex; gap: 8px; }
.dec.signed > :not(.stamp) { opacity: .35; transition: opacity .2s; }
.dec.gone { animation: fold .34s var(--ease) forwards; }
@keyframes fold { to { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; margin-top: -8px; border-width: 0; } }

/* the approval seal: the one authored motion. It pops, the row folds away, the next rises. */
.stamp { position: absolute; z-index: 2; right: 18px; top: 50%; transform: translateY(-50%) rotate(-3deg); display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px; background: var(--sign-wash); color: var(--sign); box-shadow: inset 0 0 0 1.5px currentColor, var(--shadow-2); pointer-events: none; animation: seal .42s var(--ease) both; }
.stamp b { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stamp span { font: 700 12px var(--mono); }
.stamp.reject { color: var(--pen); background: var(--pen-wash); }
.stage .stamp { top: 40%; right: auto; left: 50%; transform: translate(-50%, -50%) rotate(-3deg); padding: 12px 22px; animation-name: seal-c; }
.stage .stamp b { font-size: 26px; }
.stage .stamp span { font-size: 13px; }
@keyframes seal { from { opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.6); } 60% { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1.06); } to { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); } }
@keyframes seal-c { from { opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(.6); } 60% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1.06); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); } }
.stage.signed .stage-in { opacity: .3; transition: opacity .2s; }
.stage.next .stage-in { animation: rise .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Today */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.metric { display: grid; grid-template-columns: minmax(0, 1fr) 132px; column-gap: 14px; row-gap: 2px; align-items: start; padding: 12px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1); min-width: 0; }
.mt-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.metric > .hist, .metric > .mtarget, .metric > .mfoot { grid-column: 2; grid-row: 2 / span 3; align-self: end; margin: 0; }
.mt-h h3 { font-size: 14px; font-weight: 700; color: var(--ink-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtarget small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.mfoot { margin-top: auto; }
.mv-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-height: 34px; }
.mv.long { font-size: 22px; }
.mv-row .delta { flex: none; }
.mv { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mm { font-size: 13px; color: var(--ink-3); }
.mx { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 13px; margin: 2px 0 0; }
.mx dt { color: var(--ink-3); }
.mx dd { font-weight: 700; color: var(--ink); margin-right: 8px; }
.mx dd.met { color: var(--blue-ink); }
.metric .hist { width: 100%; height: 40px; }
.mfoot { text-align: right; }
.daylist li { border-bottom: 1px solid var(--rule); }
.daylist li:last-child { border-bottom: 0; }
.daylist li > button { display: grid; grid-template-columns: 46px 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 4px; text-align: left; border-radius: 8px; }
.daylist li > button:hover { background: var(--sheet-2); }
.daylist b.num { font-size: 13.5px; }
.daylist .t { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daylist .is-done .t, .daylist .is-cancelled .t { color: var(--ink-3); }
.daylist .is-cancelled .t { text-decoration: line-through; }
.daylist li.now { display: flex; gap: 12px; align-items: center; padding: 3px 4px; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.today .daylist .st { font-size: 12px; height: 22px; }
.gaps li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.gaps li:last-child { border-bottom: 0; }
.gaps li > div b { font-size: 15px; font-weight: 700; }
.gaps li > div p { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.gaps li > div p.fine { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gaps .when { display: grid; place-items: center; align-content: center; height: 54px; border-radius: 10px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--rule); text-align: center; }
.gaps .when b { font-size: 15px; font-weight: 700; line-height: 1.1; }
.gaps .when small { font-size: 12px; color: var(--ink-3); }

.gaps li.alert .when { background: var(--amber-wash); box-shadow: none; color: var(--amber); }
.gaps li.alert .when .ic { width: 22px; height: 22px; }
.feed li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 0; }
.fh { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.fh b { font-weight: 700; }
.fh span { color: var(--ink-3); font-size: 12.5px; }
.fd { font-size: 14px; color: var(--ink-2); }
.funnel li { padding: 9px 0 10px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.funnel li:last-child { border-bottom: 0; }
.funnel .fl { font-size: 14px; font-weight: 600; }
.funnel .fig { font-size: 20px; text-align: right; }
.funnel small { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.funnel i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--c1); margin-top: 6px; min-width: 4px; }
.slines .sline { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(110px, 1fr) 100px; gap: 18px; align-items: center; width: 100%; padding: 11px 6px; border-bottom: 1px solid var(--rule); text-align: left; border-radius: 8px; }
.slines .sline:last-child { border-bottom: 0; }
.sline:hover { background: var(--sheet-2); }
.sn b { display: block; font-size: 14.5px; font-weight: 700; }
.sn small, .sv small { display: block; font-size: 12.5px; color: var(--ink-3); }
.sv { text-align: right; } .sv b { font-size: 18px; font-weight: 700; }
.sv small.behind { color: var(--pen); font-weight: 700; }
.track { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--rule); }
.track .fill { position: absolute; top: 0; bottom: 0; background: var(--c2); border-radius: 5px; }
.track .fill.met { background: var(--c1); }
.track .fill.behind { background: var(--pen); }
.track .tgt { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.track.lg { height: 14px; margin-top: 16px; }
.tk { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 7px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wd { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; background: var(--sheet-2); min-height: 140px; min-width: 0; }
.wd.today { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wdh { font-size: 13px; color: var(--ink-3); margin-bottom: 2px; }
.wdh b { color: var(--ink); font-weight: 700; }


/* event chips */
.ev { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; padding: 3px 7px; border-radius: 7px; font-size: 12.5px; line-height: 1.3; text-align: left; color: var(--ink); background: color-mix(in srgb, var(--k) 14%, var(--sheet)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent); }
.ev:hover { background: color-mix(in srgb, var(--k) 24%, var(--sheet)); }
.ev .mk { color: var(--k); }
.ev b { font-family: var(--mono); font-weight: 700; flex: none; }
.ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev.is-draft { background: var(--sheet); box-shadow: none; outline: 1.5px dashed color-mix(in srgb, var(--k) 70%, transparent); outline-offset: -1.5px; }
.ev.is-done { background: color-mix(in srgb, var(--k) 7%, var(--sheet)); color: var(--ink-2); }
.ev.is-cancelled span { text-decoration: line-through; color: var(--ink-3); }

/* calendar */
.ctool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ctool h1 { font-size: 26px; font-weight: 700; letter-spacing: -.015em; min-width: 220px; }
.ctool select { max-width: 220px; }
.cnav { display: flex; gap: 4px; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.key { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13px; font-weight: 600; }
.key i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.key[aria-pressed="false"] { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); }
.key[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--k); }
.legend-st { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--ink-3); }
.bandkey { display: inline-flex; align-items: center; gap: 6px; }
.bandkey i { width: 18px; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--c5) 30%, var(--sheet)); }
.mgrid { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); }
.mh, .wrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mh div { padding: 10px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.day { display: flex; flex-direction: column; gap: 3px; min-height: 124px; padding: 6px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); min-width: 0; cursor: cell; }
.day:first-child { border-left: 0; }
.day.out { background: var(--sheet-2); }
.day.out .dn b { color: var(--ink-3); font-weight: 400; }
.day.drop { background: var(--blue-wash); box-shadow: inset 0 0 0 2px var(--c1); }
.day:focus-visible { outline-offset: -3px; }
.dn { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.dn b { font-weight: 700; min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 12px; }
.day.today .dn b { background: var(--ink); color: var(--sheet); padding: 0 6px; }
.dn span { font-size: 12px; font-weight: 700; color: var(--ink); }
.bands { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px 2px; }
.bands i { display: block; height: 19px; padding: 2px 0 0; font-style: normal; background: color-mix(in srgb, var(--k) 20%, var(--sheet)); overflow: hidden; }
.bands i span { display: block; padding: 0 7px; font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.k-start { --k: var(--c2); } .k-prep { --k: var(--c6); } .k-mocks { --k: var(--c3); } .k-exams { --k: var(--c5); } .k-results { --k: var(--c1); } .k-deadline { --k: var(--c4); } .k-applications { --k: var(--c7); }
.day .more { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: left; padding: 1px 4px; }
.wk-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1); }
.wk { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 860px; }
.wk .hd { padding: 10px 8px; font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.wk .hd:first-child { border-left: 0; }
.wk .hd b { color: var(--ink); font-weight: 700; }
.wk .hd.today b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hrs .hr { height: 44px; font: 12px var(--mono); color: var(--ink-3); padding: 2px 8px 0 0; text-align: right; }
.wk .col { position: relative; height: 792px; border-left: 1px solid var(--rule); background: linear-gradient(to bottom, transparent 43px, var(--rule) 43px) 0 0 / 100% 44px; cursor: cell; }
.wk .col.today { background-color: color-mix(in srgb, var(--ink) 3%, transparent); }
.wk .col .ev { position: absolute; left: 3px; right: 3px; width: auto; align-items: flex-start; overflow: hidden; }
.wk .col .ev span { white-space: nowrap; }
.wk .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); z-index: 1; }
.agenda { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 6px 18px 12px; box-shadow: var(--shadow-1); }
.agenda h3 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 2px; }
.agenda h3.today { color: var(--ink); }
.arow { display: grid; grid-template-columns: 52px 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 6px; border-bottom: 1px solid var(--rule); text-align: left; border-radius: 8px; }
.arow:hover { background: var(--sheet-2); }
.arow .t { font-size: 14.5px; font-weight: 600; min-width: 0; }
.arow .m { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; justify-content: flex-end; }
.arow.is-cancelled .t { text-decoration: line-through; color: var(--ink-3); }

/* dialogs */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 17, 21, .38); }
.dialog { position: fixed; z-index: 41; background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-2); }
.dialog.drawer { top: 8px; right: 8px; bottom: 8px; width: min(1100px, calc(100vw - 16px)); border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); }
.dialog.drawer.narrow { width: min(700px, calc(100vw - 16px)); }
.dialog.enter { animation: slidein .26s var(--ease); }
@keyframes slidein { from { opacity: .3; transform: translateX(28px); } }
.drawer-in { display: flex; flex-direction: column; height: 100%; }
.dh { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--rule); }
.dh h2 { flex: 1; font-size: 20px; font-weight: 700; }
.dh input.t { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; font-size: 20px; font-weight: 700; padding: 6px 10px; margin-left: -10px; box-shadow: none; }
.dh input.t:hover { border-color: var(--rule); }
.dh .kind { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--k) 14%, var(--sheet)); font-size: 13px; font-weight: 700; white-space: nowrap; }
.dh .kind i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); }
.db { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; }
.db.one { display: block; padding: 20px 22px 32px; }
.db.one > * + * { margin-top: 20px; }
.db.one .form { padding: 0; }
.aside { padding: 0; }
.form { padding: 20px 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.previews { min-height: 100%; background: var(--sheet-2); border-left: 1px solid var(--rule); padding: 20px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld .l, p.l, .l { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two select { width: 100%; }
.plats { display: flex; flex-wrap: wrap; gap: 6px; }
.plats label { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14px; font-weight: 600; cursor: pointer; background: var(--sheet); }
.plats label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sheet-2); color: var(--ink); }
.tabs-cap { align-self: flex-start; flex-wrap: wrap; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.cnt { font: 12.5px var(--mono); color: var(--ink-3); text-align: right; }
.cnt.over { color: var(--pen); font-weight: 700; }
.warnl { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--pen-wash); color: var(--pen); font-size: 14px; }
.df { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--rule); background: var(--sheet); }
.df .note { flex: 1; min-width: 120px; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; margin-top: 16px; }
.form .figs { margin-top: 0; }
.figs > div { padding: 10px 12px; border-radius: 10px; background: var(--sheet-2); }
.figs b { display: block; font-size: 18px; font-weight: 700; }
.figs span { font-size: 12.5px; color: var(--ink-3); }
.notebox { padding: 14px 16px; border-radius: 12px; background: var(--sheet-2); }
.notebox h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.remarks li { position: relative; padding: 6px 0 6px 18px; font-style: normal; color: var(--ink-2); font-size: 14.5px; }
.remarks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 2px; background: var(--rule-2); }
.capline { margin-top: 18px; }
.capline .row { font-size: 13.5px; margin-bottom: 7px; }
.capline .fine { margin-top: 8px; }
.sheet { left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet-in { padding: 4px 0 18px; }
.sheet-in section { padding: 6px 16px 10px; }
.sheet-in h3 { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.sheet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet-links a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; border-radius: 10px; background: var(--sheet-2); font-weight: 700; text-decoration: none; }
.sheet-links a[aria-current] { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--sheet); }

/* platform previews: each platform in its own clothes, light like the apps' default */
.pv { display: flex; flex-direction: column; gap: 20px; }
.pv-one figcaption { margin-top: 6px; }
.mock { background: #fff; color: #0F1419; border: 1px solid #DBE0E6; border-radius: 12px; overflow: hidden; font: 14px/1.42 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 480px; box-shadow: var(--shadow-1); }
.mock .hd { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.mock .av { width: 32px; height: 32px; border-radius: 50%; }
.mock .hd b { font-weight: 600; }
.mock .hd small { display: block; color: #536471; font-size: 12.5px; }
.mock .im { display: block; width: 100%; }
.mock .ph { aspect-ratio: 1; display: grid; place-items: center; padding: 24px; text-align: center; background: #F0F2F5; color: #4B4F56; }
.mock .bar { display: flex; align-items: center; gap: 14px; padding: 9px 12px; color: #536471; font-size: 13px; }
.mock .bar .ic { width: 20px; height: 20px; }
.mock .bar.over { color: #B42318; font-weight: 600; }
.mock .tx { padding: 0 12px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mock.x .tx, .mock.fb .tx, .mock.li .tx { padding-top: 2px; }
.mock .more { color: #737373; }
.mock.rd { display: grid; grid-template-columns: 40px minmax(0, 1fr); }
.mock.rd .vt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; background: #F6F7F8; color: #878A8C; }
.mock.rd h4 { font-size: 17px; font-weight: 600; padding: 2px 12px 6px; }
.mock.rd .hd { padding-bottom: 2px; }

/* approvals deck */
.deck { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.qcol { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding: 2px; }
.colh { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 0 4px 8px; }
.queue { display: flex; flex-direction: column; gap: 6px; }
.queue li button { display: grid; gap: 3px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; background: transparent; border: 1px solid transparent; }
.queue li button:hover { background: var(--sheet); border-color: var(--rule); }
.queue li button[aria-current] { background: var(--sheet); border-color: var(--ink); box-shadow: var(--shadow-1); }
.queue b { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.queue .qk { font-weight: 700; color: var(--ink-2); }
.queue .money .qk { color: var(--amber); }
.queue .qm { font-size: 12.5px; color: var(--ink-3); }
.queue .qm.late { color: var(--pen); font-weight: 700; }
.stage { position: relative; display: flex; justify-content: center; min-height: 460px; padding: 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-1); }
.stage-in { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 14px; }
.sheet-ruled { width: 100%; }
table.spend th { width: 40%; font-weight: 700; }
table.spend td.fig { font-size: 22px; white-space: nowrap; }
.letter dl { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.letter dt { color: var(--ink-3); }
.letter .body { white-space: pre-wrap; padding-top: 16px; font-size: 15px; line-height: 1.6; max-width: 64ch; }
.payload { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.panel-dec { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-dec.plate { padding: 20px; }
.panel-dec h2 { font-size: 21px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.pk { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
dl.facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 14.5px; }
dl.facts dt { color: var(--ink-3); font-size: 13.5px; }
dl.facts dd.late { color: var(--pen); font-weight: 700; }
dl.facts dd.amt { font-weight: 700; }
.acts { display: flex; gap: 10px; }
.acts .btn { flex: 1; }
.keys-hint { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hist-list .hrow { display: grid; grid-template-columns: 112px 52px minmax(0, 1fr) 90px 64px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.hist-list .hrow:last-child { border-bottom: 0; }
.hrow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .r { text-align: right; }
.block > .sec .seg { margin-left: auto; }

/* plates on other screens */
.plate.slim { padding: 16px 16px 8px; margin-bottom: 4px; }
.plate.slim .plate-h { padding-bottom: 10px; }
.plate.slim + .block, .plate.slim + .band { margin-top: 20px; }

/* strategies */
.road-wrap { overflow-x: auto; }
.road { min-width: 880px; }
.road-key { margin: 0 0 12px; }
.road-key i { background: var(--k); }
.rk-planned i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--k); }
.rk-paused i, .rk-completed i { background: color-mix(in srgb, var(--k) 40%, var(--sheet)); box-shadow: inset 0 0 0 1.5px var(--k); }
.r-axis { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 40px; }
.r-months { position: relative; }
.r-months span { position: absolute; top: 18px; padding-left: 5px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.r-now { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--sheet); background: var(--ink); padding: 0 7px; border-radius: 999px; }
.r-row { display: grid; grid-template-columns: 290px minmax(0, 1fr); width: 100%; min-height: 52px; border-top: 1px solid var(--rule); text-align: left; }
.r-row:hover { background: var(--sheet-2); }
.r-row.on { background: var(--sheet-2); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.r-lab { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 8px; align-items: center; align-content: center; padding: 8px 14px 8px 10px; }
.r-lab .mk { color: var(--c1); }
.r-lab b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-lab small { grid-column: 2; font-size: 12.5px; color: var(--ink-3); }
.r-lab small.h-behind { color: var(--pen); font-weight: 700; }
.r-lab small.h-met { color: var(--blue-ink); font-weight: 700; }
.r-track { position: relative; }
.r-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.r-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); z-index: 1; }
.r-bar { position: absolute; top: 12px; height: 16px; border-radius: 6px; background: var(--k); }
.r-bar.is-planned { background: transparent; border: 1.5px dashed var(--k); }
.r-bar.is-paused, .r-bar.is-completed { background: color-mix(in srgb, var(--k) 40%, var(--sheet)); border: 1.5px solid var(--k); }
.r-sub { position: absolute; height: 3px; border-radius: 2px; background: var(--rule-2); }
.r-sub.is-active { background: var(--ink-3); }
.sdetail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; padding: 20px 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1); scroll-margin-top: 20px; }
.sd-a h2 { font-size: 22px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.sd-a .lede { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 16px; font-size: 13.5px; color: var(--ink-2); }
.sd-b .fig.xl { margin: 4px 0 2px; }
.sd-b .kpi-name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.sd-c h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.sd-c h3 + .chips, .sd-c .remarks + h3 { margin-top: 14px; }
.sd-c .chips { margin-top: 6px; }

/* campaigns */
.pace { display: block; width: 100%; height: auto; }
table.camps tbody th b { font-weight: 700; }

/* content */
.best { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.best button { position: relative; display: grid; width: 100%; text-align: left; background: var(--sheet-2); border-radius: 14px; padding: 8px 8px 12px; border: 1px solid var(--rule); transition: box-shadow .2s, transform .2s; }
.best button:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.best img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--rule); display: block; }
.best .rank { position: absolute; top: 16px; left: 16px; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--t-run-b); color: var(--t-run-f); font-size: 15px; font-weight: 700; }
.best .bt { display: grid; margin-top: 10px; padding: 0 4px; }
.best .bt .fig { font-size: 26px; }
.best .bt small { font-size: 12.5px; color: var(--ink-3); }
.best .tt { font-size: 14.5px; font-weight: 700; margin-top: 6px; line-height: 1.3; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; text-align: left; min-width: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sheet-2); display: block; }
.tile .tb { display: grid; gap: 5px; padding: 10px 12px 12px; }
.tile .tt { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .tm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--ink-3); }
.tile .tm b { color: var(--ink); font-weight: 700; }
.tile .pl { display: inline-flex; gap: 3px; }

/* pipeline + experiments */
.propbar { display: flex; gap: 3px; height: 14px; margin: 4px 0 12px; }
.propbar i { display: block; min-width: 4px; border-radius: 4px; font-style: normal; background: color-mix(in srgb, var(--k, var(--c6)) 70%, var(--sheet)); }
.propbar.lg { height: 46px; margin: 0; }
.propbar.lg i { display: flex; align-items: center; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--k) 22%, var(--sheet)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 40%, transparent); }
.propbar.lg span { padding: 0 14px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.proplegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.proplegend li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; text-transform: capitalize; }
.proplegend i { width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--k, var(--c6)) 70%, var(--sheet)); }
.kan-wrap { overflow-x: auto; }
.kan { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 12px; min-width: 1120px; }
.kcol { padding: 10px; border-radius: 14px; background: var(--sheet-2); }
.kcol h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 2px 4px 8px; }
.kcol h3 .mk { color: var(--c1); }
.kcol.is-lost h3 .mk { color: var(--pen); }
.kcol h3 b { margin-left: auto; color: var(--ink-3); }
.kcard { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin-top: 8px; box-shadow: var(--shadow-1); }
.kcard b { display: block; font-size: 14px; font-weight: 700; }
.kcard small { display: block; font-size: 12.5px; color: var(--ink-3); }
.kcard p { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.kcol > .fine { margin: 8px 4px 0; }
.exps li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.exps li:last-child { border-bottom: 0; }
.eh b { font-size: 15px; font-weight: 700; line-height: 1.35; display: block; }
.eh .note { margin-top: 3px; }
.eh .fine { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.er p { font-size: 14.5px; }
.er p + p { margin-top: 8px; }
.remark-i { font-style: normal; color: var(--ink-2); }

/* analytics */
.askdata { padding: 20px; }
.askdata form { display: flex; gap: 10px; }
.big-input { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--rule-2); border-radius: 12px; background: var(--sheet); color: var(--ink-3); }
.big-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 16%, transparent); }
.big-input .ic { width: 20px; height: 20px; }
.big-input input { border: 0; outline: 0; min-height: 0; padding: 0; font-size: 16px; background: transparent; color: var(--ink); box-shadow: none !important; }
.askdata .btn.primary { height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.askdata .chips { margin-top: 12px; }
.dout { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.dout:empty { display: none; }
.answer { font-size: 15.5px; max-width: 76ch; }
.charts2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
figure.chart { min-width: 0; }
.charts2 figure.chart { padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1); }
.ch-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ch-top h3 { font-size: 15px; font-weight: 700; }
.ch-top small { font-size: 12.5px; color: var(--ink-3); }
.chart-svg { display: block; width: 100%; height: auto; }
.chart-svg text { paint-order: stroke; stroke: var(--halo, var(--sheet)); stroke-width: 4px; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend i, .legend span > i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--k); }
summary { list-style: none; cursor: pointer; } summary::-webkit-details-marker { display: none; }
summary::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
details.q { margin-top: 8px; }
details.q summary { font-size: 13px; color: var(--ink-3); cursor: pointer; }
pre, code { font-family: var(--mono); }
details.q pre, .md pre { font-size: 12.5px; overflow: auto; background: var(--sheet-2); border: 1px solid var(--rule); padding: 10px 12px; border-radius: 10px; margin-top: 6px; }
code { font-size: .9em; background: var(--sheet-2); padding: 1px 5px; border-radius: 5px; }
.datatable { min-width: 0; }
.datatable .fine { margin-top: 6px; }

/* team */
.roster > li { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(200px, 1fr) minmax(0, 1.2fr) 100px; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.roster > li:last-child { border-bottom: 0; }
.rh { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
.rh h2 { font-size: 16px; font-weight: 700; }
.rh .note { grid-column: 2; margin-top: 2px; }
.rbar { padding-top: 6px; }
.rbar p { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.rbar b { font-size: 16px; color: var(--ink); }
.recent li { font-size: 13.5px; color: var(--ink-2); padding: 2px 0; }
details.tools summary { font-size: 13px; color: var(--ink-3); cursor: pointer; padding-top: 4px; }
.conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.conns li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--sheet-2); font-size: 14px; }
.conns li .st { grid-row: span 2; align-self: start; }
.conns b { font-weight: 700; }

/* ask the team */
.screen#s-chat { max-width: 860px; margin: 0 auto; }
.msg { padding: 14px 0; }
.msg.u { margin: 18px 0 4px auto; max-width: 80%; width: fit-content; padding: 12px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-1); }
.msg.u .ut { font-size: 15.5px; font-weight: 600; white-space: pre-wrap; }
.msg.a { padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-1); margin-top: 6px; }
.msg.a .md { font-size: 15.5px; line-height: 1.6; }
.md p, .md ul, .md pre, .md h4 { margin-top: 8px; }
.md p:first-child, .md ul:first-child { margin-top: 0; }
.md h4 { font-size: 15.5px; font-weight: 700; }
.md ul { padding-left: 20px; list-style: disc; }
.md li { margin: 3px 0; }
.msg figure, .msg .datatable { margin-top: 16px; }
.msg img.gen { display: block; max-width: 360px; border-radius: 10px; margin-top: 12px; }
.steps { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--sheet-2); }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.steps b { font-weight: 700; }
.steps span { color: var(--ink-2); }
.steps .mk { color: var(--c1); margin-left: auto; }
.steps li.bad .mk { color: var(--pen); }
.steps li.run .mk { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.compose-wrap { position: sticky; bottom: 0; padding: 18px 0 20px; background: linear-gradient(to bottom, transparent, var(--ground) 26%); z-index: 5; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 16px; box-shadow: var(--shadow-2); }
.composer:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent), var(--shadow-2); }
.composer textarea { flex: 1; border: 0; min-height: 40px; padding: 9px 8px; resize: none; font-size: 16px; background: transparent; outline: 0; box-shadow: none !important; }
.cmeta { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.hello { padding: 22px 0 8px; }
.hello h1 { font-size: 30px; font-weight: 700; letter-spacing: -.015em; }
.hello > p { font-size: 16px; color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
.sug { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.sug li button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 100%; padding: 13px 14px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow-1); text-align: left; font-size: 15px; font-weight: 600; }
.sug li button .ic { color: var(--ink-3); }
.sug li button:hover { border-color: var(--ink-3); } .sug li button:hover .ic { color: currentColor; }

/* toast + login */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: min(620px, calc(100vw - 32px)); padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--ink); color: var(--sheet); font-size: 14px; box-shadow: var(--shadow-2); transform: translate(-50%, 160%); opacity: 0; transition: transform .26s var(--ease), opacity .2s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast.bad { background: var(--pen); color: #fff; }
.toast .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); box-shadow: none; flex: none; }
.login { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--ground); padding: 16px; }
.login form { display: flex; flex-direction: column; gap: 12px; width: min(380px, 100%); padding: 30px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow-2); }
.login img { border-radius: 10px; }
.login h1 { font-size: 22px; font-weight: 700; }
.login p { color: var(--ink-2); }

/* seasons: the academic year as a wall chart */
.ymap-wrap { overflow-x: auto; }
.ymap { --lab: 140px; --pr: 150px; position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); min-width: 1000px; padding-top: 24px; padding-right: var(--pr); }
.ym-lab { font-size: 13px; font-weight: 700; padding: 7px 12px 7px 0; border-top: 1px solid var(--rule); }
.ym-lab:first-child { border-top: 0; }
.ym-lab.pen { color: var(--pen); }
.ym-track, .ym-months, .ym-demand { position: relative; z-index: 1; }
.ym-months { display: grid; grid-template-columns: repeat(12, 1fr); }
.ym-months span { font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 4px 6px 6px; border-left: 1px solid var(--rule); background: var(--sheet); }
.ym-demand { display: grid; grid-template-columns: repeat(12, 1fr); height: 72px; border-top: 1px solid var(--rule); }
.ym-demand > span { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 6px 8px 5px; border-left: 1px solid var(--rule); }
.ym-demand i { display: block; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--c1) 28%, var(--sheet)); }
.ym-demand i.hi { background: var(--c1); }
.ym-demand small { font-size: 12px; color: var(--ink-3); background: var(--sheet); }
.ym-track { border-top: 1px solid var(--rule); background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.ym-band { position: absolute; height: 22px; padding: 0 8px; border-radius: 6px; background: color-mix(in srgb, var(--k) 22%, var(--sheet)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 50%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 22px; white-space: nowrap; overflow: hidden; min-width: 6px; cursor: default; }
.ym-band span { display: block; overflow: hidden; text-overflow: ellipsis; }
.ym-band.narrow { overflow: visible; padding: 0; }
.ym-band.narrow span { position: absolute; left: calc(100% + 5px); top: 0; color: var(--ink); overflow: visible; background: var(--sheet); padding: 0 3px; margin-left: -3px; }
.ym-camp { position: absolute; height: 8px; border-radius: 4px; background: var(--c1); }
.ym-camp.is-planned { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c1); }
.ym-camp.is-paused { background: var(--c3); }
.ym-gap { position: absolute; height: 20px; padding: 0 7px; border: 1.5px dashed var(--pen); border-radius: 6px; background: var(--pen-wash); color: var(--pen); font-size: 12px; font-weight: 700; line-height: 17px; overflow: hidden; white-space: nowrap; }
.ym-today { z-index: 0; position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + (100% - var(--lab) - var(--pr)) * var(--x)); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.ym-today span { position: absolute; top: 0; left: -2px; transform: translateX(-50%); padding: 0 7px; font-size: 12px; font-weight: 700; color: var(--sheet); background: var(--ink); border-radius: 999px; }

/* narrower desktops */
@media (max-width: 1240px) {
  .deck { grid-template-columns: 240px minmax(0, 1fr); }
  .panel-dec { grid-column: 2; position: static; }
  .sdetail { grid-template-columns: 1fr 1fr; } .sd-c { grid-column: 1 / -1; }
  .roster > li { grid-template-columns: minmax(200px, 1fr) minmax(180px, 1fr) minmax(0, 1.2fr); } .roster details { grid-column: 1 / -1; }
}
@media (max-width: 1060px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .b-top, .b-mid, .b-6-4 { grid-template-columns: minmax(0, 1fr); }
  .best { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exps li { grid-template-columns: 1fr; gap: 10px; }
  #screens { padding: 22px 22px 70px; }
}

/* phone: the sidebar folds into More; quick dock in the thumb zone */
@media (max-width: 760px) {
  .app { display: block; }
  .side { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .demo-bar { padding: 7px 16px; font-size: 12.5px; }
  .mbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; background: var(--sheet); border-bottom: 1px solid var(--rule); }
  .mbar .brand { padding: 0; }
  .signs { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--need); color: var(--need-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
  
  #screens { padding: 18px 16px 40px; }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--sheet); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px -14px rgba(0, 0, 0, .3); }
  .dock a, .dock button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 12px; font-weight: 700; text-decoration: none; }
  .dock .ic { width: 22px; height: 22px; }
  .dock [aria-current] { color: var(--ink); }
  .dock [aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ink); }
  .dock .n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; font-size: 12px; line-height: 18px; }
  .head { gap: 12px; margin-bottom: 16px; }
  .head h1, .ctool h1 { font-size: 22px; }
  .head .el.lg { width: 36px; height: 36px; } .head .el.lg b { font-size: 15px; }
  .block, .band, .metrics { margin-top: 14px; }
  .band { gap: 14px; }
  .block { padding: 16px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ch-top { flex-wrap: wrap; } .ch-top small { order: 3; width: 100%; }
  .ctool .el.lg { width: 36px; height: 36px; } .ctool .el.lg b { font-size: 15px; }
  .metric { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
  .metric > .hist { height: 30px; margin-top: 6px; }
  .mv-row { flex-wrap: wrap; min-height: 0; gap: 4px 8px; } .mv.long { font-size: 20px; }
  .mt-h h3 { white-space: normal; line-height: 1.25; }
  .mv { font-size: 24px; }
  .mt-h h3 { font-size: 13px; }
  .plate { padding: 14px 12px 6px; }
  .plate-h { flex-wrap: wrap; }
  .plate-link { width: 100%; }
  .dec { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .dec.need { grid-template-columns: minmax(0, 1fr); }
  .dthumb { width: 44px; height: 44px; }
  .dact { grid-column: 1 / -1; }
  .dact .btn { flex: 1; height: 42px; }
  .stamp { right: 14px; }
  .gaps li { grid-template-columns: 70px minmax(0, 1fr); }
  .gaps li > .btn, .gaps li > span:last-child:not(.when) { grid-column: 2; justify-self: start; }
  .slines .sline { grid-template-columns: minmax(0, 1fr) 84px; }
  .slines .track { grid-column: 1 / -1; grid-row: 2; }
  table.chan th:nth-child(3), table.chan td:nth-child(3) { display: none; }
  table.chan thead th { white-space: normal; }
  .week { grid-template-columns: 1fr; gap: 6px; }
  .wd { min-height: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; }
  .wd > :not(.wdh) { grid-column: 2; }
  .wd .wdh { grid-row: 1 / span 9; }
  .ctool { gap: 8px; }
  .ctool h1 { min-width: 0; flex: 1 1 calc(100% - 50px); }
  .ctool .sp { display: none; }
  .ctool select { flex: 1; min-width: 0; }
  .legend-st { display: none; }
  .day { min-height: 70px; padding: 4px 3px; }
  .day .ev { padding: 1px 2px; font-size: 12px; border-radius: 4px; letter-spacing: -.02em; }
  .day .ev .mk, .day .ev span { display: none; }
  .day .more { font-size: 12px; padding: 0; }
  .dn span { display: none; }
  .bands { margin: 0 -3px 1px; } .bands i { height: 6px; padding: 0; } .bands i span { display: none; }
  .mh div { padding: 6px 4px; text-align: center; }
  .agenda { padding: 4px 12px 10px; }
  .arow { grid-template-columns: 46px 10px minmax(0, 1fr); }
  .arow .m { grid-column: 3; justify-content: flex-start; }
  .dialog.drawer, .dialog.drawer.narrow { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; border: 0; }
  .db { grid-template-columns: minmax(0, 1fr); }
  .previews { border-left: 0; border-top: 1px solid var(--rule); min-height: 0; }
  .two { grid-template-columns: 1fr; }
  .dh { padding: 10px 10px 10px 16px; } .dh .kind { display: none; }
  .df { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .df .btn { flex: 1 1 auto; }
  .deck { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .qcol { position: static; max-height: none; overflow: visible; }
  .queue { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .queue li { flex: 0 0 210px; }
  .queue li button { height: 100%; background: var(--sheet); border-color: var(--rule); }
  .panel-dec { grid-column: auto; position: static; order: -1; }
  .deck > .qcol { order: -2; }
  .stage { min-height: 0; padding: 14px; }
  .acts { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 29; padding: 10px 16px; background: var(--sheet); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .3); }
  body[data-screen="approvals"] #screens { padding-bottom: 96px; }
  .keys-hint { display: none; }
  .hist-list .hrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hist-list .hrow > .num.dim, .hist-list .hrow > .num.r { display: none; }
  .block > .sec .seg { margin-left: 0; }
  .search input { width: 140px; }
  .sdetail { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .r-axis, .r-row { grid-template-columns: 170px minmax(0, 1fr); }
  .road { min-width: 720px; }
  table.camps thead { display: none; }
  table.camps tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.camps tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  table.camps td { border: 0; padding: 0; text-align: left !important; font-size: 14px; }
  table.camps td::before { content: attr(data-l); display: block; font: 12.5px var(--sans); color: var(--ink-3); }
  table.camps td.budget { grid-column: 1 / -1; }
  table.report.spend tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.report.spend tbody th, table.report.spend td { border: 0; padding: 0; }
  table.report.spend td.remark { grid-column: 1 / -1; font-size: 13px; }
  .askdata form { flex-wrap: wrap; } .askdata .btn.primary { width: 100%; height: 46px; }
  .big-input { height: 50px; }
  .roster > li { grid-template-columns: 1fr; gap: 10px; }
  .exps li { gap: 8px; }
  .hello h1 { font-size: 24px; }
  .sug { grid-template-columns: 1fr; }
  .msg.u { max-width: 92%; }
  .compose-wrap { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  .cmeta .fine { display: none; }
  #mic span, #send span { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .best { gap: 10px; } .best .bt .fig { font-size: 22px; }
  .filters .search { flex: 1; } .filters .search input { width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .plate.slim { padding: 14px 12px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== reference language layer ===== */
body { font-weight: 400; letter-spacing: -.005em; }
.app { grid-template-columns: 104px minmax(0, 1fr); }
.rail { position: sticky; top: 16px; height: calc(100vh - 32px); margin: 16px 0 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 14px 0; border-radius: 22px; background: var(--side); overflow-y: auto; scrollbar-width: none; }
.rail-logo img { width: 42px; height: 42px; border-radius: 12px; display: block; }
#nav { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.ngroup { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.ngroup + .ngroup { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
#nav a, .rail-ask { position: relative; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 13px; color: #C9CAD2; border: 0; background: rgba(255, 255, 255, .06); box-shadow: none; }
#nav a:hover, .rail-ask:hover { background: rgba(255, 255, 255, .14); color: #fff; }
#nav a[aria-current], .rail-ask[aria-current] { background: #fff; color: #1C1C21; }
#nav a .ic, .rail-ask svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail-ask { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: #1C1C21; }
.rail-ask:hover { background: #E9E7F5; color: #1C1C21; }
#nav a .n { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font-size: 11.5px; line-height: 19px; background: var(--lav-3); color: #fff; box-shadow: 0 0 0 2.5px var(--side); }
#nav a .n.soft { background: #3A3B44; color: #E4E4EA; }
.tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(-4px); padding: 6px 10px; border-radius: 9px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 50; box-shadow: var(--shadow-2); }
#nav a:hover .tip, #nav a:focus-visible .tip { opacity: 1; transform: translateY(-50%); }
.bar :focus-visible, .rail :focus-visible { outline-color: #fff; }
#screens { max-width: 1440px; padding: 22px 28px 64px 20px; }
.demo-bar { margin: 16px 28px 0 20px; border-radius: 14px; border: 0; padding: 9px 16px; }
.head { gap: 16px; margin: 6px 0 20px; align-items: center; }
.head h1, .ctool h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.meta-line { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.head-r { margin-left: auto; }
.top-acts { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.head-r:empty + .top-acts { margin-left: auto; }
.circ { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-1); text-decoration: none; }
.circ:hover { background: var(--sheet-2); }
.circ .ic { width: 19px; height: 19px; }
.circ.sm { width: 34px; height: 34px; box-shadow: none; border: 1px solid var(--rule-2); background: transparent; }
.circ.sm .ic { width: 16px; height: 16px; }
.circ .dot-n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--lav-3); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 19px; text-align: center; box-shadow: 0 0 0 2.5px var(--ground); }
.avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; box-shadow: var(--shadow-1); }
.ctool .top-acts { margin-left: 4px; }

/* cards: big, soft, borderless */
.card, .block, .plate, .metric, .sdetail, .agenda, .mgrid, .wk-wrap, .stage, .charts2 figure.chart, .skel, .empty { background: var(--sheet); border: 0; border-radius: 22px; box-shadow: var(--shadow-1); }
.card { padding: 20px 22px; min-width: 0; }
.block { padding: 20px 22px; }
div.grid { display: grid; gap: 18px; margin-top: 18px; align-items: stretch; }
div.grid:first-of-type { margin-top: 0; }
.g-8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.g-4-4-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.c-head h2 { font-size: 16px; font-weight: 500; }
.c-sub { font-size: 13.5px; color: var(--ink-3); }
.c-head .c-sub { margin-left: 4px; }
.c-dots { color: var(--ink-3); } .c-dots .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.sec h2 { font-size: 16px; font-weight: 500; }
.chip-static { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-2); font-size: 13.5px; color: var(--ink-2); }
.c-key { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-3); }
.c-key.center { justify-content: center; width: 100%; margin-top: 8px; }
.c-key span { display: inline-flex; align-items: center; gap: 6px; }
.c-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.c-key i.f, .split-key i.f { background: var(--lav-2); }
.c-key i.o, .split-key i.o { background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--lav-3); }
.big { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.big b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.chg { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.chg .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.chg.pos { color: var(--sign); } .chg.neg { color: var(--pen); }
td.pos { color: var(--sign); font-weight: 600; } td.neg { color: var(--pen); font-weight: 600; }

/* the black card */
.card.dark { background: var(--dark); color: #fff; }
.card.dark .c-sub, .card.dark .c-dots { color: #B7B8C2; }
.card.dark .chg.pos { color: #6FE0A6; }
.split { display: flex; gap: 8px; height: 46px; margin: 22px 0 12px; }
.split span { display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; min-width: 64px; }
.split .hatched { color: #fff; justify-content: flex-start; background: repeating-linear-gradient(-45deg, #3A3B44 0 3px, #2A2B32 3px 7px); box-shadow: inset 0 0 0 1px #4A4B55; }
.split .solid { background: #fff; color: #1C1C21; }
.split-key { display: flex; justify-content: space-between; font-size: 13px; color: #C7C8D0; }
.split-key span { display: inline-flex; align-items: center; gap: 6px; }
.split-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.split-key i.o { background: transparent; box-shadow: inset 0 0 0 1.5px #C7C8D0; } .split-key i.f { background: #fff; }

/* gradient cards */
.card.grad { background: linear-gradient(165deg, #6A5FC4 0%, #7C7FC0 52%, #8C9BC4 100%); color: #fff; }
.card.grad .c-sub, .card.grad .c-dots { color: #F0EEFA; }
.card.grad .chg.light { color: #fff; background: rgba(255, 255, 255, .18); padding: 2px 8px; border-radius: 999px; }
.card.grad .mini { display: block; width: 100%; margin-top: 14px; }
.card.peach { background: linear-gradient(180deg, #FAF1EA 0%, #F3DCCC 100%); color: #2A211B; }
.card.peach .c-sub, .card.peach .c-dots { color: #5A5048; }
.card.peach .chg.pos { color: #0F6B39; }
.card.peach .curve { display: block; width: 100%; margin-top: 10px; }

/* charts */
.chart-svg.pills { display: block; width: 100%; height: auto; }
.chart-svg.pills text { paint-order: normal; stroke: none; }
.donut-wrap { display: grid; place-items: center; padding: 4px 0; }
.donut { width: min(220px, 100%); height: auto; }
.chart-svg:not(.pills) text { stroke: var(--halo, var(--sheet)); }

/* needs-you: an activity list in a white card */
.plate { padding: 20px 22px 10px; }
.plate .dec { background: transparent; border: 0; border-top: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 12px 2px; grid-template-columns: 44px minmax(0, 1fr) auto; }
.plate .dec:first-child { border-top: 0; }
.dthumb { width: 44px; height: 44px; border-radius: 50%; }
.dthumb.ico { background: var(--lav-1); color: var(--lav-ink); box-shadow: none; }
.dt { font-size: 14.5px; font-weight: 500; }
.dm { font-size: 13px; }
.dm .amt { font-weight: 600; }
.plate-h { padding-bottom: 6px; }
.plate h2 { font-size: 16px; font-weight: 500; }
.g-need { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; box-shadow: none; }
.g-need b { font-size: 16px; }
.plate.slim { padding: 18px 22px 8px; }
.panel-dec.plate { padding: 22px; }

/* tables like the reference's product table */
table.grid thead th { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); border-bottom: 0; padding-bottom: 10px; }
table.grid tbody th, table.grid td { border-bottom: 0; padding: 10px 14px 10px 0; font-size: 14.5px; }
table.grid tbody th { font-weight: 500; }
.who { display: inline-flex; align-items: center; gap: 12px; }
.who .av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sheet-2); color: var(--ink-2); flex: none; }
.who .av .ic { width: 18px; height: 18px; }
.who b { display: block; font-weight: 500; }
.who small { display: block; font-size: 12.5px; color: var(--ink-3); }
.nums li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.nums li:first-child { border-top: 0; padding-top: 2px; }
.nums b { display: block; font-weight: 500; }
.nums small { display: block; font-size: 12.5px; color: var(--ink-3); }
.nums .nv { display: inline-flex; align-items: baseline; gap: 8px; } .nums .nv b { font-size: 22px; font-weight: 600; }
.block-btn { width: 100%; height: 54px; border-radius: 16px; font-size: 14.5px; font-weight: 500; text-decoration: none; }

/* controls in the reference's pill language */
.btn { border-radius: 999px; font-weight: 500; height: 38px; padding: 0 16px; }
.btn.sm { border-radius: 999px; height: 32px; padding: 0 13px; }
.btn.lg { border-radius: 14px; }
.btn.primary { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.primary:hover { background: #33343C; }
.btn.sign { font-weight: 500; }
.seg { border-radius: 999px; padding: 4px; }
.seg button { border-radius: 999px; font-weight: 500; }
.chip, .key { border-radius: 999px; font-weight: 500; }
input:not([type=checkbox]), select, textarea { border-radius: 12px; }
.search, .big-input { border-radius: 999px; }
.st { font-weight: 500; }
.el { border-radius: 50%; }
.el b { font-weight: 600; }
.el.lg { border-radius: 50%; }
.sec small, .fine { color: var(--ink-3); }
.metric { border-radius: 22px; }
.mv, .fig { font-weight: 600; }
.ev { border-radius: 8px; }
.ev b { font-family: var(--sans); font-weight: 600; }
.gaps .when { border-radius: 14px; background: var(--sheet-2); box-shadow: none; }
.gaps li.gap .when b { color: var(--ink); }
.queue li button[aria-current] { border-color: var(--dark); }
.r-row.on { background: var(--lav-1); box-shadow: none; }
.dn b { font-family: var(--sans); }
.day.today .dn b { background: var(--dark); }
.dialog.drawer { border-radius: 24px; }
.mock { border-radius: 16px; }
.msg.u { border-radius: 20px 20px 6px 20px; border: 0; }
.msg.a { border-radius: 20px; border: 0; }
.composer { border-radius: 20px; border: 0; }
.sug li button { border-radius: 16px; border: 0; box-shadow: var(--shadow-1); }
.kcol { border-radius: 20px; }
.kcard { border-radius: 14px; border: 0; }
.tile, .best button { border-radius: 20px; border: 0; }
.conns li, .figs > div, .notebox { border-radius: 16px; }
.toast { border-radius: 16px; }

/* phone: the rail becomes a floating dark dock */
@media (max-width: 1060px) { .app { grid-template-columns: 92px minmax(0, 1fr); } .g-8-4, .g-4-4-4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .app { display: block; }
  .rail { display: none; }
  .demo-bar { margin: 0; border-radius: 0; }
  .mbar { background: var(--ground); border-bottom: 0; }
  .mbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
  .mbar .brand img { border-radius: 9px; }
  .signs { background: var(--dark); color: #fff; }
  #screens { padding: 8px 14px 40px; }
  .top-acts { display: none; }
  .head h1, .ctool h1 { font-size: 24px; }
  .card, .block, .plate { padding: 16px; border-radius: 20px; }
  div.grid { gap: 14px; margin-top: 14px; }
  .big b { font-size: 28px; }
  .dock { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px; padding: 0 6px; border-radius: 22px; background: var(--side); border: 0; box-shadow: var(--shadow-2); }
  .dock a, .dock button { color: #B7B8C2; }
  .dock [aria-current] { color: #fff; }
  .dock [aria-current]::before { background: #fff; }
  .dock .n { background: var(--lav-3); color: #fff; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .acts { bottom: calc(80px + env(safe-area-inset-bottom)); border-radius: 18px; left: 12px; right: 12px; border: 0; box-shadow: var(--shadow-2); }
  .compose-wrap { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .plate .dec { grid-template-columns: 40px minmax(0, 1fr); }
}
.card.dark .joined { margin-top: 26px; margin-bottom: 8px; }
.card.dark .hist { width: 100%; height: 56px; }
.card.dark .hist rect { fill: #4A4B55; } .card.dark .hist rect:nth-last-child(2) { fill: #fff; } .card.dark .hist rect.now { fill: none; stroke: #8E909B; }
.plate .dec.need { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 760px) { .plate .dec.need { grid-template-columns: minmax(0, 1fr); } }
#nav a .n, .circ .dot-n, .dock .n { background: var(--need); color: var(--need-ink); }
#nav a .n.soft { background: #3A3B44; color: #E4E4EA; }
.day.today .dn b { background: var(--ink); color: var(--sheet); }

/* the rest of the site in the reference palette: lavender, black, peach, hatching; red and green only as small marks */
.k-start { --k: var(--lav-2); } .k-prep { --k: var(--c6); } .k-mocks { --k: var(--c3); } .k-exams { --k: var(--lav-3); } .k-results { --k: var(--c2); } .k-deadline { --k: var(--c4); } .k-applications { --k: var(--c5); }
.ym-band { box-shadow: none; background: color-mix(in srgb, var(--k) 26%, var(--sheet)); }
.ymap { --pr: 200px; }
.r-bar { box-shadow: none; border: 0; }
.r-bar.h-behind { background: repeating-linear-gradient(-45deg, var(--lav-2) 0 3px, var(--lav-1) 3px 7px); }
.r-lab small.h-behind { color: var(--pen); } .r-lab small.h-met { color: var(--ink); }
.road-key .rk-behind i { background: repeating-linear-gradient(-45deg, var(--lav-2) 0 2px, var(--lav-1) 2px 4px); }
.propbar.lg i { box-shadow: none; }
.meter.role i { background: var(--lav-3); }
.meter i { background: var(--lav-3); } .meter.warn i { background: var(--dark); }
.track .fill { background: var(--lav-3); } .track .fill.met { background: var(--dark); } .track .fill.behind { background: repeating-linear-gradient(-45deg, var(--lav-2) 0 3px, var(--lav-1) 3px 7px); }
.card.dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--shadow-1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); } }
:root[data-theme="dark"] .card.dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.el.sm, .feed .el, .steps .el, .rh .el { width: 28px; height: 28px; border-radius: 50%; box-shadow: none; }
.el.sm b, .feed .el b, .steps .el b { font-size: 11.5px; }
.feed li { grid-template-columns: 28px minmax(0, 1fr); }
.ctool { flex-wrap: wrap; } .ctool h1 { min-width: 0; } .ctool .top-acts { margin-left: auto; }
.screen#s-chat { max-width: none; } .chatwrap { max-width: 860px; margin: 0 auto; }
.dh input.t { text-overflow: ellipsis; }
.tabs-cap { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.sheet-links a .ic { width: 20px; height: 20px; color: var(--ink-2); }
.remarks li, td.remark, .remark-i { color: var(--ink-2); }
.chip-static .ic { width: 14px; height: 14px; margin-left: 6px; }
.split-key .o, .c-key i.o { background: transparent; }
@media (max-width: 760px) {
  table.tbl th:nth-child(2), table.tbl td:nth-child(2), table.tbl th:nth-child(5), table.tbl td:nth-child(5) { display: none; }
  table.tbl .who small { display: none; }
  .c-head { flex-wrap: wrap; } .c-head .c-key { order: 3; width: 100%; }
}
.k-deadline { --k: var(--lav-3); } .k-mocks { --k: var(--c2); } .k-exams { --k: var(--c5); }
.r-bar.h-behind { background: repeating-linear-gradient(-45deg, var(--dark) 0 3px, #4A4B55 3px 7px); }
.road-key .rk-behind i { background: repeating-linear-gradient(-45deg, var(--dark) 0 2px, #4A4B55 2px 4px); }
.track .fill.behind { background: repeating-linear-gradient(-45deg, var(--dark) 0 3px, #4A4B55 3px 7px); } .track .fill.met { background: var(--lav-2); }
/* calendar header: title and the global circles on one row, controls below */
.ctool h1 { order: 0; } .ctool .top-acts { order: 0; margin-left: auto; }
.ctool > :not(h1):not(.top-acts) { order: 2; }
.ctool::after { content: ""; flex-basis: 100%; order: 1; height: 0; }
@media (max-width: 760px) { .ctool::after { display: none; } }
.card.grad .mini { margin-top: 18px; }
.k-results { --k: var(--c3); } .k-applications { --k: var(--c7); }


/* ==============================================================
   REFERENCE DASHBOARD LANGUAGE (image.png EXACT FIT)
   ============================================================== */

/* Layout & Canvas */
body {
  background: #F3F4F7;
  color: #18191E;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.app {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 100vh;
  background: #F3F4F7;
}

/* Floating Rail Sidebar */
.rail {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 14px;
  border-radius: 24px;
  background: #18191E;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  box-sizing: border-box;
}
.rail-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  text-decoration: none;
}
.rail-asterisk {
  display: block;
}
#nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  width: 100%;
}
#nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #8E92A0;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 0;
}
#nav a:hover {
  background: #25262E;
  color: #FFFFFF;
}
#nav a[aria-current="page"] {
  background: #25262E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#nav a[aria-current="page"] .ic {
  stroke: #CDC6F1;
}
#nav a .n {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #7367F0;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  text-align: center;
  box-shadow: 0 0 0 2.5px #18191E;
}
.rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  width: 100%;
}
.rail-foot a, .rail-foot button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #8E92A0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.rail-foot a:hover, .rail-foot button:hover {
  background: #25262E;
  color: #FFFFFF;
}
.rail-logout {
  background: #25262E !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
}
.rail-logout:hover {
  background: #32333D !important;
}

/* Header */
#screens {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 64px 24px;
  box-sizing: border-box;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 24px;
}
.head-t h1 {
  font-size: 28px;
  font-weight: 700;
  color: #15161A;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.meta-line {
  font-size: 14px;
  color: #8E92A0;
  margin-top: 4px;
  font-weight: 400;
}
.top-acts {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-acts .circ {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #18191E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.top-acts .circ:hover {
  background: #F8F9FA;
  transform: translateY(-1px);
}
.top-acts .circ .ic {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}
.top-acts .circ .dot-green {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 2px #FFFFFF;
}
.top-acts .avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid #FFFFFF;
  cursor: pointer;
  display: block;
}
.top-acts .avatar-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Demo Banner as sleek pill */
.demo-bar {
  margin: 12px 32px 0 24px;
  padding: 7px 18px;
  border-radius: 999px;
  background: #EEEBFB;
  color: #5B4FB8;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid #CDC6F1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(91, 79, 184, 0.05);
}

/* Overview 2-Column Grid */
.grid-overview {
  display: grid;
  grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
  gap: 24px;
  align-items: start;
}
.col-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.col-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.row-mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Universal Card System */
.card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  box-sizing: border-box;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-head h2 {
  font-size: 16px;
  font-weight: 600;
  color: #18191E;
  margin: 0;
}
.card-head .drag-dots {
  color: #8E92A0;
  display: flex;
  align-items: center;
  cursor: grab;
}
.card-head .drag-dots .ic {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}
.card-head .arrow-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: #18191E;
  text-decoration: none;
  transition: background 0.15s;
}
.card-head .arrow-btn:hover {
  background: #F3F4F7;
}
.card-head .arrow-btn .ic {
  width: 16px;
  height: 16px;
}

/* Sales Analytics Card */
.sales-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #8E92A0;
  margin-left: auto;
  margin-right: 18px;
}
.sales-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot-hollow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #8B7FD6;
  display: inline-block;
  box-sizing: border-box;
}
.dot-solid {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8B7FD6;
  display: inline-block;
}
.pill-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #E1E2E8;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  color: #18191E;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.pill-select:hover {
  background: #F8F9FA;
}
.pill-select .ic {
  width: 14px;
  height: 14px;
  color: #8E92A0;
}

/* Donut Card */
.donut-center {
  display: grid;
  place-items: center;
  padding: 4px 0 10px;
}
.donut-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: #8E92A0;
  margin-top: 6px;
}
.donut-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Last Activity Card */
.act-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.act-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 3px 0;
  border-radius: 10px;
  transition: background 0.15s;
  cursor: pointer;
}
.act-row:hover {
  background: #F8F9FA;
  margin: 0 -6px;
  padding: 3px 6px;
}
.act-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.act-av img {
  width: 100%;
  height: 100%;
  display: block;
}
.act-main {
  flex: 1;
  min-width: 0;
}
.act-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #18191E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 1px;
}
.act-status.paid {
  color: #16A34A;
}
.act-status.refund {
  color: #E11D48;
}
.act-id {
  font-size: 13px;
  color: #8E92A0;
  min-width: 65px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.act-amt {
  font-size: 13.5px;
  font-weight: 600;
  color: #18191E;
  min-width: 65px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.act-thumbs {
  margin-left: 6px;
  flex-shrink: 0;
}
.act-thumbs img {
  display: block;
}

/* Product Sales Table */
.table-products {
  width: 100%;
  border-collapse: collapse;
  font-family: inherit;
}
.table-products th {
  font-size: 12.5px;
  font-weight: 500;
  color: #8E92A0;
  text-align: left;
  padding: 0 10px 14px 0;
  border: 0;
}
.table-products th.r, .table-products td.items-sold {
  text-align: right;
}
.table-products td {
  font-size: 13.5px;
  color: #18191E;
  padding: 12px 10px 12px 0;
  border: 0;
  vertical-align: middle;
}
.table-products tr {
  cursor: pointer;
  transition: background 0.15s;
}
.table-products tbody tr:hover {
  background: #F8F9FA;
}
.prod-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prod-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.prod-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}
.prod-name {
  font-size: 14px;
  font-weight: 600;
  color: #18191E;
}
.old-price {
  color: #8E92A0;
}
.sale-tag {
  color: #16A34A;
  font-weight: 600;
}
.new-price {
  font-weight: 600;
  color: #18191E;
}
.items-sold {
  font-weight: 600;
  color: #18191E;
}

/* Side Column Stat Cards */
.stat-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.stat-num {
  font-size: 34px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-num.dark {
  color: #18191E;
}
.stat-sub {
  font-size: 13px;
  color: #8E92A0;
  margin: 0 0 16px;
}
.stat-sub.dark {
  color: #7A6A60;
}
.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #22C55E;
}
.badge-green .ic {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}
.badge-trans {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-trans .ic {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

/* Split Progress Bar on Dark Card */
.split-progress {
  display: flex;
  gap: 8px;
  height: 46px;
  margin: 18px 0 12px;
}
.split-hatched {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  background: repeating-linear-gradient(-45deg, #3A3B44 0 3px, #2A2B32 3px 7px);
  box-shadow: inset 0 0 0 1px #4A4B55;
}
.split-solid {
  background: #FFFFFF;
  color: #18191E;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.split-legend {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8E92A0;
}
.split-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.split-legend .dot-hollow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #8E92A0;
  display: inline-block;
}
.split-legend .dot-solid {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
}

/* Card Skins */
.card.card-customers {
  background: #18191E;
  color: #FFFFFF;
  border: 0;
}
.card.card-customers h2 {
  color: #FFFFFF;
}
.card.card-revenue {
  background: linear-gradient(135deg, #7A88B8 0%, #B4A0BD 50%, #C4AEAF 100%);
  color: #FFFFFF;
  border: 0;
}
.card.card-revenue h2 {
  color: #FFFFFF;
}
.card.card-orders {
  background: linear-gradient(135deg, #FDECE4 0%, #F5D3C4 100%);
  color: #18191E;
  border: 0;
}
.card.card-orders h2 {
  color: #18191E;
}

/* Action Button */
.btn-export-stats {
  width: 100%;
  height: 50px;
  background: #18191E;
  color: #FFFFFF;
  border: 0;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-export-stats:hover {
  background: #26272E;
  transform: translateY(-1px);
}
.btn-export-stats .ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .grid-overview {
    grid-template-columns: 1fr;
  }
  .row-mid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .rail {
    display: none;
  }
  #screens {
    padding: 12px 16px 80px;
  }
}


/* ==========================================================================
   UNIFIED REFERENCE DESIGN SYSTEM (across all screens & components)
   ========================================================================== */

#screens {
  background: #F4F5F9;
  min-height: 100vh;
}
.screen {
  max-width: 1360px;
  margin: 0 auto;
}

.head {
  margin-bottom: 24px;
}
.head-t h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #18191E;
  margin: 0 0 4px;
}
.meta-line {
  font-size: 13.5px;
  color: #8C8E9B;
  font-weight: 400;
  margin: 0;
}

.card, .block, .plate.slim {
  background: #FFFFFF;
  border-radius: 20px;
  border: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease;
}
.c-head h2, .block > .sec h2, .plate-h h2 {
  font-size: 17px;
  font-weight: 600;
  color: #18191E;
  letter-spacing: -0.01em;
}

.plate.slim {
  padding: 22px 24px 20px;
  margin-bottom: 24px;
}
.plate.slim .plate-h {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
}
.plate.slim .el.g-need {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18191E;
  color: #FFFFFF;
  display: inline-grid;
  place-items: center;
}
.plate.slim .el.g-need b {
  font-size: 13.5px;
  font-weight: 600;
}
.decs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dec.need {
  background: #FAFBFD;
  border: 1px solid #ECEEF2;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.15s ease;
}
.dec.need:hover {
  background: #F4F6FA;
  border-color: #DDE1E6;
}
.dec.need .dt {
  font-size: 14px;
  font-weight: 600;
  color: #18191E;
}
.dec.need .dm {
  font-size: 12.5px;
  color: #8C8E9B;
  margin-top: 3px;
}
.dec.need .dact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dec.need .btn.sm {
  border-radius: 999px;
  height: 34px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  background: #FFFFFF;
  border: 1px solid #DDE1E6;
  color: #18191E;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}
.dec.need .btn.sm:hover {
  background: #18191E;
  color: #FFFFFF;
  border-color: #18191E;
}

.deck {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.qcol {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.colh {
  font-size: 15px;
  font-weight: 600;
  color: #18191E;
  margin: 0 0 14px;
}
.queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.queue li button {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 14px 16px;
  background: #FAFBFD;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.queue li button:hover {
  background: #F4F6FA;
  border-color: #E2E5EB;
}
.queue li button[aria-current] {
  background: #FFFFFF;
  border-color: #18191E;
  box-shadow: 0 4px 14px rgba(24, 25, 30, 0.07);
}
.queue b {
  font-size: 13.5px;
  font-weight: 600;
  color: #18191E;
  line-height: 1.35;
}
.queue .qk {
  font-size: 12px;
  font-weight: 600;
  color: #5B3CC4;
}
.queue .qm {
  font-size: 12px;
  color: #8C8E9B;
}

.stage {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-in {
  width: 100%;
  max-width: 520px;
}

.panel-dec {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-dec h2 {
  font-size: 18px;
  font-weight: 600;
  color: #18191E;
  margin: 0;
  line-height: 1.3;
}
.panel-dec .acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.panel-dec .acts .btn.sign {
  width: 100%;
  height: 48px;
  background: #18191E;
  color: #FFFFFF;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 25, 30, 0.12);
  transition: all 0.15s ease;
}
.panel-dec .acts .btn.sign:hover {
  background: #2A2B32;
  transform: translateY(-1px);
}
.panel-dec .acts .btn.pen {
  width: 100%;
  height: 48px;
  background: #F4F5F8;
  color: #D92D20;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.panel-dec .acts .btn.pen:hover {
  background: #FEE4E2;
}
.keys-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #8C8E9B;
  margin: 0;
}
.keys-hint kbd {
  background: #F4F5F8;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #5B6878;
}

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.hist-list .hrow {
  display: grid;
  grid-template-columns: 110px 60px minmax(0, 1fr) 90px 70px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  transition: background 0.15s ease;
}
.hist-list .hrow:hover {
  background: #FAFBFD;
}

table.grid {
  width: 100%;
  border-collapse: collapse;
}
table.grid thead th {
  font-size: 12.5px;
  font-weight: 500;
  color: #8C8E9B;
  text-transform: none;
  border-bottom: 1px solid #F0F2F6;
  padding: 14px 18px;
  text-align: left;
}
table.grid thead th.r {
  text-align: right;
}
table.grid tbody td, table.grid tbody th {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #18191E;
  border-bottom: 1px solid #F4F5F8;
  vertical-align: middle;
}
table.grid tbody tr {
  transition: background 0.15s ease;
}
table.grid tbody tr:hover {
  background: #F9FAFC;
}
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th {
  border-bottom: 0;
}

.seg {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E6E8EC;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.seg button {
  border-radius: 999px;
  height: 32px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: #5B6878;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.seg button:hover {
  color: #18191E;
}
.seg button[aria-pressed="true"] {
  background: #18191E;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(24, 25, 30, 0.12);
}

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E6E8EC;
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.search input {
  border: 0;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: #18191E;
  outline: none;
  width: 160px;
}
.search .ic {
  width: 15px;
  height: 15px;
  color: #8C8E9B;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.st.is-active, .st.is-done, .st.is-completed, .st.is-executed {
  background: #ECE7F6;
  color: #5B3CC4;
}
.st.is-paused, .st.is-pending, .st.is-queued {
  background: #FEF6EE;
  color: #B54708;
}
.st.is-rejected, .st.is-failed, .st.is-cancelled {
  background: #FEE4E2;
  color: #D92D20;
}
.st.is-planned, .st.is-draft {
  background: #F2F4F7;
  color: #344054;
}

.best {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.best li button {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid #ECEEF2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  width: 100%;
  cursor: pointer;
}
.best li button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #DDE1E6;
}
.best img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.best .rank {
  border-radius: 8px;
  background: #18191E;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.tile {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px;
  border: 1px solid #ECEEF2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #DDE1E6;
}
.tile img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.roster {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roster > li {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid #F0F2F6;
  display: grid;
  grid-template-columns: 280px 220px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 24px;
}
.rh h2 {
  font-size: 16px;
  font-weight: 600;
  color: #18191E;
  margin: 0;
}
.rh .note {
  font-size: 12.5px;
  color: #8C8E9B;
  margin: 2px 0 0;
  line-height: 1.35;
}

.kan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.kcol {
  background: #FAFBFD;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #ECEEF2;
}
.kcard {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #E6E8EC;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-top: 10px;
  transition: transform 0.15s ease;
}
.kcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card.dark,
.card.card-customers {
  background: #18191E !important;
  color: #FFFFFF !important;
}
.card.dark h2,
.card.dark .c-head h2,
.card.card-customers h2,
.card.card-customers .c-head h2,
.card.card-revenue h2,
.card.card-revenue .c-head h2 {
  color: #FFFFFF !important;
}
.card.dark .c-sub,
.card.card-customers .c-sub,
.card.card-revenue .c-sub {
  color: rgba(255, 255, 255, 0.72) !important;
}
.card.dark .split-key,
.card.card-customers .split-key {
  color: rgba(255, 255, 255, 0.85) !important;
}

.btn-chat-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #18191E;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(24, 25, 30, 0.15);
  transition: all 0.15s ease;
  margin-right: 4px;
}
.btn-chat-header:hover {
  background: #2A2B32;
  transform: translateY(-1px);
}
.btn-chat-header .ic {
  width: 15px;
  height: 15px;
  stroke: #FFFFFF;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE FRIENDLY DESIGN (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }
  .app {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .rail {
    display: none !important;
  }
  #screens {
    padding: 10px 14px calc(96px + env(safe-area-inset-bottom)) !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .screen {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Compact demo bar */
  .demo-bar {
    margin: 6px 12px 6px !important;
    padding: 8px 14px !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    border-radius: 14px !important;
    text-align: left !important;
  }

  /* Sticky mobile bar */
  .mbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 52px !important;
    padding: 0 14px !important;
    background: rgba(244, 245, 249, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
  .mbar .brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #18191E !important;
    font-size: 16px !important;
    font-weight: 700 !important;
  }
  .mbar .brand img {
    border-radius: 8px !important;
  }
  .mbar .signs {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #18191E !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  /* Screen Header: full width for title & subtitle without squeezed vertical text */
  .head {
    display: block !important;
    margin-bottom: 16px !important;
  }
  .head .top-acts,
  .ctool .top-acts {
    display: none !important;
  }
  .head-t {
    width: 100% !important;
  }
  .head-t h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
    color: #18191E !important;
    line-height: 1.25 !important;
  }
  .meta-line {
    font-size: 12.5px !important;
    color: #8C8E9B !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  /* Cards & Blocks */
  .card, .block, .plate.slim {
    padding: 16px !important;
    border-radius: 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.02) !important;
  }
  .c-head h2, .card-head h2, .block > .sec h2, .plate-h h2 {
    font-size: 16px !important;
  }

  /* Overview Screen layout */
  .grid-overview {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .col-main, .col-side {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .row-mid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  /* Student Acquisition Card */
  .c-analytics .card-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .sales-legend {
    margin: 0 !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    font-size: 11.5px !important;
  }
  .pill-select {
    align-self: flex-start !important;
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  .chart-svg.pills {
    width: 100% !important;
    height: auto !important;
    min-height: 160px !important;
    display: block !important;
  }

  /* Donut Card */
  .c-donut {
    padding: 16px !important;
  }
  .donut-center {
    padding: 6px 0 !important;
  }
  .donut {
    width: 180px !important;
    height: 180px !important;
  }
  .donut-legend {
    flex-wrap: wrap !important;
    gap: 12px !important;
    font-size: 12px !important;
    justify-content: center !important;
  }

  /* Recent Activity */
  .act-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 0 !important;
  }
  .act-av {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }
  .act-main {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .act-name {
    font-size: 13.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .act-status {
    font-size: 11.5px !important;
  }
  .act-id {
    display: none !important;
  }
  .act-amt {
    font-size: 13px !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
  }
  .act-thumbs {
    flex-shrink: 0 !important;
  }
  .act-thumbs img {
    height: 20px !important;
  }

  /* Products & Programs Table */
  .tw, .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    padding-bottom: 6px !important;
    scrollbar-width: thin;
  }
  .table-products {
    min-width: 520px !important;
  }
  .table-products th, .table-products td {
    padding: 8px 10px !important;
    font-size: 12.5px !important;
  }

  /* Side Metrics Cards */
  .big b {
    font-size: 30px !important;
  }
  .split-progress {
    height: 42px !important;
    margin: 12px 0 8px !important;
  }
  .btn-export-stats {
    height: 46px !important;
    font-size: 13.5px !important;
  }

  /* Chat Screen on Mobile */
  .screen#s-chat {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .screen#s-chat .head {
    display: none !important;
  }
  .chatwrap {
    max-width: 100% !important;
  }
  #log {
    padding-bottom: 120px !important;
  }
  .msg.u {
    max-width: 90% !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 16px 16px 4px 16px !important;
  }
  .msg.a {
    padding: 14px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
  }
  .hello h1 {
    font-size: 22px !important;
  }
  .hello > p {
    font-size: 13.5px !important;
  }
  .sug {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .sug li button {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
    border-radius: 14px !important;
  }
  .compose-wrap {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    padding: 6px 0 !important;
    background: transparent !important;
    z-index: 40 !important;
  }
  .composer {
    padding: 6px 8px !important;
    border-radius: 22px !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  .composer textarea {
    font-size: 15px !important;
    padding: 6px 8px !important;
  }
  .composer .btn {
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
  }
  .cmeta {
    display: none !important;
  }

  /* Approvals & Decisions on Mobile */
  .dec.need,
  .plate .dec.need {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }
  .dec.need .dbody {
    width: 100% !important;
  }
  .dec.need .dact {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }
  .dec.need .dact .btn,
  .dec.need .btn.sm {
    flex: 1 1 auto !important;
    height: 38px !important;
    border-radius: 999px !important;
    justify-content: center !important;
    font-size: 13px !important;
  }
  .dact {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .dact .btn {
    flex: 1 !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
  }
  .acts {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    z-index: 45 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  }

  /* Campaigns & Content Screens on Mobile */
  .g-8-4, .g-4-4-4, .band, .charts2 {
    grid-template-columns: 1fr !important;
  }
  .best {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 6px !important;
  }
  .best > * {
    flex: 0 0 240px !important;
    scroll-snap-align: start !important;
  }
  .filters {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .filters .seg {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .filters .seg button {
    flex: 1 0 auto !important;
    height: 34px !important;
    padding: 0 14px !important;
  }
  .filters .search {
    width: 100% !important;
  }
  .filters .search input {
    width: 100% !important;
  }
  .grid.posts {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .dialog.drawer, .dialog.drawer.narrow {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: 0 !important;
  }

  /* Calendar Screen on Mobile */
  .ctool {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .ctool h1 {
    font-size: 22px !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .ctool .cnav {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .ctool .cnav .btn {
    height: 36px !important;
    border-radius: 999px !important;
  }
  .ctool .seg {
    display: flex !important;
  }
  .ctool .seg button {
    height: 36px !important;
    padding: 0 14px !important;
  }
  .ctool select {
    width: 100% !important;
    height: 38px !important;
    border-radius: 999px !important;
  }
  .ctool > .btn {
    flex: 1 1 calc(50% - 6px) !important;
    height: 40px !important;
    border-radius: 999px !important;
    justify-content: center !important;
  }
  .keys {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }
  .keys::-webkit-scrollbar {
    display: none !important;
  }
  .keys .key {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
    border-radius: 999px !important;
  }
  .month {
    font-size: 11px !important;
  }
  .day {
    min-height: 60px !important;
    padding: 3px 2px !important;
  }

  /* Pipeline & Team Screens on Mobile */
  .kan-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 12px !important;
    margin: 0 -14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .kan {
    display: flex !important;
    gap: 12px !important;
    min-width: max-content !important;
  }
  .kcol {
    width: 250px !important;
    flex-shrink: 0 !important;
  }
  .roster > li {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .rh {
    width: 100% !important;
  }
  .rbar {
    width: 100% !important;
  }

  /* Floating Bottom Dock on Mobile */
  .dock {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    height: 62px !important;
    border-radius: 26px !important;
    background: #18191E !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    z-index: 50 !important;
    padding: 0 4px !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .dock a, .dock button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #8E909B !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 6px 0 !important;
    position: relative !important;
  }
  .dock a[aria-current], .dock button[aria-current] {
    color: #FFFFFF !important;
  }
  .dock a[aria-current]::after {
    content: "" !important;
    position: absolute !important;
    bottom: 4px !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
  }
  .dock .ic {
    width: 20px !important;
    height: 20px !important;
  }
  .dock .n {
    position: absolute !important;
    top: 4px !important;
    right: calc(50% - 16px) !important;
    min-width: 17px !important;
    height: 17px !important;
    border-radius: 999px !important;
    background: #8B7FD6 !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
  }
}


/* ===== overview on real data: initials instead of stock avatars, falling metrics ===== */
.act-av.act-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--lav-1); color: var(--lav-ink); font-size: 13px; font-weight: 600; }
.badge-red { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--pen); }
.badge-red .ic { width: 13px; height: 13px; transform: rotate(90deg); }

/* ===== expandable sidebar: icon rail by default, names next to icons when expanded (desktop only) ===== */
.rail-toggle { display: grid; place-items: center; width: 30px; height: 30px; margin: -4px 0 8px; border: 0; border-radius: 9px; background: #25262E; color: #C9CAD2; cursor: pointer; transition: background .15s, color .15s; }
.rail-toggle:hover { background: #32333D; color: #fff; }
.rail-toggle svg { transition: transform .2s; }
@media (min-width: 1061px) {
  html.rail-wide .app { grid-template-columns: 232px minmax(0, 1fr); }
  html.rail-wide .rail { width: 216px; align-items: stretch; padding: 16px 12px 14px; }
  html.rail-wide .rail-logo { align-self: flex-start; margin-left: 4px; }
  html.rail-wide .rail-toggle { position: absolute; top: 22px; right: 12px; margin: 0; }
  html.rail-wide .rail-toggle svg { transform: rotate(180deg); }
  html.rail-wide #nav { align-items: stretch; }
  html.rail-wide #nav a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: auto; height: 44px; padding: 0 12px; }
  html.rail-wide #nav a .tip { position: static; opacity: 1; transform: none; padding: 0; background: none; box-shadow: none; color: inherit; font-size: 14px; font-weight: 500; pointer-events: none; }
  html.rail-wide #nav a .n { position: static; margin-left: auto; box-shadow: none; }
  html.rail-wide .rail-foot { flex-direction: row; justify-content: center; }
}
@media (max-width: 1060px) { .rail-toggle { display: none; } }
