:root { color-scheme: dark; --bg: #0c111b; --panel: #111b2a; --line: #2b3d54; --text: #e9eef6; --muted: #b6c5da; --blue: #82c7ff; --gold: #ffd23f; --red: #ff7b6a; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0, #1b2839 0, var(--bg) 65%); color: var(--text); font: 15px/1.55 system-ui, sans-serif; min-height: 100vh; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button { background: #087cc3; border: 1px solid #259cde; border-radius: 6px; color: #fff; padding: 9px 15px; cursor: pointer; font-weight: 600; }
button:hover:not(:disabled) { background: #1397df; }
button.secondary, button.link, .navigation button { background: #1b2839; border-color: var(--line); color: var(--text); }
button.secondary:hover:not(:disabled), .navigation button:hover:not(:disabled) { background: #24344a; }
button.link { border: 0; padding: 0; background: transparent; color: var(--blue); font-weight: 500; text-align: left; overflow-wrap: anywhere; }
button.link:hover:not(:disabled) { background: transparent; text-decoration: underline; }
button.danger { background: #682a2c; border-color: #b4514d; }
button.danger:hover:not(:disabled) { background: #923438; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input, select, textarea { display: block; width: 100%; background: #0c1522; border: 1px solid #415570; border-radius: 5px; color: var(--text); padding: 9px 11px; margin-top: 5px; }
textarea { min-height: 85px; resize: vertical; }
input[type=checkbox] { width: auto; margin: 0; }
input::placeholder, textarea::placeholder { color: #869bb6; opacity: 1; }
label { display: block; font-weight: 600; }
a { color: var(--blue); }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 14px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0; }
p { margin: 0 0 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 19px max(22px, calc((100vw - 1220px) / 2)); border-bottom: 1px solid var(--line); background: #0c111be8; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 850; letter-spacing: .08em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 37px; border: 1px solid #5789ac; background: linear-gradient(#243b56, #0f1826); color: var(--gold); }
.brand-section { font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.session, .actions, .heading, .toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.session { font-size: 13px; }
.heading { justify-content: space-between; margin-bottom: 18px; }
.heading h1, .heading p { margin: 0; }
main { max-width: 1264px; margin: 0 auto; padding: 28px 22px 50px; }
.panel { border: 1px solid var(--line); background: #111b2aee; border-radius: 9px; padding: 22px; }
.login { max-width: 500px; margin: 9vh auto; }
.login form button { margin: 18px 0; width: 100%; }
.login form label + input + label { margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--gold); }
.muted, .hint { color: var(--muted); }
.hint { font-size: 12px; margin-top: 10px; }
.navigation { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.navigation a { align-self: center; padding: 0 6px; }
.navigation button[aria-current=page] { border-color: var(--blue); background: #173550; color: #cceaff; }
.notice { padding: 12px 16px; margin-bottom: 20px; border-radius: 6px; background: #173b31; border: 1px solid #407c62; overflow-wrap: anywhere; }
.notice.error { background: #3b2229; border-color: #88434c; color: #ffd3ca; }
.notice.warning { background: #3c3420; border-color: #7a6738; color: #ffe7a6; }
.toolbar { align-items: end; margin-bottom: 20px; }
.toolbar label { flex: 1 1 230px; }
.toolbar .compact { flex: 0 1 210px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: var(--muted); font-weight: 600; background: #172336; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 390px; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border: 1px solid #45617e; border-radius: 20px; color: #cceaff; background: #1b3047; }
.badge.active { color: #ffe1c3; border-color: #9b6541; background: #3d2b22; }
.badge.done { color: #b8ecd0; border-color: #3f745f; background: #16372e; }
.stack { display: grid; gap: 14px; }
.item { border: 1px solid var(--line); border-radius: 7px; padding: 16px; background: #0f1826; }
.item .heading { margin-bottom: 10px; align-items: start; }
.item p { margin: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.item .actions { margin-top: 12px; }
.item form { margin-top: 14px; }
.item .metadata { color: var(--muted); font-size: 12px; }
.pager { margin-top: 16px; }
.empty { color: var(--muted); padding: 24px 0; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr); gap: 18px; margin-bottom: 22px; }
.form-grid { display: grid; gap: 13px; }
.check-row { display: flex; gap: 9px; align-items: center; }
dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 18px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
details.section { border: 1px solid var(--line); background: #111b2aee; border-radius: 7px; margin: 12px 0; }
details.section > summary { cursor: pointer; padding: 17px 20px; font-size: 17px; font-weight: 650; }
details.section > .section-body { padding: 0 20px 20px; }
pre { font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; max-height: 480px; overflow: auto; color: #c9d8ed; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.stat strong { display: block; color: var(--gold); font-size: 30px; }
.stat span { color: var(--muted); }
footer { color: #8fa3be; font-size: 12px; text-align: center; padding: 0 22px 24px; }
@media (max-width: 680px) { .topbar { padding: 15px; } main { padding: 20px 14px 36px; } .brand-section { display: none; } .panel { padding: 17px; } .card-grid { grid-template-columns: 1fr; } .navigation { gap: 6px; } .navigation button { padding: 8px 11px; font-size: 13px; } h1 { font-size: 24px; } .toolbar { align-items: stretch; } .toolbar button { width: 100%; } dl { grid-template-columns: 1fr; gap: 2px; } dd { margin-bottom: 9px; } }
