/* NexTurn — nexturncre.com
   The page runs from evening to morning: the sky behind it (.sky) is moved by app.js as you scroll, so every
   section says which light it sits in with data-tone="night" | "dawn" | "day" and takes its text colour from that.
   The app window in #inside copies the CRM's own look (web/src/index.css) — its colours are the app's tokens. */

:root {
  --midnight: #0b0a24;
  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --violet-hi: #a78bfa;
  --lilac: #ddd6fe;
  --sodium: #f5a524;
  --dawn: #f6b99f;
  --day: #f4f5f7;
  --ink: #17142e;
  --ink-soft: #4a4763;
  --moon: #eeebff;
  --moon-soft: rgba(238, 235, 255, .72);
  --moon-line: rgba(221, 214, 254, .18);

  --f-display: "Overpass", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --f-mono: "Overpass Mono", ui-monospace, Menlo, monospace;
  --f-app: "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--moon);
  background: var(--midnight);
  overflow-x: hidden;
}
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
img, svg, canvas { display: block; }
:focus-visible { outline: 3px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }
[data-tone="day"] :focus-visible, [data-tone="dawn"] :focus-visible { outline-color: var(--violet); }

.msym {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; font-size: 1.15em; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  display: inline-block; vertical-align: -.18em;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-smoothing: antialiased;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Tone ──────────────────────────────────────────────────────────────── */
[data-tone="night"] { color: var(--moon); }
[data-tone="dawn"], [data-tone="day"] { color: var(--ink); }

/* ── Sky ───────────────────────────────────────────────────────────────── */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--sky-top, #07061a), var(--sky-bottom, #17123f));
}
.stars {
  position: absolute; inset: 0; opacity: var(--stars, 1);
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 27% 8%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 63% 12%, #fff5, transparent 60%),
    radial-gradient(1px 1px at 78% 26%, #fff6, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 9%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 8% 44%, #fff4, transparent 60%),
    radial-gradient(1px 1px at 55% 38%, #fff4, transparent 60%),
    radial-gradient(1px 1px at 84% 48%, #fff4, transparent 60%),
    radial-gradient(1px 1px at 35% 58%, #fff3, transparent 60%);
  background-size: 640px 520px;
}

/* ── Shared pieces ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono); font-weight: 600; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: var(--violet-hi);
}
[data-tone="day"] .eyebrow, [data-tone="dawn"] .eyebrow { color: var(--violet-deep); }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--moon-soft); max-width: 36em; }
[data-tone="day"] .lede, [data-tone="dawn"] .lede { color: var(--ink-soft); }
.muted { opacity: .7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: .005em;
  padding: 14px 22px 12px; border-radius: 10px; text-decoration: none;
  background: var(--violet); color: #fff; border: 1.5px solid var(--violet);
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  box-shadow: 0 6px 24px -8px rgba(124, 58, 237, .8);
}
.btn .msym { font-size: 19px; vertical-align: 0; transition: transform .2s ease; }
.btn:hover { background: #8b4cf6; transform: translateY(-1px); }
.btn:hover .msym { transform: translateX(3px); }
.btn-sm { padding: 9px 14px 7px; font-size: 14px; box-shadow: none; }
.btn-ghost { background: transparent; border-color: rgba(238, 235, 255, .32); color: var(--moon); box-shadow: none; }
.btn-ghost:hover { background: rgba(238, 235, 255, .08); }
.btn-outline { background: transparent; color: var(--violet-deep); border-color: var(--violet); box-shadow: none; }
.btn-outline:hover { background: var(--violet); color: #fff; }
.btn-block { width: 100%; }
.link-quiet { text-decoration: none; font-weight: 700; opacity: .85; }
.link-quiet:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(11, 10, 36, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--moon-line); }
.nav[data-tone="day"].scrolled, .nav[data-tone="dawn"].scrolled { background: rgba(255, 255, 255, .8); box-shadow: 0 1px 0 rgba(23, 20, 46, .08); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--violet); color: #fff; display: grid; place-items: center; }
.brand-mark .msym { font-size: 21px; vertical-align: 0; }
.brand-word { font-family: var(--f-display); font-weight: 900; font-size: 21px; letter-spacing: -.01em; padding-top: 3px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
  padding: 108px var(--gutter) 56px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: .95; letter-spacing: -.03em;
  margin: 22px 0 24px; text-wrap: balance;
}
.hero-copy { position: relative; z-index: 2; }
.hero .lede { margin-bottom: 22px; }
.coverage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--moon-soft); }
.cov-group { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; margin-right: 14px; }
.cov-tag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 99px; border: 1px dashed rgba(221, 214, 254, .45); color: var(--lilac); }
.cov-tag-live { border: 1px solid var(--sodium); background: rgba(245, 165, 36, .14); color: var(--sodium); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); } }

.nightmap { position: relative; aspect-ratio: 1000 / 725; width: 100%; }
.nightmap-canvas {
  position: absolute; inset: -12% -9%; width: 118%; height: 124%;
  /* the neighbouring states run past the figure and fade out at the canvas edge */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.nightmap-labels span {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--f-mono); font-size: clamp(9px, .85vw, 11.5px); font-weight: 600; letter-spacing: .3em;
  color: rgba(221, 214, 254, .38); white-space: nowrap; pointer-events: none;
}
.nightmap-finds { position: absolute; inset: 0; pointer-events: none; }
.find {
  position: absolute; transform: translate(-50%, calc(-100% - 14px)) scale(.94);
  opacity: 0; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  background: rgba(19, 15, 52, .88); border: 1px solid rgba(221, 214, 254, .26);
  border-radius: 10px; padding: 8px 11px 7px; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.find.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.find::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 1px; height: 13px; background: rgba(221, 214, 254, .45); }
.find.flip { transform: translate(-50%, 14px) scale(.94); }
.find.flip.on { transform: translate(-50%, 14px) scale(1); }
.find.flip::after { bottom: auto; top: -14px; }
.find-k { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sodium); }
.find-k.v { color: var(--violet-hi); }
.find-t { font-size: 13px; font-weight: 700; line-height: 1.3; }
.find-s { font-size: 12px; color: var(--moon-soft); line-height: 1.3; }
.nightmap-legend {
  position: absolute; left: 0; top: calc(100% + 14px); display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--moon-soft);
}
.nightmap-legend b { color: var(--moon); font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.dot-hotel { background: var(--violet-hi); box-shadow: 0 0 8px var(--violet-hi); }
.dot-sold { background: var(--sodium); box-shadow: 0 0 8px var(--sodium); }
.dot-next { border: 1px dashed rgba(221, 214, 254, .6); }

/* ── Night audit ───────────────────────────────────────────────────────── */
.night { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 80px var(--gutter) 0; }
.night-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; margin-bottom: 24px; }
.night-intro h2, .section-head h2 {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1; letter-spacing: -.025em; margin: 16px 0 18px; text-wrap: balance;
}
.coverage-key { margin-top: 26px; display: grid; gap: 12px; }
.coverage-key div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.coverage-key dd { font-size: 15.5px; color: var(--moon-soft); }
.usmap { position: relative; }
.usmap-svg { width: 100%; height: auto; overflow: visible; }
.usmap .rest { fill: rgba(255, 255, 255, .025); stroke: rgba(221, 214, 254, .2); stroke-width: 1; stroke-linejoin: round; }
.usmap .live path { fill: rgba(124, 58, 237, .62); stroke: var(--lilac); stroke-width: 1.2; stroke-linejoin: round; opacity: 0; transition: opacity .7s ease; }
.usmap.seen .live path { opacity: 1; }
.usmap .live { filter: drop-shadow(0 0 14px rgba(167, 139, 250, .65)); }
.usmap .tag { font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; fill: var(--sodium); }
.usmap .tag-next { fill: rgba(221, 214, 254, .55); font-weight: 600; }

.night-track { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; }
.clock { position: sticky; top: calc(50vh - 120px); align-self: start; height: 260px; transition: color .6s ease; }
.clock-face { font-family: var(--f-mono); font-weight: 700; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.clock-time { font-size: clamp(64px, 7vw, 100px); line-height: 1; letter-spacing: -.04em; }
.clock-ampm { font-size: 22px; letter-spacing: .08em; color: var(--violet-hi); }
.clock-rail { list-style: none; margin-top: 28px; border-left: 1px solid var(--moon-line); }
.clock-rail li {
  position: relative; padding: 5px 0 5px 18px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: rgba(238, 235, 255, .45);
  transition: color .3s ease;
}
.clock-rail li::before {
  content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-radius: 50%; background: var(--midnight); border: 1px solid rgba(221, 214, 254, .45); transition: all .3s ease;
}
.clock-rail li.on { color: var(--moon); }
.clock-rail li.on::before { background: var(--sodium); border-color: var(--sodium); box-shadow: 0 0 10px var(--sodium); }
.clock-rail li.done::before { background: var(--violet-hi); border-color: var(--violet-hi); }
.night-track.is-dawn .clock { color: var(--ink); }
.night-track.is-dawn .clock-ampm { color: var(--violet-deep); }
.night-track.is-dawn .clock-rail { border-color: rgba(23, 20, 46, .18); }
.night-track.is-dawn .clock-rail li { color: rgba(23, 20, 46, .5); }
.night-track.is-dawn .clock-rail li.on { color: var(--ink); }
.night-track.is-dawn .clock-rail li::before { background: #fbe3d6; }
.clock-time.tick { animation: tick .35s ease; }
@keyframes tick { 0% { opacity: .2; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

.stops { padding-bottom: 8vh; }
.stop { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; max-width: 680px; padding: 40px 0; }
.stop-time { display: none; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--sodium); margin-bottom: 10px; }
.stop h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 14px; }
.stop > p { color: var(--moon-soft); font-size: 18px; max-width: 34em; }
.stop-dawn > p { color: var(--ink-soft); }
.stop .panel { margin-top: 28px; opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.stop.seen .panel { opacity: 1; transform: none; }

.panel {
  background: rgba(255, 255, 255, .045); border: 1px solid var(--moon-line); border-radius: 16px; padding: 18px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--moon-soft); }
.chip-mini { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--moon-line); color: var(--violet-hi); white-space: nowrap; }

/* Rates strip */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.night-cell {
  border-radius: 9px; padding: 8px 8px 7px; min-height: 74px; position: relative;
  background: rgba(124, 58, 237, var(--a, .06)); border: 1px solid rgba(167, 139, 250, .18);
  transition: background .5s ease, border-color .5s ease;
}
.night-cell .d { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--moon-soft); }
.night-cell .p { font-family: var(--f-display); font-weight: 800; font-size: 19px; margin-top: 8px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s ease; }
.night-cell.read .p { opacity: 1; }
.night-cell .s { font-family: var(--f-mono); font-size: 10px; color: var(--sodium); opacity: 0; transition: opacity .3s ease; }
.night-cell.read .s { opacity: 1; }
.night-cell.sold { border-color: rgba(245, 165, 36, .65); }
.night-cell.moved { animation: moved 1.4s ease; }
.night-cell .was { position: absolute; right: 7px; top: 34px; font-family: var(--f-mono); font-size: 10px; color: var(--moon-soft); text-decoration: line-through; opacity: 0; transition: opacity .3s; }
.night-cell.moved .was, .night-cell.has-was .was { opacity: 1; }
@keyframes moved { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); } 30% { box-shadow: 0 0 0 4px rgba(245, 165, 36, .45); } }
.strip-note { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--moon-soft); min-height: 1.5em; }
.strip-note .msym { color: var(--sodium); }

/* Deed → record */
.panel-deed { display: grid; grid-template-columns: 1.05fr auto 1fr; gap: 14px; align-items: center; }
.deed {
  background: #f6f1e4; color: #2b2618; border-radius: 6px; padding: 14px 14px 12px;
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.45;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8); transform: rotate(-1.2deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(43, 38, 24, .06) 21px 22px);
}
.deed-title { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; border-bottom: 1.5px solid #2b2618; padding-bottom: 6px; margin-bottom: 8px; }
.deed dl div { display: flex; justify-content: space-between; gap: 10px; }
.deed dt { color: #6e6650; }
.deed dd { font-weight: 700; text-align: right; }
.deed dd.hl { background: rgba(245, 165, 36, .35); border-radius: 2px; }
.deed-arrow { color: var(--sodium); font-size: 26px; opacity: 0; transition: opacity .4s ease .3s; }
.stop.seen .deed-arrow { opacity: 1; }
.deed-out { display: grid; gap: 10px; }
.mini-card {
  border-radius: 10px; padding: 10px 12px; border: 1px solid var(--moon-line); border-left: 3px solid var(--violet-hi);
  background: rgba(124, 58, 237, .14); opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease;
}
.mini-card-alt { border-left-color: var(--sodium); background: rgba(245, 165, 36, .1); }
.mini-card.on { opacity: 1; transform: none; }
.mini-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-hi); }
.mini-card-alt .mini-k { color: var(--sodium); }
.mini-v { font-weight: 700; font-size: 15px; line-height: 1.25; margin: 3px 0 2px; }
.mini-s { font-size: 13px; color: var(--moon-soft); }

/* Listings and auctions */
.panel-listing { display: grid; grid-template-columns: 1.05fr auto 1fr; gap: 14px; align-items: center; }
.listing-src { display: grid; gap: 10px; }
.lst { background: #fff; color: #222; border-radius: 8px; padding: 10px 12px; font-size: 13px; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8); transform: rotate(-1deg); }
.lst-auc { transform: rotate(.8deg); background: #fbf7ef; }
.lst-k { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c2540a; }
.lst-auc .lst-k { color: #6d28d9; }
.lst-t { font-weight: 700; font-size: 14px; margin-top: 2px; }
.lst-p { font-family: var(--f-display); font-weight: 900; font-size: 20px; color: #111; }
.lst-s { font-size: 12px; color: #666; }

/* Record filling in */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.fields div { border-bottom: 1px dashed var(--moon-line); padding-bottom: 7px; min-height: 52px; }
.fields dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--moon-soft); }
.fields dd { font-weight: 700; font-size: 15.5px; min-height: 1.4em; margin-top: 2px; }
.fields dd.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--sodium); margin-left: 2px; vertical-align: -2px; animation: caret .7s steps(1) infinite; }
.fields dd.filled { color: var(--lilac); }
@keyframes caret { 50% { opacity: 0; } }

/* Events */
.ev-list { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.ev-list li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--moon-line); }
.ev-when { font-family: var(--f-mono); font-size: 11.5px; color: var(--sodium); letter-spacing: .04em; }
.ev-name { font-weight: 700; font-size: 15px; }
.ev-rooms { font-family: var(--f-display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-rooms::before { content: "~"; opacity: .6; }
.ev-rooms::after { content: " rooms"; font-family: var(--f-body); font-weight: 400; font-size: 12.5px; color: var(--moon-soft); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week-day { border-radius: 7px; padding: 6px 7px; min-height: 52px; background: rgba(255, 255, 255, .04); border: 1px solid var(--moon-line); transition: background .5s ease, border-color .5s ease; }
.week-day .d { font-family: var(--f-mono); font-size: 10px; color: var(--moon-soft); }
.week-day .n { font-weight: 700; font-size: 14px; }
.week-day.lv-quiet { background: rgba(147, 178, 240, .18); border-color: rgba(147, 178, 240, .4); }
.week-day.lv-busy { background: rgba(245, 197, 110, .2); border-color: rgba(245, 197, 110, .5); }
.week-day.lv-peak { background: rgba(240, 150, 125, .28); border-color: rgba(240, 150, 125, .65); }
.week-legend, .le-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--moon-soft); }
.lv { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, .3); }
.lv-quiet { background: #dbe6fb; } .lv-normal { background: #fff; } .lv-busy { background: #fbe1b0; } .lv-peak { background: #f6c1b0; }

/* Morning cards (light, like the app) */
.panel-cards { background: rgba(255, 255, 255, .55); border-color: rgba(23, 20, 46, .1); display: grid; gap: 10px; }
.wtc { background: #fff; border: 1px solid #e4e4ea; border-radius: 10px; padding: 12px 14px; font-family: var(--f-app); font-size: 13.5px; color: #333; box-shadow: 0 6px 20px -14px rgba(23, 20, 46, .5); }
.wtc-tags, .wt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.wtc-title { font-weight: 700; line-height: 1.35; }
.wtc-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.fake-btn { display: inline-flex; align-items: center; gap: 4px; height: 29px; padding: 0 10px; border: 1px solid #dcdce0; border-radius: 5px; font-weight: 600; font-size: 12px; background: #fff; }
.fake-btn-primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.fake-btn-primary.pressed { animation: press .5s ease; }
.wtc-waiting.approved .tag-wait { background: #e2f3e8; color: #1f7a42; }
@keyframes press { 40% { transform: scale(.94); } }
.tag { font-family: var(--f-app); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #eef0f2; color: #5b6168; transition: background .3s, color .3s; }
.tag-ok { background: #e2f3e8; color: #1f7a42; }
.tag-wait { background: #fde2cf; color: #c2540a; }
.tag-info { background: #e6ecff; color: #2c4aa8; }

/* ── Daylight sections ─────────────────────────────────────────────────── */
.pitch, .apps { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 96px var(--gutter) 40px; }
.pitch[data-tone="night"] .section-head h2, .pitch[data-tone="night"] h3 { color: var(--moon); }

/* The CRM's feature grid */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 8px 0 44px; background: var(--moon-line); border: 1px solid var(--moon-line); border-radius: 16px; overflow: hidden; }
.feature-grid li { background: rgba(11, 10, 36, .82); padding: 22px 22px 24px; }
.feature-grid .msym { font-size: 24px; color: var(--violet-hi); margin-bottom: 12px; display: block; }
.feature-grid h3 { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin-bottom: 6px; }
.feature-grid p { font-size: 15.5px; color: var(--moon-soft); }
.pitch[data-tone="night"] .scene-picker button { background: rgba(255, 255, 255, .06); color: var(--moon); border-color: var(--moon-line); }
.pitch[data-tone="night"] .scene-picker button[aria-pressed="true"]:not(.tour-toggle) { background: var(--moon); color: var(--ink); border-color: var(--moon); }
.pitch[data-tone="night"] .scene-picker button[aria-pressed="true"]:not(.tour-toggle) .msym { color: var(--violet); }
.pitch[data-tone="night"] .scene-caption { color: var(--moon-soft); }
.pitch[data-tone="night"] .win { box-shadow: 0 0 0 1px rgba(221, 214, 254, .14), 0 40px 90px -30px rgba(124, 58, 237, .55); }

/* Rates & Events: three points, each with its small demonstration (light versions of the night panels) */
.re-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.re-point h3 { font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; margin-bottom: 6px; }
.re-point > p { font-size: 15.5px; color: var(--ink-soft); min-height: 4.6em; }
.re-point .panel { margin-top: 14px; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.re-point.seen .panel { opacity: 1; transform: none; }
.re-note { font-size: 16px; color: var(--ink-soft); margin: 6px 0 34px; }
.re-note a { color: var(--violet-deep); font-weight: 700; }
[data-tone="day"] .panel { background: #fff; border-color: rgba(23, 20, 46, .1); box-shadow: 0 18px 40px -28px rgba(43, 25, 110, .4); backdrop-filter: none; }
[data-tone="day"] .panel-head { color: var(--ink-soft); }
[data-tone="day"] .strip { grid-template-columns: repeat(7, 1fr); gap: 4px; }
[data-tone="day"] .night-cell { background: rgba(124, 58, 237, var(--a, .04)); border-color: rgba(124, 58, 237, .14); padding: 6px 5px; min-height: 64px; }
[data-tone="day"] .night-cell .d { color: var(--ink-soft); font-size: 9.5px; }
[data-tone="day"] .night-cell .p { font-size: 14.5px; margin-top: 6px; color: var(--ink); }
[data-tone="day"] .night-cell.hot .p, [data-tone="day"] .night-cell.hot .d { color: #fff; }
[data-tone="day"] .night-cell .s { color: #9a6700; font-size: 9px; }
[data-tone="day"] .night-cell.hot .s { color: #fde68a; }
[data-tone="day"] .night-cell .was { position: static; display: block; font-size: 9px; color: var(--ink-soft); }
[data-tone="day"] .night-cell.hot .was { color: var(--lilac); }
[data-tone="day"] .night-cell.sold { border-color: rgba(229, 161, 0, .8); }
[data-tone="day"] .strip-note { color: var(--ink-soft); font-size: 13px; }
[data-tone="day"] .ev-list li { grid-template-columns: 1fr auto; border-color: rgba(23, 20, 46, .08); }
[data-tone="day"] .ev-when { grid-column: 1 / -1; color: #b45309; }
[data-tone="day"] .ev-name { font-size: 14px; }
[data-tone="day"] .ev-rooms { font-size: 15px; }
[data-tone="day"] .ev-rooms::after { color: var(--ink-soft); }
[data-tone="day"] .week-day { background: #fff; border-color: rgba(23, 20, 46, .1); min-height: 44px; padding: 5px 6px; }
[data-tone="day"] .week-day .d { color: var(--ink-soft); }
[data-tone="day"] .week-day.lv-quiet { background: #e8effc; border-color: #cfdcf6; }
[data-tone="day"] .week-day.lv-busy { background: #fdf0d5; border-color: #f5d9a1; }
[data-tone="day"] .week-day.lv-peak { background: #f9dcd3; border-color: #f0b9a8; }
.rank { list-style: none; display: grid; gap: 4px; }
.rank li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 7px; font-size: 14px; opacity: 0; transform: translateX(-8px); transition: opacity .35s ease, transform .35s ease, background .3s; }
.rank li.on { opacity: 1; transform: none; }
.rank li .n { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-soft); }
.rank li b { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.rank li.me { background: var(--violet); color: #fff; }
.rank li.me .n { color: var(--lilac); }
.rank li.sold b { color: #9a6700; font-family: var(--f-body); font-weight: 700; font-size: 13px; }
.section-head { max-width: 760px; margin-bottom: 36px; }

.scene-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.scene-picker button {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px;
  border: 1.5px solid rgba(23, 20, 46, .14); background: #fff; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.scene-picker button .msym { font-size: 19px; color: var(--violet); vertical-align: 0; }
.scene-picker button:hover { border-color: var(--violet-hi); }
.scene-picker button[aria-pressed="true"]:not(.tour-toggle) { background: var(--ink); color: #fff; border-color: var(--ink); }
.scene-picker button[aria-pressed="true"]:not(.tour-toggle) .msym { color: var(--violet-hi); }
.scene-picker .tour-toggle { margin-left: auto; padding: 9px 11px; }
.scene-caption { min-height: 1.6em; font-size: 15.5px; color: var(--ink-soft); margin-bottom: 18px; }

.win {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(23, 20, 46, .06), 0 40px 80px -30px rgba(43, 25, 110, .45), 0 0 0 1px rgba(23, 20, 46, .08);
}
.win-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #f1f0f5; border-bottom: 1px solid #e4e3ea; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d9d7e2; }
.win-url { flex: 0 1 420px; margin: 0 auto; text-align: center; font-family: var(--f-mono); font-size: 12px; color: #5f5b75; background: #fff; border-radius: 7px; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-path { color: var(--violet-deep); }
.win-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a86a0; white-space: nowrap; }
.win-view { position: relative; height: calc(740px * var(--s, 1)); overflow: hidden; }

/* ── The app, copied (1200 × 740, scaled by app.js) ────────────────────── */
.rx {
  position: absolute; left: 0; top: 0; width: 1200px; height: 740px; transform-origin: 0 0; transform: scale(var(--s, 1));
  font: 13px/1.35 var(--f-app); color: #333; background: #fff; overflow: hidden;
  -webkit-font-smoothing: antialiased; user-select: none;
}
.rx .msym { font-size: 18px; vertical-align: -4px; }
.rx p { margin: 0; }
.rx-topbar { height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid #eef0f2; }
.rx-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: #2a2540; }
.rx-logo .mark { width: 30px; height: 30px; border-radius: 8px; background: #7c3aed; color: #fff; display: grid; place-items: center; }
.rx-logo .mark .msym { font-size: 20px; vertical-align: 0; }
.rx-logo-sub { font-weight: 400; font-size: 13px; color: #6b7176; margin-left: 4px; }
.rx-search { width: 440px; margin: 0 auto; height: 32px; border: 1px solid #dcdce0; border-radius: 6px; padding: 0 12px; color: #9aa0a6; display: flex; align-items: center; }
.rx-topicons { display: flex; gap: 20px; }
.rx-topicons > span { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: #555; }
.rx-topicons .msym { color: #7c3aed; font-size: 20px; }
.rx-ribbon { display: flex; justify-content: center; gap: 2px; height: 63px; border-bottom: 1px solid #dcdce0; }
.rx-mod { display: flex; flex-direction: column; align-items: center; width: 86px; padding-top: 9px; font-size: 11.5px; color: #555; text-align: center; line-height: 1.12; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.rx-mod .msym { font-size: 21px; color: #6b7176; margin-bottom: 4px; vertical-align: 0; transition: color .2s; }
.rx-mod[data-go] { cursor: pointer; }
.rx-mod[data-go]:hover { color: #7c3aed; }
.rx-mod.active { color: #7c3aed; border-bottom-color: #7c3aed; }
.rx-mod.active .msym { color: #7c3aed; }
.scene { position: absolute; top: 116px; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.scene.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.rx-pagehead { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid #eef0f2; white-space: nowrap; }
.rx-pagehead > b { font-size: 15px; margin-right: 6px; color: #222; }
.le-title { display: inline-flex; align-items: center; gap: 6px; }
.le-title .msym { font-size: 20px; color: #333; }
.rx-btn { height: 29px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid #dcdce0; border-radius: 5px; font-weight: 600; font-size: 12px; background: #fff; white-space: nowrap; transition: background .2s, transform .15s; }
.rx-btn .msym { font-size: 16px; vertical-align: 0; }
.rx-btn-primary { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.rx-btn-primary.pressed { transform: scale(.94); background: #6d28d9; }
.rx-input { height: 29px; border: 1px solid #dcdce0; border-radius: 5px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; color: #9aa0a6; font-size: 12px; background: #fff; }
.rx-input .msym { font-size: 16px; vertical-align: 0; }
.rx-grow { flex: 1; }
.rx-seg { display: inline-flex; border: 1px solid #dcdce0; border-radius: 6px; overflow: hidden; height: 29px; }
.rx-seg > span { padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; border-right: 1px solid #dcdce0; transition: background .2s, color .2s; }
.rx-seg > span:last-child { border-right: 0; }
.rx-seg > span .msym { font-size: 15px; vertical-align: 0; }
.rx-seg > span.on { background: #7c3aed; color: #fff; }
.rx-chip { display: inline-block; padding: 2px 9px; border: 1px solid #dcdce0; border-radius: 10px; font-size: 11.5px; font-weight: 600; margin: 0 4px 4px 0; background: #fff; }
.rx-chip.on { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.rx-pill { padding: 3px 9px; border-radius: 10px; background: #eef0f2; font-size: 11.5px; font-weight: 600; }
.rx-pill-dim { background: transparent; border: 1px solid #dcdce0; color: #6b7176; font-size: 11px; letter-spacing: .03em; }
.rx-subtabs { display: flex; gap: 20px; height: 34px; padding: 0 14px; border-bottom: 1px solid #eef0f2; }
.rx-subtabs > span { display: flex; align-items: center; font-weight: 600; color: #6b7176; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.rx-subtabs > span.on { color: #7c3aed; border-bottom-color: #7c3aed; }
.dim { color: #9aa0a6; font-weight: 400; }

/* Rates */
.rr-body { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; display: flex; }
.rx-filters { width: 186px; padding: 4px 12px; border-right: 1px solid #eef0f2; overflow: hidden; flex-shrink: 0; }
.fk { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7176; margin: 10px 0 5px; }
.pair { display: flex; gap: 6px; }
.pair .rx-input { flex: 1; width: 0; }
.checks { list-style: none; }
.checks li { font-size: 12px; padding: 1px 0; }
.checks li::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 1px solid #9aa0a6; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.rr-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rx-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #eef0f2; flex-shrink: 0; }
.rx-stats > div { padding: 7px 12px; border-right: 1px solid #eef0f2; }
.rx-stats .k { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7176; }
.rx-stats .v { font-size: 20px; font-weight: 700; color: #222; }
.rx-stats .h { font-size: 11px; color: #6b7176; }
.rr-view { flex: 1; display: none; min-height: 0; }
.rr-view.on { display: flex; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; } }
.rr-map { flex: 1; position: relative; background: #e9edf1; overflow: hidden; }
.daymap { position: absolute; inset: 0; width: 100%; height: 100%; }
.daymap .st { fill: #f8f7f2; stroke: #c9ccd4; stroke-width: 1.2; }
.daymap .wt { fill: #c8d9ea; }
.daymap circle { stroke: #fff; stroke-width: .9; transition: r .2s; }
.daymap .d-ours { fill: #7c3aed; }
.daymap .d-other { fill: #94a3b8; }
.daymap .d-sold { fill: #e5a100; }
.daymap .d-hot { r: 7; stroke: #fff; stroke-width: 2.5; }
.rr-tip { position: absolute; left: 0; top: 0; background: #fff; border-radius: 8px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 12px; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .25s; pointer-events: none; }
.rr-tip.on { opacity: 1; }
.rr-tip b { display: block; font-size: 12.5px; }
.rr-tip .pr { color: #7c3aed; font-weight: 700; }
.rr-list { list-style: none; width: 300px; border-left: 1px solid #eef0f2; overflow: hidden; flex-shrink: 0; }
.rr-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #eef0f2; transition: background .2s; }
.rr-list li.hl { background: #f3effe; }
.rr-list .n { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-list .c { font-size: 11px; color: #6b7176; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-list .p { font-weight: 700; text-align: right; }
.rr-list .p.so { color: #8a6d00; }
.rr-list .l { font-size: 11px; color: #6b7176; text-align: right; }
.rr-list i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #7c3aed; }
.rr-list i.other { background: #94a3b8; }
.rr-list i.sold { background: #e5a100; }

.rr-view-cal { background: #fff; }
.cal-wrap { flex: 1; padding: 10px 14px; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cal-m-t { font-weight: 700; font-size: 12.5px; margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .wd { font-size: 9.5px; color: #9aa0a6; text-align: center; padding-bottom: 2px; }
.cal-c { height: 44px; border-radius: 3px; padding: 2px 3px; font-size: 10px; color: #9aa0a6; background: transparent; transition: background .3s ease, color .3s ease; }
.cal-c b { display: block; font-size: 10.5px; color: transparent; transition: color .3s; }
.cal-c .so { display: block; font-size: 9px; color: transparent; }
.cal-c.f { color: #444; }
.cal-c.f b { color: #222; }
.cal-c.f .so { color: #8a6d00; }
.cal-c.q1 { background: #f5f3ff; } .cal-c.q2 { background: #ede9fe; } .cal-c.q3 { background: #ddd6fe; } .cal-c.q4 { background: #c4b5fd; }
.cal-c.q5 { background: #8b5cf6; color: #f5f3ff; } .cal-c.q5 b { color: #fff; } .cal-c.q5 .so { color: #fde68a; }
.cal-c.pick { outline: 2px solid #4c1d95; outline-offset: -1px; }
.cal-side { width: 240px; border-left: 1px solid #eef0f2; padding: 10px 12px; }
.side-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7176; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.side-k .msym { font-size: 15px; vertical-align: 0; }
.side-list { list-style: none; }
.side-list li { display: flex; justify-content: space-between; padding: 5px 8px; background: #f6f7f9; border-radius: 4px; margin-bottom: 3px; font-size: 12px; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; }
.side-list li.on { opacity: 1; transform: none; }
.side-list b { color: #222; }

/* Local Events → Demand */
.le-body { position: absolute; top: 80px; left: 0; right: 0; bottom: 0; display: flex; background: #f4f5f7; }
.le-cal { flex: 1; padding: 10px 14px; }
.le-legend { margin: 0 0 6px; color: #6b7176; justify-content: flex-end; }
.le-legend .lv { border-color: #d6d8de; }
.le-month { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #222; }
.le-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid #e6e7eb; }
.le-grid .wd { font-size: 10.5px; font-weight: 700; color: #6b7176; text-align: center; letter-spacing: .05em; }
.le-c { height: 64px; border-radius: 6px; padding: 5px 7px; border: 1px solid #eef0f2; background: #fff; transition: background .4s, border-color .4s, box-shadow .2s; }
.le-c .n { font-weight: 700; font-size: 12.5px; }
.le-c .r { font-size: 11px; color: #6b7176; margin-top: 12px; }
.le-c .hol { font-size: 10px; color: #2c4aa8; }
.le-c.empty { background: transparent; border-color: transparent; }
.le-c.quiet { background: #e8effc; border-color: #cfdcf6; }
.le-c.busy { background: #fdf0d5; border-color: #f5d9a1; }
.le-c.peak { background: #f9dcd3; border-color: #f0b9a8; }
.le-c.pick { box-shadow: 0 0 0 2px #7c3aed; }
.le-side { width: 360px; padding: 10px 12px; background: #fff; border-left: 1px solid #e6e7eb; overflow: hidden; }
.le-day { border: 1px solid #e6e7eb; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.le-day.hl { border-color: #c4b5fd; box-shadow: 0 0 0 3px #ede9fe; }
.le-day-h { padding: 8px 10px; background: #f6f7f9; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.le-day-h b { font-size: 13px; }
.le-day-h .badge { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; background: #f9dcd3; color: #a3401f; }
.le-day-h .badge.busy { background: #fdf0d5; color: #8a6d00; }
.le-day-h .sum { width: 100%; font-size: 11px; color: #6b7176; }
.le-ev { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; padding: 7px 10px; border-top: 1px solid #f0f1f3; align-items: start; }
.le-ev i { width: 7px; height: 7px; border-radius: 50%; background: #2c4aa8; margin-top: 5px; }
.le-ev b { display: block; font-size: 12.5px; color: #1f3d96; }
.le-ev span { font-size: 11px; color: #6b7176; }
.le-ev em { font-style: normal; font-size: 11.5px; color: #444; white-space: nowrap; }

/* Dashboard */
.wt-stat { font-size: 12px; color: #6b7176; display: inline-flex; align-items: center; gap: 5px; }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e9e57; display: inline-block; }
.wt-grid { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; background: #f4f5f7; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; padding: 10px; }
.wt-col { display: grid; gap: 10px; align-content: start; }
.wt-w { background: #fff; border: 1px solid #e6e7eb; border-radius: 8px; padding: 10px; }
.wt-w-dim { color: #6b7176; }
.wt-h { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.wt-h .msym { color: #7c3aed; font-size: 17px; vertical-align: 0; }
.wt-h .dim { text-transform: none; letter-spacing: 0; font-size: 12px; }
.wt-card { border: 1px solid #eef0f2; border-radius: 6px; padding: 9px 10px; margin-top: 8px; transition: border-color .3s, background .3s, opacity .4s; }
.wt-card-live { border-color: #ddd6fe; }
.wt-card-live.done { background: #f3fbf6; border-color: #bfe5cc; }
.wt-t { font-weight: 700; line-height: 1.35; }
.wt-s { font-size: 12px; color: #6b7176; margin-top: 3px; }
.wt-match { margin-top: 8px; padding: 7px 9px; border-radius: 5px; background: #f6f7f9; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.wt-match .msym { color: #7c3aed; font-size: 16px; vertical-align: 0; }
.wt-actions { display: flex; gap: 6px; margin-top: 9px; }
.wt-card-live.done .wt-actions { opacity: .45; }
.cov { width: 100%; border-collapse: collapse; font-size: 12px; }
.cov th { text-align: left; font-size: 10.5px; color: #6b7176; font-weight: 700; padding: 4px 4px; }
.cov td { padding: 6px 4px; border-top: 1px solid #f0f1f3; }
.cov td:first-child { font-weight: 700; }
.bar { display: inline-block; width: 54px; height: 6px; border-radius: 3px; background: #eef0f2; position: relative; overflow: hidden; vertical-align: 1px; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: #7c3aed; border-radius: 3px; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }

/* Contacts */
.rx-w { width: 200px; }
.ct-pane { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; display: none; }
.ct-pane.on { display: block; animation: fadein .35s ease; }
.ct-record { top: 0; background: #fff; }
.ct-record .rx-subtabs { margin-top: 2px; }
.rx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rx-table th { text-align: left; font-weight: 600; color: #555; padding: 7px 8px; border-bottom: 1px solid #dcdce0; white-space: nowrap; background: #fafafb; }
.rx-table td { padding: 7px 8px; border-bottom: 1px solid #eef0f2; white-space: nowrap; }
.rx-table td:first-child, .rx-table th:first-child { width: 28px; }
.rx-table td:first-child::before { content: ""; display: inline-block; width: 11px; height: 11px; border: 1px solid #9aa0a6; border-radius: 2px; }
.rx-table tr.hl td { background: #f3effe; }
.rx-table td.link { color: #6d28d9; }
.rx-foot { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; display: flex; align-items: center; justify-content: center; border-top: 1px solid #eef0f2; color: #6b7176; font-size: 12px; }
.ct-grid { position: absolute; top: 132px; left: 0; right: 0; bottom: 0; background: #f4f5f7; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 12px; align-content: start; }
.ct-grid .pr-card { align-self: stretch; }
.pr-fields.pr-fields-1 { grid-template-columns: 1fr; }
.pr-fields.pr-fields-1 div { grid-template-columns: 92px 1fr; }
.ct-link-list { list-style: none; }
.ct-link-list li { display: grid; grid-template-columns: 1fr; padding: 7px 8px; border-bottom: 1px solid #f0f1f3; border-radius: 5px; transition: background .3s; }
.ct-link-list li.hl { background: #f3effe; }
.ct-link-list .rel { font-size: 11px; font-weight: 700; color: #6b7176; letter-spacing: .02em; }
.ct-link-list .link { color: #6d28d9; font-weight: 600; }
.ct-link-list .dim { font-size: 11px; }
.ct-hist li { grid-template-columns: 76px 1fr; font-size: 12px; }

/* A hotel's record */
.rx-crumbs { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 12px; color: #6b7176; border-bottom: 1px solid #eef0f2; }
.rx-crumbs b { color: #333; }
.rx-crumbs .msym { font-size: 14px; vertical-align: 0; }
.pr-head { padding: 10px 14px 6px; }
.pr-head h4 { font-size: 20px; color: #222; margin-bottom: 6px; }
.pr-tabs { margin-top: 2px; }
.pr-tabs > span[data-pt] { cursor: pointer; }
.pr-pane { position: absolute; top: 150px; left: 0; right: 0; bottom: 0; background: #f4f5f7; padding: 12px 14px; display: none; gap: 12px; }
.pr-pane.on { display: flex; animation: fadein .35s ease; }
.pr-summary .pr-card:first-child { flex: 1.4; }
.pr-card { flex: 1; background: #fff; border: 1px solid #e6e7eb; border-radius: 8px; padding: 12px 14px; align-self: start; }
.pr-card-h { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7176; margin-bottom: 8px; }
.pr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pr-fields div { display: grid; grid-template-columns: 116px 1fr; padding: 6px 0; border-bottom: 1px solid #f0f1f3; }
.pr-fields dt { color: #6b7176; }
.pr-fields dd { font-weight: 600; color: #222; }
.pr-fields dd.link { color: #6d28d9; }
.pr-hist { list-style: none; }
.pr-hist li { display: grid; grid-template-columns: 86px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0f1f3; }
.pr-hist b { font-weight: 700; }
.pr-rates { flex-direction: column; }
.pr-rr-head { display: flex; align-items: center; gap: 8px; }
.pr-rr-head .rx-chip { margin: 0; }
.pr-rank { font-size: 12.5px; color: #444; }
.pr-rank b { color: #6d28d9; }
.pr-rr-body { display: flex; gap: 12px; flex: 1; min-height: 0; }
.ring { width: 380px; background: #e9edf1; border-radius: 8px; border: 1px solid #e6e7eb; overflow: hidden; }
.ring-svg { width: 100%; height: 100%; }
.pr-rr-list { flex: 1; background: #fff; border: 1px solid #e6e7eb; border-radius: 8px; width: auto; }
.pr-rr-list li { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s, background .2s; }
.pr-rr-list li.on { opacity: 1; transform: none; }
.pr-rr-list li.me { background: #f3effe; }

/* Cursor + toast */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 30; pointer-events: none; transform: translate(1100px, 700px); transition: transform .85s cubic-bezier(.3, .7, .2, 1), opacity .3s; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor svg { width: 22px; height: 22px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.cursor path { fill: #17142e; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.cursor::after { content: ""; position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #7c3aed; opacity: 0; transform: scale(.4); }
.cursor.click::after { animation: ripple .55s ease-out; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
.rx-toast { position: absolute; left: 50%; bottom: 18px; z-index: 31; transform: translate(-50%, 16px); opacity: 0; transition: opacity .3s, transform .3s; background: #1f2328; color: #fff; border-radius: 8px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rx-toast .msym { color: #6ee7a0; }
.rx-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── The two apps ──────────────────────────────────────────────────────── */
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.app-card {
  border-radius: 20px; padding: 34px 32px 30px; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #17123f, #0b0a24 70%); color: var(--moon);
  box-shadow: 0 30px 60px -30px rgba(23, 20, 46, .6);
}
.app-card-demand { background: #fff; color: var(--ink); border: 1px solid rgba(23, 20, 46, .1); box-shadow: 0 30px 60px -36px rgba(43, 25, 110, .35); }
.app-for { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-hi); }
.app-card-demand .app-for { color: var(--violet-deep); }
.app-card h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -.025em; line-height: 1; margin: 14px 0 12px; }
.app-card h3 span { color: var(--violet-hi); }
.app-card-demand h3 span { color: var(--violet); }
.app-sum { font-size: 17.5px; color: var(--moon-soft); margin-bottom: 22px; }
.app-card-demand .app-sum { color: var(--ink-soft); }
.mini-ribbon { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.mini-ribbon .msym {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 20px; vertical-align: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--moon-line); color: var(--lilac);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.app-card-demand .mini-ribbon .msym { background: #f5f3ff; border-color: #e4dcfd; color: var(--violet); }
.app-card:hover .mini-ribbon .msym { background: var(--violet); color: #fff; border-color: var(--violet); transform: translateY(-2px); }
.mini-ribbon .msym:nth-child(2) { transition-delay: .03s; } .mini-ribbon .msym:nth-child(3) { transition-delay: .06s; }
.mini-ribbon .msym:nth-child(4) { transition-delay: .09s; } .mini-ribbon .msym:nth-child(5) { transition-delay: .12s; }
.mini-ribbon .msym:nth-child(6) { transition-delay: .15s; } .mini-ribbon .msym:nth-child(7) { transition-delay: .18s; }
.mini-ribbon .msym:nth-child(8) { transition-delay: .21s; } .mini-ribbon .msym:nth-child(9) { transition-delay: .24s; }
.mini-ribbon .msym:nth-child(10) { transition-delay: .27s; } .mini-ribbon .msym:nth-child(11) { transition-delay: .3s; }
.mini-ribbon .msym:nth-child(12) { transition-delay: .33s; }
.app-list { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.app-list li { padding-left: 24px; position: relative; font-size: 16px; }
.app-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--violet-hi); box-shadow: 0 0 10px var(--violet-hi); }
.app-card-demand .app-list li::before { background: var(--violet); box-shadow: none; }
.apps-signin { text-align: center; margin-top: 22px; color: var(--ink-soft); }
.apps-signin a { color: var(--violet-deep); font-weight: 700; }

/* ── Dusk again ────────────────────────────────────────────────────────── */
.closing {
  margin-top: 64px; color: var(--moon);
  background: linear-gradient(180deg, rgba(11, 10, 36, 0) 0, #3a2a6e 26%, #17123f 58%, var(--midnight) 100%);
}
.closing-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 160px var(--gutter) 88px; }
.closing-line {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: .98; letter-spacing: -.03em; margin: 18px 0 18px; text-wrap: balance;
}
.closing-sub { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--moon-soft); margin-bottom: 30px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 26px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--moon-line);
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 900; font-size: 18px; }
.foot-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.foot-brand .brand-mark .msym { font-size: 17px; }
.foot-line { color: var(--moon-soft); font-size: 15px; }
.foot-links { display: flex; gap: 18px; margin-left: auto; font-size: 15px; }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-links a:hover { color: var(--violet-hi); }
.foot-copy { width: 100%; font-family: var(--f-mono); font-size: 12px; color: var(--moon-soft); }

/* ── Smaller screens ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 28px; min-height: 0; }
  .nightmap { margin-bottom: 36px; }
  .night-track { grid-template-columns: 1fr; gap: 0; }
  .clock { display: none; }
  .stop-time { display: block; }
  .stop { min-height: 0; padding: 56px 0; }
  .app-cards { grid-template-columns: 1fr; }
  .night-intro { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .re-points { grid-template-columns: 1fr; }
  .re-point > p { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-cta { gap: 12px; }
  .nav-cta .link-quiet { font-size: 14px; }
  .panel { padding: 14px; }
  .panel-deed, .panel-listing { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cov-group { white-space: normal; }
  .deed-arrow { transform: rotate(90deg); justify-self: center; }
  .fields { grid-template-columns: 1fr; }
  .ev-list li { grid-template-columns: 1fr auto; }
  .ev-when { grid-column: 1 / -1; }
  .week .week-day .n { font-size: 12px; }
  .app-card { padding: 26px 22px 24px; }
  .scene-picker button { font-size: 13.5px; padding: 8px 12px; }
  .win-dots { display: none; }
  .win-bar { gap: 8px; padding: 0 10px; }
  .closing-inner { padding-top: 120px; }
  .foot-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
}
