/* HOODNET Private AI */
:root {
  --bg: #0c0c0a;
  --bg-2: #121210;
  --panel: rgba(243, 240, 232, .035);
  --panel-2: rgba(243, 240, 232, .065);
  --line: rgba(243, 240, 232, .075);
  --line-2: rgba(243, 240, 232, .13);
  --text: #f3f0e8;
  --dim: rgba(243, 240, 232, .6);
  --faint: rgba(243, 240, 232, .38);
  --cream: #efe9dc;
  --forest: #1e3b25;
  --emerald: #2f7a45;
  --lime: #a2ee3a;
  --lime-2: #c6f77f;
  --danger: #ff7a59;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.7, .2, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --side: 288px;
  --ins: 380px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
::selection { background: var(--lime); color: #0b0f0a; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }
.dim { color: var(--faint); }
.spacer { flex: 1; }
[hidden] { display: none !important; }
svg { display: block; }

.app { position: relative; display: grid; grid-template-columns: var(--side) 1fr; height: 100vh; height: 100dvh; }
.app::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 58% -8%, rgba(46, 84, 52, .32), transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(232, 221, 190, .045), transparent 70%);
}

.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.only-mobile { display: none; }
.scrim { display: none; }

/* ───────── sidebar ───────── */
.side {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px 14px;
  border-right: 1px solid var(--line);
  background: rgba(14, 14, 12, .72);
  backdrop-filter: blur(20px);
  min-height: 0;
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--forest); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(162,238,58,.15); }
.mark svg { width: 15px; height: 15px; fill: var(--lime); }
.brand-txt { font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.brand-txt em { color: var(--lime); font-size: 18px; letter-spacing: -.01em; margin-left: 2px; }

.new-chat {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px 0 14px; border-radius: 12px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); font-weight: 500;
  transition: background .25s, border-color .25s;
}
.new-chat:hover { background: rgba(243, 240, 232, .1); border-color: rgba(243, 240, 232, .2); }
.new-chat svg { width: 16px; height: 16px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; }
.new-chat kbd { margin-left: auto; font: 11px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--panel); color: var(--faint); }

.ghost-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .3s, background .3s; }
.ghost-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.gt-track { position: relative; width: 34px; height: 20px; border-radius: 100px; background: rgba(255,255,255,.1); flex-shrink: 0; transition: background .3s; }
.gt-dot { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .35s var(--ease-out); }
.ghost-toggle input:checked ~ .gt-track { background: var(--lime); }
.ghost-toggle input:checked ~ .gt-track .gt-dot { transform: translateX(14px); background: #0b0f0a; }
.ghost-toggle:has(input:checked) { border-color: rgba(162, 238, 58, .35); background: rgba(162, 238, 58, .06); }
.ghost-toggle input:focus-visible ~ .gt-track { outline: 2px solid var(--lime); outline-offset: 2px; }
.gt-label b { display: block; font-weight: 500; font-size: 14px; }
.gt-label small { display: block; font-size: 12px; color: var(--faint); }

.side-label { padding: 6px 6px 0; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.history { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; min-height: 0; }
.h-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: none; text-align: left;
  color: var(--dim); font-size: 14px; transition: background .2s, color .2s;
}
.h-item span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.h-item:hover { background: var(--panel); color: var(--text); }
.h-item.active { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.h-item .h-del { opacity: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; flex-shrink: 0; }
.h-item:hover .h-del { opacity: .6; }
.h-item .h-del:hover { opacity: 1; background: rgba(255, 122, 89, .15); color: var(--danger); }
.h-del svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.h-empty { padding: 10px; font-size: 13px; color: var(--faint); }
.h-item.decrypting span { font-family: var(--mono); font-size: 12px; color: var(--faint); }

.vault { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: linear-gradient(180deg, rgba(162,238,58,.04), transparent); }
.vault-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.vault-head b { display: block; font-size: 13.5px; font-weight: 500; }
.vault-head small { color: var(--faint); font-size: 10.5px; }
.lock { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(162,238,58,.1); }
.lock svg { width: 15px; height: 15px; fill: none; stroke: var(--lime); stroke-width: 1.8; }
.burn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 122, 89, .22); background: rgba(255, 122, 89, .06); color: #ffb39f; font-size: 13px; transition: background .2s, border-color .2s; }
.burn:hover { background: rgba(255, 122, 89, .14); border-color: rgba(255, 122, 89, .4); }
.burn svg { width: 14px; height: 14px; fill: currentColor; }

/* ───────── main ───────── */
.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; position: relative; z-index: 4; }

.ident { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--panel); }
.ident b { font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
.id-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(162, 238, 58, .12); }
.id-sub { color: var(--faint); font-size: 11px; }

.shield-pill {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px 0 6px; border-radius: 100px;
  border: 1px solid rgba(162, 238, 58, .25); background: rgba(162, 238, 58, .06);
  transition: background .2s, border-color .2s;
}
.shield-pill:hover { background: rgba(162, 238, 58, .12); border-color: rgba(162, 238, 58, .45); }
.sp-ring { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(162, 238, 58, .14); }
.sp-ring::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(162, 238, 58, .5); animation: pulse 2.6s ease-out infinite; }
.sp-ring svg { width: 15px; height: 15px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-txt { text-align: left; line-height: 1.15; }
.sp-txt b { display: block; font-size: 13px; font-weight: 600; color: var(--lime); }
.sp-txt small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.shield-pill.busy .sp-ring::after { animation-duration: .9s; }

.demo-banner { margin: 0 22px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(230, 200, 110, .35); background: rgba(230, 200, 110, .06); font-size: 13px; color: #ecd598; }
.demo-banner .mono { text-transform: uppercase; letter-spacing: .08em; margin-right: 8px; color: #f3dc8f; }

/* thread */
.thread { position: relative; flex: 1; overflow-y: auto; padding: 10px 22px 30px; scroll-behavior: smooth; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.msgs { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }

/* empty state */
.thread:has(.empty:not([hidden])) { display: flex; flex-direction: column; }
.empty:not([hidden]) + .msgs { display: none; }
.empty { width: 100%; max-width: 760px; margin: auto; padding: 0 0 4vh; text-align: center; animation: rise 1.1s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.orb { position: relative; width: 150px; height: 150px; margin: 0 auto 22px; }
.orb::before { content: ""; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(162, 238, 58, .16), transparent 62%); animation: halo 9s ease-in-out infinite; }
.orb-core {
  position: absolute; inset: 44px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 50% 60%, #b8f26a 0, #7cc84a 38%, #2e6b3b 72%, #13291a 100%);
  box-shadow: 0 0 50px rgba(162, 238, 58, .32), inset 0 -10px 22px rgba(0, 0, 0, .4), inset 0 2px 6px rgba(255,255,255,.35);
  animation: breathe 9s ease-in-out infinite;
}
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243, 240, 232, .07); }
.orb-ring.r1 { inset: 26px; border-style: dashed; border-color: rgba(162, 238, 58, .22); animation: spin 120s linear infinite; }
.orb-ring.r2 { inset: 8px; transform: rotateX(72deg); border-color: rgba(162, 238, 58, .28); animation: tilt 70s linear infinite; }
.orb-ring.r3 { inset: -6px; }
.orb-cipher { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; pointer-events: none; mask-image: radial-gradient(circle, transparent 36%, #000 48%, transparent 72%); -webkit-mask-image: radial-gradient(circle, transparent 36%, #000 48%, transparent 72%); }
@keyframes breathe { 50% { transform: scale(1.025); box-shadow: 0 0 70px rgba(162, 238, 58, .4), inset 0 -10px 22px rgba(0, 0, 0, .4), inset 0 2px 6px rgba(255,255,255,.35); } }
@keyframes halo { 50% { opacity: .6; transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tilt { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }

.empty h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 0 0 14px; }
.empty h1 em { color: var(--lime); font-size: 1.06em; letter-spacing: -.02em; }
.empty-sub { max-width: 500px; margin: 0 auto; color: var(--dim); font-size: 15px; }

/* messages */
.msg { display: flex; gap: 14px; animation: msgIn .6s var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg.user { justify-content: flex-end; }
.ucol { display: flex; flex-direction: column; align-items: flex-end; max-width: 82%; }
.ucol .bubble { max-width: 100%; }
.bubble { position: relative; max-width: 82%; }
.msg.user .bubble { padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--cream); color: #12120f; white-space: pre-wrap; word-wrap: break-word; }
.msg.user .bubble .scr { font-family: var(--mono); font-size: .92em; color: #2f6b3c; }
.av { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: #17261a; box-shadow: 0 0 0 1px rgba(162,238,58,.18); margin-top: 2px; }
.av svg { width: 14px; height: 14px; fill: var(--lime); }
.msg.bot .bubble { max-width: calc(100% - 44px); flex: 1; color: rgba(245, 242, 235, .92); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg.user .meta { justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 100px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); background: var(--panel); border: 1px solid var(--line); cursor: default; }
.chip svg { width: 11px; height: 11px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip.live { color: var(--lime); border-color: rgba(162, 238, 58, .25); }
.chip.err { color: var(--danger); border-color: rgba(255, 122, 89, .3); }
.chip button { all: unset; cursor: pointer; }

/* sealing animation line under user msg */
.seal-line { height: 2px; margin-top: 10px; border-radius: 2px; background: rgba(18, 18, 15, .1); overflow: hidden; }
.seal-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald), var(--lime)); transition: width .7s var(--ease); }

/* rendered markdown */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md h1, .md h2, .md h3 { font-weight: 600; letter-spacing: -.02em; margin: 18px 0 8px; line-height: 1.25; }
.md h1 { font-size: 20px; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md li::marker { color: var(--lime); }
.md strong { color: var(--text); font-weight: 600; }
.md a { color: var(--lime); }
.md code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); color: var(--lime-2); }
.md pre { position: relative; margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: #070a06; border: 1px solid var(--line); overflow-x: auto; }
.md pre code { padding: 0; background: none; color: rgba(245,242,235,.88); font-size: 12.5px; line-height: 1.65; }
.md pre .lang { position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 10px; color: var(--faint); text-transform: uppercase; }
.md blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 2px solid var(--emerald); color: var(--dim); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.md table { border-collapse: collapse; margin: 0 0 12px; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; }

/* live decrypt tail */
.tail { font-family: var(--mono); font-size: .9em; color: var(--lime); opacity: .85; }
.cursor { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.thinking .hopdots { display: inline-flex; gap: 4px; }
.thinking .hopdots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,242,235,.2); transition: background .3s, box-shadow .3s; }
.thinking .hopdots i.on { background: var(--lime); box-shadow: 0 0 8px var(--lime); }

/* composer */
.composer-wrap { padding: 0 22px 16px; position: relative; z-index: 3; }
.composer-wrap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.composer {
  max-width: 780px; margin: 0 auto;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(22, 22, 19, .82); backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  padding: 12px 12px 10px 16px;
  transition: border-color .3s, box-shadow .3s;
}
.composer:focus-within { border-color: rgba(243, 240, 232, .22); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 4px rgba(243, 240, 232, .04); }
.composer textarea { width: 100%; resize: none; border: 0; outline: 0; background: none; color: var(--text); font: 15.5px/1.55 var(--sans); max-height: 220px; padding: 4px 0; }
.composer textarea::placeholder { color: var(--faint); }
.composer-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.seal-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; transition: color .3s; }
.sh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.composer:focus-within .seal-hint { color: var(--dim); }
.composer:focus-within .sh-dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.send { width: 38px; height: 38px; border-radius: 12px; border: 0; display: grid; place-items: center; background: var(--cream); color: #12120f; transition: transform .3s var(--ease-out), opacity .2s, background .2s; }
.send:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.send:disabled { opacity: .3; cursor: default; }
.send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stop { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; }
.stop svg { width: 12px; height: 12px; fill: currentColor; }
.fine { max-width: 780px; margin: 8px auto 0; text-align: center; font-size: 11.5px; color: var(--faint); }

/* ───────── inspector ───────── */
.inspector {
  position: fixed; top: 10px; right: 10px; bottom: 10px; width: var(--ins); z-index: 30;
  display: flex; flex-direction: column;
  border-radius: 22px; border: 1px solid var(--line-2);
  background: rgba(16, 16, 14, .95); backdrop-filter: blur(24px);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,.8);
  transform: translateX(calc(100% + 20px)); transition: transform .6s var(--ease-out);
  overflow: hidden;
}
.inspector.open { transform: none; }
.ins-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px 12px; }
.ins-head h2 { margin: 6px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.ins-head h2 em { color: var(--lime); }
.ins-head .mono { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.flow { list-style: none; margin: 0; padding: 6px 20px 24px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.fl { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.fl::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.fl:last-child::before { display: none; }
.fl-dot { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 4px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); flex-shrink: 0; transition: all .4s; }
.fl.lit .fl-dot { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 12px var(--lime); }
.fl-body { flex: 1; min-width: 0; }
.fl-body > b { display: block; font-weight: 500; font-size: 15px; }
.fl-body > small { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; margin: 0 0 10px; font-size: 12.5px; }
.kv dt { color: var(--faint); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.kv dd { margin: 0; color: rgba(245,242,235,.85); word-break: break-all; }
.kv dd.mono { font-size: 11.5px; color: var(--lime-2); }
.cipher {
  margin: 0; padding: 10px 12px; border-radius: 10px; max-height: 120px; overflow: hidden;
  background: #070a06; border: 1px solid var(--line);
  font-size: 10.5px; line-height: 1.55; color: rgba(162, 238, 58, .6); white-space: pre-wrap; word-break: break-all;
  mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent);
}

/* dialog */
.confirm { border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; width: min(420px, calc(100vw - 32px)); background: #121810; color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.confirm::backdrop { background: rgba(5, 7, 4, .7); backdrop-filter: blur(6px); }
.confirm[open] { animation: pop .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.confirm h3 { margin: 14px 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.confirm p { margin: 0 0 22px; color: var(--dim); font-size: 14.5px; }
.burn-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 122, 89, .12); }
.burn-ico svg { width: 20px; height: 20px; fill: var(--danger); }
.confirm-row { display: flex; gap: 10px; justify-content: flex-end; }
.btn-ghost, .btn-danger { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--panel); }
.btn-danger { border: 0; background: var(--danger); color: #1a0d08; }

/* burn flash */
.app.burning::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; background: radial-gradient(circle at 15% 90%, rgba(255, 122, 89, .35), transparent 60%); animation: burnFlash 1.2s var(--ease) forwards; }
@keyframes burnFlash { to { opacity: 0; } }

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .only-mobile { display: grid; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .5s var(--ease-out); z-index: 40; background: #0c110b; }
  .app.side-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .app.side-open .scrim { opacity: 1; pointer-events: auto; }
  .top { padding: 12px 14px; }
  .thread { padding: 6px 16px 24px; }
  .composer-wrap { padding: 0 12px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .demo-banner { margin: 0 14px; }
  .id-sub { display: none; }
  .inspector { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 82dvh; transform: translateY(calc(100% + 20px)); }
  .sp-txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
.md em.i { font-family: inherit; font-style: italic; }
