:root { --paper: #f5f4ee; --sheet: #fffefa; --ink: #202f2a; --muted: #53635a; --green: #14533f; --pale: #e8eee6; --line: #b9c7ba; --rust: #8c351c; --warn-bg: #fff0e4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Trebuchet MS", sans-serif; }
h1, h2, h3, .brand { font-family: "Franklin Gothic Medium", "Trebuchet MS", sans-serif; font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: .15em 0 .35em; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; margin: 0 0 1rem; }
p { margin: 0 0 1rem; max-width: 78ch; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--ink); }
a[href], button, summary, select, label[for], .check, input[type=checkbox] { cursor: pointer; }
:focus-visible { outline: 3px solid #a4411d; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 1rem; background: var(--sheet); }
.skip:focus { top: 1rem; }
.masthead { background: var(--sheet); border-top: 6px solid var(--green); padding: 1.5rem 3.5vw; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font-size: 2rem; text-decoration: none; color: var(--ink); }
.brand span { display: block; font: .8rem/1.5 "Trebuchet MS", sans-serif; color: var(--muted); margin-top: .15rem; }
.session, .inline-form { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.session span, .edition { color: var(--muted); }
.navigation { display: flex; gap: .25rem 1.5rem; padding: 0 3.5vw; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--sheet); }
.navigation a, .tabs a { text-decoration: none; padding: .95rem .2rem; border-bottom: 3px solid transparent; }
.navigation a:hover, .tabs a:hover { background: var(--pale); }
a[aria-current=page] { border-bottom-color: var(--green); color: var(--ink); font-weight: bold; }
main { padding: 2.7rem 3.5vw 4rem; max-width: 1600px; margin: auto; min-height: 65vh; }
footer { display: flex; gap: 1rem; justify-content: space-between; padding: 1.3rem 3.5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.7rem; }
.page-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.eyebrow { color: var(--green); font-size: .88rem; margin-bottom: .6rem; }
.environment { border-bottom: 1px dashed var(--line); padding-bottom: .6rem; color: var(--muted); font-size: .8rem; margin-bottom: 1.5rem; }
.button, button { display: inline-flex; justify-content: center; align-items: center; background: var(--green); color: white; border: 1px solid var(--green); padding: .65rem 1.1rem; min-height: 44px; border-radius: 3px; font: inherit; font-weight: bold; text-decoration: none; white-space: nowrap; }
.button:hover, button:hover { background: #0c392b; text-decoration: underline; }
.button:active, button:active { background: var(--ink); box-shadow: inset 0 0 0 2px var(--sheet); color: white; }
button:disabled { opacity: .6; cursor: not-allowed; }
button.secondary { background: var(--sheet); color: var(--green); }
button.quiet { background: transparent; border-color: var(--line); color: var(--green); font-weight: normal; }
button.secondary:hover, button.quiet:hover { background: var(--pale); text-decoration: underline; }
button.secondary:active, button.quiet:active { background: var(--line); }
button.danger { background: var(--rust); border-color: var(--rust); }
button.danger:hover { background: #60210f; }
label { display: block; font-weight: bold; font-size: .9rem; margin-bottom: .4rem; }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid #829588; border-radius: 3px; min-height: 44px; padding: .6rem .7rem; }
input:hover, select:hover, textarea:hover { border-color: var(--green); }
input::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: normal; font-size: 1rem; }
.check input { width: 22px; height: 22px; min-height: 22px; margin: .15rem 0; flex-shrink: 0; accent-color: var(--green); }
.check:hover { text-decoration: underline; }
.check:active { color: var(--green); }
small { color: var(--muted); display: block; padding-top: .3rem; }
.filters { display: flex; gap: 1rem; align-items: end; padding: 1.5rem 0; flex-wrap: wrap; }
.filters > div { flex: 1; min-width: 220px; }
.filters > a { padding: .65rem; min-height: 44px; }
.report-note { display: flex; align-items: start; gap: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--green); background: var(--pale); font-size: .9rem; }
.report-note strong { flex-shrink: 0; }
.table-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.table-heading h2 { font-size: 1rem; margin: 0; }
.table-scroll { overflow-x: auto; background: var(--sheet); border-block: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--muted); background: var(--pale); font-weight: normal; padding: .9rem 1rem; }
td { border-top: 1px solid var(--line); vertical-align: top; padding: 1.25rem 1rem; max-width: 420px; min-width: 160px; overflow-wrap: anywhere; }
tbody tr:hover { background: #f4f6ef; }
.asset-link { font-size: 1.1rem; font-weight: bold; display: inline-block; padding: .1rem 0; }
.cell-note, .serial, .warning { display: block; margin-top: .3rem; }
.cell-note { color: var(--muted); font-size: .82rem; }
.serial, code, pre, .token-result textarea { font-family: Consolas, monospace; font-size: .88rem; }
.serial { color: var(--muted); }
.status { display: inline-block; padding: .2rem .5rem; background: var(--pale); color: var(--green); font-size: .82rem; border-radius: 2px; }
.status.warn { background: var(--warn-bg); color: var(--rust); }
.warning { color: var(--rust); font-size: .87rem; }
.pager { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; font-size: .9rem; flex-wrap: wrap; }
.pager a { padding: .6rem; }
.pager span { color: var(--muted); }
.empty { padding: 3rem 1.5rem; border-block: 1px solid var(--line); background: var(--sheet); margin-top: 1rem; }
.empty p { color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; }
.login-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8vw; max-width: 1150px; margin: 2.5rem auto; }
.login-intro h1 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); }
.login-intro > p { max-width: 42ch; }
.cadence { border-block: 1px solid var(--line); padding: 1.3rem 0; margin: 2rem 0; }
.cadence dt { font-size: 1.9rem; color: var(--green); }
.cadence dd { margin: .4rem 0 0; color: var(--muted); max-width: 40ch; }
.login-form { align-self: start; background: var(--sheet); padding: 2.2rem; border-top: 4px solid var(--green); }
.login-form form input, .narrow input { margin-bottom: 1.2rem; }
.login-form button { width: 100%; margin: .4rem 0 1.5rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.detail-grid > * { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.full { grid-column: 1 / -1; }
.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 1.5rem; border-bottom: 1px solid var(--line); margin: 1rem 0 2rem; }
.danger-zone, .create-user { border: 1px solid var(--line); padding: 1.25rem; margin: 2rem 0; background: var(--sheet); }
summary { padding: .25rem 0; color: var(--green); min-height: 44px; }
summary:hover { text-decoration: underline; }
summary:active { color: var(--ink); }
details[open] > summary { margin-bottom: 1rem; }
.explanation { padding: 1.6rem; background: var(--pale); border-top: 3px solid var(--green); }
.explanation code { overflow-wrap: anywhere; }
.token-result { border-left: 4px solid var(--green); padding: 1.5rem; background: var(--sheet); margin-top: 2rem; }
.token-result textarea { margin: .5rem 0 1rem; }
.inline-form .check { margin: .6rem 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 600px; }
.notice, .errors:not(:empty) { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 4px solid var(--green); background: var(--pale); }
.errors:not(:empty) { color: var(--rust); background: var(--warn-bg); border-color: var(--rust); }
.validation-summary-valid { display: none; }
.errors ul { margin: 0; padding-left: 1rem; }
.narrow { max-width: 520px; }
.progress { position: fixed; bottom: 1rem; right: 1rem; padding: 1rem; background: var(--ink); color: white; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
    .login-grid, .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .login-grid { margin: 0; }
    .login-intro h1 { font-size: 2.7rem; }
    .login-intro .cadence { margin: 1rem 0; }
    .login-form { padding: 1.5rem; order: -1; }
    .page-heading { align-items: start; flex-direction: column; gap: 1rem; }
    .report-note { flex-direction: column; gap: .5rem; }
    .masthead { align-items: flex-start; }
    .session { gap: .5rem; align-items: flex-end; flex-direction: column; }
    .navigation { gap: 0 1rem; }
    main { padding-top: 1.5rem; }
    .table-heading { align-items: start; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .filters > div { min-width: 100%; }
    .masthead { gap: .8rem; }
    .brand { font-size: 1.8rem; }
    .brand span { max-width: 130px; }
    .table-heading { flex-wrap: wrap; }
    .specs > div { grid-template-columns: 1fr; gap: .25rem; }
    .tabs { gap: .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
