/* ManimGX Studio: zvena.app's own look (white, Inter, black buttons, hairlines). */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f6;
  --bg-3: #ebebee;
  --text: #202124;
  --text-2: #62626b;
  --text-3: #8a8a94;
  --ink: #000000;
  --border: #e9e9ec;
  --border-2: #dedee3;
  --border-strong: #b5b5bf;
  --brand: #6268c8;
  --ok: #007a40;
  --ok-bg: #e6f4ec;
  --bad: #dc3412;
  --bad-bg: #fdecea;
  --warn: #a85b00;
  --warn-bg: #fff4e0;
  --run: #2f6fed;
  --run-bg: #eaf1ff;
  --sand: #f0e2c2; --green: #c9e7c1; --lilac: #d8ccff; --orange: #ffcfb3; --blue: #c5dbff; --pink: #f7c9d8; --white: #ffffff;
  --radius: 8px;
  --shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.22);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #d8ccff; }

/* --- buttons and fields --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--bg); cursor: pointer; white-space: nowrap; font-weight: 500; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--bg-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2b2b2e; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.small { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 34px; padding: 0; }
.btn.small.icon { width: 28px; }
.btn.danger { color: var(--bad); }
.btn svg { width: 16px; height: 16px; flex: none; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg); padding: 8px 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
kbd { font: 11px var(--mono); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--text-2); }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.run { background: var(--run-bg); color: var(--run); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge .spin { width: 10px; height: 10px; border-width: 1.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* --- top bar --- */
.top { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.logo .mark { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.logo .mark svg { width: 15px; height: 15px; }
.logo em { font-style: normal; color: var(--text-3); font-weight: 500; }
.top .grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--bg); white-space: nowrap; }
.pill.button { cursor: pointer; }
.pill.button:hover { background: var(--bg-2); }

/* --- home --- */
.home { max-width: 1240px; margin: 0 auto; padding: 40px 24px 80px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.home-head h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; margin: 0 0 6px; }
.home-head p { margin: 0; color: var(--text-2); max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 20px; }
.card { display: block; text-decoration: none; cursor: pointer; position: relative; }
.thumb { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; position: relative; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); transition: box-shadow .2s, transform .2s; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: contain; display: block; }
.card:hover .thumb { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 10px 30px -14px rgba(0,0,0,.35); }
.thumb .empty { color: rgba(0,0,0,.35); display: grid; justify-items: center; gap: 6px; font-size: 13px; }
.thumb .empty svg { width: 26px; height: 26px; }
.thumb .state { position: absolute; left: 10px; top: 10px; }
.card-title { margin-top: 10px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card-title span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.card .more { position: absolute; right: 8px; top: 8px; opacity: 0; transition: opacity .15s; background: rgba(255,255,255,.92); }
.card:hover .more, .card .more:focus { opacity: 1; }
.empty-state { border: 1px dashed var(--border-2); border-radius: 12px; padding: 56px 24px; text-align: center; color: var(--text-2); }
.empty-state h2 { color: var(--text); font-size: 20px; font-weight: 500; margin: 14px 0 6px; letter-spacing: -.01em; }
.empty-state p { margin: 0 auto 20px; max-width: 460px; }

/* --- menus and dialogs --- */
.menu { position: fixed; z-index: 60; min-width: 180px; background: var(--bg); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--bg-2); }
.menu button svg { width: 15px; height: 15px; color: var(--text-2); }
.menu .sep { height: 1px; background: var(--border); margin: 4px 0; }
.scrim { position: fixed; inset: 0; background: rgba(20,20,24,.32); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--bg); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; animation: rise .2s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.dialog header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 4px; }
.dialog h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.dialog .body { padding: 14px 22px 8px; display: grid; gap: 18px; }
.dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 1px solid var(--border-2); border-radius: 10px; padding: 10px; cursor: pointer; background: var(--bg); text-align: left; display: grid; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--border-strong); }
.choice.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice b { font-weight: 500; font-size: 13.5px; }
.choice small { color: var(--text-3); font-size: 12px; line-height: 1.35; }
.mini { aspect-ratio: 16/9; border-radius: 6px; position: relative; overflow: hidden; background: var(--bg-2); }
.mini i { position: absolute; display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); cursor: pointer; position: relative; padding: 0; }
.swatch.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--bg); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: var(--bg-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- editor --- */
.editor { display: grid; grid-template-columns: 400px minmax(0, 1fr); height: calc(100vh - 56px); }
.title-input { border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; font-weight: 500; font-size: 15px; min-width: 120px; max-width: 360px; background: transparent; outline: none; text-overflow: ellipsis; }
.title-input:hover { border-color: var(--border); }
.title-input:focus { border-color: var(--ink); background: var(--bg); }

/* chat */
.chat { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border); min-height: 49px; }
.chat-head b { font-weight: 600; }
.chat-log { flex: 1; overflow: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 100%; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--bg-2); border-radius: 14px 14px 4px 14px; padding: 9px 13px; max-width: 88%; white-space: pre-wrap; }
.msg.user .att { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.msg.user .att img { height: 56px; border-radius: 6px; border: 1px solid var(--border); }
.msg.assistant { line-height: 1.55; }
.msg.assistant p { margin: 0 0 8px; } .msg.assistant p:last-child { margin-bottom: 0; }
.msg.assistant ul, .msg.assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.assistant code { font: 12.5px var(--mono); background: var(--bg-2); padding: 1px 4px; border-radius: 4px; }
.msg.assistant pre { background: var(--bg-2); border-radius: 8px; padding: 10px; overflow: auto; font: 12px/1.5 var(--mono); }
.msg.assistant pre code { background: none; padding: 0; }
.msg.assistant h3, .msg.assistant h4 { font-size: 14px; margin: 10px 0 4px; }
.msg.system { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 4px 0; }
.msg.system.error { color: var(--bad); background: var(--bad-bg); border-radius: 8px; padding: 8px 10px; text-align: left; white-space: pre-wrap; }
.msg.done { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; padding: 2px 0 6px; }
.msg.done svg { width: 13px; height: 13px; color: var(--ok); }
.tool { border: 1px solid var(--border); border-radius: 8px; font-size: 13px; overflow: hidden; }
.tool > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; color: var(--text-2); }
.tool > summary::-webkit-details-marker { display: none; }
.tool > summary:hover { background: var(--bg-2); }
.tool > summary svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.tool > summary .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool > summary .st { flex: none; }
.tool .st svg { color: var(--ok); }
.tool.error .st svg { color: var(--bad); }
.tool pre { margin: 0; padding: 8px 10px; background: var(--bg-2); border-top: 1px solid var(--border); font: 11.5px/1.5 var(--mono); max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.tool .img { padding: 8px; border-top: 1px solid var(--border); background: var(--bg-2); }
.tool .img img { max-width: 100%; border-radius: 6px; display: block; cursor: zoom-in; }
.tool-group { display: grid; gap: 6px; }
.todos { padding: 6px 10px 8px; border-top: 1px solid var(--border); display: grid; gap: 3px; }
.todos div { display: flex; gap: 7px; align-items: baseline; }
.todos .done { color: var(--text-3); text-decoration: line-through; }
.todos .now { font-weight: 500; }
.working { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; padding: 4px 0; }
.composer { border-top: 1px solid var(--border); padding: 12px; }
.composer .box { border: 1px solid var(--border-2); border-radius: 12px; padding: 8px; transition: border-color .15s, box-shadow .15s; background: var(--bg); }
.composer .box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; min-height: 44px; max-height: 220px; padding: 4px 6px; line-height: 1.5; background: transparent; }
.composer .bar { display: flex; align-items: center; gap: 6px; }
.composer .bar .grow { flex: 1; }
.composer .att { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px 6px; }
.composer .att span { position: relative; }
.composer .att img { height: 48px; border-radius: 6px; border: 1px solid var(--border); display: block; }
.composer .att button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 11px; cursor: pointer; line-height: 18px; padding: 0; }
.suggest { display: grid; gap: 8px; padding: 4px 0; }
.suggest button { text-align: left; border: 1px solid var(--border); background: var(--bg); border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.suggest button:hover { border-color: var(--border-strong); color: var(--text); }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.notice.warn { background: var(--warn-bg); color: #6b3d00; }
.intro { padding: 8px 2px 4px; }
.intro h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.intro p { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }

/* main area */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.tabs { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg); min-height: 49px; flex-wrap: wrap; }
.tab { height: 32px; padding: 0 12px; border: 0; background: none; border-radius: 7px; cursor: pointer; color: var(--text-2); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.tab svg { width: 15px; height: 15px; }
.tab:hover { background: var(--bg-2); color: var(--text); }
.tab.on { background: var(--bg-3); color: var(--text); }
.tabs .grow { flex: 1; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 15px; height: 15px; }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.view { flex: 1; min-height: 0; overflow: auto; position: relative; }
.stagebox { position: absolute; inset: 0; display: grid; place-items: start center; overflow: auto; padding: 20px; }
.device { background: var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 60px -30px rgba(0,0,0,.35); border-radius: 10px; overflow: hidden; transform-origin: top left; }
.waiting { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-2); text-align: center; padding: 24px; }
.waiting .inner { display: grid; justify-items: center; gap: 10px; max-width: 420px; }
.waiting svg { width: 30px; height: 30px; color: var(--text-3); }
.videobox { padding: 24px; display: grid; justify-items: center; gap: 12px; }
.videobox video { max-width: 100%; max-height: calc(100vh - 260px); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); background: #fff; }
.vinfo { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.boards { padding: 20px; display: grid; gap: 14px; }
.boards img { width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); display: block; background: #fff; }
.panel { background: var(--bg); border-radius: 12px; box-shadow: 0 0 0 1px var(--border); padding: 16px 18px; }
.panel h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.problems { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.log { margin: 0; font: 11.5px/1.5 var(--mono); white-space: pre-wrap; max-height: 360px; overflow: auto; color: var(--text-2); }
.codewrap { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.codebar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.codebar .grow { flex: 1; }
.CodeMirror { flex: 1; height: auto; font: 13px/1.6 var(--mono); }
.CodeMirror-gutters { background: var(--bg); border-right: 1px solid var(--border); }
.CodeMirror-linenumber { color: #b5b5bf; }
.cm-s-default .cm-keyword { color: #7c3aed; } .cm-s-default .cm-def { color: #2f6fed; } .cm-s-default .cm-string { color: #2b8a4b; }
.cm-s-default .cm-number { color: #c2410c; } .cm-s-default .cm-comment { color: #8a8a94; font-style: italic; } .cm-s-default .cm-builtin { color: #0e7490; }
.cm-s-default .cm-variable-2 { color: #202124; } .cm-s-default .cm-property { color: #9d174d; } .cm-s-default .cm-operator { color: #62626b; }
.CodeMirror-cursor { border-left: 2px solid var(--ink); }
.export { padding: 24px; display: grid; gap: 16px; max-width: 980px; margin: 0 auto; width: 100%; }
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dl a, .dl button { display: grid; gap: 2px; text-decoration: none; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg); cursor: pointer; text-align: left; transition: border-color .15s; }
.dl a:hover, .dl button:hover { border-color: var(--border-strong); }
.dl b { font-weight: 500; display: flex; align-items: center; gap: 7px; }
.dl b svg { width: 15px; height: 15px; }
.dl span { color: var(--text-3); font-size: 12.5px; }
.snippet { position: relative; }
.snippet pre { margin: 0; background: #16161a; color: #e6e6ea; border-radius: 10px; padding: 14px 16px; font: 12.5px/1.6 var(--mono); overflow: auto; }
.snippet .btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }

/* versions strip */
.versions { border-top: 1px solid var(--border); background: var(--bg); display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; min-height: 92px; align-items: stretch; }
.versions .none { color: var(--text-3); font-size: 13px; align-self: center; padding-left: 6px; }
.ver { flex: none; width: 128px; border: 1px solid var(--border); border-radius: 8px; padding: 4px; cursor: pointer; background: var(--bg); text-align: left; display: grid; gap: 4px; transition: border-color .15s; }
.ver:hover { border-color: var(--border-strong); }
.ver.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ver .vt { aspect-ratio: 16/9; border-radius: 5px; overflow: hidden; display: grid; place-items: center; background: var(--bg-2); position: relative; }
.ver .vt img { width: 100%; height: 100%; object-fit: contain; }
.ver .vt .spin { color: var(--run); }
.ver .vt svg { width: 16px; height: 16px; color: var(--bad); }
.ver .vl { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 11.5px; padding: 0 2px 1px; color: var(--text-2); }
.ver .vl b { color: var(--text); font-weight: 600; }
.ver .k { font-size: 10.5px; padding: 0 5px; border-radius: 4px; background: var(--bg-2); }
.ver .k.final { background: var(--ink); color: #fff; }

/* the zvena.app page mock */
.site { width: 1440px; background: #fff; color: #000; font-family: var(--font); }
.site.mobile { width: 390px; }
.site-nav { height: 78px; display: flex; align-items: center; padding: 0 40px; gap: 30px; border-bottom: 1px solid #e9e9ec; font-size: 16px; }
.site-nav .zl { font-weight: 700; font-size: 31px; letter-spacing: -.04em; }
.site-nav .zl i { font-style: normal; }
.site-nav .links { display: flex; gap: 28px; color: #000; }
.site-nav .sp { flex: 1; }
.site-nav .b1 { border: 1px solid #e6e6e6; height: 46px; padding: 0 22px; border-radius: 8px; display: grid; place-items: center; }
.site-nav .b2 { background: #000; color: #fff; height: 46px; padding: 0 22px; border-radius: 8px; display: grid; place-items: center; }
.site.mobile .site-nav { height: 60px; padding: 0 16px; }
.site.mobile .site-nav .links, .site.mobile .site-nav .b1 { display: none; }
.site.mobile .site-nav .zl { font-size: 24px; }
.site.mobile .site-nav .b2 { height: 38px; padding: 0 14px; font-size: 14px; }
.site-sec { padding: 72px 40px 96px; }
.site-sec h2 { font-size: 40px; font-weight: 400; letter-spacing: -.022em; line-height: 1.15; margin: 0 0 6px; max-width: 900px; }
.site-sec h2 span { color: #6b6b6b; }
.site-sec h2[contenteditable] { outline: none; border-radius: 6px; }
.site-sec h2[contenteditable]:hover { box-shadow: 0 0 0 1px #dedee3; }
.site-sec .lede { font-size: 40px; letter-spacing: -.022em; line-height: 1.15; color: #6b6b6b; margin: 0; max-width: 900px; }
.site.mobile .site-sec { padding: 40px 16px 56px; }
.site.mobile .site-sec h2, .site.mobile .site-sec .lede { font-size: 26px; }
.zl-stage { position: relative; overflow: hidden; margin-top: 48px; background: var(--tone, #fff); }
.zl-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.zl-stage.window .win { position: absolute; top: 8%; left: 6%; right: 6%; height: 100%; background: #fff; border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px -24px rgba(0,0,0,.3); }
.zl-stage.window video { position: static; width: 100%; height: auto; }
.site-page-media { margin-top: 40px; display: grid; place-items: center; }
.site-page-media video { max-width: 100%; display: block; }
.site-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 40px 72px; }
.site-foot div { display: grid; gap: 8px; }
.site-foot b { font-weight: 500; font-size: 18px; }
.site-foot span { color: #6b6b6b; font-size: 16px; line-height: 1.45; }
.site.mobile .site-foot { grid-template-columns: 1fr; padding: 0 16px 40px; gap: 24px; }

/* toast */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; justify-items: center; }
.toast { background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 9px; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); animation: rise .2s; }
.toast.bad { background: var(--bad); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,12,.85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* narrow screens */
@media (max-width: 980px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .chat { border-right: 0; border-bottom: 1px solid var(--border); height: 70vh; }
  .main { min-height: 80vh; }
  .top { padding: 0 10px; gap: 8px; }
  .hide-narrow { display: none !important; }
  .choices { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
