/* Theme switch (2026-09-30). Companion to layout-switch.js; look only. The Classic rules are inside html.agwtf-classic, so in
   Modern they do nothing; the Theme picker rules (.th) style the choice in the Setting Panel in every theme. Rollback: delete the layout-switch.css line in index.html.
   1. The design variables. The Apple layer is off in classic, and with it its --ap-* variables, which the features that stay on
      (manual Meta trade, alerts, destination tabs) read. Same values as apple-theme.css, so those features look the same.
   2. The hover tip of the ticket switches is a page element styled by ticket-toggles.css (off in classic): keep it hidden.
   3. "Unified colours" belongs to the Modern look: its row is hidden while Classic is on. */
html.agwtf-classic {
  --ap-blue: #007aff; --ap-blue-press: #0062cc; --ap-green: #34c759; --ap-red: #ff3b30; --ap-orange: #ff9500;
  --ap-bg: #f5f5f7; --ap-surface: #ffffff; --ap-surface-2: #fafafc;
  --ap-fill: rgba(120, 120, 128, .12); --ap-fill-hover: rgba(120, 120, 128, .18); --ap-hair: rgba(60, 60, 67, .14);
  --ap-text: #1d1d1f; --ap-text-2: #6e6e73; --ap-glass: rgba(255, 255, 255, .72);
  --ap-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .05);
  --ap-shadow-2: 0 4px 12px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .10);
  --ap-shadow-3: 0 12px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
  --ap-ease: cubic-bezier(.2, .8, .2, 1);
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ap-dur-press: .12s; --ap-dur-state: .2s; --ap-dur-panel: .3s;
}
html.agwtf-classic body.dark,
html.agwtf-classic body.theme-black,
html.agwtf-classic body.theme-dark {
  --ap-bg: #000000; --ap-surface: #1c1c1e; --ap-surface-2: #242426;
  --ap-fill: rgba(120, 120, 128, .28); --ap-fill-hover: rgba(120, 120, 128, .38); --ap-hair: rgba(84, 84, 88, .55);
  --ap-text: #f5f5f7; --ap-text-2: #a1a1a6; --ap-glass: rgba(28, 28, 30, .72); --ap-blue: #0a84ff;
  --ap-shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --ap-shadow-2: 0 4px 12px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
}
html.agwtf-classic .tt-tip { display: none !important; }
html.agwtf-classic .ap-uni { display: none !important; }

/* ---- Theme picker in the Setting Panel (Appearance): Modern | Classic | Terminal, and the Terminal options ---- */
.th { margin: 6px 0 4px; padding: 0 4px; }
.th-label { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--ap-text-2, #6e6e73); }
.th-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--ap-fill, rgba(120, 120, 128, .12)); }
.th-opt { flex: 1 1 0; min-width: 0; height: 28px; margin: 0; padding: 0 6px; border: 0; border-radius: 8px; background: transparent;
  font: 500 13px/1 var(--ap-font, -apple-system, system-ui, sans-serif); color: var(--ap-text-2, #6e6e73); cursor: pointer; }
.th-opt:hover { color: var(--ap-text, #1d1d1f); }
.th-opt[aria-checked="true"] { color: var(--ap-text, #1d1d1f); background: var(--ap-surface, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 3px 8px rgba(0, 0, 0, .06); }
.th-opt:focus-visible { outline: 2px solid var(--ap-blue, #4f46e5); outline-offset: 1px; }
.th-desc { display: block; margin: 6px 0 2px; font-size: 11px; line-height: 1.3; color: var(--ap-text-2, #6e6e73); }
.th-terminal { margin-top: 10px; }
.th-terminal[hidden] { display: none !important; }
.th-terminal .th-seg { margin-bottom: 6px; }

/* ---- Header icon buttons, centred (2026-10-01). The app's compiled style makes these buttons 36px but leaves the 12px padding of a
   48px Material button, so the 24px icon sat low and to the right of its round hover circle. Look only; every theme.
   Rollback: delete this block (and put layout-switch.css?v=2 back in index.html). ---- */
.header-topbar .action-btn.mat-mdc-icon-button:not(.profile-btn) { padding: 6px; }
.header-topbar .action-btn.mat-mdc-icon-button { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
