/* 50400 Studios website: Glass look (matches GlassColors in the Stacked app). Shared by every page. */

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090D;
  --glow-green: rgba(16, 185, 129, 0.25);
  --glow-red: rgba(239, 68, 68, 0.25);
  --glow-purple: rgba(139, 92, 246, 0.25);

  --card-fill: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), rgba(8, 9, 13, 0.6);
  --card-border: rgba(255, 255, 255, 0.18);
  --card-blur: blur(20px) saturate(140%);
  --input-fill: rgba(255, 255, 255, 0.06);

  --r-card: 20px;
  --r-panel: 26px;
  --r-control: 16px;

  --text: #FFFFFF;
  --text-2: #C7CBD4;
  --hint: #B0B5C0;
  --link: #C4B5FD;
  --accent: #8B5CF6;
  /* Button fill: #8B5CF6 with white text is 4.2:1, this shade is 5.7:1. */
  --accent-fill: #7C3AED;
  --success: #6EE7B7;
  --error: #F87171;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* Reduce look: solid cards, no blur, no animation. Same glows and corners. */
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  :root {
    --card-fill: #1C1F2A;
    --card-border: rgba(255, 255, 255, 0.14);
    --card-blur: none;
    --input-fill: #252938;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Three big blurred glows, fixed behind everything. */
.glows { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glows span {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 26s ease-in-out infinite alternate;
}
.glows .g1 { background: radial-gradient(circle, var(--glow-green) 0%, transparent 65%); top: -30vmax; left: -25vmax; }
.glows .g2 { background: radial-gradient(circle, var(--glow-red) 0%, transparent 65%); top: 25vh; right: -35vmax; animation-delay: -9s; }
.glows .g3 { background: radial-gradient(circle, var(--glow-purple) 0%, transparent 65%); bottom: -35vmax; left: 5vw; animation-delay: -17s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vmax, 3vmax) scale(1.08); }
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent-fill); color: #fff; padding: 8px 14px; border-radius: var(--r-control); z-index: 10; }

/* Glass surfaces */
.glass {
  background: var(--card-fill);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: var(--card-blur);
  backdrop-filter: var(--card-blur);
}
.panel { border-radius: var(--r-panel); }
.card { padding: 22px 20px; }

/* Header */
.site-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

/* Hero: one left column. The right side stays free for the tour phone (site.js tilts it there).
   The hero sits above the phone but lets clicks on its empty space through. */
.hero {
  position: relative; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100svh - 72px); padding: 16px 0 40px;
}
.hero-copy { max-width: 580px; pointer-events: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.hero-actions .btn { width: auto; }
.hero h1 { font-size: clamp(42px, 11vw, 68px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 800; }
.hero .lede { color: var(--text-2); margin: 0 0 24px; max-width: 34em; font-size: 18px; }

/* Join form */
.join { padding: 22px 20px; }
.join h2 { margin: 0 0 4px; font-size: 21px; }
.join .sub { margin: 0 0 16px; color: var(--text-2); font-size: 15px; }
label, legend { font-weight: 500; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  color: var(--text);
  background: var(--input-fill);
  border: 1px solid var(--card-border);
  border-radius: var(--r-control);
}
input[type="email"]::placeholder { color: var(--hint); opacity: 1; }
input[type="email"]:focus { outline: 2px solid var(--link); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { padding: 0; margin-bottom: 4px; }
.hint { color: var(--hint); font-size: 14px; margin: 0 0 10px; }
.ticks { display: grid; gap: 8px; }
.tick {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--r-control);
  background: var(--input-fill);
  cursor: pointer; font-weight: 400; font-size: 15px;
}
.tick input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.tick:has(input:checked) { border-color: var(--link); }
.tick.age { margin-bottom: 16px; }
/* The consent tick: its wording comes from /admin > Legal (versioned), so it can run to a few lines. */
.tick.consent { align-items: flex-start; margin-bottom: 16px; line-height: 1.45; }
.tick.consent input { margin-top: 1px; }
/* "Our privacy promise" next to a form's submit button. */
.form-promise { margin: 10px 0 0; font-size: 14px; }
.tick.age[hidden] { display: none; }
.turnstile { min-height: 65px; margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 12px 20px;
  font: inherit; font-weight: 700; font-size: 17px;
  color: #fff;
  background: var(--accent-fill);
  border: 1px solid var(--accent);
  border-radius: var(--r-control);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5); }
.btn[disabled] { cursor: progress; opacity: 0.85; transform: none; }
.btn.secondary { background: transparent; border-color: var(--card-border); box-shadow: none; }

.status { margin: 12px 0 0; min-height: 1.4em; font-size: 15px; }
.status.error { color: var(--error); }
.status.ok { color: var(--success); }
.done { text-align: center; padding: 10px 0; }
.done h2 { color: var(--success); font-size: 24px; margin: 0 0 6px; }
.done p { color: var(--text-2); margin: 0; }

/* Sections */
section { padding: 20px 0; }
.section-title { font-size: 26px; margin: 0 0 14px; }

/* ---- App tour ----
   Default (no JS, or the Reduce look): a plain list, one card per scene.
   .tour-live (added by site.js): sticky phone, crossfading screen, dots. */
.tour { --shot-h: 90vh; }
.tour .section-title { position: relative; z-index: 2; }
.join-section { max-width: 640px; margin: 0 auto; }
.tour-scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tour-scene { min-width: 0; }
.tour-scene h3 { font-size: 21px; line-height: 1.25; }
.tour-shots { display: flex; gap: 12px; margin-top: 16px; }
.tour-shots img {
  display: block; flex: 0 1 220px; min-width: 0; width: 220px; height: auto;
  border-radius: var(--r-card); border: 1px solid var(--card-border); background: #000;
}
.tour-stage, .tour-caption { display: none; }

.tour-live .tour-body { display: grid; }
.tour-live .tour-scenes, .tour-live .tour-stage { grid-area: 1 / 1; }
.tour-live .tour-scenes { gap: 0; }
.tour-live .tour-scene {
  position: relative; display: block; height: calc(var(--shots, 1) * var(--shot-h));
  padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.tour-mark { position: absolute; left: 0; right: 0; height: var(--shot-h); pointer-events: none; }
.tour-live .tour-shots,
.tour-live .tour-text {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.tour-live .tour-stage {
  position: sticky; top: 0; z-index: 1; align-self: start;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tour-live .tour-caption { display: block; text-align: center; max-width: 30em; min-height: 7.2em; margin-top: 18px; padding: 0 8px; }
.tour-caption h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; }
.tour-caption p { margin: 0; color: var(--text-2); font-size: 16px; }
.tour-caption.fade { animation: tour-fade 0.35s ease; }
@keyframes tour-fade { from { opacity: 0; transform: translateY(6px); } }

/* Phone frame in the style of a Pixel Pro: 44px outer / 37px screen corners at 320px wide. */
.tour {
  --pw: clamp(170px, min(64vw, calc((100svh - 240px) * 0.44)), 280px);
}
.tour-device { position: relative; }
.tour-live .phone { transform-origin: 50% 30%; }
/* While tilted, layers behind the phone give it real thickness. Each layer gets the phone's transform plus its own
   depth, so no preserve-3d is needed (that made Chrome draw the screenshots at low resolution). */
.phone-slabs {
  display: none; position: absolute; inset: 0; pointer-events: none;
  border-radius: calc(var(--pw) * 0.1375);
}
.phone-slabs.is-tilted { display: block; }
.phone-slab { position: absolute; inset: 0; border-radius: inherit; transform-origin: 50% 30%; }
/* Its own layer while tilted, so Chrome draws the screenshots at full resolution before the 3D turn. */
.phone.is-tilted .phone-screen { will-change: transform; }
.phone {
  position: relative; width: var(--pw);
  padding: calc(var(--pw) * 0.028);
  border-radius: calc(var(--pw) * 0.1375);
  /* Metal rim: lit edges, darker middle. Inside it a thin black bezel. */
  background:
    linear-gradient(#050507, #050507) padding-box,
    linear-gradient(145deg, #6B6E78 0%, #2A2C33 22%, #17181C 50%, #2A2C33 78%, #5A5D66 100%) border-box;
  border: calc(var(--pw) * 0.012) solid transparent;
  box-shadow:
    var(--edge, 0 0 0 0 transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 90px -20px rgba(0, 0, 0, 0.8),
    0 20px 120px -10px rgba(139, 92, 246, 0.28);
}
.phone::before, .phone::after {
  content: ""; position: absolute; right: calc(var(--pw) * -0.026); width: calc(var(--pw) * 0.014);
  background: linear-gradient(90deg, #2A2C33, #4A4D56); border-radius: 0 3px 3px 0;
}
.phone::before { top: 21%; height: 8%; }
.phone::after { top: 33%; height: 15%; }
.phone-screen {
  position: relative; aspect-ratio: 9 / 19.5; overflow: hidden;
  border-radius: calc(var(--pw) * 0.1156); background: #000;
}
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.35s ease;
}
.phone-screen img.on { opacity: 1; }
.phone-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  /* Glare: stronger while the phone is tilted toward the light (--tilt runs 1 to 0 as it lands). */
  background: linear-gradient(115deg, rgba(255, 255, 255, calc(0.07 + 0.08 * var(--tilt, 0))) 0%,
    rgba(255, 255, 255, 0.02) 30%, transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-cam {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--pw) * 0.06);
  width: calc(var(--pw) * 0.034); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #050507; box-shadow: 0 0 0 1px #24252B;
}

.tour-dots {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: 10px; display: flex; flex-direction: column; gap: 2px;
}
.tour-dot {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.tour-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.5); transition: height 0.2s ease, background-color 0.2s ease;
}
.tour-dot:hover::before { background: var(--text-2); }
.tour-dot[aria-current]::before { height: 20px; background: var(--link); }
.grid { display: grid; gap: 16px; }
.card h2, .card h3 { margin: 0 0 8px; }
.card p { margin: 0 0 10px; color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }
.promise ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.promise li { margin: 6px 0; }
.promise strong { color: var(--text); }

details { border-top: 1px solid var(--card-border); padding: 12px 0; }
details:first-of-type { border-top: 0; padding-top: 4px; }
summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
details p { margin: 8px 0 0; color: var(--text-2); }

/* Footer */
.site-footer { padding: 28px 0 40px; color: var(--text-2); font-size: 15px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
/* The two short lines under the footer (Settings > Footer): no cookies, made in the UK. */
.footer-lines { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; color: var(--hint); font-size: 14px; }

/* Simple pages (privacy, confirm, remove, 404) */
.page { padding: 24px 0 20px; }
.page .card { padding: 26px 22px; }
.page h1 { font-size: clamp(30px, 8vw, 42px); margin: 0 0 12px; line-height: 1.1; }
.page h2 { font-size: 20px; margin: 26px 0 6px; }
.page h2.part { font-size: 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--card-border); }
.page h3 { font-size: 18px; margin: 22px 0 6px; }
.page p, .page li { color: var(--text-2); }
.page .center { text-align: center; }
.page .actions { display: grid; gap: 10px; margin-top: 20px; }
.muted { color: var(--hint); font-size: 14px; }

/* Phones: the tilted phone pokes out past the edge at the top, so clip sideways (clip keeps sticky working). */
@media (max-width: 759px) {
  .wrap { overflow-x: clip; }
  /* Text at the top; the tilted phone fills the space under it on the first screen. */
  .hero { justify-content: flex-start; padding-top: 24px; }
}
@media (min-width: 720px) {
  .card { padding: 28px; }
  .join { padding: 28px; }
  .ticks { grid-template-columns: 1fr 1fr; }
  .ticks.platforms { grid-template-columns: repeat(3, 1fr); }
  .page .actions { grid-template-columns: auto auto; justify-content: center; }
  .page .actions .btn { width: auto; }
  .tour-scene { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
  .tour-shots { margin-top: 0; }
  .tour-shots img { flex-basis: 170px; width: 170px; }
}
@media (min-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .tour-shots img { flex-basis: 220px; width: 220px; }

  /* Tour: captions on the left, the phone stays in the middle of the screen on the right. */
  .tour { --pw: clamp(260px, calc((100vh - 110px) * 0.45), 400px); }
  .tour-live .tour-body { grid-template-columns: minmax(0, 1fr) auto; column-gap: 96px; }
  .tour-live .tour-stage { grid-area: 1 / 2; padding-right: 40px; }
  .tour-live .tour-caption { display: none; }
  .tour-live .tour-scene { padding-top: calc(50vh - 90px); }
  .tour-live .tour-text {
    position: sticky; top: calc(50vh - 90px); width: auto; height: auto; overflow: visible;
    clip-path: none; white-space: normal;
    padding: 28px; border-radius: var(--r-card);
    background: var(--card-fill); border: 1px solid var(--card-border);
    -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur);
    transition: border-color 0.3s ease;
  }
  .tour-live .tour-scene.is-active .tour-text { border-color: var(--link); }
  .tour-live .tour-text { padding: 36px 40px; }
  .tour-text h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 12px; }
  .tour-live .tour-text p { font-size: 19px; line-height: 1.6; }
}

/* ---- Admin (/admin) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin { max-width: 1120px; padding-bottom: 40px; }
.admin h2 { font-size: 19px; margin: 0 0 10px; }
.admin h2.sub-title { margin-top: 24px; }
.btn.small { width: auto; min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn.secondary:hover { box-shadow: none; border-color: var(--link); }
.btn.danger { background: transparent; color: var(--error); border-color: rgba(248, 113, 113, 0.5); box-shadow: none; }
.btn.danger:hover { border-color: var(--error); box-shadow: none; }
input[type="password"], input[type="search"], input[type="text"], input[type="url"], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: inherit; color: var(--text);
  background: var(--input-fill);
  border: 1px solid var(--card-border);
  border-radius: var(--r-control);
}
input[type="password"]:focus, input[type="search"]:focus, input[type="text"]:focus, input[type="url"]:focus, textarea:focus, select:focus { outline: 2px solid var(--link); outline-offset: 1px; }
select option { background: #1C1F2A; color: var(--text); }
textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
input[type="url"]::placeholder { color: var(--hint); opacity: 1; }
input:disabled, textarea:disabled { opacity: 0.75; cursor: not-allowed; }

.emails .field .hint { margin: 0; }
.launch-progress { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; margin: 0 0 16px;
  border: 1px solid var(--card-border); border-radius: var(--r-control); background: var(--input-fill); }
.launch-progress .progress-text { margin: 0; color: var(--text); font-weight: 500; }
.launch-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.login-view { max-width: 440px; margin: 24px auto 0; }
.login-view h1 { margin: 0 0 4px; font-size: 28px; }
.login-view .sub { margin: 0 0 18px; color: var(--text-2); }
.login-back {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 2px; min-height: 44px;
  color: var(--link); font-weight: 500; text-decoration: none;
}
.login-back span { font-size: 20px; line-height: 1; transition: transform 0.2s ease; }
.login-back:hover { text-decoration: underline; }
.login-back:hover span { transform: translateX(-3px); }

.admin-title { font-size: clamp(28px, 7vw, 38px); margin: 4px 0 2px; }
#load-status { margin: 0 0 14px; }
.admin .panel { margin-bottom: 16px; }
.admin .grid.two { gap: 0 16px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 0 16px; }
.stat { display: grid; gap: 2px; padding: 16px 18px; }
.stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-2); font-size: 14px; }

.empty { text-align: center; }
.empty h2 { margin: 0 0 6px; }

.readout { margin: 0 0 10px; color: var(--text-2); font-size: 15px; min-height: 1.5em; }
.chart-svg { display: block; width: 100%; height: 160px; overflow: visible; touch-action: manipulation; }
.chart-svg:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 6px; }
.chart-svg .bar { fill: var(--accent); }
.chart-svg .bar.zero { fill: rgba(255, 255, 255, 0.18); }
.chart-svg .bar.on { fill: var(--link); }
.chart-svg .hit { fill: transparent; cursor: pointer; }
.chart-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--hint); font-size: 13px; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 4px; }
.bar-label { min-width: 0; overflow-wrap: anywhere; }
.bar-count { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { display: block; width: 100%; height: 8px; }
.bar-track .track { fill: rgba(255, 255, 255, 0.08); }
.bar-track .bar { fill: var(--accent); }

.toolbar { display: grid; gap: 0 12px; margin-bottom: 4px; }
.toolbar .field { margin-bottom: 12px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-self: end; }
#shown { margin: 0 0 8px; }

.people { width: 100%; border-collapse: collapse; font-size: 15px; }
.people th { text-align: left; font-weight: 500; color: var(--text-2); padding: 8px 10px; border-bottom: 1px solid var(--card-border); }
.people td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: middle; }
.people td.email { overflow-wrap: break-word; min-width: 15em; font-weight: 500; }
.people td.features { color: var(--text-2); }
.people td.actions { text-align: right; }
.tick-yes { color: var(--success); font-weight: 700; }
.tick-no { color: var(--hint); }
.more { display: flex; margin: 14px auto 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-control);
  background: #1C1F2A; border: 1px solid var(--card-border); color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-size: 15px;
}

/* Phones: each row becomes a small card. */
@media (max-width: 599px) {
  .people thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .people, .people tbody { display: block; }
  .people tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px;
    padding: 12px 14px; margin-bottom: 10px;
    border: 1px solid var(--card-border); border-radius: var(--r-control);
  }
  .people td { display: contents; }
  .people td::before { content: attr(data-label); color: var(--hint); font-size: 13px; align-self: center; }
  .people td.email { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
  .people td.email::before, .people td.actions::before { content: none; }
  .people td.email, .people td.actions { grid-column: 1 / -1; display: block; padding: 0 0 6px; border: 0; }
  .people td.actions { padding: 8px 0 0; text-align: left; }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: minmax(0, 1fr) 200px auto; align-items: end; }
}

/* Admin: Sharing (link card preview), Errors, Releases. */
.share-card { overflow: hidden; border: 1px solid var(--card-border); border-radius: var(--r-control); background: #1C1F2A; max-width: 520px; }
.share-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #000; }
.share-text { padding: 12px 14px 14px; display: grid; gap: 2px; }
.share-host { margin: 0; color: var(--hint); font-size: 13px; text-transform: lowercase; }
.share-title { margin: 0; color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.share-desc { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.share-row + .share-row { margin-top: 4px; }
.error-message { overflow-wrap: anywhere; }
.error-item details { margin-top: 6px; }
.error-item summary { color: var(--link); cursor: pointer; font-size: 14px; }
.error-stack { margin: 8px 0; padding: 10px 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 13px; color: var(--text-2); background: var(--input-fill); border: 1px solid var(--card-border); border-radius: 12px; }
.error-sightings { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.release-preview .release { margin: 0; }

/* ======================================================================================================
   Studio pages (/, /roadmap, /contact, /privacy, /terms, app pages). Same Glass look; the glows are the
   logo's purples and come from the "theme" setting (studio.js sets --glow-1 to --glow-4).
   ====================================================================================================== */
:root {
  --glow-1: rgba(76, 29, 149, 0.25);
  --glow-2: rgba(109, 40, 217, 0.25);
  --glow-3: rgba(139, 92, 246, 0.25);
  --glow-4: rgba(196, 181, 253, 0.25);
  --amber: #FCD34D;
  --pill: 999px;
}
.studio-glows .g1 { background: radial-gradient(circle, var(--glow-1) 0%, transparent 65%); top: -30vmax; left: -25vmax; }
.studio-glows .g2 { background: radial-gradient(circle, var(--glow-2) 0%, transparent 65%); top: 20vh; right: -35vmax; animation-delay: -9s; }
.studio-glows .g3 { background: radial-gradient(circle, var(--glow-3) 0%, transparent 65%); bottom: -35vmax; left: 5vw; animation-delay: -17s; }
.studio-glows .g4 {
  background: radial-gradient(circle, var(--glow-4) 0%, transparent 65%);
  width: 45vmax; height: 45vmax; top: 55vh; left: 35vw; animation-delay: -5s; animation-duration: 34s;
}

/* Logo dial: each ring turns at its own speed. In the header it turns while hovered (and stays where it stopped);
   as a spinner it always turns. The Reduce look stops all of it (see the reduce rule at the top). */
.logo-mark { display: inline-grid; place-items: center; }
.logo-mark svg, .spinner svg, .coming-dial svg { display: block; overflow: visible; }
.ring { transform-box: view-box; transform-origin: 50% 50%; animation: ring-turn var(--t, 3s) linear infinite; animation-play-state: paused; }
.r1 { --t: 1.6s; }
.r2 { --t: 2.6s; animation-direction: reverse; }
.r3 { --t: 3.8s; }
.r4 { --t: 5.2s; animation-direction: reverse; }
.r5 { --t: 7s; }
@keyframes ring-turn { to { transform: rotate(360deg); } }
.studio-brand:hover .ring, .studio-brand:focus-visible .ring, .spinner .ring, .app-card.coming:hover .ring { animation-play-state: running; }
.coming-dial .ring { animation-duration: calc(var(--t) * 4); }
/* The "More apps" dial turns as a whole, slowly (one transform on the graphics card). Turning each ring nonstop made
   the browser lay the page out again on every frame; the rings only spin on their own while the card is hovered. */
.coming-dial svg { animation: ring-turn 30s linear infinite; }

.studio-brand .logo-mark svg { width: 36px; height: 36px; transition: transform 0.4s ease; }
.studio-brand:hover .logo-mark svg { transform: scale(1.08); }
.spinner { display: grid; place-items: center; gap: 12px; padding: 56px 0; }
.spinner svg { width: 64px; height: 64px; }

/* Missing page (404): the dial turns slowly as a whole (one transform, like the "More apps" dial). The Reduce look
   stops it. */
.lost .lost-dial { display: grid; place-items: center; margin: 4px 0 18px; }
.lost-dial svg { display: block; width: 96px; height: 96px; overflow: visible; animation: ring-turn 14s linear infinite; }
.lost { text-align: center; }
.page .lost .actions, .lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.lost .actions .btn { width: auto; }
.lost-suggest { font-size: 1.05rem; }
.lost-suggest a { font-weight: 600; word-break: break-all; }

/* Header nav */
.studio-header { flex-wrap: wrap; gap: 8px 20px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-nav a { position: relative; padding: 10px 0; color: var(--text-2); font-weight: 500; text-decoration: none; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 1px;
  background: var(--link); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

/* Reveals: content fades up as it scrolls in (studio.js adds .is-in). `translate` so it doesn't fight `transform`. */
.reveal { opacity: 0; translate: 0 18px; transition: opacity 0.6s ease var(--d, 0s), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Status chips: In development, Beta, Live, Planned, Done */
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  color: var(--text-2); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-chip[data-status="in_development"] { color: var(--link); }
.status-chip[data-status="in_development"] { position: relative; }
/* The dot's pulse is a ring that grows and fades: transform and opacity only, so it runs on the graphics card. (A
   pulsing box-shadow made the browser repaint next to the glass cards on every frame.) */
.status-chip[data-status="in_development"]::after {
  content: ""; position: absolute; left: 11px; top: calc(50% - 3.5px); width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0; pointer-events: none; animation: dot-ping 2s ease-out infinite;
}
.status-chip[data-status="beta"] { color: var(--amber); }
.status-chip[data-status="live"], .status-chip[data-status="done"] { color: var(--success); }
@keyframes dot-ping { 0% { transform: scale(1); opacity: 0.45; } 70%, 100% { transform: scale(2.3); opacity: 0; } }

/* ---- Home: hero ---- */
.studio-hero {
  position: relative; display: grid; gap: 28px; align-items: center;
  min-height: min(760px, calc(100svh - 80px)); padding: 16px 0 40px;
}
.studio-hero .hero-copy { max-width: 600px; }
.studio-hero h1 { font-size: clamp(40px, 10vw, 72px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 800; }
.studio-hero .lede { color: var(--text-2); margin: 0 0 26px; font-size: 18px; max-width: 34em; }
.studio-hero .lede strong { color: var(--text); }
.studio-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.studio-hero .hero-actions .btn { width: auto; }
.featured-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 18px;
  padding: 6px 12px 6px 6px; border-radius: var(--pill); color: var(--text); text-decoration: none;
  font-size: 15px; font-weight: 500;
  background: var(--card-fill); border: 1px solid var(--card-border);
  -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.featured-chip:hover { border-color: var(--link); transform: translateY(-1px); }
.featured-chip img { width: 28px; height: 28px; border-radius: 8px; }

.hero-visual { display: flex; justify-content: center; perspective: 1200px; --pw: clamp(190px, 52vw, 290px); }
.hero-float { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.4s ease-out; }
.hero-phone { animation: hero-bob 7s ease-in-out infinite; }
.hero-app-icon {
  position: absolute; left: calc(var(--pw) * -0.18); bottom: 14%; width: calc(var(--pw) * 0.26); height: auto;
  border-radius: 22%; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: hero-bob 7s ease-in-out -3.5s infinite;
}
@keyframes hero-bob { 50% { transform: translateY(-12px); } }
/* Background media: behind the whole hero, dimmed so the text stays readable. */
.studio-hero.has-bg { grid-template-columns: minmax(0, 1fr); }
.hero-bg { position: absolute; inset: 0 -16px; z-index: -1; overflow: hidden; border-radius: var(--r-panel); }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 13, 0.92) 0%, rgba(8, 9, 13, 0.7) 60%, rgba(8, 9, 13, 0.45) 100%); }

/* Store buttons: Google Play first. A plain dark button, or the official badge picture if one is uploaded. */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; z-index: 2; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px;
  border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: #fff; }
.store-badge.has-image { padding: 0; border: 0; background: none; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badges.small { margin-top: 4px; }
.store-badges.small .store-badge { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.store-badges.small .store-badge img { height: 44px; }
.i-line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; }

/* ---- Home: app gallery ---- */
.section-head { margin-bottom: 18px; max-width: 40em; }
.section-head p { margin: 0; color: var(--text-2); }
.app-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease,
    opacity 0.6s ease var(--d, 0s), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
/* Spotlight that follows the pointer (studio.js sets --mx and --my). */
.app-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(196, 181, 253, 0.16), transparent 60%);
}
.app-card:hover, .app-card:focus-within { --lift: -4px; border-color: rgba(196, 181, 253, 0.55); box-shadow: 0 22px 50px -24px rgba(139, 92, 246, 0.7); }
.app-card:hover::before { opacity: 1; }
.app-card-pic { margin: -22px -22px 6px; width: calc(100% + 44px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.app-icon.blank { display: block; background: var(--input-fill); border: 1px solid var(--card-border); }
.app-card:hover .app-icon { transform: rotate(-6deg) scale(1.06); }
.app-name { margin: 6px 0 0; font-size: 22px; }
.card-link { color: var(--text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.app-card:has(.card-link:focus-visible) { outline: 2px solid var(--link); outline-offset: 3px; }
.app-tagline { margin: 0; color: var(--text-2); }
.card-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; font-size: 15px; }
.card-go svg { transition: transform 0.2s ease; }
.app-card:hover .card-go svg { transform: translateX(4px); }
.app-card.coming { border: 1px dashed rgba(255, 255, 255, 0.24); border-radius: var(--r-card); justify-content: center; }
.app-card.coming:hover { --lift: 0px; box-shadow: none; }
.app-card.coming p { margin: 0; color: var(--text-2); }
.coming-dial svg { width: 56px; height: 56px; }
.coming-link { position: relative; z-index: 2; font-weight: 600; }

/* ---- Signup panel ---- */
.signup-section { max-width: 680px; margin: 0 auto; }
.ticks.apps { grid-template-columns: minmax(0, 1fr); }

/* ---- Page headings (roadmap, contact) ---- */
.page-head { padding: 20px 0 8px; max-width: 46em; }
.page-head h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.02em; }
.page-head .lede { margin: 0; color: var(--text-2); font-size: 18px; }

/* ---- Roadmap ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: var(--pill); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text);
  background: var(--input-fill); border: 1px solid var(--card-border); transition: border-color 0.2s ease, background-color 0.2s ease;
}
.chip:hover { border-color: var(--link); }
.chip[aria-pressed="true"] { border-color: var(--link); background: rgba(124, 58, 237, 0.35); }
.road-board { display: grid; gap: 28px; padding: 18px 0 8px; }
.road-col-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 17px; }
.road-count { color: var(--hint); font-size: 14px; font-weight: 500; }
.road-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
/* Quieter than a full glass card: a light see-through fill, thin border, no blur, so a column of them stays calm. */
.road-item.glass {
  padding: 12px 14px 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: border-color 0.2s ease;
}
.road-item:hover { border-color: rgba(196, 181, 253, 0.45); }
.road-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 8px; }
.road-top .muted { font-size: 13px; }
.app-chip { padding: 2px 10px; border-radius: var(--pill); border: 1px solid var(--card-border); color: var(--text-2); font-size: 13px; }
.road-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.road-main:has(.road-more[open]) { align-items: flex-start; }
.road-text { min-width: 0; flex: 1; }
.road-item h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.road-meta { margin: 4px 0 0 !important; font-size: 13px !important; color: var(--hint) !important; }
.road-empty { margin: 0; padding: 4px 2px; }
.road-show-more { margin-top: 12px; }
/* "More details": closed until tapped, so cards stay short. */
.road-more { margin-top: 2px; }
.road-more summary { display: inline-flex; align-items: center; min-height: 28px; color: var(--link); font-size: 14px; cursor: pointer; }
.road-more-body { padding: 4px 0 2px; }
.road-more-body p { margin: 0 0 8px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.road-more-body ul, .road-more-body ol { margin: 4px 0 8px; padding-left: 20px; color: var(--text-2); font-size: 15px; }
.road-more-body h2, .road-more-body h3 { font-size: 15px; margin: 10px 0 4px; }
/* Picking a roadmap: one per app, then the studio's. */
.road-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.road-pick {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 8px; cursor: pointer;
  font: inherit; color: var(--text); text-align: left;
  background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--r-control);
  -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur); transition: border-color 0.2s ease;
}
.road-pick:hover { border-color: var(--link); }
.road-pick[aria-pressed="true"] { border-color: var(--accent); background: rgba(124, 58, 237, 0.35); }
.road-pick img { width: 32px; height: 32px; border-radius: 9px; }
.road-pick-dot { width: 32px; height: 32px; border-radius: 9px; background: rgba(196, 181, 253, 0.25); }
.road-pick-name { font-weight: 600; }
.road-pick-count { color: var(--text-2); font-size: 14px; }
.road-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 22px 0 0; }
.road-heading img { width: 40px; height: 40px; border-radius: 11px; }
.road-heading h2 { margin: 0; font-size: 24px; }
.road-item p { margin: 0; color: var(--text-2); font-size: 15px; }
.vote {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 40px;
  padding: 0 12px; font-size: 15px;
  border-radius: var(--pill); border: 1px solid var(--card-border); background: var(--input-fill); color: var(--text);
  font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}
.vote:hover { border-color: var(--link); transform: translateY(-2px); }
.vote[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-fill); }
.vote.is-busy { cursor: progress; }
.vote.is-busy svg { animation: vote-bob 0.8s ease-in-out infinite; }
.vote.pop svg { animation: vote-pop 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes vote-bob { 50% { transform: translateY(-3px); } }
@keyframes vote-pop { 40% { transform: translateY(-6px) scale(1.3); } }
.vote-check { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 25; }

/* ---- Contact ---- */
.contact-section { max-width: 760px; }
.contact-who { display: grid; gap: 0 16px; }
.optional { color: var(--hint); font-weight: 400; }
.ticks.kinds { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .ticks.kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Delete my data and Complaint about my data sit last, side by side, so neither is picked by mistake. */
.tick.kind { align-items: flex-start; padding: 10px 12px; }
.tick.kind input { margin-top: 1px; }
.kind-text { display: grid; gap: 2px; }
.kind-label { font-weight: 700; }
.kind-hint { color: var(--hint); font-size: 14px; }
.delete-note {
  margin: -4px 0 16px; padding: 12px 14px;
  border: 1px solid var(--card-border); border-left: 3px solid var(--link);
  border-radius: var(--r-control); background: var(--input-fill);
}
.delete-note p { margin: 0; }
.delete-note p + p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.email-hint { margin: 4px 0 0; }
.counter { margin: 2px 0 0; text-align: right; }

/* ---- App pages ---- */
.app-hero { display: grid; gap: 20px; align-items: center; padding: 24px 0 12px; }
.app-hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.app-hero h1 { font-size: clamp(40px, 10vw, 64px); line-height: 1.04; margin: 10px 0 8px; letter-spacing: -0.02em; }
.app-hero .lede { margin: 0; color: var(--text-2); font-size: 19px; }
.app-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 22px 0 0; }
.app-hero .hero-actions .btn { width: auto; }
.prose h2 { font-size: 21px; margin: 18px 0 6px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.shot-strip { list-style: none; margin: 0; padding: 4px 4px 14px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shot-strip li { flex: none; scroll-snap-align: start; }
.shot-strip img { display: block; width: clamp(170px, 44vw, 240px); height: auto; border-radius: var(--r-card); border: 1px solid var(--card-border); background: #000; }
.mini-road { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.mini-road li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text); }
/* Tags on app cards and pages; app legal links; social links in the footer. */
.tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 10px; border-radius: var(--pill); border: 1px solid var(--card-border); color: var(--text-2); font-size: 13px; }
.back-link { max-width: 720px; margin: 16px auto 8px; }
/* "All apps" at the top of each app's page: back to the studio's app list. */
.home-link { position: relative; z-index: 2; margin: 0; font-size: 15px; }
.home-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.home-link a:hover { text-decoration: underline; }
.home-link svg { flex: none; transition: transform 0.2s ease; }
.home-link a:hover svg { transform: translateX(-3px); }
.site-footer .social { width: 100%; }

/* ---- Releases: "What's new", the changelog and the home page's latest updates ---- */
.whats-new { margin: 28px 0; }
.whats-new-more { margin: 12px 0 0; font-weight: 600; }
.release .release-title { font-size: 21px; margin: 0 0 2px; overflow-wrap: anywhere; }
.release .release-meta { margin: 0 0 12px; color: var(--hint); font-size: 14px; }
.release-list { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.release-list .release { scroll-margin-top: 24px; }
.crumbs ol { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--hint); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--hint); }
.crumbs [aria-current] { color: var(--text-2); }
.updates-section { margin: 40px 0; }
.update-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.update { position: relative; padding: 18px 20px; border-radius: var(--r-card); }
.update-app { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.update-app img { width: 28px; height: 28px; border-radius: 8px; }
.update-app .muted { font-weight: 400; }
.update h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.update:has(.card-link:focus-visible) { outline: 2px solid var(--link); outline-offset: 3px; }
.update:hover { border-color: rgba(196, 181, 253, 0.45); }
.update-text { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---- FAQ (/faq and the home page's "Questions"): same rows as Stacked's FAQ, with real buttons ---- */
.faq-home { margin: 40px 0; max-width: 800px; }
.faq-tools { display: grid; gap: 6px; max-width: 560px; margin: 18px 0 4px; }
.faq-count { margin: 0; min-height: 1.6em; }
.faq-list { display: grid; gap: 16px; max-width: 800px; margin: 4px 0 28px; }
.faq-group .faq-cat { font-size: 21px; margin: 0 0 4px; }
.faq-item { border-top: 1px solid var(--card-border); scroll-margin-top: 24px; }
.faq-cat + .faq-item, .faq-group > .faq-item:first-child { border-top: 0; }
.faq-group .faq-h { margin: 0; font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px;
  padding: 12px 0; margin: 0; background: none; border: 0; border-radius: 6px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text); text-align: left;
}
.faq-q:hover .faq-q-text { text-decoration: underline; text-underline-offset: 3px; }
.faq-q svg { flex: none; color: var(--text-2); transition: transform 0.25s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Open and close: the row grows to the answer's height. Hidden (and out of the tab order) once it's closed. */
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.28s ease, visibility 0s linear 0.28s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.28s ease, visibility 0s; }
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a-body { padding-bottom: 14px; }
.faq-a-body p, .faq-a-body li { color: var(--text-2); }
.faq-a-body p { margin: 0 0 10px; }
.faq-a-body ul, .faq-a-body ol { margin: 0 0 10px; padding-left: 20px; }
.faq-a-body strong { color: var(--text); }
.faq-more { margin: 14px 0 0; font-weight: 600; }
.faq-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.faq-more svg { transition: transform 0.2s ease; }
.faq-more a:hover svg { transform: translateX(4px); }

/* ---- Beta testing (/beta) ---- */
.beta-list { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.beta-card { display: flex; flex-direction: column; gap: 14px; }
.beta-card-head { display: flex; align-items: center; gap: 14px; }
.beta-card-head .app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.beta-card h2 { margin: 0; font-size: 24px; }
.beta-card .app-tagline { margin: 2px 0 0; }
.beta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.beta-meta .tags { margin: 0; }
.beta-intro { margin: 0; }
.beta-cols { display: grid; gap: 4px 24px; }
.beta-cols h3 { margin: 4px 0 6px; font-size: 16px; }
.beta-cols p, .beta-cols li { margin: 0 0 6px; color: var(--text-2); font-size: 15px; }
.beta-cols ul, .beta-cols ol { margin: 0 0 6px; padding-left: 20px; }
.beta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 4px; }
.beta-actions .btn { width: auto; }
.beta-apply { scroll-margin-top: 16px; }
/* The beta disclaimer: an amber-edged note above the Apply button. */
/* The feedback page: star rating, screenshot preview. */
.ticks.rating { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ticks.rating .tick { justify-content: center; gap: 6px; padding: 8px 4px; font-weight: 700; }
.ticks.rating .tick input { position: absolute; opacity: 0; pointer-events: none; }
.ticks.rating .tick:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.ticks.rating span[aria-hidden] { color: var(--hint); font-size: 18px; }
.ticks.rating .tick:has(input:checked) span[aria-hidden] { color: var(--amber, #FCD34D); }
.feedback-form textarea { min-height: 110px; }
.shot-preview { display: grid; gap: 8px; justify-items: start; margin: 0 0 16px; }
.shot-preview img { max-width: 100%; max-height: 320px; border-radius: var(--r-control); border: 1px solid var(--card-border); }
.done .btn { margin-top: 18px; }
.beta-rules { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--card-border); border-radius: var(--r-control);
  background: var(--input-fill); font-size: 15px; }
.beta-rules h3 { margin: 0 0 8px; font-size: 17px; }
.beta-rules ul { margin: 0 0 12px; padding-left: 20px; }
.beta-rules li { margin: 0 0 6px; color: var(--text-2); }
.beta-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(252, 211, 77, 0.5); border-radius: var(--r-control);
  background: var(--input-fill); color: var(--text); font-size: 15px; }

/* ---- Home page announcements (an open beta, a launch) and the confetti ---- */
.news { display: grid; gap: 16px; padding: 12px 0 8px; }
.announce {
  display: grid; gap: 18px; align-items: center; padding: 26px 22px;
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 24px 70px -28px rgba(139, 92, 246, 0.9);
}
.announce-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.announce-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.announce .lede { margin: 0; color: var(--text-2); font-size: 18px; max-width: 40em; }
.announce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 20px; }
.announce-actions .btn { width: auto; }
.announce-actions .store-badges { margin: 0; }
.news .beta-apply { margin-top: 4px; }
/* Confetti: tiny pieces moved by transform-and-fade animations only, which run on the graphics card. */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; contain: strict; }
.confetti i { position: absolute; left: 0; top: 0; display: block; border-radius: 1px; opacity: 0; will-change: transform, opacity; }

@media (max-width: 479px) {
  .site-nav { gap: 0 16px; }
  .studio-brand { font-size: 17px; }
}
@media (min-width: 720px) {
  .contact-who { grid-template-columns: 1fr 1fr; }
  .ticks.apps { grid-template-columns: 1fr 1fr; }
  .app-hero { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .beta-cols { grid-template-columns: 1fr 1fr; }
  .announce { grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 34px 36px; }
  .announce:not(:has(.announce-icon)) { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .studio-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding: 32px 0 64px; }
  .hero-visual { --pw: clamp(240px, 24vw, 300px); }
}
@media (min-width: 960px) {
  .road-board { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

/* ---- Studio admin: sign-in, tabs, editors, inbox, dashboard ---- */
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.small-text { font-size: 14px; }
input[type="email"], input[type="number"], input[type="date"] {
  width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; color: var(--text);
  background: var(--input-fill); border: 1px solid var(--card-border); border-radius: var(--r-control);
}
input[type="number"]:focus, input[type="date"]:focus { outline: 2px solid var(--link); outline-offset: 1px; }
input[type="date"] { color-scheme: dark; }
input[type="color"] { width: 100%; height: 50px; padding: 4px; background: var(--input-fill); border: 1px solid var(--card-border); border-radius: var(--r-control); cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; outline: 2px solid var(--error); outline-offset: 1px; }
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; min-height: 420px; }
.label-like { font-weight: 500; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.error-text { color: var(--error); }
.warn-text { color: var(--amber); }
.toast.ok { border-color: rgba(110, 231, 183, 0.6); }
.toast.error { border-color: var(--error); }
.toast.error::before { content: "\26A0\FE0E  "; color: var(--error); }

/* Two-step sign-in */
.steps { margin: 0 0 12px; padding-left: 22px; color: var(--text-2); display: grid; gap: 6px; }
.qr { width: 232px; padding: 16px; margin: 6px 0 12px; background: #FFFFFF; border-radius: var(--r-control); }
.qr svg { display: block; width: 200px; height: 200px; }
.secret { display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--input-fill); border: 1px solid var(--card-border);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
#mfa-code { font-size: 22px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }

/* Tabs */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 8px; scrollbar-width: thin; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--text-2); cursor: pointer;
  background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--pill);
  -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur);
}
.tab:hover { color: var(--text); border-color: var(--link); }
.tab[aria-selected="true"] { color: #FFF; background: var(--accent-fill); border-color: var(--accent); }
/* Wide screens: the tabs become a sidebar on the left, the open tab fills the rest */
@media (min-width: 960px) {
  .admin { max-width: 1320px; }
  #app-view { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  #app-view > .maintenance-banner { grid-column: 1 / -1; grid-row: 1; }
  #app-view > .tab-panel { grid-column: 2; grid-row: 2; }
  .admin-tabs {
    grid-column: 1; grid-row: 2; position: sticky; top: 16px;
    flex-direction: column; overflow: visible; padding: 4px 0; margin: 0;
  }
  .tab { justify-content: space-between; border-radius: var(--r-control); }
}
.tab-badge { min-width: 22px; padding: 1px 7px; border-radius: var(--pill); background: #FFF; color: #4C1D95; font-size: 13px; font-weight: 700; text-align: center; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; }
.panel-head .muted { margin: 4px 0 0; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Editors */
.editor h2 { margin-top: 22px; }
.editor h2:first-child { margin-top: 0; }
.editor fieldset { border: 1px solid var(--card-border); border-radius: var(--r-control); padding: 12px 14px 0; margin: 0 0 14px; }
.editor legend { padding: 0 6px; color: var(--text-2); }
.save-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.editor-split { display: grid; gap: 16px; align-items: start; }
.preview-col { display: grid; gap: 12px; min-width: 0; }
.admin .preview-title { font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.preview-frame { position: relative; isolation: isolate; overflow: hidden; padding: 0 20px; border-radius: var(--r-panel); border: 1px dashed var(--card-border); background: var(--bg); }
.preview-frame .glows { position: absolute; }
.preview-frame .studio-hero { min-height: 0; padding: 24px 0; grid-template-columns: minmax(0, 1fr); }
.preview-frame .studio-hero h1 { font-size: 40px; }
.preview-frame .hero-visual { --pw: 200px; }
.preview-cards { margin: 0; padding: 0; list-style: none; }
.legal-preview { max-height: 760px; overflow: auto; }
.glow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; }
.switch-row { margin: 0 0 14px; }
.switch-row .hint { margin: 4px 0 0 62px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 50px; height: 30px; margin: 0; cursor: pointer; }
.switch-track { position: relative; flex: none; width: 50px; height: 30px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.14); border: 1px solid var(--card-border); transition: background 0.2s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #C7CBD4; transition: transform 0.2s ease, background 0.2s ease; }
.switch input:checked + .switch-track { background: var(--accent-fill); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: #FFF; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--link); outline-offset: 3px; }
.link-rows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.link-rows li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.media-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.media-preview { width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; border: 1px solid var(--card-border); background: rgba(0, 0, 0, 0.35); font-size: 13px; text-align: center; padding: 4px; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: contain; }
.media-controls { display: grid; gap: 8px; min-width: 0; }
.media-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.media-field .status { margin-top: 6px; min-height: 0; }
.shot-rows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.shot-row { padding: 12px; border: 1px solid var(--card-border); border-radius: var(--r-control); }
.address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.address-row code { padding: 6px 10px; border-radius: 10px; background: var(--input-fill); }

/* Lists of apps, roadmap items and legal pages */
.item-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: var(--r-control); }
.item.is-editing { border-color: var(--link); }
.item-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: cover; }
.item-icon.blank { background: rgba(255, 255, 255, 0.1); }
.item-main { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; }
.item-main .muted { font-size: 14px; overflow-wrap: anywhere; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn.small.icon-btn { min-width: 44px; padding: 8px 0; justify-content: center; }
.pill { display: inline-block; justify-self: start; padding: 2px 10px; border-radius: var(--pill); border: 1px solid var(--card-border); font-size: 13px; color: var(--text-2); }
.pill.warn { color: var(--amber); border-color: rgba(252, 211, 77, 0.5); }
.pill.status-new { color: #FFF; background: var(--accent-fill); border-color: var(--accent); }
.pill.status-open { color: var(--amber); border-color: rgba(252, 211, 77, 0.5); }
.pill.status-closed { color: var(--success); border-color: rgba(110, 231, 183, 0.5); }

/* Admin > Log: rows by day, a row opens its before/after side by side */
.log-toolbar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.log-security { margin: 0; }
.log-day-title { margin: 18px 0 8px; font-size: 15px; color: var(--text-2); }
.log-entry { display: block; padding: 0; }
.log-entry.is-warn { border-color: rgba(248, 113, 113, 0.55); }
.log-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-control);
}
.log-icon { flex: none; width: 28px; font-size: 20px; text-align: center; }
.log-main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.log-main .muted { overflow-wrap: anywhere; }
.log-name { overflow-wrap: anywhere; }
.log-details { padding: 0 14px 14px; display: grid; gap: 10px; }
.log-item-note { margin: 0 0 8px; color: var(--text-2); }
.log-diff { display: grid; gap: 6px; }
.log-diff-row { display: grid; grid-template-columns: minmax(90px, 0.6fr) 1fr 1fr; gap: 8px; align-items: start; }
.log-diff-head { color: var(--hint); font-size: 13px; }
.log-diff-row:not(.changed) .log-value { color: var(--hint); }
.log-field { font-size: 14px; overflow-wrap: anywhere; }
.log-diff-row.changed .log-field { color: #FFFFFF; font-weight: 700; }
.log-side { display: none; color: var(--hint); font-size: 13px; }
.log-value {
  margin: 0; padding: 8px 10px; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  border-radius: 10px; background: var(--input-fill); font-family: inherit; font-size: 14px;
}
.log-mark { color: #FFFFFF; border-radius: 4px; padding: 0 1px; }
.log-mark.before { background: rgba(248, 113, 113, 0.35); text-decoration: line-through; }
.log-mark.after { background: rgba(110, 231, 183, 0.3); }
.log-more { display: flex; justify-content: center; margin: 4px 0 16px; }
.log-sentinel { height: 1px; }
@media (max-width: 640px) {
  .log-diff-head { display: none; }
  .log-diff-row { grid-template-columns: 1fr; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
  .log-side { display: block; }
}
.road-admin { display: grid; gap: 16px; }
.road-admin-col h2 { display: flex; align-items: center; gap: 10px; }
.toolbar-inline { max-width: 320px; }
/* FAQ tab: drag a question to reorder it within its category (the ↑ ↓ buttons do the same). */
.toolbar-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.toolbar-row .toolbar-inline { flex: 1 1 220px; }
.faq-stats-note { grid-column: 1 / -1; margin: 0; }
.faq-cats { margin-bottom: 16px; }
.faq-cats .item-list { margin-bottom: 0; }
.faq-admin-cat h2 { margin: 18px 0 10px; }
.faq-admin .item[draggable="true"] { cursor: grab; }
.faq-admin .item.is-dragging { opacity: 0.5; }
.faq-admin .item.drop-before { box-shadow: 0 -3px 0 var(--link); }
.faq-admin .item.drop-after { box-shadow: 0 3px 0 var(--link); }
.drag-handle { color: var(--hint); font-size: 20px; line-height: 1; user-select: none; }
.faq-preview .faq-q { cursor: default; }
.faq-admin .btn[aria-pressed="true"] { border-color: var(--accent); background: rgba(124, 58, 237, 0.35); }
.legal-group h2 { margin-top: 8px; }
.settings-grid { display: grid; gap: 16px; align-items: start; }
.admin .settings-grid .panel { margin: 0; }

/* Inbox */
.toolbar.inbox-toolbar, .toolbar.dash-toolbar { grid-template-columns: minmax(0, 1fr); align-items: end; }
.inbox-split { display: grid; gap: 16px; align-items: start; }
.inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox-row {
  width: 100%; display: grid; gap: 4px; padding: 12px 14px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--card-fill); border: 1px solid var(--card-border); border-radius: var(--r-control);
}
.inbox-row:hover, .inbox-row.is-open { border-color: var(--link); }
.inbox-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.inbox-when { margin-left: auto; }
.inbox-from { overflow-wrap: anywhere; }
.inbox-snippet { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.empty-row { padding: 12px 0; }
.thread-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.thread-head h2 { margin: 0; overflow-wrap: anywhere; }
.thread-head .muted { margin: 4px 0 0; overflow-wrap: anywhere; }
.bubble { padding: 12px 14px; border-radius: var(--r-control); margin: 0 0 10px; border: 1px solid var(--card-border); }
.bubble.from-them { background: rgba(255, 255, 255, 0.05); }
.bubble.from-us { background: rgba(124, 58, 237, 0.18); border-color: rgba(139, 92, 246, 0.5); margin-left: 24px; }
.bubble-meta { margin: 0 0 4px; color: var(--hint); font-size: 13px; }
.bubble-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-border); }
.tick.inline { display: inline-flex; margin: 0 0 6px; }

/* Dashboard */
.dash-toolbar .chips { margin: 0 0 12px; }
.stats.dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-note { color: var(--hint); font-size: 13px; }
.dash-chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: manipulation; }
.dash-chart:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 6px; }
.dash-chart .bar { fill: var(--accent); }
.dash-chart .bar.on { fill: var(--link); }
.dash-chart .grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.dash-chart .axis { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.dash-chart .tick { fill: var(--hint); font-size: 12px; font-family: var(--font); }
.dash-chart .hit { fill: transparent; cursor: pointer; }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-track.tall { height: 12px; }
.funnel-drop { margin: 4px 0 0; color: var(--hint); font-size: 14px; }
.table-scroll { overflow-x: auto; }
/* Beta tab */
.bulk-bar { margin: 4px 0 12px; }
.pill-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* Admin: Broken links and Redirects */
.link-path { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; overflow-wrap: anywhere; }
.link-arrow { color: var(--text-2); }
.link-form:not(:empty) { margin-top: 10px; }
.link-form .editor { margin: 0; }
.pill.trend-new { color: #FFF; background: var(--accent-fill); border-color: var(--accent); }
.pill.trend-up { color: var(--amber); border-color: rgba(252, 211, 77, 0.5); }
.pill.trend-down { color: var(--success); border-color: rgba(110, 231, 183, 0.5); }
.test-row { display: grid; gap: 0 12px; align-items: end; }
.test-row .btn { margin-bottom: 16px; }
.test-out p { margin: 0 0 6px; overflow-wrap: anywhere; }
@media (min-width: 560px) { .test-row { grid-template-columns: minmax(0, 1fr) auto; } }
.beta-table td.select-cell, .beta-table th:first-child { width: 44px; }
.beta-table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
/* Beta feedback and the banned list (admin). */
.fb-list, .ban-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.fb-card { padding: 16px; }
.fb-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.fb-stars { color: var(--amber); letter-spacing: 2px; }
.fb-who { margin: 0 0 8px; overflow-wrap: anywhere; }
.fb-part h3 { margin: 10px 0 2px; font-size: 14px; font-weight: 700; color: var(--hint); }
.fb-part p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-card .item-actions { margin-top: 12px; }
.ban-list { gap: 0; }
.ban-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--card-border); }
.ban-row p { margin: 2px 0 0; }
.ban-row .btn { width: auto; flex: none; }
.danger-zone { border-color: rgba(248, 113, 113, 0.5); }
.danger-zone .btn { width: auto; }
.num-table td, .num-table th[scope="row"] { font-variant-numeric: tabular-nums; }
.num-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 599px) {
  .people.num-table { display: table; }
  .people.num-table tbody { display: table-row-group; }
  .people.num-table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
  .people.num-table tr { display: table-row; padding: 0; margin: 0; border: 0; }
  .people.num-table td { display: table-cell; }
  .people.num-table td::before { content: none; }
}
@media (min-width: 720px) {
  .link-rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; align-items: center; }
  .promise-rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto; }
  .toolbar.inbox-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); }
  .toolbar.dash-toolbar { grid-template-columns: 320px auto; }
  .stats.dash-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .road-admin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .editor-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .preview-col { position: sticky; top: 12px; }
  .inbox-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .inbox-split .thread { position: sticky; top: 12px; }
}
/* Reduce look: solid fills, no movement. */
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .switch-track, .switch-track::after { transition: none; }
}
/* Folding sections in /admin (fold.js): the title is a button; folded, only the title row shows, with a hint and a
   dot when something inside needs a look. The whole row is the tap target (44px at least). */
.admin .fold-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.admin .fold-head { overflow-anchor: none; }
.admin .fold-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: -8px 0; padding: 8px 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.admin .fold-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.admin .fold-hint { color: var(--hint); font-size: 15px; font-weight: 400; }
.admin .fold-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--error); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25); }
.admin .fold-chev { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; transition: transform 0.2s ease; }
.admin .fold-btn:hover .fold-chev { stroke: var(--link); }
.admin .is-folded > .fold-head .fold-chev { transform: rotate(-90deg); }
.admin .foldable.is-folded { align-self: start; }
.admin .foldable.is-folded > :not(.fold-head) { display: none !important; }
.admin .foldable.is-folded > .fold-head { margin-top: 0; margin-bottom: 0; }
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .admin .fold-chev { transition: none; }
}
.votes-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; }
.votes-row p { margin: 0; }
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .road-item.glass { background: var(--card-fill); border-color: var(--card-border); }
}
.tick.studio-news { margin: 0 0 16px; }

/* Maintenance mode page: the text from /admin keeps its line breaks. */
.maintenance-text { white-space: pre-line; }
.maintenance-banner { margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; border-color: rgba(252, 211, 77, 0.5); }

/* ---- Legal pages: "The short version" (a glass card at the top, when the page has a summary) ---- */
.short-version { margin: 18px 0 26px; }
.short-version h2 { margin-top: 0; font-size: 20px; }
.short-version ul { margin: 0 0 12px; padding-left: 20px; }
.short-version li { margin: 6px 0; }
.short-version p { margin: 8px 0 0; }
.full-text-title { scroll-margin-top: 16px; }

/* ---- Privacy promise (/privacy-promise) ---- */
.promise-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.promise-item h2 { margin: 0 0 6px; font-size: 19px; }
.promise-item p { margin: 0; color: var(--text-2); }
.promise-how { color: var(--text); font-weight: 700; }
.promise-outro { color: var(--text-2); margin: 0 0 32px; }

/* ---- Admin: reply-due dates and consent records ---- */
.pill.due { color: var(--text-2); }
.pill.due-urgent { color: var(--error); border-color: rgba(248, 113, 113, 0.6); font-weight: 700; }
.consent-cell details { font-size: 14px; }
.consent-cell summary { cursor: pointer; color: var(--link); }
.consent-cell ul, .consent-lines { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
.consent-wording { margin: 6px 0 0; color: var(--text); font-style: italic; }
.consent-history { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }

/* ---- Admin: chart notes, search engines, phone notifications ---- */
.dash-chart .note-mark { fill: var(--link); }
.dash-chart .note-line { stroke: var(--link); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.5; }
.chart-notes { list-style: none; margin: -4px 0 10px; padding: 0; color: var(--text); font-size: 15px; }
.chart-notes li { padding-left: 14px; position: relative; }
.chart-notes li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--link); }
.add-note { margin-top: 10px; }
.admin h3.sub-title { margin: 22px 0 8px; font-size: 17px; }
.note-list, .device-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.note-list li, .device-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.note-main, .device-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.note-day { font-weight: 700; }
.note-text { overflow-wrap: anywhere; }
.note-link { overflow-wrap: anywhere; font-size: 14px; }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.device-main .status { margin: 0; flex-basis: 100%; }
.note-box { margin: 12px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--card-border); background: rgba(124, 58, 237, 0.12); }
.note-box p { margin: 0; }
.notify-card { margin-bottom: 16px; }
.notify-form .switch-row { margin-bottom: 8px; }

/* ---- Announcements: the bar at the top, cards and the pop-up (/admin > Announcements) ----
   Each style has a colour (--a: its RGB) for a tint, an edge and the small label. The bar's tint sits on a solid
   #0E0F15 so its text contrast never depends on the glows behind it (tools/contrast.py checks every style). */
[data-style="info"] { --a: 59, 130, 246; --a-text: #93C5FD; }
[data-style="news"] { --a: 139, 92, 246; --a-text: #C4B5FD; }
[data-style="launch"] { --a: 16, 185, 129; --a-text: #6EE7B7; }
[data-style="warning"] { --a: 245, 158, 11; --a-text: #FCD34D; }
[data-style="celebration"] { --a: 236, 72, 153; --a-text: #F9A8D4; }
.announce-chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--a-text, var(--link)); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(var(--a, 139, 92, 246), 0.55);
}
.announce-close {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer;
}
.announce-close:hover { background: rgba(255, 255, 255, 0.16); }
.announce-close:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.announce-close svg { stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }

.announce-bar {
  position: relative; z-index: 5; color: var(--text);
  background: linear-gradient(rgba(var(--a, 139, 92, 246), 0.22), rgba(var(--a, 139, 92, 246), 0.22)), #0E0F15;
  border-bottom: 1px solid rgba(var(--a, 139, 92, 246), 0.5);
  animation: bar-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.announce-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 1120px; margin: 0 auto; padding: 10px 16px;
}
.announce-bar-words { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.announce-bar .announce-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.announce-bar .announce-text { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.4; }
/* Links on the coloured bar are white and underlined: the purple link colour isn't 4.5:1 on every tint. */
.announce-bar .announce-text a { color: var(--text); text-decoration: underline; }
.announce-bar .announce-btn { width: auto; padding: 8px 16px; min-height: 0; font-size: 15px; }
.announce-bar .announce-close { width: 32px; height: 32px; }
@keyframes bar-in { from { transform: translateY(-100%); opacity: 0; } }

.announce[data-style] { border-left: 4px solid rgba(var(--a), 0.85); position: relative; }
.announce .announce-title { margin: 0 0 8px; font-size: clamp(28px, 6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.announce > .announce-close { position: absolute; top: 14px; right: 14px; }

.announce-pop {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto auto 24px; padding: 26px 24px 22px;
  color: var(--text); border-top: 3px solid rgba(var(--a, 139, 92, 246), 0.9); overflow: auto;
  animation: pop-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.announce-pop::backdrop { background: rgba(8, 9, 13, 0.45); }
.announce-pop-body { display: grid; gap: 10px; justify-items: start; padding-right: 30px; }
.announce-pop .announce-title { margin: 0; font-size: 24px; line-height: 1.2; }
.announce-pop .announce-text { margin: 0; color: var(--text-2); }
.announce-pop .announce-btn { width: auto; margin-top: 4px; }
.announce-pop > .announce-close { position: absolute; top: 12px; right: 12px; }
.announce-pop.is-preview { position: relative; display: block; margin: 0; }
@keyframes pop-in { from { transform: translateY(18px); opacity: 0; } }
@media (min-width: 720px) { .announce-pop { margin: auto; } }

/* An app's icon next to the studio logo in the header of its pages. */
.header-app { display: inline-flex; margin-right: auto; margin-left: -6px; }
.header-app img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.brand-pair { display: inline-flex; align-items: center; gap: 10px; }
.brand-pair .studio-brand .logo-mark svg { width: 30px; height: 30px; }
/* The dial turns while a page loads its content (studio.js), and on hover. Never in the Reduce look. */
.is-loading .studio-brand .ring { animation-play-state: running; }

/* Reduce look: the announcements arrive without moving, on solid fills. */
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .announce-pop { background: #1C1F2A; }
  .announce-pop::backdrop { background: rgba(8, 9, 13, 0.6); }
}

/* ---- Admin: presets, announcements, icons ---- */
.preset-panel { margin-bottom: 16px; }
.preset-panel > summary { cursor: pointer; font-size: 19px; font-weight: 700; padding: 4px 0; }
.preset-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 12px 0; }
.preset-tools .field { margin: 0; flex: 1 1 220px; }
.preset-group { margin: 14px 0 0; }
.preset-group > h3 { margin: 0 0 8px; font-size: 17px; }
.preset-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.preset-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 16px; }
.preset-thumb { width: 96px; height: 60px; border-radius: 10px; object-fit: cover; background: #14161F; border: 1px solid rgba(255, 255, 255, 0.12); }
.preset-main { display: grid; gap: 4px; min-width: 0; }
.preset-main strong { overflow-wrap: anywhere; }
.preset-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.preset-form { display: grid; gap: 10px; margin: 10px 0; padding: 12px; border-radius: 16px; border: 1px solid var(--card-border); }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.schedule-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.warn-list { margin: 8px 0; padding: 10px 14px 10px 30px; border-radius: 14px; border: 1px solid rgba(252, 211, 77, 0.5); color: var(--text); }
.section-rows { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.section-rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.section-rows .switch-row { margin: 0; }
.preview-home { display: grid; gap: 12px; }
.preview-home .preview-main { display: grid; gap: 18px; padding: 0 12px 12px; }
.preview-home .announce-bar { animation: none; }
.preview-devices { display: grid; gap: 14px; }
.preview-device { border: 1px solid var(--card-border); border-radius: 18px; padding: 10px; background: #0B0C11; overflow: hidden; }
.preview-device > p { margin: 0 0 8px; font-size: 13px; color: var(--hint); }
.preview-device.phone { width: min(360px, 100%); }
.preview-device .announce-bar { animation: none; }
.preview-device .announce .announce-title { font-size: 26px; }
.announce-admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.announce-admin-list .item-main .muted { overflow-wrap: anywhere; }
.chips.wrap-chips { flex-wrap: wrap; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.icon-cell { display: grid; gap: 6px; justify-items: center; padding: 12px 8px; border-radius: 16px; border: 1px solid var(--card-border); font-size: 13px; color: var(--text-2); text-align: center; }
.icon-cell.light { background: #F2F3F5; color: #2A2D37; }
.icon-cell.dark { background: #1C1F2A; }
.tab-mock { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-radius: 10px 10px 0 0; font-size: 13px; }
.icon-cell.light .tab-mock { background: #FFFFFF; color: #1E1F24; }
.icon-cell.dark .tab-mock { background: #2A2D37; color: #FFFFFF; }
.home-mock { width: 72px; height: 72px; overflow: hidden; }
.home-mock.round { border-radius: 50%; }
.home-mock.square { border-radius: 18px; }
.home-mock img, .tab-mock img { display: block; }
.share-mock { width: 100%; max-width: 240px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); }
.icon-files { width: 100%; border-collapse: collapse; font-size: 14px; }
.icon-files th, .icon-files td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.icon-files td:last-child { overflow-wrap: anywhere; }
.maintenance-news { display: grid; gap: 10px; margin: 0 0 16px; }
.maintenance-news .announce-bar { border-radius: 16px; border: 1px solid rgba(var(--a), 0.5); animation: none; }
.home-mock.themed { background: #3B3F6B; }

/* ---- Devlog: /blog, /blog/<slug>, the home page's section and app pages' latest posts ---- */
.feed-link { margin: 10px 0 0; font-size: 15px; }
.post-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-list.compact { margin-top: 0; }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); }
.post-card:hover { border-color: rgba(196, 181, 253, 0.45); }
.post-card:has(.card-link:focus-visible) { outline: 2px solid var(--link); outline-offset: 3px; }
.post-card-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.post-card-title { margin: 0; font-size: 20px; line-height: 1.3; }
.post-list.compact .post-card-title { font-size: 18px; }
.post-summary { margin: 0; color: var(--text-2); font-size: 15px; }
.post-meta { margin: 0; color: var(--hint); font-size: 14px; }
.post-app { margin: 0; }
.post-tag { display: inline-block; padding: 2px 10px; border-radius: var(--pill); border: 1px solid var(--card-border);
  color: var(--text-2); font-size: 13px; text-decoration: none; position: relative; z-index: 2; }
a.post-tag:hover { border-color: var(--link); color: var(--text); }
.posts-section { margin: 40px 0; }
.posts-slot { margin: 28px 0; }

.post { max-width: 46em; margin: 0 auto; }
.post-head { padding: 20px 0 14px; }
.post-head h1 { font-size: clamp(32px, 8vw, 50px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -0.02em; }
.post-head .lede { margin: 0 0 10px; color: var(--text-2); font-size: 19px; }
.post-cover { display: block; width: 100%; height: auto; border-radius: var(--r-card); margin: 0 0 20px;
  border: 1px solid var(--card-border); }
.post-body { font-size: 18px; }
.post-body h2 { font-size: 24px; margin: 28px 0 8px; }
.post-body h3 { font-size: 20px; margin: 22px 0 6px; }
.post-body p, .post-body li { color: var(--text-2); }
.post-body blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.post-body blockquote p { color: var(--text); font-style: italic; margin: 0; }
.post-code { margin: 18px 0; padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border); font-size: 14px; line-height: 1.5; }
.post-code code { font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; color: var(--text); white-space: pre; }
.post-code:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.post-figure { margin: 20px 0; }
.post-figure img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 0 auto; }
.post-actions { max-width: 46em; margin: 18px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.post-nav { max-width: 46em; margin: 24px auto 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--r-card);
  color: var(--text); text-decoration: none; }
.post-nav-link.next { text-align: right; align-items: flex-end; }
.post-nav-link:hover { border-color: var(--link); }
.post-nav-label { display: inline-flex; align-items: center; gap: 6px; color: var(--hint); font-size: 14px; }
.post-slot + .post-actions + .post-nav + .signup-section, .post-actions + .signup-section { margin-top: 36px; }
.admin .preview-sub { font-size: 13px; color: var(--hint); margin: 14px 0 8px; font-weight: 600; }
.admin .post-preview .post-head h1 { font-size: 30px; }
.admin .post-body-input { font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace; font-size: 14px; line-height: 1.5; }
.admin .post-picture-box, .admin .post-share-box { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--card-border);
  border-radius: var(--r-control); }
.admin .post-picture-box summary, .admin .post-share-box summary { cursor: pointer; font-weight: 600; min-height: 32px; }

/* ---- Status page (/status) ---- */
.level-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--pill);
  border: 1px solid currentColor; font-size: 14px; font-weight: 600; white-space: nowrap; }
.level-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
[data-level="working"] { --level: var(--success); }
[data-level="slow"] { --level: var(--amber); }
[data-level="maintenance"] { --level: var(--link); }
[data-level="down"] { --level: var(--error); }
.level-chip { color: var(--level, var(--text-2)); }
.status-summary { border-left: 6px solid var(--level, var(--card-border)); }
.status-summary h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 5vw, 28px); margin: 0 0 6px; }
.status-summary p { margin: 6px 0 0; }
.status-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--level, var(--hint)); flex: none; }
.status-section { margin: 32px 0; }
.status-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.status-part { padding: 16px 20px; border-radius: var(--r-card); }
.status-part-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.status-part-head h3 { margin: 0; font-size: 18px; }
.status-part-head p { margin: 2px 0 0; font-size: 15px; }
.uptime { margin-top: 12px; }
.uptime-bar { display: flex; gap: 2px; height: 32px; }
.uptime-bar span { flex: 1 1 0; min-width: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.uptime-bar [data-shade="good"] { background: var(--success); }
.uptime-bar [data-shade="minor"] { background: var(--amber); }
.uptime-bar [data-shade="major"] { background: #FB923C; }
.uptime-bar [data-shade="bad"] { background: var(--error); }
.uptime-legend { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0; color: var(--hint); font-size: 13px; }
.incident { margin: 0 0 14px; }
.incident-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.incident-head h3 { margin: 0; font-size: 19px; }
.incident-meta { margin: 6px 0 10px; color: var(--hint); font-size: 14px; }
.incident-updates { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--card-border); }
.incident-updates li { margin: 0 0 12px; }
.incident-updates p { margin: 0; color: var(--text-2); }
.incident-update-head { font-size: 14px; }
.incident-update-head strong { color: var(--text); }
.incident-update-head time { color: var(--hint); }
.status-foot { margin: 28px 0 0; font-size: 14px; }
@media (max-width: 520px) {
  .status-part-head, .incident-head { flex-direction: column; }
  .uptime-bar { gap: 1px; height: 28px; }
}
/* /admin > Status: big tap targets, works one-handed on a phone. */
.admin .chip-choice { border: 0; margin: 12px 0; padding: 0; min-width: 0; }
.admin .chip-choice legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.admin .chip-choice .chips { margin: 4px 0 0; }
.admin .chip-radio { position: relative; display: inline-flex; }
.admin .chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.admin .chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid var(--card-border); background: var(--input-fill); color: var(--text); font-size: 15px; }
.admin .chip-radio input:checked + span { border-color: var(--link); background: rgba(124, 58, 237, 0.35); }
.admin .chip-radio input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.admin .status-incident { list-style: none; }
.admin .status-incident-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin .status-incident-head h3 { margin: 0; font-size: 18px; flex: 1 1 200px; }
.admin .status-admin-updates { margin: 10px 0; padding-left: 18px; }
.admin .status-admin-updates p { margin: 2px 0; }
.admin .status-update-form, .admin .status-edit-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--card-border); }
.admin .status-past { margin: 20px 0; }
.admin .status-past > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 600px) {
  .admin .status-post .btn, .admin .status-update-form .btn { width: 100%; min-height: 48px; }
}

/* ---- The safe dial (dial.js): the home page's combination lock (safe.js) and the 404 game (codegame.js) ----
   The numbers and arcs turn under the fixed triangle. The Reduce look: no transitions or shake (the rule at the top),
   and dial.js snaps it from number to number. */
.dial { width: min(240px, 66vw); aspect-ratio: 1; margin: 8px auto; border-radius: 50%; touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none; }
.dial.is-dragging { cursor: grabbing; }
.dial:focus-visible { outline: 3px solid var(--link); outline-offset: 6px; }
.dial[aria-disabled="true"] { cursor: default; }
.dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dial-rot { transform-box: fill-box; transform-origin: center; transition: transform 0.12s ease-out; }
.dial.is-dragging .dial-rot { transition: none; }
.dial.is-open .dial-rot { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* The logo's rings, twisted at the start of a game; each right number turns one slowly back into place. */
.dial-ring { transform-box: view-box; transform-origin: 512px 512px; transition: transform 1.4s cubic-bezier(0.3, 0.7, 0.2, 1); }
.dial-face { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.18); stroke-width: 6; }
.dial-num { fill: #FFFFFF; font: 700 84px var(--font); }
.dial.is-shaking { animation: dial-shake 0.4s ease-in-out; }
@keyframes dial-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.dial-slots { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 14px 0 6px; padding: 0; }
.dial-slot { display: grid; place-items: center; width: 42px; height: 50px; border-radius: 12px; border: 1px solid var(--card-border);
  background: var(--input-fill); color: var(--hint); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dial-slot.is-set { color: var(--text); border-color: var(--accent); }
.dial-slot.is-right { color: var(--success); border-color: var(--success); }
.dial-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.dial-actions .btn { width: auto; }
.dial-live { min-height: 1.5em; margin: 12px 0 0; color: var(--text-2); text-align: center; }

.safe { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: 26px 22px 22px;
  color: var(--text); text-align: center; border-top: 3px solid rgba(139, 92, 246, 0.9); animation: pop-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.safe::backdrop { background: rgba(8, 9, 13, 0.55); }
.safe > .announce-close { position: absolute; top: 12px; right: 12px; }
.safe h2 { margin: 0 0 6px; padding: 0 30px; }
.safe-cracked { margin: 12px 0 0; color: var(--success); font-size: 20px; font-weight: 700; }
.safe.is-cracked .dial { opacity: 0.35; transition: opacity 0.6s ease; }
/* Shown only with keyboard focus, straight after the home page's logo (like the skip link). */
.safe-key { position: absolute; left: -9999px; }
.safe-key:focus { left: 16px; top: 64px; z-index: 10; padding: 8px 14px; border: 1px solid #8B5CF6; border-radius: var(--r-control);
  background: var(--accent-fill); color: #FFFFFF; font: 600 15px var(--font); }
.studio-brand[data-safe] { -webkit-touch-callout: none; }

.classified-dial { display: grid; place-items: center; margin: 4px 0 18px; }
.classified-dial svg { width: 96px; height: 96px; }
.classified .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.classified .actions .btn { width: auto; }
/* Its devices (Settings > Secret page): the home page's frames, side by side, each with a working power button. */
.classified-devices {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px 32px; margin: 8px 0 26px;
  --pw: clamp(100px, 28vw, 200px);
}
.classified > .classified-devices:last-child { margin: 30px 0 4px; }
.classified-device { container-type: inline-size; width: var(--pw); max-width: 100%; }
.classified-device.is-tablet { width: calc(var(--pw) * 1.3); }
.classified-device.is-laptop { width: calc(var(--pw) * 2); }
.classified-device .device { animation-delay: var(--d, 0s); }
.classified-device .device-screen > * { transition: opacity 0.35s ease; }
.classified-device .device.is-off .device-screen > * { opacity: 0; }
/* .power-key: only this page's power buttons, which are real buttons (the home page's stays plain decoration). */
.classified-device .power-key { border: 0; padding: 0; cursor: pointer; }
.power-key:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.screen-wall { position: absolute; inset: 0; display: grid; place-items: center; background: #08090D; }
.screen-wall svg { width: 56%; height: auto; }
.preview-classified { padding: 20px; }
.preview-classified .classified-devices { --pw: 110px; gap: 18px; }
.device-row .item-actions { margin: 0 0 12px; }

@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .safe { background: #1C1F2A; }
  .safe::backdrop { background: rgba(8, 9, 13, 0.7); }
}

/* The 404 page's code game (codegame.js), under the message and its links. */
.code-game { margin-top: 18px; }
.code-game h2 { margin: 0 0 6px; font-size: 22px; }
.code-slots li { display: grid; justify-items: center; gap: 6px; min-width: 64px; }
.code-hint { min-height: 1.3em; color: var(--text-2); font-size: 14px; font-weight: 600; }
.code-hint[data-hint="right"] { color: var(--success); }
.code-solved-text { margin: 14px 0 0; color: var(--success); font-size: 19px; font-weight: 700; }
.code-solved .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.code-solved .actions .btn { width: auto; }

/* ---- Page transitions: a quick cross-fade between pages of this site (CSS cross-document view transitions, no JS).
   The header and the logo stay put. Browsers without them just change page. Off in the Reduce look, and on /admin
   and the maintenance page (assets/no-transitions.css), which never take part. Under 250 ms. ---- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.site-header .logo-mark { view-transition-name: site-logo; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 180ms; }
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .site-header, .site-header .logo-mark { view-transition-name: none; }
}

/* ---- The hero's devices: phone (above), tablet and laptop, each with a power button drawn into the frame. The
   button is decoration (no pointer, no hover); lockscreen.js listens for it. Tablet and laptop sizes come from the
   frame's width (container units on .hero-float.is-wide). ---- */
.hero-float.is-wide { width: 100%; container-type: inline-size; }
.hero-float.is-wide:has(.tablet) { max-width: calc(var(--pw) * 1.5); }
.hero-float.is-wide:has(.laptop) { max-width: calc(var(--pw) * 2); }
.hero-float.is-wide .hero-app-icon { left: -4cqw; bottom: 10%; width: 16cqw; }
.hero-device { animation: hero-bob 7s ease-in-out infinite; }
.device-power {
  position: absolute; z-index: 1; cursor: default; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(270deg, #2A2C33, #4A4D56);
}
/* A bigger invisible area to press than the thin button itself. */
.device-power::after { content: ""; position: absolute; inset: -10px -14px; }
/* On the phone the power button takes the place of the small top button (two buttons, like a real phone). */
.phone.device::before { display: none; }
.phone .device-power {
  right: calc(var(--pw) * -0.026); top: 21%; width: calc(var(--pw) * 0.014); height: 8%; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #2A2C33, #4A4D56);
}
.tablet, .laptop-lid {
  background:
    linear-gradient(#050507, #050507) padding-box,
    linear-gradient(145deg, #6B6E78 0%, #2A2C33 22%, #17181C 50%, #2A2C33 78%, #5A5D66 100%) border-box;
  border: 0.9cqw solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 90px -20px rgba(0, 0, 0, 0.8), 0 20px 120px -10px rgba(139, 92, 246, 0.28);
}
.tablet { position: relative; padding: 3.6cqw; border-radius: 7cqw; }
.tablet-screen, .laptop-screen { position: relative; overflow: hidden; background: #000; }
.tablet-screen { aspect-ratio: 3 / 4; border-radius: 3.4cqw; }
.tablet-cam, .laptop-cam {
  position: absolute; z-index: 2; left: 50%; width: 1.6cqw; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #050507; box-shadow: 0 0 0 1px #24252B;
}
.tablet-cam { top: 1.2cqw; }
.tablet .device-power {
  top: -1.5cqw; right: 14%; width: 12%; height: 0.8cqw; border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, #2A2C33, #4A4D56);
}
.laptop { position: relative; }
.laptop-lid { position: relative; margin: 0 7%; padding: 2.4cqw 2.4cqw 3cqw; border-radius: 3cqw 3cqw 1cqw 1cqw; }
.laptop-cam { top: 0.6cqw; width: 1.1cqw; }
.laptop-screen { aspect-ratio: 16 / 10; border-radius: 0.8cqw; }
.laptop-base {
  position: relative; height: 3.4cqw; border-radius: 0.6cqw 0.6cqw 3cqw 3cqw / 0.6cqw 0.6cqw 100% 100%;
  background: linear-gradient(#6B6E78, #3A3C44 35%, #17181C);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.laptop-base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 1.2cqw; transform: translateX(-50%);
  border-radius: 0 0 1.2cqw 1.2cqw; background: #2A2C33;
}
.laptop .device-power {
  right: -0.7cqw; top: 22%; width: 0.8cqw; height: 45%; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #2A2C33, #4A4D56);
}
.tablet-screen > img, .tablet-screen > video, .laptop-screen > img, .laptop-screen > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
}

/* The lock screen (lockscreen.js), inside the device's screen. */
.lock {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; container-type: size;
  display: grid; color: #FFFFFF; background: #08090D;
}
.lock::before {
  content: ""; position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.lock.is-black::before { opacity: 1; }
.lock-wall { position: absolute; inset: 0; display: grid; place-items: center; }
.lock-wall svg { width: 92cqw; max-height: 70cqh; opacity: 0.32; overflow: visible; transition: opacity 0.4s ease; }
.lock-ring { transform-box: view-box; transform-origin: 50% 50%; }
.lock.is-unlocking .lock-wall svg { opacity: 1; }
.lock-ui {
  position: relative; z-index: 1; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: center;
  align-content: start; padding: 9cqh 6cqw 5cqh; text-align: center;
  background: linear-gradient(rgba(8, 9, 13, 0.55), rgba(8, 9, 13, 0.75));
  transition: transform 0.35s cubic-bezier(.5, 0, .2, 1), opacity 0.35s ease;
}
.lock-ui.is-swiped { transform: translateY(-100%); opacity: 0; }
.lock-ui.is-faded { opacity: 0; transition: opacity 0.15s ease; }
.lock-top { display: grid; gap: 0.6cqh; margin-bottom: 3cqh; }
.lock-time { margin: 0; font-size: min(19cqw, 11cqh); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.lock-date { margin: 0; font-size: min(5.2cqw, 3cqh); color: #C7CBD4; }
.lock-prompt { margin: 0 0 1.6cqh; font-size: min(5cqw, 2.9cqh); font-weight: 500; }
.lock-dots { display: flex; gap: min(3.4cqw, 2cqh); min-height: min(3.4cqw, 2cqh); margin-bottom: 3cqh; }
.lock-dot { width: min(3.4cqw, 2cqh); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #FFFFFF; }
.lock-dot.is-on { background: #FFFFFF; }
.lock-dots:not(:has(.is-on)) .lock-dot { opacity: 0; }
.lock-dots.is-wrong .lock-dot, .lock-input.is-wrong { border-color: #F87171; }
.lock-dots.is-wrong .lock-dot.is-on { background: #F87171; }
.lock-dots.is-wrong, .lock-input.is-wrong { animation: lock-shake 0.45s ease; }
@keyframes lock-shake {
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.lock-pad {
  align-self: end; display: grid; grid-template-columns: repeat(3, min(19cqw, 10.5cqh));
  gap: min(4cqw, 2cqh) min(6cqw, 3cqh); justify-content: center;
}
.lock-key {
  aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; color: #FFFFFF; font: inherit;
  font-size: min(8cqw, 4.4cqh); font-weight: 500; background: rgba(255, 255, 255, 0.16); cursor: pointer;
}
.lock-key[data-key="back"], .lock-key[data-key="ok"] { background: transparent; font-size: min(5.4cqw, 3cqh); }
.lock-key:active { background: rgba(255, 255, 255, 0.34); }
.lock-key:focus-visible, .lock-go:focus-visible, .lock-input:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 2px; }
.lock.is-disabled .lock-pad, .lock.is-disabled .lock-form { opacity: 0.4; pointer-events: none; }
.lock-form { display: flex; gap: 1.4cqw; align-items: center; }
.lock-input {
  width: 36cqw; padding: 0.8cqh 2cqw; border-radius: 999px; font: inherit; font-size: max(12px, 4.4cqh);
  color: #FFFFFF; background: rgba(8, 9, 13, 0.7); border: 1px solid rgba(255, 255, 255, 0.4); text-align: center;
}
.lock-input::placeholder { color: #B0B5C0; }
.lock-go {
  width: max(24px, 9cqh); aspect-ratio: 1; border-radius: 50%; border: 1px solid #8B5CF6; color: #FFFFFF;
  background: #7C3AED; font: inherit; font-size: max(12px, 4.4cqh); cursor: pointer; padding: 0;
}
.lock.is-laptop .lock-ui { padding: 9cqh 6cqw; align-content: center; grid-template-rows: auto auto auto; }
.lock.is-laptop .lock-time { font-size: 18cqh; }
.lock.is-laptop .lock-date { font-size: 5cqh; }
.lock.is-laptop .lock-prompt { display: none; }
.lock.is-laptop.is-disabled .lock-prompt { display: block; font-size: 5cqh; }
.lock-cover {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: #08090D; color: #FFFFFF; font-size: 22px; font-weight: 700;
}
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  .lock-ui { background: rgba(8, 9, 13, 0.85); }
  .lock-key { background: #2A2F3D; }
}
