@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-vietnamese.woff2?v=a91edbcdcb4e") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin-ext.woff2?v=a85a7459bdb3") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin.woff2?v=19143dca0759") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-vietnamese.woff2?v=f18853f63a87") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin-ext.woff2?v=a2930b27d13a") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin.woff2?v=7234ed860a9c") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 400; font-display: block; src: url("fonts/material-symbols-rounded.woff2?v=78b102addfae") format("woff2"); }

/* Tokens: Garden */
.tr {
  --paper: #f1f4ee; --sheet: #fcfdfa; --sunk: #e6ebe1; --rule: #d8dfd1; --field: #7f8a7a;
  --ink: #1f281e; --muted: #4c5849; --faint: #626d5e;
  --act: #93385a; --act-soft: #f6e7ea;
  --yes: #007a5a; --no: #5e5a63; --wait: #858f80; --on-status: #ffffff;
  --new: #fbf2d6; --new-ink: #6b4f00; --err: #b3261e;
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 14px; --radius-pill: 999px;
  --lift: 0 8px 32px rgba(31, 40, 30, 0.12);
  color-scheme: light;
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.tr, .tr *, .tr *::before, .tr *::after { box-sizing: border-box; }
.tr :focus-visible { outline: 2px solid var(--act); outline-offset: 2px; border-radius: 6px; }
.tr [hidden] { display: none !important; }
.tr-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-num { font-variant-numeric: tabular-nums; }

/* Button */
.tr-btn { font: inherit; font-size: 15px; font-weight: 500; line-height: 20px; min-height: 42px; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid var(--field); background: var(--sheet); color: var(--ink); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.tr-btn--primary { background: var(--act); border-color: var(--act); color: var(--on-status); }
.tr-btn--quiet { background: none; border-color: transparent; color: var(--act); padding-inline: 8px; }
.tr-btn--quiet:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-btn--destructive { background: var(--err); border-color: var(--err); color: var(--on-status); }
.tr-btn--small { min-height: 32px; padding: 5px 10px; font-size: 14px; border-radius: 10px; }
.tr-btn[disabled] { opacity: .45; cursor: default; }
.tr-btn--file { position: relative; overflow: hidden; }
.tr-btn--file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tr-link { color: var(--act); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Icons, status marks and the New tag */
.tr-icon { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20; display: inline-block; overflow: hidden; user-select: none; }
.tr-icon--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.tr-mark { font-size: 24px; width: 22px; height: 22px; flex: none; display: grid; place-items: center; overflow: visible; }
.tr-mark--wait { color: var(--wait); } .tr-mark--yes, .tr-mark--some { color: var(--yes); } .tr-mark--no { color: var(--no); } .tr-mark--err { color: var(--err); }
.tr-seg .tr-icon { font-size: 17px; }
.tr-seg .tr-mark--wait { color: var(--wait); }
.tr-new { font-size: 12px; font-weight: 500; line-height: 18px; color: var(--new-ink); border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 0 7px; white-space: nowrap; }
.tr-glyph-new { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--new); border: 1.5px solid var(--new-ink); }

/* App header and section navigation */
.tr-header { background: var(--sheet); border-bottom: 1px solid var(--rule); padding-inline: max(var(--space-6), calc((100% - 1360px) / 2 + var(--space-6))); display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-8); min-height: 60px; }
.tr-header__wedding { font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 400; color: var(--ink); background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.tr-header__wedding::-webkit-details-marker { display: none; }
.tr-header__wedding--static { cursor: default; }
.tr-header__chev { font-family: var(--font-sans); font-size: 14px; color: var(--faint); }
.tr-nav { display: flex; gap: 2px; align-self: stretch; }
.tr-nav a { display: flex; align-items: center; padding: 0 12px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tr-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tr-header__meta { margin-left: auto; font-size: 15px; color: var(--muted); }
.tr-header__meta b { color: var(--ink); font-weight: 600; }

/* Segmented control: view switch and filters */
.tr-seg { display: inline-flex; justify-self: start; width: max-content; max-width: 100%; flex-wrap: wrap; gap: 2px; background: var(--sunk); padding: 3px; border-radius: var(--radius-md); }
.tr-seg__item { font: inherit; font-size: 15px; font-weight: 500; border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: 10px; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.tr-seg__n { font-weight: 400; color: var(--faint); font-variant-numeric: tabular-nums; }
.tr-seg__item[aria-current="true"], .tr-seg__item[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--field); }
.tr-seg__item[aria-current="true"] .tr-seg__n, .tr-seg__item[aria-pressed="true"] .tr-seg__n { color: var(--muted); }

/* Overview zone, list card and the ticked-list row */
.tr-zone__lead { margin: 0; font-size: 15px; color: var(--muted); }
.tr-zone { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; gap: var(--space-3); }
.tr-list { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: clip; }
.tr-list__top { display: grid; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--rule); }
.tr-list__bar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.tr-list__meta { font-size: 14px; color: var(--muted); margin-right: auto; }
.tr-list__bar > .tr-input { flex: 1 1 200px; max-width: 260px; width: auto; }
.tr-row__line > .tr-mark { display: inline-grid; vertical-align: -6px; margin-right: 4px; }
.tr-row { display: grid; grid-template-columns: 16px 22px minmax(0, 1fr) auto; column-gap: var(--space-3); align-items: start; align-content: center; min-height: 76px; padding: 14px var(--space-4); border-top: 1px solid var(--rule); position: relative; }
.tr-row:first-child { border-top: 0; }
.tr-row--plain { grid-template-columns: minmax(0, 1fr) auto; }
.tr-row--lettered { grid-template-columns: 16px minmax(0, 1fr) auto; }
.tr-row:has(.tr-row__link) { cursor: pointer; }
.tr-row:has(.tr-row__link):hover { background: var(--sunk); }
.tr-row--new, .tr-row--new:has(.tr-row__link):hover { background: var(--new); }
.tr-row[aria-current="true"], .tr-row[aria-current="true"]:has(.tr-row__link):hover { background: var(--act-soft); }
.tr-row[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--act); }
.tr-row__link { color: inherit; text-decoration: none; }
.tr-row__link::after { content: ""; position: absolute; inset: 0; }
.tr .tr-row__link:focus-visible { outline: none; }
.tr-row:has(.tr-row__link:focus-visible) { outline: 2px solid var(--act); outline-offset: -2px; }
.tr-row__letter { font-size: 13px; font-weight: 500; color: var(--faint); padding-top: 2px; }
.tr-row__name { font-family: var(--font-serif); font-size: 17px; line-height: 22px; font-weight: 400; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tr-row__line { color: var(--muted); margin-top: 2px; }
.tr-row__no { color: var(--no); }
.tr-row__note { font-size: 13px; color: var(--faint); margin-top: 2px; }
.tr-row__when { font-size: 13px; color: var(--faint); white-space: nowrap; padding-top: 3px; }

/* Summary figures */
.tr-figs { display: flex; flex-wrap: wrap; gap: var(--space-3) 40px; }
.tr-fig__k { font-size: 14px; color: var(--muted); }
.tr-fig__v { font-size: 17px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tr-fig__s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-meter { display: flex; gap: 2px; height: 6px; border-radius: var(--radius-pill); overflow: hidden; background: var(--sunk); margin: 6px 0 4px; width: 200px; max-width: 100%; }
.tr-meter__seg { display: block; height: 100%; }
.tr-meter__seg--yes { background: var(--yes); } .tr-meter__seg--no { background: var(--no); } .tr-meter__seg--wait { background: var(--wait); } .tr-meter__seg--muted { background: var(--muted); }

/* Summary list (settings) */
.tr-sumlist { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 0 var(--space-4); }
.tr-sumlist__row--editing { align-items: start; }
.tr-sumlist__row--editing .tr-input, .tr-sumlist__row--editing .tr-select { max-width: 360px; }
.tr-sumlist__acts { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.tr-sumlist__row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.tr-sumlist__row:first-child { border-top: 0; }
.tr-sumlist__title { margin: 0; padding: 16px 0 12px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--rule); }
.tr-sumlist dt { font-weight: 500; }
.tr-sumlist dd { margin: 0; color: var(--ink); }
.tr-sumlist dd.tr-sumlist__hint { color: var(--muted); }
.tr-sumlist__list, .tr-sumlist__form { margin: 0; }
@media (max-width: 640px) { .tr-sumlist__row { grid-template-columns: minmax(0, 1fr) auto; } .tr-sumlist dd:not(.tr-sumlist__act) { grid-column: 1 / -1; } }

/* Data grid (spreadsheet) */
@media (max-width: 1100px) { .tr-gridwrap { overflow-x: auto; } }
.tr-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.tr-grid th { position: sticky; top: 0; z-index: 2; background: var(--sunk); text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 9px 10px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.tr-grid th:first-child { position: sticky; left: 0; z-index: 3; }
.tr-grid th:first-child, .tr-grid tfoot td:first-child { padding-left: var(--space-4); }
.tr-grid td { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 0; height: 40px; background: var(--sheet); }
.tr-grid td.tr-grid__ro { padding: 0 10px; color: var(--muted); }
.tr-grid td.tr-grid__invcell { position: sticky; left: 0; z-index: 1; font-weight: 500; vertical-align: top; padding: 0; box-shadow: 1px 0 0 var(--rule); }
.tr-grid__first td { border-top: 2px solid var(--rule); }
.tr-grid__tagged { display: flex; align-items: center; padding-right: 10px; }
.tr-grid__tagged input[type="text"] { flex: 1; min-width: 0; }
.tr-grid input[type="text"], .tr-grid select { width: 100%; height: 40px; border: 0; background: transparent; padding: 0 10px; font: inherit; color: inherit; }
.tr-grid select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.tr-grid select.tr-grid__y { color: var(--yes); font-weight: 500; } .tr-grid select.tr-grid__n { color: var(--no); font-weight: 500; } .tr-grid select.tr-grid__w, .tr-grid select.tr-grid__x { color: var(--faint); }
.tr-grid input:focus, .tr-grid select:focus { outline: none; }
.tr-grid td:focus-within { background-color: var(--act-soft); }
.tr-grid tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--sunk); font-weight: 500; padding: 0 10px; }
.tr-grid tfoot td:first-child { left: 0; z-index: 3; }
.tr-grid__newrow input::placeholder { color: var(--muted); }
.tr-grid th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tr-grid th button:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.tr-grid__arrow { font-size: 10px; color: var(--faint); }
.tr-grid th[aria-sort="ascending"] .tr-grid__arrow, .tr-grid th[aria-sort="descending"] .tr-grid__arrow { color: var(--ink); }
.tr-grid__inv { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0 6px; }
.tr-grid td.tr-grid__invcell input[type="text"] { font-weight: 500; padding-left: var(--space-4); }
.tr-grid__add { all: unset; cursor: pointer; color: var(--act); font-size: 13px; font-weight: 500; padding: 2px 10px 2px var(--space-4); }
.tr-grid__add:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-grid__add:focus-visible { outline: 2px solid var(--act); border-radius: 4px; }
.tr-grid td.tr-grid__chk { text-align: center; }
.tr-grid__chk input { width: 18px; height: 18px; accent-color: var(--act); vertical-align: middle; }
.tr-grid__newrow td:focus-within { background-color: var(--act-soft); }
.tr-grid__inv > form:first-child { align-self: stretch; }
.tr-grid input[type="text"] { min-width: 140px; }
.tr-grid select { min-width: 136px; }
.tr-grid th, .tr-grid td.tr-grid__ro, .tr-grid tfoot td { white-space: nowrap; }
.tr-grid td.tr-grid__confirm { white-space: normal; }
.tr-grid td.tr-grid__confirm { padding: var(--space-2) 10px; }

/* Empty state */
.tr-empty { padding: 32px var(--space-4); display: grid; gap: 8px; justify-items: start; max-width: 60ch; }
.tr-empty p { margin: 0; color: var(--muted); }

/* Form fields */
.tr-field { display: grid; gap: 4px; max-width: 420px; }
.tr-label { font-size: 15px; font-weight: 500; }
.tr-label__opt { font-weight: 400; color: var(--muted); }
.tr-hint { font-size: 14px; color: var(--muted); }
.tr-input, .tr-select { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--field); border-radius: var(--radius-md); padding: 10px 12px; min-height: 44px; width: 100%; }
.tr-select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.tr-field--error .tr-input, .tr-field--error .tr-select { border: 2px solid var(--err); }
.tr-error { font-size: 15px; font-weight: 500; color: var(--err); }
.tr-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.tr-check input { width: 20px; height: 20px; accent-color: var(--act); margin: 0; }

/* Answer picker */
.tr-answer { display: inline-flex; width: max-content; justify-self: start; border: 1px solid var(--field); border-radius: 11px; overflow: hidden; max-width: 100%; }
.tr-answer__opt { position: relative; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; line-height: 20px; border-left: 1px solid var(--field); color: var(--muted); padding: 8px 12px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.tr-answer__opt:first-child { border-left: 0; }
.tr-answer__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tr-answer__opt:has(input:checked) { background: var(--ink); color: var(--sheet); }
.tr-answer__yes:has(input:checked) { background: var(--yes); color: var(--on-status); }
.tr-answer__no:has(input:checked) { background: var(--no); color: var(--on-status); }
.tr-answer__opt:has(input:focus-visible) { outline: 2px solid var(--act); outline-offset: -2px; }

/* Error summary */
.tr-errsum { border: 2px solid var(--err); border-radius: var(--radius-md); background: var(--sheet); padding: 14px 16px; max-width: 560px; }
.tr-errsum h2 { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
.tr-errsum ul { margin: 0; padding-left: 18px; }
.tr-errsum a { color: var(--err); font-weight: 500; text-underline-offset: 3px; }

/* Toast */
.tr-toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 32px); }
.tr-toast { display: inline-flex; gap: 14px; align-items: center; background: var(--ink); color: var(--sheet); padding: 10px 16px; border-radius: var(--radius-lg); box-shadow: var(--lift); }
@media (prefers-reduced-motion: no-preference) { .tr-toast { animation: tr-rise .3s ease-out; } }
@keyframes tr-rise { from { opacity: 0; transform: translateY(8px); } }

/* Callout */
.tr-callout { border-radius: var(--radius-md); padding: 14px 16px; display: grid; gap: 6px; max-width: 640px; }
.tr-callout h3 { margin: 0; font-size: 17px; font-weight: 500; }
.tr-callout p { margin: 0; }
.tr-callout--info { background: var(--act-soft); border: 1px solid var(--act); }
.tr-callout--pending { background: var(--sheet); border: 1px solid var(--field); }
.tr-callout--error { background: var(--sheet); border: 2px solid var(--err); }
.tr-callout--error h3 { color: var(--err); }
.tr-callout code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.tr-callout__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tr-callout ul { margin: 0; padding-left: 18px; }

/* Inline confirmation */
.tr-confirm { background: var(--sheet); border: 1px solid var(--field); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 560px; margin: 0; }
.tr-confirm p { margin: 0; flex: 1 1 240px; }

/* Loading */
.tr-skel { background: var(--sunk); border-radius: 6px; height: 14px; }
@media (prefers-reduced-motion: no-preference) { .tr-skel { animation: tr-pulse 1.6s ease-in-out infinite; } }
@keyframes tr-pulse { 50% { opacity: .55; } }
.tr-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sunk); border-top-color: var(--act); }
@media (prefers-reduced-motion: no-preference) { .tr-spinner { animation: tr-spin .9s linear infinite; } }
@keyframes tr-spin { to { transform: rotate(360deg); } }

/* Detail panel */
.tr-panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--lift); display: flex; flex-direction: column; min-width: 0; max-width: 460px; }
.tr-panel__head { padding: 18px 20px 12px; border-bottom: 1px solid var(--rule); }
.tr-panel__top { display: flex; gap: 8px; align-items: flex-start; }
.tr-panel__title { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 400; flex: 1; min-width: 0; }
.tr-panel__sub { color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: flex-start; }
.tr-panel__sub > .tr-mark { margin-top: 1px; }
.tr-panel__sub > span:not(.tr-mark) { flex: 1; min-width: 0; }
.tr-panel__title-input { flex: 1; min-width: 0; font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 400; color: var(--ink); background: var(--sheet); border: 1px solid var(--field); border-radius: var(--radius-md); padding: 6px 10px; }
.tr-panel__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.tr-panel__close { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); padding: 4px 8px; min-height: 40px; min-width: 40px; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.tr-panel__body { padding: 14px 20px; display: grid; gap: 12px; align-content: start; }
.tr-panel__body > .tr-btn { justify-self: start; }
.tr-panel__body > .tr-btn--quiet { padding-inline: 0; }
.tr-panel__body .tr-field { max-width: none; }
.tr-panel__foot { border-top: 1px solid var(--rule); padding: 12px 20px; display: flex; gap: 8px; }
.tr-panel__form { display: contents; }
.tr-panel__adds { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tr-card { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 12px; display: grid; gap: 10px; }
.tr-card--slot { border-style: dashed; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-card__tag { margin-top: var(--space-1); }
.tr-card__tag .tr-tag { margin-inline-start: 0; }
.tr-card__move { display: inline-flex; flex: none; }
.tr-card__move .tr-btn { padding-inline: 4px; }
.tr-card__top { display: flex; gap: var(--space-2); align-items: center; }
.tr-card__name { flex: 1; min-width: 0; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: var(--sheet); border: 1px solid var(--field); border-radius: var(--radius-md); padding: 6px 10px; min-height: 40px; }
.tr-evline { display: grid; grid-template-columns: 20px 84px minmax(0, 1fr); gap: 8px; align-items: center; }
.tr-evline input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--act); margin: 0; }
.tr-evline__off { color: var(--faint); }
.tr-evline:has(> input:not(:checked)) > .tr-answer, .tr-evline:has(> input:checked) > .tr-evline__off { display: none; }
@media (max-width: 640px) { .tr-evline { grid-template-columns: 20px minmax(0, 1fr); } .tr-evline .tr-answer, .tr-evline__off { grid-column: 1 / -1; } }

/* Records (domains) */
.tr-status { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.tr-record { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.tr-record__type { font-size: 13px; font-weight: 500; color: var(--muted); grid-column: 1; }
.tr-record code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; overflow-wrap: anywhere; grid-column: 1; }
.tr-record__k { font-size: 13px; color: var(--faint); grid-column: 1; margin-top: 4px; }
.tr-record .tr-btn { grid-column: 2; grid-row: 1 / span 5; align-self: center; }

/* Sign in */
.tr-auth { max-width: 400px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; }
.tr-auth h1 { margin: 0; font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 400; }
.tr-auth p { margin: 0; color: var(--muted); }
.tr-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; }
.tr-or::before, .tr-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.tr-auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--space-6) var(--space-4); }
.tr-auth-page > .tr-auth { width: 100%; }
.tr-auth .tr-btn { width: 100%; justify-content: center; }
.tr-auth .tr-btn--quiet { width: auto; justify-self: center; }
.tr-auth .tr-field { max-width: none; }
.tr-auth__form { display: grid; gap: 12px; }

/* Page shell */
.tr-stage { max-width: 1360px; margin: 0 auto; padding: var(--space-6) var(--space-6) 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; align-content: start; }
.tr-stage:has(.tr-panel) { grid-template-columns: minmax(0, 1fr) 460px; }
.tr-main { min-width: 0; max-width: 820px; display: grid; gap: var(--space-6); align-content: start; }
.tr-main--wide { max-width: none; }
.tr-stage__panel > .tr-panel { position: sticky; top: var(--space-4); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow: hidden; max-width: none; }
.tr-stage__panel > .tr-panel .tr-panel__head, .tr-stage__panel > .tr-panel .tr-panel__foot { flex: none; }
.tr-stage__panel > .tr-panel .tr-panel__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.tr-stage__panel { display: contents; }
.tr-backdrop { display: none; }
@media (max-width: 1100px) {
  .tr-stage:has(.tr-panel) { grid-template-columns: minmax(0, 1fr); }
  .tr-backdrop { display: block; position: fixed; inset: 0; background: rgba(31, 40, 30, .32); z-index: 55; }
  .tr-stage__panel > .tr-panel { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(560px, 100%); max-width: none; max-height: none; border-radius: 0; border-width: 0 0 0 1px; z-index: 60; }
  html:has(.tr-stage__panel > .tr-panel) { overflow: hidden; }
}
@media (max-width: 640px) { .tr-stage, .tr-header { padding-inline: var(--space-4); } }
.tr-main, .tr-zone, .tr-list__top, .tr-panel__body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .tr-header__meta { display: none; }
  .tr-header { column-gap: var(--space-6); }
  .tr-nav a { padding: 0 10px; }
}
@media (max-width: 640px) {
  .tr-header { column-gap: var(--space-4); padding-block: 6px; }
  .tr-header__wedding { font-size: 21px; line-height: 26px; }
  .tr-nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tr-nav a { padding: 0 8px; min-height: 40px; white-space: nowrap; }
  .tr-header .tr-seg { display: none; }
  .tr-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tr-seg__item { white-space: nowrap; flex: none; }
  .tr-figs { display: grid; gap: 6px; }
  .tr-fig { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
  .tr-figs .tr-meter, .tr-figs .tr-fig__s { display: none; }
  .tr-fig__v { margin: 0; font-size: 15px; text-align: right; }
}

/* Text field with a fixed suffix (an address): one box, one focus ring */
.tr-affix { display: flex; align-items: center; border: 1px solid var(--field); border-radius: var(--radius-md); background: var(--sheet); min-height: 44px; width: 100%; }
.tr-affix input { border: 0; outline: none; background: transparent; flex: 1; min-width: 0; padding: 10px 0 10px 12px; font: inherit; color: var(--ink); }
.tr .tr-affix input:focus-visible { outline: none; }
.tr-affix span { color: var(--muted); padding-right: 12px; white-space: nowrap; }
.tr-affix:focus-within { outline: 2px solid var(--act); outline-offset: 2px; }
.tr-field--error .tr-affix { border: 2px solid var(--err); }

/* Tag: a neutral fact attached to a name (Primary) */
.tr-tag { font-family: var(--font-sans); font-size: 13px; font-weight: 400; color: var(--muted); border: 1px solid var(--field); border-radius: var(--radius-pill); padding: 0 8px; margin-inline-start: var(--space-2); line-height: 20px; white-space: nowrap; }

/* Menu: the wedding switcher */
.tr-menu { position: relative; }
.tr-menu__list { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 280px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--lift); padding: 6px; display: grid; }
.tr-menu__item { box-sizing: border-box; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; font-family: var(--font-sans); font-size: 15px; color: var(--ink); min-height: 44px; text-decoration: none; }
.tr-menu__item:hover { background: var(--sunk); }
.tr .tr-menu__item:focus-visible { outline: 2px solid var(--act); outline-offset: -2px; }
.tr-menu__item[aria-current="page"] { background: var(--act-soft); }
.tr-menu__note { font-size: 13px; color: var(--faint); }
.tr-menu__sep { height: 1px; background: var(--rule); margin: 6px 0; }

/* QR code: always black on white so it scans */
.tr-qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.tr-qr__code { width: 112px; height: 112px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 8px; display: grid; place-items: center; }
.tr-qr__code img { width: 100%; height: 100%; display: block; }
.tr-qr__body { display: grid; gap: var(--space-2); justify-items: start; }
.tr-qr__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tr-qr__link { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Coarse pointers */
@media (pointer: coarse) {
  .tr-row { padding-block: 15px; min-height: 78px; }
  .tr-btn, .tr-btn--small, .tr-seg__item, .tr-answer__opt, .tr-menu__item, .tr-nav a, .tr-header__wedding, .tr-card__name, .tr-panel__title-input { min-height: 44px; }
  .tr-panel__close { min-height: 44px; min-width: 44px; }
  .tr-sumlist__act .tr-link, .tr-sumlist dd .tr-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; margin-inline: -6px; }
  .tr-evline > .tr-label { display: flex; align-items: center; min-height: 44px; }
  .tr-grid th { padding-block: 0; }
  .tr-grid th button, .tr-grid__add { min-height: 44px; }
  .tr-grid__add { display: inline-flex; align-items: center; padding-block: 0; }
}

@media (prefers-reduced-motion: reduce) { .tr *, .tr *::before, .tr *::after { animation: none !important; transition: none !important; } }

.tr-invitees { display: grid; gap: var(--space-3); }
.tr-invitees__group { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--sheet); padding: var(--space-3); display: grid; gap: var(--space-2); }
.tr-invitees__head { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; }
.tr-invitees__head > div { min-width: 0; }
.tr-invitees__name { font-family: var(--font-serif); font-size: 17px; line-height: 22px; }
.tr-invitees__note { font-size: 13px; color: var(--faint); }
.tr-invitees__guests { list-style: none; margin: 0; padding: 0; display: grid; }
.tr-invitees__guest { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding: var(--space-1) 0; border-top: 1px solid var(--rule); }
.tr-invitees__state { font-size: 13px; color: var(--muted); }
