/* Future workspace only. Presentation overrides; no changes to status or task data.
   Each status keeps its text and adds a decorative shape, so hue is never the only cue. */
:root {
  --green: #164b80;
  --ink: #18263b;
  --muted: #536176;
  --border: #cbd3dd;
  --cream: #f1f4f8;
  --red: #992f20;
  --yellow: #6b3c00;
  --ft-page: #f1f4f8;
  --ft-blue-light: #e6f0fc;
  --ft-control: #7d8a9c;
  color: var(--ink);
  background: var(--ft-page);
}
body, .app-demo .workspace { background: var(--ft-page); }
.topbar { background: #fff; }
a, .text-button, .table-title, .brand strong { color: var(--green); }
small, .nav-label, .nav-item, .breadcrumb, .breadcrumb span, .eyebrow,
.stat-label, .stat-note, .subtle, .section-note, .alert-meta,
.tomorrow-row p, .filters .count, .order-card .source, .order-info,
.empty, .task-card .driver, .content-area > footer, .dialog-footer > span,
.close-button, .paste-pane p, .parse-status, .intake-help, .intake-evidence,
.intake-line-route, .order-progress-note, .order-reminder-cell,
.sidebar-bottom, .vehicle-number-preview small, .flight-lookup-panel small {
  color: var(--muted);
}
.nav-item.active { background: var(--ft-blue-light); color: var(--green); box-shadow: inset 4px 0 var(--green); }
.nav-item:hover { background: #edf2f8; }
.user-chip, .message-avatar { background: #e8eef6; color: #243e60; }
.mobile-nav button { color: var(--muted); }
.mobile-nav button.active { color: var(--green); font-weight: 700; }
.mobile-nav button.active > span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.count-dot { background: var(--red); color: #fff; }
.live-dot { background: var(--green); }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #10385f; }
.secondary { border-color: var(--ft-control); color: var(--ink); }
.secondary:hover { background: #edf2f8; }
.danger-button { color: var(--red); border-color: var(--red); }
input, select, textarea, .future-date-trigger { color: var(--ink); border-color: var(--ft-control); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #0759b0;
  outline-offset: 3px;
}
th { color: #35465d; background: #eaf0f6; font-weight: 650; }
td { color: var(--ink); border-bottom-color: var(--border); }
.panel-header, .alert-row, .tomorrow-row { border-bottom-color: var(--border); }
.grouped-overview-row td, .grouped-overview-card { background: #f7f9fc; }
.grouped-overview-row td:first-child { box-shadow: inset 4px 0 #7d8a9c; }
.order-list-table tbody.order-group tr:first-child td { border-top-color: var(--ft-page); }
.order-list-table .order-project-cell, .order-list-table .order-date-cell,
.order-list-table .order-reminder-cell, .order-list-table .order-action-cell { background: #f7f9fc; }
.order-list-table .order-project-cell { box-shadow: inset 4px 0 #7d8a9c; }
.order-list-table .order-date-cell { color: var(--ink); }
.order-list-table tr.needs-attention td { background: #fffaf0; }
.task-table .text-button, .task-card footer .text-button, .order-actions .text-button {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.column-filter-button, .table-filter-bar { color: #35465d; }
.column-filter-button svg { opacity: 1; }
.column-filter-button.is-filtered, .table-filter-tags button { color: var(--green); background: var(--ft-blue-light); }
.column-filter-button.is-filtered svg { fill: #e6f0fc; }
.filter-active-dot { background: var(--green); }

/* Neutral = waiting; amber = action; blue = arranged; green = executed / received.
   Solid completion, outlined waiting, plus distinct icons. */
.status-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; vertical-align: middle; }
.status-pill {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M10 5.5v5l3 1.8'/%3E%3C/g%3E%3C/svg%3E");
  background: #edf0f4;
  color: #454f60;
  border: 1px solid #7d8a9c;
  border-radius: 6px;
  padding: 4px 8px;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}
.status-pill::before {
  content: "";
  display: inline-block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--status-icon) center / contain no-repeat;
  mask: var(--status-icon) center / contain no-repeat;
}
.status-pill.pending, .status-pill.urgent, .status-pill.missing {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.5L18 17H2zM10 7v4.5M10 14v.1'/%3E%3C/g%3E%3C/svg%3E");
  background: #fff2ce;
  color: #6b3c00;
  border-color: #a96700;
}
.status-pill.awaiting-confirmation {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2.5h10M5 17.5h10M6 3v4l8 6v4M14 3v4l-8 6v4'/%3E%3C/g%3E%3C/svg%3E");
  border-style: dashed;
}
.status-pill.arranged {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='14' height='13' rx='2'/%3E%3Cpath d='M6 2v4M14 2v4M3 8h14M6.5 12l2 2 4-4'/%3E%3C/g%3E%3C/svg%3E");
  color: #164b80;
  background: #e6f0fc;
  border-color: #4079b2;
}
.status-pill.completed {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M6 10l2.5 3L14 7'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  background: #176345;
  border-color: #176345;
}
.status-pill.received {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2.5h7l4 4v11H4v-15zM11 3v4h4M7 12l2 2 4-4'/%3E%3C/g%3E%3C/svg%3E");
  color: #17563d;
  background: #e5f3eb;
  border-color: #387e5d;
}
.status-pill.critical, .status-pill.returned {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l4 4v8l-4 4H6l-4-4V6zM10 5v6M10 14v.1'/%3E%3C/g%3E%3C/svg%3E");
  background: #992f20;
  color: #fff;
  border-color: #992f20;
}
.status-pill.cancelled {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M5 15L15 5'/%3E%3C/g%3E%3C/svg%3E");
  color: #454f60;
  background: #edf0f4;
  border-color: #7d8a9c;
  border-style: dashed;
}
.status-pill.pending.priority-soon { color: #fff; background: #87520a; border-color: #87520a; }
.status-pill.pending.priority-critical { color: #fff; background: #873515; border-color: #873515; border-width: 2px; padding: 3px 7px; }
.status-pill.pending.priority-overdue { color: #fff; background: #492012; border: 3px double #fff; outline: 1px solid #492012; padding: 2px 6px; }
.priority-note { font-size: 11px; line-height: 1.6; font-weight: 650; color: #6b3c00; }
.priority-note.priority-critical { color: #873515; }
.priority-note.priority-overdue { color: #492012; }
.receipt-view-button { text-decoration-thickness: 1px; }
.alert-line { background: #7d8a9c; }
.alert-row.urgent .alert-line { background: #a96700; }
.alert-row.critical .alert-line { background: var(--red); }
.empty strong { color: #35465d; }
.progress { background: #e8eef6; }
.progress span { background: var(--green); }
.journey-illustration, .channel-banner, .message pre, .environment,
.paste-pane, .intake-source-detail pre, .link-evidence, .intake-next-step {
  background: #edf2f8;
  color: #35465d;
  border-color: var(--border);
}
.journey-illustration span { background: #7d8a9c; }
.environment strong, .vehicle-number-preview strong, .flight-lookup-panel strong { color: var(--green); }
.notice, .order-summary, .date-chip, .vehicle-number-preview, .flight-lookup-panel {
  background: #e6f0fc;
  color: #164b80;
  border-color: #4079b2;
}
.vehicle-number-preview span { color: #164b80; }
.intake-row summary, .intake-form > .form-grid summary, .conflict-row button { color: var(--green); }
.intake-row summary, .intake-form > .form-grid summary { text-decoration: underline; text-underline-offset: 3px; }
.entry-choice { border-color: var(--ft-control); }
.entry-choice.active { color: var(--green); background: var(--ft-blue-light); border-color: var(--green); }
.updated-field { border-color: #4079b2 !important; background: #e6f0fc !important; }
.notice.error, .form-errors, .message.urgent pre, .message.critical pre,
.intake-missing-status, .intake-missing-summary, .intake-next-step.has-missing,
.future-account-error, .future-calendar-error {
  background: #fff2e6;
  color: #8a330e;
  border-color: #b35e24;
}
.required, .parse-warning, .intake-field-missing, .intake-missing-hint,
.intake-missing-inline, .intake-missing-summary > span, .intake-missing-summary strong,
.intake-next-step.has-missing .section-note { color: #8a330e !important; }
.intake-field-missing-control { border-color: #b35e24 !important; background: #fffaf0 !important; box-shadow: 0 0 0 2px #b35e2426 !important; }
.intake-row.has-missing, .order-card.has-missing, .alert-row.has-missing { border-color: #b35e24 !important; box-shadow: inset 4px 0 #b35e24; }
.intake-line-summary.has-missing, .flight-lookup-panel.warning { background: #fff2ce; color: #6b3c00; }
.flight-lookup-panel.success { background: #dcf4f2; color: #075a61; border-color: #397b81; }

/* The same palette applies to this workspace's forms and date/time pickers. */
.future-account-dialog, .future-account-body input, .future-account-body select,
.future-calendar-dialog, .future-date-trigger, .future-time-popover { color: var(--ink); border-color: var(--ft-control); }
.future-account-hint, .future-account-list small, .future-calendar-help,
.future-calendar-week, .future-calendar-no-selection, .future-calendar-close,
.future-calendar-selection-heading, .future-date-trigger::after,
.future-time-popover h4, .future-time-weekdays span { color: var(--muted); }
.future-account-body button, .future-calendar-nav button, .future-calendar-footer button,
.future-time-popover button { color: var(--ink); background: #f1f4f8; border-color: var(--ft-control); }
.future-account-body .future-account-primary, .future-calendar-grid button[aria-pressed="true"],
.future-calendar-footer .future-calendar-confirm, .future-time-popover button.active,
.future-time-actions .primary { color: #fff; background: var(--green); border-color: var(--green); }
.future-account-body input:focus, .future-account-body select:focus { outline: 3px solid #0759b0; }
.future-calendar-grid button.is-today { border-color: var(--green); text-decoration: underline; }
.future-calendar-grid button:hover, .future-time-popover button:hover { background: #e6f0fc; color: var(--green); }
.future-calendar-grid button[aria-pressed="true"]:hover,
.future-time-popover button.active:hover { background: #10385f; color: #fff; }
.future-calendar-selected button, .future-time-summary { background: #e6f0fc; color: #164b80; }
.future-calendar-selection-heading button, .future-calendar-nav .future-calendar-today { color: #164b80; }
.future-time-input { background-image: linear-gradient(90deg,transparent calc(100% - 42px),#edf2f8 calc(100% - 42px)); }
.future-file-drop { color: var(--ink); border-color: var(--ft-control); background: #fff; }
.future-file-drop small { color: var(--muted); }
.future-file-drop.dragging, .future-file-drop:focus-visible { outline-color: #0759b0; background: #e6f0fc; }
.ledger-preview-card { background: #f1f4f8; }
.ledger-preview-section h4 { color: #164b80; background: #e6f0fc; }
.ledger-preview-title-row em { background: #dcf4f2; color: #075a61; }
.ledger-preview-loading { color: #164b80; }
@media (forced-colors: active) {
  .status-pill { border-color: CanvasText; }
  .status-pill::before { background: CanvasText; forced-color-adjust: none; }
  .nav-item.active { outline: 2px solid Highlight; outline-offset: -2px; }
}
