:root { --fg: #1d1d1f; --muted: #5f6368; --line: #d9d9de; --bg: #fff; --panel: #f6f6f8; --accent: #1f5fbf; --bad: #a11d1d; --good: #1d6b35; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #ececf0; --muted: #a0a0a8; --line: #3a3a40; --bg: #18181b; --panel: #222226; --accent: #8ab4f8; --bad: #ff8a80; --good: #7fd69a; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
#app { max-width: 960px; margin: 0 auto; padding: 12px 16px 48px; }
a { color: var(--accent); }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; color: inherit; text-decoration: none; margin-right: auto; }
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
header .action { margin: 0; }
header button { background: transparent; color: var(--accent); }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tabs .project { width: 100%; margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.tabs a { padding: 6px 0; text-decoration: none; }
.tabs a[aria-current="page"] { color: inherit; font-weight: 700; border-bottom: 2px solid var(--accent); }
h1 { font-size: 22px; margin: 20px 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 17px; margin: 24px 0 8px; overflow-wrap: anywhere; }
.items { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 12px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.item .title { display: block; font-size: 17px; font-weight: 600; margin: 0 0 6px; }
dl { display: grid; grid-template-columns: minmax(7em, max-content) minmax(0, 1fr); gap: 4px 12px; margin: 0 0 8px; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; }
.copyable { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 100%; }
.action { display: grid; gap: 8px; margin: 8px 0 16px; max-width: 560px; }
.action > button { justify-self: start; }
.slot:empty { display: none; }
.item .action { margin-bottom: 8px; }
.range { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: 14px; }
input, select, textarea, button, .button { font: inherit; font-size: 16px; }
input, select, textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: inherit; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; resize: vertical; }
button, .button { display: inline-block; min-height: 40px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--bg); cursor: pointer; text-decoration: none; }
button[type="button"] { background: transparent; color: var(--accent); }
button.danger { border-color: var(--bad); background: var(--bad); }
button:disabled { opacity: 0.5; cursor: progress; }
.copyable button { min-height: 32px; padding: 2px 10px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hint, .lead, .empty, .loading { color: var(--muted); }
.hint { font-size: 14px; display: block; overflow-wrap: anywhere; }
.error { color: var(--bad); margin: 0; overflow-wrap: anywhere; }
.problem { display: grid; gap: 8px; justify-items: start; margin: 16px 0; }
#app[aria-busy="true"] main { opacity: 0.6; }
.error .message { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.notice { border: 1px solid var(--good); border-radius: 8px; padding: 8px 12px; margin: 16px 0; overflow-wrap: anywhere; }
.secret { border-width: 2px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
td { white-space: nowrap; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dd { margin-bottom: 6px; }
  th, td { padding: 6px 4px; }
}
