:root {
  --ink: #302831;
  --muted: #685f67;
  --line: #e4dce0;
  --bg: #f6f3f4;
  --accent: #a52c3c;
  --accent-soft: #fbeced;
  --focus: #8c2030;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Microsoft JhengHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, input, select, textarea { outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); }
header { background: #7d202b; color: #fff; padding: 26px max(24px, calc((100vw - 1140px)/2)) 24px; border-bottom: 4px solid #bd5660; }
.toprow { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { font-size: 14px; letter-spacing: .09em; color: #f4ccd1; }
h1 { font-size: 30px; margin: 3px 0 4px; line-height: 1.4; letter-spacing: .02em; }
.event { font-size: 14px; color: #f5dfe2; margin: 0; }
.datechip { text-align: center; border: 1px solid #b26a73; border-radius: 10px; min-width: 106px; padding: 9px 14px; }
.datechip strong { font-size: 25px; line-height: 1.2; display: block; }
.datechip span { font-size: 14px; color: #f5dfe2; }
main { max-width: 1188px; padding: 24px; margin: auto; }
.event-notice { padding: 26px 30px; margin-bottom: 24px; line-height: 1.9; }
.greeting { margin: 0 0 18px; }
.event-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.event-notice h2 { font-size: 18px; margin-bottom: 12px; }
.notice-rules { padding-left: 24px; margin: 0; }
.notice-rules li { padding-left: 4px; margin: 12px 0; }
.drink-reminder { color: #b21f32; margin: 22px 0 0; }
.notice { padding: 12px 16px; border: 1px solid #e2b7bd; background: #fff4f5; border-radius: 9px; font-size: 14px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notice strong { color: #7d202b; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.maincol { min-width: 0; }
.steps { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.step { border: 0; background: transparent; color: var(--muted); padding: 5px 0; border-bottom: 2px solid transparent; }
.step[aria-current="step"] { font-weight: 750; color: #8a2532; border-color: #a52c3c; }
.step-line { width: 50px; height: 1px; background: #cfc2c8; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
h2 { font-size: 22px; margin: 0; line-height: 1.4; }
h3 { font-size: 18px; margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 14px; margin: 5px 0 18px; }
.bottom-zero { margin-bottom: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.pad { padding: 22px; }
.employee-head { display: flex; justify-content: space-between; align-items: center; background: #fcf8f9; border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 12px; }
.employee-head strong { overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-hint { font-size: 14px; color: var(--muted); }
label, .label, legend { font-size: 14px; font-weight: 650; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
input, select, textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #bdb0b7; border-radius: 7px; color: var(--ink); padding: 10px 11px; min-height: 45px; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23685f67' stroke-width='1.8' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input::placeholder, textarea::placeholder { color: #80747c; font-size: 14px; }
textarea { resize: vertical; min-height: 94px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #a52c3c; background-color: #fff6f7; }
.meal-options { display: flex; gap: 8px; }
.meal-choice { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #bdb0b7; border-radius: 7px; padding: 9px 10px; min-height: 45px; flex: 1; cursor: pointer; font-weight: 500; }
.meal-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: #7d202b; }
.meal-choice input { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }
.meal-choice span { white-space: nowrap; }
.guests { border-left: 3px solid #eadbdf; padding-left: 16px; margin-top: 19px; }
.guest { border-top: 1px solid var(--line); padding: 16px 0; }
.guest:first-child { border-top: 0; padding-top: 0; }
.guest:last-child { padding-bottom: 0; }
.guest-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 14px; color: var(--muted); }
.guest-fields { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 12px; }
.guest-fields.child-fields { grid-template-columns: 1fr 1fr; }
.child-note { font-size: 14px; color: #7d202b; margin: 10px 0 0; }
.chair-choice { margin-top: 10px !important; }
.btn { border: 1px solid transparent; border-radius: 8px; min-height: 44px; padding: 9px 18px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #852332; }
.secondary { background: #fff; border-color: #c6b8bf; color: var(--ink); }
.ghost { background: transparent; border: 0; color: var(--muted); padding: 5px 8px; min-height: 40px; font-size: 14px; }
.ghost:hover { background: #f5ebee; border-radius: 6px; }
.remove { color: #992a39; white-space: nowrap; }
.add-guest { margin-top: 16px; border: 0; background: #f8ebee; color: #7d2935; font-size: 14px; padding: 8px 12px; min-height: 42px; border-radius: 7px; }
.add-employee { width: 100%; border: 1px dashed #b98c97; background: transparent; min-height: 52px; margin: 0 0 22px; color: #7d2935; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0 30px; }
.footnote { color: var(--muted); font-size: 14px; max-width: 330px; }
.summary { position: sticky; top: 22px; }
.summary .card { padding: 22px; }
.summary h2 { font-size: 18px; margin-bottom: 18px; }
.bigcount { font-size: 42px; font-weight: 750; line-height: 1.15; letter-spacing: -.03em; }
.bigcount small { font-size: 14px; font-weight: 500; margin-left: 7px; letter-spacing: 0; }
.bigcount.over-limit { color: #a32034; }
.arrival-count { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 19px 0 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); gap: 8px; }
.counts strong { display: block; font-size: 20px; }
.counts span { font-size: 14px; color: var(--muted); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin: 8px 0; }
.fee-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.fee-row strong { color: #8b2433; }
.summary-note { font-size: 14px; color: var(--muted); margin: 17px 0 0; }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; margin-top: 2px; }
.checkline input { width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 4px 0 0; accent-color: var(--accent); }
.privacy { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.small-btn { font-size: 14px; min-height: 38px; padding: 5px 10px; white-space: nowrap; }
.errors { border: 1px solid #d9a9b0; border-left: 4px solid #aa283c; background: #fff1f3; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; color: #892535; }
.errors ul { margin: 0; padding-left: 18px; }
.errors a { color: inherit; }
.limit-hint { color: #8c2938; font-size: 14px; margin-top: -10px; }
.review-scroll { overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.review-table th { color: var(--muted); font-weight: 650; text-align: left; white-space: nowrap; }
.review-table th, .review-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; vertical-align: top; }
.review-table th:first-child, .review-table td:first-child { padding-left: 0; }
.review-table td:first-child { min-width: 180px; }
.review-table td:not(:first-child) { white-space: nowrap; }
.member-detail { display: block; color: var(--muted); font-size: 14px; }
.review-contact { margin-top: 18px; font-size: 14px; overflow-wrap: anywhere; }
.arrangement-note { font-size: 14px; color: #8a2938; margin-bottom: 0; }
.dialog { border: none; border-radius: 14px; max-width: 560px; width: calc(100% - 32px); padding: 30px; color: var(--ink); box-shadow: 0 24px 70px #30202a40; }
.dialog::backdrop { background: #30202888; }
.dialog h2 { margin: 12px 0; }
.dialog p { font-size: 16px; }
.success-mark { font-size: 27px; width: 52px; height: 52px; border-radius: 50%; background: #f9e5e9; color: #9a2a3d; display: grid; place-items: center; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.receipt { background: var(--bg); padding: 14px; border-radius: 7px; font-size: 16px; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
  .summary .card { padding: 18px; }
  .fields, .guest-fields { grid-template-columns: 1fr 1fr; }
  .fields > :last-child, .guest-fields > :last-child { grid-column: 1 / -1; }
  .guest-fields.child-fields > :last-child { grid-column: auto; }
}
@media (max-width: 700px) {
  header { padding: 19px 18px; }
  h1 { font-size: 25px; }
  .datechip { display: none; }
  main { padding: 18px 14px; }
  .event-notice { padding: 20px 18px; }
  .layout { display: flex; flex-direction: column; }
  .maincol, .summary { width: 100%; }
  .summary { display: contents; }
  .summary-counts { order: -1; width: 100%; padding: 16px !important; }
  .summary h2 { margin-bottom: 8px; }
  .bigcount { font-size: 30px; }
  .counts { margin: 12px 0 0; padding-bottom: 0; border: 0; }
  .counts strong { display: inline; font-size: 18px; margin-right: 4px; }
  .summary-detail { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
  .summary-note, .fee-row { grid-column: 1 / -1; }
  .summary-note { margin-top: 6px; }
  .notice { align-items: flex-start; }
  .notice .small-btn { flex-shrink: 0; }
  .pad { padding: 16px; }
  .employee-head { padding: 12px 16px; }
  .guests { padding-left: 12px; }
  .two, .fields, .guest-fields, .guest-fields.child-fields { grid-template-columns: 1fr; }
  .fields > :last-child, .guest-fields > :last-child { grid-column: auto; }
  .footer { align-items: flex-start; }
  .footer .primary { flex-shrink: 0; }
  .dialog { padding: 22px; }
}
@media print {
  header { background: white; color: black; }
  .notice, nav, .footer, .dialog { display: none; }
  .layout { display: block; }
}
