:root { --bg: #12161c; --panel: #1a2029; --line: #2b3440; --ink: #e8edf2; --muted: #93a1b0; --accent: #3fb68b; --danger: #e07a7a; --gold: #d3a23b; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { padding: 40px clamp(16px, 4vw, 56px); }
h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; margin: 6px 0; font-weight: 600; }
h2 { font-size: 18px; margin: 0 0 14px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: .15em; color: var(--accent); font-weight: 650; margin: 0; }
button, .button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); background: #1d6b52; color: #fff; border-radius: 9px; padding: 9px 16px;
  font: inherit; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
button.link { background: none; border: 0; color: var(--accent); padding: 4px 6px; font-size: 13px; }
button.small { padding: 6px 12px; font-size: 13px; }
button.icon { width: 36px; height: 36px; padding: 0; justify-content: center; background: transparent; color: var(--muted); border-color: var(--line); }
button.icon:hover { color: var(--accent); border-color: var(--accent); }
button.icon.danger:hover { color: var(--danger); border-color: var(--danger); }
svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input, select, textarea { width: 100%; background: #0f1318; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 10px; margin: 18px 0; color: var(--ink); font-size: 14px; }
label.check input { width: auto; }
label.file { position: relative; overflow: hidden; width: fit-content; }
label.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 16px; }
.row.between { justify-content: space-between; }
.row.tight { gap: 6px; flex-wrap: nowrap; }
.stack { display: grid; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid .wide, form > label.wide { grid-column: 1 / -1; margin-bottom: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0 0 14px; }
legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.hint { color: var(--muted); font-size: 12px; margin: -4px 0 14px; }
.error { color: var(--danger); font-size: 13px; min-height: 1em; margin: 8px 0 0; }
.notice { position: fixed; top: 14px; right: 18px; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; z-index: 10; }
.notice:empty { display: none; }
.notice.error { color: var(--danger); position: static; margin: 0 0 16px; }
.center { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-top: 18vh; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 650; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel.narrow { max-width: 560px; margin: 8vh auto 0; }
.panel form { display: grid; gap: 14px; margin-top: 18px; }
code.recovery { display: block; font: 18px/1.6 ui-monospace, monospace; letter-spacing: .06em; background: #0f1318; border: 1px dashed var(--gold); border-radius: 10px; padding: 16px; margin: 18px 0; word-break: break-all; }
.page { max-width: 1400px; margin: 0 auto; }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.empty { text-align: center; padding: 48px; border: 1px dashed var(--line); border-radius: 16px; }
.table { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 40px minmax(0, 3fr) 130px minmax(0, 3fr) 80px 220px; gap: 18px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tr:last-child { border-bottom: 0; }
.tr > :first-child { display: flex; align-items: center; }
.head { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #161b22; }
.cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strong a, .strong span { color: var(--ink); font-weight: 600; text-decoration: none; }
.strong a:hover { color: var(--accent); text-decoration: underline; }
.actions { display: flex; justify-content: flex-end; gap: 6px; }
.logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.logo.letter { display: inline-flex; align-items: center; justify-content: center; background: #1d3b31; color: var(--accent); font-weight: 650; }
.logo.big { width: 56px; height: 56px; }
.logo-pick > span { display: flex; align-items: center; gap: 10px; }
.reveal { background: #0f1318; border-bottom: 1px solid var(--line); padding: 16px 20px 16px 78px; }
.reveal dl { display: grid; gap: 8px; margin: 0 0 12px; }
.reveal dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: center; }
.reveal dt { color: var(--muted); font-size: 13px; }
.reveal dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.reveal .value { font-family: ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.reveal figure { margin: 0 0 12px; }
.reveal img { max-width: min(100%, 720px); border-radius: 8px; border: 1px solid var(--line); }
.files { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 8px; }
.files li button { margin-left: auto; }
.paste { border: 1px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); margin-bottom: 10px; cursor: pointer; }
.paste:focus { border-color: var(--accent); color: var(--ink); }
dialog.modal { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(440px, 94vw); }
dialog.wide-modal { width: min(860px, 96vw); max-height: 92vh; overflow: auto; }
dialog::backdrop { background: rgba(5, 8, 12, .75); }
dialog form label { margin-bottom: 4px; }
@media (max-width: 760px) {
  .head { display: none; } .tr { grid-template-columns: 40px minmax(0, 1fr); } .tr > :nth-child(3), .tr > :nth-child(4), .tr > :nth-child(5) { display: none; }
  .actions { grid-column: 1 / -1; justify-content: flex-start; } .grid { grid-template-columns: 1fr; } .reveal { padding-left: 20px; } .reveal dl > div { grid-template-columns: 1fr; }
}
@media print { body * { visibility: hidden; } code.recovery, code.recovery * { visibility: visible; } code.recovery { position: absolute; top: 0; left: 0; color: #000; background: #fff; } }
