:root {
  color-scheme: light;
  --paper: #f3f6f2;
  --surface: #fff;
  --text: #19271f;
  --muted: #536559;
  --line: #d7e1d8;
  --green: #265746;
  --soft: #edf4ee;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--paper); color: var(--text) }
.top { background: var(--surface); border-bottom: 1px solid var(--line) }
.top-inner, main { max-width: 1140px; margin: auto; padding-inline: clamp(18px, 5vw, 48px) }
.top-inner { height: 66px; display: flex; justify-content: space-between; align-items: center }
.top strong { color: var(--green); font-size: 1.65rem; letter-spacing: -.05em }
main { padding-top: 40px; padding-bottom: 64px }
h1 { margin: 0 0 26px; font-size: clamp(1.85rem, 3.8vw, 2.85rem); font-weight: 650; letter-spacing: -.04em }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px }
.login { max-width: 420px; margin: 10vh auto 16px; padding: 28px }
.login h1 { font-size: 1.8rem; margin-bottom: 20px }
form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end }
label { font-weight: 600; width: 100%; font-size: .92rem }
input, button { font: inherit; border-radius: 8px; min-height: 42px }
input { color: var(--text); background: var(--surface); border: 1px solid var(--line); min-width: 120px; flex: 1; padding: 8px 11px }
button { cursor: pointer; color: var(--green); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; font-weight: 600 }
button:hover { background: var(--soft) }
button.primary { background: var(--green); color: white; border-color: var(--green) }
button.primary:hover { background: #1c4739 }
button:disabled { opacity: .48; cursor: default }
:focus-visible { outline: 3px solid #6f9ca9; outline-offset: 3px }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0 0 18px }
.stats .card { padding: clamp(14px, 2.7vw, 26px); display: grid; gap: 6px }
dt { color: var(--muted); font-size: .9rem }
dd { color: var(--green); font-size: clamp(1.6rem, 4vw, 2.55rem); margin: 0; font-weight: 650 }
.directory-head { padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: end; gap: 16px; justify-content: space-between }
.directory-head form { width: min(100%, 460px) }
.table-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 530px }
th,td { padding: 12px 20px; border-block: 1px solid var(--line) }
th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: .85rem }
td { font-size: .95rem }
td strong,td small { display: block; overflow-wrap: anywhere }
td small { color: var(--muted); margin-top: 3px }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; padding: 16px; font-size: .9rem }
#status:empty { display: none }
#status { background: #fff5ec; color: #69381d; padding: 12px; border-radius: 10px }
@media (max-width: 560px) {
  .stats { gap: 6px }
  .stats .card { padding: 9px }
  dt { font-size: .76rem }
  .directory-head { padding: 14px }
}
