/* Govindam DigInvites, website / editor / admin / account / guest pages.
   Follows DESIGN-apple.md exactly, with garnet (#a8203a) as the single accent in place of Action Blue.
   Weights 300/400/600/700 only (no 500). No shadows on chrome. Radii: 8 utility, 11 pearl, 18 cards, pill.
   Never loaded by the five invitation templates. */
:root {
  --sys: 'SF Pro Text', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --sys-display: 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --primary: #a8203a; --primary-focus: #c2334e; --on-primary: #ffffff;
  --ink: #1d1d1f; --ink-80: #333333; --ink-48: #7a7a7a;
  --canvas: #ffffff; --parchment: #f5f5f7; --pearl: #fafafc;
  --divider-soft: #f0f0f0; --hairline: #e0e0e0; --hair-a: rgba(0, 0, 0, .08);
  --ok: #248a3d; --warn: #b25000; --off: #7a7a7a;
  --r-sm: 8px; --r-md: 11px; --r-lg: 18px; --r-pill: 9999px;
}

/* type: body 17/400/1.47, captions 14, display 600 with tight tracking */
html body { font: 400 17px/1.47 var(--sys); letter-spacing: -0.374px; color: var(--ink); background: var(--parchment); -webkit-font-smoothing: antialiased; }
html body h1, html body h2, html body h3 { font-family: var(--sys-display) !important; font-weight: 600 !important; color: var(--ink); }
html body h1 { font-size: 34px; line-height: 1.18; letter-spacing: -0.374px; }
html body h2 { font-size: 21px; line-height: 1.19; letter-spacing: 0.231px; }
html body h3 { font-size: 17px; line-height: 1.24; letter-spacing: -0.374px; }
@media (max-width: 419px) { html body h1 { font-size: 28px; } }
html body .muted, html body .hint, html body .hint-c, html body .lead { color: var(--ink-48); font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; }
html body a { color: var(--primary); }
html body strong, html body b { font-weight: 600; }
html body :focus-visible { outline: 2px solid var(--primary-focus) !important; outline-offset: 2px; box-shadow: none !important; }

/* frosted sub-nav: parchment at 80% with blur, hairline below, no shadow */
html body header.abar, html body .ebar, html body > header {
  background: rgba(245, 245, 247, .8) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none !important; border: 0 !important; border-bottom: 1px solid var(--hair-a) !important; min-height: 52px; }

/* buttons */
html body .abtn, html body .ebtn, html body .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 11px 22px !important;
  font: 400 17px/1 var(--sys) !important; letter-spacing: -0.374px !important; text-transform: none !important; text-decoration: none !important;
  background: var(--primary) !important; color: var(--on-primary) !important; border: 1px solid var(--primary) !important; border-radius: var(--r-pill) !important;
  box-shadow: none !important; filter: none !important; cursor: pointer; transition: transform .12s ease; }
html body .abtn:active, html body .ebtn:active, html body .btn:active { transform: scale(.95); }
/* secondary: ghost pill */
html body .abtn.ghost, html body .ebtn.ghost, html body .btn.ghost { background: var(--canvas) !important; color: var(--primary) !important; border: 1px solid var(--primary) !important; }
/* compact actions inside rows and cards: pearl capsule */
html body .abtn.small, html body .ebtn.small, html body .btn.sm {
  min-height: 36px; padding: 8px 14px !important; font: 400 14px/1.29 var(--sys) !important; letter-spacing: -0.224px !important;
  background: var(--pearl) !important; color: var(--ink-80) !important; border: 3px solid var(--divider-soft) !important; border-radius: var(--r-md) !important; }
html body .abtn.small.ok { background: var(--primary) !important; color: var(--on-primary) !important; border-color: var(--primary) !important; }
html body .abtn:disabled, html body .ebtn:disabled, html body .btn:disabled { color: var(--ink-48) !important; opacity: .6; cursor: default; transform: none; }

/* utility cards: white, 1px hairline, 18px, 24px padding, no shadow */
html body .acard, html body .panel, html body .tile, html body .ev, html body .tpl, html body .step, html body .eform .card {
  background: var(--canvas) !important; border: 1px solid var(--hairline) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; }
html body .acard, html body .panel { padding: 24px; }
html body .row { background: var(--canvas) !important; border: 1px solid var(--hairline) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; padding: 17px 24px; }
html body .row h3, html body .inv h3 { font: 600 17px/1.24 var(--sys) !important; letter-spacing: -0.374px !important; }
html body .row p, html body .inv p { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-48); }

/* status: a dot and plain words (caption, 400) */
html body .pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 0; background: none !important; border: 0; border-radius: 0;
  font: 400 14px/1.29 var(--sys) !important; letter-spacing: -0.224px !important; text-transform: none !important; color: var(--primary) !important; }
html body .pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html body .pill.ok { color: var(--ok) !important; } html body .pill.hid { color: #a1162c !important; } html body .pill.off { color: var(--off) !important; } html body .pill.wait { color: var(--warn) !important; }
html body .atag { background: var(--ink) !important; color: #fff !important; border-radius: var(--r-sm) !important; padding: 6px 12px !important;
  font: 400 12px/1 var(--sys) !important; letter-spacing: -0.12px !important; text-transform: none !important; }

/* admin sections: option chips (white pill, hairline; selected = 2px accent ring) */
html body .atabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; margin-bottom: 24px; background: none !important; border: 0 !important; overflow: visible; }
html body .atabs button { min-height: 40px !important; padding: 0 16px !important; border-radius: var(--r-pill) !important; background: var(--canvas) !important;
  border: 1px solid var(--hairline) !important; box-shadow: none !important; font: 400 14px/1 var(--sys) !important; letter-spacing: -0.224px !important; color: var(--ink) !important; }
html body .atabs button[aria-selected="true"] { border: 2px solid var(--primary) !important; padding: 0 15px !important; font-weight: 600 !important; color: var(--ink) !important; }

/* labels: caption-strong */
html body label { font: 600 14px/1.29 var(--sys); letter-spacing: -0.224px; color: var(--ink); }
html body label.check, html body label.consent, html body label.toggle, html body .crop-zoom { font-weight: 400; }

/* fields: 44px, 1px rgba(0,0,0,.08), pill (search-input grammar); textareas use the card radius */
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html body select {
  min-height: 44px; padding: 0 20px !important; font: 400 17px/1.3 var(--sys) !important; letter-spacing: -0.374px; color: var(--ink);
  background-color: var(--canvas) !important; border: 1px solid var(--hair-a) !important; border-radius: var(--r-pill) !important; box-shadow: none !important; }
html body textarea { padding: 12px 20px !important; font: 400 17px/1.47 var(--sys) !important; letter-spacing: -0.374px; color: var(--ink);
  background: var(--canvas) !important; border: 1px solid var(--hair-a) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; }
html body input:focus, html body select:focus, html body textarea:focus { outline: 2px solid var(--primary-focus) !important; outline-offset: 0; border-color: transparent !important; }
html body input::placeholder, html body textarea::placeholder { color: var(--ink-48); }
/* dropdowns: same pill, with a quiet chevron */
html body select { -webkit-appearance: none; appearance: none; padding-right: 40px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 18px center !important; background-size: 12px 8px !important; }
html body label.inline select { width: auto; min-width: 120px; margin: 0 0 0 8px; }
html body input[type=checkbox], html body input[type=radio], html body input[type=range] { accent-color: var(--primary); }

/* dialogs: separation comes from the dimmed backdrop, not a shadow */
html body dialog { border-radius: var(--r-lg) !important; border: 1px solid var(--hairline) !important; box-shadow: none !important; background: var(--canvas); }
html body dialog::backdrop { background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .dlg-x { width: 44px; height: 44px; border-radius: 50% !important; border: 0 !important; background: rgba(210, 210, 215, .64) !important; color: var(--ink) !important; box-shadow: none !important; }

/* tables (guest list) */
html body table { border: 1px solid var(--hairline) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; overflow: hidden; }
html body th { background: var(--parchment) !important; font: 600 14px/1.29 var(--sys) !important; letter-spacing: -0.224px; color: var(--ink); }
html body td { font-size: 14px; letter-spacing: -0.224px; }
html body .chip { border-radius: var(--r-pill); font: 400 12px/1.6 var(--sys) !important; letter-spacing: -0.12px; }

/* toast: dark utility */
html body .toast { border-radius: var(--r-sm) !important; background: var(--ink) !important; color: #fff !important; font: 400 14px/1.29 var(--sys) !important; letter-spacing: -0.224px; box-shadow: none !important; }

/* editor details */
html body .step > summary { font: 600 21px/1.19 var(--sys-display) !important; letter-spacing: 0.231px !important; color: var(--ink); }
html body .step > summary .num { font: 600 14px/1 var(--sys) !important; background: var(--ink) !important; color: #fff !important; }
html body .lockbox { background: var(--parchment) !important; border: 0 !important; border-radius: var(--r-lg) !important; }
html body .namecheck { background: var(--parchment); border-radius: var(--r-lg); }
html body .etabs button { border-radius: var(--r-pill) !important; font: 400 17px/1 var(--sys) !important; box-shadow: none !important; }
html body .etabs button.on { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
/* blessing picker: option chips (white, hairline, selected = 2px accent ring) */
html body .god { border: 1px solid var(--hairline) !important; border-radius: var(--r-lg) !important; background: var(--canvas) !important; box-shadow: none !important;
  font: 400 14px/1.29 var(--sys) !important; letter-spacing: -0.224px; color: var(--ink) !important; }
html body .god[aria-pressed="true"] { border: 2px solid var(--primary) !important; background: var(--canvas) !important; }
/* phones: the header keeps only back, logo, Publish and the profile photo */
@media (max-width: 600px) {
  html body .ebar .ebtn { padding: 0 16px !important; font-size: 15px !important; min-height: 40px; }
  html body .ebar #saveDraft { display: none !important; }
  html body .ebar .eactions { gap: 6px; }
}
@media (min-width: 601px) { html body #saveDraft2 { display: none !important; } }

/* status messages: red for errors, green for success (contrast 4.5:1 or better) */
html body .msg-error, html body .msg-ok, html body .msg-info { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 14px; border-radius: var(--r-md);
  font: 400 14px/1.43 var(--sys) !important; letter-spacing: -0.224px; }
html body .msg-error { background: #fdecee !important; color: #a1162c !important; }
html body .msg-ok { background: #e8f5ec !important; color: #1b6b33 !important; }
html body .msg-info { background: var(--parchment) !important; color: var(--ink) !important; }
html body .msg-error::before, html body .msg-ok::before { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/18px var(--sys); color: #fff; text-align: center; }
html body .msg-error::before { content: '!'; background: #c4172c; }
html body .msg-ok::before { content: '✓'; background: #248a3d; }
html body #saveState.msg-ok, html body #saveState.msg-info, html body #saveState.msg-error { display: inline-flex; margin-top: 0; padding: 4px 10px; }
html body .toast.msg-error { background: #a1162c !important; color: #fff !important; }
html body .toast.msg-ok { background: #1b6b33 !important; color: #fff !important; }
html body .toast.msg-error::before, html body .toast.msg-ok::before { display: none; }
/* contrast: secondary text #6e6e73 (5.0:1 on white, 4.6:1 on parchment) */
:root { --ink-48: #6e6e73; --off: #6e6e73; }
.preview-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; }
html body .btn.ghost.danger, html body .abtn.danger { color: #a1162c !important; border-color: #a1162c !important; }
html body .more-fields > summary { font: 400 15px/1.3 var(--sys) !important; letter-spacing: -0.24px !important; color: var(--primary) !important; list-style: none; }
html body .more-fields > summary::-webkit-details-marker { display: none; }
html body .more-fields > summary::before, html body .more-fields > summary::after { content: none !important; }
html body .more-fields > summary::after { content: ' ›' !important; display: inline !important; position: static !important; }
html body .more-fields[open] > summary::after { content: ' ⌄' !important; }
