/* ============================================================
   JSONKit — ToolWizHub house theme + full-width workbench
   ============================================================ */
:root {
  --bg: #07070d;
  --text: #f4f5fb; --soft: #c2c6da; --muted: #8087a0; --faint: #5a6080;
  --glass: rgba(255,255,255,.045); --glass-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --c1: #22d3ee; --c2: #818cf8; --c3: #e879f9;
  --grad: linear-gradient(110deg, var(--c1), var(--c2) 55%, var(--c3));
  --pos: #34d399; --neg: #fb7185; --warn: #fbbf24;
  --r: 22px; --r-pill: 999px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh;
  position: relative; overflow-x: hidden;
}
/* animated aurora field + film grain (house aurora-glass) */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none; filter: blur(70px);
  background:
    radial-gradient(38% 34% at 14% 18%, rgba(34,211,238,.24), transparent 62%),
    radial-gradient(42% 38% at 86% 12%, rgba(129,140,248,.24), transparent 62%),
    radial-gradient(46% 42% at 74% 82%, rgba(232,121,249,.20), transparent 62%),
    radial-gradient(40% 40% at 22% 88%, rgba(255,184,72,.08), transparent 60%);
  animation: aurora 26s var(--ease) infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-3%,4%,0) scale(1.12) rotate(3deg); } }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(129,140,248,.35); }

/* ── splash (ToolWizHub house standard) ── */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
  background:
    radial-gradient(56% 46% at 50% 42%, rgba(34,211,238,.16), transparent 70%),
    radial-gradient(120% 90% at 100% 0%, #122a44 0%, transparent 55%),
    radial-gradient(120% 90% at 0% 100%, #2a1840 0%, transparent 55%),
    #07070d;
  transition: opacity .55s ease, visibility .55s ease;
  animation: splash-failsafe 0s linear 5s forwards; /* reveal app even if JS never runs */
}
.no-splash .splash { display: none; }
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash.hide .splash__stage { transform: scale(1.08); }
.splash__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; transition: transform .55s var(--ease); }
.splash__glow {
  position: absolute; top: 42%; left: 50%; width: 320px; height: 320px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(129,140,248,.34), rgba(34,211,238,.18) 45%, transparent 70%);
  filter: blur(10px); animation: splash-glow 2.4s ease-in-out infinite;
}
@keyframes splash-glow { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); } }
.splash__logo {
  position: relative; width: clamp(150px, 42vw, 200px); height: auto;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.55));
  animation: splash-in .8s cubic-bezier(.34,1.56,.64,1) both, splash-float 3.2s ease-in-out .8s infinite;
}
@keyframes splash-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes splash-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.splash__tagline {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 7px; text-transform: uppercase; padding-left: 7px;
  color: #bfeafd; text-shadow: 0 2px 12px rgba(34,211,238,.45);
  opacity: 0; animation: splash-fade .6s ease .55s forwards;
}
@keyframes splash-fade { to { opacity: .95; } }
.splash__bar { width: 168px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.splash__bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); animation: splash-bar 1.5s ease .3s forwards; }
@keyframes splash-bar { from { width: 0; } to { width: 100%; } }
.splash__sparkles { position: absolute; inset: -10% -20%; pointer-events: none; }
.splash__sparkles span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(165,225,255,.9); opacity: 0; animation: splash-sparkle 1.9s ease-in-out infinite; }
.splash__sparkles span:nth-child(1) { top: 26%; left: 28%; animation-delay: 0s; }
.splash__sparkles span:nth-child(2) { top: 20%; left: 70%; animation-delay: .45s; }
.splash__sparkles span:nth-child(3) { top: 58%; left: 20%; animation-delay: .9s; }
.splash__sparkles span:nth-child(4) { top: 62%; left: 78%; animation-delay: .25s; }
.splash__sparkles span:nth-child(5) { top: 36%; left: 86%; animation-delay: .65s; }
.splash__sparkles span:nth-child(6) { top: 78%; left: 48%; animation-delay: 1.1s; }
@keyframes splash-sparkle { 0%,100% { opacity: 0; transform: scale(0); } 40% { opacity: 1; transform: scale(1.25); } 70% { opacity: .6; transform: scale(.9); } }
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ── nav (house) ── */
.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 12px clamp(16px,3vw,40px); background: rgba(7,7,13,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 13px; padding: 8px 16px 8px 10px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .25s, transform .25s var(--ease); }
.brand:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand__text strong { font-family: var(--display); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.brand__text span { font-size: 9px; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { font-weight: 500; font-size: 14.5px; color: var(--soft); transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__pill { font-size: 12px; font-weight: 600; color: var(--c1); padding: 6px 12px; border-radius: var(--r-pill); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22); }

/* ============================================================
   App workbench — full width
   ============================================================ */
.app { flex: 1 1 auto; display: grid; grid-template-columns: 264px 1fr; gap: 14px; padding: 14px clamp(14px,2vw,22px) 18px; min-height: 0; }

/* sidebar — floating glass card */
.side { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.side__search { padding: 14px 14px 8px; flex: 0 0 auto; }
.side__search input { width: 100%; background: rgba(5,5,11,.5); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--text); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .2s; }
.side__search input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 1.5px var(--c1), 0 0 22px rgba(34,211,238,.22); }
.side__nav { flex: 1 1 auto; overflow-y: auto; padding: 6px 10px 24px; }
.grp { margin-bottom: 12px; }
.grp__h { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 8px 8px 6px; }
.grp__ic { font-size: 12px; }
.tool { position: relative; display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px 12px; color: var(--soft); font-size: 13.5px; transition: background .14s, color .14s; }
.tool:hover { background: var(--glass); color: var(--text); }
.tool--on { background: linear-gradient(100deg, rgba(34,211,238,.16), rgba(129,140,248,.16) 55%, rgba(232,121,249,.12)); border-color: rgba(129,140,248,.4); color: #fff; font-weight: 600; }
.tool--on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--grad); }

/* workbench columns — floating glass cards */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); transition: border-color .25s; }
.col:focus-within { border-color: var(--line-strong); }
.col__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; min-height: 54px; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.col__tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }

.io { display: flex; gap: 7px; flex-wrap: wrap; }
.io-btn { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--soft); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; transition: border-color .15s, color .15s, background .15s, transform .15s var(--ease); }
.io-btn:hover:not(:disabled) { border-color: var(--c1); color: var(--c1); background: rgba(34,211,238,.08); transform: translateY(-1px); }
.io-btn:active:not(:disabled) { transform: translateY(0); }
.io-btn:disabled { opacity: .4; cursor: not-allowed; }
.io-btn--ghost { background: none; }
.io-btn.on { border-color: var(--c2); color: var(--c2); background: rgba(129,140,248,.12); }

/* tool head */
.tool-head { min-width: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tool-head__t { font-family: var(--display); font-weight: 700; font-size: 16px; background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool-head__d { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; }
.out-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.out-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-right: 4px; }

/* options bar */
.tool-opts { display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); flex: 0 0 auto; }
.opt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.opt > span { color: var(--muted); }
.opt select, .opt input[type=text], .opt input[type=number] { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); font: inherit; font-size: 13px; }
.opt--text input { min-width: 240px; font-family: var(--mono); }
.opt input:focus, .opt select:focus { outline: none; border-color: var(--c1); }
.opt--cb { cursor: pointer; }
.opt--cb input { accent-color: var(--c2); width: 15px; height: 15px; }

/* ── editor ── */
.panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.panel--b { flex: 0 0 40%; border-top: 1px solid var(--line); }
.panel__lbl { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 8px 14px 4px; }
.editor-host { flex: 1 1 auto; min-height: 0; }
.editor { display: flex; height: 100%; background: rgba(5,5,11,.4); overflow: hidden; position: relative; }
.editor.drag { box-shadow: inset 0 0 0 2px var(--c1); background: rgba(34,211,238,.06); }
.editor--err .editor__ta { box-shadow: inset 3px 0 0 var(--neg); }
.editor__gutter { flex: 0 0 auto; padding: 12px 8px 12px 14px; text-align: right; color: var(--faint); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; user-select: none; overflow: hidden; background: rgba(255,255,255,.015); border-right: 1px solid var(--line); }
.editor__gutter span { display: block; }
.editor__gutter .gutter-err { color: var(--neg); font-weight: 700; background: rgba(251,113,133,.14); }
.editor__ta { flex: 1 1 auto; resize: none; border: none; outline: none; background: transparent; color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 1.6; padding: 12px 16px; white-space: pre; overflow: auto; tab-size: 2; }
.editor__ta::placeholder { color: var(--faint); }

/* ── output ── */
.output { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0; }
.out-note { padding: 40px 28px; color: var(--muted); font-size: 14.5px; text-align: center; }
.out-code { padding: 16px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.65; white-space: pre; tab-size: 2; }
.out-code.wrap { white-space: pre-wrap; word-break: break-word; }
.out-code code { font: inherit; color: var(--soft); }
.out-code .hl-key { color: var(--c1); }
.out-code .hl-str { color: #9be8a0; }
.out-code .hl-num { color: #f3b27a; }
.out-code .hl-bool { color: var(--c3); }
.out-code .hl-null { color: var(--faint); font-style: italic; }
.out-code .hl-punc { color: var(--muted); }

.out-err { padding: 22px 24px; }
.out-err__t { color: var(--neg); font-weight: 600; font-size: 15px; }
.out-err__m { color: var(--soft); font-family: var(--mono); font-size: 13px; margin-top: 8px; }
.out-err__fix { color: var(--warn); font-size: 13px; margin-top: 10px; }
.out-err__hint { color: var(--faint); font-size: 13px; margin-top: 14px; }
.out-err .btn { margin-top: 14px; }

/* buttons (house) */
.btn { padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; }
.btn--primary { background: var(--grad); color: #060611; }
.btn--primary:hover { filter: brightness(1.08); }
.mini { background: var(--glass-2); border: 1px solid var(--line); border-radius: 7px; color: var(--soft); padding: 4px 9px; font-size: 12px; }
.mini:hover { border-color: var(--c1); color: var(--c1); }
.mini-hint { color: var(--faint); font-size: 11.5px; }

/* ── tree ── */
.out-tree-tools { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(7,7,13,.85); backdrop-filter: blur(6px); z-index: 2; }
.tree { padding: 12px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.t-row { white-space: nowrap; border-radius: 5px; padding: 0 4px; }
.t-leaf:hover, .t-toggle:hover { background: var(--glass); cursor: pointer; }
.t-children { padding-left: 18px; border-left: 1px solid var(--line); margin-left: 4px; }
.t-toggle { cursor: pointer; }
.t-caret { display: inline-block; width: 12px; color: var(--muted); transition: transform .12s; }
.t-branch.collapsed > .t-children, .t-branch.collapsed > .t-closer { display: none; }
.t-branch.collapsed > .t-toggle .t-caret { transform: rotate(-90deg); }
.t-branch.collapsed > .t-toggle .t-close-inline { display: inline; }
.t-close-inline { display: none; color: var(--muted); }
.t-branch:not(.collapsed) > .t-toggle .t-count { display: none; }
.t-count { color: var(--faint); font-size: 11px; padding: 0 6px; }
.t-closer { color: var(--muted); }
.t-key { color: var(--c1); }
.t-colon, .t-punc { color: var(--muted); }
.t-string { color: #a5e9a0; }
.t-number, .t-integer { color: #f0b27a; }
.t-boolean { color: var(--c3); }
.t-null { color: var(--faint); font-style: italic; }

/* ── table ── */
.out-tablewrap { overflow: auto; max-width: 100%; padding: 0; }
.out-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.out-table th, .out-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.out-table th { position: sticky; top: 0; background: #0c0c16; color: var(--faint); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; z-index: 1; }
.out-table tbody tr:hover { background: var(--glass); }
.out-table td:first-child { color: var(--faint); font-family: var(--mono); }

/* ── report / stats ── */
.rep { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rep__h { font-family: var(--display); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.rep__h .muted { color: var(--faint); font-weight: 400; font-size: 12px; }
.rep__body { display: flex; flex-direction: column; gap: 6px; }
.rep__row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.rep__k { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.rep__k.mono, .rep__v.mono { font-family: var(--mono); }
.rep__v { color: var(--text); text-align: right; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 11px; font-size: 12px; font-family: var(--mono); color: var(--soft); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px 20px; }
.kpi { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.kpi__n { font-family: var(--mono); font-size: 24px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi__l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ── diff ── */
.diff-sum { display: flex; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.d-add { color: var(--pos); } .d-rem { color: var(--neg); } .d-chg { color: var(--warn); }
.diff-body { padding: 8px 0; font-family: var(--mono); font-size: 12.5px; }
.diff-line { display: grid; grid-template-columns: 18px minmax(120px, 1fr) 2fr; gap: 10px; padding: 3px 20px; }
.diff-line.d-add { background: rgba(52,211,153,.07); }
.diff-line.d-rem { background: rgba(251,113,133,.07); }
.diff-line.d-chg { background: rgba(251,191,36,.06); }
.diff-sign { font-weight: 700; }
.diff-path { color: var(--c1); overflow: hidden; text-overflow: ellipsis; }
.diff-val { color: var(--soft); overflow: hidden; text-overflow: ellipsis; }

/* ── validate ── */
.v-ok { color: var(--pos); font-size: 16px; font-weight: 600; padding: 24px 24px 8px; }
.v-bad { color: var(--neg); font-size: 15px; font-weight: 600; padding: 24px 24px 8px; }
.v-warn { color: var(--warn); font-size: 13.5px; padding: 6px 24px; }
.v-warn code, .v-changes code { font-family: var(--mono); color: var(--c1); }
.v-fix { padding: 12px 24px 24px; }
.v-fix__h { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.v-changes { list-style: none; margin-bottom: 14px; }
.v-changes li { color: var(--soft); font-size: 13px; padding: 3px 0; }
.v-changes li::before { content: "→ "; color: var(--c2); }

/* ── toast ── */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(20,20,34,.96); border: 1px solid var(--line-strong); color: var(--text); padding: 10px 18px; border-radius: 12px; font-size: 13.5px; box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: 0; transition: opacity .2s, transform .2s var(--ease); z-index: 5000; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── minimal app footbar (house, workbench variant) ── */
.app-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px clamp(16px,3vw,40px); border-top: 1px solid var(--line); background: rgba(255,255,255,.012); }
.app-footer__brand { display: inline-flex; align-items: center; gap: 9px; opacity: .6; transition: opacity .2s; }
.app-footer__brand:hover { opacity: 1; }
.app-footer__brand img { height: 20px; }
.app-footer__brand span { font-size: 12px; font-weight: 600; color: var(--muted); }
.app-footer__copy { font-size: 12px; color: var(--faint); }
.app-footer__copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.app-footer__copy a:hover { color: var(--c1); }

/* ── footer (house) ── */
.footer { position: relative; border-top: 1px solid var(--line); background: radial-gradient(120% 130% at 50% 0%, rgba(34,211,238,.06), transparent 60%); flex: 0 0 auto; }
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 40px clamp(20px,5vw,56px) 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer__logo { height: 28px; width: auto; display: block; }
.footer__brand p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 16px 0 18px; max-width: 320px; }
.footer__pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--c1); padding: 6px 13px; border-radius: var(--r-pill); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 4px; }
.footer__col a { color: var(--soft); font-size: 14.5px; width: fit-content; transition: color .15s, transform .15s var(--ease); }
.footer__col a:hover { color: var(--c1); transform: translateX(3px); }
.footer__bar { max-width: 1160px; margin: 0 auto; padding: 18px clamp(20px,5vw,56px) 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__copy { color: var(--faint); font-size: 13px; font-family: var(--mono); }
.footer__made { color: var(--faint); font-size: 13px; }

/* ── legal/privacy prose (house) ── */
.legal { max-width: 780px; margin: 0 auto; padding: 32px clamp(20px,5vw,56px) 56px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px,4vw,40px); letter-spacing: -.5px; }
.legal__date { color: var(--faint); font-size: 13px; margin: 6px 0 26px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--soft); font-size: 15px; line-height: 1.75; }
.legal ul { margin: 8px 0 0; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal strong { color: var(--text); }
.legal code { font-family: var(--mono); font-size: 12.5px; color: var(--c1); background: var(--glass); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.legal a { color: var(--c1); text-decoration: underline; text-underline-offset: 3px; }
.legal .tldr { padding: 16px 18px; border-radius: var(--r); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25); line-height: 1.6; }

/* ── responsive ── */
@media (max-width: 1000px) {
  .work { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { max-height: 200px; }
  .side__nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .grp { width: 100%; }
  .nav__links a:not(.nav__pill) { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
