.avatar {
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.template-preview {
  margin: 18px 0;
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  border-radius: 16px;
  background: var(--green-soft);
  border: 1px solid rgba(37, 116, 105, .15);
}

.template-preview strong { color: var(--green); }
.template-preview span { color: var(--ink); font-size: .94rem; }
.template-preview small { color: var(--muted); }

.miwa-event-summary {
  position: relative;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 28px;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 201, 76, .34), transparent 28%),
    linear-gradient(135deg, #176f66, #298b7d);
  box-shadow: var(--shadow);
}

.miwa-event-summary::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -92px;
  bottom: -120px;
  border: 34px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.miwa-event-summary h1 {
  max-width: 760px;
  margin: 5px 0 15px;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.12;
}

.miwa-event-summary .eyebrow { color: rgba(255,255,255,.74); }

.miwa-phase-pill {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  font-weight: 800;
  font-size: .82rem;
}

.miwa-summary-heading {
  position: relative;
  z-index: 1;
  padding-right: 110px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.miwa-summary-heading .eyebrow { margin: 0; }

.miwa-event-plan-badge {
  min-height: 22px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: white;
  background: rgba(10,34,39,.18);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.miwa-event-plan-badge.is-standard {
  border-color: rgba(255,229,159,.86);
  color: #fff4cf;
  background: rgba(97,68,0,.34);
}

.miwa-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255,255,255,.9);
}

.miwa-event-meta span,
.miwa-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.miwa-event-meta svg,
.miwa-map-link svg { width: 18px; height: 18px; }

.miwa-map-link {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.miwa-event-summary.is-compact {
  padding: clamp(22px, 4vw, 30px);
  border-radius: 22px;
}

.miwa-event-summary.is-compact h1 {
  max-width: 680px;
  margin: 4px 0 12px;
  padding-right: 110px;
  font-size: clamp(1.75rem, 5vw, 2.55rem);
}

.miwa-event-summary.is-organizer { max-width: none; }

.organizer-summary-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.miwa-summary-footer {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.miwa-summary-actions {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.miwa-summary-footer .miwa-summary-actions { margin-top: 0; }

.miwa-participant-count {
  min-width: 104px;
  padding: 8px 12px;
  display: grid;
  justify-items: end;
  gap: 1px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  color: white;
}

.miwa-participant-count span {
  color: rgba(255,255,255,.78);
  font-size: .68rem;
  font-weight: 800;
}

.miwa-participant-count strong {
  font-size: 1.2rem;
  line-height: 1;
}

.miwa-participant-count small {
  margin-left: 3px;
  font-size: .68rem;
}

.miwa-summary-link {
  min-height: 34px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.miwa-summary-link:hover { background: rgba(255,255,255,.2); }
.miwa-summary-link:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }
.miwa-summary-link svg { width: 15px; height: 15px; }

.miwa-guide-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.miwa-guide-title {
  margin: 0;
  padding: 14px 16px 6px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.miwa-guide-primary {
  width: 100%;
  min-height: 80px;
  padding: 10px 16px 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
}

button.miwa-guide-primary { cursor: pointer; }
button.miwa-guide-primary:hover { background: var(--surface); }
button.miwa-guide-primary:focus-visible { outline: 3px solid rgba(37,116,105,.26); outline-offset: -3px; }
.miwa-guide-primary.is-complete { grid-template-columns: 44px minmax(0, 1fr); }

.miwa-guide-primary-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
}

.miwa-guide-primary.is-complete .miwa-guide-primary-icon { color: white; background: var(--green); }
.miwa-guide-primary-icon svg { width: 22px; height: 22px; }
.miwa-guide-primary-copy { min-width: 0; display: grid; gap: 3px; }
.miwa-guide-primary-copy strong { overflow-wrap: anywhere; font-size: 1rem; font-weight: 900; }
.miwa-guide-primary-copy small { color: var(--muted); line-height: 1.45; }

.miwa-guide-cta {
  min-width: 92px;
  min-height: 38px;
  padding: 8px 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--coral);
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 5px 13px rgba(239,98,81,.18);
}

.miwa-guide-footer {
  min-height: 42px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fcfbf8;
}

.miwa-guide-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(52px, 96px);
  gap: 9px;
  align-items: center;
}

.miwa-guide-progress span { color: var(--muted); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.miwa-guide-progress progress { width: 100%; height: 5px; appearance: none; overflow: hidden; border: 0; border-radius: 99px; background: #e9e4dc; }
.miwa-guide-progress progress::-webkit-progress-bar { border-radius: inherit; background: #e9e4dc; }
.miwa-guide-progress progress::-webkit-progress-value { border-radius: inherit; background: var(--green); }
.miwa-guide-progress progress::-moz-progress-bar { border-radius: inherit; background: var(--green); }

.miwa-guide-details { min-width: 0; }
.miwa-guide-details summary {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.miwa-guide-details summary::-webkit-details-marker { display: none; }
.miwa-guide-details summary svg { width: 13px; height: 13px; transition: transform .18s ease; }
.miwa-guide-details[open] { grid-column: 1 / -1; width: 100%; }
.miwa-guide-details[open] summary svg { transform: rotate(90deg); }

.miwa-guide-list {
  margin-top: 8px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.miwa-guide-row {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.miwa-guide-row:last-child { border-bottom: 0; }
.miwa-guide-row:hover { background: var(--surface); }
.miwa-guide-row > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.miwa-guide-row strong { font-size: .82rem; }
.miwa-guide-row small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.miwa-guide-row > svg { width: 15px; color: var(--muted); }

.miwa-guide-row-status {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #efede8;
  font-size: .73rem;
  font-weight: 900;
}

.miwa-guide-row.is-complete .miwa-guide-row-status { color: white; background: var(--green); }
.miwa-guide-row-status svg { width: 14px; height: 14px; }
.miwa-latest-notice.is-organizer + .metric-grid,
.miwa-guide-card + .metric-grid,
.miwa-phase-banner + .metric-grid { margin-top: 14px; }

.miwa-next-action,
.miwa-latest-notice,
.miwa-home-card,
.miwa-status-card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.miwa-next-action {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  min-height: 100px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  gap: 16px;
  align-items: center;
  text-align: left;
  border: 2px solid rgba(239, 98, 81, .3);
  border-radius: 22px;
  background: linear-gradient(120deg, #fff1ed 0%, #fff8df 100%);
  box-shadow: 0 10px 26px rgba(200, 70, 56, .13);
}

.miwa-next-action::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--coral), var(--yellow));
}

.miwa-next-action > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 6px 14px rgba(200, 70, 56, .2);
}

.miwa-next-action svg { width: 25px; height: 25px; }
.miwa-next-action div { display: grid; gap: 4px; }
.miwa-next-action small { color: var(--coral-dark); font-weight: 800; letter-spacing: .03em; }
.miwa-next-action strong { font-size: 1.12rem; font-weight: 900; }
.miwa-next-action > svg { width: 22px; color: var(--coral-dark); }

.miwa-latest-notice {
  margin-top: 14px;
  padding: 17px 20px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  gap: 13px;
  align-items: center;
  text-align: left;
  border-color: rgba(240, 91, 75, .22);
  background: linear-gradient(110deg, #fff8f6, #fff);
}

.miwa-latest-notice > svg:first-child { color: var(--coral); }
.miwa-latest-notice span { display: grid; gap: 2px; min-width: 0; }
.miwa-latest-notice small { color: var(--coral); font-weight: 800; }
.miwa-latest-notice strong,
.miwa-latest-notice em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miwa-latest-notice em { color: var(--muted); font-size: .88rem; font-style: normal; }
.miwa-latest-notice > svg:last-child { width: 18px; color: var(--muted); }

.miwa-home-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.miwa-home-card {
  min-height: 104px;
  padding: 17px;
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  gap: 13px;
  align-items: center;
  text-align: left;
  border-radius: 20px;
}

.miwa-home-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--green);
  background: var(--green-soft);
}

.miwa-home-icon svg { width: 23px; height: 23px; }
.miwa-home-card > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.miwa-home-card strong { display: flex; align-items: center; gap: 7px; }
.miwa-home-card strong em { padding: 3px 7px; border-radius: 999px; background: var(--coral); color: white; font-size: .68rem; font-style: normal; }
.miwa-home-card small { color: var(--muted); }
.miwa-home-card > svg { width: 17px; color: var(--muted); }

.miwa-status-card {
  margin-top: 18px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border-radius: 18px;
}

.miwa-status-card > div:nth-child(2) { display: grid; gap: 3px; }
.miwa-status-card span { color: var(--muted); font-size: .83rem; }

.miwa-announcement-list { display: grid; gap: 14px; }
.miwa-announcement { padding: 5px 2px 20px; border-bottom: 1px solid var(--line); }
.miwa-announcement:last-child { border-bottom: 0; }
.miwa-announcement time { color: var(--muted); font-size: .82rem; }
.miwa-announcement h2 { margin: 7px 0; }
.miwa-announcement p { white-space: normal; line-height: 1.8; }

.payment-summary-card {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) 1fr;
  gap: 24px;
  align-items: center;
}

.payment-summary-card dl,
.reception-detail { margin: 0; display: grid; gap: 10px; }
.payment-summary-card dl div,
.reception-detail div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.payment-summary-card dt,
.reception-detail dt { color: var(--muted); }
.payment-summary-card dd,
.reception-detail dd { margin: 0; font-weight: 800; text-align: right; }
.payment-summary-card > p,
.payment-summary-card > button { grid-column: 1 / -1; }

.profile-image-upload {
  margin: 18px 0 22px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: center;
  border: 1px dashed rgba(37, 116, 105, .35);
  border-radius: 16px;
  background: var(--green-soft);
  cursor: pointer;
}

.profile-image-upload > span { grid-row: 1 / 3; color: var(--green); }
.profile-image-upload svg { width: 25px; height: 25px; }
.profile-image-upload small { color: var(--muted); }

.member-card-button {
  width: 100%;
  appearance: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.member-card-button:hover { border-color: rgba(37, 116, 105, .4); box-shadow: 0 9px 24px rgba(29, 78, 71, .1); transform: translateY(-2px); }
.member-card-button:focus-visible { outline: 3px solid rgba(37, 116, 105, .28); outline-offset: 3px; }
.member-card-detail { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin-top: 11px; color: var(--green); font-size: .78rem; font-weight: 900; }
.member-card-detail svg { width: 14px; height: 14px; }

.miwa-profile-detail { max-width: 720px; margin-inline: auto; }
.profile-detail-hero { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-detail-hero h1 { margin: 3px 0 5px; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.profile-detail-hero span { color: var(--muted); font-size: .85rem; }
.profile-detail-section { padding: 24px 0 8px; }
.profile-detail-section h2 { margin: 0 0 10px; font-size: 1.05rem; }
.profile-detail-section p { margin: 0; line-height: 1.85; overflow-wrap: anywhere; }
.profile-detail-list { margin: 16px 0 0; display: grid; }
.profile-detail-list > div { display: grid; grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.profile-detail-list dt { color: var(--muted); font-weight: 800; }
.profile-detail-list dd { min-width: 0; margin: 0; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.profile-detail-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.profile-detail-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; padding: 13px 14px; border-radius: 14px; color: var(--muted); background: var(--surface); font-size: .82rem; line-height: 1.6; }
.profile-detail-privacy svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }

.miwa-phase-banner {
  margin: 22px 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 17px;
  align-items: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.miwa-phase-banner > span {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 18px; color: var(--green); background: var(--green-soft);
}
.miwa-phase-banner.day > span { color: white; background: var(--coral); }
.miwa-phase-banner.after > span { color: #805e0a; background: var(--yellow-soft); }
.miwa-phase-banner svg { width: 28px; height: 28px; }
.miwa-phase-banner div { display: grid; gap: 3px; }
.miwa-phase-banner small { color: var(--muted); font-weight: 800; }
.miwa-phase-banner strong { font-size: 1.15rem; }
.miwa-phase-banner p { margin: 0; color: var(--muted); }

.miwa-admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.day-mode-hero {
  padding: 26px;
  border-radius: 24px;
  color: white;
  background: linear-gradient(135deg, #176f66, #298b7d);
}
.day-mode-hero h1 { margin: 5px 0 8px; }
.day-mode-hero .eyebrow { color: rgba(255,255,255,.75); }

.day-metric-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.day-metric-grid article {
  padding: 20px 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.day-metric-grid span { color: var(--muted); font-size: .82rem; }
.day-metric-grid strong { margin-top: 6px; font-size: 2.2rem; line-height: 1; }
.day-metric-grid small { color: var(--muted); }
.day-metric-grid .warning { border-color: rgba(240, 91, 75, .25); background: #fff7f5; }
.day-metric-grid .warning strong { color: var(--coral); }

.day-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.miwa-filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
.miwa-filter-row .filter-chip { flex: 0 0 auto; }
.miwa-member-table { min-width: 1280px; }
.miwa-member-table td { vertical-align: middle; }
.admin-role-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: #f1efeb; color: var(--ink-soft); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.admin-role-pill.administrator { background: var(--teal-soft); color: var(--teal); }
.admin-role-pill.owner { background: #fff0d4; color: #805e0a; }
.admin-role-button { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); color: var(--teal); white-space: nowrap; }
.admin-role-button.is-admin { border-color: var(--line); color: var(--ink-soft); }
.admin-role-button:disabled { border-color: var(--line); color: #9b958c; background: #f7f5f2; cursor: not-allowed; }
.mini-cash-button { display: block; margin-top: 6px; padding: 4px 8px; border: 0; border-radius: 8px; background: var(--yellow-soft); color: #805e0a; font-weight: 800; font-size: .72rem; }

.operational-summary {
  margin: 22px 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-radius: 16px;
  background: var(--surface);
}
.operational-summary div { display: grid; gap: 4px; }
.operational-summary span { color: var(--muted); font-size: .8rem; }

.profile-field-list { margin: 20px 0; display: grid; gap: 10px; }
.profile-field-list article { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 14px; }
.switch-row { display: flex; align-items: center; gap: 12px; flex: 1; }
.switch-row span { display: grid; gap: 2px; }
.switch-row small { color: var(--muted); }
.profile-field-add { margin: 22px 0; padding: 18px; display: grid; grid-template-columns: 1.4fr .8fr 1fr auto; gap: 12px; align-items: end; border-radius: 16px; background: var(--surface); }

.checkin-scanner-card { max-width: 680px; margin-inline: auto; text-align: center; }
#checkin-camera { width: 100%; max-height: 420px; margin: 16px 0; border-radius: 20px; object-fit: cover; background: #111; }
.camera-guide { min-height: 230px; margin: 18px 0; display: grid; place-items: center; align-content: center; gap: 12px; border: 2px dashed rgba(37,116,105,.28); border-radius: 20px; color: var(--muted); background: var(--green-soft); }
.camera-guide svg { width: 58px; height: 58px; color: var(--green); }
.manual-code { margin-top: 18px; display: grid; gap: 8px; text-align: left; }
.manual-code > span { color: var(--muted); font-size: .83rem; }
.manual-code > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.manual-code input { min-width: 0; }
.reception-result { max-width: 680px; margin-inline: auto; }
.reception-result.already { border: 2px solid var(--green); }

.personal-qr-card { max-width: 520px; margin-inline: auto; text-align: center; }
.personal-qr { width: min(76vw, 310px); aspect-ratio: 1; margin: 20px auto; display: grid; place-items: center; padding: 18px; border: 12px solid white; border-radius: 24px; box-shadow: 0 12px 38px rgba(21, 55, 50, .15); background: white; }
.personal-qr svg { width: 100%; height: 100%; }
.personal-qr.checked { width: 150px; color: white; background: var(--green); border-color: var(--green); }
.personal-qr.checked svg { width: 70px; height: 70px; }
.personal-qr-card > strong,
.personal-qr-card > span { display: block; }
.personal-qr-card > span { color: var(--muted); font-size: .82rem; }

.media-upload-row { margin: 18px 0 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.media-upload-row input { min-width: 0; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.media-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.media-card.moderated { opacity: .72; }
.media-content { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #eef3f1; }
.media-content img,
.media-content video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-copy { padding: 13px; display: grid; gap: 7px; }
.media-copy small { color: var(--muted); }
.media-copy p { margin: 0; }
.media-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-status { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 8px; color: white; background: rgba(20,31,29,.8); font-size: .72rem; font-weight: 800; }

@media (max-width: 900px) {
  .day-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-field-add { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lifecycle-card {
  border-left: 5px solid var(--teal);
  background: linear-gradient(120deg, var(--teal-soft), #fff);
}

.lifecycle-card .field { max-width: 480px; }
.day-lifecycle-card { margin: 18px 0; }
.day-lifecycle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.day-lifecycle-heading h2 { margin: 3px 0 0; }
.day-lifecycle-status {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #f1efeb;
  font-size: .72rem;
  font-weight: 900;
}
.day-lifecycle-status.open { color: #176f66; background: #dff3ed; }
.day-lifecycle-status.live { color: white; background: var(--teal); }
.day-lifecycle-status.warning { color: #9b3f42; background: #ffe5e2; }
.day-lifecycle-status.ended { color: #62686f; background: #e9e7e3; }
.day-lifecycle-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.day-lifecycle-controls .field { max-width: none; margin: 0; }
.day-lifecycle-controls > button { min-height: 48px; }
.day-lifecycle-advanced { margin-top: 14px; border-top: 1px solid var(--line); }
.day-lifecycle-advanced summary { padding: 14px 0 0; color: var(--ink-soft); font-weight: 800; cursor: pointer; }
.day-lifecycle-advanced > div { display: grid; gap: 14px; padding-top: 14px; }
.day-lifecycle-advanced .field { max-width: none; margin: 0; }
.owner-transfer-button { color: var(--coral-dark); border-color: rgba(239, 98, 81, .35); }
.invite-admin-actions { margin-top: 18px; justify-content: center; }
.invite-paused { display: grid; justify-items: center; gap: 16px; padding: 28px 12px 10px; text-align: center; }
.invite-paused > span { width: 64px; height: 64px; display: grid; place-items: center; color: var(--coral-dark); border-radius: 20px; background: var(--coral-soft); }
.invite-paused > span svg { width: 30px; height: 30px; }
.cloud-password-reset { margin-top: 12px; }
.cloud-audit-list { display: grid; gap: 8px; margin: 18px 0; }
.cloud-audit-list article { display: grid; grid-template-columns: minmax(130px, auto) 1fr auto; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cloud-audit-list time, .cloud-audit-list span { color: var(--ink-soft); font-size: .78rem; }

@media (max-width: 680px) {
  .cloud-audit-list article { grid-template-columns: 1fr; gap: 2px; }

  .miwa-event-summary { border-radius: 22px; padding: 24px 20px; }
  .miwa-event-summary h1 { padding-right: 0; font-size: 2rem; }
  .miwa-phase-pill { position: static; display: inline-block; margin-bottom: 14px; }
  .miwa-summary-heading { padding-right: 0; }
  .miwa-event-plan-badge { min-height: 20px; font-size: .64rem; }
  .miwa-event-meta { display: grid; gap: 7px; }
  .miwa-next-action { grid-template-columns: 48px 1fr 18px; padding: 16px; }
  .miwa-next-action > span { width: 48px; height: 48px; }
  .miwa-home-grid,
  .day-action-grid,
  .miwa-admin-menu { grid-template-columns: 1fr; }
  .miwa-home-card { min-height: 86px; }
  .payment-summary-card { grid-template-columns: 1fr; }
  .payment-summary-card > p,
  .payment-summary-card > button { grid-column: auto; }
  .miwa-phase-banner { grid-template-columns: 48px 1fr; padding: 17px; }
  .miwa-phase-banner > span { width: 48px; height: 48px; }
  .miwa-phase-banner > button { grid-column: 1 / -1; width: 100%; }
  .day-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-metric-grid article { padding: 16px 8px; }
  .day-metric-grid strong { font-size: 1.8rem; }
  .day-lifecycle-heading { align-items: flex-start; }
  .day-lifecycle-controls { grid-template-columns: 1fr; }
  .day-lifecycle-controls > button { width: 100%; justify-content: center; }
  .operational-summary { grid-template-columns: 1fr 1fr; }
  .profile-field-add { grid-template-columns: 1fr; }
  .media-upload-row { grid-template-columns: 1fr; }
  .miwa-map-link { min-height: 44px; padding-block: 8px; }
  .media-upload-row input { min-height: 44px; font-size: 16px; }
  .media-upload-row .secondary-button,
  .media-upload-row .primary-button { width: 100%; justify-content: center; }
  .media-grid { grid-template-columns: 1fr; }
  .manual-code > div { grid-template-columns: 1fr; }
  .reception-detail div { display: grid; gap: 3px; }
  .reception-detail dd { text-align: left; }
  .profile-detail-hero { align-items: flex-start; }
  .profile-detail-list > div { grid-template-columns: 1fr; gap: 5px; }
}
/* Event title wrapping and participant hero themes */
.event-title-text {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: balance;
}

.miwa-event-summary.theme-green {
  background: radial-gradient(circle at 88% 18%, rgba(255, 201, 76, .34), transparent 28%), linear-gradient(135deg, #176f66, #298b7d);
}
.miwa-event-summary.theme-coral {
  background: radial-gradient(circle at 88% 18%, rgba(255, 210, 92, .38), transparent 28%), linear-gradient(135deg, #9b3f42, #ef6c59);
}
.miwa-event-summary.theme-sunset {
  background: radial-gradient(circle at 88% 18%, rgba(255, 178, 179, .34), transparent 28%), linear-gradient(135deg, #8b4c24, #d98a35);
}
.miwa-event-summary.theme-ocean {
  background: radial-gradient(circle at 88% 18%, rgba(121, 228, 220, .32), transparent 28%), linear-gradient(135deg, #175b78, #218ca2);
}
.miwa-event-summary.theme-night {
  background: radial-gradient(circle at 88% 18%, rgba(204, 188, 255, .30), transparent 28%), linear-gradient(135deg, #273050, #525d85);
}

.event-theme-field { min-width: 0; margin: 0 0 17px; padding: 0; border: 0; }
.event-theme-field legend { margin-bottom: 9px; font-size: 13px; font-weight: 900; }
.event-theme-field > small { display: block; margin-top: 8px; color: var(--muted); }
.event-theme-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.event-theme-choice { min-width: 0; cursor: pointer; }
.event-theme-choice input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.event-theme-swatch { display: block; height: 48px; border: 3px solid white; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .18s ease, transform .18s ease; }
.event-theme-choice input:checked + .event-theme-swatch { box-shadow: 0 0 0 3px var(--green); transform: translateY(-1px); }
.event-theme-choice input:focus-visible + .event-theme-swatch { outline: 3px solid rgba(37, 116, 105, .28); outline-offset: 3px; }
.event-theme-choice strong { display: block; margin-top: 7px; overflow: hidden; font-size: .76rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.event-theme-swatch.theme-green { background: linear-gradient(135deg, #176f66, #298b7d); }
.event-theme-swatch.theme-coral { background: linear-gradient(135deg, #9b3f42, #ef6c59); }
.event-theme-swatch.theme-sunset { background: linear-gradient(135deg, #8b4c24, #d98a35); }
.event-theme-swatch.theme-ocean { background: linear-gradient(135deg, #175b78, #218ca2); }
.event-theme-swatch.theme-night { background: linear-gradient(135deg, #273050, #525d85); }

@media (max-width: 600px) {
  .event-theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-theme-choice:last-child { grid-column: 1 / -1; }
}

.schedule-form-field > small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.6; }
.schedule-editor-scope { min-width: 0; }
.schedule-editor-list { display: grid; gap: 12px; margin: 18px 0 12px; }
.schedule-edit-row { min-width: 0; display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(120px, .55fr) minmax(220px, 1.3fr); gap: 12px; align-items: end; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.schedule-row-head { min-width: 0; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.schedule-row-head strong { font-size: .9rem; }
.schedule-row-head .table-button { flex: 0 0 auto; min-height: 44px; }
.schedule-date-group { min-width: 0; display: grid; gap: 8px; }
.schedule-date-group-head { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.schedule-range-toggle { width: max-content; max-width: 100%; min-height: 36px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.schedule-edit-row .schedule-range-toggle input { width: 18px; height: 18px; min-width: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.schedule-date-inputs { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.schedule-date-group[data-range-active="true"] { grid-column: 1 / -1; }
.schedule-date-group[data-range-active="true"] .schedule-date-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-date-group[data-range-active="true"] + .schedule-time-field { grid-column: 1 / 2; }
.schedule-date-group[data-range-active="true"] ~ .schedule-title-field { grid-column: 2 / -1; }
.schedule-end-date-field[hidden] { display: none; }
.schedule-edit-row .field { min-width: 0; margin: 0; }
.schedule-edit-row .field > span { color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.schedule-edit-row input { width: 100%; min-width: 0; font-size: 16px; }
.schedule-editor-actions { display: flex; justify-content: flex-start; }
.schedule-editor-actions .secondary-button { min-height: 44px; }
.schedule-save-actions { justify-content: flex-end; margin-top: 14px; }
.schedule-timeline { margin-top: 24px; }
.schedule-timeline li { grid-template-columns: 190px 18px minmax(0, 1fr); }
.schedule-timeline li:not(:last-child)::after { left: 207px; }
.schedule-timeline .timeline-time { overflow-wrap: anywhere; line-height: 1.55; }
.schedule-timeline .timeline-label { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .schedule-edit-row { grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr); }
  .schedule-date-group { grid-column: 1 / -1; }
  .schedule-title-field { grid-column: auto; }
}

@media (max-width: 680px) {
  .schedule-edit-row {
    grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
    grid-template-areas:
      "head head"
      "dates dates"
      "time title";
    gap: 12px 10px;
    padding: 13px;
  }
  .schedule-row-head { grid-area: head; }
  .schedule-date-group { grid-area: dates; }
  .schedule-time-field { grid-area: time; min-width: 0; }
  .schedule-title-field { grid-area: title; min-width: 0; }
  .schedule-date-inputs,
  .schedule-date-group[data-range-active="true"] .schedule-date-inputs { grid-template-columns: minmax(0, 1fr); }
  .schedule-edit-row input[type="date"] { display: block; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; padding-inline: 12px; font-variant-numeric: tabular-nums; }
  .schedule-edit-row input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
  .schedule-timeline li { grid-template-columns: 138px 18px minmax(0, 1fr); }
  .schedule-timeline li:not(:last-child)::after { left: 155px; }
  .schedule-save-actions .primary-button { width: 100%; }
}

@media (max-width: 420px) {
  .schedule-editor-actions .secondary-button { width: 100%; }
  .schedule-timeline li { grid-template-columns: 18px minmax(0, 1fr); gap: 4px 10px; }
  .schedule-timeline li:not(:last-child)::after { left: 5px; }
  .schedule-timeline .timeline-time { grid-column: 2; grid-row: 1; }
  .schedule-timeline .timeline-dot { grid-column: 1; grid-row: 1 / span 2; }
  .schedule-timeline .timeline-label { grid-column: 2; grid-row: 2; }
}

@media (max-width: 360px) {
  .schedule-edit-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "dates"
      "time"
      "title";
  }
  .schedule-date-group[data-range-active="true"] { grid-area: dates; grid-column: 1; }
  .schedule-date-group[data-range-active="true"] + .schedule-time-field { grid-area: time; grid-column: 1; }
  .schedule-date-group[data-range-active="true"] ~ .schedule-title-field { grid-area: title; grid-column: 1; }
  .schedule-date-group-head { align-items: flex-start; flex-direction: column; }
}

/* Cancellation, analytics, legal consent, and multi-upload */
.miwa-cancelled-banner { width: 100%; display: grid; grid-template-columns: 58px 1fr 22px; gap: 16px; align-items: center; margin: 18px 0; padding: 20px; border: 1px solid #e8a2a2; border-radius: 20px; color: #7f1d1d; text-align: left; background: linear-gradient(135deg, #fff1f1, #ffe5e5); box-shadow: 0 12px 30px rgba(127,29,29,.1); }
.miwa-cancelled-banner > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: white; background: #b4232c; }
.miwa-cancelled-banner svg { width: 25px; height: 25px; }
.miwa-cancelled-banner small, .miwa-cancelled-banner strong, .miwa-cancelled-banner p { display: block; }
.miwa-cancelled-banner small { font-weight: 900; letter-spacing: .08em; }
.miwa-cancelled-banner strong { margin-top: 3px; font-size: 1.05rem; }
.miwa-cancelled-banner p { margin: 5px 0 0; color: #9b2c2c; }
.analytics-hero { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; padding: 26px; border-radius: 24px; color: white; background: linear-gradient(135deg, #176f66, #2d887d); }
.analytics-hero h1, .analytics-hero p { margin: 3px 0; }
.analytics-hero .secondary-button { flex: none; background: white; }
.analytics-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.analytics-metric-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.analytics-metric-grid span, .analytics-metric-grid small { display: block; color: var(--ink-soft); }
.analytics-metric-grid strong { display: block; margin: 5px 0; font-size: 2rem; color: var(--ink); }
.analytics-progress-list { display: grid; gap: 18px; }
.analytics-progress { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(180px, 3fr) 50px; gap: 16px; align-items: center; }
.analytics-progress > div:first-child { display: grid; }
.analytics-progress span { color: var(--ink-soft); font-size: .8rem; }
.analytics-progress em { color: var(--teal); font-style: normal; font-weight: 900; text-align: right; }
.analytics-track { width: 100%; height: 12px; overflow: hidden; appearance: none; border: 0; border-radius: 99px; background: #e8efed; }
.analytics-track::-webkit-progress-bar { border-radius: inherit; background: #e8efed; }
.analytics-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--teal), #45a696); }
.analytics-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--teal), #45a696); }
.analytics-summary-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.analytics-summary-row div { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.analytics-summary-row strong, .analytics-summary-row span { display: block; }
.analytics-summary-row strong { font-size: 1.7rem; }
.analytics-summary-row span { color: var(--ink-soft); font-size: .82rem; }
.media-upload-status { display: flex; gap: 10px; align-items: center; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); color: var(--teal); }
.media-upload-status .cloud-spinner { width: 20px; height: 20px; }
.cloud-legal-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); line-height: 1.6; }
.cloud-legal-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--teal); }
.cloud-legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-right: 4px; }
.cloud-legal-links a { color: var(--teal); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-consent-card { display: grid; gap: 12px; }
.legal-consent-card .cloud-legal-links { margin-bottom: 4px; }
.event-change-notice { margin: 4px 0 18px; }
@media (max-width: 760px) {
  .analytics-hero { align-items: stretch; flex-direction: column; }
  .analytics-hero .secondary-button { width: 100%; justify-content: center; }
  .analytics-metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .analytics-progress { grid-template-columns: 1fr 50px; gap: 8px 12px; }
  .analytics-track { grid-column: 1 / -1; grid-row: 2; }
  .analytics-progress em { grid-column: 2; grid-row: 1; }
  .analytics-summary-row { grid-template-columns: 1fr; }
  .miwa-cancelled-banner { grid-template-columns: 48px 1fr 18px; padding: 16px; }
  .miwa-cancelled-banner > span { width: 48px; height: 48px; }
}
/* Event-wide reception and payment operations */
.miwa-checkin-notice { width: 100%; margin-top: 14px; border: 1px solid #b9d9d2; border-radius: 20px; background: linear-gradient(135deg, #e8f6f2, #fff8df); color: var(--ink); padding: 18px; display: grid; grid-template-columns: 48px 1fr 22px; gap: 14px; align-items: center; text-align: left; cursor: pointer; box-shadow: 0 10px 26px rgba(25, 67, 61, .08); }
.miwa-checkin-notice > span:first-child { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--green); }
.miwa-checkin-notice > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.miwa-checkin-notice small { color: var(--green); font-weight: 800; letter-spacing: .08em; }
.miwa-checkin-notice strong { font-size: 1.06rem; }
.miwa-checkin-notice em { color: var(--muted); font-size: .88rem; font-style: normal; }
.miwa-checkin-notice.pending_approval { border-color: #efcf78; background: #fff8df; }
.miwa-checkin-notice.checked_in { border-color: #9fd7c8; background: #e8f6f2; }
.self-checkin-card { max-width: 680px; margin-inline: auto; text-align: center; display: grid; gap: 16px; }
.self-checkin-card > p { margin: 0; color: var(--muted); }
.checkin-state-icon { width: 92px; height: 92px; margin: 0 auto; border-radius: 28px; display: grid; place-items: center; background: #e8f6f2; color: var(--green); }
.checkin-state-icon svg { width: 44px; height: 44px; }
.checkin-state-icon.complete { background: #def5e8; color: #11734f; }
.checkin-state-icon.pending, .checkin-state-icon.cash { background: #fff2c9; color: #9a6100; }
.checkin-state-icon.muted { background: #eef0f3; color: #6f7783; }
.self-checkin-card .reception-detail { text-align: left; margin-top: 8px; }
.reception-control { border-radius: 24px; padding: 24px; color: #fff; display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #66717b; box-shadow: 0 16px 34px rgba(25, 50, 47, .12); }
.reception-control.open { background: linear-gradient(135deg, #146c5d, #26897a); }
.reception-control h1, .reception-control p { margin: 0; }
.reception-control .eyebrow { color: rgba(255,255,255,.78); }
.reception-control-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.reception-control-actions select { min-height: 46px; border: 0; border-radius: 12px; padding: 0 12px; background: #fff; color: var(--ink); }
.danger-button { min-height: 46px; border: 1px solid rgba(255,255,255,.55); border-radius: 13px; padding: 0 18px; color: #fff; background: #a23838; font-weight: 800; cursor: pointer; }
.reception-metrics { margin: 18px 0; }
.reception-display-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.reception-display-card > div:first-child { min-width: 0; }
.reception-display-card small { display: block; max-width: 720px; overflow-wrap: anywhere; color: var(--muted); }
.reception-list-card { display: grid; gap: 16px; }
.reception-member-list { display: grid; gap: 12px; }
.reception-member-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(340px, 1fr) auto; gap: 18px; align-items: center; background: #fff; }
.reception-member-card.pending_approval { border-color: #e7bd4c; box-shadow: inset 4px 0 #efb72e; background: #fffdf5; }
.reception-member-card.checked_in { border-color: #a8d8ca; background: #f5fbf9; }
.reception-member-main { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-width: 0; }
.reception-member-main > span:nth-child(2) { display: grid; min-width: 0; }
.reception-member-main strong { overflow-wrap: anywhere; }
.reception-member-main small { color: var(--muted); }
.reception-member-card dl { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px 14px; margin: 0; }
.reception-member-card dl div { display: grid; gap: 2px; }
.reception-member-card dt { color: var(--muted); font-size: .76rem; }
.reception-member-card dd { margin: 0; font-weight: 700; }
.reception-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.reception-action { white-space: nowrap; }
.table-subtext { display: block; color: var(--muted); margin-top: 3px; }
.legacy-scanner { margin-top: 18px; }
.legacy-scanner summary { cursor: pointer; font-weight: 800; }
.legacy-scanner .checkin-scanner-card { margin-top: 18px; }
@media (max-width: 920px) {
  .reception-control, .reception-display-card { align-items: stretch; flex-direction: column; }
  .reception-control-actions { justify-content: stretch; }
  .reception-control-actions > * { flex: 1 1 190px; }
  .reception-member-card { grid-template-columns: 1fr; }
  .reception-card-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .miwa-checkin-notice { grid-template-columns: 42px 1fr 18px; padding: 15px; border-radius: 17px; }
  .miwa-checkin-notice > span:first-child { width: 42px; height: 42px; border-radius: 13px; }
  .reception-control { padding: 18px; border-radius: 18px; }
  .reception-control-actions { display: grid; grid-template-columns: 1fr; }
  .reception-list-card { display: block; }
  .reception-list-card > * { width: 100%; max-width: 100%; min-width: 0; }
  .reception-list-card > .toolbar,
  .reception-list-card > .miwa-filter-row,
  .reception-list-card > .reception-member-list { margin-bottom: 16px; }
  .reception-list-card .member-toolbar { grid-template-columns: minmax(0, 1fr); }
  .reception-list-card .search-wrap,
  .reception-list-card .search-input { width: 100%; min-width: 0; }
  .reception-member-list { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .reception-member-card,
  .reception-member-card > * { min-width: 0; }
  .reception-member-card { padding: 14px; gap: 14px; }
  .reception-member-main { grid-template-columns: auto 1fr; }
  .reception-member-main > .status-pill { grid-column: 1 / -1; justify-self: start; }
  .reception-member-card dl { grid-template-columns: 1fr 1fr; }
  .reception-card-actions > button { width: 100%; }
  .self-checkin-card { padding-inline: 18px; }
}

/* In-app MEEWA support */
.support-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-color: rgba(37, 116, 105, .24);
  background: linear-gradient(135deg, #f1faf7, #fff);
}
.support-entry-card > div { min-width: 0; }
.support-entry-card h2, .support-entry-card p { margin-block: 4px; }
.support-entry-card small { display: block; margin-top: 8px; color: var(--muted); }
.support-entry-card > button { flex: none; }
.support-page, .support-detail-page { max-width: 1120px; }
.support-intro-card {
  border-color: rgba(37, 116, 105, .22);
  background: linear-gradient(135deg, #e9f7f3, #fff9e8);
}
.support-intro-card h2 { margin: 4px 0 8px; }
.support-intro-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.support-form-card, .support-list-card, .support-conversation { display: grid; gap: 17px; }
.support-form-card h2, .support-list-card h2 { margin: 3px 0 0; }
.support-context {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #b9d9d2;
  border-radius: 14px;
  color: var(--ink);
  background: #edf8f5;
}
.support-context small { color: var(--green); font-weight: 900; }
.support-context span { color: var(--muted); font-size: .8rem; }
.support-context.neutral { border-color: var(--line); background: var(--surface-2); }
.support-context.payment { border-color: #efcf78; background: #fff8df; }
.support-case-list { display: grid; gap: 10px; }
.support-case-card {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  cursor: pointer;
}
.support-case-card:hover { border-color: #9bcfc4; background: #f8fcfb; }
.support-case-card:focus-visible { outline: 3px solid rgba(37, 116, 105, .28); outline-offset: 2px; }
.support-case-main { display: grid; gap: 3px; min-width: 0; }
.support-case-main small { color: var(--green); font-weight: 800; }
.support-case-main strong { overflow-wrap: anywhere; }
.support-case-main em { color: var(--muted); font-size: .76rem; font-style: normal; }
.support-case-card > svg { width: 18px; color: var(--muted); }
.support-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #205c53;
  background: #dff3ee;
  font-size: .75rem;
  font-weight: 900;
  white-space: nowrap;
}
.support-status.reviewing { color: #805500; background: #fff0bf; }
.support-status.waiting { color: #8b4c24; background: #ffead8; }
.support-status.resolved { color: #5d6570; background: #edf0f2; }
.support-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.support-state p { margin: 0; }
.support-state.support-error { color: #9b2c2c; border-color: #e8a2a2; background: #fff4f4; }
.support-unavailable > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--green); background: #e5f5f0; }
.support-unavailable > span svg { width: 28px; height: 28px; }
.support-detail-head { display: grid; gap: 12px; }
.support-detail-head h2 { margin: 0; overflow-wrap: anywhere; }
.support-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.support-detail-meta small { color: var(--muted); font-weight: 800; }
.support-detail-head dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.support-detail-head dl div { display: grid; gap: 2px; }
.support-detail-head dt { color: var(--muted); font-size: .75rem; }
.support-detail-head dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.support-timeline { display: grid; gap: 14px; margin: 0; padding: 4px 0; list-style: none; }
.support-timeline li {
  width: min(86%, 680px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 5px;
  background: var(--surface-2);
}
.support-timeline li.from-requester {
  justify-self: end;
  border-color: #acd6cd;
  border-radius: 17px 17px 5px 17px;
  background: #eaf7f4;
}
.support-timeline li > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.support-timeline strong { font-size: .82rem; }
.support-timeline time { color: var(--muted); font-size: .72rem; }
.support-timeline p { margin: 8px 0 0; overflow-wrap: anywhere; line-height: 1.7; }
.support-reply { display: grid; gap: 9px; padding-top: 17px; border-top: 1px solid var(--line); }
.support-reply label { font-weight: 900; }
.support-reply textarea { min-height: 120px; }
.support-reply button { justify-self: end; }
.support-closed-note { margin: 0; padding: 13px 15px; border-radius: 13px; color: var(--muted); background: var(--surface-2); }

.cloud-current-event-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cloud-current-event-title h2 { margin: 0; }
.cloud-plan-chip,
.feature-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #d8d2ca;
  border-radius: 999px;
  color: #62686f;
  background: #f5f3ef;
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}
.cloud-plan-chip.is-standard,
.admin-menu-button .feature-plan-badge {
  border-color: #a8d2c9;
  color: #1f665c;
  background: #e8f6f2;
}
.cloud-standard-plan-card {
  display: grid;
  gap: 16px;
  border-color: #cfe3de;
  background: linear-gradient(145deg, #fff 0%, #f7fbfa 100%);
}
.cloud-standard-plan-card .eyebrow,
.cloud-standard-plan-card > p { margin: 0; }
.cloud-standard-plan-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.cloud-standard-plan-summary > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e3e0da;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
}
.cloud-standard-plan-summary dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.cloud-standard-plan-summary dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 900;
}
.cloud-standard-plan-action {
  display: flex;
  justify-content: flex-end;
}
.admin-menu-button strong:has(.feature-plan-badge) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.feature-plan-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #ded9d1;
  border-radius: 13px;
  color: var(--ink-soft);
  background: #f8f6f2;
  font-size: .82rem;
  line-height: 1.55;
}
.feature-plan-notice strong { flex: none; color: var(--ink); font-size: .86rem; }
.is-plan-read-only .media-upload-row,
.is-plan-read-only .media-upload-status,
.is-plan-read-only .media-intro > small { display: none; }

@media (max-width: 760px) {
  .support-entry-card { align-items: stretch; flex-direction: column; }
  .support-entry-card > button { width: 100%; justify-content: center; }
  .support-layout { grid-template-columns: 1fr; }
  .support-form-card { order: 1; }
  .support-list-card { order: 2; }
  .support-case-card { grid-template-columns: minmax(0, 1fr) 18px; }
  .support-case-card .support-status { grid-column: 1; grid-row: 2; justify-self: start; }
  .support-case-card > svg { grid-column: 2; grid-row: 1 / span 2; }
  .support-timeline li { width: 94%; }
  .support-timeline li > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .support-reply button { width: 100%; justify-content: center; }
  .feature-plan-notice { align-items: flex-start; flex-direction: column; gap: 2px; }
  .cloud-standard-plan-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-standard-plan-action > button { width: 100%; justify-content: center; }
}

/* Narrow-screen balance */
.miwa-next-action > *,
.miwa-checkin-notice > *,
.miwa-home-card > *,
.support-case-card > * { min-width: 0; }

@media (max-width: 560px) {
  .miwa-next-action,
  .miwa-checkin-notice { gap: 10px; padding: 14px 12px; }
  .miwa-checkin-notice small {
    font-size: .78rem;
    line-height: 1.45;
    text-wrap: pretty;
    overflow-wrap: anywhere;
  }
  .miwa-event-summary h1 {
    font-size: clamp(1.75rem, 9vw, 2rem);
    text-wrap: balance;
  }
  .reception-member-card dl,
  .operational-summary { grid-template-columns: 1fr; }
  .support-timeline li { width: 100%; padding: 13px 14px; }
  .support-case-card { gap: 8px; padding: 13px; }
}

@media (max-width: 680px) {
  .miwa-event-summary.is-compact { padding: 20px 18px; border-radius: 18px; }
  .miwa-event-summary.is-compact h1 { margin-bottom: 10px; padding-right: 0; font-size: clamp(1.65rem, 8vw, 2rem); }
  .miwa-event-summary.is-compact .miwa-phase-pill { margin-bottom: 10px; padding: 5px 10px; font-size: .72rem; }
  .miwa-summary-footer { margin-top: 13px; gap: 9px; }
  .miwa-summary-actions { margin-top: 13px; }
  .miwa-summary-link { min-height: 32px; padding: 5px 10px; font-size: .72rem; }
  .miwa-participant-count { min-width: 92px; padding: 7px 9px; border-radius: 12px; }
  .miwa-participant-count strong { font-size: 1.08rem; }
  .miwa-guide-card { border-radius: 16px; }
  .miwa-guide-title { padding: 12px 13px 5px; }
  .miwa-guide-primary { min-height: 74px; padding: 9px 13px 12px; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .miwa-guide-primary.is-complete { grid-template-columns: 40px minmax(0, 1fr); }
  .miwa-guide-primary-icon { width: 40px; height: 40px; }
  .miwa-guide-primary-icon svg { width: 20px; height: 20px; }
  .miwa-guide-primary-copy strong { font-size: .93rem; }
  .miwa-guide-primary-copy small { font-size: .73rem; }
  .miwa-guide-cta { min-width: 78px; min-height: 35px; padding: 7px 11px; font-size: .76rem; }
  .miwa-guide-footer { padding: 7px 11px; }
  .miwa-guide-progress { grid-template-columns: auto minmax(44px, 72px); gap: 7px; }
  .miwa-latest-notice { padding: 14px 15px; border-radius: 16px; }
  .organizer-summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
  }
  .organizer-summary-metrics .metric-card {
    min-width: 0;
    min-height: 88px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
  }
  .organizer-summary-metrics .metric-card p {
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    font-size: clamp(.54rem, 2.4vw, .64rem);
    line-height: 1.25;
  }
  .organizer-summary-metrics .metric-card strong {
    font-size: clamp(1.1rem, 5.5vw, 1.4rem);
    white-space: nowrap;
  }
  .organizer-summary-metrics .metric-card strong small { font-size: .55rem; }
  .organizer-summary-metrics .metric-card > small { display: none; }
}

@media (max-width: 360px) {
  .miwa-summary-footer { grid-template-columns: 1fr; }
  .miwa-participant-count { justify-self: end; }
}

@media (max-width: 350px) {
  .miwa-guide-primary { grid-template-columns: 40px minmax(0, 1fr); }
  .miwa-guide-cta { grid-column: 2; width: 100%; justify-self: stretch; }
  .miwa-guide-progress { grid-template-columns: auto 44px; }
  .miwa-guide-details summary { font-size: .66rem; }
  .organizer-summary-metrics { gap: 5px; }
  .organizer-summary-metrics .metric-card { min-height: 82px; padding: 8px 4px; }
}

/* Compact event-page editor */
.event-page-manager { display: grid; gap: 20px; }
.event-page-empty { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.event-page-empty p { margin: 6px 0 0; color: var(--ink-soft); }
.event-page-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-page-publish-state { flex: none; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface-2); font-size: .76rem; font-weight: 900; }
.event-page-publish-state.is-public { color: #176b57; border-color: #a9d9cc; background: #e8f7f2; }
.event-page-theme-field { margin: 0; padding: 0; border: 0; }
.event-page-theme-field legend { margin-bottom: 9px; font-size: .84rem; font-weight: 900; }
.event-page-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.event-page-theme-choice { position: relative; min-width: 0; cursor: pointer; }
.event-page-theme-choice input { position: absolute; opacity: 0; pointer-events: none; }
.event-page-theme-choice > span { display: block; height: 70px; border: 3px solid transparent; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(20, 35, 50, .14); transition: border-color .16s ease, transform .16s ease; }
.event-page-theme-choice strong { display: block; margin-top: 6px; text-align: center; font-size: .74rem; letter-spacing: .05em; }
.event-page-theme-choice input:checked + span { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 5px 14px rgba(40, 111, 102, .18); }
.event-page-theme-choice input:focus-visible + span { outline: 3px solid rgba(40, 111, 102, .22); outline-offset: 2px; }
.event-page-theme-choice.is-pop > span { background: radial-gradient(circle at 82% 20%, #ffda43 0 15%, transparent 16%), linear-gradient(135deg, #ff6b69, #ffb648); }
.event-page-theme-choice.is-cool > span { background: linear-gradient(135deg, #101f39, #176f86); }
.event-page-theme-choice.is-simple > span { background: linear-gradient(135deg, #f7f5f0 50%, #286f66 51%); }
.event-page-theme-choice.is-elegant > span { background: linear-gradient(135deg, #211c2f, #845f70 62%, #c6a86d); }
.event-page-image-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.event-page-image-preview { min-width: 0; aspect-ratio: 16 / 7; max-height: 240px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.event-page-image-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-page-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 20px; text-align: center; color: white; background: linear-gradient(135deg, #1a7268, #43a5ae); }
.event-page-image-placeholder strong { max-width: 100%; font-size: clamp(1.2rem, 3vw, 2rem); overflow-wrap: anywhere; }
.event-page-image-placeholder span { font-size: .75rem; opacity: .85; }
.event-page-image-actions { display: flex; align-items: stretch; flex-direction: column; gap: 8px; }
.event-page-url { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); }
.event-page-url span { font-size: .75rem; font-weight: 900; }
.event-page-url code { min-width: 0; overflow: hidden; color: var(--ink-soft); font-family: inherit; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.event-page-actions { margin-top: 0; }

@media (max-width: 600px) {
  .event-page-empty { grid-template-columns: 1fr; }
  .event-page-empty > button { width: 100%; }
  .event-page-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-page-image-field { grid-template-columns: 1fr; }
  .event-page-image-preview { aspect-ratio: 16 / 9; }
  .event-page-image-actions { display: grid; grid-template-columns: 1fr auto; }
  .event-page-image-actions .secondary-button { justify-content: center; }
  .event-page-url { grid-template-columns: 1fr; gap: 4px; }
  .event-page-actions > button { flex: 1 1 140px; justify-content: center; }
}

/* Final shared balance rules follow the older feature-specific breakpoints. */
.miwa-summary-link { min-height: 40px; line-height: 1.45; }
.miwa-guide-cta, .miwa-summary-link > svg { flex-shrink: 0; }
.miwa-guide-primary-copy, .miwa-home-card > div { min-width: 0; }
.miwa-guide-primary-copy small, .miwa-home-card small { line-height: 1.55; }
.personal-qr, .profile-crop-stage { max-width: 100%; }
.day-metric-grid article, .analytics-metric-grid article, .payment-summary-card > div { min-width: 0; }
.day-metric-grid strong, .analytics-metric-grid strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.event-page-theme-field { min-width: 0; }
.event-page-manager-head h2 { margin: 0; }
.event-page-image-actions { gap: 10px; }
.media-upload-row input { font-size: 16px; }
.media-upload-row > input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 13px; background: white; color: var(--ink); font-family: inherit; }
.day-mode-hero h1, .analytics-hero h1, .miwa-event-summary h1 { line-height: 1.4; text-wrap: balance; overflow-wrap: anywhere; }
.analytics-hero > div { min-width: 0; }
.analytics-hero .secondary-button, .reception-control .secondary-button { color: var(--ink); border-color: var(--line); }
@media (max-width: 680px) {
  .miwa-summary-link { min-height: 40px; font-size: 12px; }
  .day-mode-hero h1, .analytics-hero h1 { font-size: 28px; }
  .miwa-guide-cta { min-height: 44px; }
  .organizer-summary-metrics .metric-card { padding: 12px 9px; }
  .organizer-summary-metrics .metric-card p { font-size: 12px; line-height: 1.5; }
  .organizer-summary-metrics .metric-card strong { font-size: 24px; line-height: 1.3; }
  .organizer-summary-metrics .metric-card strong small { font-size: 12px; }
  .event-page-image-actions { grid-template-columns: 1fr; }
  .event-page-image-actions > button { width: 100%; min-height: 44px; }
}
@media (max-width: 360px) {
  .organizer-summary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .organizer-summary-metrics .metric-card:first-child { grid-column: 1 / -1; }
}
