/* The dashboard and Schedule share the same light workspace shell. */
body[data-workspace] {
  --office-edge: #d9e7f2;
  --office-ink: #102e49;
  --office-muted: #47647a;
  --office-shadow: 0 12px 34px #234d7210;
  background: radial-gradient(ellipse at 90% 0%, #ffead7 0%, transparent 29rem), linear-gradient(140deg, #dceefb, #f7fbff 60%);
}
body[data-workspace] > .pilot-strip { background: #103651; min-height: 24px; padding-block: 6px; }
body[data-workspace] .dia-sidebar {
  color: var(--office-ink);
  background: linear-gradient(140deg, #f8fcffed, #eaf5ffde);
  border-right: 1px solid var(--office-edge);
  height: calc(100dvh - 24px);
}
body[data-workspace] .dia-brand small, body[data-workspace] .dia-account small { color: var(--office-muted); }
body[data-workspace] .dia-sidebar .dia-nav-item { color: #38566f; font-size: 13px; }
body[data-workspace] .dia-sidebar .dia-nav-item:hover { color: #123d62; background: #edf6ff; }
body[data-workspace] .dia-sidebar .dia-nav-item.active { color: #0e486f; background: #dbeffc; box-shadow: inset 3px 0 #e98642; }
body[data-workspace] .dia-nav-item .dia-nav-icon { color: #2d6289; background: #ffffffad; border-color: #b7d1e4; }
body[data-workspace] .dia-account { border-top-color: var(--office-edge); }
body[data-workspace] .dia-account > span { background: #dceefd; }
body[data-workspace] .dia-mobile { color: var(--office-ink); background: #f2f9ff; border-bottom: 1px solid var(--office-edge); }
body[data-workspace] .dia-mobile > button, body[data-workspace] .dia-nav-close { color: #17476a; background: #e1effa; border-color: #b6cde0; }
body[data-workspace] :is(.dia-mobile > button) span { background: #17476a; }

body[data-workspace="dashboard"] .main { max-width: 1510px; margin: 0 auto; width: 100%; padding-inline: clamp(16px, 3vw, 42px); }
.main .topbar { padding: 0 0 17px; border-bottom: 1px solid var(--office-edge); }
.main .topbar h1 { font-size: clamp(25px, 3vw, 40px); letter-spacing: -.045em; }
.main .topbar .office-lock { min-width: auto; border-color: var(--office-edge); border-radius: 12px; background: #ffffffc2; }
.main .topbar .office-lock span { font-size: 9px; }
.main .topbar .office-lock strong { font-size: 12px; }
.main .topbar .sync-status { font-size: 11px; }
.dashboard-metrics { margin-top: 0; gap: 14px; }
.dashboard-metrics article, .office-board .panel {
  border: 1px solid #dae8f3;
  border-radius: 16px;
  background: #ffffffed;
  box-shadow: var(--office-shadow);
}
.dashboard-metrics article { padding: 16px 17px; }
.dashboard-metrics article:first-child { background: #0b507f; border-color: #155e8e; color: #fff; }
.dashboard-metrics article:first-child :is(span, small) { color: #e1f2ff; }
.dashboard-metrics article:last-child { border-color: #efdbc8; background: #fffbf5; }
.dashboard-metrics .metric-label { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.dashboard-metrics .metric-label span { color: var(--office-muted); font-weight: 800; }
.metric-label i { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #eaf5ff; color: #215b84; font-size: 10px; font-style: normal; font-weight: 800; }
.dashboard-metrics article:first-child i { color: #f2faff; background: #3279a7; }
.dashboard-metrics article:last-child i { color: #904317; background: #ffeedc; }
.dashboard-metrics strong { font-size: clamp(26px, 3vw, 37px); }
.dashboard-metrics small { color: var(--office-muted); line-height: 1.35; }
.dashboard-grid.office-board { grid-template-columns: minmax(0, 1.35fr) minmax(250px, .85fr); align-items: stretch; gap: 14px; }
.office-board .panel, .office-board .attention-panel { min-width: 0; padding: 18px 20px; }
.office-board .section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.office-board .section-head h3 { margin: 4px 0 0; font: 800 20px Manrope, sans-serif; letter-spacing: -.035em; }
.office-board .section-head .eyebrow { font-size: 10px; }
.board-link { border: 0; background: none; color: #175f91; font-size: 12px; font-weight: 800; min-height: 44px; padding: 5px 0 5px 7px; }
.board-link:hover { text-decoration: underline; }
.outcome-total { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 12px; }
.outcome-total strong { font: 800 43px/1 Manrope, sans-serif; color: var(--office-ink); letter-spacing: -.06em; }
.outcome-total span { color: var(--office-muted); font-size: 13px; }
.decision-meter { display: flex; gap: 3px; height: 13px; background: #edf4fa; border-radius: 10px; overflow: hidden; }
.meter-part { flex-basis: 0; min-width: 4px; border-radius: 10px; }
.meter-0 { background: #177cb5; }
.meter-1 { background: #d88039; }
.meter-2 { background: #88a6bb; }
.decision-key { margin: 14px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.decision-key div { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.decision-key div::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #177cb5; }
.decision-key div:nth-child(2)::before { background: #d88039; }
.decision-key div:nth-child(3)::before { background: #88a6bb; }
.decision-key dt { color: var(--office-muted); }
.decision-key dd { margin: 0; font-weight: 800; }
.office-board .attention-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  color: #f7fbff;
  background: radial-gradient(ellipse at 100% 0, #3b5772, transparent 52%), #102f4b;
  box-shadow: 0 12px 30px #12385425;
}
.attention-panel .section-head .eyebrow { color: #ffc994; }
.attention-items { flex: 1 1 auto; }
.attention-items > p { color: #d4e3f1; font-size: 13px; line-height: 1.6; }
.attention-items button { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; min-height: 46px; padding: 6px 0; border: 0; border-bottom: 1px solid #ffffff34; background: transparent; color: #f5fbff; text-align: left; }
.attention-items button:hover b { text-decoration: underline; }
.attention-items button b, .attention-items button small { display: block; }
.attention-items button b { font-size: 13px; }
.attention-items button small { font-size: 11px; color: #cbdfee; overflow-wrap: anywhere; }
.attention-items button em { flex-shrink: 0; color: #ffd0a7; background: #ffffff15; padding: 4px 7px; border-radius: 5px; font: 700 10px "DM Sans", sans-serif; }
.attention-link { align-self: flex-start; min-height: 44px; padding: 8px 11px; margin-top: 12px; border: 1px solid #9fb9d179; border-radius: 8px; background: #ffffff12; color: #f5fbff; font-size: 12px; font-weight: 800; }
.attention-link:hover { background: #ffffff27; }
.office-board .recent-panel { grid-column: 1 / -1; }
.office-board .recent-panel .batch-file p { min-width: 0; overflow-wrap: anywhere; }
.public-demo .dia-account[href], .public-demo [data-action="test-ai"], .public-demo [data-action="backup-clear"] { display: none; }
.sample-source-document { padding: 24px; overflow-wrap: anywhere; }
.sample-source-document p { line-height: 1.6; }
.sample-source-document small { color: #47647a; }
@media (max-width: 960px) {
  .dashboard-grid.office-board { grid-template-columns: minmax(0, 1fr); }
  .main .topbar .top-actions { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  body[data-workspace] .dia-sidebar { height: 100dvh; }
  .main .topbar { padding-top: 14px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metrics article { padding: 12px; }
  .office-board .panel, .office-board .attention-panel { padding: 15px; }
}
@media (max-width: 380px) {
  .metric-label i { display: none; }
}
@media (prefers-reduced-motion: reduce) { .main .page.active { animation: none; } }

.payer-check { margin: 16px 0 0; color: var(--office-muted); font-size: 12px; }
.payer-check strong { margin-left: 4px; color: var(--office-ink); }
.office-board .section-head { min-height: auto; padding: 0 0 13px; }
.office-board .attention-panel .section-head { border-bottom-color: #ffffff34; }
.office-board .batch-summary { padding: 1px 0 0; }
.office-board .batch-summary > div:first-child { border-color: #d7e7f3; background: #f0f8ff; }
.office-board .batch-summary b { font-size: 13px; }
.office-board .batch-summary small { font-size: 11px; }
.office-board .batch-summary button { min-height: 44px; color: #165d8d; font-size: 12px; padding: 6px; }
.office-board .batch-summary button:hover { text-decoration: underline; }
.office-board .batch-summary button:disabled { color: var(--office-muted); }
.public-demo .main > footer a { color: #1a5f90; font-size: 12px; font-weight: 700; }
@media (max-width: 1050px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .office-board .section-head { flex-direction: row; align-items: center; }
  .office-board .batch-summary > div:first-child { grid-template-columns: 33px 1fr; }
  .office-board .batch-file { padding-inline: 0; grid-template-columns: 29px minmax(0, 1fr) auto; }
  .office-board .batch-file button { grid-column: 3; }
}
