:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --surface: #fff;
  --ink: #271f1a;
  --muted: #685e55;
  --line: #e9e3da;
  --soft: #faf8f4;
  --gold: #ffc64b;
  --accent-ink: #5e360d;
  --green: #266047;
  --green-bg: #eaf5ee;
  --red: #943d46;
  --red-bg: #fbeced;
  --blue: #3b5573;
  --blue-bg: #edf2f8;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, .choice input:focus-visible + span {
  outline: 2px solid #884309;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; }
ul { padding: 0; margin: 0; list-style: none; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner, .shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 1.08rem; font-weight: 760; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; min-height: 41px; font-size: .9rem; font-weight: 650; color: inherit; }
.share { padding: 0 13px; background: var(--surface); border-color: var(--line); white-space: nowrap; }
.share:hover, .today-button:hover { background: var(--soft); border-color: #d7c8b7; }

.shell { padding-top: 30px; }
.hero { position: relative; display: flex; align-items: center; gap: 20px; min-height: 255px; padding: 36px 39px; isolation: isolate; overflow: hidden; border-radius: 25px; background: #ffc754; }
.hero-copy { z-index: 1; }
.hero h1 { margin-top: 15px; font-size: clamp(2.45rem, 5vw, 4.65rem); line-height: 1.14; letter-spacing: -.06em; font-weight: 850; }
.hero p { margin-top: 12px; font-size: 1rem; color: #513416; line-height: 1.55; }
.day-label, .date-nav { display: inline-flex; align-items: center; }
.day-label { gap: 8px; padding: 6px 11px; border-radius: 100px; background: #ffdd89; font-size: .86rem; font-weight: 660; color: #56330d; }
.day-divider { width: 1px; align-self: stretch; background: #6b380b36; margin: 2px 0; }
.date-nav { position: absolute; z-index: 1; bottom: 28px; right: 29px; gap: 1px; padding: 3px; border: 1px solid #87491135; background: #fff4d7; border-radius: 11px; color: #422910; box-shadow: 0 2px 5px #74440918; }
.date-nav button { display: grid; place-items: center; padding: 0 7px; min-width: 37px; min-height: 36px; border-radius: 7px; border: 0; background: transparent; color: inherit; font-size: .86rem; font-weight: 720; }
.date-nav button:hover:not(:disabled) { background: #ffdc84; }
.date-nav button[aria-label]:disabled { opacity: .43; }

.place-setting { position: absolute; inset: 0 0 0 auto; width: 43%; z-index: 0; overflow: hidden; pointer-events: none; }
.plate { display: grid; place-items: center; position: absolute; right: 19%; top: -19%; width: 310px; aspect-ratio: 1; border-radius: 50%; color: #aa5219; background: radial-gradient(circle, #ffdc89 0 47%, #f6ac36 47.5% 48.5%, #ffdf97 49% 62%, #efac3d 62.5% 63%, #ffe1a0 63.5% 69%, #eda42c 70%); box-shadow: 12px 16px 0 #b362211a, 0 0 0 10px #ffc754; transform: rotate(-15deg); }
.plate svg { width: 101px; height: 101px; }
.placemat { z-index: -1; position: absolute; top: -78px; right: -37px; width: 76%; height: 166%; transform: rotate(-23deg); background: repeating-linear-gradient(90deg, #ae541522 0 1px, transparent 1px 9px); border-inline: 1px solid #ae541522; }

.notice { margin-top: 15px; border: 1px solid #efccad; border-radius: 11px; padding: 12px 15px; background: #fff2df; color: #73401b; font-size: .93rem; }
.stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
.stat-text { display: flex; width: 100%; gap: 5px 10px; align-items: center; justify-content: space-between; font-size: .9rem; font-weight: 620; }
.stat-text strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.stat-icon, .section-icon, .empty-icon, .avatar { display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; }
.stat-icon, .section-icon { width: 40px; height: 40px; }
.stat-going .stat-icon, .avatar-going, .tag-going { color: var(--green); background: var(--green-bg); }
.stat-takeout .stat-icon, .avatar-takeout, .tag-takeout { color: var(--accent-ink); background: #fff1d3; }
.stat-skip .stat-icon, .avatar-skip, .tag-skip { color: var(--blue); background: var(--blue-bg); }

.columns { display: grid; align-items: start; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: 17px; margin-top: 18px; }
.right-column { display: grid; align-items: start; gap: 17px; min-width: 0; }
.card { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.section-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 18px; }
.section-head h2, .access-card h2, .dialog-head h2 { font-size: 1.2rem; line-height: 1.4; font-weight: 770; }
.section-head p, .access-card p, .share-dialog p { margin-top: 2px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.section-icon { color: #704015; background: #fff0d6; }
.suggestion-icon { background: #faede4; color: #934a27; }
.responses-icon { color: var(--green); background: var(--green-bg); }
.access-card { margin-top: 18px; display: flex; gap: 13px; align-items: flex-start; }
.access-form { flex: 1; min-width: 0; max-width: 320px; }
.access-form .field-label { margin-top: 12px; }
.field-label { display: block; font-size: .9rem; font-weight: 690; margin-bottom: 7px; }
.field-label span { margin-left: 4px; color: var(--muted); font-size: .83rem; font-weight: 450; }
input:not([type="radio"]) { width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid #e0d8cc; border-radius: 9px; color: var(--ink); background: #fff; font-size: 1rem; }
input:not([type="radio"]):disabled { background: var(--soft); }
input::placeholder { color: #776e65; opacity: 1; }
fieldset { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
legend { padding: 0; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.choice { display: block; position: relative; cursor: pointer; min-width: 0; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-content { display: grid; place-items: center; gap: 6px; min-height: 65px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; font-weight: 650; text-align: center; }
.choice:hover .radio-content { border-color: #c0aa8f; }
.choice input:disabled + span { cursor: default; opacity: .7; }
.choice input:checked + span { border-color: #a56a13; background: #fff2cc; color: #5e360d; box-shadow: inset 0 0 0 1px #a56a13; }
.extra-field { margin-top: 16px; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 7px; line-height: 1.45; }
.submit { width: 100%; background: #29211b; border-color: #29211b; color: #fff; min-height: 44px; margin-top: 17px; }
.submit:hover:not(:disabled) { background: #453322; }
.submit:disabled { background: #eee9e1; border-color: #eee9e1; color: #675e54; }
.saved { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; font-size: .85rem; color: var(--green); font-weight: 650; }
.quiet { background: transparent; color: var(--muted); }
.quiet:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.remove { width: 100%; margin-top: 5px; }
.today-button { background: #fff; border-color: var(--line); padding-inline: 13px; }

.empty { display: grid; justify-items: center; gap: 8px; min-height: 105px; padding: 14px 10px; background: var(--soft); border: 1px dashed #e6ddd1; border-radius: 13px; color: var(--muted); font-size: .88rem; text-align: center; align-content: center; }
.empty-icon { width: 35px; height: 35px; color: #80552b; background: #f3ebde; }
.empty strong { font-weight: 650; }
.empty-action { min-height: 38px; padding: 0 12px; margin-top: 1px; border-color: #ead9c5; background: #fff; color: #6b421b; }
.proposal-list { display: grid; gap: 8px; }
.proposal { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; }
.proposal-info { min-width: 0; }
.proposal h3 { font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.proposal-info > span { display: block; margin-top: 3px; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.vote-actions { display: flex; gap: 6px; flex-shrink: 0; }
.vote { padding-inline: 8px; background: #fff; border-color: var(--line); font-size: .84rem; font-variant-numeric: tabular-nums; gap: 5px; }
.vote strong { font-weight: 750; }
.vote-support:hover:not(:disabled), .vote-support[aria-pressed="true"] { color: var(--green); background: var(--green-bg); border-color: #88bd9e; }
.vote-reject:hover:not(:disabled), .vote-reject[aria-pressed="true"] { color: var(--red); background: var(--red-bg); border-color: #d49a9d; }
.vote[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.entry-list > li + li { border-top: 1px solid var(--line); }
.entry { display: flex; align-items: center; gap: 9px; padding: 10px 0; min-height: 53px; }
.avatar { width: 36px; height: 36px; font-size: .9rem; font-weight: 720; }
.entry-text { flex: 1; min-width: 0; }
.entry-text strong, .entry-text > span { display: block; overflow-wrap: anywhere; }
.entry-text strong { line-height: 1.35; font-size: .96rem; }
.entry-text > span { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.entry-text small { font-size: .76rem; margin-left: 5px; font-weight: 500; color: var(--muted); }
.tag { flex: 0 0 auto; padding: 4px 8px; border-radius: 7px; font-size: .8rem; font-weight: 650; }
.foot { padding: 18px 0 26px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .82rem; text-align: center; }
.toast { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translateX(-50%); background: #242d23; color: #fff; border-radius: 11px; box-shadow: 0 4px 20px #0002; opacity: 0; pointer-events: none; font-size: .9rem; }
.toast-visible { padding: 11px 15px; opacity: 1; }
.share-dialog { width: min(430px, calc(100% - 32px)); color: var(--ink); }
.share-dialog::backdrop { background: #271f1a60; }
.share-dialog input { margin-top: 13px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.close { width: 41px; }
.spinner { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 820px) {
  .top-inner, .shell { width: calc(100% - 32px); }
  .hero { padding-inline: 28px; min-height: 225px; }
  .place-setting { width: 39%; }
  .plate { width: 230px; right: 4%; top: -12%; }
  .plate svg { width: 70px; height: 70px; }
  .card { padding: 17px; }
}
@media (max-width: 680px) {
  .top-inner { min-height: 62px; }
  .shell { padding-top: 15px; }
  .hero { min-height: 217px; padding: 21px 17px 58px; border-radius: 16px; }
  .hero h1 { font-size: clamp(2.15rem, 8vw, 3.2rem); margin-top: 12px; }
  .hero p { font-size: .9rem; max-width: 84%; margin-top: 9px; }
  .day-label { gap: 6px; padding-inline: 8px; font-size: .8rem; }
  .date-nav { right: 13px; bottom: 12px; }
  .place-setting { opacity: .55; width: 37%; }
  .plate { top: -25%; right: -58%; width: 207px; }
  .plate svg { width: 60px; height: 60px; }
  .stats { gap: 7px; margin-top: 11px; }
  .stat { display: grid; gap: 6px; padding: 9px 7px; border-radius: 11px; }
  .stat-icon { width: 29px; height: 29px; border-radius: 7px; }
  .stat-icon svg { width: 15px; height: 15px; }
  .stat-text { font-size: .79rem; }
  .stat-text strong { font-size: 1.22rem; }
  .columns { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .right-column { gap: 12px; }
}
@media (max-width: 390px) {
  .top-inner, .shell { width: calc(100% - 22px); }
  .card { padding: 14px; }
  .proposal { flex-wrap: wrap; }
  .vote-actions { width: 100%; }
  .vote { flex: 1; }
}
