:root { color: #17251f; background: #f2f0e9; font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { padding: .72rem 1rem; border: 1px solid #174d3e; border-radius: .55rem; color: white; background: #174d3e; font-weight: 750; cursor: pointer; }
button:hover { background: #103b2f; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: .2rem solid #75ad9c; outline-offset: .15rem; }
button:disabled { cursor: wait; opacity: .6; }
.secondary, .topbar button { color: #174d3e; background: white; }
.secondary:hover, .topbar button:hover { background: #eaf3ef; }
.skip-link { position: absolute; left: -999rem; top: .5rem; z-index: 3; padding: .5rem; background: white; }
.skip-link:focus { left: .5rem; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .75rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid #d4d2ca; background: rgba(255,255,255,.92); }
.topbar p { margin: 0; color: #52615b; font-size: .82rem; font-weight: 700; }
.topbar > button { justify-self: end; padding: .45rem .75rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border-radius: .65rem; color: white; background: #174d3e; font-weight: 850; }
main { width: min(86rem, 100%); margin: 0 auto; padding: clamp(1.25rem, 4vw, 3.5rem); }
.login-panel { max-width: 44rem; margin: 7vh auto; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid #d0cec5; border-radius: 1rem; background: white; box-shadow: 0 1rem 3rem rgba(48,44,32,.08); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: Georgia, Cambria, serif; line-height: 1.08; }
.login-panel h1, .page-heading h1 { margin: .2rem 0 .7rem; font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.035em; }
.login-panel > p:not(.eyebrow) { max-width: 58ch; color: #53605b; }
.eyebrow { margin: 0 0 .35rem; color: #745f32; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
form label { display: block; font-weight: 750; }
.login-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: .45rem; }
input[type="password"], textarea { width: 100%; padding: .7rem; border: 1px solid #8e9994; border-radius: .5rem; background: #fff; }
.status { min-height: 1.5rem; color: #405a51; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1rem; }
.service-state { display: grid; gap: .15rem; padding: .75rem 1rem; border-left: .25rem solid #6b8e81; background: #e5eee9; }
.service-state small { color: #51625b; font-family: ui-monospace, Consolas, monospace; }
.layout { display: grid; grid-template-columns: minmax(15rem, .75fr) minmax(25rem, 1.8fr); gap: 1rem; align-items: start; }
.panel { border: 1px solid #d4d2c9; border-radius: .85rem; background: white; box-shadow: 0 .8rem 2.5rem rgba(48,44,32,.06); }
.queue { padding: 1rem; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.panel-heading h2 { margin: 0; font-size: 1.45rem; }
#review-count { min-width: 2rem; padding: .2rem .45rem; border-radius: 1rem; background: #ece9df; text-align: center; font-weight: 800; }
#review-list { display: grid; gap: .45rem; margin: .85rem 0; }
.queue-item { width: 100%; display: grid; gap: .25rem; color: inherit; border-color: #d7d5cd; background: #fff; text-align: left; }
.queue-item:hover, .queue-item[aria-current="true"] { border-color: #4a796c; color: inherit; background: #eef5f2; }
.queue-item small { color: #63716b; }
.review { overflow: hidden; }
.review-heading { padding: 1.4rem 1.5rem 1rem; border-bottom: 1px solid #e2e0d8; background: linear-gradient(135deg, #f5faf7, #fff); }
.review-heading h2, .empty h2 { margin: .2rem 0; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.empty { padding: 2rem; color: #53605b; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; padding: 1.1rem 1.5rem; background: #faf9f5; font-size: .82rem; }
.facts dt { color: #69746f; }
.facts dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.choice-form { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; }
fieldset { display: grid; gap: .55rem; padding: 0; border: 0; }
legend { margin-bottom: .55rem; font-weight: 800; }
.choice { display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; padding: .8rem; border: 1px solid #d7d5cd; border-radius: .6rem; cursor: pointer; }
.choice:hover, .choice:focus-within { border-color: #4a796c; background: #f2f7f5; }
.choice input { margin-top: .25rem; accent-color: #174d3e; }
.choice strong, .choice small { display: block; }
.choice small { margin-top: .2rem; color: #64716c; font-weight: 400; }
.note-label { display: grid; gap: .35rem; font-size: .83rem; }
.confirmation { padding: 1.3rem 1.5rem 1.5rem; border-top: 1px solid #dedbd1; }
.confirmation h3 { margin: .1rem 0 .8rem; font-size: 1.8rem; }
.confirmation .facts { padding: 0; background: transparent; }
.confirmation-copy { padding: .75rem; border-left: .25rem solid #8f7b4f; background: #f4efe3; color: #574f3f; }
.confirm-controls { display: flex; justify-content: flex-end; gap: .6rem; }
.response-state { display: inline-block; width: fit-content; margin-top: .45rem; padding: .25rem .5rem; border-radius: .35rem; color: #31584d; background: #dfede7; font-size: .74rem; font-weight: 800; }
.state-rejected, .state-conflicted, .state-expired { color: #7a392c; background: #f4e3dd; }
@media (max-width: 48rem) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar p { grid-column: 1 / -1; grid-row: 2; }
  .page-heading { display: block; }
  .service-state { margin-top: 1rem; }
  .layout { grid-template-columns: 1fr; }
  .login-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: .35rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
