:root {
  color-scheme: light dark;
  --page: #f4f6f2;
  --surface: #ffffff;
  --text: #17231b;
  --muted: #46534a;
  --line: #cbd4c8;
  --accent: #245c35;
  --button: #173d24;
  --button-text: #ffffff;
  --focus: #2463c9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
.site-header {
  width: min(100%, 76rem);
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.4rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; padding-block: .5rem; }
.brand-dot { display: inline-block; width: .45rem; height: .45rem; background: var(--accent); border-radius: 50%; }
.header-label { color: var(--muted); font-size: .875rem; }
main { flex: 1; width: min(100%, 40rem); margin: auto; padding: clamp(1.5rem, 5vw, 4rem) 1.25rem 2.5rem; }
.file-card { padding: clamp(1.5rem, 5vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.file-mark { display: grid; place-items: center; width: 3.4rem; height: 4rem; margin-bottom: 1.75rem; border: 2px solid var(--accent); border-radius: .35rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .09em; }
.eyebrow { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; margin: 0 0 1rem; }
.description { font-size: 1rem; line-height: 1.6; color: var(--muted); margin: 0; }
.file-details { margin: 1.75rem 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 1rem; }
.file-details div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem; align-items: baseline; }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
button { min-height: 3rem; padding: .85rem 1.2rem; border: 2px solid var(--button); border-radius: .5rem; background: var(--button); color: var(--button-text); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 1rem; }
button:hover:not(:disabled) { filter: brightness(1.15); }
button:disabled { cursor: wait; opacity: .7; }
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.status { font-size: .9rem; line-height: 1.55; margin: 1rem 0 0; }
.status:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.note { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: .6rem 0 0; }
.page-note { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 1.25rem .25rem 0; }
.notice { line-height: 1.6; }
footer { padding: 1rem 1.25rem 1.5rem; text-align: center; font-size: .8rem; color: var(--muted); }
footer span { padding-inline: .4rem; }
@media (max-width: 25rem) {
  .header-label { display: none; }
  .file-details div { grid-template-columns: 1fr; gap: .2rem; }
  button { width: 100%; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #111b15;
    --surface: #1b2a20;
    --text: #f1f5ed;
    --muted: #c5d0c2;
    --line: #50664f;
    --accent: #b3d5a1;
    --button: #c5e5b5;
    --button-text: #17231b;
    --focus: #a3c4ff;
  }
}
@media (prefers-contrast: more) {
  :root { --line: var(--text); --muted: var(--text); }
  .file-card { border-width: 2px; }
}
@media (forced-colors: active) {
  .brand-dot { background: CanvasText; }
  .file-mark, .file-card, .file-details, button { border-color: CanvasText; }
}
