
:root {
  --bg: #08080A; --p1: #0E0E10; --p2: #141417; --p3: #1B1B1F; --p4: #25252A;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.14);
  --tx: #EEEEF0; --mu: #92929B; --dim: #5E5E67;
  --brand: #EEEEF0; --on-brand: #141414; --ok: #56E39F;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --rail: 232px;
  --line3: rgba(255,255,255,.26); --grid-dot: rgba(255,255,255,.06); --shadow: rgba(0,0,0,.55); --scrim: rgba(0,0,0,.55);
  --accent: var(--brand); --bf-display: var(--sans); --bf-text: var(--sans); --bf-case: none;
}
:root[data-theme="light"] {
  --bg: #F4F4F2; --p1: #FFFFFF; --p2: #F6F6F4; --p3: #ECECE9; --p4: #E0E0DC;
  --line: rgba(0,0,0,.09); --line2: rgba(0,0,0,.17); --line3: rgba(0,0,0,.32);
  --tx: #131314; --mu: #5F5F66; --dim: #8C8C93; --ok: #0E9F5B;
  --grid-dot: rgba(0,0,0,.09); --shadow: rgba(0,0,0,.18); --scrim: rgba(20,20,20,.35);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--tx); transition: background .3s, color .3s; font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }
[hidden] { display: none !important; }

.lbl { font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.mono { font-family: var(--mono); }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 18px; justify-items: start; z-index: 50; background: var(--bg); transition: opacity .5s var(--ease), visibility .5s; }
.boot.is-out { opacity: 0; visibility: hidden; }
.boot__mark { display: flex; align-items: center; gap: 12px; font: 600 22px/1 var(--mono); letter-spacing: .04em; }
.boot__line { font: 400 11px var(--mono); color: var(--mu); letter-spacing: .08em; text-transform: uppercase; }
.boot__bar { width: 280px; height: 2px; background: var(--p3); overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s var(--ease); }

/* the ON toggle — the product's mark */
.tog { display: inline-flex; align-items: center; justify-content: flex-end; width: 2.1em; height: 1.15em; padding: .14em; border-radius: 1em; background: var(--brand); flex: none; }
.tog i { width: .87em; height: .87em; border-radius: 50%; background: var(--on-brand); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) 1fr; height: 100vh; }
.rail { display: flex; flex-direction: column; background: var(--p1); border-right: 1px solid var(--line); padding: 18px 14px 14px; min-height: 0; }
.wordmark { display: flex; align-items: center; gap: 10px; padding: 4px 6px 20px; font-size: 15px; }
.wordmark__t { font: 600 11.5px/1.15 var(--mono); letter-spacing: .12em; }

.ws { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--p2); }
.ws__ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ws__ic img { width: 22px; }
.ws__n { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.ws__d { font-size: 11px; color: var(--mu); }

.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--mu); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--p2); color: var(--tx); }
.nav a.is-on { background: var(--p3); color: var(--tx); }
.nav a.is-on .nav__n { color: var(--accent); }
.nav__n { font: 500 10px var(--mono); color: var(--dim); width: 16px; }
.nav__lock { margin-left: auto; opacity: .6; }
.nav__tier { margin-left: auto; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; font: 500 9px var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }

.rail__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.adminlink { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--mu); font-size: 13px; }
.adminlink:hover, .adminlink.is-on { background: var(--p2); color: var(--tx); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); }
.seg button { height: 28px; border-radius: 6px; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--mu); transition: background .15s, color .15s; white-space: nowrap; padding: 0 8px; }
.seg button:hover { color: var(--tx); }
.seg button.is-on { background: var(--p4); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line2); }
.seg--tier button.is-on { background: var(--brand); color: var(--on-brand); box-shadow: none; }

.main { display: grid; grid-template-rows: 52px 1fr; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--p1); }
.crumbs { font: 400 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); display: flex; gap: 8px; }
.crumbs b { color: var(--tx); font-weight: 500; }
.top__r { display: flex; align-items: center; gap: 12px; }
.lockchip { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 99px; font: 500 10.5px var(--mono); letter-spacing: .09em; color: var(--mu); }
.lockchip b { color: var(--ok); font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(86,227,159,.16); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--p4); display: grid; place-items: center; font: 600 10px var(--mono); }

.view { overflow: auto; min-height: 0; outline: none; }
.view > * { animation: in .45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
.pad { padding: 32px 36px 80px; max-width: 1280px; margin: 0 auto; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--p3); font-weight: 500; font-size: 13px; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--p4); }
.btn:active { transform: scale(.98); }
.btn--pri { background: var(--brand); border-color: var(--line2); color: var(--on-brand); font-weight: 600; }
.btn--pri:hover { background: var(--brand); filter: brightness(1.08); }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.field { display: grid; gap: 7px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; }
.field__top span:last-child { font: 400 10px var(--mono); color: var(--dim); }
.inp { width: 100%; height: 36px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg); font-size: 13.5px; transition: border-color .15s; }
textarea.inp { height: 120px; padding: 10px 11px; resize: vertical; line-height: 1.45; }
.inp:hover { border-color: var(--line3); }
.inp:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 28px; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line2); font-size: 12px; color: var(--mu); text-align: left; transition: all .15s; }
.chip:hover { color: var(--tx); border-color: var(--line3); }
.chip.is-on { color: var(--on-brand); background: var(--brand); border-color: var(--line2); font-weight: 500; }
.pairs { display: flex; gap: 8px; }
.pair { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line2); position: relative; transition: transform .15s var(--ease); }
.pair:hover { transform: translateY(-2px); }
.pair i { width: 14px; height: 14px; border-radius: 50%; }
.pair.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tx); }
.photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.photos button { aspect-ratio: 1; border-radius: 7px; overflow: hidden; opacity: .55; transition: opacity .15s; }
.photos button:hover { opacity: .9; }
.photos button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--p1), 0 0 0 4px var(--accent); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* slider */
.ctl { display: grid; grid-template-columns: 78px 1fr 44px; align-items: center; gap: 10px; height: 30px; }
.ctl label { font-size: 12.5px; color: var(--mu); }
.ctl output { font: 400 11px var(--mono); color: var(--tx); text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: ew-resize; --v: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--v), var(--p4) var(--v)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--tx); box-shadow: 0 0 0 3px var(--p1); transition: transform .15s var(--ease); }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.3); }
input[type=range]::-moz-range-track { height: 2px; background: var(--p4); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--tx); }

/* ---------- section heads ---------- */
.h1 { font: 600 34px/1.05 var(--sans); letter-spacing: -.03em; }
.sub { color: var(--mu); max-width: 60ch; margin-top: 10px; }
.sec { margin-top: 64px; scroll-margin-top: 24px; }
.sec__h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.sec__h i { font: 500 11px var(--mono); color: var(--accent); font-style: normal; }
.sec__h h2 { font: 600 20px/1 var(--sans); letter-spacing: -.02em; }
.sec__h p { margin-left: auto; color: var(--dim); font-size: 12.5px; }

/* ---------- hub ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.25fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--p1); min-height: 340px; }
.hero__l { padding: 30px; display: flex; flex-direction: column; }
.hero__l h1 { font: 600 52px/.96 var(--sans); letter-spacing: -.045em; margin-top: 18px; }
.hero__l h1 em { font-style: normal; color: var(--accent); }
.hero__meta { margin-top: auto; display: grid; grid-template-columns: repeat(3, auto); gap: 22px; justify-content: start; padding-top: 28px; }
.hero__meta div { display: grid; gap: 7px; font-size: 13px; }
.hero canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.jump { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.jump a { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mu); padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; transition: all .15s; }
.jump a:hover { color: var(--tx); border-color: var(--line2); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logo { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--p1); }
.logo__stage { aspect-ratio: 4/3; display: grid; place-items: center; transition: background .35s var(--ease); }
.logo__stage img { max-width: 56%; max-height: 52%; transition: transform .5s var(--ease); }
.logo:hover .logo__stage img { transform: scale(1.05) rotate(-2deg); }
.logo__b { padding: 14px; display: grid; gap: 12px; }
.logo__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo__n { font-weight: 600; }
.logo__u { color: var(--mu); font-size: 12.5px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); }
.dots button.is-on { box-shadow: 0 0 0 2px var(--p1), 0 0 0 3px var(--tx); }

.swatches { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr 1fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.sw { height: 300px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; position: relative; transition: flex .3s; }
.sw__r { font: 500 10px var(--mono); letter-spacing: .09em; text-transform: uppercase; opacity: .7; }
.sw__n { font: 700 22px/1.1 var(--bf-text); }
.sw__c { font: 400 11px/1.7 var(--mono); opacity: .85; margin-top: 8px; }
.sw__copy { position: absolute; top: 14px; right: 14px; font: 500 10px var(--mono); letter-spacing: .08em; opacity: 0; transition: opacity .15s; text-transform: uppercase; }
.sw:hover .sw__copy { opacity: .8; }

.type { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type__big { background: var(--p1); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.type__aa { font-size: 150px; line-height: .8; color: var(--accent); }
.type__name { font-size: 26px; font-weight: 700; }
.type__w { background: var(--p1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.type__w div { display: grid; grid-template-columns: 96px 1fr; align-items: center; padding: 0 22px; height: 25%; min-height: 86px; border-bottom: 1px solid var(--line); }
.type__w div:last-child { border: 0; }
.type__w span:last-child { font-family: var(--bf-text); font-size: 28px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--mu); font-size: 12.5px; display: flex; gap: 10px; align-items: center; }

.imgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.imgs a { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; display: block; background: var(--p2); }
.imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.imgs a:hover img { transform: scale(1.05); }
.imgs span { position: absolute; left: 8px; bottom: 8px; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(8,8,10,.72); backdrop-filter: blur(8px); padding: 5px 8px; border-radius: 5px; opacity: 0; transform: translateY(4px); transition: all .2s var(--ease); }
.imgs a:hover span { opacity: 1; transform: none; }

.lines { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lines button { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--line); background: var(--p1); transition: background .15s; }
.lines button:last-child { border: 0; }
.lines button:hover { background: var(--p2); }
.lines b { font: 800 24px/1.15 var(--bf-display); text-transform: var(--bf-case); }
.lines span { font: 500 10px var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }

.rule { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--p1); }
.rule__s { aspect-ratio: 16/10; display: grid; place-items: center; background: #F2EBDD; position: relative; overflow: hidden; }
.rule__s img { width: 52%; }
.rule__s::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), #D22 calc(50% - 1px), #D22 calc(50% + 1px), transparent calc(50% + 1px)); }
.rule p { padding: 13px 14px; font-size: 13px; }
.rule p b { font: 500 10px var(--mono); letter-spacing: .09em; color: #F26; margin-right: 8px; }

/* ---------- templates gallery ---------- */
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tpl { border: 1px solid var(--line); border-radius: 14px; background: var(--p1); overflow: hidden; display: block; transition: border-color .2s, transform .3s var(--ease); }
.tpl:hover { border-color: var(--line2); transform: translateY(-3px); }
.tpl__s { height: 250px; display: grid; place-items: center; padding: 26px; background: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0/16px 16px, var(--bg); }
.tpl__s canvas { max-width: 100%; max-height: 198px; box-shadow: 0 14px 40px var(--shadow); }
.tpl__b { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.tpl__b b { font-weight: 600; display: block; }
.tpl__b small { color: var(--mu); font-size: 12px; }

/* ---------- workbench (editor + studio) ---------- */
.bench { display: grid; grid-template-columns: 300px 1fr 300px; height: 100%; min-height: 0; }
.panel { background: var(--p1); overflow: auto; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.panel--l { border-right: 1px solid var(--line); }
.panel--r { border-left: 1px solid var(--line); }
.panel h3 { font: 600 17px/1.2 var(--sans); letter-spacing: -.02em; }
.panel .desc { color: var(--mu); font-size: 12.5px; margin-top: 6px; }
.grp { display: grid; gap: 12px; }
.grp + .grp { padding-top: 20px; border-top: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mu); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.back:hover { color: var(--tx); }

.stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 44px 40px 54px; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0) 0 0/18px 18px, var(--bg); }
.stage__c { position: relative; max-width: 100%; max-height: 100%; display: grid; }
.stage__c canvas { display: block; max-width: 100%; max-height: calc(100vh - 52px - 110px); box-shadow: 0 30px 90px var(--shadow); }
.stage__c::before, .stage__c::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line2); pointer-events: none; }
.stage__c::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.stage__c::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }
.stage__meta { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; font: 400 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stage__meta b { color: var(--ok); font-weight: 500; }
.stage__top { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.rec { display: none; align-items: center; gap: 8px; font: 500 10.5px var(--mono); letter-spacing: .09em; color: #FF5A5A; }
.rec.is-on { display: flex; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF4545; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.locks { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.locks div { display: flex; align-items: center; gap: 10px; padding: 9px 11px; font-size: 12.5px; color: var(--mu); border-bottom: 1px solid var(--line); }
.locks div:last-child { border: 0; }
.locks svg { flex: none; color: var(--dim); }

.gens { display: grid; gap: 6px; }
.gen { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: left; transition: all .15s; }
.gen:hover { border-color: var(--line2); background: var(--p2); }
.gen.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--brand) 14%, var(--p1)); }
.gen b { font-weight: 600; font-size: 13.5px; }
.gen small { font: 400 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); grid-column: 1; }
.gen em { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 10px var(--mono); color: var(--dim); font-style: normal; }
.gen.is-on em { color: var(--accent); }

.prog { height: 3px; background: var(--p4); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hint { font-size: 11.5px; color: var(--dim); line-height: 1.45; }

/* ---------- planner ---------- */
.plan { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.plan__h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 26px 28px 20px; }
.plan__stats { display: flex; gap: 22px; }
.plan__stats div { display: grid; gap: 6px; }
.plan__stats b { font: 500 22px/1 var(--mono); }
.week { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.day { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; transition: background .15s; }
.day:last-child { border: 0; }
.day.is-over { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.day__h { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.day__h b { font: 500 20px/1 var(--mono); }
.day.is-today .day__h b { color: var(--accent); }
.day__b { flex: 1; overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.post { border: 1px solid var(--line); border-radius: 10px; background: var(--p2); overflow: hidden; cursor: grab; text-align: left; transition: border-color .15s, transform .2s var(--ease); }
.post:hover { border-color: var(--line2); transform: translateY(-2px); }
.post.is-drag { opacity: .35; }
.post img { width: 100%; display: block; max-height: 190px; object-fit: cover; object-position: top; }
.post__b { padding: 9px 10px 10px; display: grid; gap: 6px; }
.post__r { display: flex; justify-content: space-between; align-items: center; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.post__t { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.st { display: inline-flex; align-items: center; gap: 6px; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--dim)); }
.st[data-s="Draft"] { --c: #8B8B93; } .st[data-s="In review"] { --c: #F5C451; } .st[data-s="Approved"] { --c: #56E39F; } .st[data-s="Posted"] { --c: #7AA8FF; }
.day__add { margin-top: auto; height: 34px; border: 1px dashed var(--line2); border-radius: 8px; color: var(--dim); font: 500 11px var(--mono); letter-spacing: .06em; display: grid; place-items: center; transition: all .15s; flex: none; }
.day__add:hover { color: var(--tx); border-color: var(--accent); }

/* ---------- drawer, toast ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw; background: var(--p1); border-left: 1px solid var(--line2); z-index: 21; padding: 20px; overflow: auto; display: flex; flex-direction: column; gap: 18px; animation: slide .4s var(--ease) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__h { display: flex; justify-content: space-between; align-items: center; }
.drawer__img { border-radius: 10px; max-height: 300px; align-self: center; max-width: 100%; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--tx); color: var(--bg); font-weight: 500; font-size: 13px; padding: 10px 16px; border-radius: 99px; opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 40; max-width: 90vw; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- locked ---------- */
.gate { height: 100%; display: grid; place-items: center; padding: 40px; background: radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--brand) 10%, transparent), transparent); }
.gate__c { max-width: 460px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.gate__ic { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line2); display: grid; place-items: center; background: var(--p2); }
.gate h2 { font: 600 34px/1.05 var(--sans); letter-spacing: -.03em; }
.gate p { color: var(--mu); }

/* ---------- admin ---------- */
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 10px; font-size: 13px; margin-bottom: 26px; }
.tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--p1); display: table; }
.tbl th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border: 0; }
.tokens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.token { border: 1px solid var(--line); border-radius: 12px; background: var(--p1); padding: 12px; display: grid; gap: 10px; }
.token input[type=color] { width: 100%; height: 64px; border: 0; padding: 0; background: none; border-radius: 8px; cursor: pointer; }
.token input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.token input[type=color]::-webkit-color-swatch { border: 1px solid var(--line2); border-radius: 8px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { border: 1px solid var(--line); border-radius: 12px; background: var(--p1); padding: 16px; display: grid; gap: 12px; align-content: start; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; font-size: 13.5px; }
.li + .li { border-top: 1px solid var(--line); padding-top: 10px; }
.sw-t { width: 36px; height: 20px; border-radius: 20px; background: var(--p4); padding: 2px; display: flex; transition: background .2s; flex: none; }
.sw-t i { width: 16px; height: 16px; border-radius: 50%; background: var(--mu); transition: transform .25s var(--ease), background .2s; }
.sw-t[aria-checked=true] { background: var(--brand); }
.sw-t[aria-checked=true] i { transform: translateX(16px); background: var(--on-brand); }
.x { color: var(--dim); font-size: 16px; width: 26px; height: 26px; border-radius: 6px; }
.x:hover { color: var(--tx); background: var(--p3); }

@media (max-width: 1180px) {
  .bench { grid-template-columns: 264px 1fr 264px; }
  .grid3, .tpls { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; } .hero canvas { height: 260px; }
  .imgs { grid-template-columns: repeat(4, 1fr); } .tokens { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .app { grid-template-columns: 1fr; height: auto; }
  .rail { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wordmark { padding: 0; } .ws { display: none; } .nav { flex-direction: row; margin: 0; overflow: auto; }
  .rail__foot { margin: 0; border: 0; padding: 0; width: 100%; grid-template-columns: auto 1fr auto; align-items: center; }
  .bench { grid-template-columns: 1fr; height: auto; } .panel--l, .panel--r { border: 0; border-top: 1px solid var(--line); }
  .stage { min-height: 70vh; order: -1; } .pad { padding: 22px 16px 60px; }
  .swatches, .type, .cols2 { grid-template-columns: 1fr; } .sw { height: 150px; }
  .grid3, .tpls, .imgs, .tokens { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(7, 220px); overflow: auto; } .plan__h { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* two-typeface specimen */
.type__big[data-role="display"] .type__aa { font-family: var(--bf-display); font-weight: 800; }
.type__big .type__name { font-family: var(--bf-text); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiers div { border: 1px solid var(--line); border-radius: 12px; background: var(--p1); padding: 16px; display: grid; gap: 8px; align-content: start; }
.tiers b { font-size: 15px; } .tiers p { color: var(--mu); font-size: 13px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

:root[data-theme="light"] .tog { box-shadow: inset 0 0 0 1px var(--line3); }

/* library uploads */
.imgs em { position: absolute; left: 8px; top: 8px; font: 500 9.5px var(--mono); font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: var(--on-brand); background: var(--brand); padding: 4px 7px; border-radius: 5px; }
.imgs__x { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(8,8,10,.72); color: #fff; font-size: 15px; line-height: 1; }
.imgs__x:hover { background: #D22; }
.imgs__add { aspect-ratio: 4/5; border: 1px dashed var(--line2); border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--mu); cursor: pointer; font-size: 12.5px; text-align: center; padding: 10px; transition: border-color .15s, color .15s; }
.imgs__add:hover { border-color: var(--accent); color: var(--tx); }
.imgs__add b { font: 400 30px/1 var(--mono); }
label.btn { cursor: pointer; }

/* Blank Space logo lock-up */
.bs { height: 26px; width: auto; flex: none; color: var(--tx); }
.wordmark { gap: 11px; }
.wordmark__t { padding-left: 11px; border-left: 1px solid var(--line2); color: var(--mu); }
.boot__mark { gap: 16px; font-size: 15px; letter-spacing: .12em; color: var(--mu); }
.boot__mark .bs { height: 40px; }
.boot__mark span { padding-left: 16px; border-left: 1px solid var(--line2); line-height: 40px; }

/* colour values: HEX / RGB / CMYK, each one copyable */
.sw__c { display: grid; gap: 2px; margin-top: 12px; opacity: 1; }
.sw__c span { display: flex; gap: 10px; padding: 3px 6px; margin: 0 -6px; border-radius: 5px; cursor: copy; white-space: nowrap; transition: background .15s; }
.sw__c span:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.sw__c i { font-style: normal; opacity: .6; width: 38px; flex: none; }

/* multi-select photo order badge */
.photos button { position: relative; }
.photos button b { position: absolute; right: 3px; top: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font: 600 10px/16px var(--mono); text-align: center; }

.photos__none { display: grid; place-items: center; border: 1px dashed var(--line2); font: 500 9.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mu); }

/* artwork layers: toggles, position pickers, drag guides */
.layer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; min-height: 40px; font-size: 13px; }
.pos { display: grid; grid-template-columns: repeat(3, 11px); gap: 3px; }
.pos button { width: 11px; height: 11px; border-radius: 3px; background: var(--p4); transition: background .15s, transform .15s; }
.pos button:hover { background: var(--mu); transform: scale(1.2); }
.pos button.is-on { background: var(--accent); }
.stage__c canvas { touch-action: none; }
.stage__ui { position: absolute; inset: 0; pointer-events: none; }
.stage__ui .sel { position: absolute; border: 1.5px dashed #3B9DFF; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.stage__ui .sel b { position: absolute; left: -1.5px; top: -20px; background: #3B9DFF; color: #fff; font: 500 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.stage__ui .anchor { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 1.5px solid #3B9DFF; background: rgba(255,255,255,.85); transition: transform .15s var(--ease); }
.stage__ui .anchor.is-on { background: #3B9DFF; transform: scale(1.5); }
.stage__ui .guide { position: absolute; background: #3B9DFF; opacity: .25; }
.stage__ui .guide.is-on { opacity: 1; }
.stage__ui .guide--v { left: 50%; top: 0; bottom: 0; width: 1px; }
.stage__ui .guide--h { top: 50%; left: 0; right: 0; height: 1px; }

/* ---------- sign-in screens ---------- */
.auth { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 24px; overflow: auto; background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--brand) 9%, transparent), transparent), var(--bg); }
.auth__card { width: 100%; max-width: 400px; display: grid; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--p1); animation: in .45s var(--ease) both; }
.auth__brand { display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--mu); margin-bottom: 10px; }
.auth__brand .bs { height: 26px; }
.auth__brand span { padding-left: 12px; border-left: 1px solid var(--line2); line-height: 26px; }
.auth h1 { font: 600 26px/1.1 var(--sans); letter-spacing: -.03em; }
.auth__sub { color: var(--mu); font-size: 13.5px; margin-top: -6px; }
.auth form { display: grid; gap: 8px; margin-top: 6px; }
.auth form .lbl { margin-top: 8px; }
.auth form .btn { margin-top: 10px; height: 40px; }
.auth__err { color: #FF6B6B; font-size: 12.5px; min-height: 18px; }
.auth__ok { color: var(--ok); font-size: 12.5px; }
.auth__hint { color: var(--dim); font-size: 12px; }
.auth__link { color: var(--mu); font-size: 12.5px; text-align: left; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.auth__link:hover { color: var(--tx); }
.auth__quick { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth__quick .btn { justify-content: space-between; }
.auth__quick small { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.auth__demo { font-size: 11.5px; color: var(--dim); padding-top: 12px; border-top: 1px dashed var(--line2); }
button.avatar { cursor: pointer; transition: box-shadow .15s; }
button.avatar:hover { box-shadow: 0 0 0 2px var(--line2); }
.invite { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 16px; align-items: center; }
.invite .seg { width: 270px; }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; } .invite .seg { width: auto; } }

.btn--danger { color: #FF6B6B; border-color: color-mix(in srgb, #FF6B6B 45%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, #FF6B6B 14%, var(--p3)); }
:root[data-theme="light"] .btn--danger { color: #C42630; }

/* ---------- help centre ---------- */
.help { max-width: 820px; }
.help__search { margin-top: 22px; height: 46px; font-size: 15px; padding: 0 14px; }
.help__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.help__g { margin-top: 36px; }
.help__g h2 { font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.help__q { border-bottom: 1px solid var(--line); }
.help__q summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font-weight: 500; font-size: 15px; position: relative; transition: color .15s; }
.help__q summary::-webkit-details-marker { display: none; }
.help__q summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font: 400 20px/1 var(--mono); color: var(--mu); transition: transform .25s var(--ease); }
.help__q[open] summary::after { transform: rotate(45deg); }
.help__q summary:hover { color: var(--accent); }
.help__q p { color: var(--mu); padding: 0 40px 18px 0; max-width: 66ch; line-height: 1.6; }
.auth a { text-decoration: underline; text-underline-offset: 3px; }
.auth__check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mu); margin-top: 6px; }
.auth__check input { margin-top: 3px; accent-color: var(--tx); }

/* ---------- welcome tour ---------- */
.tour { position: fixed; inset: 0; z-index: 60; }
.tour__hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.62), 0 0 0 2px var(--brand); transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease); pointer-events: none; }
.tour:not(:has(.tour__hole[style*="block"])) { background: rgba(0,0,0,.62); }
.tour__card { position: fixed; background: var(--p1); border: 1px solid var(--line2); border-radius: 14px; padding: 20px; display: grid; gap: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.5); outline: none; transition: left .35s var(--ease), top .35s var(--ease); }
.tour__n { font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.tour__card h3 { font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; }
.tour__card p { color: var(--mu); font-size: 14px; line-height: 1.55; }
.tour__b { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.tour__b span { display: flex; gap: 6px; }
.tour__skip { color: var(--dim); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.tour__skip:hover { color: var(--tx); }
@media (prefers-reduced-motion: reduce) { .tour__hole, .tour__card { transition: none; } }

/* body text, Social Video */
.inp--area { height: auto; min-height: 88px; padding: 9px 11px; line-height: 1.45; resize: vertical; font-family: inherit; }
.vidf { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.vidf b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vidf span { font: 400 11px var(--mono); color: var(--mu); flex: none; }
.drop { display: grid; gap: 4px; place-items: center; padding: 22px 12px; border: 1px dashed var(--line3); border-radius: 10px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-visible { border-color: var(--accent); background: var(--p2); }
.drop b { font-weight: 500; font-size: 13px; }
.drop span { font-size: 11.5px; color: var(--dim); }
.tline { position: absolute; left: 18px; right: 18px; bottom: 36px; height: 16px; display: flex; gap: 2px; cursor: pointer; }
.tline span { flex: 1 1 0; min-width: 0; overflow: hidden; display: grid; place-items: center; border-radius: 3px; background: var(--p3); font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.tline span[data-seg="c"] { background: var(--p4); }
.tline i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--accent); border-radius: 2px; pointer-events: none; }

/* Custom generator */
.clist { display: grid; gap: 4px; }
.crow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 0 10px; min-height: 36px; border: 1px solid var(--line2); border-radius: 8px; }
.crow.is-on { border-color: var(--accent); }
.crow__n { display: flex; gap: 8px; align-items: baseline; text-align: left; min-width: 0; height: 34px; }
.crow__n b { font-weight: 500; font-size: 12.5px; flex: none; }
.crow__n span { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swcs { display: flex; flex-wrap: wrap; gap: 6px; }
.swc { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); }
.swc--auto { width: auto; padding: 0 10px; font: 500 11px var(--mono); color: var(--mu); }
.swc.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tx); }

/* carousel slides */
.sls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sl { display: grid; gap: 1px; place-items: center; padding: 7px 2px; border: 1px solid var(--line2); border-radius: 8px; color: var(--mu); transition: border-color .15s, color .15s; }
.sl b { font: 500 13px var(--mono); color: var(--tx); }
.sl small { font-size: 9.5px; letter-spacing: .02em; }
.sl:hover { border-color: var(--line3); }
.sl.is-on { background: var(--brand); border-color: var(--line2); }
.sl.is-on b, .sl.is-on small { color: var(--on-brand); }
.sl--add { border-style: dashed; }

/* video library */
.sec__sub { display: flex; align-items: baseline; gap: 16px; margin: 34px 0 14px; }
.sec__sub h3 { font: 600 17px/1.2 var(--sans); letter-spacing: -.02em; }
.sec__sub p { color: var(--mu); font-size: 13px; }
.photos button u { position: absolute; left: 3px; bottom: 3px; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 8px; line-height: 12px; text-decoration: none; }

.lbl--sub { margin-top: 4px; }
.photos__add { aspect-ratio: 1; border-radius: 7px; cursor: pointer; }
.photos__add:hover, .photos__add:focus-visible { border-color: var(--accent); color: var(--tx); }
