:root{color-scheme:light dark;--bg: #f6f7f9;--surface: #ffffff;--surface-2: #eef1f5;--border: #d9dee6;--text: #1a2028;--text-dim: #66727f;--accent: #2f6df6;--accent-text: #ffffff;--ok: #1f9254;--warn: #b26a00;--danger: #d1443c;--radius: 12px;--radius-sm: 8px;--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}@media (prefers-color-scheme: dark){:root{--bg: #0f1419;--surface: #161d26;--surface-2: #1d2632;--border: #2a3542;--text: #e6e9ee;--text-dim: #8b98a9;--accent: #4f9cf9;--accent-text: #0b1220;--ok: #3fb96b;--warn: #e0a33a;--danger: #e5534b;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35)}}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0;line-height:1.25;font-weight:650;overflow-wrap:anywhere}h1{font-size:1.45rem}h2{font-size:1.1rem}p{margin:0}a{color:var(--accent)}button,.button{font:inherit;font-weight:560;border:1px solid transparent;border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-text);padding:.7rem 1.1rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;transition:filter .12s ease,background .12s ease}button:hover:not(:disabled),.button:hover{filter:brightness(1.07)}button:disabled{opacity:.55;cursor:not-allowed}button.ghost{background:var(--surface);color:var(--text);border-color:var(--border)}button.danger{background:transparent;color:var(--danger);border-color:var(--border)}button.small{padding:.4rem .7rem;min-height:36px;font-size:.875rem}input,textarea,select{font:inherit;width:100%;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.65rem .75rem;min-height:44px}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}textarea{min-height:96px;resize:vertical;font-family:var(--mono);font-size:.9rem}label{display:block;font-size:.85rem;font-weight:560;color:var(--text-dim);margin-bottom:.35rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.dim{color:var(--text-dim)}.small{font-size:.875rem}.mono{font-family:var(--mono)}.error{color:var(--danger)}.ok{color:var(--ok)}.warn{color:var(--warn)}.stack{display:flex;flex-direction:column;gap:1rem}.stack-sm{display:flex;flex-direction:column;gap:.5rem}.row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.spinner{width:18px;height:18px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}.page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:1.25rem}.panel{width:100%;max-width:30rem;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.panel-head{display:flex;flex-direction:column;gap:.35rem}.meta-line{display:flex;flex-wrap:wrap;gap:.4rem .9rem;font-size:.85rem;color:var(--text-dim)}.file-list{display:flex;flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none}.file{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .85rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.file-name{font-weight:560;overflow-wrap:anywhere;min-width:0}.file-size{color:var(--text-dim);font-size:.85rem;white-space:nowrap}.file .button{flex-shrink:0}.body-text{margin:0;padding:.85rem;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);font-family:var(--mono);font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:40vh;overflow-y:auto}.notice{padding:.75rem .85rem;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);font-size:.9rem}.state{text-align:center;display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:1rem 0}.state .glyph{font-size:2rem;line-height:1}.wide{width:100%}@media (max-width: 480px){.page{padding:0;align-items:stretch}.panel{max-width:none;min-height:100dvh;border:0;border-radius:0;box-shadow:none;justify-content:center;padding-bottom:calc(1.5rem + env(safe-area-inset-bottom))}.file{flex-wrap:wrap}.file .button{width:100%}}
