/* Gift Registry — shared foundations, components and responsive page layouts. */
:root {
  --ink: #243c32;
  --muted: #64716a;
  --paper: #fafbf8;
  --surface: #fff;
  --moss: #305d48;
  --sage: #e9f0e9;
  --line: #e0e7df;
  --danger: #a6423a;
  --radius: 20px;
  --page-width: 1080px;
  --page-gutter: 40px;
  --shadow: 0 4px 24px #243c3205;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 0; color: var(--ink); background: var(--paper); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--moss); text-underline-offset: 4px; }
a:hover { color: #193f2d; }
button, input, textarea, select { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
form, figure { margin: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid #8eaf9c; outline-offset: 4px; }
::selection { background: #d8e8da; }
.eyebrow, .nav-section-label { color: var(--moss); font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { margin: 0 0 18px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 12px 20px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.text-link, .public-backlink, .admin-backlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 550; text-decoration: none; }
.text-link { color: var(--moss); }
.public-backlink:hover, .admin-backlink:hover, .text-link:hover { text-decoration: underline; }
.public-backlink, .admin-backlink { margin-bottom: 16px; }

/* One button system for public and organizer pages. */
.btn, .admin-icon-button, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; border: 1px solid transparent; border-radius: 12px;
  padding: 11px 20px; font-family: var(--font); font-size: 14px; line-height: 1.45;
  font-weight: 600; text-align: center; text-decoration: none; white-space: normal;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* Bootstrap reads these variables for pressed, focused and disabled states too. */
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--moss); --bs-btn-border-color: var(--moss);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #244a38; --bs-btn-hover-border-color: #244a38;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1f402f; --bs-btn-active-border-color: #1f402f;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--moss); --bs-btn-disabled-border-color: var(--moss);
  --bs-btn-focus-shadow-rgb: 142, 175, 156;
  color: var(--bs-btn-color); background: var(--bs-btn-bg); border-color: var(--bs-btn-border-color);
  box-shadow: 0 2px 4px #243c3210;
}
.btn-outline-primary, .btn-outline-secondary {
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: #d8e1d7;
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--sage); --bs-btn-hover-border-color: #b9cdbc;
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #dce8dd; --bs-btn-active-border-color: #a9c1ae;
  --bs-btn-disabled-color: var(--muted); --bs-btn-disabled-bg: #fff; --bs-btn-disabled-border-color: var(--line);
  --bs-btn-focus-shadow-rgb: 142, 175, 156;
  color: var(--bs-btn-color); background: var(--bs-btn-bg); border-color: var(--bs-btn-border-color);
}
.btn { --bs-btn-focus-box-shadow: 0 0 0 4px #c9dcd0; }
.btn:focus:not(:focus-visible) { box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; box-shadow: var(--bs-btn-focus-box-shadow); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: default; transform: none; }
.btn-sm { min-height: 44px; padding: 9px 14px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 13px 22px; font-size: 15px; }
.btn-link { color: var(--muted); text-decoration: underline; }
.btn-danger {
  color: #fff; background: var(--danger); border-color: var(--danger);
  box-shadow: 0 2px 4px #a6423a20;
}
.btn-danger:hover { color: #fff; background: #87362f; border-color: #87362f; }
.btn-danger:focus-visible { outline-color: var(--danger); box-shadow: 0 0 0 4px #efd2ce; }

/* Shared navigation. */
.site-header { border-bottom: 1px solid var(--line); background: #fafbf8ed; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: min(calc(100% - 2 * var(--page-gutter)), var(--page-width)); min-height: 88px; margin: auto; padding: 16px 0; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.055em; font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; }
.guest-navigation, .guest-tabs { display: flex; align-items: center; gap: 8px; }
.guest-navigation { gap: 24px; }
.guest-tabs a { min-height: 44px; padding: 11px 15px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 550; }
.guest-tabs a:hover { background: #edf2eb; color: var(--ink); }
.guest-tabs a[aria-current="page"] { background: var(--sage); color: var(--ink); }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; color: var(--ink); font-size: 13px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e3ebe2; font-weight: 600; }
.account-menu-panel { position: absolute; z-index: 30; right: 0; top: calc(100% + 12px); width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 40px #243c3218; }
.account-menu-panel a, .account-menu-panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; text-align: left; text-decoration: none; }
.account-menu-panel a:hover, .account-menu-panel button:hover { background: var(--sage); }
.menu-identity { margin: 0 4px 6px; padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.site-footer { width: min(calc(100% - 2 * var(--page-gutter)), var(--page-width)); margin: 40px auto 0; padding: 24px 0 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.site-footer span:first-child { font-weight: 600; }

/* Homepage. The example is decorative content, never a real event. */
.home-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; width: min(100% - 80px, 1080px); margin: 0 auto; padding: 96px 0 88px; }
.home-hero h1 { font-size: clamp(46px, 5.6vw, 78px); }
.home-hero .eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.eyebrow-dot, .preview-dot { width: 6px; height: 6px; border-radius: 50%; background: #749d73; flex-shrink: 0; }
.home-intro { max-width: 460px; margin: 28px 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-actions .btn { min-height: 52px; padding-inline: 24px; }
.home-reassurance { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.home-preview { position: relative; background: #eef2e9; border: 1px solid #e1e7da; border-radius: 28px; padding: 24px; transform: rotate(2deg); box-shadow: 0 28px 60px #324b3710; }
.preview-caption { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 20px; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: #798474; }
.preview-invitation { background: #fffefa; border-radius: 16px; padding: 32px 28px 20px; text-align: center; border: 1px solid #e6e9de; }
.preview-occasion { font-size: 9px; color: #8d967f; letter-spacing: .18em; }
.preview-invitation h2 { max-width: 220px; margin: 20px auto 14px; font-size: 36px; }
.preview-invitation p { font-size: 12px; color: var(--muted); }
.preview-date { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.preview-date span { font-size: 22px; color: #8d967f; }
.preview-gift { display: flex; align-items: center; gap: 12px; margin: 14px -10px 14px 10px; padding: 16px; border: 1px solid #e3e7dc; border-radius: 14px; background: white; box-shadow: 0 8px 20px #243c3208; transform: rotate(-3deg); }
.preview-gift-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #f1eade; color: #8b7853; }
.preview-gift strong, .preview-gift div > span { display: block; font-size: 12px; }
.preview-gift div > span { margin-top: 3px; font-size: 10px; color: var(--muted); }
.preview-check { margin-left: auto; color: var(--moss); background: var(--sage); border-radius: 50%; width: 22px; height: 22px; text-align: center; }
.preview-contribution { padding: 18px; border-radius: 14px; background: #fffefa; }
.preview-contribution > div { display: flex; justify-content: space-between; font-size: 11px; }
.preview-contribution p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.preview-progress { display: block; height: 5px; margin-top: 12px; background: #edf1e7; border-radius: 10px; }
.preview-progress span { display: block; width: 60%; height: 100%; border-radius: inherit; background: #88a67b; }
.home-ways { max-width: 1080px; width: calc(100% - 80px); margin: 0 auto; padding: 48px 0; border-top: 1px solid var(--line); }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.home-section-heading h2 { max-width: 470px; font-size: 32px; }
.home-ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.way-number { display: inline-block; margin: 0 0 20px; font-size: 11px; font-weight: 600; color: #8a9b8b; }
.home-ways-grid h3 { font-size: 17px; }
.home-ways-grid p { color: var(--muted); font-size: 14px; }
.home-guest-note { display: flex; justify-content: center; align-items: center; gap: 16px; max-width: 1080px; width: calc(100% - 80px); margin: 16px auto 56px; padding: 24px; border-radius: 16px; background: var(--sage); font-size: 13px; }
.home-guest-note p { margin: 0; }
.home-guest-note strong { font-weight: 550; }

/* Event invitation and guest login. */
.event-invitation { max-width: 760px; margin: 24px auto 0; text-align: center; }
.event-emblem { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 28px; background: var(--sage); color: #68866c; border-radius: 20px; font-size: 34px; }
.event-landing h1 { font-size: clamp(38px, 5vw, 64px); }
.event-host { margin: 22px 0; color: var(--moss); font-size: 15px; }
.event-welcome { max-width: 560px; margin: 24px auto; white-space: pre-line; color: var(--muted); font-size: 16px; line-height: 1.8; }
.event-details { display: flex; justify-content: center; gap: 40px; margin: 32px 0; }
.event-details:empty { display: none; }
.event-details p { flex: 1; margin: 0; max-width: 260px; font-size: 14px; }
.event-details span { display: block; margin-bottom: 8px; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.event-primary { margin-top: 12px; min-height: 52px; padding: 14px 24px; }
.event-login-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.event-closed { padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.guest-access-card { width: min(100%, 540px); margin: 0 auto; }
.guest-access-card, .admin-auth-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.guest-access h1 { font-size: 36px; line-height: 1.14; }
.auth-emblem { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; background: var(--sage); border-radius: 14px; color: var(--moss); }
.guest-access-intro { margin: 20px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.guest-access-form, .admin-form { display: grid; gap: 20px; }
.guest-access-privacy { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 4px 0 0; }
.guest-access-help { text-align: center; margin-top: 24px; font-size: 12px; }
.guest-access-help a { color: var(--muted); }
.development-mail { margin: 24px 0; padding: 24px; border: 1px solid #c7dacb; background: #f0f6ee; border-radius: 14px; }
.development-mail h2 { font: 600 18px/1.3 var(--font); letter-spacing: -.02em; margin: 12px 0; }
.development-mail p { color: var(--muted); font-size: 13px; }
.guest-access-state { margin-top: 28px; padding: 24px; border-radius: 16px; background: var(--sage); }
#verification-request { margin-top: 24px; }
.guest-access-state h2 { font-size: 26px; }

/* Forms share dimensions, validation, rhythm and focus treatment. */
.admin-field, .guest-access-field { display: grid; gap: 8px; }
.admin-field label, .admin-form label, .guest-access-field label, .gift-giving-form label, .share-panel > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.admin-form label { margin-bottom: 8px; }
.admin-field input, .admin-field select, .admin-field textarea, .admin-form input, .guest-access-field input, .gift-giving-form input, .gift-giving-form textarea, .share-controls input {
  width: 100%; min-width: 0; min-height: 48px; border: 1px solid #d8e0d7; border-radius: 10px;
  padding: 12px 14px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.45;
  transition: border-color .15s, box-shadow .15s;
}
input:autofill { box-shadow: 0 0 0 1000px #f0f5ed inset; -webkit-text-fill-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #909b92; opacity: 1; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus, .admin-form input:focus, .guest-access-field input:focus, .gift-giving-form input:focus, .gift-giving-form textarea:focus { outline: none; border-color: #71947c; box-shadow: 0 0 0 3px #e5eee5; }
.admin-field textarea, .gift-giving-form textarea { min-height: 112px; resize: vertical; }
.admin-field input[type="file"] { padding: 9px; font-size: 13px; }
.admin-field input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: 6px; background: var(--sage); color: var(--ink); padding: 6px 10px; }
.admin-field-help, .admin-field-note, .admin-form-help { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.field-validation-error, .validation-summary-errors, .text-danger { color: var(--danger) !important; font-size: 12px; }
.field-validation-valid, .validation-summary-valid { display: none; }
.validation-summary-errors { padding: 16px; border: 1px solid #ebceca; background: #fff6f3; border-radius: 10px; }
.validation-summary-errors ul { padding-left: 18px; margin: 0; }
.input-validation-error { border-color: var(--danger) !important; }
.admin-check { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; }
.admin-check input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--moss); }
.admin-check label { font-size: 14px; line-height: 1.6; }
.admin-options { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; }
.admin-options legend { float: none; width: auto; padding: 0 8px; margin: 0; font-size: 12px; font-weight: 600; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }
.admin-rule { margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.admin-section-label { font-size: 14px; font-weight: 600; }

/* Organizer shell: persistent desktop navigation, explicit mobile disclosure. */
.admin-body { background: #f6f8f4; }
.organizer-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.organizer-sidebar { align-self: start; position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 30px 20px 20px; border-right: 1px solid var(--line); background: #fcfdfb; }
.organizer-brand-row .brand { font-size: 18px; margin-bottom: 36px; }
.organizer-nav { display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1; overflow-y: auto; }
.organizer-nav a, .organizer-nav button { display: flex; gap: 12px; align-items: center; min-height: 46px; padding: 12px 14px; width: 100%; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; }
.organizer-nav a:hover, .organizer-nav button:hover { color: var(--ink); background: #eff3ec; }
.organizer-nav a[aria-current="page"] { background: #e7eee4; color: #294e38; font-weight: 650; }
.nav-symbol { width: 20px; text-align: center; font-size: 24px; line-height: 20px; }
.nav-icon { flex-shrink: 0; }
.nav-section { display: grid; gap: 4px; }
.organizer-event-context { padding: 26px 14px 20px; margin-top: 12px; border-top: 1px solid var(--line); }
.organizer-event-context strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; margin: 10px 0; font-weight: 600; }
.nav-section-label { display: block; color: #879185; font-size: 9px; letter-spacing: .11em; }
.organizer-nav .nav-preview { justify-content: space-between; margin-top: 10px; font-size: 12px; }
.organizer-account { margin-top: auto; padding-top: 28px; }
.organizer-account > span { margin: 8px 14px; }
.organizer-account button { justify-content: space-between; }
.menu-toggle { display: none; }
.admin-content { min-width: 0; }
.admin-page { width: min(100%, 1250px); padding: 48px clamp(24px, 4vw, 64px) 80px; margin: 0 auto; }
.admin-page h1 { font: 600 clamp(28px, 3vw, 40px)/1.2 var(--font); letter-spacing: -.045em; }
.admin-page h2 { font: 600 20px/1.35 var(--font); letter-spacing: -.035em; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 32px; }
.admin-page-heading > div { min-width: 0; }
.admin-page-heading p { max-width: 520px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.admin-page-heading .eyebrow { color: var(--moss); margin: 0 0 12px; font-size: 10px; }
.admin-heading-actions { display: flex; flex-shrink: 0; gap: 10px; flex-wrap: wrap; }
.admin-overview-heading { align-items: flex-start; flex-direction: column; }

.admin-panel, .event-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

.admin-edit-form { display: grid; gap: 24px; padding: 32px; }
.admin-form-section-heading p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.admin-separated-section { margin-top: 28px; }
.admin-danger-zone { border-color: #e5c7c3; background: #fffafa; }
.admin-danger-zone h2 { color: var(--danger); }
.admin-notice, .message-box, .alert { border: 1px solid #d7e5d6; border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; background: #eef5eb; color: #3f6247; font-size: 14px; line-height: 1.6; }
.alert-danger, .alert-error, .message-box-error { background: #fff3ef; border-color: #e7cac4; color: var(--danger); }
.alert-warning, .message-box-warning { background: #fff9ed; border-color: #e8ddc4; color: #806139; }
.admin-sort-help { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.admin-sort-status { font-size: 12px; color: var(--moss); margin: 0 0 16px; }
.admin-sort-status:empty { display: none; }
.admin-empty-state, .event-empty { padding: 56px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-align: center; }
.admin-empty-state p, .event-empty p { max-width: 400px; margin: 12px auto 24px; color: var(--muted); font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.event-card { display: flex; align-items: flex-start; flex-direction: column; padding: 28px; transition: border-color .15s, box-shadow .15s; }
.event-card:hover { border-color: #b6cbb6; box-shadow: 0 8px 28px #243c3208; }
.event-card h2 { font: 400 28px/1.25 Georgia, serif; margin: 24px 0 12px; letter-spacing: -.035em; }
.event-card h2 a { color: var(--ink); text-decoration: none; }
.event-card > p { font-size: 13px; color: var(--muted); }
.event-card .btn { width: 100%; justify-content: space-between; margin-top: auto; }
.event-status, .admin-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 25px; border-radius: 8px; color: #4d6952; background: #ebf2e8; font-size: 10px; font-weight: 600; line-height: 1.5; }
.event-status::before { width: 5px; height: 5px; border-radius: 50%; content: ""; background: currentColor; }
.status-draft, .admin-status-draft { color: #897049; background: #f7f1e4; }
.status-closed, .admin-status-muted { color: #737d77; background: #edf0ec; }
.share-panel { margin-bottom: 24px; padding: 28px 32px; }
.share-panel h2 { margin-bottom: 8px; }
.share-panel p { max-width: 620px; color: var(--muted); font-size: 13px; }
.share-panel > label { margin-top: 24px; font-size: 12px; }
.share-controls { display: flex; gap: 10px; margin-top: 8px; }
.share-controls input { flex: 1; background: #f8faf6; font-size: 13px; }
.share-controls .btn { flex-shrink: 0; }
[data-copy-status] { margin-top: 12px; }
[data-copy-status]:empty { display: none; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat-grid article { display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.admin-stat-grid span { color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.admin-stat-grid strong { margin: 10px 0 16px; font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.admin-stat-grid a { margin-top: auto; font-size: 11px; text-decoration: none; }
.admin-stat-grid a:hover { text-decoration: underline; }
.admin-getting-started { display: flex; justify-content: space-between; gap: 32px; padding: 28px 32px; }
.admin-getting-started p { max-width: 480px; font-size: 13px; color: var(--muted); }
.admin-getting-started ol { flex-shrink: 0; font-size: 13px; line-height: 2.2; padding-left: 20px; margin: 0; }
.admin-minimal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; padding: 16px max(var(--page-gutter), calc((100% - var(--page-width)) / 2)); border-bottom: 1px solid var(--line); background: var(--paper); }

.admin-auth-card { width: min(100%, 540px); margin: 0 auto; }
.admin-auth-card h1 { font-size: 38px; }
.admin-auth-intro { margin: 20px 0 28px; color: var(--muted); font-size: 14px; }
.auth-switch { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.auth-switch a { font-weight: 600; }

/* Inventory and activity tables. Contained scrolling on intermediate widths. */
.admin-table-panel, .activity-section { overflow: hidden; }
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f9fbf7; color: #7b877c; font-size: 10px; font-weight: 550; text-align: left; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 20px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td strong { color: var(--ink); }
.admin-row-actions, .activity-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-row-actions a, .admin-row-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--moss); font: 550 12px var(--font); text-decoration: none; }
.admin-row-actions button[type="submit"] { color: var(--danger); }
.admin-row-actions .admin-icon-button { justify-content: center; color: var(--moss); }
.admin-row-actions :is(a,button):hover { background: #f3f6ef; }
.admin-drag-cell { width: 40px; }
.admin-drag-grip { cursor: grab; color: #a0ada0; }
.activity-section-heading, .admin-category-item-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.activity-section-heading h2, .admin-category-item-heading h2 { margin: 0; }
.activity-section-heading p, .admin-category-item-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.activity-section-count { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.activity-section-empty { padding: 32px; color: var(--muted); font-size: 14px; }
.item-activity-detail { display: block; margin-top: 6px; font-size: 12px; }
.activity-contact a { font-size: 12px; overflow-wrap: anywhere; }
.activity-status { color: var(--muted); font-size: 12px; }
.admin-category-item-sections { display: grid; gap: 24px; }
.admin-items-grid-shell { padding: 0 16px 16px; overflow-x: auto; }
.admin-items-grid-head, .admin-items-row { display: grid; grid-template-columns: 138px minmax(150px, 1.8fr) 82px 52px 86px 88px 78px 70px 110px; gap: 14px; align-items: center; min-width: 1100px; }
.admin-items-grid-head { padding: 16px 12px; color: #7b877c; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.admin-items-grid-head-spacer { visibility: hidden; }
.admin-items-row { padding: 16px 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-items-cell { min-width: 0; display: grid; gap: 4px; }
.admin-items-cell p, .admin-items-cell span { margin: 0; font-size: 12px; color: var(--muted); }
.admin-items-cell-name strong { font-size: 14px; font-weight: 600; }
.admin-items-cell-actions { display: flex; gap: 4px; }
.admin-icon-button { width: 42px; height: 44px; padding: 0; border-radius: 8px; border-color: var(--line); background: #fbfcf9; color: var(--moss); }
.admin-icon-button:hover { color: var(--ink); background: var(--sage); }
.admin-drag-button { cursor: grab; }
.admin-drag-button::before { content: "⠿"; color: #93a08f; font-size: 20px; }
.admin-icon-button.is-active { background: var(--sage); }
.admin-items-cell-availability { display: flex; gap: 8px; }
.admin-availability-icon { opacity: .3; }
.admin-availability-icon.is-available { opacity: 1; }
.is-dragging { opacity: .4; }
.admin-item-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.admin-item-settings-price-note, .admin-item-settings-quantity-note { font-size: 12px; color: var(--muted); }
.admin-item-photo-section { display: grid; gap: 16px; padding: 24px; border-radius: 14px; background: #f7f9f4; border: 1px solid var(--line); }
.admin-item-photo-editor { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.admin-item-photo-preview { display: block; width: 160px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.admin-item-photo-empty { display: grid; place-items: center; min-height: 112px; padding: 20px; border: 1px dashed #c8d4c3; border-radius: 10px; font-size: 12px; color: var(--muted); }
.admin-option-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.admin-option-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.admin-option-list a { overflow-wrap: anywhere; }

/* Wishlist and individual gifts. */
.catalogue, .instructions, .event-landing, .guest-access, .admin-auth, .utility-page {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-width)); margin: 0 auto; padding: 32px 0 72px;
}
.catalogue h1, .instructions h1, .utility-page h1 { font-size: clamp(34px, 4vw, 52px); }
.utility-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.utility-card p { max-width: 680px; color: var(--muted); margin-top: 24px; }
.utility-card > .eyebrow { margin-top: 0; color: var(--moss); }
.utility-card code { overflow-wrap: anywhere; color: var(--muted); }
.utility-card .btn, .guest-access-state + .btn { margin-top: 24px; }
.my-gifts-empty .btn { margin-top: 8px; }
.wishlist-header { margin: 0 0 48px; }
.wishlist-header h1 { font-size: clamp(34px, 4vw, 52px); }
.wishlist-header > p { color: var(--muted); margin: 20px 0 0; font-size: 15px; }
.catalogue-category + .catalogue-category { margin-top: 48px; }
.catalogue-category h2 { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 20px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gift-card { background: white; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .18s, transform .18s, border-color .18s; overflow: hidden; }
.gift-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #243c320b; border-color: #b7cbb5; }
.gift-card-link { display: flex; flex-direction: column; min-height: 256px; height: 100%; padding: 28px; text-decoration: none; color: var(--ink); }
.gift-card h3 { margin: 28px 0 14px; font: 400 26px/1.25 Georgia, serif; letter-spacing: -.035em; }
.gift-state { color: #6f896d; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.gift-price { font-size: 14px; font-weight: 600; }
.gift-availability { margin-top: auto; padding-top: 24px; }
.gift-options { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.gift-options li { border-radius: 6px; padding: 4px 8px; background: #f0f4eb; color: #64755e; font-size: 10px; }
.gift-reserved-indicator { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.gift-card-reserved { background: #f1f4ed; }
.catalogue-empty, .my-gifts-empty { padding: 48px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-align: center; }
.catalogue-empty h2, .my-gifts-empty h2 { font-size: 28px; }
.catalogue-empty p, .my-gifts-empty p { color: var(--muted); font-size: 14px; }

.gift-detail-heading { margin: 0 0 32px; }

.gift-detail-price { margin: 20px 0 0; color: var(--moss); font-size: 18px; font-weight: 550; }
.gift-detail-description { margin: 24px 0 0; color: var(--muted); max-width: 600px; white-space: pre-line; line-height: 1.8; }
.gift-detail-photo { margin: 24px 0 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.gift-detail-photo img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: white; }
.gift-detail-section, .gift-giving-options { margin-top: 40px; }
.gift-giving-options > p { max-width: 650px; color: var(--muted); font-size: 14px; }
.gift-giving-options h2, .gift-detail-section h2 { font-size: 28px; }
.gift-mode-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0; margin: 28px 0 0; list-style: none; align-items: start; }
.gift-mode-list > li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }

.gift-mode-list h3 { margin: 0; font-size: 18px; }
.gift-mode-list p { margin: 0; font-size: 13px; color: var(--muted); }
.gift-mode-list form { margin: 8px 0 0; }
.gift-giving-form { display: grid; gap: 10px; }
.gift-mode-list .gift-giving-form .btn { margin-top: 8px; }
.gift-mode-list form .btn { width: 100%; }
.gift-mode-list > li.gift-mode-whole { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.gift-mode-list .gift-whole-summary { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #edf1eb; }
.gift-whole-summary h3 { flex: 0 0 auto; }
.gift-mode-list .gift-whole-summary p { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: #f2f6f0; color: #5d6b63; font-size: 12px; }
.gift-whole-summary p span + span::before { content: "·"; margin-right: 8px; color: #9aa59d; }
.gift-reservation-form { display: grid; gap: 16px; }
.gift-quantity-field { display: grid; justify-items: start; gap: 10px; }
.gift-quantity-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.gift-quantity-stepper { display: grid; grid-template-columns: 54px 76px 54px; align-items: center; min-height: 52px; border: 1px solid #d7e2d6; border-radius: 999px; background: var(--sage); box-shadow: 0 6px 18px #243c320a; overflow: hidden; }
.gift-quantity-stepper:focus-within { border-color: #71947c; box-shadow: 0 0 0 3px #e5eee5; }
.gift-quantity-stepper button { display: grid; place-items: center; width: 54px; height: 52px; padding: 0; border: 0; background: transparent; color: var(--moss); font: 300 25px/1 var(--font); cursor: pointer; }
.gift-quantity-stepper button:hover:not(:disabled) { background: #e4ebdf; }
.gift-quantity-stepper button:focus-visible { outline: 2px solid #71947c; outline-offset: -4px; border-radius: 999px; }
.gift-quantity-stepper button:disabled { color: #aeb8aa; cursor: default; }
.gift-quantity-stepper input { width: 76px; min-height: 52px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: center; font-size: 18px; font-weight: 650; appearance: textfield; }
.gift-quantity-stepper input::-webkit-inner-spin-button, .gift-quantity-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.gift-quantity-stepper input:focus { outline: none; box-shadow: none; }
.gift-mode-whole .gift-reservation-form .btn { width: 100%; }
.pledge-meter { display: block; width: 100%; height: 6px; border: 0; border-radius: 10px; background: #edf1e8; accent-color: #799b71; overflow: hidden; }
.pledge-meter::-webkit-progress-bar { background: #edf1e8; }
.pledge-meter::-webkit-progress-value { background: #799b71; border-radius: 10px; }
.pledge-meter::-moz-progress-bar { background: #799b71; }
.gift-resource-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: 20px 0 0; }
.gift-resource-list a, .gift-resource-list p { display: block; padding: 18px 24px; border: 1px solid var(--line); border-radius: 12px; background: white; text-decoration: none; font-size: 14px; }
.gift-resource-list a:hover { background: var(--sage); }
.my-gifts h1 { margin-bottom: 20px; }
.catalogue-intro { color: var(--muted); margin-bottom: 32px; }
.my-gift-list { display: grid; gap: 20px; margin-top: 28px; }
.my-gift-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.my-gift-card h2 { font-size: 26px; }
.my-gift-card p { color: var(--muted); font-size: 13px; }
.my-gift-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Guest guidance. */

.instructions-intro { max-width: 600px; color: var(--muted); margin: 24px 0 36px; }
.instructions-board { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; padding: 0; margin: 0; }
.instructions-board li { display: flex; align-items: flex-start; gap: 20px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.instructions-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 9px; color: var(--moss); background: var(--sage); font-size: 12px; }
.instructions-board h2 { font-size: 24px; }
.instructions-board p { color: var(--muted); font-size: 13px; }
.instructions-callout { padding: 28px; margin-top: 24px; background: var(--sage); border-radius: 18px; }
.instructions-callout > .btn { margin-top: 20px; }
.instructions-callout h2 { font-size: 26px; }
.instructions-callout p { font-size: 14px; }

/* Tablet and mobile: fewer columns, steady gutters and no page overflow. */
@media (max-width: 1200px) {
  .home-hero { gap: 48px; }

  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-getting-started { flex-direction: column; gap: 20px; }
}
@media (max-width: 900px) {
  .organizer-shell { display: block; }
  .organizer-sidebar { position: sticky; top: 0; z-index: 40; height: auto; padding: 0 24px; border: 0; border-bottom: 1px solid var(--line); }
  .organizer-brand-row { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
  .organizer-brand-row .brand { margin: 0; }
  .menu-toggle { display: inline-flex; min-height: 42px; padding: 8px 12px; font-size: 12px; border-color: var(--line); background: white; }
  .organizer-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 24px 24px; max-height: calc(100dvh - 76px); overflow-y: auto; background: #fcfdfb; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px #243c3210; }
  .organizer-nav.is-open { display: flex; }
  .organizer-event-context { padding: 16px 14px; margin-top: 4px; }
  .organizer-account { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .admin-page { padding: 32px 24px 64px; }
  .site-nav { gap: 16px; }
  .guest-navigation { gap: 12px; }
  .account-menu-label { display: none; }
  .home-hero { padding-top: 64px; gap: 40px; }
  .home-hero h1 { font-size: 52px; }
  .home-intro { font-size: 15px; }
  .home-preview { padding: 18px; }
  .preview-invitation { padding: 24px 16px 16px; }
  .home-section-heading { display: block; }
  .home-ways-grid { gap: 24px; }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-items-grid-shell { overflow: visible; padding: 0 20px 20px; }
  .admin-items-grid-head { display: none; }
  .admin-items-row { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px; margin-top: 16px; }
  .admin-items-cell-name { grid-column: 1 / -1; grid-row: 1; }
  .admin-items-cell-actions { grid-column: 1 / -1; order: 10; }
  .admin-items-cell:not(.admin-items-cell-actions):not(.admin-items-cell-name)::before { content: attr(data-label); font-size: 10px; text-transform: uppercase; color: #879183; letter-spacing: .05em; }
  .admin-items-cell-availability { flex-wrap: wrap; }
  .admin-items-cell-availability::before { width: 100%; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 20px; }
  body { font-size: 14px; }
  .site-nav { min-height: 76px; flex-wrap: wrap; padding: 14px 0; }
  .brand { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-account { min-height: 42px; padding: 9px 14px; font-size: 12px; }
  .guest-navigation { position: relative; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
  .guest-navigation .account-menu { position: absolute; right: 0; top: -53px; }
  .guest-tabs { gap: 3px; width: 100%; }
  .guest-tabs a { flex: 1; padding: 10px 8px; text-align: center; font-size: 12px; white-space: nowrap; }
  .account-avatar { width: 28px; height: 28px; }
  .site-footer { margin: 24px auto 0; padding-top: 20px; flex-direction: column; gap: 4px; font-size: 11px; }
  .home-hero { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  .home-hero h1 { font-size: clamp(46px, 12vw, 62px); }
  .home-intro { margin: 24px 0; font-size: 15px; }
  .home-hero .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .home-preview { max-width: 400px; width: calc(100% - 16px); margin: 8px auto; transform: rotate(1deg); }
  .home-reassurance { max-width: 270px; font-size: 11px; line-height: 1.7; }
  .home-ways { width: calc(100% - 40px); padding: 36px 0; }
  .home-section-heading h2 { font-size: 30px; }
  .home-ways-grid { grid-template-columns: 1fr; gap: 0; }
  .home-ways-grid article { padding: 24px 0; border-top: 1px solid var(--line); }
  .way-number { margin-bottom: 12px; }
  .home-guest-note { width: calc(100% - 40px); padding: 20px; align-items: flex-start; margin-bottom: 32px; font-size: 12px; }
  .home-guest-note strong { display: block; margin-top: 4px; }
  .event-invitation { margin-top: 12px; }
  .event-landing h1 { font-size: 40px; }
  .event-details { gap: 24px; flex-direction: column; align-items: center; }
  .event-primary { width: 100%; font-size: 13px; }
  .event-welcome { font-size: 14px; }
  .event-login-note { font-size: 11px; }

  .guest-access-card, .admin-auth-card { padding: 28px 24px; border-radius: 18px; }
  .guest-access h1 { font-size: 31px; }
  .guest-access-form > .btn { font-size: 13px; padding-inline: 12px; }
  .guest-access-intro { font-size: 13px; }
  .development-mail { padding: 20px; }
  .organizer-sidebar { padding-inline: 20px; }
  .organizer-brand-row { min-height: 72px; }
  .admin-page { padding: 28px 20px 56px; }
  .admin-page-heading { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 24px; }
  .admin-page-heading h1 { font-size: 30px; }
  .admin-page-heading p { font-size: 13px; }
  .admin-page-heading > .btn { align-self: flex-start; }
  .admin-heading-actions { gap: 8px; }
  .admin-heading-actions .btn { padding: 10px 12px; font-size: 12px; }
  .admin-edit-form { padding: 24px 20px; gap: 24px; }
  .admin-form-grid, .admin-item-settings-grid { grid-template-columns: 1fr; gap: 20px; }
  .admin-item-photo-editor { grid-template-columns: 1fr; gap: 16px; }
  .admin-item-photo-section { padding: 18px; }
  .admin-options { padding: 18px; }
  .admin-form-actions { gap: 10px; }
  .admin-form-actions .btn { flex: 1; }
  .event-grid { gap: 20px; }
  .event-card { padding: 24px; }
  .share-panel { padding: 24px 20px; }
  .share-controls { flex-wrap: wrap; }
  .share-controls input { flex-basis: 100%; }
  .share-controls .btn { flex: 1; }
  .admin-stat-grid { gap: 12px; }
  .admin-stat-grid article { padding: 20px 16px; }
  .admin-stat-grid a { font-size: 10px; }
  .admin-stat-grid strong { font-size: 30px; }
  .admin-getting-started { padding: 24px 20px; }
  .admin-minimal-header { min-height: 76px; padding: 14px 20px; }
  .admin-minimal-header > .text-link { font-size: 11px; }

  .admin-auth-card h1 { font-size: 34px; }
  .activity-section-heading, .admin-category-item-heading { padding: 22px 20px; }
  .activity-section-heading { flex-direction: column; align-items: flex-start; }
  .activity-section-empty { padding: 24px 20px; }
  .admin-table thead { display: none; }
  .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tr { position: relative; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .admin-table tr:last-child { border: 0; }
  .admin-table td { padding: 6px 0; border: 0; overflow-wrap: anywhere; }
  .admin-table td[data-label]::before { content: attr(data-label); display: block; color: #879183; font-size: 10px; margin-bottom: 4px; }
  .admin-drag-cell { position: absolute; right: 20px; top: 16px; text-align: right; }
  .admin-table td.admin-row-actions { display: flex; }
  .admin-row-actions, .activity-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; }
  .admin-items-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-items-grid-shell { padding-inline: 12px; }
  .catalogue, .instructions, .event-landing, .guest-access, .admin-auth, .utility-page { padding: 24px 0 48px; }
  .catalogue h1, .instructions h1, .utility-page h1 { font-size: 36px; }
  .utility-card { padding: 24px; }
  .wishlist-header { margin-bottom: 32px; }
  .wishlist-header h1 { font-size: 36px; }
  .wishlist-header > p { font-size: 13px; }
  .gift-grid { grid-template-columns: 1fr; gap: 16px; }
  .gift-card-link { min-height: 228px; padding: 24px; }
  .gift-card h3 { margin-top: 20px; }


  .gift-detail-price { font-size: 16px; }
  .gift-mode-list { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .gift-mode-list > li { padding: 24px; }
  .gift-mode-list .btn { width: 100%; font-size: 13px; }
  .gift-giving-options h2 { font-size: 28px; }
  .my-gift-card { flex-direction: column; align-items: stretch; padding: 24px; }
  .my-gift-actions { flex-direction: column; }
  .my-gift-actions .btn { width: 100%; }
  .instructions-board { grid-template-columns: 1fr; }
  .instructions-board li { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Compact organizer inventory: one scan line for every gift. */
.inventory-page .admin-page-heading { margin-bottom: 24px; }
.admin-date-input { position: relative; }
.admin-date-input [data-date-display] { padding-right: 48px; }
.admin-date-icon { position: absolute; top: 50%; right: 14px; display: grid; place-items: center; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.admin-native-date-picker { position: absolute; top: 0; right: 0; width: 48px !important; height: 100%; opacity: .001; cursor: pointer; }
.inventory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.inventory-search { flex: 1; max-width: 360px; min-width: 180px; }
.inventory-toolbar input, .inventory-toolbar select { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 14px; }
.inventory-toolbar select { width: auto; }
.inventory-total { margin-left: auto; color: var(--muted); font-size: 12px; }
.inventory-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.inventory-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.mode-key { width: 8px; height: 8px; border: 1px solid #83968b; border-radius: 50%; }
.mode-key.available { background: var(--moss); border-color: var(--moss); }
.mode-key.off { border-color: #c8cfca; background: #e7eae7; }
.inventory-reorder-note { margin-left: auto; }
.inventory-section { overflow: hidden; }
.inventory-category { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #f2f5ef; }
.inventory-category h2 { margin: 0; font-size: 16px; }
.inventory-category h2 span { margin-left: 8px; color: var(--muted); font: 400 12px var(--font); }
.inventory-columns, .inventory-row { display: grid; grid-template-columns: 14px minmax(150px, 1.6fr) minmax(74px,.6fr) 100px 112px minmax(100px,1fr) 156px; align-items: center; gap: 12px; padding: 10px 16px; }
.inventory-columns { color: var(--muted); font-size: 10px; background: #fcfdfb; border-bottom: 1px solid var(--line); }
.inventory-row { min-height: 76px; border-bottom: 1px solid var(--line); }
.inventory-row:last-child { border-bottom: 0; }
.inventory-row:hover { background: #f8faf6; }
.inventory-name { min-width: 0; }
.inventory-name > a { display: block; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.inventory-name > a:hover { text-decoration: underline; }
.inventory-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.inventory-meta strong { font-weight: 600; }
.inventory-publication { background: transparent; }
.inventory-publication.admin-status-live { color: var(--moss); }
.inventory-price { font-size: 13px; font-variant-numeric: tabular-nums; }
.inventory-price small { display: block; color: var(--muted); font-size: 10px; }
.inventory-priority { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.4; }
.priority-dot { width: 5px; height: 5px; flex-shrink: 0; background: #c0c9bf; border-radius: 50%; }
.priority-musthave .priority-dot { background: #bd8152; }
.priority-goodtohave .priority-dot { background: #7d997a; }
.inventory-modes { display: flex; gap: 5px; }
.inventory-mode { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #cad6cb; border-radius: 8px; color: #718276; }
.inventory-mode.available { background: var(--sage); color: var(--moss); border-color: #c8dcca; }
.inventory-mode.off { position: relative; color: #b5beb6; border-color: #e7ebe6; background: #fafbf9; }
.inventory-mode.off::after { content: ""; position: absolute; width: 22px; height: 1px; background: #b5beb6; transform: rotate(-45deg); }
.inventory-activity { display: grid; gap: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.inventory-pending { color: #956324; font-weight: 600; }
.inventory-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.inventory-actions .admin-icon-button { width: 36px; height: 38px; min-height: 38px; padding: 0; background: transparent; }
.inventory-actions .admin-icon-button:hover { background: var(--sage); }
.inventory-actions .inventory-complete.is-active { background: #e1e7e0; color: #657563; }
.inventory-complete.is-active circle { fill: currentColor; stroke: none; }
.inventory-complete.is-active path { stroke: white; }
.inventory-row.is-completed, .inventory-row.is-completed:hover { background: #eef0ed; }
.inventory-row.is-completed .inventory-name > a { color: #788176; text-decoration: line-through; text-decoration-thickness: 1px; }
.inventory-row.is-completed :is(.inventory-price,.inventory-priority,.inventory-activity,.inventory-modes) { color: #7a8478; opacity: .65; }
.inventory-grip { display: block; }
.inventory-mobile-label { display: none; }
.admin-icon-button:disabled { opacity: .35; cursor: default; background: transparent; }
@media (min-width: 761px) and (max-width: 1240px) {
  .inventory-columns, .inventory-row { grid-template-columns: 12px minmax(140px,1.5fr) 70px 86px 104px 1fr; gap: 8px; }
  .inventory-columns > :last-child { display: none; }
  .inventory-actions { grid-column: 2 / -1; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .inventory-columns { display: none; }
  .inventory-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; padding: 16px 20px; }
  .inventory-grip { display: none; }
  .inventory-name { grid-column: 1; }
  .inventory-price { grid-column: 2; text-align: right; }
  .inventory-priority { grid-column: 1; }
  .inventory-modes { grid-column: 2; grid-row: 2; }
  .inventory-activity { grid-column: 1; }
  .inventory-actions { grid-column: 2; }
  .inventory-actions .admin-icon-button { width: 36px; min-height: 44px; }
  .inventory-toolbar { gap: 10px; }
  .inventory-search { max-width: none; flex-basis: 100%; }
  .inventory-total { font-size: 11px; }
  .inventory-reorder-note { width: 100%; margin-left: 0; }
}
@media (max-width: 380px) {
  .inventory-row { padding: 14px; gap: 10px; }
  .inventory-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Giving options stay stacked; concise summaries sit beside their controls. */
.gift-detail-heading { margin-bottom: 24px; }
.gift-detail h1 { font-size: clamp(32px, 4vw, 44px); }
.gift-detail-heading .eyebrow { margin-bottom: 12px; }
.gift-detail-price { margin-top: 12px; }
.gift-detail-description { margin-top: 12px; font-size: 14px; }
.gift-detail-photo { margin: 20px 0 24px; }
.gift-detail-photo img { max-height: 340px; }
.gift-detail-section, .gift-giving-options { margin-top: 28px; }
.gift-mode-list { margin-top: 20px; gap: 12px; }
.gift-mode-list > li { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 24px; border-radius: 14px; }
.giving-mode-heading { display: grid; align-content: start; gap: 8px; }
.gift-mode-list h3 { font-size: 17px; }
.giving-mode-body { display: grid; align-content: center; gap: 10px; }
.gift-mode-list form { margin: 0; }
.gift-mode-list form .btn { width: auto; min-height: 44px; padding: 10px 16px; font-size: 13px; }
.gift-mode-list .gift-giving-form .btn { margin: 0; justify-self: start; }
.gift-giving-form { gap: 8px; }
.gift-giving-form input { min-height: 44px; padding: 10px 12px; }
.gift-giving-form textarea { min-height: 80px; padding: 10px 12px; }
.gift-pledge-form { grid-template-columns: minmax(90px,1fr) auto; align-items: start; }
.gift-pledge-form label { grid-column: 1 / -1; }
.gift-pledge-form input { grid-column: 1; grid-row: 2; }
.gift-pledge-form .btn { grid-column: 2; grid-row: 2; }
.gift-pledge-form .field-validation-error { grid-column: 1 / -1; grid-row: 3; }
.gift-secondary-action .btn { border-color: transparent; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0 !important; min-height: 36px !important; font-weight: 400; }
@media (max-width: 600px) {
  .gift-mode-list > li { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 20px; }
  .gift-mode-list .gift-whole-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .gift-mode-list .gift-whole-summary p { flex-wrap: wrap; border-radius: 10px; }
  .gift-pledge-form { grid-template-columns: minmax(0,1fr); }
  .gift-pledge-form .btn { grid-column: 1; grid-row: 3; }
  .gift-pledge-form .field-validation-error { grid-row: 4; }
  .gift-mode-list form .btn { width: 100%; }
  .gift-secondary-action .btn { width: auto !important; text-align: left; }
}
