:root { color-scheme: light; --paper: #f8f5ee; --ink: #573c35; --accent: #994c39; --muted: #79665c; --line: #d9c9b4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
header { padding: 20px clamp(20px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { color: var(--accent); text-decoration: none; font: 2.5rem/1 "Italianno", cursive; }
.brand span { display: block; color: var(--muted); font: .75rem/1.7 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
main { max-width: 1240px; margin: 0 auto; padding: 35px 24px 60px; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 8px; }
h2 { font-size: 1.8rem; margin: 0 0 10px; }
h3 { font-size: 1.4rem; margin: 24px 0 12px; }
p { line-height: 1.6; }
.muted { color: var(--muted); font-size: .875rem; }
button, input, select, textarea { font: 1rem "DM Sans", sans-serif; }
button { cursor: pointer; border-radius: 5px; min-height: 44px; padding: 11px 18px; }
button:disabled { opacity: .55; cursor: default; }
.primary { color: white; background: var(--accent); border: 1px solid var(--accent); }
.primary:hover { background: #7e3d2e; }
.secondary { border: 1px solid var(--line); color: var(--ink); background: #fffdf8; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input, select, textarea { min-height: 48px; width: 100%; padding: 12px; border: 1px solid #b8a697; background: #fff; color: var(--ink); border-radius: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: .875rem; margin-bottom: 7px; }
.login { max-width: 460px; margin: 6vh auto; padding: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf8; }
.login .primary { width: 100%; margin-top: 20px; }
.error { color: #942a27; background: #fbedeb; padding: 12px; border-radius: 4px; font-size: .9375rem; line-height: 1.5; }
.error:empty { display: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.page-heading p { margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.stat { border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; padding: 20px; }
.stat strong { display: block; font: 2.4rem "Cormorant Garamond", serif; }
.stat span { font-size: .875rem; color: var(--muted); }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; align-items: end; margin: 25px 0 20px; }
.table-wrap { background: #fffdf8; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
caption { text-align: left; padding: 20px; color: var(--muted); }
th { font-weight: 500; color: var(--muted); text-align: left; background: #f1eadf; }
th, td { padding: 16px; border-bottom: 1px solid #e8ddce; }
td { vertical-align: middle; }
td strong { font-weight: 500; }
td small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 5px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 20px; font-size: .8125rem; background: #f0e9df; }
.accepted { color: #435938; background: #edf2e6; }
.declined { color: #8c4a38; background: #f9e9e0; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; gap: 12px; font-size: .875rem; }
.pagination div { display: flex; gap: 8px; }
.ask { margin-top: 32px; padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); background: #fffdf8; border-radius: 8px; }
.ask-form { display: flex; align-items: flex-end; gap: 12px; }
.ask-form .question-field { flex: 1; }
.ask textarea { resize: vertical; min-height: 65px; }
.answer { margin-top: 20px; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.answer p { margin-top: 0; }
.answer details { margin-top: 15px; }
.answer summary { cursor: pointer; min-height: 44px; }
.match { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); gap: 10px; }
dialog { border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fffdf8; padding: 28px; width: min(640px, calc(100% - 24px)); max-height: calc(100svh - 32px); overflow: auto; }
dialog::backdrop { background: #38281fc0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; }
dl { margin: 18px 0; }
dt { color: var(--muted); font-size: .8125rem; margin-top: 16px; }
dd { margin: 6px 0 0; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-line; }
.guest-detail { padding: 13px 0; border-top: 1px solid var(--line); }
.guest-detail strong { font-weight: 500; }
.history-entry { padding: 15px 0; border-top: 1px solid var(--line); }
.history-entry summary { min-height: 44px; cursor: pointer; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.contact { padding: 16px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; }
.contact .form-row { margin-top: 0; }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.loading { text-align: center; padding: 40px; }
[hidden] { display: none !important; }
@media (max-width: 850px) { .filters { grid-template-columns: 1fr 1fr; } .filters > div:first-child { grid-column: 1 / -1; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  main { padding: 26px 16px 40px; }
  .brand { font-size: 2.1rem; }
  .login { padding: 24px; }
  .stat { padding: 16px; }
  table, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  caption { display: block; padding: 16px; }
  tr { padding: 16px; border-top: 1px solid var(--line); }
  td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 16px; }
  td::before { content: attr(data-label); color: var(--muted); flex-shrink: 0; }
  td:first-child { display: block; font-size: 1rem; }
  td:first-child::before, td:last-child::before { display: none; }
  td:last-child button { width: 100%; margin-top: 10px; }
  .ask-form { flex-direction: column; align-items: stretch; }
  dialog { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { dialog[open] { animation: open 160ms ease-out; } @keyframes open { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }
body {font-size:1.125rem;}
button {min-height:48px;}
.primary,.secondary {min-height:48px;}
.table-wrap {overflow-x:auto;}
.table-wrap table {min-width:1550px;}
.table-wrap td {max-width:230px;overflow-wrap:anywhere;white-space:pre-line;}
.whatsapp {display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;font-size:1rem;padding:11px 14px;border-radius:5px;}
.stats {grid-template-columns:repeat(5,minmax(0,1fr));}
.side-summary {border:1px solid var(--line);border-radius:8px;padding:20px;background:#fffdf8;}
.side-summary>summary {min-height:48px;cursor:pointer;}
.breakdown {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;}
.breakdown div {padding:8px;background:#f8f5ee;}
.breakdown dt {margin:0;}
.breakdown dd {font-size:1.25rem;}
.flagged {background:#fff3dc;}
#family-form>label,#host-form>label {margin-top:18px;}
#family-form button[type=submit],#host-form button[type=submit] {margin-top:20px;}
.private-notes {white-space:pre-line;overflow-wrap:anywhere;}
#message-text {font-family:'Noto Sans Gujarati','DM Sans',sans-serif;resize:vertical;}
#copy-message {margin-top:20px;}
@media(max-width:900px){.stats {grid-template-columns:repeat(2,minmax(0,1fr));}.breakdown {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.table-wrap table {min-width:0;}.table-wrap td {max-width:none;}.table-wrap .whatsapp {white-space:normal;}.table-wrap td:nth-last-child(2) {display:block;}.table-wrap td:nth-last-child(2)::before {display:none;}.table-wrap td:nth-last-child(2) .secondary {width:100%;}.stats .stat span {font-size:1rem;}.match {flex-wrap:wrap;}}

.host-dietary-person {border:1px solid var(--line);padding:16px;margin:16px 0;border-radius:8px;}

.event-filter {max-width:420px;margin:24px 0;}

#family-country {max-width:240px;}
.phone-digits {border:0;min-width:0;padding:0;margin:20px 0 0;}
.phone-digits legend {font-size:.875rem;margin-bottom:8px;padding:0;}
.digit-boxes {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:clamp(3px,1vw,8px);}
.digit-boxes-nine {grid-template-columns:repeat(9,minmax(0,1fr));}
.phone-digit {min-width:0;width:100%;min-height:52px;padding:8px 0;text-align:center;border-radius:7px;background:#fffcf7;font-size:1.2rem;}

.seats-form {margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:8px;}
.seats-form input {max-width:140px;}
#family-event-field {margin-top:18px;}

.remove-invitation {color:#942a27;border-color:#c99587;}
