/* Club Wyndham staff portal. Brand palette (Travel + Leisure Co.): Indigo and Azure lead, Arctic accents,
   Aquamarine / Yellow / Orange only for status. Layout language follows the Discovery by Wyndham site:
   serif display headings with an italic accent, uppercase eyebrows, pill buttons, 16px cards. */
:root {
  --indigo: #06038d;
  --indigo-hover: #0e0bb3;
  --azure: #0072cf;
  --arctic: #5acede;
  --mint: #65d2c3;
  --aqua: #00b2a9;
  --yellow: #ffea79;
  --orange: #ed5c29;

  --bg: #f4f7fc;
  --surface: #ffffff;
  --tint: #edf3fc;
  --tint-arctic: #e7f8fb;
  --ink: #0b1238;
  --ink-2: #3b4569;
  --ink-3: #5c6687;
  --line: #dde5f2;
  --line-strong: #c2cee4;

  --ok-bg: #dcf5f3;
  --ok-ink: #00726c;
  --warn-bg: #ffeb85;
  --warn-ink: #4f3d00;
  --bad-bg: #fde6dd;
  --bad-ink: #ad3610;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(6, 3, 141, .05), 0 6px 20px rgba(6, 3, 141, .06);
  --shadow-2: 0 22px 54px rgba(6, 3, 141, .14);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azure); }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--arctic); outline-offset: 2px; }

.page-app, .page-message { display: flex; flex-direction: column; min-height: 100vh; }
.page-app > main, .page-message > main { flex: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }

/* Type */
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--azure); }
.display-sm { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.display-xs { font-size: 22px; line-height: 1.2; }
.eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--azure);
}
.eyebrow-light { color: var(--arctic); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(6, 3, 141, .22); }
.btn-primary:hover { background: var(--indigo-hover); }
.btn-outline { min-height: 42px; padding: 0 20px; background: transparent; border-color: var(--line-strong); color: var(--ink); font-size: 15px; }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn.is-busy .btn-arrow { display: none; }
.btn.is-busy::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--indigo);
  cursor: pointer; transition: border-color .2s, transform .4s var(--ease);
}
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon:hover { border-color: var(--indigo); }
.btn-icon.is-spinning { transform: rotate(360deg); }
.link-button { border: 0; background: none; padding: 4px 2px; color: var(--azure); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.field { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.hint { margin: -2px 0 8px; font-size: 14px; color: var(--ink-3); }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 40px; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235c6687' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="date"]:focus, select:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0, 114, 207, .16); }
[aria-invalid="true"] { border-color: var(--bad-ink) !important; }
input[aria-invalid="true"] { border-color: var(--orange); }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 78px; }
.input-action {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  border: 0; border-radius: 999px; background: var(--tint); color: var(--indigo);
  padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.form-result { min-height: 0; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.form-result:empty { display: none; }
.form-result.is-error, .form-result.is-ok, .form-result.is-busy { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); }
.form-result.is-error { background: var(--bad-bg); color: var(--bad-ink); }
.form-result.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.form-result.is-busy { background: var(--tint); color: var(--ink-2); }
.form-result.is-error::before, .form-result.is-ok::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: currentColor; border-radius: 50%;
  -webkit-mask: var(--icon) center / 18px no-repeat; mask: var(--icon) center / 18px no-repeat;
}
.form-result.is-error::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1 5h2v7h-2V7Zm0 9h2v2h-2v-2Z'/%3E%3C/svg%3E"); }
.form-result.is-ok::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E"); }
.alert { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
.alert-info { background: var(--tint-arctic); border-left: 4px solid var(--azure); color: var(--ink-2); }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: clamp(20px, 3vw, 32px); }
.panel-raised { position: relative; margin-top: -88px; box-shadow: var(--shadow-2); }

/* Header */
.utility-bar { background: var(--indigo); color: #c9d2ff; font-size: 13.5px; }
.utility-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.utility-user strong { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand img { width: auto; height: 42px; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { position: relative; padding: 6px 0; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--indigo); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--arctic); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 0 calc(88px + clamp(40px, 5vw, 64px));
  color: #fff;
  background:
    radial-gradient(60% 90% at 88% 10%, rgba(90, 206, 222, .38), transparent 60%),
    radial-gradient(50% 80% at 10% 110%, rgba(0, 114, 207, .55), transparent 65%),
    linear-gradient(120deg, #06038d 0%, #0a1aa6 52%, #0b4fc0 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 120%;
  background: repeating-radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .display em { color: var(--arctic); }
.hero-lede { max-width: 560px; margin-top: 18px; font-size: 18px; color: #dfe6ff; }

/* Search */
.search-panel { z-index: 2; }
.search-form label { font-size: 15px; }
.search-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 10px; }
.search-input { position: relative; flex: 1; }
.search-input svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-input input { min-height: 60px; padding-left: 52px; font-size: 21px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.search-input input::placeholder { font-weight: 400; letter-spacing: .02em; color: #9aa4c0; }
.btn-search { min-height: 60px; padding: 0 30px; }
.search-form .hint { margin: 0; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.recent[hidden] { display: none; }
.recent-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--tint);
  font-size: 14px; cursor: pointer; transition: border-color .15s;
}
.chip:hover { border-color: var(--azure); }
.chip[aria-pressed="true"] { border-color: var(--indigo); background: #fff; }
.chip-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip-name { color: var(--ink-3); }

/* Results */
.results { margin-top: 28px; }
.empty-state {
  display: flex; gap: 20px; align-items: center; padding: 28px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, .6);
}
.empty-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint-arctic); color: var(--azure); }
.empty-icon svg { width: 34px; height: 34px; }
.empty-state p { margin-top: 6px; max-width: 640px; }

.member-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: clamp(20px, 3vw, 32px); animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.member-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.member-head .eyebrow { margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.member-also { margin-top: 6px; color: var(--ink-3); }
.member-also:empty { display: none; }
.member-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; background: var(--tint); color: var(--ink-2); }
.badge:empty { display: none; }
.badge-tier { background: #d3f2f7; color: var(--indigo); box-shadow: inset 0 0 0 1.5px var(--arctic); }
.badge[data-tone="ok"] { background: var(--ok-bg); color: var(--ok-ink); }
.badge[data-tone="warn"] { background: var(--warn-bg); color: var(--warn-ink); }
.badge[data-tone="bad"] { background: var(--bad-bg); color: var(--bad-ink); }
.badge[data-tone]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 120px; padding: 18px; border-radius: var(--radius-sm); background: var(--tint); }
.stat-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--indigo); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-feature { color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(90, 206, 222, .45), transparent 60%), linear-gradient(135deg, var(--indigo), #0a2bb3); }
.stat-feature .stat-label { color: #bfefff; }
.stat-feature .stat-value { color: #fff; }

.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; margin: 24px 0 0; padding: 0; }
.detail-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
.detail-list dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.detail-list dd { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.copy { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; font-size: 12px; font-weight: 700; color: var(--azure); cursor: pointer; }
.copy:hover { border-color: var(--azure); }
.copy.is-done { color: var(--ok-ink); border-color: var(--ok-ink); }
.member-foot { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }

.notice-panel h2 { margin-bottom: 10px; }
.notice-panel p:last-child { max-width: 680px; color: var(--ink-2); }
.session-note { margin: 28px 0 56px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* Footer */
.site-footer { background: var(--indigo); color: #c9d2ff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 28px; font-size: 14px; }
.footer-inner img { width: auto; height: 34px; }
.footer-small { margin-left: auto; color: #9ea9e6; font-size: 13px; }

/* Sign-in */
.page-login { background: var(--bg); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand {
  position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; color: #fff;
  background:
    radial-gradient(70% 60% at 85% 15%, rgba(90, 206, 222, .42), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(0, 114, 207, .6), transparent 70%),
    linear-gradient(150deg, #06038d 0%, #0a1aa6 55%, #0b4fc0 100%);
}
.login-brand::before {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 90%; aspect-ratio: 1;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px);
  pointer-events: none;
}
.login-brand-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; height: 100%; padding: clamp(32px, 5vw, 64px); }
.login-logo { width: 210px; height: auto; }
.login-brand-copy { margin-block: auto; }
.login-brand .display { max-width: 620px; font-size: clamp(40px, 4.6vw, 64px); }
.login-brand .display em { color: var(--arctic); }
.login-lede { max-width: 520px; margin-top: 18px; font-size: 18px; color: #dfe6ff; }
.login-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22%; fill: rgba(90, 206, 222, .13); }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: clamp(24px, 5vw, 64px) var(--gutter); }
.login-card .field { margin-bottom: 16px; }
.login-card { width: 100%; max-width: 460px; padding: clamp(24px, 3.4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); }
.login-card-logo { display: none; width: 170px; height: auto; margin-bottom: 24px; }
.login-card .display-sm { margin-bottom: 8px; }
.login-card > .muted { margin-bottom: 24px; }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.captcha-img { width: 220px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--tint-arctic); }
#captcha { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }
.login-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* Message pages */
.message-shell { display: grid; place-items: center; min-height: 70vh; padding: 48px var(--gutter); }
.page-message .message-shell { min-height: 100vh; }
.message-card { max-width: 560px; margin: 0; text-align: left; }
.message-card .display-sm { margin-bottom: 10px; }
.message-card .btn { margin-top: 24px; }
.message-logo { width: 160px; height: auto; margin-bottom: 28px; }
main:has(.message-card) { min-height: 60vh; }

/* Responsive */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-feature { grid-column: span 3; min-height: 0; flex-direction: row; align-items: center; }
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { position: relative; height: auto; min-height: 0; }
  .login-brand-inner { gap: 20px; padding-bottom: 72px; }
  .login-brand .display { font-size: clamp(32px, 7vw, 44px); }
  .login-lede { font-size: 16px; }
  .login-panel { margin-top: -48px; padding-top: 0; justify-content: flex-start; }
  .login-card { position: relative; z-index: 1; }
}
@media (max-width: 720px) {
  .utility-inner > span:first-child { display: none; }
  .utility-inner { justify-content: flex-end; }
  .header-inner { gap: 16px; min-height: 64px; }
  .brand img { height: 34px; }
  .main-nav { display: none; }
  .signout { margin-left: auto; }
  .search-row { flex-direction: column; }
  .btn-search { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-feature { grid-column: span 2; }
  .stat { min-height: 96px; padding: 16px; }
  .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .detail-list dd { flex-wrap: wrap; font-size: 16px; }
  .empty-state { flex-direction: column; align-items: flex-start; }
  .footer-small { margin-left: 0; }
  .captcha-img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 220 / 64; }
}
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-feature { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .utility-bar, .site-header, .site-footer, .hero, .search-panel, .session-note, .copy { display: none !important; }
  body { background: #fff; }
  .member-card { box-shadow: none; border: 1px solid #999; }
  .stat-feature { color: var(--ink); background: var(--tint); }
  .stat-feature .stat-value, .stat-feature .stat-label { color: var(--ink); }
}

/* hidden wins over display rules such as .btn's inline-flex */
[hidden] { display: none !important; }

/* Small buttons and the tone without a colour */
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn-danger { background: var(--surface); border-color: var(--bad-ink); color: var(--bad-ink); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-danger[data-armed="1"] { background: var(--bad-ink); color: #fff; }
.btn-on-dark { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-on-dark:hover { color: #fff; border-color: #fff; }
.badge[data-tone="neutral"] { background: var(--tint); color: var(--ink-2); }

/* Recording an exchange from the owner search */
.booking { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.booking-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.booking-head .eyebrow { margin-bottom: 6px; }
.booking-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; }
.booking-form { margin-top: 20px; }
.booking-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.booking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.receipt { margin-top: 18px; }
.receipt-card .form-result { margin-top: 0; }
.detail-list-compact { margin-top: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-list-compact dd { display: block; font-size: 15.5px; }
.receipt-links { margin-top: 12px; font-size: 14.5px; font-weight: 600; }

/* Exchanges list */
.filter-panel { z-index: 2; }
.filter-grid { display: flex; flex-wrap: wrap; gap: 0 14px; }
/* fields keep a sensible width when they wrap, instead of one stretching across the panel */
.filter-grid .field { flex: 1 1 140px; max-width: 220px; margin-bottom: 14px; }
.filter-grid .field-wide { flex: 2 1 240px; max-width: 340px; }
.filter-grid label { font-size: 14px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.exchange-list { display: grid; gap: 12px; }
.exchange {
  display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 22px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.exchange > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 15px; }
.exchange-dates { font-weight: 700; }
.exchange-id { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.exchange-member { font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.exchange-status { align-items: flex-start; }
.exchange-trail { font-size: 13px; }
.exchange-actions { align-items: flex-start; }
.exchange-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.exchange-buttons:empty { display: none; }
.exchange-actions .form-result { margin-top: 4px; font-size: 14px; }
.exchange-list .empty-state { display: block; color: var(--ink-3); }

/* Exchange receipt */
.receipt-page { padding: 40px 0 64px; }
.receipt-panel { max-width: 900px; margin: 0 auto; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.receipt-tools { display: flex; align-items: center; gap: 12px; }
.receipt-trail { margin: 24px 0 0; padding-left: 20px; color: var(--ink-2); }
.receipt-trail li { margin-bottom: 6px; }
.receipt-back { margin-top: 20px; font-weight: 600; }

/* Public grocery price list */
.page-public { display: flex; flex-direction: column; min-height: 100vh; }
.public-header { background: var(--indigo); }
.public-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.public-header img { width: auto; height: 40px; }
.hero-short { padding-bottom: 120px; }
.grocery-grid { position: relative; z-index: 2; margin-top: -88px; columns: 3 300px; column-gap: 16px; }
.grocery-category { break-inside: avoid; margin-bottom: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.grocery-category h2 { margin: 0 0 10px; font: 500 22px/1.2 var(--display); color: var(--indigo); }
.grocery-category table { width: 100%; border-collapse: collapse; font-size: 15px; }
.grocery-category th { padding: 6px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--line); }
.grocery-category td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.grocery-category tr:last-child td { border-bottom: 0; }
.grocery-category .num { padding-left: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .booking-grid, .detail-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exchange { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); }
  .exchange-status, .exchange-actions { grid-column: span 1; }
}
@media (max-width: 720px) {
  /* the menu moves under the logo instead of disappearing */
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .main-nav { display: flex; order: 3; width: 100%; margin-left: 0; gap: 24px; padding-bottom: 10px; }
  .booking-grid, .detail-list-compact { grid-template-columns: 1fr; }
  .filter-grid .field { flex: 1 1 calc(50% - 7px); max-width: none; }
  .filter-grid .field-wide { flex-basis: 100%; }
  .exchange { grid-template-columns: 1fr; padding: 16px; }
  .exchange-when { flex-direction: row !important; justify-content: space-between; }
  .public-header img { height: 32px; }
  .hero-short { padding-bottom: 104px; }
}
@media print {
  .page-public .public-header, .page-public .hero, .page-public .session-note, [data-print], .receipt-back { display: none !important; }
  .grocery-grid { columns: 2; margin-top: 0; }
  .grocery-category, .receipt-panel { box-shadow: none; border: 1px solid #999; }
  .receipt-page { padding: 0; }
}
