﻿:root {
  color-scheme: dark;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #162026;
  --muted: #66737b;
  --line: #d8e0e5;
  --accent: #146b8c;
  --accent-2: #2f7d58;
  --danger: #a63a3a;
  --warn: #a86d11;
  --shadow: 0 10px 24px rgba(16, 32, 40, 0.08);
  --surface-soft: #fbfcfd;
  --surface-soft-accent: #edf5f8;
  --surface-soft-muted: #f6f8fb;
  --surface-warning: #fffaf0;
}

body[data-ui-theme="default"] {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #162026;
  --muted: #66737b;
  --line: #d8e0e5;
  --line-soft: #e6edf1;
  --accent: #146b8c;
  --accent-2: #2f7d58;
  --danger: #a63a3a;
  --warn: #a86d11;
  --header-bg: #0f2630;
  --header-ink: #f5f9fc;
  --panel-ink: #fbfcfd;
  --surface-soft: #fbfcfd;
  --surface-soft-accent: #edf5f8;
  --surface-soft-muted: #f6f8fb;
  --surface-warning: #fffaf0;
}

body[data-ui-theme="ocean"] {
  --bg: #eef6fb;
  --panel: #fbfeff;
  --text: #102a3d;
  --muted: #355c76;
  --line: #cfe0ed;
  --line-soft: #deebf3;
  --accent: #12779f;
  --accent-2: #2d9d73;
  --danger: #a63a3a;
  --warn: #a86d11;
  --header-bg: #0b3550;
  --header-ink: #ebf6ff;
  --panel-ink: #f5fbff;
  --surface-soft: #f8fbfd;
  --surface-soft-accent: #eaf3fb;
  --surface-soft-muted: #f5fbff;
  --surface-warning: #fffaf0;
}

body[data-ui-theme="slate"] {
  --bg: #eef2f5;
  --panel: #f8fafc;
  --text: #1d2f3d;
  --muted: #546878;
  --line: #c8d5e2;
  --line-soft: #dae4ee;
  --accent: #2d5d7c;
  --accent-2: #2f7d58;
  --danger: #a63a3a;
  --warn: #8f6512;
  --header-bg: #1b2c3d;
  --header-ink: #f0f5fb;
  --panel-ink: #f3f6fa;
  --surface-soft: #f8fbfd;
  --surface-soft-accent: #e8edf4;
  --surface-soft-muted: #f6f9fc;
  --surface-warning: #fff8e8;
}

body[data-ui-theme="sunset"] {
  --bg: #fcf5ef;
  --panel: #fffaf6;
  --text: #422212;
  --muted: #6f4d3a;
  --line: #e6d0c0;
  --line-soft: #f0d8c6;
  --accent: #a95a1f;
  --accent-2: #2f7d58;
  --danger: #b54a4a;
  --warn: #b16d2a;
  --header-bg: #5e3416;
  --header-ink: #fff4eb;
  --panel-ink: #fff2e6;
  --surface-soft: #fff9f4;
  --surface-soft-accent: #f3e2d8;
  --surface-soft-muted: #fff9f4;
  --surface-warning: #fff7ea;
}

body[data-ui-theme="dark"] {
  color-scheme: dark;
  --bg: #14191f;
  --panel: #202830;
  --text: #eef3f7;
  --muted: #aebbc6;
  --line: #3a4652;
  --line-soft: #2d3742;
  --accent: #6dc4e8;
  --accent-2: #83d69b;
  --danger: #ff8c8c;
  --warn: #f1bd6f;
  --header-bg: #0d141a;
  --header-ink: #f3f8fc;
  --panel-ink: #dbe5ed;
  --surface-soft: #242d36;
  --surface-soft-accent: #2d3944;
  --surface-soft-muted: #1b232b;
  --surface-warning: #342a1a;
}

body[data-ui-theme="night_ops"] {
  color-scheme: dark;
  --bg: #090f18;
  --panel: #121b27;
  --text: #edf5ff;
  --muted: #9aabba;
  --line: #263445;
  --line-soft: #1d2a38;
  --accent: #5fb7ff;
  --accent-2: #73d7a1;
  --danger: #ff8080;
  --warn: #eebb68;
  --header-bg: #050a11;
  --header-ink: #f5faff;
  --panel-ink: #cfdae5;
  --surface-soft: #162231;
  --surface-soft-accent: #1d2d40;
  --surface-soft-muted: #111a25;
  --surface-warning: #2d2417;
}

body[data-ui-theme="retro"] {
  color-scheme: dark;
  --bg: #10140d;
  --panel: #182015;
  --text: #ecffd8;
  --muted: #aec89d;
  --line: #3b5030;
  --line-soft: #2d3c25;
  --accent: #9cff57;
  --accent-2: #ffd166;
  --danger: #ff8a6b;
  --warn: #ffd166;
  --header-bg: #0b1108;
  --header-ink: #f2ffd9;
  --panel-ink: #d6efbf;
  --surface-soft: #1d2818;
  --surface-soft-accent: #26351d;
  --surface-soft-muted: #141c11;
  --surface-warning: #302711;
}

body[data-ui-theme="high_contrast"] {
  color-scheme: dark;
  --bg: #111826;
  --panel: #1b2530;
  --text: #f7fbff;
  --muted: #bcc7d4;
  --line: #334353;
  --line-soft: #2a3949;
  --accent: #75c7ff;
  --accent-2: #7ad88c;
  --danger: #ff8a8a;
  --warn: #f7c17a;
  --header-bg: #0a141d;
  --header-ink: #f4faff;
  --panel-ink: #223344;
  --surface-soft: #1d2a38;
  --surface-soft-accent: #273646;
  --surface-soft-muted: #1f2e3d;
  --surface-warning: #2b3744;
}

body[data-ui-theme="black_red"] {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0c0c0e;
  --text: #f7f7f7;
  --muted: #bebebe;
  --line: #2b2b2f;
  --line-soft: #1d1d21;
  --accent: #f04444;
  --accent-2: #ffffff;
  --danger: #ff5b5b;
  --warn: #ffb3b3;
  --header-bg: #000000;
  --header-ink: #ffffff;
  --panel-ink: #e5e5e5;
  --surface-soft: #111113;
  --surface-soft-accent: #18181b;
  --surface-soft-muted: #09090a;
  --surface-warning: #2b1010;
}

:root,
body[data-ui-theme="default"] {
  color-scheme: dark;
  --bg: #10140d;
  --panel: #182015;
  --text: #ecffd8;
  --muted: #aec89d;
  --line: #3b5030;
  --line-soft: #2d3c25;
  --accent: #9cff57;
  --accent-2: #ffd166;
  --danger: #ff8a6b;
  --warn: #ffd166;
  --header-bg: #0b1108;
  --header-ink: #f2ffd9;
  --panel-ink: #d6efbf;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  --surface-soft: #1d2818;
  --surface-soft-accent: #26351d;
  --surface-soft-muted: #141c11;
  --surface-warning: #302711;
}

body[data-ui-density="comfortable"],
body:not([data-ui-density]) {
  --density-gap: 10px;
  --density-gap-large: 18px;
  --density-gap-xl: 26px;
  --density-pad: 16px;
  --density-pad-small: 10px;
}

body[data-ui-density="compact"] {
  --density-gap: 8px;
  --density-gap-large: 14px;
  --density-gap-xl: 18px;
  --density-pad: 12px;
  --density-pad-small: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  background: var(--header-bg);
  color: var(--header-ink);
}

.brand-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  font-weight: 700;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.subhead {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.app-header p {
  margin-top: 4px;
  color: var(--panel-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-center {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-bell {
  position: relative;
  white-space: nowrap;
}

.notification-count {
  font-weight: 900;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  width: min(360px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.notification-panel[hidden] {
  display: none;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  position: relative;
  width: 100%;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.notification-open {
  width: 100%;
  border: 0;
  padding: 9px 36px 9px 10px;
  background: transparent;
  color: inherit;
  display: grid;
  gap: 3px;
  justify-items: start;
  text-align: left;
  white-space: normal;
  line-height: 1.25;
}

.notification-open:hover,
.notification-open:focus {
  background: var(--surface-soft-accent);
}

.notification-item small {
  color: var(--muted);
  font-weight: 700;
}

.notification-item.is-unread {
  border-color: var(--accent);
}

.notification-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.notification-log-list {
  display: grid;
  gap: 10px;
}

.notification-log-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.notification-log-item.is-unread {
  border-color: var(--accent);
}

.notification-log-item p {
  margin-top: 6px;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.business-account-status {
  display: grid;
  gap: 2px;
  min-width: 220px;
  color: var(--text);
}

.business-account-status strong {
  font-size: 12px;
  line-height: 1.15;
}

.business-account-status span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.operator-login-button {
  white-space: nowrap;
}

.auth-locked .app-header,
.auth-locked main {
  display: none;
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(11, 14, 18, 0.94), rgba(49, 9, 13, 0.92)),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
  margin: 0;
  font-size: 28px;
}

.login-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.account-setup-card {
  width: min(620px, 100%);
}

.auth-module-list {
  display: grid;
  gap: 8px;
}

.auth-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.operator-business-context {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px 10px;
  display: grid;
  gap: 3px;
}

.operator-business-context strong {
  font-size: 12px;
}

.operator-business-context span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.use-business-operator-button {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-soft-accent);
  color: var(--text);
  padding: 10px 12px;
}

.use-business-operator-button span {
  color: var(--muted);
  font-size: 12px;
}

.auth-module-card div {
  display: grid;
  gap: 2px;
}

.auth-module-card strong {
  font-size: 13px;
}

.auth-module-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

button:hover {
  border-color: var(--accent);
}

.button-link:hover {
  border-color: var(--accent);
}

button.danger {
  color: var(--header-ink);
  background: var(--danger);
  border-color: var(--danger);
}

button.danger-light {
  color: var(--danger);
  background: #fff6f6;
  border-color: #e6bcbc;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace-tab {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  background: var(--surface-soft-muted);
  font-weight: 800;
}

.workspace-tab.active {
  background: var(--panel);
  color: var(--accent);
}

.tab-group {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 8px;
}

.tab-group.is-active {
  display: flex;
}

.tab-group-label {
  padding: 8px 10px 8px 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.01em;
  border-right: 1px solid var(--line);
  margin-right: 4px;
}

.tab {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  background: var(--panel);
}

.tab.active {
  background: var(--panel);
  color: var(--accent);
  position: relative;
}

.tab.active:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -3px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

.tab-panel {
  display: none;
  padding: 18px;
}

.tab-panel.active {
  display: block;
}

.surface-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.calendar-workspace,
.bookings-workspace,
.staff-settings-workspace,
.store-workspace {
  display: grid;
  gap: 18px;
  align-items: start;
}

.staff-settings-workspace {
  max-width: 980px;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
}

#staffSettings .panel.wide {
  grid-column: 1 / -1;
}

.bookings-workspace {
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 0.85fr);
}

.bookings-left,
.bookings-right {
  display: grid;
  gap: 18px;
}

.manifest-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(360px, 1fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.dallasxsky-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr) minmax(420px, 1.35fr);
  gap: 18px;
  align-items: start;
}

.handoff-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(460px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.streaming-workspace {
  display: grid;
  grid-template-columns: minmax(460px, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.streaming-workspace .panel.wide {
  grid-column: 1 / -1;
}

.streaming-device-config,
.streaming-playback-panel,
.streaming-device-list {
  display: grid;
  gap: 12px;
}

.streaming-device-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.streaming-device-card .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.streaming-device-edit {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
}

.streaming-device-edit summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
  padding: 10px 12px;
}

.streaming-device-edit[open] {
  padding-bottom: 12px;
}

.streaming-device-edit[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.streaming-device-edit > .form-grid,
.streaming-device-edit > label,
.streaming-device-edit > .streaming-remove-actions,
.streaming-device-edit > .streaming-remove-guard {
  margin-left: 12px;
  margin-right: 12px;
}

.streaming-device-edit > label {
  display: grid;
  gap: 6px;
}

.streaming-now-showing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.streaming-now-showing span,
.streaming-now-showing small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.streaming-now-showing span {
  font-weight: 900;
  text-transform: uppercase;
}

.streaming-now-showing strong {
  color: var(--text);
  font-size: 1rem;
}

.streaming-now-showing .button-link {
  grid-row: 1 / span 4;
  grid-column: 2;
  align-self: center;
  white-space: nowrap;
}

.streaming-device-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.streaming-device-url span,
.streaming-device-url small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.streaming-device-url span {
  font-weight: 900;
  text-transform: uppercase;
}

.streaming-device-url code {
  display: block;
  overflow-wrap: anywhere;
}

.streaming-device-url button {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  white-space: nowrap;
}

.streaming-cast-permission {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 11px;
  font-weight: 800;
}

.streaming-remove-actions,
.streaming-remove-guard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
}

.streaming-remove-actions {
  display: flex;
  justify-content: flex-end;
}

.streaming-remove-guard strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.streaming-remove-guard span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.streaming-playback-panel input:disabled,
.streaming-playback-panel button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.handoff-left-column,
.handoff-right-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.handoff-board-panel,
.handoff-detail-panel {
  min-width: 0;
}

.handoff-board {
  display: grid;
  gap: 12px;
}

.handoff-lookup-controls {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.handoff-section {
  display: grid;
  gap: 8px;
}

.handoff-section + .handoff-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.handoff-section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.handoff-section-title span,
.handoff-section summary span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 22px;
  border-radius: 999px;
  background: var(--surface-soft-accent);
  color: var(--accent-2);
  padding: 1px 7px;
}

.handoff-rows {
  display: grid;
  gap: 7px;
}

.handoff-row {
  display: grid;
  grid-template-columns: 12px minmax(110px, 1fr) minmax(90px, 0.8fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  border-color: var(--line);
  background: var(--surface-soft);
}

.handoff-row.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.handoff-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.handoff-row.status-ready .handoff-dot,
.handoff-row.status-attention .handoff-dot,
.handoff-row.status-failed .handoff-dot {
  background: var(--danger);
}

.handoff-row.status-rendering .handoff-dot,
.handoff-row.status-uploading .handoff-dot,
.handoff-row.status-delivering .handoff-dot {
  background: var(--warn);
}

.handoff-row.status-complete .handoff-dot {
  background: var(--accent-2);
}

.handoff-missing-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.handoff-missing-job > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.handoff-missing-job strong,
.handoff-missing-job span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-name {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-package,
.handoff-row > span:last-child {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-progress-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 80px;
}

.handoff-progress {
  width: 54px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft-muted);
  border: 1px solid var(--line);
}

.handoff-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.handoff-progress-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.handoff-detail {
  display: grid;
  gap: 12px;
}

.handoff-detail-header,
.handoff-status-bar,
.handoff-output-lock-panel,
.handoff-notes-panel,
.handoff-note,
.handoff-detail-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.handoff-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.handoff-detail-header span {
  color: var(--muted);
  font-size: 13px;
}

.handoff-media-owed {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.handoff-media-owed span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft-accent);
  color: var(--accent-2);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.handoff-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.handoff-scope-note {
  display: grid;
  gap: 3px;
  flex: 1 0 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.handoff-scope-note strong {
  color: var(--text);
}

.handoff-detail-grid span strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.handoff-detail-grid .wide {
  grid-column: 1 / -1;
}

.handoff-error {
  border-color: var(--danger);
}

.handoff-note-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.handoff-note p,
.handoff-note-reply p {
  margin-top: 6px;
}

.handoff-note-reply {
  margin-top: 8px;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}

.dallasxsky-queue-panel .list {
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.owner-guide {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--accent);
  background: #edf5f8;
  color: #29404a;
  padding: 10px 12px;
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.owner-guide span {
  color: var(--text);
}

.intake-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 14px;
}

.intake-flow span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 8px 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.email-template-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.communication-sop-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.communication-sop-list h3 {
  margin: 0;
  font-size: 13px;
}

.communication-sop-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 9px;
  display: grid;
  gap: 6px;
}

.email-delivery-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.email-delivery-list h3 {
  margin: 0;
  font-size: 13px;
}

.email-delivery-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 6px;
}

.email-suppression-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.email-suppression-list h3 {
  margin: 0;
  font-size: 13px;
}

.email-suppression-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff7f7;
  padding: 9px;
  display: grid;
  gap: 6px;
}

.readiness-check-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.readiness-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.readiness-check-row strong,
.readiness-check-row span {
  display: block;
}

.readiness-check-row span {
  color: var(--muted);
}

.status-strip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  padding: 8px 10px;
}

.manifest-main {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: start;
}

.manifest-queue-panel,
.manifest-load-panel {
  position: sticky;
  top: 12px;
}

.manifest-queue-panel .list {
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding-right: 2px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.manifest-load-panel .section-header {
  align-items: flex-start;
}

.manifest-load-panel .load-create-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.9fr) minmax(120px, 0.8fr) max-content max-content;
  align-items: end;
  gap: 8px;
}

.manifest-load-panel .load-create-form label {
  min-width: 0;
}

.manifest-load-panel .load-create-form .checkbox-row {
  min-height: 38px;
  align-content: center;
  white-space: nowrap;
}

.section-header h2 {
  margin-bottom: 0;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form label {
  min-width: 150px;
  margin-bottom: 0;
}

.inline-form button {
  white-space: nowrap;
}

.date-picker-shell {
  display: grid;
  min-width: 0;
}

.native-date-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.date-picker-button {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text);
  text-align: left;
}

.date-picker-button.missing-date {
  color: var(--muted);
}

.date-picker-popover {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 10px;
}

.date-picker-popover[hidden] {
  display: none;
}

.date-picker-header,
.date-picker-footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.date-picker-header strong {
  text-align: center;
}

.date-picker-footer {
  grid-template-columns: 1fr 1fr;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-picker-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.date-picker-empty,
.date-picker-grid button {
  min-height: 32px;
}

.date-picker-grid button {
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 0;
  font-weight: 800;
}

.date-picker-grid button.today {
  border-color: var(--accent);
}

.date-picker-grid button.selected {
  background: var(--surface-soft-accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

.date-picker-grid button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.arrival-date-time-field {
  display: grid;
  gap: 7px;
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.arrival-date-time-field .field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.arrival-date-time-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.7fr);
  gap: 8px;
}

.arrival-date-time-grid label {
  margin-bottom: 0;
}

.arrival-date-time-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.accounting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.accounting-panel-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 12px 0;
}

.accounting-panel-actions label {
  min-width: 0;
  margin: 0;
}

.accounting-panel-actions button {
  min-height: 42px;
  white-space: nowrap;
}

.accounting-grid > div {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
}

.accounting-grid strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  color: var(--text);
  overflow-wrap: anywhere;
}

.accounting-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.accounting-closeout-readiness {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.accounting-readiness-card {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.accounting-readiness-card.is-ready {
  border-color: var(--accent-2);
}

.accounting-readiness-card.is-attention {
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 14%, var(--surface-soft));
}

.accounting-readiness-card.is-muted {
  opacity: 0.9;
}

.accounting-readiness-card strong {
  font-size: 21px;
  line-height: 1.1;
}

.accounting-readiness-card span,
.accounting-readiness-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.accounting-source-totals {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.accounting-source-totals > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  background: var(--surface-soft-muted);
}

.accounting-source-total-list,
.accounting-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.accounting-source-total-list span,
.accounting-issue-list > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--surface-soft);
  font-weight: 800;
}

.accounting-source-total-list strong,
.accounting-issue-list strong,
.accounting-issue-list span {
  display: block;
}

.accounting-issue-list span {
  color: var(--muted);
  font-size: 12px;
}

.accounting-reconciliation-lines,
.accounting-details,
.payment-closeout-history {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin: 12px 0;
  overflow: hidden;
}

.accounting-reconciliation-lines > summary,
.accounting-details > summary,
.payment-closeout-history > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface-soft-muted);
  cursor: pointer;
  font-weight: 800;
}

.accounting-reconciliation-lines > summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.accounting-line-list,
.accounting-details > section,
.payment-closeout-history-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.accounting-line-row,
.accounting-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.accounting-line-row strong,
.accounting-line-row span,
.accounting-line-row small,
.accounting-detail-row strong,
.accounting-detail-row span {
  display: block;
}

.accounting-line-row span,
.accounting-line-row small,
.accounting-detail-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.accounting-line-amounts,
.accounting-detail-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.accounting-line-amounts span,
.accounting-detail-amounts span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 5px 7px;
  font-weight: 800;
  white-space: nowrap;
}

.accounting-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.payment-closeout-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.payment-closeout-history-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.payment-closeout-history-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.payment-closeout-history-amounts span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 5px 7px;
  font-weight: 800;
  white-space: nowrap;
}

.accounting-closeout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  margin-top: 12px;
}

.accounting-closeout h3 {
  margin: 0 0 10px;
}

.accounting-closeout input,
.accounting-closeout textarea,
.accounting-panel input,
.accounting-panel select {
  background: var(--panel);
  color: var(--text);
}

.accounting-closeout-checks,
.accounting-closeout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.accounting-closeout-checks label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.accounting-closeout-checks input {
  width: auto;
}

.workflow-list {
  display: grid;
  gap: 10px;
}

.operator-note {
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  background: #edf5f8;
  color: #29404a;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.screen-purpose,
.next-step-note {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 12px;
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.screen-purpose span,
.next-step-note span {
  color: var(--muted);
}

.next-step-note {
  border-left-color: var(--warn);
  background: var(--surface-warning);
}


.customer-lookup-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.customer-lookup-toolbar label {
  margin: 0;
}

.customer-lookup-toolbar + .ops-collapsible,
.customer-lookup-toolbar + .list-controls {
  margin-top: 6px;
}

.section-title-block {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: var(--surface-soft-muted);
  padding: 10px 12px;
  margin: 8px 0 12px;
}

.section-title-block h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.operator-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.config-category {
  margin: 0;
}

.config-category {
  background: transparent;
}

.config-category > summary {
  border-left: 4px solid var(--accent-2);
  background: var(--surface-soft-muted);
  letter-spacing: 0;
}

.config-category-content {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
}

.config-workspace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 14px;
  align-items: start;
}

.ops-panel-details,
.ops-collapsible,
.advanced-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin: 12px 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ops-panel-details {
  padding: 0;
  border-left: 4px solid transparent;
}

.ops-panel-details > summary,
.ops-collapsible > summary,
.advanced-panel > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  position: relative;
  background: var(--surface-soft-muted);
  color: var(--text);
  font-size: 14px;
  border-left: 4px solid transparent;
}

.ops-panel-details > summary::after,
.ops-collapsible > summary::after,
.advanced-panel > summary::after {
  content: "+";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface-soft-accent);
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: all 0.2s ease;
}

.ops-collapsible[open] > summary::after,
.advanced-panel[open] > summary::after,
.ops-panel-details[open] > summary::after {
  content: "-";
  transform: rotate(180deg);
}

.ops-panel-details > summary:hover,
.ops-collapsible > summary:hover,
.advanced-panel > summary:hover {
  background: var(--surface-soft-accent);
}

.ops-panel-details > summary:focus-visible,
.ops-collapsible > summary:focus-visible,
.advanced-panel > summary:focus-visible,
.ops-panel-details[open] > summary,
.ops-collapsible[open] > summary,
.advanced-panel[open] > summary {
  border-left: 4px solid var(--accent);
}

.advanced-panel > summary {
  border-left: 4px solid #c4d2db;
}

.advanced-panel > summary small,
.advanced-panel > summary::after {
  opacity: 0.9;
}

.ops-panel-details > summary small,
.ops-collapsible > summary small,
.advanced-panel > summary small,
.config-category > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  max-width: 46%;
}

.config-category > summary {
  font-size: 16px;
}

.config-category > summary small {
  max-width: 70%;
  text-align: left;
}

.config-category .config-category-content {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.config-category[open] .config-category-content {
  max-height: min(72vh, 760px);
  overflow: auto;
}

.config-category .config-category-content .ops-panel-details {
  margin: 0;
}

.ops-panel-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.booking-workspace-heading {
  margin-top: 0;
  margin-bottom: 6px;
}

.booking-workspace-heading p {
  margin-bottom: 0;
}

.booking-form-panel > summary {
  background: linear-gradient(90deg, var(--surface-soft-accent), var(--surface-soft));
  border-left-color: var(--accent);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
}

.booking-form-panel > summary small {
  font-weight: 800;
}

.booking-form-panel > summary::after {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}

.ops-collapsible > .list,
.ops-collapsible > .list-controls,
.advanced-panel > .list,
.advanced-panel > .list-controls,
.ops-collapsible > form,
.ops-collapsible > div,
.advanced-panel > .ops-payment-ledger-panel,
.advanced-panel > .ops-payment-audit-panel {
  margin: 10px 12px 12px;
}

.ops-payment-audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.ops-payment-audit-grid span,
.ops-payment-audit-event,
.ops-payment-ledger-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.ops-payment-audit-grid strong,
.ops-payment-audit-grid span,
.ops-payment-audit-event strong,
.ops-payment-audit-event span,
.ops-payment-ledger-row strong,
.ops-payment-ledger-row span,
.ops-payment-ledger-row small {
  display: block;
}

.ops-payment-audit-grid span,
.ops-payment-audit-event span,
.ops-payment-ledger-row span,
.ops-payment-ledger-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ops-payment-audit-events,
.ops-payment-ledger-list {
  display: grid;
  gap: 8px;
}

.ops-payment-ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ops-payment-ledger-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ops-payment-ledger-amounts span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 5px 7px;
  font-weight: 800;
  white-space: nowrap;
}

.correction-impact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  margin: 10px 0;
}

.correction-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.correction-impact-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  padding: 8px;
  font-size: 12px;
}

.correction-impact-grid strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 3px;
}

.ops-addon-status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  margin: 10px 0;
}

.ops-addon-status-list {
  display: grid;
  gap: 8px;
}

.ops-addon-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 10px;
}

.ops-addon-status-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.financial-inline {
  margin-top: 8px;
}

.financial-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.financial-breakdown span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 8px;
  font-size: 13px;
  font-weight: 800;
}

.financial-breakdown strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.financial-breakdown-note {
  border-left: 4px solid var(--accent);
  background: var(--surface-soft-accent);
  color: var(--text);
  padding: 8px 10px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.4;
}

.business-workspace-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.business-workspace-layer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.business-workspace-layer p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.business-workspace-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 8px 0 12px;
}

.business-workspace-summary span {
  background: var(--panel);
  padding: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.business-workspace-summary strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.first-owner-login-card {
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-soft-accent);
  padding: 12px;
  margin: 10px 0;
  display: grid;
  gap: 10px;
}

.first-owner-login-card h3 {
  margin: 0;
  font-size: 15px;
}

.first-owner-login-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.config-admin-lock-notice,
.admin-setup-lock-inline {
  border: 1px solid var(--warning);
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 12px;
  margin: 0 0 12px;
  display: grid;
  gap: 3px;
}

.config-admin-lock-notice strong,
.admin-setup-lock-inline strong {
  font-size: 13px;
}

.config-admin-lock-notice span,
.admin-setup-lock-inline span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.config-admin-locked .config-category-content,
.admin-setup-locked {
  opacity: 0.88;
}

.business-user-capability-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.business-user-capability-line span {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 700;
}

.collapsed-form {
  padding: 16px;
}

.compact-controls {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
}

.workflow-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.workflow-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f1f5;
  color: var(--accent);
  font-weight: 700;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contract-list {
  display: grid;
  gap: 10px;
}

.contract-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 11px;
}

code {
  overflow-wrap: anywhere;
  color: #174e65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 16px;
}

.panel.focus-panel {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 107, 140, 0.18), var(--shadow);
}

.field-attention {
  outline: 2px solid rgba(184, 63, 63, 0.62);
  outline-offset: 3px;
  border-radius: 8px;
  background: rgba(184, 63, 63, 0.08);
  box-shadow: 0 0 0 5px rgba(184, 63, 63, 0.08);
}

.field-control-attention {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(184, 63, 63, 0.18) !important;
}

.is-hidden {
  display: none !important;
}

.panel.wide {
  max-width: none;
}

body[data-ui-density="compact"] .tabs {
  padding: 10px 14px 0;
  gap: 6px;
}

body[data-ui-density="compact"] .workspace-tab,
body[data-ui-density="compact"] .tab {
  padding: 6px 10px;
}

body[data-ui-density="compact"] .tab-panel {
  padding: 12px;
}

body[data-ui-density="compact"] .surface-grid,
body[data-ui-density="compact"] .calendar-workspace,
body[data-ui-density="compact"] .calendar-board-layout,
body[data-ui-density="compact"] .bookings-workspace,
body[data-ui-density="compact"] .staff-settings-workspace,
body[data-ui-density="compact"] .streaming-workspace {
  gap: 12px;
}

body[data-ui-density="compact"] .panel {
  padding: 12px;
}

body[data-ui-density="compact"] .panel.wide {
  padding: 12px;
}

body[data-ui-density="compact"] .section-title-block,
body[data-ui-density="compact"] .screen-purpose,
body[data-ui-density="compact"] .next-step-note,
body[data-ui-density="compact"] .customer-lookup-toolbar,
body[data-ui-density="compact"] .calendar-toolbar {
  padding: 8px 10px;
  margin: 6px 0 10px;
}

body[data-ui-density="compact"] button {
  padding: 6px 10px;
}

body[data-ui-density="compact"] .form-grid,
body[data-ui-density="compact"] .ops-collapsible .list-controls,
body[data-ui-density="compact"] .booking-form-section,
body[data-ui-density="compact"] .inline-form,
body[data-ui-density="compact"] .list-controls {
  gap: 8px 10px;
}

body[data-ui-density="compact"] label {
  margin-bottom: 8px;
}

body[data-ui-density="compact"] .ops-panel-details,
body[data-ui-density="compact"] .ops-collapsible,
body[data-ui-density="compact"] .advanced-panel {
  margin: 8px 0;
}

body[data-ui-density="compact"] .ops-panel-details > summary,
body[data-ui-density="compact"] .ops-collapsible > summary,
body[data-ui-density="compact"] .advanced-panel > summary {
  padding: 8px 10px 8px 12px;
}

body[data-ui-density="compact"] .workflow-list,
body[data-ui-density="compact"] .manifest-load-grid,
body[data-ui-density="compact"] .calendar-slots {
  gap: 8px;
}

body[data-ui-density="compact"] .calendar-board-layout {
  grid-template-columns: minmax(340px, 1.2fr) minmax(300px, 0.95fr);
}

body[data-ui-density="compact"] .wall-calendar-day,
body[data-ui-density="compact"] .calendar-slot,
body[data-ui-density="compact"] .calendar-day {
  min-height: 92px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.booking-form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px 12px;
}

.booking-form-section .subhead {
  margin: 0 0 10px;
  padding: 0;
  border-top: 0;
  color: var(--accent);
}

.participant-roster {
  display: grid;
  gap: 10px;
}

.participant-roster-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.35fr) repeat(2, minmax(150px, 1fr));
  gap: 8px 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}

.participant-roster-row strong {
  align-self: center;
  color: var(--accent);
}

.participant-roster-row label {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.checkbox-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin: 0 0 10px;
}

.weekday-picker legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.weekday-picker label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: #fbfcfd;
}

.weekday-picker input {
  width: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  background: var(--panel);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

body[data-ui-theme="dark"] button.danger-light,
body[data-ui-theme="night_ops"] button.danger-light,
body[data-ui-theme="retro"] button.danger-light,
body[data-ui-theme="high_contrast"] button.danger-light {
  color: var(--danger);
  background: var(--surface-soft-muted);
  border-color: var(--danger);
}

body[data-ui-theme="dark"] .stat,
body[data-ui-theme="dark"] .contract-row,
body[data-ui-theme="dark"] .load-card,
body[data-ui-theme="dark"] .manifest-load-card,
body[data-ui-theme="dark"] .calendar-booking-card,
body[data-ui-theme="night_ops"] .stat,
body[data-ui-theme="night_ops"] .contract-row,
body[data-ui-theme="night_ops"] .load-card,
body[data-ui-theme="night_ops"] .manifest-load-card,
body[data-ui-theme="night_ops"] .calendar-booking-card,
body[data-ui-theme="retro"] .stat,
body[data-ui-theme="retro"] .contract-row,
body[data-ui-theme="retro"] .load-card,
body[data-ui-theme="retro"] .manifest-load-card,
body[data-ui-theme="retro"] .calendar-booking-card,
body[data-ui-theme="high_contrast"] .stat,
body[data-ui-theme="high_contrast"] .contract-row,
body[data-ui-theme="high_contrast"] .load-card,
body[data-ui-theme="high_contrast"] .manifest-load-card,
body[data-ui-theme="high_contrast"] .calendar-booking-card {
  background: var(--surface-soft);
}

body[data-ui-theme="dark"] .owner-guide,
body[data-ui-theme="dark"] .operator-note,
body[data-ui-theme="dark"] .status-strip,
body[data-ui-theme="dark"] .workflow-step,
body[data-ui-theme="dark"] .workflow-number,
body[data-ui-theme="dark"] .advanced-panel,
body[data-ui-theme="dark"] .item,
body[data-ui-theme="dark"] .weekday-picker label,
body[data-ui-theme="dark"] .capacity-month-summary,
body[data-ui-theme="dark"] .wall-calendar-empty,
body[data-ui-theme="dark"] .wall-calendar-day,
body[data-ui-theme="dark"] .wall-calendar-day-number,
body[data-ui-theme="dark"] .capacity-chip,
body[data-ui-theme="dark"] .selected-booking,
body[data-ui-theme="dark"] .manifest-customer,
body[data-ui-theme="dark"] .quick-edit-box,
body[data-ui-theme="dark"] .load-status-inline,
body[data-ui-theme="dark"] .intake-detail-empty,
body[data-ui-theme="dark"] .intake-next-step,
body[data-ui-theme="dark"] .intake-detail-grid div,
body[data-ui-theme="dark"] .intake-participant,
body[data-ui-theme="dark"] .participant-completion-list div,
body[data-ui-theme="dark"] .participant-schedule-grid,
body[data-ui-theme="dark"] .schedule-plan-strip span,
body[data-ui-theme="dark"] .calendar-slot,
body[data-ui-theme="dark"] .load-validation,
body[data-ui-theme="night_ops"] .owner-guide,
body[data-ui-theme="night_ops"] .operator-note,
body[data-ui-theme="night_ops"] .status-strip,
body[data-ui-theme="night_ops"] .workflow-step,
body[data-ui-theme="night_ops"] .workflow-number,
body[data-ui-theme="night_ops"] .advanced-panel,
body[data-ui-theme="night_ops"] .item,
body[data-ui-theme="night_ops"] .weekday-picker label,
body[data-ui-theme="night_ops"] .capacity-month-summary,
body[data-ui-theme="night_ops"] .wall-calendar-empty,
body[data-ui-theme="night_ops"] .wall-calendar-day,
body[data-ui-theme="night_ops"] .wall-calendar-day-number,
body[data-ui-theme="night_ops"] .capacity-chip,
body[data-ui-theme="night_ops"] .selected-booking,
body[data-ui-theme="night_ops"] .manifest-customer,
body[data-ui-theme="night_ops"] .quick-edit-box,
body[data-ui-theme="night_ops"] .load-status-inline,
body[data-ui-theme="night_ops"] .intake-detail-empty,
body[data-ui-theme="night_ops"] .intake-next-step,
body[data-ui-theme="night_ops"] .intake-detail-grid div,
body[data-ui-theme="night_ops"] .intake-participant,
body[data-ui-theme="night_ops"] .participant-completion-list div,
body[data-ui-theme="night_ops"] .participant-schedule-grid,
body[data-ui-theme="night_ops"] .schedule-plan-strip span,
body[data-ui-theme="night_ops"] .calendar-slot,
body[data-ui-theme="night_ops"] .load-validation,
body[data-ui-theme="retro"] .owner-guide,
body[data-ui-theme="retro"] .operator-note,
body[data-ui-theme="retro"] .status-strip,
body[data-ui-theme="retro"] .workflow-step,
body[data-ui-theme="retro"] .workflow-number,
body[data-ui-theme="retro"] .advanced-panel,
body[data-ui-theme="retro"] .item,
body[data-ui-theme="retro"] .weekday-picker label,
body[data-ui-theme="retro"] .capacity-month-summary,
body[data-ui-theme="retro"] .wall-calendar-empty,
body[data-ui-theme="retro"] .wall-calendar-day,
body[data-ui-theme="retro"] .wall-calendar-day-number,
body[data-ui-theme="retro"] .capacity-chip,
body[data-ui-theme="retro"] .selected-booking,
body[data-ui-theme="retro"] .manifest-customer,
body[data-ui-theme="retro"] .quick-edit-box,
body[data-ui-theme="retro"] .load-status-inline,
body[data-ui-theme="retro"] .intake-detail-empty,
body[data-ui-theme="retro"] .intake-next-step,
body[data-ui-theme="retro"] .intake-detail-grid div,
body[data-ui-theme="retro"] .intake-participant,
body[data-ui-theme="retro"] .participant-completion-list div,
body[data-ui-theme="retro"] .participant-schedule-grid,
body[data-ui-theme="retro"] .schedule-plan-strip span,
body[data-ui-theme="retro"] .calendar-slot,
body[data-ui-theme="retro"] .load-validation,
body[data-ui-theme="high_contrast"] .owner-guide,
body[data-ui-theme="high_contrast"] .operator-note,
body[data-ui-theme="high_contrast"] .status-strip,
body[data-ui-theme="high_contrast"] .workflow-step,
body[data-ui-theme="high_contrast"] .workflow-number,
body[data-ui-theme="high_contrast"] .advanced-panel,
body[data-ui-theme="high_contrast"] .item,
body[data-ui-theme="high_contrast"] .weekday-picker label,
body[data-ui-theme="high_contrast"] .capacity-month-summary,
body[data-ui-theme="high_contrast"] .wall-calendar-empty,
body[data-ui-theme="high_contrast"] .wall-calendar-day,
body[data-ui-theme="high_contrast"] .wall-calendar-day-number,
body[data-ui-theme="high_contrast"] .capacity-chip,
body[data-ui-theme="high_contrast"] .selected-booking,
body[data-ui-theme="high_contrast"] .manifest-customer,
body[data-ui-theme="high_contrast"] .quick-edit-box,
body[data-ui-theme="high_contrast"] .load-status-inline,
body[data-ui-theme="high_contrast"] .intake-detail-empty,
body[data-ui-theme="high_contrast"] .intake-next-step,
body[data-ui-theme="high_contrast"] .intake-detail-grid div,
body[data-ui-theme="high_contrast"] .intake-participant,
body[data-ui-theme="high_contrast"] .participant-completion-list div,
body[data-ui-theme="high_contrast"] .participant-schedule-grid,
body[data-ui-theme="high_contrast"] .schedule-plan-strip span,
body[data-ui-theme="high_contrast"] .calendar-slot,
body[data-ui-theme="high_contrast"] .load-validation {
  background: var(--surface-soft);
  color: var(--text);
}

body[data-ui-theme="dark"] .intake-warning-list div,
body[data-ui-theme="dark"] .intake-warning-list.ready,
body[data-ui-theme="dark"] .promote-next-step.ready,
body[data-ui-theme="dark"] .promote-next-step.blocked,
body[data-ui-theme="dark"] .calendar-slot.is-open,
body[data-ui-theme="dark"] .calendar-slot.is-full,
body[data-ui-theme="night_ops"] .intake-warning-list div,
body[data-ui-theme="night_ops"] .intake-warning-list.ready,
body[data-ui-theme="night_ops"] .promote-next-step.ready,
body[data-ui-theme="night_ops"] .promote-next-step.blocked,
body[data-ui-theme="night_ops"] .calendar-slot.is-open,
body[data-ui-theme="night_ops"] .calendar-slot.is-full,
body[data-ui-theme="retro"] .intake-warning-list div,
body[data-ui-theme="retro"] .intake-warning-list.ready,
body[data-ui-theme="retro"] .promote-next-step.ready,
body[data-ui-theme="retro"] .promote-next-step.blocked,
body[data-ui-theme="retro"] .calendar-slot.is-open,
body[data-ui-theme="retro"] .calendar-slot.is-full,
body[data-ui-theme="high_contrast"] .intake-warning-list div,
body[data-ui-theme="high_contrast"] .intake-warning-list.ready,
body[data-ui-theme="high_contrast"] .promote-next-step.ready,
body[data-ui-theme="high_contrast"] .promote-next-step.blocked,
body[data-ui-theme="high_contrast"] .calendar-slot.is-open,
body[data-ui-theme="high_contrast"] .calendar-slot.is-full {
  background: var(--surface-soft-accent);
  color: var(--text);
}

body[data-ui-theme="dark"] .marker-ready,
body[data-ui-theme="dark"] .badge.ready,
body[data-ui-theme="dark"] .badge,
body[data-ui-theme="night_ops"] .marker-ready,
body[data-ui-theme="night_ops"] .badge.ready,
body[data-ui-theme="night_ops"] .badge,
body[data-ui-theme="retro"] .marker-ready,
body[data-ui-theme="retro"] .badge.ready,
body[data-ui-theme="retro"] .badge,
body[data-ui-theme="high_contrast"] .marker-ready,
body[data-ui-theme="high_contrast"] .badge.ready,
body[data-ui-theme="high_contrast"] .badge {
  color: var(--accent-2);
  background: var(--surface-soft-accent);
}

body[data-ui-theme="dark"] .marker-attention,
body[data-ui-theme="dark"] .badge.attention,
body[data-ui-theme="dark"] .badge.warn,
body[data-ui-theme="night_ops"] .marker-attention,
body[data-ui-theme="night_ops"] .badge.attention,
body[data-ui-theme="night_ops"] .badge.warn,
body[data-ui-theme="retro"] .marker-attention,
body[data-ui-theme="retro"] .badge.attention,
body[data-ui-theme="retro"] .badge.warn,
body[data-ui-theme="high_contrast"] .marker-attention,
body[data-ui-theme="high_contrast"] .badge.attention,
body[data-ui-theme="high_contrast"] .badge.warn {
  color: var(--warn);
  background: var(--surface-warning);
}

body[data-ui-theme="dark"] .marker-missing,
body[data-ui-theme="dark"] .badge.missing,
body[data-ui-theme="dark"] .marker-inactive,
body[data-ui-theme="dark"] .badge.inactive,
body[data-ui-theme="night_ops"] .marker-missing,
body[data-ui-theme="night_ops"] .badge.missing,
body[data-ui-theme="night_ops"] .marker-inactive,
body[data-ui-theme="night_ops"] .badge.inactive,
body[data-ui-theme="retro"] .marker-missing,
body[data-ui-theme="retro"] .badge.missing,
body[data-ui-theme="retro"] .marker-inactive,
body[data-ui-theme="retro"] .badge.inactive,
body[data-ui-theme="high_contrast"] .marker-missing,
body[data-ui-theme="high_contrast"] .badge.missing,
body[data-ui-theme="high_contrast"] .marker-inactive,
body[data-ui-theme="high_contrast"] .badge.inactive {
  color: var(--danger);
  background: var(--surface-soft-muted);
}

body[data-ui-theme="dark"] .marker-inactive,
body[data-ui-theme="dark"] .badge.inactive,
body[data-ui-theme="night_ops"] .marker-inactive,
body[data-ui-theme="night_ops"] .badge.inactive,
body[data-ui-theme="retro"] .marker-inactive,
body[data-ui-theme="retro"] .badge.inactive,
body[data-ui-theme="high_contrast"] .marker-inactive,
body[data-ui-theme="high_contrast"] .badge.inactive {
  color: var(--muted);
}

body[data-ui-theme="dark"] .wall-calendar-day.is-today .wall-calendar-day-number,
body[data-ui-theme="night_ops"] .wall-calendar-day.is-today .wall-calendar-day-number,
body[data-ui-theme="retro"] .wall-calendar-day.is-today .wall-calendar-day-number,
body[data-ui-theme="high_contrast"] .wall-calendar-day.is-today .wall-calendar-day-number {
  background: var(--accent);
  color: var(--bg);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) button.danger-light {
  color: var(--danger);
  background: var(--surface-soft-muted);
  border-color: var(--danger);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) :is(
  .owner-guide,
  .operator-note,
  .screen-purpose,
  .next-step-note,
  .status-strip,
  .workflow-step,
  .workflow-number,
  .stat,
  .contract-row,
  .ops-panel-details,
  .ops-collapsible,
  .advanced-panel,
  .advanced-panel > .list,
  .advanced-panel > .list-controls,
  .advanced-panel > .ops-payment-ledger-panel,
  .advanced-panel > .ops-payment-audit-panel,
  .item,
  .booking-row,
  .weekday-picker label,
  .capacity-month-summary,
  .wall-calendar-empty,
  .wall-calendar-day,
  .wall-calendar-day-number,
  .capacity-chip,
  .date-picker-button,
  .arrival-date-time-field,
  .date-picker-popover,
  .date-picker-grid button,
  .selected-booking,
  .manifest-selected-facts div,
  .manifest-customer,
  .manifest-load-card header,
  .quick-edit-box,
  .load-status-inline,
  .intake-flow span,
  .intake-counts div,
  .intake-empty-note,
  .intake-card,
  .intake-grid div,
  .intake-availability,
  .intake-command-summary,
  .intake-detail-empty,
  .intake-next-step,
  .desa-ops-snapshot-grid > div,
  .intake-detail-grid div,
  .intake-participant,
  .participant-completion-list div,
  .participant-schedule-grid,
  .participant-schedule-header,
  .schedule-plan-strip span,
  .action-helper,
  .promote-next-step,
  .calendar-day-meta,
  .calendar-day-meta-card,
  .calendar-slot,
  .calendar-booking-card,
  .load-card,
  .manifest-load-card,
  .load-validation,
  .accounting-grid > div,
  .accounting-reconciliation-lines,
  .accounting-details,
  .accounting-closeout,
  .payment-closeout-history
) {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--line);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) :is(
  .badge,
  .badge.ready,
  .marker-ready,
  .time-option-chip,
  .date-picker-grid button.selected,
  .intake-availability.ready,
  .intake-alert-strip.ready span,
  .intake-next-step,
  .intake-warning-list.ready,
  .primary-review-action,
  .primary-next-action,
  .promote-next-step.ready,
  .calendar-slot.is-open,
  .wall-calendar-day.marker-border-ready
) {
  background: var(--surface-soft-accent);
  color: var(--accent-2);
  border-color: var(--line);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) :is(
  .badge.warn,
  .badge.attention,
  .badge.marker-attention,
  .marker-attention,
  .intake-hold,
  .intake-card-warning,
  .time-option-chip.warn,
  .intake-availability.warn,
  .intake-alert-strip span,
  .intake-warning-list div,
  .promote-next-step.blocked,
  .calendar-slot.is-full,
  .wall-calendar-day.marker-border-attention,
  .fuel-load-badge
) {
  background: var(--surface-warning);
  color: var(--warn);
  border-color: var(--line);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) :is(
  .badge.missing,
  .badge.marker-missing,
  .marker-missing,
  .wall-calendar-day.marker-border-missing
) {
  background: var(--surface-soft-muted);
  color: var(--danger);
  border-color: var(--line);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) :is(
  .badge.inactive,
  .badge.marker-inactive,
  .marker-inactive,
  .wall-calendar-day.marker-border-inactive
) {
  background: var(--surface-soft-muted);
  color: var(--muted);
  border-color: var(--line);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) :is(
  code,
  .intake-fulfillment-list,
  .intake-hold span,
  .time-option-chip.warn small,
  .calendar-slot strong,
  .calendar-booking-card span
) {
  color: var(--text);
}

body:is([data-ui-theme="default"], [data-ui-theme="dark"], [data-ui-theme="night_ops"], [data-ui-theme="black_red"], [data-ui-theme="retro"], [data-ui-theme="high_contrast"]) .wall-calendar-day.is-today .wall-calendar-day-number {
  background: var(--accent);
  color: var(--bg);
}

body[data-ui-theme="black_red"] button {
  background: #151518;
  border-color: #5a1f1f;
  color: #f7f7f7;
  box-shadow: inset 0 -2px 0 rgba(240, 68, 68, 0.24);
}

body[data-ui-theme="black_red"] button:hover {
  border-color: #f04444;
  box-shadow: inset 0 -2px 0 rgba(240, 68, 68, 0.5), 0 0 0 2px rgba(240, 68, 68, 0.18);
}

body[data-ui-theme="black_red"] button:disabled {
  color: #777;
  background: #0b0b0c;
  border-color: #242428;
  box-shadow: none;
  cursor: not-allowed;
}

body[data-ui-theme="black_red"] :is(form button[type="submit"], .primary-next-action, button[data-action="choose-load-slot"], button[data-action="add-load"], button[data-action="promote-dallasxsky-intake"], button[data-action="review-dallasxsky-intake"][data-status="confirmed"]) {
  background: #ffd166;
  border-color: #ffd166;
  color: #090909;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

body[data-ui-theme="black_red"] :is(form button[type="submit"], .primary-next-action, button[data-action="choose-load-slot"], button[data-action="add-load"], button[data-action="promote-dallasxsky-intake"], button[data-action="review-dallasxsky-intake"][data-status="confirmed"]):hover {
  background: #39d98a;
  border-color: #39d98a;
  color: #050505;
}

textarea {
  resize: vertical;
}

.list {
  display: grid;
  gap: 10px;
}

.list-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.button-pair {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: end;
}

.button-pair button {
  padding: 7px 8px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfd;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.compact-config-item > summary.item-header {
  cursor: pointer;
  margin-bottom: 0;
  list-style: none;
}

.compact-config-item > summary.item-header::-webkit-details-marker {
  display: none;
}

.compact-config-item[open] > summary.item-header {
  margin-bottom: 10px;
}

.inline-config-details {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--surface-soft);
}

.inline-config-details > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.advanced-add-on-flags {
  margin-top: 8px;
}

.item-title {
  font-weight: 700;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.warning-text {
  color: var(--danger);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f1f5;
  color: var(--accent);
  white-space: nowrap;
}

.badge.ready {
  color: var(--accent-2);
  background: #e7f4ec;
}

.badge.warn {
  color: var(--warn);
  background: #fff3dd;
}

.badge.attention,
.badge.marker-attention {
  color: var(--warn);
  background: #fff3dd;
}

.badge.missing,
.badge.marker-missing {
  color: var(--danger);
  background: #ffeceb;
}

.badge.inactive,
.badge.marker-inactive {
  color: var(--muted);
  background: #edf0f2;
}

.readiness-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.marker-ready {
  color: var(--accent-2);
  background: #e7f4ec;
}

.marker-attention {
  color: var(--warn);
  background: #fff3dd;
}

.marker-missing {
  color: var(--danger);
  background: #ffeceb;
}

.marker-inactive {
  color: var(--muted);
  background: #edf0f2;
}

.ops-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 20px;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
}

.hs-badge {
  color: #ffffff;
  background: #7a4a10;
}

.ops-tag-load-type,
.ops-tag-load_type {
  color: #ffffff;
  background: #245a77;
}

.ops-tag-media {
  color: #ffffff;
  background: #4b6b2a;
}

.ops-tag-split-group,
.ops-tag-split_group {
  color: #3f2f05;
  background: #f1d06b;
}

.marker-border-ready {
  border-color: #b8d8c5;
}

.marker-border-attention {
  border-color: #efd09c;
}

.marker-border-missing {
  border-color: #e2aaa7;
}

.marker-border-inactive {
  border-color: var(--line);
}

.readiness-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.load-timer-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.load-timer-line.is-overdue {
  border-color: var(--warn);
  background: #fff3dd;
  color: var(--warn);
}

.next-step-inline {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.next-step-inline strong {
  color: var(--text);
}

.advanced-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px 12px;
}

.advanced-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.booking-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.booking-addon-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin: 0;
  background: var(--surface-soft);
}

.booking-addon-tile.is-selected {
  border-color: var(--accent);
  background: var(--surface-soft-accent);
}

.booking-addon-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  min-width: 0;
}

.booking-addon-check input {
  margin-top: 3px;
}

.booking-addon-name {
  display: block;
  min-width: 0;
  font-weight: 800;
}

.booking-addon-price {
  font-weight: 900;
  white-space: nowrap;
}

.booking-addon-meta,
.booking-addon-options {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.booking-addon-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: end;
}

.booking-addon-controls label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.booking-addon-controls select,
.booking-addon-controls input {
  width: 100%;
  min-width: 0;
}

.store-register-form {
  display: grid;
  gap: 12px;
}

.store-register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 12px;
  align-items: start;
}

.store-register-pad,
.store-register-cart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.store-register-topline,
.store-cart-header,
.store-payment-strip,
.store-custom-row {
  display: grid;
  gap: 8px;
  align-items: end;
}

.store-register-topline {
  grid-template-columns: minmax(150px, 210px) auto;
}

.store-qty-stepper {
  display: inline-grid;
  grid-template-columns: auto 34px 44px 34px;
  gap: 6px;
  align-items: center;
  justify-content: end;
}

.store-qty-stepper span,
.store-qty-stepper strong {
  font-weight: 800;
}

.store-qty-stepper strong {
  text-align: center;
  font-size: 20px;
}

.store-qty-stepper button,
.store-cart-line-actions button {
  min-width: 34px;
  min-height: 34px;
  padding: 6px;
}

.store-category-strip,
.store-variant-strip,
.store-payment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.store-category-button,
.store-payment-button,
.store-variant-button {
  padding: 7px 10px;
}

.store-variant-button {
  display: grid;
  gap: 2px;
  min-width: 74px;
  text-align: left;
}

.store-variant-button span {
  color: var(--muted);
  font-size: 12px;
}

.store-category-button.is-active,
.store-payment-button.is-active,
.store-variant-button:focus {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--header-ink);
}

.store-register-selection {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.store-register-selection strong,
.store-register-selection span {
  display: block;
}

.store-register-selection strong {
  color: var(--text);
  font-size: 15px;
}

.store-register-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.store-register-button {
  min-height: 70px;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: left;
  padding: 10px;
}

.store-register-button[hidden] {
  display: none !important;
}

.store-register-button strong,
.store-register-button span {
  display: block;
  overflow-wrap: anywhere;
}

.store-register-button span {
  color: var(--muted);
  font-size: 12px;
}

.store-register-button:hover {
  background: var(--surface-soft-muted);
}

.store-custom-item {
  margin-top: 10px;
}

.store-custom-item summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 4px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.store-clear-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.store-clear-confirm[hidden] {
  display: none;
}

.store-clear-confirm span {
  font-weight: 800;
}

.variant-stock-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.variant-stock-grid .wide {
  grid-column: 1 / -1;
}

.store-custom-row {
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(110px, 0.45fr) auto;
  margin-top: 8px;
}

.store-register-cart {
  position: sticky;
  top: 10px;
}

.store-cart-header {
  grid-template-columns: 1fr auto;
}

.store-cart-header strong {
  font-size: 18px;
}

.store-cart-line-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.store-payment-strip {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.6fr);
}

.store-checkout-button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.booking-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcfd;
}

.booking-main,
.booking-quick {
  min-width: 0;
}

.booking-main strong,
.booking-main span,
.booking-quick span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-main span,
.booking-quick {
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.row-actions button {
  padding: 6px 8px;
}

.capacity-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.capacity-month-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: #f7faff;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.capacity-month-grid,
.wall-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.wall-calendar {
  margin-top: 10px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.wall-calendar-weekday {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.wall-calendar-empty {
  min-height: 112px;
  border: 1px dashed #dce3ea;
  border-radius: 8px;
  background: #f8fafc;
}

.capacity-day,
.wall-calendar-day {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft-accent);
  color: var(--text);
  padding: 9px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wall-calendar-day.is-selected {
  outline: 3px solid rgba(20, 107, 140, 0.25);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 107, 140, 0.1);
}

.wall-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(20, 107, 140, 0.16);
}

.wall-calendar-day:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line) 72%);
}

.wall-calendar-day.is-today .wall-calendar-day-number {
  background: var(--accent);
  color: var(--header-ink);
}

.wall-calendar-day-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef3f7;
  font-weight: 900;
}

.wall-calendar-day.marker-border-ready {
  border-color: #9fc9ab;
  background: #f1fbf4;
}

.wall-calendar-day.marker-border-attention {
  border-color: #efbf82;
  background: #fff8ee;
}

.wall-calendar-day.marker-border-missing {
  border-color: #e5a8a5;
  background: #fff0ef;
}

.wall-calendar-day.marker-border-inactive {
  border-color: #d5dde5;
  background: var(--surface-soft-muted);
}

.capacity-day strong,
.wall-calendar-day strong {
  font-size: 15px;
}

.capacity-day span,
.wall-calendar-day span {
  font-weight: 800;
}

.capacity-day small,
.wall-calendar-day small {
  color: var(--muted);
  font-size: 11px;
}

.capacity-chip {
  display: grid;
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fbfcfd;
}

.capacity-chip strong {
  font-size: 14px;
}

.capacity-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.capacity-chip.is-open {
  border-color: #b8d8c5;
  background: #f3fbf6;
}

.capacity-chip.is-full {
  background: #f5f1eb;
}

.booking-window-review-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.booking-window-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.booking-window-review.needs-attention {
  border-color: #dfb36f;
  background: #fffaf0;
}

.booking-window-customers,
.booking-window-holds {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.mini-row span {
  min-width: 0;
}

.selected-booking {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  color: var(--muted);
}

.selected-booking.ready-selection {
  border-color: #b8d8c5;
  background: #f3fbf6;
  color: var(--text);
}

.manifest-selected-card {
  display: grid;
  gap: 9px;
}

.manifest-selected-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.manifest-selected-main strong,
.manifest-selected-main span {
  display: block;
}

.manifest-selected-main strong {
  font-size: 15px;
}

.manifest-selected-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.manifest-selected-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.manifest-selected-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 7px;
}

.manifest-selected-facts div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 7px 8px;
  min-width: 0;
}

.manifest-selected-facts span,
.manifest-selected-facts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-selected-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.manifest-selected-facts strong {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
}

.manifest-load-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.manifest-load-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.manifest-load-card header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  padding: 10px;
  background: #edf5f8;
}

.load-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.manifest-load-card header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.manifest-slot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
}

.manifest-slot-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-customer {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fbfcfd;
}

.manifest-customer button {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.manifest-customer button strong,
.manifest-customer button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manifest-customer button span,
.manifest-customer-meta {
  color: var(--muted);
  font-size: 13px;
}

.manifest-time {
  color: var(--accent);
  font-weight: 700;
}

.manifest-customer-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.stale-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.stale-action-button {
  min-height: 36px;
  border-width: 1px;
  border-style: solid;
  font-weight: 800;
  text-align: center;
}

.stale-action-button.primary {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-soft-accent);
}

.media-output-chip {
  border: 1px solid #b9d7cb;
  border-radius: 999px;
  padding: 2px 8px;
  background: #edf8f2;
  color: var(--accent-2);
  font-weight: 800;
}

.media-output-chip strong {
  color: var(--text);
}

.intake-command-summary {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft-muted);
  padding: 12px;
}

.intake-command-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
}

.intake-command-head span,
.intake-command-head strong,
.intake-command-head small {
  display: block;
}

.intake-command-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intake-command-head strong {
  margin-top: 2px;
  font-size: 18px;
}

.intake-command-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.intake-alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intake-alert-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #efd09c;
  border-radius: 999px;
  background: var(--surface-warning);
  color: var(--warn);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.intake-alert-strip.ready span {
  border-color: #b9d7cb;
  background: #edf8f2;
  color: var(--accent-2);
}

.intake-command-summary .desa-ops-snapshot {
  border-top: 0;
  padding-top: 0;
}

.intake-command-summary .desa-ops-snapshot h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.desa-ops-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.desa-ops-snapshot-grid > div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.desa-ops-snapshot-grid strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.desa-ops-snapshot-grid span {
  font-weight: 800;
}

.desa-ops-snapshot-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.slot-media-line {
  display: block;
  margin-top: 3px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.assignment-hints {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.quick-edit-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: #fffafa;
  padding: 10px;
  margin-bottom: 12px;
}

.load-status-inline {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
  margin: 8px 0 12px;
}

.warn-text {
  color: var(--warn);
  font-weight: 700;
}

.ready-text {
  color: var(--accent-2);
  font-weight: 700;
}

.import-result {
  margin-top: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.intake-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.intake-counts div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fbfcfd;
}

.intake-counts strong,
.intake-counts span {
  display: block;
}

.intake-counts span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.intake-empty-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 13px;
}

.intake-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fbfcfd;
}

.intake-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(22, 78, 99, 0.12);
}

.intake-card.has-duplicate {
  border-color: #efd09c;
}

.intake-card-warning {
  border-left: 3px solid var(--warn);
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  background: #fff8ea;
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.intake-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: white;
  min-width: 0;
}

.intake-grid strong,
.intake-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intake-grid span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.intake-hold {
  display: grid;
  gap: 3px;
  margin: 8px 0 10px;
  border: 1px solid #efd09c;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff8ea;
  color: var(--warn);
  font-size: 13px;
}

.intake-availability {
  display: grid;
  gap: 3px;
  margin: 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
  font-size: 13px;
}

.intake-availability.ready {
  border-color: #b9d7cb;
  background: #edf8f2;
  color: var(--accent-2);
}

.intake-availability.warn {
  border-color: #efd09c;
  background: #fff8ea;
  color: var(--warn);
}

.intake-availability span {
  color: var(--muted);
}

.intake-time-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.time-option-chip {
  display: inline-grid;
  gap: 1px;
  min-width: 86px;
  border: 1px solid #b9d7cb;
  border-radius: 8px;
  background: #edf8f2;
  color: var(--accent-2);
  padding: 7px 9px;
}

.time-option-chip strong {
  font-size: 14px;
}

.time-option-chip small {
  color: var(--muted);
  font-size: 12px;
}

.time-option-chip.warn {
  border-color: #e0c17a;
  background: #fff7e6;
  color: #6f4b17;
}

.intake-hold span {
  color: #6f4b17;
}

.intake-hold details {
  margin-top: 4px;
  color: var(--text);
}

.duplicate-change-list {
  display: grid;
  gap: 5px;
  margin: 8px 0 10px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.duplicate-change-list strong {
  color: var(--text);
}

.duplicate-resolution-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 8px 0 10px;
}

.duplicate-resolution-controls select,
.duplicate-resolution-controls button {
  min-height: 36px;
}

.promote-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  flex: 1 1 280px;
}

.promote-controls label {
  min-width: 0;
}

.promote-controls input {
  min-height: 36px;
}

.intake-detail-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfd;
}

.intake-detail {
  display: grid;
  gap: 12px;
}

.intake-next-step {
  display: grid;
  gap: 4px;
  border: 1px solid #b9d7cb;
  border-radius: 8px;
  background: #edf8f2;
  color: var(--accent-2);
  padding: 10px 12px;
}

.intake-next-step h3 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.intake-next-step strong,
.intake-next-step span {
  display: block;
}

.intake-next-step span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.intake-warning-list {
  display: grid;
  gap: 7px;
}

.intake-warning-list div,
.intake-warning-list.ready {
  border: 1px solid #efd09c;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff8ea;
  color: var(--warn);
}

.intake-warning-list.ready {
  border-color: #b9d7cb;
  background: #edf8f2;
  color: var(--accent-2);
}

.intake-warning-list strong,
.intake-warning-list span {
  display: block;
}

.intake-warning-list span {
  color: var(--text);
  font-size: 13px;
  margin-top: 2px;
}

.intake-detail-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.intake-detail-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.intake-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.intake-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fbfcfd;
  min-width: 0;
}

.intake-detail-grid span,
.intake-detail-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.intake-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.promoted-intake-summary {
  display: grid;
  gap: 12px;
}

.promoted-intake-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #b9d7cb;
  border-radius: 8px;
  background: #edf8f2;
  padding: 12px;
}

.promoted-intake-hero h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.promoted-intake-hero p {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.promoted-intake-hero span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.promoted-intake-hero span:first-child,
.promoted-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.promoted-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
}

.promoted-primary-actions button {
  min-height: 42px;
}

.promoted-warning-row {
  border: 1px solid #efd09c;
  border-radius: 8px;
  background: #fff8ea;
  padding: 8px;
}

.promoted-section-title {
  margin: 2px 0 -4px;
}

.promoted-booking-list {
  display: grid;
  gap: 8px;
}

.promoted-booking-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.promoted-booking-row span,
.promoted-action-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.promoted-booking-facts,
.promoted-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.promoted-booking-facts span,
.promoted-action-grid div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px;
}

.intake-secondary-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.intake-secondary-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.intake-participant-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.intake-participant {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: white;
}

.intake-participant span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.participant-completion-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.participant-completion-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  background: #fbfcfd;
}

.participant-completion-list span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.compact-group-schedule {
  display: grid;
  gap: 8px;
}

.compact-group-schedule h3,
.compact-group-schedule .intake-warning-list {
  margin-bottom: 0;
}

.schedule-bulk-controls {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(100px, 130px) max-content;
  gap: 8px;
  align-items: end;
}

.schedule-bulk-controls label {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.participant-schedule-grid {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.schedule-plan-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-plan-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e2ea;
  border-radius: 6px;
  background: #f7fafc;
  color: #1f2937;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
}

.participant-schedule-row {
  display: grid;
  grid-template-columns: 34px minmax(130px, 1fr) minmax(82px, 100px);
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  min-width: 0;
}

.participant-schedule-row + .participant-schedule-row {
  border-top: 1px solid var(--line);
}

.participant-schedule-header {
  background: #f3f6f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.participant-schedule-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-schedule-row input,
.participant-schedule-row select {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
}

.schedule-index {
  color: var(--muted);
  font-size: 12px;
}

.intake-fulfillment-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
}

.intake-fulfillment-list li + li {
  margin-top: 4px;
}

.intake-review-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.action-helper,
.promote-next-step {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
  min-width: 0;
}

.action-helper span,
.promote-next-step span,
.promote-next-step li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.action-helper button,
.promote-next-step button {
  width: 100%;
}

.primary-review-action,
.primary-next-action {
  border-color: #b9d7cb;
  background: #edf8f2;
}

.review-inline-controls {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.audit-detail-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.audit-detail-list span {
  display: grid;
  grid-template-columns: minmax(95px, 0.35fr) minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.audit-detail-list strong {
  color: var(--text);
}

.promote-next-step {
  grid-column: 1 / -1;
}

.promote-next-step.ready {
  border-color: #b9d7cb;
  background: #edf8f2;
}

.promote-next-step.blocked {
  border-color: #efd09c;
  background: #fff8ea;
}

.promote-next-step ul {
  margin: 0;
  padding-left: 18px;
}

.json-box.compact {
  min-height: 0;
  max-height: 280px;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#dallasxskyEmailPreview,
#emailTemplatePreview {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.calendar-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.calendar-toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 12px;
  margin: 8px 0 12px;
}

.calendar-toolbar-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.calendar-toolbar .list-controls {
  margin: 0;
}

.calendar-board-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(360px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.calendar-month-pane {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.calendar-selected-pane {
  min-width: 0;
  position: sticky;
  top: 12px;
  align-self: start;
}

.calendar-footnote {
  grid-column: 1 / -1;
}

.calendar-month-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.calendar-month-header h3 {
  margin: 0;
}

.calendar-legend .readiness-marker {
  font-size: 11px;
}

.calendar-month-header span {
  color: var(--muted);
  font-weight: 800;
}

.calendar-day-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft-accent);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.calendar-day-detail > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: var(--surface-soft-accent);
}

.calendar-day-meta {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
}

.calendar-day-meta .calendar-day-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-day-meta-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--surface-soft);
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}

.calendar-day-meta-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 3px;
}

.calendar-day-detail > header strong,
.calendar-day-detail > header span {
  display: block;
}

.calendar-day-detail > header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-day-detail {
  margin-top: 12px;
}

.calendar-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
}

.calendar-day header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: var(--surface-soft-accent);
}

.calendar-day header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 10px;
}

.calendar-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calendar-slot-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.calendar-slot strong {
  color: var(--text);
}

.calendar-slot.is-open {
  border-color: #b8d8c5;
  background: #f3fbf6;
}

.calendar-slot.is-full {
  background: #f5f1eb;
}

.calendar-slot.is-open {
  box-shadow: 0 2px 8px rgba(40, 120, 75, 0.12);
}

.calendar-slot.is-full {
  border-color: #efc39f;
}

.calendar-bookings {
  display: grid;
  gap: 6px;
}

.calendar-booking-card {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: white;
  color: var(--text);
}

.calendar-booking-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.calendar-booking-card.compact-booking-card {
  padding: 6px 8px;
}

.calendar-booking-card.compact-booking-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.handoff-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.handoff-summary-chip strong {
  font-size: 16px;
  line-height: 1;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.load-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.load-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #163743;
  color: var(--header-ink);
}

.load-card header strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.load-card header span,
.load-status small {
  display: block;
  color: var(--panel-ink);
  font-size: 14px;
  margin-top: 4px;
}

.fuel-load-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  color: #92400e;
  background: #fffbeb;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.load-status {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.load-card.status-called header,
.load-card.status-boarding header {
  background: #275f45;
}

.load-card.status-wheels_up header {
  background: #6d5216;
}

.load-validation {
  display: grid;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
  font-size: 13px;
  font-weight: 700;
}

.load-validation .error {
  color: var(--danger);
}

.load-validation .warning {
  color: var(--warn);
}

.manifest-check-card .check-error,
.manifest-check-card .check-warning {
  margin-top: 4px;
  font-weight: 700;
}

.manifest-check-card .check-error {
  color: var(--danger);
}

.manifest-check-card .check-warning {
  color: var(--warn);
}

.load-card .slot {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.slot-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.board-pairing {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.board-pairing strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.board-pairing span {
  font-size: 20px;
  font-weight: 700;
}

.media-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef2f4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.media-pill.paid {
  background: #e7f4ec;
  color: var(--accent-2);
}

.json-box {
  background: #102028;
  color: #d8f0f0;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 280px;
  font-size: 12px;
}

.json-box.export {
  max-height: 60vh;
}

dialog {
  width: min(960px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.operator-session-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  overflow: auto;
}

.operator-session-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
}

.operator-session-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.operator-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operator-session-form h2 {
  margin: 0;
}

.operator-current-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
  font-weight: 800;
}

.operator-current-session span {
  display: grid;
  gap: 2px;
}

.operator-current-session strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.operator-session-options {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.operator-session-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operator-session-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 7px 8px;
  background: var(--surface-soft);
}

.operator-session-options input[type="number"] {
  width: 76px;
  margin-left: 2px;
}

.operator-dialog-close {
  min-height: 32px;
}

@media (max-width: 900px) {
  .app-header,
  .surface-grid,
  .calendar-workspace,
  .bookings-workspace,
  .store-workspace,
  .calendar-board-layout,
  .dallasxsky-workspace,
  .handoff-workspace,
  .streaming-workspace,
  .manifest-workspace {
    grid-template-columns: 1fr;
    display: grid;
  }

  .app-header {
    justify-content: stretch;
    gap: 12px;
    padding: 14px;
  }

  .brand-heading,
  .header-actions,
  .auth-status {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .notification-center,
  .notification-bell {
    max-width: 100%;
  }

  .manifest-queue-panel,
  .manifest-load-panel {
    position: static;
  }

  .manifest-queue-panel .list {
    max-height: none;
  }

  .manifest-main {
    grid-template-columns: 1fr;
  }

  .dallasxsky-queue-panel .list {
    max-height: none;
  }

  .intake-flow {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .email-template-layout {
    grid-template-columns: 1fr;
  }

  .handoff-lookup-controls,
  .handoff-row {
    grid-template-columns: 1fr;
  }

  .section-header,
  .inline-form {
    display: grid;
  }

  .manifest-load-panel .load-create-form,
  .participant-roster-row {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .arrival-date-time-field {
    grid-column: 1;
  }

  .arrival-date-time-grid {
    grid-template-columns: 1fr;
  }

  .list-controls,
  .weekday-picker {
    grid-template-columns: 1fr;
  }

  .booking-row {
    grid-template-columns: 1fr;
  }

  .store-register-layout,
  .store-register-topline,
  .store-custom-row,
  .store-payment-strip {
    grid-template-columns: 1fr;
  }

  .store-register-cart {
    position: static;
  }

  .store-register-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .workflow-step,
  .manifest-slot-row {
    grid-template-columns: 1fr;
  }

  .schedule-bulk-controls,
  .participant-schedule-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .schedule-bulk-controls {
    align-items: stretch;
  }

  .schedule-bulk-controls label,
  .schedule-bulk-controls button {
    grid-column: 1 / -1;
  }

  .participant-schedule-header {
    display: none;
  }

  .participant-schedule-row input,
  .participant-schedule-row select {
    grid-column: 2;
  }

  .manifest-selected-main,
  .intake-command-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .manifest-selected-badges {
    justify-content: flex-start;
  }

  .participant-completion-list div {
    grid-template-columns: 1fr;
  }

  .wall-calendar {
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .wall-calendar-weekday,
  .wall-calendar-empty,
  .wall-calendar-day {
    min-width: 94px;
  }

  .wall-calendar-empty,
  .wall-calendar-day {
    min-height: 96px;
  }

  .calendar-month-header,
  .calendar-day-detail > header,
  .ops-panel-details > summary {
    align-items: flex-start;
    display: grid;
  }

  .ops-panel-details > summary small {
    text-align: left;
  }
}




