:root {
  color-scheme: light;
  --cream: #f4efe4;
  --cream-deep: #e9dfcc;
  --paper: #fffdf8;
  --paper-warm: #faf6ec;
  --ink: #292923;
  --muted: #6f7067;
  --line: #e4ddcf;
  --gold: #d3a43e;
  --gold-dark: #966815;
  --amber: #b66a2c;
  --burgundy: #702f3d;
  --green: #285343;
  --green-dark: #1c3a31;
  --red: #9a403a;
  --shadow: 0 16px 42px rgb(64 48 25 / 8%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--cream); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 6%, rgb(211 164 62 / 13%), transparent 28rem),
    linear-gradient(180deg, #f8f3e9 0, var(--cream) 32rem, #f0eadc 100%);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.collage-art {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  isolation: isolate;
}
.brand-collage {
  position: absolute; inset: 1vh 1.5vw; z-index: 1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr)); gap: clamp(3px, 1vw, 14px);
  align-items: center; justify-items: center; opacity: .38;
}
.brand-collage img {
  display: block; width: 88%; max-width: 300px; max-height: min(24vh, 190px);
  height: auto; object-fit: contain;
}
.brand-collage img:nth-child(7n + 1) { width: 72%; }
.brand-collage img:nth-child(7n + 2) { width: 96%; }
.brand-collage img:nth-child(7n + 3) { width: 80%; }
.brand-collage img:nth-child(7n + 4) { width: 100%; }
.brand-collage img:nth-child(7n + 5) { width: 76%; }
.brand-collage img:nth-child(7n + 6) { width: 91%; }
.brand-collage img:nth-child(7n) { width: 84%; }
.brand-collage img:nth-child(14) { grid-column: 5; grid-row: 3; }
.collage-art.catalogue-no-collage { display: none; }
.collage-art::after {
  position: absolute; z-index: 2; inset: 0;
  background: linear-gradient(
    180deg,
    rgb(244 239 228 / 50%) 0%,
    rgb(244 239 228 / 47%) 30%,
    rgb(244 239 228 / 30%) 58%,
    rgb(244 239 228 / 45%) 100%
  ); content: "";
}
.credit-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.credit-panel { width: min(100%, 760px); padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.credit-panel h1 { margin-bottom: 18px; }
.credit-panel p, .credit-panel li { font-size: 16px; line-height: 1.6; }
.credit-panel li + li { margin-top: 12px; }
.credit-panel a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.credit-eyebrow { margin-bottom: 8px; color: var(--burgundy); font-weight: 800; letter-spacing: .12em; }
.offline-notice { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #b78b38; border-radius: 13px; color: #453617; background: #fff2c9; font-size: 16px; font-weight: 700; }
.offline-notice-menu-button { min-height: 44px; margin-left: 6px; padding: 5px 10px; border: 1px solid #a47a2b; border-radius: 9px; color: #453617; background: #fffaf0; font-size: 15px; font-weight: 750; cursor: pointer; }
.pwa-registration-warning { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #b97368; border-radius: 13px; color: #672e28; background: #fff2ed; font-size: 16px; font-weight: 700; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.install-card { position: relative; min-width: 0; padding: clamp(20px, 3vw, 28px); }
.install-card h2 { margin: 2px 0 13px; color: var(--green-dark); font-size: clamp(20px, 3vw, 24px); }
.install-card ol { margin: 0; padding-left: 22px; }
.install-card li { padding-left: 4px; font-size: 16px; line-height: 1.65; }
.install-card li + li { margin-top: 7px; }
.install-number { display: inline-grid; width: 38px; height: 38px; place-items: center; margin-bottom: 9px; border-radius: 50%; color: #fffdf8; background: var(--green); font-size: 16px; font-weight: 800; }
.install-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 12px 0 30px; }
.install-action [hidden] { display: none; }
.install-action .field-hint { max-width: 610px; margin: 0; }
.pwa-update-notice { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; width: min(460px, calc(100vw - 32px)); align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #cbb780; border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 10px 34px rgb(32 34 28 / 20%); font-size: 16px; }
.pwa-update-notice .quiet-button { min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-warm); font-size: 16px; font-weight: 750; }
.shell { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgb(182 106 44 / 35%);
  outline-offset: 2px;
}
img, svg { max-width: 100%; }
.shell { width: min(calc(100% - 40px), 1180px); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  min-height: 84px; margin-bottom: 34px; padding: 12px 0;
  border-bottom: 1px solid rgb(117 95 55 / 15%);
}
.brand { order: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid #bd8e2f; border-radius: 17px 17px 15px 5px;
  background: linear-gradient(145deg, #f3d476, #c9952f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%), 0 5px 12px rgb(112 81 24 / 13%);
}
.brand-mark svg { width: 32px; height: 32px; fill: none; stroke: #473b23; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.05; letter-spacing: -.025em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 16px; letter-spacing: .025em; }
.home-control { min-height: 48px; padding: 4px 9px 4px 0; border-radius: 14px; }
.home-control:hover { background: rgb(255 253 248 / 72%); }
.topbar > .header-log-action { display: none; text-decoration: none; }
.account-name { min-width: 0; }
.network-indicator { order: 2; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #4e514b; font-size: 12.5px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.network-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #b13a36; }
.network-indicator.is-online .network-dot { background: #27804e; }
.nav-toggle { order: 3; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; margin-left: 0; padding: 0 15px; border: 1px solid #cfc6b4; border-radius: 12px; color: var(--green-dark); background: var(--paper-warm); font-size: 16px; font-weight: 750; cursor: pointer; }
.nav-toggle:hover { background: #eae3d4; }
.nav-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 3px; width: 100%; min-width: 0; margin: -24px 0 26px; border-top: 1px solid rgb(117 95 55 / 15%); padding-top: 8px; }
.nav[hidden] { display: none; }
.nav a { flex: 0 0 auto; }
.nav a, .account-link, .quiet-button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 13px; border: 0; border-radius: 12px;
  color: #55564d; background: transparent; font-size: 16px; font-weight: 650; cursor: pointer;
}
.nav a:hover, .account-link:hover, .quiet-button:hover { color: var(--green-dark); background: #eae3d4; }
.nav a[aria-current="page"] { color: var(--paper); background: var(--green); box-shadow: 0 4px 12px rgb(40 83 67 / 18%); }
.user-actions { order: 4; display: flex; flex: 0 0 auto; align-items: center; gap: 3px; }
.account-link { padding-inline: 9px; }
.account-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(211 164 62 / 18%); }
.role-chip { padding: 3px 7px; border-radius: 99px; color: #5a3d17; background: #eee0b7; font-size: 16px; }
.inline-form { display: inline; margin: 0; }
main { min-height: 60vh; }
.page-heading { position: relative; margin: 0 0 28px; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.eyebrow { margin: 0 0 7px; color: var(--burgundy); font-size: 16px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
h2 { margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.2; }
h3 { font-size: 18px; }
.muted { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-stamp { display: inline-flex; padding: 11px 15px; border: 1px solid #dfd1b3; border-radius: 99px; color: #795b28; background: rgb(255 253 248 / 64%); font-size: 16px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.primary-button, .secondary-button {
  min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; border: 1px solid var(--green); border-radius: 14px;
  color: var(--paper); background: var(--green); box-shadow: 0 6px 14px rgb(40 83 67 / 14%);
  font-size: 16px; font-weight: 750; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.primary-button:hover { transform: translateY(-1px); background: var(--green-dark); box-shadow: 0 9px 20px rgb(40 83 67 / 20%); }
.secondary-button { color: var(--green-dark); background: #f4eddb; border-color: #d8c7a6; box-shadow: none; }
.secondary-button:hover { background: #ede2c8; }
.panel { min-width: 0; border: 1px solid #e1d8c7; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 18px; }
.summary-card { position: relative; min-height: 168px; padding: 22px 25px; overflow: hidden; }
.summary-card::after { position: absolute; right: -20px; bottom: -45px; width: 130px; height: 130px; border: 1px solid rgb(182 106 44 / 16%); border-radius: 50%; content: ""; box-shadow: 0 0 0 13px rgb(182 106 44 / 4%), 0 0 0 26px rgb(182 106 44 / 3%); }
.summary-card:nth-child(2)::after { border-color: rgb(40 83 67 / 20%); box-shadow: 0 0 0 13px rgb(40 83 67 / 5%), 0 0 0 26px rgb(40 83 67 / 3%); }
.summary-card:nth-child(3)::after { border-color: rgb(112 47 61 / 19%); box-shadow: 0 0 0 13px rgb(112 47 61 / 5%), 0 0 0 26px rgb(112 47 61 / 3%); }
.summary-label { margin: 0 0 16px; color: var(--muted); font-size: 16px; font-weight: 700; }
.summary-value { position: relative; z-index: 1; margin: 0 0 15px; color: var(--green-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.1vw, 48px); line-height: 1; letter-spacing: -.04em; }
.summary-value span { color: var(--muted); font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.summary-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid #ebe5d9; color: var(--muted); font-size: 16px; }
.content-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; margin-top: 18px; }
.chart-panel, .recent-panel { padding: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.section-head .eyebrow { margin-bottom: 4px; }
.section-head h2 { margin: 0; }
.text-link { color: var(--green); font-size: 16px; font-weight: 750; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }
.week-chart { display: grid; grid-template-columns: repeat(7, minmax(24px, 1fr)); gap: clamp(7px, 1.8vw, 16px); min-height: 195px; align-items: end; }
.chart-day { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; height: 180px; }
.chart-units { color: var(--green); font-size: 16px; font-weight: 750; }
.chart-day progress { appearance: none; -webkit-appearance: none; width: min(100%, 34px); height: 103px; transform: rotate(180deg); writing-mode: vertical-rl; border: 0; border-radius: 9px; background: #eee8dc; }
.chart-day progress::-webkit-progress-bar { border-radius: 9px; background: #eee8dc; }
.chart-day progress::-webkit-progress-value { border-radius: 9px; background: linear-gradient(180deg, #e0b84d, var(--amber)); }
.chart-day progress::-moz-progress-bar { border-radius: 9px; background: var(--amber); }
.chart-date { color: var(--ink); font-size: 16px; font-weight: 750; text-align: center; }
.chart-date small { display: block; margin-top: 3px; color: var(--muted); font-size: 16px; font-weight: 500; }
.compact-list { display: flex; flex-direction: column; }
.compact-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 0; border-top: 1px solid #ebe5d9; }
.compact-entry:first-child { padding-top: 0; border-top: 0; }
.compact-entry:hover strong { color: var(--green); }
.compact-main { min-width: 0; }
.compact-main strong, .compact-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-main strong { font-size: 16px; }
.compact-main small { margin-top: 4px; color: var(--muted); font-size: 16px; }
.unit-pill { flex: 0 0 auto; padding: 7px 10px; border-radius: 99px; color: #584018; background: #f0e5c9; font-size: 16px; font-weight: 800; white-space: nowrap; }
.export-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 22px 3px 0; }
.footer { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 42px; padding: 20px 0 max(20px, env(safe-area-inset-bottom)); color: #757064; font-size: 16px; text-align: center; }
.footer-rule { width: 34px; height: 1px; background: #b89b65; }
.notices { margin: -12px 0 22px; }
.notice { margin: 0 0 9px; padding: 13px 16px; border: 1px solid #cad8c5; border-radius: 14px; color: #234737; background: #eff4e8; font-size: 16px; }
.notice-error { border-color: #e4c6bb; color: #782e32; background: #fcf0eb; }
.notice-warning { border-color: #d9bf83; color: #4e3b18; background: #fff8e8; }
.empty-state { margin: 0; padding: 34px 15px; color: var(--muted); font-size: 16px; text-align: center; }
.login-wrap { min-height: 60vh; display: grid; place-items: center; padding: 8px 0 34px; }
.login-panel { width: min(100%, 500px); padding: clamp(25px, 6vw, 46px); }
.login-panel h1 { font-size: clamp(38px, 7vw, 52px); }
.login-panel > .muted { margin-bottom: 28px; }
.stack-form { display: grid; gap: 11px; }
.stack-form label, .field, .field-label { color: #46463e; font-size: 16px; font-weight: 700; }
.stack-form input, .field input, .field textarea, .field select, .search-form input, .search-form select, .history-filters input, .history-filters select {
  width: 100%; min-width: 0; min-height: 58px; padding: 13px 15px; border: 1px solid #d8d0c1;
  border-radius: 13px; color: var(--ink); background: #fffefa; font-size: 17px; font-weight: 500;
}
.stack-form input:focus, .field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus, .search-form select:focus, .history-filters input:focus, .history-filters select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgb(211 164 62 / 16%); outline: none; }
.stack-form label:not(:first-of-type) { margin-top: 10px; }
.full-width { width: 100%; margin-top: 13px; }
.form-panel { padding: clamp(20px, 4vw, 35px); }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 19px; }
.field { display: flex; flex-direction: column; gap: 9px; position: relative; min-width: 0; }
.field input, .field textarea { font-weight: 500; }
.field textarea { min-height: 135px; resize: vertical; line-height: 1.5; }
.field-wide { grid-column: 1 / -1; }
.field-unit { position: absolute; top: 0; right: 0; color: var(--muted); font-size: 16px; font-weight: 600; }
.field-error { color: var(--red); font-size: 16px; font-weight: 650; }
.field-hint { margin: 0; color: var(--muted); font-size: 16px; font-weight: 450; line-height: 1.5; }
.form-actions { display: flex; align-items: center; gap: 19px; margin-top: 4px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 9px; }
.preset-button { min-height: 50px; padding: 6px 13px; border: 1px solid #d8c9aa; border-radius: 12px; color: #5b4828; background: #fbf4e3; font-size: 16px; font-weight: 750; cursor: pointer; }
.preset-button small { display: block; color: var(--muted); font-size: 16px; font-weight: 500; }
.preset-button:hover, .preset-button[aria-pressed="true"] { border-color: var(--gold-dark); background: #f1e2b9; }
.units-preview { justify-content: center; padding: 15px 19px; border: 1px solid #dfd0aa; border-radius: 16px; background: linear-gradient(135deg, #fbf1d5, #fffaf0); }
.unit-total { color: #694b15; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 750; line-height: 1.15; }
.rating-field { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.rating-field legend { padding: 0 7px; color: #46463e; font-size: 16px; font-weight: 750; }
.rating-line { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto auto; align-items: center; gap: 13px; }
.rating-line input[type="range"] { min-height: 58px; padding: 0; accent-color: var(--burgundy); }
.rating-line output { min-width: 68px; color: var(--burgundy); font-size: 17px; font-weight: 800; text-align: right; }
.rating-low, .rating-high { color: var(--muted); font-size: 16px; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 13px; align-items: flex-start; }
.photo-strip img, .photo-preview img { width: 130px; height: 130px; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; }
.photo-choice { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 16px; font-weight: 500; }
.photo-choice input, input[type="checkbox"] { width: 24px; height: 24px; min-height: 24px; accent-color: var(--green); }
.photo-action { position: relative; display: flex; width: 100%; min-height: 64px; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 16px; border: 1px solid #b89b62; border-radius: 15px; color: #fffdf5; background: linear-gradient(135deg, var(--green), #1f4e3b); box-shadow: 0 4px 12px rgb(34 44 35 / 12%); font-size: 17px; font-weight: 750; cursor: pointer; }
.photo-action .photo-file-control { position: absolute; inset: 0 auto auto 0; width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; margin: -1px !important; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.photo-action span { font-size: 25px; }
.photo-action:focus-within { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.photo-upload .photo-count { color: #4d4f45; font-weight: 650; }
.photo-count-error { color: var(--red) !important; }
.photo-save-status { min-height: 1.5em; color: var(--green); font-weight: 700; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-preview:not(:empty) { margin-top: 5px; }
.photo-preview-item { display: grid; gap: 4px; color: var(--muted); font-size: 16px; }
.photo-preview-item span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-panel { padding: 20px 25px; }
.history-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr auto; gap: 9px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.history-filters input, .history-filters select { min-height: 58px; padding: 11px 12px; }
.filter-clear { margin: 12px 0 0; }
.history-entry { min-width: 0; padding: 22px 0; border-bottom: 1px solid #ebe5d9; }
.history-entry:last-child { border-bottom: 0; }
.entry-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; }
.entry-topline h2 { margin-bottom: 5px; }
.entry-subtitle { margin: 0; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.entry-subtitle span { margin: 0 4px; color: #a49a86; }
.entry-facts { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 15px; color: #55564d; font-size: 16px; }
.entry-notes { margin: 13px 0 0; padding: 12px 15px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: #55564d; background: #faf6ec; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 13px 0 0; }
.entry-actions form { margin: 0; }
.entry-actions .quiet-button { min-height: 48px; padding-inline: 12px; border: 1px solid #e1d8c7; background: #fbf8f0; font-size: 16px; }
.entry-actions .quiet-button:hover { background: #efe6d2; }
.danger-text { color: var(--red) !important; }
.list-limit { margin: 14px 4px 0; text-align: right; }
.star-mark { color: var(--gold-dark); font-size: 27px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.autocomplete-wrap { position: relative; display: block; min-width: 0; }
.autocomplete-status { display: block; min-height: 1.5em; margin-top: 4px; color: var(--muted); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.place-search-button { min-height: 56px; margin-top: 4px; padding: 8px 12px; border: 1px solid #d8d0c1; background: var(--paper-warm); font-size: 16px; text-align: left; }
.place-search-button[hidden] { display: none; }
.suggestions { position: absolute; z-index: 10; top: calc(100% + 5px); left: 0; right: 0; display: flex; flex-direction: column; max-height: 300px; overflow: auto; border: 1px solid #d8d0c1; border-radius: 14px; background: var(--paper); box-shadow: 0 14px 36px rgb(38 32 20 / 18%); }
.suggestions[hidden] { display: none; }
.suggestion-option { min-height: 56px; padding: 10px 14px; border: 0; border-bottom: 1px solid #eee8dc; color: var(--ink); background: var(--paper); text-align: left; font-size: 16px; cursor: pointer; }
.suggestion-option:last-child { border-bottom: 0; }
.suggestion-option:hover, .suggestion-option:focus { background: #f3ead5; }
.photo-first { padding: 19px; border: 1px solid #dac89e; border-radius: 18px; background: linear-gradient(135deg, #fffaf0, #f6efdd); }
.photo-first > .field-label { display: block; }
.photo-first > .field-label .field-unit { position: static; margin-left: 6px; }
.photo-first .photo-action { min-height: 68px; }
.location-consent { margin: 12px 0 5px; padding: 11px 12px; border: 1px solid #e4ddcf; border-radius: 12px; background: #fffdf8; }
.location-refresh-button { min-height: 56px; justify-self: start; padding: 10px 16px; font-size: 16px; font-weight: 700; }
.nearby-results { display: grid; gap: 7px; margin-top: 8px; }
.nearby-results:empty { display: none; }
.nearby-venue-option { display: grid; gap: 7px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.nearby-venue-name { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 7px; }
.nearby-venue-option > small { color: var(--muted); font-size: 15px; font-weight: 450; overflow-wrap: anywhere; }
.nearby-venue-meta { color: var(--muted); font-size: 13px; font-weight: 650; }
.suggested-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border: 1px solid #dfc37c; border-radius: 99px; color: #634911; background: #fff4d3; font-size: 12px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.selected-venue-row { display: flex; min-width: 0; min-height: 48px; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 8px 5px 10px; border: 1px solid #d9cfb8; border-radius: 12px; background: #fffaf0; }
.selected-venue-row strong { min-width: 0; overflow-wrap: anywhere; }
.selected-venue-row .quiet-button { min-height: 44px; margin-left: auto; padding: 5px 12px; border: 1px solid var(--line); background: #faf6ec; font-size: 15px; }
.nearby-venue-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.nearby-venue-actions button { min-height: 48px; max-width: 100%; padding: 8px 11px; font-size: 16px; overflow-wrap: anywhere; }
.nearby-venue-actions .primary-button { min-height: 52px; }
.nearby-venue-actions .quiet-button { border: 1px solid var(--line); background: #faf6ec; }
.osm-attribution { margin-bottom: 0; }
.osm-attribution a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.map-launch-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px; width: 100%; }
.venue-action-button { display: inline-flex; min-width: 0; min-height: 56px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #cfc6b4; border-radius: 12px; color: var(--green-dark); background: var(--paper-warm); text-align: center; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; cursor: pointer; }
.venue-action-button:hover { background: #eee6d5; }
.map-launch-button { width: 100%; }
.venue-map-dialog { width: min(980px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #cbbd9e; border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 80px rgb(20 25 20 / 35%); }
.venue-map-dialog::backdrop { background: rgb(25 32 28 / 68%); backdrop-filter: blur(2px); }
.venue-map-dialog-inner { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: clamp(16px, 3vw, 27px); overscroll-behavior: contain; }
.venue-map-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.venue-map-header .eyebrow { margin-bottom: 4px; font-size: 16px; }
.venue-map-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 32px); }
.map-close { min-width: 78px; min-height: 48px; border: 1px solid var(--line); background: var(--paper-warm); }
.map-status { min-height: 1.5em; margin: 0 0 12px; }
.map-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 9px; margin-bottom: 12px; }
.map-search-controls .field { min-width: 0; }
.map-search-controls input, .map-saved-search input { min-height: 56px; font-size: 16px; }
.map-search-controls button { min-height: 56px; padding-inline: 13px; border: 1px solid #cfc6b4; background: var(--paper-warm); font-size: 16px; }
.map-search-controls button:disabled { opacity: .55; cursor: wait; }
.venue-map-canvas { width: 100%; height: clamp(320px, 52vh, 560px); min-width: 0; overflow: hidden; border: 1px solid #cfc6b4; border-radius: 14px; background: #e8e5d8; }
.venue-map-canvas[hidden] { display: none; }
.map-provider-note { margin: 9px 2px 12px; font-size: 16px; }
.venue-map-dialog .leaflet-bar a { width: 48px; height: 48px; line-height: 46px; font-size: 25px; }
.venue-map-dialog .leaflet-control-attribution { font-size: 12px; }
.leaflet-marker-icon.venue-map-pin { display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid #fffdf5; border-radius: 50% 50% 50% 7px; background: var(--burgundy); box-shadow: 0 2px 9px rgb(0 0 0 / 38%); }
.leaflet-marker-icon.venue-map-pin.is-selected { border-color: #f5c857; box-shadow: 0 0 0 3px #fffdf5, 0 2px 10px rgb(0 0 0 / 42%); }
.venue-map-pin::before { width: 10px; height: 10px; border-radius: 50%; background: #fffdf5; content: ""; }
.venue-map-pin--saved { background: var(--green); }
.map-selected-place { margin-top: 12px; padding: 14px; border: 2px solid #b89b62; border-radius: 14px; background: #fff9e9; }
.map-selected-place[hidden], .map-saved-results[hidden] { display: none; }
.map-selected-place h3, .map-saved-search h3 { margin: 0 0 5px; font-size: 19px; }
.map-selected-place p { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.map-selection-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: end; }
.map-selection-fields .field:first-child, .map-selection-fields .field:nth-child(2), .map-selected-coordinates { grid-column: 1 / -1; }
.map-selection-fields input, .map-selection-fields select { width: 100%; min-width: 0; min-height: 56px; box-sizing: border-box; font-size: 16px; }
.map-selected-coordinates { margin: 0 0 10px !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.map-source-note { font-size: 14px; }
.map-choice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-choice-actions button { min-height: 52px; padding-inline: 14px; font-size: 16px; }
.map-choice-hint { margin: 0 0 9px; }
.map-saved-search { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.map-saved-search .field { max-width: 560px; }
.map-saved-results { display: grid; gap: 6px; max-height: 240px; overflow: auto; margin-top: 7px; }
.map-saved-results .suggestion-option { display: grid; gap: 3px; min-height: 60px; border: 1px solid var(--line); border-radius: 10px; }
.map-saved-results .suggestion-option small { color: var(--muted); overflow-wrap: anywhere; }
.map-fallback-note { margin: 14px 2px 0; }
.map-fallback-note a { text-decoration: underline; text-underline-offset: 3px; }
.leaflet-marker-icon.venue-map-pin--chosen { background: #a66a18; z-index: 1000 !important; }
.leaflet-marker-icon.venue-map-pin--chosen::before { background: #fff; }
.consent-row { display: flex; flex-direction: row; align-items: flex-start; gap: 11px; font-size: 16px; font-weight: 500; line-height: 1.5; }
.consent-row input { flex: 0 0 auto; width: 24px; height: 24px; min-height: 24px; margin: 1px 0 0; }
.location-actions { align-items: flex-start; }
.location-actions .secondary-button { width: fit-content; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.catalogue-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fffefa; }
.catalogue-photo { width: 100%; height: 190px; display: block; object-fit: cover; background: #ede1bf; }
.placeholder-photo { display: grid; place-items: center; color: #775b26; font-size: 45px; background: radial-gradient(circle at 50% 40%, #f8df9a, #e4c575 75%, #d4ac55); }
.catalogue-card-body { padding: 17px; }
.catalogue-card-body h2 { margin-bottom: 6px; }
.catalogue-card-body .entry-facts { margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 18px; }
.stats-card { padding: 21px; }
.stats-card h2 { margin-bottom: 15px; }
.stats-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #ebe5d9; font-size: 16px; }
.stats-row span { overflow-wrap: anywhere; }
.stats-row small { color: var(--muted); white-space: nowrap; font-size: 16px; }
.location-facts { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; color: var(--muted); font-size: 16px; }
.entry-photo { width: min(100%, 230px); height: 180px; margin-top: 13px; object-fit: cover; border-radius: 14px; }
.login-note { margin-top: 20px; padding: 14px; border-radius: 14px; background: #f5eedc; color: #61583f; }

.users-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.user-create { padding: 23px; }
.user-create-form { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: end; gap: 13px; }
.user-create-form .field { min-width: 0; }
.user-list { display: grid; gap: 12px; }
.user-card { padding: 19px 21px; border: 1px solid var(--line); border-radius: 17px; background: #fffefa; }
.user-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.user-name { margin: 0 0 4px; font-size: 20px; font-weight: 750; overflow-wrap: anywhere; }
.user-meta { color: var(--muted); font-size: 16px; }
.user-status { display: inline-flex; align-items: center; min-height: 33px; padding: 4px 11px; border-radius: 99px; color: #285343; background: #e4eedf; font-size: 16px; font-weight: 750; white-space: nowrap; }
.user-status.inactive { color: #742f39; background: #f5e4e2; }
.user-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-top: 15px; }
.user-controls form { margin: 0; }
.user-controls select { min-width: 140px; min-height: 56px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; font-size: 16px; }
.user-controls .quiet-button { min-height: 56px; border: 1px solid var(--line); background: #faf6ec; font-size: 16px; }
.issued-password { margin-bottom: 19px; padding: 20px; border: 1px solid #d1b66f; border-radius: 18px; background: #fff4ce; }
.issued-password code { display: block; margin-top: 8px; padding: 13px; border-radius: 10px; background: #fffdf5; color: #3d321d; font-size: 19px; overflow-wrap: anywhere; user-select: all; }
.audit-list { display: grid; gap: 0; }
.audit-row { display: grid; grid-template-columns: minmax(125px, .8fr) minmax(130px, 1fr) minmax(130px, 1.4fr) minmax(170px, 1.3fr); gap: 10px; padding: 12px 0; border-top: 1px solid #ebe5d9; font-size: 16px; overflow-wrap: anywhere; }
.audit-row time { color: var(--muted); }

.preference-panel { max-width: 760px; padding: clamp(20px, 4vw, 34px); }
.preference-copy { max-width: 66ch; margin: 18px 0 24px; }
.preference-form { display: grid; gap: 22px; }
.preference-form .field small { display: block; margin-top: 7px; color: var(--muted); font-size: 16px; font-weight: 450; }
.participation-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 12px; border-radius: 99px; color: #1d5138; background: #e3efdf; font-size: 16px; font-weight: 750; }
.muted-chip { color: #605c51; background: #eee9de; }
.preference-toggle { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-warm); cursor: pointer; }
.preference-toggle input { flex: 0 0 auto; width: 25px; height: 25px; accent-color: var(--green); }
.preference-toggle strong, .preference-toggle small { display: block; }
.preference-toggle small { margin-top: 3px; color: var(--muted); font-size: 16px; }
.league-panel { padding: clamp(15px, 3vw, 28px); }
.league-filters { display: flex; align-items: end; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.league-filters .field { width: min(100%, 360px); }
.league-filters select { min-height: 56px; padding: 10px 12px; border: 1px solid #d6cfbf; border-radius: 11px; color: var(--ink); background: white; font-size: 16px; }
.league-filters .primary-button { min-width: 150px; min-height: 56px; }
.tie-note { margin: 17px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.personal-position { display: flex; align-items: center; gap: 14px; margin: -6px 0 18px; padding: 15px 19px; border: 1px solid #cabb94; border-radius: 17px; background: #fff9e8; box-shadow: 0 7px 20px rgb(64 48 25 / 5%); }
.personal-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; color: #fffdf8; background: var(--green); font-size: 18px; font-weight: 800; }
.personal-position strong, .personal-position small { display: block; }
.personal-position small { margin-top: 3px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.join-prompt { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -5px 0 18px; padding: 18px; border: 1px solid #d8c7a6; border-radius: 17px; background: #fff9e8; }
.join-prompt p { margin: 0; }
.league-jump-links { position: relative; display: flex; gap: 8px; margin: 0 0 14px; padding: 2px 0 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.league-jump-links a { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 9px 17px; border: 1px solid #d9cfbc; border-radius: 999px; color: var(--green-dark); background: #fffdf8; font-size: 16px; font-weight: 750; text-decoration: none; }
.league-jump-links a:hover, .league-jump-links a:focus-visible { border-color: var(--green); background: #edf3e8; }
.league-section { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.league-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.league-section-head .eyebrow { margin: 0 0 3px; }
.league-section-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 32px); }
.league-rank-method { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 12px; border-radius: 999px; color: #4c493e; background: #f3eddf; font-size: 15px; font-weight: 700; text-align: center; }
.league-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
.league-table { width: 100%; border-collapse: collapse; background: #fffefa; }
.league-table th, .league-table td { padding: 13px 12px; border-bottom: 1px solid #eee8dd; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.league-table thead { color: #514d40; background: #f5efdf; }
.league-table thead th { font-size: 15px; font-weight: 800; }
.league-table tbody tr:last-child > * { border-bottom: 0; }
.league-table tbody tr.is-you { background: #eff4e8; }
.league-table td:first-child { font-weight: 800; }
.league-table th[scope="row"] { font-size: 16px; }
.you-chip { display: inline-flex; margin-left: 8px; padding: 2px 7px; border-radius: 99px; color: #285343; background: #e2eedf; font-size: 14px; font-weight: 750; }
.league-type-details summary { min-height: 42px; display: inline-flex; align-items: center; color: var(--green-dark); font-weight: 750; cursor: pointer; }
.league-breakdown { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; list-style: none; }
.league-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid #eee8dd; font-size: 15px; }
.league-breakdown li span:last-child { color: var(--muted); text-align: right; }
.league-privacy-note { margin: 13px 5px; color: var(--muted); font-size: 16px; text-align: center; }

/* v1.12.2 compact league cards and shared activity photos */
.league-member-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.league-member-card { min-width: 0; overflow: hidden; border: 1px solid #e4dccb; border-radius: 15px; background: #fffefa; }
.league-member-card.is-you { border-color: #aabd9d; background: #f5f8ef; }
.league-member-card.has-spoon { border-color: #d4c7ad; }
.league-member-details > summary { list-style: none; }
.league-member-details > summary::-webkit-details-marker { display: none; }
.league-member-summary { display: grid; grid-template-columns: 34px 74px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 68px; padding: 10px 14px; cursor: pointer; }
.league-member-summary:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: -3px; }
.league-member-rank { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--green-dark); background: #f0eadb; font-weight: 850; }
.league-member-medals { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.league-medal { font-size: 22px; line-height: 1; }
.wooden-spoon { filter: saturate(.68); }
.league-member-name { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.league-member-total { white-space: nowrap; color: #644a18; font-variant-numeric: tabular-nums; }
.league-member-total small { color: var(--muted); font-size: 13px; }
.league-expand-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--green-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }
.league-expand-hint > span { transition: transform .16s ease; font-size: 18px; }
.league-member-details[open] .league-expand-hint > span { transform: rotate(180deg); }
.league-member-expanded { padding: 12px 18px 17px; border-top: 1px solid #e9e2d6; background: rgb(255 255 255 / 70%); }
.league-member-totals { margin: 0 0 10px; color: #4f4b40; font-variant-numeric: tabular-nums; }
.league-member-totals strong { color: var(--ink); }
.league-breakdown { display: grid; gap: 5px; margin: 7px 0 0; padding: 0; list-style: none; }
.league-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid #eee8dd; font-size: 15px; }
.league-breakdown li span:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.league-breakdown-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.league-breakdown-group { min-width: 0; padding: 10px 12px; border: 1px solid #eee8dd; border-radius: 12px; background: #fffefa; }
.league-breakdown-group h3 { margin: 0; font-size: 16px; }
.league-breakdown-group > p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.league-privacy-note { font-size: 14px; }
.privacy-entry-toggle { display: flex; min-height: 64px; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #d9d0bd; border-radius: 13px; background: #faf6ec; cursor: pointer; }
.privacy-entry-toggle input { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; margin: 0; accent-color: var(--green); }
.privacy-entry-toggle strong, .privacy-entry-toggle small { display: block; }
.privacy-entry-toggle small { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.selfie-photo-action { margin-top: 8px; color: #462f3d; background: linear-gradient(135deg, #f5e8ef, #fff5e7); }
.photo-remove-button { min-height: 42px; width: fit-content; padding: 7px 11px; font-size: 15px; }
.entry-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-count-label { align-self: flex-start; padding: 5px 8px; border-radius: 999px; color: #554c39; background: #f2ecdf; font-size: 14px; }
.entry-photo-button { display: grid; gap: 4px; width: fit-content; padding: 0; border: 0; color: var(--green-dark); background: transparent; text-align: left; font: inherit; cursor: zoom-in; }
.entry-photo-button span { font-size: 14px; }
.entry-photo { width: min(38vw, 210px); height: 170px; margin: 0; object-fit: cover; border: 1px solid #ded6c7; border-radius: 13px; }
.private-entry-chip, .read-only-entry { display: inline-flex; align-items: center; min-height: 34px; margin-top: 8px; padding: 5px 10px; border-radius: 99px; color: #594918; background: #f4edda; font-size: 14px; font-weight: 750; }
.photo-enlarge-dialog { max-width: min(94vw, 1050px); max-height: 94vh; padding: 12px; border: 1px solid #b9ae9b; border-radius: 16px; background: #fffefa; }
.photo-enlarge-dialog::backdrop { background: rgb(18 22 19 / 78%); }
.photo-enlarge-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.photo-enlarge-dialog img { display: block; max-width: 88vw; max-height: 82vh; object-fit: contain; }
.history-filters { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.history-filters .filter-search { grid-column: span 2; }

@media (max-width: 600px) {
  .league-member-summary { grid-template-columns: 30px auto minmax(0, 1fr) auto; gap: 6px 8px; min-height: 68px; padding: 9px 10px; }
  .league-member-medals { gap: 2px; }
  .league-member-name { font-size: 16px; }
  .league-member-total { font-size: 15px; }
  .league-member-total small { display: block; text-align: right; }
  .league-expand-hint { grid-column: 3 / -1; justify-self: end; margin-top: -3px; }
  .league-breakdown-groups { grid-template-columns: minmax(0, 1fr); }
  .league-breakdown li { align-items: flex-start; flex-direction: column; gap: 2px; }
  .league-breakdown li span:last-child { text-align: left; }
  .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-filters .filter-search { grid-column: 1 / -1; }
  .history-filters > * { min-width: 0; }
  .history-panel { padding: 14px; }
  .entry-topline { flex-direction: column; }
  .entry-photo { width: min(42vw, 175px); height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 920px) {
  .shell { width: min(calc(100% - 32px), 720px); }
  .topbar { flex-wrap: wrap; gap: 9px 16px; padding: 16px 0; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav a { flex: 1 1 15%; }
  .content-grid { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .history-filters .filter-search { grid-column: span 2; }
}

@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .install-grid { grid-template-columns: minmax(0, 1fr); }
  .install-card { padding: 20px; }
  .install-action { align-items: stretch; flex-direction: column; }
  .install-action .primary-button { width: 100%; }
  .shell { width: auto; margin-right: max(14px, env(safe-area-inset-right)); margin-left: max(14px, env(safe-area-inset-left)); }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: auto; margin-bottom: 18px; gap: 7px 5px; padding: 9px 0 11px; }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .brand strong { white-space: nowrap; font-size: 16px; }
  .brand small { margin-top: 3px; font-size: 13px; }
  .network-indicator { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
  .nav-toggle { grid-column: 3; grid-row: 1; margin-left: 0; min-height: 48px; gap: 5px; padding-inline: 9px; font-size: 14px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px 13px 12px 4px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .home-control { gap: 7px; padding: 3px 5px 3px 0; }
  .network-indicator { gap: 6px; font-size: 12px; }
  .topbar > .header-log-action { display: inline-flex; grid-column: 1; grid-row: 2; justify-self: start; min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
  .user-actions { grid-column: 2 / 4; grid-row: 2; justify-self: end; min-width: 0; gap: 0; padding-inline: 3px; border: 1px solid #e2d8c4; border-radius: 13px; background: rgb(255 253 248 / 88%); box-shadow: 0 3px 10px rgb(65 53 31 / 6%); }
  .account-link { max-width: 34vw; min-height: 44px; padding: 0 5px; font-size: 14px; overflow: hidden; }
  .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-dot, .role-chip { display: none; }
  .user-actions .quiet-button { min-height: 44px; padding: 0 7px; font-size: 14px; white-space: nowrap; }
  .nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: -16px 0 20px; padding-top: 8px; }
  .nav[hidden] { display: none; }
  .nav a { min-height: 45px; padding: 5px 6px; font-size: 16px; }
  .nav .menu-sync-panel { grid-column: 1 / -1; }
  .page-heading { margin-bottom: 21px; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-heading .eyebrow { margin-bottom: 4px; font-size: 12px; letter-spacing: .08em; }
  .page-heading h1 { margin-bottom: 5px; font-size: clamp(30px, 8.5vw, 38px); }
  .page-heading .muted { font-size: 15px; line-height: 1.35; }
  .page-heading .hero-stamp { padding: 7px 9px; font-size: 12px; letter-spacing: .06em; line-height: 1.25; }
  .heading-row > .primary-button { width: 100%; }
  .clubhouse-hero { padding: 19px 20px; border-radius: 18px; }
  .clubhouse-hero .eyebrow { margin-bottom: 5px; font-size: 12px; letter-spacing: .1em; }
  .clubhouse-hero h1 { margin-bottom: 7px; font-size: clamp(29px, 8vw, 35px); }
  .clubhouse-hero > p:not(.eyebrow) { margin-bottom: 12px; font-size: 15px; line-height: 1.4; }
  .clubhouse-log { min-height: 49px; font-size: 15px; }
  .clubhouse-primary { margin-top: 11px; }
  .clubhouse-card { min-height: 122px; gap: 4px; padding: 15px 17px; border-radius: 16px; }
  .clubhouse-card > .eyebrow { margin-bottom: 1px; font-size: 12px; letter-spacing: .1em; }
  .clubhouse-card > strong { font-size: 23px; }
  .clubhouse-card > span:not(.clubhouse-icon):not(.clubhouse-arrow):not(.eyebrow) { max-width: 30ch; font-size: 14px; line-height: 1.35; }
  .clubhouse-icon { top: 13px; right: 16px; font-size: 25px; }
  .clubhouse-arrow { right: 16px; bottom: 8px; font-size: 22px; }
  .clubhouse-secondary { margin-top: 10px; }
  .clubhouse-install { margin-top: 10px; }
  .hero-stamp { font-size: 16px; }
  h1 { font-size: clamp(34px, 10vw, 43px); }
  h2 { font-size: 21px; }
  .summary-grid { grid-template-columns: 1fr; gap: 11px; margin-bottom: 13px; }
  .summary-card { min-height: 132px; padding: 18px 20px; }
  .summary-label { margin-bottom: 10px; }
  .summary-value { margin-bottom: 12px; font-size: 39px; }
  .summary-foot { font-size: 16px; }
  .content-grid, .quick-grid, .stats-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 13px; }
  .chart-panel, .recent-panel, .stats-card { padding: 18px; border-radius: 18px; }
  .week-chart { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-height: 175px; }
  .chart-day { height: 160px; }
  .chart-day progress { width: 24px; height: 83px; }
  .chart-units { font-size: 16px; }
  .chart-date { font-size: 16px; }
  .chart-date small { font-size: 16px; }
  .export-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer { flex-direction: column; gap: 6px; margin-top: 30px; font-size: 16px; }
  .entry-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .datetime-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .field, .stack-form label, .field-label { font-size: 16px; }
  .field-wide { grid-column: 1; }
  .form-panel { padding: 17px; border-radius: 18px; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .form-actions .primary-button { width: 100%; }
  .form-actions .text-link { padding: 10px; text-align: center; }
  .preset-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .preset-button { min-height: 55px; padding: 5px 4px; font-size: 16px; }
  .preset-button small { font-size: 16px; }
  .rating-line { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .rating-line input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .rating-line output { grid-column: 2; grid-row: 1; }
  .rating-low { grid-column: 1; grid-row: 1; }
  .rating-high { grid-column: 1 / -1; text-align: right; }
  .photo-action { min-height: 64px; }
  .photo-first { padding: 14px; }
  .location-refresh-button { width: 100%; }
  .nearby-venue-option { padding: 10px; }
  .nearby-venue-actions { display: grid; grid-template-columns: 1fr; }
  .nearby-venue-actions button { width: 100%; min-height: 52px; }
  .venue-map-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); max-height: calc(100dvh - 14px); border-radius: 16px; }
  .venue-map-dialog-inner { max-height: calc(100vh - 14px); max-height: calc(100dvh - 14px); padding: 14px; }
  .venue-map-header { align-items: flex-start; }
  .map-search-controls { grid-template-columns: minmax(0, 1fr); }
  .map-search-controls button { width: 100%; }
  .venue-map-canvas { height: 42vh; height: 42dvh; min-height: 300px; max-height: 430px; }
  .map-choice-actions { display: grid; grid-template-columns: 1fr; }
  .map-choice-actions button { width: 100%; }
  .history-panel { padding: 14px; border-radius: 18px; }
  .history-filters { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .history-filters .filter-search { grid-column: 1; }
  .history-filters .filter-submit { width: 100%; }
  .entry-topline { gap: 8px; }
  .entry-topline h2 { font-size: 19px; }
  .entry-subtitle { font-size: 16px; }
  .entry-facts, .location-facts { gap: 7px 12px; font-size: 16px; }
  .unit-pill { padding: 6px 8px; font-size: 16px; }
  .entry-actions { gap: 6px; }
  .entry-actions .quiet-button { min-height: 48px; padding: 0 10px; font-size: 16px; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .catalogue-photo { height: 190px; }
  .stats-row { align-items: flex-start; flex-direction: column; gap: 1px; }
  .stats-row small { white-space: normal; }
  .user-create { padding: 17px; }
  .user-create-form { grid-template-columns: 1fr; gap: 12px; }
  .user-create-form .primary-button { width: 100%; }
  .user-card { padding: 16px; }
  .user-card-head { align-items: flex-start; }
  .user-controls { align-items: stretch; }
  .user-controls form { flex: 1 1 100%; }
  .user-controls form .quiet-button, .user-controls select { width: 100%; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .issued-password code { font-size: 16px; }
  .league-filters { align-items: stretch; flex-direction: column; }
  .league-filters .field, .league-filters .primary-button { width: 100%; }
  .league-section-head { align-items: flex-start; flex-direction: column; }
  .league-table-wrap { overflow: visible; border: 0; }
  .league-table, .league-table tbody { display: block; width: 100%; }
  .league-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .league-table tbody { display: grid; gap: 12px; }
  .league-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffefa; }
  .league-table tbody tr.is-you { background: #eff4e8; }
  .league-table td, .league-table th[scope="row"] { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 2px; border: 0; text-align: left; overflow-wrap: anywhere; }
  .league-table td::before, .league-table th[scope="row"]::before { content: attr(data-label); color: var(--muted); font-size: 14px; font-weight: 750; }
  .league-table th[scope="row"] { grid-column: 1 / -1; font-size: 17px; }
  .league-table td:last-child { grid-column: 1 / -1; border-top: 1px solid #e9e2d6; }
  .league-breakdown li { align-items: flex-start; flex-wrap: wrap; }
  .league-breakdown li span:last-child { text-align: left; }
  .personal-position { align-items: flex-start; }
  .join-prompt { align-items: stretch; flex-direction: column; }
  .join-prompt .primary-button { width: 100%; }
  .you-chip { margin: 4px 0 0; }
  .brand-collage {
    inset: 1vh 2vw; grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 2px; opacity: .32;
  }
  .brand-collage img { width: 96%; max-width: 180px; max-height: 15vh; }
  .brand-collage img:nth-child(14) { grid-column: 3; grid-row: 5; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 22px); }
  .brand small { font-size: 16px; }
  .account-link { font-size: 16px; }
  .user-actions .quiet-button { padding-inline: 6px; font-size: 16px; }
  .nav a { padding-inline: 3px; font-size: 16px; }
  .entry-topline { flex-direction: column; }
  .rating-field { padding-inline: 12px; }
}

.catalog-search-button { min-height: 56px; margin-top: 5px; border: 1px solid #d8d0c1; background: var(--paper-warm); font-size: 16px; }
.catalog-search-button[hidden] { display: none; }
.catalog-search-button:disabled { opacity: .65; cursor: wait; }
.catalog-admin-panel { margin: 20px 0; }
.catalog-status-panel { max-width: 860px; }
.offline-sync-panel { margin: 8px 0 4px; padding: 14px 16px; border: 1px solid #d9cfb8; border-radius: 16px; background: rgb(255 253 248 / 94%); box-shadow: 0 8px 24px rgb(64 48 25 / 6%); }
.nav .menu-sync-panel { flex: 0 0 100%; min-width: 0; }
.offline-sync-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.pending-count { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; border-radius: 11px; background: #f4ecd9; color: #4b493f; font-size: 16px; font-weight: 750; }
.offline-sync-topline .quiet-button { min-height: 48px; padding: 9px 14px; border: 1px solid #d8d0c1; border-radius: 11px; background: #fffefa; font-size: 16px; font-weight: 700; cursor: pointer; }
.offline-sync-topline .quiet-button:disabled { opacity: .55; cursor: not-allowed; }
.offline-sync-status { min-height: 1.45em; margin: 9px 0 0; color: var(--green-dark); font-size: 16px; font-weight: 650; }
.offline-sync-status.has-error { color: var(--red); }
.offline-entry-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.offline-entry-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e8e0d1; border-radius: 12px; background: #fffefa; }
.offline-entry-info { display: grid; min-width: 0; gap: 2px; }
.offline-entry-info > * { overflow-wrap: anywhere; }
.offline-entry-state { color: #725517; font-size: 16px; }
.offline-entry-state.has-error { color: var(--red); }
.offline-entry-state.is-synced { color: var(--green-dark); }
.offline-entry-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.offline-entry-actions .quiet-button { min-height: 48px; padding: 8px 11px; border: 1px solid #d8d0c1; border-radius: 10px; background: #faf6ec; font-size: 16px; cursor: pointer; }
.offline-entry-actions .quiet-button:disabled, .offline-sync-topline .quiet-button:disabled { opacity: .55; cursor: wait; }
.offline-shell { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.offline-shell-header { justify-content: space-between; margin-bottom: 25px; }
.offline-shell-header .network-indicator { margin-left: auto; }
.offline-shell-menu { z-index: 2; }
.offline-form-panel { padding: 20px; }
.offline-entry-form { gap: 19px; margin: 0; }
.offline-entry-form[hidden], .offline-sync-panel[hidden], [data-offline-unavailable][hidden] { display: none; }
.offline-file-input { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; margin: -1px !important; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.offline-entry-form .photo-action { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px dashed #bb9141; border-radius: 14px; color: #523f1b; background: #fff5d9; font-size: 18px; font-weight: 800; cursor: pointer; }
.offline-entry-form .offline-catalogue { display: grid; max-height: 230px; gap: 6px; overflow-y: auto; }
.offline-catalogue-option { min-height: 56px; padding: 10px 13px; border: 1px solid #ded4c0; border-radius: 11px; color: var(--ink); background: #fffefa; font-size: 16px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.offline-saved-venue-picker select, .offline-entry-form .field > input, .offline-entry-form .field > textarea, .offline-entry-form .field > select { min-height: 58px; font-size: 17px; }
.offline-venue-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.offline-venue-actions .quiet-button { min-height: 52px; padding: 9px 12px; border: 1px solid #d8d0c1; border-radius: 11px; background: #faf6ec; font-size: 16px; cursor: pointer; }
.offline-units { padding: 14px 17px; border: 1px solid #dfd0aa; border-radius: 14px; background: linear-gradient(135deg, #fbf1d5, #fffaf0); }
.offline-units output { color: #694b15; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 750; }
.offline-no-idb { margin: 14px 0; padding: 14px; border: 1px solid #e4c6bb; border-radius: 12px; color: var(--red); background: #fcf0eb; font-size: 16px; }
.offline-start-message { margin: 12px 0 18px; padding: 15px 17px; border: 1px solid #d9cfb8; border-radius: 13px; color: #45443d; background: #fffdf8; font-size: 16px; line-height: 1.5; }
.offline-start-message[hidden] { display: none; }
@media (max-width: 600px) {
  .offline-sync-panel { margin: 4px 0; padding: 12px; }
  .offline-sync-topline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offline-sync-topline > * { min-width: 0; justify-content: center; text-align: center; }
  .offline-sync-topline .pending-count { grid-column: 1 / -1; }
  .offline-sync-topline .quiet-button { width: 100%; }
  .offline-entry-row { align-items: stretch; flex-direction: column; }
  .offline-entry-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offline-entry-actions .quiet-button { min-width: 0; overflow-wrap: anywhere; }
  .offline-shell-header { display: grid; align-items: center; }
  .offline-shell .brand { min-width: 0; }
  .offline-shell .brand strong { white-space: nowrap; }
  .offline-shell .network-indicator { margin-left: 0; }
  .offline-venue-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .offline-venue-actions .quiet-button { width: 100%; }
  .offline-entry-form .photo-action { min-height: 64px; }
}
.catalog-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.catalog-status-grid > div { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf8; }
.catalog-status-grid dt { color: var(--muted); font-size: 16px; }
.catalog-status-grid dd { margin: 5px 0 0; font-size: 20px; font-weight: 750; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .catalog-status-grid { grid-template-columns: 1fr; }
  .catalog-admin-panel .section-head { align-items: stretch; flex-direction: column; }
  .catalog-admin-panel .section-head .quiet-button { min-height: 56px; width: 100%; }
}

/* v1.12.3: compact, keyboard-operable Activity cards and filter disclosure. */
/* v1.13.1: location suggestions are touch-friendly and never occupy form fields automatically. */
.activity-filter-disclosure { margin-bottom: 14px; }
.activity-filter-toggle { list-style: none; }
.activity-filter-toggle::-webkit-details-marker { display: none; }
.activity-filter-toggle > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.activity-filter-disclosure[open] > .activity-filter-toggle > svg { transform: rotate(180deg); }
.activity-filter-content { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; }
.activity-filter-content .history-filters { padding: 0; border: 0; }
.activity-filter-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
.activity-filter-actions .filter-submit, .activity-filter-actions .filter-reset { min-height: 56px; }
.activity-disclosure { min-width: 0; }
.activity-summary { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 2fr) auto 20px; grid-template-areas: "user drink time chevron"; align-items: center; gap: 12px; min-height: 66px; padding: 10px 15px; list-style: none; cursor: pointer; }
.activity-summary::-webkit-details-marker { display: none; }
.activity-summary::marker { content: ""; }
.activity-summary:focus-visible { outline: 3px solid rgb(182 106 44 / 50%); outline-offset: -3px; border-radius: 13px; }
.activity-user, .activity-drink { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-user { grid-area: user; color: var(--green-dark); font-weight: 750; }
.activity-drink { grid-area: drink; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; }
.activity-time { grid-area: time; color: var(--muted); font-size: 14px; white-space: nowrap; }
.activity-chevron { grid-area: chevron; width: 20px; height: 20px; fill: none; stroke: var(--green-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.activity-disclosure[open] > .activity-summary .activity-chevron { transform: rotate(180deg); }
.activity-expanded { min-width: 0; padding: 0 15px 16px; }
.history-list { display: grid; gap: 10px; }
.history-entry { margin: 0; padding: 0; overflow: hidden; border: 1px solid #e5ddcf; border-radius: 16px; background: rgb(255 253 248 / 96%); }
.history-entry:last-child { border-bottom: 1px solid #e5ddcf; }
.entry-photo-section { max-width: 520px; margin-top: 12px; }
.entry-photo-section .photo-count-label { display: inline-flex; margin-bottom: 8px; }
.entry-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 0; }
.entry-photo-button { width: 100%; min-width: 0; }
.entry-photo-button img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.entry-photo-button span { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .activity-filter-content { padding: 11px; }
  .activity-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-filter-actions > * { width: 100%; min-width: 0; padding-inline: 8px; }
  .activity-summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "user time" "drink chevron"; gap: 2px 8px; min-height: 68px; padding: 9px 11px; }
  .activity-drink { font-size: 17px; }
  .activity-time { font-size: 13px; }
  .activity-expanded { padding: 0 11px 13px; }
  .entry-photo-section { max-width: 100%; }
  .entry-photos { gap: 8px; }
  .hero-stamp { display: block; max-width: 100%; white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
}

/* v1.13.1 social clubhouse refresh */
.clubhouse-hero { padding: clamp(24px, 5vw, 48px); overflow: hidden; border-color: #d9c89d; background: linear-gradient(125deg, rgb(255 253 248 / 96%), rgb(250 242 219 / 96%)); }
.clubhouse-hero h1 { max-width: 17ch; margin-bottom: 10px; color: var(--green-dark); font-size: clamp(32px, 6vw, 54px); line-height: 1.08; }
.clubhouse-hero > p:not(.eyebrow) { max-width: 58ch; margin-bottom: 22px; color: #45483f; font-size: 18px; }
.clubhouse-log { min-height: 58px; padding-inline: 22px; font-size: 17px; }
.clubhouse-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 18px; }
.clubhouse-card { position: relative; display: grid; min-height: 215px; align-content: start; gap: 8px; padding: clamp(20px, 3.5vw, 30px); overflow: hidden; border: 1px solid #d9d0bf; border-radius: 21px; color: var(--ink); background: rgb(255 253 248 / 96%); box-shadow: 0 12px 30px rgb(64 48 25 / 8%); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.clubhouse-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgb(64 48 25 / 13%); }
.clubhouse-card:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.clubhouse-card > strong { color: var(--green-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 4vw, 32px); }
.clubhouse-card > span:not(.clubhouse-icon):not(.clubhouse-arrow):not(.eyebrow) { max-width: 36ch; color: #4f5148; font-size: 16px; }
.clubhouse-icon { position: absolute; top: 20px; right: 22px; font-size: 31px; }
.clubhouse-feed { border-top: 5px solid var(--burgundy); }
.clubhouse-league { border-top: 5px solid var(--gold-dark); }
.clubhouse-arrow { position: absolute; right: 22px; bottom: 17px; color: var(--green); font-size: 26px; }
.clubhouse-secondary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.clubhouse-secondary a { display: flex; min-width: 0; min-height: 56px; align-items: center; justify-content: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 14px; color: var(--green-dark); background: rgb(255 253 248 / 95%); font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.clubhouse-install { margin: 16px 2px 0; text-align: right; }
.policy-panel { max-width: 850px; padding: clamp(20px, 4vw, 34px); }
.policy-panel h2 { margin: 22px 0 8px; color: var(--green-dark); }
.policy-panel h2:first-child { margin-top: 0; }
.policy-panel p { max-width: 72ch; font-size: 16px; }
.policy-panel a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.comments-section { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.comments-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--green-dark); font-size: 17px; }
.comments-section h3 span { display: inline-grid; min-width: 25px; min-height: 25px; place-items: center; padding: 0 6px; border-radius: 99px; color: var(--green-dark); background: #e8eee3; font-size: 14px; }
.comment-list { display: grid; gap: 8px; margin: 0 0 11px; padding: 0; list-style: none; }
.comment-card { min-width: 0; padding: 10px 12px; border: 1px solid #e8e1d3; border-radius: 12px; background: #fffefa; }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; color: var(--muted); font-size: 14px; }
.comment-meta strong { color: var(--green-dark); font-size: 15px; }
.comment-card p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-card form { margin-top: 5px; text-align: right; }
.comment-card form button { min-height: 40px; }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.comment-form textarea { min-height: 52px; max-height: 140px; padding: 10px 12px; border: 1px solid #d8d0c1; border-radius: 12px; font: inherit; font-size: 16px; resize: vertical; }
.comment-form button { min-height: 52px; }
.catalogue-merge { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.catalogue-merge summary { min-height: 44px; color: var(--burgundy); font-weight: 750; cursor: pointer; }
.catalogue-merge form { display: grid; gap: 9px; padding: 8px 0; }
.catalogue-merge .consent-row { align-items: center; }
.catalogue-merge .consent-row input { flex: 0 0 24px; }
.preset-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.preset-row > span { display: contents; }
.preset-button { display: grid; min-width: 0; min-height: 62px; align-content: center; justify-items: center; padding: 6px 5px; text-align: center; overflow-wrap: anywhere; }
.preset-button small { font-size: 13px; line-height: 1.2; }
.venue-card { min-width: 0; }
.venue-card .entry-topline { align-items: flex-start; flex-wrap: wrap; }
.venue-card-title { min-width: 0; flex: 1 1 240px; }
.venue-card-title h2 { overflow-wrap: anywhere; }
.venue-card-stats { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.venue-card-actions { gap: 8px; }
.venue-card-actions a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.nav-log-action { color: #fffdf8 !important; background: var(--burgundy) !important; }
.nav .menu-sync-details { flex: 0 0 100%; min-width: 0; margin-top: 3px; }
.menu-sync-details > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 12px; border: 1px solid #d6cbb8; border-radius: 12px; color: var(--green-dark); background: rgb(255 253 248 / 96%); font-size: 14px; font-weight: 750; cursor: pointer; list-style: none; }
.menu-sync-details > summary::-webkit-details-marker { display: none; }
.menu-sync-details > summary::after { content: "⌄"; margin-left: auto; }
.menu-sync-details[open] > summary::after { content: "⌃"; }
.menu-sync-details .pending-count { min-width: 22px; margin-right: auto; color: var(--burgundy); font-size: 14px; text-align: left; }
.menu-sync-panel { margin-top: 8px; }
.leaflet-marker-icon.venue-map-pin { width: 48px; height: 48px; border-width: 4px; touch-action: manipulation; pointer-events: auto; }
.venue-map-pin::before { width: 13px; height: 13px; pointer-events: none; }
.leaflet-marker-icon.venue-map-pin.is-selected { box-shadow: 0 0 0 4px #fffdf5, 0 3px 13px rgb(0 0 0 / 45%); }
.map-place-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 220px; overflow: auto; margin-top: 8px; }
.map-place-results:empty { display: none; }
.map-place-option { display: grid; min-width: 0; min-height: 58px; align-content: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fffefa; text-align: left; cursor: pointer; touch-action: manipulation; }
.map-place-option[aria-selected="true"] { border: 2px solid var(--gold-dark); background: #fff5d9; }
.map-place-option strong, .map-place-option small { min-width: 0; overflow-wrap: anywhere; }
.map-place-option small { color: var(--muted); font-size: 14px; }
.map-selected-place { scroll-margin: 12px; }
.datetime-fieldset { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; box-sizing: border-box; }
.datetime-fieldset > legend { width: 100%; margin-bottom: 5px; padding: 0; }
.datetime-fields { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; box-sizing: border-box; }
.datetime-fields > .field { width: 100%; min-width: 0; max-width: 100%; }
.datetime-fields input { display: block; width: 100%; min-width: 0; max-width: 100%; padding-inline: 9px; box-sizing: border-box; font-size: 16px; }
.selected-venue-row[hidden] { display: none !important; }
.venue-autocomplete[hidden] { display: none !important; }
@media (max-width: 360px) {
  .datetime-fields { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .map-launch-row { grid-template-columns: minmax(0, 1fr); }
}
.photo-count { min-height: 24px; margin: 0; }
@media (max-width: 760px) {
  .nav .menu-sync-details { grid-column: 1 / -1; }
  .clubhouse-primary { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .clubhouse-card { min-height: 180px; }
  .clubhouse-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .clubhouse-secondary a { justify-content: flex-start; min-height: 54px; }
  .clubhouse-install { text-align: left; }
  .preset-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .preset-button { min-height: 58px; }
  .comment-form { grid-template-columns: minmax(0, 1fr); }
  .comment-form button { width: 100%; }
  .map-place-results { grid-template-columns: minmax(0, 1fr); max-height: 200px; }
  .nearby-venue-option { gap: 5px; padding: 10px; }
  .nearby-venue-actions button { width: 100%; }
  .venue-card-stats { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .clubhouse-card { transition: none; }
  .clubhouse-card:hover { transform: none; }
}
