*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 340px; color: var(--ink); font: 400 14px/1.55 var(--font); font-feature-settings: 'tnum' 1; -webkit-font-smoothing: antialiased;
  background: radial-gradient(70vw 70vh at 58% 45%, var(--glow) 0%, var(--bg) 70%) fixed; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.kicker { font-size: 12.5px; color: var(--muted); margin: 0; }
.panel-head h2, .sub-head { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 6px 2px; transition: color .2s; }
.text-button:hover { color: var(--ink); }
.text-button .icon { width: 13px; height: 13px; }
.tool-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.tool-button:hover { color: var(--ink); background: rgba(var(--ink-rgb), .05); }
.tool-button.active { color: var(--ink); }
.tool-button[aria-pressed="true"][data-action="pause"] { color: var(--accent); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0a93c; display: inline-block; animation: breathe 1.8s ease-in-out infinite; }
body.is-ready .status-dot { background: #2fb383; animation: none; }
body.is-failed .status-dot { background: #d9534f; animation: none; }
@keyframes breathe { 50% { opacity: .35; } }
.modal { background: var(--surface-solid); color: var(--ink); border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(var(--shadow-rgb), .18); padding: 30px 34px; width: min(600px, calc(100vw - 32px)); max-height: 88dvh; }
.modal::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
.modal-top { display: flex; justify-content: space-between; align-items: center; }
.modal h2 { font-size: 30px; font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 12px; }
.modal h2 em, h1 em { font-style: normal; color: var(--accent); }
.modal p { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.modal strong { font-weight: 600; }
.method-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 4px; }
.method-steps li { display: grid; grid-template-columns: 36px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
.method-steps li > span { font-size: 12px; font-weight: 600; color: var(--accent); line-height: 1.9; }
.method-steps h3 { font-size: 15px; font-weight: 600; }
.method-steps p { margin: 3px 0 0; }
.method-steps code { font-size: 12px; overflow-wrap: anywhere; background: rgba(var(--ink-rgb), .05); padding: 1px 5px; border-radius: 5px; }
.privacy-note { background: color-mix(in srgb, #2fb383 9%, transparent); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.method-limit { font-size: 12.5px !important; color: var(--muted) !important; }
.corpus-actions { margin-bottom: 10px; }
.corpus-list { display: grid; }
.corpus-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; text-align: left; padding: 10px 8px; border-radius: 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.corpus-item:hover { background: rgba(var(--ink-rgb), .04); color: var(--ink); }
.corpus-item span:first-child { font-size: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.confirm-modal { width: min(420px, calc(100vw - 32px)); }
.confirm-modal h2 { margin-top: 0; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 20px; align-items: center; margin-top: 20px; }
.solid-button { background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.noscript-notice { position: fixed; inset: auto 20px 20px; padding: 18px; background: var(--surface-solid); border-radius: 14px; box-shadow: var(--shadow); z-index: 50; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
