/* Plan tab and Today tab */
.hero { background: linear-gradient(135deg, #ffffff 0%, #f4f4ff 100%); border: 1px solid var(--border); border-radius: 16px; padding: 30px 30px 24px; box-shadow: var(--shadow); }
.hero .kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.hero h1 { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; max-width: 820px; }
.hero-sub { color: var(--muted); font-size: 15px; max-width: 820px; margin: 12px 0 22px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat .num { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; color: var(--text); }
.stat .what { font-weight: 600; font-size: 13.5px; }
.stat .ctx { color: var(--muted); font-size: 12px; margin-top: 2px; }

.fault { border-top: 3px solid var(--sol); display: flex; flex-direction: column; gap: 6px; }
.fault .fnum { width: 26px; height: 26px; border-radius: 50%; background: var(--sol-soft); color: var(--sol); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.fault .fids { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 8px; }
.fault .btn { margin-top: auto; align-self: flex-start; }

.swimlane { display: grid; grid-template-columns: 220px repeat(4, 1fr); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lane-head { padding: 10px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lane-head.col0 { color: #23263a; }
.lane-label { padding: 12px; border-bottom: 1px solid var(--border); border-left: 4px solid var(--sol); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.lane-label:hover { background: var(--sol-soft); }
.lane-label .sol-chip { align-self: flex-start; }
.lane-cell { padding: 10px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.lane-cell.col0 { background: #fbfbfc; }
.lane-item {
  text-align: left; border: 1px solid var(--border); border-left: 3px solid var(--sol); background: #fff; border-radius: 7px;
  padding: 6px 8px; font-size: 12.5px; line-height: 1.35; cursor: pointer; color: var(--text); transition: all .12s;
}
.lane-item:hover { background: var(--sol-soft); border-color: var(--sol); transform: translateX(2px); }
.lane-empty { color: var(--faint); font-size: 12px; padding: 4px; }

.matrix-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; }
.matrix td { padding: 7px 10px; border-bottom: 1px solid #f0f1f4; vertical-align: middle; }
.matrix tr[data-id] { cursor: pointer; }
.matrix tr[data-id]:hover td { background: #f7f8fb; }
.matrix tr.sel td { background: var(--brand-soft) !important; }
.matrix .c-sol { text-align: center; width: 52px; }
.matrix .c-id { width: 56px; }
.mdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--sol); box-shadow: 0 0 0 3px var(--sol-soft); }
.gap-panel { position: sticky; top: 130px; min-height: 220px; }
.gap-panel h4 { font-size: 15px; margin: 8px 0 10px; }
.gap-panel .label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 650; margin-top: 10px; }
.gap-panel p { margin: 3px 0 0; }
.gap-empty { color: var(--muted); font-size: 13px; padding: 30px 6px; text-align: center; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.metric .mname { font-size: 13.5px; }
.metric .mtarget { font-weight: 700; color: var(--sol); font-size: 14px; white-space: nowrap; }
.metric .msrc { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 650; }
.metric .msrc.proposed { color: var(--amber); }

.flash { animation: flash 1.6s ease; border-radius: 10px; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px rgba(91, 91, 240, .35); } 100% { box-shadow: 0 0 0 0 rgba(91, 91, 240, 0); } }

/* Today */
.today-progress { margin-bottom: 18px; }
.checklist { margin-bottom: 16px; }
.cl-head h4 { font-size: 16px; margin: 0; }
.cl-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.cl-item.done .cl-title { text-decoration: line-through; color: var(--faint); }
.cbox { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: #fff; cursor: pointer; padding: 0; margin-top: 2px; display: grid; place-items: center; }
.cl-item.done .cbox { background: var(--green); border-color: var(--green); }
.cbox svg { width: 14px; height: 14px; }
.cl-body { flex: 1; min-width: 0; }
.cl-title { font-weight: 600; }
.cl-body details { margin-top: 6px; }
.cl-body summary { cursor: pointer; color: var(--brand); font-size: 12.5px; font-weight: 600; }
.copybox { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-top: 6px; }
.copybox p { margin: 0; flex: 1; font-size: 13px; white-space: pre-wrap; }

@media (max-width: 1100px) {
  .swimlane { grid-template-columns: 170px repeat(4, minmax(150px, 1fr)); overflow-x: auto; }
  .matrix-wrap { grid-template-columns: 1fr; }
  .gap-panel { position: static; }
  .metrics { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 20px; }
  .hero h1 { font-size: 22px; }
  .swimlane { display: block; }
  .swimlane .lane-head { display: none; }
  .lane-cell { border-left: 0; }
  .lane-cell::before { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
  .lane-cell.col0::before { content: "Today"; }
  .lane-cell.col1::before { content: "Week 1"; }
  .lane-cell.col2::before { content: "Weeks 2-4"; }
  .lane-cell.col3::before { content: "Month 2"; }
  .metric { grid-template-columns: auto 1fr; }
}
