/* ============================================================
   Today (Phase T) - daily planning workspace. Token-driven (Brand
   OS), light-mode-clean, mirrors the .gt-* look of the War Map.
   ============================================================ */
.td-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; gap:clamp(18px,3vw,32px);
  padding:clamp(24px,4vw,38px); border-radius:var(--radius-lg); border:1px solid var(--line);
  background:linear-gradient(180deg, var(--surface), var(--surface-grad-2)); margin-bottom:14px; }
.td-hero-copy { min-width:0; }
.td-kicker { display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:11px; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; }
.td-dot { width:7px; height:7px; border-radius:50%; background:var(--gold); box-shadow:0 0 12px var(--glow); }
.td-hero h1 { margin:0; font-family:var(--serif); font-size:clamp(30px,4.2vw,50px); line-height:1.04; letter-spacing:-.02em; max-width:760px; }
.td-hero .sub { margin:12px 0 0; color:var(--muted); font-size:14.5px; line-height:1.6; max-width:62ch; }
.td-path { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.td-chip { display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:999px; border:1px solid var(--line);
  background:var(--surface); color:var(--ivory); font-size:12.5px; font-weight:600; cursor:pointer; transition:transform .15s, border-color .15s, box-shadow .15s; }
.td-chip:hover { transform:translateY(-1px); border-color:var(--gold-line); box-shadow:0 6px 18px -10px var(--glow); }
.td-chip:focus-visible { outline:none; border-color:var(--gold-2); box-shadow:0 0 0 3px var(--gold-soft); }
.td-chip-num { font-family:var(--mono); font-size:10px; color:var(--gold); }
.td-hero-rating { display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:2px; min-width:148px;
  padding:18px 20px; border-radius:16px; border:1px solid var(--line); background:var(--surface); }
.td-rating-lbl { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.td-rating-val { font-family:var(--serif); font-size:34px; font-weight:700; color:var(--gold); line-height:1; }

.td-drawer { margin:0 0 18px; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); overflow:hidden; }
.td-drawer > summary { display:flex; align-items:center; gap:14px; padding:16px 20px; list-style:none; cursor:pointer; user-select:none; }
.td-drawer > summary::-webkit-details-marker { display:none; }
.td-drawer > summary:hover { background:var(--surface-grad-2); }
.td-drawer > summary span { color:var(--ivory); font-size:14px; font-weight:700; }
.td-drawer > summary small { flex:1; color:var(--muted); font-size:12.5px; }
.td-drawer > summary b { color:var(--gold); font-family:var(--mono); font-size:18px; transition:transform .2s ease; }
.td-drawer[open] > summary b { transform:rotate(45deg); }
.td-drawer-body { padding:0 20px 18px; }
.td-drawer-body p { margin:0; color:var(--muted); font-size:13.5px; line-height:1.6; max-width:78ch; }

.td-sec { padding:22px 24px; border-radius:var(--radius-lg); border:1px solid var(--line);
  background:linear-gradient(180deg, var(--surface), var(--surface-grad-2)); margin-bottom:16px; }
.td-sec-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:16px; }
.td-sec-num { flex:0 0 auto; width:26px; height:26px; display:grid; place-items:center; border-radius:8px;
  border:1px solid var(--gold-line); background:var(--gold-soft); color:var(--gold); font-family:var(--mono); font-size:12px; }
.td-sec-head h3 { margin:0; font-size:17px; }
.td-sec-head p { margin:3px 0 0; font-size:12.5px; color:var(--muted); max-width:64ch; }

/* shared form bits */
.td-in { width:100%; padding:9px 11px; border-radius:9px; border:1px solid var(--line-2);
  background:var(--surface); color:var(--ivory); font-size:13.5px; font-family:inherit; }
.td-in:focus { outline:none; border-color:var(--gold-2); box-shadow:0 0 0 2px var(--gold-soft); }
.td-ta { resize:vertical; min-height:46px; line-height:1.5; }
.td-in-sm { width:120px; }
.td-btn { padding:9px 14px; border-radius:9px; border:1px solid var(--line-2); background:var(--surface); color:var(--ivory);
  font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; transition:transform .15s, border-color .15s; }
.td-btn:hover { transform:translateY(-1px); border-color:var(--gold-line); }
.td-btn.ghost { background:transparent; }
.td-x { flex:0 0 auto; width:26px; height:26px; border-radius:7px; border:1px solid transparent; background:transparent;
  color:var(--muted); cursor:pointer; font-size:15px; line-height:1; }
.td-x:hover { color:var(--red); border-color:var(--red); }
.td-empty { color:var(--muted); font-size:12.5px; font-style:italic; margin:4px 0; }

/* 3-column board */
.td-board { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
.td-col { display:flex; flex-direction:column; gap:10px; padding:14px; border-radius:12px; border:1px solid var(--line);
  background:var(--surface); }
.td-col-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.td-col-head h4 { margin:0; font-size:13.5px; }
.td-col-head span { font-size:11px; color:var(--muted); }
.td-col-items { display:flex; flex-direction:column; gap:6px; min-height:8px; }
.td-item, .td-task { display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:8px;
  border:1px solid var(--line); background:linear-gradient(180deg, var(--surface), var(--surface-grad-2)); }
.td-item-txt { flex:1; min-width:0; font-size:13px; word-break:break-word; }
.td-check { flex:1; display:flex; align-items:center; gap:8px; min-width:0; cursor:pointer; }
.td-check input { flex:0 0 auto; width:15px; height:15px; accent-color:var(--gold); }
.td-check span { font-size:13px; word-break:break-word; }
.td-task.done .td-check span { text-decoration:line-through; color:var(--muted); }
.td-add { display:flex; gap:7px; margin-top:2px; }
.td-add .td-in { flex:1 1 auto; }

/* anti-focus + alignment */
.td-anti .td-col-items { margin-bottom:10px; }
.td-anti .td-item { background:var(--surface); }
.td-align { display:flex; flex-wrap:wrap; gap:10px; }
.td-align-item { display:flex; align-items:center; gap:8px; padding:9px 13px; border-radius:999px;
  border:1px solid var(--line-2); background:var(--surface); font-size:13px; cursor:pointer; }
.td-align-item input { width:15px; height:15px; accent-color:var(--gold); }

/* questions + fields */
.td-q { margin-bottom:12px; }
.td-q label, .td-field label { display:block; font-size:12.5px; color:var(--muted); margin-bottom:5px; }
.td-field { margin-bottom:12px; }
.td-field-row { display:flex; align-items:center; gap:10px; }
.td-field-row label { margin:0; flex:1; }
.td-suffix { color:var(--muted); font-size:13px; }
.td-eod { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.td-eod .td-field { margin-bottom:0; }

/* Phase 7 - the two guided on-ramp buttons + walkthrough lead text */
.td-actions { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 18px; }
.td-guide-btn { font-weight:600; }
.td-guide-btn:first-child { border-color:var(--gold-line); color:var(--gold); }

/* Midas day-builder button + result area */
.td-midas-btn { border-color:var(--gold-line); color:var(--gold); font-weight:600; }
.td-midas-btn:disabled { opacity:.55; cursor:not-allowed; }
.td-midas-result { margin-bottom:18px; border-radius:var(--radius-lg); border:1px solid var(--gold-line);
  background:linear-gradient(180deg, var(--surface), var(--surface-grad-2)); padding:18px 20px; }
.td-midas-inner { font-size:14px; line-height:1.6; }
.td-midas-loading { color:var(--muted); font-size:13.5px; font-style:italic; margin:0; }
.td-midas-err { color:var(--red,#ef4444); font-size:13.5px; margin:0; }
.td-guide-lead { color:var(--muted); font-size:14px; line-height:1.6; margin:0 0 6px; }

/* guided list step (priority/quick/anti add-lists inside the flow) */
.td-guide-list { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.td-guide-li { display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 12px; border-radius:9px; border:1px solid var(--line-2); background:var(--surface); font-size:13.5px; color:var(--ivory); }

/* WO-3.5: risk strip chips (morning flow) + plan-vs-actual compare (end-of-day flow) */
.td-risk-row { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 2px; }
.td-risk-chip { cursor:pointer; }
.td-risk-chip:hover { border-color:var(--gold-2); }
.td-compare { margin-bottom:4px; }
.td-pattern-line { color:var(--gold); font-style:normal; }

/* collapsible, read-only "Today so far" recap (the page is a launcher) */
.td-recap { border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); overflow:hidden; }
.td-recap > summary { list-style:none; cursor:pointer; padding:16px 20px; font-family:var(--mono); font-size:12px;
  letter-spacing:.06em; text-transform:uppercase; color:var(--muted); display:flex; align-items:center; justify-content:space-between; }
.td-recap > summary::-webkit-details-marker { display:none; }
.td-recap > summary::after { content:'▾'; color:var(--muted); transition:transform .2s ease; }
.td-recap[open] > summary::after { transform:rotate(180deg); }
.td-recap-body { padding:4px 20px 18px; }
.td-recap-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:9px 0; border-top:1px solid var(--line); font-size:14px; }
.td-recap-row:first-child { border-top:0; }
.td-recap-row > span { color:var(--muted); }
.td-recap-row > b { color:var(--ivory); font-weight:600; text-align:right; }
.td-muted { color:var(--muted); font-weight:400; }

/* ============================================================
   WO-3.11: "Your day" calendar (Week/Month lenses + timeline).
   Approved design reference: _progress-calendar-preview.html
   (TODAY lens), adapted to this app's own Brand OS tokens.
   ============================================================ */
.td-cal-viewtog { display:inline-flex; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:3px; margin-bottom:12px; }
.td-cal-viewtog button { border:0; background:none; color:var(--muted); font:600 12px/1 inherit; padding:8px 18px; border-radius:999px; cursor:pointer; }
.td-cal-viewtog button.on { background:var(--surface-grad-2); color:var(--ivory); box-shadow:inset 0 0 0 1px var(--line); }

.td-cal-weekstrip { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; margin-bottom:14px; }
.td-cal-wday { text-align:center; padding:8px 4px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); cursor:pointer; position:relative; }
.td-cal-wday.on { border-color:var(--gold-line); background:var(--surface-grad-2); }
.td-cal-wd { display:block; font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.td-cal-wn { display:block; font-size:15px; font-weight:650; margin-top:1px; color:var(--ivory); }

.td-cal-month-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.td-cal-month-head b { font-size:14px; }
.td-cal-monthgrid { display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; margin-bottom:14px; }
.td-cal-mhead { text-align:center; font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; padding:2px 0 4px; }
.td-cal-mday { min-height:56px; border:1px solid var(--line); border-radius:10px; background:var(--surface); padding:6px 7px 8px; cursor:pointer; position:relative; text-align:left; }
.td-cal-mday:hover { background:var(--surface-grad-2); }
.td-cal-mday.out { opacity:.35; cursor:default; }
.td-cal-mday.on { border-color:var(--gold-line); background:var(--surface-grad-2); }
.td-cal-mn { font-size:12.5px; font-weight:650; color:var(--ivory); }

.td-cal-dots { margin-top:5px; height:5px; }
.td-cal-dots i { display:inline-block; width:4px; height:4px; border-radius:50%; background:var(--gold); margin:0 1.5px; opacity:.85; }
.td-cal-dots i.off { background:var(--line-2); }
.td-cal-ms-mark { position:absolute; top:5px; right:6px; width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 8px var(--glow); cursor:pointer; }

.td-cal-ctl { display:flex; align-items:center; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.td-cal-spacer { flex:1; }

.td-cal-timeline { display:grid; grid-template-columns:56px 1fr; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); overflow:hidden; }
.td-cal-trail { display:grid; grid-auto-rows:48px; }
.td-cal-trail div { color:var(--muted); font-size:11px; text-align:right; padding:4px 10px 0 0; border-top:1px solid var(--line); }
.td-cal-trail div:first-child { border-top:0; }
.td-cal-tcol { position:relative; border-left:1px solid var(--line); background-image:repeating-linear-gradient(var(--surface) 0, var(--surface) 47px, var(--line) 48px); }
.td-cal-nowline { position:absolute; left:0; right:0; height:0; border-top:1.5px solid var(--gold); z-index:4; }
.td-cal-nowline::before { content:"now"; position:absolute; left:8px; top:-9px; background:var(--gold); color:#17130a; font-size:9px; font-weight:700; padding:1px 6px; border-radius:999px; }

.td-cal-task { position:absolute; left:8px; right:8px; border:1px solid var(--line); background:var(--surface-grad-2); border-radius:9px; padding:7px 12px 7px 36px; overflow:visible; }
.td-cal-task.fixed { border-style:dashed; }
.td-cal-task.sug:not(.fixed) { border-color:var(--gold-line); }
.td-cal-task.done { opacity:.5; }
.td-cal-task.done .td-cal-tt { text-decoration:line-through; }
.td-cal-tick { position:absolute; left:9px; top:9px; width:17px; height:17px; border:1.5px solid var(--muted); border-radius:50%; cursor:pointer; background:none; padding:0; }
.td-cal-task.done .td-cal-tick { border-color:var(--gold); background:var(--gold); }
.td-cal-task.done .td-cal-tick::after { content:"✓"; color:#17130a; font-size:10px; font-weight:800; position:absolute; inset:0; display:grid; place-items:center; }
.td-cal-body { cursor:pointer; }
.td-cal-tt { font-size:13px; font-weight:600; line-height:1.3; color:var(--ivory); }
.td-cal-tm { font-size:11px; color:var(--muted); margin-top:1px; }
.td-cal-src { position:absolute; right:9px; top:8px; font-size:10px; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 8px; background:none; cursor:default; }
button.td-cal-src { cursor:pointer; }
button.td-cal-src:hover { border-color:var(--gold-2); color:var(--ivory); }
.td-cal-edit { display:flex; gap:6px; align-items:center; margin-top:6px; }

.td-cal-overflow { margin-top:16px; }
.td-cal-overflow h4 { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:8px; }
.td-cal-ovrow { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 14px; border:1px solid var(--line); border-radius:9px; background:var(--surface); margin-bottom:6px; font-size:13px; }
.td-cal-ov-src { color:var(--muted); font-size:11.5px; white-space:nowrap; }

.td-cal-addform { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:14px; padding:12px; border:1px solid var(--gold-line); border-radius:var(--radius-lg); background:var(--surface); }
.td-cal-addform .td-in { flex:1 1 180px; }
.td-cal-add-toproj { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); white-space:nowrap; }

@media (max-width:760px) {
  .td-board { grid-template-columns:1fr; }
  .td-hero { grid-template-columns:1fr; padding:22px 18px; }
  .td-hero-rating { align-items:flex-start; min-width:0; }
  .td-sec { padding:18px 16px; }
  .td-drawer > summary { align-items:flex-start; flex-wrap:wrap; }
  .td-drawer > summary small { flex-basis:100%; }
  .td-cal-timeline { grid-template-columns:44px 1fr; }
  .td-cal-trail { grid-auto-rows:48px; }
  .td-cal-task .td-cal-src { display:none; }
  .td-cal-weekstrip { gap:4px; }
}
