:root {
  color-scheme: dark;
  --bg: #151721;
  --bg-2: #1b1e2a;
  --bg-3: #242837;
  --rule: #3a4051;
  --rule-soft: #2a2f3f;
  --text: #f5f0e8;
  --text-2: #c9c0b3;
  --text-3: #818797;
  --jade: #72f0b8;
  --jade-dim: #2f9c74;
  --gold: #f2cf71;
  --gold-dim: #9f7730;
  --rare-purple: #bf70ff;
  --rare-blue: #6fa8ff;
  --danger: #ff6b63;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
  --nav-height: 78px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 42% at 72% 8%, rgba(114, 240, 184, 0.13), transparent 70%),
    radial-gradient(ellipse 45% 34% at 12% 86%, rgba(191, 112, 255, 0.11), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.desktop-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.desktop-stage::after {
  content: "移动端演示";
  position: fixed;
  top: 28px;
  left: calc(50% + 238px);
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
}

.phone-shell {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(27, 30, 42, 0.96), rgba(18, 20, 30, 0.98)),
    var(--bg);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(18, 20, 30, 0.78);
  backdrop-filter: blur(12px);
}

.app-topbar span,
.eyebrow,
.vault-kicker span {
  display: block;
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-topbar strong {
  display: block;
  margin-top: 3px;
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.avatar-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--jade-dim), var(--rare-purple));
  color: #11151c;
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(114, 240, 184, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.app-main {
  padding: 16px 14px calc(var(--nav-height) + 58px);
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.vault-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(114, 240, 184, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 10%, rgba(114, 240, 184, 0.22), transparent 38%),
    radial-gradient(circle at 12% 90%, rgba(191, 112, 255, 0.14), transparent 48%),
    linear-gradient(180deg, #252936, #171a25 68%, #12141d);
  box-shadow:
    0 0 0 1px rgba(114, 240, 184, 0.08),
    0 0 34px rgba(114, 240, 184, 0.16),
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.vault-hero::after,
.vault-pass::after,
.detail-pass::after,
.mint-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 28%, rgba(255, 255, 255, 0.075) 50%, transparent 72%);
}

.vault-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vault-kicker b {
  color: var(--jade);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
}

.vault-hero h2 {
  max-width: 330px;
  margin: 46px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.04;
}

.vault-hero p {
  max-width: 330px;
  margin: 14px 0 0;
  color: var(--text-2);
  line-height: 1.65;
}

.hero-actions,
.detail-bottom-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta,
.sticky-submit {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-cta {
  background: var(--jade);
  color: #10151a;
  box-shadow: 0 0 18px rgba(114, 240, 184, 0.28);
}

.secondary-cta {
  border: 1px solid var(--rule);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.secondary-cta.dark {
  border-color: rgba(242, 207, 113, 0.3);
  color: var(--gold);
}

.primary-cta:active,
.secondary-cta:active,
.quiet-action:active,
.bottom-nav button:active,
.vault-pass:active,
.place-card:active,
.sticky-submit:active {
  transform: scale(0.98);
}

.primary-cta svg,
.secondary-cta svg,
.filter-row button svg,
.bottom-nav svg,
.detail-actions svg,
.time-edit button svg,
.sticky-submit svg {
  width: 18px;
  height: 18px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 22px;
}

.quick-stats div {
  min-height: 78px;
  padding: 13px 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.quick-stats strong {
  display: block;
  color: var(--jade);
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-style: italic;
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.section-title,
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 2px 12px;
}

.page-heading {
  display: block;
  margin-top: 6px;
}

.section-title h2,
.page-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.16;
}

.page-heading h2 {
  margin-top: 8px;
  font-size: 34px;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.section-title > button {
  min-width: 48px;
  min-height: 36px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-2);
  font-family: "Geist Mono", ui-monospace, monospace;
}

.pass-stack {
  display: grid;
  gap: 14px;
}

.vault-pass,
.detail-pass {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 13px;
  background:
    linear-gradient(180deg, #252936, #191c27 62%, #131620),
    var(--bg-2);
  box-shadow:
    0 0 0 1px rgba(114, 240, 184, 0.32),
    0 0 24px rgba(114, 240, 184, 0.16),
    0 20px 38px rgba(0, 0, 0, 0.38);
}

.vault-pass {
  min-height: 208px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
}

.vault-pass.legend,
.detail-pass.legend {
  box-shadow:
    0 0 0 1px rgba(242, 207, 113, 0.42),
    0 0 32px rgba(242, 207, 113, 0.18),
    0 20px 38px rgba(0, 0, 0, 0.38);
}

.vault-pass.arcane,
.detail-pass.arcane {
  box-shadow:
    0 0 0 1px rgba(191, 112, 255, 0.42),
    0 0 30px rgba(191, 112, 255, 0.18),
    0 20px 38px rgba(0, 0, 0, 0.38);
}

.pass-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
}

.pass-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 9px;
  border-bottom: 1px solid rgba(114, 240, 184, 0.22);
}

.legend .pass-top {
  border-bottom-color: rgba(242, 207, 113, 0.25);
}

.arcane .pass-top {
  border-bottom-color: rgba(191, 112, 255, 0.28);
}

.pass-top span,
.pass-top b {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.pass-top span {
  color: var(--text-2);
}

.pass-top b {
  color: var(--jade);
}

.legend .pass-top b {
  color: var(--gold);
}

.arcane .pass-top b {
  color: var(--rare-purple);
}

.pass-art {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 30%, rgba(114, 240, 184, 0.38), transparent 68%),
    radial-gradient(circle at 72% 72%, rgba(191, 112, 255, 0.34), transparent 70%),
    #171a25;
}

.vault-pass .pass-art {
  grid-row: 2;
}

.pass-art img {
  width: 100%;
  height: 100%;
  min-height: 122px;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(0.9) contrast(1.08);
}

.pass-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.025) 10px 11px),
    radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.48));
}

.pass-art i {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Fraunces", serif;
  font-size: 76px;
  font-style: normal;
  font-weight: 600;
  text-shadow: 0 0 24px rgba(114, 240, 184, 0.48), 0 0 48px rgba(191, 112, 255, 0.35);
}

.pass-copy {
  min-width: 0;
  padding-top: 2px;
}

.pass-copy small {
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pass-copy h3 {
  margin: 8px 0 7px;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
}

.pass-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}

.horizontal-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  margin-inline: -14px;
  padding: 0 14px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.horizontal-strip::-webkit-scrollbar,
.category-rail::-webkit-scrollbar {
  display: none;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.place-card,
.activity-card,
.form-card,
.vote-card,
.people-card {
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.23);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.place-card {
  scroll-snap-align: start;
}

.activity-card {
  position: relative;
}

.image-button {
  position: relative;
  width: 100%;
  height: 188px;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #10131b;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.9) contrast(1.05);
}

.activity-media {
  position: relative;
  width: 100%;
  height: 168px;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #10131b;
}

.activity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.88) contrast(1.06);
}

.glass-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(242, 207, 113, 0.32);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  backdrop-filter: blur(10px);
}

.floating-score {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 240, 184, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.52);
  color: var(--jade);
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-style: italic;
  backdrop-filter: blur(10px);
}

.place-body,
.activity-content {
  padding: 14px;
}

.place-title-row,
.meta-line,
.activity-topline,
.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.place-title-row h3,
.activity-content h3 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.place-title-row span {
  min-width: 42px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 207, 113, 0.32);
  border-radius: 4px;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.place-body p,
.activity-content p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 13px;
}

.activity-topline {
  margin-bottom: 10px;
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
}

.activity-footer {
  align-items: flex-end;
  margin-top: 14px;
}

.activity-footer > span {
  min-width: 0;
  color: var(--text-3);
  font-size: 12px;
}

.activity-actions {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  flex: 0 0 auto;
}

.activity-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(242, 207, 113, 0.28);
  border-radius: 8px;
  background: rgba(242, 207, 113, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.activity-actions button.join {
  border-color: rgba(114, 240, 184, 0.32);
  background: rgba(114, 240, 184, 0.12);
  color: var(--jade);
}

.meta-line {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta-line span,
.reason {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
}

.reason {
  width: fit-content;
  margin-top: 8px;
  border-color: rgba(114, 240, 184, 0.24);
  color: var(--jade);
}

.quiet-action {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(114, 240, 184, 0.32);
  border-radius: 8px;
  background: rgba(114, 240, 184, 0.12);
  color: var(--jade);
  font-weight: 700;
}

.quiet-action.selected {
  border-color: rgba(242, 207, 113, 0.38);
  background: rgba(242, 207, 113, 0.1);
  color: var(--gold);
}

.search-shell {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 0 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.search-shell.compact {
  margin-top: 6px;
}

.search-shell svg {
  width: 19px;
  height: 19px;
  color: var(--jade);
}

.search-shell input,
.form-card input,
.form-card textarea,
.time-edit input,
.filter-row select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-shell input::placeholder,
.form-card input::placeholder,
.form-card textarea::placeholder,
.time-edit input::placeholder {
  color: var(--text-3);
}

.map-status-card {
  display: grid;
  gap: 12px;
  margin: 12px 0 12px;
  padding: 13px;
  border: 1px solid rgba(114, 240, 184, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(114, 240, 184, 0.07), rgba(242, 207, 113, 0.04)),
    rgba(0, 0, 0, 0.22);
}

.map-status-card > div > span,
.map-status-card label span {
  display: block;
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0;
}

.map-status-card strong {
  display: block;
  margin-top: 4px;
  color: var(--jade);
}

.map-status-card p {
  margin: 6px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.55;
}

.map-status-card input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.category-rail {
  display: flex;
  gap: 8px;
  margin-inline: -14px;
  padding: 0 14px 10px;
  overflow-x: auto;
}

.category-pill {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.category-pill.active {
  border-color: rgba(114, 240, 184, 0.42);
  color: var(--jade);
  box-shadow: 0 0 14px rgba(114, 240, 184, 0.14);
}

.filter-row {
  margin: 6px 0 16px;
}

.filter-row select,
.filter-row button {
  min-height: 44px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.filter-row select {
  flex: 1;
  min-width: 110px;
  padding: 0 12px;
}

.filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--jade);
  font-weight: 700;
}

.square-filters select {
  min-width: 0;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 6px 0 16px;
}

.pill-group button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.pill-group button.active {
  border-color: rgba(114, 240, 184, 0.48);
  background: rgba(114, 240, 184, 0.1);
  color: var(--jade);
}

.pill-group button.active-gold {
  border-color: rgba(242, 207, 113, 0.48);
  background: rgba(242, 207, 113, 0.1);
  color: var(--gold);
}

.key-hint {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(242, 207, 113, 0.28);
  border-radius: 5px;
  background: rgba(242, 207, 113, 0.07);
  color: var(--gold);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  word-break: break-all;
}

.form-card {
  padding: 14px;
}

.mint-preview {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(242, 207, 113, 0.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 74% 18%, rgba(242, 207, 113, 0.18), transparent 42%),
    linear-gradient(180deg, #2a2830, #171821);
  box-shadow: 0 0 26px rgba(242, 207, 113, 0.12);
}

.mint-preview span,
.mint-preview b {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.mint-preview span {
  color: var(--text-2);
}

.mint-preview b {
  float: right;
  color: var(--gold);
}

.mint-preview strong {
  display: block;
  clear: both;
  margin-top: 42px;
  font-family: "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.mint-preview em {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-style: normal;
}

.form-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.form-card label span {
  color: var(--text-2);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-card input,
.form-card textarea {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.form-card textarea {
  min-height: 94px;
  padding-top: 12px;
  resize: vertical;
}

.visibility-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--rule-soft);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
}

.visibility-switch button {
  min-height: 40px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-weight: 700;
}

.visibility-switch button.active {
  background: rgba(114, 240, 184, 0.12);
  color: var(--jade);
  box-shadow: inset 0 0 0 1px rgba(114, 240, 184, 0.25);
}

.time-list {
  display: grid;
  gap: 10px;
}

.time-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
}

.time-edit input,
.time-edit button {
  min-height: 46px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.23);
}

.time-edit input {
  padding: 0 12px;
}

.time-edit button {
  display: grid;
  place-items: center;
  color: var(--danger);
}

.selected-places {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.selected-places button {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(114, 240, 184, 0.2);
  border-radius: 12px;
  background: #10131b;
  color: var(--text);
}

.selected-places img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.selected-places button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.selected-places span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  text-align: left;
  font-family: "Noto Serif SC", serif;
  font-weight: 800;
  line-height: 1.2;
}

.sticky-submit {
  position: sticky;
  bottom: calc(var(--nav-height) + 18px);
  z-index: 24;
  width: 100%;
  margin-top: 18px;
  background: var(--jade);
  color: #10151a;
  box-shadow: 0 0 26px rgba(114, 240, 184, 0.24);
}

.detail-pass {
  min-height: 520px;
}

.detail-pass .pass-art {
  height: 260px;
  margin-top: 12px;
}

.detail-pass .pass-art img {
  min-height: 260px;
}

.detail-pass .pass-art i {
  font-size: 132px;
}

.detail-actions {
  position: absolute;
  top: 54px;
  right: 14px;
  z-index: 5;
}

.detail-actions button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.detail-copy {
  padding: 16px 4px 4px;
}

.detail-copy h2 {
  margin: 8px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.12;
}

.detail-copy p {
  margin: 10px 0 0;
  color: var(--text-2);
}

.summary-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
}

.summary-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.summary-grid span {
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-grid strong {
  max-width: 230px;
  text-align: right;
  color: var(--text);
  line-height: 1.35;
}

.identity-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: -8px 0 20px;
  padding: 12px;
  border: 1px solid rgba(114, 240, 184, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(114, 240, 184, 0.08), rgba(159, 122, 234, 0.08)),
    rgba(10, 12, 18, 0.7);
}

.identity-strip span {
  display: block;
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.identity-strip strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-strip button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(114, 240, 184, 0.28);
  border-radius: 8px;
  background: rgba(114, 240, 184, 0.08);
  color: var(--jade);
  font-weight: 800;
}

.vote-card,
.people-card {
  padding: 6px 14px;
}

.vote-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.vote-row:last-child {
  border-bottom: 0;
}

.vote-meta {
  display: grid;
  gap: 5px;
}

.vote-meta strong {
  color: var(--text);
}

.vote-meta span {
  color: var(--text-3);
  font-size: 12px;
}

.vote-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.vote-actions button {
  min-height: 40px;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-2);
  font-weight: 700;
}

.vote-actions button.active.yes {
  border-color: rgba(114, 240, 184, 0.42);
  color: var(--jade);
}

.vote-actions button.active.maybe {
  border-color: rgba(242, 207, 113, 0.42);
  color: var(--gold);
}

.vote-actions button.active.no {
  border-color: rgba(255, 107, 99, 0.4);
  color: var(--danger);
}

.people-card {
  margin-top: 14px;
}

.section-title.flush {
  margin-top: 12px;
}

.person-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.person-row:last-child {
  border-bottom: 0;
}

.person-row > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--jade-dim), var(--rare-purple));
  color: #11151c;
  font-family: "Fraunces", serif;
  font-weight: 700;
}

.person-row strong {
  display: block;
}

.person-row p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 12px;
}

.detail-bottom-actions {
  margin-top: 16px;
}

.detail-bottom-actions button {
  flex: 1;
}

.quiet-danger {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
}

.empty-state {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  color: var(--text-3);
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 50;
  width: min(402px, calc(100% - 24px));
  height: var(--nav-height);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: rgba(13, 15, 23, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, opacity 180ms ease;
}

body.keyboard-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 30px));
}

.bottom-nav button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.bottom-nav button.active {
  color: var(--jade);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px rgba(114, 240, 184, 0.35), 0 0 12px rgba(114, 240, 184, 0.14);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 70;
  width: min(370px, calc(100% - 40px));
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(114, 240, 184, 0.26);
  border-radius: 8px;
  background: rgba(13, 15, 23, 0.94);
  color: var(--text);
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 5, 8, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.profile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 90;
  width: min(430px, 100%);
  max-height: min(86vh, 640px);
  overflow: auto;
  padding: 22px 18px 18px;
  border: 1px solid rgba(114, 240, 184, 0.24);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 207, 113, 0.13), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(159, 122, 234, 0.14), transparent 34%),
    rgba(13, 15, 23, 0.98);
  box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.62);
  transform: translateX(-50%) translateY(105%);
  transition: transform 220ms ease;
}

.profile-sheet.open {
  transform: translateX(-50%) translateY(0);
}

.profile-cardmark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(242, 207, 113, 0.38);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(242, 207, 113, 0.92), rgba(114, 240, 184, 0.76)),
    #131720;
  color: #10131a;
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(242, 207, 113, 0.18);
}

.profile-heading span {
  color: var(--gold);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.profile-heading h2 {
  margin: 7px 0 8px;
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 25px;
  line-height: 1.08;
}

.profile-heading p {
  margin: 0 0 16px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.profile-sheet label {
  display: block;
  margin-top: 12px;
}

.profile-sheet label span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
}

.profile-sheet input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.profile-reset {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(255, 107, 99, 0.28);
  border-radius: 8px;
  background: rgba(255, 107, 99, 0.08);
  color: var(--danger);
  font-weight: 800;
}

.profile-reset:active {
  transform: scale(0.98);
}

:focus-visible {
  outline: 3px solid rgba(114, 240, 184, 0.34);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .desktop-stage::after {
    display: none;
  }

  .phone-shell {
    width: 100%;
    box-shadow: none;
  }

  .app-main {
    padding-inline: 12px;
  }

  .horizontal-strip,
  .category-rail {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .bottom-nav {
    width: calc(100% - 18px);
    bottom: 8px;
  }
}

@media (max-width: 370px) {
  .vault-pass {
    grid-template-columns: 1fr;
  }

  .vault-hero h2 {
    font-size: 31px;
    line-height: 1.08;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-bottom-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

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