/* Rev8b schedule badges, schedule tables, and four appearance modes. */
.theme-control{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:700;color:#475569;white-space:nowrap}
.theme-control select{height:34px;border:1px solid #cbd5e1;border-radius:8px;padding:0 8px;background:#fff;color:#334155;font-size:11px}
.schedule-pill{font-size:9px!important;font-weight:800!important}
.schedule-pill.has-schedule,.legacy-badges .ed{background:#e9f2ff!important;color:#1d4ed8!important;border:1px solid #c9dfff}
.schedule-pill.unscheduled{background:#f1f5f9!important;color:#718096!important}
.legacy-card.pa-check{background:#fff1f2;border-color:#fb7185;box-shadow:0 2px 9px #e11d4820}
.legacy-badges .pa{background:#ffe4e6!important;color:#be123c!important;font-weight:800}
.legacy-badges .ed{font-weight:800}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:18px 0}
.schedule-toolbar a{color:#2563eb;font-size:11px;font-weight:800}
.schedule-stage-label{align-self:center;color:#64748b;font-size:10px;font-weight:800;margin:0 4px}
.schedule-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.schedule-kpis div{border:1px solid #dbe5ef;border-radius:11px;padding:16px;background:#fff}
.schedule-kpis strong{display:block;color:#13385b;font-size:24px}
.schedule-kpis span{display:block;color:#697e94;font-size:10px;margin-top:5px}
.schedule-kpis .pa-kpi{background:#fff7ed;border-color:#fed7aa}
.schedule-kpis .pa-kpi strong{color:#c2410c}
.schedule-note{padding:13px 15px;border:1px solid #cfe2f4;background:#eff7ff;border-radius:9px;color:#365979;font-size:11px;line-height:1.7}
.schedule-table{min-width:900px}
.schedule-table td,.schedule-table th{font-size:10px;padding:9px 10px}
.schedule-table td:last-child{max-width:280px}
.schedule-table td button{display:inline-block;border:1px solid #d6e5f4;border-radius:5px;padding:3px 5px;margin:1px;font-size:9px}
.ed-text{color:#2563eb}
.schedule-table .pa-row{background:#fff1f2}
.schedule-table .pa-row td:last-child{color:#be123c;font-weight:800}
.schedule-table small{color:#64748b}
.ref-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.ref-list button{display:flex;flex-direction:column;gap:3px;text-align:left;border:1px solid #d2e2f2;border-radius:7px;background:#f7fbff;padding:8px 10px;font-size:10px;color:#1e4f80}
.ref-list span{font-size:9px;color:#64748b}
.pa-detail{margin:7px 0;padding:8px 10px;background:#fff1f2;border-radius:6px;font-size:10px;color:#9f1239}
@media(max-width:700px){.schedule-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-control{order:2}.schedule-kpis strong{font-size:19px}}

:root[data-theme=sand]{--paper:#fbf6eb;--line:#e5dfd0;--ink:#433b2e;--muted:#81786a}
:root[data-theme=sand] body{background:#eae5da}
:root[data-theme=sand] .az-shell,:root[data-theme=sand] .dash-header{background:#fffaf0}
:root[data-theme=sand] .phase-block,:root[data-theme=sand] .overview-phase,:root[data-theme=sand] .flow-card,:root[data-theme=sand] .source-card,:root[data-theme=sand] .decision-option{background:#fcf8ee}
:root[data-theme=sand] .tabs,:root[data-theme=sand] .search,:root[data-theme=sand] .lane-head,:root[data-theme=sand] .legacy-lane-head{background:#f1eadb}
:root[data-theme=sand] .summary-band{background:linear-gradient(105deg,#594435,#40392f 65%,#67533b)}
:root[data-theme=navy],:root[data-theme=charcoal]{--ink:#ecf2f9;--muted:#a9b9cb;--line:#425066;color-scheme:dark}
:root[data-theme=navy] body{background:#111c32}
:root[data-theme=charcoal] body{background:#17191d}
:root[data-theme=navy] .az-shell,:root[data-theme=navy] .dash-header,:root[data-theme=navy] .detail-dialog{background:#1b2940;color:#ecf2f9;border-color:#40516b}
:root[data-theme=charcoal] .az-shell,:root[data-theme=charcoal] .dash-header,:root[data-theme=charcoal] .detail-dialog{background:#24272b;color:#ecf2f9;border-color:#46505a}
:root[data-theme=navy] .summary-band{background:linear-gradient(105deg,#153d66,#172d4b 65%,#22466c)}
:root[data-theme=charcoal] .summary-band{background:linear-gradient(105deg,#1e4444,#26363a 65%,#27414a)}
:root[data-theme=navy] .phase-block,:root[data-theme=navy] .overview-phase,:root[data-theme=navy] .flow-card,:root[data-theme=navy] .source-card,:root[data-theme=navy] .decision-option,:root[data-theme=navy] .ei-column,:root[data-theme=navy] .dialog-box,:root[data-theme=navy] .dialog-track,:root[data-theme=navy] .standards,:root[data-theme=navy] .schedule-note{background:#22334d;border-color:#40516b}
:root[data-theme=charcoal] .phase-block,:root[data-theme=charcoal] .overview-phase,:root[data-theme=charcoal] .flow-card,:root[data-theme=charcoal] .source-card,:root[data-theme=charcoal] .decision-option,:root[data-theme=charcoal] .ei-column,:root[data-theme=charcoal] .dialog-box,:root[data-theme=charcoal] .dialog-track,:root[data-theme=charcoal] .standards,:root[data-theme=charcoal] .schedule-note{background:#2c3035;border-color:#46505a}
:root[data-theme=navy] .search,:root[data-theme=navy] .tabs,:root[data-theme=navy] .lane-head,:root[data-theme=navy] .legacy-lane-head,:root[data-theme=navy] .ei-column h3,:root[data-theme=navy] .schedule-kpis div{background:#293c58;border-color:#40516b}
:root[data-theme=charcoal] .search,:root[data-theme=charcoal] .tabs,:root[data-theme=charcoal] .lane-head,:root[data-theme=charcoal] .legacy-lane-head,:root[data-theme=charcoal] .ei-column h3,:root[data-theme=charcoal] .schedule-kpis div{background:#34393f;border-color:#46505a}
:root[data-theme=navy] .activity-card,:root[data-theme=navy] .legacy-card,:root[data-theme=navy] .overview-stage,:root[data-theme=navy] .gate-card,:root[data-theme=navy] .action,:root[data-theme=navy] .chip-row button,:root[data-theme=navy] .ref-list button,:root[data-theme=navy] .theme-control select{background:#1f304a;color:#e6eff9;border-color:#445775}
:root[data-theme=charcoal] .activity-card,:root[data-theme=charcoal] .legacy-card,:root[data-theme=charcoal] .overview-stage,:root[data-theme=charcoal] .gate-card,:root[data-theme=charcoal] .action,:root[data-theme=charcoal] .chip-row button,:root[data-theme=charcoal] .ref-list button,:root[data-theme=charcoal] .theme-control select{background:#292e33;color:#e6eff9;border-color:#4b5862}
:root[data-theme=navy] .legacy-card.pa-check,:root[data-theme=charcoal] .legacy-card.pa-check,:root[data-theme=navy] .schedule-table .pa-row,:root[data-theme=charcoal] .schedule-table .pa-row{background:#49303b;border-color:#d35d73}
:root[data-theme=navy] .activity-card strong,:root[data-theme=navy] .legacy-card strong,:root[data-theme=navy] .overview-phase h3,:root[data-theme=navy] .schedule-kpis strong,:root[data-theme=charcoal] .activity-card strong,:root[data-theme=charcoal] .legacy-card strong,:root[data-theme=charcoal] .overview-phase h3,:root[data-theme=charcoal] .schedule-kpis strong{color:#edf5ff}
:root[data-theme=navy] .matrix thead th,:root[data-theme=charcoal] .matrix thead th{background:#32425b;color:#eaf2fb}
:root[data-theme=navy] .matrix td,:root[data-theme=navy] .matrix th,:root[data-theme=charcoal] .matrix td,:root[data-theme=charcoal] .matrix th{border-color:#45576a;color:#dce7f2}
:root[data-theme=navy] .dialog-head,:root[data-theme=charcoal] .dialog-head{background:#29343f;border-color:#46576a}
:root[data-theme=navy] .dialog-source,:root[data-theme=charcoal] .dialog-source{background:#3a3830;color:#f2e3b8;border-color:#706341}
:root[data-theme=navy] .tabs button[aria-selected=true],:root[data-theme=charcoal] .tabs button[aria-selected=true],:root[data-theme=navy] .chip-row button[aria-pressed=true],:root[data-theme=charcoal] .chip-row button[aria-pressed=true]{background:#176b78;color:#fff;border-color:#176b78}
:root[data-theme=navy] .schedule-note,:root[data-theme=charcoal] .schedule-note,:root[data-theme=navy] .dialog-box p,:root[data-theme=charcoal] .dialog-box p,:root[data-theme=navy] .dialog-track p,:root[data-theme=charcoal] .dialog-track p{color:#c2d4e5}
:root[data-theme=navy] .legacy-lane-head,:root[data-theme=charcoal] .legacy-lane-head,:root[data-theme=navy] .lane-head,:root[data-theme=charcoal] .lane-head,:root[data-theme=navy] .theme-control,:root[data-theme=charcoal] .theme-control{color:#e5f0fb}
:root[data-theme=navy] .activity-card .card-copy,:root[data-theme=charcoal] .activity-card .card-copy,:root[data-theme=navy] .legacy-dept,:root[data-theme=charcoal] .legacy-dept,:root[data-theme=navy] .flow-card p,:root[data-theme=charcoal] .flow-card p,:root[data-theme=navy] .flow-card li,:root[data-theme=charcoal] .flow-card li,:root[data-theme=navy] .ei-list p,:root[data-theme=charcoal] .ei-list p,:root[data-theme=navy] .dialog-body .lead,:root[data-theme=charcoal] .dialog-body .lead,:root[data-theme=navy] .schedule-kpis span,:root[data-theme=charcoal] .schedule-kpis span{color:#aebfd2}
:root[data-theme=navy] .action.primary,:root[data-theme=charcoal] .action.primary{background:#0e7785;border-color:#0e7785;color:#fff}
:root[data-theme=navy] .schedule-table .pa-row td:last-child,:root[data-theme=charcoal] .schedule-table .pa-row td:last-child{color:#ff9eb1}
@media print{:root[data-theme=navy] .az-shell,:root[data-theme=charcoal] .az-shell{background:#fff;color:#111}}
