#studio { display:block; min-height:100dvh; --ink:#292824; --line:#deddd7; --paper:#fbfbf9; font-family:"DM Sans",Arial,sans-serif; }
.studio-shell { display:grid; grid-template-columns:min(32vw,440px) minmax(0,1fr); min-height:100dvh; color:var(--ink); background:var(--paper); }
.studio-shell.is-signed-in { grid-template-columns:68px min(31vw,432px) minmax(0,1fr); }
.studio-shell.is-signed-in.nav-expanded { grid-template-columns:228px min(27vw,380px) minmax(0,1fr); }
.studio-rail { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; gap:8px; padding:14px 7px; background:#efeee9; border-right:1px solid var(--line); }
.studio-rail button { border-color:transparent; background:transparent; text-align:left; }
.nav-collapsed .studio-rail span { display:none; }
.studio-chat { position:sticky; top:0; height:100dvh; display:grid; grid-template-rows:72px minmax(0,1fr) auto auto; background:#f7f6f2; border-right:1px solid var(--line); min-width:0; }
.studio-brand,.studio-work__bar { display:flex; align-items:center; border-bottom:1px solid var(--line); padding:0 28px; }
.studio-brand img { width:130px; height:auto; display:block; }
.studio-thread { overflow:auto; padding:29px 28px; }
.studio-thread>small,.decision>small,.bubble small { font-size:13px; font-weight:600; }
.bubble { margin:24px 0; }
.bubble p { margin:8px 0; font-size:17px; line-height:1.5; white-space:pre-line; }
.from-user { background:white; border:1px solid var(--line); border-radius:12px; margin-left:14px; padding:16px 18px; }
.studio-composer { background:white; border:1px solid #c8c7c0; border-radius:10px; margin:0 27px; padding:12px; max-height:50vh; overflow:auto; }
.studio-composer>textarea { width:100%; min-height:48px; border:0; resize:vertical; }
.compose-actions,.studio-account,.studio-work__bar,.studio-tools { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.compose-actions button { background:#eeede8; border:0; min-width:34px; padding:5px; }
.studio-account { padding:12px 28px; font-size:12px; color:#625f57; }
.studio-account button { background:none; border:0; }
.studio-work { min-width:0; }
.studio-work__bar { height:72px; padding:0 40px; }
.context-label { font-size:13px; color:#686660; }
.studio-canvas { padding:24px clamp(18px,2.8vw,42px) 0; }
.decision h1 { margin:8px 0; font:600 clamp(27px,3vw,40px)/1.08 "DM Sans",sans-serif; letter-spacing:-.055em; }
.decision>p { font-size:16px; margin:10px 0 26px; color:#69675f; }
.theme-grid,.choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.theme-card,.choice { display:flex; flex-flow:column; gap:10px; text-align:left; background:var(--card-paper,#fff); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:7px; width:100%; min-width:0; }
.theme-card img,.choice img { width:100%; height:auto; aspect-ratio:2.18; object-fit:cover; border-radius:3px; }
.choice img { object-fit:contain; background:#faf8f4; }
.theme-card__sample { font-size:clamp(17px,1.7vw,27px); color:var(--card-ink); }
.card-swatches { display:flex; gap:6px; flex-wrap:wrap; }
.card-swatches small { display:inline-flex; align-items:center; font:600 11px "DM Sans",sans-serif; }
.card-swatches i { width:12px; height:12px; display:inline-block; border:1px solid #0002; margin-right:2px; }
.theme-card strong,.theme-card__sample,.card-swatches,.theme-pick { padding:0 4px; }
.theme-pick { font-size:13px; padding-bottom:6px; }
.theme-card.is-selected,.choice.is-selected { outline:2px solid #681f32; outline-offset:-2px; }
.studio-tools { justify-content:flex-end; padding:16px 40px 24px; flex-wrap:wrap; }
.studio-tools details { margin-right:auto; }
.stage-nav button,.stage-nav summary { margin:3px; cursor:pointer; }
.mobile-view-switch,.studio-phone-toggle,.sr-only { display:none; }
.option-wrap { min-width:0; }
.inspect { background:none; font-size:12px; }
.proposal,.attachments,.media-row { display:grid; gap:8px; padding:10px 0; }
.proposal img { max-width:200px; }
.media-row { border-top:1px solid var(--line); }
.media-row small { color:#655f56; }
.attachments label,.studio-dialog label { display:grid; gap:4px; }
.studio-dialog { width:min(440px,96vw); padding:24px; border:1px solid #ccc; border-radius:10px; }
.studio-dialog form { display:grid; gap:12px; }
.studio-dialog button { margin:4px; }
#preview { width:min(1100px,96vw); max-height:94dvh; overflow:auto; padding:12px; }
#guest-preview.phone-proof { width:min(390px,100%); margin:auto; }
button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible { outline:2px solid #7c3545; outline-offset:2px; }
@media(max-width:820px) {
 .studio-shell,.studio-shell.is-signed-in,.studio-shell.is-signed-in.nav-expanded { display:block; }
 .studio-chat { position:relative; height:100dvh; padding-bottom:42px; }
 .studio-work { padding-bottom:58px; }
 .studio-work__bar { height:58px; padding:0 18px; }
 .studio-canvas { padding:20px 16px 0; }
 .studio-shell.phone-chat .studio-work,.studio-shell.phone-design .studio-chat,.studio-rail { display:none; }
 .mobile-view-switch { display:block; position:fixed; bottom:10px; right:14px; z-index:3; }
 .mobile-view-switch button { background:#272622; color:white; border-radius:24px; }
 .theme-grid,.choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .studio-tools { padding:12px 16px; }
 .studio-account { padding:8px 16px; }
 .context-label { max-width:38%; text-align:right; }
}

.studio-loading {padding:clamp(24px,6vw,80px); font:400 16px/1.6 DM,Arial,sans-serif; color:#423f3b;}

/* ── Signed-in workspace ──────────────────────────────────────────────────────────────────────────
   Figma file ujjMP321o2C7NwccsPxPgn: rail open 76:9210, rail closed 76:9111, hover labels 79:8801,
   pages 19a-invite-design 10:215, 19-email 10:220, 20-print 10:230, 13-guests 10:157, 14-gifts 10:167.
   Markup lives in workspace.js. Colours and radii come from the tokens in studio-tokens.css. */
#studio .studio-shell.is-page { grid-template-columns: 68px minmax(0, 1fr); }
#studio .studio-shell.is-page.nav-expanded { grid-template-columns: 228px minmax(0, 1fr); }
#studio .ws-icon { flex: none; display: block; }

/* Rail */
#studio .studio-rail { position: sticky; top: 0; z-index: 4; display: block; height: 100dvh; padding: 14px 9px 0 10px; background: var(--ep-neutral); border: 0; border-right: 1px solid #dfdfd9; }
#studio .nav-expanded .studio-rail { padding: 14px 11px 0 12px; }
#studio .ws-rail__head { display: flex; align-items: center; justify-content: center; height: 44px; }
#studio .nav-expanded .ws-rail__head { justify-content: space-between; padding: 0 2px 0 12px; }
#studio .ws-rail__logo { position: relative; top: 3px; display: block; line-height: 0; }
#studio .ws-rail__logo img { display: block; width: 132px; height: auto; }
#studio .ws-rail__toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ep-ink); }
#studio .ws-rail__toggle:hover { background: #e5e6e0; }
#studio .nav-expanded .ws-rail__toggle { border-color: #dfdfd9; background: var(--ep-surface); }
#studio .nav-expanded .ws-rail__toggle:hover { background: #fff; }
#studio .nav-expanded .studio-rail::before { content: ""; position: absolute; top: 81px; left: 23px; right: 22px; height: 1px; background: #dfdfd9; }
#studio .ws-rail__label, #studio .ws-rail__foot { display: none; margin: 0; color: var(--ep-ink-2); }
#studio .nav-expanded .ws-rail__label { display: block; position: absolute; top: 109px; left: 25px; font: 600 12px/16px "DM Sans", sans-serif; }
#studio .nav-expanded .ws-rail__foot { display: block; position: absolute; left: 24px; bottom: 51px; font: 400 13px/17px "DM Sans", sans-serif; }
#studio .ws-rail__list, #studio .ws-menu ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
#studio .ws-rail__list { margin-top: 84px; }
#studio .ws-nav { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; height: 44px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 8px; background: none; color: var(--ep-ink); font: 600 16px/21px "DM Sans", sans-serif; text-align: left; white-space: nowrap; }
#studio .ws-nav::before { content: ""; position: absolute; inset: 2px 0; border-radius: 8px; background: transparent; }
#studio .ws-nav:hover::before { background: rgba(40, 38, 34, .05); }
#studio .ws-nav[aria-current="page"]::before { background: #e5e6e0; }
#studio .ws-nav > * { position: relative; }
#studio .nav-collapsed .studio-rail .ws-nav { padding: 0 14px; }
#studio .nav-collapsed .studio-rail .ws-nav::before { border-radius: 7px; }
#studio .ws-nav__label { flex: none; }
#studio .nav-collapsed .studio-rail .ws-nav__label { display: none; }
#studio .ws-tip { display: none; position: absolute; left: calc(100% + 16px); top: 50%; z-index: 6; height: 36px; padding: 8px 11px; border-radius: 6px; background: var(--ep-ink); color: #fff; font: 600 14px/20px "DM Sans", sans-serif; font-style: normal; white-space: nowrap; transform: translateY(-50%); pointer-events: none; }
#studio .nav-collapsed .studio-rail :is(.ws-nav, .ws-rail__toggle):is(:hover, :focus-visible) > .ws-tip { display: block; }

/* Chat header: the open rail carries the wordmark, so the panel is titled instead */
#studio .studio-brand__title { display: none; font: 600 22px/29px "DM Sans", sans-serif; color: var(--ep-ink); }
@media (min-width: 821px) {
  #studio .is-signed-in.nav-expanded .studio-brand > a { display: none; }
  #studio .is-signed-in.nav-expanded .studio-brand__title { display: block; }
  #studio .is-signed-in.nav-expanded .studio-thread > small:first-child { display: none; }
}

/* Top bar on a workspace page, and the phone menu */
#studio .is-page .studio-work__bar { gap: 16px; padding: 0 38px 0 49px; }
#studio .ws-crumb { display: flex; align-items: center; gap: 14px; min-width: 0; margin: 0; font: 400 14px/19px "DM Sans", sans-serif; color: var(--ep-ink-2); white-space: nowrap; }
#studio .ws-crumb i { font-style: normal; }
#studio .ws-crumb b { font-weight: 600; color: var(--ep-ink); }
#studio .is-page #notice { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#studio .ws-menu-button, #studio .ws-menu { display: none; }

/* Page frame */
#studio .ws-page { flex: 1; min-width: 0; max-width: 1150px; padding: 27px 38px 72px 50px; color: var(--ep-ink); font: 400 14px/1.45 "DM Sans", sans-serif; }
#studio .ws-head h1 { margin: 0; font: 400 40px/1.1 "Hedvig Letters Serif", Georgia, serif; letter-spacing: -.01em; color: var(--ep-ink); }
#studio .ws-head p { margin: 14px 0 0 2px; font: 400 16px/21px "DM Sans", sans-serif; color: var(--ep-ink-2); }
#studio .ws-body { margin-top: 56px; }
#studio .ws-body--inset { padding-left: 44px; }
#studio .ws-muted { margin: 0; font: 400 13px/18px "DM Sans", sans-serif; color: var(--ep-ink-2); }
#studio .ws-line { margin: 0; font: 400 13px/18px "DM Sans", sans-serif; color: var(--ep-ink); }
#studio .ws-link { margin: 0; font: 600 13px/18px "DM Sans", sans-serif; color: var(--ep-ink); overflow-wrap: anywhere; }
#studio .ws-card { display: grid; gap: 10px; padding: 24px; border: 1px solid #dddad5; border-radius: var(--ep-r-md); background: #fff; }
#studio .ws-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font: 600 15px/20px "DM Sans", sans-serif; color: var(--ep-ink); }
#studio .ws-card > :is(.ws-chip, .ws-btn) { justify-self: start; }
#studio .ws-empty { max-width: 560px; }
#studio .ws-strip { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
#studio .ws-strip > div { display: grid; gap: 6px; }
#studio .ws-chip { display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 5px; background: #e6f2e9; color: var(--ep-ink); font: 600 12px/16px "DM Sans", sans-serif; white-space: nowrap; }
#studio .ws-chip--wait { background: var(--ep-warn-bg); }
#studio .ws-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#studio .ws-card > .ws-actions { margin-top: 6px; }
#studio .ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ep-line-strong); border-radius: var(--ep-r-full); background: var(--ep-surface); color: var(--ep-ink); font: 600 14px/1 "DM Sans", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
#studio .ws-btn:hover { border-color: var(--ep-ink); }
#studio .ws-btn--primary, #studio .ws-btn[aria-pressed="true"] { border-color: var(--ep-ink); background: var(--ep-ink); color: var(--ep-surface); }
#studio .ws-btn--ghost { border-color: transparent; background: transparent; }
#studio .ws-btn--ghost:hover { border-color: var(--ep-line-strong); }
#studio .ws-btn--icon { width: 44px; padding: 0; }
#studio .ws-btn:disabled, #studio .ws-btn.is-off { opacity: .45; cursor: not-allowed; }
#studio .ws-field { display: grid; gap: 6px; min-width: 0; font: 400 13px/17px "DM Sans", sans-serif; color: var(--ep-ink-2); }
#studio .ws-field input, #studio .gst-search input, #studio .ws-select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--ep-line-strong); border-radius: var(--ep-r-sm); background: #fff; color: var(--ep-ink); font: 400 14px/1 "DM Sans", sans-serif; }
#studio .ws-field input:focus, #studio .gst-search input:focus, #studio .ws-select:focus { outline: 2px solid var(--ep-focus); outline-offset: 0; border-color: var(--ep-focus); }
#studio .ws-select { width: auto; padding: 0 12px; border-color: transparent; background: transparent; font-weight: 600; cursor: pointer; }
#studio .ws-tabs { display: flex; gap: 28px; }
#studio .ws-tabs button { min-height: 32px; padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--ep-ink-2); font: 400 13px/17px "DM Sans", sans-serif; }
#studio .ws-tabs button[aria-selected="true"] { border-bottom-color: #3c2c29; color: var(--ep-ink); font-weight: 600; }
#studio .ws-langs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ep-line); border-radius: var(--ep-r-full); background: var(--ep-neutral); }
#studio .ws-langs button { min-height: 30px; padding: 0 12px; border: 0; border-radius: var(--ep-r-full); background: transparent; color: var(--ep-ink); font: 600 12px/1 "DM Sans", sans-serif; }
#studio .ws-langs button[aria-pressed="true"] { background: var(--ep-ink); color: var(--ep-surface); }

/* Invitations: the shared card, built from the couple's theme */
#studio .inv-layout { display: grid; grid-template-columns: minmax(0, 468px) minmax(0, 470px); gap: 34px; align-items: start; margin-top: 52px; }
#studio .inv-layout--email { grid-template-columns: minmax(0, 608px) minmax(0, 332px); gap: 32px; }
#studio .inv-stage { display: grid; place-items: center; min-height: 534px; padding: 22px; border-radius: 8px; background: #f3f2ef; }
#studio .inv-side { display: grid; gap: 28px; }
#studio .inv-card { container-type: inline-size; width: min(334px, 100%); aspect-ratio: 334 / 490; margin: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--inv-ink) 24%, var(--inv-paper)); border-radius: 2px; background-color: var(--inv-paper); background-position: center; background-size: cover; color: var(--inv-ink); }
#studio .inv-card__in { display: flex; flex-direction: column; height: 100%; padding: 10.8cqw 10.2cqw 15cqw; }
#studio .inv-emblem { position: relative; align-self: center; display: grid; place-items: center; }
#studio .inv-emblem img { display: block; width: auto; max-width: 44cqw; height: auto; max-height: 30cqw; object-fit: contain; }
#studio .inv-initials { position: absolute; inset: 0 0 8%; display: flex; align-items: center; justify-content: center; font: 500 5.4cqw/1 var(--inv-heading); }
#studio .inv-emblem > .inv-initials:only-child { position: static; font-size: 12cqw; }
#studio .inv-initials span + span { margin-left: .2em; padding-left: .2em; border-left: 1px solid color-mix(in srgb, var(--inv-ink) 35%, transparent); }
#studio .inv-kicker { margin: 5.7cqw 0 0; font: 400 3.9cqw/1.3 "DM Sans", sans-serif; }
#studio .inv-names { display: grid; gap: .3em; justify-items: start; margin: 8cqw 0 0; font-family: var(--inv-display); font-size: calc(11.4cqw * var(--fit, 1)); font-weight: 400; line-height: 1.16; }
#studio .inv-names span { white-space: nowrap; }
#studio .inv-card hr { width: 100%; height: 1px; margin: auto 0 0; border: 0; background: var(--inv-ink); }
#studio .inv-date { margin: 6.6cqw 0 0; font: 400 5.7cqw/1.25 var(--inv-heading); }
#studio .inv-place { margin: 3.6cqw 0 0; font: 400 3.9cqw/1.3 "DM Sans", sans-serif; }
#studio .inv-card .is-missing { opacity: .45; }
#studio .inv-list-title { margin: 5.6cqw 0 0; font: 400 9.4cqw/1.15 var(--inv-heading); }
#studio .inv-list-day { margin: 2.4cqw 0 0; font: 400 3.9cqw/1.3 "DM Sans", sans-serif; }
#studio .inv-card dl { flex: 1; min-height: 0; overflow: hidden; display: grid; align-content: start; gap: 5.2cqw; margin: 9cqw 0 0; }
#studio .inv-card dt { font: 600 4.2cqw/1.3 "DM Sans", sans-serif; }
#studio .inv-card dd { margin: 2cqw 0 0; font: 400 4.9cqw/1.3 var(--inv-heading); }
#studio .inv-foot { margin: 5.2cqw 0 0; font: 400 3.8cqw/1.3 "DM Sans", sans-serif; overflow-wrap: anywhere; }
#studio .inv-card--list .inv-card__in { padding-bottom: 7cqw; }
#studio .inv-card--list hr { margin-top: 4cqw; }
#studio .inv-print { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin: 52px 0 32px; }
#studio .inv-print figure { flex: none; width: 286px; max-width: 100%; margin: 0; }
#studio .inv-print figure.inv-print__env { width: 340px; }
#studio .inv-print .inv-card { width: 100%; }
#studio .inv-print figcaption { margin-top: 12px; font: 600 14px/19px "DM Sans", sans-serif; }
#studio .inv-env { position: relative; width: 100%; aspect-ratio: 340 / 230; border: 1px solid color-mix(in srgb, var(--inv-ink) 24%, var(--inv-paper)); border-radius: 2px; background-color: var(--inv-paper); background-position: center; background-size: cover; color: var(--inv-ink); }
#studio .inv-env__from { position: absolute; top: 26px; left: 40px; right: 96px; margin: 0; font: 400 15px/20px var(--inv-heading); }
#studio .inv-env__stamp { position: absolute; top: 18px; right: 28px; width: 54px; height: 46px; border-radius: 2px; background: color-mix(in srgb, var(--inv-ink) 16%, var(--inv-paper)); }
#studio .inv-env__to { position: absolute; left: 75px; right: 34px; top: 116px; display: grid; gap: 21px; }
#studio .inv-env__to i { height: 1px; background: color-mix(in srgb, var(--inv-ink) 34%, transparent); }
#studio .inv-env__to i:first-child { width: 78%; }
#studio .inv-env__to i:last-child { width: 62%; }
#studio .ws-body > .ws-strip { max-width: 972px; margin-bottom: 16px; }
#studio .inv-email { display: block; }
#studio .inv-email__meta { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 0; margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid #dfdfd9; }
#studio .inv-email__meta dt { font: 600 11px/17px "DM Sans", sans-serif; color: var(--ep-ink-2); }
#studio .inv-email__meta dd { margin: 0; font: 400 13px/17px "DM Sans", sans-serif; overflow-wrap: anywhere; }
#studio .inv-email__subject { margin: 0; font: 600 22px/29px "DM Sans", sans-serif; }
#studio .inv-email__facts, #studio .inv-email__line { margin: 10px 0 0; font: 400 14px/19px "DM Sans", sans-serif; }
#studio .inv-banner { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 148px; margin: 16px 0 20px; padding: 16px 24px; border-radius: 8px; background-color: var(--inv-paper); background-position: center; background-size: cover; color: var(--inv-ink); }
#studio .inv-banner .inv-emblem img { max-width: 120px; max-height: 104px; }
#studio .inv-banner .inv-initials { font-size: 18px; }
#studio .inv-banner .inv-emblem > .inv-initials:only-child { font-size: 32px; }
#studio .inv-banner > p { display: grid; gap: 4px; margin: 0; font: 400 24px/1.15 var(--inv-display); }
#studio .inv-email .ws-btn { margin-top: 16px; }
#studio .inv-email .ws-btn + .ws-muted { margin-top: 10px; }
#studio .inv-email__small { margin: 20px 0 0; font: 400 11px/15px "DM Sans", sans-serif; color: var(--ep-ink-2); }

/* Guests & RSVPs */
#studio .gst-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: 972px; margin-bottom: 22px; }
#studio .gst-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 972px; }
#studio .gst-filters__right { display: inline-flex; align-items: center; gap: 6px; }
#studio .gst-search { position: relative; display: block; width: 278px; max-width: 100%; color: var(--ep-ink-2); }
#studio .gst-search .ws-icon { position: absolute; left: 13px; top: 13px; }
#studio .gst-search input { padding-left: 40px; }
#studio .gst-table { width: 100%; max-width: 972px; margin-top: 20px; border-collapse: collapse; table-layout: fixed; font: 400 13px/17px "DM Sans", sans-serif; text-align: left; }
#studio .gst-table th, #studio .gst-table td { padding: 0 12px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#studio .gst-table :is(th, td):first-child { width: 25.1%; padding-left: 20px; }
#studio .gst-table :is(th, td):nth-child(2) { width: 21.8%; }
#studio .gst-table :is(th, td):nth-child(3) { width: 16.7%; }
#studio .gst-table :is(th, td):nth-child(4) { width: 19.5%; }
#studio .gst-table thead th { height: 34px; background: var(--ep-neutral); color: var(--ep-ink-2); font: 600 11px/15px "DM Sans", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
#studio .gst-table thead th:first-child { border-radius: 6px 0 0 6px; }
#studio .gst-table thead th:last-child { border-radius: 0 6px 6px 0; }
#studio .gst-table tbody tr { height: 50px; border-bottom: 1px solid #dfdfd9; background: #fff; }
#studio .gst-table tbody tr.is-alt, #studio .gst-table--rsvps tbody tr:nth-child(even) { background: #fcfaf6; }
#studio .gst-table tbody th { font-weight: 600; }
#studio .gst-table tr[hidden] { display: none; }
#studio .gst-none { margin-top: 18px; }
#studio .gst-foot { margin-top: 22px; font-size: 12px; }
#studio .gst-add, #studio .gst-code { max-width: 972px; margin-bottom: 22px; }
#studio .gst-add { grid-template-columns: minmax(0, 1fr) 110px auto; align-items: end; gap: 12px 16px; }
#studio .gst-add__hint { grid-column: 1 / -1; }
#studio .gst-code { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; background: #f4f9f5; border-color: #cfe3d5; }
#studio .gst-code > div:first-child { display: grid; gap: 8px; }
#studio .gst-code__value { margin: 0; font: 600 24px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }

/* Registry */
#studio .reg-top { display: flex; align-items: center; gap: 16px; max-width: 972px; margin-bottom: 26px; }
#studio .reg-top > .ws-muted { margin-right: auto; }
#studio .reg-list { display: grid; gap: 16px; max-width: 972px; margin: 0; padding: 0; list-style: none; }
#studio .reg-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 116px; }
#studio .reg-card__text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
#studio .reg-card__text p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#studio .reg-card__tools { display: flex; align-items: center; gap: 8px; }
#studio .reg-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; width: 100%; }
#studio .reg-more { position: relative; display: inline-block; }
#studio .reg-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; display: grid; min-width: 150px; padding: 6px; border: 1px solid #dddad5; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(40, 38, 34, .14); }
#studio .reg-menu button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ep-ink); font: 400 14px/1 "DM Sans", sans-serif; text-align: left; }
#studio .reg-menu button:hover:not(:disabled) { background: var(--ep-neutral); }
#studio .reg-off, #studio .reg-undo { max-width: 972px; margin-bottom: 16px; }
#studio .reg-off { background: var(--ep-warn-bg); border-color: transparent; }
#studio .reg-bottom { display: grid; grid-template-columns: minmax(0, 424px) minmax(0, 512px); gap: 36px; align-items: start; max-width: 972px; margin-top: 28px; }
#studio .reg-preview > div:first-of-type { display: grid; gap: 8px; width: 100%; }
#studio .reg-preview__title { margin: 4px 0 0; font: 400 26px/31px "Hedvig Letters Serif", Georgia, serif; }
#studio .reg-preview__lead { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#studio .reg-preview__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font: 600 13px/18px "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1180px) {
  #studio .ws-body--inset { padding-left: 0; }
  #studio .inv-layout, #studio .inv-layout--email, #studio .reg-bottom { grid-template-columns: minmax(0, 1fr); }
  #studio .inv-layout { max-width: 608px; }
  #studio .reg-bottom { gap: 16px; }
}
@media (max-width: 820px) {
  #studio .studio-rail { display: none; }
  #studio .ws-menu-button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; min-height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ep-ink); }
  #studio .ws-menu { display: block; height: auto; padding: 8px 12px 10px; border: 0; border-bottom: 1px solid #dfdfd9; background: var(--ep-neutral); }
  #studio .is-page .studio-work__bar { gap: 8px; padding: 0 16px; }
  #studio .ws-crumb > :not(b) { display: none; }
  #studio .ws-crumb b { font-size: 15px; }
  #studio .is-page #notice { display: block; max-width: 46%; font-size: 12px; }
  #studio .ws-page { padding: 22px 16px 56px; }
  #studio .ws-head h1 { font-size: 32px; }
  #studio .ws-head p { margin-top: 10px; font-size: 15px; }
  #studio .ws-body { margin-top: 28px; }
  #studio .inv-layout { margin-top: 20px; gap: 20px; }
  #studio .inv-stage { min-height: 0; padding: 20px; }
  #studio .inv-side { gap: 16px; }
  #studio .inv-print { gap: 20px; margin: 20px 0 24px; }
  #studio .inv-banner { flex-direction: column; gap: 10px; text-align: center; }
  #studio .ws-card { padding: 18px; }
  #studio .ws-strip, #studio .gst-code, #studio .reg-card { grid-template-columns: minmax(0, 1fr); }
  #studio .ws-tabs { gap: 20px; }
  #studio .gst-top { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  #studio .gst-top .ws-btn { align-self: flex-start; }
  #studio .gst-filters { flex-wrap: wrap; }
  #studio .gst-search { width: 100%; }
  #studio .gst-add { grid-template-columns: minmax(0, 1fr) 90px; }
  #studio .gst-add .ws-actions { grid-column: 1 / -1; }
  #studio .gst-table thead { display: none; }
  #studio .gst-table, #studio .gst-table tbody { display: block; }
  #studio .gst-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; height: auto; padding: 12px 14px; }
  #studio .gst-table tbody :is(th, td) { width: auto !important; padding: 0 !important; }
  #studio .gst-table tbody td { color: var(--ep-ink-2); }
  #studio .gst-table tbody td[data-label="RSVP"] { grid-column: 2; grid-row: 1; color: var(--ep-ink); }
  #studio .gst-table tbody td:not([data-label="RSVP"]) { grid-column: 1 / -1; }
  #studio .gst-table tbody td:not([data-label="RSVP"])::before { content: attr(data-label) ": "; }
  #studio .gst-table tbody td.is-blank { display: none; }
  #studio .reg-top { flex-wrap: wrap; }
  #studio .reg-fields { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  html.ws-printing, html.ws-printing body { background: #fff !important; }
  html.ws-printing #studio .studio-rail, html.ws-printing #studio .studio-work__bar, html.ws-printing #studio .ws-menu,
  html.ws-printing #studio .ws-head, html.ws-printing #studio .ws-no-print, html.ws-printing #studio .inv-print__env { display: none !important; }
  html.ws-printing #studio .studio-shell { display: block; min-height: 0; background: #fff; }
  html.ws-printing #studio .studio-work { min-height: 0; background: #fff; }
  html.ws-printing #studio .ws-page, html.ws-printing #studio .ws-body { max-width: none; margin: 0; padding: 0; }
  html.ws-printing #studio .inv-print { display: block; margin: 0; }
  html.ws-printing #studio .inv-print figure { display: grid; place-items: center; width: auto; min-height: 9.4in; }
  html.ws-printing #studio .inv-print figure + figure { break-before: page; }
  html.ws-printing #studio .inv-print .inv-card { width: 5in; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Account card (rail footer, phone menu) and Invite */
#studio .ws-rail__foot { display: block; position: absolute; left: 10px; right: 9px; bottom: 14px; }
#studio .nav-expanded .ws-rail__foot { left: 12px; right: 11px; bottom: 16px; position: absolute; font: inherit; }
#studio .ws-rail__invite { margin-top: 10px; padding-top: 10px; border-top: 1px solid #dfdfd9; }
#studio .ws-nav--invite { color: var(--ep-success); }
#studio .ws-nav--invite span { font-weight: 600; }
#studio .acct { position: relative; }
#studio .acct-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ep-ink); text-align: left; cursor: pointer; }
#studio .acct-card:hover, #studio .acct-card[aria-expanded="true"] { background: #e9e8e3; }
#studio .acct--collapsed .acct-card { justify-content: center; padding: 6px 0; }
#studio .acct-text { display: grid; min-width: 0; }
#studio .acct-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/18px "DM Sans", sans-serif; }
#studio .acct-text small { font: 400 12px/16px "DM Sans", sans-serif; color: var(--ep-ink-2); }
#studio .nav-collapsed .acct-card:is(:hover, :focus-visible) > .ws-tip { display: block; }
#studio .acct-menu { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 8; display: grid; min-width: 210px; padding: 6px; border: 1px solid var(--ep-line); border-radius: 12px; background: var(--ep-surface); box-shadow: 0 12px 32px rgb(40 38 34 / 16%); }
#studio .acct-menu button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ep-ink); font: 600 14px "DM Sans", sans-serif; text-align: left; cursor: pointer; }
#studio .acct-menu button:hover, #studio .acct-menu button:focus-visible { background: var(--ep-neutral); }
#studio .acct-signin, #studio .studio-account .acct-signin { min-height: 40px; padding: 0 18px; border: 1px solid var(--ep-ink); border-radius: 999px; background: var(--ep-ink); color: var(--ep-surface); font: 600 14px "DM Sans", sans-serif; cursor: pointer; }
.avatar { display: inline-block; flex: none; border-radius: 50%; object-fit: cover; background: #efe9dc; }
.avatar--initials { display: inline-grid; place-items: center; background: #215438; color: #fcfcfa; font-family: "DM Sans", sans-serif; font-weight: 600; letter-spacing: .02em; }
.avatar--pending { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--ep-neutral, #f6f5f2); border: 1px dashed rgb(40 38 34 / 30%); color: #64645f; }
#studio .ws-menu__foot { display: grid; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #dfdfd9; }
#studio .ws-menu .acct-menu { bottom: auto; top: calc(100% + 6px); }
#studio .gst-top__actions { display: flex; flex-wrap: wrap; gap: 8px; }
#studio .studio-tools .tools-invite { color: var(--ep-success); }

/* People dialogs */
dialog.people-dialog { width: min(480px, 94vw); }
dialog.people-dialog .people-lead { margin: -4px 0 18px; }
dialog.people-dialog form { gap: 12px; }
dialog.people-dialog label > span { color: #282622; font-weight: 600; }
dialog.people-dialog .invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
dialog.people-dialog .invite-actions button { flex: 1 1 180px; justify-content: center; }
dialog.people-dialog .people-status { margin: 0; min-height: 20px; font-size: 14px; }
dialog.people-dialog .people-status[data-kind="error"] { color: #9b2c1f; font-weight: 600; }
dialog.people-dialog .people-status[data-kind="ok"] { color: #215438; font-weight: 600; }
dialog.people-dialog .people-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff1c9; color: #694400; font-size: 14px; }
dialog.people-dialog .invite-made { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #f6f5f2; }
dialog.people-dialog .invite-made p { margin: 0; color: #282622; font-weight: 600; }
dialog.people-dialog .invite-made .publish-link { margin: 0; background: #fff; }
dialog.people-dialog .access { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(40, 38, 34, .14); }
dialog.people-dialog .access h3 { margin: 0 0 10px; font: 600 14px "DM Sans", sans-serif; }
dialog.people-dialog ul.access-list { margin: 0; gap: 4px; }
dialog.people-dialog .access-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
dialog.people-dialog .access-who { display: grid; flex: 1; min-width: 0; }
dialog.people-dialog .access-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
dialog.people-dialog .access-who small { color: #64645f; font-size: 13px; }
dialog.people-dialog .access-row .link { flex: none; }
dialog.acct-dialog .acct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
dialog.acct-dialog .acct-email { margin: 0; color: #64645f; overflow-wrap: anywhere; }
dialog.acct-dialog fieldset { margin: 0; padding: 0; border: 0; }
dialog.acct-dialog legend { margin-bottom: 8px; font: 600 13px "DM Sans", sans-serif; color: #282622; }
dialog.acct-dialog .avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
dialog.studio-dialog .avatar-grid button { display: grid; place-items: center; width: 52px; height: 52px; min-height: 52px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; }
dialog.studio-dialog .avatar-grid button[aria-checked="true"] { border-color: #215438; }
dialog.acct-dialog label small { color: #64645f; }
dialog.acct-dialog .acct-check { display: flex; align-items: center; gap: 10px; color: #282622; font-size: 15px; }
dialog.acct-dialog .acct-check input { width: 20px; height: 20px; min-height: 0; accent-color: #215438; }
dialog.acct-dialog .acct-note { margin: 0; font-size: 14px; }
#studio .gst-general { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
#studio .gst-general h2 { margin: 0 0 4px; }
#studio .ws-btn--small { min-height: 34px; padding: 0 12px; font-size: 13px; }
#studio .gst-unmatched { margin-bottom: 16px; border-color: #e9d9a8; background: #fffaf0; }
#studio .gst-unmatched__list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
#studio .gst-unmatched__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
#studio .gst-unmatched__list small { color: var(--ep-ink-2); }
dialog.people-dialog *, dialog.people-dialog *::before { box-sizing: border-box; }
dialog.people-dialog form, dialog.people-dialog .invite-made { grid-template-columns: minmax(0, 1fr); min-width: 0; }
dialog.people-dialog input:not([type=checkbox]) { width: 100%; }
dialog.studio-dialog ul.access-list button.link { width: auto; min-height: 0; padding: 0; border: 0; background: none; font: 600 14px "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: .2em; }
dialog.people-dialog .publish-link { min-width: 0; }
@media (max-width: 820px) { #studio .studio-tools .tools-invite { display: none; } }
dialog.people-dialog .invite-made[hidden] { display: none; }
dialog.people-dialog .invite-link { display: grid; gap: 10px; margin-bottom: 14px; }
dialog.people-dialog .invite-link h3, dialog.people-dialog .invite-form h3 { margin: 0; font: 600 15px "DM Sans", sans-serif; color: #282622; }
dialog.people-dialog .invite-link .people-lead { margin: 0; }
dialog.people-dialog .invite-link .publish-link { margin: 0; }
dialog.people-dialog .invite-link .publish-link[hidden] { display: none; }
dialog.people-dialog .invite-link button.link { justify-self: start; }
dialog.people-dialog .invite-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(40, 38, 34, .14); }
dialog.people-dialog { max-height: 92dvh; overflow: auto; }
#studio .gst-names { display: block; margin-top: 2px; font: 400 13px/1.4 "DM Sans", sans-serif; color: var(--ep-ink-2); }
#studio .gst-add__names { grid-column: 1 / -1; }
#studio .gst-add__names textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--ep-line-strong); border-radius: 8px; font: 400 15px/1.4 "DM Sans", sans-serif; box-sizing: border-box; }
#studio .gst-add__names em { font-style: normal; color: var(--ep-ink-2); font-weight: 400; }
#studio .gst-table--rsvps { table-layout: auto; max-width: 1060px; }
#studio .gst-table--rsvps td[data-label="Note"] { min-width: 200px; max-width: 320px; white-space: normal; padding-top: 10px; padding-bottom: 10px; }
#studio .gst-table th small.gst-names { white-space: normal; }
#studio .gst-table th:last-child { width: 170px; }
#studio .gst-table td.gst-relink { overflow: visible; white-space: nowrap; text-align: right; }
/* The one-link card and "Not on your list yet" line up with the table (same 972px column). */
#studio .gst-general, #studio .gst-unmatched { max-width: 972px; box-sizing: border-box; }
/* Painting paused (public.studio_status): one quiet line instead of a paint button. */
#studio .paused-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--ep-line); border-radius: 12px; background: #f4f2ee; font: 400 14px/1.4 "DM Sans", sans-serif; color: var(--ep-ink); }
#studio .paused-line strong { display: block; font-weight: 600; font-size: 15px; }
#studio .paused-line p { margin: 2px 0 0; color: var(--ep-ink-2); }
#studio .paused-line .paused-asked { margin: 0; font-size: 13px; }

/* Delete this wedding (owner, account menu) and Remove a household (Figma 06aa). */
#studio .acct-menu button.acct-danger { color: #9b2c1f; }
dialog.delete-dialog h3 { margin: 4px 0 0; font: 600 13px "DM Sans", sans-serif; color: #282622; }
dialog.delete-dialog .delete-list { margin: 0; padding-left: 20px; list-style: disc; display: grid; gap: 2px; color: #282622; font-size: 15px; line-height: 1.4; }
dialog.delete-dialog .delete-warn { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid #c4963c; border-radius: 12px; background: var(--ep-warn-bg, #fff1c9); color: #282622; font-size: 15px; }
dialog.delete-dialog .delete-warn p { margin: 0; color: #282622; }
dialog.delete-dialog .delete-list li { display: list-item; }
dialog.delete-dialog .primary.danger { background: #9e2a22; border-color: #9e2a22; color: #fff; width: 100%; justify-content: center; }
dialog.delete-dialog .primary.danger:disabled { opacity: .45; cursor: not-allowed; }
dialog.delete-dialog .link { justify-self: start; }
#studio .ws-btn--danger { border-color: #9e2a22; background: #9e2a22; color: #fff; }
#studio .gst-confirm td { padding: 0 12px 12px; }
#studio .gst-confirm__box { display: grid; gap: 6px; padding: 14px; border: 1px solid #c4963c; border-radius: 12px; background: var(--ep-warn-bg, #fff1c9); color: #282622; }
#studio .gst-confirm__box p { margin: 0; }
#studio .gst-confirm__box .ws-actions { margin-top: 6px; }
