/* REZO212: the members' side. Built on site.css (the landing page's look), so the Studio reads as the same show:
   warm near-black, amber for Fate.frames, mono labels, corner brackets. This file adds the app pieces. */
:root { --tick: 0px; --ok: #4ade80; --warn: #ffb84c; --bad: #ff5a52; --card: #15120f; --card-2: #1b1714; }
body { padding-bottom: 0; }
main { min-height: calc(100vh - 260px); }

/* ---------- header ---------- */
main { min-height: calc(100svh - 69px); } /* keeps the footer below the fold while the page fills in */
#app-header { display: block; height: 69px; background: var(--nav-bg); border-bottom: 1px solid var(--line); } /* holds the header's place until app.js draws it */
.app-top { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-top .nav { min-height: 68px; }
.app-top.shrunk .nav { min-height: 58px; }
.logo-tag { margin-left: .7em; padding: 3px 7px 2px; border: 1px solid var(--amber); color: var(--amber); border-radius: 3px; font-family: var(--mono); font-size: .46em; letter-spacing: .16em; transform: translateY(-.1em); }
.navlinks a { display: inline-flex; align-items: center; gap: 7px; }
.navlinks .lk { opacity: .7; }
.who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 5px 12px 5px 5px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s; max-width: 240px; }
.who:hover { border-color: var(--amber); }
.who .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; flex: none; }
.who-t { display: grid; line-height: 1.1; min-width: 0; }
.who-t b { font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-t small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.btn.ghost { background: transparent; }
.mlock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.menu-btn { display: none; }
@media (max-width: 1080px) {
  .app-top .navlinks { display: none; }
  .menu-btn { display: inline-grid; }
  .who-t small { display: none; }
}
@media (max-width: 560px) {
  .who-t { display: none; }
  .who { padding: 4px; }
  .app-top .nav-right .btn.ghost { display: none; }
  .logo { font-size: 19px; }
}

/* ---------- page head ---------- */
.ph { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 90% at 85% 10%, rgba(var(--acc), .13), transparent 60%), radial-gradient(ellipse 40% 70% at 100% 100%, rgba(23,144,142,.16), transparent 60%); }
.ph h1 { font-size: clamp(46px, 7vw, 96px); max-width: 14ch; }
.ph .lede { margin-top: 16px; }
.ph-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.sec { padding-block: clamp(36px, 5vw, 64px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-t { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.sec-t h2 { font-size: clamp(30px, 3.6vw, 46px); }
.k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.k.amber { color: var(--amber); }

/* ---------- panels ---------- */
.panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 2.4vw, 26px); }
.panel.hl { border-color: rgba(var(--acc), .5); background: radial-gradient(ellipse at 0 0, rgba(var(--acc), .1), transparent 60%), var(--card); }
.panel h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: .95; }
.panel p { margin: 10px 0 0; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; align-content: start; }

/* ---------- status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: rgba(74,222,128,.35); }
.badge.warn { color: var(--warn); border-color: rgba(var(--acc), .4); }
.badge.bad { color: var(--bad); border-color: rgba(255,90,82,.4); }
.badge.new { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.badge.plain::before { display: none; }

/* ---------- plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 24px 22px 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); transition: border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.plan:hover { border-color: rgba(var(--acc), .6); }
.plan.best { border-color: var(--amber); background: radial-gradient(ellipse at 100% 0, rgba(var(--acc), .16), transparent 55%), var(--card); }
.plan .flag { position: absolute; top: -11px; right: 18px; padding: 3px 10px; background: var(--amber); color: var(--ink); border-radius: 3px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.plan h3 { font-size: 30px; line-height: .95; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-weight: 700; font-size: 58px; line-height: .85; letter-spacing: -.01em; }
.price span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.price s { color: var(--dim); font-family: var(--display); font-size: 24px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; line-height: 1.35; }
.plan li::before { content: "→"; color: var(--amber); flex: none; }
.plan li.no { color: var(--dim); }
.plan li.no::before { content: "×"; color: var(--dim); }
.plan .btn { width: 100%; }
.plan .sub { font-size: 13.5px; color: var(--muted); margin: 0; text-align: center; }

/* ---------- tiles (dashboard) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: grid; gap: 12px; align-content: start; padding: 24px 22px; min-height: 230px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--fg); overflow: hidden; isolation: isolate; transition: border-color .25s; }
.tile:hover { border-color: var(--amber); }
.tile::before, .tile::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--amber); opacity: .8; }
.tile::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.tile::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.tile h3 { font-size: 32px; line-height: .95; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile .go { margin-top: auto; font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.tile .art { position: absolute; inset: auto -10px -26px auto; width: 150px; height: 150px; z-index: -1; opacity: .16; color: var(--amber); }
.tile.locked { border-style: dashed; }
.tile.locked .go { color: var(--muted); }
.tile.locked::before, .tile.locked::after { border-color: var(--line-2); }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tile .tags span { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- status strip (dashboard) ---------- */
.status { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.status > div { padding: 18px 20px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); min-width: 0; }
.status > div:first-child { border-left: 0; }
.status b { font-family: var(--display); font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.status small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .status { grid-template-columns: 1fr 1fr; } .status > div:nth-child(3) { border-left: 0; } .status > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .status { grid-template-columns: 1fr; } .status > div { border-left: 0; border-top: 1px solid var(--line); } .status > div:first-child { border-top: 0; } }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--amber); border-radius: inherit; }

/* ---------- steps (how access works) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.steps li { counter-increment: s; padding: 22px 20px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; background: var(--card); }
.steps li:first-child { border-left: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .14em; }
.steps b { font-family: var(--display); font-size: 21px; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.steps span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; border-top: 1px solid var(--line); } .steps li:first-child { border-top: 0; } }
.steps.compact { grid-template-columns: 1fr; }
.steps.compact li { border-left: 0; border-top: 1px solid var(--line); padding: 14px 16px; grid-template-columns: auto 1fr; column-gap: 12px; }
.steps.compact li:first-child { border-top: 0; }
.steps.compact li::before { grid-row: span 2; padding-top: 3px; }

/* ---------- forms ---------- */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } }
.fld .hint { font-size: 13px; color: var(--dim); }
.fld .opt { color: var(--dim); text-transform: none; letter-spacing: .02em; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fld textarea { min-height: 110px; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 7px 10px; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pw button:hover { color: var(--amber); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); flex: none; }
.fld.bad .check { color: var(--bad); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-msg { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--amber); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.fs-t { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.fs-t i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .14em; font-weight: 500; }

/* plan picker (radio cards) */
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; } }
.pick label { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.pick label:hover { border-color: rgba(var(--acc), .6); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); grid-row: span 2; transition: border-color .2s, box-shadow .2s; }
.pick b { font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.pick small { grid-column: 2; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.pick .pr { grid-row: span 2; text-align: right; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; }
.pick .pr small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pick .save { position: absolute; top: -9px; right: 12px; padding: 1px 8px; border-radius: 3px; background: var(--go); color: #062010; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pick input:checked + label, .pick label:has(input:checked) { border-color: var(--amber); background: rgba(var(--acc), .06); }
.pick input:checked + label .rd, .pick label:has(input:checked) .rd { border-color: var(--amber); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--amber); }
.pick input:focus-visible + label, .pick label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.pick label.off { opacity: .45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 15px; transition: border-color .2s, background .2s; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { border-color: var(--amber); background: rgba(var(--acc), .1); color: var(--amber-2); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }

/* join / request layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }
.aside { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 16px; }
@media (max-width: 980px) { .aside { position: static; } }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-row span { color: var(--muted); }
.sum-row b { text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.sum-total b { font-family: var(--display); font-size: 40px; line-height: 1; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.trust li { display: flex; gap: 10px; align-items: baseline; }
.trust li::before { content: "✓"; color: var(--go); font-weight: 700; }
.form-block { display: grid; gap: 28px; }
.form-block > fieldset { padding-top: 24px; border-top: 1px solid var(--line); }
.form-block > fieldset:first-child { padding-top: 0; border-top: 0; }

/* auth pages */
.auth-wrap { display: grid; place-items: start center; padding-block: clamp(36px, 7vw, 90px); }
.auth-box { width: min(480px, 100%); }
.auth-box h1 { font-size: clamp(44px, 7vw, 64px); }
.auth-box .lede { font-size: 17px; margin-top: 12px; }
.auth-box .panel { margin-top: 26px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 15px; text-align: center; }
.auth-foot a { color: var(--amber); }
.done-box { display: grid; gap: 14px; justify-items: start; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.12); color: var(--go); font-size: 26px; }
.refno { font-family: var(--mono); font-size: 22px; letter-spacing: .12em; color: var(--amber); padding: 8px 14px; border: 1px dashed var(--amber); border-radius: 6px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card-2); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(var(--acc), .04); }
.empty { padding: 26px 18px; color: var(--muted); text-align: center; }

/* ---------- referrals ---------- */
.reflink { display: flex; gap: 8px; flex-wrap: wrap; }
.reflink input { flex: 1 1 260px; min-width: 0; min-height: 50px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; color: var(--fg); font-family: var(--mono); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); display: grid; gap: 4px; }
.kpi b { font-family: var(--display); font-size: 34px; line-height: 1; }
.kpi.hl { border-color: rgba(74,222,128,.4); }
.kpi.hl b { color: var(--go); }

/* ---------- tabs (account, admin) ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 26px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; background: none; border: 0; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs button::after, .tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .3s; }
.tabs [aria-selected="true"] { color: var(--fg); }
.tabs [aria-selected="true"]::after { transform: scaleX(1); }
.tabs .n { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tabs .n:empty, .tabs .n[data-n="0"] { display: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { min-height: 42px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; color: var(--fg); font: inherit; font-size: 15px; }
.toolbar input { flex: 1 1 220px; min-width: 0; }
.toolbar .chips label { padding: 7px 12px; font-size: 14px; }

/* admin request cards */
.reqs { display: grid; gap: 12px; }
.rq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.rq.is-new { border-left: 3px solid var(--amber); }
.rq h4 { margin: 0; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rq dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.rq dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.rq dd { margin: 2px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.rq .msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.rq .acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
@media (max-width: 720px) { .rq { grid-template-columns: 1fr; } .rq .acts { flex-direction: row; flex-wrap: wrap; min-width: 0; } }

/* admin: community (groups, spaces, demand, reports) */
.chips .cn { margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 17px; }
.chips .cn:empty { display: none; }
.cstats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: -4px 0 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cstats:empty { display: none; }
.toolbar .hint { color: var(--dim); font-size: 13px; }
.cstats b { color: var(--fg); }
.demand { margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse 50% 120% at 100% 0, rgba(var(--acc), .08), transparent 70%), var(--card); }
.demand-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.demand-h small { color: var(--muted); font-size: 13.5px; }
.demand ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.demand li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; font-size: 14.5px; }
.dm-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-c { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.dm-c b { color: var(--gc); font-size: 14px; }
.demand .bar { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.demand .bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 55%, transparent), var(--gc)); transform-origin: left; }
.aic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; }
.ic-t { font-size: .9em; line-height: 1; white-space: nowrap; }
.dm-n .aic, .dm-n .ic-t { color: var(--gc); margin-right: 4px; }
.cgs { display: grid; gap: 12px; }
.cg { border: 1px solid var(--line); border-left: 3px solid var(--gc, var(--amber)); border-radius: 10px; background: var(--card); }
.cg.is-hidden { border-left-style: dashed; }
.cg.is-hidden .cg-h > :not(.cg-acts) { opacity: .62; }
.cg-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px 16px; align-items: center; padding: 16px 18px; }
.cg-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; color: var(--gc); background: color-mix(in srgb, var(--gc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent); overflow: hidden; }
.cg-t h4 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; overflow-wrap: anywhere; }
.cg-t p { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
.cg .meta, .cs .meta { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--dim); overflow-wrap: anywhere; }
.cg-w { display: grid; justify-items: center; min-width: 62px; line-height: 1; }
.cg-w b { font-family: var(--display); font-size: 30px; color: var(--gc); }
.cg-w small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.cg-w.zero b { color: var(--dim); }
.cg-acts, .cs-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.mv { display: inline-flex; gap: 4px; }
.mv .icon-btn { width: 34px; height: 34px; border-radius: 8px; }
.mv .icon-btn[disabled] { opacity: .3; cursor: default; border-color: var(--line); color: var(--dim); }
.cs-list { list-style: none; margin: 0 18px; padding: 0; border-top: 1px solid var(--line); }
.cs { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cs:last-child { border-bottom: 0; }
.cs-ic { font-size: 18px; text-align: center; overflow: hidden; color: var(--muted); }
.cs-t { min-width: 0; }
.cs-t b { font-weight: 600; overflow-wrap: anywhere; }
.cs-t small { display: block; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.cs-b { display: flex; flex-wrap: wrap; gap: 6px; }
.cs.is-hidden .cs-t, .cs.is-hidden .cs-ic { opacity: .55; }
.cs-empty { padding: 14px 0; color: var(--muted); font-size: 14.5px; }
.cs .btn.sm, .cg-acts .btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.cg-foot { padding: 10px 18px 14px; }
.ipick { display: flex; flex-wrap: wrap; gap: 5px; }
.ipick button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-size: 17px; line-height: 1; color: var(--fg); cursor: pointer; }
.ipick button:hover, .sw:hover { border-color: var(--amber); }
.cpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cpick input[type="color"] { width: 58px; min-height: 46px; padding: 4px; cursor: pointer; }
.sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid var(--line-2); background: var(--c); cursor: pointer; }
[data-page="admin"] .modal.open { z-index: 90; } /* admin: dialogs opened from the member drawer sit above it */
.rp .msg { margin-top: 12px; overflow-wrap: anywhere; }
.rp h4 { overflow-wrap: anywhere; }
.rp .sub { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rp .msg .badge { margin-right: 6px; }
@media (max-width: 720px) {
  .cg-h { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
  .cg-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .cs-list { margin: 0 14px; }
  .cs { grid-template-columns: 24px minmax(0, 1fr); align-items: start; }
  .cs-ic { padding-top: 2px; }
  .cs-b, .cs-a { grid-column: 2; justify-content: flex-start; }
  .cg-ic { align-self: start; width: 40px; height: 40px; font-size: 19px; }
  .cg-foot { padding: 10px 14px 14px; }
  .demand li { grid-template-columns: minmax(0, 1fr) auto; }
  .demand .bar { grid-column: 1 / -1; order: 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .demand .bar i { animation: ff-grow .9s cubic-bezier(.2,.8,.2,1) both; }
  .cg.just-opened { animation: ff-opened 1.1s ease-out 2; }
  .cg.just-opened .cg-ic { animation: ff-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
}
@keyframes ff-grow { from { transform: scaleX(0); } }
@keyframes ff-opened { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gc) 55%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
@keyframes ff-pop { 0% { transform: scale(.6) rotate(-12deg); } 100% { transform: none; } }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 4px; text-decoration: none; color: var(--muted); }
.contact-links a:hover { border-color: var(--amber); color: var(--amber); }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn.ok { border-color: rgba(74,222,128,.5); color: var(--go); }
.btn.danger { border-color: rgba(255,90,82,.45); color: var(--bad); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* modal boxes in the app */
.modal .box.form-box { width: min(620px, 100%); background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; }
.modal .box.form-box h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 6px; }
.mclose { position: absolute; top: 14px; right: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--amber); color: var(--amber); }

/* drawer (member detail) */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(640px, 100%); z-index: 85; background: #110f0d; border-left: 1px solid var(--line-2); transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); overflow-y: auto; padding: 24px clamp(18px, 3vw, 30px) 40px; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-scrim { position: fixed; inset: 0; z-index: 84; background: rgba(5,4,4,.7); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer h2 { font-size: clamp(28px, 4vw, 38px); overflow-wrap: anywhere; }
.drawer .sec-t { margin: 26px 0 12px; }
.drawer .sec-t h3 { font-size: 22px; }
.act-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .act-grid { grid-template-columns: 1fr; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 8px; background: #1f1b17; border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: 15px; transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(74,222,128,.5); }
.toast.err { border-color: rgba(255,90,82,.6); }

/* notice bars */
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border: 1px solid rgba(var(--acc), .45); border-radius: 10px; background: rgba(var(--acc), .06); color: var(--fg); font-size: 15.5px; }
.notice.ok { border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.06); }
.notice.bad { border-color: rgba(255,90,82,.45); background: rgba(255,90,82,.06); }
.notice .grow { flex: 1 1 260px; }
.notice b { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; }

/* faq */
.qa { display: grid; gap: 10px; }
.qa details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.qa summary { cursor: pointer; padding: 16px 18px; font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--amber); font-family: var(--mono); }
.qa details[open] summary::after { content: "−"; }
.qa details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* footer */
.app-foot { margin-top: clamp(40px, 6vw, 80px); }
.app-foot .foot { align-items: center; }
.app-foot .logo { font-size: 18px; }

/* skeleton */
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%; animation: skel 1.4s linear infinite; min-height: 120px; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* reveal */
.rv { transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.pre { opacity: 0; transform: translateY(24px); }

/* guide: two plans in the unlock box */
.bb2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bb2 .buybox { grid-template-columns: 1fr; align-content: start; border-color: var(--line-2); background: var(--card); }
.bb2 .buybox.best { border-color: var(--amber); background: linear-gradient(135deg, rgba(var(--acc), .12), transparent 60%), var(--card); }
.bb2 + .bb-fine { margin: 4px 0 0; }
@media (max-width: 720px) { .bb2 { grid-template-columns: 1fr; } }

/* labels inside .fld that are controls, not field names: undo the mono label style from site.css */
.fld .pick label, .fld .chips label, .fld label.check, .toolbar .chips label { font-family: var(--body); letter-spacing: normal; text-transform: none; }
.fld .pick label { font-size: 16px; color: var(--fg); }
.fld .chips label { font-size: 15px; color: var(--fg); }
.fld label.check { font-size: 15px; color: var(--muted); }
.fld label.check b { color: var(--fg); }
.pick small { font-family: var(--body); letter-spacing: normal; text-transform: none; }
.logo-tag { text-transform: uppercase; }
.fgrid .fld, .form .fld { align-content: start; }
.tile { display: flex; flex-direction: column; }
@media (max-width: 480px) {
  .app-top .nav { gap: 10px; }
  .app-top .nav-right .btn.primary { padding: 8px 12px; font-size: 13px; letter-spacing: .08em; }
  .app-top .logo { font-size: 17px; letter-spacing: .12em; }
  .app-top .logo .mk { margin-right: .35em; }
}
/* (REZO212 is short: the wordmark stays on phones) */
.wm { display: inline-flex; align-items: center; } .wm i { display: inline-block; width: .26em; height: .26em; background: var(--amber); margin: 0 .2em 0 .02em; transform: translateY(.18em); }
.split > *, .grid2 > *, .stack > * { min-width: 0; }
@media (max-width: 980px) { .panel .split { grid-template-columns: minmax(0, 1fr) !important; } }
.panel, .fld, .form { min-width: 0; } .fld input, .fld select, .fld textarea { max-width: 100%; min-width: 0; }
.stack { grid-template-columns: minmax(0, 1fr); }
.form, .form-block, .fld { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 400px) { .form-actions .btn, .cta-row .btn { white-space: normal; text-align: center; } }

/* ---------- Studio hub ---------- */
.hub-hero .ph-row { align-items: center; }
.hub-hero .ph-row > div { flex: 1 1 520px; min-width: 0; }
.hub-reel { width: min(300px, 70vw); aspect-ratio: 9 / 16; height: auto; border-radius: 22px; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--ov), .08), 0 0 0 10px var(--card), 0 0 0 11px rgba(var(--ov), .08); transform: rotate(2deg); margin: 10px auto 10px; }
@media (max-width: 900px) { .hub-reel { transform: none; } }
.toolgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .toolgrid { grid-template-columns: minmax(0, 1fr); } }
.hub-chips { margin-bottom: 18px; }
.hub-chips button { position: relative; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 15px; cursor: pointer; color: var(--fg); }
.hub-chips button.on { border-color: var(--amber); background: rgba(var(--acc), .1); color: var(--amber-2); }
.tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tpl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.tpl:hover { border-color: var(--amber); transform: translateY(-3px); }
.tpl-cv { position: relative; }
.tpl-cv canvas { width: 100%; aspect-ratio: 9 / 16; display: block; border-radius: 9px; background: #000; }
.tpl-cv .badge { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border: 0; border-radius: 4px; background: rgba(0,0,0,.72); color: var(--amber-2); font-size: 9.5px; letter-spacing: .08em; }
.tpl-cv .badge::before { display: none; }
.tpl-t { display: grid; gap: 6px; align-content: start; min-width: 0; }
.tpl-t h3 { font-size: 23px; line-height: 1; }
.tpl-t p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.tpl-a { margin-top: 6px; }
.tpl-a .btn { white-space: normal; text-align: center; }
.projgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.proj { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--fg); }
.proj:hover { border-color: var(--amber); }
.proj img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #000; }
.proj b { display: block; font-family: var(--display); font-size: 18px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj small { color: var(--muted); font-size: 13px; }
.hub-q { flex: 1 1 180px; min-width: 0; min-height: 40px; padding: 6px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); font-size: 15px; }
.hub-q:focus { outline: none; border-color: var(--amber); }
.toolgrid .tile .k.amber { color: var(--amber); }
/* hub: grouped tools with icons */
.tgroups { display: grid; gap: 28px; }
.tgroup-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tgroup-h h3 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.tile .ti { width: 30px; height: 30px; margin-bottom: 10px; fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile.locked .ti { stroke: var(--muted); }

/* Performance: the guide is one long page. Steps far off screen skip layout and paint until they come near,
   which is most of the work the page used to do on load (Lighthouse's Total Blocking Time). */
.g-step { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
.tgroup .tile, .tpl { content-visibility: auto; contain-intrinsic-size: auto 320px; }

/* admin: delete dialogs, Guides categories editor */
.chips.col { flex-direction: column; align-items: stretch; }
.chips.col label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-radius: 12px; }
.chips.col select { min-height: 34px; padding: 4px 30px 4px 10px; font-size: 14px; width: auto; max-width: 100%; }
.icon-btn.danger-ib { color: var(--muted); }
.icon-btn.danger-ib:hover { color: var(--refuse); border-color: var(--refuse); }
.gcats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.gcat { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr) auto auto auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.gcat input, .gcat select { min-height: 36px; font-size: 14px; padding: 4px 10px; }
.gcat select { padding-right: 30px; }
.gcat .mv { display: inline-flex; gap: 4px; }
.gcat-w { font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }
@media (max-width: 760px) { .gcat { grid-template-columns: auto minmax(0, 1fr) auto; } .gcat input[data-gcf="tagline"] { grid-column: 1 / -1; } .gcat-w { grid-column: 2; } }

/* ---------- Guides: categories, shelf, reader (one step at a time) ---------- */
.gd-top { position: relative; padding: clamp(26px, 4vw, 44px) 0 clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, rgba(23,144,142,.16), transparent 60%), radial-gradient(50% 100% at 10% 100%, rgba(var(--acc), .10), transparent 60%); overflow: hidden; }
.gd-top::before { content: ""; position: absolute; inset: -40% -10% auto; height: 140%; background: conic-gradient(from 200deg at 70% 40%, transparent, rgba(var(--acc), .07), transparent 30%, rgba(23,144,142,.08), transparent 60%); filter: blur(30px); animation: gd-aurora 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes gd-aurora { to { transform: translate3d(-6%, 4%, 0) rotate(8deg); } }
.gd-top .wrap { position: relative; }
.gd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.gd-head .eyebrow { margin: 0 0 8px; }
.gd-h { margin: 0; font-size: clamp(34px, 4.4vw, 54px); line-height: .95; }
.gd-sub { max-width: 46ch; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.gd-tabs { margin-top: 20px; }
.gd-tabs-in { position: relative; display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); backdrop-filter: blur(10px); }
.gd-tabs-in::-webkit-scrollbar { display: none; }
.gd-tab { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .2s; }
.gd-tab:hover, .gd-tab.on { color: var(--fg); }
.gd-tab.soon { color: var(--dim); }
.gd-tab.soon .gd-ic { color: var(--dim); }
.gd-tab.soon.on { color: var(--muted); }
.gd-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--amber); }
.gd-soon { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--dim); }
.gd-glide { position: absolute; z-index: 0; left: 0; top: 4px; height: 40px; width: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(var(--acc), .2), rgba(var(--acc), .07)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .5), 0 6px 24px -10px rgba(var(--acc), .6); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1), opacity .2s; pointer-events: none; }
.gd-tab.skel-chip { width: 150px; background: rgba(var(--ov), .04); }
.gd-shelf { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; min-height: 92px; }
.gd-shelf:empty { display: none; }
.gd-card { position: relative; display: grid; gap: 4px; align-content: center; padding: 14px 92px 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--fg); overflow: hidden; }
.gd-card b { font-family: var(--display); font-size: 21px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; }
.gd-card small { color: var(--muted); font-size: 13.5px; }
.gd-card.on { border-color: rgba(var(--acc), .55); background: radial-gradient(80% 140% at 0 0, rgba(var(--acc), .12), transparent 60%), var(--card); }
.gd-card.on:hover { border-color: var(--amber); }
.gd-next { border-style: dashed; padding-right: 16px; } .gd-next b { color: var(--muted); font-size: 17px; }
.gd-ring { position: absolute; right: 16px; top: 50%; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%; background: conic-gradient(var(--amber) calc(var(--p) * 1%), rgba(var(--ov), .08) 0); display: grid; place-items: center; }
.gd-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.gd-ring i { position: relative; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--fg); }
.gd-free { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 4px 9px; border: 1px solid rgba(74,222,128,.5); border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--go); }
.gd-soonbox { padding: clamp(36px, 6vw, 80px) 0; }
.gd-sb { max-width: 640px; margin: 0 auto; padding: 32px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px; background: radial-gradient(70% 100% at 50% 0%, rgba(var(--acc), .08), transparent 70%), var(--card); display: grid; justify-items: center; gap: 10px; }
.gd-sb .gd-ic { width: 40px; height: 40px; }
.gd-sb h2 { margin: 4px 0 0; font-size: clamp(30px, 4vw, 44px); }
.gd-sb p { margin: 0; color: var(--muted); max-width: 48ch; }
.gd-sb .cta-row { justify-content: center; margin-top: 8px; }
/* reading one step: the cover and the categories fold away, a compact bar keeps the place */
body.g-reading .gd-top, body.g-reading .phero { display: none; }
body.g-reading .g-work { padding-top: 18px !important; }
.g-bar { position: sticky; top: var(--hdr, 69px); z-index: 25; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); backdrop-filter: blur(12px); }
.g-bar-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.g-bar-back:hover { color: var(--fg); border-color: var(--amber); }
.g-bar-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.g-bar-t { display: grid; min-width: 0; line-height: 1.15; }
.g-bar-t b { font-family: var(--display); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bar-t .k { font-size: 10px; }
.g-bar-p { display: grid; justify-items: end; gap: 6px; min-width: 150px; }
.g-bar-p .mono { font-size: 11.5px; color: var(--muted); }
.g-bar-m { width: 150px; height: 4px; border-radius: 2px; background: rgba(var(--ov), .08); overflow: hidden; }
.g-bar-m i { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 10px rgba(var(--acc), .6); transition: width .4s; }
body.g-reading .g-step[data-step] { padding-top: 6px; border-top: 0; }
body.g-reading .g-chapter { margin-top: 0; padding-top: 6px; border-top: 0; }
.g-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 26px 0 8px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.g-pager #gPrev { justify-self: start; } .g-pager #gNext { justify-self: end; }
.g-pager-n { font-size: 12px; color: var(--muted); }
.g-pager .btn[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 760px) {
  .gd-shelf { grid-template-columns: minmax(0, 1fr); }
  .gd-next { display: none; }
  .g-bar { grid-template-columns: auto minmax(0, 1fr); }
  .g-bar-p { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: auto 1fr; align-items: center; }
  .g-bar-m { width: auto; }
  .g-bar-back span { display: none; }
  .g-pager .t { display: none; }
  body.g-reading .g-mtoc { top: calc(var(--hdr, 69px) + 96px); }
}
@media (prefers-reduced-motion: reduce) { .gd-top::before { animation: none; } .gd-glide, .g-bar-m i { transition: none; } }
body:not(.g-reading) .g-readbar { display: none; }
body.g-reading .g-step h2:focus { outline: none; }

/* the guide's overview map */
body:not(.g-reading) .g-work .g-layout, body:not(.g-reading) .g-work .g-mtoc { display: none; }
body:not(.g-reading) .g-work { padding-top: clamp(28px, 4vw, 48px) !important; }
.g-map-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.g-map-h h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.g-map-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.g-mc { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.g-mc header { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; margin-bottom: 8px; }
.g-mc header .mono { color: var(--amber); font-size: 12px; }
.g-mc header b { font-family: var(--display); font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.g-mc header small { grid-column: 2; color: var(--dim); font-size: 12.5px; }
.g-mc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.g-mc a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14.5px; transition: background .2s, color .2s; }
.g-mc a:hover { background: rgba(var(--acc), .07); color: var(--fg); }
.g-mc .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.g-mc .ck { width: 14px; height: 14px; border: 1px solid var(--line-2); border-radius: 50%; }
.g-mc a.done .ck { background: var(--go); border-color: var(--go); }
.g-mc a.done .n { color: var(--go); }
.g-mc a.lockd { opacity: .55; } .g-mc a.lockd .ck { border-radius: 3px; border-style: dashed; }

/* ---------- Studio console: one card, tabs ---------- */
.scon { position: relative; padding: clamp(16px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(70% 60% at 100% 0%, rgba(var(--acc), .07), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(23,144,142,.07), transparent 60%), var(--card); box-shadow: 0 40px 120px -60px rgba(0,0,0,.9); }
.scon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(var(--acc), .5), transparent 30%, transparent 70%, rgba(23,144,142,.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.sc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.sc-title h2 { margin: 4px 0 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1; }
.sc-tabs { position: sticky; top: var(--hdr, 69px); z-index: 20; margin: 0 -6px 16px; padding: 6px; background: linear-gradient(var(--card) 80%, transparent); }
.sc-tabs-in { position: relative; display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--ov), .02); }
.sc-tabs-in::-webkit-scrollbar { display: none; }
.sc-tab { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .2s; }
.sc-tab:hover, .sc-tab[aria-selected="true"] { color: var(--fg); }
.sc-tab .n, .hub-chips .n { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.sc-tab[aria-selected="true"] .n { color: var(--amber); }
.sc-tab.skel-chip { width: 140px; background: rgba(var(--ov), .04); }
.sc-glide { position: absolute; z-index: 0; left: 0; top: 4px; height: 40px; width: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(var(--acc), .2), rgba(var(--acc), .07)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .5), 0 6px 24px -10px rgba(var(--acc), .6); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1), opacity .2s; pointer-events: none; }
.sc-panel { min-height: 520px; animation: sc-in .3s ease-out; }
@keyframes sc-in { from { opacity: 0; transform: translateY(6px); } }
.sc-filters { display: grid; gap: 10px; margin-bottom: 16px; }
.sc-f2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sc-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.sc-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.sc-seg button[aria-pressed="true"] { background: var(--amber); color: var(--ink); font-weight: 600; }
.hub-chips button[disabled] { opacity: .35; pointer-events: none; }
.sc-lead { margin: 0 0 14px; color: var(--muted); font-size: 15px; max-width: 70ch; }
.sc-tools { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile .tags .xtra { border-color: rgba(23,144,142,.6); color: #5fd0cd; }
.sc-empty { padding: 30px 0; color: var(--muted); }
.sc-sec { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) { .scon { border-radius: 16px; padding: 14px; } .sc-tabs { margin-inline: -4px; } .sc-tab { padding: 0 12px; font-size: 14px; } .sc-panel { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-glide { transition: none; } .sc-panel { animation: none; } }
.sc-tools .tile { min-height: 0; padding: 18px; gap: 8px; }
.sc-tools .tile h3 { font-size: 23px; }
.sc-tools .tile p { font-size: 14.5px; }
.sc-tools .tile .ti { width: 26px; height: 26px; margin-bottom: 2px; }

/* ---------- Discord: the home band and the small button ---------- */
.dband-sec { padding-block: 8px clamp(28px, 4vw, 48px); }
.dband { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px; padding: clamp(18px, 3vw, 26px); border-radius: 20px; text-decoration: none; color: var(--fg); background: radial-gradient(60% 140% at 0% 0%, rgba(88,101,242,.35), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgba(255,184,76,.14), transparent 60%), #12111a; border: 1px solid rgba(88,101,242,.4); overflow: hidden; isolation: isolate; transition: transform .25s, border-color .25s; }
.dband::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(150,160,255,.95) 80%, rgba(255,184,76,.95) 88%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hb-orbit 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hb-orbit { to { --a: 360deg; } }
.dband:hover { transform: translateY(-2px); border-color: rgba(120,132,255,.8); }
.dband-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #5865f2; color: #fff; box-shadow: 0 12px 34px -10px rgba(88,101,242,.95); }
.dband-ic .dc-ic { width: 38px; height: 38px; }
.dc-ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dc-ic circle { fill: currentColor; stroke: none; }
.dband-t { display: grid; gap: 4px; min-width: 0; }
.dband-t b { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.dband-t b em { font-style: normal; color: #9aa4ff; }
.dband-t small { color: var(--muted); font-size: 15px; }
.dband-go { background: #5865f2; border-color: #5865f2; color: #fff; }
.dband:hover .dband-go { filter: brightness(1.08); }
.dc-btn { display: inline-flex; align-items: center; gap: 7px; } .dc-btn .dc-ic { width: 18px; height: 18px; } .dc-btn:hover { border-color: #5865f2; color: #c5caff; }
@media (max-width: 700px) { .dband { grid-template-columns: auto minmax(0, 1fr); } .dband-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; justify-content: center; } .dband-ic { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .dband::before { animation: none; } }

/* ---------- pointer effects (app.js) ---------- */
.fx-glow { position: fixed; z-index: 30; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(280px circle at var(--fx-x) var(--fx-y), var(--fx-c, rgba(var(--acc), .09)), transparent 65%); transition: opacity .25s; }
.fx-glow.on { opacity: 1; }
.fx-spark { position: fixed; z-index: 200; width: 5px; height: 5px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); pointer-events: none; animation: fx-spark .5s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes fx-spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
/* shiny labels */
.eyebrow b, .k.amber { background: linear-gradient(100deg, var(--amber) 40%, #fff3d6 50%, var(--amber) 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shine 2.2s ease-out .8s 1 both; }
@keyframes fx-shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@media (prefers-reduced-motion: reduce) { .eyebrow b, .k.amber { animation: none; background: none; color: var(--amber); } .fx-spark { display: none; } }
.gd-card { min-height: 92px; }

/* Guides tabs v2: icons that open on hover (all categories fit); the open one keeps its name */
.gd-tabs-in { width: max-content; max-width: 100%; }
.gd-tab { gap: 0; padding: 0 12px; transition: color .2s, background .25s, gap .3s; }
.gd-tab .gd-l { display: inline-flex; align-items: center; gap: 8px; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .35s cubic-bezier(.2,.8,.2,1), opacity .25s, margin .35s; }
.gd-tab.on, .gd-tab:hover, .gd-tab:focus-visible { gap: 8px; }
.gd-tab.on .gd-l, .gd-tab:hover .gd-l, .gd-tab:focus-visible .gd-l { max-width: 260px; opacity: 1; }
.gd-tab.on { background: linear-gradient(135deg, rgba(var(--acc), .2), rgba(var(--acc), .07)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .5), 0 6px 24px -10px rgba(var(--acc), .6); }
.gd-tab:not(.on):hover { background: rgba(var(--ov), .05); }
.gd-tab .gd-ic { width: 19px; height: 19px; }
.gd-tab { position: relative; }
.gd-dot { position: absolute; top: 9px; left: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 2px var(--card); transition: opacity .2s; }
.gd-tab:hover .gd-dot, .gd-tab.on .gd-dot { opacity: 0; }
/* the shelf: under the category tabs */
.gd-top .gd-shelf { margin-top: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.gd-shelf-h { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; margin: 0; }
.gd-card { font: inherit; text-align: left; cursor: default; }
button.gd-card { cursor: pointer; transition: border-color .2s, transform .2s; }
button.gd-card:hover { transform: translateY(-2px); }
.gd-card .gd-hook { font-style: normal; color: var(--fg); font-size: 15px; line-height: 1.35; }
.gd-card.on { padding-right: 96px; }
.gd-card small { line-height: 1.4; }
.gd-shelf .skel { min-height: 165px; } /* the real cards' height: nothing moves when they arrive */
@media (max-width: 760px) { .gd-shelf .skel { min-height: 262px; } }
@media (max-width: 760px) { .gd-top .gd-shelf { grid-template-columns: minmax(0, 1fr); } .gd-tab { padding: 0 11px; } }
@media (prefers-reduced-motion: reduce) { .gd-tab .gd-l { transition: none; } }
.gd-meta { margin-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* =========================================================================================================
   REZO212 (2.8): the mark, the two plans, tab bars that scroll, the Lab, My projects, the ambient background
   ========================================================================================================= */
/* the mark + wordmark */
.rz { display: block; width: 1.35em; height: 1.35em; margin-right: .45em; overflow: visible; }
.rz .rz-l { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2; stroke-linejoin: round; }
.rz circle { transition: transform .4s cubic-bezier(.2,.8,.2,1); transform-box: fill-box; transform-origin: center; }
.rz .rz-a { fill: var(--amber); } .rz .rz-b { fill: #2ec4b6; } .rz .rz-c { fill: #ff6b5b; }
.logo:hover .rz circle { transform: scale(1.25); }
.logo:hover .rz .rz-b { transition-delay: .06s; } .logo:hover .rz .rz-c { transition-delay: .12s; }
.wm { letter-spacing: .14em; } .wm b { color: var(--amber); font-weight: 700; margin-left: .06em; }
.cm-empty-mk .rz { width: 34px; height: 34px; margin: 0 auto; }

/* Monthly / Yearly switch + the two plan cards */
.bill-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(var(--ov), .02); }
.bill-seg label { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.bill-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bill-seg label:has(input:checked) { background: var(--amber); color: var(--ink); }
.bill-seg label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.bill-seg em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: none; padding: 2px 7px; border-radius: 999px; background: rgba(46,196,182,.16); color: #5fd0cd; }
.bill-seg label:has(input:checked) em { background: rgba(0,0,0,.16); color: var(--ink); }
.bill-wrap { margin: 2px 0 12px; min-height: 44px; }
.plans-w { display: grid; gap: 18px; justify-items: center; }
.plans-w > .plans { width: 100%; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; }
@media (max-width: 720px) { .plans.two { grid-template-columns: minmax(0, 1fr); } }
.plans-w[data-bill="monthly"] .only-y, .plans-w[data-bill="yearly"] .only-m { display: none !important; }
.plan .price s { color: var(--dim); margin-right: 8px; }

/* horizontal tab bars: arrows at the edge that has more, soft fades */
.gd-tabs.ts { position: relative; } /* (.sc-tabs is sticky: also a containing block for the arrows) */
.ts .ts-b { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(16,14,12,.92); color: var(--fg); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, border-color .2s; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.ts .ts-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts .ts-b:hover { border-color: var(--amber); color: var(--amber); }
.ts .ts-l { left: 2px; } .ts .ts-r { right: 2px; }
.ts.fl .ts-l, .ts.fr .ts-r { opacity: 1; pointer-events: auto; }
.ts > :first-child { -webkit-mask-image: linear-gradient(90deg, var(--ml, #000) 0, #000 40px, #000 calc(100% - 40px), var(--mr, #000) 100%); mask-image: linear-gradient(90deg, var(--ml, #000) 0, #000 40px, #000 calc(100% - 40px), var(--mr, #000) 100%); }
.ts.fl > :first-child { --ml: transparent; } .ts.fr > :first-child { --mr: transparent; }
.sc-tabs.ts .ts-l { left: 8px; } .sc-tabs.ts .ts-r { right: 8px; }

/* the Lab: a small head like the Academy's */
.lb-top .gd-head { align-items: center; }
.lb-side { display: grid; gap: 12px; justify-items: start; }
.lb-side .cta-row { margin: 0; }

/* tool cards: a small moving picture of what the tool does (moves on hover / keyboard focus) */
.sc-tools .tile { padding: 14px 16px 16px; }
.vz { display: block; margin: -2px -4px 4px; border-radius: 10px; overflow: hidden; background: #101114; border: 1px solid rgba(255,255,255,.06); }
.vz svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.vz * { transform-box: fill-box; }
.vz text { font-family: var(--display); font-weight: 700; letter-spacing: .06em; }
.vz .vz-ph { fill: #16181d; stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.vz .vz-bg2 { fill: #1b1d23; } .vz .vz-dark { fill: #0a0a0c; }
.vz .vz-d rect, .vz .vz-d circle, .vz rect.vz-d { fill: rgba(255,255,255,.14); }
.vz .vz-d2 { fill: rgba(255,255,255,.12); }
.vz .vz-a, .vz .vz-bars .vz-a { fill: var(--amber); }
.vz .vz-a2 { fill: var(--amber); }
.vz .vz-cl { fill: rgba(255,255,255,.42); }
.vz .vz-tx { fill: #f1f2f4; font-size: 6px; } .vz .vz-tx.big { font-size: 8.5px; } .vz .vz-tx.big2 { font-size: 12px; }
.vz .vz-k { fill: rgba(255,255,255,.45); font-size: 5.6px; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; }
.vz .vz-big { font-size: 26px; fill: rgba(255,255,255,.8); }
.vz .vz-hi, .vz .vz-hi2 { fill: var(--amber); }
.vz .vz-ar { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vz .vz-card { fill: #f1f2f4; } .vz .vz-card .vz-cl, .vz .vz-slide .vz-cl { fill: rgba(0,0,0,.35); } .vz .vz-r { fill: #ff3d8b; }
.vz .vz-foot { fill: #22252c; }
.vz .vz-pan { fill: rgba(0,0,0,.55); stroke: var(--amber); stroke-width: .8; }
.vz .vz-rec { fill: #ff5252; }
.vz .vz-go { fill: #3ddc84; } .vz .vz-no { fill: #ff5252; }
.vz .vz-pill { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.25); stroke-width: .6; }
.vz .vz-ring0 { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 1.4; }
.vz .vz-ring { fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 25.2; stroke-dashoffset: 8; transform: rotate(-90deg); transform-origin: center; }
.vz .vz-ax { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 1; }
.vz .vz-bars rect { fill: rgba(255,255,255,.22); transform-origin: bottom; }
.vz .vz-av { fill: #1b1e2e; stroke: #8c9bff; stroke-width: 1.2; } .vz .vz-mic { fill: none; stroke: #f1f2f4; stroke-width: 1.6; stroke-linecap: round; }
.vz .vz-wave rect { fill: #8c9bff; transform-origin: center; }
.vz .vz-card2 { fill: #16181d; stroke: rgba(255,255,255,.14); } .vz .vz-win { stroke: var(--amber); }
.vz .vz-x { fill: none; stroke: #ff5252; stroke-width: 1.4; stroke-linecap: round; } .vz .vz-ck { fill: none; stroke: #3ddc84; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vz .vz-track { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.14); stroke-width: .6; }
.vz .vz-blocks rect { fill: rgba(140,155,255,.55); }
.vz .vz-ph2 { stroke: var(--amber); stroke-width: 1.4; } .vz .vz-tapc { fill: rgba(214,255,61,.3); stroke: var(--amber); }
.vz .vz-key { fill: #1b1d23; stroke: rgba(255,255,255,.35); }
.vz .vz-grid { stroke: rgba(255,255,255,.07); stroke-dasharray: 3 3; } .vz .vz-line { fill: none; stroke: #8c9bff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 0; } .vz .vz-dot { fill: var(--amber); }
.vz .vz-safe { fill: rgba(214,255,61,.06); stroke: var(--amber); stroke-width: .9; stroke-dasharray: 2.5 2; }
.vz .vz-micb { fill: #1b1d23; stroke: rgba(255,255,255,.4); }
.vz .vz-messy rect { fill: rgba(255,82,82,.45); } .vz .vz-neat rect { fill: rgba(61,220,132,.55); }
.vz .vz-wave2 rect { fill: #8c9bff; } .vz .vz-cut { fill: rgba(0,0,0,.55); } .vz .vz-handle rect { fill: var(--amber); }
.vz .vz-pad { fill: #1b1d23; stroke: rgba(255,255,255,.14); }
.vz .vz-watch { fill: #16181d; stroke: rgba(255,255,255,.35); stroke-width: 2; } .vz .vz-hand { stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; transform-origin: 50% 100%; }
.vz .vz-part:nth-child(1) .vz-ph { stroke: var(--amber); }
/* motion: paused until the card is hovered or focused */
.vz * { animation-play-state: paused !important; }
.tile:hover .vz *, .tile:focus-visible .vz * { animation-play-state: running !important; }
.vz .vz-grow { transform-origin: left; animation: vz-grow 2.4s linear infinite; }
.vz .vz-w1 { animation: vz-hl 1.8s steps(1) infinite; } .vz .vz-w2 { animation: vz-hl 1.8s steps(1) -1.2s infinite; } .vz .vz-w3 { animation: vz-hl 1.8s steps(1) -.6s infinite; }
.vz .vz-slide { animation: vz-slide 2.6s ease-in-out infinite; }
.vz .vz-rec { animation: vz-blink 1s steps(1) infinite; }
.vz .vz-vote { transform-origin: right; animation: vz-vote 3s ease-in-out infinite alternate; }
.vz .vz-ok { animation: vz-ok 2.4s steps(1) infinite; } .vz .vz-ring { animation: vz-ring 2.4s linear infinite; }
.vz .vz-bars rect { animation: vz-bar 2.2s cubic-bezier(.2,.8,.2,1) infinite; } .vz .vz-bars rect:nth-child(2) { animation-delay: .1s; } .vz .vz-bars rect:nth-child(3) { animation-delay: .2s; } .vz .vz-bars rect:nth-child(4) { animation-delay: .3s; } .vz .vz-bars rect:nth-child(5) { animation-delay: .4s; }
.vz .vz-wave rect { animation: vz-wave .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
.vz .vz-win { animation: vz-glow 1.6s ease-in-out infinite alternate; }
.vz .vz-head { animation: vz-head 3s linear infinite; } .vz .vz-tapc { animation: vz-tap .75s ease-out infinite; } .vz .vz-key { animation: vz-key .75s steps(1) infinite; }
.vz .vz-line { animation: vz-draw 3s ease-out infinite; } .vz .vz-dot { animation: vz-pop 3s ease-out infinite; }
.vz .vz-safe { animation: vz-dash 1.2s linear infinite; }
.vz .vz-scroll { animation: vz-scroll 4s linear infinite; }
.vz .vz-messy { animation: vz-fade 2.4s ease-in-out infinite alternate; } .vz .vz-neat rect { transform-origin: left; animation: vz-grow2 2.4s ease-in-out infinite alternate; }
.vz .vz-handle, .vz .vz-cut { transform-origin: left; } .vz .vz-handle { animation: vz-handle 2.4s ease-in-out infinite alternate; } .vz .vz-cut { animation: vz-cut 2.4s ease-in-out infinite alternate; }
.vz .vz-pad { animation: vz-pad 1.8s steps(1) infinite; animation-delay: calc(var(--i) * -.3s); }
.vz .vz-fill3 { transform-origin: left; animation: vz-grow 1.6s ease-out infinite; }
.vz .vz-hand { transform-origin: 50% 100%; animation: vz-spin 3s linear infinite; }
.vz .vz-part { animation: vz-part 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes vz-grow { from { transform: scaleX(0); } }
@keyframes vz-grow2 { from { transform: scaleX(.6); } }
@keyframes vz-hl { 0% { fill: var(--amber); } 33.3% { fill: #f1f2f4; } }
@keyframes vz-slide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes vz-blink { 50% { opacity: .2; } }
@keyframes vz-vote { to { transform: scaleX(1.5); } }
@keyframes vz-ok { 50% { fill: rgba(61,220,132,.45); stroke: #3ddc84; } }
@keyframes vz-ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 25.2; } }
@keyframes vz-bar { 0% { transform: scaleY(.1); } 60%, 100% { transform: scaleY(1); } }
@keyframes vz-wave { from { transform: scaleY(.35); } }
@keyframes vz-glow { to { stroke-width: 2.2; } }
@keyframes vz-head { from { transform: translateX(-54px); } to { transform: translateX(70px); } }
@keyframes vz-tap { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes vz-key { 0% { fill: rgba(214,255,61,.35); } 30% { fill: #1b1d23; } }
@keyframes vz-draw { from { stroke-dashoffset: 220; } 70%, to { stroke-dashoffset: 0; } }
@keyframes vz-pop { 0%, 40% { transform: scale(0); } 60% { transform: scale(1.5); } 70%, to { transform: scale(1); } }
@keyframes vz-dash { to { stroke-dashoffset: -9; } }
@keyframes vz-scroll { from { transform: translateY(6px); } to { transform: translateY(-30px); } }
@keyframes vz-fade { to { opacity: .25; } }
@keyframes vz-handle { from { transform: translateX(-30px); } }
@keyframes vz-cut { from { transform: scaleX(.2); } }
@keyframes vz-pad { 0% { fill: rgba(214,255,61,.4); } 17% { fill: #1b1d23; } }
@keyframes vz-spin { to { transform: rotate(360deg); } }
@keyframes vz-part { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .vz * { animation: none !important; } }
.tile.locked .vz { filter: saturate(.55); }
.sc-tools .tile.skel { min-height: 280px; }

/* the templates: one collapsible row per pack */
#packChips { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.tp-packs { display: grid; gap: 10px; }
.tp-pack { border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--ov), .015); }
.tp-pack.open { border-color: rgba(var(--acc), .35); }
.tp-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; border: 0; background: none; color: var(--fg); text-align: left; cursor: pointer; font: inherit; }
.tp-h b { font-family: var(--display); font-size: 21px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tp-h .n { font-family: var(--mono); font-size: 11px; color: var(--amber); padding: 2px 8px; border: 1px solid rgba(var(--acc), .4); border-radius: 999px; }
.tp-peek { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.tp-peek i { flex: none; font-style: normal; font-size: 13px; color: var(--dim); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.tp-pack.open .tp-peek { visibility: hidden; }
.tp-chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .25s; }
.tp-pack.open .tp-chev { transform: rotate(180deg); stroke: var(--amber); }
.tp-h:hover b { color: var(--amber); }
.tp-pack .tplgrid { padding: 4px 14px 16px; }
@media (max-width: 640px) { .tp-peek { display: none; } .tp-h b { font-size: 18px; } }

/* My projects (Home) */
.projt { cursor: default; }
.projt:hover { border-color: var(--line-2); }
.pj-l { display: grid; gap: 8px; min-height: 150px; align-content: start; }
.pj-l .skel { height: 44px; border-radius: 8px; }
.pj { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; color: var(--fg); transition: border-color .2s; }
.pj:hover { border-color: var(--amber); }
.pj img, .pj-ph { width: 27px; height: 48px; object-fit: cover; border-radius: 4px; background: #000; display: block; }
.pj b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj small { display: block; color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-empty, .pj-more { margin: 0; color: var(--muted); font-size: 14.5px; }

/* the ambient background: three soft lights drifting slowly behind everything (one fixed layer, transform only) */
body { background: transparent; }
body::after { content: ""; position: fixed; z-index: -1; inset: -25vmax; pointer-events: none;
  background: radial-gradient(28vmax 22vmax at 22% 18%, rgba(var(--acc), .075), transparent 70%), radial-gradient(30vmax 24vmax at 82% 34%, rgba(46,196,182,.07), transparent 70%), radial-gradient(26vmax 22vmax at 52% 88%, rgba(140,120,255,.06), transparent 70%);
  animation: amb-drift 46s ease-in-out infinite alternate; will-change: transform; }
@keyframes amb-drift { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg); } 100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
.projt .go { text-decoration: none; } .projt .go:hover { text-decoration: underline; }

/* =========================================================================================================
   REZO212's monogram + the home scroll scene
   ========================================================================================================= */
.rzm { display: block; height: 1.5em; width: auto; margin-right: .55em; fill: #fff; transition: fill .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.logo:hover .rzm { fill: var(--amber); transform: translateY(-1px) rotate(-4deg); }
.cm-empty-mk .rzm { height: 40px; margin: 0 auto; }

/* The hero: headline left, the monogram + network right. It all plays on load (CSS), before any scroll:
   0.15s the outline draws · 1.1s it fills · 1.7s the lines grow · 1.9s–2.3s Academy, Lab, Hub arrive. */
.rz-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.rz-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rz-grid { position: absolute; inset: -10% -10% -10% 35%; background-image: linear-gradient(rgba(var(--ov), .045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ov), .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(closest-side at 55% 50%, #000, transparent); mask-image: radial-gradient(closest-side at 55% 50%, #000, transparent); transform: perspective(800px) rotateX(24deg); transform-origin: 50% 70%; animation: rz-gridin 2.4s ease-out both; }
.rz-l1, .rz-l2 { position: absolute; width: 56vw; aspect-ratio: 1; border-radius: 50%; }
.rz-l1 { right: -14vw; top: -30%; background: radial-gradient(closest-side, rgba(var(--acc), .16), transparent); animation: rz-drift 18s ease-in-out infinite alternate; }
.rz-l2 { left: -18vw; bottom: -40%; background: radial-gradient(closest-side, rgba(46,196,182,.13), transparent); animation: rz-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes rz-gridin { from { opacity: 0; transform: perspective(800px) rotateX(55deg) scale(1.2); } }
@keyframes rz-drift { to { transform: translate3d(-6vw, 4vw, 0); } }
.rz-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: min(calc(100svh - 69px), 820px); padding-block: 40px; }
.rz-copy h1 { font-size: clamp(46px, 6.4vw, 96px); max-width: 13ch; margin: 0; }
.rz-copy .eyebrow { margin: 0 0 14px; }
.rz-copy .lede { margin-top: 18px; max-width: 52ch; }
.rz-copy .cta-row { margin-top: 26px; }

/* the visual: its own box (container units), the mark at (55, 50) */
.rz-vis { --cx: 52; --cy: 50; position: relative; height: min(calc(100svh - 149px), 720px); /* not var(--hdr): the header shrinks on scroll and the 3D mark would resize */ min-height: 500px; container-type: size; }
.rz-mono { position: absolute; left: calc(var(--cx) * 1%); top: calc(var(--cy) * 1%); height: 50cqh; aspect-ratio: 369 / 598; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
.rz-tilt { position: relative; width: 100%; height: 100%; transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.rz-mono svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 60px rgba(255,255,255,.14)); animation: rz-float 7s ease-in-out 2.6s infinite; }
.rz-halo { position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ov), .12), rgba(var(--acc), .07) 55%, transparent); transform: translate(-50%, -50%); animation: rz-halo 2.2s ease-out .4s both, rz-breath 6s ease-in-out 2.6s infinite; }
.rz-fill { fill: url(#rzG); animation: rz-fillin 1s ease-out 1.1s both; }
.rz-line { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: rz-draw 1.6s cubic-bezier(.6,0,.2,1) .15s both; }
.rz-shine { animation: rz-shine 7s ease-in-out 2.4s infinite; }
@keyframes rz-draw { from { stroke-dashoffset: 1; } }
@keyframes rz-fillin { from { fill-opacity: 0; } }
@keyframes rz-shine { 0% { transform: translateX(0); } 22%, 100% { transform: translateX(760px); } }
@keyframes rz-halo { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes rz-breath { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes rz-float { 50% { transform: translateY(-8px); } }

/* the network: lines from the mark, then the three spaces */
.rz-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.rz-net .ln { fill: none; stroke: rgba(var(--acc), .6); stroke-width: .16; stroke-dasharray: 1; stroke-dashoffset: 0; animation: rz-draw .7s ease-out both; }
.rz-net .ln1 { animation-delay: 1.7s; } .rz-net .ln2 { animation-delay: 1.85s; } .rz-net .ln3 { animation-delay: 2s; }
.rz-node { --x: 17; --y: 18; --d: 1.9s; position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 3; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; width: 206px; padding: 12px 14px; border: 1px solid rgba(var(--acc), .38); border-radius: 16px; background: linear-gradient(140deg, rgba(36,29,21,.95), rgba(16,14,12,.95)); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); color: var(--fg); text-decoration: none; transform: translate(-50%, -50%); transition: border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.2,.8,.2,1);
  animation: rz-node .8s cubic-bezier(.2,.9,.25,1.2) var(--d) both; }
.rz-node.n2 { --x: 87; --y: 46; --d: 2.05s; } .rz-node.n3 { --x: 22; --y: 82; --d: 2.2s; }
@keyframes rz-node { from { opacity: 0; transform: translate(-50%, -50%) translate(calc((var(--cx) - var(--x)) * 1cqw), calc((var(--cy) - var(--y)) * 1cqh)) scale(.3); } }
.rz-node:hover { border-color: var(--amber); box-shadow: 0 20px 60px -20px rgba(255,140,40,.45); transform: translate(-50%, -50%) translateY(-3px); }
.rz-ni { grid-row: span 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(var(--acc), .12); border: 1px solid rgba(var(--acc), .35); }
.rz-ni svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rz-node b { font-family: var(--display); font-size: 21px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.rz-node small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.rz-node em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }

@media (max-width: 900px) {
  .rz-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 32px 8px; gap: 8px; }
  .rz-vis { --cx: 50; --cy: 52; height: 470px; min-height: 0; }
  .rz-mono { height: 50cqh; }
  .rz-node { width: 150px; grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 11px 10px; }
  .rz-ni { grid-row: auto; width: 38px; height: 38px; }
  .rz-node b { font-size: 19px; } .rz-node small { font-size: 12px; }
  .rz-node.n1 { --x: 22; --y: 15; } .rz-node.n2 { --x: 78; --y: 15; } .rz-node.n3 { --x: 50; --y: 88; }
}
@media (max-width: 480px) { .rz-copy .cta-row .btn.ghost { display: none; } .rz-node small { display: none; } .rz-node { width: 128px; } }
@media (prefers-reduced-motion: reduce) {
  .rz-hero *, .rz-hero *::before { animation: none !important; }
}
