:root {
  --ink: #17282b; --muted: #556b6f; --line: #d5e0e0; --bg: #f5f8f7; --card: #ffffff;
  --brand: #0d6b63; --brand-dark: #094f49; --brand-soft: #e3f1ee;
  --warn-bg: #fff4d6; --warn-ink: #6b4a00; --err-bg: #fde8e6; --err-ink: #8c1d12; --ok-bg: #e2f4e7; --ok-ink: #14532d;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Kannada", sans-serif; color: var(--ink); background: var(--bg); }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 76rem; }
main { padding-top: 20px; padding-bottom: 48px; }
a { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: 0.4em 0 0.5em; text-wrap: balance; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.08rem; margin: 0 0 0.3em; }
p { margin: 0 0 0.9em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted, .hint { color: var(--muted); font-size: 0.92rem; }
.hint { margin-top: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
code { background: #eaf0ef; padding: 1px 5px; border-radius: 4px; font-size: 0.88em; word-break: break-all; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.2; }
.brand-main { font-weight: 700; font-size: 1.05rem; color: var(--brand-dark); }
.brand-sub { font-size: 0.8rem; color: var(--muted); }
.site-nav { border-top: 1px solid var(--line); background: var(--brand-soft); }
.site-nav .wrap { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.site-nav a { padding: 11px 10px; text-decoration: none; font-size: 0.93rem; color: var(--brand-dark); font-weight: 600; }
.site-nav a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 20px 0; font-size: 0.9rem; color: var(--muted); }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center; min-height: 48px; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-big { padding: 14px 22px; font-size: 1.06rem; }
.btn-small { padding: 6px 12px; min-height: 36px; font-size: 0.9rem; border-radius: 8px; }
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-danger:hover { background: #8c1d12; border-color: #8c1d12; }
.btn-ghost.btn-danger { background: transparent; color: #b3261e; }
.btn-ghost.btn-danger:hover { background: var(--err-bg); }
.btn-approve { background: #14532d; border-color: #14532d; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
button.link.danger { color: #b3261e; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
form.inline { display: inline; }

/* cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; }
.card.narrow, .form.narrow { max-width: 32rem; }
.card-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.card-link:hover { border-color: var(--brand); }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.hero { padding: 18px 0 6px; }
.hero h1 { font-size: 1.9rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* alerts and tags */
.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-weight: 550; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error { background: var(--err-bg); color: var(--err-ink); }
.alert-warn, .draft-banner { background: var(--warn-bg); color: var(--warn-ink); }
.draft-banner { border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; font-weight: 600; border: 1px dashed #c9a23a; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; background: #e7ecec; color: #33474a; white-space: nowrap; }
.tag-published, .tag-completed, .tag-sent, .tag-approved { background: var(--ok-bg); color: var(--ok-ink); }
.tag-draft, .tag-warn, .tag-in_review, .tag-queued, .tag-arrived { background: var(--warn-bg); color: var(--warn-ink); }
.tag-cancelled, .tag-failed, .tag-no_show { background: var(--err-bg); color: var(--err-ink); }
.badge { background: #b3261e; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 0.8rem; }

/* booking */
.step { display: flex; align-items: center; gap: 10px; }
.step span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.95rem; flex: none; }
.choice-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.choice.is-on { border-color: var(--brand); background: var(--brand-soft); }
.day h3 { font-size: 1.12rem; }
.fee { margin-bottom: 10px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.time { display: block; text-align: center; padding: 12px 4px; border: 2px solid var(--brand); border-radius: 10px; text-decoration: none; font-weight: 650; color: var(--brand-dark); background: #fff; min-height: 48px; }
a.time:hover { background: var(--brand); color: #fff; }
.time.is-full { border-color: var(--line); color: #7c8c8f; background: #eef2f2; text-decoration: line-through; font-weight: 500; }
.time small { font-weight: 500; }
.summary dl, dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.confirm { text-align: center; border-color: var(--brand); }
.confirm h1 { margin-top: 0; }
.tick { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.8rem; line-height: 54px; }
.ref { font: 700 2rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: 0.06em; margin: 0 0 10px; }
.ref-inline { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; }

/* forms */
.form label { display: block; font-weight: 650; margin: 14px 0 5px; }
.form label.check { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.form input:not([type=checkbox]), .form select, .form textarea, .inline-form input, .record input { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid #9fb1b3; border-radius: 9px; background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 6em; line-height: 1.45; }
.form .btn { margin-top: 18px; }
.form .actions .btn { margin-top: 0; }
.two, .four { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } .four { grid-template-columns: repeat(4, 1fr); } }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.inline-form input { width: auto; min-height: 36px; padding: 6px 10px; }

/* prose (guides) */
.prose h1 { font-size: 1.75rem; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 1em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose .note { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.prose mark { background: #ffe58a; }
.lang-switch { text-align: right; margin: 0; }

/* staff */
.staff-header { background: #12383a; color: #fff; }
.staff-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 8px; padding-bottom: 8px; }
.staff-header .brand-main, .staff-header a, .staff-header button.link, .staff-header .muted { color: #fff; }
.staff-header nav { display: flex; flex-wrap: wrap; gap: 2px 14px; flex: 1; }
.staff-header nav a { text-decoration: none; padding: 6px 0; font-size: 0.95rem; }
.staff-header nav a:hover { text-decoration: underline; }
.staff main { font-size: 16px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #eef3f2; font-size: 0.85rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
table.num td:nth-child(n+4), table.num th:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.card table.num td:nth-child(n+2), .card table.num th:nth-child(n+2) { text-align: right; }
tr.is-past td { color: var(--muted); }
tr.st-cancelled td { color: #7c8c8f; }
tr.st-cancelled td a { color: inherit; }
tr.urgent td { background: #fff7f5; }
.struck { text-decoration: line-through; color: #7c8c8f; }
.record { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.record input.amount { width: 5.5em; min-height: 36px; padding: 5px 8px; }
.tel { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.roster-session { margin-bottom: 26px; }
.staff td:first-child { white-space: nowrap; }
.staff td .tag-warn { white-space: normal; }

/* staff: guide review */
.review-matrix th[scope=row] { text-align: left; font-weight: 600; min-width: 14rem; }
.review-matrix td { vertical-align: top; white-space: nowrap; }
.side-by-side { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 900px) { .side-by-side { grid-template-columns: 1fr 1fr; } }
.side-by-side h2 { font-size: 1rem; margin: 0 0 6px; }
.side-by-side h2 a { font-weight: 400; font-size: 0.85rem; margin-left: 8px; }
.review-frame { width: 100%; height: 78vh; min-height: 480px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.revision { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.revision legend { font-weight: 650; padding: 0 6px; }

