:root{font-family:system-ui,sans-serif;color:#15322a;background:#f7f4eb;line-height:1.55}
*{box-sizing:border-box}
body{margin:0}
header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem max(5vw,1rem);background:#10382c;color:#fff9e8}
header a{color:inherit}.brand{text-decoration:none;font-weight:750;letter-spacing:.04em}.brand span{color:#edc77a}.brand small{margin-left:.35rem}
main{max-width:1160px;margin:auto;padding:clamp(1rem,4vw,3rem);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.5rem;align-items:start}
.hero{background:#123d31;color:#fff9e9;padding:clamp(1.5rem,4vw,3rem);border-radius:25px;min-height:365px;overflow:hidden;position:relative}
.hero h1,.card h1,h2{font-family:Georgia,serif;line-height:1.12;margin:0 0 .8rem}
.hero h1{font-size:clamp(2.5rem,5vw,4.4rem)}
.hero p{max-width:31ch}.ornament{color:#edc77a;font-size:2.5rem;margin-bottom:.5rem}
dl{display:flex;gap:1rem 2rem;flex-wrap:wrap;border-top:1px solid #ffffff42;padding-top:1rem;margin:1.5rem 0 0}
dt{font-size:.85rem;color:#f0cb84}dd{margin:0}
.card{background:#fffdf7;border:1px solid #e2ddd0;border-radius:25px;padding:clamp(1rem,3vw,2rem);box-shadow:0 9px 28px #263b3010}
.dashboard,.login{grid-column:1/-1}.login{max-width:32rem;width:100%;margin:auto}
.fields{display:grid;gap:.75rem}label,legend{font-weight:650}
input:not([type=radio]):not([type=checkbox]){width:100%;display:block;padding:.67rem .75rem;border:1px solid #8d9d91;border-radius:8px;font:inherit;background:#fff;color:#15322a}
fieldset{border:0;padding:0;margin:1.2rem 0}legend{padding:0}
.muted{color:#4c655c;margin:.1rem 0 .55rem;font-size:.88rem}
.numbers{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:.3rem}
.tile{position:relative;cursor:pointer}
.tile input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.tile span,.taken{display:grid;min-height:34px;place-items:center;border-radius:7px;background:#eaf2e8;font-size:.86rem}
.tile:hover span{background:#d0e6d5}
.tile input:checked+span{background:#174e38;color:white}
.tile input:focus-visible+span{outline:2px solid #7f202c;outline-offset:2px}
.taken{background:#f2eee5;text-decoration:line-through;color:#655f55}
button{background:#8a2c3c;color:#fff;border:0;border-radius:8px;padding:.65rem 1rem;min-height:40px;font:inherit;font-weight:650;cursor:pointer}
button:hover{background:#6e2030}
input:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #a95a29;outline-offset:2px}
a{color:#215742}.login button{margin-top:.8rem}.alert{background:#f9e9d6;border-radius:8px;padding:.65rem .85rem}
.actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1.5rem}
.dashboard details{margin-top:1.4rem}.dashboard summary{font-weight:650;cursor:pointer}.dashboard select{font:inherit;max-width:100%;display:block;margin-top:.35rem}
.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}
th,td{padding:.65rem;border-bottom:1px solid #e2ddd0;vertical-align:top}
td button{margin-top:.3rem;padding:.3rem .65rem}footer{text-align:center;padding:1rem;color:#51655d;font-size:.85rem}

body:has(.hero) {
  --registration-red: #EF3A4F;
  --registration-ink: #260a10;
  color: var(--registration-ink);
}
body:has(.hero) header,
.hero,
body:has(.hero) .tile input:checked + span {
  background: var(--registration-red);
  color: #fff;
  text-shadow: 0 1px 2px #260a10;
}
body:has(.hero) .brand span,
.hero .ornament { color: #edc77a; }
.hero dt { color: inherit; }
.hero dl { border-top-color: #ffffff70; }
body:has(.hero) .tile span { background: #fce7e9; }
body:has(.hero) .tile:hover span { background: #f9cbd1; }
body:has(.hero) .muted,
body:has(.hero) footer { color: #61414a; }
body:has(.hero) input:not([type=radio]):not([type=checkbox]) {
  border-color: #9a7b81;
  color: var(--registration-ink);
}
@media(max-width:740px){main{grid-template-columns:1fr}.hero{min-height:0}.numbers{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media(max-width:360px){.numbers{grid-template-columns:repeat(5,minmax(0,1fr))}}
