:root {
  color-scheme: light;
  --ink: #1e2d28;
  --muted: #4e5a52;
  --page: #f8f5ee;
  --line: #d8d0c0;
  --green: #20352e;
  --gold: #efcc94;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1rem/1.55 system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid #966029; outline-offset: 3px; }
h1, h2, p, dl, dd { margin: 0; }
h1 { margin-bottom: 1.1rem; font: 400 clamp(2rem, 5vw, 3rem)/1.1 Georgia, serif; }
h2 { font-size: 1.2rem; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.top { color: #fffaf0; background: var(--green); }
.top-inner, .top-actions, .row, .inquiry-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.top-inner { justify-content: space-between; min-height: 68px; padding-block: .65rem; }
.wordmark { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem .8rem; font: 1.55rem Georgia, serif; text-decoration: none; }
.wordmark span { color: var(--gold); font: 650 .85rem system-ui, sans-serif; }
.main { padding-block: clamp(1.5rem, 5vw, 3rem); }
.tabs { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.55rem; }
.tabs a, .button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--green); border-radius: 6px; color: white; background: var(--green); font-size: .875rem; font-weight: 700; text-decoration: none; }
.tabs a:not([aria-current]), .button.outline { border-color: #978c7a; color: var(--ink); background: transparent; }
.tabs a:hover, .button:hover { background: #416056; color: white; }
.top .button.outline { color: white; border-color: #c6d1cb; }
.button:disabled { cursor: default; opacity: .4; }
.counter { display: inline-block; padding: .15rem .5rem; border-radius: 20px; color: #332511; background: var(--gold); white-space: nowrap; font-size: .8rem; font-weight: 750; }
.panel { padding: clamp(.95rem, 2.8vw, 1.5rem); border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; }
.auth { width: min(440px, 100%); margin-inline: auto; }
.stack { display: grid; gap: .75rem; align-content: start; }
.stack > .button { justify-self: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
label { display: grid; gap: .35rem; min-width: 0; font-weight: 650; }
input:not([type=checkbox]), select { width: 100%; min-width: 0; min-height: 44px; padding: .5rem .55rem; border: 1px solid #a39580; border-radius: 5px; color: var(--ink); background: white; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.check { display: flex; align-items: center; }
.muted { color: var(--muted); font-size: .875rem; }
.photo-grid, .inquiry-list { display: grid; gap: .9rem; margin-top: 1rem; }
.photo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.photo-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: var(--page); }
.photo-card .row { gap: .4rem; }
.inquiry { display: grid; gap: .65rem; }
.inquiry.unread { border-inline-start: 4px solid #ac773a; }
.inquiry dl { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; }
.inquiry dt { color: var(--muted); font-size: .8rem; }
.inquiry dd { font-weight: 700; }
.inquiry .message { white-space: pre-wrap; overflow-wrap: anywhere; }
.contacts { overflow-wrap: anywhere; font-weight: 650; }
.notice { margin-bottom: 1rem; padding: .7rem .85rem; border-radius: 6px; background: #e3efe2; color: #1a3c2b; }
.notice.error { color: #7b2118; background: #f9e6df; }
.reservation-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-block: .9rem; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.admin-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.calendar-weekday { padding: .2rem; text-align: center; font-weight: 650; }
.calendar-cell { display: grid; align-content: start; min-width: 0; min-height: 64px; padding: .25rem; border: 1px solid var(--line); border-radius: 5px; text-align: center; }
.calendar-cell a { font-weight: 750; }
.calendar-cell small { font-size: .8rem; overflow-wrap: anywhere; }
.calendar-cell.occupied { color: #7b2118; background: #f9e6df; }
.calendar-cell.selected { border: 2px solid #966029; }
.discount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .65rem; }
.discount-option { min-width: 0; margin: 0; padding: .55rem .65rem .65rem; border: 1px solid var(--line); border-radius: 6px; }
.discount-option legend { padding-inline: .25rem; font-weight: 750; }
.discount-option .row { gap: .4rem; }
.discount-other summary { cursor: pointer; font-weight: 650; }
.discount-other form { margin-top: .65rem; }
.reservation-entry { justify-content: space-between; border-top: 1px solid var(--line); padding-top: .5rem; }
.sync-error { color: #7b2118; font-size: .875rem; }
.ops-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: .9rem; }
.ops-layout > * { min-width: 0; }
.ops-layout:last-child { margin-bottom: 0; }
.ops-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.ops-heading form, .ops-detail form.row { align-items: end; }
.ops-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .5rem; }
.ops-balances > div { display: grid; align-content: start; gap: .15rem; min-width: 0; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--page); }
.ops-balances dt, .ops-stay small, .ops-entry small { color: var(--muted); font-size: .875rem; }
.ops-balances dd { font-weight: 750; font-variant-numeric: tabular-nums; }
.ops-stay, .ops-entry { display: flex; gap: .5rem 1.1rem; justify-content: space-between; padding: .55rem .6rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.ops-stay { min-height: 48px; text-decoration: none; }
.ops-stay:hover, .ops-stay.ops-selected { border-radius: 5px; background: #e7eee4; }
.ops-stay span, .ops-entry span { min-width: 0; }
.ops-stay small, .ops-entry small { display: block; }
.ops-stay span:last-child, .ops-entry span:last-child { text-align: end; }
.ops-detail { margin-top: .9rem; }
.ops-details { padding-top: .55rem; border-top: 1px solid var(--line); }
.ops-details summary { cursor: pointer; font-weight: 700; }
.ops-details form, .ops-details > p { margin-top: .55rem; }
.ops-standalone { margin-bottom: .9rem; }
.ops-standalone .ops-work, .ops-standalone > p { margin-top: .7rem; }
.ops-work { max-width: 36rem; }
.ops-work-choice { display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.ops-work-choice input { flex-shrink: 0; }
@media (max-width: 740px) {
  .ops-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fields, .reservation-panels { grid-template-columns: 1fr; }
  .admin-calendar { gap: .13rem; }
  .calendar-cell { padding-inline: .1rem; }
}
