/* Modernized SimCity 2000 Tabletop Studio (`priv/static/styles.css`)
   Machined titanium-slate bevels, zero-scroll 1280x800 desktop frame,
   >=44px tactile controls, T·S·G vertical demand bars, animated solar phase,
   and responsive 390x844 mobile stacking. */

:root {
  --bg-space-0: #090e1d;
  --bg-space-1: #111b36;
  --metal-base: #262e3d;
  --metal-raised: #333e52;
  --metal-well: #151a25;
  --bevel-hi: rgba(255, 255, 255, 0.22);
  --bevel-lo: rgba(0, 0, 0, 0.65);
  --ink-hi: #f1f5f9;
  --ink-mid: #cbd5e1;
  --ink-dim: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-danger: #f87171;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--ink-hi);
  background:
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(148, 163, 184, 0.45), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(148, 163, 184, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 88% 76%, rgba(125, 211, 252, 0.35), transparent),
    radial-gradient(1px 1px at 36% 88%, rgba(148, 163, 184, 0.35), transparent),
    linear-gradient(155deg, var(--bg-space-0) 0%, var(--bg-space-1) 60%, #17203f 100%);
  user-select: none;
}

#app {
  width: 100%;
  height: 100%;
}

/* Global >=44px interactive touch & click ergonomics */
button,
select {
  min-height: 44px;
  font-family: var(--font-ui);
}

/* Loading Screen */
.sc-loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  padding: 20px;
}

.sc-loading-box {
  background: var(--metal-base);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  border-radius: 6px;
  padding: 24px 28px;
  max-width: 520px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
}

.sc-loading-box h1 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.sc-loading-box p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mid);
}

/* Main 2-Column SimCity 2000 Desktop Shell */
.sc-desktop {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  height: 100vh;
  padding: 8px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   LEFT VERTICAL TOOL PALETTE
   --------------------------------------------------------------------------- */
.sc-palette {
  display: flex;
  flex-direction: column;
  background: var(--metal-base);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  height: fit-content;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
}

.sc-palette-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1b2436, #2b3954, #1b2436);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 4px 6px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
}

.sc-cap-dots {
  width: 12px;
  height: 6px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 4px 3px;
}

.sc-groove {
  height: 2px;
  margin: 6px 0;
  background: var(--bevel-lo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.sc-tool-grid {
  display: grid;
  gap: 4px;
}

.sc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.sc-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tactile SC2000 Beveled Icon Tile */
.sc-tool-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 3px 2px;
  background: linear-gradient(180deg, #394459 0%, #2c3546 100%);
  color: var(--ink-hi);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.65);
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.sc-tool-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #46536d 0%, #354055 100%);
}

.sc-tool-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.sc-tool-btn:active:not(:disabled),
.sc-tool-btn.sc-tool-active {
  background: linear-gradient(180deg, #1a2230 0%, #232e42 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.72);
  border-left: 2px solid rgba(0, 0, 0, 0.65);
  border-right: 2px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.55);
}

.sc-tool-btn.sc-permit-on {
  background: linear-gradient(180deg, #13382e 0%, #194a3c 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.7);
  border-left: 2px solid rgba(0, 0, 0, 0.65);
  border-right: 2px solid rgba(52, 211, 153, 0.45);
  border-bottom: 2px solid rgba(52, 211, 153, 0.45);
  box-shadow: inset 0 0 8px rgba(52, 211, 153, 0.35);
}

.sc-tool-btn.sc-permit-over {
  border-color: rgba(251, 191, 36, 0.35);
}

.sc-permit-led {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.sc-permit-on .sc-permit-led {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.sc-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sc-mini-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
  margin-top: 2px;
  line-height: 1;
}

/* Lenses + T-S-G Demand Meter Row */
.sc-lens-and-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 4px;
}

.sc-lens-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-lens-btn {
  flex-direction: row;
  gap: 6px;
  min-height: 44px;
  padding: 0 6px;
}

.sc-lens-btn .sc-mini-tag {
  margin-top: 0;
  font-size: 10px;
}

.sc-tsg-well {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--metal-well);
  border-top: 2px solid rgba(0, 0, 0, 0.75);
  border-left: 2px solid rgba(0, 0, 0, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 6px 4px 4px;
}

.sc-tsg-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  flex: 1;
  min-height: 92px;
  align-items: end;
}

.sc-tsg-col {
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sc-tsg-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
  transition: height 0.35s ease, background 0.3s ease;
}

.sc-fill-t {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.sc-fill-s {
  background: linear-gradient(180deg, #34d399, #059669);
}

.sc-fill-g {
  background: linear-gradient(180deg, #22d3ee, #0891b2);
}

.sc-fill-warn {
  background: linear-gradient(180deg, #f87171, #dc2626);
}

.sc-tsg-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  color: var(--ink-mid);
  margin-top: 4px;
}

/* Campaign Act Tiles */
.sc-act-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 2px;
  background: linear-gradient(180deg, #394459, #2a3344);
  color: var(--ink-hi);
  border-top: 2px solid rgba(255, 255, 255, 0.22);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  border-right: 2px solid rgba(0, 0, 0, 0.65);
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  cursor: pointer;
}

.sc-act-roman {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.sc-act-mini:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.sc-act-mini.sc-tool-active {
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.sc-act-mini.sc-act-passed {
  border-bottom-color: var(--accent-emerald);
}

/* ---------------------------------------------------------------------------
   RIGHT WORKSPACE: TOP STATUS DECK + MAIN 3D CITY WINDOW
   --------------------------------------------------------------------------- */
.sc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  height: calc(100vh - 16px);
  min-width: 0;
  overflow: hidden;
}

.sc-top-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sc-topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

/* SC2000 Contextual Status Pod + Animated Solar Phase Tile */
.sc-status-pod {
  display: flex;
  align-items: stretch;
  background: var(--metal-base);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  border-radius: 6px;
  padding: 4px;
  gap: 6px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.sc-status-lines {
  flex: 1;
  min-width: 0;
  background: var(--metal-well);
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(0, 0, 0, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.sc-tool-readout {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-ticker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sc-epistemic-chip {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.48);
  color: #fde68a;
}

.sc-alert-ticker {
  font-size: 11px;
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animated Rush-Hour Sun/Sky Tile */
.sc-sun-tile {
  position: relative;
  width: 62px;
  min-height: 44px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #38bdf8 0%, #bae6fd 72%, #365314 73%, #1a2e05 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3px;
  flex-shrink: 0;
}

.sc-sun-tile.sc-sky-gold {
  background: linear-gradient(180deg, #0284c7 0%, #fdba74 72%, #292524 73%, #1c1917 100%);
}

.sc-sun-tile.sc-sky-dusk {
  background: linear-gradient(180deg, #1e1b4b 0%, #7c2d12 72%, #0f172a 73%, #020617 100%);
}

.sc-sun-orb {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fef08a;
  box-shadow: 0 0 10px #facc15;
  transition: top 0.2s ease, background-color 0.2s ease;
}

.sc-sky-dusk .sc-sun-orb {
  background: #fb923c;
  box-shadow: 0 0 10px #ea580c;
}

.sc-sun-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

/* Living Clock Transport & Simulate Pod */
.sc-transport-pod {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--metal-base);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  border-radius: 6px;
  padding: 4px 6px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.sc-seg-pair,
.sc-speed-pair {
  display: flex;
  background: var(--metal-well);
  padding: 2px;
  border-radius: 4px;
  gap: 2px;
}

.sc-seg-btn {
  min-height: 44px;
  padding: 0 9px;
  border: none;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-mid);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sc-seg-btn:hover:not(:disabled) {
  color: #fff;
}

.sc-seg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sc-seg-btn.sc-seg-active {
  background: #334155;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sc-ctrl-btn {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #394459 0%, #2a3344 100%);
  color: var(--ink-hi);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sc-ctrl-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.sc-ctrl-btn.sc-ctrl-on {
  background: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 100%);
  border-color: rgba(147, 197, 253, 0.55);
  color: #fff;
}

.sc-sim-cta {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  border-top: 2px solid #6ee7b7;
  border-left: 2px solid #6ee7b7;
  border-right: 2px solid #064e3b;
  border-bottom: 2px solid #064e3b;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #022c22;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.sc-sim-cta:hover:not(:disabled) {
  filter: brightness(1.08);
}

.sc-sim-cta:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Row 2: Camera Bookmark Strip + SC2000 Menus + Seed & Solver Toggles */
.sc-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--metal-base);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  border-radius: 6px;
  padding: 3px 6px;
  min-width: 0;
}

.sc-bookmark-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.sc-bm-btn {
  min-height: 44px;
  padding: 0 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #333e52 0%, #252e3f 100%);
  color: var(--ink-mid);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.sc-bm-btn:hover {
  background: #3e4c64;
  color: #fff;
}

.sc-seed-pod {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sc-seed-select {
  min-height: 44px;
  max-width: 176px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--metal-well);
  color: var(--ink-hi);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11.5px;
  font-weight: 600;
}

.sc-pack-select {
  max-width: 220px;
  border-color: rgba(56, 189, 248, 0.62);
  background: linear-gradient(180deg, rgba(14, 34, 58, 0.96), rgba(9, 20, 38, 0.98));
  color: #e0f2fe;
}

.sc-chk-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--metal-well);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mid);
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   MAIN WINDOWED 3D CITY STAGE (SimCity 2000 Window Chrome)
   --------------------------------------------------------------------------- */
.sc-city-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 30px minmax(0, 1fr) 30px;
  min-width: 0;
  min-height: 0;
  background: var(--metal-base);
  border-top: 2px solid var(--bevel-hi);
  border-left: 2px solid var(--bevel-hi);
  border-right: 2px solid var(--bevel-lo);
  border-bottom: 2px solid var(--bevel-lo);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
}

.sc-win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #3b475e 0%, #283244 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.65);
  font-size: 11.5px;
  min-width: 0;
}

.sc-win-left,
.sc-win-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sc-win-left {
  flex: 1;
}

.sc-win-box {
  color: var(--ink-dim);
  font-size: 11px;
  flex-shrink: 0;
}

.sc-win-title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-win-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mid);
  white-space: nowrap;
}

.sc-win-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.sc-score-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.32), rgba(180, 83, 9, 0.38));
  border: 1px solid rgba(251, 191, 36, 0.75);
  color: #fef3c7;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
}

.sc-approval-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #f8fafc;
}

.sc-grade-a {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(52, 211, 153, 0.72);
  color: #d1fae5;
}

.sc-grade-b {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.65);
  color: #e0f2fe;
}

.sc-grade-c {
  background: rgba(251, 191, 36, 0.24);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fef3c7;
}

.sc-grade-warn {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(248, 113, 113, 0.75);
  color: #fee2e2;
}

.sc-score-bonus-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.32);
  border: 1px solid #34d399;
  color: #ecfdf5;
}

.sc-hud-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.sc-score-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.sc-score-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.sc-score-big {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: #fde68a;
}

.sc-canvas-body {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #0f172a;
  overflow: hidden;
}

.sc-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Bottom Window Scrollbar -> Timeline Scrubber */
.sc-win-bottombar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #202736;
  border-top: 2px solid rgba(0, 0, 0, 0.6);
}

.sc-time-edge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

.sc-timeline-slider {
  flex: 1;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  height: 8px;
}

/* ---------------------------------------------------------------------------
   FLOATING IN-MAP SUB-WINDOWS (Mission HUD, Pick Query, Sandbox, Engine Room)
   --------------------------------------------------------------------------- */
.sc-objectives-hud {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 326px;
  max-height: calc(100% - 20px);
  overflow-y: auto;
  background: rgba(16, 23, 38, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 2px solid rgba(0, 0, 0, 0.75);
  border-bottom: 2px solid rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 10;
}

.sc-subwindow {
  position: absolute;
  background: rgba(16, 23, 38, 0.94);
  backdrop-filter: blur(12px);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.8);
  border-bottom: 2px solid rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  z-index: 16;
}

.sc-subwin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 2px 10px;
  background: linear-gradient(90deg, #1e293b, #334155);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  border-radius: 5px 5px 0 0;
}

.sc-win-close-btn {
  min-height: 44px;
  min-width: 52px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--ink-hi);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sc-win-close-btn:hover {
  background: #334155;
}

.sc-obj-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-brief-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-brief-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-act-heading {
  font-size: 12.5px;
  color: #f8fafc;
}

.sc-budget-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.sc-story-copy {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--ink-mid);
}

.sc-cond-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-cond-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-mid);
}

.sc-debrief-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-debrief-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-debrief-title {
  font-size: 12px;
  color: #fff;
}

.sc-debrief-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
}

.sc-obj-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sc-obj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.78);
  border-left: 3px solid #64748b;
  font-size: 11.5px;
}

.sc-obj-row.sc-obj-pass {
  border-left-color: var(--accent-emerald);
}

.sc-obj-row.sc-obj-fail {
  border-left-color: var(--accent-danger);
  background: rgba(69, 26, 35, 0.68);
}

.sc-obj-main {
  min-width: 0;
  flex: 1;
}

.sc-obj-label {
  font-weight: 700;
  color: #f8fafc;
  display: block;
}

.sc-obj-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mid);
  display: block;
  margin-top: 2px;
}

.sc-fly-mini {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 9px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(14, 116, 144, 0.4);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.sc-fly-mini:hover {
  background: rgba(14, 116, 144, 0.7);
}

.sc-obj-footer {
  margin-top: 4px;
}

.sc-advance-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #6ee7b7;
  background: linear-gradient(180deg, #10b981, #047857);
  color: #022c22;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

.sc-advance-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Pick Inspector, Sandbox & Engine Room Positions */
.sc-pick-pos {
  bottom: 10px;
  left: 10px;
  width: 300px;
}

.sc-sandbox-pos {
  bottom: 10px;
  left: 320px;
  width: 280px;
}

.sc-engine-pos {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 94%);
  max-height: 86%;
  overflow-y: auto;
  z-index: 30;
}

.sc-subwin-content {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-mid);
}

.sc-subwin-content strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.sc-subwin-content p {
  margin: 0;
}

.sc-sandbox-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-sandbox-chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-hi);
  cursor: pointer;
}

.sc-slider-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.sc-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent-emerald);
}

/* Error & Simulating Overlays */
.sc-error-float {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: min(520px, calc(100% - 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.95);
  border: 1px solid #f87171;
  color: #fee2e2;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  z-index: 35;
}

.sc-sim-toast {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 12px;
  z-index: 25;
}

.sc-sim-sub {
  font-size: 11px;
  color: var(--ink-dim);
}

.sc-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: sc-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes sc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Engine Room Telemetry Tables */
.sc-engine-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-engine-sub {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 10px;
}

.sc-telemetry-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 4px;
}

.sc-telemetry-table th,
.sc-telemetry-table td {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-telemetry-table th {
  color: var(--ink-dim);
  font-weight: 700;
}

.sc-cell-danger {
  color: var(--accent-danger);
  font-weight: 800;
}

.sc-mono-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-dim);
  margin: 4px 0 8px !important;
  word-break: break-all;
}

.sc-code-box {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: #090d16;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: auto;
  color: #a7f3d0;
  margin: 8px 0 0;
}

/* ---------------------------------------------------------------------------
   CLICK-ON-MAP TOOLS, TREASURY, INCIDENTS, FOLLOW-CAM, DEALS, ADVISORS & NEWS
   --------------------------------------------------------------------------- */
.sc-tool-glyph {
  font-size: 16px;
  line-height: 1;
}

.sc-section-micro {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 4px;
}

.sc-cursor-inspect {
  cursor: pointer;
}

.sc-treasury-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.65);
  color: #a7f3d0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}

.sc-menu-warn {
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fde68a !important;
}

.sc-menu-cash {
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #a7f3d0 !important;
}

@keyframes sc-osint-glow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.45), inset 0 0 4px rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.72);
  }
  50% {
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.8), inset 0 0 8px rgba(16, 185, 129, 0.35);
    border-color: #6ee7b7;
  }
}

.sc-menu-osint {
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%) !important;
  border-color: rgba(52, 211, 153, 0.78) !important;
  color: #a7f3d0 !important;
  animation: sc-osint-glow 2.4s ease-in-out infinite;
}

.sc-menu-osint:hover {
  background: linear-gradient(180deg, #047857 0%, #064e3b 100%) !important;
  color: #ecfdf5 !important;
}

.sc-weather-pill {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  border: 1px solid rgba(52, 211, 153, 0.68);
  color: #ecfdf5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.sc-weather-pill:hover {
  background: linear-gradient(180deg, #047857 0%, #064e3b 100%);
  border-color: #6ee7b7;
}

.sc-wx-temp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: #ecfdf5;
  line-height: 1.1;
  white-space: nowrap;
}

.sc-wx-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  line-height: 1;
}

.sc-osint-modal {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72), 0 0 24px rgba(16, 185, 129, 0.24);
}

.sc-osint-bar {
  background: linear-gradient(90deg, #022c22, #065f46);
  border-bottom: 1px solid rgba(110, 231, 183, 0.35);
  color: #d1fae5;
}

.sc-osint-lead {
  font-size: 11.5px;
  color: #a7f3d0;
}

.sc-osint-wx-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.52), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(52, 211, 153, 0.55);
}

.sc-osint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-left: 3px solid #10b981;
}

.sc-osint-card-active {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.48), rgba(15, 23, 42, 0.88));
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.sc-osint-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.sc-osint-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.sc-osint-open {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #a7f3d0;
}

.sc-osint-soon {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid #fbbf24;
  color: #fde68a;
}

.sc-osint-event {
  background: rgba(56, 189, 248, 0.24);
  border: 1px solid #38bdf8;
  color: #bae6fd;
}

.sc-osint-src {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #6ee7b7;
}

.sc-osint-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.sc-osint-btn {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 4px;
  border-top: 2px solid #a7f3d0;
  border-left: 2px solid #a7f3d0;
  border-right: 2px solid #064e3b;
  border-bottom: 2px solid #064e3b;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #022c22;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.sc-osint-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.sc-osint-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sc-osint-pick {
  width: 340px;
  border-color: #34d399;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 18px rgba(16, 185, 129, 0.3);
}

.sc-osint-pick-summary {
  margin-top: 5px !important;
  font-size: 11.5px;
  color: #d1fae5;
}

/* Tactile Arcade Controls, Boomtown Gauges, Live Wire & Objective Progress Meters */
.sc-bar-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-deals-bar {
  background: linear-gradient(90deg, #422006, #78350f);
  border-bottom: 1px solid rgba(251, 191, 36, 0.4);
  color: #fef3c7;
}

.sc-modal-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sc-tab-pill {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.78);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.sc-tab-pill:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
}

.sc-tab-pill-active {
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.85), rgba(6, 78, 59, 0.92));
  border-color: #34d399;
  color: #ecfdf5;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.sc-boom-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sc-boom-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.sc-boom-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 900;
}

.sc-val-cash {
  color: #6ee7b7;
}

.sc-val-rush {
  color: #fde68a;
}

.sc-val-ev {
  color: #7dd3fc;
}

.sc-impact-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 4px 0 5px;
}

.sc-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.sc-chip-cash {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.65);
  color: #a7f3d0;
}

.sc-chip-rush {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fde68a;
}

.sc-chip-ev {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.65);
  color: #bae6fd;
}

.sc-deal-card-stamped {
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.38), rgba(15, 23, 42, 0.88));
  border-color: #fbbf24;
  border-left: 3px solid #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.22);
}

.sc-stamp-btn {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 4px;
  border: 1.5px solid #fde68a;
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  color: #fef3c7;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 10px rgba(245, 158, 11, 0.28);
}

.sc-stamp-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.sc-live-wire-box {
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(12, 20, 36, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-wire-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sc-wire-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.65);
  border-left: 3px solid #38bdf8;
}

.sc-arcade-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.sc-arcade-btn {
  min-height: 44px;
  padding: 0 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  color: #f8fafc;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-left: 2px solid rgba(255, 255, 255, 0.22);
  border-right: 2px solid rgba(0, 0, 0, 0.65);
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
}

.sc-arcade-btn:hover {
  filter: brightness(1.12);
}

.sc-arc-chaos {
  background: linear-gradient(180deg, #b45309, #7c2d12);
  color: #fef3c7;
}

.sc-arc-ride {
  background: linear-gradient(180deg, #0369a1, #1e3a8a);
  color: #e0f2fe;
}

.sc-arc-live {
  background: linear-gradient(180deg, #059669, #064e3b);
  color: #ecfdf5;
}

.sc-arc-share {
  background: linear-gradient(180deg, #7c3aed, #4c1d95);
  color: #f5f3ff;
}

.sc-obj-gauge-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  margin: 4px 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-obj-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.sc-gauge-pass {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.sc-gauge-fail {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.sc-fix-pulse {
  border-color: #fbbf24 !important;
  background: linear-gradient(180deg, #b45309, #78350f) !important;
  color: #fef3c7 !important;
}

@keyframes sc-siren-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.75), inset 0 0 6px rgba(239, 68, 68, 0.5);
    border-color: #f87171;
  }
  50% {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.85), inset 0 0 6px rgba(59, 130, 246, 0.55);
    border-color: #60a5fa;
  }
}

.sc-police-pulse {
  animation: sc-siren-pulse 0.9s ease-in-out infinite;
  color: #fff !important;
}

.sc-incident-banner {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: min(560px, calc(100% - 350px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(30, 20, 14, 0.94);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  z-index: 22;
}

.sc-incident-shifted {
  left: 452px;
  max-width: min(440px, calc(100% - 778px));
}

.sc-inc-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: #fef3c7;
  min-width: 0;
}

.sc-inc-copy span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fde68a;
}

.sc-inc-actions,
.sc-pick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-pick-actions {
  margin-top: 8px;
}

.sc-pd-btn {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #93c5fd;
  background: linear-gradient(180deg, #dc2626 0%, #1d4ed8 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sc-pd-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.sc-follow-card {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  z-index: 24;
  border-color: rgba(56, 189, 248, 0.7);
}

.sc-driver-quote {
  margin-top: 6px !important;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  border-left: 3px solid var(--accent-cyan);
  color: #e0f2fe;
  font-style: italic;
  font-size: 12px;
}

.sc-modal-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 94%);
  max-height: 86%;
  overflow-y: auto;
  z-index: 28;
}

.sc-side-dock {
  top: 10px;
  width: min(432px, calc(100% - 344px));
  max-height: calc(100% - 20px);
  overflow-y: auto;
  z-index: 29;
}

.sc-dock-left {
  left: 10px;
  right: auto;
}

.sc-dock-right {
  right: 10px;
  left: auto;
}

.sc-dock-collapsed .sc-subwin-content,
.sc-dock-collapsed .sc-paper-body {
  display: none !important;
}

.sc-draggable-bar {
  cursor: grab;
  user-select: none;
}

.sc-draggable-bar:active {
  cursor: grabbing;
}

.sc-dock-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.sc-dock-btn:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(56, 189, 248, 0.75);
}

.sc-disaster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sc-disaster-btn {
  min-height: 46px;
  padding: 0 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #3f2b1d 0%, #291c14 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.sc-disaster-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #573a26 0%, #3b271b 100%);
}

.sc-deal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.sc-deal-main {
  flex: 1;
  min-width: 0;
}

.sc-advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sc-advisor-card {
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.8);
  border-left: 3px solid var(--accent-emerald);
}

.sc-advisor-urgent {
  border-left-color: var(--accent-amber);
  background: rgba(45, 28, 18, 0.82);
}

/* Retro SimCity 2000 Broadsheet Newspaper ("The Corridor Chronicle") */
.sc-newspaper {
  background: #f4ecd8;
  color: #1c1917;
  border: 2px solid #44403c;
}

.sc-paper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 4px 12px;
  background: #292524;
  color: #f5f5f4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
}

.sc-paper-body {
  padding: 14px 18px 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: #1c1917;
}

.sc-paper-masthead {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-bottom: 3px double #292524;
  padding-bottom: 4px;
}

.sc-paper-dateline {
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: #57534e;
  border-bottom: 1px solid #78716c;
  padding: 3px 0;
  margin-bottom: 10px;
}

.sc-paper-headline {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
  color: #0c0a09;
}

.sc-paper-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #292524;
}

/* ---------------------------------------------------------------------------
   Historical Founding Time-Machine Intro Mode (USGS Topo Drape + 3D Growth)
   --------------------------------------------------------------------------- */
.sc-menu-history {
  border-color: rgba(251, 191, 36, 0.52);
  color: #fde68a;
  background: linear-gradient(180deg, #451a03 0%, #291408 100%);
}

.sc-menu-history:hover {
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  color: #fffbeb;
}

.sc-history-bar {
  background: linear-gradient(90deg, #3b1d0b, #78350f);
  border-bottom: 1px solid rgba(251, 191, 36, 0.42);
  color: #fef3c7;
}

.sc-history-era-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(253, 224, 71, 0.65);
  color: #fef08a;
}

.sc-history-story-card {
  top: 10px;
  left: 10px;
  width: 348px;
  max-height: calc(100% - 146px);
  overflow-y: auto;
  z-index: 23;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(24, 18, 13, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.72), 0 0 22px rgba(245, 158, 11, 0.2);
}

.sc-history-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-history-hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-history-big-year {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: #fde047;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.sc-history-title-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sc-history-title {
  font-size: 13px;
  line-height: 1.25;
  color: #fffbeb;
}

.sc-history-pop-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.sc-history-summary {
  margin: 0 !important;
  font-size: 11.5px;
  line-height: 1.42;
  color: #e7e5e4;
}

.sc-history-monuments {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
  padding-top: 6px;
}

.sc-history-subhead {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fcd34d;
}

.sc-history-monument-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.sc-history-mon-btn {
  min-height: 44px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid rgba(168, 162, 158, 0.35);
  background: rgba(41, 37, 36, 0.85);
  color: #a8a29e;
  font-family: var(--font-mono);
  font-size: 9.8px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
}

.sc-history-mon-btn:hover {
  border-color: #fde68a;
  color: #fffbeb;
}

.sc-history-mon-live {
  border-color: rgba(251, 191, 36, 0.65);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.62), rgba(41, 37, 36, 0.92));
  color: #fef3c7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.sc-history-usgs-card {
  top: 10px;
  right: 10px;
  width: 244px;
  max-height: calc(100% - 146px);
  overflow-y: auto;
  z-index: 23;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(24, 18, 13, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.72);
}

.sc-history-drape-btn {
  min-height: 44px;
  padding: 0 8px;
  font-size: 10px;
}

.sc-history-plate-wrap {
  padding: 8px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-history-photo-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
}

.sc-history-photo-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(251, 191, 36, 0.72);
  background: #1c1917;
}

.sc-history-photo-img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
  filter: sepia(0.14) contrast(1.05);
}

.sc-history-photo-cap {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.28;
  color: #fef3c7;
}

.sc-history-photo-credit {
  font-family: var(--font-mono);
  font-size: 8.8px;
  line-height: 1.2;
  color: #a8a29e;
}

.sc-history-plate-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  background: #d6c7a9;
}

.sc-history-plate-img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: cover;
  cursor: crosshair;
}

.sc-history-plate-caption {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.3;
  color: #fde68a;
}

.sc-history-share-btn {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 5px;
  border: 1.5px solid #c4b5fd;
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  color: #f5f3ff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.35);
}

.sc-history-share-btn:hover {
  filter: brightness(1.1);
}

.sc-history-scrubber-dock {
  bottom: 10px;
  left: 10px;
  right: 10px;
  width: auto;
  z-index: 24;
  padding: 8px 10px;
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(20, 16, 12, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.sc-history-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sc-history-play-btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1.5px solid #fcd34d;
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  color: #fffbeb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.sc-history-play-btn:hover {
  filter: brightness(1.1);
}

.sc-history-edge-yr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #fcd34d;
  flex-shrink: 0;
}

.sc-history-slider {
  flex: 1;
  min-width: 90px;
  accent-color: #f59e0b;
}

.sc-history-enter-btn {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 5px;
  border-top: 2px solid #a7f3d0;
  border-left: 2px solid #a7f3d0;
  border-right: 2px solid #064e3b;
  border-bottom: 2px solid #064e3b;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #022c22;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.38);
}

.sc-history-enter-btn:hover {
  filter: brightness(1.08);
}

.sc-history-era-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
}

.sc-history-era-btn {
  min-height: 44px;
  padding: 0 9px;
  border-radius: 5px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(41, 37, 36, 0.88);
  color: #d6d3d1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  flex: 1 0 auto;
}

.sc-history-era-btn:hover {
  border-color: #fcd34d;
  color: #fffbeb;
}

.sc-history-era-active {
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  border-color: #fde047;
  color: #fffbeb;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.sc-era-yr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
}

.sc-era-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
  line-height: 1.05;
}

/* ---------------------------------------------------------------------------
   "What's Going On in the City Now" HUD + Upper-Half Octalysis Share Studio
   --------------------------------------------------------------------------- */
.sc-menu-share {
  background: linear-gradient(180deg, #6d28d9 0%, #4c1d95 100%) !important;
  border-color: rgba(196, 181, 253, 0.75) !important;
  color: #f5f3ff !important;
}

.sc-menu-share:hover {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%) !important;
  color: #ffffff !important;
}

.sc-challenger-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.55), rgba(30, 41, 59, 0.92));
  border: 1.5px solid #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.sc-challenger-won {
  background: linear-gradient(90deg, rgba(6, 95, 70, 0.65), rgba(30, 41, 59, 0.92));
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.sc-challenger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sc-challenger-head strong {
  font-size: 11px;
  color: #fef3c7;
}

.sc-challenger-meta {
  font-family: var(--font-mono);
  font-size: 9.8px;
  line-height: 1.35;
  color: #e2e8f0;
}

.sc-city-now-hud {
  width: 356px;
  border-color: rgba(52, 211, 153, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.68), 0 0 22px rgba(16, 185, 129, 0.22);
}

.sc-city-now-bar {
  background: linear-gradient(90deg, #022c22, #047857);
  border-bottom: 1px solid rgba(110, 231, 183, 0.45);
  color: #ecfdf5;
}

.sc-city-now-wx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(6, 78, 59, 0.48);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.sc-city-now-wx-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sc-city-now-wx-copy strong {
  font-size: 11.5px;
  color: #ecfdf5;
}

.sc-city-now-wx-copy span {
  font-family: var(--font-mono);
  font-size: 9.8px;
  color: #a7f3d0;
  line-height: 1.3;
}

.sc-city-now-cta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-city-now-play-btn {
  flex: 1;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 5px;
  border-top: 2px solid #a7f3d0;
  border-left: 2px solid #a7f3d0;
  border-right: 2px solid #064e3b;
  border-bottom: 2px solid #064e3b;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #022c22;
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.sc-city-now-play-btn:hover {
  filter: brightness(1.08);
}

.sc-city-now-subhead {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #6ee7b7;
}

.sc-city-now-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-city-now-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(52, 211, 153, 0.34);
  border-left: 3px solid #10b981;
}

.sc-city-now-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sc-city-now-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #6ee7b7;
}

.sc-city-now-card-main strong {
  font-size: 11.5px;
  color: #f8fafc;
}

.sc-city-now-sub {
  font-size: 10.5px;
  color: var(--ink-mid);
  line-height: 1.25;
}

.sc-city-now-card-acts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sc-city-now-wire {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px solid rgba(52, 211, 153, 0.22);
}

.sc-city-now-wire-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-city-now-wire-item {
  font-size: 10.8px;
  line-height: 1.3;
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.65);
  border-left: 2px solid #38bdf8;
  color: #e2e8f0;
}

.sc-share-modal {
  border-color: rgba(196, 181, 253, 0.68);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.78), 0 0 26px rgba(124, 58, 237, 0.25);
}

.sc-share-modal .sc-modal-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-share-bar {
  background: linear-gradient(90deg, #3b0764, #5b21b6);
  border-bottom: 1px solid rgba(196, 181, 253, 0.42);
  color: #f5f3ff;
}

.sc-tab-btn {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.82);
  color: var(--ink-mid);
  font-family: var(--font-mono);
  font-size: 10.2px;
  font-weight: 800;
  cursor: pointer;
}

.sc-tab-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
}

.sc-tab-btn.sc-ctrl-on {
  background: linear-gradient(180deg, #6d28d9, #4c1d95);
  border-color: #c4b5fd;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.sc-share-feedback {
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(6, 95, 70, 0.65);
  border: 1px solid #34d399;
  color: #ecfdf5;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.sc-share-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-share-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(196, 181, 253, 0.32);
  border-left: 3px solid #8b5cf6;
}

.sc-share-url-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-text-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: #090d16;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 11px;
}

.sc-url-readonly {
  color: #a7f3d0;
}

.sc-postcard-frame {
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid rgba(196, 181, 253, 0.65);
  background: #090d16;
}

.sc-postcard-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
}

.sc-postcard-placeholder {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #c4b5fd;
}

.sc-share-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-ledger-publish-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(30, 27, 75, 0.48);
  border: 1px solid rgba(196, 181, 253, 0.42);
}

.sc-ledger-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sc-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-ledger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-left: 3px solid #f59e0b;
}

.sc-ledger-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sc-ledger-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-ledger-top strong {
  margin-bottom: 0 !important;
}

.sc-ledger-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
}

.sc-ledger-summary {
  font-size: 11.2px;
  color: #e2e8f0;
}

/* ---------------------------------------------------------------------------
   Live Current-Timezone Clock Pill + Live Public Cameras Viewer
   --------------------------------------------------------------------------- */
.sc-clock-pill {
  min-height: 44px;
  padding: 0 9px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: linear-gradient(180deg, #0c4a6e 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.22);
}

.sc-clock-pill:hover {
  background: linear-gradient(180deg, #0369a1 0%, #0c4a6e 100%);
  border-color: #7dd3fc;
}

.sc-clock-hms {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: #f0f9ff;
  line-height: 1.1;
  white-space: nowrap;
}

.sc-clock-tz {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  color: #7dd3fc;
  line-height: 1;
  white-space: nowrap;
}

.sc-cams-pill {
  min-height: 44px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.62);
  background: linear-gradient(180deg, #78350f 0%, #291408 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.22);
}

.sc-cams-pill:hover {
  background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
  border-color: #fde68a;
}

.sc-cams-top {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  color: #fef3c7;
  line-height: 1.1;
  white-space: nowrap;
}

.sc-cams-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fcd34d;
  line-height: 1;
  white-space: nowrap;
}

.sc-osint-tabs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-cam-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(10, 18, 32, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.48);
}

.sc-cam-panel-compact {
  padding: 7px 8px;
  gap: 6px;
}

.sc-cam-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sc-cam-head-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sc-cam-head-copy strong {
  font-size: 11.8px;
  color: #f8fafc;
  margin: 0 !important;
}

.sc-cam-head-btns {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sc-cam-frame {
  border-radius: 5px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.52);
  background: #050811;
}

.sc-cam-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

.sc-cam-panel-compact .sc-cam-img {
  max-height: 158px;
}

.sc-cam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.sc-cam-chip-btn {
  min-height: 44px;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 9.8px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.sc-cam-chip-btn:hover {
  border-color: #7dd3fc;
  color: #ffffff;
}

.sc-cam-chip-on {
  background: linear-gradient(180deg, rgba(3, 105, 161, 0.78), rgba(15, 23, 42, 0.94));
  border-color: #38bdf8;
  color: #f0f9ff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.28);
}

.sc-history-pick {
  bottom: 136px;
  left: 368px;
  width: 318px;
  z-index: 26;
  border-color: rgba(251, 191, 36, 0.72);
}

/* -------------------------------------------------------------------------
   Stacked 3D Hex-Tower Filter Bar & External Agent / Open Data Studio
   ------------------------------------------------------------------------- */

.sc-menu-hex {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.sc-menu-agent {
  border-color: rgba(167, 139, 250, 0.48);
  color: #ede9fe;
}

.sc-hex-filter-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: min(640px, calc(100% - 350px));
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(10, 18, 34, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  z-index: 21;
}

.sc-hex-bar-shifted {
  left: 452px;
  max-width: min(460px, calc(100% - 780px));
}

.sc-hex-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-hex-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #7dd3fc;
}

.sc-hex-dive-pill {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  color: #ecfdf5;
  background: linear-gradient(180deg, #059669, #065f46);
  border: 1.5px solid #34d399;
}

.sc-hex-dive-pill:hover {
  filter: brightness(1.1);
}

.sc-hex-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sc-hex-pill {
  min-height: 44px;
  padding: 0 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.sc-hex-pill:hover {
  border-color: #38bdf8;
  color: #f8fafc;
}

.sc-hex-pill-on {
  background: linear-gradient(180deg, #0284c7, #075985);
  border-color: #7dd3fc;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.sc-agent-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.28);
  margin-bottom: 10px;
}

.sc-agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-agent-h4 {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.sc-agent-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.sc-agent-autopilot-btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 11px;
  white-space: nowrap;
}

.sc-agent-status-box,
.sc-agent-toast {
  padding: 7px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #ecfdf5;
  background: rgba(6, 78, 59, 0.78);
  border: 1px solid #34d399;
}

.sc-agent-toast {
  margin-bottom: 8px;
}

.sc-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sc-export-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-export-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  color: #e0f2fe;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.sc-export-link-btn:hover {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #0369a1, #0f172a);
  color: #ffffff;
}

.sc-code-snippet {
  margin: 0;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.35);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  color: #bae6fd;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.sc-bm-desktop {
  background: linear-gradient(180deg, #1d4ed8 0%, #0a246a 100%) !important;
  border-color: #93c5fd !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ---------------------------------------------------------------------------
   TINYHAPPYCARS OS 2000 — Y2K / EARLY-2000s TECH DESKTOP PORTAL
   --------------------------------------------------------------------------- */
.sc-thc-desktop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.28), transparent 46%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 48, 66, 0.56) 0px,
      rgba(0, 48, 66, 0.56) 2px,
      rgba(0, 68, 90, 0.52) 2px,
      rgba(0, 68, 90, 0.52) 4px
    );
  backdrop-filter: blur(2.5px);
  color: #111827;
  font-family: Tahoma, Verdana, "Trebuchet MS", var(--font-sans), sans-serif;
  overflow: hidden;
}

.sc-thc-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 268px;
  gap: 14px;
  padding: 14px 16px 10px;
  align-items: start;
  overflow-y: auto;
}

.sc-thc-icons-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.sc-thc-desk-icon {
  width: 118px;
  min-height: 68px;
  padding: 6px 4px;
  background: rgba(0, 40, 58, 0.42);
  border: 1px dotted rgba(186, 230, 253, 0.45);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #f8fafc;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000000;
}

.sc-thc-desk-icon:hover,
.sc-thc-desk-icon:focus-visible {
  background: rgba(10, 36, 106, 0.85);
  border: 1px dotted #fde047;
  outline: none;
}

.sc-thc-desk-glyph {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.65));
}

.sc-thc-desk-lbl {
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Classic Windows 2000 / SimCity 3000 Beveled Window */
.sc-thc-win,
.sc-thc-notepad {
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow:
    inset -1px -1px 0 #808080,
    inset 1px 1px 0 #ece9d8,
    0 18px 42px rgba(0, 0, 0, 0.62);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 76px);
}

.sc-thc-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  background: linear-gradient(90deg, #0a246a 0%, #1d4ed8 58%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.sc-thc-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sc-thc-title-txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-thc-win-ctrls {
  display: flex;
  gap: 3px;
}

.sc-thc-wbtn {
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  background: #d4d0c8;
  color: #111827;
  font-weight: 800;
  font-size: 11px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.sc-thc-wbtn-close:hover {
  background: #dc2626;
  color: #ffffff;
}

.sc-thc-menubar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 3px 8px;
  background: #ece9d8;
  border-bottom: 1px solid #aca899;
  font-size: 11px;
  color: #1f2937;
}

.sc-thc-menu-item {
  padding: 2px 6px;
  font-weight: 600;
}

.sc-thc-menu-btn {
  padding: 2px 7px;
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #0a246a;
  cursor: pointer;
}

.sc-thc-menu-btn:hover {
  background: #ffffff;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
}

.sc-thc-addrbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
}

.sc-thc-addr-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
}

.sc-thc-addr-box {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  background: #ffffff;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  font-family: "Courier New", var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-thc-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 6px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.sc-thc-hero {
  padding: 12px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #07193f 0%, #0c4a6e 62%, #0369a1 100%);
  border: 2px solid #0a246a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #f8fafc;
}

.sc-thc-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sc-thc-kicker {
  font-family: "Courier New", var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.sc-thc-h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 0 #020617;
}

.sc-thc-h1-accent {
  color: #67e8f9;
}

.sc-thc-net-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  background: #020617;
  border: 1px solid #38bdf8;
  text-align: right;
  font-family: "Courier New", var(--font-mono), monospace;
}

.sc-thc-net-led {
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
}

.sc-thc-net-sub {
  font-size: 10px;
  color: #bae6fd;
}

.sc-thc-lead {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #e0f2fe;
}

.sc-thc-places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.sc-thc-place-card {
  background: #ece9d8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  display: flex;
  flex-direction: column;
}

.sc-thc-place-current {
  outline: 2px solid #2563eb;
}

.sc-thc-card-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}

.sc-thc-card-prog {
  font-family: "Courier New", var(--font-mono), monospace;
}

.sc-thc-card-badge {
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

.sc-thc-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sc-thc-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sc-thc-card-ico {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #ffffff;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  flex-shrink: 0;
}

.sc-thc-card-titles {
  min-width: 0;
}

.sc-thc-card-h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.sc-thc-domain-link {
  display: inline-block;
  margin-top: 2px;
  font-family: "Courier New", var(--font-mono), monospace;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: underline;
}

.sc-thc-card-blurb {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.42;
  color: #1f2937;
  flex: 1;
}

.sc-thc-card-stats {
  padding: 5px 7px;
  background: #ffffff;
  border: 1px solid #aca899;
  font-family: "Courier New", var(--font-mono), monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
}

.sc-thc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-thc-bevel-btn {
  padding: 6px 9px;
  min-height: 32px;
  background: #d4d0c8;
  color: #111827;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.sc-thc-bevel-btn:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.sc-thc-bevel-primary {
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
  color: #0a246a;
}

.sc-thc-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  background: #d4d0c8;
  border-top: 1px solid #808080;
  font-size: 11px;
  color: #1f2937;
}

.sc-thc-status-cell {
  padding: 2px 6px;
  border-top: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Column: Winamp-inspired CarAmp v2.91 + Notepad */
.sc-thc-gadgets-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-thc-caramp {
  background: #1e293b;
  border-top: 2px solid #64748b;
  border-left: 2px solid #64748b;
  border-right: 2px solid #020617;
  border-bottom: 2px solid #020617;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.sc-thc-caramp-bar {
  padding: 3px 6px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #334155 0%, #0f172a 100%);
  color: #facc15;
  font-family: "Courier New", var(--font-mono), monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.sc-thc-caramp-lcd {
  padding: 8px;
  background: #020617;
  border: 2px inset #334155;
  font-family: "Courier New", var(--font-mono), monospace;
}

.sc-thc-lcd-main {
  font-size: 11px;
  font-weight: 800;
  color: #a3e635;
}

.sc-thc-lcd-sub {
  margin-top: 3px;
  font-size: 10px;
  color: #38bdf8;
}

.sc-thc-eq-bars {
  margin-top: 7px;
  height: 18px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.sc-eq {
  flex: 1;
  background: linear-gradient(180deg, #ef4444 0%, #facc15 45%, #22c55e 100%);
}
.sc-eq.b1 { height: 65%; }
.sc-eq.b2 { height: 95%; }
.sc-eq.b3 { height: 50%; }
.sc-eq.b4 { height: 85%; }
.sc-eq.b5 { height: 100%; }
.sc-eq.b6 { height: 60%; }
.sc-eq.b7 { height: 80%; }
.sc-eq.b8 { height: 45%; }

.sc-thc-hitcounter {
  margin-top: 7px;
  padding: 5px 7px;
  background: #0f172a;
  border: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Courier New", var(--font-mono), monospace;
}

.sc-thc-hit-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.sc-thc-hit-digits {
  padding: 2px 6px;
  background: #000000;
  border: 1px solid #22c55e;
  color: #4ade80;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.sc-thc-caramp-btns {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sc-thc-notepad-body {
  padding: 10px;
  background: #ffffe1;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  font-family: "Courier New", var(--font-mono), monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #111827;
}

.sc-thc-notepad-body p {
  margin: 0 0 8px;
}

/* Classic Start Menu & Bottom Taskbar */
.sc-thc-start-menu {
  position: fixed;
  left: 6px;
  bottom: 42px;
  z-index: 102;
  width: 285px;
  display: flex;
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.sc-thc-start-side {
  width: 30px;
  background: linear-gradient(180deg, #0a246a 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.sc-thc-start-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px;
}

.sc-thc-start-item {
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.sc-thc-start-item:hover {
  background: #0a246a;
  color: #ffffff;
}

.sc-thc-start-sep {
  border: 0;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  margin: 3px 2px;
}

.sc-thc-taskbar {
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 6px;
  background: #d4d0c8;
  border-top: 2px solid #ffffff;
}

.sc-thc-task-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sc-thc-start-btn {
  height: 30px;
  padding: 0 12px;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 900;
  font-style: italic;
  text-shadow: 1px 1px 0 #052e16;
  border-top: 2px solid #bbf7d0;
  border-left: 2px solid #bbf7d0;
  border-right: 2px solid #14532d;
  border-bottom: 2px solid #14532d;
  cursor: pointer;
}

.sc-thc-start-active {
  border-top: 2px solid #14532d;
  border-left: 2px solid #14532d;
  border-right: 2px solid #bbf7d0;
  border-bottom: 2px solid #bbf7d0;
}

.sc-thc-task-tab {
  height: 30px;
  padding: 0 10px;
  background: #d4d0c8;
  color: #111827;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.sc-thc-task-tab-on {
  background: #ece9d8;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.sc-thc-systray {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  background: #d4d0c8;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
}

/* ---------------------------------------------------------------------------
   RESPONSIVE MOBILE VIEWPORT (<= 960px, e.g. 390x844)
   Zero horizontal overflow + >=44px touch targets
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  html,
  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #app {
    height: auto;
  }

  .sc-desktop {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 6px;
    gap: 8px;
    overflow-x: hidden;
  }

  .sc-workspace {
    order: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .sc-palette {
    order: 2;
    width: 100%;
    max-height: none;
  }

  .sc-topbar,
  .sc-subbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-status-pod {
    flex-wrap: wrap;
  }

  .sc-status-lines {
    flex: 1 1 100%;
  }

  .sc-transport-pod,
  .sc-seed-pod {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sc-seed-select {
    max-width: 100%;
    flex: 1;
  }

  .sc-win-titlebar {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 8px;
  }

  .sc-city-window {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .sc-canvas-body {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .sc-canvas {
    height: 300px;
    flex-shrink: 0;
  }

  .sc-objectives-hud,
  .sc-subwindow,
  .sc-history-story-card,
  .sc-history-usgs-card,
  .sc-history-scrubber-dock,
  .sc-pick-pos,
  .sc-history-pick,
  .sc-sandbox-pos,
  .sc-engine-pos,
  .sc-modal-center,
  .sc-side-dock,
  .sc-dock-left,
  .sc-dock-right,
  .sc-follow-card,
  .sc-hex-filter-bar,
  .sc-hex-bar-shifted,
  .sc-incident-banner,
  .sc-incident-shifted,
  .sc-error-float,
  .sc-sim-toast {
    position: static;
    transform: none;
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    max-height: none;
    margin: 0 auto;
  }

  .sc-history-slider-row {
    flex-wrap: wrap;
  }

  .sc-disaster-grid,
  .sc-advisor-grid,
  .sc-modal-tabs,
  .sc-osint-tabs-3,
  .sc-share-modal .sc-modal-tabs,
  .sc-ledger-inputs,
  .sc-boom-strip,
  .sc-cam-grid,
  .sc-export-grid,
  .sc-export-grid-3,
  .sc-history-monument-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-deal-card,
  .sc-osint-card,
  .sc-osint-wx-card,
  .sc-city-now-card,
  .sc-city-now-wx,
  .sc-city-now-cta-row,
  .sc-cam-head,
  .sc-share-url-row,
  .sc-ledger-card,
  .sc-wire-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-osint-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sc-thc-workspace {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
    gap: 10px;
  }

  .sc-thc-icons-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sc-thc-desk-icon,
  .sc-thc-wbtn,
  .sc-thc-menu-btn,
  .sc-thc-bevel-btn,
  .sc-thc-start-btn,
  .sc-thc-task-tab,
  .sc-thc-start-item {
    min-height: 44px;
    min-width: 44px;
  }

  .sc-thc-win {
    max-height: none;
  }

  .sc-thc-hero-top {
    flex-direction: column;
  }

  .sc-thc-taskbar {
    height: auto;
    min-height: 48px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
