/* Active palette: Sea glass with crisp blue actions and warm chart accents. */
:root {
  color-scheme: light;
  --ink: #0f1a16;
  --muted: #52665e;
  --line: #c4d3cd;
  --card-border: #9cafa2;
  --surface: #ffffff;
  --primary: #2866a0;
  --primary-hover: #205383;
  --secondary: #dbe8f5;
  --secondary-hover: #c6dbef;
  --secondary-border: #627e9b;
  --chart-completed: #8760b0;
  --accent-gold: #c96f65;
  --action-tint: #e6eff9;
  --canvas: #d7ded9;
  --blue: #2866a0;
  --blue-dark: #214b73;
  --green: #1f9d68;
  --orange: #b85d12;
  --appointment-soft: #fff0dc;
  --appointment-soft-hover: #ffe5c2;
  --appointment-soft-selected: #ffd9aa;
  --appointment-border: #cf8a4e;
  --red: #b54851;
  --purple: #765d9f;
  --status-waiting: #287fc5;
  --status-completed: #4c826c;
  --chart-wait: var(--status-waiting);
  --chart-meeting: var(--green);
  --field-background: #ffffff;
  --form-surface: #f9f9f9;
  --field-border: #7c9185;
  --button-primary: #315b9a;
  --button-primary-hover: #254779;
  --button-secondary: #e0eafb;
  --button-secondary-hover: #cadbf5;
  --button-secondary-border: #6d83a5;
  --button-secondary-ink: #294975;
  --button-danger: #fbe5e6;
  --button-danger-hover: #f5d0d3;
  --button-danger-border: #b66a74;
  --button-danger-ink: #983647;
  --table-header: var(--canvas);
  --table-header-sorted: var(--button-secondary);
  --table-header-hover: var(--button-secondary-hover);
  --table-header-ink: #35424b;
  --table-header-border: #9daab3;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  display: flex; align-items: center; gap: 40px; min-height: 72px; padding: 0 max(24px, calc((100vw - 1280px) / 2));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand, .bigboard-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; box-sizing: border-box; width: 30px; height: 30px; padding-bottom: 4px; border-radius: 5px; background: var(--primary); color: #fff; font-size: 25px; line-height: 1; text-align: center; }
.navigation { display: flex; align-self: stretch; gap: 8px; }
.navigation a { display: inline-flex; align-items: center; padding: 0 13px; border-bottom: 3px solid transparent; color: #52665e; font-size: 14px; text-decoration: none; }
.navigation a:hover, .navigation a.active { color: var(--blue); }
.navigation a.active { border-bottom-color: var(--blue); font-weight: 600; background: var(--action-tint); }

.page-shell { width: min(1280px, calc(100% - 48px)); margin: 34px auto 64px; }
.page-shell-narrow { width: min(570px, calc(100% - 40px)); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 2px 0 6px; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.7px; }
.page-heading p { margin: 0; }
.page-heading .muted, .page-heading .eyebrow, .page-heading .live-indicator { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.muted { color: var(--muted); }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.live-indicator span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #31795d22; }

.panel { border: 1px solid var(--card-border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 20px #20353405; }
.intake-panel, .history-filters, .queue-panel, .detail-panel { background: var(--form-surface); }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.summary-card { display: flex; flex-direction: column; gap: 15px; min-height: 124px; padding: 20px; border: 1px solid var(--line); border-left: 8px solid var(--blue); border-radius: 14px; background: var(--surface); }
.summary-card span, .total-card span { color: var(--muted); font-size: 13px; }
.summary-card strong { font-size: 30px; line-height: 1; }
.summary-waiting { border-left-color: var(--status-waiting); }
.summary-active { border-left-color: var(--green); }
.summary-hold { border-left-color: var(--red); }
.summary-paused { border-left-color: var(--purple); }
.summary-served { border-left-color: var(--status-completed); }
.average-panel { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 20px 24px; }
.average-panel h2, .panel-heading h2 { margin: 3px 0 0; font-size: 18px; }
.average-panel .eyebrow, .panel-heading .eyebrow { margin: 0; }
.average-value { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--blue); }
.average-value strong { font-size: 30px; }
.average-value span { color: var(--muted); font-size: 13px; }
.totals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.total-card { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 17px 20px; }
.total-card strong { grid-row: span 2; font-size: 27px; }
.total-card small { color: var(--muted); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.chart-panel { min-height: 300px; padding: 24px; box-shadow: 0 8px 28px #0f1a1608; }
.chart-panel-wide { grid-column: 1 / -1; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.bar-chart { display: flex; align-items: end; gap: clamp(8px, 2vw, 22px); height: 196px; margin-top: 30px; padding: 0 8px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e2ebe6 calc(25% - 1px), #e2ebe6 25%); }
.bar-column { position: relative; display: flex; flex: 1; align-items: center; justify-content: end; flex-direction: column; gap: 9px; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.bar-column:hover, .bar-column:focus { background: #2866a012; border-radius: 8px 8px 0 0; }
.bar-column:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.bar-track { display: flex; flex: 1; align-items: end; justify-content: center; width: min(46px, 75%); min-height: 0; }
.bar-fill { display: block; width: 100%; min-height: 0; border-radius: 3px 3px 0 0; background: var(--status-completed); box-shadow: inset 0 1px 0 #ffffff55; transition: height .25s ease, filter .15s ease; }
.bar-column:hover .bar-fill, .bar-column:focus .bar-fill { filter: brightness(1.08); }
#chart-served .bar-fill { background: var(--chart-completed); }
#chart-hours .bar-fill { background: var(--accent-gold); }
.bar-fill.wait { background: var(--chart-wait); }
.bar-fill.service { background: var(--chart-meeting); }
.stacked-bars .bar-fill.wait { border-radius: 0; }
.stacked-bars .bar-fill.service { border-radius: 3px 3px 0 0; }
.bar-label { padding: 4px 0 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.bar-value { color: #52665e; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-column:hover .bar-value, .bar-column:hover .bar-label, .bar-column:hover .chart-value-unit,
.bar-column:focus .bar-value, .bar-column:focus .bar-label, .bar-column:focus .chart-value-unit { color: var(--ink); font-weight: 750; }
.stacked-bars { flex-direction: column; justify-content: end; }
.stacked-bars .bar-fill { display: grid; flex-shrink: 0; place-items: center; overflow: hidden; }
.bar-segment-value { color: #fff; font-size: 10px; font-weight: 750; line-height: 1; text-shadow: 0 1px 2px #0008; }
.chart-legend { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.chart-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend-wait { background: var(--chart-wait); }
.legend-service { background: var(--chart-meeting); }
.chart-hint { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.chart-hint-emphasis { color: var(--ink); font-weight: 700; }

.intake-shell { width: min(1040px, calc(100% - 40px)); }
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.intake-panel { padding: 0; overflow: hidden; }
.intake-section { min-width: 0; margin: 0; padding: 28px 32px 32px; border: 0; }
.intake-section + .intake-section { border-top: 1px solid var(--line); }
.intake-section legend { float: left; width: 100%; padding: 0; font-size: 18px; font-weight: 650; }
.section-description { clear: both; margin: 0 0 22px; padding-top: 10px; color: var(--muted); font-size: 14px; }
.choice-field { display: grid; align-content: start; gap: 12px; min-width: 0; }
.intake-footer { padding: 22px 32px; border-top: 1px solid var(--line); }
.intake-footer .button-row { justify-content: flex-start; margin: 0; }
.intake-footer .button { min-height: 46px; padding: 12px 20px; }
.intake-panel .checkbox-field { display: flex; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #eff5f1; cursor: pointer; }
.intake-panel .appointment-field { padding: 0; border: 0; border-radius: 0; background: transparent; }
.checkbox-field.appointment-field input { accent-color: var(--orange); }
.checkbox-field strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.checkbox-field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.wait-card { padding: 26px; background: linear-gradient(145deg, #edf3fa, #d4e1f0); border-color: #b2c5dd; border-top: 4px solid var(--blue); box-shadow: 0 8px 24px #254e3f14; }
.aside-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 14px; background: #fff; color: var(--blue); font-size: 28px; box-shadow: 0 3px 10px #254e3f10; }
.wait-card h2 { margin: 10px 0 14px; font-size: 17px; font-weight: 600; }
.wait-card > strong { display: block; color: var(--blue-dark); font-size: 34px; letter-spacing: -.5px; }
.wait-card > p:last-child { margin: 14px 0 0; color: #506580; font-size: 13px; line-height: 1.6; }
.intake-guide { padding: 24px; }
.intake-guide > .eyebrow { margin: 0 0 8px; }
.intake-guide dl { margin: 0; }
.intake-guide h2 { margin: 0 0 20px; font-size: 17px; }
.intake-guide dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.intake-guide dt::before { content: ""; width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.guide-waiting::before { background: var(--status-waiting); }
.guide-hold::before { background: var(--red); }
.guide-appointment::before { background: var(--orange); }
.intake-guide dd { margin: 8px 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.intake-guide a { color: var(--blue); font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #304b3e; font-size: 14px; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .date-navigation input {
  width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--field-border); border-radius: 9px; background: var(--field-background); color: var(--ink); font-weight: 400;
}
.field textarea { min-height: 82px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .date-navigation input:hover, .weekday-picker summary:hover { border-color: var(--blue); }
.field input:focus, .field select:focus, .field textarea:focus, .date-navigation input:focus { outline: 3px solid #2866a033; border-color: var(--blue); background: #fff; }
.checkbox-field { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: #52665e; font-size: 14px; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--blue); }
.button-row { display: flex; justify-content: center; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 600; box-shadow: 0 2px 3px #18334b18; transition: background .15s, border .15s; }
.button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible { outline: 3px solid #2866a088; outline-offset: 3px; }
.button-primary, .button-success { background: var(--button-primary); border-color: var(--button-primary); color: #fff; }
.button-primary:hover, .button-success:hover { background: var(--button-primary-hover); border-color: var(--button-primary-hover); }
.button-danger { border-color: var(--button-danger-border); background: var(--button-danger); color: var(--button-danger-ink); }
.button-danger:hover { background: var(--button-danger-hover); }
.button-neutral { border-color: var(--button-secondary-border); background: var(--button-secondary); color: var(--button-secondary-ink); }
.button-neutral:hover, .button-subtle:hover { background: var(--button-secondary-hover); border-color: var(--button-primary); }
.button-test { margin-left: auto; border: 1px dashed #a88b68; background: #fff8ed; color: #76583a; }
.button-test:hover { border-style: solid; background: #f8ead5; }
.button-subtle { min-width: 40px; border-color: var(--button-secondary-border); background: var(--button-secondary); color: var(--button-secondary-ink); font-size: 22px; }
.average-wait-line { margin: 25px 0 0; color: var(--muted); text-align: center; }
.average-wait-line strong { color: var(--ink); }
.clock-icon { margin-right: 4px; color: var(--blue); font-size: 20px; vertical-align: -2px; }

.notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #d4e6d9; border-radius: 8px; background: #f0faf3; color: #205a35; font-size: 14px; }
.notice-error { border-color: #f0c6c6; background: #fff2f2; color: #8d2828; }
#form-notice:not(.notice-error) { border-color: #e5b777; background: #fff2df; color: #784719; }
.management-layout { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(420px, 1.12fr); gap: 16px; align-items: start; }
.queue-panel, .detail-panel { min-height: 490px; padding: 20px; }
.detail-panel { padding: 28px; }
.status-key { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 18px 0 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.status-key span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.status-dot { width: 12px; height: 12px; border-radius: 4px; }
.status-waiting { background: var(--status-waiting); }
.status-appointment { background: var(--orange); }
.status-active { background: var(--green); }
.status-paused { background: var(--purple); }
.status-hold { background: var(--red); }
.queue-list { display: grid; gap: 8px; max-height: 72vh; overflow: auto; }
.queue-card { --status-color: var(--status-waiting); display: flex; align-items: flex-start; gap: 11px; width: 100%; min-height: 82px; padding: 16px 14px; border: 1px solid var(--line); border-left: 8px solid var(--status-color); border-radius: 11px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.queue-card-active { --status-color: var(--green); }
.queue-card-appointment { --status-color: var(--orange); }
.queue-card-paused { --status-color: var(--purple); }
.queue-card-hold { --status-color: var(--red); }
.queue-card:hover { border-top-color: #80968b; border-right-color: #80968b; border-bottom-color: #80968b; box-shadow: 0 4px 12px #203a2d1c; transform: translateY(-1px); }
.queue-card.selected { border-top-color: var(--secondary-border); border-right-color: var(--secondary-border); border-bottom-color: var(--secondary-border); box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-color) 28%, transparent), 0 5px 14px #203a2d22; transform: none; }
.queue-card-name { display: block; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.queue-card-meta { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.queue-card-main { min-width: 0; flex: 1; }
.queue-card-minutes { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.queue-card-wait-warning .queue-card-minutes { color: var(--orange); }
.queue-card-wait-danger .queue-card-minutes { color: var(--red); animation: queue-time-pulse 1.8s ease-in-out infinite; }
@keyframes queue-time-pulse {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.status-pill { flex: 0 0 auto; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; background: var(--status-waiting); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill-active { background: var(--green); color: #fff; }
.status-pill-appointment { background: var(--orange); color: #fff; }
.status-pill-paused { background: var(--purple); color: #fff; }
.status-pill-hold { background: var(--red); color: #fff; }
.empty-state { display: grid; justify-items: center; align-content: center; min-height: 440px; color: var(--muted); text-align: center; }
.empty-state h2 { margin: 16px 0 5px; color: var(--ink); font-size: 20px; }
.empty-state p { max-width: 280px; margin: 0; line-height: 1.5; }
.empty-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e7efeb; color: var(--blue); font-size: 32px; }
.queue-direction::before { content: "←"; font-size: 39px; font-weight: 800; line-height: 1; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.detail-header h2 { margin: 0; font-size: clamp(25px, 2.4vw, 34px); font-weight: 720; letter-spacing: -.6px; line-height: 1.1; }
.detail-title { min-width: 0; }
.detail-header-contact { margin: 8px 0 0; color: #304b3e; font-size: 14px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.detail-header .detail-timing { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 9px 0 0; color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.6; }
.detail-timing-wait { color: var(--status-waiting); }.detail-timing-meeting { color: var(--green); }.detail-timing-total { color: var(--chart-completed); }.detail-timing-paused { color: var(--purple); }
.detail-timing span:not(:last-child)::after { content: "-"; margin: 0 8px; color: var(--muted); }
.detail-header-actions { display: grid; justify-items: end; gap: 9px; flex: 0 0 auto; }
.detail-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.detail-status .status-dot { width: 9px; height: 9px; border-radius: 50%; }
.detail-edit-button, .detail-cancel-action { min-height: 34px; padding: 6px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.detail-edit-button:hover { border-color: var(--secondary-border); background: var(--button-secondary); color: var(--button-secondary-ink); }
.detail-edit-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.detail-overview { display: grid; gap: 19px; padding: 21px; border: 1px solid var(--card-border); border-radius: 11px; background: #fff; box-shadow: 0 4px 14px #203a2d0d; }
.detail-label, .detail-copy h3 { display: block; margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .75px; text-transform: uppercase; }
.detail-email-link { color: inherit; text-decoration-color: #829aab; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.detail-email-link:hover { color: var(--blue); text-decoration-color: currentColor; }
.detail-email-link:focus-visible { border-radius: 2px; outline: 2px solid var(--blue); outline-offset: 2px; }
.detail-narrative { display: grid; gap: 17px; }
.detail-copy { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.detail-copy p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-empty-value { color: var(--muted) !important; font-style: italic; font-weight: 450 !important; }
.detail-assignment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2px 0; }
.detail-assignment > div { min-width: 0; padding: 5px 18px 5px 0; }
.detail-assignment > div + div { padding-right: 0; padding-left: 18px; border-left: 1px solid var(--line); }
.detail-assignment strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-edit-region { padding-top: 4px; }
.detail-form .form-grid { gap: 14px; }
.detail-form .field { font-size: 13px; }
.detail-form .field input, .detail-form .field select, .detail-form .field textarea { min-height: 44px; padding: 10px 11px; }
.detail-form .field textarea { min-height: 70px; }
.detail-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-edit-actions .button { min-height: 40px; padding: 9px 12px; font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-actions .button { min-height: 40px; padding: 9px 12px; font-size: 13px; }
.detail-secondary-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.detail-cancel-action:hover { border-color: #d5a7ad; background: var(--button-danger); color: var(--button-danger-ink); }
.detail-cancel-action:focus-visible { outline: 2px solid #a84b55; outline-offset: 3px; }
.confirmation-dialog { width: min(430px, calc(100% - 32px)); padding: 0; border: 1px solid var(--card-border); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 22px 65px #0f1a1640; }
.confirmation-dialog::backdrop { background: #10211966; backdrop-filter: blur(2px); }
.confirmation-dialog form { display: grid; justify-items: center; padding: 28px; text-align: center; }
.confirmation-dialog-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--button-danger); color: var(--button-danger-ink); font-size: 20px; font-weight: 750; }
.confirmation-dialog h2 { margin: 15px 0 8px; font-size: 22px; }
.confirmation-dialog p { max-width: 340px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.confirmation-dialog p strong { color: var(--ink); font-weight: 700; }
.confirmation-dialog-actions { display: flex; justify-content: center; gap: 9px; width: 100%; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.action-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.action-extra .field { font-size: 11px; }
.action-extra .field input { min-height: 36px; }
.detail-timing { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.date-navigation { display: flex; align-items: center; gap: 7px; }
.date-navigation input { width: 160px; min-height: 40px; }
.history-filters { padding: 20px; margin-bottom: 18px; }
.history-filters .form-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.history-toolbar { display: flex; align-self: end; }
.history-toolbar .button { min-height: 46px; white-space: nowrap; }
@media (min-width: 1100px) {
  .history-filters .form-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) max-content; }
}
.weekday-picker { position: relative; font-weight: 400; }
.weekday-picker summary { min-height: 46px; padding: 11px 12px; border: 1px solid var(--field-border); border-radius: 9px; background: var(--field-background); cursor: pointer; }
.weekday-options { position: absolute; z-index: 2; top: calc(100% + 4px); width: 100%; min-width: 180px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 6px 18px #0f1a1622; }
.weekday-options label { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; }
.weekday-options .weekday-all { margin-bottom: 4px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-weight: 700; }
.weekday-options input { width: 17px; height: 17px; accent-color: var(--blue); }
.history-summary { margin: 18px 0; padding: 0; overflow: hidden; background: var(--form-surface); }
.history-summary-body { padding: 24px 24px 30px; }
.history-table-shell { position: relative; margin: -10px 16px 16px; overflow: hidden; border: 1px solid var(--card-border); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px #2035340d; }
.history-results-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.history-results-header h2 { margin: 0; font-size: 20px; }
.history-results-header p { margin: 7px 0 0; font-size: 12px; line-height: 1.6; }
.history-result-counts { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 14px 0 24px; }
.history-result-counts > div { display: flex; align-items: baseline; gap: 10px; }
.history-result-counts strong { color: var(--blue-dark); font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.history-result-counts > div:last-child strong { color: var(--green); }
.history-result-counts span { color: var(--muted); font-size: 13px; }
.history-applied-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.history-filter-value { min-width: 0; }
.history-filter-value dt { color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.history-filter-value dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 480px) { .history-summary-body { padding: 20px 20px 26px; } .history-table-shell { margin: -8px 10px 10px; border-radius: 10px; } .history-applied-filters { grid-template-columns: 1fr 1fr; gap: 18px; } .history-filter-value:last-child { grid-column: 1 / -1; } .history-result-counts > div { flex-wrap: wrap; gap: 7px; } }
.table-wrap { overflow-x: hidden; }
.history-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; padding: 18px 20px; border-top: 1px solid var(--line); }
.history-page-range { color: var(--ink); font-size: 14px; font-weight: 600; }
.history-page-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.history-page-label { color: var(--muted); font-size: 13px; }
.history-page-size { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.history-page-size-button { min-width: 34px; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.history-page-size-button:hover { background: var(--action-tint); }
.history-page-size-button[aria-pressed="true"] { border-color: var(--secondary-border); background: var(--secondary); color: var(--secondary-ink); }
.history-page-size-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.history-pagination .button:disabled { cursor: default; opacity: .45; box-shadow: none; }
.history-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; text-align: left; }
.history-table th, .history-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.history-table th { position: relative; background: var(--table-header); color: var(--table-header-ink); border-bottom-color: var(--table-header-border); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.history-table th:nth-child(1) { width: 9%; }.history-table th:nth-child(2) { width: 8%; }.history-table th:nth-child(3) { width: 8%; }.history-table th:nth-child(4) { width: 12%; }.history-table th:nth-child(5) { width: 14%; }.history-table th:nth-child(6) { width: 12%; }.history-table th:nth-child(7) { width: 9%; }.history-table th:nth-child(8) { width: 14%; }.history-table th:nth-child(9) { width: 14%; }
.history-table th.sortable { padding: 0; }
.history-table th[aria-sort] { background: var(--table-header-sorted); color: var(--button-secondary-ink); }
.history-sort-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 13px 15px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.history-sort-button:hover { background: var(--table-header-hover); }
.history-sort-button:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.history-sort-indicator { font-size: 16px; line-height: 1; }
.history-column-resizer { position: absolute; z-index: 2; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; touch-action: none; }
.history-column-resizer::after { content: ""; position: absolute; top: 24%; right: 0; width: 1px; height: 52%; background: #82909a; opacity: .55; }
.history-column-resizer:hover::after, .history-column-resizer:focus-visible::after { width: 2px; background: var(--blue); opacity: 1; }
.history-column-resizer:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.is-resizing-history, .is-resizing-history * { cursor: col-resize !important; user-select: none !important; }
.history-table td { overflow: hidden; background: #fff; font-size: 13px; line-height: 1.4; }
.history-cell-text { display: -webkit-box; overflow: hidden; max-height: 2.8em; white-space: normal; overflow-wrap: normal; word-break: keep-all; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.history-contact-link { color: inherit; text-decoration-color: #829aab; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.history-contact-link:hover { color: var(--blue); text-decoration-color: currentColor; }
.history-contact-link:focus-visible { border-radius: 2px; outline: 2px solid var(--blue); outline-offset: 2px; }
.history-table td[tabindex="0"] { cursor: pointer; }
.history-table td[tabindex="0"]:hover { background: #f5f8f6; }
.history-table td[tabindex="0"]:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.history-cell-popover { position: fixed; z-index: 20; width: max-content; max-width: min(420px, calc(100vw - 24px)); max-height: min(260px, calc(100vh - 24px)); overflow: auto; padding: 11px 13px; border: 1px solid #768b80; border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 8px 24px #10211930; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table a { color: var(--blue); }
.empty-message { padding: 35px 20px; text-align: center; }

.bigboard-page { min-height: 100vh; background: #071522; color: #f7fbff; }
.bigboard-shell { --board-gutter: clamp(24px, 4vw, 72px); display: flex; flex-direction: column; min-height: 100vh; padding: 8px var(--board-gutter) 0; }
.bigboard-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 2px solid #29445d; }
.bigboard-brand { color: #fff; font-size: clamp(24px, 2vw, 34px); }
.bigboard-brand .brand-mark { width: 42px; height: 42px; border-radius: 8px; background: #287fc5; color: #fff; font-size: 26px; }
.bigboard-header time { color: #fff; font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; font-variant-numeric: tabular-nums; }
.bigboard-section { margin-top: 24px; }
.bigboard-section h1, .bigboard-section h2 { margin: 0; padding-bottom: 14px; border-bottom: 2px solid #39536a; color: #fff; font-size: clamp(22px, 2.4vw, 34px); font-weight: 750; text-align: left; text-transform: uppercase; letter-spacing: 2px; }
.bigboard-section h2 { font-size: clamp(20px, 2vw, 29px); }
.bigboard-waiting-section { margin-top: auto; margin-bottom: 24px; }
.bigboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.bigboard-grid:has(> :only-child) { grid-template-columns: 1fr; }
.bigboard-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bigboard-card { display: grid; align-content: center; min-height: 104px; padding: 17px 24px; border: 3px solid #287fc5; border-radius: 10px; background: #17324d; text-align: left; box-shadow: 0 6px 16px #020a1230; }
.bigboard-card.serving { min-height: 112px; border-color: #28c28d; background: #103d39; color: #fff; }
.bigboard-card.appointment { border-color: #e17a22; }
.bigboard-card h3 { margin: 0; padding-bottom: .08em; overflow: hidden; font-size: clamp(27px, 3vw, 43px); font-weight: 750; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.bigboard-card p { margin: 12px 0 0; color: #c7dbec; font-size: clamp(17px, 1.45vw, 23px); font-weight: 600; line-height: 1.2; }
.bigboard-card.serving p { color: #c8f0e4; }
.bigboard-empty { margin: 0; padding: 28px; border: 1px dashed #38546d; border-radius: 12px; color: #b9cad9; font-size: clamp(18px, 1.5vw, 24px); text-align: center; }
.bigboard-footer { display: flex; align-items: center; margin-right: calc(0px - var(--board-gutter)); margin-left: calc(0px - var(--board-gutter)); padding: 17px var(--board-gutter); border-top: 2px solid #29445d; background: #10263a; }
.bigboard-footer p { flex: 0 0 auto; margin: 0; color: #fff; font-size: clamp(16px, 1.35vw, 21px); font-weight: 700; }
.bigboard-page .notice { margin-top: 12px; }

@media (max-width: 850px) {
  .queue-direction::before { content: "↑"; }
  .bigboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake-layout { grid-template-columns: 1fr; }
  .intake-aside { display: block; }
  .topbar { flex-wrap: wrap; gap: 4px 20px; padding: 12px 20px 0; }
  .navigation { width: 100%; min-height: 42px; overflow-x: auto; }
  .navigation a { padding: 0 9px; font-size: 13px; white-space: nowrap; }
  .page-shell { margin-top: 24px; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .management-layout { grid-template-columns: 1fr; }
  .queue-panel, .detail-panel { min-height: 0; }
  .queue-list { max-height: 360px; }
  .empty-state { min-height: 270px; }
}
@media (max-width: 560px) {
  .detail-panel { padding: 20px; }
  .bigboard-grid, .bigboard-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .intake-shell { width: calc(100% - 24px); }
  .intake-section, .intake-footer { padding: 24px 20px; }
  .intake-aside { grid-template-columns: 1fr; }
  .queue-card { flex-wrap: wrap; }
  .queue-card-main { flex-basis: 100%; }
  .page-shell, .page-shell-narrow { width: calc(100% - 24px); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .summary-card { min-height: 94px; padding: 13px; }
  .summary-card strong { font-size: 26px; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-panel-wide { grid-column: auto; }
  .totals-grid { grid-template-columns: 1fr; }
  .total-card { padding: 13px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .field-wide { grid-column: auto; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .date-navigation { width: 100%; }
  .date-navigation input { flex: 1; }
  .detail-assignment { grid-template-columns: 1fr; gap: 12px; }
  .detail-assignment > div + div { padding: 12px 0 5px; border-top: 1px solid var(--line); border-left: 0; }
  .detail-secondary-actions { width: 100%; margin-left: 0; }
  .bigboard-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dashboard */
.dashboard-heading h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.2px; }
.dashboard-heading { align-items: center; margin-bottom: 28px; }
.dashboard-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dashboard-cameo { position: fixed; z-index: 100; right: clamp(18px, 4vw, 58px); bottom: -4px; width: clamp(105px, 12vw, 155px); transform-origin: 50% 100%; pointer-events: none; animation: dashboard-cameo-dance 5.4s ease-in-out both; filter: drop-shadow(0 10px 13px #10211935); }
.dashboard-cameo img { display: block; width: 100%; height: auto; }
.dashboard-cameo-reduced { animation: none; }
@keyframes dashboard-cameo-dance {
  0% { opacity: 0; transform: translateY(112%) rotate(-7deg); }
  13% { opacity: 1; transform: translateY(5%) rotate(-7deg); }
  23% { transform: translateY(0) rotate(7deg); }
  33% { transform: translateY(-3%) rotate(-6deg); }
  43% { transform: translateY(0) rotate(7deg); }
  53% { transform: translateY(-4%) rotate(-4deg) scale(1.03); }
  65% { transform: translateY(0) rotate(3deg); }
  78% { opacity: 1; transform: translateY(3%) rotate(0); }
  100% { opacity: 0; transform: translateY(112%) rotate(5deg); }
}
.dashboard-overview { display: grid; grid-template-columns: 1fr; }
.dashboard-hero { padding: 23px 32px; border-radius: 20px; color: var(--ink); background: var(--surface); border: 1px solid var(--card-border); box-shadow: 0 8px 24px #0f1a1608; }
.hero-number { display: flex; align-items: baseline; gap: 16px; margin: 24px 0 4px; }
.hero-number strong { font-size: 76px; font-weight: 650; letter-spacing: -4px; line-height: 1; }
.hero-number > span { color: var(--muted); font-size: 19px; }
.dashboard-hero > p { color: var(--muted); margin: 12px 0 25px; font-size: 14px; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 36px 0 18px; }
.dashboard-today-heading { margin-top: 0; }
.dashboard-section-heading .eyebrow { margin: 0 0 8px; }
.dashboard-section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.dashboard-section-heading > p { font-size: 12px; margin: 0; }
.dashboard-volume { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--card-border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 20px #20353405; }
.dashboard-volume article { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-content: start; align-items: end; column-gap: 7px; row-gap: 3px; padding: 25px 31px; text-align: left; }
.dashboard-volume article + article::before { content: ""; position: absolute; top: 25px; bottom: 25px; left: 0; width: 1px; background: var(--line); }

.dashboard-volume span { grid-column: 1 / -1; min-height: 2.6em; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.dashboard-volume strong { color: var(--ink); font-size: 44px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.dashboard-volume small { padding-bottom: 3px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1; padding-left: 2px; }
.dashboard-charts { gap: 20px; margin-top: 20px; }
.dashboard-charts .chart-panel { padding: 26px; border-radius: 18px; min-width: 0; }
.dashboard-charts h2 { font-size: 19px; }
.chart-unit { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.staff-demand { display: grid; align-items: center; min-height: 232px; margin-top: 30px; border-bottom: 1px solid var(--line); }
.staff-pie-layout { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(190px, 1.2fr); align-items: center; gap: 24px; }
.staff-pie-wrap { position: relative; display: grid; width: min(210px, 100%); aspect-ratio: 1; justify-self: center; place-items: center; }
.staff-pie { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 5px 8px #0f1a1628); }
.staff-pie-slice { cursor: default; outline: none; transition: filter .15s, stroke-width .15s; }
.staff-pie-slice:hover, .staff-pie-slice:focus { filter: brightness(1.08); stroke: #fff; stroke-width: 1.5; }
.staff-pie-tooltip { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; gap: 2px; max-width: 76%; padding: 6px 9px; border-radius: 9px; background: #152433eb; color: #fff; font-size: 10px; font-weight: 400; line-height: 1.15; text-align: center; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 3px 10px #0f1a1640; }
.staff-pie-tooltip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-pie-tooltip strong { font-size: 13px; line-height: 1; }
.staff-pie-legend { display: grid; gap: 9px; max-height: 220px; overflow-y: auto; padding-right: 5px; }
.staff-pie-item { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.staff-pie-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-pie-meta { display: inline-flex; align-items: baseline; gap: 7px; }
.staff-pie-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.staff-pie-meta span { color: var(--muted); font-size: 11px; font-weight: 400; }
.staff-pie-swatch { width: 11px; height: 11px; border-radius: 3px; }
.dashboard-footnote { color: var(--muted); font-size: 11px; text-align: center; margin: 24px 0 0; line-height: 1.7; }
@media (max-width: 1050px) {
 .dashboard-volume article { padding: 22px 23px; grid-template-columns: auto minmax(0, 1fr); }
 .dashboard-volume article + article::before { top: 22px; bottom: 22px; }
}
@media (max-width: 750px) {
 .dashboard-overview { grid-template-columns: 1fr; }
 .dashboard-heading { align-items: flex-start; flex-direction: column; }
 .dashboard-charts { grid-template-columns: 1fr; }
 .dashboard-section-heading { align-items: flex-start; flex-direction: column; }
 .dashboard-volume { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .dashboard-volume article:nth-child(4)::before { display: none; }
 .dashboard-volume article:nth-child(n+4) { border-top: 1px solid var(--line); }
 .staff-pie-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
 .dashboard-shell { width: calc(100% - 24px); }
 .dashboard-hero { padding: 23px 24px; }
 .dashboard-volume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .dashboard-volume article:nth-child(3)::before, .dashboard-volume article:nth-child(5)::before { display: none; }
 .dashboard-volume article:nth-child(4)::before { display: block; }
 .dashboard-volume article:nth-child(n+3) { border-top: 1px solid var(--line); }
 
 .dashboard-charts .chart-panel { padding: 20px 16px; }
 .dashboard-charts .panel-heading { gap: 10px; }
 .chart-unit { letter-spacing: 0; }
 .dashboard-charts h2 { font-size: 17px; }
 .hero-number strong { font-size: 64px; }
}

/* Chart units and scales */
.bar-chart { position: relative; height: 232px; padding-left: 36px; background: none; }
.bar-chart::before { content: ""; position: absolute; top: 43px; bottom: 38px; left: 36px; right: 8px; pointer-events: none; background: linear-gradient(to bottom, #e2ebe6 1px, transparent 1px); background-size: 100% calc(100% / 3); }
.chart-scale { position: absolute; left: 0; top: 43px; bottom: 38px; width: 27px; display: flex; flex-direction: column; justify-content: space-between; color: #52665e; font-size: 10px; text-align: right; pointer-events: none; }
.chart-scale span { line-height: 0; }
.bar-value { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 3px; min-height: 34px; line-height: 1.2; white-space: nowrap; }
.chart-value-unit { color: var(--muted); font-size: 9px; font-weight: 400; }
.bar-label { display: flex; align-items: start; justify-content: center; min-height: 29px; line-height: 1.2; }
.dashboard-charts .panel-heading { align-items: flex-start; flex-wrap: wrap; }
.dashboard-charts .chart-unit { font-size: 10px; letter-spacing: .5px; font-weight: 700; }
#chart-hours .bar-label { font-size: 10px; }
@media (max-width: 480px) { #chart-hours { gap: 5px; } #chart-hours .bar-label { font-size: 9px; } }



.hero-totals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 12px 0; }
.hero-totals .hero-number { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; margin: 0; min-width: 0; padding-left: 5px; }
.hero-totals .hero-number + .hero-number { border-left: 1px solid var(--line); padding-left: 29px; }
.hero-totals .hero-number strong { font-size: clamp(42px, 6vw, 76px); letter-spacing: -2px; }
.hero-number-value { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.hero-totals .hero-unit { display: inline; margin: 0; padding-left: 6px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1; }
.hero-unit-stack { display: flex; align-self: flex-end; flex-direction: column; gap: 4px; padding-bottom: 7px; }
.hero-totals .hero-period { padding-left: 6px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1; }
.hero-totals .hero-number:nth-child(1) strong { color: var(--status-waiting); }
.hero-totals .hero-number:nth-child(2) strong { color: var(--green); }
.hero-totals .hero-number:nth-child(3) strong { color: var(--chart-completed); }
.hero-totals .hero-number > span { font-size: 16px; font-weight: 600; color: var(--ink); }

@media (max-width: 850px) {
 .hero-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
 .hero-totals .hero-number:nth-child(2n+3) { padding-left: 5px; border-left: 0; }
 .hero-totals .hero-number:nth-child(n+3) { padding-top: 24px; border-top: 1px solid var(--line); }
}

.chart-period-heading { display: flex; align-items: center; gap: 7px; }
.chart-period { width: auto; padding: 2px 3px 3px 0; border: 0; border-bottom: 1px dashed #708c7f; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; letter-spacing: inherit; cursor: pointer; }
.chart-period:hover { color: var(--blue-dark); border-bottom-color: var(--blue); }
.chart-period:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.chart-period option { background: #fff; color: var(--ink); letter-spacing: normal; }
