: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%);
  /* accent tokens: tools/builder_colors.py switches them (blue = grayskills.dev since 2026-10-24, purple = before) */
  --accent: #3b82f6; --accent-2: #93c5fd; --accent-rgb: 59, 130, 246;
  --grad-ui: #3b82f6; --cta: #e6e6e7; --on-cta: #08090a;
  --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: #3b82f6; 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(--cta); color: var(--on-cta); border: 0; font-weight: 600; }
.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: #3b82f6; box-shadow: 0 0 0 1px #3b82f6 inset; }
.pick input:focus-visible + span { outline: 2px solid #3b82f6; 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: #93c5fd; }
.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: #3b82f6; } .choice.on { background: rgba(59, 130, 246,.18); border-color: #3b82f6; }
.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 #3b82f6; 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: #3b82f6; 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: #93c5fd; 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-ui); border-radius: 99px; transition: width 3s linear; }   /* glides between updates */
.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: #3b82f6; 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-ui); -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: none; background: url(favicon.svg) center / cover no-repeat; }   /* the Grayskills mark (Farhan 2026-10-22) */
.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; }
.pub { background: var(--accent); color: #fff; }                       /* Publish = the primary blue (Farhan 2026-10-24) */

/* 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-ui); }
.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: #c5dbfd; } .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%, #3b82f6); 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(59, 130, 246,.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(59, 130, 246,.22); border: 1px solid rgba(59, 130, 246,.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(59, 130, 246,.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 { flex: 0 0 auto; } .dir .segs { height: 28px; box-sizing: border-box; } .dir .segs button { width: 34px; height: 24px; flex: 0 0 auto; }
.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(59, 130, 246,.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: #93c5fd; } .agrid.col .ag.on i { width: 6px; height: 14px; border-radius: 2px; background: #93c5fd; }
/* 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(59, 130, 246,.16); color: #b9d3fc; cursor: pointer; vertical-align: middle; }
.rs:hover { background: rgba(59, 130, 246,.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: #3b82f6; }
/* 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(59, 130, 246,.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(59, 130, 246,.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: #93c5fd; } .gsh-s .ok { color: #4ade80; } .gsh-s .bad { color: #f87171; }
.gsh-s .lnk { background: none; border: 0; padding: 0; color: #93c5fd; 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; }
/* own domain, inside the Grayskills hosting card */
.dom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; display: grid; gap: 10px; }
.dom p { margin: 0; }
.dom-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dom-h b { font-size: 14px; overflow-wrap: anywhere; } .dom-h a { color: var(--ink); text-decoration: none; } .dom-h a:hover { text-decoration: underline; }
.dom-price { font: 500 12px var(--f-sans); color: var(--ink-2); padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,.06); white-space: nowrap; }
.dom-pill { font: 500 12px var(--f-sans); padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.dom-pill.on { color: var(--ok); background: rgba(135,215,91,.1); } .dom-pill.wait { color: var(--wait); background: rgba(255,181,71,.1); }
.dom-f { display: flex; gap: 8px; }
.dom-f input { flex: 1; min-width: 0; height: 38px; border-radius: 10px; background: #0b0b0d; border: 1px solid rgba(255,255,255,.08); padding: 0 12px; color: var(--ink); font: 500 14px var(--f-sans); outline: none; transition: border-color .15s var(--ease); }
.dom-f input:focus { border-color: rgba(59, 130, 246,.7); } .dom-f input::placeholder { color: #5f5f67; }
.gsh .dom-f .btn { width: auto; flex: none; height: 38px; padding: 0 14px; }
.dom-t { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.dom-t th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 0 6px 6px 0; }
.dom-t th:nth-child(1) { width: 50px; } .dom-t th:nth-child(2) { width: 44px; } .dom-t th:nth-child(4) { width: 18px; }
.dom-t td { padding: 7px 6px 7px 0; border-top: 1px solid rgba(255,255,255,.06); vertical-align: middle; color: var(--ink-2); }
.dom-t code { font: 12px var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }
.dom-t .ok { color: var(--ok); }
.dom-v { display: flex; align-items: center; gap: 6px; } .dom-v code { min-width: 0; }
.dom-copy { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(255,255,255,.07); color: var(--ink-2); cursor: pointer; }
.dom-copy:hover { background: rgba(255,255,255,.12); color: var(--ink); }
.dom-why { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--wait); display: grid; gap: 4px; } .dom-why b { color: var(--ink-2); font-weight: 500; }
.dom-warn { font-size: 12.5px; color: var(--wait); background: rgba(255,181,71,.08); border-radius: 10px; padding: 9px 11px; }
.dom-a { display: flex; align-items: center; gap: 14px; }
.gsh .dom-a .btn { width: auto; }
.dom-a .lnk { background: none; border: 0; padding: 0; color: var(--ink-3); font: 13px var(--f-sans); cursor: pointer; }
.dom-a .lnk:hover { color: var(--ink); } .dom-a .lnk.bad:hover { color: var(--err); }

/* ---------------- dashboard: every site ---------------- */
.dash { flex: 1; overflow: auto; background: radial-gradient(1200px 500px at 50% -220px, rgba(59, 130, 246,.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(59, 130, 246,.08); border: 1px solid rgba(59, 130, 246,.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(59, 130, 246,.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(59, 130, 246,.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: #3b82f6; 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: #60a5fa; 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: #bfdbfe; 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(59, 130, 246,.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(59, 130, 246,.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: #60a5fa; 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(59, 130, 246,.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: #60a5fa; pointer-events: none; box-shadow: 0 0 0 3px rgba(96, 165, 250,.18); }
.ldrop::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #60a5fa; background: #0b0b0d; }
.layers { position: relative; }
.lrow.dropin { background: rgba(59, 130, 246,.14); box-shadow: inset 0 0 0 1px rgba(96, 165, 250,.7); color: var(--ink); }
.lrow.lmoved { animation: lmoved 1s var(--ease); }
@keyframes lmoved { 0% { background: rgba(59, 130, 246,.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: #bfdbfe; border-color: rgba(59, 130, 246,.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(59, 130, 246,.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: #3b82f6; 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 #60a5fa; 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(59, 130, 246,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250,.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(59, 130, 246,.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: #99bffb; }
.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(59, 130, 246,.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(59, 130, 246,.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 #60a5fa; } .cms-tr.drop-b { box-shadow: inset 0 -2px 0 #60a5fa; }
.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: #93c5fd; 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: #99bffb; }
.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(59, 130, 246,.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: inline-flex; flex: none; width: max-content; 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(59, 130, 246,.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: #3b82f6; } .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(59, 130, 246,.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: #93c5fd; }
.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: #60a5fa; background: rgba(59, 130, 246,.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(59, 130, 246,.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 { visibility: hidden; }
/* the page-only tools step aside on the CMS page: no empty slots in the bar (Farhan 2026-10-22) */
body.cms-open #tUndo, body.cms-open .bar-tools .vsep { display: none; } 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(59, 130, 246,.14); border: 1px solid rgba(96, 165, 250,.35); color: #cee0fd; 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: #cee0fd; 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(96, 165, 250,.45); background: rgba(59, 130, 246,.08); } .nc-way.ai:hover { border-color: rgba(96, 165, 250,.75); }
.nc-way.ai svg { color: #93c5fd; }
.cms-show { color: #cee0fd; border-color: rgba(96, 165, 250,.45); } .cms-show svg { color: #93c5fd; }
@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: #3b82f6; 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(96, 165, 250,.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 b { font-weight: 600; } .upd-note .ibtn { width: 28px; height: 28px; font-size: 11px; color: var(--ink-3); }
/* before the first page exists: a calm wireframe of a page, one soft light passing over it (Farhan 2026-10-22: "looks like AI slop") */
.frame-wrap.waiting { position: relative; background: #0c0c0e; }
.frame-wrap.waiting #site { visibility: hidden; }
.frame-wrap.waiting::before { content: ""; position: absolute; inset: 42px 0 0; pointer-events: none;
  background: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.ph-page { position: absolute; inset: 42px 0 0; padding: 26px min(7%, 72px); display: flex; flex-direction: column; gap: 44px; overflow: hidden; pointer-events: none; }
.wf { display: block; height: 10px; border-radius: 4px; background: #17181b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); animation: phIn .6s var(--ease) calc(var(--i) * .05s) both; }
@keyframes phIn { from { opacity: 0; transform: translateY(6px); } }
.wf.redo { animation: phRedo 1.6s ease-in-out both; }
@keyframes phRedo { 50% { opacity: .55; } }
.ph-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.035) 50%, transparent 65%) 0 0 / 250% 100%; animation: phSheen 3.6s ease-in-out infinite; }
@keyframes phSheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.ph-scan { display: none; }
.ph-nav { display: flex; align-items: center; justify-content: space-between; } .ph-nav span { display: flex; gap: 26px; }
.wf.w-logo { width: 104px; height: 16px; } .wf.w-link { width: 48px; height: 8px; } .wf.w-btn { width: 96px; height: 32px; border-radius: 8px; }
.ph-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-top: 10px; }
.ph-copy { display: flex; flex-direction: column; gap: 14px; } .ph-copy > span { display: flex; gap: 10px; margin-top: 12px; }
.ph-para { display: grid; gap: 9px; margin-top: 8px; }
.wf.w-eyebrow { width: 120px; height: 9px; } .wf.w-h1 { width: 92%; height: clamp(22px, 3vw, 38px); border-radius: 6px; } .wf.w-h1.short { width: 64%; }
.wf.w-p { width: 90%; height: 9px; } .wf.w-p.short { width: 58%; }
.wf.w-cta { width: 132px; height: 40px; border-radius: 9px; background: #1d1e22; } .wf.w-cta.ghost { width: 108px; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.wf.w-img { width: 100%; aspect-ratio: 4 / 3.1; height: auto; border-radius: 14px; }
.ph-logos { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.wf.w-mark { width: 84px; height: 12px; opacity: .7; }
.ph-sec { display: flex; flex-direction: column; align-items: center; gap: 12px; } .wf.w-h2 { width: 36%; height: 22px; border-radius: 6px; } .wf.w-sub { width: 48%; height: 9px; }
.ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ph-card { display: grid; gap: 10px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); }
.wf.w-thumb { height: 130px; border-radius: 9px; } .wf.w-line { width: 80%; height: 10px; } .wf.w-line.short { width: 50%; }
@media (max-width: 700px) { .ph-hero { grid-template-columns: 1fr; } .ph-nav span, .ph-logos { display: none; } .ph-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wf, .wf.redo, .ph-sheen, .lc-act li { animation: none; } }
/* 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: #bed6fc; } .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; } }

/* 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: #3b82f6; }
.lpick > svg:first-child { flex: none; color: #91b9fa; } .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: #91b9fa; }
.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: #93c5fd; }
.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(59, 130, 246,.7); }
.cms-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 10px; border-radius: 99px; background: #1f1d2b; color: #d5e4fd; font: 12.5px var(--f-sans); }
.cms-chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: #94a8c8; 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: #3b82f6; border-color: #3b82f6; 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 #3b82f6; }
.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: #91b9fa; }
.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(59, 130, 246,.16); color: #93c5fd; cursor: pointer; }
.sty-undo:hover { background: rgba(59, 130, 246,.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: #3b82f6; background: rgba(59, 130, 246,.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: #91b9fa; }
.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: #3b82f6; } .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: #2563eb; background: #eef4fe; } .edbar .eb-soft:hover { background: #e0ecfe; }
.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(59, 130, 246,.7); }
.gsd .btn:focus-visible { outline: 2px solid #3b82f6; 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: #3b82f6; 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: #3b82f6; color: #fff; font: 600 12.5px var(--f-sans); cursor: pointer; box-shadow: 0 6px 20px rgba(59, 130, 246,.45); animation: fadeIn .15s var(--ease); }   /* fade only: a moving keyframe overrode the centring transform and made it jump */
.addsec button:hover { background: #1d6ff2; }
.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: #3b82f6; background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246,.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: #3b82f6; background: #f3f8ff; } .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: #3b82f6; } .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: #3b82f6; color: #2563eb; background: #f3f8ff; }
.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: #93c5fd; } .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-ui); 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: #93c5fd; 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 #3b82f6; 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: #3b82f6; 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: #3b82f6; }
.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: #3b82f6; color: #fff; font: 600 1.6cqw var(--f-sans); box-shadow: 0 1cqw 3cqw rgba(59, 130, 246,.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: #3b82f6; } .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: #3b82f6; } .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(59, 130, 246,.5); background: rgba(59, 130, 246,.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(59, 130, 246,.55); background: rgba(59, 130, 246,.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 #3b82f6; 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: #3b82f6; 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: #3b82f6; 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: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246,.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(59, 130, 246,.15); color: #93c5fd; 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(59, 130, 246,.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-ui); 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: #3b82f6; background: rgba(59, 130, 246,.1); box-shadow: 0 0 0 3px rgba(59, 130, 246,.15); }
.onb-ai input:focus-visible + span { outline: 2px solid #3b82f6; 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(59, 130, 246,.5); background: rgba(59, 130, 246,.12); } .onb-bar li.on i { background: var(--grad-ui); 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; }
/* progress cards: the step name never gets cut; the time drops to its own line when both don't fit (Farhan 2026-10-22) */
.live-meta { flex-wrap: wrap; row-gap: 6px; }
.live-meta > span:first-child { flex: 1 1 auto; min-width: 0; }
.live-meta > span:last-child { margin-left: auto; }
.busy-card .live-meta b { max-width: none; overflow: visible; white-space: nowrap; }
.busy-card .live-meta em { white-space: nowrap; }
.live-meta > span:last-child { margin-left: 0; width: 100%; padding-left: 20px; font-size: 12.5px; color: var(--ink-3); }

/* drag the frame's sides to resize (2026-10-22): a light bar just outside each side, shown while the pointer is over the preview */
.frame-wrap.sized { max-width: none; }
.fw-grip { position: absolute; z-index: 4; width: 20px; height: 96px; margin-top: -48px; cursor: ew-resize; display: grid; place-items: center; touch-action: none; }
.fw-grip i { width: 5px; height: 56px; border-radius: 5px; background: rgba(255,255,255,.28); opacity: 0; transition: opacity .2s var(--ease), background .15s var(--ease), height .2s var(--ease); }
.stage:hover .fw-grip i { opacity: 1; }
.fw-grip:hover i, body.fw-drag .fw-grip i { opacity: 1; height: 72px; background: rgba(255,255,255,.7); }
body.fw-drag, body.fw-drag * { cursor: ew-resize !important; user-select: none; }
body.fw-drag .frame-wrap { transition: none; } body.fw-drag iframe { pointer-events: none; }
.fw-size { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 8; padding: 6px 12px; border-radius: 20px; background: #111; color: #fff; font: 500 12px var(--f-mono); box-shadow: 0 6px 18px rgba(0,0,0,.4); pointer-events: none; }
body.live-build .fw-grip { display: none; }
/* edit-only markers never show outside Edit (Farhan 2026-10-22: section name + "Add section" seen in Preview) */
body:not(.editing) #sechip, body:not(.editing) #addsec, body:not(.editing) #edbar { display: none !important; }
/* ---------- Publish panel v2 (Farhan 2026-10-22: "make this world-class") — section.ph only: the inspector's header is div.ph ---------- */
section.ph { position: relative; display: grid; gap: 14px; padding: 18px; border-radius: 18px; margin-bottom: 26px;
  background: linear-gradient(180deg, #15151a, #111114); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 1px 0 rgba(255,255,255,.04) inset; }
section.ph::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,214,10,.35), rgba(255,79,139,.25) 40%, rgba(59, 130, 246,.35) 70%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #1d1c1c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); flex: none; }
.ph-tt { flex: 1; min-width: 0; } .ph-tt b { display: block; font: 600 14.5px var(--f-sans); letter-spacing: -.01em; } .ph-tt span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.ph-state { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--f-sans); color: var(--ink-3); padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,.05); white-space: nowrap; }
.ph-state.on { color: var(--ok); background: rgba(135,215,91,.1); }
.ph-state.on i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(135,215,91,.18); animation: phPulse 2.4s var(--ease) infinite; }
@keyframes phPulse { 50% { box-shadow: 0 0 0 5px rgba(135,215,91,0); } }
.ph-addr { display: grid; gap: 7px; }
.ph-lb { font: 500 12px var(--f-sans); color: var(--ink-3); }
section.ph .gsh-f { height: 44px; padding: 0 0 0 13px; overflow: hidden; }
section.ph .gsh-f input { text-align: left; text-overflow: ellipsis; }
section.ph .gsh-f > span { align-self: stretch; display: flex; align-items: center; padding: 0 13px 0 2px; color: #6f6f78; background: linear-gradient(90deg, transparent, #0b0b0d 10px); }
section.ph .gsh-s { margin: -6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
section.ph .gsh-s a { display: inline-flex; align-items: center; gap: 5px; color: #bfdbfe; text-decoration: none; overflow-wrap: anywhere; } section.ph .gsh-s a:hover { color: #fff; }
section.ph .ph-go { width: 100%; height: 46px; font-size: 15px; }
section.ph .dom { border-top-color: rgba(255,255,255,.06); }
.pv-head { margin: 0 0 10px 2px; font: 500 12px var(--f-sans); color: var(--ink-3); }
.pv-list { border-radius: 16px; background: #111114; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); overflow: hidden; }
.pv { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 14px; }
.pv + .pv { border-top: 1px solid rgba(255,255,255,.055); }
.pv-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.pv-ic.github { background: #1b1f24; } .pv-ic.netlify { background: #0e2a2b; color: #32e6e2; }
.pv-t { flex: 1; min-width: 0; } .pv-t b { display: block; font: 600 14px var(--f-sans); letter-spacing: -.01em; }
.pv-l { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.pv-url { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: #bfdbfe; text-decoration: none; }
.pv-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pv-url svg { flex: none; opacity: .7; } .pv-url:hover { color: #fff; }
.pv-at { white-space: nowrap; color: var(--ink-3); }
.pv-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .pv-btn { flex: none; height: 32px; padding: 0 14px; border-radius: 9px; background: rgba(255,255,255,.07); border: 0; color: #fff; font-weight: 600; }
.drawer .pv-btn:hover { background: rgba(255,255,255,.13); } .drawer .pv-btn.solid { background: #fff; color: #050505; } .drawer .pv-btn.solid:hover { background: #e9e9ec; }
.pv.off { opacity: .55; } .pv.off .pv-ic { filter: grayscale(1); }
.pv-dl { display: inline-flex; align-items: center; gap: 8px; margin: 16px 2px 0; font: 500 13px var(--f-sans); color: var(--ink-3); text-decoration: none; }
.pv-dl:hover { color: var(--ink); }


/* ---------- Settings (#/settings) ---------- */
.st-in { width: min(1040px, 100%); }
.st-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; align-items: start; }
.st-nav { position: sticky; top: 24px; display: grid; gap: 2px; }
.st-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-3); font-size: 14px; text-decoration: none; }
.st-nav a:hover { color: var(--ink); background: var(--surface); }
.st-main { display: grid; gap: 34px; min-width: 0; }
.st-sec { scroll-margin-top: 24px; }
.st-h { margin-bottom: 12px; } .st-h h2 { margin: 0; font: 600 17px var(--f-sans); letter-spacing: -.01em; } .st-h p { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; }
.st-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-tile); overflow: hidden; }
.st-card.dskel { border-radius: var(--r-tile); }
.st-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--hair); }
.st-card > .st-row:first-child, .st-card > div:first-child > .st-row { border-top: 0; }
.st-row .st-ic, .onb-ai-row .st-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hair); color: var(--ink); }
.st-row .st-ic .aidot { width: 10px; height: 10px; }
.st-av { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #2a2b31, #17181c); font-weight: 600; }
.st-row .st-ic:has(.st-av) { background: none; border: 0; }
.st-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.st-t b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; } .st-t b a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; } .st-t b a:hover { text-decoration: underline; }
.st-t > span { color: var(--ink-3); font-size: 13.5px; }
.st-r { display: flex; align-items: center; gap: 10px; flex: none; }
.st-on { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.st-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); } .st-on.wait i { background: var(--wait); }
.st-use .ub { margin-top: 8px; max-width: 420px; }
.st-usage { display: grid; gap: 8px; margin-top: 10px; max-width: 420px; }
.st-usage .ub-none { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.st-off { opacity: .55; }
.st-list { padding: 14px 18px 6px; border-top: 1px solid var(--hair); }
.st-card > .st-list:first-child { border-top: 0; }
.st-lh { margin: 0 0 6px; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.st-li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(70px, auto); white-space: nowrap; gap: 14px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.st-li:first-of-type { border-top: 0; } .st-li span:last-child { text-align: right; }
.st-fine { margin: 0; padding: 12px 18px 14px; color: var(--ink-3); font-size: 12.5px; border-top: 1px solid var(--hair); }
.st-list .st-fine { padding: 8px 0 8px; border-top: 0; }
@media (max-width: 760px) {
  .st-grid { grid-template-columns: 1fr; gap: 22px; }
  .st-nav { position: static; display: flex; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .st-nav a { white-space: nowrap; background: var(--surface); }
  .st-row { flex-wrap: wrap; padding: 14px; }
  .st-r { width: 100%; justify-content: flex-start; padding-left: 50px; }
  .st-row:not(:has(.st-ic)) .st-r { padding-left: 0; }
}
.st-dlg { position: relative; width: min(480px, 100%); }
.st-dlg h3 { padding-right: 28px; }
.st-x { position: absolute; top: 14px; right: 14px; }
.st-steps { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 8px; }
.st-steps b { color: var(--ink); font-weight: 500; } .st-steps a { color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.st-steps .linkbtn { padding: 0 0 0 4px; font-size: 13px; text-decoration: underline; }
.st-dlg .paste-row { display: flex; gap: 8px; } .st-dlg .paste-row input { flex: 1; min-width: 0; }
.st-dlg .err { margin: 10px 0 0; }
.st-alt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); } .st-alt .linkbtn { padding: 0; }
.st-key .small { margin: 0 0 8px; }
.onb-conn { display: grid; gap: 10px; }
.onb-ai-row { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.onb-ai-row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; } .onb-ai-row b { font: 600 15px var(--f-sans); } .onb-ai-row i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.onb-ai-row .aidot { width: 10px; height: 10px; }
.onb-safe { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.onb-safe li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.onb-safe svg { flex: none; margin-top: 2px; color: var(--ok); }
.onb-steps li.done { color: var(--ink-2); } .onb-steps li.done i { background: rgba(135,215,91,.18); border-color: transparent; color: #87d75b; }
.onb-wait { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(59, 130, 246,.08); border: 1px solid rgba(59, 130, 246,.28); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.onb-wait b { color: var(--ink); font-weight: 500; } .onb-wait .linkbtn { text-decoration: underline; color: var(--ink-2); }
.onb-ai-row .st-ic { width: 32px; height: 32px; }
/* the Grayskills logo (brand/logo/grayskills-logo-on-dark.svg) + Beta tag */
.gs-logo { display: block; height: 15px; width: auto; }
.sign-logo .gs-logo { height: 17px; }
.beta { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 99px; border: 1px solid rgba(59, 130, 246,.45); background: rgba(59, 130, 246,.12); color: #bfdbfe !important; font: 500 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.logo .dim { font-weight: 500; }
.sign-logo span:not(.beta) { color: var(--ink-3); }
.st-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.st-codev { font: 600 24px var(--f-mono); letter-spacing: .08em; }
.st-waitln { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
/* the AI picker sits on the right, under the send button (Farhan 2026-10-22); its menu opens leftwards */
.comp-foot .comp-note { text-align: left; }
.comp-foot .aip-wrap { margin-left: auto; }
.comp-foot .aimenu { left: auto; right: 0; }
/* a dialog whose safe choice is the main one (safe: true): the risky button stays quiet (Farhan 2026-10-22) */
.btn.quiet-danger { border-color: transparent; color: #ff8a8a; font-weight: 500; } .btn.quiet-danger:hover { background: rgba(229,72,77,.1); }
.dlg-acts .quiet-danger { order: -1; }   /* the quiet risky choice on the left, the safe main one on the right */
/* stop / paused / waiting for the AI plan, on the build row (Farhan 2026-10-23) */
.prog .prog-note { color: var(--ink-3); font-size: 12.5px; flex: 1; min-width: 0; }
.prog .prog-stop { padding: 2px 6px; font-size: 12px; color: var(--ink-3); margin-left: auto; } .prog .prog-stop:hover { color: #ff8a8a; }
.prog #btnResume { margin-left: auto; height: 28px; }
.sign-err.queue, .err.queue { color: var(--ink-2); }   /* waiting in line is not an error */
/* ---------- components (shared parts): their own colour everywhere they show (Farhan 2026-10-23) ---------- */
:root { --comp: #e056fd; --comp-soft: rgba(224,86,253,.14); }
.edbar.comp { box-shadow: 0 0 0 2px var(--comp), 0 10px 30px rgba(0,0,0,.35); }
.edbar.comp .eb-l { color: #a21caf; border-right-color: #f1d4f7; }
.edbar.comp .eb-l svg { color: var(--comp); }
.edbar.comp-own .eb-l { color: #6b6b73; }
/* the layers tree: a component's row and icon in the component colour; a page's own version in grey */
li.lcomp > .lrow { color: #f0b7fb; } li.lcomp > .lrow .lic { color: var(--comp); }
li.lcomp > .lrow.sel::before { background: var(--comp); }
li.lown > .lrow .lic { color: #85858c; } li.lown > .lrow .lname { font-style: italic; }
/* the Components tab */
.complib { padding: 4px 10px 24px; }
.clhead { display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 2px 12px; }
.clhead b { display: block; font: 600 14px var(--f-sans); } .clhead span { font-size: 12px; color: var(--ink-3); }
.cllist { display: grid; gap: 12px; }
.clcard { border-radius: 14px; background: #101114; box-shadow: inset 0 0 0 1px rgba(224,86,253,.28); overflow: hidden; }
.clcard:hover { box-shadow: inset 0 0 0 1px rgba(224,86,253,.6); }
.clshot { position: relative; height: 130px; overflow: hidden; background: #fff; }
.clshot iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
.cldia { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--comp); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.cldia svg { width: 14px; height: 14px; }
.clmeta { padding: 10px 12px 4px; display: grid; gap: 2px; }
.clname { all: unset; cursor: text; font: 600 13.5px var(--f-sans); color: #f6d6fc; } .clname:hover { text-decoration: underline dotted; }
.clpages { font-size: 12px; color: var(--ink-3); }
.clacts { display: flex; gap: 6px; padding: 8px 12px 12px; } .clacts .btn { height: 30px; font-size: 12.5px; padding: 0 12px; }
/* finishing a sign-in from an email link or Google: a quiet screen, never the sign-in page (Farhan 2026-10-23) */
.signing { position: fixed; inset: 0; z-index: 120; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--bg); color: var(--ink-3); font-size: 15px; }
.signing .spin { width: 26px; height: 26px; border-width: 2.5px; } .signing p { margin: 0; }

/* one editing tab per site (2026-10-23) */
.tablock { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(3px); }
.tablock-card { background: var(--panel, #111); border: 1px solid var(--line, #333); border-radius: 14px; padding: 22px 24px; max-width: 340px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.tablock-card b { font-size: 16px; } .tablock-card p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.45; }

/* the building strip above the chat (2026-10-23): title + Stop, then a full-width bar and the time */
.prog.prog-build { display: grid; gap: 8px; padding: 14px 18px; }
.prog-build .pb-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.prog-build .pb-row b { font-size: 13.5px; white-space: nowrap; }
.prog-build .pb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-ui); flex: none; animation: pbPulse 1.6s ease-in-out infinite; }
.prog-build .pb-pct { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.prog-build .prog-stop { margin-left: auto; }
.prog-build .bar-prog { max-width: none; height: 4px; }
.prog-build .pb-time { color: var(--ink-3); font-size: 12px; line-height: 1.3; }
@keyframes pbPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .prog-build .pb-dot { animation: none; } }

/* home first: approve / which page next / what's next (2026-10-23) */
.nextcard { margin: 6px 0 14px; padding: 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); }
.nextcard .nc-q { margin: 0 0 8px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.nextcard .nc-sub { margin-top: 12px; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.nextcard .choices { margin: 0; }
.nextcard .choice { height: auto; min-height: 34px; padding: 6px 13px; font-size: 13px; }
.nextcard .nc-min { font-style: normal; color: var(--ink-3); font-size: 11.5px; margin-left: 7px; }
.nextcard .nc-group { border-color: rgba(59, 130, 246,.45); }
.lcp.later { opacity: .5; } .lcp.later b { border: 1.5px dashed rgba(255,255,255,.18); }
.lcp b { overflow: hidden; flex: none; }

/* new-site box (2026-10-24): the box looks like the chat bar, with the AI plan and build mode as pills inside it */
#vNew .newbox { border-radius: 22px; 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; }
#vNew .newbox:focus-within { border-color: rgba(255,255,255,.22); }
#vNew .newbox textarea { border-radius: 22px 22px 0 0; }
#vNew .newfoot { border-top: 0; gap: 8px; flex-wrap: wrap; padding: 4px 12px 12px 14px; }
#vNew .aipick { height: 32px; padding: 0 10px 0 11px; font-size: 13px; background: #1a1b1f; }
#vNew .aipick svg { flex: none; color: var(--ink-3); }
#vNew .aimenu { width: 330px; max-width: calc(100vw - 48px); }
.aimenu-h { margin: 4px 8px 6px; font: 500 11.5px var(--f-sans); color: var(--ink-3); }
.aio .aidot { flex: none; margin: 0 7px; } .aio .aio-ic { flex: none; display: grid;  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #1f2026; color: var(--ink-2); flex: none; }
.aio[aria-checked="true"] svg:last-child { color: #90b9fa; }
@media (max-width: 520px) { #vNew .aipick .aim { display: none; } }

.pst .pl { font: 600 12px var(--f-sans); color: var(--ink-2); } .pst .pst-note { margin: 0 0 2px; } .pst-foot { margin: 4px 0 0; font-size: 11px; color: #5f5f66; }
#prompt::placeholder { transition: opacity .25s; } #prompt.hint-out::placeholder { opacity: 0; }

/* the "your website is ready" pop-up (2026-10-24) */
.ready-wrap { z-index: 90; }
.dlg.ready { width: min(440px, 100%); padding: 28px 26px 22px; text-align: center; position: relative; overflow: hidden; }
.dlg.ready::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-ui); }
.rdy-badge { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #87d75b; background: rgba(135,215,91,.12); box-shadow: 0 0 0 6px rgba(135,215,91,.06); }
.rdy-badge svg { width: 24px; height: 24px; }
.dlg.ready h3 { font-size: 21px; margin-bottom: 16px; }
.rdy-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); text-align: left; }
.rdy-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; background: #16171b; font-size: 13.5px; }
.rdy-facts span { color: var(--ink-3); flex: none; } .rdy-facts b { font-weight: 600; color: var(--ink); text-align: right; }
.rdy-acts { display: grid; gap: 10px; justify-items: center; } .rdy-acts .btn { width: 100%; height: 46px; font-size: 15px; }
/* AI messages the customer must not miss */
.m.ai.key { position: relative; padding: 14px 16px; margin: 6px 0; border-radius: 16px; background: linear-gradient(180deg, rgba(59, 130, 246,.10), rgba(59, 130, 246,.04));
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246,.35); animation: keyIn .45s var(--ease) both; }
.m.ai.key-ready { background: linear-gradient(180deg, rgba(135,215,91,.10), rgba(135,215,91,.03)); box-shadow: inset 0 0 0 1px rgba(135,215,91,.35); }
.m.ai.key-stop { background: linear-gradient(180deg, rgba(255,176,32,.10), rgba(255,176,32,.03)); box-shadow: inset 0 0 0 1px rgba(255,176,32,.38); }
.key-chip { margin-left: 8px; padding: 2px 8px; border-radius: 99px; font: 600 10.5px var(--f-sans); letter-spacing: .02em; text-transform: uppercase; color: #c0d7fc; background: rgba(59, 130, 246,.18); }
.key-ready .key-chip { color: #a6e58a; background: rgba(135,215,91,.16); } .key-stop .key-chip { color: #ffcf73; background: rgba(255,176,32,.16); }
@keyframes keyIn { from { opacity: 0; transform: translateY(8px); box-shadow: inset 0 0 0 1px rgba(59, 130, 246,.0), 0 0 0 6px rgba(59, 130, 246,.25); } }
.rdy-sub { margin: -8px 0 16px !important; font-size: 13.5px; color: var(--ink-2); }
.rdy-next { margin: 18px 0 8px !important; font-size: 13px; color: var(--ink-3); }
.rdy-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rdy-later { margin-top: 14px; }
.rdy-pages .nc-min { margin-left: 7px; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
#edbar .eb-hint { pointer-events: none; background: none; color: var(--ink-3); font-size: 12px; padding: 0 8px; }
/* the build progress, just above the message box (2026-10-24) */
.chat-prog { margin-bottom: 10px; }
.chat-prog .prog { margin: 0; padding: 12px 14px; border-radius: 16px; background: #111216; border: 1px solid rgba(255,255,255,.07); }
.chat-prog .prog-build .bar-prog { max-width: none; }
#upChips .up-x { margin-left: 6px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; } #upChips .up-x:hover { color: var(--ink); }

/* the selection bar's name is a label, never a button (Farhan 2026-10-24) */
.edbar .eb-l { background: none !important; padding: 0 12px 0 8px; margin-right: 2px; border-right: 1px solid #ececf0; border-radius: 0; color: #55555d; font-weight: 600; }
.edbar.comp .eb-l { color: #a21caf; border-right-color: #f1d4f7; }
/* the one AI box: what you want, a reference photo, or "Let AI decide" */
.askpop { width: 400px; }
.ak-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ak-photo { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; color: #45454d; font: 500 12.5px var(--f-sans); cursor: pointer; }
.ak-photo:hover { background: #f3f3f6; color: #111; } .ak-photo svg { color: #3b82f6; }
.ak-auto { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: #111; color: #fff; font: 600 12.5px var(--f-sans); cursor: pointer; }
.ak-auto svg { color: #bfdbfe; } .ak-auto:hover { background: #2a2a30; }
.ak-ref { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 10px; background: #f6f6f8; font-size: 12.5px; color: #45454d; }
.ak-ref img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; } .ak-ref span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-ref button { border: 0; background: none; font-size: 16px; color: #8b8b93; cursor: pointer; }

/* padding handles on the canvas (Framer-style) */
.padov { position: absolute; z-index: 6; pointer-events: none; }
.padov .pz { position: absolute; background: rgba(224,86,253,.10); opacity: 0; transition: opacity .15s; }
.padov .pz-top { left: 0; right: 0; top: 0; } .padov .pz-bottom { left: 0; right: 0; bottom: 0; } .padov .pz-left { top: 0; bottom: 0; left: 0; } .padov .pz-right { top: 0; bottom: 0; right: 0; }
.padov .ph-h { position: absolute; pointer-events: auto; width: 22px; height: 6px; padding: 0; border: 1.5px solid #fff; border-radius: 99px; background: #e056fd; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: ns-resize; opacity: .9; transform: translate(-50%, -50%); }
.padov .ph-top, .padov .ph-bottom { left: 50%; } .padov .ph-bottom { transform: translate(-50%, 50%); }
.padov .ph-left, .padov .ph-right { top: 50%; width: 6px; height: 22px; cursor: ew-resize; } .padov .ph-right { transform: translate(50%, -50%); }
.padov .ph-h:hover { opacity: 1; transform-origin: center; filter: brightness(1.1); }
.padov .pz-v { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 6px; background: #e056fd; color: #fff; font: 600 11.5px var(--f-mono); pointer-events: none; }
.bm.bm-nom { height: 100px; border: 0; background: none; } .bm.bm-nom .bm-in { inset: 0; }
/* no dividers in the selection bar (Farhan 2026-10-24): spacing separates the groups */
.edbar .eb-l, .edbar.comp .eb-l { border-right: 0 !important; }
.edbar .eb-sep { width: 6px; height: 1px; margin: 0; background: none !important; border: 0 !important; }
/* the tools rail (2026-10-24): a fixed column on the far left of the builder; each tool an icon with a short name */
.rail { display: none; }
body.mode-builder .rail { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; flex: none; padding: 10px 0; background: #08080a; border-right: 1px solid rgba(255,255,255,.07); z-index: 3; }
body.mode-builder.live-build .rail { display: none; }
.rail .tool { flex-direction: column; justify-content: center; gap: 4px; width: 52px; height: 54px; padding: 0; border-radius: 12px; font-size: 10.5px; font-weight: 500; color: #9a9aa3; }
.rail .tool span { display: block !important; }
.rail .tool:hover { background: #17181c; color: var(--ink); }
.rail .tool.on, body.cms-open .rail #tCms { background: rgba(59, 130, 246,.16); color: #fff; }
.rail .tool.on svg, body.cms-open .rail #tCms svg { color: #aac9fb; }
/* Edit / Preview now sits on the right, next to Publish */
body.mode-builder .bar-tools .seg.mode { margin: 0 6px; }
/* the account menu (2026-10-24): who you are, your plan, tools with icons, sign out apart */
.acct-menu { min-width: 260px; padding: 6px; }
.acct-menu .am-who { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.acct-menu .am-av { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad-ui); color: #fff; font: 600 14px var(--f-sans); }
.acct-menu .am-who > span:last-child { display: grid; min-width: 0; } .acct-menu .am-who b { font: 600 13px var(--f-sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu .am-who i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.acct-menu button { align-items: center; gap: 10px; font-size: 13.5px; padding: 9px 10px; color: #d4d4da; }
.acct-menu button svg { color: #8b8b94; flex: none; } .acct-menu button:hover svg { color: var(--ink); }
.acct-menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.06); margin: 4px 0; }
.acct-menu #btnOut:hover { background: rgba(255,92,92,.1); color: #ff8a8a; } .acct-menu #btnOut:hover svg { color: #ff8a8a; }
/* the "Default AI Build" upgrade card (2026-10-24): text on top, the button below, never squeezed into one row */
.prog.prog-up { display: grid; gap: 10px; padding: 14px 16px; align-items: start; }
.prog-up .pu-t { display: grid; gap: 3px; min-width: 0; } .prog-up .pu-t b { font: 600 13.5px var(--f-sans); color: var(--ink); }
.prog-up .pu-t span { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.prog-up .btn { justify-self: start; }
/* the panel tabs (2026-10-24): the full width of the panel, bigger, with icons, so Layers and Components are noticed */
body.mode-builder .chat-head { height: 60px; padding: 0 10px 0 12px; }
body.mode-builder .ptabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; border-radius: 12px; background: #111215; border-color: rgba(255,255,255,.08); }
body.mode-builder .ptabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 8px; border-radius: 9px; font: 600 13px var(--f-sans); color: #8e8e97; transition: background .15s, color .15s; }
body.mode-builder .ptabs button svg { flex: none; opacity: .8; }
body.mode-builder .ptabs button:hover { color: var(--ink); background: #1a1b20; }
body.mode-builder .ptabs button.on { background: #26272e; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.4); }
body.mode-builder .ptabs button.on svg { color: #aac9fb; opacity: 1; }
@media (max-width: 1250px) { body.mode-builder .ptabs button svg { display: none; } }
/* the tabs take every bit of width; the hide-panel icon gets the same space on both sides (Farhan 2026-10-24) */
body.mode-builder .chat-head { padding: 0 12px; gap: 12px; }
body.mode-builder .chat-head .grow { display: none; }
body.mode-builder .chat-head .ptabs { flex: 1 1 auto; min-width: 0; }
/* gap handles between stacked items (2026-10-24) */
/* the tint shows only on the one space under the mouse (or its handle), so you see where you are; never while dragging (Farhan 2026-10-24) */
.padov .gz { position: absolute; background: rgba(224,86,253,.12); opacity: 0; transition: opacity .15s; }
.padov:not(.dragging) .hot, .padov:not(.dragging) .gz:has(+ .gp-h:hover) { opacity: 1; }
.padov:not(.dragging):has(.ph-top:hover) .pz-top, .padov:not(.dragging):has(.ph-bottom:hover) .pz-bottom,
.padov:not(.dragging):has(.ph-left:hover) .pz-left, .padov:not(.dragging):has(.ph-right:hover) .pz-right { opacity: 1; }
.padov .gp-h { position: absolute; pointer-events: auto; padding: 0; border: 1.5px solid #fff; border-radius: 99px; background: #3b82f6; box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
.padov .gp-x { width: 6px; height: 18px; cursor: ew-resize; } .padov .gp-y { width: 18px; height: 6px; cursor: ns-resize; }
.padov.gapping .pz-v { background: #3b82f6; }
/* drag to move on the page (2026-10-24) */
.mv-ghost { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: #3b82f6; color: #fff; font: 600 12px var(--f-sans); box-shadow: 0 8px 24px rgba(0,0,0,.35); white-space: nowrap; will-change: transform; }
.mv-line { position: absolute; z-index: 8; pointer-events: none; border-radius: 3px; background: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246,.25); transition: top .08s, left .08s, width .08s, height .08s; }

/* the side panel's width can be dragged (Farhan 2026-10-24): 300–560px, remembered; double-click the edge for the default */
body.mode-builder .chat { position: relative; }
.chat-rs { display: none; }
@media (min-width: 901px) {
  body.mode-builder.chat-sized .chat, body.mode-builder.chat-sized.editing .chat { width: var(--chat-w) !important; }
  body.mode-builder:not(.chat-folded) .chat-rs { display: block; position: absolute; z-index: 20; top: 0; bottom: 0; right: -4px; width: 8px; cursor: col-resize; touch-action: none; }
  .chat-rs::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3.5px; width: 1px; background: transparent; transition: background .15s; }
  .chat-rs:hover::after, .chat-rs.on::after { background: #3b82f6; width: 2px; left: 3px; }
  body.chat-resizing, body.chat-resizing * { cursor: col-resize !important; user-select: none !important; }
  body.chat-resizing iframe { pointer-events: none; }
}

/* Layout (2026-10-24): labelled rows like Framer, in our own look — purple marks the pick, a gap slider beside the number */
.lay2 .pr { grid-template-columns: 74px 1fr; }
.lay2 .segs { height: 30px; box-sizing: border-box; } .lay2 .segs button { height: 26px; }
.lay2 .segs button.on { background: #2a2b31; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(59, 130, 246,.55); }
.lay2 .segs button svg { display: block; }
.lay2 .nf { flex: 0 0 64px; }
.rng { flex: 1; min-width: 0; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rng::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: #2a2b31; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #93c5fd; border: 2px solid #16171b; box-shadow: 0 0 0 1px rgba(59, 130, 246,.6); }
.rng::-moz-range-track { height: 3px; border-radius: 3px; background: #2a2b31; }
.rng::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #93c5fd; border: 2px solid #16171b; }
/* "Import my website" on the new-site screen (2026-10-24) */
.imp-row { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); color: #9a9aa2; }
.imp-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 4px 0; font: 500 17px var(--f-sans); color: var(--ink); }
.imp-row input::placeholder { color: #66666e; }
#vNew .newbox:has(.imp-row:not([hidden])) textarea { min-height: 64px; border-radius: 0; font-size: 14px; }
.imp-under { display: grid; gap: 8px; margin: -4px 0 16px; text-align: left; }
.imp-own { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font: 500 14px var(--f-sans); color: var(--ink); }
.imp-own input { width: 18px; height: 18px; accent-color: #7b5cff; flex: none; }
.imp-own:has(input:checked) { border-color: rgba(123,92,255,.6); background: rgba(123,92,255,.08); }
.imp-own.shake { animation: impShake .4s; border-color: #ff6b6b; }
@keyframes impShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.imp-left { margin: 0; padding: 0 4px; font: 400 12.5px var(--f-sans); color: #8e8e97; }
.uns-row.imp-hide { display: none; }

/* Style and SEO open in the left panel, over the chat (Farhan 2026-10-24) */
.chat > .drawer.left { left: 0; right: 0; width: auto; border-left: 0; box-shadow: none; z-index: 20; background: #0a0a0c; }
/* questions the customer must not miss (2026-10-24) */
.needs { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 11px 14px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, #ffd60a 0%, #ff8a3d 40%, #ff4f8b 75%, #7b5cff 100%); color: #111; font: 600 13.5px var(--f-sans); box-shadow: 0 6px 20px rgba(255,79,139,.25); animation: ndIn .3s ease-out; }
.needs[hidden] { display: none; }
.needs .nd-dot { width: 8px; height: 8px; border-radius: 50%; background: #111; animation: ndPulse 1.4s infinite; flex: none; }
.needs .nd-t { flex: 1; min-width: 0; }
.needs .nd-go { padding: 5px 10px; border-radius: 99px; background: #111; color: #fff; font-size: 12px; flex: none; }
@keyframes ndIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes ndPulse { 50% { transform: scale(.55); opacity: .5; } }
.ptabs button.needs-dot { position: relative; }
.ptabs button.needs-dot::after { content: ""; position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ff4f8b; box-shadow: 0 0 0 3px rgba(255,79,139,.25); animation: ndPulse 1.4s infinite; }
.m.flash { animation: mFlash 1.2s ease-out; }
@keyframes mFlash { 0%, 40% { box-shadow: 0 0 0 3px rgba(255,138,61,.75); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }
.q-pic { margin: 10px 0 12px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #fff; }
.q-pic img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: top; }
/* the import's copy card in the chat */
.imp-card { padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #141418; }
.imp-card .ic-h { display: flex; align-items: center; gap: 9px; color: #b9a6ff; }
.imp-card .ic-h b { flex: 1; color: var(--ink); font: 600 14.5px var(--f-sans); overflow-wrap: anywhere; }
.imp-card .ic-h.ok { color: #4ade80; } .imp-card .ic-h.err { color: #ff6b6b; }
.imp-card p { margin: 8px 0 0; color: #a3a3ab; font: 400 13.5px/1.5 var(--f-sans); }
.imp-card .ic-bar { height: 6px; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.imp-card .ic-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd60a, #ff8a3d, #ff4f8b, #7b5cff); transition: width 1.2s ease; }
.imp-card .choices { margin-top: 12px; }
/* proving an imported site is theirs (2026-10-24) */
.own-dlg { position: relative; width: min(520px, calc(100vw - 32px)); text-align: left; }
.own-dlg .own-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 99px; background: rgba(255,255,255,.06); color: #aaa; cursor: pointer; }
.own-way { margin-top: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.025); }
.own-way .ow-h { display: flex; align-items: center; gap: 10px; }
.own-way .ow-h b { flex: 1; font: 600 14px var(--f-sans); color: var(--ink); }
.own-way .ow-h i { font: 400 12px var(--f-sans); font-style: normal; color: #8e8e97; }
.own-way .ow-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: #26272e; color: #b9a6ff; font: 600 12px var(--f-sans); flex: none; }
.own-way .ow-b { margin-top: 12px; display: grid; gap: 10px; }
.own-way .ow-row { display: flex; gap: 8px; }
.own-way .ow-row[hidden] { display: none; }
.own-way .ow-in { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #0d0d10; color: var(--ink); font: 500 14px var(--f-sans); }
.own-way .ow-code { letter-spacing: 4px; font-family: var(--f-mono); }
.own-way .ow-help { margin: 0; font: 400 13px/1.5 var(--f-sans); color: #a3a3ab; }
.own-way .ow-tag { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: #0d0d10; border: 1px solid rgba(255,255,255,.1); }
.own-way .ow-tag code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12px/1.4 var(--f-mono); color: #d6ccff; }
.own-way .ow-msg { margin: 0; min-height: 0; font: 500 12.5px var(--f-sans); color: #ff8b8b; }
.own-way .ow-msg:empty { display: none; }
.own-way .ow-msg.ok { color: #4ade80; }
/* CMS: add items from a spreadsheet (2026-10-24) */
.sheet-dlg { width: min(540px, calc(100vw - 32px)); text-align: left; }
.sheet-dlg .sh-steps { margin: 4px 0 14px; padding-left: 20px; display: grid; gap: 6px; color: #b4b4bc; font: 400 13.5px/1.5 var(--f-sans); }
.sheet-dlg .sh-steps a { color: #b9a6ff; font-weight: 600; }
.sheet-dlg .sh-cols { color: var(--ink); }
.sheet-dlg .sh-drop { display: grid; gap: 4px; place-items: center; padding: 22px; border: 1.5px dashed rgba(255,255,255,.18); border-radius: 14px; cursor: pointer; text-align: center; }
.sheet-dlg .sh-drop:hover { border-color: #7b5cff; background: rgba(123,92,255,.06); }
.sheet-dlg .sh-drop b { font: 600 14px var(--f-sans); color: var(--ink); } .sheet-dlg .sh-drop span { font: 400 12px var(--f-sans); color: #8e8e97; }
.sheet-dlg .sh-mode { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font: 400 12.5px/1.45 var(--f-sans); color: #a3a3ab; }
.sheet-dlg .sh-msg { margin: 12px 0 0; font: 400 13px/1.5 var(--f-sans); color: #a3a3ab; } .sheet-dlg .sh-msg:empty { display: none; }
.sheet-dlg .sh-msg.ok b { color: #4ade80; } .sheet-dlg .sh-msg.err { color: #ff8b8b; }

/* Style panel v3 (2026-10-24): text styles first — one row per kind of text, opens to its own font controls */
.sty h6 { margin: 14px 0 8px; font: 500 12px var(--f-sans); color: var(--ink-3); }
.sty-sub { margin: -6px 0 4px; font-size: 12px; color: var(--ink-3); }
.sty-base { margin: 0 0 12px; }
.ts-list { display: grid; gap: 4px; }
.ts { border-radius: 10px; background: #111215; border: 1px solid rgba(255,255,255,.06); }
.ts.open { border-color: rgba(255,255,255,.14); }
.ts-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
.ts-h b { flex: none; font-size: 14px; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-h i { flex: 1; min-width: 0; font: 11.5px var(--f-sans); font-style: normal; color: var(--ink-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-h svg { flex: none; color: var(--ink-3); transition: transform .2s var(--ease); } .ts.open .ts-h svg { transform: rotate(180deg); }
.ts-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ts-b { display: grid; gap: 8px; padding: 2px 12px 12px; }
.ts-r { display: flex; align-items: center; gap: 8px; } .ts-r > span { flex: none; width: 56px; font-size: 12px; color: var(--ink-3); }
.ts-r > .ts-l { width: auto; }
.ts-r .sty-ff { height: 34px; } .ts-r .sty-ff b { font-size: 13px; }
.ts-in { flex: 1; min-width: 0; height: 34px; } .ts-sel { flex: 1; height: 34px; }
.ts-case { flex: 0 0 82px; height: 34px; } .ts-case button { font-weight: 600; }
.ts-reset { justify-self: start; font-size: 12px; }
.sty-add { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px dashed rgba(255,255,255,.18); background: none; color: var(--ink-2); font: 500 12.5px var(--f-sans); cursor: pointer; }
.sty-add:hover { color: var(--ink); border-color: rgba(255,255,255,.32); background: #15161a; }
.sty-x { flex: none; width: 24px; height: 24px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); font-size: 16px; line-height: 1; cursor: pointer; }
.sty-x:hover { background: rgba(255,106,106,.14); color: #ff9a9a; }
.ts-devs { display: flex; align-items: center; gap: 2px; padding-bottom: 2px; }
.ts-devs button { position: relative; width: 28px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--ink-3); cursor: pointer; }
.ts-devs button:hover { color: var(--ink); background: #1b1c21; } .ts-devs button.on { color: var(--ink); background: #24252b; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.ts-devs button.has::after { content: ""; position: absolute; top: 3px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.ts-devs span { margin-left: 6px; font-size: 11.5px; color: var(--ink-3); }
.sty-name { width: 100%; min-width: 0; height: 26px; padding: 0 6px; margin-left: -6px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); font: 500 13.5px var(--f-sans); outline: none; }
.sty-name:hover { border-color: rgba(255,255,255,.12); } .sty-name:focus { border-color: rgba(var(--accent-rgb), .6); background: #121317; }
.ts-nm { flex: 1; height: 34px; margin: 0; background: #16171b; }
.needs.top { width: auto; margin: 10px 12px 2px; }
.fcats { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.06); overflow-x: auto; }
.fcats button { flex: none; height: 24px; padding: 0 9px; border: 0; border-radius: 99px; background: #16171b; color: var(--ink-3); font: 500 11.5px var(--f-sans); cursor: pointer; }
.fcats button:hover { color: var(--ink); } .fcats button.on { background: #2a2b31; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }

/* CMS takes the whole work area; the tools rail stays, with Home on top (Farhan 2026-10-24) */
body.cms-open .chat, body.cms-open .chat-open { display: none !important; }
body:not(.cms-open) .rail:not(:has(.tool.on)) #tHome { background: rgba(59, 130, 246,.16); color: #fff; }
body:not(.cms-open) .rail:not(:has(.tool.on)) #tHome svg { color: #aac9fb; }

/* Effects + Transition (2026-10-24): tabs per trigger, tiles to pick a look, numbers + sliders to fine-tune, easing drawn as curves */
.fx h4 { display: flex; align-items: center; gap: 6px; } .fx h4 > span { flex: 1; }
.fx-play { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 99px; background: rgba(var(--accent-rgb), .16); color: #cfe0ff; font: 600 11.5px var(--f-sans); cursor: pointer; }
.fx-play:hover { background: rgba(var(--accent-rgb), .28); color: #fff; }
.fx-tabs { display: flex; gap: 2px; padding: 2px; margin-bottom: 10px; border-radius: 8px; background: #16171b; }
.fx-tabs button { position: relative; flex: 1; height: 26px; border: 0; border-radius: 6px; background: none; color: #85858c; font: 500 11.5px var(--f-sans); cursor: pointer; }
.fx-tabs button:hover { color: var(--ink); } .fx-tabs button.on { background: #2a2b31; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.fx-tabs button.has::after { content: ""; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.fx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; } .fx-tiles.fx-3 { grid-template-columns: repeat(3, 1fr); }
.fx-tile { display: grid; justify-items: center; gap: 5px; padding: 9px 4px 7px; border: 1px solid transparent; border-radius: 9px; background: #16171b; color: #9a9aa2; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.fx-tile span { font: 500 10.5px var(--f-sans); white-space: nowrap; }
.fx-tile:hover { background: #1c1d22; color: var(--ink); } .fx-tile.on { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .6); color: #fff; }
.fx .pr .pc .rng, .fx-tr .pr .pc .rng { flex: 1; }
.fx .pr .nf.fx-n, .fx-tr .pr .nf.fx-n { flex: 0 0 72px; }
.fx-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 8px; } .fx-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.fx-tg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; user-select: none; }
.fx-tg input { display: none; } .fx-tg i { position: relative; width: 26px; height: 15px; border-radius: 99px; background: #2a2b31; transition: background .15s; }
.fx-tg i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #9a9aa2; transition: transform .18s cubic-bezier(.22,1,.36,1), background .15s; }
.fx-tg input:checked + i { background: var(--accent); } .fx-tg input:checked + i::after { transform: translateX(11px); background: #fff; }
.fx-hint { margin: 0 0 10px; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.fx-tr h4 em { font: 500 11px var(--f-sans); font-style: normal; color: var(--ink-3); margin-left: 6px; }
.fx-el { margin: 4px 0 6px; font-size: 11.5px; color: #85858c; }
.fx-eases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fx-eases button { display: grid; justify-items: center; gap: 2px; padding: 5px 0 4px; border: 1px solid transparent; border-radius: 8px; background: #16171b; color: #85858c; cursor: pointer; }
.fx-eases button span { font: 500 9.5px var(--f-sans); } .fx-eases button:hover { color: var(--ink); }
.fx-eases button.on { border-color: rgba(var(--accent-rgb), .6); color: #fff; background: rgba(var(--accent-rgb), .1); }
.fx-tr .pr { grid-template-columns: 62px 1fr; }
