:root {
  color-scheme: dark;
  --base: #101513;
  --surface: #18201d;
  --line: #384640;
  --ink: #eff6f2;
  --muted: #b1c2b9;
  --accent: #86e8bb;
  --danger: #ffc4b8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--base); color: var(--ink); }
main { margin: auto; max-width: 46rem; padding: max(1.2rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) 4rem max(1.1rem, env(safe-area-inset-left)); }
header, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
header { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(1.45rem, 5vw, 2.3rem); letter-spacing: -.035em; line-height: 1.12; margin: 0; }
h2 { margin: 0 0 .75rem; font-size: 1.15rem; line-height: 1.3; }
h3 { font-size: 1rem; margin: 0; }
section { margin-top: 1.5rem; }
p { margin: .65rem 0; line-height: 1.55; color: var(--muted); }
#notice { min-height: 1.55rem; }
#notice.error, .negative { color: var(--danger); }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 1rem; border-radius: .75rem; margin: .65rem 0; }
dl { display: grid; gap: .4rem .8rem; grid-template-columns: minmax(0, auto) minmax(0, 1fr); margin: .75rem 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
code, pre, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86rem; }
code, .mono { overflow-wrap: anywhere; }
pre { margin: .35rem 0 .75rem; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; background: var(--base); padding: .65rem; border-radius: .35rem; color: var(--ink); }
summary { cursor: pointer; min-height: 44px; display: list-item; padding: .65rem 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .65rem; }
button, input { border: 1px solid var(--line); border-radius: .45rem; min-height: 44px; font: inherit; }
button { cursor: pointer; padding: .53rem .82rem; font-weight: 610; }
button:disabled { cursor: default; opacity: .56; }
.primary { background: var(--accent); color: #10271c; border-color: var(--accent); }
.secondary { background: transparent; border-color: #60776b; color: var(--ink); }
.danger { color: var(--danger); border-color: #987468; }
.small { font-size: .86rem; }
input { background: var(--base); color: var(--ink); padding: .65rem; width: 100%; max-width: 28rem; display: block; margin: .5rem 0 .75rem; }
:focus-visible { outline: 2px solid #e4fff2; outline-offset: 3px; }
::selection { background: var(--accent); color: var(--base); }
@media (max-width: 420px) {
  .actions button { flex: 1 1 9rem; }
  .panel { padding: .8rem; }
}
#project-filter-label { display: flex; align-items: center; gap: .65rem; margin: .55rem 0; color: var(--muted); }
select { min-height: 44px; max-width: 100%; padding: .4rem; border: 1px solid var(--line); border-radius: .4rem; font: inherit; }
