:root { color-scheme: light; --paper: #fff; --canvas: #f5f6f6; --ink: #25282b; --muted: #575e63; --line: #d5d9dc; --accent: #a53f08; --accent-hover: #803005; --danger: #a12020; --focus: #2b5fa6; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
* { box-sizing: border-box; }
html { scrollbar-color: #9b9fa3 var(--canvas); }
body { margin: 0; font-size: 1rem; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: anywhere; }
::selection { background: #f5c7a8; color: #25282b; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button, input, select { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .25rem; background: var(--accent); color: white; font-weight: 650; cursor: pointer; text-decoration: none; text-align: center; }
button:hover, .button:hover { background: var(--accent-hover); color: white; }
button:disabled { cursor: not-allowed; background: #666; }
.button-secondary, .button-quiet { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { background: #e9ebed; color: var(--ink); }
.button-danger { background: var(--paper); border-color: var(--danger); color: var(--danger); }
.button-danger:hover { background: var(--danger); }
.skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 10; padding: .75rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; margin: auto; padding: 1.15rem 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.brand { display: flex; gap: .6rem; align-items: baseline; text-decoration: none; color: var(--ink); white-space: normal; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.brand strong { font-size: 1.35rem; letter-spacing: -.035em; min-width: 0; max-width: 100%; }
.brand span { color: var(--accent); font-size: 1rem; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; flex: 1; }
.site-header nav a { color: var(--ink); font-weight: 550; min-height: 44px; display: flex; align-items: center; }
.site-header nav a[aria-current] { color: var(--accent); text-decoration-thickness: 2px; }
.logout-form { margin: 0; }
.main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 3rem 2rem 4rem; flex: 1; }
.main:focus { outline: none; }
h1, h2 { line-height: 1.18; text-wrap: balance; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .25rem 0 .9rem; font-weight: 700; max-width: 30ch; }
h2 { font-size: 1.3rem; margin: 0 0 1rem; font-weight: 650; }
p { max-width: 70ch; margin: .5rem 0 1.15rem; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.2rem; }
.page-heading p { margin-bottom: 0; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); padding-top: min(8vh, 5rem); max-width: 1000px; margin: auto; }
.login-intro h1 { margin-bottom: 1.5rem; }
.login-form { background: var(--paper); padding: 2rem; border: 1px solid var(--line); border-radius: .35rem; }
.login-form button { width: 100%; }
.editor-form { width: 100%; max-width: 38rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 600; margin-bottom: .45rem; }
.required-note { font-size: .85rem; color: var(--muted); font-weight: 400; }
input:not([type="checkbox"]), select { display: block; width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #838a90; border-radius: .2rem; color: var(--ink); background: var(--paper); caret-color: var(--accent); }
input::placeholder { color: var(--muted); }
input[type="checkbox"] { accent-color: var(--accent); width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.field-check { display: flex; gap: .7rem; align-items: center; min-height: 30px; }
.field-check label { margin: 0; }
.help-text { font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.form-errors, .field-errors { color: #92201a; }
.form-errors { background: #fff1ef; border: 1px solid #d7a5a1; border-radius: .2rem; padding: 1rem; margin-bottom: 1.5rem; }
.form-errors p { margin: 0 0 .4rem; font-weight: 600; }
.errorlist { list-style: none; margin: .4rem 0 0; padding: 0; }
.field-invalid input, .field-invalid select { border-color: #a12020; }
.notice { padding: .85rem 1rem; background: #eef4eb; border: 1px solid #a5b99b; color: #2f4e24; border-radius: .2rem; max-width: none; margin: 0 0 1.5rem; }
.table-wrap { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); border-radius: .25rem; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; text-align: left; font-variant-numeric: tabular-nums; }
th { background: #eceef0; font-size: .88rem; font-weight: 650; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }
td:first-child { min-width: 10rem; }
.identifier { overflow-wrap: anywhere; font-size: .85rem; min-width: 15rem; }
.muted { color: var(--muted); }
.empty-state { padding: 2rem; border: 1px solid var(--line); border-radius: .25rem; background: white; }
.empty-state p { margin-bottom: 0; }
.secondary-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1.5rem; padding: 1.5rem; background: white; border: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .88rem; margin-bottom: .35rem; }
.facts dd { margin: 0; }
.facts > div { min-width: 0; }
.facts .identifier { min-width: 0; max-width: 100%; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .5rem; }
.pagination { display: flex; gap: 1.5rem; align-items: center; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a { padding: .6rem; min-height: 44px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; max-width: 1200px; width: 100%; padding: 1.5rem 2rem; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .header-inner { padding: 1rem; gap: .7rem 1.2rem; } .site-header nav { order: 3; width: 100%; flex-basis: 100%; gap: .25rem 1.15rem; } .logout-form { margin-left: auto; } .main { padding: 2rem 1rem 3rem; } .page-heading { flex-direction: column; gap: 1.2rem; margin-bottom: 1.6rem; } .login-layout { grid-template-columns: 1fr; padding-top: 0; gap: 1.5rem; max-width: 38rem; } .login-form { padding: 1.5rem; } .facts { grid-template-columns: 1fr; } .site-footer { padding: 1rem; } th, td { padding: .8rem; } }
