@font-face {
  font-family: Estedad;
  src: url('/assets/Estedad-400.ttf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Estedad;
  src: url('/assets/Estedad-800.ttf');
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #24221c;
  --muted: #585346;
  --gold: #eac083;
  --border: #d9c49f;
  --paper: #fffaf0;
  --green: #285941;
}
* {box-sizing: border-box}
body {margin: 0; background: #f3ead8; color: var(--ink); font: 400 1rem/1.7 Estedad, Tahoma, sans-serif}
.shell {width: min(1200px,100% - 2rem); margin-inline: auto}
.mast {color: #f2e9d9; background: radial-gradient(at right bottom,#6e4c26,transparent 55%),#211f1a}
.mast .shell {display: flex; justify-content: space-between; align-items: center; padding-block: 1rem}
.wordmark {font-size: 1.45rem; font-weight: 800; letter-spacing: -.06em}
.wordmark span {color: var(--gold)}
main.shell {padding-block: clamp(1.2rem,4vw,3.3rem)}
h1,h2,p {margin: 0}
h1 {font-size: clamp(1.55rem,4vw,2.6rem); line-height: 1.35}
h2 {font-size: 1.15rem; margin-block-end: .65rem}
.dashboard-head {display: flex; align-items: center; justify-content: space-between; gap: 1rem}
.dashboard-head p,.hint {color: var(--muted); font-size: .85rem}
.stats {display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; margin-block: 1.2rem}
.stat,.card {border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(147deg,#fffdf8,#faf2df); box-shadow: inset 0 1px #fff,0 8px 22px -16px #5d431c}
.stat {padding: .65rem .85rem; color: inherit; text-decoration: none; display: grid}
.stat span {font-size: .84rem}
.stat strong {font-size: 1.55rem}
.stat.entered strong {color: var(--green)}
.stat.waiting strong {color: #864b18}
.card {padding: clamp(.7rem,2.7vw,1.45rem); margin-block-end: 1rem}
.login {max-width: 420px; margin-inline: auto}
.login h1 {margin-block-end: 1rem}
form,label {display: grid; gap: .45rem}
label {font-size: .86rem}
input,select,textarea,button {font: inherit; color: inherit; min-width: 0}
input,select,textarea {width: 100%; min-height: 43px; border: 1px solid #b5a383; border-radius: 12px; background: var(--paper); padding: .45rem .65rem}
textarea {resize: vertical}
button,.pages a {border: 1px solid #5b4930; background: #3a3022; color: #fff8ea; border-radius: 13px; min-height: 43px; padding: .42rem .8rem; cursor: pointer}
.secondary {background: var(--paper); color: var(--ink); border-color: var(--border)}
:focus-visible {outline: 3px solid #a2672c; outline-offset: 2px}
.filters {grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; align-items: end; margin-block-end: .65rem}
table {width: 100%; border-collapse: collapse; text-align: start; font-size: .87rem; margin-block-start: .8rem}
th,td {text-align: start; padding: .57rem .45rem; border-block-end: 1px solid #e1d2b7; overflow-wrap: anywhere}
thead {background: #f1e5cc}
.badge {display: inline-flex; border-radius: 999px; background: #ede3d1; color: #563e29; padding: .17rem .53rem; white-space: nowrap}
.badge.entered {background: #dce9da; color: var(--green)}
.badge.waiting {background: #f5e2c3; color: #764317}
.empty,.notice {padding: .6rem .8rem; background: #eee3ca; border-radius: 12px; margin-block: .65rem}
.pages {display: flex; gap: .65rem; align-items: center; justify-content: center; margin-block-start: .7rem}
.pages a {text-decoration: none}
.import form {margin-block-start: .55rem}
.import button {justify-self: start}
@media (max-width: 690px) {
  .stats,.filters {grid-template-columns: repeat(2,minmax(0,1fr))}
  .filters label:first-child {grid-column: 1 / -1}
  table,tbody,tr,thead,td,th {display: block}
  thead {position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%)}
  tbody {display: grid; gap: .6rem}
  tbody tr {border: 1px solid var(--border); border-radius: 14px; padding: .25rem .55rem}
  tbody td {display: flex; justify-content: space-between; gap: .5rem}
  tbody td::before {content: attr(data-label); color: var(--muted); flex-shrink: 0}
  tbody td:last-child {border: 0}
}
