:root {
  color-scheme: light;
  --page: #f5f6f1;
  --paper: #fff;
  --ink: #202e25;
  --muted: #58675d;
  --line: #e2e7dd;
  --forest: #172d25;
  --green: #315b43;
  --tint: #edf4e8;
  --gold: #f7eed7;
  --radius: 15px;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, select, input[type=file] { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #608a4e; outline-offset: 3px; }
a { color: var(--green); }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--forest); color: #edf5e9; min-width: 0; height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 28px 17px 21px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; margin: 0 7px 39px; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.25px; }
.brand small { display: block; font-size: 9px; letter-spacing: 1.45px; color: #c5d6c7; font-weight: 700; margin-top: 3px; }
.nav-label { font-size: 10px; font-weight: 750; letter-spacing: 1.4px; color: #aebfb1; padding: 0 12px; margin: 0 0 8px; }
.nav-label:not(:first-child) { margin-top: 25px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; margin: 3px 0; border-radius: 8px; text-decoration: none; color: #e1eae0; font-weight: 550; }
.nav-link:hover { background: #263f33; }
.nav-link[aria-current=page] { background: #324c3c; color: #eef8e5; font-weight: 700; }
.nav-link[aria-current=page] .icon { color: #c0d997; }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin: auto 4px 0; border-top: 1px solid #385044; padding: 19px 4px 0; font-size: 11px; color: #c6d4c8; }
.sidebar nav { overflow-y: auto; min-height: 0; padding-bottom: 15px; }
.sidebar .brand { flex-shrink: 0; }
.team-identity { border-top: 1px solid #385044; padding: 15px 8px 0; margin-top: auto; flex-shrink: 0; }
.team-identity strong,.team-identity small { display: block; overflow-wrap: anywhere; }
.team-identity small { color: #bdcec1; font-size: 11px; margin-top: 3px; }
.team-identity .text-button { color: #dce8d7; margin-top: 8px; }
.account-panels { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.account-body { padding: 20px; }
.account-body .field { margin-bottom: 16px; }
.access-note { padding: 14px 17px; background: var(--tint); border: 1px solid #d6e4d1; border-radius: 10px; margin-bottom: 20px; color: var(--green); }
.access-note p:last-child { margin-bottom: 0; }
.role-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.role-card { padding: 17px; }
.role-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.invite-link { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; font-size: 12px; }
.menu-access { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 15px; margin: 8px 0; }
.menu-access legend { padding: 0 7px; font-weight: 750; }
.menu-access-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: start; margin-bottom: 10px; }
.menu-access-intro p { color: var(--muted); font-size: 12px; max-width: 390px; margin: 0; }
.menu-access-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 10px 0; }
.menu-access-row > span { font-weight: 600; }
.menu-access-row select { width: 165px; min-width: 135px; border: 1px solid var(--line); border-radius: 7px; padding: 8px; background: var(--paper); color: var(--ink); }
.menu-access > .hint { margin: 12px 0 0; }
@media(max-width:480px) { .menu-access { padding: 10px; } .menu-access-row { gap: 8px; font-size: 12px; } .menu-access-row select { width: 135px; font-size: 12px; } }
.activity-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.activity-pagination { padding: 15px 18px; display: flex; gap: 8px; }
.auth-layout { display: grid; grid-template-columns: minmax(320px,44%) minmax(0,1fr); min-height: 100dvh; }
.auth-intro { background: var(--forest); color: #edf5e9; padding: clamp(28px,5vw,74px); display: flex; flex-direction: column; justify-content: space-between; gap: 70px; }
.auth-intro .brand { margin: 0; }
.auth-intro h1 { font-size: clamp(42px,5vw,74px); letter-spacing: -2px; line-height: 1.05; margin-bottom: 25px; }
.auth-intro p { color: #becfbe; line-height: 1.7; }
.auth-intro .auth-eyebrow { color: #b1cc9e; font-size: 10px; font-weight: 750; letter-spacing: 2px; margin-bottom: 19px; }
.auth-footnote { font-size: 11px; margin-bottom: 0; }
.auth-main { padding: 40px 28px; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font: 500 35px/1.1 Georgia,serif; letter-spacing: -.7px; margin-bottom: 12px; }
.auth-subtitle { color: var(--muted); margin-bottom: 28px; line-height: 1.65; }
.auth-card .field { margin-bottom: 18px; }
.auth-card input { min-height: 46px; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 5px; }
.auth-help { display: block; margin: 18px auto 0; }
.auth-hint { border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 20px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.invitation-summary { padding: 15px; background: var(--tint); border-radius: 10px; margin-bottom: 24px; overflow-wrap: anywhere; }
.invitation-summary strong,.invitation-summary span { display: block; }
.invitation-summary span { font-size: 12px; color: var(--muted); margin-top: 5px; }
@media(max-width:800px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { padding: 26px; gap: 0; }
  .auth-intro > div,.auth-footnote { display: none; }
  .auth-main { padding: 38px 24px; align-items: start; }
  .account-panels,.role-cards { grid-template-columns: 1fr; }
}
.signal { width: 7px; height: 7px; background: #aac980; border-radius: 50%; flex-shrink: 0; }
main { min-width: 0; }
.topbar { height: 69px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 34px; gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.chevron { color: #879287; }
.today { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mobile-toggle { display: none !important; }
.content { max-width: 1530px; padding: 29px 34px 42px; margin: 0 auto; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.kicker { text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: var(--green); margin: 0 0 7px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 500 clamp(32px, 3.6vw, 47px)/1.04 Georgia, serif; letter-spacing: -1.3px; margin-bottom: 8px; }
h2 { font-size: 17px; letter-spacing: -.25px; margin-bottom: 3px; }
h3 { font-size: 14px; margin-bottom: 5px; }
.subtitle { margin: 0; color: var(--muted); }
.btn, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; text-decoration: none; font-weight: 650; white-space: nowrap; }
.btn:hover, .icon-button:hover { background: #f0f4ee; border-color: #c7d4c6; }
.btn.primary { color: #fff; border-color: var(--green); background: var(--green); }
.btn.primary:hover { background: #244935; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-button { min-width: 35px; min-height: 35px; padding: 6px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel + .panel.block { margin-top: 16px; }
.panel-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.panel-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #e9ede5; border-radius: 10px; padding: 4px; margin-bottom: 15px; }
.segmented button { color: var(--muted); border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 7px 12px; font-weight: 650; display: inline-flex; gap: 7px; align-items: center; }
.segmented button[aria-pressed=true] { background: var(--paper); border-color: #dde4d9; color: var(--green); box-shadow: 0 1px 2px #23403112; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.metric { padding: 13px 15px; display: flex; align-items: center; gap: 12px; }
.metric-icon, .empty-icon { width: 39px; height: 39px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--tint); color: var(--green); }
.metric:nth-child(2) .metric-icon { background: #e7efe9; }
.metric:nth-child(3) .metric-icon { background: var(--gold); color: #735d25; }
.metric span { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.metric strong { font-size: clamp(16px, 2vw, 23px); font-weight: 720; line-height: 1.2; overflow-wrap: anywhere; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(208px, 26%); gap: 15px; align-items: start; }
.cal-toolbar { display: flex; gap: 6px; align-items: center; }
.weekdays, .calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekdays { text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; font-weight: 750; padding: 8px 0; }
.calendar { border-top: 1px solid var(--line); }
.cell { padding: 4px; min-height: 77px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.cell:nth-child(7n) { border-right: 0; }
.cell.outside { background: #f8f9f6; }
.cell.selected { background: #f0f5ec; }
.day-button { border: none; border-radius: 7px; background: transparent; color: inherit; min-width: 25px; height: 24px; font-size: 11px; padding: 1px 4px; font-weight: 650; }
.outside .day-button { color: #637167; }
.day-button:hover { background: #e4eddf; }
.day-button[aria-current=date] { background: var(--green); color: white; }
.calendar-booking, .more-bookings { display: block; border: 0; width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-align: left; padding: 3px 4px; margin-top: 3px; border-radius: 4px; font-size: 10px; font-weight: 650; color: #284932; background: #e2f0de; }
.calendar-booking:hover { filter: brightness(.94); }
.calendar-booking.tentative { color: #674f18; background: var(--gold); }
.calendar-booking.cancelled { color: #694744; background: #f5e6e3; text-decoration: line-through; }
.more-bookings { background: transparent; color: var(--green); }
.legend { padding: 11px 12px; display: flex; gap: 13px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: #659368; }
.dot.tentative { background: #ba8a31; }
.dot.cancelled { background: #b77770; }
.agenda-list { display: grid; gap: 6px; padding: 11px; }
.agenda-entry { display: grid; gap: 2px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 9px; color: var(--ink); }
.agenda-entry:hover { background: var(--tint); }
.agenda-entry span { color: var(--muted); font-size: 11px; }
.empty { text-align: center; padding: 31px 14px; color: var(--muted); font-size: 13px; }
.empty .empty-icon { margin: 0 auto 9px; }
.empty h3 { color: var(--ink); }
.empty p { margin: 0 auto; max-width: 330px; }
.loading { padding: 32px; text-align: center; }
.filters { padding: 13px 15px; display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin-bottom: 15px; }
.filters label { min-width: 125px; }
.filters .error { flex-basis: 100%; }
.field { display: grid; gap: 5px; font-size: 12px; font-weight: 650; color: var(--ink); min-width: 0; }
input:not([type=radio]), textarea, select { padding: 8px 9px; min-height: 39px; width: 100%; border: 1px solid #d7dfd5; border-radius: 7px; color: var(--ink); background: #fff; }
input[type=file] { padding: 6px; }
input[type=radio] { accent-color: var(--green); }
textarea { resize: vertical; }
.filters input, .filters select { min-height: 37px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f8faf6; font-size: 11px; color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #fbfcfa; }
.text-button { background: transparent; color: var(--green); border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.pill { display: inline-block; border-radius: 20px; background: var(--tint); padding: 3px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill.tentative, .pill.low { background: var(--gold); color: #674f18; }
.pill.cancelled, .pill.expired { background: #f5e6e3; color: #694744; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 15px; }
.bars { padding: 13px 17px; display: grid; gap: 11px; }
.bar-row { display: grid; gap: 4px; }
.bar-row div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
progress { display: block; width: 100%; height: 7px; appearance: none; }
progress::-webkit-progress-bar { background: #e7ede5; border-radius: 20px; }
progress::-webkit-progress-value { background: #668b5e; border-radius: 20px; }
progress::-moz-progress-bar { background: #668b5e; border-radius: 20px; }
.note { color: var(--muted); font-size: 12px; margin: 11px 2px 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
dialog { border: 1px solid var(--line); border-radius: 16px; width: min(670px, calc(100vw - 24px)); max-height: calc(100dvh - 26px); padding: 0; color: var(--ink); box-shadow: 0 18px 60px #162b2550; }
dialog::backdrop { background: #15271e77; }
.dialog-heading { padding: 16px 19px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.dialog-body { padding: 17px 19px; }
.form-grid, .details { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; }
.full { grid-column: 1 / -1; }
.form-grid fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 9px; }
.form-grid legend { font-size: 12px; font-weight: 700; }
.radio-list { display: flex; flex-wrap: wrap; gap: 7px 13px; font-size: 12px; }
.radio-list label { display: flex; gap: 4px; align-items: center; }
.details { margin: 0; }
.details dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.details dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; padding: 13px 19px; border-top: 1px solid var(--line); }
.error { color: #8b3027; font-size: 13px; margin: 0; }
.hint { color: var(--muted); font-size: 11px; font-weight: 450; }
#toast { position: fixed; right: 17px; bottom: 17px; z-index: 4; background: var(--forest); color: white; border-radius: 9px; padding: 10px 16px; max-width: min(360px, calc(100vw - 34px)); box-shadow: 0 5px 20px #142d2530; }
#toast:empty { display: none; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 204px minmax(0, 1fr); }
  .content, .topbar { padding-left: 20px; padding-right: 20px; }
  .calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; z-index: 2; width: 232px; height: calc(100dvh - 54px); top: 54px; box-shadow: 12px 0 28px #162b2540; }
  .sidebar.open { display: flex; }
  .topbar { height: 54px; gap: 10px; }
  .mobile-toggle { display: inline-flex !important; }
  .content { padding-top: 22px; }
  .metrics { gap: 7px; }
  .metric { padding: 9px; gap: 6px; }
  .metric-icon { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .content, .topbar { padding-left: 11px; padding-right: 11px; }
  .hero { align-items: start; flex-direction: column; }
  .today .icon, .breadcrumb > span { display: none; }
  .cell { min-height: 58px; padding: 2px; }
  .panel-heading { padding: 10px; }
  .panel-heading p { font-size: 11px; }
  .calendar-booking, .more-bookings { padding-left: 2px; padding-right: 2px; font-size: 9px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .shell { display: block; }
  .sidebar, .topbar, .btn, .filters, .segmented, #toast { display: none !important; }
  .content { padding: 0; }
  .panel { break-inside: avoid; }
  .table-wrap { overflow: visible; }
}

[hidden] { display: none !important; }

dialog:has(.accommodation-picker) { width: min(780px, calc(100vw - 24px)); }
.accommodation-picker { background: #f6f9f2; }
.picker-header { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.picker-header strong { color: var(--green); }
.picker-header .hint { margin: 3px 0 0; }
.picker-header .btn { min-height: 31px; padding: 4px 8px; font-size: 12px; }
.accommodation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr)); gap: 6px; }
.accommodation-choice { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; min-height: 40px; background: var(--paper); font-size: 12px; font-weight: 650; cursor: pointer; }
.accommodation-choice:hover { border-color: #82a47c; }
.accommodation-choice:has(:checked) { background: #e5efdf; border-color: #78966d; color: #284932; }
.accommodation-choice input[type=checkbox] { width: 15px; height: 15px; min-height: 0; padding: 0; flex-shrink: 0; margin: 0; accent-color: var(--green); }
#other-accommodation { margin-top: 10px; }
.calendar-booking { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.calendar-booking > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.calendar-booking > b { padding: 0 4px; border-radius: 8px; background: #ffffffa8; font-size: 9px; }
.booked-accommodations { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.booked-accommodations > div { display: flex; flex-wrap: wrap; gap: 5px; }

.accommodation-choice small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.stay-price { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.stay-price .picker-header { align-items: end; }
.stay-price #manual-total { margin: 8px 0; }
#price-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
#price-summary > div { padding: 8px; background: var(--paper); border-radius: 7px; }
#price-summary dt { font-size: 11px; color: var(--muted); }
#price-summary dd { margin: 2px 0 0; font-weight: 750; overflow-wrap: anywhere; }

.history-arrangements { white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-history .table-wrap { width: 100%; display: block; }
