:root {
  --ink: #17342c;
  --green: #1f6b55;
  --dark-green: #174f40;
  --cream: #f7f5ef;
  --paper: #fffefa;
  --mint: #e8f3ee;
  --line: #d7e2dd;
  --muted: #65746f;
  --danger: #a23b3b;
  --warning: #8a6417;
  --shadow: 0 22px 60px rgba(23, 52, 44, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(31, 107, 85, .10), transparent 28rem),
    linear-gradient(145deg, var(--cream), #edf5f1);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
.hidden { display: none !important; }

.brand-bar {
  display: flex;
  min-height: 82px;
  align-items: center;
  padding: 14px max(20px, calc((100vw - 1280px) / 2));
  color: white;
  background: var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  object-fit: cover;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; letter-spacing: -.015em; }
.brand small { margin-top: 1px; color: #bfd1ca; font-size: .78rem; font-weight: 650; }

.app-shell { min-height: calc(100vh - 82px); }
.auth-layout { display: grid; min-height: calc(100vh - 82px); padding: 28px 16px 56px; place-items: center; }
.auth-card {
  width: min(470px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(215,226,221,.9);
  border-radius: 24px;
  background: rgba(255,254,250,.96);
  box-shadow: var(--shadow);
}
.loading-card { text-align: center; }
.auth-card h1, .dashboard-header h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1.08; letter-spacing: -.045em; }
.auth-logo { display: block; width: clamp(7rem, 32vw, 10rem); height: clamp(7rem, 32vw, 10rem); margin: .4rem auto 1.35rem; border-radius: 50%; object-fit: cover; }
.auth-card #loginTitle.auth-title { margin: 0 0 1.65rem; text-align: center; font-size: clamp(1.65rem, 6vw, 2.15rem); letter-spacing: -.025em; }
.auth-card #loginForm .field { gap: 10px; margin-bottom: 23px; }
.auth-card #loginForm input, .auth-card #loginForm .button { min-height: 52px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .75rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.intro { margin: 12px 0 28px; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
label { color: var(--ink); font-size: .9rem; font-weight: 800; }
.field-hint { margin-top: -2px; color: var(--muted); font-size: .8rem; }
.time-field { min-width: 0; padding: 0; border: 0; }
.time-field legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: .9rem; font-weight: 800; }
.time-selects { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.time-selects label { display: grid; gap: 7px; font-size: .78rem; }
.time-guidance { color: #8c5b13; font-weight: 750; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #cbd9d3;
  border-radius: 12px;
  background: white;
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,107,85,.18); border-color: var(--green); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:focus-visible, .nav-item:focus-visible { outline: 3px solid #8fc5b2; outline-offset: 2px; }
.button:disabled { cursor: wait; opacity: .62; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--dark-green); }
.button.secondary { color: var(--ink); border: 1px solid #bfd1ca; background: white; }
.button.secondary:hover { background: var(--mint); }
.button.link-button { min-height: 42px; margin-top: 6px; color: var(--green); background: transparent; }
.button.link-button:hover { background: var(--mint); }
.button.danger { color: white; background: var(--danger); }
.button.danger:hover { background: #812e2e; }
.full-width { width: 100%; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 18px; font-weight: 700; }
.check-row input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.back-button { margin: -8px 0 18px; padding: 6px 0; color: var(--green); border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.back-button:hover { text-decoration: underline; }
.message { min-height: 1.5em; margin: 14px 0 0; color: var(--green); font-size: .9rem; font-weight: 750; }
.message.error { color: var(--danger); }
.security-note { margin: 24px 0 0; padding: 12px 14px; border-radius: 12px; color: var(--muted); background: #f0f5f2; font-size: .82rem; }
.security-note span { color: #2a966c; }
.security-note.warning { color: var(--warning); background: #fff6d9; }
code { padding: 2px 5px; border-radius: 5px; background: var(--mint); font-size: .88em; }
.spinner { display: inline-block; width: 34px; height: 34px; margin-bottom: 18px; border: 4px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--line); background: var(--green); } }

.dashboard { display: grid; min-height: calc(100vh - 82px); grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 24px; padding: 28px 20px; color: white; background: #1b453a; }
.administrator-card { display: flex; align-items: center; gap: 12px; padding: 4px; }
.administrator-card div { min-width: 0; }
.administrator-card small, .administrator-card strong { display: block; }
.administrator-card small { color: #bcd1c9; font-size: .74rem; }
.administrator-card strong { overflow: hidden; margin-top: 2px; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; color: var(--ink); background: var(--cream); font-weight: 900; }
.primary-nav { display: grid; gap: 8px; }
.nav-item { display: flex; width: 100%; min-height: 54px; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; color: #dbe8e3; border: 0; border-radius: 12px; background: transparent; font-weight: 750; cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { color: var(--ink); background: var(--cream); }
.nav-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid currentColor; border-radius: 9px; font-size: .67rem; font-weight: 900; }
.sidebar-actions { display: grid; gap: 10px; margin-top: auto; }
.sidebar-link { color: white; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.12); }
.sidebar-link:hover { background: rgba(255,255,255,.2); }
.logout-button { color: white; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.logout-button:hover { background: rgba(255,255,255,.14); }

.dashboard-content { min-width: 0; padding: clamp(24px, 4vw, 58px); }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.session-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); font-size: .78rem; font-weight: 750; white-space: nowrap; }
.session-status span { width: 8px; height: 8px; border-radius: 50%; background: #2a966c; box-shadow: 0 0 0 4px rgba(42,150,108,.12); }
.content-panel { max-width: 980px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,254,250,.94); box-shadow: 0 14px 40px rgba(23,52,44,.07); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 5px; font-size: clamp(1.25rem, 4vw, 1.6rem); }
.panel-heading p { margin: 0; color: var(--muted); }
.stage-badge { flex: 0 0 auto; padding: 6px 10px; color: var(--green); border-radius: 999px; background: var(--mint); font-size: .72rem; font-weight: 850; }
.empty-state { max-width: 600px; padding: clamp(32px, 7vw, 70px) 0 22px; }
.empty-number { display: inline-grid; width: 48px; height: 48px; margin-bottom: 18px; place-items: center; color: var(--green); border: 1px solid #a8c8bc; border-radius: 15px; font-size: .75rem; font-weight: 900; }
.empty-state h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 4vw, 1.8rem); letter-spacing: -.025em; }
.empty-state p { margin: 0; color: var(--muted); }
.event-tabs { display: flex; gap: 8px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.event-tab { min-height: 48px; padding: 10px 14px; color: var(--muted); border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 850; cursor: pointer; }
.event-tab:hover { color: var(--ink); }
.event-tab.active { color: var(--green); border-bottom-color: var(--green); }
.event-tab span { display: inline-grid; min-width: 25px; min-height: 25px; margin-left: 5px; place-items: center; padding: 2px 7px; border-radius: 999px; color: var(--ink); background: var(--mint); font-size: .73rem; }
.golf-day-list { display: grid; gap: 14px; margin-top: 20px; }
.golf-day-card { display: grid; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; grid-template-columns: minmax(170px, .7fr) minmax(260px, 1fr) auto; }
.golf-day-date { display: flex; align-items: center; gap: 13px; }
.date-tile { display: grid; width: 58px; height: 62px; flex: 0 0 58px; place-items: center; border-radius: 14px; color: white; background: var(--green); line-height: 1; }
.date-tile strong { display: block; font-size: 1.35rem; }
.date-tile small { font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.golf-day-date h3 { margin: 0 0 3px; font-size: 1.05rem; }
.golf-day-date p, .golf-day-schedule p { margin: 0; color: var(--muted); font-size: .86rem; }
.golf-day-schedule { display: grid; gap: 8px; }
.golf-day-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mode-badge { color: #315b6b; background: #e4f0f4; }
.status-draft { color: #5f5b52; background: #eceae4; }
.status-open { color: #155b43; background: #daf0e7; }
.status-closed { color: #745310; background: #fff0bf; }
.status-cancelled { color: #6c4848; background: #f3e5e5; }
.golf-day-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
.full-span-field { grid-column: 1 / -1; }
.optional-label { color: var(--muted); font-size: .78rem; font-weight: 650; }
.wide-dialog { width: min(760px, calc(100% - 24px)); }
.tee-sheet-dialog { width: min(1040px, calc(100% - 24px)); }
.tee-sheet-title { min-width: 0; flex: 1; }
.tee-sheet-title h2 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.tee-sheet-heading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 7px; }
.tee-sheet-date { margin: 0; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.12rem); font-weight: 650; line-height: 1.35; }
.tee-sheet-random-badge { white-space: nowrap; }
.golf-day-detail-summary { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--mint); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.detail-fact { min-width: 0; padding: 2px 4px; }
.detail-fact small, .detail-fact strong { display: block; }
.detail-fact small { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.detail-fact strong { margin-top: 3px; overflow-wrap: anywhere; font-size: .9rem; }
.detail-value-lines span { display: block; }
.event-notes { margin-top: 14px !important; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf7; }
.event-notes h3 { margin: 0 0 7px; font-size: .9rem; }
.event-notes p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.booking-tools { margin-top: 20px !important; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #f7faf8; }
.booking-tools h3 { margin: 0; font-size: 1.05rem; }
.booking-tools p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.booking-tools .booking-form { display: grid; align-items: end; gap: 12px; margin: 16px 0 0; padding: 0; grid-template-columns: minmax(190px,1fr) minmax(170px,.7fr) auto; }
.booking-tools .button { min-height: 52px; }
.draw-actions, .event-change-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.draw-preview { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.draw-preview > p { margin: 0 0 10px; }
.draw-preview-group { padding: 9px 0; border-top: 1px solid var(--line); }
.draw-preview-group h4 { margin: 0; font-size: .92rem; }
.draw-preview-group ol { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 1.3rem; }
.draw-preview-group li:not(.team-heading) { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,auto); gap: 10px; align-items: center; }
.draw-preview-group select { min-height: 40px; padding: 6px 9px; }
.tee-sheet { display: grid; gap: 14px; margin-top: 22px !important; }
.tee-group { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.tee-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tee-group-heading h3 { margin: 0; font-size: 1rem; }
.tee-group-heading span { color: var(--muted); font-size: .78rem; font-weight: 750; }
.booking-list { display: grid; gap: 8px; }
.tee-position-row { display: grid; align-items: center; gap: 10px; grid-template-columns: 32px minmax(0,1fr); }
.booking-row { min-height: 48px; padding: 9px 10px; border-radius: 11px; background: var(--cream); }
.slot-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--green); background: var(--mint); font-size: .76rem; font-weight: 900; }
.team-heading { margin: 10px 0 2px 42px; color: var(--green); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.team-heading.incomplete-team { color: var(--danger); }
.booking-person { min-width: 0; }
.booking-person strong, .booking-person small { display: block; overflow-wrap: anywhere; white-space: normal; }
.booking-person small { color: var(--muted); font-size: .73rem; }
.booking-name-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.booking-cancel-button { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; padding: 0; color: #a72f2f; border: 0; border-radius: 50%; background: transparent; font-size: 1.65rem; font-weight: 800; cursor: pointer; }
.booking-cancel-button:hover, .booking-cancel-button:focus-visible { background: #f9dddd; outline: 2px solid #a72f2f; outline-offset: 1px; }
.booking-change-button { min-height: 40px; margin-top: 5px; padding: 4px 0; color: var(--green); border: 0; background: transparent; font-weight: 800; text-decoration: underline; cursor: pointer; }
.booking-move-select { display: block; width: 100%; margin-top: 7px; }
.booking-row select { min-height: 40px; padding: 7px 10px; font-size: .8rem; }
.booking-row .button { min-height: 40px; }
.empty-slot { min-height: 46px; padding: 11px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; font-size: .82rem; }
.unallocated-group { border-color: #b7cbc3; background: #fbfdfa; }
.read-only-note { padding: 13px 14px; color: var(--muted); border-radius: 12px; background: var(--cream); font-size: .85rem; }
.share-dialog { width: min(760px, calc(100% - 24px)); }
.share-guidance { padding: 12px 14px; color: var(--muted); border-radius: 12px; background: var(--mint); font-size: .84rem; white-space: pre-line; }
.share-preview { max-height: min(52vh, 620px); margin: 16px 26px 0; padding: 18px; overflow: auto; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: #fffdf7; font: 500 .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.share-preview:focus { outline: 3px solid rgba(31,107,85,.18); border-color: var(--green); }
.share-preview > strong { display: block; margin-bottom: 10px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.share-preview pre { margin: 0; font: inherit; overflow-wrap: anywhere; white-space: pre-wrap; }
.share-preview .dialog-actions { margin-top: 16px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.share-actions { flex-wrap: wrap; }
.member-toolbar { display: grid; gap: 16px; padding: 24px 0 8px; grid-template-columns: minmax(0,1fr) minmax(180px,.35fr); }
.compact-field { margin: 0; }
.member-loading { margin: 30px 0; color: var(--muted); font-weight: 750; }
.compact-empty { padding-top: 34px; }
.member-list { display: grid; gap: 12px; margin-top: 18px; }
.member-card {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  grid-template-columns: minmax(180px,1fr) minmax(150px,.55fr) auto;
}
.member-identity { min-width: 0; }
.member-identity h3 { overflow: hidden; margin: 0 0 3px; font-size: 1.05rem; text-overflow: ellipsis; }
.member-identity small { color: var(--muted); }
.member-state { display: flex; flex-wrap: wrap; gap: 7px; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; font-size: .73rem; font-weight: 850; }
.status-active { color: #155b43; background: #daf0e7; }
.status-away { color: #745310; background: #fff0bf; }
.status-inactive { color: #6c4848; background: #f3e5e5; }
.activation-badge { color: var(--muted); border: 1px solid var(--line); background: var(--cream); }
.member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.small-button { min-height: 40px; padding: 8px 11px; font-size: .8rem; }
.admin-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.admin-dialog::backdrop { background: rgba(11,38,31,.68); backdrop-filter: blur(3px); }
.admin-dialog form, .admin-dialog > div:not(.dialog-heading), .admin-dialog > p, .admin-dialog > input, .admin-dialog > .dialog-actions { margin-inline: 26px; }
.admin-dialog form { margin: 0; padding: 26px; }
.admin-dialog > .dialog-heading { padding: 26px 26px 0; }
.admin-dialog > .dialog-member-name, .admin-dialog > .dialog-copy { margin-top: 14px; }
.admin-dialog > .code-result { margin-top: 20px; }
.admin-dialog > .message { margin-top: 14px; }
.admin-dialog > .dialog-actions { margin-top: 18px; margin-bottom: 26px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dialog-heading h2 { margin: 0; font-size: clamp(1.35rem,5vw,1.85rem); line-height: 1.15; }
.icon-button { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; padding: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.5rem; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: var(--mint); }
.dialog-member-name { margin: 0 0 18px; font-weight: 850; }
.dialog-copy { color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.confirmation-box { display: flex; align-items: flex-start; gap: 11px; margin: 14px 0; padding: 14px; border: 1px solid #e6cd82; border-radius: 12px; background: #fff8df; font-weight: 650; }
.confirmation-box input { width: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--green); }
.confirmation-box span { color: #624c1e; font-size: .86rem; }
.status-explanation { margin: 4px 0 16px; padding: 13px 14px; color: var(--muted); border-radius: 12px; background: var(--mint); font-size: .88rem; }
.affected-bookings { margin: 16px 0; padding: 16px; border: 1px solid #e1c66f; border-radius: 14px; background: #fff9e8; }
.affected-bookings > strong { display: block; color: var(--warning); }
.affected-bookings ul { margin: 10px 0 14px; padding-left: 22px; }
.affected-bookings li + li { margin-top: 5px; }
.code-result { padding: 17px; border: 1px solid #a8c8bc; border-radius: 14px; background: var(--mint); }
.code-result > span { display: block; color: var(--dark-green); font-weight: 800; }
.code-result small { display: block; margin-top: 9px; color: var(--muted); }
.code-display-row { display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }
.issued-code { display: grid; min-height: 54px; flex: 1; place-items: center; padding: 10px; color: var(--ink); border: 1px dashed var(--green); border-radius: 10px; background: white; font: 900 clamp(1.25rem,6vw,1.8rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.settings-layout { display: grid; align-items: start; gap: 24px; padding-top: clamp(28px, 5vw, 46px); grid-template-columns: minmax(0, 1.5fr) minmax(220px, .75fr); }
.settings-card { max-width: 580px; }
.settings-card h3 { margin: 0 0 8px; font-size: clamp(1.3rem, 4vw, 1.8rem); letter-spacing: -.025em; }
.settings-card > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.password-form { margin-top: 28px; }
.password-form .field { max-width: 520px; }
.field-guidance { margin: -4px 0 20px; color: var(--muted); font-size: .82rem; }
.settings-note { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--mint); }
.settings-note strong { display: block; margin-bottom: 7px; }
.settings-note p { margin: 0; color: var(--muted); font-size: .88rem; }
.guest-booking-guidance { max-width: 52rem; color: var(--muted); font-size: .88rem; }
.tool-heading-row { display: flex; align-items: center; gap: 9px; }
.info-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; color: var(--green); border: 1px solid var(--line); border-radius: 50%; background: white; font-weight: 900; cursor: pointer; }
.inline-guidance { margin-top: 10px; padding: 12px 14px; color: var(--muted); border-radius: 11px; background: var(--mint); font-size: .84rem; }
.event-management-form { display: grid; align-items: start; gap: 14px 16px; margin-top: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.event-management-form .time-fields { margin: 0; padding: 0; border: 0; }
.event-management-form .time-fields legend { margin-bottom: 8px; font-weight: 800; }
.time-select-row { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.event-management-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-message { max-width: 980px; }
.noscript { margin: 20px; padding: 14px; color: var(--danger); background: white; }

@media (max-width: 64rem) {
  .brand-bar { min-height: 72px; padding: 11px 14px; }
  .app-shell { min-height: calc(100vh - 72px); }
  .auth-layout { min-height: calc(100vh - 72px); padding: 18px 10px 36px; }
  .auth-card { padding: 24px 18px; border-radius: 18px; }
  .auth-card h1 { font-size: 2.25rem; }
  .auth-card #loginTitle { font-size: 1.4rem; }
  label, input, select, textarea, .button { font-size: 17px; }
  input, select, textarea, .button { min-height: 54px; }
  .dashboard { display: flex; min-height: calc(100vh - 72px); flex-direction: column; }
  .sidebar { display: grid; gap: 16px; padding: 16px 12px 12px; grid-template-columns: minmax(0,1fr) auto; }
  .administrator-card { min-width: 0; }
  .sidebar-actions { display: flex; align-self: center; margin: 0; }
  .sidebar-actions .button { min-height: 48px; padding-inline: 15px; }
  .logout-button { min-height: 48px; margin: 0; padding-inline: 15px; }
  .primary-nav { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nav-item { min-height: 56px; justify-content: center; padding: 8px 6px; text-align: center; }
  .nav-icon { display: none; }
  .dashboard-content { padding: 24px 10px 44px; }
  .dashboard-header { margin-bottom: 22px; }
  .dashboard-header h1 { font-size: 2.2rem; }
  .session-status { display: none; }
  .content-panel { padding: 20px 16px; border-radius: 17px; }
  .panel-heading { flex-direction: column; gap: 13px; }
  .panel-heading .button { width: 100%; }
  .empty-state { padding-top: 34px; }
  .event-tabs { overflow-x: auto; }
  .event-tab { flex: 1 0 auto; }
  .golf-day-card { align-items: start; grid-template-columns: 1fr; }
  .golf-day-actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-tools .booking-form { grid-template-columns: 1fr; }
  .event-management-form { grid-template-columns: 1fr; }
  .tee-group-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .member-toolbar { grid-template-columns: 1fr; }
  .member-card { align-items: start; grid-template-columns: 1fr; }
  .member-actions { justify-content: flex-start; }
  .small-button { min-height: 46px; font-size: .92rem; }
  .admin-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 17px; }
  .admin-dialog form { padding: 22px 18px; }
  .admin-dialog > .dialog-heading { padding: 22px 18px 0; }
  .admin-dialog > div:not(.dialog-heading), .admin-dialog > p, .admin-dialog > input, .admin-dialog > .dialog-actions { margin-inline: 18px; }
  .admin-dialog > .dialog-actions { margin-bottom: 22px; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .share-preview { margin-inline: 18px; padding: 14px; font-size: .82rem; }
  .share-actions { grid-template-columns: 1fr; }
  .code-display-row { flex-direction: column; }
  .settings-layout { grid-template-columns: 1fr; }
  .password-form .button { width: 100%; }
}

@media (max-width: 480px) {
  .golf-day-detail-summary { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand-logo { width: 42px; height: 42px; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar-actions { display: grid; width: 100%; }
  .sidebar-actions .button { width: 100%; }
  .primary-nav { grid-column: 1; }
  .nav-item { font-size: .88rem; }
}
