/* navaja.dev: one stylesheet for every tool */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede8;
  --ink: #16171a;
  --muted: #676a71;
  --line: #e2dfd8;
  --accent: #d9442a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6e0;
  --ok: #1f8a4c;
  --bad: #c2341d;
  --shadow: 0 1px 2px rgb(20 20 20 / 0.04), 0 8px 24px -12px rgb(20 20 20 / 0.12);
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --surface: #17191d;
    --surface-2: #1e2126;
    --ink: #ecebe8;
    --muted: #9b9ea5;
    --line: #2a2d33;
    --accent: #ff6845;
    --accent-ink: #160a06;
    --accent-soft: #3a1c15;
    --ok: #4cc27f;
    --bad: #ff6a55;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

h1, h2 { letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 680; }
h2 { font-size: 1.35rem; font-weight: 650; }
.h-small { font-size: 0.95rem; font-weight: 600; margin: 0; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1rem; max-width: 46ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 0; }

/* ---------- buttons ---------- */
button {
  font: inherit;
  font-weight: 560;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: inherit;
  background: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.ghost { border-color: var(--line); background: var(--surface); }
.ghost:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.small { padding: 0.38rem 0.75rem; font-size: 0.88rem; border-radius: 8px; }
.danger { color: var(--bad); }
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem max(16px, env(safe-area-inset-left));
  max-width: 980px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 680; letter-spacing: -0.02em; font-size: 1.1rem; }
.crumb { color: var(--muted); font-family: var(--mono); font-size: 0.92rem; }
.topbar-right { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.pill[data-kind="ok"] .dot, .dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.pill[data-kind="wait"] .dot { background: #d9a21b; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 64px; }
.app .wrap { max-width: 760px; }

/* ---------- panels & cards ---------- */
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.panel.center { text-align: center; padding: 2.5rem 1.25rem; }
.panel.center .lead { margin-inline: auto; }

/* ---------- start view ---------- */
.hero-small { padding: 2.5rem 0 1.5rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-btn {
  text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem;
  min-height: 190px; padding: 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-image: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #fff 18%, transparent), transparent 60%);
}
.card-title { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
.card-sub { font-weight: 450; opacity: 0.85; }
.join-card { display: flex; flex-direction: column; gap: 0.75rem; }
.join-form { display: flex; gap: 0.5rem; }
.code-input {
  flex: 1; min-width: 0;
  font: 600 1.35rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
}
.join-card .hint { margin: 0; }
.nearby { border-top: 1px dashed var(--line); padding-top: 0.75rem; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.nearby-item { width: 100%; display: flex; justify-content: space-between; border: 1px solid var(--line); background: var(--bg); font-weight: 500; }
.nearby-item:hover { border-color: var(--accent); }
.nb-age { color: var(--muted); font-size: 0.85rem; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; color: var(--muted); font-size: 0.93rem; }
.facts strong { color: var(--ink); display: block; font-weight: 600; }

/* ---------- pending ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 140px)); justify-content: center; gap: 0.75rem; margin: 1.5rem 0; }
.choice-num { font-size: 2rem; font-weight: 650; padding: 1rem 0; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; }
.choice-num:hover:not(:disabled) { border-color: var(--accent); }
.choice-num.ok { border-color: var(--ok); color: var(--ok); opacity: 1; }
.choice-num.bad { border-color: var(--bad); color: var(--bad); text-decoration: line-through; }

/* ---------- channel ---------- */
#channelView { display: grid; gap: 1rem; padding-top: 1rem; }
.invite { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; }
.qr { width: 220px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.big-code { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.14em; margin: 0 0 0.75rem; color: var(--accent); }

.composer { display: grid; gap: 0.75rem; padding: 0.9rem; }
.composer textarea {
  width: 100%; resize: vertical; min-height: 84px;
  font: 15px/1.5 var(--mono); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem;
}
.composer-bar { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { padding: 0.35rem 0.8rem; font-size: 0.88rem; border-radius: 7px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }

.list-head { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.toggle { display: inline-flex; gap: 0.4rem; align-items: center; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--accent); }
.paste-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.paste {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem;
  animation: pop 0.25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.paste-text {
  grid-column: 1 / -1; margin: 0; font: 14.5px/1.5 var(--mono);
  white-space: pre-wrap; word-break: break-word; max-height: 14rem; overflow: auto;
}
.paste-meta { display: flex; gap: 0.75rem; font-size: 0.82rem; color: var(--muted); align-items: center; }
.paste-actions { display: flex; gap: 0.4rem; }
.empty { color: var(--muted); text-align: center; padding: 1.5rem 0; margin: 0; }
.channel-foot { display: flex; justify-content: space-between; margin-top: 0.5rem; }

/* ---------- dialogs ---------- */
.dialog {
  border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem;
  width: min(420px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.dialog::backdrop { background: rgb(10 10 12 / 0.45); backdrop-filter: blur(2px); }
.dialog .hint { margin-bottom: 1.25rem; }
.dialog .row.end { margin-top: 1rem; }
.sas { font-size: 3.5rem; font-weight: 700; text-align: center; letter-spacing: 0.08em; margin: 0.5rem 0; color: var(--accent); }
.device-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.device-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 10px;
  font-size: 0.92rem; transition: 0.2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; padding: 3.5rem 0 3rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-art { justify-self: center; width: min(320px, 70vw); }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool {
  display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow); min-height: 150px; transition: border-color 0.15s, transform 0.15s;
}
a.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-path { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }
.tool-name { font-weight: 650; font-size: 1.1rem; }
.tool-desc { color: var(--muted); font-size: 0.93rem; }
.tool.soon { box-shadow: none; background: transparent; border-style: dashed; }
.tool.soon .tool-path { color: var(--muted); }
.badge { align-self: flex-start; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.15rem 0.5rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.tool.soon .badge { background: var(--surface-2); color: var(--muted); }
.footer { max-width: 980px; margin: 0 auto; padding: 2rem 16px 3rem; color: var(--muted); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .choice, .facts, .tools { grid-template-columns: 1fr; }
  .card-btn { min-height: 130px; }
  .invite { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .invite .row { justify-content: center; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-art { order: -1; width: 180px; }
  .crumb { display: none; }
}

.btn-link { display: inline-flex; align-items: center; text-decoration: none; font-weight: 560; padding: 0.7rem 1.2rem; border-radius: 10px; }
.btn-link.primary:hover { filter: brightness(1.06); }
.tools-h { margin-bottom: 1rem; }

/* ---------- idle warning + copied prompt ---------- */
.idle-bar, .copied-bar {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; justify-content: center;
  width: min(560px, calc(100vw - 32px)); padding: 0.8rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.idle-bar { top: max(16px, env(safe-area-inset-top)); border-color: var(--accent); }
.idle-bar p { margin: 0; flex: 1 1 220px; }
.idle-bar strong { color: var(--accent); }
.copied-bar { bottom: max(72px, calc(env(safe-area-inset-bottom) + 56px)); font-size: 0.95rem; }
.copied-bar > span:first-child { flex: 1 1 200px; }
.idle-bar[hidden], .copied-bar[hidden] { display: none; }
.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.seg { flex-wrap: wrap; }

/* ---------- paste: how-to + FAQ (also what search engines read) ---------- */
.seo { margin: 3.5rem 0 1rem; max-width: 72ch; }
.seo h2 { margin-top: 2.2rem; }
.seo p { color: var(--muted); line-height: 1.65; }
.steps { padding-left: 1.2rem; display: grid; gap: 0.7rem; color: var(--muted); line-height: 1.6; }
.steps strong { color: var(--ink); }
.faq-item { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0.6rem 0 0; }
html.booting #startView { display: none; }

/* ---------- public counters ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; margin: 0 0 1.5rem; }
.stats[hidden] { display: none; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--mono); font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dt { font-size: 0.82rem; color: var(--muted); }
.ver { font-size: 0.8rem; opacity: 0.8; margin-left: 0.35rem; }
.app .footer { max-width: 760px; }
html.booting .footer { display: none; }

/* ---------- json tool ---------- */
.tool-head { padding: 2rem 0 1.25rem; }
.tool-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.tool-head .lead { max-width: 62ch; }
.editor-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.editor-bar, .editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.7rem 0.8rem; }
.editor-bar { border-bottom: 1px solid var(--line); }
.editor-foot { border-top: 1px solid var(--line); }
.editor { position: relative; display: grid; grid-template-columns: auto 1fr; height: min(62vh, 640px); min-height: 280px; background: var(--bg); }
.editor .gutter, .editor textarea { font-size: 13.5px; line-height: 21px; padding: 12px 0; margin: 0; }
.gutter { overflow: hidden; text-align: right; color: var(--muted); opacity: 0.7; padding-inline: 12px 10px !important; border-right: 1px solid var(--line); user-select: none; min-width: 3.2rem; background: var(--surface-2); }
.editor textarea { width: 100%; height: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--ink); padding-inline: 12px !important; white-space: pre; overflow: auto; tab-size: 2; }
.editor textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.err-line { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; background: color-mix(in srgb, var(--bad) 14%, transparent); border-left: 3px solid var(--bad); }
.drop-hint { position: absolute; inset: 8px; display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--accent); font-weight: 600; pointer-events: none; }
.small-text { font-size: 0.82rem; }
.result { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: opacity 0.15s; }
.result.stale { opacity: 0.55; }
.result.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.result.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.result-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.result-icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #fff; }
.result.ok .result-icon { background: var(--ok); }
.result.bad .result-icon { background: var(--bad); }
.result.ok strong { color: var(--ok); }
.result.bad strong { color: var(--bad); }
.result-msg { margin: 0.6rem 0 0; font-weight: 550; }
.result-hint { margin: 0.25rem 0 0; color: var(--muted); }
.snippet { margin: 0.75rem 0; padding: 0.6rem 0.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.snippet .caret { color: var(--bad); font-weight: 700; }
.warnings { margin-top: 0.75rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.warn-title { margin: 0 0 0.4rem; font-weight: 600; color: #b7791f; }
.warn-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 550; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
.seo code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 5px; color: var(--ink); }
@media (max-width: 720px) {
  .editor { height: 52vh; }
  .editor .gutter, .editor textarea { font-size: 13px; }
  .editor-bar { flex-direction: column; align-items: stretch; }
  .editor-bar .row { flex-wrap: wrap; }
  .editor-bar .row button { min-width: 0; padding-inline: 0.6rem; }
  .editor-bar .row button, .editor-bar .seg { flex: 1; }
  .editor-bar .seg button { flex: 1; }
}

/* ---------- json: mode tabs + bulk ---------- */
.mode-tabs { margin: 0 0 1rem; }
.mode-tabs button { color: var(--muted); }
.mode-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); padding: 2.5rem 1.25rem; text-align: center; transition: border-color 0.15s, background 0.15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-title { font-weight: 650; font-size: 1.15rem; margin: 0; }
.dropzone .hint { max-width: 60ch; margin: 0.4rem auto 1.1rem; }
.center-row { justify-content: center; }
.bulk-results { margin-top: 1rem; }
.bulk-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.bulk-summary { margin: 0; }
.sum-ok { color: var(--ok); }
.sum-bad { color: var(--bad); }
.progress { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 0.6rem; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.bulk-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.bulk-item + .bulk-item { border-top: 1px solid var(--line); }
.bulk-list.only-bad .bulk-item.ok { display: none; }
.bulk-row { width: 100%; display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 0.6rem; align-items: center; text-align: left; border-radius: 0; padding: 0.55rem 0.9rem; font-weight: 450; }
.bulk-row:hover { background: var(--bg); }
.bulk-name { font-size: 0.88rem; overflow-wrap: anywhere; }
.bulk-size { font-size: 0.8rem; }
.bulk-icon { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--muted); }
.bulk-item.ok .bulk-icon { background: var(--ok); }
.bulk-item.bad .bulk-icon { background: var(--bad); }
.bulk-item.warn .bulk-icon { background: #b7791f; }
.bulk-detail { grid-column: 2 / -1; display: grid; gap: 0.15rem; }
.bulk-msg { font-size: 0.9rem; }
.bulk-item.bad .bulk-msg { color: var(--bad); }
.warn-text { color: #b7791f; }
.bulk-hint { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 720px) {
  .mode-tabs { display: flex; }
  .mode-tabs button { flex: 1; }
}

/* ---------- json: schema panel, repair, schema errors ---------- */
.schema-box { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.schema-box > summary { cursor: pointer; padding: 0.75rem 1rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; font-weight: 600; list-style: none; }
.schema-box > summary::-webkit-details-marker { display: none; }
.schema-box > summary::before { content: "▸"; color: var(--muted); transition: transform 0.15s; display: inline-block; }
.schema-box[open] > summary::before { transform: rotate(90deg); }
.schema-box > summary .dim { font-weight: 450; font-size: 0.9rem; }
.schema-badge { align-self: center; }
.schema-body { padding: 0 1rem 1rem; display: grid; gap: 0.6rem; }
.schema-body textarea { width: 100%; resize: vertical; font-size: 13px; line-height: 1.5; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); white-space: pre; overflow: auto; }
.schema-foot { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.schema-status { font-size: 0.85rem; color: var(--muted); }
.schema-status.ok { color: var(--ok); }
.schema-status.bad { color: var(--bad); }
.fixes { margin-top: 0.75rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.fix-title { margin: 0 0 0.35rem; font-weight: 600; }
.fix-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.2rem; font-size: 0.93rem; }
.schema-errors { margin: 0.75rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: 0.93rem; }
.schema-errors .path { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 5px; }
.result .row { margin-top: 0.25rem; }
.repair-note { margin-top: 0.6rem; }

/* ---------- json: compare ---------- */
.compare-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.compare-panes { display: grid; grid-template-columns: 1fr 1fr; }
.compare-pane + .compare-pane { border-left: 1px solid var(--line); }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.compare-pane textarea { display: block; width: 100%; height: min(48vh, 480px); min-height: 220px; resize: vertical; border: 0; outline: none; background: var(--bg); color: var(--ink); padding: 12px; font-size: 13px; line-height: 20px; white-space: pre; overflow: auto; tab-size: 2; }
.compare-pane textarea:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.compare-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.7rem 0.8rem; border-top: 1px solid var(--line); }
.result.diff { border-color: color-mix(in srgb, #b7791f 50%, var(--line)); }
.result.diff .result-icon { background: #b7791f; }
.result.diff strong { color: #b7791f; }
.result-head .ghost.small { margin-left: auto; }
.diff-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.diff-item { display: grid; grid-template-columns: 1.2rem auto 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.diff-sym { font-weight: 700; text-align: center; }
.diff-item.added .diff-sym { color: var(--ok); }
.diff-item.removed .diff-sym { color: var(--bad); }
.diff-item.changed .diff-sym { color: #b7791f; }
.diff-item .path { font-family: var(--mono); font-size: 0.85em; background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
.diff-body { overflow-wrap: anywhere; }
.diff-body .old { color: var(--bad); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.diff-item.removed .diff-body .old { text-decoration: none; }
.diff-body .new { color: var(--ok); }
.diff-body .mono { font-size: 0.88em; }
.arrow { color: var(--muted); }
.diff-links { display: inline-flex; gap: 0.5rem; }
@media (max-width: 720px) {
  .compare-panes { grid-template-columns: 1fr; }
  .compare-pane + .compare-pane { border-left: 0; border-top: 1px solid var(--line); }
  .compare-pane textarea { height: 30vh; }
  .diff-item { grid-template-columns: 1.2rem 1fr; }
  .diff-body, .diff-links { grid-column: 2; }
}

/* ---------- blades: shared tool layout ---------- */
.io-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.io-card.over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.io-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.io-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); }
.io-panes { display: grid; grid-template-columns: 1fr 1fr; }
.io-pane { display: flex; flex-direction: column; min-width: 0; }
.io-pane + .io-pane { border-left: 1px solid var(--line); }
.io-pane textarea, .io-text { display: block; width: 100%; height: min(40vh, 400px); min-height: 180px; resize: vertical; border: 0; outline: none; background: var(--bg); color: var(--ink); padding: 12px; font-size: 13.5px; line-height: 1.55; overflow: auto; flex: 1; }
.io-pane textarea:focus-visible, .io-text:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.io-pane textarea.wrap-any { word-break: break-all; }
.io-pane textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad) 55%, transparent); }
.io-status { font-size: 0.85rem; color: var(--muted); min-height: 1.3em; }
.io-status.bad { color: var(--bad); }
.io-status.ok { color: var(--ok); }
.opts { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; align-items: center; }
.field { display: grid; gap: 0.3rem; font-size: 0.88rem; color: var(--muted); }
.field input[type="text"], .field input[type="number"], .field input:not([type]), .field select, .input {
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 0.5rem 0.65rem; min-width: 0;
}
.field input:focus-visible, .field select:focus-visible, .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.kv { display: grid; grid-template-columns: max-content 1fr auto; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 0.5rem 0.2rem; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 0.88rem; padding-right: 1rem; }
.kv dd { font-family: var(--mono); font-size: 0.9rem; overflow-wrap: anywhere; }
.kv dd.act { padding-left: 0.5rem; }
.binary-box { min-width: 0; display: grid; gap: 0.6rem; padding: 0.9rem; background: var(--bg); flex: 1; min-height: 180px; align-content: start; }
.binary-box img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; justify-self: start; }
.hexdump { max-width: 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-x: auto; white-space: pre; }
.more-tools { margin: 2.5rem 0 0; max-width: 72ch; }
.more-tools ul { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.more-tools a { display: inline-block; text-decoration: none; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 0.9rem; }
.more-tools a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .io-panes { grid-template-columns: 1fr; }
  .io-pane + .io-pane { border-left: 0; border-top: 1px solid var(--line); }
  .io-pane textarea { height: 28vh; }
  .kv { grid-template-columns: 1fr auto; }
  .kv dt { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
}

/* ---------- jwt ---------- */
.mode-tabs.flat { margin: 0; }
.io-pane textarea.tall { height: min(56vh, 560px); }
.io-pane textarea.short { height: 90px; min-height: 70px; flex: none; }
.jwt-out { background: var(--bg); }
.jwt-pre { margin: 0; padding: 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 3rem; border-left: 3px solid transparent; }
.jwt-hdr { border-left-color: var(--accent); }
.jwt-pl { border-left-color: #7c4dbd; flex: 1; }
.jwt-h { color: var(--accent); }
.jwt-p { color: #7c4dbd; }
@media (prefers-color-scheme: dark) { .jwt-pl { border-left-color: #b392f0; } .jwt-p { color: #b392f0; } }
.jwt-out .pane-head + .jwt-pre { border-top: 0; }
.jwt-out .jwt-pre + .pane-head { border-top: 1px solid var(--line); }
.pad-pane { padding: 0.9rem; gap: 0.75rem; background: var(--surface); }
.field-row { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; }
.field-row .field { flex: 1 1 160px; }
.key-input { width: 100%; min-height: 84px; resize: vertical; font-family: var(--mono) !important; font-size: 12.5px !important; line-height: 1.5; }
.pad-pane textarea { height: 96px; flex: none; padding: 0.5rem 0.65rem; background: var(--bg); border: 1px solid var(--line); }
.small-select { padding: 0.3rem 0.5rem !important; font-size: 0.85rem !important; }
.jwt-details { display: grid; gap: 1.25rem; }
.jwt-details[hidden] { display: none; }
.jwt-details .h-small { margin-bottom: 0.5rem; }
.jwt-warn { border-left: 3px solid #b7791f; padding-left: 0.75rem; }
.jwt-warn .warn-title { margin-top: 0; }
.claims-kv { grid-template-columns: max-content 1fr; }
@media (max-width: 720px) { .claims-kv { grid-template-columns: minmax(0, 1fr); } }
.claim-time { font-family: var(--font); font-size: 0.82rem; }
.verify { display: grid; gap: 0.5rem; }
.verify .io-status { margin: 0; font-weight: 550; }

/* ---------- uuid ---------- */
.gen-opts { display: grid; gap: 0.75rem; padding: 0.9rem; }
.gen-opts > .seg { justify-self: start; }
.kind-note { margin: 0; }
.inline-field { display: inline-flex; align-items: center; gap: 0.5rem; }
.count-input { width: 6.5rem; }
.v5-box { display: grid; gap: 0.6rem; max-width: 560px; }
.pane-head.bordered { border-top: 1px solid var(--line); }
textarea.io-text { display: block; resize: vertical; }
textarea.short-io { height: 140px; min-height: 90px; }
.ins-list { list-style: none; margin: 0; padding: 0 0.9rem; display: grid; gap: 0; }
.ins-item { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.ins-head { font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; margin-bottom: 0.4rem; }
.ins-item.bad .ins-head { color: var(--bad); }
.ins-bad { margin: 0; color: var(--muted); font-size: 0.9rem; }
.ins-empty { padding: 0 0.9rem 0.9rem; }

/* ---------- timestamp ---------- */
.now-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.now-card .eyebrow { margin: 0; }
.now-card p { margin: 0; }
.now-big { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 680; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ts-in { padding: 0.9rem; display: grid; gap: 0.5rem; }
.big-input { font-size: 1.15rem !important; padding: 0.7rem 0.8rem !important; width: 100%; }
.ts-kv { margin: 0 0.9rem; grid-template-columns: max-content 1fr auto; }
.ts-kv dd.act { text-align: right; }
.ts-card2 { margin-top: 1rem; }
.ts-date { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 0.9rem; }
.ts-date .input { width: 100%; }
@media (max-width: 720px) {
  .ts-date { grid-template-columns: 1fr; }
  .ts-kv { grid-template-columns: minmax(0, 1fr) auto; }
  .ts-kv dt { grid-column: 1 / -1; }
}
.steps > li { min-width: 0; }
.seo code { overflow-wrap: anywhere; }
.kv dd.act button { font-family: var(--font); }

/* ---------- regex ---------- */
.regex-top { padding: 0.9rem; display: grid; gap: 0.6rem; border-bottom: 1px solid var(--line); }
.regex-line { display: flex; align-items: center; gap: 0.2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 0.6rem; }
.regex-line:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.slash { color: var(--muted); font-size: 1.2rem; }
.regex-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 1.05rem; padding: 0.65rem 0.2rem; }
.regex-input[aria-invalid="true"] { color: var(--bad); }
.flags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.flag { display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.2rem 0.55rem; cursor: pointer; font-size: 0.9rem; background: var(--surface); }
.flag:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.flag:has(input:disabled) { opacity: 0.45; cursor: default; }
.flag input { accent-color: var(--accent); margin: 0; }
.regex-preview { flex: 1; height: min(40vh, 400px); min-height: 180px; overflow: auto; padding: 12px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); }
.regex-preview mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--accent); }
.regex-preview mark.alt { background: color-mix(in srgb, #2f7fd1 22%, transparent); box-shadow: inset 0 -2px 0 #2f7fd1; }
.regex-preview mark.empty { display: inline-block; width: 2px; height: 1.2em; vertical-align: text-bottom; background: var(--accent); }
.literal { font-size: 0.85rem; background: var(--surface-2); padding: 0.15rem 0.4rem; border-radius: 6px; overflow-wrap: anywhere; max-width: 60ch; }
.replace-box { padding: 0.9rem; display: grid; gap: 0.6rem; border-top: 1px solid var(--line); }
.replace-box .input { width: 100%; }
.pane-head.bare { padding: 0; border: 0; }
.replace-box textarea { border: 1px solid var(--line); border-radius: 10px; }
.regex-side { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.match-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; max-height: 420px; overflow: auto; }
.match-list li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.m-head { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.88rem; }
.m-val { background: var(--surface-2); padding: 0.05rem 0.35rem; border-radius: 5px; overflow-wrap: anywhere; }
.m-groups { display: grid; grid-template-columns: max-content 1fr; gap: 0.1rem 0.6rem; margin: 0.35rem 0 0 1rem; font-size: 0.85rem; }
.m-groups dt { font-family: var(--mono); color: var(--accent); }
.m-groups dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.preset-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
@media (max-width: 720px) { .regex-side { grid-template-columns: 1fr; } .regex-preview { height: 28vh; } }
.regex-top .io-status, .ts-in .io-status { margin: 0; }

/* ---------- password ---------- */
.pw-out { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; padding: 1rem 0.9rem 0.6rem; }
.pw-field { flex: 1 1 320px; min-width: 0; font-size: 1.25rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.pw-field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0.9rem; }
.meter span { height: 6px; border-radius: 99px; background: var(--surface-2); }
.meter[data-level="0"] span:nth-child(-n+1) { background: var(--bad); }
.meter[data-level="1"] span:nth-child(-n+2) { background: #d9822b; }
.meter[data-level="2"] span:nth-child(-n+3) { background: #c9a227; }
.meter[data-level="3"] span:nth-child(-n+4) { background: var(--ok); }
.meter[data-level="4"] span { background: var(--ok); }
.pw-strength { margin: 0.5rem 0.9rem 0.2rem; }
.pw-opts { padding: 0.9rem; display: grid; gap: 0.8rem; border-top: 1px solid var(--line); margin-top: 0.6rem; }
.pw-opts input[type="range"] { width: 100%; accent-color: var(--accent); }
.pw-opts .field strong { color: var(--ink); }
.pw-opts .input { max-width: 320px; }
.masked { filter: blur(6px); }

/* ---------- hash ---------- */
.hash-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem 0.9rem 0; }
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; flex: 1 1 320px; }
.key-row .input { flex: 1 1 220px; min-width: 0; }
.hash-opts .io-status { flex-basis: 100%; margin: 0; }
.hash-kv { margin-top: 0.5rem; }
.hash-kv dt.match { color: var(--ok); font-weight: 650; }
.hash-kv dd.match { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.hash-verify { padding: 0.9rem; border-top: 1px solid var(--line); margin-top: 0.6rem; }
.hash-verify .io-status { margin: 0.4rem 0 0; }
#fileView .dropzone { margin: 0.9rem; }

/* ---------- bcrypt ---------- */
.bc-view { padding: 0.9rem; display: grid; gap: 0.8rem; }
.bc-view .field { display: grid; gap: 0.35rem; }
.bc-view .hint, .bc-view .io-status { margin: 0; }
.bc-view input[type="range"] { width: 100%; accent-color: var(--accent); }
.out-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.out-row .input { flex: 1 1 260px; min-width: 0; }
.bc-progress { display: block; width: calc(100% - 1.8rem); margin: 0 0.9rem 0.9rem; height: 6px; accent-color: var(--accent); }
.bc-parts { border-top: 1px solid var(--line); padding: 0.6rem 0.9rem 0.9rem; }
.bc-parts .kv { grid-template-columns: max-content 1fr; }
@media (max-width: 720px) { .bc-parts .kv { grid-template-columns: minmax(0, 1fr); } }
.bc-parts .pane-head { padding: 0 0 0.4rem; border: 0; background: none; }
.io-status.warn-text { color: #b7791f; }

/* ---------- url ---------- */
.url-parts { border-top: 1px solid var(--line); padding: 0.6rem 0.9rem 0.9rem; }
.url-parts .pane-head { padding: 0 0 0.4rem; border: 0; background: none; margin: 0; }
.url-parts .kv dd { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-top: 0.6rem; }
table.params { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.params th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8rem; padding: 0.4rem 0.2rem; border-bottom: 1px solid var(--line); }
table.params td { font-family: var(--mono); padding: 0.45rem 0.2rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
table.params td:first-child { width: 30%; padding-right: 0.8rem; }
#modeNote { flex: 1 1 200px; }

/* ---------- case ---------- */
.case-status { margin: 0.5rem 0.9rem 0; }
.case-kv { margin-top: 0.4rem; }
.case-kv dd.case-val { white-space: pre-wrap; }

/* ---------- yaml ---------- */
.yaml-opts { align-items: center; gap: 0.4rem 0.6rem; flex-wrap: wrap; }
.opt-pair { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- cron ---------- */
.cron-card { padding: 1rem 1rem 1.1rem; }
.cron-top { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.cron-input { flex: 1 1 260px; min-width: 0; font-size: 1.35rem; padding: 0.6rem 0.8rem; letter-spacing: 0.02em; }
.cron-presets { margin: 0.6rem 0 0.2rem; }
.cron-card .io-status { margin: 0.5rem 0 0; }
.cron-explain { font-size: 1.25rem; font-weight: 600; line-height: 1.4; margin: 0.6rem 0 0.4rem; }
.cron-warn { margin: 0 0 0.6rem; padding-left: 1.2rem; color: #b7791f; font-size: 0.9rem; }
.cron-warn:empty { display: none; }
.cron-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; margin-top: 0.6rem; }
.cron-head { padding: 0 0 0.4rem; border: 0; background: none; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.cron-runs { margin: 0; padding-left: 1.6rem; font-size: 0.9rem; line-height: 1.9; }
.cron-fields td:nth-child(2) { white-space: nowrap; color: var(--accent); padding-right: 0.9rem; }
.cron-fields td:first-child { width: auto; font-family: var(--font); }
@media (max-width: 720px) { .cron-grid { grid-template-columns: minmax(0, 1fr); } .cron-explain { font-size: 1.1rem; } }


/* ---------- diff ---------- */
.diff-head { border-top: 1px solid var(--line); }
.diff-out { overflow-x: auto; }
.diff-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.diff-table td { padding: 0 0.5rem; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-table td.n { width: 3.6em; padding: 0 0.45rem 0 0.2rem; text-align: right; color: var(--muted); user-select: none; -webkit-user-select: none; background: var(--surface-2); font-size: 11.5px; }
.diff-table td.s { width: 1.4em; padding: 0; text-align: center; user-select: none; -webkit-user-select: none; color: var(--muted); }
.diff-table.split td.t { border-right: 1px solid var(--line); }
.diff-table.split td.t:last-child { border-right: 0; }
.d-del td, .diff-table td.del { background: color-mix(in srgb, var(--bad) 9%, transparent); }
.d-ins td, .diff-table td.ins { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.d-del td.n, .diff-table td.n.del { background: color-mix(in srgb, var(--bad) 16%, var(--surface-2)); }
.d-ins td.n, .diff-table td.n.ins { background: color-mix(in srgb, var(--ok) 16%, var(--surface-2)); }
.d-del td.s, .diff-table td.s.del { color: var(--bad); }
.d-ins td.s, .diff-table td.s.ins { color: var(--ok); }
.diff-table td.empty { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 7px); }
.d-del mark, .diff-table td.del mark { background: color-mix(in srgb, var(--bad) 30%, transparent); color: inherit; border-radius: 2px; }
.d-ins mark, .diff-table td.ins mark { background: color-mix(in srgb, var(--ok) 32%, transparent); color: inherit; border-radius: 2px; }
.d-gap td { padding: 0; background: var(--surface-2); }
.gap-btn { display: block; width: 100%; border: 0; background: none; color: var(--muted); font: inherit; font-family: var(--font); font-size: 0.82rem; padding: 0.3rem 0.8rem; text-align: left; cursor: pointer; }
.gap-btn:hover, .gap-btn:focus-visible { color: var(--accent); }
.diff-table col.c-n { width: 3.6em; }
.diff-table col.c-s { width: 1.4em; }
.diff-cap { padding: 0.6rem 0.9rem; margin: 0; }
#diffView .diff-table.unified td.n + td.n { border-right: 0; }
@media (max-width: 720px) { .diff-table { font-size: 12px; } .diff-table col.c-n { width: 2.8em; } }

/* ---------- csv ---------- */
.csv-opts { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.csv-preview { overflow: auto; max-height: 420px; }
.csv-table { border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; min-width: 100%; }
.csv-table th, .csv-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0.3rem 0.6rem; text-align: left; vertical-align: top; white-space: pre; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
.csv-table th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; }
.csv-table tr > :last-child { border-right: 0; }

/* ---------- json-to-types ---------- */
.types-root { width: 12rem; font-size: 0.9rem; padding: 0.35rem 0.6rem; }
#typesText { background: var(--surface); }
.types-card .pane-head { min-height: 3.35rem; }

/* ---------- color ---------- */
.color-card { padding: 1rem 1rem 1.1rem; }
.color-top { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 1rem; align-items: start; }
.color-swatch { width: 132px; height: 132px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(var(--c, transparent), var(--c, transparent)), repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.color-inputs { display: grid; gap: 0.55rem; min-width: 0; }
.color-input { font-size: 1.3rem; padding: 0.55rem 0.8rem; width: 100%; }
.color-inputs .io-status { margin: 0; }
.picker-btn { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.picker-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 1rem; }
.color-kv dd { font-size: 0.86rem; }
.color-bg { width: 9.5rem; font-size: 0.85rem; padding: 0.3rem 0.5rem; }
.ct-list { display: grid; border-top: 1px solid var(--line); }
.ct-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "s l r" "s b b"; gap: 0.25rem 0.7rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.ct-sample { grid-area: s; width: 3rem; height: 3rem; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; }
.ct-label { grid-area: l; font-size: 0.88rem; color: var(--muted); overflow-wrap: anywhere; }
.ct-row strong { grid-area: r; }
.ct-badges { grid-area: b; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ct-badge { font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: 99px; border: 1px solid var(--line); }
.ct-badge.pass { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.ct-badge.fail { color: var(--muted); text-decoration: line-through; }
.shade-head { margin-top: 1.2rem; }
.shades { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0.35rem; }
.shade { border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); background: var(--c); border-radius: 9px; min-height: 4.2rem; padding: 0.4rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0.1rem; font: inherit; font-size: 0.72rem; cursor: pointer; text-align: left; }
.shade .mono { font-size: 0.68rem; opacity: 0.85; }
.shade:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .color-top { grid-template-columns: 1fr; }
  .color-swatch { width: 100%; height: 88px; }
  .color-grid { grid-template-columns: minmax(0, 1fr); }
  .shades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.color-card.stale .color-grid, .color-card.stale .shades, .color-card.stale .shade-head, .ct-list.stale { opacity: 0.45; pointer-events: none; }

/* ---------- qr ---------- */
.qr-card { padding: 1rem; }
.qr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 1.5rem; align-items: start; }
.qr-form { display: grid; gap: 0.9rem; min-width: 0; }
.qr-tabs { display: flex; flex-wrap: wrap; }
.qr-view { display: grid; gap: 0.7rem; }
.qr-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-text { width: 100%; resize: vertical; font-size: 0.95rem; }
.field textarea.input { resize: vertical; font: inherit; color: var(--ink); }
.field-row { display: flex; gap: 0.6rem; align-items: end; }
.field-row .field { flex: 1; }
.qr-opts { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.qr-color { width: 7.5rem; font-size: 0.85rem; padding: 0.3rem 0.5rem; }
.qr-opts select.input { padding: 0.3rem 0.4rem; font-size: 0.85rem; }
.qr-out { display: grid; gap: 0.5rem; justify-items: center; position: sticky; top: 1rem; }
.qr-box { width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-actions { justify-content: center; flex-wrap: wrap; }
.qr-out .hint { margin: 0; }
.qr-status { margin: 0.8rem 0 0; }
@media (max-width: 720px) {
  .qr-grid { grid-template-columns: minmax(0, 1fr); }
  .qr-out { position: static; }
  .qr-2col { grid-template-columns: minmax(0, 1fr); }
}
.qr-color[aria-invalid="true"] { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad) 55%, transparent); }

/* ---------- number base ---------- */
.nb-card { padding: 1rem 1rem 1.1rem; }
.nb-input { width: 100%; font-size: 1.15rem; padding: 0.7rem 0.8rem; }
.nb-bar { padding: 0.6rem 0 0.2rem; border: 0; background: none; flex-wrap: wrap; gap: 0.6rem; }
.nb-bar .opts { flex-wrap: wrap; align-items: center; }
.nb-base { width: 4.6rem; }
.nb-sub { margin-top: 1.2rem; }
.nb-kv dd { overflow-wrap: anywhere; }
.nb-twos td:first-child, .nb-twos th:first-child { width: auto; }
.nb-twos th[scope="row"], .nb-twos tbody th { font-family: var(--sans, inherit); font-weight: 600; color: var(--muted); padding: 0.45rem 0.6rem 0.45rem 0.2rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.nb-twos td.act { width: 1%; }
.bits { display: flex; flex-wrap: wrap; gap: 0.2rem 0; }
.bit-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 1.45rem; }
.bit-cell:nth-child(4n) { margin-right: 0.45rem; }
.bit { width: 1.35rem; height: 1.7rem; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: inherit; font-size: 0.9rem; cursor: pointer; padding: 0; }
.bit.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bit:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bit-idx { font-size: 0.68rem; color: var(--muted); line-height: 1.2; }
.float-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.float-card h3 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.float-kv { grid-template-columns: max-content minmax(0, 1fr) auto; }
.fbits { overflow-wrap: anywhere; word-break: break-all; }
.f-sign { color: #c2410c; }
.f-exp { color: #2563eb; }
.f-frac { color: var(--ink); }
#asFloat:not(:empty) { margin-top: 1rem; }
@media (max-width: 720px) {
  .nb-twos { font-size: 0.8rem; }
  .nb-twos th:last-child, .nb-twos td.act { display: none; }
  .nb-twos td { word-break: break-all; }
  .float-grid { grid-template-columns: minmax(0, 1fr); }
  .float-kv { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-color-scheme: dark) { .f-sign { color: #fb923c; } .f-exp { color: #60a5fa; } }

/* ---------- subnet ---------- */
.sn-card { padding: 1rem 1rem 1.1rem; }
.sn-input { width: 100%; font-size: 1.15rem; padding: 0.7rem 0.8rem; }
.sn-prefix { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.7rem; }
.sn-prefix input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }
.sn-prefix output { min-width: 3.2rem; text-align: right; }
.sn-kv { margin-top: 0.6rem; }
.sn-binary { margin-top: 1rem; display: grid; gap: 0.25rem; overflow-x: auto; }
.bin-row { display: flex; gap: 0.8rem; align-items: baseline; font-size: 0.85rem; }
.bin-label { color: var(--muted); min-width: 4.6rem; }
.bin-bits { font-family: var(--mono); white-space: nowrap; background: none; padding: 0; }
.bin-net { color: var(--accent); font-weight: 600; }
.bin-host { color: var(--muted); }
.sn-check { margin-top: 1.1rem; }
.sn-check input, #rangeIn { width: 100%; }
.sn-sub { margin-top: 1.3rem; }
.sn-split { max-height: 22rem; overflow: auto; }
.sn-split td:first-child { width: auto; }
.sn-range { margin: 0.4rem 0 0; white-space: pre-wrap; font-size: 0.9rem; }
.sn-range:empty { display: none; }
#results.stale { opacity: 0.45; pointer-events: none; }
@media (max-width: 720px) { .bin-label { min-width: 0; } .bin-row { flex-direction: column; gap: 0; } }
.sn-cheat td, .sn-split td { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.sn-cheat td:first-child { width: auto; }
@media (max-width: 720px) { .sn-cheat, .sn-split table { font-size: 0.8rem; } }
.sn-sub .row { flex: 1 1 18rem; min-width: 0; justify-content: flex-end; flex-wrap: nowrap; }
#splitSel { width: 0; min-width: 0; flex: 1 1 auto; max-width: 24rem; }

/* ---------- sql ---------- */
.sql-bar { flex-wrap: wrap; gap: 0.6rem; }
.sql-opts { flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.sql-opts select { max-width: 13rem; }
#sqlOut { background: var(--surface-2); }

/* ---------- html entities ---------- */
.ent-bar { flex-wrap: wrap; gap: 0.6rem; }
.ent-bar .opts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.ent-table td { white-space: nowrap; font-family: var(--mono); }
.ent-table td:last-child { font-family: inherit; }
/* ---------- chmod ---------- */
.ch-card { padding: 1rem 1rem 1.1rem; }
.ch-top { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ch-input { flex: 1 1 220px; min-width: 0; font-size: 1.35rem; padding: 0.6rem 0.8rem; }
.ch-file { flex: 1 1 180px; min-width: 0; }
.ch-card .io-status { margin: 0.5rem 0 0; }
.ch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 1.5rem; margin-top: 1rem; }
.ch-perms th, .ch-perms td { text-align: center; }
.ch-perms th[scope="row"] { text-align: left; font-weight: 600; }
.ch-perms input, .ch-special input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.ch-special { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; }
.ch-who { list-style: none; padding: 0; margin: 0.8rem 0 0.4rem; font-size: 0.93rem; line-height: 1.7; }
.ch-umask { margin-top: 1.2rem; max-width: 34rem; }
.ch-umask .input { max-width: 8rem; }
@media (max-width: 720px) { .ch-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- markdown ---------- */
.md-bar { flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.md-bar .row { margin-left: auto; }
.md-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.md-panes[data-view="write"], .md-panes[data-view="preview"] { grid-template-columns: minmax(0, 1fr); }
.md-panes[data-view="write"] .md-view, .md-panes[data-view="preview"] .md-write { display: none; }
.md-pane { min-width: 0; }
.md-write { border-right: 1px solid var(--line); }
.md-panes[data-view="write"] .md-write { border-right: 0; }
.md-write textarea { width: 100%; height: 34rem; border: 0; border-radius: 0; resize: vertical; padding: 1rem; font-size: 0.9rem; line-height: 1.55; background: var(--surface); color: var(--ink); }
.md-view iframe { display: block; width: 100%; height: 34rem; border: 0; background: #fff; }
@media (prefers-color-scheme: dark) { .md-view iframe { background: #0d1117; } }
.md-foot { flex-wrap: wrap; gap: 0.6rem; }
.md-foot .row { flex-wrap: wrap; gap: 0.4rem; }
@media (max-width: 720px) {
  .md-panes { grid-template-columns: minmax(0, 1fr); }
  .md-write { border-right: 0; border-bottom: 1px solid var(--line); }
  .md-write textarea, .md-view iframe { height: 22rem; }
  .md-bar .row { margin-left: 0; }
}
/* ---------- curl ---------- */
.cu-bar { flex-wrap: wrap; gap: 0.6rem; }
#codeOut { background: var(--surface-2); }

/* /http-status */
@media (min-width: 700px) { .hs-card { position: sticky; top: 0.5rem; z-index: 2; } html:has(.hs-card) { scroll-padding-top: 9rem; } }
.hs-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 0.9rem 1rem 0.2rem; }
.hs-input { flex: 1 1 14rem; min-width: 0; }
.hs-card .hs-status { padding: 0.2rem 1rem 0.7rem; margin: 0; }
.hs-list { margin-top: 1rem; }
.hs-group { margin-bottom: 1.5rem; }
.hs-head { font-size: 1.15rem; margin: 1.2rem 0 0.5rem; }
.hs-sub { display: block; font-size: 0.88rem; font-weight: 400; color: var(--muted); margin-top: 0.15rem; }
.hs-item { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.5rem; scroll-margin-top: 9rem; }
.hs-item:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hs-item h3 { margin: 0 0 0.3rem; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.hs-item p { margin: 0; color: var(--ink); font-size: 0.93rem; line-height: 1.55; }
.hs-code { font-family: var(--mono); font-weight: 700; color: var(--accent); text-decoration: none; }
.hs-code:hover { text-decoration: underline; }
.hs-group[data-class="1"] .hs-code { color: var(--muted); }
.hs-group[data-class="2"] .hs-code { color: var(--ok); }
.hs-group[data-class="3"] .hs-code { color: #2b6cb0; }
.hs-group[data-class="4"] .hs-code { color: #975a16; }
@media (prefers-color-scheme: dark) { .hs-group[data-class="3"] .hs-code { color: #79b8ff; } .hs-group[data-class="4"] .hs-code { color: #e3a33c; } }
.hs-group[data-class="5"] .hs-code { color: var(--bad); }
.hs-src { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.1rem 0.45rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* /escape */
.esc-lang select { min-width: 10rem; }
.esc-note { margin: 0; padding: 0 1rem 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- meet ---------- */
.meet-card { padding: 1.25rem; }
.meet-big { padding: 0.8rem 1.4rem; font-size: 1.02rem; }
.meet-start { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: end; }
.meet-start .hint { margin: 0.5rem 0 0; }
.meet-join .field { color: var(--muted); }
.meet-join-row { flex-wrap: nowrap; }
.meet-join-row .input { flex: 1; min-width: 0; }
.meet-status { margin: 0.75rem 0 0; }
.meet-status:empty { display: none; }
.meet-lobby { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: center; }
.meet-lobby-side h2 { margin-bottom: 0.2rem; }
.meet-lobby-side .row { margin-top: 1rem; }
.meet-preview { position: relative; aspect-ratio: 16 / 9; background: #0d0e10; border-radius: 12px; overflow: hidden; }
.meet-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.meet-preview-off { position: absolute; inset: 0; display: grid; place-items: center; color: #c9cbd0; font-size: 0.95rem; }
.meet-preview-ctrls { position: absolute; left: 0; right: 0; bottom: 0.75rem; display: flex; justify-content: center; gap: 0.75rem; }
.mirror { transform: scaleX(-1); }
.meet-link { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0.35rem 0.35rem 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-width: 0; }
.meet-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.meet-end { text-align: center; padding: 1.5rem 0.5rem; }
.meet-end .row { justify-content: center; margin-top: 1rem; }

/* round call buttons, used in the lobby preview and the call bar */
.meet-btn { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; background: rgb(255 255 255 / 0.14); color: #fff; border: 1px solid rgb(255 255 255 / 0.12); backdrop-filter: blur(6px); }
.meet-btn:hover:not(:disabled) { background: rgb(255 255 255 / 0.24); }
.meet-btn.off { background: #e8483a; border-color: transparent; }
.meet-btn[aria-pressed="true"]#screenBtn, .meet-btn[aria-pressed="true"]#chatBtn, .meet-btn[aria-pressed="true"]#infoBtn { background: #f1f1f1; color: #16171a; }
.meet-hang { background: #e8483a; border-color: transparent; width: 64px; border-radius: 26px; }
.meet-hang:hover:not(:disabled) { background: #d23a2d; }
.meet-dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #16171a; }

/* full-screen call */
body.in-call { overflow: hidden; }
.meet-call { position: fixed; inset: 0; z-index: 50; background: #0d0e10; color: #f1f1f1; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; }
.meet-stage { position: relative; grid-column: 1; grid-row: 1; overflow: hidden; margin: max(10px, env(safe-area-inset-top)) 10px 0; border-radius: 16px; background: #17181b; }
.meet-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #17181b; }
.meet-remote.hidden-video { opacity: 0; }
.meet-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1rem; text-align: center; }
.meet-wait .meet-link { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); width: min(440px, 100%); }
.meet-wait-msg { margin: 0; color: #c9cbd0; max-width: 46ch; }
.meet-avatar { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #3a3d44 0 22%, transparent 23%), radial-gradient(ellipse at 50% 100%, #3a3d44 0 46%, transparent 47%), #26282d; }
.meet-top { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.meet-chip { font-size: 0.8rem; padding: 0.25rem 0.6rem; border-radius: 99px; background: rgb(0 0 0 / 0.5); color: #f1f1f1; font-variant-numeric: tabular-nums; }
.meet-local { position: absolute; right: 0.75rem; bottom: 0.75rem; width: clamp(110px, 22%, 260px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #26282d; box-shadow: 0 4px 18px rgb(0 0 0 / 0.5); border: 1px solid rgb(255 255 255 / 0.12); }
.meet-bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.75rem 10px max(0.75rem, env(safe-area-inset-bottom)); }
.meet-panel { grid-column: 2; grid-row: 1; width: min(340px, 100vw); margin: max(10px, env(safe-area-inset-top)) 10px 0 0; background: #f6f5f2; color: #16171a; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.meet-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.9rem; border-bottom: 1px solid #e2dfd8; }
.meet-panel .ghost { background: #fff; border-color: #e2dfd8; color: #16171a; }
.meet-panel .hint { color: #676a71; }
.meet-panel .input { background: #fff; color: #16171a; border-color: #e2dfd8; }
.meet-panel .meet-link { background: #fff; border-color: #e2dfd8; }
.meet-msgs { list-style: none; margin: 0; padding: 0.75rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.4rem; }
.meet-msgs li { max-width: 85%; padding: 0.45rem 0.7rem; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.93rem; }
.meet-msgs .theirs { background: #e9e7e1; align-self: flex-start; }
.meet-msgs .mine { background: #d9442a; color: #fff; align-self: flex-end; }
.meet-chat-form { display: flex; gap: 0.4rem; padding: 0.6rem 0.75rem 0; }
.meet-chat-form .input { flex: 1; }
.meet-chat-note { padding: 0 0.9rem 0.75rem; font-size: 0.78rem; }
.meet-info { padding: 0.25rem 0.9rem 1rem; overflow-y: auto; }
.meet-info .hint { margin-top: 1rem; }
.meet-code { font-size: 2rem; font-weight: 650; letter-spacing: 0.08em; margin: 0.25rem 0 0; color: #d9442a; }

@media (max-width: 720px) {
  .meet-start, .meet-lobby { grid-template-columns: 1fr; }
  .meet-call { grid-template-columns: 1fr; }
  .meet-stage { margin: 0; border-radius: 0; }
  .meet-panel { position: fixed; left: 0; right: 0; bottom: 0; top: 30vh; width: auto; margin: 0; border-radius: 16px 16px 0 0; z-index: 2; padding-bottom: env(safe-area-inset-bottom); }
  .meet-local { width: 28vw; aspect-ratio: 3 / 4; }
  .meet-btn { width: 48px; height: 48px; }
  .meet-bar { gap: 0.45rem; }
}
