/* ASCEND — styles.css */
:root {
  --bg: #0b1220; --bg2: #0a1020;
  --panel: #121c30; --panel2: #16213a; --line: rgba(148,163,184,.14);
  --text: #e9eef8; --muted: #93a2bd; --faint: #64748b;
  --accent: #f59e0b; --accent2: #fbbf24; --gold: #fcd34d;
  --track: rgba(148,163,184,.18);
  --ok: #34d399; --warn: #fbbf24; --danger: #f87171;
  --radius: 16px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --maxw: 920px;
}
:root[data-theme="light"] {
  --bg: #eef2f9; --bg2: #e7edf6; --panel: #ffffff; --panel2: #f4f7fc;
  --line: rgba(15,23,42,.10); --text: #0f1c33; --muted: #51607a; --faint: #8492aa;
  --track: rgba(15,23,42,.10); --shadow: 0 10px 24px rgba(15,23,42,.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 700px at 80% -10%, rgba(245,158,11,.10), transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--accent2); }
h1,h2,h3 { margin: 0; }

/* ---------- shell ---------- */
#app.app-mode {
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "nav top" "nav view";
  max-width: 1200px; margin: 0 auto; min-height: 100vh;
}
#app.gate-mode { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
#topbar {
  grid-area: top; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
#nav {
  grid-area: nav; position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; padding: 18px 12px;
  border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), transparent);
}
#view { grid-area: view; padding: 22px clamp(14px, 4vw, 34px) 80px; max-width: var(--maxw); width: 100%; }
.boot { color: var(--muted); padding: 60px 0; text-align: center; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .14em; font-size: 18px; }
.brand .logo { color: var(--accent); filter: drop-shadow(0 0 8px rgba(245,158,11,.5)); }
.topchips { display: flex; gap: 8px; align-items: center; }
.chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); white-space: nowrap;
}
.chip[style*="--c"] { color: var(--c, var(--accent)); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.day-chip { cursor: pointer; } .day-chip b { color: var(--text); }

/* nav buttons */
.navbtn {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; text-align: left;
  font-weight: 600; transition: background .15s, color .15s;
}
.navbtn:hover { background: var(--panel); color: var(--text); }
.navbtn.on { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.navbtn .ni { font-size: 18px; width: 22px; text-align: center; }

/* ---------- generic ---------- */
.card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.page-h { font-size: 27px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.lede { color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
.sect { font-size: 18px; font-weight: 750; margin: 22px 2px 12px; display: flex; align-items: baseline; gap: 10px; }
.sect-sub { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.cardh { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.muted { color: var(--muted); } .hint { color: var(--faint); font-size: 13px; margin-top: 8px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.empty { text-align: center; color: var(--muted); padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.mini { padding: 16px; }

/* buttons + inputs */
.btn { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #1a1206; border: 0; padding: 11px 16px; border-radius: 11px; font-weight: 750; cursor: pointer; font-size: 14.5px; box-shadow: 0 6px 16px rgba(245,158,11,.25); }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); box-shadow: none; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.inp { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 11px; padding: 11px 13px; font: inherit; outline: none; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.16); }
.ta { min-height: 74px; resize: vertical; }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.fl .inp { color: var(--text); }
.fl.mini { font-size: 12px; }
.ig { position: relative; display: flex; align-items: center; } .ig i { position: absolute; right: 12px; color: var(--faint); font-style: normal; font-size: 12px; }
.row-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- HERO (today) ---------- */
.hero { border-radius: 20px; overflow: hidden; background-size: cover; background-position: center; min-height: 210px; display: flex; align-items: flex-end; margin-bottom: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-inner { padding: 22px 24px; }
.hero-top { display: flex; gap: 8px; margin-bottom: 10px; }
.phase-pill { font-size: 11.5px; letter-spacing: .12em; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--accent)) 22%, #000 30%); color: #fff; border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); }
.hero h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 850; letter-spacing: -.02em; }
.hero-tag { margin: 6px 0 0; color: #e7eaf2; font-size: 16px; opacity: .92; }

.today-grid { grid-template-columns: 1.05fr 1.4fr; }
.ring-card { display: flex; gap: 18px; align-items: center; }
.ring { flex: none; }
.ring-big { font-size: 30px; font-weight: 850; fill: var(--text); }
.ring-sub { font-size: 11px; fill: var(--muted); }
.ring-stats { display: grid; gap: 10px; flex: 1; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.stat-v { font-size: 20px; font-weight: 800; } .stat-l { font-size: 11.5px; color: var(--muted); }

.quote-card { position: relative; display: flex; flex-direction: column; justify-content: center; }
.qmark { position: absolute; top: -6px; left: 14px; font-size: 70px; color: var(--accent); opacity: .18; font-family: Georgia, serif; }
.quote-q { font-size: 18px; line-height: 1.45; font-weight: 600; font-style: italic; margin: 6px 0 8px; }
.quote-a { color: var(--accent2); font-weight: 700; font-size: 13.5px; }

.focus-card { display: grid; gap: 14px; }
.focus-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; }
.focus-k { font-weight: 750; font-size: 13.5px; color: var(--accent2); }
.focus-row p { margin: 0; color: var(--text); opacity: .92; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.pillar { display: flex; align-items: center; gap: 13px; text-align: left; padding: 13px 15px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); color: var(--text); transition: transform .12s, border-color .15s, background .2s; }
.pillar:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pillar .pi { font-size: 24px; width: 30px; text-align: center; filter: grayscale(.2); }
.pbody { flex: 1; display: flex; flex-direction: column; }
.pl { font-weight: 700; } .pt { font-size: 12px; color: var(--muted); }
.pmeta { display: flex; align-items: center; gap: 8px; }
.pstreak { font-size: 11.5px; color: var(--gold); font-weight: 700; }
.pcheck { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--track); display: grid; place-items: center; color: transparent; font-weight: 900; }
.pillar.done { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel2)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pillar.done .pi { filter: none; } .pillar.done .pcheck { background: var(--accent); border-color: var(--accent); color: #1a1206; }

/* water */
.water-card { margin-top: 16px; }
.water-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .water-head b { color: var(--accent2); }
.water-bar { height: 12px; border-radius: 999px; background: var(--track); overflow: hidden; }
.water-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #60a5fa); transition: width .4s; }
.water-btns { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- PROGRAM ---------- */
.phases { display: grid; gap: 13px; }
.phase-card { border-radius: 16px; padding: 18px 20px; color: #fff; background-size: cover; background-position: center; border: 1px solid var(--line); opacity: .82; box-shadow: var(--shadow); }
.phase-card.active { opacity: 1; outline: 2px solid var(--c); }
.phase-card.complete { opacity: .96; }
.phase-card .phase-n { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--c); }
.phase-card h3 { font-size: 22px; margin: 3px 0; }
.phase-range { font-size: 13px; opacity: .85; margin-bottom: 8px; }
.phase-card p { margin: 0; font-size: 14px; opacity: .92; max-width: 64ch; }

.prow { display: flex; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; } .prow .pi { font-size: 22px; }
.tag { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.tag-body { background: rgba(56,189,248,.16); color: #7dd3fc; } .tag-mind { background: rgba(52,211,153,.16); color: #6ee7b7; }
.challenges { list-style: none; margin: 0; padding: 8px 4px; }
.challenges li { padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.challenges li b { color: var(--accent2); margin-right: 8px; }
.challenges li.cur { background: color-mix(in srgb, var(--accent) 14%, transparent); outline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.miles { display: grid; gap: 4px; }
.mile { display: flex; align-items: center; gap: 13px; padding: 10px 6px; border-bottom: 1px solid var(--line); opacity: .55; }
.mile:last-child { border-bottom: 0; } .mile.got { opacity: 1; } .mile .mi { font-size: 22px; }
.mile .mcheck { margin-left: auto; color: var(--ok); font-weight: 900; }

/* ---------- TODOS ---------- */
.todo-add { display: grid; grid-template-columns: 1fr 150px auto auto; gap: 10px; align-items: center; }
.todo-add .date { color: var(--muted); }
.hi-toggle { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-list.dim { opacity: .6; } .done-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 8px; color: var(--muted); font-size: 14px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); }
.todo.hi { border-left: 3px solid var(--danger); }
.tcheck { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--track); background: transparent; color: transparent; font-weight: 900; cursor: pointer; flex: none; }
.todo.done .tcheck { background: var(--ok); border-color: var(--ok); color: #06231a; }
.ttext { flex: 1; display: flex; flex-direction: column; gap: 2px; } .todo.done .ttext { text-decoration: line-through; color: var(--muted); }
.tdue { font-size: 11.5px; color: var(--faint); }
.tdel { background: transparent; border: 0; color: var(--faint); cursor: pointer; font-size: 16px; padding: 4px; } .tdel:hover { color: var(--danger); }

/* ---------- MEETINGS ---------- */
.note { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; background: var(--panel2); border: 1px solid var(--line); margin-bottom: 14px; }
.note.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--panel2)); }
.note.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--panel2)); }
.note code { background: rgba(148,163,184,.18); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.mtg-add { display: grid; gap: 12px; }
.mtg-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; } .mtg-row .fl { margin: 0; }
.mtg-chans { display: flex; gap: 18px; }
.mtg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.meeting { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); }
.m-main { flex: 1; } .m-when { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.m-side { display: flex; align-items: center; gap: 8px; } .m-chan { font-size: 12px; }
.cd { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--track); color: var(--muted); margin-left: 6px; }
.cd.soon { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent2); }
.cd.past { background: rgba(248,113,113,.18); color: var(--danger); }

/* ---------- JOURNAL ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.mood { display: flex; gap: 6px; } .moodb { font-size: 19px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; cursor: pointer; filter: grayscale(.6); opacity: .7; }
.moodb.on { filter: none; opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); }
.jhistory { display: grid; gap: 7px; }
.jpast { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; }
.jpast summary { cursor: pointer; font-weight: 650; } .jpast > div { margin-top: 6px; font-size: 14px; }
.jpast[open] summary { margin-bottom: 4px; }

/* ---------- PROGRESS ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 11px; margin-bottom: 16px; }
.stat-row.big .stat { padding: 14px; } .stat-row.big .stat-v { font-size: 24px; }
.heatmap { margin: 4px 0; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); margin-top: 8px; justify-content: flex-end; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.l0 { background: rgba(148,163,184,.14); } .lg.l1 { background: color-mix(in srgb, var(--accent) 33%, rgba(148,163,184,.14)); }
.lg.l2 { background: color-mix(in srgb, var(--accent) 66%, rgba(148,163,184,.14)); } .lg.l3 { background: var(--accent); }
.chart-card { min-width: 0; }
.line { display: block; }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 11px; }
.badge { text-align: center; padding: 16px 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); opacity: .45; filter: grayscale(.7); }
.badge.earned { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); }
.badge .bi { font-size: 30px; display: block; } .badge b { display: block; font-size: 13px; margin-top: 6px; } .badge .bd { font-size: 11px; color: var(--muted); }
.about p { font-size: 13.5px; }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 90; max-width: min(360px, 90vw); }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 15px; box-shadow: var(--shadow); transform: translateY(14px); opacity: 0; transition: .35s; display: grid; gap: 2px; }
.toast.show { transform: none; opacity: 1; } .toast b { font-size: 14px; } .toast span { font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  #app.app-mode { grid-template-columns: 1fr; grid-template-areas: "top" "view"; }
  #nav {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: 100%;
    flex-direction: row; justify-content: space-around; padding: 6px 4px; gap: 0; z-index: 50;
    border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px);
  }
  .navbtn { flex-direction: column; gap: 2px; padding: 7px 4px; font-size: 10px; flex: 1; }
  .navbtn .ni { font-size: 19px; } .navbtn .nl { font-size: 10px; }
  .navbtn.on { box-shadow: none; background: transparent; color: var(--accent2); }
  #view { padding-bottom: 84px; max-width: 100%; }
  .today-grid, .grid.two { grid-template-columns: 1fr; }
  .focus-row { grid-template-columns: 1fr; gap: 4px; }
  .pillars { grid-template-columns: 1fr; }
  .todo-add { grid-template-columns: 1fr 1fr; } .todo-add .inp[name="text"] { grid-column: 1 / -1; }
  .mtg-row { grid-template-columns: 1fr; }
  .ring-card { flex-direction: column; text-align: center; } .ring-stats { width: 100%; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 420px) { .ring-stats { grid-template-columns: 1fr; } .todo-add { grid-template-columns: 1fr; } }

/* ---------- profile gate ---------- */
.gate { width: 100%; max-width: 440px; }
.gate-card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: var(--shadow); text-align: center; }
.gate-brand { font-weight: 850; letter-spacing: .16em; font-size: 22px; margin-bottom: 4px; }
.gate-brand .logo { color: var(--accent); }
.gate-sub { color: var(--muted); margin: 2px 0 18px; }
.gate-list { display: grid; gap: 9px; margin-bottom: 14px; }
.gate-profile { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 16px; transition: border-color .15s, transform .1s; }
.gate-profile:hover { border-color: var(--accent); transform: translateY(-1px); }
.gp-av { font-size: 24px; } .gp-name { flex: 1; text-align: left; font-weight: 650; } .gp-lock { opacity: .6; }
.gate-or { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 10px 0; }
.gate-new { display: grid; gap: 10px; }
.av-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.av { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; filter: grayscale(.5); opacity: .7; }
.av input { position: absolute; opacity: 0; pointer-events: none; }
.av:has(input:checked) { filter: none; opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); }
.gate-avatar { font-size: 46px; } .pin { text-align: center; letter-spacing: .3em; font-size: 18px; }
.gate-err { color: var(--danger); font-size: 13px; }

/* ---------- topbar profile chip + nudge ---------- */
.prof-chip { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.prof-chip:hover { border-color: var(--accent); }
.nudge { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; cursor: pointer; font-size: 14px; }
.nudge b { color: var(--accent2); }

/* ---------- today hours card ---------- */
.hours-card { cursor: pointer; }
.hc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .hc-row b { color: var(--accent2); }
.hc-row.sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); } .hc-row.sub b { color: var(--text); }

/* ---------- schedule / 100-hour week ---------- */
.sched-top { grid-template-columns: 1fr 1.25fr; }
.week-card { min-width: 0; }
.week-grid { display: flex; gap: 7px; }
.wkday { flex: 1; min-width: 0; text-align: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 8px 4px; }
.wkday.today { border-color: var(--gold); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.wkd-h { font-size: 10.5px; color: var(--muted); line-height: 1.2; } .wkd-h b { display: block; color: var(--text); font-size: 13px; }
.wkd-cells { display: flex; flex-direction: column; gap: 3px; margin: 7px 0; }
.cell { display: block; height: 9px; border-radius: 3px; background: var(--track); }
.cell.work.on { background: var(--sky, #38bdf8); } .cell.workout.on { background: var(--accent); }
.cell.work { } .cell.workout { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.wkd-h2 { font-size: 11px; color: var(--muted); font-weight: 700; }
.legend .cell { width: 16px; height: 10px; }

.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.block { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: left; transition: transform .1s, border-color .15s; }
.block:hover { transform: translateY(-1px); }
.block.work { border-left: 3px solid var(--sky, #38bdf8); } .block.workout { border-left: 3px solid var(--accent); }
.blk-check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--track); display: grid; place-items: center; color: transparent; font-weight: 900; flex: none; }
.block.done .blk-check { background: var(--ok); border-color: var(--ok); color: #06231a; }
.blk-ic { font-size: 16px; } .blk-label { flex: 1; font-weight: 600; } .block.done .blk-label { text-decoration: line-through; color: var(--muted); }
.blk-h { font-size: 12px; color: var(--faint); font-weight: 700; }

.plan-card { margin-top: 16px; } .plan-card.planned { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.badge-ok { font-size: 12px; color: var(--ok); margin-left: 8px; }
.plan-blocks { display: grid; gap: 7px; }
.plan-blk { display: flex; align-items: center; gap: 9px; } .plan-blk .inp { flex: 1; } .plan-blk .blk-h { flex: none; }

@media (max-width: 760px) {
  .sched-top { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .week-grid { gap: 4px; } .wkd-h b { font-size: 12px; }
}
