/* camp-forms — mobile-first, system fonts, no external assets */
:root {
  --brand: #0b3d91;
  --brand-2: #1456c8;
  --brand-soft: #e8f0fe;
  --ink: #15202b;
  --muted: #5b6b7c;
  --line: #dde3ea;
  --bg: #f4f6f9;
  --card: #fff;
  --ok: #157f3b;
  --ok-soft: #e6f6ec;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --tap: 46px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand-2); }
h1 { font-size: 1.55rem; line-height: 1.25; margin: .2rem 0 .6rem; }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
h3 { font-size: 1.02rem; margin: 1.4rem 0 .5rem; }
p { margin: .4rem 0 .8rem; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--muted); margin: 0; font-weight: 600; }
.eyebrow a { color: inherit; }
.req { color: var(--err); margin-left: 2px; }
.opt { font-style: normal; color: var(--muted); font-weight: 400; font-size: .8em; }

/* ---------- top bar ---------- */
.topbar { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: flex; gap: .55rem; align-items: center; white-space: nowrap; min-width: 0; }
.brand-logo { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.brand-badge { background: #ffd34d; color: #0b2a66; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.topnav > a, .topnav summary, .topnav .linklike { color: #fff; text-decoration: none; padding: .45rem .6rem; border-radius: 8px; font-size: .92rem; }
.topnav > a:hover, .topnav summary:hover, .topnav .linklike:hover { background: rgba(255, 255, 255, .12); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: .75em; }
.menu-pop { position: absolute; right: 0; top: 110%; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); min-width: 180px; padding: .35rem; z-index: 40; }
.menu-pop a { display: block; padding: .55rem .75rem; color: var(--ink); text-decoration: none; border-radius: 7px; }
.menu-pop a:hover, .menu-pop a[aria-current] { background: var(--brand-soft); }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-2); cursor: pointer; font: inherit; text-decoration: underline; }

.main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1rem; }
.footer { text-align: center; padding: 1.2rem; color: var(--muted); font-size: .85rem; display: flex; gap: 1rem; justify-content: center; }

/* ---------- cards, alerts ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; margin-bottom: 1rem; border: 1px solid #e9edf2; }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .1s; }
.card-link:hover { transform: translateY(-1px); border-color: var(--brand-2); }
.auth-wrap { padding: 1.5rem 0; }
.alert { border-radius: 10px; padding: .75rem 1rem; margin: 0 0 1rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-soft); color: #0d5c2a; border-color: #b7e3c6; }
.alert-error { background: var(--err-soft); color: #8a1c12; border-color: #f5c2bd; }
.alert-info { background: var(--brand-soft); color: #173f7a; border-color: #c6d8fb; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.big-code { font-size: 3rem; font-weight: 800; color: var(--brand); margin: 0; }
.prose { max-width: 760px; margin: 0 auto 1rem; }
.prose h2 { margin-top: 1.2rem; }
.quote { background: #f7f9fc; border-left: 3px solid var(--brand-2); padding: .6rem .8rem; border-radius: 6px; white-space: pre-wrap; }

/* ---------- forms ---------- */
.stack > * + * { margin-top: .85rem; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span, .field > legend { font-weight: 600; font-size: .9rem; padding: 0; }
fieldset.field { gap: .2rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .75rem; border: 1px solid #c9d2dc; border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* no iOS zoom */ transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 86, 200, .18); }
input[readonly] { background: #f6f8fa; }
.hint { color: var(--muted); font-size: .82rem; font-weight: 400; }
.check { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; cursor: pointer; font-weight: 400; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand-2); }
.inline-check { display: inline-flex; margin-right: 1rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr 1fr; }
  .grid.four { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
}
@media (min-width: 960px) { .grid.two-wide { grid-template-columns: 380px 1fr; align-items: start; } }

/* segmented radios */
.seg { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: inline-flex; align-items: center; gap: .35rem; min-height: var(--tap); padding: .5rem 1rem; border: 1.5px solid #c9d2dc; border-radius: 999px; cursor: pointer; background: #fff; font-weight: 500; }
.seg-opt input:checked + span { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-2); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20, 86, 200, .25); }
.seg-wrap .seg-opt span { border-radius: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); padding: .55rem 1.05rem; border-radius: 10px; border: 1px solid #c9d2dc; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--brand-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-warn { background: var(--warn-soft); border-color: #f0c674; color: var(--warn); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand-2); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #c9d2dc; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.08rem; }
.btn-sm { min-height: 34px; padding: .3rem .65rem; font-size: .85rem; }
.btn-file { position: relative; overflow: hidden; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; flex: none; }
.icon-btn:hover { background: var(--err-soft); color: var(--err); }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1rem; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- wizard ---------- */
.wizard-head { position: sticky; top: 52px; z-index: 20; background: var(--bg); padding-top: .2rem; }
.wizard-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.save-state { font-size: .8rem; color: var(--muted); white-space: nowrap; padding: .2rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.save-state.is-saved { color: var(--ok); border-color: #b7e3c6; }
.save-state.is-saved::before { content: "✓ "; }
.save-state.is-saving { color: var(--brand-2); }
.save-state.is-error { color: var(--err); border-color: #f5c2bd; }
.progress { margin: .4rem 0 .9rem; }
.progress-bar { height: 6px; background: #dfe6ef; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 14%; background: linear-gradient(90deg, var(--brand-2), #3b82f6); transition: width .25s; }
.progress-steps { list-style: none; display: flex; gap: .25rem; padding: 0; margin: .5rem 0 0; overflow-x: auto; scrollbar-width: none; }
.progress-steps::-webkit-scrollbar { display: none; }
.step-link { display: flex; align-items: center; gap: .35rem; border: 0; background: transparent; padding: .3rem .5rem; border-radius: 999px; cursor: pointer; color: var(--muted); font: inherit; font-size: .82rem; white-space: nowrap; }
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dfe6ef; color: var(--muted); font-size: .75rem; font-weight: 700; }
.step-link.is-done .step-no { background: var(--ok); color: #fff; }
.step-link.is-current { background: #fff; color: var(--brand); font-weight: 600; box-shadow: var(--shadow); }
.step-link.is-current .step-no { background: var(--brand-2); color: #fff; }
@media (max-width: 720px) { .step-link .step-name { display: none; } .step-link.is-current .step-name { display: inline; } }

.wizard .step { display: none; }
.wizard .step.active { display: block; animation: fadein .18s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-2); color: #fff; font-size: .9rem; margin-right: .5rem; vertical-align: 2px; }
.count-pill { display: inline-block; min-width: 1.6em; padding: .05rem .5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .85rem; text-align: center; vertical-align: 3px; }
.wizard-nav { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 75%, rgba(244, 246, 249, 0)); }
.wizard-pos { color: var(--muted); font-size: .85rem; }
.wizard-page .footer { padding-bottom: 1rem; }

.repeater { display: grid; gap: .75rem; }
.row-card { border: 1px solid var(--line); border-radius: 12px; padding: .75rem; background: #fbfcfe; }
.row-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.row-no { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .3rem; border-radius: 8px; background: #e7ecf3; font-size: .8rem; font-weight: 700; color: var(--muted); }
.row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-grid { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.row-grid .field > span { font-size: .8rem; }
@media (min-width: 900px) { .row-grid { grid-template-columns: repeat(4, 1fr); } .row-grid .span-2 { grid-column: span 2; } }
@media (max-width: 420px) { .row-grid { grid-template-columns: 1fr; } }
.visa-only { display: none !important; }
body.visa-yes .visa-only { display: flex !important; }
.empty-hint { color: var(--muted); text-align: center; border: 2px dashed var(--line); border-radius: 12px; padding: 1.2rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Excel kit: 3-step animated guide + template download + drop zone ---------- */
:root { --xl: #217346; --xl-dark: #185c37; --xl-soft: #e8f5ee; }
.xl-kit { border: 1px solid #cfe7d9; background: linear-gradient(180deg, #f6fbf8, #fff); border-radius: 14px; padding: .9rem; margin: .6rem 0 .4rem; }
.xl-guide { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: .25rem; margin-bottom: .9rem; }
.xl-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .45rem .25rem .55rem; border-radius: 12px; border: 1.5px solid transparent; min-width: 0;
  animation: xl-active 7.5s infinite; animation-delay: var(--d); }
.xl-s1 { --d: 0s; } .xl-s2 { --d: -5s; } .xl-s3 { --d: -2.5s; }
.xl-step svg { width: 100%; max-width: 132px; height: auto; overflow: visible; }
.xl-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--xl); color: #fff; font-size: .8rem; font-weight: 700; }
.xl-cap { font-size: .86rem; font-weight: 600; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.xl-next { align-self: center; margin-top: -1.6rem; color: #9cc9ae; font-size: 1.8rem; line-height: 1; font-weight: 700; }
@keyframes xl-active { 0%, 30% { background: #fff; border-color: #9fd3b5; box-shadow: 0 4px 14px rgba(33, 115, 70, .14); } 36%, 100% { background: transparent; border-color: transparent; box-shadow: none; } }

/* drawing */
.xl-step svg * { vector-effect: non-scaling-stroke; }
.xl-tray { fill: #cfe3d7; }
.xl-paper { fill: #fff; stroke: #9fb3a6; stroke-width: 1.5; }
.xl-fold { fill: #e3ece6; stroke: #9fb3a6; stroke-width: 1.5; stroke-linejoin: round; }
.xl-badge { fill: var(--xl); }
.xl-x { stroke: #fff; stroke-width: 3.2; stroke-linecap: round; fill: none; }
.xl-lines { stroke: #b8d8c5; stroke-width: 3; stroke-linecap: round; fill: none; }
.xl-arrow { stroke: var(--brand-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.xl-sheet { fill: #fff; stroke: #9fb3a6; stroke-width: 1.5; }
.xl-head { fill: var(--xl); }
.xl-grid { stroke: #dfe9e3; stroke-width: 1.2; fill: none; }
.xl-cell { fill: #8fc9a6; }
.xl-pen path { fill: #f2b84b; stroke: #a8741b; stroke-width: 1.2; stroke-linejoin: round; }
.xl-check circle { fill: var(--ok); }
.xl-check path { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* motion (each step runs during its third of a 7.5 s loop; the resting frame is the finished state) */
.xl-arrow-down, .xl-s1 .xl-file, .xl-cell, .xl-pen, .xl-arrow-up, .xl-file-up, .xl-check { transform-box: fill-box; animation-duration: 7.5s; animation-iteration-count: infinite; animation-delay: var(--d); animation-timing-function: ease-in-out; }
.xl-arrow-down { animation-name: xl-drop; }
.xl-s1 .xl-file { transform-origin: 50% 100%; animation-name: xl-land; }
.xl-cell { transform-origin: 0 50%; }
.xl-c1 { animation-name: xl-type1; } .xl-c2 { animation-name: xl-type2; } .xl-c3 { animation-name: xl-type3; }
.xl-pen { animation-name: xl-pen; }
.xl-arrow-up { animation-name: xl-rise; }
.xl-file-up { animation-name: xl-lift; }
.xl-check { transform-origin: 50% 50%; animation-name: xl-pop; }
@keyframes xl-drop { 0% { transform: translateY(-14px); opacity: 0; } 6% { opacity: 1; } 18% { transform: translateY(8px); opacity: 1; } 24%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes xl-land { 0%, 16% { transform: scale(1); } 20% { transform: scale(1.07, .94); } 25%, 100% { transform: scale(1); } }
@keyframes xl-type1 { 0% { transform: scaleX(0); } 9%, 100% { transform: scaleX(1); } }
@keyframes xl-type2 { 0%, 9% { transform: scaleX(0); } 18%, 100% { transform: scaleX(1); } }
@keyframes xl-type3 { 0%, 18% { transform: scaleX(0); } 27%, 100% { transform: scaleX(1); } }
@keyframes xl-pen { 0% { transform: translate(-78px, -32px); } 9% { transform: translate(0, -32px); } 10% { transform: translate(-78px, -16px); } 18% { transform: translate(0, -16px); } 19% { transform: translate(-78px, 0); } 27%, 100% { transform: translate(0, 0); } }
@keyframes xl-rise { 0% { transform: translateY(12px); opacity: 0; } 8% { opacity: 1; } 20%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes xl-lift { 0% { transform: translateY(10px); } 20%, 100% { transform: translateY(0); } }
@keyframes xl-pop { 0%, 18% { transform: scale(0); opacity: 0; } 24% { transform: scale(1.18); opacity: 1; } 28%, 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .xl-guide *, .xl-step { animation: none !important; }
}

.xl-actions { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .xl-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; } }
.btn-excel { background: var(--xl); border-color: var(--xl); color: #fff; white-space: normal; text-align: center; line-height: 1.25; min-height: 60px; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(33, 115, 70, .25); }
.btn-excel:hover { background: var(--xl-dark); border-color: var(--xl-dark); }
.btn-excel:focus-visible { outline: 3px solid #9fd3b5; outline-offset: 2px; }
.xl-ico { font-size: 1.2em; }
.dropzone { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 60px; padding: .7rem 1rem; border: 2px dashed #9fc5ad; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { background: var(--xl-soft); border-color: var(--xl); }
.dropzone:focus-within { outline: 3px solid rgba(20, 86, 200, .35); outline-offset: 2px; }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
.dz-ico { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--xl-soft); color: var(--xl); font-size: 1.15rem; font-weight: 700; }
.dz-text { display: flex; flex-direction: column; min-width: 0; }
.dz-text strong { font-size: .95rem; line-height: 1.3; }
.dz-text small { color: var(--muted); font-size: .8rem; }
@media (max-width: 420px) {
  .xl-kit { padding: .7rem .55rem; }
  .xl-cap { font-size: .78rem; }
  .xl-next { font-size: 1.4rem; }
  .xl-num { width: 22px; height: 22px; }
}

/* imported rows with problems */
.row-card.has-issues { border-color: #f1a9a1; background: #fff8f7; box-shadow: inset 4px 0 0 var(--err); }
.row-issues { list-style: none; margin: 0 0 .6rem; padding: .45rem .7rem; border-radius: 8px; background: var(--err-soft); color: #8a1c12; font-size: .86rem; }
.row-issues li + li { margin-top: .15rem; }
.field.is-invalid > span { color: var(--err); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--err); background: #fffafa; }
.preview tr.row-bad td { background: #fdecea; color: #8a1c12; }
.preview tr.row-bad:not(.row-bad-msg) td { border-bottom: 0; }
.preview tr.row-bad-msg td { font-size: .82rem; padding-top: 0; white-space: normal; }
.dialog.is-file .paste-only { display: none !important; }
.auto-hint { color: var(--ok); }
.wizard [data-show-when] { display: none; }
.wizard.hotel-own [data-show-when="hotel-own"], .wizard.hotel-organizer [data-show-when="hotel-organizer"] { display: grid; }

.logo-row { display: flex; align-items: center; gap: .75rem; }
.logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; }

.summary-strip, .kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: .4rem 0 1rem; }
@media (min-width: 640px) { .summary-strip, .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; display: flex; flex-direction: column; }
.kpi span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { font-size: 1.5rem; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: .78rem; }
.big-num { font-size: 1.6rem; font-weight: 700; padding: .3rem 0; }

.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 760px) { .rooms-grid { grid-template-columns: repeat(4, 1fr); } }
.room-box { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .2rem; background: #fff; }
.room-label { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: .3rem; margin-top: .3rem; }
.stepper input { text-align: center; min-height: 40px; padding: .3rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid #c9d2dc; background: #f6f8fb; font-size: 1.2rem; cursor: pointer; }
.capacity { margin: .7rem 0; padding: .55rem .8rem; border-radius: 10px; background: #f1f4f8; font-size: .92rem; }
.capacity.is-ok { background: var(--ok-soft); color: #0d5c2a; }
.capacity.is-warn { background: var(--warn-soft); color: var(--warn); }
.capacity.is-info { background: var(--brand-soft); color: #173f7a; }
.rooming { margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; background: #fff; }
.rooming summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: .4rem; }
.room-row { display: grid; gap: .4rem; grid-template-columns: 1fr; padding: .5rem 0; border-top: 1px dashed var(--line); }
@media (min-width: 640px) { .room-row { grid-template-columns: 140px repeat(3, 1fr); align-items: center; } }
.room-tag { font-weight: 600; font-size: .9rem; }
.confirm-box { border: 1px solid var(--line); background: #fbfcfe; border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.review-box { min-height: 120px; }
.review-sec { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .8rem; }
.review-sec h3 { margin: .3rem 0 .5rem; display: flex; gap: .6rem; align-items: baseline; }
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .3rem .9rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.rooming-ro { margin: 0; padding-left: 1.3rem; }
.err-list li { margin: .2rem 0; }

/* dialog */
.dialog { border: 0; border-radius: 16px; padding: 0; width: min(760px, 96vw); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(15, 23, 42, .45); }
.dialog-inner { padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.preview { max-height: 45vh; overflow: auto; }
.warn-line { color: var(--warn); margin: .1rem 0; }

/* ---------- tables / admin ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f6f8fb; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; }
.table.compact th, .table.compact td { padding: .4rem .55rem; }
.table.sheet tbody tr:hover { background: #f5f9ff; }
.table.sheet tbody tr[data-href] { cursor: pointer; }
.th-sort { border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
.th-sort[data-dir="asc"]::after { content: " ▲"; }
.th-sort[data-dir="desc"]::after { content: " ▼"; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: #fff; border: 1px solid #e9edf2; border-radius: var(--radius); padding: .8rem; margin-bottom: 1rem; }
.filters .field { flex: 1 1 160px; }
.filters .field.grow { flex: 2 1 220px; }
.filter-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs a { padding: .4rem .8rem; border-radius: 999px; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.tabs a[aria-current] { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.action-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline-h { display: inline; font-size: 1.05rem; }
details > summary { cursor: pointer; }
.danger-zone summary { color: var(--err); font-weight: 600; }
.copy-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.copy-row input { flex: 1 1 260px; }
.copy-cell input { min-width: 220px; min-height: 34px; font-size: .8rem; padding: .3rem .5rem; }
.created-invite { border-color: #b7e3c6; background: #f6fdf8; }
.facts { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .3rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding: .3rem 0; }
.facts span { color: var(--muted); }
.steps-mini { padding-left: 1.2rem; color: var(--muted); }
.lock-card { display: flex; gap: 1rem; align-items: flex-start; }
.lock-icon { font-size: 2rem; }
.request-box summary { list-style: none; display: inline-flex; }
.request-box[open] summary { margin-bottom: .8rem; }

/* status badges */
.badge, .status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f5; color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.status-draft { background: #eef1f5; color: #475467; }
.status-submitted, .status-resubmitted { background: var(--brand-soft); color: var(--brand); }
.status-change_requested { background: var(--warn-soft); color: var(--warn); }
.status-unlocked { background: #f3e8ff; color: #6b21a8; }
.status-approved { background: var(--ok-soft); color: var(--ok); }
.badge-inv-used { background: var(--ok-soft); color: var(--ok); }
.badge-inv-opened { background: var(--brand-soft); color: var(--brand); }
.badge-inv-revoked { background: var(--err-soft); color: var(--err); }
.badge-req-pending { background: var(--warn-soft); color: var(--warn); }
.badge-req-approved { background: var(--ok-soft); color: var(--ok); }
.badge-req-rejected { background: var(--err-soft); color: var(--err); }

/* ---------- Baku background (photo credits: docs/CREDITS.md) + club logo ---------- */
:root { --photo-ink: #071634; --on-photo: #fff; --on-photo-soft: #f0f4fa; --veil: linear-gradient(180deg, rgba(7, 22, 52, .68) 0%, rgba(7, 22, 52, .62) 40%, rgba(7, 22, 52, .84) 100%); }
html { background: var(--photo-ink); }
body { background: transparent; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--veil), url("bg/baku-1920.webp") 53% 32% / cover no-repeat, var(--photo-ink);
}
@media (max-width: 700px) {
  body::before { background: var(--veil), url("bg/baku-800.webp") 50% 20% / cover no-repeat, var(--photo-ink); }
}
@media (prefers-contrast: more) {
  :root { --veil: linear-gradient(rgba(7, 22, 52, .88), rgba(7, 22, 52, .88)); }
}
/* text that sits directly on the photo */
.main > h1, .main > h2, .page-head h1, .page-head p, .wizard-title h1, .wizard-title p, .auth-org { color: var(--on-photo); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.page-head .eyebrow, .page-head .muted, .wizard-title .eyebrow { color: var(--on-photo-soft); }
.page-head .count-pill, .main > h1 .count-pill { text-shadow: none; }
.card { box-shadow: 0 4px 18px rgba(3, 12, 32, .22); }
.footer { color: var(--on-photo-soft); flex-wrap: wrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.footer a { color: var(--on-photo); }
.credit { flex-basis: 100%; font-size: .75rem; color: var(--on-photo-soft); }
.credit a { color: inherit; }
/* wizard header / bottom bar: dark glass instead of the page grey */
.wizard-head { background: rgba(7, 22, 52, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; padding: .45rem .85rem .05rem; margin-bottom: .9rem; top: 58px; }
.wizard-head .step-link { color: #dde5f1; }
.wizard-head .step-link:hover { background: rgba(255, 255, 255, .1); }
.wizard-head .step-link.is-current { color: var(--brand); }
.wizard-head .progress-bar { background: rgba(255, 255, 255, .22); }
.wizard-nav { background: linear-gradient(to top, rgba(7, 22, 52, .92) 72%, rgba(7, 22, 52, 0)); }
.wizard-pos { color: var(--on-photo-soft); }
/* big logo above sign-in / invitation cards */
.auth-brand { text-align: center; max-width: 460px; margin: 0 auto 1rem; }
.auth-logo { display: block; width: 148px; height: 148px; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.auth-org { font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin: .55rem 0 0; }
@media (min-width: 640px) { .auth-logo { width: 176px; height: 176px; } }

@media (max-width: 640px) {
  h1 { font-size: 1.3rem; }
  .main { padding: .75rem; }
  .card { padding: .9rem; }
  .topbar-inner { padding: .45rem .75rem; gap: .5rem; }
  .brand-name { max-width: 42vw; }
  .brand-logo { width: 36px; height: 36px; }
  .wizard-head { position: static; }
  .admin-page .topbar-inner { flex-wrap: wrap; }
  .admin-page .topnav { width: 100%; margin-left: 0; justify-content: flex-start; gap: 0; }
  .admin-page .topnav > a, .admin-page .topnav summary, .admin-page .topnav .linklike { padding: .3rem .45rem; font-size: .82rem; }
  html, body { overflow-x: hidden; }
  .wizard, .step, .review-box, .review-sec { min-width: 0; max-width: 100%; }
  .wizard-pos { white-space: nowrap; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: .4rem; }
}
@media print {
  .topbar, .footer, .wizard-nav, .progress, .toolbar, .action-bar, .filters, .xl-kit { display: none !important; }
  body { background: #fff; }
  html { background: #fff; }
  body::before { display: none; }
  .main > h1, .main > h2, .page-head h1, .page-head p, .wizard-title h1, .wizard-title p, .page-head .eyebrow, .page-head .muted { color: var(--ink); text-shadow: none; }
  .wizard-head { background: none; }
  .card { box-shadow: none; border: 0; }
}
