:root {
  --paper: #f2ece2;
  --ink: #452128;
  --wine: #9b2a34;
  --wine-dark: #5a252b;
  --gold: #b99155;
  --line: #d8c9b0;
  --muted: #756a65;
  --cream: #fffaf2;
  font-family: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.hero-composite { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); position:relative; overflow:hidden; width:100%; height:clamp(220px, 18vw, 280px); min-height:220px; text-decoration:none; }
.hero-composite img { width:100%; min-width:0; height:100%; min-height:100%; object-fit:cover; display:block; }
.hero-gallery > .hero-composite { height:100%; min-height:260px; }
.hero-composite-label { position:absolute; right:18px; bottom:16px; padding:9px 15px; background:rgba(44,24,25,.86); color:#fff9ef; font-weight:700; letter-spacing:.08em; }
.guest-entry { display:flex; flex-direction:column; justify-content:center; gap:6px; height:100%; min-height:220px; padding:18px 20px; border:1px solid var(--gold); background:var(--cream); color:var(--ink); }
.guest-entry strong { font-size:24px; color:var(--wine); }
.guest-entry span:not(.eyebrow) { color:var(--muted); font-size:13px; }
.guest-entry i { margin-top:8px; font-style:normal; color:var(--wine); font-size:13px; }
.home-entry-split { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:repeat(3,minmax(0,1fr)); gap:10px; min-width:0; }
.home-entry-split .guest-entry { min-height:100px; height:100%; padding:12px 18px; gap:3px; }
.catalog-entry { border-color:var(--wine); background:#fffdf8; }
.resource-entry { border-color:#7c5a37; background:#fcf7eb; }
.catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:30px; }
.catalog-card { border:1px solid var(--line); background:var(--cream); padding:20px; min-width:0; }
.catalog-card h3 { margin:9px 0 7px; color:var(--wine); font-size:18px; overflow-wrap:anywhere; }
.catalog-card p { margin:0 0 8px; font-weight:700; overflow-wrap:anywhere; }
.catalog-card small { color:var(--muted); display:block; overflow-wrap:anywhere; }
.catalog-page-title { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.catalog-login { max-width:660px; margin-top:24px; }
.catalog-prices { border-top:1px solid var(--line); margin:16px 0 0; padding-top:12px; display:grid; gap:8px; }
.catalog-prices > div { display:flex; justify-content:space-between; gap:10px; }
.catalog-prices dt { color:var(--muted); font-size:13px; }
.catalog-prices dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
.help-results { margin-top:24px; display:grid; gap:14px; }
.help-result { border:1px solid var(--line); padding:16px; }
.help-result small { color:var(--muted); }
.help-reply { background:#f4efe7; padding:12px; margin-top:12px; }
.help-reply p { white-space:pre-wrap; overflow-wrap:anywhere; margin-bottom:0; }
.help-feedback { min-height:22px; color:var(--wine); }
.help-feedback.is-error { color:#a52b2b; }
.help-admin-list { display:grid; gap:14px; }
.help-admin-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; border:1px solid var(--line); padding:18px; background:var(--cream); }
.help-admin-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.help-admin-head span { color:var(--wine); font-size:13px; }
.help-admin-row p { margin:8px 0; color:var(--muted); font-size:13px; line-height:1.7; }
.help-admin-question { padding:12px; background:#fffdf8; border:1px solid var(--line); white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.help-admin-row textarea { width:100%; min-height:70px; margin-top:10px; }
.help-admin-actions { display:flex; align-items:flex-start; gap:8px; }
.catalog-admin-options { display:flex; flex-wrap:wrap; gap:12px 24px; padding:14px; background:#fffdf8; border:1px solid var(--line); margin-bottom:16px; }
.catalog-admin-list { display:grid; gap:8px; }
.catalog-admin-row { display:grid; grid-template-columns:auto minmax(0,1fr) 100px; align-items:center; gap:12px; border:1px solid var(--line); background:var(--cream); padding:12px 14px; }
.catalog-admin-row span { display:grid; gap:3px; min-width:0; }
.catalog-admin-row small { color:var(--muted); overflow-wrap:anywhere; }
.catalog-admin-row input[type=number] { width:100%; }
.help-admin-actions label { display:grid; gap:6px; font-size:12px; }
.guests-page { padding-top:40px; padding-bottom:60px; }
.guest-group { border-top:1px solid var(--line); padding:24px 0 8px; }
.guest-group-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.guest-group-head h2 { margin:0; font-size:22px; }
.guest-group-head span,.guest-note { color:var(--muted); font-size:13px; }
.guest-note { margin:7px 0 16px; }
.guest-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.guest-card { border:1px solid var(--line); background:var(--cream); padding:12px; display:grid; grid-template-columns:64px 1fr; gap:12px; align-items:center; }
.guest-card img,.guest-photo-placeholder { width:64px; height:64px; object-fit:cover; background:#eadfd2; display:grid; place-items:center; color:var(--muted); }
.guest-card h3 { margin:0 0 5px; font-size:15px; }
.guest-card p { margin:0 0 8px; color:var(--muted); font-size:12px; }
.guest-card button { font-size:12px; padding:5px 8px; }
.guest-booking-dialog { width:min(520px,calc(100% - 28px)); max-width:calc(100% - 28px); max-height:calc(100vh - 28px); max-height:calc(100dvh - 28px); overflow:auto; border:1px solid var(--line); padding:0; background:var(--cream); color:var(--ink); }
.guest-booking-dialog::backdrop { background:rgba(44,29,32,.42); }
.guest-booking-form { display:grid; gap:16px; padding:24px; min-width:0; overflow-wrap:anywhere; }
.guest-booking-form > p { margin:0; }
.guest-booking-identity { display:grid; gap:14px; border:0; padding:0; margin:0; min-width:0; }
.guest-booking-form [hidden] { display:none; }
.guest-booking-intents { border:0; padding:0; margin:0; min-width:0; }
.guest-booking-intents legend { padding:0; margin-bottom:10px; font-size:14px; }
.guest-booking-intents legend small { color:var(--muted); font-size:12px; }
.guest-booking-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.guest-booking-choices label { display:flex; gap:8px; align-items:center; min-width:0; min-height:44px; padding:10px; border:1px solid var(--line); background:#fffdf8; cursor:pointer; font-size:14px; }
.guest-booking-choices label:has(:checked) { border-color:var(--wine); background:#fff3ed; }
.guest-booking-form .field :is(input,textarea) { font:inherit; font-size:16px; min-width:0; }
.guest-booking-form .form-actions { margin:0; display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
@media(max-width:380px){ .guest-booking-form { padding:16px; gap:14px; }.guest-booking-choices label { padding:8px; font-size:13px; } }
.guest-booking-form h2 { margin:0 0 10px; font-size:22px; }
.guest-booking-form > p { line-height:1.7; }
.guest-booking-feedback { min-height:22px; color:var(--wine); font-size:13px; }
.booking-code { padding:12px 14px; background:#f8f1e5; border-left:3px solid var(--gold); }
.guest-booking-admin-list { display:grid; gap:10px; margin-top:20px; }
.guest-booking-admin-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px; border:1px solid var(--line); background:#fffdf8; }
.guest-booking-admin-row strong { margin-right:12px; }
.guest-booking-admin-row > div:first-child > span { color:var(--wine); font-size:12px; }
.guest-booking-admin-row p { margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.7; }
.guest-booking-admin-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.guest-booking-admin-actions label { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; white-space:nowrap; }
.guest-booking-admin-actions select { border:1px solid var(--line); padding:8px; background:#fff; color:var(--ink); }
.guest-closed { color:var(--muted); padding:15px 0; }
.guest-admin-group { border-top:1px solid var(--line); margin-top:18px; padding-top:16px; }
.guest-admin-group-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.guest-admin-group-head h3 { display:inline-block; margin:0 18px 0 0; }
.guest-admin-group-head label { margin-right:12px; font-size:12px; }
.guest-admin-rows { display:grid; gap:8px; margin-top:12px; }
.guest-admin-row { display:grid; grid-template-columns:1.1fr .8fr 1.4fr auto auto; gap:8px; align-items:center; }
.guest-admin-row input:not([type=checkbox]) { min-width:0; }
.guest-admin-row-synced input { background:#f4eee5; color:var(--muted); }
.guest-admin-sync-label { color:var(--wine); font-size:12px; white-space:nowrap; }
@media(max-width:800px){ .guest-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .guest-admin-row{grid-template-columns:1fr 1fr;} }
@media(max-width:560px){ .guest-booking-admin-row{align-items:flex-start; flex-direction:column; gap:12px;} .guest-booking-admin-actions{width:100%; justify-content:space-between;} }
@media(max-width:820px){ .hero-gallery{grid-template-columns:1fr; grid-template-rows:auto;}.hero-composite{height:auto; aspect-ratio:16 / 9; min-height:0;}.hero-composite img{min-height:0;}.guest-entry{height:auto; min-height:190px;}.gallery-intro,.home-image-attribution{grid-column:auto;} }
@media(max-width:820px){ .home-entry-split{grid-template-columns:1fr;}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.help-admin-row{grid-template-columns:1fr;}.help-admin-actions{justify-content:flex-end;} }
@media(max-width:560px){ .catalog-grid{grid-template-columns:1fr;} }
@media(max-width:560px){ .hero-composite{min-height:0;} .guest-entry{min-height:170px;} .guest-grid{grid-template-columns:1fr;} }

/* Activity introduction hierarchy: headline and key facts first, details below. */
.event-page { padding-top: 0; }
.event-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 42px; align-items: stretch; padding: 54px 0 36px; border-bottom: 1px solid var(--line); }
.event-hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.event-hero h1 { margin: 14px 0 12px; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; letter-spacing: -.03em; }
.event-lead { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.event-keyfacts { display: grid; gap: 0; align-content: stretch; border: 1px solid var(--gold); background: #fffaf2; }
.event-fact { display: grid; gap: 7px; align-content: center; min-height: 88px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.event-fact:last-child { border-bottom: 0; }
.event-fact span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.event-fact strong { color: var(--wine); font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
.event-section { margin-top: 42px; }
.event-section-head { max-width: 760px; margin-bottom: 20px; }
.event-section-head h2 { margin: 7px 0 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }
.event-section-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.event-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.event-card { min-width: 0; min-height: 190px; padding: 24px; border: 1px solid var(--line); background: #fffaf2; }
.event-card-featured { grid-column: span 1; background: var(--wine); color: var(--cream); border-color: var(--wine); }
.event-card-index { display: block; margin-bottom: 22px; color: var(--gold); font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.event-card h3 { margin: 0 0 11px; color: var(--wine); font-size: 20px; }
.event-card-featured h3 { color: var(--cream); }
.event-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.event-card-featured p { color: #f6e9dc; }
.event-date-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border-left: 4px solid var(--wine); background: #fbede8; }
.event-date-banner div { display: grid; gap: 5px; flex: 0 0 auto; }
.event-date-banner span { color: var(--muted); font-size: 12px; }
.event-date-banner strong { color: var(--wine); font-size: 23px; }
.event-date-banner p { max-width: 570px; margin: 0; color: var(--ink); font-size: 14px; line-height: 1.7; }
.event-day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.event-day-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--cream); }
.event-day-card-live { border-color: var(--wine); background: #fff6ee; }
.event-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.event-day-date { display: block; color: var(--wine); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.event-day-head h3 { margin: 7px 0 0; color: var(--ink); font-size: 21px; line-height: 1.35; }
.event-day-venue { max-width: 220px; padding: 7px 10px; color: var(--wine); background: #f8e9dc; font-size: 12px; line-height: 1.55; text-align: right; overflow-wrap: anywhere; }
.event-timeline { display: grid; gap: 0; margin-top: 12px; }
.event-timeline-item { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 14px; position: relative; padding: 10px 0 10px 0; }
.event-timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 29px; top: 31px; bottom: -1px; width: 1px; background: var(--line); }
.event-timeline-item time { position: relative; z-index: 1; align-self: start; color: var(--wine); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-timeline-item time::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 0; border: 2px solid var(--gold); border-radius: 50%; background: var(--cream); }
.event-timeline-item p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.event-day-note { margin: 12px 0 0; padding: 11px 12px; border-left: 3px solid var(--gold); background: #f8eadc; color: var(--muted); font-size: 13px; line-height: 1.7; }
.event-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.event-support-card { min-width: 0; padding: 23px 24px; border: 1px solid var(--line); background: #fffdf8; }
.event-card-title { display: flex; align-items: baseline; gap: 12px; }
.event-card-title .event-card-index { margin: 0; }
.event-support-card h3 { margin: 0 0 12px; color: var(--wine); font-size: 19px; }
.event-support-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.event-page > .event-contact { display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 18px 22px; }
.event-contact > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; min-width: 0; }
.event-contact span { line-height: 1.7; }
.event-materials { margin-top: 28px; padding: 22px; border: 1px solid var(--gold); background: #fffaf2; }
.event-materials-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.event-materials-head h2 { margin: 7px 0 0; color: var(--wine); font-size: 24px; }
.event-materials-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: right; }
.event-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.event-material-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; width: 100%; padding: 15px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); text-align: left; cursor: pointer; }
.event-material-card:hover { border-color: var(--wine); background: #fffdf8; }
.event-material-card:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.event-material-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wine); color: var(--cream); font-size: 14px; font-weight: 700; }
.event-material-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.event-material-card strong { color: var(--wine); font-size: 15px; }
.event-material-card small { color: var(--muted); overflow-wrap: anywhere; }
.event-material-card i { color: var(--wine); font-size: 12px; font-style: normal; white-space: nowrap; }
.event-material-dialog { width: min(440px, calc(100% - 28px)); border: 1px solid var(--line); padding: 0; background: var(--cream); color: var(--ink); }
.event-material-dialog.is-preview { width: min(820px, calc(100% - 28px)); }
.event-material-dialog::backdrop { background: rgba(44, 29, 32, .42); }
.event-material-form { padding: 24px; }
.event-material-form h2 { margin: 0 0 10px; color: var(--wine); font-size: 22px; }
.event-material-form > p { line-height: 1.7; }
.event-material-feedback { min-height: 22px; color: var(--wine); font-size: 13px; }
.event-material-preview-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.event-material-preview { display: grid; place-items: center; min-height: 120px; max-height: min(58vh, 620px); overflow: auto; border: 1px solid var(--line); background: #f7f1e8; }
.event-material-preview img { display: block; max-width: 100%; height: auto; object-fit: contain; }
.event-material-preview iframe { display: block; width: 100%; min-height: min(58vh, 620px); border: 0; background: #fff; }
.event-material-preview p { margin: 18px; color: var(--muted); line-height: 1.7; text-align: center; }
.event-page .event-policy { margin-top: 42px; padding: 28px; }
.event-page .event-policy .event-section-head { margin-bottom: 0; }
.event-page .event-policy .policy-grid { margin-top: 24px; }
.event-page .event-policy .application-notice { margin-top: 24px; }
@media(max-width:820px) {
  .event-hero { grid-template-columns: 1fr; gap: 25px; padding: 35px 0 25px; }
  .event-hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .event-lead { font-size: 15px; }
  .event-keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-fact { min-height: 92px; padding: 13px 12px; }
  .event-fact strong { font-size: 15px; }
  .event-overview-grid { grid-template-columns: 1fr 1fr; }
  .event-card { min-height: 175px; padding: 18px; }
  .event-card-featured { grid-column: 1 / -1; min-height: 150px; }
  .event-date-banner { align-items: flex-start; flex-direction: column; gap: 9px; padding: 17px 18px; }
  .event-day-grid { grid-template-columns: 1fr; }
  .event-support-grid { grid-template-columns: 1fr; }
  .event-materials-head { align-items: flex-start; flex-direction: column; }
  .event-materials-head p { text-align: left; }
  .event-material-grid { grid-template-columns: 1fr; }
  .event-page > .event-contact { align-items: flex-start; flex-direction: column; }
  .event-page .event-policy { padding: 20px; }
}
@media(max-width:520px) {
  .event-section { margin-top: 30px; }
  .event-section-head h2 { font-size: 26px; }
  .event-keyfacts { grid-template-columns: 1fr; }
  .event-fact { min-height: auto; padding: 12px 15px; }
  .event-fact strong { font-size: 17px; }
  .event-overview-grid { grid-template-columns: 1fr; }
  .event-materials { padding: 16px; }
  .event-material-card { grid-template-columns: 36px minmax(0, 1fr); }
  .event-material-icon { width: 34px; height: 34px; }
  .event-material-card i { grid-column: 2; }
  .event-card, .event-card-featured { min-height: auto; }
  .event-card-index { margin-bottom: 12px; }
  .event-day-card { padding: 18px; }
  .event-day-head { flex-direction: column; gap: 10px; }
  .event-day-venue { max-width: none; text-align: left; }
  .event-timeline-item { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .event-timeline-item:not(:last-child)::after { left: 25px; }
  .event-timeline-item time::before { margin-right: 6px; }
  .event-page .event-policy { padding: 16px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: min(320px, 100%); background: var(--paper); overflow-x: hidden; overflow-x: clip; }
#app { width: 100%; min-width: 0; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1296px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.brandline { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: 0; }
.subbrand, .navlink { color: #916f43; font-size: 13px; }
.subbrand { line-height: 1.6; }
.nav { display: flex; gap: 36px; align-items: center; flex-shrink: 0; }
.navlink { color: var(--muted); }
.navlink:hover { color: var(--wine); }
.nav-query { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1px solid #a52a2a; border-radius: 6px; background: #fbedd4; color: #a52a2a; font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; box-shadow: 0 2px 6px rgba(109, 59, 28, .08); transition: background-color .18s ease, color .18s ease; }
.nav-query svg { flex: 0 0 17px; }
.nav-query:hover { color: #7c2027; background: #f5dfb8; }
.nav-query:focus-visible { outline: 3px solid #a52a2a; outline-offset: 3px; }
.nav-query[aria-current="page"] { background: #f5dfb8; }
.nav-query-reminder { animation: query-nav-glow 1.6s ease-in-out .6s 2; }
@keyframes query-nav-glow {
  0%, 100% { box-shadow: 0 2px 6px rgba(109, 59, 28, .08), 0 0 0 0 rgba(165, 42, 42, 0); }
  50% { box-shadow: 0 2px 14px rgba(185, 145, 85, .25), 0 0 0 5px rgba(165, 42, 42, .10); }
}
@media (prefers-reduced-motion: reduce) { .nav-query { animation: none; transition: none; } }
.hero { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 32px; padding: 18px 0 10px; }
.hero-copy { padding: 12px 0 0; }
.date { color: #a87d49; font-size: 14px; letter-spacing: 0; line-height: 1.65; }
.rule { width: 120px; height: 2px; background: var(--gold); margin: 12px 0 22px; }
h1 { margin: 0; font-size: clamp(50px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: 0; }
.hero-title { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.3; color: var(--wine); }
.event-name { font-size: 18px; line-height: 1.8; margin: 16px 0 12px; color: #3f3b39; }
.mission { margin: 0; color: var(--muted); font-size: 14px; }
.partner { display: inline-block; margin-top: 24px; color: #9d7140; font-size: 13px; }
.hero-gallery { min-width: 0; align-self: center; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; align-items: stretch; gap: 8px; border: 1px solid var(--gold); padding: 8px; background: rgba(255, 250, 242, .42); }
.hero-media { width: 100%; min-width: 0; margin: 0; }
.hero-media img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: contain; object-position: center; }
.hero-secondary { display: block; min-width: 0; margin: 0; }
.hero-secondary img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: contain; }
.gallery-intro { grid-column: 1 / -1; margin: 0; padding: 7px 2px 0; border-top: 1px solid var(--line); color: #906d43; font-size: 12px; line-height: 1.45; }
.application-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.apply-choice { background: var(--wine); color: var(--cream); padding: 14px 20px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #dbbd81; text-align: left; transition: transform .18s ease, background .18s ease; }
.apply-choice:hover { background: var(--wine-dark); transform: translateY(-3px); }
.apply-choice strong { display: block; font-size: 19px; font-weight: 600; }
.apply-choice small { display: block; margin-top: 5px; color: #f0d8c5; font-size: 12px; }
.go-icon { width: 32px; height: 32px; border: 1px solid #f0d4a2; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
.compact { display: grid; grid-template-columns: 220px 1fr; gap: 42px; padding: 12px 0 8px; }
.compact-groups { grid-template-columns: 1fr; gap: 8px; }
.compact h2 { font-size: 18px; margin: 0 0 4px; }
.compact p { margin: 0 0 7px; font-size: 12px; color: #a16351; }
.compact img { display: block; width: 220px; max-width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: center; border: 1px solid var(--gold); filter: sepia(.12) saturate(.9); }
.group-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; padding-top: 5px; align-content: start; }
.group { display: flex; gap: 10px; font-size: 14px; color: #403b39; white-space: nowrap; }
.group i { font-style: normal; color: var(--wine); font-size: 12px; padding-top: 3px; }
.consultation { grid-column: 2; background: var(--wine-dark); color: var(--cream); min-height: 42px; display: flex; align-items: center; gap: 36px; padding: 0 18px; font-size: 13px; }
.compact-groups .consultation { grid-column: 1; }
.consultation strong { font-size: 14px; white-space: nowrap; }
.consultation span { color: #e3cfad; }
.footer { border-top: 1px solid var(--line); padding: 9px 0 11px; color: var(--muted); display: flex; justify-content: space-between; font-size: 11px; }
.page-head { padding: 52px 0 28px; border-bottom: 1px solid var(--line); }
.eyebrow { color: #a87d49; font-size: 13px; letter-spacing: 1.2px; }
.page-head h1 { font-size: clamp(36px, 4vw, 58px); margin-top: 16px; }
.page-head p { color: var(--muted); font-size: 15px; }
.guest-page-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 22px; }
.guest-page-title h1 { margin-top: 16px; }
.guest-release-note { color: var(--wine); font-size: 14px; line-height: 1.7; }
.content-page { padding-bottom: 64px; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 36px; border: 1px solid var(--line); }
.event-grid section { background: var(--paper); padding: 28px; min-height: 170px; }
.event-grid h3 { margin: 0 0 12px; font-size: 19px; }
.event-grid p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14px; }
.event-support { background: #fffaf2 !important; }
.event-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--gold); background: #fffaf2; color: var(--muted); line-height: 1.7; }
.event-contact strong { color: var(--wine); }
.event-contact-summary { min-width: 0; margin: 20px 0; line-height: 1.8; overflow-wrap: anywhere; }
.event-contact-summary > strong { display: block; margin-bottom: 6px; }
.event-contact-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; min-width: 0; }
.event-contact-item { display: inline; min-width: 0; overflow-wrap: anywhere; }
.event-contact-item a { overflow-wrap: anywhere; }
.event-contact-label { font-weight: 500; }
.event-contact-summary.event-contact > .event-contact-links { flex: 1 1 340px; }
#app:has(.hero) .event-contact-summary.consultation { grid-template-columns: max-content minmax(0,1fr); margin: 0; }
#app:has(.hero) .event-contact-summary.consultation > strong { margin: 0; }
#app:has(.hero) .event-contact-summary.consultation .event-contact-links { grid-column: 2; }
.consultation .event-contact-links a { color: var(--cream); }
.help-guide .event-contact-summary { font-size: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.help-guide .event-contact-links { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.query-event-info .event-contact-summary { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 640px) {
  #app:has(.hero) .event-contact-summary.consultation { grid-template-columns: minmax(0,1fr); }
  #app:has(.hero) .event-contact-summary.consultation .event-contact-links { grid-column: 1; }
  .event-contact-summary .event-contact-links { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
}
.event-contact a { color: var(--wine); font-weight: 700; }
.form-page { padding: 46px 0 82px; }
.form-layout { width: min(920px, 100%); margin: 0 auto; }
.application-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.application-heading h1 { margin: 10px 0 5px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.application-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.application-heading-badge { display: grid; gap: 3px; min-width: 104px; padding: 13px 15px; border: 1px solid var(--gold); background: #fffaf2; color: var(--wine); text-align: center; }
.application-heading-badge strong { font-size: 21px; line-height: 1.2; }
.application-heading-badge span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.application-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px; }
.application-progress span { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 12px; border-top: 3px solid #d7c7ac; color: var(--muted); background: rgba(255,253,248,.45); }
.application-progress span.active { border-top-color: var(--wine); color: var(--wine); background: #fffaf2; }
.application-progress b { font-size: 11px; letter-spacing: .08em; }
.application-progress em { font-style: normal; font-size: 12px; }
.steps { display: flex; gap: 8px; margin: 18px 0 30px; }
.steps span { flex: 1; height: 4px; background: #d7c7ac; }
.steps span.active { background: var(--wine); }
.form-card { background: var(--cream); border: 1px solid var(--line); border-top: 4px solid var(--wine); padding: 32px; box-shadow: 0 12px 30px rgba(90,37,43,.06); }
.form-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-card-heading h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.form-card-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.form-card-hint { max-width: 210px; padding: 10px 12px; border-left: 3px solid var(--gold); background: #f8f1e5; color: var(--muted); font-size: 12px; line-height: 1.65; }
.application-fields { gap: 14px; }
.application-section { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,253,248,.62); }
.application-section > legend { padding: 0 8px; color: var(--wine); font-size: 15px; font-weight: 700; }
.application-section .field-grid { gap: 16px; }
.application-section + .application-section { margin-top: 0; }
.application-section .section-hint { margin: -5px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.product-section { background: #fffaf2; }
.product-section #addProduct { margin-top: 14px; }
.form-card .event-platform-banner { margin: 0 0 18px; }
.form-card .application-notice { margin-top: 22px; }
.form-card .registration-deadline { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; background: #fffdf8; border: 1px solid #d7c7ac; border-radius: 0; padding: 12px 13px; color: var(--ink); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(155,42,52,.08); }
.check-row { display: flex; flex-wrap: wrap; gap: 12px; }
.check-row label { min-height: 40px; border: 1px solid #d7c7ac; border-radius: 4px; padding: 9px 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; background: #fffdf8; cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.check-row label:hover { border-color: #b99155; }
.check-row label:has(input:checked) { border-color: var(--wine); background: #f8e8e2; color: var(--wine); }
input[type="checkbox"] { appearance: none; width: 18px; height: 18px; margin: 0; flex: 0 0 18px; border: 1px solid #a8967c; border-radius: 3px; background: #fffdf8; cursor: pointer; display: inline-grid; place-content: center; }
input[type="checkbox"]::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transform-origin: center; transition: transform .12s ease; }
input[type="checkbox"]:checked { border-color: var(--wine); background: var(--wine); }
input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
input[type="checkbox"]:focus-visible { outline: 3px solid rgba(155,42,52,.16); outline-offset: 2px; }
input[type="radio"] { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; border: 1px solid #a8967c; border-radius: 50%; background: #fffdf8; cursor: pointer; display: inline-grid; place-content: center; }
input[type="radio"]::before { content: ""; width: 8px; height: 8px; background: var(--wine); border-radius: 50%; transform: scale(0); }
input[type="radio"]:checked { border-color: var(--wine); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="radio"]:focus-visible { outline: 3px solid rgba(155,42,52,.16); outline-offset: 2px; }
.distribution-fields, .attendance-fields { border: 1px solid var(--line); border-radius: 5px; padding: 16px; margin: 4px 0; min-width: 0; }
.talent-section, .talent-plan-fields { border: 1px solid var(--line); border-radius: 5px; padding: 18px; margin: 4px 0; min-width: 0; background: rgba(255,253,248,.45); }
.talent-section > legend, .talent-plan-fields > legend { font-size: 14px; font-weight: 700; padding: 0 6px; color: var(--wine); }
.talent-plan-fields .check-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.talent-plan-fields .check-row label { min-height: 58px; align-items: flex-start; line-height: 1.55; }
.talent-plan-fields > .hint { display: block; margin: 10px 0 0; }
.distribution-fields > legend, .attendance-fields > legend { font-size: 14px; font-weight: 600; padding: 0 5px; }
.distribution-fields > p, .attendance-fields > p { margin: 0 0 10px; line-height: 1.7; }
.attendance-fields > p { margin: 10px 0 0; }
.attendance-fields label { font-size: 13px; }
.attendance-fields select:disabled { background: #f4efe7; color: #756a65; opacity: 1; }
.export-tools { margin-bottom: 20px; padding: 12px; background: #f8f1e5; border: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; }
.export-tools a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.export-note { flex-basis: 100%; }
.field.full > label:has(> input[type="checkbox"]) { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; background: #fffdf8; cursor: pointer; }
.switch-row { display: flex; flex-wrap: wrap; gap: 14px; }
.switch-control { min-height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fffdf8; cursor: pointer; }
.switch-control > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 40px; height: 22px; flex: 0 0 40px; border-radius: 11px; background: #c9bdaa; transition: background .16s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(45, 29, 32, .22); transition: transform .16s ease; }
.switch-control > input:checked + .switch-track { background: var(--wine); }
.switch-control > input:checked + .switch-track::after { transform: translateX(18px); }
.switch-control > input:focus-visible + .switch-track { outline: 3px solid rgba(155,42,52,.16); outline-offset: 2px; }
.product-box { margin-top: 18px; padding: 18px; border: 1px solid #d7c7ac; background: #fcf8f0; }
.product-box h3 { margin: 0 0 15px; font-size: 16px; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { appearance: none; border: 0; color: var(--wine); background: transparent; padding: 0; font-size: 13px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; gap: 16px; }
.hint { color: var(--muted); font-size: 12px; }
.application-notice { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 13px 15px; border: 1px solid #c88c82; border-left: 4px solid var(--wine); background: #fbede8; color: var(--wine-dark); font-size: 13px; line-height: 1.6; }
.application-notice strong { flex: 0 0 auto; color: var(--wine); }
.application-notice span { font-weight: 600; }
.primary, .secondary { border: 0; border-radius: 0; padding: 13px 21px; font-weight: 600; }
.primary { background: var(--wine); color: var(--cream); }
.primary:hover { background: var(--wine-dark); }
.secondary { color: var(--wine); background: transparent; border: 1px solid var(--wine); }
.query-panel, .admin-shell { width: min(920px, calc(100% - 40px)); margin: 38px auto 70px; }
.admin-login-page { width: min(1180px, calc(100% - 40px)); }
.query-card, .admin-card { background: var(--cream); border: 1px solid var(--line); padding: 28px; }
.login-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.login-intro h1 { margin-top: 10px; font-size: clamp(34px, 4vw, 54px); }
.login-intro p { max-width: 360px; margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.login-role { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px; border: 1px solid var(--line); background: #fffdf8; }
.login-role::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gold); }
.login-role-admin { background: #fffaf2; border-color: #c9a36b; }
.login-role-admin::before { background: var(--wine); }
.login-role-reviewer::before { background: #8d6b48; }
.login-role-observer::before { background: #718083; }
.login-role-mark { color: var(--gold); font-size: 11px; letter-spacing: 1.5px; }
.login-role h2 { margin: 0; font-size: 20px; }
.login-role-desc { min-height: 42px; margin: -6px 0 3px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-role .field { margin-top: 2px; }
.login-role .form-actions { margin-top: auto; padding-top: 10px; }
.login-role .primary, .login-role .secondary { white-space: nowrap; }
.login-security-note { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; padding: 11px 14px; border-left: 3px solid var(--gold); background: #f8f1e5; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-security-note span { color: var(--wine); font-weight: 700; white-space: nowrap; }
.login-security-note p { margin: 0; }
.query-result { margin-top: 22px; padding: 20px; background: #f8f1e5; border-left: 4px solid var(--wine); }
.status { display: inline-block; color: var(--wine); font-size: 13px; padding: 4px 8px; background: #f5dfd9; }
.admin-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.admin-tabs button, .admin-tabs a { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 9px 12px; font-size: 13px; cursor: pointer; }
.admin-tabs .active { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.admin-tabs a { margin-left: auto; color: var(--wine); }
.stat-row { display: grid; grid-template-columns: repeat(6, minmax(112px, 1fr)); gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 3px; }
.stat-row > div, .stat-row > button { background: #f8f1e5; border: 1px solid transparent; border-bottom: 3px solid var(--gold); padding: 13px; min-height: 88px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-card { font: inherit; color: var(--ink); cursor: pointer; }
.stat-card:hover, .stat-card.is-selected { background: #f2e4ce; border-color: var(--wine); }
.stat-card:focus-visible, .classification-count:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.stat-row strong, .stat-row span { display: block; }
.stat-row strong { font-size: 24px; }
.stat-row span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.classification-wrap { overflow-x: auto; margin-bottom: 20px; }
.classification-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.classification-table caption { padding: 8px 0 12px; text-align: left; color: var(--muted); font-size: 13px; }
.classification-table th, .classification-table td { padding: 9px; text-align: center; border: 1px solid var(--line); }
.classification-table th { background: #f8f1e5; font-size: 13px; font-weight: 500; }
.classification-count { min-width: 44px; min-height: 38px; font: inherit; font-weight: 700; background: transparent; border: 1px solid transparent; color: var(--wine); cursor: pointer; border-radius: 3px; }
.classification-count:hover, .classification-count.is-selected { border-color: var(--wine); background: #f2e4ce; }
.filtered-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.application-complete-fields dd { overflow-wrap: anywhere; }
.export-preview { width: min(1440px, 95vw); max-width: 95vw; height: 90vh; max-height: 90vh; padding: 24px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); }
.export-preview::backdrop { background: #1b1727aa; }
.export-preview h2 { margin-top: 0; }
.export-preview .form-actions { margin: 12px 0; }
.export-preview iframe { display: block; width: 100%; height: calc(100% - 160px); min-height: 200px; border: 1px solid var(--line); background: white; }
.admin-list { display: grid; gap: 10px; }
.admin-item { display: grid; grid-template-columns: 1.2fr .75fr 1.2fr; align-items: start; gap: 18px; padding: 18px; border: 1px solid var(--line); background: #fffdf8; }
.admin-item strong { display: block; }
.admin-item small { display: block; color: var(--muted); margin-top: 5px; }
.status-select { border: 1px solid #d7c7ac; padding: 8px; background: white; }
.status-select:disabled { opacity: .7; cursor: not-allowed; }
.review-control { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; max-width: 100%; }
.review-feedback { display: block; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.review-feedback.is-error { color: #a12530; }
.review-feedback.is-success { color: #286042; }
.review-feedback.is-pending { color: var(--muted); }
.review-reload-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.review-reload-inline { padding: 7px 10px; font-size: 12px; }
.manual-review-summary { margin: 12px 0; padding: 12px; background: #f3f5ed; font-size: 13px; line-height: 1.6; }
.manual-review-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.manual-review-summary p { margin: 6px 0 0; white-space: pre-wrap; }
.review-prerequisite { color: #87541c; font-size: 13px; line-height: 1.6; }
.product-statuses { display: grid; gap: 8px; }
.product-statuses p { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.product-statuses b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-section h2 { margin: 0 0 7px; font-size: 23px; }
.admin-section > .hint { display: block; margin-bottom: 22px; }
.reviewer-list, .invite-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.reviewer-list article, .invite-list article { background: #fffdf8; border: 1px solid var(--line); padding: 16px; }
.reviewer-list strong, .invite-list strong { display: inline-block; margin-right: 12px; }
.reviewer-list span, .invite-list span { color: var(--wine); font-size: 12px; }
.reviewer-list p, .invite-list p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.account-password { margin-top: 12px; }
.account-password input, .reviewer-list [data-reviewer-phone] { display: block; margin-top: 6px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reviewer-list .account-setup-note, [data-account-feedback] { color: var(--wine); }
[data-account-feedback]:empty { display: none; }
.invite-url { overflow-wrap: anywhere; color: var(--wine); }
.media-settings { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.media-settings h3 { margin: 0 0 7px; font-size: 20px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.media-grid > div { min-width: 0; }
.media-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--line); }
.observer-list { display: grid; gap: 18px; }
.observer-item { padding: 20px; border: 1px solid var(--line); background: #fffdf8; }
.observer-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.observer-item-head strong { display: block; font-size: 17px; }
.observer-item-head small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.observer-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin-top: 17px; }
.observer-field { min-width: 0; display: grid; gap: 5px; }
.observer-field small { color: var(--muted); font-size: 11px; }
.observer-field span { overflow-wrap: anywhere; font-size: 13px; }
.observer-note { margin: 16px 0 0; padding: 11px 13px; background: #f8f1e5; color: var(--muted); font-size: 13px; line-height: 1.65; }
.observer-products { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.observer-products h3 { margin: 0 0 12px; font-size: 15px; }
.observer-product { padding: 13px; border: 1px solid #e2d7c5; background: #fcf8f0; }
.observer-product + .observer-product { margin-top: 10px; }
.observer-product > strong { display: block; margin-bottom: 9px; }
.observer-product .observer-fields { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.observer-product .hint { margin: 10px 0 0; }
.observer-readonly-note { margin: 16px 0 0; }
.event-platform-banner { padding: 14px 16px; margin: 0 0 24px; border: 1px solid var(--line); background: #f8f1e5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.event-platform-banner strong { font-size: 14px; }
.event-platform-tags { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.event-platform-tags span { padding: 5px 10px; background: #fffdf8; border: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.event-policy { margin-top: 28px; padding: 24px; border: 1px solid var(--line); background: #fffdf8; }
.event-policy-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.event-policy-head h2 { margin: 6px 0 8px; font-size: 22px; }
.event-policy-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 20px; }
.policy-grid section { min-width: 0; }
.policy-grid h3 { margin: 0 0 6px; font-size: 15px; color: var(--wine); }
.policy-grid p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.8; }
.event-policy .application-notice { margin-top: 22px; }
.participation-fields, .support-options { min-width: 0; border: 0; margin: 0; padding: 0; }
.participation-fields > legend, .support-options > legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.participation-option { border: 1px solid var(--line); border-radius: 5px; background: #fffdf8; overflow: hidden; }
.participation-option:has(.participation-choice > input:checked) { border-color: var(--wine); }
.participation-choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; cursor: pointer; line-height: 1.6; }
.participation-choice > input { margin-top: 3px; }
.participation-choice strong { font-size: 14px; }
.participation-choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.participation-option:has(.participation-choice > input:checked) .participation-choice { background: #fbede8; }
.participation-panel { border-top: 1px solid var(--line); padding: 16px; }
.participation-panel > p { margin: 0; font-weight: 400; line-height: 1.6; }
.participation-panel label.field { font-size: 13px; }
.participation-details { margin: 12px 0; font-size: 13px; line-height: 1.7; }
.participation-details > div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.participation-details dt { color: var(--muted); }
.participation-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.participation-review { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-size: 13px; }
.application-filters { margin: 0 0 20px; }
.application-filters > label { font-size: 13px; }
.application-detail { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.application-detail summary { cursor: pointer; font-size: 13px; line-height: 1.7; color: var(--wine); overflow-wrap: anywhere; }
.review-stage { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin: 12px 0; background: #f8f1e5; border-left: 3px solid var(--gold); font-size: 13px; }
.review-stage span { color: var(--wine); font-weight: 600; }
.product-review-details { display: grid; gap: 12px; margin: 16px 0; }
.product-review-details h3 { margin: 0; font-size: 16px; }
.product-review-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); background: #fcf8f0; }
.product-review-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-review-title strong { overflow-wrap: anywhere; }
.product-review-title span, .product-review-summary small { color: var(--muted); font-size: 12px; }
.product-review-summary { display: flex; justify-content: space-between; gap: 12px; }
.assistant-reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.assistant-reports .query-result { margin-top: 0; padding: 12px; border-left-width: 3px; font-size: 12px; line-height: 1.7; }
.assistant-reports .query-result strong, .assistant-reports .query-result small { display: block; }
.final-decision { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.final-decision .hint { margin-left: auto; }
.platform-settings { padding: 20px; border: 1px solid var(--line); background: #fcf8f0; min-width: 0; }
.platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.platform-heading h3 { margin: 0; font-size: 18px; }
.platform-list { display: grid; gap: 8px; }
.platform-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px; background: var(--cream); }
.platform-row.is-selected { border-color: var(--wine); background: #fbede8; }
.platform-check { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.platform-actions { display: flex; gap: 14px; align-items: center; }
.platform-name { min-width: 0; overflow-wrap: anywhere; }
.platform-name small { display: block; margin-top: 5px; }
.platform-row-deleted { grid-template-columns: minmax(0, 1fr) auto; }
.platform-add { display: flex; gap: 10px; align-items: end; margin: 14px 0; }
.platform-add label { display: grid; gap: 7px; flex: 1; min-width: 0; }
.platform-add button { white-space: nowrap; }
.platform-summary { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.platform-archive, .platform-recycle { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.platform-settings summary { cursor: pointer; font-size: 13px; }
.platform-feedback:empty { display: none; }
.platform-archive-label { font-size: 12px; color: var(--muted); }
button:disabled { cursor: wait; opacity: .65; }
.upload-label { display: inline-flex; align-items: center; margin-top: 10px; color: var(--wine); border: 1px solid var(--wine); padding: 10px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.upload-label input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; transition: .2s; background: #2c1d20; color: white; padding: 12px 18px; font-size: 14px; z-index: 10; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 821px) {
  #app:has(.hero) { min-height: 100svh; display: flex; flex-direction: column; }
  #app:has(.hero) .hero { flex: 1 1 auto; min-height: 371px; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); align-items: center; }
  #app:has(.hero) .hero-copy { padding-top: 0; }
  #app:has(.hero) .application-choices { flex: 0 0 110px; align-items: center; padding: 10px 0; }
  #app:has(.hero) .apply-choice { min-height: 90px; }
  #app:has(.hero) .compact-groups { flex: 0 0 170px; align-content: center; gap: 18px; padding: 18px 0 14px; }
  #app:has(.hero) .group-list { gap: 20px 32px; }
  #app:has(.hero) .consultation { min-height: 48px; }
  #app:has(.hero) .footer { flex: 0 0 44px; align-items: center; padding: 8px 0; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 620px); }
  .topbar { min-height: 52px; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
  .brand { font-size: 19px; }
  .brandline { gap: 4px; flex: 1 1 280px; }
  .subbrand { display: block; font-size: 12px; }
  .nav { gap: 16px; margin-left: auto; min-width: 0; max-width: 100%; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 0 14px; }
  .hero-copy, .hero-gallery, .hero-composite, .guest-entry { min-width: 0; max-width: 100%; }
  .hero-copy { padding-top: 0; }
  .date { line-height: 1.45; }
  .rule { margin: 8px 0 13px; width: 92px; }
  h1 { font-size: 42px; }
  .hero-title { font-size: clamp(28px, 7.5vw, 38px); }
  .event-name { margin-bottom: 7px; font-size: 15px; }
  .mission { font-size: 12px; }
  .partner { margin-top: 12px; font-size: 12px; }
  .hero-media { order: initial; }
  .hero-media img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-position: center; }
  .hero-gallery { gap: 5px; padding: 5px; }
  .gallery-intro { padding-top: 5px; font-size: 10px; }
  .application-choices { grid-template-columns: 1fr; gap: 12px; }
  .apply-choice { min-height: 62px; padding: 10px 16px; }
  .apply-choice strong { font-size: 17px; }
  .apply-choice small { margin-top: 3px; font-size: 11px; }
  .go-icon { width: 29px; height: 29px; font-size: 15px; }
  .compact { grid-template-columns: 1fr; gap: 12px; padding: 14px 0 10px; }
  .compact img { width: 100%; aspect-ratio: 16 / 9; height: auto; }
  .group-list { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; padding-top: 0; }
  .group { font-size: 13px; }
  .consultation { grid-column: auto; display: grid; gap: 2px; min-height: 48px; padding: 8px 14px; }
  .footer { padding: 10px 0 12px; gap: 12px; }
  .form-actions { flex-wrap: wrap; }
  .login-role .primary, .login-role .secondary { white-space: normal; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-card { padding: 21px; }
  .application-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .application-heading-badge { align-self: flex-start; }
  .application-progress { gap: 5px; margin-bottom: 16px; }
  .application-progress span { justify-content: center; padding: 9px 6px; }
  .application-progress em { font-size: 11px; }
  .form-card-heading { flex-direction: column; gap: 13px; margin-bottom: 18px; padding-bottom: 16px; }
  .form-card-heading h2 { font-size: 26px; }
  .form-card-hint { max-width: none; width: 100%; }
  .application-section { padding: 16px; }
  .talent-section, .talent-plan-fields { padding: 14px; }
  .talent-plan-fields .check-row { grid-template-columns: 1fr; }
  .application-notice { display: grid; gap: 3px; margin-top: 18px; padding: 11px 12px; font-size: 12px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-policy { padding: 18px; }
  .policy-grid { grid-template-columns: 1fr; gap: 16px; }
  .admin-item { grid-template-columns: 1fr; gap: 8px; }
  .login-columns { grid-template-columns: 1fr; }
  .login-role .form-actions { flex-direction: column; align-items: stretch; }
  .login-role .form-actions > * { width: 100%; text-align: center; }
  .login-role-desc { overflow-wrap: anywhere; }
  .login-intro { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 18px; }
  .login-intro p { max-width: none; margin: 0; }
  .login-role { padding: 18px; }
  .login-role-desc { min-height: 0; }
  .login-security-note { align-items: flex-start; flex-direction: column; gap: 2px; }
  .admin-top { align-items: start; flex-direction: column; }
  .admin-tabs a { margin-left: 0; }
  .stat-row { grid-template-columns: repeat(2, minmax(112px, 1fr)); }
  .reviewer-list, .invite-list { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .observer-item-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .observer-fields, .observer-product .observer-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 9px; padding-top: 10px; padding-bottom: 10px; }
  .brandline { width: 100%; min-width: 0; flex: none; }
  .nav { width: 100%; margin-left: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 14px; }
  .navlink { min-width: 0; }
  .nav-query { margin-left: 0; min-height: 40px; padding: 8px 12px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer nav { width: 100%; justify-content: flex-start; }
  .platform-settings { padding: 12px; }
  .platform-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .platform-row > .platform-name { grid-column: 1 / -1; grid-row: 2; }
  .platform-row-deleted > .platform-name { grid-column: auto; grid-row: auto; }
  .platform-add { flex-wrap: wrap; }
  .platform-add label { flex-basis: 100%; }
  .platform-actions { justify-content: flex-end; }
  .participation-choice, .participation-panel { padding: 12px; }
  .participation-details > div { grid-template-columns: 1fr; gap: 2px; }
  .assistant-reports { grid-template-columns: 1fr; }
  .product-review-title, .product-review-summary, .final-decision { align-items: flex-start; flex-direction: column; }
  .final-decision .hint { margin-left: 0; }
}

/* Keep the A/B hero blocks balanced after the base gallery rule. */
@media (max-width: 820px) {
  .hero-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-gallery .gallery-intro, .hero-gallery .home-image-attribution { grid-column: auto; }
  .hero-gallery .hero-composite { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .hero-gallery .hero-composite img { min-height: 0; }
  .hero-gallery .guest-entry { height: auto; min-height: 190px; }
}
