:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f0e6; color: #172b3c; --ww-blue: #008ccd; --ww-navy: #002d55; --ww-sky: #b4d7eb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.site-header { background: white; color: var(--ww-navy); border-bottom: 4px solid var(--ww-blue); padding: .4rem max(1.25rem, calc((100vw - 1080px) / 2)); min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header a { text-decoration: none; }
.brand { display: flex; gap: .85rem; align-items: center; }
.brand img { width: 188px; height: 63px; object-fit: contain; }
.site-header nav a { color: var(--ww-navy); font-weight: 700; }
.site-header nav a:hover { color: #00679a; }
.shell { width: min(100% - 2rem, 1080px); margin: 0 auto; padding: 1.5rem 0 2rem; flex: 1; }
.site-footer { border-top: 1px solid #d5e2eb; padding: 1rem; text-align: center; }
.site-footer .button { width: min(100%, 320px); }
.install-dialog { width: min(calc(100% - 2rem), 420px); border: 1px solid #d5e2eb; border-radius: 18px; padding: 1.5rem; color: #172b3c; box-shadow: 0 18px 60px #002d5540; }
.install-dialog::backdrop { background: #002d5580; }
.install-dialog p { margin: 0 0 1.4rem; }
.install-dialog form { display: flex; justify-content: flex-end; }
.hero { padding: 2rem 0 1.5rem; max-width: 680px; }
.hero.compact { padding: 1rem 0 1.25rem; }
.eyebrow { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 750; font-size: .75rem; color: #006b9e; }
h1, h2 { letter-spacing: -.035em; line-height: 1.14; }
h1, h2 { color: var(--ww-navy); }
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin: .2rem 0 .65rem; }
.hero h1 { overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; margin: 0 0 1rem; }
p { line-height: 1.5; }
.hero p:last-child { font-size: 1.08rem; margin-bottom: 0; color: #506575; }
.panel { background: white; border: 1px solid #d5e2eb; border-radius: 18px; padding: 1.4rem; box-shadow: 0 6px 24px #002d550d; }
.panel.tinted { background: #e8f4fa; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stack { display: grid; gap: .55rem; }
.stack label, .booking-form label { font-weight: 650; font-size: .9rem; }
input:not([type="checkbox"]), select { width: 100%; background: #fff; color: #172b3c; border: 1px solid #aebfcd; border-radius: 10px; padding: .75rem .85rem; min-height: 46px; }
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #73afdc; outline-offset: 2px; }
.button { border: 0; border-radius: 10px; padding: .75rem 1rem; min-height: 46px; font-weight: 750; text-align: center; }
.button.primary { background: var(--ww-navy); color: white; }
.button.primary:hover { background: #004977; }
.button.secondary { background: #d8eaf5; color: var(--ww-navy); }
.button.secondary:hover { background: #c5e1f1; }
.button.small { min-height: 42px; padding: .55rem .85rem; }
.button.full { width: 100%; }
.stack .button { margin-top: .65rem; }
.notice { border-radius: 12px; padding: .9rem 1rem; background: #dceefa; color: var(--ww-navy); margin: .25rem 0 1rem; font-weight: 600; }
.notice-error { background: #fbe5df; color: #843c2b; }
.fineprint, .hint { color: #5c6e7c; font-size: .88rem; }
.fineprint { max-width: 690px; margin: 1.2rem 0; }
.booking-form { display: grid; gap: .8rem; }
.booking-form select { max-width: 360px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-top: .45rem; }
.category-button { border: 1px solid #b4d7eb; background: #edf7fc; border-radius: 13px; padding: 1rem; color: var(--ww-navy); display: flex; align-items: center; justify-content: space-between; gap: .7rem; text-align: left; min-height: 78px; font-weight: 750; }
.category-button:hover { background: #dceefa; border-color: var(--ww-blue); }
.category-button:disabled, .undo-form button:disabled { opacity: .55; cursor: wait; }
.plus-icon { display: block; position: relative; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 50%; background: var(--ww-navy); }
.plus-icon::before, .plus-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: white; border-radius: 2px; transform: translate(-50%, -50%); }
.plus-icon::before { width: 18px; height: 3px; }
.plus-icon::after { width: 3px; height: 18px; }
.category-button.is-confirmed { opacity: 1; cursor: default; background: #dceefa; border-color: var(--ww-blue); }
.category-button.is-confirmed .plus-icon::before { width: 10px; height: 17px; background: transparent; border: solid white; border-width: 0 3px 3px 0; border-radius: 0; transform: translate(-50%, -58%) rotate(45deg); }
.category-button.is-confirmed .plus-icon::after { display: none; }
.undo-form { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.text-button { border: 0; background: transparent; color: #005a88; padding: .3rem 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: var(--ww-navy); }
.text-button.danger { color: #a43c2e; }
.count-list { list-style: none; padding: 0; margin: .3rem 0 0; }
.count-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #e7eff4; }
.count-list li:last-child { border-bottom: 0; }
.count-list small, .user-row small { color: #647785; font-size: .86em; }
.shell > .panel { margin-top: 1rem; }
.settings summary { cursor: pointer; font-weight: 750; }
.settings[open] summary { margin-bottom: 1rem; }
.narrow { max-width: 450px; }
.logout-form { margin-top: 1rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 1rem 0; }
.admin-heading h1 { margin-bottom: 0; }
.admin-section { margin: 1.25rem 0; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.row-between h2 { overflow-wrap: anywhere; }
.badge { background: #dceefa; color: var(--ww-navy); font-size: .78rem; font-weight: 750; border-radius: 99px; padding: .35rem .6rem; white-space: nowrap; }
.admin-cards .count-list { margin: 0 0 1.1rem; }
.manage-row { display: flex; align-items: center; gap: .6rem; border-top: 1px solid #e7eff4; padding: .75rem 0; }
.manage-row input:not([type="checkbox"]) { flex: 1; min-width: 0; }
.manage-row.add-row { margin-top: .5rem; }
.check { white-space: nowrap; display: flex; align-items: center; gap: .25rem; font-size: .85rem; }
.check input { accent-color: var(--ww-blue); }
.history-item { border-top: 1px solid #e7eff4; padding: .8rem 0; }
.history-item summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
.history-item summary span { color: #68766e; font-size: .88rem; }
.history-item .count-list { margin: .7rem 0; }
.inline-actions { display: flex; gap: 1rem; }
.user-row { border-top: 1px solid #e7eff4; padding: .6rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; }
#qr-code svg { display: block; max-width: 100%; width: 290px; height: auto; background: white; border: 1px solid #d5e2eb; }
.qr-url { overflow-wrap: anywhere; font-weight: 650; }
.access-details { margin: .5rem 0 1rem; }
.access-details summary { cursor: pointer; font-weight: 650; }
.access-details code { display: block; overflow-wrap: anywhere; margin-top: .6rem; padding: .7rem; background: #edf7fc; border-radius: 8px; }
@media (max-width: 680px) {
  .two-columns { grid-template-columns: 1fr; }
  .shell { width: min(100% - 1.25rem, 1080px); }
  .panel { padding: 1.1rem; }
  .manage-row { flex-wrap: wrap; }
  .manage-row input:not([type="checkbox"]) { flex: 1 0 100%; }
}
@media (max-width: 480px) {
  .site-header { padding-inline: .7rem; gap: .45rem; }
  .brand { gap: .4rem; }
  .brand img { width: 140px; height: auto; }
}
@media print {
  body { background: white; }
  .site-header, .site-footer, .install-dialog, .shell > :not(.print-qr), .print-qr button, .print-qr .access-details { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .print-qr { display: grid; justify-items: center; border: 0; box-shadow: none; padding: 2cm; }
  .print-qr h2 { font-size: 2rem; }
  #qr-code svg { width: 8cm; }
}
