/* X&X Hub — TapScene Studio (demo). Same tokens as the marketing site; dark chrome, light canvas. */
:root {
  --ink: #111111; --black: #0b0b0b; --paper: #F7F5F0; --stone: #ECE9E2; --mute: #66625b; --mute-l: rgba(247,245,240,.62);
  --line: rgba(17,17,17,.12); --line-l: rgba(247,245,240,.13);
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif; --ease: cubic-bezier(.2,.7,.1,1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.studio { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--stone); -webkit-font-smoothing: antialiased; overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #3b6cf6; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #000; color: #fff; padding: 8px 12px; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; background: rgba(17,17,17,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------- top bar ---------- */
.st-top { height: 60px; background: var(--black); color: var(--paper); display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line-l); position: relative; z-index: 20; }
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 15px; letter-spacing: .04em; }
.st-brand b { font-weight: 800; }
.st-crumb { font-size: 13px; color: var(--mute-l); padding-left: 14px; border-left: 1px solid var(--line-l); }
.st-demo { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(247,245,240,.35); color: var(--mute-l); cursor: help; }
.st-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute-l); white-space: nowrap; }
.st-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a8680; }
.st-status[data-s="dirty"] i { background: #f0b44c; }
.st-status[data-s="saved"] i { background: #7ab8f5; }
.st-status[data-s="live"] i { background: #7ee2a8; box-shadow: 0 0 0 3px rgba(126,226,168,.2); }
.st-actions { display: flex; align-items: center; gap: 8px; }
.st-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-l); background: none; color: var(--paper); cursor: pointer; font-size: 17px; }
.st-icon:disabled { opacity: .3; cursor: default; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid transparent; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.st-btn:active { transform: scale(.98); }
.st-btn-ghost { background: transparent; border-color: currentColor; border-color: rgba(127,127,127,.35); }
.st-btn-ghost:hover { border-color: currentColor; }
.st-btn-light { background: var(--paper); color: var(--ink); }
.st-btn-dark { background: var(--ink); color: var(--paper); }
.st-btn-ghost-d { background: none; border-color: var(--line); color: var(--ink); }
.st-btn-block { width: 100%; margin-top: 10px; min-height: 44px; }
.st-panel .st-btn-light { background: var(--ink); color: var(--paper); }
.st-link { background: none; border: 0; padding: 8px 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--mute); }

/* ---------- shell ---------- */
.st-shell { height: calc(100% - 60px); display: grid; grid-template-columns: 84px 400px 1fr; }
.st-mobile-switch { display: none; }
.st-rail { background: var(--black); color: var(--paper); display: flex; flex-direction: column; padding: 10px 8px; gap: 4px; border-right: 1px solid var(--line-l); overflow-y: auto; }
.st-rail button { background: none; border: 0; color: var(--mute-l); display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.st-rail button .ri { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.st-rail button .ri .ts-ico { width: 20px; height: 20px; }
.st-rail button:hover { color: var(--paper); }
.st-rail button[aria-selected="true"] { color: var(--paper); }
.st-rail button[aria-selected="true"] .ri { background: var(--paper); color: var(--ink); }

.st-rail .soon { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99px; padding: 0 5px; }
.st-panel { background: var(--paper); overflow-y: auto; padding: 26px 26px 60px; border-right: 1px solid var(--line); }
.pk { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 6px; }
.ph { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 20px; }
.sk { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 24px 0 10px; display: flex; justify-content: space-between; gap: 8px; }
.sk small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mute); font-size: 11.5px; }
.note { font-size: 12.5px; color: var(--mute); line-height: 1.55; margin: 14px 0 0; }
.hint { font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
.err { color: #a12a2a; font-size: 12.5px; margin: 4px 0 0; }

.begin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.begin-card { text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.begin-card b { font-size: 15px; }
.begin-card span { font-size: 12.5px; color: var(--mute); }
.begin-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-tile { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.g-thumb { position: relative; aspect-ratio: 9/14; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.g-thumb .ts-host { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.g-tile:hover .g-thumb { transform: translateY(-2px); }
.g-tile[aria-checked="true"] .g-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.g-tile > b { font-size: 12px; line-height: 1.2; }
.g-tile > small { font-size: 11px; color: var(--mute); }
.persona-row { display: flex; flex-wrap: wrap; gap: 6px; }
.persona-row button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.persona-row button:hover { border-color: var(--ink); }

.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.f > span { display: flex; justify-content: space-between; }
.f em { font-style: normal; font-weight: 600; color: var(--mute); }
.f input, .f textarea, .f select { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px; font-size: 14.5px; font-weight: 500; min-height: 44px; width: 100%; }
.f textarea { resize: vertical; line-height: 1.45; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.f input[aria-invalid="true"] { border-color: #a12a2a; }
.count { font-weight: 600; color: var(--mute); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg2 { grid-template-columns: 1fr 1fr; }
.seg3 button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg3 button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.upload { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 14px; border: 1.5px dashed rgba(17,17,17,.25); border-radius: 14px; cursor: pointer; background: #fff; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload span { font-weight: 700; font-size: 14px; }
.upload small { font-size: 11.5px; color: var(--mute); line-height: 1.45; }
.upload:focus-within { border-color: var(--ink); }

.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.socials button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.socials button .ts-ico { width: 19px; height: 19px; }
.socials button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rows { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 8px; }
.row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 12px; display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; transition: box-shadow .2s, opacity .2s; }
.row.dragging { opacity: .4; }
.row.over { box-shadow: 0 -3px 0 var(--ink); }
.row-grip { cursor: grab; color: var(--mute); display: grid; place-items: start center; padding-top: 10px; }
.row-grip .ts-ico { width: 18px; height: 18px; }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-main input, .row-main select, .row-main textarea { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13.5px; background: var(--paper); min-height: 38px; width: 100%; }
.row-main textarea { resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.row-3 { display: grid; grid-template-columns: 110px 1fr; gap: 6px; }
.row-tools { display: flex; flex-direction: column; gap: 4px; }
.row-tools button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.row-tools button .ts-ico { width: 15px; height: 15px; }
.row-tools button:disabled { opacity: .3; }
.row-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.row-head b { font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.row-head .ts-ico { width: 16px; height: 16px; }
.badge { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--mute); white-space: nowrap; }
.badge-on { background: #dfe9e0; border-color: transparent; color: #1d3b2f; }
.badge-lock { background: #f1e2c9; border-color: transparent; color: #6b4b12; }
.row.locked { background: #faf8f4; }
.row.locked .row-main input, .row.locked .row-main textarea { opacity: .7; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #cfcbc3; border: 0; cursor: pointer; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.row-err { color: #a12a2a; font-size: 11.5px; }
.add-ch { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }
.add-ch .f { margin: 0; }
.add-ch .st-btn { min-height: 44px; }

.tone-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tone-big button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 13.5px; text-align: left; }
.tone-big button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tb { height: 76px; border-radius: 10px; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; }
.tb-dark { background: #0b0b0b; color: #f7f5f0; } .tb-light { background: #f7f5f0; color: #111; border: 1px solid var(--line); }

.mytap { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mytap img { filter: drop-shadow(0 12px 14px rgba(0,0,0,.25)); }
.mt-k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 4px; }
.mt-url { display: block; margin-bottom: 10px; font-size: 13px; word-break: break-all; }
.mt-s { font-size: 12px; color: var(--mute); margin: 0; line-height: 1.5; }
.pill { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.pill-plan { background: #f1e2c9; color: #6b4b12; }
.empty { background: #fff; border: 1px dashed rgba(17,17,17,.2); border-radius: 16px; padding: 20px; color: var(--mute); font-size: 14px; }
.sk-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 14px; }
.sk-bars i { flex: 1; background: repeating-linear-gradient(45deg, #eee 0 6px, #e6e3dc 6px 12px); border-radius: 6px 6px 0 0; }
.sk-bars i:nth-child(1) { height: 30%; } .sk-bars i:nth-child(2) { height: 50%; } .sk-bars i:nth-child(3) { height: 40%; } .sk-bars i:nth-child(4) { height: 70%; } .sk-bars i:nth-child(5) { height: 55%; } .sk-bars i:nth-child(6) { height: 80%; } .sk-bars i:nth-child(7) { height: 65%; }
.ref-big { font-family: var(--serif); font-size: 56px; margin: 0; color: var(--ink); line-height: 1; }

/* ---------- canvas ---------- */
.st-canvas { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(80% 60% at 50% 40%, #f4f2ed, #e4e0d8); position: relative; }
.cv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.cv-group { display: inline-flex; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; }
.cv-group button { border: 0; background: none; border-radius: 99px; padding: 0 13px; min-height: 32px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--mute); }
.cv-group button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.cv-tiers { display: flex; align-items: center; gap: 10px; }
.cv-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cv-k em { font-style: normal; background: #f1e2c9; color: #6b4b12; padding: 2px 7px; border-radius: 99px; letter-spacing: .08em; margin-left: 4px; }
.cv-tone button { padding: 0 9px; }
.dot { display: block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.dot-dark { background: #111; } .dot-light { background: #f7f5f0; }
.cv-tone button[aria-checked="true"] { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.cv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 24px 12px; overflow: hidden; }
.dev-phone { position: relative; height: min(100%, 760px); aspect-ratio: 9/19.4; border-radius: 15.5% / 7.2%; background: linear-gradient(150deg, #4a4a4d, #161617 18%, #0a0a0a 55%, #2c2c2e); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #050505, 0 40px 80px -30px rgba(0,0,0,.45); }
.dev-screen { position: absolute; inset: 3.3%; border-radius: 12.8% / 6%; overflow: hidden; background: #000; }
.dev-screen > .ts-host { position: absolute; inset: 0; }
.dev-island { position: absolute; top: 4.7%; left: 50%; width: 29%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 5; }
.dev-browser { display: none; width: 100%; max-width: 1060px; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45), 0 0 0 1px var(--line); flex-direction: column; }
.dev-chrome { height: 40px; background: #ecebe7; display: flex; align-items: center; gap: 7px; padding: 0 14px; flex: none; }
.dev-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #d3d0c9; }
.dev-chrome span { margin-left: 14px; flex: 1; max-width: 420px; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 12px; color: var(--mute); }
.dev-page { position: relative; flex: 1; min-height: 0; }
.dev-page > .ts-host { position: absolute; inset: 0; }
.cv-stage[data-device="desktop"] .dev-phone { display: none; }
.cv-stage[data-device="desktop"] .dev-browser { display: flex; }
.cv-foot { text-align: center; font-size: 12px; color: var(--mute); margin: 0; padding: 0 16px 14px; min-height: 30px; }

/* ---------- overlays ---------- */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,10,.92); backdrop-filter: blur(8px); display: flex; flex-direction: column; color: var(--paper); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.ov-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.ov-bar .cv-group { background: rgba(255,255,255,.08); border-color: var(--line-l); }
.ov-bar .cv-group button { color: var(--mute-l); }
.ov-bar .cv-group button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.ov-body { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 10px; }
.ov-phone { height: min(100%, 820px); }
.ov-note { text-align: center; font-size: 12.5px; color: var(--mute-l); padding: 0 16px 18px; margin: 0; }
.ov-dlg { align-items: center; justify-content: center; background: rgba(10,10,10,.6); }
.dlg { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 28px; width: min(460px, calc(100% - 32px)); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.dlg h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 10px; line-height: 1.05; }
.dlg p { color: var(--mute); font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; }
.dlg p b { color: var(--ink); }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; }
.st-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 600; box-shadow: 0 16px 40px -10px rgba(0,0,0,.45); max-width: calc(100% - 32px); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .st-shell { grid-template-columns: 76px 340px 1fr; }
  .st-crumb, .st-demo { display: none; }
  .cv-k { display: none; }
}
@media (max-width: 900px) {
  body.studio { overflow: auto; height: auto; }
  .st-top { position: sticky; top: 0; padding: 0 10px; gap: 8px; height: 56px; }
  .st-brand span { display: none; }
  .st-status span { display: none; }
  .st-status { margin-left: auto; }
  .st-hide-sm, .st-icon#redo { display: none; }
  .st-btn { padding: 0 12px; font-size: 13px; }
  .st-mobile-switch { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: 56px; z-index: 15; background: var(--black); padding: 0 10px 10px; gap: 4px; }
  .st-mobile-switch button { min-height: 40px; border-radius: 99px; border: 1px solid var(--line-l); background: none; color: var(--mute-l); font-weight: 700; font-size: 14px; }
  .st-mobile-switch button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
  .st-shell { display: block; height: auto; }
  .st-rail { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; flex-direction: row; overflow-x: auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line-l); scrollbar-width: none; }
  .st-rail::-webkit-scrollbar { display: none; }
  .st-rail button { flex: 1 0 58px; padding: 6px 2px; font-size: 10px; }
  .st-rail .soon { display: none; }
  .st-rail button .ri { width: 30px; height: 30px; }
  .st-panel { border-right: 0; padding: 20px 16px 110px; overflow: visible; }
  .st-shell[data-mview="preview"] .st-panel { display: none; }
  .st-shell[data-mview="edit"] .st-canvas { display: none; }
  .st-canvas { min-height: calc(100vh - 106px); padding-bottom: 80px; }
  .cv-bar { justify-content: center; padding: 12px 10px 4px; }
  .cv-tiers .cv-group button { padding: 0 8px; font-size: 11.5px; }
  .cv-stage { padding: 8px 10px; }
  .dev-phone { height: auto; width: min(82vw, 330px); }
  .cv-stage[data-device="desktop"] .dev-browser { height: 70vh; }
  .ov-phone { height: auto; width: min(86vw, 360px); }
  .gallery { gap: 8px; }
  .ph { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ================= v2.2 Studio additions ================= */
.st-shell { grid-template-columns: 84px 420px 1fr; }
.gate { display: inline-flex; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: #f1e2c9; color: #6b4b12; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.gate.gate-on { background: #dfe9e0; color: #1d3b2f; }
.hint-sm { font-size: 12.5px; margin-top: 8px; }
.tour { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 14px 14px 10px; margin: 0 0 18px; }
.tour-head { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 8px; }
.tour-head span { color: var(--mute-l); font-weight: 700; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tour-steps li { display: flex; align-items: center; gap: 10px; }
.tour-steps button { all: unset; cursor: pointer; font-size: 13px; padding: 6px 0; flex: 1; }
.tour-steps button:focus-visible { outline: 2px solid #7ab8f5; border-radius: 4px; }
.tour-n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-l); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.tour-steps li.done .tour-n { background: #7ee2a8; color: #0b3b22; border-color: transparent; }
.tour-steps li.done button { color: var(--mute-l); text-decoration: line-through; }
.seg4 { grid-template-columns: repeat(3, 1fr); }
.heroacts .row-2 { margin-bottom: 6px; }
.heroacts .row-2 input, .heroacts .row-2 select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 13.5px; background: #fff; min-height: 40px; width: 100%; }
.heroacts .sk { margin-top: 0; }
.tile-row { grid-template-columns: 24px 1fr auto; }
.tile-det { min-width: 0; }
.tile-det > summary { list-style: none; cursor: pointer; padding: 6px 0; }
.tile-det > summary::-webkit-details-marker { display: none; }
.tile-det > summary b { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tile-det > summary b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.tile-det > summary b small { font-size: 10.5px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.tile-det[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; padding-bottom: 10px; }
.row-head-r { display: flex; gap: 8px; align-items: center; }
.tile-body { gap: 8px; }
.imgf { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; }
.imgf-thumb { width: 52px; height: 52px; border-radius: 10px; background: repeating-linear-gradient(45deg, #eee 0 6px, #e6e3dc 6px 12px); overflow: hidden; }
.imgf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.imgf-up { position: relative; font-size: 12px; font-weight: 700; padding: 8px 10px; border: 1px dashed rgba(17,17,17,.3); border-radius: 9px; cursor: pointer; white-space: nowrap; }
.imgf-up input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.imgf-up:focus-within { border-color: var(--ink); }
.vidf { display: flex; flex-direction: column; gap: 4px; }
.vid-msg { font-size: 11.5px; color: var(--mute); line-height: 1.4; }
.vid-msg.ok { color: #1d5a35; } .vid-msg.bad { color: #a12a2a; }
.vid-sample { align-self: flex-start; padding: 2px 0; font-size: 11.5px; }
.urlf { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.items { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; background: var(--stone); }
.item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 40px 10px 10px; background: #fff; border-radius: 10px; }
.item-rm { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.item-rm .ts-ico { width: 14px; height: 14px; }
.item-add { min-height: 36px; font-size: 12.5px; align-self: flex-start; }
.tstyle { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.gate-line { font-size: 12px; color: var(--mute); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gate-line .st-link { padding: 0; font-size: 12px; }
.tstyle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tstyle-grid .f { margin: 0; font-size: 11px; }
.tstyle-grid .f select, .tstyle-grid .f input { min-height: 38px; padding: 6px 8px; font-size: 13px; }
.tstyle-grid input[type="color"] { padding: 3px; height: 38px; }
.locked .tstyle, .locked .tile-body > :not(.tstyle) { opacity: .85; }
.bg-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bgp { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 700; text-align: left; }
.bgp-sw { height: 44px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.bg-colors { margin-top: 10px; }
.f input[type="color"] { padding: 4px; height: 46px; }
.f input[type="range"] { padding: 0; min-height: 30px; accent-color: var(--ink); }
.art-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.artb { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; background: center / cover no-repeat; cursor: pointer; }
.artb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper) inset; }
.ref-card { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 18px; }
.ref-card .mt-k { color: var(--mute-l); }
.ref-card .mt-s { color: var(--mute-l); }
.ref-card .mt-s b { color: var(--paper); }
.ref-code { display: block; font-size: 18px; background: rgba(255,255,255,.08); color: var(--paper); padding: 10px 12px; border-radius: 10px; margin: 4px 0 10px; letter-spacing: .02em; }
.ref-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ref-card .st-btn-dark { background: var(--paper); color: var(--ink); }
.ref-card .st-btn-ghost-d { color: var(--paper); border-color: var(--line-l); }
.wallet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.w-cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.w-cell small { font-size: 10.5px; font-weight: 700; color: var(--mute); }
.w-cell b { font-size: 16px; }
.w-sim { grid-column: span 3; background: #fbf5e8; border: 1px dashed #c9a35c; }
.w-sim em { font-style: normal; font-size: 11.5px; color: #6b4b12; }
.ref-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ref-feed li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--mute); }
.ref-feed li b { color: var(--ink); font-size: 13.5px; }
.ref-feed li.feed-empty { border-style: dashed; }
.ref-feed li.feed-clear { background: none; border: 0; padding: 0; }
.feed-tag { align-self: flex-start; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #f1e2c9; color: #6b4b12; padding: 2px 7px; border-radius: 99px; }
.founder { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0 14px 14px; }
.founder > summary { cursor: pointer; padding: 14px 0; font-weight: 800; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pol-form { display: flex; flex-direction: column; gap: 2px; }
.pol-tiered { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sw-row { display: flex; gap: 10px; align-items: center; font-size: 12.5px; margin: 6px 0; }
.sw-locked { color: var(--mute); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.econ { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.econ caption { text-align: left; font-weight: 800; font-size: 12.5px; padding-bottom: 6px; }
.econ th, .econ td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.econ th:first-child { text-align: left; }
.econ thead th { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.econ td.neg { color: #a12a2a; font-weight: 700; }
.econ-in { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.econ-in .f { margin: 0; font-size: 11px; }
.econ-in .f input { min-height: 38px; padding: 6px 8px; font-size: 13px; }
.cv-foot a { color: var(--ink); font-weight: 700; margin-left: 4px; }
@media (max-width: 1180px) { .st-shell { grid-template-columns: 76px 360px 1fr; } }
@media (max-width: 900px) { .st-shell { display: block; } .bg-presets { grid-template-columns: repeat(3, 1fr); } }
.tile-row { grid-template-columns: 20px 1fr; grid-template-areas: "grip det" "grip tools"; row-gap: 4px; padding: 8px 10px 8px 6px; }
.tile-row > .row-grip { grid-area: grip; }
.tile-row > .tile-det { grid-area: det; }
.tile-row > .row-tools { grid-area: tools; flex-direction: row; justify-content: flex-end; }
.tile-row > .row-tools button { width: 30px; height: 30px; }
.tile-det > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-det > summary b { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; }
.tile-det > summary b span { max-width: none; }
.tile-det > summary b small { grid-column: 2; }

/* v2.2 a11y: visibility switch sits beside (not inside) the tile summary */
.tile-row { position: relative; }
.tile-row > .row-sw { position: absolute; top: 15px; right: 10px; }
.tile-row .tile-det > summary { padding-right: 48px; }

/* V2.3.1 plan-accurate editor enhancements; original layout remains intact. */
.row.over-cap { border: 1px dashed #b7aaa0; opacity: .68; }
.row.over-cap::before { content: 'Saved for a higher tier — not shown in this preview'; display: block; grid-column: 1 / -1; font-size: 10px; color: #66574c; padding: 0 4px 4px; }
.row.over-cap input, .row.over-cap select { cursor: not-allowed; }
#linkQuota { font-weight: 700; color: #333; }
#contactTierHint, #socialTierHint { line-height: 1.55; }

[hidden] { display: none !important; }
