/* Shulkerboxes site. One stylesheet for every page, built on the Diorama language:
   warm paper, big Bricolage type, white rounded cards, chunky edged buttons, and a sky
   stage holding the live 3D island. Every colour is a token, so the four themes apply everywhere. */

/* ================================================================ tokens */
:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #f0eee7;
  --surface-3: #fcfbf8;
  --ink: #17191c;
  --ink-2: #454a51;
  --ink-3: #676c73;
  --line: #e7e4dc;
  --line-2: #d8d4c9;
  --line-3: #c4bfb2;
  --accent: #267a3b;
  --accent-hover: #21703a;
  --accent-edge: #185a2a;
  --accent-soft: #e5f2e1;
  --accent-ink: #267a3b;
  --on-accent: #ffffff;
  --focus: #2b62d9;
  --focus-ring: rgb(43 98 217 / .16);

  --danger: #b3261e;
  --danger-soft: #fdecea;
  --danger-edge: #8c1d17;
  --warn-ink: #8a5800;  --warn-soft: #fff0d3;  --warn-dot: #d48a00;
  --ok-ink: #22703a;    --ok-soft: #e5f2e1;    --ok-dot: #2f9a49;
  --dusk-ink: #5646b3;  --dusk-soft: #eeebfb;  --dusk-dot: #7a68e0;
  --night-ink: #34409a; --night-soft: #e6e9f8; --night-dot: #5d6bd6;
  --muted-dot: #8a8f96;
  --butter-ink: #7a5a00; --butter-soft: #fff3c9;
  --peach-ink: #9a4424;  --peach-soft: #fde6da;
  --sky-ink: #1f5f8a;    --sky-soft: #e1f0fa;

  --sky-top: #9fd3f3;
  --sky-bottom: #eaf5fa;
  --halo: .85;
  --toast-bg: #17191c;
  --toast-ink: #ffffff;
  --grass: #86c25a; --grass-2: #74b34f; --dirt: #a8744f; --dirt-2: #8f6243; --stone: #b0b2bc;

  --font-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow-card: 0 1px 2px rgba(23, 25, 28, .04), 0 12px 32px -18px rgba(38, 52, 30, .18);
  --shadow-stage: inset 0 0 0 1px rgba(20, 30, 40, .05), 0 30px 60px -40px rgba(40, 70, 110, .35);
  --shadow-pop: 0 18px 44px -18px rgba(20, 24, 30, .35), 0 2px 6px rgba(20, 24, 30, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 32px;
  --maxw: 1600px;
}
:root[data-theme="grass"] {
  --bg: #eef3e5; --surface-2: #e6ecdb; --surface-3: #fbfdf7; --line: #dde5d0; --line-2: #cbd6ba; --line-3: #b3c19f;
  --accent: #2b7a32; --accent-hover: #256e2c; --accent-edge: #1b5621; --accent-soft: #dcefd1; --accent-ink: #256e2c;
  --sky-top: #a9e0c4; --sky-bottom: #eff7e6;
  --shadow-card: 0 1px 2px rgba(23, 35, 20, .05), 0 12px 32px -18px rgba(40, 80, 30, .22);
}
:root[data-theme="sunset"] {
  --bg: #f8efe7; --surface: #fffdfb; --surface-2: #f4e7dc; --surface-3: #fffaf6; --line: #eddccd; --line-2: #e0c9b6; --line-3: #cfb098;
  --accent: #b1482a; --accent-hover: #9f3f24; --accent-edge: #7a2f19; --accent-soft: #fbe1d4; --accent-ink: #9f3f24;
  --sky-top: #f6b99c; --sky-bottom: #fde9d5;
  --shadow-card: 0 1px 2px rgba(60, 30, 20, .05), 0 12px 32px -18px rgba(120, 60, 30, .22);
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0e1220; --surface: #161b2c; --surface-2: #1f2539; --surface-3: #121727; --ink: #eef0f7; --ink-2: #c5cad8; --ink-3: #9ca3b5;
  --line: #262d44; --line-2: #343c58; --line-3: #4a537a;
  --accent: #2a7f3f; --accent-hover: #2f8a45; --accent-edge: #17512a; --accent-soft: #1b3325; --accent-ink: #86d496;
  --focus: #7ea6ff; --focus-ring: rgb(126 166 255 / .22);
  --danger: #ff8f86; --danger-soft: #3a1d22; --danger-edge: #6d2a2a;
  --warn-ink: #f4c46e; --warn-soft: #362b14; --warn-dot: #e3a33a;
  --ok-ink: #86d496; --ok-soft: #1b3325; --ok-dot: #4cc26a;
  --dusk-ink: #c7bcff; --dusk-soft: #2a2550; --dusk-dot: #9a8cf0;
  --night-ink: #b3bcff; --night-soft: #222a4e; --night-dot: #8d98f0;
  --muted-dot: #7c8397;
  --butter-ink: #f1d27a; --butter-soft: #33291a; --peach-ink: #f5b196; --peach-soft: #3a2420; --sky-ink: #9fd0f2; --sky-soft: #1b2b40;
  --sky-top: #2a3470; --sky-bottom: #56598f; --halo: .2;
  --toast-bg: #eef0f7; --toast-ink: #121626;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .6);
  --shadow-stage: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 60px -40px rgba(0, 0, 0, .8);
  --shadow-pop: 0 18px 44px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
}

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh;
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
a { color: var(--accent-ink); }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 80; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--font-mono); }
.nw { white-space: nowrap; }
kbd { font: 500 .88em var(--font-mono); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; color: var(--ink); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; }
:where([data-icon]) { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:where([data-icon]) > svg { width: 100%; height: 100%; }

/* ================================================================ type */
.eyebrow { font: 600 13px/1.2 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.display {
  font: 700 clamp(40px, 3.9vw, 58px)/1.02 var(--font-display); letter-spacing: -.035em;
  font-variation-settings: "opsz" 96; text-wrap: balance; margin-bottom: 18px;
}
.display-xl { font-size: clamp(44px, 5.2vw, 78px); letter-spacing: -.04em; }
.sub-strong { font: 700 clamp(24px, 2.1vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--accent-ink); margin-bottom: 8px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.section-title { font: 700 clamp(30px, 2.8vw, 42px)/1.06 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.section-head { margin-bottom: 28px; max-width: 760px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; margin-top: 10px; }
.small-print { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.small-print a, .text-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.text-link:hover, .small-print a:hover { text-decoration-thickness: 2.5px; }
.text-link .i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }

/* ================================================================ top bar */
.topbar { position: relative; z-index: 30; }
.topbar-row { display: flex; align-items: center; gap: 14px; height: 76px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 21px/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 3px 4px rgba(60, 70, 40, .18)); }
.preview-tag { font: 500 12.5px/1 var(--font-body); color: var(--ink-3); white-space: nowrap; padding: 7px 11px; border: 1px dashed var(--line-2); border-radius: 999px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-link { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font: 500 15px/1 var(--font-body); white-space: nowrap; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 3px 0 var(--line-2); }
.topbar .site-menu-btn { display: none; }
.site-menu {
  position: absolute; right: 16px; top: 64px; width: min(340px, calc(100vw - 32px)); z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 10px;
}
.site-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-menu a:hover, .site-menu a[aria-current="page"] { background: var(--surface-2); }
.site-menu a .i { width: 16px; height: 16px; color: var(--ink-3); }
.site-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 6px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }

/* Theme swatches: four little sky squares */
.swatches { display: inline-flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); }
.swatch { width: 26px; height: 26px; border-radius: 9px; border: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .15s var(--ease); }
.swatch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(180deg, var(--g1) 0 3px, var(--g2) 3px); }
.swatch[data-theme-pick="daylight"] { background: linear-gradient(180deg, #9fd3f3, #eaf5fa); --g1: #86c25a; --g2: #a8744f; }
.swatch[data-theme-pick="grass"] { background: linear-gradient(180deg, #a9e0c4, #eff7e6); --g1: #7fcf52; --g2: #8f6243; }
.swatch[data-theme-pick="sunset"] { background: linear-gradient(180deg, #f6b99c, #fde9d5); --g1: #9cbf62; --g2: #c4865a; }
.swatch[data-theme-pick="night"] { background: linear-gradient(180deg, #0b0f26, #3a4280); --g1: #5f9e62; --g2: #6a4a35; }
.swatch:hover { transform: translateY(-1px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

/* Signed-in header */
.app-top .topbar-row { gap: 12px; }
.app-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-slash { color: var(--line-3); font: 400 26px/1 var(--font-display); }
.app-server { font: 700 19px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.app-server:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.app-nav-row { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 6px; }
.app-nav { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 5px; gap: 4px; background: var(--surface-2); border-radius: 16px; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.app-nav a {
  display: grid; place-items: center; height: 40px; padding: 0 16px; border-radius: 12px; white-space: nowrap;
  font: 600 14.5px/1 var(--font-body); color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s;
}
.app-nav a:hover { color: var(--ink); }
.app-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 0 var(--line-2); }
.app-nav a:focus-visible { outline-offset: 1px; }

/* Account menu */
.acct { position: relative; }
.acct-btn { gap: 8px; padding: 0 10px 0 6px; }
.acct-ava { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.acct-ava .i { width: 16px; height: 16px; }
.acct-btn .chev { width: 14px; height: 14px; color: var(--ink-3); transition: transform .2s var(--ease); }
.acct-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 300px; z-index: 45; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop);
  animation: rise .25s var(--ease) both;
}
.pop .who { display: grid; gap: 2px; margin-bottom: 10px; }
.pop .who b { font: 700 17px/1.2 var(--font-display); }
.pop .who span { color: var(--ink-3); font-size: 14px; }
.pop p.note { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.pop .row { display: flex; gap: 8px; justify-content: flex-end; }

/* ================================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 13px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--font-body); white-space: nowrap; position: relative;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .i { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-edge), inset 0 1px 0 rgb(255 255 255 / .2); margin-bottom: 4px; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-edge), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); margin-bottom: 4px; }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn-secondary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-2); }
.btn-quiet { background: transparent; color: var(--ink-2); height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); }
.btn-quiet:hover { background: var(--surface); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); height: 40px; padding: 0 12px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 var(--danger-edge); margin-bottom: 4px; }
:root[data-theme="night"] .btn-danger { color: #2a0f0d; }
.btn-danger:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--danger-edge); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); border: 1.5px solid transparent; }
.btn-danger-soft:hover { border-color: var(--danger); }
.btn-sm { height: 38px; padding: 0 13px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn-primary:disabled { opacity: .55; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spin, .spin { width: 16px; height: 16px; border-radius: 50%; border: 2.4px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[data-copied] { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.btn-primary[data-copied] { background: var(--accent-edge); color: var(--on-accent); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 26px 28px;
}
.panel .card, .stack > .card { margin-top: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font: 700 21px/1.2 var(--font-display); letter-spacing: -.02em; }
.card-hint { font-size: 14px; color: var(--ink-3); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; margin-left: 6px; border-radius: 99px; background: var(--surface-2); font: 600 13px/1 var(--font-body); color: var(--ink-2); vertical-align: 3px; letter-spacing: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ================================================================ forms */
.label { display: block; font: 600 14.5px/1.3 var(--font-body); margin-bottom: 10px; color: var(--ink); }
.label .opt { font-weight: 500; color: var(--ink-3); }
.req { color: var(--danger); }
.input, input[type="text"], input[type="email"], input[type="search"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--surface-3); font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea, .textarea { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
::placeholder { color: var(--ink-3); opacity: .85; }
.input:hover, input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-ring); background: var(--surface); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field { margin-bottom: 18px; }
.field-row { display: flex; gap: 10px; align-items: flex-start; }
.field-row > input, .field-row > .input { flex: 1; min-width: 0; }
.field-row .btn { height: 52px; }
.field-wrap { position: relative; }
.field-wrap .input { padding-right: 70px; }
.field-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.counter { font: 500 13px var(--font-mono); color: var(--ink-3); }
.counter[data-near] { color: var(--warn-ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.help, .field-msg { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; min-height: 0; }
.field-msg:empty { display: none; }
.field-msg[data-tone="error"], .help.error { color: var(--danger); font-weight: 500; }
.field-msg[data-tone="ok"] { color: var(--ok-ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reveal { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); height: 38px; }
.input-reveal { position: relative; flex: 1; min-width: 0; }
.input-reveal input { padding-right: 76px; display: block; }

/* Checkbox */
.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: 600 16px/1.3 var(--font-body); user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-3); background: var(--surface); display: grid; place-items: center; box-shadow: 0 3px 0 var(--line-2); transition: all .15s var(--ease); color: var(--on-accent); }
.check-box .i { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: all .18s var(--ease); }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }
.check input:checked + .check-box .i { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { border-color: var(--danger); }

/* Switch */
.switch { width: 54px; height: 32px; border-radius: 99px; border: 0; padding: 0; background: var(--line-2); position: relative; cursor: pointer; flex: none; transition: background-color .2s var(--ease); box-shadow: inset 0 2px 3px rgb(0 0 0 / .08); }
.switch-knob { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgb(0 0 0 / .14), 0 1px 3px rgb(0 0 0 / .12); transition: transform .22s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch-lg { width: 62px; height: 36px; }
.switch-lg .switch-knob { width: 28px; height: 28px; }
.switch-lg[aria-checked="true"] .switch-knob { transform: translateX(26px); }
.switch[aria-busy="true"] .switch-knob::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }

/* Segmented control (the Diorama difficulty picker) */
.segmented, .seg-track { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; padding: 5px; background: var(--surface-2); border-radius: 16px; }
fieldset.seg, fieldset.segfs { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-track input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg-track label, .segmented span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 12px; text-align: center;
  font: 600 14.5px/1.15 var(--font-body); color: var(--ink-2); cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented label { position: relative; display: block; }
.seg-track label:hover, .segmented label:hover span { color: var(--ink); }
.seg-track input:checked + label, .segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 0 var(--line-2); }
.seg-track input:focus-visible + label, .segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.seg-track input:disabled + label, .segmented input:disabled + span { cursor: not-allowed; opacity: .55; }
.seg-track label svg, .seg-track label .i { width: 18px; height: 18px; flex: none; }
.bars rect { fill: var(--line-3); }
.bars rect.on { fill: var(--accent); }
.opt-desc { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.opt-desc b { color: var(--ink); margin-right: 6px; }

/* Stepper and range */
.stepper-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.step-btn { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--surface); box-shadow: 0 3px 0 var(--line-2); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: transform .12s var(--ease), box-shadow .12s; }
.step-btn .i { width: 16px; height: 16px; }
.step-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-2); }
.step-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.step-val { width: 60px !important; height: 40px !important; padding: 0 !important; text-align: center; border: 0 !important; background: transparent !important; font: 600 17px var(--font-mono) !important; box-shadow: none !important; }
.step-val:focus-visible { outline: 3px solid var(--focus) !important; border-radius: 8px; }
.step-unit, .slot-note { color: var(--ink-2); font-size: 14.5px; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range { -webkit-appearance: none; appearance: none; flex: 1; height: 10px; border-radius: 99px; padding: 0 !important; border: 0 !important;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), var(--surface-2) var(--p, 50%)) !important; box-shadow: inset 0 1px 2px rgb(0 0 0 / .08); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }
.set-val { min-width: 92px; text-align: center; font: 600 14.5px var(--font-mono); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.range-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; padding-right: 108px; }

/* ================================================================ status chip + tags */
.status {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px;
  border-radius: 999px; font: 600 14.5px/1 var(--font-body); white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); --tone: var(--muted-dot);
}
.status-sm { height: 28px; padding: 0 11px 0 10px; font-size: 13px; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone, currentColor); flex: none; position: relative; }
.status-sm .dot { width: 8px; height: 8px; }
[data-tone="green"] { --tone: var(--ok-dot); }
.status[data-tone="green"] { background: var(--ok-soft); color: var(--ok-ink); }
.status[data-tone="amber"] { background: var(--warn-soft); color: var(--warn-ink); --tone: var(--warn-dot); }
.status[data-tone="dusk"] { background: var(--dusk-soft); color: var(--dusk-ink); --tone: var(--dusk-dot); }
.status[data-tone="night"] { background: var(--night-soft); color: var(--night-ink); --tone: var(--night-dot); }
.status[data-tone="red"] { background: var(--danger-soft); color: var(--danger); --tone: var(--danger); }
[data-tone="green"] .dot::after, [data-tone="amber"] .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tone); opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .6; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; vertical-align: 2px; }
.tag .i { width: 11px; height: 11px; }
.tag-restart { background: var(--warn-soft); color: var(--warn-ink); }
.tag-later { background: var(--dusk-soft); color: var(--dusk-ink); }
.tag-preview { background: transparent; border: 1px dashed var(--line-3); color: var(--ink-3); }
.tag-ph { background: var(--butter-soft); color: var(--butter-ink); }
.tag-admin { background: var(--accent-soft); color: var(--accent-ink); }

/* Banners and notes */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 18px; margin-top: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.banner p { flex: 1; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); min-width: 0; }
.banner p b { color: var(--ink); display: block; font: 700 16px/1.3 var(--font-display); letter-spacing: -.01em; margin-bottom: 1px; }
.banner-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-2); }
.banner-ico .i { width: 20px; height: 20px; }
.banner .btn { margin-bottom: 4px; }
.banner[data-tone="amber"] { background: var(--warn-soft); border-color: transparent; box-shadow: none; }
.banner[data-tone="amber"] .banner-ico { background: var(--surface); color: var(--warn-ink); }
.banner[data-tone="amber"] p { color: var(--warn-ink); }
.banner[data-tone="amber"] p b { color: var(--warn-ink); }
.banner[data-tone="red"] { background: var(--danger-soft); border-color: transparent; box-shadow: none; }
.banner[data-tone="red"] .banner-ico { background: var(--surface); color: var(--danger); }
.banner[data-tone="red"] p, .banner[data-tone="red"] p b { color: var(--danger); }
.banner[data-tone="night"] { background: var(--night-soft); border-color: transparent; box-shadow: none; }
.banner[data-tone="night"] .banner-ico { background: var(--surface); color: var(--night-ink); }
.banner[data-tone="night"] p, .banner[data-tone="night"] p b { color: var(--night-ink); }
.banner[data-tone="dusk"] { background: var(--dusk-soft); border-color: transparent; box-shadow: none; }
.banner[data-tone="dusk"] .banner-ico { background: var(--surface); color: var(--dusk-ink); }
.banner[data-tone="dusk"] p, .banner[data-tone="dusk"] p b { color: var(--dusk-ink); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--night-soft); color: var(--night-ink); font-size: 14.5px; line-height: 1.5; margin-top: 16px; }
.note .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note[data-tone="ok"] { background: var(--ok-soft); color: var(--ok-ink); }
.note[data-tone="plain"] { background: var(--surface-2); color: var(--ink-2); }
.note a { color: inherit; font-weight: 600; }
.preview-foot { margin-top: 28px; font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ================================================================ the stage (sky + island) */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 40px; align-items: start;
}
.stage {
  position: sticky; top: 16px; height: calc(100dvh - var(--head-h, 76px) - 40px); min-height: 560px; max-height: 920px;
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-stage);
}
body[data-chrome="app"] { --head-h: 128px; }
.stage-sky, .sky {
  position: absolute; inset: 0; z-index: -1; transition: background .6s var(--ease);
  background:
    radial-gradient(55% 48% at 50% 50%, rgb(255 255 255 / var(--halo)) 0%, rgb(255 255 255 / 0) 72%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.stage-sky::after, .sky::after {
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.island-slot { position: absolute; inset: 0; }
.island-slot .bs-island { cursor: grab; touch-action: pan-y; }
.island-slot .bs-island:active { cursor: grabbing; }
.island-slot[data-static] .bs-island { cursor: default; }
.island-slot .bs-island:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; z-index: 2;
  background: rgb(255 255 255 / .76); color: #17191c;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 6px 18px -8px rgba(20, 30, 50, .25);
  border-radius: 999px; transition: background-color .8s var(--ease), color .8s var(--ease), opacity .4s var(--ease);
  --tone: var(--ok-dot);
}
.chip .dot { background: var(--tone); }
.chip[data-tone="amber"] { --tone: #d48a00; }
.chip[data-tone="dusk"] { --tone: #7a68e0; }
.chip[data-tone="night"] { --tone: #5d6bd6; }
.chip[data-tone="neutral"] { --tone: #8a8f96; }
.chip[data-tone="green"] { --tone: #2f9a49; }
.chip-status { left: 20px; bottom: 20px; padding: 10px 16px 10px 13px; font: 600 14.5px/1 var(--font-body); }
.chip-hint { right: 20px; bottom: 20px; padding: 9px 13px; font: 500 13px/1 var(--font-body); color: #454a51; }
.chip-hint .i { width: 16px; height: 16px; }
.chip-hint.gone { opacity: 0; pointer-events: none; }
button.chip { border: 0; cursor: pointer; font: 600 13.5px/1 var(--font-body); padding: 9px 14px 9px 11px; }
button.chip:hover { background: rgb(255 255 255 / .92); }
button.chip .i { width: 16px; height: 16px; }
.chip-top { left: 50%; top: 22px; transform: translateX(-50%); padding: 10px 16px; font: 600 14px/1 var(--font-body); gap: 12px; white-space: nowrap; }
.chip-bar { width: 96px; height: 6px; border-radius: 99px; background: rgb(23 25 28 / .1); overflow: hidden; }
.chip-bar i { display: block; height: 100%; width: 0; background: #267a3b; border-radius: inherit; transition: width .3s linear; }
[data-night="true"] .chip { background: rgb(20 24 52 / .58); color: #eef0ff; box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 6px 18px -8px rgba(0, 0, 0, .5); }
[data-night="true"] .chip-hint { color: #d9ddf5; }
[data-night="true"] .chip[data-tone="night"] { --tone: #b7c0ff; }
[data-night="true"] .chip-bar { background: rgb(255 255 255 / .18); }

/* A block burst for the "it's online" moment */
.burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.burst i { position: absolute; left: var(--x); top: 58%; width: var(--s); height: var(--s); background: var(--c); border-radius: 3px;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18), inset 0 2px 0 rgb(255 255 255 / .35);
  animation: burst 1.9s cubic-bezier(.15, .7, .35, 1) var(--d) both; }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0) scale(.3); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .6)) scale(1); }
  100% { transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) + 420px)) rotate(var(--r)) scale(.9); opacity: 0; }
}

/* ================================================================ panel column */
.panel { padding: 28px 0 24px; min-width: 0; outline: none; }
.view { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form-card { margin-top: 32px !important; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 14px; }
.skeleton-title { height: 54px; width: 80%; margin-bottom: 24px; }
.skeleton.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Landing */
.small-deal { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 36em; }
.small-deal a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; }
.waitlist-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-weight: 500; }
.preview-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13.5px; color: var(--ink-3); }
.preview-note .star { color: #c08a1a; margin-right: 4px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--ink-2); font-size: 15px; }
.facts li { display: flex; gap: 12px; align-items: center; }
.facts .i { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }

.more { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 24px; }
.band { margin-top: 64px; }
.band:first-child { margin-top: 24px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.reason h3 { font: 700 26px/1.1 var(--font-display); letter-spacing: -.025em; margin: 18px 0 8px; }
.reason p { color: var(--ink-2); font-size: 16px; }
.block-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .12), inset 0 2px 0 rgb(255 255 255 / .4); }
.block-ico .i { width: 26px; height: 26px; }
.block-ico[data-tone="butter"] { background: var(--butter-soft); color: var(--butter-ink); }
.block-ico[data-tone="night"] { background: var(--night-soft); color: var(--night-ink); }
.block-ico[data-tone="mint"] { background: var(--accent-soft); color: var(--accent-ink); }
.block-ico[data-tone="sky"] { background: var(--sky-soft); color: var(--sky-ink); }
.block-ico[data-tone="peach"] { background: var(--peach-soft); color: var(--peach-ink); }
.block-ico[data-tone="dusk"] { background: var(--dusk-soft); color: var(--dusk-ink); }
.block-ico[data-tone="red"] { background: var(--danger-soft); color: var(--danger); }
.block-ico-sm { width: 40px; height: 40px; border-radius: 12px; }
.block-ico-sm .i { width: 20px; height: 20px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.how-art { height: 150px; position: relative; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); display: grid; place-items: center; padding: 18px; }
.how-body { padding: 22px 26px 26px; }
.how-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font: 700 16px/1 var(--font-display); background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: 0 3px 0 var(--line-2); margin-bottom: 14px; }
.how h3 { font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.how p { color: var(--ink-2); font-size: 15.5px; }
.mini { background: rgb(255 255 255 / .9); color: #17191c; border-radius: 16px; padding: 12px 14px; width: min(100%, 290px); box-shadow: 0 10px 24px -14px rgba(20, 40, 60, .45); font-size: 13.5px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mini b { font: 700 15px/1.2 var(--font-display); }
.mini .go { background: #267a3b; color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 12.5px; box-shadow: 0 2px 0 #185a2a; }
.mini .field { margin: 0; flex: 1; height: 32px; border-radius: 9px; border: 1.5px solid #d8d4c9; background: #fcfbf8; display: flex; align-items: center; padding: 0 10px; color: #676c73; }
.mini .ip { font: 500 12px var(--font-mono); background: #f0eee7; border-radius: 8px; padding: 8px 9px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-faces { display: flex; margin-bottom: 10px; }
.mini-faces .avatar { width: 34px; height: 34px; border-radius: 9px; margin-right: -6px; box-shadow: 0 0 0 2.5px #fff; }
.mini-bar { height: 8px; border-radius: 99px; background: #f0eee7; margin-top: 10px; overflow: hidden; }
.mini-bar i { display: block; width: 62%; height: 100%; background: repeating-linear-gradient(-45deg, #2f8a45 0 8px, #3a9950 8px 16px); border-radius: inherit; }
.mini .status { height: 24px; font-size: 12px; padding: 0 9px 0 8px; gap: 6px; background: #fff0d3; color: #8a5800; --tone: #d48a00; }
.mini .status .dot { width: 7px; height: 7px; }

/* Block strip: a row of grass-over-dirt blocks, used as a divider / page illustration */
.block-strip { height: 16px; border-radius: 6px; background:
  linear-gradient(180deg, transparent 0 5px, rgb(0 0 0 / .08) 5px 6px, transparent 6px),
  repeating-linear-gradient(90deg, var(--grass) 0 24px, var(--grass-2) 24px 48px, var(--grass) 48px 72px, var(--grass-2) 72px 96px);
  box-shadow: 0 10px 0 var(--dirt), 0 10px 0 1px var(--dirt-2); margin-bottom: 10px; }

/* ================================================================ dashboard */
.world-head { padding-bottom: 6px; }
.world-name { font: 750 clamp(40px, 3.8vw, 56px)/1.02 var(--font-display); letter-spacing: -.035em; font-variation-settings: "opsz" 96; overflow-wrap: anywhere; margin-bottom: 18px; }
.status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-text { color: var(--ink-2); font-size: 15.5px; }
.last-op { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.last-op .lo-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--muted-dot); }
.last-op .lo-dot[data-s="succeeded"] { background: var(--ok-dot); }
.last-op .lo-dot[data-s="failed"] { background: var(--danger); }
.last-op .lo-dot[data-s="running"], .last-op .lo-dot[data-s="queued"] { background: var(--warn-dot); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.address-row { display: flex; gap: 10px; align-items: stretch; }
.address {
  flex: 1; min-width: 0; display: flex; align-items: center; min-height: 50px; padding: 12px 16px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: 13px; font: 500 15.5px/1.35 var(--font-mono); color: var(--ink);
  overflow-wrap: anywhere; user-select: all;
}
.address[data-empty] { color: var(--ink-3); font-family: var(--font-body); font-size: 15px; user-select: auto; }
.address-row .btn { height: 50px; min-width: 108px; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  --edge: var(--line-2);
  display: grid; justify-items: start; gap: 2px; text-align: left; align-content: space-between;
  padding: 14px 14px 13px; min-height: 92px; border-radius: 16px; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 var(--edge);
  margin-bottom: 4px; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s, border-color .2s;
}
.tile .ti { width: 24px; height: 24px; margin-bottom: 8px; display: grid; place-items: center; }
.tile .ti svg { width: 24px; height: 24px; }
.tile .ti .spin { width: 20px; height: 20px; }
.tile-label { font: 700 16.5px/1.2 var(--font-display); letter-spacing: -.01em; }
.tile-sub { font-size: 13px; color: var(--ink-3); }
.tile-sub:empty { display: none; }
.tile[data-op="start"] .ti { color: #e59a0b; }
.tile[data-op="stop"] .ti { color: #5d6bd6; }
.tile[data-op="restart"] .ti { color: #1f8f86; }
.tile[data-op="save"] .ti { color: #d9a400; }
.tile:hover:not(:disabled) { background: var(--surface-3); border-color: var(--line-3); }
.tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.tile:disabled { cursor: not-allowed; box-shadow: none; transform: translateY(4px); background: var(--surface-2); border-color: transparent; }
.tile:disabled .ti, .tile:disabled .tile-label, .tile:disabled .tile-sub { opacity: .42; }
.tile[aria-busy="true"]:disabled { background: var(--accent-soft); }
.tile[aria-busy="true"]:disabled .ti, .tile[aria-busy="true"]:disabled .tile-label, .tile[aria-busy="true"]:disabled .tile-sub { opacity: 1; color: var(--accent-ink); }
.tile[data-suggested="true"]:not(:disabled) { background: var(--accent); border-color: var(--accent); --edge: var(--accent-edge); color: var(--on-accent); }
.tile[data-suggested="true"]:not(:disabled) .ti { color: #ffe08a; }
.tile[data-suggested="true"]:not(:disabled) .tile-sub { color: rgb(255 255 255 / .85); }
.tile[data-suggested="true"]:hover:not(:disabled) { background: var(--accent-hover); }

.avatar { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; position: relative; flex: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 3px 0 rgba(0,0,0,.08); }
.avatar svg, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.avatar img { opacity: 0; transition: opacity .3s; }
.avatar img.loaded { opacity: 1; }
.avatar-sm { width: 34px; height: 34px; border-radius: 10px; }
.online-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.online-list li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 16px; background: var(--surface-2); font-weight: 600; animation: rise .35s var(--ease) both; }
.online-list .dot { --tone: var(--ok-dot); }
.empty-line { color: var(--ink-3); font-size: 15px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); }
.quick-add { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; font-size: 15px; color: var(--ink-2); }
.feed li + li { border-top: 1px solid var(--line); }
.feed li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--line-3); transform: translateY(1px); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .12); }
.feed li[data-kind="join"]::before { background: var(--ok-dot); }
.feed li[data-kind="sleep"]::before { background: var(--night-dot); }
.feed li[data-kind="you"]::before { background: var(--warn-dot); }
.feed time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.feed-more { margin-top: 6px; }
.share-text { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 14px; }
.share-text .nw { font-family: var(--font-mono); font-size: 14px; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.footnote { font-size: 13px; color: var(--ink-3); margin-top: 26px; text-align: center; }

/* ================================================================ setup (first build) */
.build-pct { font: 800 clamp(64px, 7vw, 104px)/.9 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.build-pct small { font-size: .42em; letter-spacing: -.02em; color: var(--ink-3); margin-left: 4px; }
.build-card { padding: 28px; }
.build-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.build-top p:not(.build-pct) { color: var(--ink-2); font-size: 15px; text-align: right; max-width: 15em; }
.progress { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--accent-hover) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width .3s linear; }
@keyframes stripes { to { background-position: 28px 0; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 10px 0; color: var(--ink-3); transition: color .3s; }
.steps li b { font-weight: 600; display: block; }
.steps li span { font-size: 14px; }
.step-icon { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: all .3s var(--ease); }
.steps li[data-s="now"] { color: var(--ink); }
.steps li[data-s="now"] .step-icon { border-color: var(--accent); background: var(--accent-soft); }
.steps li[data-s="now"] .step-icon::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); animation: bob 1s var(--ease) infinite alternate; }
@keyframes bob { from { transform: translateY(-2px) rotate(0); } to { transform: translateY(2px) rotate(90deg); } }
.steps li[data-s="done"] { color: var(--ink-2); }
.steps li[data-s="done"] .step-icon { background: var(--accent); border-color: var(--accent); }
.steps li[data-s="done"] .step-icon::after { content: ""; width: 10px; height: 6px; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.early-ip { margin-top: 18px; }
.early-ip .label { color: var(--ink-2); font-weight: 500; }
.celebrate .display { font-size: clamp(44px, 4.6vw, 68px); }
.celebrate .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.pop-in { animation: pop-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.ip-hero { font: 600 17px/1.3 var(--font-mono); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }

/* Create states */
.create-state { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; margin-top: 24px; background: var(--surface-2); }
.create-state[data-tone="amber"] { background: var(--warn-soft); color: var(--warn-ink); }
.create-state[data-tone="red"] { background: var(--danger-soft); color: var(--danger); }
.create-state[data-tone="info"] { background: var(--night-soft); color: var(--night-ink); }
.create-state h2 { font: 700 19px/1.2 var(--font-display); margin-bottom: 4px; }
.create-state p { font-size: 15px; color: inherit; }
.cs-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; }
.cs-ico .i { width: 20px; height: 20px; }
.cs-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 22px; }
.suggest-label { font-size: 14px; color: var(--ink-3); margin-right: 2px; }
.pick { height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: 0 2px 0 var(--line-2); }
.pick:hover { color: var(--ink); border-color: var(--line-3); }
.pick:active { transform: translateY(2px); box-shadow: none; }

/* ================================================================ owner pages: sky header */
.sky-head {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-stage);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); min-height: 250px; margin-top: 8px;
}
.sky-head-copy { padding: 40px 44px 36px; display: flex; flex-direction: column; justify-content: flex-end; color: #17191c; position: relative; z-index: 1; }
.sky-head .eyebrow { color: #1d5e2e; }
.sky-head .display { margin-bottom: 10px; font-size: clamp(40px, 4.2vw, 62px); }
.sky-head .lede { color: #3c4148; font-size: 17px; }
.sky-head .island-slot { position: relative; inset: auto; min-height: 250px; }
.sky-head-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.sky-head-meta .chip { position: static; }
.sky-head .chip-status { padding: 8px 13px 8px 11px; font-size: 13.5px; }
.sky-head[data-night="true"] .sky-head-copy, :root[data-theme="night"] .sky-head .sky-head-copy { color: #eef0ff; }
.sky-head[data-night="true"] .eyebrow, :root[data-theme="night"] .sky-head .eyebrow { color: #a9e6b4; }
.sky-head[data-night="true"] .lede, :root[data-theme="night"] .sky-head .lede { color: #d4d8f2; }
.page { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 56px; }
.page-body { margin-top: 24px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; }
.stack > .card { margin-top: 0; }
.side-text { color: var(--ink-2); font-size: 15px; }
.side-text + .side-text { margin-top: 10px; }

/* Players page */
.pl-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.pl-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 4px; animation: rise .35s var(--ease) both; }
.pl-row + .pl-row { border-top: 1px solid var(--line); }
.pl-row .avatar { width: 48px; height: 48px; }
.pl-name { font: 600 16.5px/1.25 var(--font-body); overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; --tone: var(--muted-dot); }
.pl-state .dot { width: 8px; height: 8px; }
.pl-state[data-tone="green"] { color: var(--ok-ink); --tone: var(--ok-dot); }
.pl-state[data-tone="red"] { color: var(--danger); --tone: var(--danger); }
.pl-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pl-row[data-state="removing"] { opacity: .55; }
.pl-row[data-state="remove-failed"] { background: var(--danger-soft); border-radius: 14px; padding-left: 10px; padding-right: 10px; }
.pl-filter { margin-top: 22px; }
.pl-filter .seg-track { --n: 3; }
.pl-filter .count { background: transparent; margin-left: 2px; }
.empty { text-align: center; padding: 34px 20px; border-radius: 20px; border: 1.5px dashed var(--line-2); margin-top: 18px; color: var(--ink-3); }
.empty b { display: block; font: 700 19px/1.3 var(--font-display); color: var(--ink); margin: 12px 0 4px; }
.empty-blocks { display: inline-flex; gap: 6px; }
.empty-blocks i { width: 22px; height: 22px; border-radius: 5px; background: var(--surface-2); border: 1.5px dashed var(--line-3); }
.empty-blocks i:nth-child(2) { transform: translateY(-6px); }

/* Settings page */
.set-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-rail { position: sticky; top: 20px; display: grid; gap: 16px; }
.rail-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: var(--surface-2); border-radius: 18px; }
.rail-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; position: relative; }
.rail-list a:hover { color: var(--ink); }
.rail-list a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 3px 0 var(--line-2); }
.rail-n { font: 500 12px var(--font-mono); color: var(--ink-3); }
.rail-list a[data-dirty]::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-radius: 3px; background: var(--warn-dot); }
.rail-list a[href="#danger"] { color: var(--danger); }
.rail-key { font-size: 13.5px; color: var(--ink-3); padding: 0 6px; line-height: 1.5; }
.rail-key .tag { margin-bottom: 6px; }
.set-main { display: grid; gap: 18px; min-width: 0; }
.set-card { padding: 28px 30px; scroll-margin-top: 20px; }
.set-head { display: grid; gap: 4px; margin-bottom: 8px; }
.set-head h2, .set-h2 { font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; }
.set-head p, .set-sum-sub { color: var(--ink-3); font-size: 15px; }
.set-rows { display: grid; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px 28px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); position: relative; }
.set-row.is-switch { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.set-row[data-changed]::before { content: ""; position: absolute; left: -30px; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--warn-dot); }
.set-row.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 40% { background: var(--warn-soft); } 100% { background: transparent; } }
.set-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 16px/1.3 var(--font-body); }
.set-desc { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; line-height: 1.5; }
.set-undo { display: none; border: 0; background: none; padding: 2px 4px; color: var(--accent-ink); font: 600 13px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.set-row[data-changed] .set-undo { display: inline; }
.set-locked { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.set-locked .i { width: 13px; height: 13px; }
.set-row[data-locked] .set-ctl { opacity: .55; }
.row-status { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-body); padding: 5px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); }
.row-status .i { width: 12px; height: 12px; }
.row-status .spin { width: 11px; height: 11px; border-width: 2px; }
.row-status[data-s="applied"] { background: var(--ok-soft); color: var(--ok-ink); }
.row-status[data-s="restart"] { background: var(--warn-soft); color: var(--warn-ink); }
.row-status[data-s="next-start"] { background: var(--night-soft); color: var(--night-ink); }
.lock-tag { display: inline-flex; align-items: center; gap: 5px; font: 500 12.5px var(--font-body); color: var(--ink-3); background: var(--surface-2); border-radius: 7px; padding: 4px 8px; }
.lock-tag .i { width: 12px; height: 12px; }
.addr-box { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 13px; padding: 6px 6px 6px 16px; }
.addr-box code { flex: 1; min-width: 0; font: 500 15px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.addr-box .btn { margin-bottom: 0; box-shadow: 0 2px 0 var(--line-2); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.preset {
  text-align: left; display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 18px; cursor: pointer; position: relative;
  background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); margin-bottom: 4px; color: var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), border-color .2s, background-color .2s;
}
.preset:hover:not(:disabled) { border-color: var(--line-3); }
.preset:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-2); }
.preset[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 4px 0 var(--accent-edge); background: var(--accent-soft); }
.preset:disabled { opacity: .5; cursor: not-allowed; }
.preset-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .1), inset 0 2px 0 rgb(255 255 255 / .35); }
.preset-ico .i { width: 20px; height: 20px; }
.preset[data-tone="mint"] .preset-ico, .addon-ico[data-tone="mint"] { background: var(--accent-soft); color: var(--accent-ink); }
.preset[data-tone="sky"] .preset-ico, .addon-ico[data-tone="sky"] { background: var(--sky-soft); color: var(--sky-ink); }
.preset[data-tone="peach"] .preset-ico, .addon-ico[data-tone="peach"] { background: var(--peach-soft); color: var(--peach-ink); }
.preset[data-tone="butter"] .preset-ico, .addon-ico[data-tone="butter"] { background: var(--butter-soft); color: var(--butter-ink); }
.addon-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .12), inset 0 2px 0 rgb(255 255 255 / .4); }
.addon-ico .i { width: 26px; height: 26px; }
.preset-name { font: 700 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.preset-chips span { font-size: 12px; font-weight: 500; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.preset[aria-pressed="true"] .preset-chips span { background: var(--surface); }
.preset-mark { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.preset-mark .i { width: 14px; height: 14px; }
.preset[aria-pressed="true"] .preset-mark { opacity: 1; transform: none; }
.motd { margin-top: 12px; }
.motd-card { display: flex; gap: 12px; align-items: center; background: #1d1f26; color: #e9e9ee; border-radius: 12px; padding: 10px 12px; border: 2px solid #0e0f13; }
.motd-ico { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex: none; }
.motd-ico svg { width: 100%; height: 100%; }
.motd-body { flex: 1; min-width: 0; }
.motd-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.motd-top b { font-weight: 600; }
.motd-count { font: 500 12.5px var(--font-mono); color: #b8bac4; }
.motd-desc { font: 500 13px var(--font-mono); color: #9aa0ad; margin-top: 3px; overflow-wrap: anywhere; }
.motd figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.slots-strip { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.slots-strip i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); position: relative; overflow: hidden; }
.slots-strip i[data-s="open"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.slots-strip i[data-s="player"] svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slots-strip i[data-s="off"] { opacity: .45; }
.set-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.set-link:hover { background: var(--line); }
.set-link .i { width: 18px; height: 18px; }
details.set-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
details.set-fold > summary::-webkit-details-marker { display: none; }
details.set-fold > summary .chev { width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease); }
details.set-fold > summary .chev .i { width: 16px; height: 16px; }
details.set-fold[open] > summary .chev { transform: rotate(180deg); }
details.set-fold > summary .set-head { margin: 0; }
details.set-fold[open] > summary { margin-bottom: 10px; }
.set-danger { border-color: var(--danger-soft); }
.set-danger .set-h2 { color: var(--danger); }
.danger-intro { color: var(--ink-2); font-size: 15px; padding: 4px 0 14px; }
.set-needs { display: flex; gap: 6px; align-items: center; color: var(--night-ink) !important; }
.set-needs .i { width: 14px; height: 14px; }
#advanced[data-changed] .set-sum-sub { color: var(--warn-ink); font-weight: 600; }
.skel-page { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.skel-block { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* Save bar: a floating dark bar, like the toasts */
.savebar-wrap { position: fixed; left: 0; right: 0; bottom: 20px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.savebar {
  pointer-events: auto; display: flex; align-items: center; gap: 16px; width: min(760px, 100%);
  background: var(--toast-bg); color: var(--toast-ink); border-radius: 22px; padding: 12px 12px 12px 14px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.55);
}
.savebar.pop-in { animation: pop-in .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.sb-count { width: 40px; height: 40px; border-radius: 12px; background: var(--warn-dot); color: #1b1300; display: grid; place-items: center; font: 800 18px var(--font-display); flex: none; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18); }
.sb-count .i { width: 20px; height: 20px; }
.savebar[data-mode="saved"] .sb-count, .savebar[data-mode="restarting"] .sb-count { background: #2f9a49; color: #fff; }
.savebar[data-mode="failed"] .sb-count { background: #e5484d; color: #fff; }
.sb-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sb-copy b { font: 700 16.5px/1.25 var(--font-display); letter-spacing: -.01em; }
.sb-copy span { font-size: 13.5px; opacity: .78; }
.sb-actions { display: flex; gap: 8px; flex: none; }
.savebar .btn-ghost { color: inherit; opacity: .85; }
.savebar .btn-ghost:hover { background: rgb(128 128 128 / .2); opacity: 1; }
.savebar .btn-primary { margin-bottom: 4px; }
body.has-savebar .foot { padding-bottom: 120px; }

/* Add-ons */
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.addon { padding: 24px 26px; }
.addon-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.addon-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.addon-name h2 { font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; }
.addon-state { font: 600 12px/1 var(--font-body); padding: 5px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.addon[data-on="true"] .addon-state { background: var(--ok-soft); color: var(--ok-ink); }
.addon-pitch { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.addon-sum { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.addon-sum li { font-size: 13px; font-weight: 500; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.addon-body { margin-top: 12px; }
.addon-body .set-row { grid-template-columns: minmax(0, 1fr) auto; }
.addon-body .set-row.is-stack { grid-template-columns: 1fr; }
.addon-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line); }
.addon-note .i { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.addon-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--warn-soft); }
.addon-dirty { margin-right: auto; font-size: 14px; color: var(--warn-ink); font-weight: 600; }
.addon-dirty[data-error] { color: var(--danger); }
.addon-actions .btn-primary { margin-bottom: 3px; }
.addon-needs { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--butter-soft); color: var(--butter-ink); }
.addon-needs p { flex: 1; font-size: 14px; }
.addon-needs .i { width: 18px; height: 18px; flex: none; }
.addon[data-blocked] .addon-head .switch { opacity: .6; }
.field-unit { display: flex; align-items: center; gap: 10px; }
.field-unit .unit { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.vault-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 12px; max-width: 360px; }
.vault-grid i { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.vault-grid i[data-s="on"] { background: var(--peach-soft); border-color: var(--peach-ink); }
.later-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: 14.5px; color: var(--ink-2); }

/* Backups */
.bk-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.bk-now h2 { font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; margin: 16px 0 6px; }
.bk-now > p { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.bk-facts { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.bk-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bk-facts dt { color: var(--ink-3); }
.bk-facts dd { font-weight: 600; text-align: right; }
.bk-facts .is-ph { display: grid; gap: 4px; }
.bk-facts .is-ph dd { font-weight: 400; color: var(--ink-3); text-align: left; font-size: 13.5px; }
.bk-list { list-style: none; margin: 0; padding: 0; }
.bk-day h3 { font: 600 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 18px 0 8px; }
.bk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.bk-day + .bk-row { border-top: 0; }
.bk-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .06); }
.bk-ico .i { width: 18px; height: 18px; }
.bk-row[data-kind="manual"] .bk-ico { background: var(--butter-soft); color: var(--butter-ink); }
.bk-row[data-status="pending"] .bk-ico { background: var(--warn-soft); color: var(--warn-ink); }
.bk-row[data-status="failed"] { background: var(--danger-soft); border-radius: 14px; padding: 12px; border-top: 0; margin: 4px 0; }
.bk-row[data-status="failed"] .bk-ico { background: var(--surface); color: var(--danger); }
.bk-who b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bk-who > span { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.bk-latest { font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 6px; background: var(--ok-soft); color: var(--ok-ink); }
.bk-size { font: 500 13px var(--font-mono); color: var(--ink-3); }
.bk-size-inline { display: none; }
.bk-state { font-size: 13px; font-weight: 600; color: var(--warn-ink); grid-column: span 2; }
.bk-row[data-restore-state] { background: var(--warn-soft); border-radius: 14px; padding: 12px; }
.bk-status { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; margin-bottom: 14px; background: var(--warn-soft); color: var(--warn-ink); }
.bk-status[data-tone="green"] { background: var(--ok-soft); color: var(--ok-ink); }
.bk-status[data-tone="red"] { background: var(--danger-soft); color: var(--danger); }
.bk-status-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; }
.bk-status-ico .i { width: 20px; height: 20px; }
.bk-status-copy { flex: 1; display: grid; gap: 6px; font-size: 14.5px; }
.bk-status-copy b { font: 700 17px/1.2 var(--font-display); }
.bk-progress { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; display: block; }
.bk-progress i { display: block; height: 100%; width: 40%; background: currentColor; border-radius: inherit; animation: indet 1.2s var(--ease) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.bk-now .btn .spin { width: 16px; height: 16px; }

/* ================================================================ dialog */
dialog.dialog {
  border: 0; padding: 0; border-radius: 28px; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
dialog.dialog::backdrop { background: rgb(14 18 32 / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.dialog[open] { animation: pop-in .35s cubic-bezier(.2, 1.2, .4, 1) both; }
.dialog-form { padding: 28px; display: grid; gap: 12px; }
.dialog-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 -4px 0 rgb(0 0 0 / .08); }
.dialog-ico .i { width: 24px; height: 24px; }
dialog[data-tone="danger"] .dialog-ico { background: var(--danger-soft); color: var(--danger); }
dialog[data-tone="night"] .dialog-ico { background: var(--night-soft); color: var(--night-ink); }
.dialog-title { font: 700 26px/1.1 var(--font-display); letter-spacing: -.025em; margin-top: 6px; }
.dialog-body { display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.dialog-type { margin-top: 6px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ================================================================ toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; width: min(92vw, 480px); pointer-events: none; }
body.has-savebar .toasts { bottom: 112px; }
.toast {
  display: flex; gap: 12px; align-items: center; pointer-events: auto;
  background: var(--toast-bg); color: var(--toast-ink); border-radius: 16px; padding: 12px 10px 12px 14px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); font-size: 15px; line-height: 1.4;
  animation: toast-in .35s var(--ease) both;
}
.toast .tti { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; background: #2f9a49; color: #fff; }
.toast .tti .i { width: 14px; height: 14px; }
.toast[data-tone="error"] .tti { background: #e5484d; }
.toast[data-tone="info"] .tti { background: #5d6bd6; }
.toast[data-tone="night"] .tti { background: #34409a; }
.toast p { flex: 1; min-width: 0; }
.toast-action { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; height: 32px !important; }
.toast-close { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; display: grid; place-items: center; flex: none; }
.toast-close:hover { opacity: 1; background: rgb(128 128 128 / .2); }
.toast-close .i { width: 14px; height: 14px; }
.toast.out { animation: toast-out .25s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ================================================================ footer */
.foot { margin-top: 40px; border-top: 1px solid var(--line); }
.foot-main { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 20px; display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.foot-brand p { color: var(--ink-3); font-size: 14.5px; margin-top: 10px; max-width: 26em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { display: inline-block; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.foot-links a:hover { background: var(--surface-2); color: var(--ink); }
.foot-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.foot-base { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter) 30px; display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-3); }
.foot-preview { display: flex; gap: 8px; align-items: center; }
.foot-preview a { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.foot-preview a:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot-theme { display: flex; align-items: center; gap: 10px; }

/* Preview control (states.js): one small pill, bottom-left, on every page */
.preview-ctl { position: fixed; left: 16px; bottom: 16px; z-index: 55; font-size: 14px; }
.preview-ctl summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; max-width: min(360px, calc(100vw - 32px)); padding: 8px 14px 8px 9px; border-radius: 999px; background: var(--surface); border: 1.5px dashed var(--line-3); box-shadow: var(--shadow-pop); font-weight: 600; color: var(--ink); user-select: none; }
.preview-ctl summary::-webkit-details-marker { display: none; }
.preview-ctl summary:hover { border-style: solid; }
.preview-ctl[open] summary { border-style: solid; border-color: var(--ink-3); }
.pv-mark { width: 20px; height: 20px; flex: none; border-radius: 6px; background: linear-gradient(180deg, var(--grass) 0 38%, var(--dirt) 38%); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15); }
.pv-now { font-weight: 500; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pv-now:not(:empty)::before { content: "· "; }
.pv-menu { position: absolute; left: 0; bottom: calc(100% + 10px); width: 290px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); animation: rise .2s var(--ease) both; }
.pv-h { font: 600 11.5px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 8px; }
.pv-actions { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pv-actions button, .pv-states a, .pv-gallery { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; font: 500 14px/1.25 var(--font-body); }
.pv-actions button:hover, .pv-states a:hover, .pv-gallery:hover { background: var(--surface-2); }
.pv-actions .i, .pv-gallery .i { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.pv-actions small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pv-states { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 1px; border-bottom: 1px solid var(--line); }
.pv-states a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.pv-none { padding: 6px 10px 8px; font-size: 13px; color: var(--ink-3); }
.pv-gallery { margin-top: 6px; font-weight: 600; }
.pv-gallery span { flex: 1; }
body.has-savebar .preview-ctl { bottom: 112px; }

/* ================================================================ public pages */
.pub-hero { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 0; }
.hero-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-stage); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 440px; }
.hero-card .hero-copy { padding: 56px 56px 48px; display: flex; flex-direction: column; justify-content: center; color: #17191c; }
.hero-card .eyebrow { color: #1d5e2e; }
.hero-card .lede { color: #3c4148; }
.hero-card .art { position: relative; display: grid; place-items: center; padding: 32px; }
.hero-card .art svg { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 30px 30px rgba(40, 60, 90, .18)); }
.hero-card[data-night="true"] .hero-copy { color: #eef0ff; }
.hero-card[data-night="true"] .eyebrow { color: #a9e6b4; }
.hero-card[data-night="true"] .lede { color: #d4d8f2; }
:root[data-theme="night"] .hero-card { --sky-top: #1c2350; --sky-bottom: #3b4280; }
:root[data-theme="night"] .hero-card .hero-copy { color: #eef0ff; }
:root[data-theme="night"] .hero-card .eyebrow { color: #a9e6b4; }
:root[data-theme="night"] .hero-card .lede { color: #d4d8f2; }
.pub-plain-hero { max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 8px; }
.pub-plain-hero .display { font-size: clamp(42px, 4.6vw, 68px); max-width: 16em; }
.pub-section { max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.pub-wide { max-width: var(--maxw); }

/* FAQ */
.qa-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.qa { display: grid; gap: 10px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 700 18px/1.3 var(--font-display); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { border-radius: 20px; outline-offset: -3px; }
.qa-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background-color .2s; }
.qa-ico .i { width: 14px; height: 14px; }
.qa details[open] .qa-ico { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent-ink); }
.qa-a { padding: 0 20px 20px; color: var(--ink-2); font-size: 16px; }

.close-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 32px 36px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.close-card h2 { font: 700 34px/1.05 var(--font-display); letter-spacing: -.03em; }
.close-card p { color: var(--ink-2); margin-top: 6px; }
.close-art { width: 96px; height: 96px; }
.close-art svg { width: 100%; height: 100%; }
.close-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Help */
.help-search { margin-top: 26px; max-width: 640px; }
.search-box { position: relative; }
.search-box > [data-icon] { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-box input { padding-left: 48px; padding-right: 90px; height: 56px; border-radius: 16px; font-size: 17px; }
.search-box .btn { position: absolute; right: 8px; top: 9px; }
.help-count { font-size: 14px; color: var(--ink-3); margin-top: 8px; min-height: 21px; }
.help-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.help-nav { position: sticky; top: 20px; }
.help-nav ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: var(--surface-2); border-radius: 18px; }
.help-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.help-nav a:hover { background: var(--surface); color: var(--ink); }
.help-nav a .i { width: 16px; height: 16px; color: var(--ink-3); }
.topics { display: grid; gap: 18px; }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; scroll-margin-top: 20px; }
.topic .block-ico { grid-row: span 2; }
.topic h2 { font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; align-self: center; }
.topic-body { display: grid; gap: 14px; color: var(--ink-2); font-size: 16px; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: h; }
.howto-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.howto-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.howto li { counter-increment: h; background: var(--surface-2); border-radius: 16px; padding: 14px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.howto li::before { content: counter(h); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; margin-bottom: 10px; background: var(--surface); box-shadow: 0 3px 0 var(--line-2); font: 700 14px var(--font-display); }
.status-guide { display: grid; gap: 8px; }
.status-guide > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); }
.status-guide dd { font-size: 15px; }
.status-guide dd b { color: var(--ink); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.versus > div { padding: 16px; border-radius: 16px; display: grid; gap: 6px; font-size: 15px; }
.versus b { display: flex; align-items: center; gap: 8px; font: 700 18px/1.2 var(--font-display); }
.versus .i { width: 18px; height: 18px; }
.versus .yes { background: var(--ok-soft); color: var(--ok-ink); }
.versus .no { background: var(--surface-2); color: var(--ink-2); }
.contact-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 600; color: var(--ink); }
.contact-line .i { width: 18px; height: 18px; }

/* Legal */
.draft-note { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--butter-soft); color: var(--butter-ink); max-width: 760px; font-size: 15px; }
.draft-note .i { width: 20px; height: 20px; flex: none; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter) 0; }
.legal-nav { position: sticky; top: 20px; display: grid; gap: 8px; }
.legal-tab { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); }
.legal-tab small { display: block; color: var(--ink-3); font-size: 13px; }
.legal-docs { display: grid; gap: 18px; }
.legal-doc { scroll-margin-top: 20px; }
.legal-doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.legal-doc-head h2 { font: 700 30px/1.1 var(--font-display); letter-spacing: -.03em; }
.legal-doc-head p { color: var(--ink-2); margin-top: 6px; }
.legal-meta { font: 500 13px var(--font-mono); color: var(--ink-3) !important; }
.legal-secs { margin: 0; padding: 0; list-style: none; counter-reset: l; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.legal-secs li { counter-increment: l; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-secs li::before { content: counter(l, decimal-leading-zero); grid-row: span 2; font: 500 13px var(--font-mono); color: var(--ink-3); padding-top: 3px; }
.legal-secs h3 { font: 600 16px/1.3 var(--font-body); }
.legal-secs p { color: var(--ink-3); font-size: 14.5px; }

/* Join (player) */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; margin-top: 24px; }
.join-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.join-head .display { margin-bottom: 8px; }
.join-sub { color: var(--ink-2); font-size: 18px; }
.progress-steps { list-style: none; margin: 26px 0 0; padding: 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); border-radius: 16px; max-width: 640px; }
.progress-steps li { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-radius: 12px; color: var(--ink-3); font-weight: 600; font-size: 14.5px; }
.progress-steps li span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 700 12.5px var(--font-display); background: var(--surface); border: 1.5px solid var(--line-2); flex: none; }
.progress-steps li[data-s="now"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 0 var(--line-2); }
.progress-steps li[data-s="now"] span { border-color: var(--accent); color: var(--accent-ink); }
.progress-steps li[data-s="done"] { color: var(--ink-2); }
.progress-steps li[data-s="done"] span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.progress-steps li[data-s="err"] { background: var(--danger-soft); color: var(--danger); }
.progress-steps li[data-s="err"] span { border-color: var(--danger); color: var(--danger); }
.join-card { padding: 32px; }
.join-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.need-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.need-list li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-2); }
.need-list b { display: block; color: var(--ink); }
@media (max-width: 860px) { .need-list { grid-template-columns: 1fr; } }
.join-step-head h2 { font: 700 30px/1.08 var(--font-display); letter-spacing: -.03em; margin: 12px 0 8px; }
.join-step-head p { color: var(--ink-2); font-size: 16px; }
.step-num { font: 500 13px var(--font-mono); color: var(--ink-3); }
.step-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.acct-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface-2); margin-top: 20px; }
.acct-row .who { flex: 1; display: grid; }
.acct-row .who span { color: var(--ink-3); font-size: 14px; }
.acct-ok { display: inline-flex; gap: 6px; align-items: center; color: var(--ok-ink); font-weight: 600; font-size: 14px; }
.acct-ok .i { width: 16px; height: 16px; }
.signin-note { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }
.agree-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.deal-line { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.result-ico { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .1); }
.result-ico .i { width: 28px; height: 28px; }
.result-ico[data-tone="green"] { background: var(--ok-soft); color: var(--ok-ink); }
.result-ico[data-tone="red"] { background: var(--danger-soft); color: var(--danger); }
.result-ico[data-tone="peach"] { background: var(--peach-soft); color: var(--peach-ink); }
.result-ico[data-tone="night"] { background: var(--night-soft); color: var(--night-ink); }
.todo-list { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.todo-list b { color: var(--ink); }
.quiet-link { color: var(--ink-3); font-size: 14.5px; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quiet-link:hover { color: var(--ink); }
.aside-stage { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; height: 230px; margin: -26px -28px 20px; }
.aside-card h2 { font: 700 21px/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 14px; }
.aside-card dl { display: grid; }
.aside-card dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.aside-card dt { color: var(--ink-3); }
.aside-card dd { font-weight: 600; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; }
.aside-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.aside-links a:hover { color: var(--accent-ink); }
.aside-links .i { width: 16px; height: 16px; }
.faces { display: flex; }
.faces .avatar { width: 34px; height: 34px; border-radius: 10px; margin-right: -6px; box-shadow: 0 0 0 2.5px var(--surface); }
.faces-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }

/* Waitlist + owners (landing-style pages) */
.form-title { font: 700 24px/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sent { text-align: left; display: grid; gap: 12px; justify-items: start; }
.sent h2, .sent h3 { font: 700 30px/1.08 var(--font-display); letter-spacing: -.03em; }
.sent p { color: var(--ink-2); }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: center; }
.points b { display: block; font: 700 17px/1.2 var(--font-display); }
.points span { color: var(--ink-2); font-size: 15px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.next-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card); }
.next-grid h3 { font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; margin: 14px 0 6px; }
.next-grid p { color: var(--ink-2); font-size: 15px; }
fieldset.fs { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
fieldset.fs legend { font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; padding: 0; margin-bottom: 14px; }
fieldset.fs + fieldset.fs { margin-top: 14px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14.5px; margin-bottom: 16px; }
.alert .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.owners-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.stat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-card); }
.stat-chip .i { width: 18px; height: 18px; color: var(--accent-ink); }
.owner-deal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: start; }
.owner-deal p { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
.next-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 14px; align-items: center; color: var(--ink-2); }

/* ================================================================ responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 32px; padding: 0 24px 32px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .two-col, .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .addon-grid { grid-template-columns: 1fr; }
  .nav-link.wide-only { display: none; }
}
@media (max-width: 960px) {
  .set-layout, .skel-page { grid-template-columns: minmax(0, 1fr); }
  .set-rail { position: static; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .rail-list a { white-space: nowrap; }
  .rail-list { display: flex; overflow-x: auto; scrollbar-width: none; }
  .rail-key { display: none; }
  .help-grid, .legal-grid, .join-grid { grid-template-columns: minmax(0, 1fr); }
  .help-nav, .legal-nav { position: static; }
  .help-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; }
  .help-nav a { white-space: nowrap; }
  .qa-grid, .owner-deal, .apply-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card .art { min-height: 260px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .topbar-row { height: 64px; gap: 10px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 26px; height: 26px; }
  .preview-tag { font-size: 11.5px; padding: 6px 9px; }
  .topbar .nav-link, .topbar .swatches, .topbar .top-cta { display: none; }
  .topbar .site-menu-btn { display: inline-flex; }
  .app-top .app-slash { display: none; }
  .app-top .app-id .brand span { display: none; }
  .app-top .preview-tag { display: none; }
  .acct-btn .acct-label { display: none; }
  .app-nav-row { padding-bottom: 4px; }
  .app-nav { display: flex; }
  .app-nav a { height: 38px; padding: 0 13px; font-size: 14px; }
  body[data-chrome="app"] { --head-h: 112px; }
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px 32px; }
  .stage { position: relative; top: 0; height: min(56vh, 430px); min-height: 320px; border-radius: 28px; }
  body[data-view="world"] .stage { height: min(46vh, 360px); min-height: 280px; }
  .chip-status { left: 12px; bottom: 12px; font-size: 13.5px; padding: 8px 13px 8px 11px; }
  .chip-hint { right: 12px; bottom: 12px; font-size: 12px; padding: 8px 11px; }
  .chip-top { top: 14px; }
  .panel { padding-top: 26px; }
  .display { font-size: clamp(34px, 9.4vw, 44px); }
  .world-name { font-size: clamp(34px, 9.4vw, 44px); }
  .lede { font-size: 16.5px; }
  .card { padding: 20px; border-radius: 24px; }
  .field-row { flex-direction: column; align-items: stretch; }
  .field-row .btn { width: 100%; }
  .field-row.keep-row { flex-direction: row; }
  .field-row.keep-row .btn { width: auto; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reasons, .how, .next-grid { grid-template-columns: 1fr; gap: 12px; }
  .band { margin-top: 44px; }
  .sky-head { grid-template-columns: 1fr; min-height: 0; border-radius: 28px; }
  .sky-head .island-slot { min-height: 170px; order: -1; }
  .sky-head-copy { padding: 0 20px 22px; }
  .sky-head .display { font-size: clamp(34px, 9vw, 44px); }
  .sky-head .lede { font-size: 15.5px; }
  .set-card { padding: 22px 20px; }
  .set-row, .set-row.is-switch { grid-template-columns: minmax(0, 1fr); }
  .set-row.is-switch { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .set-row[data-changed]::before { left: -20px; }
  .slots-strip { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .range-ends { padding-right: 0; }
  .range-row .set-val { min-width: 76px; }
  .presets { grid-template-columns: 1fr 1fr; gap: 10px; }
  .preset { padding: 14px; }
  .pl-row { grid-template-columns: 44px minmax(0, 1fr); }
  .pl-row .avatar { width: 44px; height: 44px; }
  .pl-actions { grid-column: 1 / -1; justify-content: flex-start; gap: 4px; margin-left: -8px; }
  .pl-actions .btn-ghost { padding: 0 9px; }
  .pl-actions .btn-secondary { margin-left: 8px; }
  .pl-filter .count { display: none; }
  .deal-card { padding: 26px 22px !important; }
  .pl-filter label { font-size: 13px; padding: 6px 4px; }
  .bk-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bk-size { display: none; }
  .bk-size-inline { display: inline; }
  .savebar { flex-wrap: wrap; border-radius: 20px; }
  .sb-copy { flex-basis: calc(100% - 60px); }
  .sb-actions { width: 100%; }
  .sb-actions .btn { flex: 1; }
  .savebar-wrap { bottom: 12px; }
  .addon-head { grid-template-columns: auto minmax(0, 1fr); }
  .addon-head .switch { grid-column: 2; justify-self: start; }
  .addon-actions { flex-wrap: wrap; }
  .addon-dirty { width: 100%; }
  .howto, .howto-3, .howto-2 { grid-template-columns: 1fr 1fr; }
  .status-guide > div { grid-template-columns: 1fr; gap: 6px; }
  .versus { grid-template-columns: 1fr; }
  .topic { grid-template-columns: 1fr; }
  .topic .block-ico { grid-row: auto; }
  .legal-secs { grid-template-columns: 1fr; }
  .close-card { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .hero-card .hero-copy { padding: 28px 22px 26px; }
  .hero-card { border-radius: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .progress-steps li { font-size: 13px; padding: 0 8px; gap: 7px; }
  .join-card { padding: 22px; }
  .aside-stage { margin: -20px -20px 18px; }
  .foot-main { flex-direction: column; gap: 18px; }
  .pub-section { padding-top: 44px; }
  .build-pct { font-size: 64px; }
  .preview-ctl { left: 12px; bottom: 12px; }
  body.has-savebar .preview-ctl { bottom: 178px; }
}
@media (max-width: 520px) {
  .preview-tag .long { display: none; }
  .address-row { flex-direction: column; }
  .address-row .btn { width: 100%; }
  .seg-track label, .segmented span { font-size: 13.5px; gap: 5px; padding: 6px 4px; }
  .seg-track label .bars { display: none; }
  .progress-steps li { font-size: 12.5px; gap: 6px; padding: 0 6px; }
  .build-top { flex-direction: column; align-items: flex-start; }
  .build-top p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .burst { display: none; }
}
