/* ============================================================
   ai45.xyz — dashboard (index.html)
   Builds on site.css tokens. Layout: hero frame (greeting, next-test
   ring, today's plan) → app launcher → 12-column bento of glass
   cards. Every card gets a pointer-following light (--mx/--my from
   dashboard.js). Motion is transform/opacity only.
   ============================================================ */

/* ambient page light behind everything */
body.is-dash { background: var(--navy); }
body.is-dash::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -8%, color-mix(in srgb, var(--orange) 13%, transparent), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(155,114,203,.12), transparent 60%),
    radial-gradient(900px 700px at 40% 110%, rgba(42,163,177,.08), transparent 60%);
}
body.is-dash::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(var(--fg-rgb), .07) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.dash { max-width: 1320px; margin: 0 auto; padding: 100px 36px 24px; min-height: 80vh; }
.dash-loading { padding: 140px 0; text-align: center; font-size: 11px; color: var(--faint); }
.eyebrow { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.faint { color: var(--faint); } .muted { color: var(--muted); }
.warn { color: var(--orange); font-weight: 600; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sand); white-space: nowrap; transition: color .2s, gap .25s var(--ease); }
.link .ic { width: 15px; height: 15px; }
.link:hover { color: var(--paper); gap: 9px; }
.btn-p, .btn-g { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--ease), filter .2s, background-color .2s, border-color .2s, color .2s; }
.btn-p { background: linear-gradient(135deg, var(--accent-hi), var(--orange)); color: var(--on-accent); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--orange) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-p:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-g { border: 1px solid rgba(var(--fg-rgb), .16); color: var(--paper); background: rgba(var(--fg-rgb), .04); }
.btn-g:hover { border-color: rgba(var(--fg-rgb), .32); background: rgba(var(--fg-rgb), .08); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: rgba(var(--fg-rgb), .05); border: 1px solid rgba(var(--fg-rgb), .1); }
.chip .ic { width: 14px; height: 14px; }
a.chip:hover { color: var(--paper); border-color: rgba(var(--fg-rgb), .25); }
.chip--warn { color: var(--on-accent); background: linear-gradient(135deg, var(--sand), var(--orange)); border-color: transparent; font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 38px 40px 0;
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 55%, var(--surface-2) 100%);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(var(--fg-rgb), .08);
}
/* animated gradient border */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(var(--fg-rgb), .08), color-mix(in srgb, var(--orange) 70%, transparent), rgba(155,114,203,.6), rgba(42,163,177,.5), rgba(var(--fg-rgb), .08) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 14s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__glow i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero__glow i:nth-child(1) { width: 520px; height: 420px; left: -140px; top: -200px; background: color-mix(in srgb, var(--orange) 38%, transparent); animation: glow-a 18s ease-in-out infinite alternate; }
.hero__glow i:nth-child(2) { width: 560px; height: 460px; right: -160px; top: -120px; background: rgba(155,114,203,.32); animation: glow-b 22s ease-in-out infinite alternate; }
.hero__glow i:nth-child(3) { width: 600px; height: 380px; left: 30%; bottom: -260px; background: rgba(16,163,127,.2); animation: glow-c 26s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(180px, 60px) scale(1.15); } }
@keyframes glow-b { to { transform: translate(-160px, 80px) scale(.9); } }
@keyframes glow-c { to { transform: translate(-120px, -60px) scale(1.1); } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 36px; align-items: stretch; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(var(--fg-rgb), .06); border: 1px solid rgba(var(--fg-rgb), .1); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero__eyebrow .ic { width: 15px; height: 15px; color: var(--sand); }
.hero__eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.hero__title { margin-top: 22px; font-size: clamp(36px, 4.8vw, 62px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hero__title b { font-weight: 600; background: linear-gradient(100deg, var(--sand) 0%, var(--orange) 55%, #D96570 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title span { display: block; margin-top: 6px; font-size: .52em; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.hero__sub { margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hero__sub b { color: var(--paper); font-weight: 600; }
.hero__sub .sep { margin: 0 9px; color: var(--faint); }
.search { margin-top: 24px; width: min(520px, 100%); height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 18px; border-radius: 16px; text-align: left; color: var(--faint); font-size: 15px; background: rgba(var(--well-rgb), calc(.45 * var(--well-k))); border: 1px solid rgba(var(--fg-rgb), .1); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), .04); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.search:hover { border-color: rgba(var(--fg-rgb), .24); background: rgba(var(--well-rgb), calc(.6 * var(--well-k))); }
.search span { flex: 1; }
.search kbd { font-family: var(--font-mono); font-size: 11px; padding: 5px 9px; border-radius: 8px; background: rgba(var(--fg-rgb), .07); border: 1px solid rgba(var(--fg-rgb), .1); color: var(--muted); }
.subjs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.subj { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: rgba(var(--fg-rgb), .045); border: 1px solid rgba(var(--fg-rgb), .08); }
.subj em { font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; padding: 3px 6px; border-radius: 999px; background: rgba(var(--fg-rgb), .1); color: var(--paper); }
.subj--hl em { background: var(--sand); color: var(--on-accent); }
.guest { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(var(--well-rgb), calc(.4 * var(--well-k))); border: 1px solid rgba(var(--fg-rgb), .1); font-size: 14px; line-height: 1.5; color: var(--muted); }
.guest span { flex: 1 1 260px; }
.guest b { color: var(--paper); }
.guest .btn-p, .guest .btn-g { height: 40px; padding: 0 18px; font-size: 13.5px; }

/* next-test panel */
.next { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 26px; background: linear-gradient(160deg, rgba(var(--fg-rgb), .08), rgba(var(--fg-rgb), .02)); border: 1px solid rgba(var(--fg-rgb), .1); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), .1); }
.next__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.next__date { font-size: 13px; font-weight: 600; color: var(--paper); }
.next__body { display: flex; align-items: center; gap: 22px; }
.next__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.next__goal { width: 100%; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.next__goal i { flex: 1; height: 6px; border-radius: 999px; background: rgba(var(--fg-rgb), .08); overflow: hidden; }
.next__goal em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6C8FE8, var(--orange)); transform-origin: left; animation: grow 1.2s var(--ease) .3s both; }
.next__also { display: flex; flex-wrap: wrap; gap: 6px; }
.next__also span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; padding: 4px 8px; border-radius: 7px; background: rgba(var(--fg-rgb), .05); color: var(--muted); }
.next__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--paper); background: rgba(var(--fg-rgb), .07); border: 1px solid rgba(var(--fg-rgb), .12); transition: background-color .2s, gap .25s var(--ease); }
.next__cta:hover { background: rgba(var(--fg-rgb), .12); gap: 12px; }
.next__cta .ic { width: 15px; height: 15px; }
.clock { display: flex; gap: 6px; }
.clock span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 7px 6px 5px; border-radius: 11px; background: rgba(var(--well-rgb), calc(.5 * var(--well-k))); border: 1px solid rgba(var(--fg-rgb), .08); }
.clock b { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.clock i { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* rings */
.ring { position: relative; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__p { animation: ring-in 1.4s var(--ease) .15s both; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--orange) 35%, transparent)); }
@keyframes ring-in { from { stroke-dashoffset: var(--len); } }
.ring__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.ring__in b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.next .ring__in b { font-size: 50px; letter-spacing: -0.04em; }
.next .ring__in > span { margin-top: 6px; max-width: 96px; font-size: 11.5px; line-height: 1.25; color: var(--muted); }

/* today's plan */
.plan { margin: 30px -40px 0; padding: 18px 40px 26px; border-top: 1px solid rgba(var(--fg-rgb), .07); background: rgba(var(--well-rgb), calc(.28 * var(--well-k))); }
.plan__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.plan__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan__i { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-align: left; background: rgba(var(--fg-rgb), .045); border: 1px solid rgba(var(--fg-rgb), .08); transition: transform .25s var(--ease), border-color .2s, background-color .2s; animation: rise .6s var(--ease) both; animation-delay: calc(.25s + var(--i) * 70ms); }
.plan__i:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, #fff) 45%, transparent); background: rgba(var(--fg-rgb), .07); }
.plan__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0F121B)); box-shadow: 0 8px 20px -8px var(--c), inset 0 1px 0 rgba(255,255,255,.25); }
.plan__txt { flex: 1; min-width: 0; }
.plan__txt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan__txt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan__go { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.plan__i:hover .plan__go { transform: translateX(3px); color: var(--paper); }
.tbtn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(var(--fg-rgb), .05); border: 1px solid rgba(var(--fg-rgb), .1); transition: color .2s, border-color .2s; }
.tbtn .ic { width: 15px; height: 15px; }
.tbtn:hover { color: var(--paper); border-color: rgba(var(--fg-rgb), .25); }
.cust { position: relative; }
.cust__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 250px; padding: 8px; border-radius: 16px; background: rgba(var(--glass2-rgb), .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(var(--fg-rgb), .12); box-shadow: 0 24px 60px rgba(0,0,0,.5); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.cust.is-open .cust__menu { opacity: 1; transform: none; pointer-events: auto; }
.cust__menu label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.cust__menu label:hover { background: rgba(var(--fg-rgb), .06); }
.cust__menu input { accent-color: var(--orange); width: 16px; height: 16px; }
.cust__edit + .cust__edit { border-top: 0; margin-top: 0; }
.cust__edit { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 10px; border-top: 1px solid rgba(var(--fg-rgb), .08); font-size: 13px; font-weight: 600; color: var(--sand); }

/* ============================================================
   LAUNCHER
   ============================================================ */
.apps { margin: 18px 0 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px 14px; border-radius: 20px; background: rgba(var(--fg-rgb), .03); border: 1px solid rgba(var(--fg-rgb), .06); transition: transform .3s var(--ease), background-color .2s, border-color .2s; animation: rise .6s var(--ease) both; animation-delay: calc(.15s + var(--i) * 35ms); }
.app:hover { transform: translateY(-3px); background: rgba(var(--fg-rgb), .06); border-color: rgba(var(--fg-rgb), .14); }
.app__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(140deg, var(--a), var(--b)); box-shadow: 0 10px 24px -10px var(--a), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .35s var(--ease); }
.app__ic .ic { width: 21px; height: 21px; stroke-width: 2; }
.app:hover .app__ic { transform: scale(1.08) rotate(-5deg); }
.app__l { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.app:hover .app__l { color: var(--paper); }

/* ============================================================
   GRID + CARDS
   ============================================================ */
.grid12 { margin-top: 18px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.w4 { grid-column: span 4; } .w5 { grid-column: span 5; } .w6 { grid-column: span 6; } .w7 { grid-column: span 7; } .w8 { grid-column: span 8; } .w12 { grid-column: span 12; }
.wid, .kpi { position: relative; isolation: isolate; min-width: 0; border-radius: 26px; background: linear-gradient(180deg, rgba(var(--fg-rgb), .045), rgba(var(--fg-rgb), .015)) , var(--surface); border: 1px solid rgba(var(--fg-rgb), .07); box-shadow: inset 0 1px 0 rgba(var(--fg-rgb), .05), 0 24px 60px -36px rgba(0,0,0,.8); }
.wid { padding: 24px; animation: rise .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
.wid.is-static { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes grow { from { transform: scaleX(0); } }
/* pointer light */
.wid::after, .kpi::after, .plan__i::after, .rec::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--fg-rgb), .06), transparent 45%); }
.wid:hover::after, .kpi:hover::after, .plan__i:hover::after, .rec:hover::after { opacity: 1; }
.wid__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.wid__tw { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wid__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #0F121B)); box-shadow: 0 8px 22px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.25); }
.wid__t { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.wid__sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.hidden-note { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--faint); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; text-align: center; border-radius: 18px; border: 1px dashed rgba(var(--fg-rgb), .1); }
.empty__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 6px; color: var(--c, var(--orange)); background: color-mix(in srgb, var(--c, var(--orange)) 14%, transparent); }
.empty b { font-size: 14.5px; }
.empty span { max-width: 340px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.empty .btn-p { margin-top: 10px; height: 40px; font-size: 13.5px; }
.empty--l { height: 100%; justify-content: center; }

/* ---------- KPI strip ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { padding: 20px; display: flex; flex-direction: column; gap: 8px; animation: rise .7s var(--ease) both; animation-delay: calc(.2s + var(--k) * 60ms); }
.kpis.is-static .kpi { animation: none; }
.kpi__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi__ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--fg-rgb), .07); }
.kpi__ic .ic { width: 15px; height: 15px; }
.kpi--fire .kpi__ic { color: var(--amber); background: rgba(249,152,47,.15); }
.kpi--goal .kpi__ic { color: var(--c-gem); background: rgba(108,143,232,.15); }
.kpi--todo .kpi__ic { color: var(--c-gpt); background: rgba(16,163,127,.15); }
.kpi__v { display: flex; align-items: baseline; gap: 8px; font-size: 38px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__v small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.kpi__v--s { font-size: 26px; }
.kpi__s { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.kpi__s a { color: var(--sand); font-weight: 600; }
.kpi__row { display: flex; align-items: center; gap: 16px; height: 100%; }
.kpi__row > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i { flex: 1; height: var(--h); border-radius: 3px; background: rgba(var(--fg-rgb), .08); transform-origin: bottom; animation: spark .7s var(--ease) both; animation-delay: calc(.4s + var(--d) * 25ms); }
.spark i.on { background: linear-gradient(180deg, var(--amber), var(--orange)); }
.spark i.today { box-shadow: 0 0 0 1.5px rgba(var(--fg-rgb), .5); }
@keyframes spark { from { transform: scaleY(0); } }
.bar:not(#app-bar) { height: 8px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); overflow: hidden; }
/* (not the site's top bar, #app-bar.bar: this turned every <i> in it, like the inbox badge, into a gradient strip) */
.bar:not(#app-bar) i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6C8FE8, var(--orange)); transform-origin: left; animation: grow 1.1s var(--ease) .35s both; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 5px; background: rgba(var(--fg-rgb), .08); }
.dots i.on { background: var(--c-gpt); }

/* ---------- to-do ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(var(--well-rgb), calc(.45 * var(--well-k))); border: 1px solid rgba(var(--fg-rgb), .07); }
.seg button { white-space: nowrap; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .2s, background-color .2s; }
.seg button:hover { color: var(--paper); }
.seg button.is-on { background: var(--paper); color: var(--surface); }
.seg button span { font-family: var(--font-mono); font-size: 10px; margin-left: 5px; opacity: .65; }
.todo-add { position: relative; display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: rgba(var(--well-rgb), calc(.45 * var(--well-k))); border: 1px solid rgba(var(--fg-rgb), .08); transition: border-color .2s, box-shadow .2s; }
.todo-add:focus-within { border-color: color-mix(in srgb, var(--orange) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 10%, transparent); }
.todo-add__ic { display: grid; place-items: center; width: 34px; color: var(--faint); }
.todo-add input[type=text] { flex: 1; min-width: 0; height: 42px; background: none; border: 0; outline: none; color: var(--paper); font: inherit; font-size: 15px; }
.todo-add input[type=text]::placeholder { color: var(--faint); }
.todo-add input[type=date] { width: 140px; height: 42px; padding: 0 10px; border-radius: 12px; background: rgba(var(--fg-rgb), .05); border: 1px solid rgba(var(--fg-rgb), .07); color: var(--muted); font: inherit; font-size: 12.5px; }
.todo-add button { height: 42px; padding: 0 18px; border-radius: 12px; background: var(--paper); color: var(--surface); font-weight: 700; font-size: 13.5px; transition: transform .2s var(--ease); }
.todo-add button:hover { transform: translateY(-1px); }
.todo-hint { margin: 10px 4px 0; font-size: 12px; color: var(--faint); line-height: 1.8; }
.todo-hint code { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: rgba(var(--fg-rgb), .06); color: var(--muted); }
.tasks { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.task { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 16px; background: rgba(var(--fg-rgb), .025); border: 1px solid rgba(var(--fg-rgb), .06); transition: background-color .2s, border-color .2s, opacity .3s, transform .25s var(--ease); animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.wid.is-static .task { animation: none; }
.task::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.task.is-pri::before { background: var(--orange); }
.task.is-over::before { background: var(--c-gem3); }
.task:hover { background: rgba(var(--fg-rgb), .05); border-color: rgba(var(--fg-rgb), .12); }
.task.is-done { opacity: .45; }
.task.is-done .task__text { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.task.is-leaving { opacity: 0; transform: translateX(16px); }
.chk { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid rgba(var(--fg-rgb), .3); display: grid; place-items: center; transition: all .25s var(--ease); }
.chk:hover { border-color: var(--c-gpt); background: rgba(16,163,127,.12); }
.chk svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease) .05s; }
.task.is-done .chk { background: var(--c-gpt); border-color: var(--c-gpt); transform: scale(1.05); }
.task.is-done .chk svg { stroke-dashoffset: 0; }
.task__text { font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.task__meta { margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.task__due, .task__tag, .task__pri { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 7px; background: rgba(var(--fg-rgb), .05); color: var(--muted); }
.task__due .ic { width: 12px; height: 12px; }
.task.is-soon .task__due { color: var(--sand); background: rgba(234,181,111,.12); }
.task.is-over .task__due { color: #F0A5A0; background: rgba(217,101,112,.14); }
.task__pri { color: var(--orange); background: color-mix(in srgb, var(--orange) 13%, transparent); }
.task__x { width: 30px; height: 30px; border-radius: 9px; color: var(--faint); font-size: 19px; opacity: 0; transition: opacity .15s, color .15s, background-color .15s; }
.task:hover .task__x, .task__x:focus { opacity: 1; }
.task__x:hover { color: #F0A5A0; background: rgba(217,101,112,.12); }

/* ---------- coming up ---------- */
.wkrow { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 10px; }
.wk i { font-style: normal; font-family: var(--font-mono); font-size: 9px; color: var(--faint); }
.wk b { font-size: 13px; font-weight: 600; color: var(--muted); }
.wk em { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.wk.has em { background: var(--c); box-shadow: 0 0 8px var(--c); }
.wk.has b { color: var(--paper); }
.wk.is-today { background: rgba(var(--fg-rgb), .08); }
.wk.is-today b { color: var(--sand); }
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl__i { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; animation: rise .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.wid.is-static .tl__i { animation: none; }
.tl__d { text-align: center; font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); line-height: 1.2; padding: 6px 0; border-radius: 12px; background: rgba(var(--fg-rgb), .04); }
.tl__d b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--paper); }
.tl__card { min-width: 0; padding: 9px 12px; border-radius: 13px; background: rgba(var(--fg-rgb), .025); border-left: 3px solid var(--c); }
.tl__t { font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__s { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__rel { font-family: var(--font-mono); font-size: 10px; color: var(--faint); white-space: nowrap; }

/* ---------- progress ---------- */
.prog { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; }
.skills { display: flex; flex-direction: column; gap: 4px; }
.skills .eyebrow { margin-bottom: 8px; }
.skill { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 62px; gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; transition: background-color .2s; }
.skill:hover { background: rgba(var(--fg-rgb), .04); }
.skill__n { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill__n em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em; color: var(--faint); }
.skill__bar { height: 8px; border-radius: 999px; background: rgba(var(--fg-rgb), .07); overflow: hidden; }
.skill__bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; transform-origin: left; animation: grow 1s var(--ease) both; animation-delay: calc(.35s + var(--i) * 60ms); }
.skill__bar.rw i { background: linear-gradient(90deg, #6C8FE8, #9B72CB); }
.skill__bar.math i { background: linear-gradient(90deg, var(--amber), var(--orange)); }
.skill__v { text-align: right; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.skill__v small { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; color: var(--faint); }
.minis { display: flex; flex-direction: column; gap: 8px; }
.mini { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; background: rgba(var(--fg-rgb), .03); border: 1px solid rgba(var(--fg-rgb), .06); transition: border-color .2s, transform .25s var(--ease); }
.mini:hover { border-color: rgba(var(--fg-rgb), .16); transform: translateX(3px); }
.mini > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.mini > span:last-child b { font-size: 13.5px; color: var(--paper); }
.heat { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(var(--fg-rgb), .06); }
.heat__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.heat__key { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--faint); }
.heat__key i { width: 10px; height: 10px; border-radius: 3px; }
.heat__grid { display: grid; grid-template-rows: repeat(7, auto); grid-template-columns: repeat(var(--wk, 52), minmax(9px, 1fr)); grid-auto-flow: column; gap: 3px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.heat__grid::-webkit-scrollbar { display: none; }
.heat__grid i { aspect-ratio: 1; border-radius: 3px; }
.heat i[data-l="0"] { background: rgba(var(--fg-rgb), .045); }
.heat i[data-l="1"] { background: color-mix(in srgb, var(--orange) 28%, transparent); }
.heat i[data-l="2"] { background: color-mix(in srgb, var(--orange) 50%, transparent); }
.heat i[data-l="3"] { background: color-mix(in srgb, var(--orange) 78%, transparent); }
.heat i[data-l="4"] { background: var(--amber); box-shadow: 0 0 6px rgba(249,152,47,.5); }

/* ---------- what's new ---------- */
.feed { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.feed__feat { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: radial-gradient(400px 220px at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), rgba(var(--fg-rgb), .025); transition: transform .3s var(--ease), border-color .2s; }
.feed__feat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 65%, transparent); }
.feed__art { position: relative; height: 128px; margin-bottom: 4px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, var(--surface)), var(--surface-2) 70%); }
.feed__art i { position: absolute; border-radius: 50%; filter: blur(28px); }
.feed__art i:nth-child(1) { width: 160px; height: 160px; left: -30px; top: -60px; background: var(--c); opacity: .55; animation: glow-a 12s ease-in-out infinite alternate; }
.feed__art i:nth-child(2) { width: 140px; height: 140px; right: -20px; bottom: -70px; background: #9B72CB; opacity: .45; animation: glow-b 14s ease-in-out infinite alternate; }
.feed__art span { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.feed__art .ic { width: 26px; height: 26px; }
.feed__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.feed__kind { padding: 3px 8px; border-radius: 7px; color: var(--on-accent); background: linear-gradient(135deg, var(--sand), var(--orange)); font-weight: 500; }
.feed__t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; }
.feed__d { font-size: 13.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.feed__go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sand); transition: gap .25s var(--ease); }
.feed__go .ic { width: 15px; height: 15px; }
.feed__feat:hover .feed__go { gap: 10px; }
.feed__list { display: flex; flex-direction: column; gap: 6px; }
.fi { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: rgba(var(--fg-rgb), .025); border: 1px solid rgba(var(--fg-rgb), .06); transition: transform .25s var(--ease), border-color .2s, background-color .2s; animation: rise .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.wid.is-static .fi { animation: none; }
.fi:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: rgba(var(--fg-rgb), .045); }
.fi.is-new { border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.fi__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.fi__ic .ic { width: 17px; height: 17px; }
.fi__txt { flex: 1; min-width: 0; }
.fi__txt b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi__txt span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--faint); }
.fi__go { color: var(--faint); }
.fi__go .ic { width: 15px; height: 15px; }
.new { flex: none; font-style: normal; font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; color: #171C2D; background: #7FD3DC; box-shadow: 0 0 12px rgba(127,211,220,.45); }

/* ---------- newsletter ---------- */
.nlw { overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-color: color-mix(in srgb, var(--orange) 30%, transparent);
  background:
    radial-gradient(380px 260px at 100% 0%, color-mix(in srgb, var(--orange) 35%, transparent), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgba(155,114,203,.28), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface)); }
.nlw--on { border-color: rgba(16,163,127,.3); background: radial-gradient(380px 260px at 100% 0%, rgba(16,163,127,.25), transparent 70%), linear-gradient(160deg, var(--surface-2), var(--surface)); }
.nlw__art { position: relative; width: 120px; height: 90px; margin-bottom: 4px; }
.nlw__art svg { width: 100%; height: 100%; overflow: visible; }
.nlw__letter { animation: letter 3.6s ease-in-out infinite; transform-box: fill-box; }
@keyframes letter { 50% { transform: translateY(-7px); } }
.nlw__art i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); opacity: 0; animation: twinkle 3.2s ease-in-out infinite; }
.nlw__art i:nth-of-type(1) { left: 2px; top: 6px; }
.nlw__art i:nth-of-type(2) { right: -6px; top: 26px; animation-delay: 1.1s; background: var(--c-gem2); }
.nlw__art i:nth-of-type(3) { left: 50%; top: -8px; animation-delay: 2s; width: 4px; height: 4px; }
@keyframes twinkle { 50% { opacity: 1; transform: scale(1.4); } }
.nlw__t { font-size: 23px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.nlw__ok { width: 22px; height: 22px; color: var(--c-gpt); vertical-align: -3px; }
.nlw__s { font-size: 14px; line-height: 1.5; color: var(--muted); }
.nlw__s b { color: var(--paper); }
.nlw__list { list-style: none; padding: 0; margin: 2px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.nlw__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--paper); }
.nlw__list .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--sand); }
.nlw--on .nlw__list .ic { color: var(--c-gpt); }
.nlw__btn { margin-top: auto; width: 100%; height: 50px; font-size: 15px; }
.nlw__fine { font-size: 11.5px; text-align: center; color: var(--faint); }

/* ---------- recommendations ---------- */
.subjrow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subjrow button { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(var(--fg-rgb), .04); border: 1px solid rgba(var(--fg-rgb), .08); transition: all .2s; }
.subjrow button:hover { color: var(--paper); border-color: rgba(var(--fg-rgb), .2); }
.subjrow button.is-on { background: var(--paper); color: var(--surface); border-color: transparent; }
.recs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rec { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 14%, transparent), transparent 55%), rgba(var(--fg-rgb), .02); border: 1px solid rgba(var(--fg-rgb), .07); transition: transform .3s var(--ease), border-color .2s; animation: rise .6s var(--ease) both; animation-delay: calc(.3s + var(--i) * 60ms); }
.wid.is-static .rec { animation: none; }
.rec:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--t) 55%, transparent); }
.rec__top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.rec__logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--t); box-shadow: 0 8px 20px -8px var(--t); }
.rec__logo img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.rec__tool { font-size: 13px; font-weight: 600; }
.rec__min { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.rec__min .ic { width: 12px; height: 12px; }
.rec__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rec__t { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.28; }
.rec__d { font-size: 13px; line-height: 1.5; color: var(--muted); flex: 1; }
.rec__why { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.rec__why span { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(var(--fg-rgb), .06); color: var(--muted); }
.rec__why span:first-child::before { content: "Because "; color: var(--faint); }
.rec__saved { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sand); }

/* ---------- requests ---------- */
.req-form { display: grid; gap: 12px; }
.req-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.req-kinds button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(var(--fg-rgb), .03); border: 1px solid rgba(var(--fg-rgb), .07); transition: all .2s var(--ease); }
.req-kinds button:hover { color: var(--paper); border-color: rgba(var(--fg-rgb), .18); }
.req-kinds button.is-on { color: var(--paper); border-color: color-mix(in srgb, var(--c-pplx) 60%, transparent); background: rgba(42,163,177,.13); }
.req-kinds button.is-on .ic { color: var(--c-pplx); }
.req-box { border-radius: 18px; background: rgba(var(--well-rgb), calc(.45 * var(--well-k))); border: 1px solid rgba(var(--fg-rgb), .08); transition: border-color .2s, box-shadow .2s; }
.req-box:focus-within { border-color: rgba(42,163,177,.55); box-shadow: 0 0 0 4px rgba(42,163,177,.1); }
.req-box textarea { display: block; width: 100%; min-height: 92px; resize: vertical; padding: 14px 16px 6px; background: none; border: 0; color: var(--paper); font: inherit; font-size: 14.5px; line-height: 1.5; outline: none; }
.req-box .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; font-size: 12px; }
.req-box .row button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 12px; background: var(--c-pplx); color: #0F121B; font-weight: 700; font-size: 13px; }
.req-box .row button .ic { width: 15px; height: 15px; }
.reqs { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.req { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(var(--fg-rgb), .025); font-size: 13px; }
.req__st { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(var(--fg-rgb), .07); color: var(--muted); }
.req__st.is-done { background: rgba(16,163,127,.18); color: var(--c-gpt); }
.req__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req__d { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }

/* ---------- resources ---------- */
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res__i { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(var(--fg-rgb), .025); border: 1px solid rgba(var(--fg-rgb), .06); transition: transform .25s var(--ease), border-color .2s; animation: rise .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * 40ms); }
.wid.is-static .res__i { animation: none; }
.res__i:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.res__ic { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.res__ic .ic { width: 17px; height: 17px; }
.res__t { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.res__m { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }

/* ---------- palette ---------- */
.modal { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 20px; background: rgba(var(--scrim-rgb), .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal--top { place-items: start center; padding-top: 12vh; }
.modal.is-open .pal { transform: none; }
.pal { width: min(640px, 100%); border-radius: 22px; background: rgba(var(--glass2-rgb), .92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid rgba(var(--fg-rgb), .12); box-shadow: 0 40px 100px rgba(0,0,0,.6); overflow: hidden; transform: translateY(-10px) scale(.98); transition: transform .3s var(--ease); }
.pal__in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid rgba(var(--fg-rgb), .07); }
.pal__in input { flex: 1; height: 60px; background: none; border: 0; outline: none; color: var(--paper); font: inherit; font-size: 17px; }
.pal__in kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(var(--fg-rgb), .12); color: var(--faint); }
.pal__res { max-height: 52vh; overflow-y: auto; padding: 8px; }
.pal__g { padding: 10px 10px 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pal__r { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 11px; text-align: left; font-size: 14.5px; color: var(--paper); }
.pal__r.is-sel { background: rgba(var(--fg-rgb), .08); }
.pal__r i { font-style: normal; width: 22px; text-align: center; color: var(--muted); }
.empty-s { padding: 18px 0 6px; text-align: center; font-size: 13.5px; color: var(--faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w4, .w5, .w6, .w7, .w8 { grid-column: span 12; }
  .w4.nlw { grid-column: span 12; }
  .recs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dash { padding: 88px 12px 10px; }
  .hero { padding: 24px 18px 0; border-radius: 26px; }
  .hero__title { margin-top: 16px; }
  .hero__sub .sep { margin: 0 6px; }
  .search { height: 50px; }
  .search kbd { display: none; }
  .next { padding: 18px; }
  .next__body { flex-direction: column; align-items: stretch; }
  .next__body .ring { align-self: center; }
  .plan { margin: 24px -18px 0; padding: 16px 18px 20px; }
  .plan__row { grid-template-columns: 1fr; }
  .apps { display: flex; overflow-x: auto; margin-left: -12px; margin-right: -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .apps::-webkit-scrollbar { display: none; }
  .app { flex: 0 0 86px; }
  .grid12 { gap: 12px; }
  .kpis { gap: 12px; }
  .kpi { padding: 16px; }
  .kpi__v { font-size: 30px; }
  .kpi__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wid { padding: 18px; border-radius: 22px; }
  .wid__h .seg { width: 100%; }
  .wid__h .seg button { flex: 1; }
  .todo-add { flex-wrap: wrap; }
  .todo-add input[type=text] { flex-basis: calc(100% - 50px); }
  .todo-add input[type=date] { flex: 1; }
  .task__x { opacity: 1; }
  .prog, .feed { grid-template-columns: 1fr; }
  .skill { grid-template-columns: minmax(0, 1fr) 70px 54px; }
  .recs, .res { grid-template-columns: 1fr; }
  .req-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl__rel { display: none; }
}
@media (hover: none) { .kbd-only { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .feed__art i, .fi { animation: none !important; }
  .hero::before, .hero__glow i, .nlw__letter, .nlw__art i { animation: none; }
  .wid, .kpi, .app, .plan__i, .task, .tl__i, .rec, .res__i, .spark i, .bar i, .skill__bar i, .ring__p, .next__goal em { animation: none !important; }
}

/* ============================================================
   CALM PASS (2026-10-07): fewer things on screen, one accent
   ============================================================ */
.hero { padding-top: 34px; }
.hero::before { background: conic-gradient(from var(--ang), rgba(var(--fg-rgb), .06), color-mix(in srgb, var(--orange) 55%, transparent), rgba(var(--fg-rgb), .06) 60%); }
.hero__glow i:nth-child(2), .hero__glow i:nth-child(3) { display: none; }
.hero__glow i:nth-child(1) { background: color-mix(in srgb, var(--orange) 26%, transparent); }
.hero__title { margin-top: 4px; font-size: clamp(30px, 3.8vw, 48px); }
.hero__title span { font-size: .5em; }
.hero__sub { font-size: 15px; }
.search { margin-top: 20px; height: 50px; }
.apps { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; max-width: 720px; }
.app { flex-direction: row; justify-content: center; gap: 10px; padding: 13px 12px; }
.app__ic { width: 34px; height: 34px; border-radius: 11px; }
.app__ic .ic { width: 17px; height: 17px; }
.app:hover .app__ic { transform: none; }
.more { margin-top: 26px; }
.more__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 16px; text-align: left; color: var(--muted); font-size: 13.5px; border: 1px dashed rgba(var(--fg-rgb), .16); background: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.more__btn:hover { background: rgba(var(--fg-rgb), .04); color: var(--paper); }
.more__btn .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.more.is-open .more__btn .ic { transform: rotate(180deg); }
.more__btn span { font-weight: 600; color: var(--paper); }
.more__btn small { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more .grid12 { margin-top: 14px; }
.feed__feat { padding: 18px 20px; }
.feed__t { font-size: 17px; }
.feed__d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan { margin-top: 24px; }
@media (max-width: 640px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .more__btn small { display: none; } }

/* ---------- deadlines (hero) ---------- */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dl__i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; background: rgba(var(--fg-rgb), .04); border: 1px solid rgba(var(--fg-rgb), .07); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 40ms); transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease); }
.dl__i:hover { background: rgba(var(--fg-rgb), .07); border-color: rgba(var(--fg-rgb), .14); transform: translateY(-2px); }
.dl__d { flex: none; width: 44px; display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--faint); }
.dl__d b { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--paper); margin-bottom: 3px; }
.dl__t { min-width: 0; }
.dl__t b { display: block; font-size: 14px; font-weight: 600; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl__t span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl__i.is-late .dl__d b, .dl__i.is-late .dl__t span { color: var(--c-gem3, #D96570); }
.dl__i.is-today .dl__d b { color: var(--orange); }
.dl__add { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); border: 1px dashed rgba(var(--fg-rgb), .16); background: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.dl__add:hover { background: rgba(var(--fg-rgb), .05); color: var(--paper); }
.dl__empty { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; text-align: left; font-size: 14px; line-height: 1.45; color: var(--muted); border: 1px dashed rgba(var(--fg-rgb), .16); background: none; }
.dl__empty b { color: var(--paper); } .dl__empty i { color: var(--sand); font-style: normal; }
.dl__empty:hover { background: rgba(var(--fg-rgb), .05); }

/* ---------- the three branches ---------- */
.branches { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.branch { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hairline); animation: rise .7s var(--ease) both; animation-delay: calc(.15s + var(--i) * 70ms); transition: transform .3s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.branch:hover { transform: translateY(-3px); border-color: rgba(var(--fg-rgb), .18); background: var(--surface-2); }
.branch__ic { width: 42px; height: 42px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(140deg, var(--accent-hi), var(--orange)); box-shadow: 0 10px 24px -10px var(--orange); }
.branch__ic .ic { width: 20px; height: 20px; }
.branch__t { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--paper); }
.branch__d { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.branch__s { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--faint); }
.branch__go { position: absolute; top: 22px; right: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--faint); border: 1px solid var(--hairline); transition: transform .25s var(--ease), color .2s var(--ease); }
.branch:hover .branch__go { transform: translateX(3px); color: var(--paper); }
@media (max-width: 900px) { .branches { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; } .branch { padding: 20px; } }

/* ---------- RESET (2026-10-09): flat dashboard ---------- */
.hero { background: var(--card); border: 1px solid var(--hairline); box-shadow: none; border-radius: 20px; }
.hero::before, .hero__glow { display: none; }
.hero__title b { background: none; -webkit-text-fill-color: var(--orange); color: var(--orange); }
.hero__eyebrow, .eyebrow, .kpi__h, .wid__sub, .plan__h .eyebrow { font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.search { background: var(--navy); border: 1px solid var(--hairline); border-radius: 12px; }
.btn-p, .app__ic, .branch__ic { background: var(--orange); box-shadow: none; }
.wid, .kpi, .branch, .plan__i, .dl__i, .ibs, .more__btn { box-shadow: none; }
.branch:hover, .wid:hover { transform: none; }
.branch__s, .subj__f, .dl__d { font-family: var(--font-display); letter-spacing: 0; text-transform: none; }
.dl__d { font-size: 11px; }
.next { background: var(--navy); }
