:root { color-scheme: light; --ink: #1c2838; --muted: #58677b; --line: #dce4ee; --blue: #164db4; --wash: #f1f5fa; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; background: var(--wash); color: var(--ink); }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #4d8bf1; outline-offset: 2px; }
.shell { max-width: 1430px; margin: 0 auto; padding: 0 32px; }
.bar { background: #152840; color: white; }
.top { min-height: 72px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: white; text-decoration: none; font-size: 19px; font-weight: 700; }
.mark { background: #3877ed; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.layout { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 32px; }
nav a { display: block; padding: 9px 12px; margin-bottom: 4px; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 600; }
nav a:hover, nav a[aria-current] { background: #dfeafd; color: #163e8f; }
.layout.login { width: min(480px, 100%); display: block; padding-top: 65px; }
h1 { font-size: clamp(23px, 4vw, 32px); margin: 0 0 18px; line-height: 1.2; }
h2 { font-size: 18px; margin: 0 0 15px; }
p { color: var(--muted); }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: white; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
label { display: block; font-weight: 600; min-width: 0; }
small { color: var(--muted); font-weight: 400; }
input, select { width: 100%; display: block; margin-top: 6px; border: 1px solid #a9b8cd; border-radius: 7px; min-height: 42px; padding: 8px 10px; background: white; font: inherit; font-weight: 400; color: var(--ink); }
button { border: 1px solid transparent; border-radius: 7px; background: var(--blue); color: white; padding: 9px 16px; min-height: 42px; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(.9); }
button.secondary { color: var(--blue); background: #eef4ff; border-color: #bad0f4; }
button.quiet { color: white; background: transparent; border-color: #6d829e; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.actions label { flex: 0 1 350px; }
.stack { display: grid; gap: 15px; }
.filter { margin-bottom: 15px; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
th { background: #f3f6fb; color: #38495e; white-space: nowrap; }
td:first-child, .money { white-space: nowrap; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 8px; background: #e2f5eb; color: #195739; font-size: 12px; }
.pill.expired { background: #fbe8e5; color: #862818; }
.message { border-radius: 8px; background: #e2f5eb; color: #195739; margin: 0 0 15px; padding: 12px 15px; }
.message.error { background: #fbe8e5; color: #862818; }
@media (max-width: 720px) { .shell { padding-left: 15px; padding-right: 15px; } .layout { display: block; padding-top: 16px; } nav { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 15px; } .card { padding: 15px; } }
