/* ============================================================
   MOAD APP — extends tokens.css with OS-style chrome and screen layouts.
   Built on the Move on a Dime visual language: blueprint paper,
   orange swatch action, soft-brutalist cards, vinyl coins.
   ============================================================ */

:root {
  --rail-w: 88px;
  --topbar-h: 68px;
  --pane-pad: 28px;
  --glow-pulse: 0 0 0 4px rgba(255, 80, 5, 0.22);
}

/* App shell */
.os-shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ============ Left rail / Screen navigator ============ */
.rail {
  position: sticky; top: 0;
  align-self: start;
  height: 100vh;
  padding: 14px 8px 18px;
  border-right: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.rail::-webkit-scrollbar { width: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
}
.rail::-webkit-scrollbar-thumb:hover { background: rgba(255,80,5,0.5); }
/* Sticky brand at top */
.rail .rail-brand {
  position: sticky; top: -8px;
  background: var(--ink);
  z-index: 2;
  padding-bottom: 4px;
}
.rail-brand {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--paper);
  border: 2px solid var(--paper);
  display: grid; place-items: center;
  margin: 0 auto 6px;
  position: relative;
  overflow: hidden;
}
.rail-brand::before {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 12px;
  background-image: url('./images/orange-sw.avif');
  background-size: cover; background-position: center;
}
.rail-brand-letter {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  letter-spacing: -0.04em;
}

.rail-sep {
  height: 2px; background: rgba(255,255,255,0.08);
  border-radius: 1px; margin: 6px 10px;
}

.rail-btn {
  appearance: none; border: none;
  background: transparent; color: rgba(255,255,255,0.62);
  width: 100%; padding: 10px 6px;
  border-radius: 14px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.rail-btn .rail-glyph {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rail-btn .rail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
  line-height: 1.05;
}
.rail-btn:hover { color: var(--paper); }
.rail-btn:hover .rail-glyph {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.rail-btn--active {
  color: var(--paper);
}
.rail-btn--active .rail-glyph {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--ink), 0 0 14px rgba(255,80,5,0.55);
}
.rail-btn--active .rail-label { opacity: 1; color: var(--orange); }
.rail-btn--active::before {
  content: "";
  position: absolute; left: -10px; top: 14px; bottom: 14px;
  width: 4px; border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255,80,5,0.7);
}

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0;
  height: var(--topbar-h);
  background: rgba(238, 243, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center;
  padding: 0 var(--pane-pad);
  gap: 18px;
  z-index: 9;
}
.topbar-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.topbar-title .tb-num {
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 4px 8px; border-radius: 6px;
  align-self: center;
}
.topbar-crumb {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.topbar-pull { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted);
  min-width: 220px;
  box-shadow: 2px 2px 0 var(--ink);
}
.topbar-search::placeholder { color: var(--fg-muted); }

.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.live-pill .live-dot {
  width: 7px; height: 7px; background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,80,5,0.6);
}

/* ============ Main pane ============ */
.pane {
  padding: var(--pane-pad);
  min-height: calc(100vh - var(--topbar-h));
  position: relative;
}
.pane-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.pane-head-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 6px;
}
.pane-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.8vw, 64px);
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 12ch;
}
.pane-head-sub {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--fg-2);
  margin: 12px 0 0;
  font-weight: 500;
  max-width: 56ch;
}

.pane-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Mono tag chip ============ */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.tag--ink   { background: var(--ink);    color: var(--paper); border-color: var(--ink); }
.tag--orange{ background: var(--orange); color: white;        border-color: var(--ink); }
.tag--azure { background: var(--azure);  color: white;        border-color: var(--ink); }
.tag--butter{ background: var(--butter); color: var(--ink);   border-color: var(--ink); }
.tag--sky   { background: var(--sky);    color: var(--ink);   border-color: var(--ink); }
.tag--lilac { background: var(--lilac);  color: var(--ink);   border-color: var(--ink); }
.tag--paper { background: var(--paper-2);color: var(--ink);   border-color: var(--ink); }
.tag--ghost { background: transparent; border-color: rgba(20,32,51,0.3); color: var(--fg-2); }
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
}
.tag--azure .dot { background: white; }

/* ============ Generic surfaces ============ */
.surf {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--sh);
  padding: 22px;
  position: relative;
}
.surf--flat { box-shadow: none; }
.surf--ink { background: var(--ink); color: var(--paper); }
.surf--orange { background: var(--orange); color: white; }
.surf--azure { background: var(--azure); color: white; }
.surf--lilac { background: var(--lilac); color: var(--ink); }
.surf--butter { background: var(--butter); color: var(--ink); }
.surf--sky    { background: var(--sky);    color: var(--ink); }
.surf--paper2 { background: var(--paper-2); }

.surf-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em;
  margin: 0; line-height: 1.05;
}
.surf-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============ Screen 14 — phone frame ============ */
.phone-frame {
  width: 320px; min-height: 640px;
  background: var(--ink);
  border-radius: 42px;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink), 0 30px 60px rgba(20,32,51,0.25);
  padding: 14px;
  position: relative;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px;
  background: black; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: var(--paper);
  border-radius: 30px;
  height: 100%;
  min-height: 612px;
  overflow: hidden;
  position: relative;
}

/* ============ Screen 9 — waveform decoration ============ */
.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 56px;
}
.waveform .bar {
  flex: 1; background: var(--ink);
  border-radius: 2px;
  min-width: 3px;
}
.waveform--ink .bar { background: var(--paper); }
.waveform--orange .bar { background: white; }

/* ============ Mini coin grid ============ */
.coin-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.coin-stack {
  display: inline-flex; align-items: center;
}
.coin-stack .coin { margin-left: -16px; }
.coin-stack .coin:first-child { margin-left: 0; }

/* ============ Pulse dot ============ */
.pulse-dot {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,80,5,0.45);
  animation: pulse-grow 1.6s var(--ease) infinite;
}
@keyframes pulse-grow {
  0%   { box-shadow: 0 0 0 0 rgba(255,80,5,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(255,80,5,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,80,5,0); }
}

/* ============ Stat block ============ */
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1;
}
.stat-trend {
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
}

/* ============ Node map (release path / deployment) ============ */
.node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.node-dot {
  width: 56px; height: 56px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--font-caps);
  font-size: 22px; font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 8px rgba(0, 0, 0, 0.12),
    3px 3px 0 var(--ink);
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.18);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.node-dot:hover {
  transform: translate(-1px, -1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.32),
    inset 0 -3px 8px rgba(0, 0, 0, 0.14),
    4px 4px 0 var(--ink);
}
.node-dot--orange {
  background-color: #FF5005;
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, 0.20) 0%, rgba(0, 0, 0, 0.15) 100%),
    url('./images/orange-sw.avif');
  background-size: cover, cover;
  background-position: center, center;
  color: white;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.45);
}
.node-dot--azure {
  background: linear-gradient(160deg, #5C97EE 0%, #2E61B5 100%);
  color: white;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.32);
}
.node-dot--ink {
  background: linear-gradient(160deg, #243349 0%, #050810 100%);
  color: #EEF3F8;
  text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.5);
}
.node-dot--lilac {
  background: linear-gradient(160deg, #DBC9F1 0%, #A989D7 100%);
  color: #142033;
}
.node-dot--butter,
.node-dot--sky {
  background: linear-gradient(160deg, #B7E1F0 0%, #6FB5D6 100%);
  color: #142033;
}
.node-dot--gray {
  background: linear-gradient(160deg, #E5E8ED 0%, #C9CDD4 100%);
  color: var(--fg-muted);
  border-color: rgba(20,32,51,0.3);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 6px rgba(0, 0, 0, 0.08),
    2px 2px 0 rgba(20,32,51,0.3);
  text-shadow: none;
}
.node-dot--pulsing {
  animation: node-pulse 1.6s var(--ease) infinite;
}
@keyframes node-pulse {
  0%, 100% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 0 rgba(255,80,5,0.4); }
  50%      { box-shadow: 4px 4px 0 var(--ink), 0 0 0 12px rgba(255,80,5,0); }
}
.node-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 8px; border-radius: 6px;
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

.edge { position: absolute; pointer-events: none; overflow: visible; }
.edge path {
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 4 6;
  opacity: 0.4;
}
.edge.edge--live path {
  stroke: var(--orange);
  stroke-dasharray: 6 8;
  opacity: 1;
  animation: edge-flow 1.4s linear infinite;
  stroke-width: 2.5;
}
@keyframes edge-flow {
  to { stroke-dashoffset: -28; }
}

/* ============ Boards / grids ============ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.media-card {
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.media-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.media-thumb {
  aspect-ratio: 1.2/1;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--paper);
}
.media-thumb--audio   { background: linear-gradient(135deg, var(--azure), #2a5fa8); }
.media-thumb--video   { background: linear-gradient(135deg, var(--ink), #050b18); }
.media-thumb--voice   { background: linear-gradient(135deg, var(--lilac), #8e74c2); }
.media-thumb--bts     { background: linear-gradient(135deg, var(--sky), #4F94B5); color: var(--ink); }
.media-thumb--demo    { background: linear-gradient(135deg, #ff7a3d, var(--orange)); }
.media-thumb-badge {
  position: absolute; top: 8px; left: 8px;
}
.media-thumb-dur {
  position: absolute; bottom: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.06em;
}
.media-meta {
  padding: 10px 12px 12px;
}
.media-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-tease {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============ Dropzone ============ */
.dropzone {
  border: 2.5px dashed var(--ink);
  border-radius: 24px;
  /* Soft azure mist — picks up the blue→white shading used in the
     auto-generated thumbnails. Works for both light + midnight. */
  background:
    linear-gradient(135deg,
      rgba(142, 202, 230, 0.55) 0%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(220, 234, 245, 0.85) 100%);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.dropzone:hover {
  background:
    linear-gradient(135deg,
      rgba(142, 202, 230, 0.75) 0%,
      rgba(255, 255, 255, 1) 50%,
      rgba(220, 234, 245, 0.95) 100%);
  border-color: var(--orange);
}

/* Reusable azure mist utility — same gradient as dropzone + thumbnails. */
.mist-azure {
  background: linear-gradient(135deg,
    rgba(142, 202, 230, 0.55) 0%,
    rgba(255, 255, 255, 0.92) 50%,
    rgba(220, 234, 245, 0.85) 100%);
}
/* When applied to a .surf (which has its own background), reinforce. */
.surf.mist-azure {
  background:
    linear-gradient(135deg,
      rgba(142, 202, 230, 0.42) 0%,
      rgba(255, 255, 255, 0.95) 55%,
      rgba(220, 234, 245, 0.80) 100%);
}
.dropzone-mark {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url('./images/orange-sw.avif');
  background-size: cover; background-position: center;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  line-height: 1;
  margin: 0 auto 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  animation: drop-bob 4s ease-in-out infinite;
}
@keyframes drop-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============ Chat / Fan messenger ============ */
.thread {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
}
.msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--ink);
  position: relative;
  font-size: 14px; line-height: 1.4;
  box-shadow: 2px 2px 0 var(--ink);
}
.msg--artist {
  align-self: flex-start;
  background: var(--ink); color: var(--paper);
  border-bottom-left-radius: 4px;
}
.msg--fan {
  align-self: flex-end;
  background: linear-gradient(160deg, #DBC9F1 0%, #A989D7 100%);
  color: #142033;
  border-bottom-right-radius: 4px;
  text-shadow: none;
}
.msg-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 6px; opacity: 0.65;
}
.msg-audio {
  display: flex; align-items: center; gap: 10px;
  min-width: 220px;
}

/* ============ Power Lane / Automation cards ============ */
.lane-card {
  position: relative;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lane-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.lane-card-band {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--orange);
  background-image: url('./images/orange-sw-wide.avif');
  background-size: cover;
}
.lane-card--azure .lane-card-band { background: var(--azure); background-image: none; }
.lane-card--lilac .lane-card-band { background: var(--lilac); background-image: none; }
.lane-card--ink .lane-card-band   { background: var(--ink);   background-image: none; }

/* ============ Calendar / orbit ============ */
.orbit-day {
  position: absolute;
  display: grid; place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
}
.orbit-day:hover { transform: translate(-50%, -50%) scale(1.06); }
.orbit-day-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: var(--ink); line-height: 1;
}
.orbit-day-tag {
  font-family: var(--font-mono); font-size: 8.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 3px;
  max-width: 76px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

/* ============================================================
   Day pill rollover preview tip — Launch Clock (Screen 07).
   Shows full day info on hover; positioned smartly above or
   below the pill based on the day's clock position.
   ============================================================ */
.orbit-day-tip {
  position: absolute;
  left: 50%;
  width: 200px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--paper);
  border-radius: 14px;
  padding: 11px 14px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  box-shadow: 4px 4px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.orbit-day-tip--below {
  top: calc(100% + 12px);
  transform: translate(-50%, -8px) scale(0.95);
}
.orbit-day-tip--above {
  bottom: calc(100% + 12px);
  transform: translate(-50%, 8px) scale(0.95);
}
.orbit-day:hover .orbit-day-tip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.orbit-day-tip-eye {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
}
.orbit-day-tip-what {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13.5px; line-height: 1.25;
  color: var(--paper);
  margin-top: 5px;
  text-transform: none;
  letter-spacing: 0;
}
.orbit-day-tip-meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(238, 243, 248, 0.65);
  margin-top: 5px;
}
.orbit-day-tip::after {
  /* small triangle connector */
  content: '';
  position: absolute;
  left: 50%;
  width: 12px; height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--ink);
  border: 1.5px solid var(--paper);
}
.orbit-day-tip--below::after {
  top: -7px;
  border-bottom: none;
  border-right: none;
}
.orbit-day-tip--above::after {
  bottom: -7px;
  border-top: none;
  border-left: none;
}
.orbit-day--release {
  background: var(--orange);
  background-image: url('./images/orange-sw.avif');
  background-size: cover;
  color: white;
}
.orbit-day--release .orbit-day-num,
.orbit-day--release .orbit-day-tag { color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.orbit-day--posted { background: var(--azure); color: white; }
.orbit-day--posted .orbit-day-num,
.orbit-day--posted .orbit-day-tag { color: white; }
.orbit-day--today {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px rgba(255,80,5,0.18);
}

/* ============================================================
   Clock face — Screen 07 Content Orbit (Launch Clock).
   12 hour positions, ticks, numerals, axes, and a clock hand
   pointing at TODAY (always 12 o'clock in this layout).
   The clock-face SVG and the clock-pills div share the same
   centered square coordinate space, so day-pill % positions
   align with SVG % positions.
   ============================================================ */
.clock-orbit {
  background: radial-gradient(circle at center, rgba(61,125,219,0.06) 0, transparent 60%), var(--paper);
  color: var(--ink); /* used as currentColor in clock-face SVG */
}
.clock-face,
.clock-pills {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  width: min(640px, 94%);
  aspect-ratio: 1 / 1;
}
.clock-face {
  pointer-events: none;
  z-index: 0;
}
.clock-pills {
  pointer-events: none;
  z-index: 1;
}
.clock-pills > * { pointer-events: auto; }
.clock-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.clock-center > * { pointer-events: auto; }

/* ============================================================
   Blueprint canvas — dark control-surface treatment
   Layered on top of .surf--ink for any panel hosting a node map
   or graph. Grid + concentric range rings + corner crosshairs.
   ============================================================ */
.blueprint-canvas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Grid + dot field + concentric range rings, vignetted to edges */
.blueprint-canvas::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      transparent 0, transparent 79px,
      rgba(142, 202, 230, 0.20) 79px,
      rgba(142, 202, 230, 0.20) 80px),
    radial-gradient(rgba(92, 151, 238, 0.18) 0.7px, transparent 1.1px) 0 0 / 8px 8px,
    linear-gradient(rgba(92, 151, 238, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(92, 151, 238, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(92, 151, 238, 0.11) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(92, 151, 238, 0.11) 1px, transparent 1px) 0 0 / 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at center,
    rgba(0,0,0,1) 20%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.15) 100%);
  mask-image: radial-gradient(ellipse 95% 95% at center,
    rgba(0,0,0,1) 20%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.15) 100%);
}

/* Corner crosshair instrument marks (4 corners, 2 ticks each) */
.blueprint-canvas::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* top-left */
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) 18px 24px / 14px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) 24px 18px / 1.5px 14px no-repeat,
    /* top-right */
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) right 18px top 24px / 14px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) right 24px top 18px / 1.5px 14px no-repeat,
    /* bottom-left */
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) 18px bottom 24px / 14px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) 24px bottom 18px / 1.5px 14px no-repeat,
    /* bottom-right */
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) right 18px bottom 24px / 14px 1.5px no-repeat,
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) right 24px bottom 18px / 1.5px 14px no-repeat;
}

/* Content inside establishes its own stacking so pseudo bg sits behind */
.blueprint-canvas > * { position: relative; z-index: 1; }
.blueprint-canvas > .surf-eyebrow,
.blueprint-canvas > div { z-index: 1; }

/* Blueprint stamp — small instrument tag for corners */
.bp-stamp {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(5, 8, 16, 0.7);
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  pointer-events: none;
  z-index: 3;
}
.bp-stamp em { font-style: normal; color: var(--orange); }
.bp-stamp--tr { top: 16px; right: 44px; }
.bp-stamp--bl { bottom: 16px; left: 44px; }
.bp-stamp--br { bottom: 16px; right: 44px; }

/* ============ Mobile screen wrapper ============ */
.responsive-rail .rail-btn .rail-label { display: none; }
@media (max-width: 900px) {
  .os-shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .pane { padding-bottom: 96px; }
}

/* Buttons — squat secondary */
.btn--inline { padding: 9px 14px; font-size: 11px; }
.btn--icon { padding: 9px 12px; }

/* btn--on-orange — ink-pill variant for buttons sitting on an orange
   swatch surface. High contrast, no orange-on-orange, with a kicky
   hover that flips to paper + an orange ring. */
.btn--on-orange {
  background: var(--ink) !important;
  background-image: none !important;
  color: var(--paper) !important;
  border-color: var(--paper) !important;
  text-shadow: none !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35) !important;
}
.btn--on-orange:hover {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4), 0 0 0 3px var(--orange) !important;
  transform: translate(-1px, -1px) rotate(-1deg) !important;
}
.btn--on-orange:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35) !important;
}
.btn--on-orange.btn--on-orange--alt {
  background: rgba(255, 255, 255, 0.18) !important;
  color: white !important;
  border-color: white !important;
}
.btn--on-orange.btn--on-orange--alt:hover {
  background: white !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

/* Thread row (Fan Messenger left panel) — selected state has subtle
   orange tint + left accent bar. Works in both themes. */
.thread-row {
  background: transparent;
  border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.thread-row:hover {
  background: rgba(20, 32, 51, 0.04);
}
.thread-row--active {
  background: rgba(255, 80, 5, 0.07);
  border-color: var(--ink);
  box-shadow: inset 4px 0 0 var(--orange);
}
body[data-theme="midnight"] .thread-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
body[data-theme="midnight"] .thread-row--active {
  background: rgba(255, 80, 5, 0.10);
  border-color: rgba(255, 80, 5, 0.55);
  box-shadow: inset 4px 0 0 var(--orange);
}

/* Glow border for active focus surfaces */
.focus-glow {
  box-shadow: var(--sh), 0 0 0 4px rgba(255,80,5,0.18);
}

/* ============================================================
   Mobile: tokens.css sets .btn{width:100%} at ≤640 for stacked
   marketing-card CTAs. That breaks the app's inline button rows
   (composer Send, the fan-gate join, modal footers with two
   side-by-side buttons). Restore auto width for those rows only.
   ============================================================ */
@media (max-width: 640px) {
  .ft-composer .btn,
  .world-gate-form .btn,
  .pp-foot .btn,
  .sc-footer .btn,
  .po-acts .btn { width: auto; }
}
