:root {
  color-scheme: light;
  --forest-950: #0b2b22;
  --forest-900: #103b2f;
  --forest-800: #18533f;
  --forest-700: #246c52;
  --forest-600: #318266;
  --mint-100: #e9f7ed;
  --mint-200: #d7f1df;
  --mint-300: #bce8c9;
  --lime: #9dfb4f;
  --lime-soft: #dfffbd;
  --orange: #ef7a21;
  --orange-soft: #fff0e3;
  --red: #c74646;
  --red-soft: #ffeded;
  --blue: #3976bd;
  --blue-soft: #eaf2fb;
  --ink: #17241f;
  --muted: #69766f;
  --line: #dce8e0;
  --surface: #ffffff;
  --surface-2: #f6faf7;
  --background: #eef4f0;
  --overlay: rgba(5, 24, 18, 0.56);
  --shadow-sm: 0 5px 18px rgba(20, 62, 47, 0.07);
  --shadow-lg: 0 26px 70px rgba(17, 57, 43, 0.2);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--background);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef8f1;
  --muted: #9eb0a6;
  --line: #294338;
  --surface: #14271f;
  --surface-2: #102119;
  --background: #091710;
  --mint-100: #17372a;
  --mint-200: #1d4635;
  --mint-300: #285a45;
  --lime-soft: #294b20;
  --orange-soft: #432918;
  --red-soft: #3c2020;
  --blue-soft: #1d3147;
  --overlay: rgba(0, 0, 0, 0.72);
  --shadow-sm: 0 5px 18px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  background:
    radial-gradient(circle at 16% 0, color-mix(in srgb, var(--mint-300) 70%, transparent), transparent 34%),
    linear-gradient(145deg, var(--background), color-mix(in srgb, var(--forest-700) 10%, var(--background)));
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1em; height: 1em; }

.desktop-toolbar {
  width: min(920px, calc(100vw - 40px));
  min-height: 52px;
  margin: 12px auto 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--forest-900);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
:root[data-theme="dark"] .desktop-toolbar { color: var(--ink); }
.desktop-toolbar > div:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.desktop-toolbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.connection-badge {
  padding: 4px 8px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}
.connection-badge.online { color: var(--forest-700); background: var(--mint-100); }
.connection-badge.offline { color: var(--red); background: var(--red-soft); }
.desktop-actions { display: flex; align-items: center; gap: 8px; }
.text-button {
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
}
.text-button { background: transparent; }

.phone-shell {
  position: relative;
  width: min(430px, 100vw);
  height: min(900px, calc(100vh - 84px));
  min-height: 660px;
  margin: 0 auto 20px;
  overflow: hidden;
  background: var(--background);
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--forest-700) 18%, transparent);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.mini-header {
  position: relative;
  z-index: 10;
  height: calc(68px + var(--safe-top));
  padding: calc(14px + var(--safe-top)) calc(12px + var(--safe-right)) 8px calc(12px + var(--safe-left));
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  color: #effff2;
  background: var(--forest-900);
}
.header-copy { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.header-copy strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.header-copy span { margin-top: 2px; color: #b8d5c6; font-size: 10px; }
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.icon-button:active { background: rgba(255,255,255,.1); }
.header-back::before { content: ""; width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.header-back.hidden { visibility: hidden; }
.header-more::before { content: "•••"; letter-spacing: 2px; transform: translateY(-4px); }

.app-view {
  height: calc(100% - 140px - var(--safe-top) - var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.app-view.no-tabs { height: calc(100% - 68px - var(--safe-top)); }

.tabbar {
  position: absolute;
  z-index: 12;
  inset: auto 0 0;
  height: calc(72px + var(--safe-bottom));
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.tab-item {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 10px;
}
.tab-item svg { width: 21px; height: 21px; stroke-width: 1.8; }
.tab-item.active { color: var(--forest-700); font-weight: 750; }
:root[data-theme="dark"] .tab-item.active { color: var(--lime); }
.chamber-tab { position: relative; overflow: visible; }
.tab-brand-ring { width: 47px; height: 47px; margin-top: -24px; padding: 4px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 7px 18px rgba(10,48,35,.2); }
.tab-brand-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chamber-tab > span:last-child { margin-top: -1px; }

.loading-state, .error-state, .empty-state {
  min-height: 280px;
  padding: 50px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.auth-screen { min-height: calc(100% - 12px); display: grid; place-items: center; padding-top: 28px; padding-bottom: 28px; }
.auth-card { width: 100%; }
.auth-card > .entry-icon { width: 52px; height: 52px; margin-bottom: 14px; }
.auth-card h1 { margin: 4px 0 8px; font-size: 23px; }
.auth-card > p { color: var(--muted); line-height: 1.7; }
.auth-card .modal-actions { margin-top: 20px; }
.offline-mode-banner { margin: 10px 14px 0; padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; color: #8b4b16; background: var(--orange-soft); border: 1px solid var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 28%, transparent); border-radius: 12px; font-size: 10px; line-height: 1.5; }
.offline-mode-banner svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.offline-mode-banner strong { display: block; font-size: 11px; }
.loading-dot { width: 12px; height: 12px; margin-bottom: 14px; background: var(--lime); border: 4px solid var(--forest-700); border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .55; } }

.hero {
  position: relative;
  min-height: 260px;
  padding: 30px 18px 20px;
  overflow: hidden;
  color: #f4fff6;
  background:
    radial-gradient(circle at 88% 9%, rgba(157,251,79,.56) 0 35px, rgba(157,251,79,.15) 36px 82px, transparent 83px),
    linear-gradient(145deg, rgba(9,42,34,.96), rgba(16,76,62,.78)),
    url("/assets/changsha-city-light.jpg") center / cover no-repeat;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  left: -8%;
  width: 116%;
  height: 80px;
  border-top: 2px solid rgba(205,255,214,.75);
  border-radius: 50%;
  transform: rotate(-4deg);
}
.hero::before { bottom: 9px; }
.hero::after { bottom: -4px; opacity: .45; transform: rotate(3deg); }
.hero-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hero-brand { display: flex; align-items: center; gap: 7px; }
.hero-brand img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 2px 7px rgba(0,0,0,.22); }
.hero-city { color: #c8e8d2; font-size: 11px; letter-spacing: .18em; }
.stage-pill { padding: 7px 10px; color: #153c2d; background: var(--lime); border-radius: 999px; font-size: 11px; font-weight: 800; }
.hero h1 { position: relative; z-index: 1; margin: 30px 0 10px; max-width: 280px; font-size: 31px; line-height: 1.12; letter-spacing: -.03em; }
.hero-kicker { position: relative; z-index: 1; margin: 0; color: #dff3e4; font-size: 13px; font-weight: 650; }
.hero-meta { position: relative; z-index: 1; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; color: #e6f6ea; background: rgba(8,43,31,.34); border: 1px solid rgba(225,255,233,.2); border-radius: 999px; font-size: 11px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-meta svg { width: 13px; height: 13px; }

.campaign-card {
  margin: -7px 14px 0;
  min-height: 70px;
  padding: 10px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 78px 1fr 24px;
  gap: 12px;
  align-items: center;
}
.video-cover {
  position: relative;
  height: 50px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--forest-800), #7fc84b);
  border-radius: 12px;
}
.campaign-cover { background: linear-gradient(135deg, rgba(16,59,47,.35), rgba(72,171,83,.45)), url("/assets/changsha-city-light.jpg") center / cover no-repeat; }
.video-cover.alt { background: linear-gradient(135deg, #315c88, #6bbfc0); }
.video-cover.warm { background: linear-gradient(135deg, #a35324, #edaa49); }
.video-cover svg { width: 20px; height: 20px; fill: currentColor; }
.campaign-copy strong { display: block; font-size: 13px; }
.campaign-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.content { padding: 14px; }
.section { margin-bottom: 18px; }
.section-head { min-height: 32px; margin: 0 2px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.section-head button, .section-head a { min-height: 44px; padding: 7px 4px; color: var(--forest-600); background: transparent; border: 0; font-size: 11px; }
.card { background: var(--surface); border: 1px solid var(--line); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 15px; }
.status-card { padding: 15px; }
.status-card-top { display: flex; align-items: center; justify-content: space-between; }
.status-card-top strong { font-size: 14px; }
.status-progress { height: 7px; margin: 12px 0 13px; overflow: hidden; background: var(--mint-100); border-radius: 999px; }
.status-progress span { display: block; width: 60%; height: 100%; background: linear-gradient(90deg, var(--lime), #67d956); border-radius: inherit; }
.status-row { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.status-row:first-of-type { border-top: 0; }
.status-value { color: var(--muted); }
.status-badge { padding: 4px 8px; color: var(--forest-800); background: var(--mint-100); border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-badge.pending { color: #a34e0e; background: var(--orange-soft); }
.status-badge.danger { color: var(--red); background: var(--red-soft); }
.status-badge.info { color: var(--blue); background: var(--blue-soft); }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.service-grid-nine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-entry {
  min-height: 78px;
  padding: 10px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(20,62,47,.04);
  font-size: 11px;
  font-weight: 680;
}
.entry-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--forest-700); background: var(--mint-100); border-radius: 11px; }
.entry-icon svg { width: 18px; height: 18px; }
.service-entry[aria-disabled="true"] { opacity: .55; }

.notice-card { min-height: 74px; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.notice-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--orange); background: var(--orange-soft); border-radius: 11px; }
.notice-copy strong { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.notice-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.unread-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.chevron { color: var(--muted); font-size: 20px; }

.showcase-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 72%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.showcase-row::-webkit-scrollbar { display: none; }
.showcase-card { overflow: hidden; scroll-snap-align: start; }
.showcase-cover { height: 96px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #1b6047, #91dc5f); }
.showcase-card:nth-child(2n) .showcase-cover { background: linear-gradient(145deg, #3f5678, #65a59f); }
.showcase-cover svg { width: 30px; height: 30px; fill: currentColor; filter: drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
.showcase-info { padding: 11px; }
.showcase-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.showcase-info span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.page-intro { padding: 20px 16px 12px; background: linear-gradient(180deg, var(--mint-100), transparent); }
.page-intro .eyebrow { color: var(--forest-600); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-intro h1 { margin: 5px 0 7px; font-size: 24px; letter-spacing: -.03em; }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.segmented, .filter-scroll { padding: 9px 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.segmented.sticky { position: sticky; top: 0; z-index: 4; background: var(--background); background: color-mix(in srgb, var(--background) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chip { min-height: 44px; padding: 9px 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; white-space: nowrap; }
.chip.active { color: #103323; background: var(--lime); border-color: var(--lime); font-weight: 750; }

.timeline { padding: 8px 16px 22px; }
.timeline-item { position: relative; margin-left: 9px; padding: 0 0 22px 29px; border-left: 2px solid var(--mint-300); }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 3px; width: 10px; height: 10px; background: var(--lime); border: 2px solid var(--forest-700); border-radius: 50%; box-shadow: 0 0 0 4px var(--background); }
.timeline-time { color: var(--forest-600); font-size: 11px; font-weight: 800; }
.timeline-title { margin: 5px 0; font-size: 14px; font-weight: 750; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.timeline-meta span { display: inline-flex; align-items: center; gap: 4px; }
.updated-mark { margin-left: 5px; padding: 2px 5px; color: #a34e0e; background: var(--orange-soft); border-radius: 5px; font-size: 9px; }

.form-shell { padding: 0 14px 24px; }
.stepper { margin: 8px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.step { padding: 9px 4px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 10px; }
.step.active { color: var(--forest-800); background: var(--lime-soft); border-color: var(--mint-300); font-weight: 750; }
.form-card { padding: 5px 15px 16px; }
.form-section-title { margin: 17px 0 2px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-section-title .number { width: 22px; height: 22px; display: grid; place-items: center; color: #123b2c; background: var(--lime); border-radius: 7px; font-size: 10px; }
.field { margin-top: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label, .field legend { display: block; margin: 0 0 7px; color: var(--ink); font-size: 11px; font-weight: 680; }
.field .required::after { content: " *"; color: var(--red); }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(49, 130, 102, .2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint-300) 50%, transparent); }
.field-help { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.video-upload-panel { padding: 12px; display: grid; gap: 10px; background: var(--surface-2); border: 1px dashed var(--mint-300); border-radius: 12px; }
.file-input { width: 100%; min-height: 44px; padding: 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.file-input::file-selector-button { min-height: 34px; margin-right: 8px; padding: 7px 11px; color: #123b2c; background: var(--lime); border: 0; border-radius: 8px; font-weight: 750; }
.file-input::-webkit-file-upload-button { min-height: 34px; margin-right: 8px; padding: 7px 11px; color: #123b2c; background: var(--lime); border: 0; border-radius: 8px; font-weight: 750; }
.upload-file-summary { overflow-wrap: anywhere; color: var(--ink); font-size: 11px; line-height: 1.45; }
.upload-progress { height: 8px; overflow: hidden; background: var(--mint-100); border-radius: 999px; }
.upload-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--forest-600), var(--lime)); border-radius: inherit; transition: width .18s ease; }
.upload-progress-copy { min-height: 15px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.upload-unavailable { margin: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { min-height: 44px; padding: 10px; display: flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 10px; }
.choice input { accent-color: var(--forest-700); }
.consent-list { display: grid; gap: 9px; }
.consent-item { padding: 12px; display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.consent-item input { margin-top: 3px; accent-color: var(--forest-700); }
.consent-item strong { display: block; font-size: 11px; }
.consent-item p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.consent-version { color: var(--muted); font-size: 9px; white-space: nowrap; }
.form-actions { margin-top: 16px; display: flex; gap: 9px; }
.button { min-height: 46px; padding: 11px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; border: 0; font-weight: 750; font-size: 12px; }
.button svg { width: 16px; height: 16px; }
.button.primary { flex: 1; color: #102d22; background: var(--lime); box-shadow: 0 7px 18px rgba(105,183,55,.22); }
.button.secondary { color: var(--forest-700); background: var(--mint-100); border: 1px solid var(--mint-300); }
.button.ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.button.danger { color: var(--red); background: var(--red-soft); border: 1px solid var(--red); border: 1px solid color-mix(in srgb, var(--red) 20%, transparent); }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.button.full { width: 100%; }

.service-list, .menu-list, .list-stack { display: grid; gap: 10px; }
.service-card, .menu-item {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-align: left;
}
.service-card .entry-icon, .menu-item .entry-icon { width: 42px; height: 42px; }
.service-card strong, .menu-item strong { display: block; font-size: 13px; }
.service-card p, .menu-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.qr-card { margin: 12px 14px; padding: 20px; text-align: center; }
.qr-frame { width: 184px; height: 184px; margin: 12px auto; padding: 12px; display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: inset 0 0 0 5px var(--surface-2); }
.qr-frame i { background: #dfe7e2; border-radius: 1px; }
.qr-frame i.on { background: #133f30; }
.qr-refresh { color: var(--forest-600); font-size: 10px; }
.checkin-point { padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.point-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--forest-700); background: var(--mint-100); border-radius: 50%; }
.point-copy strong { display: block; font-size: 12px; }
.point-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.hotel-hero { margin: 12px 14px 0; overflow: hidden; }
.hotel-cover { min-height: 130px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; color: white; background: linear-gradient(145deg, var(--forest-900), #2f7759 70%, #83c856); }
.hotel-cover h2 { margin: 0 0 6px; font-size: 20px; }
.hotel-cover p { margin: 0; color: #d5eddd; font-size: 10px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; }
.info-cell { min-height: 72px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-cell:nth-child(even) { border-right: 0; }
.info-cell span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.info-cell strong { font-size: 11px; line-height: 1.45; }
.change-alert { margin: 12px 14px; padding: 12px; display: flex; gap: 9px; color: #954e18; background: var(--orange-soft); border: 1px solid var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 25%, transparent); border-radius: 12px; font-size: 10px; line-height: 1.5; }

.search-bar { padding: 10px 14px 4px; position: relative; }
.search-bar svg { position: absolute; left: 27px; top: 24px; color: var(--muted); width: 16px; height: 16px; }
.search-bar .input { padding-left: 40px; }
.directory-summary { margin: 7px 14px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.person-card { padding: 12px; display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; color: #113326; background: linear-gradient(145deg, var(--lime), #72d77c); border-radius: 15px; font-size: 13px; font-weight: 850; }
.person-copy strong { display: block; font-size: 13px; }
.person-copy p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.team-tag { padding: 3px 6px; display: inline-block; color: var(--forest-700); background: var(--mint-100); border-radius: 999px; font-size: 8px; }
.privacy-strip { margin: 10px 14px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; color: var(--forest-700); background: var(--mint-100); border-radius: 11px; font-size: 9px; }

.profile-hero { padding: 24px 18px; display: flex; align-items: center; gap: 13px; color: white; background: linear-gradient(145deg, var(--forest-900), var(--forest-700)); }
.profile-hero .avatar { width: 58px; height: 58px; color: var(--forest-900); background: var(--lime); }
.profile-hero h1 { margin: 0 0 5px; font-size: 19px; }
.profile-hero p { margin: 0; color: #cae4d5; font-size: 10px; }
.role-switch { margin-top: 9px; min-height: 44px; padding: 8px 11px; color: #153a2c; background: var(--lime); border: 0; border-radius: 999px; font-size: 9px; font-weight: 750; }
.profile-stats { margin: -9px 14px 14px; padding: 12px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.profile-stat { border-right: 1px solid var(--line); }
.profile-stat:last-child { border-right: 0; }
.profile-stat strong { display: block; color: var(--forest-700); font-size: 16px; }
.profile-stat span { color: var(--muted); font-size: 9px; }

.rank-hero { margin: 12px 14px; padding: 20px; color: #50340d; background: linear-gradient(145deg, #fff8d8, #d9ff9e); border: 1px solid #d6e990; border-radius: var(--radius-lg); text-align: center; }
:root[data-theme="dark"] .rank-hero { color: #f3e7bb; background: linear-gradient(145deg, #3f3417, #244626); border-color: #4f6130; }
.rank-hero svg { width: 38px; height: 38px; margin: 0 auto 8px; color: #b4750f; }
.rank-hero h2 { margin: 0; font-size: 18px; }
.rank-hero p { margin: 6px 0 0; font-size: 10px; }
.rank-item { padding: 12px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.rank-number { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: #88978e; border-radius: 10px; font-weight: 800; }
.rank-number.first { background: #c99726; }
.rank-number.second { background: #81909a; }
.rank-number.third { background: #a96e45; }
.rank-score { color: var(--forest-700); font-weight: 850; }

.media-card { overflow: hidden; }
.media-cover { height: 120px; padding: 16px; display: flex; align-items: flex-end; color: white; background: linear-gradient(145deg, var(--forest-800), #82cc52); font-size: 20px; font-weight: 850; }
.media-card:nth-child(2n) .media-cover { background: linear-gradient(145deg, #3f5b7e, #67b5b1); }
.media-body { padding: 13px; }
.media-body h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.45; }
.media-body p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.media-meta { margin-top: 9px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

.team-banner { margin: 12px 14px; padding: 18px; color: white; background: linear-gradient(145deg, var(--forest-900), var(--forest-600)); border-radius: var(--radius-lg); }
.team-banner .eyebrow { color: #bcdcca; font-size: 9px; letter-spacing: .12em; }
.team-banner h1 { margin: 6px 0; font-size: 21px; }
.team-banner p { margin: 0; color: #d3eadc; font-size: 10px; }
.progress-stats { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress-stat { padding: 9px 4px; text-align: center; background: rgba(255,255,255,.1); border-radius: 10px; }
.progress-stat strong { display: block; color: var(--lime); font-size: 17px; }
.progress-stat span { font-size: 8px; }
.member-row { padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; }
.member-row .avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 11px; }

.splash-screen { position: absolute; z-index: 100; inset: 0; padding: calc(20px + var(--safe-top)) 22px calc(26px + var(--safe-bottom)); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #17382e; background: #8fd3e3; transition: opacity .5s ease, transform .5s ease; }
.splash-screen[hidden] { display: none; }
.splash-screen.leaving { opacity: 0; transform: translateY(-5%); pointer-events: none; }
.splash-screen > img { position: relative; z-index: 2; border-radius: 50%; box-shadow: 0 18px 38px rgba(18,64,69,.22); animation: splash-pop .8s cubic-bezier(.2,.8,.2,1) both; }
.splash-screen > p { position: relative; z-index: 2; margin: 28px 0 7px; font-size: 12px; }
.splash-screen h1 { position: relative; z-index: 2; margin: 0; text-align: center; font-size: 21px; line-height: 1.45; }
.splash-skip { position: absolute; z-index: 3; top: calc(12px + var(--safe-top)); right: calc(13px + var(--safe-right)); min-width: 48px; min-height: 44px; color: #315d5b; background: transparent; border: 0; }
.splash-orbit { position: absolute; left: -20%; width: 140%; height: 260px; border-top: 3px solid var(--orange); border-radius: 50%; transform: rotate(-24deg); }
.splash-orbit::after { content: ""; position: absolute; inset: 24px 0 auto; border-top: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.splash-progress { position: absolute; bottom: calc(28px + var(--safe-bottom)); width: 74px; height: 3px; overflow: hidden; background: rgba(23,56,46,.18); }
.splash-progress i { display: block; width: 100%; height: 100%; background: var(--orange); transform-origin: left; animation: splash-progress 2.4s linear both; }
@keyframes splash-pop { from { opacity: 0; transform: scale(.72) rotate(-8deg); } to { opacity: 1; transform: scale(1); } }
@keyframes splash-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.chamber-page { min-height: 100%; background: var(--background); }
.chamber-hero { padding: 32px 22px 28px; color: white; text-align: center; background: radial-gradient(circle at 80% 8%, rgba(157,251,79,.25), transparent 30%), linear-gradient(145deg, var(--forest-950), var(--forest-700)); }
.chamber-hero > img { margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.chamber-hero .eyebrow { color: #bfe0ce; font-size: 9px; }
.chamber-hero h1 { margin: 8px 0 10px; font-size: 25px; line-height: 1.3; }
.chamber-hero p { margin: 0; color: #d6eadf; font-size: 11px; line-height: 1.7; }
.media-player-card { overflow: hidden; }
.media-player-card video, .modal-video { width: 100%; display: block; background: #07140f; aspect-ratio: 16 / 9; object-fit: cover; }
.media-player-card > p { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 10px; }
.chamber-long-image { margin: 0; overflow: hidden; }
.chamber-long-image img { width: 100%; height: auto; display: block; }
.modal-video { margin-top: 12px; border-radius: 14px; }

.partner-card { padding: 13px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; }
.partner-logo { width: 54px; height: 54px; display: grid; place-items: center; color: var(--forest-900); background: var(--lime); border-radius: 16px; font-size: 12px; font-weight: 850; }
.partner-card strong { display: block; margin-top: 6px; font-size: 13px; }
.partner-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.partner-dots { margin-top: 2px; display: flex; justify-content: center; gap: 0; }
.partner-dots button { position: relative; width: 40px; height: 44px; padding: 0; background: transparent; border: 0; }
.partner-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--line); border-radius: 50%; transform: translate(-50%,-50%); }
.partner-dots button.active::after { width: 20px; background: var(--forest-600); border-radius: 999px; }

.guide-summary { margin-bottom: 13px; padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.guide-summary strong { display: block; font-size: 13px; }
.guide-summary p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.guide-card { grid-template-columns: 42px 1fr auto; }
.guide-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.seat-ticket { position: relative; padding: 20px; overflow: hidden; color: white; background: linear-gradient(145deg, var(--forest-900), #2a7378); border-radius: var(--radius-lg); }
.seat-ticket span { color: #cce9df; font-size: 10px; }
.seat-ticket strong { display: block; margin: 5px 0; font-size: 25px; }
.seat-ticket p { margin: 0; color: #d7ece5; font-size: 10px; }
.seat-ticket-badge { position: absolute; top: 18px; right: 18px; padding: 5px 8px; color: var(--forest-900) !important; background: var(--lime); border-radius: 999px; font-weight: 800; }
.seat-venue { margin-top: 18px; padding-top: 12px; display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.18); font-size: 10px; }
.seat-venue svg { width: 14px; height: 14px; }
.seat-map-card { margin-top: 13px; padding: 15px; }
.stage-label { padding: 8px; color: var(--forest-900); background: var(--mint-300); border-radius: 8px; text-align: center; font-size: 10px; font-weight: 800; }
.seat-legend { margin: 11px 0; display: flex; justify-content: center; gap: 10px; color: var(--muted); font-size: 8px; }
.seat-legend span { display: flex; align-items: center; gap: 4px; }
.seat-legend i { width: 9px; height: 9px; background: var(--mint-200); border: 1px solid var(--mint-300); border-radius: 3px; }
.seat-legend i.mine { background: var(--lime); border-color: var(--forest-600); }
.seat-legend b { width: 2px; height: 10px; background: var(--orange); }
.seat-map { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.seat-map::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 5px; background: var(--background); border-left: 1px dashed var(--orange); transform: translateX(-50%); }
.seat-map i { aspect-ratio: 1; display: grid; place-items: center; color: var(--forest-900); background: var(--mint-100); border: 1px solid var(--line); border-radius: 5px; font-size: 7px; font-style: normal; }
.seat-map i.mine { position: relative; z-index: 1; background: var(--lime); border-color: var(--forest-600); font-weight: 900; }
.seat-map-card > p { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 9px; }

.checkin-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.checkin-status-grid article { padding: 13px; display: grid; grid-template-columns: 38px 1fr; gap: 7px 9px; align-items: center; }
.checkin-status-grid article .point-icon { grid-row: 1 / 3; width: 38px; height: 38px; }
.checkin-status-grid article strong { font-size: 11px; }
.checkin-status-grid article small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; line-height: 1.45; }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.material-grid article { padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.material-grid article > span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); border-radius: 10px; }
.material-grid article.received > span { color: var(--forest-800); background: var(--lime-soft); }
.material-grid strong { font-size: 10px; }
.material-grid small { color: var(--muted); font-size: 8px; }

.reception-card { padding: 14px; display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; }
.reception-card strong { display: block; font-size: 13px; }
.reception-card p, .reception-card small { display: block; margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.reception-call { min-height: 44px; padding: 9px 10px; display: inline-flex; align-items: center; gap: 5px; color: var(--forest-900); background: var(--lime); border-radius: 10px; font-size: 9px; font-weight: 800; }
.reception-call svg { width: 13px; height: 13px; }
.reception-note { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line); }

.leader-fields { margin-top: 12px; padding: 1px 12px 13px; background: var(--mint-100); border: 1px solid var(--mint-300); border-radius: 13px; }

.pending-panel { margin: 18px 14px; padding: 38px 20px; text-align: center; }
.pending-illustration { width: 68px; height: 68px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--forest-700); background: var(--mint-100); border-radius: 50%; }
.pending-illustration svg { width: 32px; height: 32px; }
.pending-panel h2 { margin: 0 0 7px; font-size: 17px; }
.pending-panel p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.detail-hero { padding: 28px 18px; color: white; background: linear-gradient(145deg, var(--forest-900), var(--forest-600)); }
.detail-hero .avatar { width: 64px; height: 64px; margin-bottom: 13px; font-size: 17px; }
.detail-hero h1 { margin: 0 0 5px; font-size: 22px; }
.detail-hero p { margin: 0; color: #c9e5d4; font-size: 11px; }
.detail-block { margin: 12px 14px; padding: 15px; }
.detail-block h2 { margin: 0 0 8px; font-size: 14px; }
.detail-block p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.toast {
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  max-width: 84%;
  padding: 10px 14px;
  color: white;
  background: rgba(9,34,25,.94);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: .2s ease;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(139,42,42,.96); }
.modal-layer { position: absolute; z-index: 35; inset: 0; padding: 18px; display: none; place-items: center; background: var(--overlay); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-layer.open { display: grid; }
.modal { width: 100%; max-height: 82%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal h2 { margin: 0 0 8px; font-size: 17px; }
.modal > p { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.modal-actions { margin-top: 14px; display: flex; gap: 9px; }
.modal-actions .button { flex: 1; }

@media (max-width: 520px) {
  .desktop-toolbar { display: none; }
  body { background: var(--background); }
  .phone-shell { width: 100vw; height: 100vh; height: -webkit-fill-available; height: 100dvh; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .content, .page-intro, .form-shell, .timeline, .segmented, .filter-scroll, .search-bar { padding-left: max(14px, var(--safe-left)); padding-right: max(14px, var(--safe-right)); }
  .page-intro p { font-size: 14px; }
  .section-head h2 { font-size: 18px; }
  .service-entry { font-size: 13px; }
  .status-row, .campaign-copy strong, .notice-copy strong, .service-card strong, .menu-item strong, .person-copy strong { font-size: 14px; }
  .status-value, .notice-copy p, .service-card p, .menu-item p, .person-copy p, .detail-block p, .media-body p { font-size: 12px; }
  .field label, .field legend { font-size: 13px; }
  .field-help, .team-tag, .media-meta { font-size: 10px; }
  .chip { font-size: 13px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .desktop-toolbar { display: none; }
  body { background: var(--background); }
  .phone-shell { width: min(760px, 100vw); height: 100vh; height: -webkit-fill-available; height: 100dvh; min-height: 0; margin: 0 auto; border-radius: 0; }
  .hero { min-height: 210px; }
  .service-grid { grid-template-columns: repeat(8, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --line: #80998a; }
  .card, .input, .select, .textarea, .chip { border-width: 2px; }
}
