:root {
  color-scheme: light;
  font: 15px/1.5 system-ui, sans-serif;
  --paper: #fbfaf7;
  --ink: #172735;
  --muted: #4f6271;
  --navy: #14283a;
  --blue: #15476d;
  --line: #d8e0e5;
  --white: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.shell { width: min(1050px, calc(100% - 44px)); margin-inline: auto; }
.top { background: var(--navy); color: var(--white); }
.bar, .hero, .identity, .actions, .section-head, .search-row, .navigation {
  display: flex; align-items: center; gap: 12px;
}
.bar, .hero, .section-head { justify-content: space-between; }
.bar { min-height: 62px; }
.brand { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand span { color: #c2d5e5; font-weight: 500; margin-left: 5px; }
.badge { padding: 3px 9px; border: 1px solid #738a9d; border-radius: 999px; font-size: 12px; }
main { padding: 33px 0 54px; }
.hero { margin-bottom: 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 4.5vw, 45px); letter-spacing: -.055em; line-height: 1.15; }
h2 { font-size: 20px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
.hero p, small, .muted { color: var(--muted); }
.hero p { margin-top: 7px; }
.identity, .actions { flex-wrap: wrap; }
.identity { justify-content: flex-end; }
.panel, .card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.panel > h2, .panel > h3 { margin-bottom: 12px; }
button, input, select, textarea { font: inherit; }
button, .button {
  color: var(--blue); cursor: pointer; background: var(--white); border: 1px solid #a9bbc9;
  text-decoration: none; border-radius: 7px; padding: 7px 12px; font-weight: 650;
}
button:hover, .button:hover { background: #eef5fa; }
.primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.primary:hover { background: #103b5c; }
.quiet { background: transparent; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #2175a8; outline-offset: 2px; }
.filters { display: grid; grid-template-columns: 1fr minmax(180px, 250px); gap: 20px; align-items: center; }
.filters:has(.quota[hidden]) { grid-template-columns: 1fr; }
label { display: block; font-weight: 650; margin-bottom: 5px; }
input, textarea, select { border: 1px solid #a9bbc9; border-radius: 7px; padding: 8px 10px; color: var(--ink); background: var(--white); }
input[type=search], textarea, select { width: 100%; }
.quota { color: var(--muted); font-size: 13px; }
.quota strong { margin-left: 5px; color: var(--ink); white-space: nowrap; }
progress { width: 100%; height: 8px; accent-color: var(--blue); display: block; margin-top: 5px; }
#quota-warning { color: #794715; }
.message { padding: 9px 12px; border-radius: 7px; background: #e9f1f8; margin-bottom: 15px; }
.message[data-error="true"] { background: #f9ede6; color: #763d23; }
.section-head { margin: 22px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-title { margin-bottom: 3px; }
.card p, .card a { overflow-wrap: anywhere; }
.card .actions { margin-top: 11px; }
.contact-email { font-weight: 700; margin-top: 8px; }
.navigation { margin-top: 12px; justify-content: flex-end; }
.admin .panel + .panel { margin-top: 10px; }
.record { padding: 8px 0; border-top: 1px solid var(--line); }
.record label { font-size: 13px; }
.account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account input[type=number] { width: 90px; }
.account input[type=checkbox] { margin: 0 4px 0 0; }
.account label { margin: 0; }
.correction-box { display: grid; gap: 8px; margin-top: 10px; }
.correction-box button { justify-self: start; }
.suggestion { margin-top: 10px; }
.suggestion summary { cursor: pointer; color: var(--blue); font-weight: 650; }
.suggestion form { display: grid; gap: 10px; padding-top: 12px; }
.suggestion button { justify-self: start; }
.suggest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.suggest-grid input { width: 100%; }

@media (max-width: 670px) {
  .shell { width: calc(100% - 28px); }
  .hero { align-items: flex-start; flex-direction: column; }
  .filters, .cards, .suggest-grid { grid-template-columns: 1fr; }
  main { padding-top: 23px; }
}
