:root {
  --paper: #fff9e7; --paper-deep: #f1e4bd; --ink: #17233f; --muted: #596272;
  --line: #17233f; --blue: #2979ff; --blue-dark: #1251ce; --yellow: #ffd237;
  --red: #ed4c4c; --green: #31a879; --pink: #ff8ead; --shadow: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper-deep); }
body { min-height: 100vh; margin: 0; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(#e4d5a9 1px, transparent 1px); background-size: 8px 8px; font: 15px/1.55 "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif; }
button, input { font: inherit; }
a { color: var(--blue-dark); }
code { padding: 2px 6px; border: 1px solid var(--line); background: var(--yellow); color: var(--ink); font-family: Consolas, monospace; word-break: break-all; }
.topbar { display: flex; align-items: center; gap: 23px; min-height: 70px; padding: 0 max(20px, calc((100vw - 1220px) / 2)); background: var(--paper); border-bottom: 3px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); font-family: Impact, "Arial Black", sans-serif; font-size: 1.05rem; letter-spacing: .045em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.brand-mark svg { width: 19px; height: 19px; }
nav { display: flex; align-items: center; gap: 4px; flex: 1; }
nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 10px; border: 2px solid transparent; color: var(--ink); font-size: .84rem; font-weight: 800; text-decoration: none; }
nav a svg { width: 17px; height: 17px; }
nav a:hover, nav a.active { border-color: var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.account { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.who { font-weight: 800; white-space: nowrap; }.who::before { content: "●"; color: var(--green); margin-right: 6px; }
.view { width: min(1220px, calc(100% - 36px)); margin: 34px auto 62px; }
.card { padding: clamp(21px, 3vw, 34px); background: var(--paper); border: 3px solid var(--line); box-shadow: var(--shadow); }.card.narrow { width: min(100%, 460px); margin: 8vh auto; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 9px; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(1.65rem, 4vw, 2.45rem); font-weight: 400; letter-spacing: .025em; line-height: 1; text-transform: uppercase; } h2 { font-size: 1.04rem; margin: 24px 0 10px; }
hr { margin: 25px 0; border: 0; border-top: 2px solid var(--line); }.hint { color: var(--muted); font-size: .875rem; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }.row.spread { justify-content: space-between; }.right { text-align: right; }.nowrap { white-space: nowrap; }
.screen-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }.screen-heading h1 { margin-bottom: 7px; }.screen-heading .hint { max-width: 620px; margin-bottom: 0; }.heading-tag { padding: 5px 9px; border: 2px solid var(--line); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-family: Impact, "Arial Black", sans-serif; font-size: .74rem; letter-spacing: .08em; }
.search-form { display: grid; grid-template-columns: minmax(220px, 1fr) 126px 86px auto; gap: 10px; padding: 13px; border: 2px solid var(--line); background: var(--paper-deep); }.search-form input { min-width: 0; }.search-form button { white-space: nowrap; }
.admin-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px; border: 2px solid var(--line); background: var(--paper-deep); }.admin-create-form { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: center; }.admin-user-list { display: grid; gap: 18px; margin-top: 24px; }.admin-user-card { border: 2px solid var(--line); background: #fffdf5; box-shadow: 4px 4px 0 var(--ink); }.admin-user-card > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; background: var(--paper-deep); }.admin-user-card .eyebrow { margin: 0 0 5px; color: var(--blue-dark); }.user-name { min-width: 220px; font-size: 1.05rem; font-weight: 900; }.user-flags { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }.role-label { font-size: .82rem; font-weight: 900; }.admin-user-sections { display: grid; grid-template-columns: .8fr 1.25fr 1.5fr; border-top: 2px solid var(--line); }.admin-user-sections[hidden] { display: none !important; }.admin-user-sections > section { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }.admin-user-sections > section:last-child { border-right: 0; }.admin-user-sections h3 { margin: 0 0 12px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }.admin-user-sections h3 small { color: var(--muted); font-weight: 500; text-transform: none; }.admin-user-sections dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 13px; }.admin-user-sections dl div { padding: 8px; border: 1px solid var(--line); background: var(--paper); }.admin-user-sections dt { color: var(--muted); font-size: .74rem; font-weight: 800; }.admin-user-sections dd { margin: 2px 0 0; font-family: Impact, "Arial Black", sans-serif; font-size: 1.25rem; }.quota-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 13px; }.quota-inputs label, .password-reset { display: grid; gap: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; }.quota-inputs input { min-width: 0; width: 100%; min-height: 35px; }.account-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }.password-reset { grid-template-columns: 1fr auto; align-items: end; }.password-reset input { min-width: 0; }.password-reset button { min-height: 42px; }
.field { display: block; margin-bottom: 15px; }.field > span { display: block; margin-bottom: 6px; color: var(--ink); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
input, button { min-height: 42px; border: 2px solid var(--line); background: #fffdf5; color: var(--ink); } input { flex: 1; min-width: 140px; padding: 8px 11px; outline: none; } input:focus { background: #fff; box-shadow: 3px 3px 0 var(--blue); } input.small { flex: 0 1 126px; } input.tiny { flex: 0 0 78px; min-width: 72px; min-height: 32px; padding: 4px 6px; }
button, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); background: var(--blue); color: #fff; font-weight: 900; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); } button:hover, .button-link:hover { background: var(--yellow); color: var(--ink); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); } button:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; } button:disabled { opacity: .6; cursor: default; box-shadow: none; } button.ghost { background: var(--paper); color: var(--ink); } button.ghost:hover { background: var(--pink); } button.danger { color: var(--red); }
.switch { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 700; }.switch input { appearance: none; width: 36px; min-width: 36px; min-height: 20px; height: 20px; padding: 0; background: var(--paper-deep); position: relative; cursor: pointer; }.switch input::after { content: ""; width: 14px; height: 14px; background: var(--ink); position: absolute; top: 1px; left: 2px; transition: transform .14s ease; }.switch input:checked { background: var(--yellow); }.switch input:checked::after { transform: translateX(15px); }
table { width: 100%; margin-top: 18px; border-collapse: collapse; border: 2px solid var(--line); background: #fffdf5; font-size: .9rem; } th, td { padding: 12px 13px; border: 1px solid var(--line); text-align: left; } th { background: var(--ink); color: var(--paper); font-size: .74rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; } tbody tr:hover { background: #fff0b4; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid currentColor; background: var(--paper-deep); color: var(--ink); font-size: .75rem; font-weight: 900; }.badge::before { content: "◆"; font-size: .55rem; }.badge-completed { background: #c7f2dc; color: #12704b; }.badge-running, .badge-queued { background: #d5e6ff; color: var(--blue-dark); }.badge-failed, .badge-cancelled { background: #ffd2d2; color: #a22929; }
.callout { margin: 18px 0; padding: 15px 16px; border: 2px solid var(--line); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }.callout strong { display: block; margin-bottom: 7px; font-size: .9rem; }.download-link { margin-left: 10px; font-size: .86rem; font-weight: 900; text-decoration-thickness: 2px; }
.skill-download { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 23px 0; padding: 17px; border: 2px solid var(--line); background: #d5e6ff; box-shadow: 4px 4px 0 var(--ink); }.skill-download .eyebrow { margin-bottom: 4px; color: var(--blue-dark); }.skill-download h2 { margin: 0 0 6px; }.skill-download p:last-child { margin: 0; color: var(--muted); font-size: .86rem; }.skill-download .button-link { flex: 0 0 auto; white-space: nowrap; }
.job-id { display: inline-block; max-width: 156px; overflow: hidden; padding: 3px 5px; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.result-grid { display: grid; gap: 11px; margin-top: 20px; }.result-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 13px; border: 2px solid var(--line); background: #fffdf5; }.result-card:hover { background: #fff0b4; }.result-index { display: grid; place-items: center; align-self: stretch; border-right: 2px solid var(--line); color: var(--blue-dark); font-family: Impact, "Arial Black", sans-serif; font-size: 1.15rem; }.result-copy h2 { margin: 0 0 5px; font-size: 1rem; overflow-wrap: anywhere; }.result-copy p { display: flex; gap: 7px; margin: 0; color: var(--muted); font-size: .82rem; }.result-copy p span + span::before { content: "·"; margin-right: 7px; color: var(--ink); }
.quota { margin: 18px 0; }.quota-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: .9rem; font-weight: 800; }.quota-head span:last-child { color: var(--muted); }.bar { height: 12px; border: 2px solid var(--line); background: var(--paper-deep); overflow: hidden; }.bar > i { display: block; height: 100%; min-width: 0; background: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; max-width: calc(100% - 32px); padding: 11px 16px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--yellow); font-size: .9rem; font-weight: 700; transform: translateX(-50%); }.toast-error { background: var(--red); color: #fff; }.toast-ok { background: var(--green); color: #fff; }
/* Library: a comic-book shelf rendered entirely with CSS and inline SVG. */
.library-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: clamp(24px, 4vw, 43px); overflow: hidden; border: 3px solid var(--line); background: var(--blue); color: #fff; box-shadow: var(--shadow); position: relative; }.library-hero::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 42%; background-image: radial-gradient(#fff 1.3px, transparent 1.8px); background-size: 9px 9px; opacity: .35; transform: skewX(-17deg) translateX(38px); }.library-hero > * { position: relative; z-index: 1; }.library-hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }.library-hero p:not(.eyebrow) { max-width: 580px; margin-bottom: 0; font-weight: 700; }.eyebrow { margin-bottom: 8px; font-family: Impact, "Arial Black", sans-serif; font-size: .76rem; letter-spacing: .12em; }
.library-stamp { display: grid; place-content: center; width: 116px; min-width: 116px; height: 116px; border: 3px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); font-family: Impact, "Arial Black", sans-serif; font-size: 3.3rem; line-height: .7; text-align: center; transform: rotate(6deg); }.library-stamp small { font-family: ui-sans-serif, sans-serif; font-size: .62rem; font-weight: 900; letter-spacing: .13em; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }.book-card { display: grid; grid-template-columns: 72px 1fr; min-height: 195px; border: 3px solid var(--line); background: #fffdf5; box-shadow: 5px 5px 0 var(--ink); }.book-spine { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 9px; border-right: 3px solid var(--line); background: var(--pink); font-family: Impact, "Arial Black", sans-serif; letter-spacing: .07em; }.book-spine b { font-size: .8rem; line-height: 1.1; writing-mode: vertical-rl; }.book-info { display: flex; flex-direction: column; align-items: flex-start; padding: 17px; }.book-info .eyebrow { color: var(--blue-dark); }.book-info h2 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.3; }.book-info .hint { margin-bottom: 16px; }.book-info .button-link { margin-top: auto; }.empty-shelf { grid-column: 1 / -1; padding: 48px 22px; border: 3px dashed var(--line); background: #fffdf5; text-align: center; }.empty-shelf > span { display: block; color: var(--pink); font-size: 4rem; font-weight: 900; line-height: 1; }.empty-shelf h2 { font-family: Impact, "Arial Black", sans-serif; font-size: 1.5rem; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; font-size: .88rem; font-weight: 800; }.book-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 7px; font-size: .78rem; font-weight: 800; }.book-meta span { padding: 2px 6px; border: 1px solid var(--line); background: var(--paper-deep); }
@media (max-width: 760px) { .topbar { min-height: 65px; padding: 10px 14px; gap: 12px; flex-wrap: wrap; } nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; } nav a { flex: 0 0 auto; }.account { margin-left: auto; }.who { font-size: 0; }.who::before { margin: 0; font-size: .9rem; }.view { width: min(100% - 24px, 1220px); margin-top: 22px; }.row > input:not(.tiny) { flex-basis: 100%; }.row > button:not(.ghost) { flex: 1; }.screen-heading, .skill-download { flex-direction: column; align-items: flex-start; }.skill-download .button-link { width: 100%; }.search-form, .admin-create-form { grid-template-columns: 1fr; }.search-form .small { max-width: none; }.admin-overview, .admin-user-card > header { align-items: flex-start; flex-direction: column; }.user-flags { justify-content: flex-start; }.user-name { min-width: 0; width: 100%; }.admin-user-sections { grid-template-columns: 1fr; }.admin-user-sections > section { border-right: 0; border-bottom: 1px solid var(--line); }.admin-user-sections > section:last-child { border-bottom: 0; }.quota-inputs { grid-template-columns: repeat(3, 1fr); }.password-reset { grid-template-columns: 1fr; }.result-card { grid-template-columns: 36px minmax(0, 1fr); }.result-card button { grid-column: 2; justify-self: start; }.result-index { grid-row: 1 / span 2; } table { display: block; overflow-x: auto; white-space: nowrap; }.library-hero { align-items: flex-start; flex-direction: column; }.library-stamp { align-self: flex-end; margin-top: -70px; width: 94px; min-width: 94px; height: 94px; font-size: 2.7rem; } }
