:root {
  --bg: #f3f5f8; --surface: #ffffff; --sunken: #e9edf2; --line: #d5dbe4;
  --fg: #141a24; --muted: #5a6577; --accent: #1f5fd6; --accent-fg: #ffffff; --accent-soft: #e3ecfc;
  --ok: #157347; --ok-soft: #dcf3e6; --warn: #9a5b00; --warn-soft: #fdefd3; --bad: #b3261e; --bad-soft: #fde4e1; --todo-soft: #e9edf2;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --body: "Inter", "Segoe UI", system-ui, sans-serif; --r: 10px;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0e1218; --surface: #171d27; --sunken: #111620; --line: #2a3342;
  --fg: #e9edf3; --muted: #98a3b5; --accent: #6f9bff; --accent-fg: #0b1220; --accent-soft: #1c2a47;
  --ok: #5fd39a; --ok-soft: #163325; --warn: #f1b95a; --warn-soft: #3a2c10; --bad: #ff8a80; --bad-soft: #3b1614; --todo-soft: #222b39; color-scheme: dark } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; padding: 24px 16px 72px; }
.wrap { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: 28px; } h2 { font-size: 19px; }
h3 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; } a { color: var(--accent); }
.sub { color: var(--muted); font-size: 13.5px; }
.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--accent-soft); border-radius: var(--r); padding: 12px 14px; }
.bar select { flex: 1 1 220px; min-width: 0; width: auto; background: var(--surface); font-family: var(--display); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.req { color: var(--accent); }
input[type=text], input[type=password], input[type=email], select, textarea { width: 100%; font: inherit; color: var(--fg); background: var(--sunken); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
textarea { min-height: 84px; resize: vertical; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.missing input, .missing select, .missing textarea { border-color: var(--warn); }
button, .btn { font: inherit; font-weight: 500; font-size: 13.5px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 8px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.big { padding: 11px 18px; font-size: 15px; }
.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.mini { padding: 4px 9px; font-size: 12.5px; }
.pill { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 9px; background: var(--todo-soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.accent { background: var(--accent-soft); color: var(--accent); }
.notice { border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; background: var(--warn-soft); color: var(--warn); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
.logo-opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; background: var(--sunken); border-radius: 8px; padding: 12px 14px; }
.logo-opts input[type=color] { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.outs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.out { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; min-width: 0; }
.out img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--sunken) 0% 25%, transparent 0% 50%) 50% / 14px 14px; }
.out b { font-family: var(--display); font-size: 13.5px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dir { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.dir:first-child { border-top: 0; }
.dir-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; }
.dir-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dir-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dir-title b { font-family: var(--display); font-size: 15.5px; }
.note { font-size: 13.5px; color: var(--muted); max-width: 66ch; }
.meta { font-size: 12.5px; color: var(--muted); }
.detail { background: var(--sunken); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
pre { margin: 0; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.report { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: var(--fg); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; z-index: 20; max-width: calc(100% - 32px); }
.login { max-width: 360px; margin: 12vh auto 0; }
.error { color: var(--bad); font-size: 13.5px; }
