:root {
  --bg: #020202; --surface: #131417; --surface-2: #1b1c20; --line: #333437; --hair: rgba(255,255,255,.08);
  --ink: #fff; --ink-2: #b9b9bf; --ink-3: #85858c; --on-accent: #020202;
  --grad: linear-gradient(135deg, #ffd60a 0%, #ff8a3d 30%, #ff4f8b 62%, #7b5cff 100%);
  --ok: #87d75b; --wait: #ffb547; --err: #ff6a6a;
  --f-sans: "Geist", ui-sans-serif, system-ui, sans-serif; --f-mono: "Geist Mono", ui-monospace, monospace;
  --r-card: 20px; --r-tile: 16px; --r-btn: 40px; --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-sans); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
.dim { color: var(--ink-3); } .small { font-size: 13px; }

.bar { height: 56px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); }
.bar-mid { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-2); font-size: 14px; }
.bar-mid .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.bar-right { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--hair); font-size: 13px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.pill.ok i { background: var(--ok); } .pill.wait i { background: var(--wait); } .pill.work i { background: #7b5cff; animation: pulse 1.4s infinite; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 15px var(--f-sans); cursor: pointer; text-decoration: none; transition: opacity .2s var(--ease), background .2s var(--ease); }
.btn:hover { background: var(--surface-2); }
.btn.grad { background: var(--grad); color: #fff; border: 0; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.btn.grad:hover { opacity: .9; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--ink-3); font: 13px var(--f-sans); cursor: pointer; padding: 6px 8px; }
.linkbtn:hover { color: var(--ink); }

.view.center { flex: 1; display: grid; place-items: center; padding: 48px 16px; overflow: auto; }
.hero { width: min(600px, 100%); }
.eyebrow { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 14px; }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: 17px; margin: 0 0 28px; max-width: 34em; }
.steps3 { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.steps3 li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-tile); }
.steps3 b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 500 13px var(--f-mono); }
.fine { color: var(--ink-3); font-size: 13px; margin-top: 26px; max-width: 40em; }
.connect-wait { margin-top: 22px; padding: 18px; border: 1px solid var(--hair); border-radius: var(--r-tile); background: var(--surface); }
.connect-wait p { margin: 0 0 6px; }
.code { font-family: var(--f-mono); letter-spacing: .06em; }
textarea { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 16px; font: 16px/1.5 var(--f-sans); resize: vertical; margin-bottom: 16px; outline: none; }
textarea:focus { border-color: #5a5b60; }
.err { color: var(--err); font-size: 14px; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.6s infinite; }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); transition: border-color .2s var(--ease); }
.pick b { display: block; font-weight: 600; } .pick i { font-style: normal; color: var(--ink-3); font-size: 13px; }
.pick input:checked + span { border-color: #7b5cff; box-shadow: 0 0 0 1px #7b5cff inset; }
.pick input:focus-visible + span { outline: 2px solid #7b5cff; outline-offset: 2px; }
.paste-row { display: flex; gap: 8px; margin: 4px 0 4px; }
.paste-row input { flex: 1; min-width: 0; height: 48px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 14px var(--f-mono); outline: none; }
.paste-row input:focus { border-color: #5a5b60; }
@media (max-width: 520px) { .pick { grid-template-columns: 1fr; } .paste-row { flex-direction: column; } }

.label { font-weight: 500; margin: 0 0 8px; }
body.mode-ws { height: 100vh; overflow: hidden; }

/* ---------- workspace ---------- */
.ws { flex: 1; display: flex; min-height: 0; position: relative; }
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
body.mode-builder .chat { flex: none; width: 380px; border-right: 1px solid var(--hair); }
.chat-top { flex: none; }
.chat-top:empty { display: none; }
.prog { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
.prog .bar-prog { flex: 1; margin: 0; max-width: 320px; }
.prog b { color: var(--ink); font-weight: 500; }
.msgs { flex: 1; overflow-y: auto; padding: 24px 20px 12px; scroll-behavior: smooth; }
.msgs > * { max-width: 760px; margin-left: auto; margin-right: auto; }
body.mode-builder .msgs { padding: 16px 14px 8px; }
.m { margin-bottom: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.m.user { display: flex; justify-content: flex-end; }
.m.user .bub { background: var(--surface-2); border: 1px solid var(--hair); padding: 10px 14px; border-radius: 18px 18px 6px 18px; max-width: 85%; white-space: pre-wrap; }
.m.ai .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.m.ai .who i { width: 16px; height: 16px; border-radius: 5px; background: var(--grad); }
.m.ai p { margin: 0 0 10px; } .m.ai p:last-child { margin-bottom: 0; }
.m.ai ul, .m.ai ol { margin: 0 0 10px; padding-left: 22px; } .m.ai li { margin-bottom: 4px; }
.m.ai code { font: 13px var(--f-mono); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.m.ai a { color: #b8a6ff; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.choice { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 14px var(--f-sans); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.choice:hover { border-color: #7b5cff; } .choice.on { background: rgba(123,92,255,.18); border-color: #7b5cff; }
.steps { margin-top: 2px; margin-bottom: 14px; color: var(--ink-3); font-size: 13px; }
.steps summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.steps summary::-webkit-details-marker { display: none; }
.steps ul { list-style: none; padding: 6px 0 0 22px; margin: 0; } .steps li { padding: 2px 0; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #7b5cff; border-top-color: transparent; display: inline-block; animation: spin .9s linear infinite; flex: none; }
.dot-ok { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.m.note { text-align: center; color: var(--ink-3); font-size: 13px; }
.m.err .bub, .m.limit .bub { border: 1px solid rgba(255,106,106,.4); background: rgba(255,106,106,.06); border-radius: 14px; padding: 12px 14px; color: var(--ink-2); font-size: 14px; }
.m.limit .bub { border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.06); }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: pulse 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.sys { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px; margin-bottom: 16px; }
.sys.wait { border-color: rgba(255,181,71,.45); }
.sys h2 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 600; }
.sys p { color: var(--ink-2); margin: 0 0 12px; }
.composer { flex: none; padding: 10px 20px 16px; }
.composer > * { max-width: 760px; margin-left: auto; margin-right: auto; }
body.mode-builder .composer { padding: 8px 12px 12px; }
.comp-row { display: flex; align-items: flex-end; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px; }
.comp-row:focus-within { border-color: #5a5b60; }
#input { flex: 1; resize: none; overflow-y: hidden; background: none; border: 0; color: var(--ink); font: 15px/1.5 var(--f-sans); padding: 8px 4px; margin: 0; outline: none; max-height: 200px; }
.ic-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); cursor: pointer; flex: none; }
.ic-btn:hover { color: var(--ink); background: var(--surface-2); } .ic-btn input { display: none; }
.send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; }
.send:disabled { opacity: .35; cursor: default; } .send.stop { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.comp-note { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; text-align: center; min-height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .chips:empty { display: none; }
.chips span { font-size: 12px; background: var(--surface-2); border: 1px solid var(--hair); border-radius: 99px; padding: 3px 10px; color: var(--ink-2); }

/* ---------- visual builder ---------- */
.canvas { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; background: #0b0b0c; }
.tools { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--hair); background: var(--bg); flex-wrap: wrap; }
.tools select { height: 34px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 13px var(--f-sans); max-width: 200px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: none; color: var(--ink-3); font: 500 13px var(--f-sans); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--ink); }
.grow { flex: 1; }
.tbtn { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 13px var(--f-sans); cursor: pointer; }
.tbtn:hover { background: var(--surface-2); }
.stage { flex: 1; position: relative; overflow: auto; display: flex; justify-content: center; padding: 16px; }
.frame-wrap { width: 100%; height: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); transition: width .3s var(--ease); }
.frame-wrap.tablet { width: 820px; } .frame-wrap.phone { width: 400px; }
#site { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.busy-cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(2,2,2,.45); backdrop-filter: blur(2px); z-index: 5; }
.busy-cover > div { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; display: flex; gap: 10px; align-items: center; }
.edbar { position: absolute; z-index: 6; display: flex; gap: 4px; background: #17171a; border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.edbar button { border: 0; background: none; color: var(--ink); font: 500 12px var(--f-sans); padding: 6px 9px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.edbar button:hover { background: var(--surface-2); }
.sechip { position: absolute; z-index: 6; display: flex; align-items: center; gap: 2px; background: #7b5cff; color: #fff; border-radius: 8px; padding: 2px; font: 500 12px var(--f-sans); }
.sechip span { padding: 4px 8px; text-transform: capitalize; } .sechip button { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 6px; padding: 4px 7px; cursor: pointer; font: 500 12px var(--f-sans); }
.sechip button:hover { background: rgba(255,255,255,.28); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line); z-index: 8; display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(0,0,0,.35); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; } .fld > span { font-size: 13px; color: var(--ink-2); }
.fld input[type=text], .fld input[type=url], .fld input[type=date], .fld input[type=number], .fld select, .fld .rich, .fld textarea {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: 14px var(--f-sans); outline: none; width: 100%; }
.fld .rich { min-height: 110px; line-height: 1.55; } .fld .rich:focus, .fld input:focus { border-color: #5a5b60; }
.color-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); }
.color-row input[type=color] { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: none; padding: 2px; cursor: pointer; }
.color-row code { font: 12px var(--f-mono); color: var(--ink-3); } .color-row span { flex: 1; font-size: 13px; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--hair); border-radius: 12px; margin-bottom: 8px; background: var(--surface); cursor: pointer; }
.list-item:hover { border-color: var(--line); } .list-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.list-item b { flex: 1; font-weight: 500; font-size: 14px; } .list-item .dim { font-size: 12px; }
.prov { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--hair); border-radius: 14px; margin-bottom: 10px; background: var(--surface); }
.prov b { display: block; } .prov .grow a { font-size: 13px; color: #b8a6ff; overflow-wrap: anywhere; }
.img-fld { display: flex; gap: 10px; align-items: center; } .img-fld img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.term-drawer { position: fixed; left: 0; right: 0; bottom: 0; height: 55vh; background: #0f0f10; border-top: 1px solid var(--line); z-index: 20; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .3s var(--ease); }
.term-drawer.open { transform: none; }
.term-drawer iframe { flex: 1; border: 0; width: 100%; }

@media (max-width: 900px) {
  body.mode-builder .ws { flex-direction: column-reverse; }
  body.mode-builder .chat { width: auto; height: 42vh; border-right: 0; border-top: 1px solid var(--hair); }
  .tools .seg:first-of-type { display: none; }
  .bar { padding: 0 16px; } .bar-mid .name { display: none; }
}
.howto { margin: 4px 0 14px; padding-left: 20px; color: var(--ink-2); } .howto li { margin-bottom: 7px; }
kbd { font: 500 12px var(--f-mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.bar-prog { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s var(--ease); }
.score { font: 600 12px var(--f-mono); padding: 3px 9px; border-radius: 99px; background: rgba(135,215,91,.14); color: var(--ok); }
.fld > span { text-transform: capitalize; }
@media (max-width: 640px) {
  .hide-sm, #btnTerm, .logo .dim { display: none; }
  .bar { gap: 8px; } .bar-mid .pill { font-size: 12px; padding: 3px 9px; } .bar-right .linkbtn { padding: 6px 4px; }
  .tools { gap: 6px; padding: 8px; } .tools select { max-width: 120px; } .stage { padding: 8px; }
  #input { font-size: 16px; }   /* no zoom-on-focus on phones */
}

.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 12px; padding: 8px 6px; font: 12px var(--f-sans); cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.preset:hover { border-color: #7b5cff; color: var(--ink); }
.preset span { display: flex; } .preset span i { width: 12px; height: 18px; } .preset span i:first-child { border-radius: 4px 0 0 4px; } .preset span i:last-child { border-radius: 0 4px 4px 0; }
.preset.font b { font-size: 20px; font-weight: 600; color: var(--ink); }
.more { margin-top: 16px; } .more summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 6px 0; }

.seo-score { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); margin-bottom: 16px; }
.seo-score b { font: 600 26px var(--f-mono); background: var(--grad); -webkit-background-clip: text; color: transparent; } .seo-score span { font-size: 13px; color: var(--ink-2); }
.serp { display: grid; gap: 3px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-family: arial, sans-serif; }
.serp .u { font-size: 12px; color: #202124; } .serp .t { font-size: 18px; color: #1a0dab; line-height: 1.3; } .serp .d { font-size: 13px; color: #4d5156; line-height: 1.45; }
.seo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13px; }
.seo-list li { padding: 8px 10px 8px 26px; border-radius: 10px; background: var(--surface); position: relative; color: var(--ink-2); }
.seo-list li::before { content: ""; position: absolute; left: 10px; top: 13px; width: 8px; height: 8px; border-radius: 50%; }
.seo-list li.bad::before { background: var(--err); } .seo-list li.meh::before { background: var(--wait); }
.seo-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .seo-dot.ok { background: var(--ok); } .seo-dot.meh { background: var(--wait); } .seo-dot.bad { background: var(--err); }

/* live build: the real page underneath, a dark cover with the progress on top */
.live-cover { position: absolute; inset: 16px; border-radius: 10px; z-index: 5; display: grid; place-items: end center; padding: 0 16px 40px;
  background: linear-gradient(180deg, rgba(2,2,2,.38) 0%, rgba(2,2,2,.62) 55%, rgba(2,2,2,.86) 100%); pointer-events: auto; }
.live-card { width: min(460px, 100%); background: rgba(19,20,23,.92); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.live-card .eyebrow { margin: 0 0 6px; } .live-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.live-card .bar-prog { margin-bottom: 10px; } .live-card p { margin: 10px 0 0; }
.live-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); } .live-meta > span:first-child { display: flex; gap: 8px; align-items: center; }
body.live-build #tUndo, body.live-build #tTheme, body.live-build #tCms, body.live-build #tSeo, body.live-build #tPublish,
body.live-build .seg[aria-label="Mode"], body.live-build #edbar, body.live-build #sechip { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: #fff; color: #020202; padding: 12px 18px; border-radius: 99px; font-weight: 500; z-index: 50; transition: all .35s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.in { transform: translate(-50%, 0); opacity: 1; }

.sys.slim { padding: 18px 20px; }
.sys-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sys-row p { margin: 0; } .sys.slim h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sys .waiting { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
.info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font: 600 11px var(--f-mono); color: var(--ink-3); cursor: help; }
.info .tip { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: 280px; padding: 10px 12px; border-radius: 12px; background: #fff; color: #020202; font: 400 13px/1.45 var(--f-sans); box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 30; }
.info:hover .tip, .info:focus .tip { opacity: 1; }
.btn .spin { border-color: var(--on-accent); border-top-color: transparent; }
@media (max-width: 640px) { .sys-row { flex-direction: column; align-items: stretch; } }

/* ===== chat, refined (2026-10-22) ===== */
.msgs { padding: 36px 24px 16px; }
.msgs > * { max-width: 700px; }
.m { margin-bottom: 26px; }
.m.ai .who { gap: 9px; font: 500 12.5px var(--f-sans); color: var(--ink-2); margin-bottom: 10px; letter-spacing: .01em; }
.m.ai .who i { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.m.ai.cont { margin-top: -10px; } .m.ai.cont .who { display: none; }
.m.ai .body { color: #d4d4d9; font-size: 15.5px; line-height: 1.7; letter-spacing: -.003em; }
.m.ai .body p { margin: 0 0 14px; } .m.ai .body b { color: var(--ink); font-weight: 600; }
.m.ai .body p.fine-note { font-size: 13px; line-height: 1.6; color: var(--ink-3); margin-bottom: 8px; }
.m.user { margin-bottom: 30px; }
.m.user .bub { background: #1a1b1f; border: 1px solid rgba(255,255,255,.07); padding: 11px 16px; border-radius: 20px 20px 6px 20px; max-width: 78%; color: var(--ink); font-size: 15px; line-height: 1.55; }
.m.user .bub.answers { display: grid; gap: 8px; padding: 14px 16px; min-width: min(380px, 78%); }
.m.user .bub.answers div { display: grid; gap: 1px; } .m.user .bub.answers span { font-size: 12px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.m.user .bub.answers b { font-weight: 500; }

/* questions: one calm card, one answer each, one Send */
.qcard { margin: 18px 0 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; background: linear-gradient(180deg, #121316, #0e0f11); overflow: hidden; }
.q { padding: 20px 22px; border-top: 1px solid rgba(255,255,255,.06); transition: background .3s var(--ease); }
.q:first-child { border-top: 0; }
.q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.q-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--f-mono); color: var(--ink-2); border: 1px solid var(--line); margin-top: 2px; }
.q-t { color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.45; letter-spacing: -.01em; }
.q-t b { font-weight: 600; }
.q-h { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; margin-top: 4px; }
.qcard.single .q { padding: 18px 20px; }
.qcard .choices { margin: 0 0 0 34px; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 0; height: 38px; padding: 0 15px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025);
  color: #e6e6ea; border-radius: 99px; font: 500 14px var(--f-sans); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), padding .2s var(--ease); }
.choice:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.choice .ck { display: inline-grid; place-items: center; width: 0; overflow: hidden; transition: width .2s var(--ease), margin .2s var(--ease); }
.choice.on { background: #fff; color: #050505; border-color: #fff; }
.choice.on .ck { width: 14px; margin-right: 7px; }
.qcard.done .choice { pointer-events: none; } .qcard.done .choice:not(.on) { opacity: .4; }
.qcard.done .q-foot { display: none; }
.q-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 22px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.015); flex-wrap: wrap; }
.q-prog { font-size: 12.5px; color: var(--ink-3); }
.q-send, .q-skip { height: 38px; padding: 0 18px; border-radius: 99px; font: 600 14px var(--f-sans); cursor: pointer; border: 1px solid transparent; transition: opacity .2s var(--ease), background .2s var(--ease); }
.q-send { background: #fff; color: #050505; } .q-send:disabled { opacity: .3; cursor: default; }
.q-skip { background: transparent; color: var(--ink-2); border-color: rgba(255,255,255,.12); } .q-skip:hover { color: var(--ink); background: rgba(255,255,255,.05); }

/* steps: one quiet line */
.m.steps { margin-top: -6px; margin-bottom: 22px; font-size: 13px; color: var(--ink-3); }
.m.steps summary { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 99px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.m.steps summary:hover { color: var(--ink-2); border-color: rgba(255,255,255,.12); }
.st-ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #050505; background: var(--ok); flex: none; }
.m.steps.live .st-ic { background: transparent; } .m.steps.live .lbl { color: var(--ink-2); background: linear-gradient(90deg, var(--ink-3), var(--ink), var(--ink-3)); background-size: 200% 100%; -webkit-background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite; }
.m.steps .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; margin-left: 2px; }
.m.steps[open] .chev { transform: rotate(225deg); }
.m.steps ul { padding: 10px 0 0 34px; } .m.steps li { padding: 3px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* notices */
.m.notice { border-radius: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.m.notice b { color: var(--ink); } .m.notice.err { background: rgba(255,106,106,.07); border: 1px solid rgba(255,106,106,.25); }
.m.notice.limit { background: rgba(255,181,71,.07); border: 1px solid rgba(255,181,71,.3); }
.typing { padding: 4px 0; } .typing i { width: 7px; height: 7px; background: var(--ink-2); }

/* composer: floating, calm */
.composer { padding: 6px 24px 22px; background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.comp-row { border-radius: 26px; padding: 7px 7px 7px 8px; background: #121316; border-color: rgba(255,255,255,.09); box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset; transition: border-color .2s var(--ease); }
.comp-row:focus-within { border-color: rgba(255,255,255,.22); }
#input { font-size: 15.5px; padding: 9px 4px; } #input::placeholder { color: #6f6f76; }
.send { width: 40px; height: 40px; }
.comp-note { margin-top: 8px; font-size: 12px; }
body.mode-builder .msgs > * { max-width: none; }
body.mode-builder .m.ai .body { font-size: 14.5px; } body.mode-builder .qcard .choices { margin-left: 0; } body.mode-builder .q { padding: 16px; }
.m.user .bub.answers .note { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); white-space: pre-wrap; }
.m.steps li.note { color: var(--ink-2); }

/* ===== builder revamp (2026-10-22) ===== */
.bar-center, .bar-tools { display: none; }
body.mode-builder .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 14px; height: 56px; padding: 0 14px; background: #08080a; border-bottom-color: rgba(255,255,255,.07); }
body.mode-builder .bar-mid { min-width: 0; }
body.mode-builder .bar-center { display: flex; align-items: center; gap: 10px; justify-self: center; }
body.mode-builder .bar-tools { display: flex; align-items: center; gap: 4px; justify-self: end; }
body.mode-builder.live-build .bar-tools > :not(.pub), body.mode-builder.live-build .seg.mode { display: none; }
body.mode-builder.live-build .pub { opacity: .35; pointer-events: none; }
.seg { background: #141519; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; color: #8b8b93; font: 500 13px var(--f-sans); transition: color .2s var(--ease), background .2s var(--ease); }
.seg button:hover { color: var(--ink); } .seg button.on { background: #24252b; color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 1px 2px rgba(0,0,0,.4); }
.seg.dev button { padding: 0 9px; }
.ibtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: #9a9aa2; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.ibtn:hover { background: #18191d; color: var(--ink); }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 9px; border: 0; background: transparent; color: #c9c9cf; font: 500 13px var(--f-sans); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.tool:hover, .tool.on { background: #18191d; color: var(--ink); } .tool svg { color: #8b8b93; } .tool:hover svg, .tool.on svg { color: var(--ink); }
.vsep { width: 1px; height: 20px; background: rgba(255,255,255,.08); margin: 0 6px; }
.pub { height: 34px; padding: 0 16px; margin-left: 8px; border-radius: 9px; border: 0; background: #fff; color: #050505; font: 600 13px var(--f-sans); cursor: pointer; transition: opacity .2s var(--ease); }
.pub:hover { opacity: .88; }

/* account menu */
.acct { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, #2a2b31, #17181c); color: var(--ink); font: 600 13px var(--f-sans); cursor: pointer; }
.menu { position: absolute; right: 0; top: 42px; min-width: 230px; background: #121316; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.55); z-index: 40; }
.menu .who { padding: 10px 10px 8px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 4px; overflow-wrap: anywhere; }
.menu button { display: flex; width: 100%; text-align: left; border: 0; background: none; color: #dcdce1; font: 14px var(--f-sans); padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: #1c1d22; }

/* chat panel beside the canvas */
.chat-head { display: none; }
body.mode-builder .chat { width: 372px; background: #0a0a0c; border-right: 1px solid rgba(255,255,255,.07); }
body.mode-builder .chat-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 16px; border-bottom: 1px solid rgba(255,255,255,.06); flex: none; }
.ch-t { display: flex; align-items: center; gap: 8px; font: 600 14px var(--f-sans); } .ch-t i { width: 18px; height: 18px; border-radius: 5px; background: var(--grad); }
.ch-s { flex: 1; font-size: 12.5px; color: var(--ink-3); }
body.mode-builder.chat-folded .chat { display: none; }
.chat-open { position: absolute; left: 14px; bottom: 16px; z-index: 12; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.1); background: #141519; color: var(--ink); font: 500 13px var(--f-sans); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
body.mode-builder .prog { padding: 10px 16px; }
body.mode-builder .msgs { padding: 18px 16px 10px; }
body.mode-builder .composer { padding: 6px 12px 14px; }
body.mode-builder .comp-row { border-radius: 18px; box-shadow: none; background: #121316; }
body.mode-builder .m.ai .who { display: none; }
body.mode-builder .m { margin-bottom: 18px; }
body.mode-builder .m.user .bub { max-width: 92%; font-size: 14px; }

/* canvas: calm backdrop, the site in a browser frame */
.canvas { background: #0d0d10; background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 22px 22px; }
.stage { padding: 22px 26px 26px; align-items: flex-start; }
.frame-wrap { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 1480px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.55); transition: width .45s var(--ease), border-radius .45s var(--ease); }
.frame-wrap.tablet { width: 834px; } .frame-wrap.phone { width: 400px; border-radius: 30px; }
.chrome { flex: none; height: 42px; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 0 12px; background: #17181c; border-bottom: 1px solid rgba(255,255,255,.06); }
.dots { display: flex; gap: 7px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2d33; }
.url { justify-self: center; display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 0 10px 0 12px; border-radius: 8px; background: #0f1013; color: #8b8b93; font: 12.5px var(--f-sans); cursor: pointer; }
.url .host { color: #c9c9cf; } .url .slash { opacity: .5; }
.url select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--ink); font: 500 12.5px var(--f-sans); padding: 0 2px; cursor: pointer; outline: none; max-width: 160px; }
.chrome-r { justify-self: end; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #6f6f76; }
.frame-wrap.phone .dots, .frame-wrap.phone .chrome-r { visibility: hidden; } .frame-wrap.phone .chrome { grid-template-columns: 20px 1fr 20px; }
#site { flex: 1; height: auto; }
.live-cover { inset: 22px 26px 26px; border-radius: 14px; top: 64px; }
body.mode-builder .busy-cover { inset: 64px 26px 26px; border-radius: 0 0 14px 14px; }

/* side panels */
.drawer { top: 0; width: min(400px, 100%); background: #0b0b0d; border-left: 1px solid rgba(255,255,255,.08); box-shadow: -30px 0 60px rgba(0,0,0,.45); }
.drawer-head { height: 56px; padding: 0 10px 0 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.drawer-head h3 { font: 600 15px var(--f-sans); letter-spacing: -.01em; }
.drawer-body { padding: 18px 20px 24px; }
.drawer-body .label { font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #77777f; margin: 4px 0 10px; }
.color-row { padding: 9px 0; border-top-color: rgba(255,255,255,.05); } .color-row input[type=color] { width: 30px; height: 30px; border-radius: 8px; }
.preset { background: #121316; border-color: rgba(255,255,255,.07); border-radius: 12px; padding: 10px 6px 8px; } .preset:hover { border-color: rgba(255,255,255,.25); }
.fld input[type=text], .fld input[type=url], .fld input[type=date], .fld input[type=number], .fld select, .fld .rich, .fld textarea { background: #121316; border-color: rgba(255,255,255,.08); border-radius: 10px; }
.drawer .btn.sm.grad { background: #fff; color: #050505; }
.list-item { background: #121316; border-color: rgba(255,255,255,.06); }
.prov { background: #121316; border-color: rgba(255,255,255,.06); }

/* edit mode hints */
.edbar { background: #fff; border: 0; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.edbar button { color: #111; } .edbar button:hover { background: #f0f0f2; }
.sechip { background: #111; box-shadow: 0 6px 18px rgba(0,0,0,.3); } .sechip span { text-transform: none; font-weight: 600; }

@media (max-width: 1100px) { .tool span { display: none; } .tool { padding: 0 9px; } body.mode-builder .chat { width: 330px; } }
@media (max-width: 900px) {
  body.mode-builder .bar { grid-template-columns: auto 1fr auto; } body.mode-builder .bar-center .seg.dev, body.mode-builder .bar-mid .name { display: none; }
  body.mode-builder .bar-tools { grid-column: 1 / -1; } body.mode-builder .bar { height: auto; padding: 8px 12px; }
  body.mode-builder .chat { width: auto; }
}

/* side panel tabs + layers */
.ptabs { display: inline-flex; background: #141519; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 3px; gap: 2px; }
.ptabs button { height: 28px; padding: 0 13px; border: 0; border-radius: 7px; background: none; color: #8b8b93; font: 500 13px var(--f-sans); cursor: pointer; }
.ptabs button.on { background: #24252b; color: var(--ink); }
body:not(.mode-builder) .ptabs { display: none; }
.layers { flex: 1; overflow-y: auto; padding: 4px 8px 24px; font-size: 13px; }
.lhead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 10px 10px; background: #0a0a0c; }
.lhead b { display: block; font: 600 14px var(--f-sans); letter-spacing: -.01em; } .lhead span { font-size: 12px; color: var(--ink-3); }
.ltree, .ltree ul { list-style: none; margin: 0; padding: 0; }
.ltree ul { position: relative; }
.ltree ul::before { content: ""; position: absolute; top: 2px; bottom: 6px; left: calc(16px + var(--d) * 16px); width: 1px; background: rgba(255,255,255,.07); }
.ltree > li.sec { margin-top: 2px; }
.ltree > li.sec + li.sec { border-top: 1px solid rgba(255,255,255,.04); padding-top: 2px; }
.lrow { --d: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 calc(4px + var(--d) * 16px); border-radius: 9px; color: #b9b9c0; cursor: pointer; position: relative; transition: background .15s var(--ease), color .15s var(--ease); }
.lrow:hover { background: #141519; color: var(--ink); }
.lrow.sel { background: #1d1e24; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.lrow.sel::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--grad); }
.lic { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #8b8b93; background: rgba(255,255,255,.04); }
.k-section .lic, .k-header .lic, .k-footer .lic { color: #e8e8ec; background: rgba(255,255,255,.08); }
.k-image .lic, .k-video .lic { color: #7fd4c1; } .k-heading .lic, .k-text .lic { color: #c7c3ff; } .k-button .lic, .k-link .lic { color: #ffb38a; } .k-content .lic { color: #ffd166; }
.lrow.k-section, .lrow.k-header, .lrow.k-footer { height: 36px; } .k-section .lname, .k-header .lname, .k-footer .lname { font-weight: 600; color: var(--ink); }
.lname { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmeta { flex: none; font: 500 11px var(--f-sans); color: #66666e; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.035); }
.lrow:hover .lmeta, .lrow.sel .lmeta { display: none; }
.caret { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 4px; }
.caret:hover { background: rgba(255,255,255,.08); }
.caret::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid #6f6f76; border-bottom: 1.5px solid #6f6f76; transform: rotate(-45deg) translate(-1px, -1px); transition: transform .18s var(--ease); }
.caret.open::before { transform: rotate(45deg) translate(-1px, -1px); } .caret.none::before { display: none; }
.lacts { display: none; gap: 0; margin-left: 2px; } .lrow:hover .lacts, .lrow.sel .lacts { display: inline-flex; }
.lacts button { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: #8b8b93; cursor: pointer; }
.lacts button:hover { background: #26272d; color: var(--ink); }
li.hid > .lrow { opacity: .45; } li.hid > .lrow .lacts { display: inline-flex; } li.hid > .lrow .lacts button:not(.eye) { display: none; }
.lempty { padding: 40px 18px; text-align: center; color: var(--ink-3); } .lempty p { margin: 0 0 14px; }

/* scrollbars: thin, quiet, on-brand */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, #ff8a3d, #ff4f8b 55%, #7b5cff); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
.edbar .eb-l { display: inline-flex; align-items: center; padding: 0 10px 0 8px; margin-right: 2px; font: 600 12px var(--f-sans); color: #111; border-right: 1px solid #e6e6ea; }

/* Unsplash */
.btn.light { background: #fff; color: #050505; border: 0; font-weight: 600; } .btn.light:hover { background: #ececef; }
.uns-row, .uns-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: #0f1013; margin: 0 0 16px; }
.uns-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #050505; }
.uns-txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .uns-txt b { font-weight: 600; font-size: 14px; } .uns-txt span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.uns-acts { display: flex; align-items: center; gap: 6px; } .uns-ok { font-size: 13px; color: var(--ok); font-weight: 500; }
.uns-row.on { border-color: rgba(135,215,91,.3); }
.uns-card { max-width: 700px; margin: 12px auto 0; width: calc(100% - 48px); }
body.mode-builder .uns-card { width: auto; margin: 10px 12px 0; padding: 12px; } body.mode-builder .uns-card .uns-txt span { display: none; }
@media (max-width: 640px) { .uns-row { flex-wrap: wrap; } }
.color-row .uses { display: block; font-style: normal; font-size: 11.5px; color: #66666e; margin-top: 1px; }

/* properties panel (Framer-style) */
.canvas { flex-direction: row; }
.insp { display: none; position: relative; flex: none; width: 280px; background: #0a0a0c; border-left: 1px solid rgba(255,255,255,.07); overflow-y: auto; font-size: 12px; color: #c9c9cf; }
body.editing .insp { display: block; }
.pempty { padding: 70px 26px; text-align: center; color: #77777f; } .pempty svg { color: #55555c; margin-bottom: 10px; } .pempty p { margin: 0 0 6px; line-height: 1.5; }
.ph { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 2px; padding: 12px 8px 12px 14px; background: #0a0a0c; border-bottom: 1px solid rgba(255,255,255,.06); }
.ph > div { flex: 1; min-width: 0; } .ph b { display: block; font: 600 13px var(--f-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ph span { font-size: 11px; color: #6f6f76; }
.ph .ibtn { width: 28px; height: 28px; }
.pg { padding: 10px 12px 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.pg h4 { margin: 2px 0 8px; font: 600 12px var(--f-sans); color: var(--ink); letter-spacing: -.005em; }
.pr { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 6px; }
.pl { color: #85858c; font-size: 11.5px; white-space: nowrap; user-select: none; }
.pl[data-scrub] { cursor: ew-resize; } .pl[data-scrub]:hover { color: var(--ink); }
body.scrubbing, body.scrubbing * { cursor: ew-resize !important; user-select: none; }
.pc { display: flex; gap: 6px; min-width: 0; align-items: center; }
.nf, .sf, .cf { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; background: #16171b; border: 1px solid transparent; transition: border-color .15s var(--ease), background .15s var(--ease); }
.nf:hover, .sf:hover, .cf:hover { background: #1b1c21; } .nf:focus-within, .sf:focus-within { border-color: rgba(123,92,255,.6); background: #121317; }
.nf b { font: 500 10.5px var(--f-sans); color: #6f6f76; flex: none; }
.nf input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; color: var(--ink); font: 12px var(--f-sans); outline: none; padding: 0; font-variant-numeric: tabular-nums; }
.nf input::placeholder { color: #5f5f66; }
.nf i { font-style: normal; font-size: 10.5px; color: #55555c; flex: none; }
.nf.mini { padding: 0 4px; } .nf.mini input { text-align: center; }
.quad { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; min-width: 0; }
.sf { position: relative; padding-right: 22px; } .sf select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 12px var(--f-sans); outline: none; cursor: pointer; }
.sf svg { position: absolute; right: 7px; color: #6f6f76; pointer-events: none; } .sf select option { background: #16171b; }
.cf { cursor: pointer; color: var(--ink); font: 12px var(--f-sans); text-align: left; }
.cf i { width: 16px; height: 16px; border-radius: 5px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); background-image: none; }
.cf span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segs { flex: 1; display: flex; background: #16171b; border: 0; border-radius: 7px; padding: 2px; }
.segs button { flex: 1; height: 24px; padding: 0 6px; border: 0; border-radius: 5px; background: none; color: #85858c; font: 500 11.5px var(--f-sans); display: flex; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.segs button:hover { color: var(--ink); } .segs button.on { background: #2a2b31; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.lk { flex: none; width: 28px; height: 28px; border: 0; border-radius: 7px; background: #16171b; color: #6f6f76; display: grid; place-items: center; cursor: pointer; } .lk.on { color: var(--ink); background: #24252b; }
.cpop { position: absolute; left: 10px; right: 10px; z-index: 5; background: #141519; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.cpop p { margin: 0 0 8px; font-size: 11px; color: #77777f; }
.cgrid { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; }
.cgrid button { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border: 0; border-radius: 7px; background: none; color: #d4d4d9; font: 12px var(--f-sans); cursor: pointer; text-align: left; }
.cgrid button:hover, .cgrid button.on { background: #1f2026; } .cgrid i { width: 16px; height: 16px; border-radius: 5px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.cfoot { display: flex; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.cfoot > * { height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: #1b1c21; color: #c9c9cf; font: 12px var(--f-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cpick { position: relative; flex: 1; } .cpick i { width: 14px; height: 14px; border-radius: 4px; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.cpick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 1100px) { .insp { width: 272px; } body.mode-builder.editing .chat { width: 300px; } .pr { grid-template-columns: 54px 1fr; } }

/* properties panel v2 */
.pr { grid-template-columns: 74px 1fr; }
.w-sel { flex: 1.25; min-width: 0; display: flex; } .w-sel .sf { flex: 1; }
.pr .nf { min-width: 0; } .nf input { text-overflow: clip; }
/* box model: margin outside, padding inside */
.bm { position: relative; height: 150px; border-radius: 10px; background: #121317; border: 1px dashed rgba(255,255,255,.12); margin-bottom: 8px; }
.bm-in { position: absolute; inset: 30px 46px; border-radius: 8px; background: #1a1b20; border: 1px solid rgba(255,255,255,.1); }
.bm-core { position: absolute; inset: 26px 40px; border-radius: 4px; background: rgba(123,92,255,.22); border: 1px solid rgba(123,92,255,.45); }
.bm-cap { position: absolute; left: 7px; top: 5px; font: 500 9.5px var(--f-sans); letter-spacing: .04em; text-transform: uppercase; color: #5f5f66; pointer-events: none; }
.bm input { position: absolute; width: 38px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: 500 11.5px var(--f-sans); text-align: center; outline: none; padding: 0; font-variant-numeric: tabular-nums; }
.bm input:hover { background: rgba(255,255,255,.06); } .bm input:focus { background: #24252b; box-shadow: 0 0 0 1px rgba(123,92,255,.7); }
.bm > .bm-t { top: 5px; left: calc(50% - 19px); } .bm > .bm-b { bottom: 5px; left: calc(50% - 19px); } .bm > .bm-l { left: 4px; top: calc(50% - 10px); } .bm > .bm-r { right: 4px; top: calc(50% - 10px); }
.bm-in > .bm-t { top: 3px; left: calc(50% - 19px); } .bm-in > .bm-b { bottom: 3px; left: calc(50% - 19px); } .bm-in > .bm-l { left: 1px; top: calc(50% - 10px); } .bm-in > .bm-r { right: 1px; top: calc(50% - 10px); }
.bm-in > .bm-cap { left: 6px; top: 4px; } .bm-in > .bm-t { top: 4px; }
.bm-quick { display: flex; gap: 6px; } .bm-quick .nf { flex: 1; }
.bm-quick .nf b { font-size: 11px; }
/* layout: direction + spread/fill/wrap + a 3×3 alignment picture */
.lay { display: grid; grid-template-columns: 1fr 74px; gap: 10px; align-items: start; }
.lay-l { display: grid; gap: 6px; min-width: 0; } .lay-l .pr { margin: 0; grid-template-columns: 56px 1fr; }
.dir .segs button span { font-size: 11.5px; }
.lay-row { display: flex; gap: 6px; } .lay-row .nf { flex: 1; } .lay-row .nf b svg { display: block; color: #77777f; }
.chip { flex: 1; height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 7px; background: #16171b; color: #85858c; font: 500 11px var(--f-sans); cursor: pointer; padding: 0 4px; }
.chip:hover { color: var(--ink); } .chip.on { background: #2a2b31; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(123,92,255,.55); }
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); width: 74px; height: 74px; padding: 6px; border-radius: 10px; background: #16171b; gap: 2px; }
.ag { border: 0; background: none; border-radius: 5px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ag i { width: 5px; height: 5px; border-radius: 50%; background: #4b4b52; transition: all .15s var(--ease); }
.ag:hover i { background: #9a9aa2; }
.agrid.row .ag.on i { width: 14px; height: 6px; border-radius: 2px; background: #b8a6ff; } .agrid.col .ag.on i { width: 6px; height: 14px; border-radius: 2px; background: #b8a6ff; }
/* font button + searchable font list */
.ff { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px; border: 0; border-radius: 7px; background: #16171b; color: var(--ink); font-size: 13px; cursor: pointer; }
.ff:hover { background: #1b1c21; } .ff span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ff svg { color: #6f6f76; flex: none; }
.fpop { position: fixed; z-index: 60; display: flex; flex-direction: column; background: #141519; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; }
.fsearch { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-bottom: 1px solid rgba(255,255,255,.07); color: #77777f; flex: none; }
.fsearch input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font: 13px var(--f-sans); }
.flist { overflow-y: auto; padding: 6px; } .flist p { margin: 8px 8px 4px; font: 600 10.5px var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: #66666e; }
.fitem { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #e6e6ea; cursor: pointer; text-align: left; }
.fitem:hover, .fitem.on { background: #1f2026; } .fitem span { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fitem i { font-style: normal; font-size: 11px; color: #66666e; flex: none; }

/* the next page loads behind the current one; it takes its place only when ready */
.frame-wrap { position: relative; }
#site, .site-next { flex: 1; width: 100%; border: 0; display: block; background: transparent; }
.site-next { position: absolute; left: 0; right: 0; bottom: 0; top: 42px; height: calc(100% - 42px); opacity: 0; pointer-events: none; }
.frame-wrap { background: #0d0d10; } .frame-wrap #site { background: #fff; }

/* reset-to-original arrows: only on what you changed */
.pl { display: flex; align-items: center; gap: 4px; min-width: 0; } .pl > span { overflow: hidden; text-overflow: ellipsis; }
.pg h4 { display: flex; align-items: center; justify-content: space-between; }
.rs { flex: none; width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: rgba(123,92,255,.16); color: #c3b6ff; cursor: pointer; vertical-align: middle; }
.rs:hover { background: rgba(123,92,255,.32); color: #fff; } .rs svg { width: 11px; height: 11px; }
.pl[data-scrub] .rs { cursor: pointer; }
.color-row .rs, .fld .rs { margin-left: 6px; }
/* hover chip = just the section name (click to select); actions live on the white bar */
.sechip { padding: 0; background: #111; } .sechip button { background: none; padding: 5px 10px; font-weight: 600; border-radius: 8px; }
.sechip button:hover { background: #7b5cff; }
/* busy cover: the live step under a small title */
.busy-cover > div { padding: 10px 20px 10px 16px; max-width: min(460px, 80%); }
.busy-cover .bc-t { display: grid; gap: 1px; min-width: 0; }
.busy-cover .bc-t small { font: 500 11px var(--f-sans); color: #8a8a92; }
.busy-cover .bc-t b { font: 500 13.5px var(--f-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busy-cover .bc-t b.in { animation: bcIn .35s var(--ease); }
@keyframes bcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Grayskills hosting card in Publish */
.gsh { padding: 16px; border-radius: 16px; background: #121316; border: 1px solid rgba(123,92,255,.35); margin-bottom: 18px; display: grid; gap: 12px; }
.gsh-t b { display: block; font-size: 14px; } .gsh-t span { display: block; margin-top: 2px; }
.gsh-f { display: flex; align-items: center; height: 42px; border-radius: 10px; background: #0b0b0d; border: 1px solid rgba(255,255,255,.08); padding: 0 12px; transition: border-color .15s var(--ease); }
.gsh-f:focus-within { border-color: rgba(123,92,255,.7); }
.gsh-f input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 500 14px var(--f-sans); text-align: right; padding: 0; }
.gsh-f span { color: #8a8a92; font: 500 14px var(--f-sans); white-space: nowrap; }
.gsh-s { margin: -4px 0 0; font-size: 12.5px; color: #8a8a92; min-height: 18px; }
.gsh-s a { color: #b8a6ff; } .gsh-s .ok { color: #4ade80; } .gsh-s .bad { color: #f87171; }
.gsh-s .lnk { background: none; border: 0; padding: 0; color: #b8a6ff; font: inherit; cursor: pointer; text-decoration: underline; }
.gsh .btn { width: 100%; justify-content: center; } .gsh .btn .spin { width: 12px; height: 12px; }
.pub-or { margin: 0 0 10px; }

/* ---------------- dashboard: every site ---------------- */
.dash { flex: 1; overflow: auto; background: radial-gradient(1200px 500px at 50% -220px, rgba(123,92,255,.10), transparent 70%), var(--bg); }
.dash-in { width: min(1240px, 100%); margin: 0 auto; padding: 56px 32px 96px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dash-head .eyebrow { margin-bottom: 10px; }
.dash-head h1 { font-size: clamp(32px, 4vw, 44px); margin: 0; }
.dash-sub { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
.dash-head .btn { height: 42px; padding: 0 20px 0 16px; font-size: 14px; flex: none; }
.dash-note { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; margin-bottom: 22px; border-radius: 14px; background: rgba(123,92,255,.08); border: 1px solid rgba(123,92,255,.28); font-size: 14px; color: var(--ink-2); }
.dash-note > span:nth-child(2) { flex: 1; } .dash-note b { color: var(--ink); font-weight: 500; }
.dash-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.dsearch { flex: 1; max-width: 360px; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 11px; background: #0e0e10; border: 1px solid rgba(255,255,255,.08); color: var(--ink-3); transition: border-color .15s var(--ease); }
.dsearch:focus-within { border-color: rgba(123,92,255,.6); }
.dsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 14px var(--f-sans); }
.dsearch input::placeholder { color: #6a6a72; }
.dsort { display: flex; padding: 3px; border-radius: 11px; background: #0e0e10; border: 1px solid rgba(255,255,255,.08); margin-left: auto; }
.dsort button { border: 0; background: none; color: var(--ink-3); font: 500 13px var(--f-sans); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.dsort button.on { background: #1c1d22; color: var(--ink); }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.dcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: #0f1012; border: 1px solid rgba(255,255,255,.07); overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease); }
.dcard:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.14); box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); }
.dcard.is-open { border-color: rgba(123,92,255,.35); }
.dthumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.dshot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #08080a; border-bottom: 1px solid rgba(255,255,255,.06); }
.dshot iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; opacity: 0; transition: opacity .4s var(--ease); }
.dshot iframe.in { opacity: 1; }
.dshot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .3s var(--ease); }
.dcard:hover .dshot::after { opacity: 1; }
.dshot.empty { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 0%, #1a1a20, #0b0b0d 70%); }
.dmono { font: 600 44px/1 var(--f-sans); letter-spacing: -.04em; color: rgba(255,255,255,.16); }
.dbuild { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dbuild i { width: 6px; height: 6px; border-radius: 50%; background: #7b5cff; animation: pulse 1.2s infinite; } .dbuild i:nth-child(2) { animation-delay: .2s; } .dbuild i:nth-child(3) { animation-delay: .4s; }
.dstate { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; font: 500 12px var(--f-sans);
  background: rgba(10,10,12,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); color: #e9e9ee; }
.dstate i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.dstate.ok i { background: var(--ok); } .dstate.live i { background: var(--ok); box-shadow: 0 0 0 3px rgba(135,215,91,.18); } .dstate.wait i { background: var(--wait); }
.dstate.work i { background: #8b6dff; animation: pulse 1.4s infinite; }
.dgo { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 14px; border-radius: 99px; background: #fff; color: #050505; font: 600 13px var(--f-sans);
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.dcard:hover .dgo, .dthumb:focus-visible .dgo { opacity: 1; transform: none; }
.dgo .spin { border-color: #050505; border-top-color: transparent; }
.dmeta { padding: 14px 16px 16px; display: grid; gap: 4px; }
.dname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dname b { flex: 1; min-width: 0; font: 600 15px var(--f-sans); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmore { flex: none; width: 30px; height: 30px; margin: -5px -6px -5px 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
.dmore:hover { background: #1c1d22; color: var(--ink); }
.dmeta p { margin: 0; font-size: 13px; color: var(--ink-3); }
.dlive { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: #c9bcff; text-decoration: none; min-width: 0; }
.dlive span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dlive:hover span { text-decoration: underline; }
.dlive.off { color: #5f5f67; }
.drename { width: 100%; height: 30px; margin: -4px 0; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(123,92,255,.7); background: #0b0b0d; color: var(--ink); font: 600 15px var(--f-sans); outline: none; }
.dnew { align-items: center; justify-content: center; gap: 6px; min-height: 280px; padding: 24px; cursor: pointer; color: var(--ink-2); font: inherit; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 10px, transparent 10px 20px), #0b0b0d; border: 1px dashed rgba(255,255,255,.14); }
.dnew:hover { border-color: rgba(123,92,255,.6); color: var(--ink); }
.dnew b { font: 600 15px var(--f-sans); color: var(--ink); margin-top: 10px; } .dnew span:last-child { font-size: 13px; color: var(--ink-3); }
.dplus { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: #050505; transition: transform .35s var(--ease); }
.dnew:hover .dplus { transform: rotate(90deg) scale(1.04); }
.dskel { min-height: 280px; background: linear-gradient(100deg, #0f1012 30%, #16171a 50%, #0f1012 70%) 0 0 / 300% 100%; animation: dskel 1.4s linear infinite; }
@keyframes dskel { to { background-position: -150% 0; } }
.dempty { grid-column: 1 / -1; color: var(--ink-3); font-size: 14px; padding: 20px 4px; }
.dmenu { position: fixed; top: 0; left: 0; right: auto; min-width: 180px; }
.dmenu a { display: flex; padding: 9px 10px; border-radius: 8px; color: #dcdce1; font-size: 14px; text-decoration: none; } .dmenu a:hover { background: #1c1d22; }
.dmenu hr { border: 0; border-top: 1px solid rgba(255,255,255,.06); margin: 4px 0; }
.dmenu .danger, .dmenu .danger:hover { color: #ff8a8a; }
.dlg-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); animation: fadeIn .2s var(--ease); }
.dlg { width: min(420px, 100%); padding: 22px; border-radius: 18px; background: #121316; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dlg h3 { margin: 0 0 8px; font: 600 18px var(--f-sans); letter-spacing: -.01em; } .dlg p { margin: 0 0 20px; color: var(--ink-2); font-size: 14px; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; }
.btn.danger { background: #e5484d; border-color: #e5484d; color: #fff; font-weight: 600; } .btn.danger:hover { background: #d93d42; }
@keyframes fadeIn { from { opacity: 0; } }
.dtoast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; border-radius: 12px; background: #fff; color: #050505; font: 500 14px var(--f-sans); box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: opacity .25s var(--ease), transform .35s var(--ease); max-width: calc(100% - 32px); }
.dtoast.on { opacity: 1; transform: translate(-50%, 0); }
.bar-mid .back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; font-size: 14px; padding: 4px 8px 4px 4px; border-radius: 8px; }
.bar-mid .back:hover { color: var(--ink); background: #16171a; }
.bar-mid .crumb { color: #3d3d43; }
@media (max-width: 640px) {
  .dash-in { padding: 32px 16px 64px; }
  .dash-head { flex-direction: column; align-items: stretch; } .dash-head .btn { align-self: flex-start; }
  .dgrid { grid-template-columns: 1fr; gap: 16px; } .dgo { opacity: 1; transform: none; }
}

/* ---------------- AI picker + usage ---------------- */
.comp-foot { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-top: 6px; }
.comp-foot .comp-note { margin: 0; flex: 1; text-align: right; }
.aip-wrap { position: relative; }
.aipick { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.08); background: #121316; color: var(--ink-2); font: 500 12.5px var(--f-sans); cursor: pointer; }
.aipick:hover { color: var(--ink); border-color: rgba(255,255,255,.16); }
.aipick .aim { color: var(--ink-3); } .aipick .aim:empty { display: none; }
.aidot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.aidot.claude { background: #d97757; } .aidot.codex { background: #f2f2f2; }
.aimenu { position: absolute; left: 0; bottom: 36px; width: 300px; max-height: 70vh; overflow: auto; z-index: 50; padding: 6px; border-radius: 16px; background: #121316; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.aig { padding: 6px; } .aig + .aig { border-top: 1px solid rgba(255,255,255,.06); margin-top: 4px; padding-top: 10px; }
.aig-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; } .aig-h b { flex: 1; font: 600 13px var(--f-sans); }
.aig-ok { font-size: 11.5px; color: var(--ok); }
.aig-p { margin: 0 4px 4px; font-size: 12.5px; color: var(--ink-3); }
.aio { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.aio:hover { background: #1b1c21; } .aio.on { background: #1b1c21; }
.aio span { flex: 1; display: grid; } .aio b { font: 500 13px var(--f-sans); } .aio i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.aig-u { padding: 8px 4px 2px; display: grid; gap: 8px; }
.ub { display: grid; gap: 5px; } .ub-t { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); } .ub-t span:first-child { color: var(--ink-2); }
.ub.sm .ub-t { font-size: 11.5px; }
.ub-bar { height: 5px; border-radius: 99px; background: #1f2026; overflow: hidden; } .ub-bar i { display: block; height: 100%; border-radius: inherit; background: #8b6dff; transition: width .6s var(--ease); }
.ub.warm .ub-bar i { background: var(--wait); } .ub.hot .ub-bar i { background: var(--err); }
.ub-none { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* layers: drag and drop */
.ltree .lrow { touch-action: none; user-select: none; }
body.ldragging, body.ldragging * { cursor: grabbing !important; }
.lrow.dragsrc { opacity: .35; }
.lrow.lghost { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; background: #1d1e24; color: var(--ink); box-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(123,92,255,.5); transform-origin: 0 0; opacity: .96; }
.lrow.lghost .lacts, .lrow.lghost .lmeta { display: none !important; }
.ldrop { position: absolute; right: 10px; height: 2px; border-radius: 2px; background: #8b6dff; pointer-events: none; box-shadow: 0 0 0 3px rgba(139,109,255,.18); }
.ldrop::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #8b6dff; background: #0b0b0d; }
.layers { position: relative; }
.lrow.dropin { background: rgba(123,92,255,.14); box-shadow: inset 0 0 0 1px rgba(139,109,255,.7); color: var(--ink); }
.lrow.lmoved { animation: lmoved 1s var(--ease); }
@keyframes lmoved { 0% { background: rgba(123,92,255,.35); } 100% { background: #1d1e24; } }

/* pages: top-bar switcher + add a page */
.pgbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 9px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink); font: 500 14px var(--f-sans); cursor: pointer; white-space: nowrap; }
.pgbtn:hover, .pgbtn[aria-expanded="true"] { background: #16171a; border-color: rgba(255,255,255,.08); }
.pgbtn svg:first-child { color: var(--ink-3); } .pgbtn svg:last-child { color: var(--ink-3); }
.pgmenu { position: fixed; right: auto; width: 290px; padding: 6px; }
.pgm-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px; } .pgm-h b { font: 600 13px var(--f-sans); } .pgm-h span { font-size: 12px; color: var(--ink-3); background: #1c1d22; border-radius: 99px; padding: 1px 8px; }
.pgm-l { max-height: 50vh; overflow: auto; display: grid; gap: 1px; }
.pgi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.pgi:hover { background: #1b1c21; } .pgi.on { background: #1b1c21; }
.pgi-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #17181c; border: 1px solid rgba(255,255,255,.06); color: var(--ink-2); }
.pgi.on .pgi-ic { color: #c9bcff; border-color: rgba(123,92,255,.4); }
.pgi-t { flex: 1; min-width: 0; display: grid; } .pgi-t b { font: 500 13.5px var(--f-sans); } .pgi-t i { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgadd { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 10px; border: 0; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0 0 10px 10px; background: none; color: var(--ink); font: 500 13.5px var(--f-sans); cursor: pointer; }
.pgadd span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #050505; font-size: 18px; font-weight: 500; }
.pgadd:hover { background: #1b1c21; }
.pgdlg { width: min(460px, 100%); display: grid; gap: 4px; } .pgdlg p { margin-bottom: 14px; }
.pgdlg .fld i { font-style: normal; color: var(--ink-3); }
.pgdlg .fld input, .pgdlg .fld textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #0b0b0d; color: var(--ink); font: 14px var(--f-sans); outline: none; resize: vertical; }
.pgdlg .fld input:focus, .pgdlg .fld textarea:focus { border-color: rgba(123,92,255,.7); }
.np-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.np-sug button { border: 1px solid rgba(255,255,255,.08); background: #16171a; color: var(--ink-2); font: 12.5px var(--f-sans); padding: 4px 10px; border-radius: 99px; cursor: pointer; } .np-sug button:hover { color: var(--ink); border-color: rgba(255,255,255,.18); }
.np-chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin: 2px 0 18px; } .np-chk input { accent-color: #7b5cff; width: 15px; height: 15px; }
.sechip button { text-transform: none; }
.pgdlg .fld > span { text-transform: none; font-size: 13px; color: var(--ink-2); }
#input::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* hints stay on one line */

/* step list: a tick for each finished step, a spinner on the one running now, a dot for the AI's notes */
.m.steps ul { padding: 10px 0 2px 16px; display: grid; gap: 2px; }
.m.steps li { position: relative; padding: 4px 0 4px 24px; line-height: 1.45; }
.m.steps li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 4px; height: 8px; border-right: 1.6px solid var(--ok); border-bottom: 1.6px solid var(--ok); transform: rotate(45deg); opacity: .85; }
.m.steps li.note::before { left: 4px; top: 12px; width: 5px; height: 5px; border: 0; border-radius: 50%; background: #55555d; transform: none; }
.m.steps li.cur::before { left: 1px; top: 8px; width: 11px; height: 11px; border: 1.6px solid #8b6dff; border-top-color: transparent; border-radius: 50%; transform: none; animation: spin .9s linear infinite; opacity: 1; }
.m.steps li.cur { color: var(--ink-2); }
.m.steps .st-ic .spin { width: 12px; height: 12px; }
/* the change progress card (same look as the first build's) */
.busy-cover > div.busy-card { display: block; max-width: none; width: min(440px, calc(100% - 32px)); padding: 18px 20px; border-radius: 18px; background: rgba(19,20,23,.94); }
.busy-card .live-meta b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.busy-card .live-meta b.in { animation: bcIn .35s var(--ease); }
.busy-card .live-why { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.busy-card .live-why svg { flex: none; margin-top: 2px; color: var(--ok); }
.busy-card .live-why.in span { animation: bcIn .45s var(--ease); }
.busy-card .live-meta > span:last-child { white-space: nowrap; color: var(--ink-3); }

/* save status (top bar) */
.savest { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; margin-right: 2px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font: 500 12.5px var(--f-sans); cursor: default; white-space: nowrap; transition: color .2s var(--ease); }
.savest svg { color: var(--ok); } .savest .spin { width: 11px; height: 11px; }
.savest.busy { color: var(--ink-2); }
.savest.err { color: #ff9b9b; cursor: pointer; background: rgba(255,106,106,.08); } .savest.err:hover { background: rgba(255,106,106,.14); }
.sv-err { width: 7px; height: 7px; border-radius: 50%; background: var(--err); }
body.mode-builder.live-build .savest { display: none; }

/* panel: image + icon */
.imgp { display: grid; gap: 10px; margin-bottom: 10px; }
.imgp img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 10px; background: #0b0b0d; border: 1px solid rgba(255,255,255,.06); }
.imgp-a { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .imgp-a span { font-size: 11.5px; color: var(--ink-3); }
.icp { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 10px; border-radius: 12px; background: #121316; border: 1px solid rgba(255,255,255,.06); }
.icp-prev { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #0b0b0d; }
.icp > div { flex: 1; min-width: 0; display: grid; } .icp b { font: 500 13px var(--f-sans); text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .icp span:not(.icp-prev) { font-size: 11.5px; color: var(--ink-3); }
.ipop { position: fixed; z-index: 90; display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: #121316; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.ipop-tabs { display: flex; gap: 2px; padding: 2px; margin-bottom: 8px; border-radius: 10px; background: #0b0b0d; }
.ipop-tabs button { flex: 1; border: 0; background: none; color: var(--ink-3); font: 500 12.5px var(--f-sans); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.ipop-tabs button.on { background: #1c1d22; color: var(--ink); }
.ipop .fsearch { margin-bottom: 8px; }
.igrid { flex: 1; min-height: 120px; overflow-y: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; align-content: start; }
.ii { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: #d8d8de; cursor: pointer; }
.ii svg { width: 22px; height: 22px; } .ii:hover { background: #1c1d22; color: #fff; } .ii.on { background: rgba(123,92,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,109,255,.6); }
.ipop-none { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; padding: 12px 4px; }
.ipop-f { margin: 8px 2px 0; font-size: 11px; color: #5f5f67; }
.busy-card .live-meta em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.uns-wait { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; } .uns-wait .linkbtn { padding: 0; font-size: 12.5px; text-decoration: underline; }
body.mode-builder .uns-card .uns-txt span.uns-step, body.mode-builder .uns-card .uns-wait { display: flex; } body.mode-builder .uns-card .uns-txt span.uns-step { display: block; } body.mode-builder .uns-card { align-items: flex-start; }
body.mode-builder .uns-card .uns-txt span.uns-wait { display: flex; }
/* panel: the words */
.ptxt { width: 100%; min-height: 36px; resize: none; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: #16171b; color: var(--ink); font: 13px/1.45 var(--f-sans); outline: none; transition: border-color .15s var(--ease); }
.ptxt:hover { background: #1b1c21; } .ptxt:focus { border-color: rgba(123,92,255,.6); background: #121317; }
.ptxt-note { margin: 0; font-size: 12px; color: var(--ink-3); }
/* right-click menu */
.ctxmenu { position: fixed; right: auto; top: 0; left: 0; min-width: 210px; padding: 5px; z-index: 95; animation: ctxIn .12s var(--ease); }
@keyframes ctxIn { from { opacity: 0; transform: scale(.97); } }
.ctx-h { padding: 6px 10px 6px; font: 600 12px var(--f-sans); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ctxmenu button { align-items: center; gap: 10px; padding: 7px 10px; font-size: 13.5px; } .ctxmenu button svg { color: var(--ink-3); flex: none; }
.ctxmenu button:hover svg { color: var(--ink); }
.ctxmenu hr { border: 0; border-top: 1px solid rgba(255,255,255,.06); margin: 4px 0; }
.ctxmenu .danger, .ctxmenu .danger svg { color: #ff8a8a; } .ctxmenu .danger:hover { background: rgba(255,106,106,.1); }

/* ---------------- CMS page ---------------- */
.cmsv { position: absolute; inset: 0; z-index: 30; display: grid; grid-template-columns: 236px minmax(0, 1fr); background: #0a0a0c; animation: fadeIn .18s var(--ease); }
.cms-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 14px; }
.cms-side { border-right: 1px solid rgba(255,255,255,.06); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; background: #0c0c0e; }
.cms-side-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.cms-side-h b { font: 600 14px var(--f-sans); }
.cms-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-3); font: 500 13px var(--f-sans); padding: 5px 8px 5px 4px; border-radius: 8px; cursor: pointer; } .cms-back:hover { color: var(--ink); background: #17181c; }
.cms-cap { margin: 10px 8px 6px; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #6c6c74; }
.cms-nav { display: grid; gap: 1px; }
.cms-ni { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 500 13.5px var(--f-sans); text-align: left; cursor: pointer; }
.cms-ni span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cms-ni i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.cms-ni svg { color: #6c6c74; flex: none; } .cms-ni:hover { background: #141519; color: var(--ink); } .cms-ni.on { background: #1b1c21; color: var(--ink); } .cms-ni.on svg { color: #a995ff; }
.cms-newcol { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border: 1px dashed rgba(255,255,255,.12); border-radius: 9px; background: none; color: var(--ink-3); font: 500 13px var(--f-sans); cursor: pointer; }
.cms-newcol:hover { color: var(--ink); border-color: rgba(123,92,255,.5); }
.cms-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.cms-head { display: flex; align-items: center; gap: 10px; padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.cms-head > div { flex: 1; min-width: 0; } .cms-head h2 { margin: 0; font: 600 20px var(--f-sans); letter-spacing: -.015em; } .cms-head > div > span { font-size: 12.5px; color: var(--ink-3); }
.cms-head .btn { height: 34px; gap: 7px; }
.cms-search { display: flex; align-items: center; gap: 8px; width: 220px; height: 34px; padding: 0 11px; border-radius: 9px; background: #121316; border: 1px solid rgba(255,255,255,.07); color: var(--ink-3); }
.cms-search:focus-within { border-color: rgba(123,92,255,.6); } .cms-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 13px var(--f-sans); }
.cms-table { flex: 1; overflow: auto; padding: 0 12px 40px; }
.cms-tr { display: grid; align-items: center; gap: 14px; min-height: 58px; padding: 6px 12px; border-bottom: 1px solid rgba(255,255,255,.045); font-size: 13px; color: var(--ink-2); cursor: pointer; border-radius: 10px; transition: background .12s var(--ease); }
.cms-tr:not(.cms-th):hover { background: #121317; }
.cms-th { position: sticky; top: 0; z-index: 2; min-height: 40px; background: #0a0a0c; cursor: default; border-radius: 0; font: 500 12px var(--f-sans); color: var(--ink-3); }
.cms-th span { display: inline-flex; align-items: center; gap: 6px; }
.cms-grip { color: #4d4d55; cursor: grab; display: grid; place-items: center; opacity: 0; } .cms-tr:hover .cms-grip { opacity: 1; }
.cms-tr.dragging { opacity: .4; } .cms-tr.drop-a { box-shadow: inset 0 2px 0 #8b6dff; } .cms-tr.drop-b { box-shadow: inset 0 -2px 0 #8b6dff; }
.cms-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cms-name img, .cms-noimg { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: #16171b; }
.cms-noimg { display: grid; place-items: center; color: #4d4d55; }
.cms-name > span { min-width: 0; display: grid; } .cms-name b { font: 500 14px var(--f-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cms-name em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cms-td { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.cms-nil { color: #4d4d55; } .cms-mini { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.cms-tag { padding: 2px 9px; border-radius: 99px; background: #1c1d22; color: var(--ink-2); font-size: 12px; }
.cms-pill { padding: 2px 9px; border-radius: 99px; background: #18191d; color: var(--ink-3); font-size: 12px; } .cms-pill.on { background: rgba(135,215,91,.12); color: var(--ok); }
.cms-sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); }
.cms-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); } .cms-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.cms-status.draft { color: var(--ink-3); } .cms-status.draft i { background: transparent; border: 1.5px solid var(--ink-3); }
.cms-none { padding: 40px 12px; text-align: center; color: var(--ink-3); font-size: 14px; } .cms-none .linkbtn { color: #b8a6ff; font-size: 14px; padding: 0; }
.cms-empty { margin: auto; max-width: 520px; padding: 40px 24px; text-align: center; }
.cms-empty-ic { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 16px; background: #15161a; border: 1px solid rgba(255,255,255,.08); color: #a995ff; }
.cms-empty h2 { margin: 0 0 8px; font: 600 22px var(--f-sans); letter-spacing: -.015em; } .cms-empty p { margin: 0 0 22px; color: var(--ink-3); font-size: 14px; }
.cms-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.cms-ideas button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 99px; border: 1px solid rgba(255,255,255,.09); background: #121316; color: var(--ink-2); font: 500 13px var(--f-sans); cursor: pointer; }
.cms-ideas button:hover { color: var(--ink); border-color: rgba(123,92,255,.5); }
/* the item editor sheet */
.cms-sheet-wrap { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,0); transition: background .2s var(--ease); }
.cms-sheet-wrap.in { background: rgba(0,0,0,.45); }
.cms-sheet { position: absolute; top: 8px; right: 8px; bottom: 8px; width: min(520px, calc(100% - 16px)); display: flex; flex-direction: column; border-radius: 18px; background: #111214; border: 1px solid rgba(255,255,255,.08); box-shadow: -20px 0 60px rgba(0,0,0,.5);
  transform: translateX(30px); opacity: 0; transition: transform .28s var(--ease), opacity .2s var(--ease); }
.cms-sheet-wrap.in .cms-sheet { transform: none; opacity: 1; }
.cms-sheet header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.cms-sheet header > div { flex: 1; min-width: 0; } .cms-sheet header .cms-cap { margin: 0 0 2px; display: block; }
.cms-sheet h3 { margin: 0; font: 600 16px var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cms-seg { display: flex; padding: 3px; border-radius: 10px; background: #0a0a0c; border: 1px solid rgba(255,255,255,.06); }
.cms-seg button { border: 0; background: none; color: var(--ink-3); font: 500 12.5px var(--f-sans); padding: 5px 10px; border-radius: 7px; cursor: pointer; } .cms-seg button.on { background: #1f2026; color: var(--ink); }
.cms-sheet-b { flex: 1; overflow-y: auto; padding: 18px 20px 24px; display: grid; gap: 16px; align-content: start; }
.cms-f { display: grid; gap: 7px; } .cms-fl { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--f-sans); color: var(--ink-2); } .cms-fl svg { color: #6c6c74; }
.cms-in { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #0b0b0d; color: var(--ink); font: 14px var(--f-sans); outline: none; transition: border-color .15s var(--ease); }
.cms-in.big { height: 46px; font-size: 16px; font-weight: 500; } .cms-in.sm { height: 34px; font-size: 13px; } .cms-in:focus { border-color: rgba(123,92,255,.7); }
.cms-in[type=color] { padding: 4px; width: 64px; }
.cms-sel { position: relative; display: block; } .cms-sel select { appearance: none; width: 100%; height: 40px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #0b0b0d; color: var(--ink); font: 14px var(--f-sans); outline: none; }
.cms-sel svg { position: absolute; right: 12px; top: 13px; color: var(--ink-3); pointer-events: none; }
.cms-sw-f { grid-template-columns: 1fr auto; align-items: center; cursor: pointer; }
.cms-switch { position: relative; width: 38px; height: 22px; } .cms-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cms-switch i { position: absolute; inset: 0; border-radius: 99px; background: #26272d; transition: background .2s var(--ease); pointer-events: none; }
.cms-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.cms-switch input:checked + i { background: #7b5cff; } .cms-switch input:checked + i::after { transform: translateX(16px); }
.cms-rt { border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #0b0b0d; overflow: hidden; } .cms-rt:focus-within { border-color: rgba(123,92,255,.7); }
.cms-rtbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-bottom: 1px solid rgba(255,255,255,.06); background: #101114; }
.cms-rtbar button { min-width: 30px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 600 12.5px var(--f-sans); cursor: pointer; } .cms-rtbar button:hover { background: #1f2026; color: var(--ink); }
.cms-rtbody { min-height: 180px; max-height: 420px; overflow-y: auto; padding: 12px 14px; outline: none; color: var(--ink); font: 14px/1.6 var(--f-sans); }
.cms-rtbody h2 { font-size: 20px; margin: .6em 0 .3em; } .cms-rtbody h3 { font-size: 16px; margin: .6em 0 .3em; } .cms-rtbody p { margin: 0 0 .7em; } .cms-rtbody a { color: #b8a6ff; }
.cms-imgf { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0b0d; border: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.cms-imgf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-imgf-e { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.cms-imgf.empty { border-style: dashed; } .cms-imgf.empty img, .cms-imgf.empty .cms-imgf-a { display: none; } .cms-imgf.empty .cms-imgf-e { display: flex; }
.cms-imgf.over { border-color: #8b6dff; background: rgba(123,92,255,.08); } .cms-imgf.busy { opacity: .5; pointer-events: none; }
.cms-imgf-a { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .2s var(--ease); } .cms-imgf:hover .cms-imgf-a { opacity: 1; }
.cms-imgf-a .btn { background: rgba(10,10,12,.85); backdrop-filter: blur(8px); }
.cms-slug { display: flex; align-items: center; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #0b0b0d; padding: 0 12px; } .cms-slug:focus-within { border-color: rgba(123,92,255,.7); }
.cms-slug em { font-style: normal; color: var(--ink-3); font-size: 13px; white-space: nowrap; } .cms-slug input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 13px var(--f-sans); }
.cms-sheet footer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06); }
.cms-sheet footer .grow { flex: 1; } .cms-hint { font: 11px var(--f-mono); color: #55555c; margin-right: 4px; }
.cms-del { color: #ff8a8a; gap: 6px; } .cms-del:hover { background: rgba(255,106,106,.1); }
/* fields dialog */
.cms-fdlg { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.cms-flist { display: grid; gap: 6px; }
.cms-frow { display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; background: #0d0d10; border: 1px solid rgba(255,255,255,.06); }
.cms-frow .opts { grid-column: 2 / -1; }
.cms-ft { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #17181c; color: var(--ink-2); }
.cms-ftn { font-size: 12px; color: var(--ink-3); } .cms-fa { display: flex; } .cms-fa .ibtn { width: 28px; height: 28px; }
.cms-addf { position: relative; margin: 10px 0 0; } .cms-addf .btn { gap: 6px; }
.cms-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; padding: 6px; border-radius: 12px; background: #0d0d10; border: 1px solid rgba(255,255,255,.06); }
.cms-types button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 500 13px var(--f-sans); cursor: pointer; text-align: left; } .cms-types button:hover { background: #1b1c21; color: var(--ink); }
.cms-note { margin: 14px 0 18px; font-size: 12.5px; color: var(--ink-3); }
.btn svg { flex: none; }
@media (max-width: 860px) { .cmsv { grid-template-columns: 1fr; } .cms-side { display: none; } .cms-search { width: 140px; } }
body.cms-open .bar-center, body.cms-open #tUndo, body.cms-open #tTheme, body.cms-open #tSeo, body.cms-open .bar-tools .vsep { visibility: hidden; } body.cms-open #tCms { color: var(--ink); background: #1b1c21; }
/* "Ask AI" tag above the message box */
.ctx-chip { display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 12px); margin: 8px 0 0 10px; padding: 4px 4px 4px 10px; border-radius: 99px; background: rgba(123,92,255,.14); border: 1px solid rgba(139,109,255,.35); color: #d6ccff; font: 500 12.5px var(--f-sans); }
.ctx-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ctx-chip svg { flex: none; }
.ctx-chip button { width: 20px; height: 20px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #d6ccff; font-size: 10px; cursor: pointer; } .ctx-chip button:hover { background: rgba(255,255,255,.18); }
/* new collection: two ways */
.nc-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.nc-way { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: #0d0d10; color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s var(--ease), background .15s var(--ease); }
.nc-way:hover { border-color: rgba(255,255,255,.2); background: #121317; }
.nc-way b { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--f-sans); } .nc-way span { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.nc-way.ai { border-color: rgba(139,109,255,.45); background: rgba(123,92,255,.08); } .nc-way.ai:hover { border-color: rgba(139,109,255,.75); }
.nc-way.ai svg { color: #b8a6ff; }
.cms-show { color: #d6ccff; border-color: rgba(139,109,255,.45); } .cms-show svg { color: #b8a6ff; }
@media (max-width: 520px) { .nc-ways { grid-template-columns: 1fr; } }
/* "Showing" in the right panel: which tab / price / accordion state the editor shows */
.pst-note { margin: -2px 0 10px; font-size: 11.5px; color: var(--ink-3); }
.pst { display: grid; gap: 6px; margin-bottom: 8px; }
.pst-opts { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 9px; background: #0d0d10; border: 1px solid rgba(255,255,255,.06); }
.pst-opts button { flex: 1 1 auto; min-width: 0; max-width: 100%; border: 0; background: none; color: var(--ink-2); font: 500 12px var(--f-sans); padding: 6px 9px; border-radius: 7px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.pst-opts button:hover { color: var(--ink); background: #1b1c21; } .pst-opts button.on { background: #7b5cff; color: #fff; }
/* new-site screen: the chat box's AI picker inside the description box once an AI is connected */
/* the new-site box (Farhan 2026-10-22: the AI picker sat on top of long text): one framed box, the text scrolls inside,
   the picker lives in a footer row below it, never over the words */
.newbox { position: relative; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); transition: border-color .15s; }
.newbox:focus-within { border-color: #5a5b60; }
.newbox textarea { display: block; margin: 0; border: 0; border-radius: var(--r-tile) var(--r-tile) 0 0; background: none; resize: none; min-height: 120px; max-height: 46vh; overflow-y: auto; padding: 16px 18px 8px; }
.newfoot { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px 8px 12px; }
.newpick { position: static; }
.newhint { margin-left: auto; font: 11.5px var(--f-mono); color: var(--ink-3); opacity: 0; transition: opacity .15s; } .newbox:focus-within .newhint { opacity: 1; }
.aimenu.down { bottom: auto; top: 36px; }
.pst-opts.stack { flex-direction: column; } .pst-opts.stack button { text-align: left; padding: 7px 10px; }   /* tabs: a left-aligned list */
.upd-note { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 99px; background: #17181c; border: 1px solid rgba(139,109,255,.45); box-shadow: 0 14px 40px rgba(0,0,0,.5); font: 500 13px var(--f-sans); color: var(--ink); animation: fadeIn .25s var(--ease); } .upd-note .ibtn { width: 28px; height: 28px; font-size: 11px; color: var(--ink-3); }
/* before the first page exists: page shapes shimmering over a slow colour glow, behind the build cover */
.frame-wrap.waiting { position: relative; background: #09090b; }
.frame-wrap.waiting #site { visibility: hidden; }
.frame-wrap.waiting::before { content: ""; position: absolute; inset: 42px 0 0; pointer-events: none; filter: blur(46px);
  background: radial-gradient(38% 46% at 22% 30%, rgba(123,92,255,.55), transparent 70%), radial-gradient(34% 40% at 78% 34%, rgba(255,79,139,.34), transparent 70%),
    radial-gradient(40% 44% at 50% 82%, rgba(64,140,255,.40), transparent 70%), radial-gradient(30% 34% at 70% 70%, rgba(255,138,61,.24), transparent 70%);
  background-size: 160% 160%; animation: gsGlow 14s ease-in-out infinite alternate; }
@keyframes gsGlow { 0% { background-position: 0% 0%; } 33% { background-position: 60% 30%; } 66% { background-position: 30% 70%; } 100% { background-position: 100% 100%; } }
.ph-page { position: absolute; inset: 42px 0 0; padding: 22px min(6%, 56px); display: flex; flex-direction: column; gap: 34px; overflow: hidden; pointer-events: none; }
.ph { display: block; border-radius: 10px; background: linear-gradient(100deg, rgba(255,255,255,.06) 30%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.06) 70%) 0 0 / 300% 100%;
  animation: phIn .7s cubic-bezier(.2,1.4,.4,1) calc(var(--i) * .16s) both, phShine 2.4s linear calc(var(--i) * .16s + .7s) infinite; }
/* puzzle: each piece flies in from a little away, turned, and snaps into place with a short glow */
@keyframes phIn { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.85); }
  70% { opacity: 1; box-shadow: 0 0 0 1px rgba(139,109,255,.7), 0 0 24px rgba(139,109,255,.45); } 100% { opacity: 1; transform: none; box-shadow: none; } }
.ph.redo { animation: phRedo .9s cubic-bezier(.2,1.4,.4,1) both, phShine 2.4s linear .9s infinite; }
@keyframes phRedo { 0% { transform: none; } 35% { opacity: .35; transform: translate(calc(var(--dx) * .4), -14px) rotate(calc(var(--r) * .5)) scale(.96); }
  80% { opacity: 1; box-shadow: 0 0 0 1px rgba(139,109,255,.7), 0 0 24px rgba(139,109,255,.45); } 100% { transform: none; box-shadow: none; } }
.ph-scan { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(139,109,255,.10), transparent); animation: phScan 5s ease-in-out 3s infinite; opacity: 0; }
@keyframes phScan { 0% { transform: translateY(-120px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(900px); opacity: 0; } }
/* live activity inside the progress card: what the build is doing, fast */
.lc-act { margin: 12px 0 2px; padding: 8px 10px; border-radius: 10px; background: #0c0c0e; border: 1px solid rgba(255,255,255,.06); }
.lc-act ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; height: 74px; overflow: hidden; align-content: end; font: 12px/1.45 var(--f-mono); color: #6f6f78;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.lc-act li { animation: actIn .22s var(--ease) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lc-act li::before { content: "› "; color: #4b4b52; }
.lc-act li:last-child { color: #d6d6dc; } .lc-act li.real { color: #c8bbff; } .lc-act li.real::before { content: "✓ "; color: var(--ok); }
/* while the puzzle shows, the cover dims it less */
body.live-build .frame-wrap.waiting ~ .live-cover { background: linear-gradient(180deg, transparent 40%, rgba(2,2,2,.55)); backdrop-filter: none; }
@keyframes actIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes phShine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ph-nav { display: flex; align-items: center; justify-content: space-between; } .ph-nav span, .ph-hero span { display: flex; gap: 12px; }
.ph.s { height: 12px; } .ph.pill { height: 36px; border-radius: 99px; } .ph.chip { height: 26px; border-radius: 99px; } .ph.h { height: clamp(26px, 4.5vw, 52px); } .ph.t { height: 14px; }
.ph.dim { opacity: .6; }
.ph-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 18px; }
.ph.img { height: clamp(140px, 26vw, 300px); border-radius: 18px; }
.ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .ph.card { height: 150px; border-radius: 16px; }
.w8 { width: 54px; } .w10 { width: 96px; } .w12 { width: 110px; } .w14 { width: 130px; } .w46 { width: 46%; } .w52 { width: 52%; } .w70 { width: 70%; }
@media (prefers-reduced-motion: reduce) { .frame-wrap.waiting::before, .ph, .ph.redo, .ph-scan, .lc-act li { animation: none; } }

/* link picker (Farhan 2026-10-22): a field that opens a grouped, searchable list with real page and section names */
.lpick { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 32px; padding: 0 9px; border-radius: 9px; border: 1px solid rgba(255,255,255,.08);
  background: #16171b; color: var(--ink); font: 12px var(--f-sans); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.lpick:hover { background: #1b1c21; } .lpick:focus-visible, .lpick[aria-expanded="true"] { outline: none; border-color: #7b5cff; }
.lpick > svg:first-child { flex: none; color: #9b8cff; } .lpick.none > svg:first-child { color: #6f6f76; }
.lpick span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lpick.none span { color: var(--ink-2); }
.lpick > svg:last-child { flex: none; color: #6f6f76; }
.lmenu { position: fixed; z-index: 95; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #121316;
  border: 1px solid rgba(255,255,255,.09); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: bcIn .18s var(--ease); outline: none; }
.lm-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; flex: none; border-bottom: 1px solid rgba(255,255,255,.07); color: #77777f; }
.lm-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 13px var(--f-sans); }
.lm-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.lm-g { margin: 10px 8px 4px; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #6c6c74; }
.lm-g:first-child { margin-top: 4px; }
.lm-o { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: #dcdce1; text-align: left; cursor: pointer; }
.lm-o > svg:first-child { flex: none; color: #75757d; } .lm-o.at { background: #1d1e23; } .lm-o.at > svg:first-child, .lm-o.on > svg:first-child { color: #9b8cff; }
.lm-o span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lm-o b { font: 500 13px var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-o em { font: 11.5px var(--f-sans); font-style: normal; color: #7c7c84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-o > svg:last-child { flex: none; color: #b8a6ff; }
.lm-none { padding: 14px 10px; font-size: 12.5px; color: #7c7c84; }

/* CMS select (Farhan 2026-10-22): choices as chips in the fields dialog, one-click pills in the item editor */
.cms-opts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 5px 8px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08); background: #0b0b0d; cursor: text; }
.cms-opts:focus-within { border-color: rgba(123,92,255,.7); }
.cms-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 10px; border-radius: 99px; background: #1f1d2b; color: #d9d3ff; font: 12.5px var(--f-sans); }
.cms-chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: #9c94c8; font: 14px/1 var(--f-sans); cursor: pointer; }
.cms-chip button:hover { background: rgba(255,255,255,.1); color: #fff; }
.cms-opts input { flex: 1; min-width: 120px; height: 24px; background: none; border: 0; outline: none; color: var(--ink); font: 13px var(--f-sans); }
.cms-optk { font: 10.5px var(--f-mono); color: #5f5f67; padding: 2px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; }
.cms-opts:not(:focus-within) .cms-optk { visibility: hidden; }
.cms-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cms-pills button { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.09); background: #0b0b0d; color: var(--ink-2);
  font: 13px var(--f-sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cms-pills button:hover { border-color: rgba(255,255,255,.18); color: var(--ink); }
.cms-pills button.on { background: #7b5cff; border-color: #7b5cff; color: #fff; }

/* Style panel v2 (Farhan 2026-10-22) */
.sty { display: flex; flex-direction: column; min-height: 100%; }
.sty-sec { padding: 4px 0 22px; }
.sty-sec + .sty-sec { border-top: 1px solid var(--hair); padding-top: 20px; }
.sty h5 { margin: 0 0 12px; font: 600 13px var(--f-sans); color: var(--ink); letter-spacing: 0; }
.sty h6 { margin: 16px 0 6px; font: 500 12px var(--f-sans); color: var(--ink-3); }
.sty-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sty-th { display: grid; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-2); text-align: left; }
.sty-prev { position: relative; display: block; height: 58px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.sty-prev b { position: absolute; left: 8px; top: 6px; font: 600 17px/1 var(--f-sans); }
.sty-prev i { position: absolute; left: 8px; bottom: 16px; width: 22px; height: 7px; border-radius: 4px; }
.sty-prev em { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; }
.sty-th:hover .sty-prev { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.sty-th.on .sty-prev { box-shadow: 0 0 0 2px #7b5cff; }
.sty-thn { display: flex; align-items: center; gap: 4px; font: 12px var(--f-sans); white-space: nowrap; } .sty-th.on .sty-thn { color: var(--ink); }
.sty-thn svg { color: #9b8cff; }
.sty-list { display: grid; gap: 2px; }
.sty-c { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.sty-c:hover { background: #15161a; }
.sty-sw { position: relative; flex: none; width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4); }
.sty-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sty-cn { flex: 1; min-width: 0; display: grid; gap: 2px; } .sty-cn b { font: 500 13.5px var(--f-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sty-cn i { font: 12px var(--f-sans); font-style: normal; color: var(--ink-3); }
.sty-c code { font: 11.5px var(--f-mono); color: var(--ink-3); padding: 3px 7px; border-radius: 6px; background: #15161a; }
.sty-c:hover code { background: #1d1e23; color: var(--ink-2); }
.sty-undo { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 7px; background: rgba(123,92,255,.16); color: #b8a6ff; cursor: pointer; }
.sty-undo:hover { background: rgba(123,92,255,.3); }
.sty-warn { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; background: rgba(255,106,106,.1); color: #ff9a9a; font-size: 12.5px; line-height: 1.45; }
.sty-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sty-pair { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #111215; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.sty-pair:hover { border-color: rgba(255,255,255,.18); background: #15161a; }
.sty-pair.on { border-color: #7b5cff; background: rgba(123,92,255,.08); }
.sty-pair > b { flex: none; width: 34px; font-size: 22px; font-weight: 600; line-height: 1; text-align: center; }
.sty-pair span { flex: 1; min-width: 0; display: grid; gap: 2px; } .sty-pair strong { font: 500 13px var(--f-sans); }
.sty-pair i { font: 11px var(--f-sans); font-style: normal; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sty-pair > svg { flex: none; color: #9b8cff; }
.sty-fonts { display: grid; gap: 8px; margin-top: 14px; }
.sty-f { display: flex; align-items: center; gap: 8px; } .sty-f > span { width: 76px; flex: none; font-size: 12.5px; color: var(--ink-3); }
.sty-ff { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #111215; color: var(--ink); cursor: pointer; text-align: left; }
.sty-ff:hover { border-color: rgba(255,255,255,.18); } .sty-ff b { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sty-ff svg { color: var(--ink-3); }
.sty-more { border-top: 1px solid var(--hair); padding: 14px 0 6px; }
.sty-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font: 500 13px var(--f-sans); color: var(--ink-2); padding: 4px 0; }
.sty-more summary::-webkit-details-marker { display: none; } .sty-more summary:hover { color: var(--ink); }
.sty-more summary svg { transition: transform .2s var(--ease); } .sty-more[open] summary svg { transform: rotate(180deg); }
.sty-more[open] summary { margin-bottom: 10px; }
.sty-note { margin: 16px 0 18px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.sty-bar { position: sticky; bottom: -16px; margin: auto -16px -16px; padding: 12px 16px; display: flex; align-items: center; gap: 8px;
  background: rgba(2,2,2,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--hair); }
.sty-bar > span { flex: 1; font-size: 12.5px; color: var(--ink-3); } .sty-bar > span b { color: var(--ink); font-weight: 600; }
.sty-bar .btn[disabled] { opacity: .4; pointer-events: none; }

/* selection bar v2 (Farhan 2026-10-22): white, compact, icons with tooltips, AI actions as pills */
.edbar { align-items: center; gap: 2px; padding: 5px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.28); animation: bcIn .18s var(--ease); }
.edbar .eb-l { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 9px; margin-right: 4px; border: 0; border-radius: 9px;
  background: #f3f3f5; color: #111; font: 600 12.5px var(--f-sans); max-width: 180px; }
.edbar .eb-l svg { flex: none; color: #7b5cff; } .edbar .eb-l b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edbar button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; color: #1b1b1f; font: 500 12.5px var(--f-sans); transition: background .15s, color .15s; }
.edbar button svg { flex: none; }
.edbar button:hover { background: #f1f1f4; }
.edbar .eb-ic { position: relative; width: 32px; padding: 0; justify-content: center; color: #45454d; }
.edbar .eb-ic:hover { color: #111; }
.edbar .eb-ic.danger:hover { background: #fff0f0; color: #e5484d; }
.edbar .eb-ic::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 5px 8px; border-radius: 7px;
  background: #111; color: #fff; font: 500 11.5px var(--f-sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.edbar .eb-ic:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
.edbar .eb-sep { width: 1px; height: 20px; margin: 0 5px; background: #e7e7ea; }
.edbar .eb-soft { color: #5b3fe0; background: #f1edff; } .edbar .eb-soft:hover { background: #e6dfff; }
.edbar .eb-dark { margin-left: 3px; color: #fff; background: #111; padding: 0 12px; } .edbar .eb-dark:hover { background: #2a2a30; }
.edbar .eb-ic::before { content: ""; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translate(-50%, 4px); border: 5px solid transparent; border-top-color: #111;
  border-bottom: 0; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.edbar .eb-ic:hover::before { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
.edbar .eb-dark + .eb-sep { margin-left: 6px; }

/* branded dialogs (gsDialog) */
.gsd .dlg p { white-space: pre-line; line-height: 1.5; }
.gsd-in { width: 100%; height: 42px; margin: -6px 0 18px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #0b0b0d; color: var(--ink); font: 14px var(--f-sans); outline: none; }
.gsd-in:focus { border-color: rgba(123,92,255,.7); }
.gsd .btn:focus-visible { outline: 2px solid #7b5cff; outline-offset: 2px; }
/* + Add section between two sections */
.addsec { position: absolute; z-index: 5; height: 0; pointer-events: none; }
.addsec i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #7b5cff; opacity: .9; }
.addsec button { pointer-events: auto; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 10px;
  border: 0; border-radius: 99px; background: #7b5cff; color: #fff; font: 600 12.5px var(--f-sans); cursor: pointer; box-shadow: 0 6px 20px rgba(123,92,255,.45); animation: fadeIn .15s var(--ease); }   /* fade only: a moving keyframe overrode the centring transform and made it jump */
.addsec button:hover { background: #6a48ff; }
.addpop, .askpop { position: fixed; z-index: 70; width: 380px; padding: 16px; border-radius: 16px; background: #fff; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.35); animation: bcIn .18s var(--ease); }
.ap-head { display: grid; gap: 2px; margin-bottom: 12px; } .ap-head b { font: 600 15px var(--f-sans); } .ap-head span { font-size: 12.5px; color: #6b6b73; }
.addpop textarea, .ak-box textarea { width: 100%; resize: none; border: 1px solid #e4e4e8; border-radius: 12px; padding: 10px 12px; font: 14px/1.45 var(--f-sans); color: #111; background: #fafafb; outline: none; }
.addpop textarea:focus, .ak-box:focus-within { border-color: #7b5cff; background: #fff; box-shadow: 0 0 0 3px rgba(123,92,255,.12); }
.addpop textarea.need { border-color: #e5484d; }
.ap-drop { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px dashed #d6d6dc; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ap-drop:hover, .ap-drop.over { border-color: #7b5cff; background: #f6f3ff; } .ap-drop.has { border-style: solid; }
.ap-ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #f1f1f4; display: grid; place-items: center; color: #6b6b73; overflow: hidden; }
.ap-ic img { width: 100%; height: 100%; object-fit: cover; }
.ap-t { display: grid; gap: 2px; min-width: 0; } .ap-t b { font: 600 13px var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ap-t i { font-style: normal; font-size: 12px; color: #6b6b73; }
.ap-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.addpop .btn, .askpop .btn { border-color: #e4e4e8; color: #111; background: #fff; } .addpop .btn.light { background: #111; color: #fff; border-color: #111; }
.addpop .btn.light svg { margin-right: 4px; }
/* Ask AI box under the bar */
.askpop { padding: 12px; }
.askpop::before { content: ""; position: absolute; top: -6px; left: var(--ak-arrow, 50%); width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.ak-head { display: flex; align-items: center; gap: 7px; margin: 2px 4px 10px; font-size: 12.5px; color: #6b6b73; } .ak-head svg { color: #7b5cff; } .ak-head b { color: #111; font-weight: 600; }
.ak-box { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 0; border: 1px solid #e4e4e8; border-radius: 12px; background: #fafafb; }
.ak-box textarea { border: 0; background: none; box-shadow: none !important; padding: 6px 12px; min-height: 40px; }
.ak-send { flex: none; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #111; color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .15s; }
.ak-send:disabled { opacity: .25; cursor: default; }
.ak-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ak-ideas button { height: 28px; padding: 0 10px; border: 1px solid #ececf0; border-radius: 99px; background: #fff; color: #45454d; font: 12px var(--f-sans); cursor: pointer; }
.ak-ideas button:hover { border-color: #7b5cff; color: #5b3fe0; background: #f6f3ff; }
.addpop textarea, .ak-box textarea { display: block; }

/* signed-out page (Farhan 2026-10-22): copy + a looping product demo, real sites below */
.view.out { flex: 1; overflow: auto; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding: 56px 0 40px; }
.out-top { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 56px; align-items: center; }
.out-copy h1 { margin: 0 0 16px; font: 600 clamp(34px, 4vw, 52px)/1.05 var(--f-sans); letter-spacing: -.03em; }
.out-copy .lead { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.out-why { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.out-why li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.out-why li svg { flex: none; margin-top: 1px; color: #b8a6ff; } .out-why b { color: var(--ink); font-weight: 600; }
.out-alt { margin: 26px 0 0; } .out-alt .linkbtn { color: var(--ink-3); } .out-alt .linkbtn:hover { color: var(--ink); }
.demo { position: relative; }
.demo::before { content: ""; position: absolute; inset: 10% -4% -6% 8%; background: var(--grad); filter: blur(70px); opacity: .22; border-radius: 40px; }
.demo-win { position: relative; border-radius: 16px; overflow: hidden; background: #0e0f12; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.demo-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2b31; }
.demo-bar span { margin: 0 auto; padding: 3px 12px; border-radius: 7px; background: #17181c; font: 11px var(--f-mono); color: #8a8a92; transform: translateX(-20px); }
.demo-body { display: grid; grid-template-columns: 31% 1fr; aspect-ratio: 16 / 9.4; }
.demo-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-right: 1px solid rgba(255,255,255,.06); background: #0b0c0e; }
.demo-msg { font-size: 11.5px; line-height: 1.5; border-radius: 12px; padding: 9px 11px; }
.demo-msg.you { align-self: flex-end; background: #1d1e24; color: #e8e8ec; min-height: 40px; max-width: 100%; }
.demo-caret { display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: #b8a6ff; animation: pulse 1s steps(1) infinite; }
.demo-msg.ai { display: flex; gap: 8px; align-items: flex-start; color: #a5a5ad; padding-left: 4px; opacity: 0; transition: opacity .3s; }
.demo-dot { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: var(--grad); }
.demo-steps { display: grid; gap: 5px; } .demo-steps em { font-style: normal; opacity: 0; transform: translateY(3px); transition: opacity .3s, transform .3s; }
.demo-steps em::before { content: "✓ "; color: #87d75b; }
/* demo v2 (Farhan 2026-10-22: "show edit text, style, add section, publish"): a real mini page the tour edits */
.demo-site { position: relative; overflow: hidden; background: #e9e6e1; container-type: inline-size; display: flex; flex-direction: column; }
.ds-tools { flex: none; display: flex; align-items: center; gap: 1.2cqw; height: 7.4cqw; padding: 0 1.6cqw; background: #0e0f12; border-bottom: 1px solid rgba(255,255,255,.06); font: 500 1.9cqw var(--f-sans); color: #c9c9cf; }
.ds-seg { display: flex; padding: .4cqw; border-radius: 1.4cqw; background: #17181c; } .ds-seg b { font-weight: 500; padding: .8cqw 1.6cqw; border-radius: 1cqw; color: #8a8a92; }
.ds-seg b.on { background: #26272d; color: #fff; } .ds-grow { flex: 1; }
.ds-btn, .ds-pub { display: inline-flex; align-items: center; gap: .8cqw; padding: 1cqw 1.8cqw; border-radius: 1.2cqw; transition: background .2s, transform .15s; }
.ds-btn svg { width: 2.2cqw; height: 2.2cqw; } .ds-pub { background: #fff; color: #111; font-weight: 600; }
.ds-btn.press, .ds-pub.press { transform: scale(.94); } .ds-btn.press { background: #26272d; }
.ds-page { --d-bg: #f6f1ea; --d-ink: #2b1b12; --d-brand: #c2410c; --d-band: #2b1b12; flex: 1; position: relative; overflow: hidden; background: var(--d-bg); color: var(--d-ink); transition: background .6s; }
.ds-page.olive { --d-bg: #eef0e6; --d-ink: #1f2a17; --d-brand: #4d6b2f; --d-band: #1f2a17; }
.ds-in { opacity: 0; transform: translateY(1.5cqw); transition: opacity .5s, transform .5s var(--ease); }
.demo:not([data-step="0"]):not([data-step="1"]) .ds-in { opacity: 1; transform: none; }
.demo[data-step="2"] .ds-hero { transition-delay: .5s; } .demo[data-step="2"] .ds-band { transition-delay: 1s; }
.ds-nav { display: flex; align-items: center; gap: 2.6cqw; padding: 2.6cqw 4cqw; font-size: 1.7cqw; } .ds-nav b { font: 600 2.4cqw var(--f-sans); margin-right: auto; }
.ds-nav i { font-style: normal; padding: .8cqw 1.8cqw; border-radius: 99px; background: var(--d-brand); color: #fff; transition: background .6s; }
.ds-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3cqw; padding: 1cqw 4cqw 3cqw; align-items: center; }
.ds-eye { margin: 0 0 1cqw; font: 600 1.5cqw var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--d-brand); transition: color .6s; }
.ds-h { position: relative; margin: 0 0 1.6cqw; font: 600 5.4cqw/1.02 var(--f-sans); letter-spacing: -.02em; min-height: 2.04em; }
.ds-h.sel { outline: .35cqw solid #7b5cff; outline-offset: .6cqw; border-radius: .4cqw; }
.ds-h.typing::after { content: ""; display: inline-block; width: .3cqw; height: .9em; margin-left: .4cqw; vertical-align: -.1em; background: #7b5cff; animation: pulse 1s steps(1) infinite; }
.ds-lead { margin: 0 0 2.4cqw; font-size: 1.8cqw; line-height: 1.5; opacity: .75; }
.ds-cta { display: inline-block; padding: 1.2cqw 2.4cqw; border-radius: 99px; background: var(--d-brand); color: #fff; font: 600 1.7cqw var(--f-sans); transition: background .6s; } .ds-cta.sm { padding: 1cqw 2cqw; }
.ds-img { aspect-ratio: 4 / 4.4; border-radius: 1.6cqw; background: url(/assets/showcase/fenzo.webp) 78% 40% / 260% auto no-repeat; }
.ds-new { max-height: 0; overflow: hidden; padding: 0 4cqw; opacity: 0; transition: max-height .7s var(--ease), opacity .5s, padding .7s var(--ease); }
.ds-new.on { max-height: 30cqw; opacity: 1; padding: 1cqw 4cqw 3cqw; }
.ds-new p { margin: 0 0 1.6cqw; font: 600 2.6cqw var(--f-sans); } .ds-new > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.ds-new span { display: grid; gap: 1cqw; font: 500 1.6cqw var(--f-sans); } .ds-new span i { display: block; aspect-ratio: 4 / 3; border-radius: 1.2cqw; background: url(/assets/showcase/fenzo.webp) 88% 72% / 420% auto; }
.ds-new span:nth-child(2) i { background-position: 100% 35%; } .ds-new span:nth-child(3) i { background-position: 78% 100%; }
.ds-band { display: flex; align-items: center; justify-content: space-between; margin: 0 4cqw; padding: 2.6cqw 3cqw; border-radius: 1.6cqw; background: var(--d-band); color: #fff; transition: background .6s; }
.ds-band b { font: 600 2.4cqw var(--f-sans); }
.ds-add { position: absolute; left: 0; right: 0; height: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.ds-add.on { opacity: 1; } .ds-add i { position: absolute; left: 3cqw; right: 3cqw; top: -.15cqw; height: .3cqw; background: #7b5cff; }
.ds-add span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .6cqw; padding: .9cqw 1.8cqw; border-radius: 99px; background: #7b5cff; color: #fff; font: 600 1.6cqw var(--f-sans); box-shadow: 0 1cqw 3cqw rgba(123,92,255,.45); }
.ds-add span svg { width: 1.8cqw; height: 1.8cqw; }
.ds-panel { position: absolute; top: 8.6cqw; right: 1.4cqw; width: 30cqw; padding: 2cqw; border-radius: 1.8cqw; background: #121316; color: #fff; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.45);
  font: 1.5cqw var(--f-sans); opacity: 0; transform: translateX(3cqw); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.ds-panel.on { opacity: 1; transform: none; } .ds-panel b { display: block; font-size: 1.9cqw; margin-bottom: 1.4cqw; } .ds-panel p { margin: 1.2cqw 0 .8cqw; color: #8a8a92; font-size: 1.3cqw; text-transform: uppercase; letter-spacing: .06em; }
.ds-panel div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; } .ds-panel i { aspect-ratio: 1.3; border-radius: 1cqw; border: .2cqw solid transparent; }
.ds-panel .t1 { background: linear-gradient(135deg, #f6f1ea 50%, #c2410c 50%); border-color: #7b5cff; } .ds-panel .t2 { background: linear-gradient(135deg, #eef0e6 50%, #4d6b2f 50%); }
.ds-panel .t3 { background: linear-gradient(135deg, #eef3f8 50%, #1d5fa0 50%); } .ds-panel .t4 { background: linear-gradient(135deg, #f5eff6 50%, #6b3a7a 50%); }
.ds-panel .t2.on { border-color: #7b5cff; } .ds-panel .t1.off { border-color: transparent; }
.ds-panel span { display: block; padding: 1cqw 1.2cqw; border-radius: 1cqw; background: #1b1c20; }
.demo-cursor { position: absolute; left: 85%; top: 90%; z-index: 4; transition: left .9s cubic-bezier(.5,0,.2,1), top .9s cubic-bezier(.5,0,.2,1), transform .15s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.demo-cursor.click { transform: scale(.82); }
.demo-toast { position: absolute; left: 50%; bottom: 2.4cqw; z-index: 3; display: flex; align-items: center; gap: .8cqw; padding: 1.2cqw 2cqw; border-radius: 99px; background: #111; color: #fff; font: 600 1.6cqw var(--f-sans);
  opacity: 0; transform: translate(-50%, 1.5cqw); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); } .demo-toast::before { content: "✓"; color: #87d75b; }
.demo-labels { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.demo-labels li { padding: 5px 11px; border-radius: 99px; font-size: 12px; color: var(--ink-3); border: 1px solid transparent; transition: color .3s, border-color .3s, background .3s; }
.demo-labels li.on { color: var(--ink); border-color: rgba(123,92,255,.5); background: rgba(123,92,255,.12); }
.out-sites { overflow: hidden; } .out-sites .eyebrow { text-align: center; margin-bottom: 18px; }
.out-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.out-row { display: flex; gap: 16px; width: max-content; animation: outScroll 70s linear infinite; }
.out-row:hover { animation-play-state: paused; }
.out-row img { width: 288px; height: 180px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #111; }
@keyframes outScroll { to { transform: translateX(calc(-50% - 8px)); } }
@media (max-width: 900px) { .out-top { grid-template-columns: 1fr; gap: 40px; } .view.out { justify-content: flex-start; } .demo-body { grid-template-columns: 1fr; } .demo-chat { display: none; } }
@media (prefers-reduced-motion: reduce) { .out-row { animation: none; } }
.newfoot { border-top: 1px solid var(--hair); }
.m.pending.ai { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; }
/* answer choices read left to right, also when a long one wraps (Farhan 2026-10-22) */
.choice { height: auto; min-height: 38px; padding: 8px 15px; text-align: left; justify-content: flex-start; line-height: 1.4; border-radius: 19px; }
.choice .ck { align-self: center; flex: none; }

/* pages on the live-build card */
.lc-pages { margin: 14px 0 2px; } .lc-pages > p { margin: 0 0 8px; font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lc-pages > div { display: flex; flex-wrap: wrap; gap: 6px; }
.lcp { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px; font-size: 12.5px; border: 1px solid rgba(255,255,255,.08); color: var(--ink-3); }
.lcp b { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; }
.lcp.todo b { border: 1.5px dashed rgba(255,255,255,.22); }
.lcp.done { color: var(--ink-2); } .lcp.done b { background: rgba(135,215,91,.18); color: #87d75b; }
.lcp.writing { color: var(--ink); border-color: rgba(123,92,255,.55); background: rgba(123,92,255,.12); } .lcp.writing .spin { width: 12px; height: 12px; }
#lcStep.in { display: inline-block; animation: bcIn .35s var(--ease); }
.demo:not([data-step="0"]) .demo-msg.ai { opacity: 1; }
.demo:not([data-step="0"]) .demo-steps em { opacity: 1; transform: none; }
.demo[data-step="1"] .demo-steps em:nth-child(2) { transition-delay: .4s; } .demo[data-step="1"] .demo-steps em:nth-child(3) { transition-delay: .8s; } .demo[data-step="1"] .demo-steps em:nth-child(4) { transition-delay: 1.2s; }
/* demo v3 (Farhan 2026-10-22): a real Grayskills site (Castbay) inside the window — build, explore, edit, add with AI, style, SEO, publish */
.ds-frame { position: relative; flex: 1; overflow: hidden; background: #fff; }
.ds-frame iframe { position: absolute; left: 0; top: 0; width: 1280px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.ds-build { position: absolute; inset: 0; background: #f2f2f4; transition: clip-path 2.4s cubic-bezier(.4,0,.2,1); clip-path: inset(0 0 0 0); }
.ds-build::before { content: ""; position: absolute; inset: 14% 12% auto; height: 8cqw; border-radius: 1cqw; background: linear-gradient(90deg, #e6e6ea, #f0f0f3, #e6e6ea); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.ds-build.go { clip-path: inset(100% 0 0 0); }
.ds-sel { position: absolute; z-index: 2; border: .3cqw solid #7b5cff; border-radius: .4cqw; opacity: 0; transition: opacity .25s; pointer-events: none; }
.ds-sel.on { opacity: 1; } .ds-sel span { position: absolute; left: -.3cqw; top: -3cqw; padding: .4cqw 1cqw; border-radius: .5cqw .5cqw 0 0; background: #7b5cff; color: #fff; font: 600 1.4cqw var(--f-sans); }
.ds-ask { position: absolute; z-index: 3; left: 50%; width: 46cqw; transform: translate(-50%, 1cqw); padding: 1.4cqw; border-radius: 1.6cqw; background: #fff; color: #111; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.35);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.ds-ask.on { opacity: 1; transform: translate(-50%, 0); }
.ds-ask p { display: flex; align-items: center; gap: .6cqw; margin: 0 0 1cqw; font: 600 1.5cqw var(--f-sans); } .ds-ask p svg { color: #7b5cff; width: 1.8cqw; height: 1.8cqw; }
.ds-ask div { display: flex; align-items: center; gap: 1cqw; padding: 1cqw 1cqw 1cqw 1.4cqw; border: 1px solid #e4e4e8; border-radius: 1.2cqw; background: #fafafb; font: 1.6cqw var(--f-sans); min-height: 4.6cqw; }
.ds-ask div span { flex: 1; } .ds-ask div b { display: grid; place-items: center; width: 3.4cqw; height: 3.4cqw; border-radius: .9cqw; background: #111; color: #fff; }
.ds-work { position: absolute; z-index: 2; left: 50%; display: flex; align-items: center; gap: 1cqw; padding: 1.2cqw 2cqw; border-radius: 99px; background: #111; color: #fff; font: 600 1.5cqw var(--f-sans);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.ds-work.on { opacity: 1; }
.ds-seo { position: absolute; z-index: 3; top: 8.6cqw; right: 1.4cqw; width: 36cqw; padding: 2cqw; border-radius: 1.8cqw; background: #121316; color: #fff; box-shadow: 0 3cqw 6cqw rgba(0,0,0,.45);
  font: 1.5cqw var(--f-sans); opacity: 0; transform: translateX(3cqw); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.ds-seo.on { opacity: 1; transform: none; }
.ds-seo-h { display: flex; align-items: center; gap: 1.4cqw; margin-bottom: 1.4cqw; } .ds-seo-h > span:last-child { display: grid; gap: .3cqw; } .ds-seo-h b { font-size: 1.8cqw; } .ds-seo-h i { font-style: normal; color: #8a8a92; font-size: 1.3cqw; }
.ds-ring { position: relative; width: 6.4cqw; height: 6.4cqw; flex: none; } .ds-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ds-ring circle { fill: none; stroke: #26272d; stroke-width: 3.2; } .ds-ring circle.v { stroke: #87d75b; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset 1.6s var(--ease); }
.ds-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 2cqw var(--f-mono); }
.ds-seo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9cqw; } .ds-seo li { display: flex; align-items: center; gap: .9cqw; color: #8a8a92; transition: color .3s; }
.ds-seo li svg { width: 1.8cqw; height: 1.8cqw; padding: .3cqw; border-radius: 50%; background: #26272d; color: transparent; transition: background .3s, color .3s; }
.ds-seo li.ok { color: #e8e8ec; } .ds-seo li.ok svg { background: rgba(135,215,91,.2); color: #87d75b; }
.demo-labels { gap: 4px; } .demo-labels li { padding: 4px 9px; font-size: 11.5px; }

/* sign in / sign up page (Farhan 2026-10-22): full height, form left, live tour right */
body.mode-sign header.bar { display: none; }
.view.sign { flex: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 500px) minmax(0, 1fr); overflow: auto; }
.sign-l { display: flex; flex-direction: column; padding: 28px 44px 24px; min-height: 100vh; }
.sign-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 15px; align-self: flex-start; }
.sign-logo .mark { width: 24px; height: 24px; } .sign-logo b { font-weight: 600; } .sign-logo span:last-child { color: var(--ink-3); }
.sign-box { margin: auto 0; width: 100%; max-width: 380px; padding: 40px 0; }
.sign-box h1 { margin: 0 0 12px; font: 600 34px/1.08 var(--f-sans); letter-spacing: -.025em; }
.sign-box .lead { margin: 0 0 28px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sign-forms { display: grid; gap: 14px; }
.sign-google { width: 100%; height: 46px; background: #fff; color: #111; border: 0; font-weight: 600; } .sign-google:hover { background: #ececef; }
.sign-or { display: flex; align-items: center; gap: 12px; margin: 2px 0; font-size: 12px; color: var(--ink-3); }
.sign-or::before, .sign-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.sign-form { display: grid; gap: 10px; } .sign-form label { font-size: 13px; color: var(--ink-2); }
.sign-form input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 15px var(--f-sans); outline: none; transition: border-color .15s, box-shadow .15s; }
.sign-form input:focus { border-color: #7b5cff; box-shadow: 0 0 0 3px rgba(123,92,255,.18); }
.sign-form .btn { width: 100%; height: 46px; margin-top: 4px; }
.sign-err { margin: 0; font-size: 13px; color: #ff8a8a; } .sign-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.sign-sent { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.sign-mail { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(123,92,255,.15); color: #b8a6ff; margin-bottom: 14px; }
.sign-sent h3 { margin: 0 0 6px; font: 600 18px var(--f-sans); } .sign-sent p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); } .sign-sent b { color: var(--ink); }
.sign-alt { margin: 22px 0 0; } .sign-alt .linkbtn { color: var(--ink-3); } .sign-alt .linkbtn:hover { color: var(--ink); }
.sign-foot { display: flex; gap: 18px; margin: 0; font-size: 12.5px; } .sign-foot a { color: var(--ink-3); text-decoration: none; } .sign-foot a:hover { color: var(--ink); }
.sign-r { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 48px clamp(28px, 4vw, 64px); min-height: 100vh;
  background: radial-gradient(80% 60% at 70% 40%, rgba(123,92,255,.10), transparent 70%), radial-gradient(60% 50% at 30% 80%, rgba(255,79,139,.07), transparent 70%), #08080a; border-left: 1px solid var(--hair); }
.sign-r .demo { width: 100%; max-width: 900px; margin: 0 auto; }
.sign-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; max-width: 900px; margin: 0 auto; }
.sign-why li { flex-direction: column; gap: 8px; font-size: 13px; }
@media (max-width: 980px) { .view.sign { grid-template-columns: 1fr; } .sign-r { min-height: auto; border-left: 0; border-top: 1px solid var(--hair); } .sign-l { min-height: auto; } .sign-box { margin: 40px 0; } }
@media (max-width: 640px) { .sign-why { grid-template-columns: 1fr; } .sign-l { padding: 22px 20px; } }
/* wider sign-in side (Farhan 2026-10-22) */
.view.sign { grid-template-columns: minmax(420px, 42%) minmax(0, 1fr); }
.sign-l { padding: 32px clamp(32px, 5vw, 80px) 26px; }
.sign-box { max-width: 460px; }
.sign-box h1 { font-size: 40px; }

/* onboarding (Farhan 2026-10-22) */
body.mode-sign main.view.onb { display: grid; }
.view.onb { flex: 1; min-height: 100vh; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
.onb-rail { display: flex; flex-direction: column; gap: 44px; padding: 28px 32px; border-right: 1px solid var(--hair); background: #070709; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.onb-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; color: var(--ink-3); }
.onb-steps li.on { background: #121316; color: var(--ink); }
.onb-steps i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px var(--f-mono); font-style: normal; border: 1px solid var(--line); }
.onb-steps li.on i { background: var(--grad); border: 0; color: #fff; }
.onb-steps span { display: grid; gap: 2px; } .onb-steps b { font: 500 14px var(--f-sans); } .onb-steps em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.onb-who { margin: auto 0 0; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.onb-main { display: grid; place-items: center; padding: 48px clamp(24px, 6vw, 96px); }
.onb-card { width: 100%; max-width: 640px; }
.onb-card h1 { margin: 0 0 12px; font: 600 clamp(32px, 3.4vw, 44px)/1.06 var(--f-sans); letter-spacing: -.025em; }
.onb-card .lead { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.onb-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb-ai label { position: relative; cursor: pointer; } .onb-ai input { position: absolute; opacity: 0; pointer-events: none; }
.onb-ai span { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, background .15s; }
.onb-ai b { font: 600 15px var(--f-sans); } .onb-ai i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.onb-ai input:checked + span { border-color: #7b5cff; background: rgba(123,92,255,.1); box-shadow: 0 0 0 3px rgba(123,92,255,.15); }
.onb-ai input:focus-visible + span { outline: 2px solid #7b5cff; outline-offset: 2px; }
.onb-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; } .onb-acts .btn svg { margin-left: 2px; }
.onb-card .sign-err { margin: 14px 0 0; }
@media (max-width: 860px) { .view.onb { grid-template-columns: 1fr; } .onb-rail { border-right: 0; border-bottom: 1px solid var(--hair); gap: 18px; } .onb-steps { grid-template-columns: repeat(4, 1fr); } .onb-steps em { display: none; } .onb-who { display: none; } }
/* the step bar in the builder while onboarding */
.onb-bar { margin: 10px 12px 4px; padding: 12px 14px; border-radius: 14px; background: #101114; border: 1px solid var(--hair); }
.onb-bar ol { list-style: none; display: flex; gap: 6px; margin: 0 0 8px; padding: 0; flex-wrap: wrap; }
.onb-bar li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; font-size: 12px; color: var(--ink-3); border: 1px solid transparent; }
.onb-bar li i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 600 10px var(--f-mono); font-style: normal; border: 1px solid var(--line); }
.onb-bar li.done { color: var(--ink-2); } .onb-bar li.done i { background: rgba(135,215,91,.18); border-color: transparent; color: #87d75b; }
.onb-bar li.on { color: var(--ink); border-color: rgba(123,92,255,.5); background: rgba(123,92,255,.12); } .onb-bar li.on i { background: var(--grad); border: 0; color: #fff; }
.onb-bar p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
/* user menu link */
.menu a { display: flex; width: 100%; text-align: left; color: #dcdce1; font: 14px var(--f-sans); padding: 9px 10px; border-radius: 8px; text-decoration: none; } .menu a:hover { background: #1c1d22; }

/* "Use your own API key" on the Connect Claude card */
.ai-key { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); } .ai-key .linkbtn { padding: 0; font-size: 13px; color: var(--ink-3); } .ai-key .linkbtn:hover { color: var(--ink); }
.ai-key p { margin: 0 0 8px; }
