/* Hoppvia app palette. Load after the admin module styles. */
:root {
  --paper: #fffefb;
  --surface: #fff;
  --ink: #080d23;
  --muted: #656b7c;
  --line: #e9eaf0;
  --yellow: #ffc400;
  --sidebar: var(--ink);
  --green: #725000; /* Legacy link token used by the base admin styles. */
  --red: #bc362f;
  --app-gold-deep: #ffae00;
  --app-gold-soft: #fff8e4;
  --app-gold-line: #efd58f;
  --app-gold-text: #795500;
  --app-subtle: #f5f6f8;
  --app-control-line: #d5d8e1;
  --app-sidebar-surface: #181e34;
  --app-sidebar-line: #30364e;
  --app-sidebar-text: #d1d5e3;
  --app-sidebar-muted: #afb5c8;
  --app-available: #2e5d9a;
  --app-available-bg: #edf4ff;
  --app-available-line: #d4e1f6;
  --app-offline: #72788a;
  --workspace-shadow: 0 2px 6px #080d2305, 0 12px 24px #080d2303;
}

:focus-visible { outline-color: var(--app-available); }
::selection { background: var(--app-gold-soft); color: var(--ink); }

.brand-mark { background: var(--yellow); color: var(--ink); }
.workspace { background: var(--app-sidebar-surface); border-color: var(--app-sidebar-line); }
.workspace-icon, .operator .avatar { background: var(--app-gold-soft); color: var(--ink); }
.workspace small, .workspace-arrow, .nav-label, #navigation .nav-section, .operator small, .sidebar-bottom > a { color: var(--app-sidebar-muted); }
#navigation { scrollbar-color: var(--app-sidebar-muted) transparent; }
#navigation button, .operator .icon-button { color: var(--app-sidebar-text); }
#navigation button:hover:not(.active), .operator .icon-button:hover { background: var(--app-sidebar-surface); color: white; }
#navigation button.active { background: var(--yellow); color: var(--ink); box-shadow: none; }
#navigation .nav-count { background: var(--app-sidebar-line); }
#navigation .active .nav-count { background: var(--app-gold-soft); color: var(--ink); }
.operator { border-color: var(--app-sidebar-line); }
.sidebar :focus-visible { outline-color: var(--yellow); }

.workspace-main, .login-side, .drawer { background: var(--paper); }
.topbar, .drawer-heading { background: var(--surface); border-color: var(--line); }
.breadcrumb, .connection, .app-footer { color: var(--muted); }
.breadcrumb span { color: var(--app-offline); }
.breadcrumb strong { color: var(--ink); }
.connection .status-dot { background: var(--app-available); box-shadow: 0 0 0 3px var(--app-available-bg); }
.development-banner, .notice, .environment-note {
  background: var(--app-gold-soft);
  border-color: var(--app-gold-line);
  color: var(--app-gold-text);
}
.development-banner span { color: inherit; }

.button, .button.quiet, .icon-button { color: var(--ink); border-color: var(--app-control-line); }
.button:hover, .button.quiet:hover, .icon-button:hover { color: var(--ink); background: var(--app-subtle); border-color: var(--app-control-line); }
.button.primary {
  background: linear-gradient(135deg, #ffd72f, var(--yellow));
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: none;
}
.button.primary:hover { background: var(--app-gold-deep); border-color: var(--app-gold-deep); }
.button.link { color: var(--app-gold-text); }
.button.link:hover { background: var(--app-gold-soft); }
.button.danger { color: var(--red); background: #fff7f2; border-color: #edd0c5; }
.button.danger:hover { background: #ffede3; border-color: #d8a99a; }

input, select, textarea, .login-card input { border-color: var(--app-control-line); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--app-available); outline-color: var(--app-available); }
input[readonly], textarea[readonly] { background: var(--app-subtle); }
input[type=checkbox], input[type=radio] { accent-color: var(--app-available); }

.page-heading h1, .panel-head h2, .stat-value, .empty h3, .capability h3, .attention-row strong, .attention-number,
.drawer-heading h2, .detail-grid dd, .detail-section h3, .document-info strong, .account-amount,
.login-card h2, td strong, label, .check-label { color: var(--ink); }
.page-heading p, .eyebrow, .date-chip, .panel-head p, .stat-top, .stat-bottom, .chart-note, .attention-row small,
td, td small, .search-box > span, .pager, .empty p, .capability p, .loading,
.detail-grid dt, .detail-section p, .detail-section pre, .drawer-body > p, .document-info small,
.account-summary p, .field-hint, .account-guidance, .account-form-help, .password-requirements,
.login-card > p, .login-bottom { color: var(--muted); }
.login-note { color: var(--muted) !important; }
.stat-bottom strong { color: var(--app-available); }
.chart text { fill: var(--muted); }
.chart .gridline { stroke: var(--line); }
.chart .bar { fill: var(--app-available); }
.chart .bar.last { fill: var(--yellow); }
.panel, .stat, .capability, .detail-section, .table-toolbar, .pager, td, th,
.attention-row, .document-row, .bank-details, .pricing-category, .zone-row, .secret-key { border-color: var(--line); }
.stat-icon, .attention-symbol, .person .avatar { background: var(--app-gold-soft); color: var(--app-gold-text); }
.attention-row button, .zone-row legend { color: var(--ink); }
.attention-row button:hover, tbody tr:hover { background: var(--app-gold-soft); color: var(--ink); }
th, .reply, .bank-details, .pricing-category, .zone-row, .secret-key, .drawer-heading .icon-button {
  background: var(--app-subtle);
  color: var(--ink);
}
.table-wrap { scrollbar-color: var(--app-control-line) var(--app-subtle); }
.reply small { color: var(--muted); }
.badge { background: var(--app-subtle); color: var(--muted); }
.badge.good, .badge.blue { background: var(--app-available-bg); color: var(--app-available); }
.badge.warn { background: var(--app-gold-soft); color: var(--app-gold-text); }
.badge.bad { background: #fcece4; color: var(--red); }
.drawer { box-shadow: -15px 0 70px #080d2324; }
.drawer::backdrop { background: #080d2366; }
.detail-section { box-shadow: var(--workspace-shadow); }
.toast { background: var(--ink); box-shadow: 0 8px 40px #080d2329; }
.toast.error { background: var(--red); }
.loading::before { border-color: var(--line); border-top-color: var(--app-gold-deep); }
.password-control > button { background: var(--app-subtle); color: var(--ink); }
.password-control > button:hover { background: var(--app-gold-soft); }
.local-login-helper { color: var(--app-gold-text); }
.remember-session span, .login-help, .login-restore-status, .account-session-count { color: var(--muted); }
.account-guidance strong { color: var(--ink); }
.operator-account:hover strong { color: var(--yellow); }
.login-story { background: var(--sidebar); }
.login-story > .eyebrow, .login-story p, .story-footer { color: var(--app-sidebar-text); }
.login-story h1 { color: var(--surface); }
.road-art path { stroke: var(--app-sidebar-line); }
.road-art .road-dash { stroke: var(--app-sidebar-muted); }
.road-art circle { fill: var(--yellow); stroke: var(--sidebar); }

.fleet-workspace {
  --fleet-border: var(--line);
  --fleet-muted: var(--muted);
  --fleet-green: var(--app-available);
  --fleet-bg: var(--app-subtle);
  color: var(--ink);
}
.fleet-page-heading h1, .fleet-map-heading h2, .fleet-rail-heading h2, .fleet-rides-heading h2, .fleet-metric > strong,
.fleet-driver-info > strong, .fleet-map-message strong, .fleet-map-selection strong, .fleet-detail-top > strong,
.fleet-directory-empty strong, .fleet-rides-empty strong, .fleet-ride-route strong { color: var(--ink); }
.fleet-workspace .eyebrow, .fleet-page-heading p, .fleet-metric-label, .fleet-metric-note, .fleet-auto,
.fleet-map-message span, .fleet-map-selection span, .fleet-map-footer, .fleet-map-legend > span, .fleet-layer-note,
.fleet-driver-info > span, .fleet-driver-info > small, .fleet-directory-note, .fleet-directory-pager,
.fleet-driver-detail dt, .fleet-directory-empty p, .fleet-rides-empty p, .fleet-ride-route small,
.fleet-rides-limit, .fleet-data-note, .fleet-coordinates, .fleet-north, .fleet-scale { color: var(--muted); }

.fleet-metric, .fleet-search, .fleet-toolbar > select, .fleet-view-switch, .fleet-map-panel, .fleet-rail,
.fleet-rides, .fleet-directory-table, .fleet-map-canvas, .fleet-map-footer, .fleet-layer-note,
.fleet-map-label, .fleet-map-button, .fleet-zoom, .fleet-zoom .fleet-map-button + button,
.fleet-pan-menu summary, .fleet-pan-menu[open] > div, .fleet-map-message, .fleet-map-selection,
.fleet-driver-card + .fleet-driver-card, .fleet-directory-note, .fleet-directory-pager, .fleet-page-button,
.fleet-driver-detail, .fleet-rides-heading, .fleet-ride-card, .fleet-rides-limit { border-color: var(--line); }
.fleet-search:focus-within, .fleet-metric:hover { border-color: var(--app-control-line); }
.fleet-metric[aria-pressed="true"], .fleet-driver-card.selected { background: var(--app-gold-soft); border-color: var(--app-gold-line); }
.fleet-search input, .fleet-toolbar > select, .fleet-map-label, .fleet-map-button, .fleet-pan-menu summary,
.fleet-pan-menu button, .fleet-page-button, .fleet-detail-actions .button, .fleet-driver-detail dd { color: var(--ink); }
.fleet-search > .fleet-icon, .fleet-rail-heading > svg, .fleet-ride-card > .fleet-icon, .fleet-directory-note .fleet-icon,
.fleet-map-message > .fleet-icon, .fleet-map-attribution { color: var(--muted); }
/* Keep the map sized when the production CSP blocks inline custom properties. */
.fleet-map-canvas { height: var(--map-height, 430px); }
@media (max-width: 560px) {
  .fleet-map-canvas { height: var(--map-height, 330px); }
}
.fleet-map-label, .fleet-map-button, .fleet-zoom, .fleet-map-message, .fleet-map-selection { box-shadow: var(--workspace-shadow); }
.fleet-map-button:hover, .fleet-pan-menu summary:hover, .fleet-pan-menu button:hover, .fleet-page-button:hover:not(:disabled),
.fleet-driver-card:hover, .fleet-ride-card:hover { background: var(--app-gold-soft); }
.fleet-view-switch, .fleet-map-canvas, .fleet-layer-note, .fleet-driver-detail, .fleet-directory-note { background: var(--app-subtle); }
.fleet-view-switch button { color: var(--muted); }
.fleet-view-switch button[aria-selected="true"], .fleet-city-chip, .fleet-ride-icon, .fleet-selection-icon {
  background: var(--app-gold-soft);
  border-color: var(--app-gold-line);
  color: var(--app-gold-text);
}
.fleet-driver-avatar, .fleet-rail-heading h2 span, .fleet-rides-heading h2 span, .fleet-rides-empty > span:first-child {
  background: var(--app-gold-soft);
  color: var(--app-gold-text);
}
.fleet-card-vehicle { filter: drop-shadow(0 2px 3px #080d2326); }
.fleet-driver-list { scrollbar-color: var(--app-control-line) transparent; }

.fleet-driver-status { background: var(--app-subtle); color: var(--muted); border-color: var(--line); }
.fleet-driver-status.available, .fleet-monitor-state { background: var(--app-available-bg); color: var(--app-available); border-color: var(--app-available-line); }
.fleet-driver-status.busy, .fleet-driver-status.stale { background: var(--app-gold-soft); color: var(--app-gold-text); border-color: var(--app-gold-line); }
.fleet-driver-info > small.fresh { color: var(--app-available); }
.fleet-metric-label i, .fleet-map-legend .offline, .fleet-driver-avatar > i { background: var(--app-offline); }
.fleet-metric.available .fleet-metric-label i, .fleet-map-legend .available, .fleet-driver-avatar > i.available,
.fleet-auto i, .fleet-monitor-state i { background: var(--app-available); }
.fleet-metric.busy .fleet-metric-label i, .fleet-map-legend .busy, .fleet-driver-avatar > i.busy,
.fleet-driver-avatar > i.stale { background: var(--app-gold-text); }
.fleet-metric.rides .fleet-metric-label i { background: var(--ink); }

.fleet-zone-outline { fill: var(--yellow); stroke: var(--app-gold-text); }
.fleet-zone-centre { fill: var(--app-gold-text); }
.fleet-zone text, .fleet-vehicle-marker text { fill: var(--ink); }
.fleet-marker-halo { fill: var(--yellow); }
.fleet-marker-ring { stroke: var(--app-gold-text); }
.fleet-marker-status { fill: var(--app-offline); }
.fleet-vehicle-marker[data-availability="available"]:not(.old) .fleet-marker-status { fill: var(--app-available); }
.fleet-vehicle-marker[data-availability="busy"]:not(.old) .fleet-marker-status { fill: var(--app-gold-text); }
.fleet-marker-label { stroke: var(--app-control-line); }
.fleet-vehicle-marker.selected .fleet-marker-label { stroke: var(--app-gold-text); }
.fleet-north path:first-child { fill: var(--ink); }
.fleet-north path:last-child { fill: var(--app-offline); }
#fleetSurface stop:first-child { stop-color: var(--paper); }
#fleetSurface stop:last-child { stop-color: var(--app-subtle); }
#fleetGrid path { stroke: var(--app-control-line); }

.integration-intro, .rental-service-banner, .rental-service-banner.is-on, .rental-guide, .rental-availability-setting {
  background: var(--app-gold-soft);
  border-color: var(--app-gold-line);
}
.integration-setup, .rental-editor-package > summary { background: var(--app-subtle); }
.integration-setup, .rental-package-card, .rental-service-icon, .rental-inclusions, .rental-guide-note,
.rental-empty, .rental-editor-package, .rental-savebar, .rental-booking-list > article { border-color: var(--line); }
.integration-summary strong, .rental-service-banner h2, .rental-summary-strip strong, .rental-section-heading h2,
.rental-package-card h3, .rental-package-price, .rental-inclusions strong, .rental-extra-rates strong, .rental-guide h2,
.rental-guide li strong, .rental-empty h3, .rental-availability-setting strong, .rental-editor-package summary strong,
.rental-editor label, .rental-field-group h4, .rental-booking-list p { color: var(--ink); }
.integration-intro p, .integration-summary small, .integration-description, .integration-capability small,
.integration-check, .integration-check small, .integration-setup, .rental-eyebrow, .rental-service-banner p,
.rental-service-note, .rental-summary-strip, .rental-section-heading p, .rental-category, .rental-package-price > span,
.rental-inclusions > span, .rental-inclusions svg, .rental-extra-rates span, .rental-guide li p, .rental-guide-note,
.rental-empty p, .rental-availability-setting p, .rental-editor-intro, .rental-editor-number,
.rental-editor-package summary small, .rental-chevron, .rental-field-group p, .rental-audit-note p,
.rental-savebar > span, .rental-booking-list small, .rental-policy p { color: var(--muted); }
.integration-summary strong span, .rental-service-icon, .rental-policy-details summary { color: var(--app-gold-text); }
.rental-policy-details p { color: var(--muted) !important; }
.rental-state { color: var(--muted); background: var(--app-subtle); }
.rental-state i { background: var(--app-offline); }
.rental-state.is-on { color: var(--app-available); background: var(--app-available-bg); }
.rental-state.is-on i { background: var(--app-available); }
.rental-card-edit { border-color: var(--line) !important; background: var(--app-subtle) !important; }
.rental-guide li > span { background: var(--surface); color: var(--app-gold-text); border-color: var(--app-gold-line); }
.rental-switch > span { background: var(--app-offline); }
.rental-switch input:checked + span { background: var(--ink); }
.rental-savebar { background: var(--paper); }
