/* today.css · page-specific layout for the daily workspace (the loom).
   ============================================================
   The shared design system (aero.css) owns every color, token, and
   component class. This file adds ONLY the Today-page composition: the
   readiness datum hero, the open-your-flow spine card, and the two-column
   body grid. No new colors, no new fonts, no remote anything.

   Overflow-safe: every grid track is minmax(0,1fr); content columns set
   min-width:0; nothing forces horizontal scroll at 1280px or 375px.
   ============================================================ */

/* the readiness datum hero: copy panel on the left, an instrument plate on
   the right that carries only mono labels, never body text over the plate */
.today-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}
.today-hero .hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.today-hero .hero-copy h2 { font-size: 26px; margin: 6px 0 10px; }
.today-hero .hero-copy .sub { font-size: 15px; color: var(--text-dim); max-width: 48ch; }
.today-hero .hero-plate { min-height: 240px; min-width: 0; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 10px; }

.today-state-svg {
  width: 100%;
  height: auto;
  margin: 12px 0 2px;
  position: relative;
  z-index: 1;
}
.today-state-axis,
.today-state-line {
  fill: none;
  stroke: var(--border-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.today-state-axis { stroke: var(--border); }
.today-state-bar { opacity: 0.75; }
.today-state-bar.is-ready,
.today-state-node.is-ready { fill: var(--ok); }
.today-state-bar.is-warn,
.today-state-node.is-warn { fill: var(--warn); }
.today-state-bar.is-accent,
.today-state-node.is-accent { fill: var(--accent); }
.today-state-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 1;
}
.today-state-legend span {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--text-dim);
}
.today-state-legend b {
  font-size: 15px;
  color: var(--text);
}

/* the datum rows on the plate: a generic readiness-state summary, mono only */
.datum-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.datum-line .datum-name { font-weight: 600; font-size: 14px; min-width: 0; }
.datum-plate-tag { position: absolute; top: 14px; right: 16px; }

/* the two-column body: the day's work on the left, the standing context on
   the right. Collapses to one column under the shell breakpoint. */
.today-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 24px;
  align-items: start;
  margin-top: 4px;
}
.today-main { min-width: 0; }
.today-side { min-width: 0; }

/* a tight section heading with a mono count chip on the right */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.section-head h3 { font-size: 17px; }
.section-head .count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px; color: var(--text-dim); }

/* the review-card carries a small footer row that pairs the source tag with
   the next coordination action, kept on one line until it must wrap */
.review-card .rc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.review-card .rc-line { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }

/* drafts list: a person owns every send, shown as a state pill on the right */
.draft-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.draft-row:last-child { border-bottom: none; }
.draft-row .draft-body { min-width: 0; }
.draft-row .draft-title { font-size: 14px; color: var(--text); font-weight: 600; }
.draft-row .draft-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3px; color: var(--text-dimmer); margin-top: 3px; }

/* the Guided-mode "start here" orientation line, shown only in Guided mode */
.today-guide {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  background: var(--surface-2);
  padding: 11px 15px;
  margin: 0 0 16px;
}
.today-guide strong {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent-deep);
}
.today-guide span { font-size: 13px; line-height: 1.5; color: var(--text-dim); }

/* the department framing strip sits at the very top of the page body */
.today-frame-strip { margin-bottom: 16px; }

/* the side rail "standing context" rows reuse aside-card; nothing new needed */

@media (max-width: 980px) {
  .today-hero { grid-template-columns: minmax(0, 1fr); }
  .today-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .today-hero .hero-copy h2 { font-size: 22px; }
  .today-state-legend { grid-template-columns: minmax(0, 1fr); }
  .draft-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
