/* Classic uses each component's existing fallback colors. Both themes share the same UI. */
:root[data-pad-active] [data-pad-focus]:focus { outline: 3px solid #ffe09b !important; outline-offset: -3px; }
:root[data-pad-active] #walk-interact kbd { display:none; }
:root[data-pad-active] :is(#walk-interact,#taxi-driver-action,#flight-land,#drive-delivery-action):enabled::after {
  content:"A / ×"; display:inline-block; padding:1px 4px; border-radius:4px; background:#242829; color:#ffe09b;
  font:600 11px/1.25 system-ui,sans-serif; pointer-events:none;
}
:root[data-pad-active] :is(#walk-interact,#taxi-driver-action):enabled::after {
  position:absolute; top:0; right:0;
}
:root[data-ui-theme="graphite"] {
  --ui-page: #171717;
  --ui-panel: #212121;
  --ui-raised: #2b2b2b;
  --ui-hover: #343434;
  --ui-hud: rgba(33, 33, 33, .94);
  --ui-text: #f3f3f3;
  --ui-muted: #a3a3a3;
  --ui-icon: #d2d2d2;
  --ui-border: #3a3a3a;
  --ui-primary: #f3f3f3;
  --ui-primary-hover: #dedede;
  --ui-primary-ink: #171717;
  --ui-selected: #302d26;
  --ui-selected-border: #b9a16f;
  --ui-selected-mark: inset 2px 0 #d2b77b;
  --ui-backdrop: #0008;
  --ui-heading-font: "Segoe UI", Inter, system-ui, sans-serif;
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --panel: var(--ui-panel);
  --hud: var(--ui-hud);
  --line: var(--ui-border);
}
.ui-theme-picker {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--ui-border, #c2ae7655);
  border-radius: 12px;
}
.ui-theme-picker > legend { padding: 0 5px; color: var(--ui-muted, #b9b9ac); font-size: 12px; }
.ui-theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}
.ui-theme-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--ui-border, #c2ae7655);
  border-radius: 9px;
  background: var(--ui-raised, #2a3d34);
  color: var(--ui-text, #eeecdb);
  font: inherit;
  font-size: 12px;
  text-align: left;
  touch-action: manipulation;
}
.ui-theme-option:hover:not([aria-pressed="true"]) { background: var(--ui-hover, #35483e); }
.ui-theme-option[aria-pressed="true"] { border-color: var(--ui-selected-border, #c5ac74); background: var(--ui-selected, #d2b77b14); }
.ui-theme-option:focus-visible { outline: 2px solid #d2b77b; outline-offset: 3px; }
.ui-theme-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.ui-theme-swatch { width: 20px; height: 20px; border: 1px solid #ffffff40; border-radius: 50%; }
.ui-theme-swatch[data-ui-swatch="classic"] { background: linear-gradient(135deg, #2a3d34 65%, #d2b77b 65%); }
.ui-theme-swatch[data-ui-swatch="graphite"] { background: linear-gradient(135deg, #212121 65%, #f3f3f3 65%); }
.ui-theme-check { visibility: hidden; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-theme-option[aria-pressed="true"] .ui-theme-check { visibility: visible; }
