/* =========================================================
   城镜 CityLens · Prototype UI
   ========================================================= */

:root {
  --bg: #f3efe6;
  --bg-deep: #eae4d8;
  --paper: #fbf8f1;
  --paper-2: #f0ebe1;
  --ink: #191917;
  --ink-2: #393730;
  --muted: #777267;
  --muted-2: #9a9488;
  --line: rgba(25, 25, 23, 0.11);
  --line-strong: rgba(25, 25, 23, 0.2);
  --accent: #c9f24e;
  --accent-deep: #5b7500;
  --accent-soft: #eefac6;
  --accent-ink: #172006;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(40, 34, 22, 0.1);
  --shadow-soft: 0 10px 30px rgba(40, 34, 22, 0.06);
  --display: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "SimSun", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Entry
   ========================================================= */

.entry-root {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 30px clamp(22px, 5vw, 72px) 24px;
  display: flex;
  flex-direction: column;
  background: #161613;
  color: #f5efdf;
  isolation: isolate;
}

.entry-root::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 58vw;
  height: 58vw;
  min-width: 620px;
  min-height: 620px;
  right: -18vw;
  top: -24vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, rgba(201, 242, 78, 0.28) 40%, transparent 70%);
  opacity: 0.32;
  filter: blur(30px);
  transition: background 0.5s var(--ease);
}

.entry-root::after {
  content: "CITYLENS";
  position: absolute;
  z-index: -1;
  right: 2vw;
  bottom: 4vh;
  font-family: var(--serif);
  font-size: clamp(100px, 18vw, 300px);
  letter-spacing: -0.07em;
  color: rgba(245, 239, 223, 0.035);
  line-height: 0.8;
  pointer-events: none;
}

.entry-top {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.04em;
}

.brand-cn {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
}

.brand-en {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 223, 0.55);
}

.entry-plate {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(245, 239, 223, 0.5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry-plate .plate-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5efdf;
  border: 1px solid rgba(245, 239, 223, 0.15);
  border-radius: 999px;
  padding: 7px 11px;
  letter-spacing: 0.08em;
}

.entry-plate .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 242, 78, 0.12);
}

.entry-main {
  flex: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  padding: clamp(48px, 8vh, 96px) 0;
}

.entry-copy {
  animation: entryIn 0.8s 0.05s var(--ease) both;
}

.entry-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: rgba(245, 239, 223, 0.45);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.entry-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
}

.entry-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(56px, 6.6vw, 100px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.entry-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.entry-copy h1 .entry-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 239, 223, 0.52);
}

.entry-copy > p {
  max-width: 410px;
  margin: 28px 0 0;
  color: rgba(245, 239, 223, 0.56);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.entry-skip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(245, 239, 223, 0.32);
  color: #f5efdf;
  font-size: 13px;
  font-weight: 650;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}

.entry-skip:hover {
  gap: 16px;
  border-color: var(--accent);
}

.entry-collage {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 46px;
}

.entry-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #2a2a25;
}

.entry-collage figure:nth-child(1) {
  width: 134px;
  height: 88px;
  transform: rotate(-2deg);
}

.entry-collage figure:nth-child(2) {
  width: 96px;
  height: 116px;
  transform: translateY(8px) rotate(1.5deg);
}

.entry-collage figure:nth-child(3) {
  width: 78px;
  height: 68px;
  transform: rotate(-1deg);
}

.entry-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(0.95);
}

.entry-collage-caption {
  max-width: 118px;
  margin-left: 6px;
  color: rgba(245, 239, 223, 0.38);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.identity-list {
  display: grid;
  gap: 9px;
  animation: entryIn 0.8s 0.16s var(--ease) both;
}

.identity-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px 68px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 10px 16px 10px 14px;
  overflow: hidden;
  border: 1px solid rgba(245, 239, 223, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: #f5efdf;
  text-align: left;
  transition: transform 0.32s var(--ease), background 0.32s var(--ease), color 0.32s, border-color 0.32s, box-shadow 0.32s;
}

.identity-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.identity-option > * {
  position: relative;
  z-index: 1;
}

.identity-option:hover,
.identity-option:focus-visible {
  transform: translateX(-8px);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.identity-option:hover::before,
.identity-option:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.id-no {
  align-self: start;
  padding-top: 6px;
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: rgba(245, 239, 223, 0.42);
  transition: color 0.3s;
}

.identity-option:hover .id-no {
  color: rgba(23, 32, 6, 0.52);
}

.id-thumb {
  width: 68px;
  height: 66px;
  overflow: hidden;
  border-radius: 13px;
  background: #2b2b26;
}

.id-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.5s var(--ease), filter 0.5s;
}

.identity-option:hover .id-thumb img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.id-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.id-topline {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.id-name {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.045em;
}

.id-en {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(245, 239, 223, 0.38);
  transition: color 0.3s;
}

.identity-option:hover .id-en {
  color: rgba(23, 32, 6, 0.48);
}

.id-tagline {
  overflow: hidden;
  color: rgba(245, 239, 223, 0.46);
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.identity-option:hover .id-tagline {
  color: rgba(23, 32, 6, 0.66);
}

.id-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 239, 223, 0.18);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.identity-option:hover .id-arrow {
  transform: rotate(-45deg);
  border-color: transparent;
  background: var(--ink);
  color: #f5efdf;
}

.entry-foot {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 239, 223, 0.1);
  color: rgba(245, 239, 223, 0.36);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-ticker {
  display: flex;
  gap: 28px;
  overflow: hidden;
  white-space: nowrap;
}

.entry-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.entry-ticker span::before {
  content: "·";
  color: var(--accent);
}

@keyframes entryIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   App shell
   ========================================================= */

.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 352px;
  min-height: 100vh;
  max-width: 1660px;
  margin: 0 auto;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 18px 20px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.45), transparent 42%),
    var(--bg);
}

.sidebar .brand {
  color: var(--ink);
  padding: 0 8px;
}

.sidebar .brand-en {
  color: var(--muted-2);
}

.sidebar .brand-dot {
  background: var(--accent-deep);
}

.sidebar-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  margin-top: -14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-location span:last-child {
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: none;
}

.identity-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 166px;
  padding: 17px 18px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  text-align: left;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.identity-pass:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(25, 25, 23, 0.12);
}

.identity-pass::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(23, 32, 6, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 20px rgba(23, 32, 6, 0.035),
    0 0 0 40px rgba(23, 32, 6, 0.025);
}

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.pass-label {
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.58;
}

.pass-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.72;
}

.pass-name {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.pass-tagline {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  max-width: 180px;
  font-size: 10.5px;
  line-height: 1.5;
  opacity: 0.68;
}

.pass-en {
  position: absolute;
  right: 13px;
  bottom: 48px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.42;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 13px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 0.22s, color 0.22s, transform 0.22s;
}

.nav-item .nav-count {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted-2);
}

.nav-item:hover {
  background: rgba(25, 25, 23, 0.045);
  color: var(--ink);
}

.nav-item.active {
  background: var(--ink);
  color: #fbf8f1;
}

.nav-item.active .icon {
  color: var(--accent);
}

.nav-item.active .nav-count {
  color: rgba(251, 248, 241, 0.46);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.side-status {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.side-status strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.side-status .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  text-align: left;
  transition: background 0.2s;
}

.user-chip:hover {
  background: rgba(25, 25, 23, 0.045);
}

.user-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-chip-copy strong {
  font-size: 11px;
  font-weight: 700;
}

.user-chip-copy span {
  color: var(--muted-2);
  font-size: 9px;
}

.main {
  min-width: 0;
  padding: 0 clamp(28px, 3.2vw, 48px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
  margin: 0 calc(clamp(28px, 3.2vw, 48px) * -1);
  padding: 0 clamp(28px, 3.2vw, 48px);
  background: rgba(243, 239, 230, 0.82);
  border-bottom: 1px solid rgba(25, 25, 23, 0.06);
  backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-date {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.topbar-place .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-deep);
}

.topbar-weather {
  color: var(--muted);
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(251, 248, 241, 0.48);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--paper);
}

.identity-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.55);
  font-size: 11px;
  font-weight: 650;
  transition: background 0.2s, border-color 0.2s;
}

.identity-mini:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

.identity-mini .mini-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 8px;
  font-weight: 800;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 0 120px;
}

.view-inner {
  animation: viewIn 0.42s var(--ease) both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-notice-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 0 0;
}

.site-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-deep);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  animation: viewIn 0.35s var(--ease) both;
}

.site-notice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.site-notice-icon .icon {
  width: 16px;
  height: 16px;
}

.site-notice-copy {
  min-width: 0;
}

.site-notice-copy > span {
  display: block;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-notice-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.site-notice-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.site-notice-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-2);
  transition: background 0.2s, color 0.2s;
}

.site-notice-close:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.site-notice-close .icon {
  width: 13px;
  height: 13px;
}

.post-action.report-action {
  margin-left: auto;
  color: var(--muted-2);
}

.post-action.report-action:hover {
  color: #a43b2f;
}

/* =========================================================
   Shared typography & controls
   ========================================================= */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.page-intro h1 {
  margin: 16px 0 13px;
  font-size: clamp(35px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.page-intro h1 em {
  color: var(--accent-deep);
  font-style: normal;
}

.page-intro > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--ink);
  color: #fbf8f1;
}

.btn-primary:hover {
  background: #000;
  box-shadow: 0 12px 24px rgba(25, 25, 23, 0.15);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(25, 25, 23, 0.12);
}

.btn-light {
  background: rgba(251, 248, 241, 0.94);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.btn-text {
  min-height: auto;
  padding: 0;
  color: var(--ink);
  font-size: 11px;
  border-radius: 0;
}

.btn-text:hover {
  transform: none;
  color: var(--accent-deep);
}

.btn.is-done {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
}

.pill.accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.pill.dark {
  background: var(--ink);
  color: #fbf8f1;
}

.pill.glass {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.section {
  margin-top: 46px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  transition: color 0.2s, gap 0.2s;
}

.section-link:hover {
  gap: 9px;
  color: var(--ink);
}

.section-link .icon {
  width: 14px;
  height: 14px;
}

.empty-state {
  padding: 38px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

/* =========================================================
   Discover
   ========================================================= */

.home-hero {
  position: relative;
  min-height: 430px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #29241d;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.home-hero > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.home-hero:hover > img {
  transform: scale(1.035);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(12, 11, 8, 0.16) 0%, rgba(12, 11, 8, 0.18) 42%, rgba(12, 11, 8, 0.86) 100%);
}

.hero-word {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--serif);
  font-size: clamp(55px, 8vw, 104px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.hero-topline {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-save {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(20, 18, 14, 0.26);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hero-save:hover {
  transform: scale(1.05);
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-save.is-saved {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h2 {
  max-width: 580px;
  margin: 13px 0 9px;
  font-size: clamp(30px, 3.7vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-content > p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12.5px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 144px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(251, 248, 241, 0.62);
  text-align: left;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.quick-icon .icon {
  width: 17px;
  height: 17px;
}

.quick-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 17px;
}

.quick-copy strong {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.quick-copy span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.quick-arrow {
  align-self: flex-end;
  margin-top: 9px;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.quick-card:hover .quick-arrow {
  transform: translate(2px, -2px);
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.story-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.story-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 236px;
}

.story-media {
  position: relative;
  height: 156px;
  overflow: hidden;
  background: var(--paper-2);
}

.story-card.featured .story-media {
  height: 100%;
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.story-card:hover .story-media img {
  transform: scale(1.04);
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 14, 10, 0.28));
}

.story-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.88);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.story-copy {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.story-card.featured .story-copy {
  justify-content: center;
  padding: 25px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.story-meta img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.story-copy h3 {
  margin: 9px 0 7px;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.story-card.featured .story-copy h3 {
  margin: 14px 0 10px;
  font-size: 25px;
  line-height: 1.22;
}

.story-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.story-foot .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 650;
}

.story-foot .icon {
  width: 12px;
  height: 12px;
}

.event-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-mini-grid > :only-child {
  grid-column: span 2;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.event-media {
  position: relative;
  height: 142px;
  overflow: hidden;
  background: var(--paper-2);
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.event-card:hover .event-media img {
  transform: scale(1.04);
}

.event-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.08), transparent 50%, rgba(10, 9, 7, 0.32));
}

.date-chip {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 1;
  min-width: 50px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(251, 248, 241, 0.92);
  color: var(--ink);
  text-align: center;
  backdrop-filter: blur(10px);
}

.date-chip strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
}

.date-chip span {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.event-body {
  padding: 15px 16px 16px;
}

.event-kicker {
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-body h3 {
  margin: 7px 0 8px;
  font-size: 15px;
  font-weight: 730;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.event-info {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 9px;
}

.event-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-info .icon {
  width: 12px;
  height: 12px;
}

.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.host-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 8.5px;
}

.host-mini img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.cross-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 24px;
  margin-top: 46px;
  padding: 27px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #1c1c18;
  color: #f7f2e6;
}

.cross-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: 15%;
  top: -150px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  filter: blur(40px);
}

.cross-copy {
  position: relative;
  z-index: 1;
}

.cross-copy .eyebrow {
  color: rgba(247, 242, 230, 0.42);
}

.cross-copy .eyebrow .dot {
  background: var(--accent);
}

.cross-copy h2 {
  margin: 11px 0 9px;
  font-size: 26px;
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.cross-copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(247, 242, 230, 0.56);
  font-size: 11.5px;
  line-height: 1.7;
}

.cross-copy .btn {
  margin-top: 18px;
}

.cross-media {
  position: relative;
  z-index: 1;
  height: 160px;
  overflow: hidden;
  border-radius: 18px;
}

.cross-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.cross-card:hover .cross-media img {
  transform: scale(1.04);
}

.calendar-inline {
  display: none;
}

.calendar-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.calendar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  text-align: left;
  transition: background 0.2s;
}

.calendar-row:hover {
  background: #fffdf8;
}

.calendar-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--serif);
}

.calendar-date strong {
  font-size: 13px;
  font-weight: 600;
}

.calendar-date span {
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.calendar-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.calendar-copy strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.calendar-copy span {
  color: var(--muted);
  font-size: 8.5px;
}

.calendar-row > .icon {
  width: 15px;
  height: 15px;
  color: var(--muted-2);
}

/* =========================================================
   Explore
   ========================================================= */

.explore-tools {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(25, 25, 23, 0.03);
}

.search-field .icon {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
}

.search-clear:hover {
  background: var(--paper-2);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.chip {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fbf8f1;
}

.explore-map-wrap {
  position: relative;
  margin-top: 16px;
}

.city-map {
  position: relative;
  height: 288px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #e9e3d6;
  isolation: isolate;
}

.city-map.compact {
  height: 208px;
  border-radius: 20px;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-pins {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  z-index: 4;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 3px 10px rgba(25, 25, 23, 0.25);
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.map-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(25, 25, 23, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s, transform 0.2s;
}

.map-pin:hover {
  z-index: 8;
  background: var(--accent-deep);
  transform: translate(-50%, -50%) scale(1.22);
}

.map-pin.active {
  z-index: 7;
  background: var(--accent-deep);
}

.map-pin.active::after {
  border-color: var(--accent-deep);
  animation: pinPulse 2.2s infinite;
}

@keyframes pinPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.12;
  }
}

.pin-label {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 10;
  padding: 5px 8px;
  border: 1px solid rgba(25, 25, 23, 0.08);
  border-radius: 7px;
  background: rgba(251, 248, 241, 0.94);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 5px 14px rgba(25, 25, 23, 0.08);
}

.map-pin:hover .pin-label,
.map-pin.active .pin-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.map-overlay {
  position: absolute;
  z-index: 5;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.map-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 11px;
  border: 1px solid rgba(25, 25, 23, 0.08);
  border-radius: 9px;
  background: rgba(251, 248, 241, 0.88);
  backdrop-filter: blur(12px);
}

.map-title strong {
  font-size: 9.5px;
  font-weight: 750;
}

.map-title span {
  color: var(--muted);
  font-size: 7.5px;
}

.map-badge {
  padding: 6px 8px;
  border: 1px solid rgba(25, 25, 23, 0.08);
  border-radius: 7px;
  background: rgba(251, 248, 241, 0.8);
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.map-caption {
  position: absolute;
  z-index: 5;
  left: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 26px);
  padding: 8px 11px;
  border: 1px solid rgba(25, 25, 23, 0.08);
  border-radius: 10px;
  background: rgba(251, 248, 241, 0.9);
  color: var(--ink);
  font-size: 8.5px;
  line-height: 1.45;
  backdrop-filter: blur(12px);
}

.map-caption .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-deep);
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.results-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.results-head span {
  color: var(--muted);
  font-size: 9.5px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.place-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.place-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.place-media {
  position: relative;
  height: 154px;
  overflow: hidden;
  background: var(--paper-2);
}

.place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.place-card:hover .place-media img {
  transform: scale(1.04);
}

.place-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 7, 0.3));
}

.place-badge {
  position: absolute;
  z-index: 2;
  left: 11px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(251, 248, 241, 0.92);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.place-badge .icon {
  width: 11px;
  height: 11px;
  color: var(--accent-deep);
}

.save-btn {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(20, 18, 14, 0.26);
  color: #fff;
  backdrop-filter: blur(9px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.save-btn:hover {
  transform: scale(1.06);
  background: var(--accent);
  color: var(--accent-ink);
}

.save-btn.is-saved {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero-save.is-saved .icon,
.save-btn.is-saved .icon {
  fill: currentColor;
}

.save-btn .icon {
  width: 14px;
  height: 14px;
}

.place-body {
  padding: 14px 15px 15px;
}

.place-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.place-title-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.place-price {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.place-en {
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.place-why {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 10px 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.place-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8.5px;
}

.place-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.place-foot .icon {
  width: 11px;
  height: 11px;
}

.place-foot .rating {
  color: var(--ink);
  font-weight: 700;
}

/* =========================================================
   Together
   ========================================================= */

.blindbox-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 226px;
  margin-top: 26px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #1b1b17;
  color: #f7f2e6;
  isolation: isolate;
}

.blindbox-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -70px;
  top: -120px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  filter: blur(20px);
}

.blindbox-banner::after {
  content: "48H";
  position: absolute;
  z-index: -1;
  right: 18px;
  bottom: -20px;
  color: rgba(247, 242, 230, 0.06);
  font-family: var(--serif);
  font-size: 160px;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.blindbox-copy {
  max-width: 470px;
}

.blindbox-copy .eyebrow {
  color: rgba(247, 242, 230, 0.42);
}

.blindbox-copy .eyebrow .dot {
  background: var(--accent);
}

.blindbox-copy h2 {
  margin: 12px 0 9px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.blindbox-copy p {
  margin: 0;
  color: rgba(247, 242, 230, 0.55);
  font-size: 11.5px;
  line-height: 1.7;
}

.blindbox-copy .btn {
  margin-top: 19px;
}

.blindbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.blindbox-tags .pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 230, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blindbox-art {
  position: relative;
  width: 130px;
  height: 130px;
  flex: 0 0 auto;
  margin-right: 8px;
}

.blindbox-art span {
  position: absolute;
  border: 1px solid rgba(247, 242, 230, 0.28);
  border-radius: 50%;
  inset: 0;
}

.blindbox-art span:nth-child(2) {
  inset: 17px;
  border-color: var(--accent);
  opacity: 0.7;
}

.blindbox-art span:nth-child(3) {
  inset: 36px;
  background: var(--accent);
  border: 0;
  opacity: 0.9;
}

.blindbox-art .icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  color: var(--accent-ink);
  z-index: 2;
}

.section-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buddy-list {
  display: grid;
  gap: 8px;
}

.buddy-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(251, 248, 241, 0.62);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.buddy-row:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
  background: var(--paper);
}

.buddy-row > img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}

.buddy-main {
  min-width: 0;
}

.buddy-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.buddy-type {
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.buddy-topline strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.buddy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8.5px;
}

.buddy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.buddy-meta .icon {
  width: 11px;
  height: 11px;
}

.buddy-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.buddy-social {
  color: var(--muted-2);
  font-size: 7.5px;
  white-space: nowrap;
}

.buddy-note {
  margin: 7px 0 0;
  color: var(--muted-2);
  font-size: 8.5px;
}

/* =========================================================
   Talk
   ========================================================= */

.talk-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.58);
}

.talk-tab {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  transition: background 0.2s, color 0.2s;
}

.talk-tab:hover {
  color: var(--ink);
}

.talk-tab.active {
  background: var(--ink);
  color: #fbf8f1;
}

.composer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.composer img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.composer-prompt {
  flex: 1;
  min-width: 0;
  color: var(--muted-2);
  font-size: 11.5px;
  text-align: left;
}

.composer-prompt:hover {
  color: var(--ink);
}

.post-feed {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.post-card {
  padding: 17px 18px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.post-author img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author-copy strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.verified-dot {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.verified-dot .icon {
  width: 7px;
  height: 7px;
  stroke-width: 2.5;
}

.post-author-copy span {
  color: var(--muted-2);
  font-size: 8px;
}

.post-text {
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}

.post-image {
  position: relative;
  height: 230px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-2);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-image img {
  transform: scale(1.025);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  transition: color 0.2s;
}

.post-action:hover {
  color: var(--ink);
}

.post-action.liked,
.post-action.saved {
  color: var(--accent-deep);
}

.post-action .icon {
  width: 14px;
  height: 14px;
}

.post-action.liked .icon,
.post-action.saved .icon {
  fill: currentColor;
}

.qa-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.qa-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.qa-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--accent);
}

.qa-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-size: 8px;
}

.qa-kicker strong {
  color: var(--accent-deep);
  font-weight: 700;
}

.qa-card h3 {
  margin: 9px 0 13px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.qa-answers {
  display: grid;
  gap: 8px;
}

.qa-answer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(240, 235, 225, 0.58);
}

.qa-answer img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.qa-answer-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.qa-answer-head strong {
  font-size: 9px;
  font-weight: 700;
}

.qa-answer-head span {
  color: var(--muted-2);
  font-size: 7.5px;
}

.qa-answer p {
  margin: 0;
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.65;
}

.qa-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.qa-foot span {
  color: var(--muted-2);
  font-size: 8px;
}

.treehole-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.treehole-card {
  position: relative;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
  background: #1d1d19;
  color: #f5efe0;
}

.treehole-card:nth-child(3n + 2) {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.treehole-card:nth-child(3n + 3) {
  background: #e9e2d5;
  color: var(--ink);
}

.treehole-quote {
  position: absolute;
  top: 4px;
  right: 12px;
  font-family: var(--serif);
  font-size: 90px;
  line-height: 1;
  opacity: 0.08;
}

.treehole-card p {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.treehole-foot {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.treehole-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.55;
  font-size: 8px;
}

.treehole-hug {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  font-size: 8px;
}

.treehole-hug:hover {
  opacity: 1;
}

.treehole-hug .icon {
  width: 13px;
  height: 13px;
}

.cross-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.cross-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--accent-deep);
}

.cross-story-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.cross-story {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.cross-story:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.cross-story img {
  width: 130px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.cross-story-copy {
  min-width: 0;
}

.cross-story-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.cross-story-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.5px;
}

.cross-story > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

/* =========================================================
   Profile
   ========================================================= */

.profile-pass {
  position: relative;
  min-height: 255px;
  margin-top: 24px;
  padding: 27px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #1b1b17;
  color: #f7f2e6;
  isolation: isolate;
}

.profile-pass::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: -70px;
  top: -100px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.86;
}

.profile-pass::after {
  content: attr(data-en);
  position: absolute;
  z-index: -1;
  right: 20px;
  bottom: 6px;
  color: rgba(247, 242, 230, 0.08);
  font-family: var(--serif);
  font-size: 90px;
  letter-spacing: -0.06em;
}

.profile-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-kicker {
  color: rgba(247, 242, 230, 0.42);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-pass h1 {
  margin: 50px 0 8px;
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.profile-quote {
  max-width: 460px;
  margin: 0;
  color: rgba(247, 242, 230, 0.58);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.profile-tags .pill {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(247, 242, 230, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-switch {
  position: relative;
  z-index: 2;
  border-color: rgba(247, 242, 230, 0.22);
  color: #f7f2e6;
  background: rgba(20, 19, 15, 0.2);
  backdrop-filter: blur(8px);
}

.profile-switch:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stat-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(251, 248, 241, 0.62);
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
}

.radius-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 24px;
  min-height: 228px;
  padding: 25px 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #1d1d19;
  color: #f7f2e6;
}

.radius-card h2 {
  margin: 8px 0 9px;
  font-size: 25px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.radius-card p {
  max-width: 360px;
  margin: 0;
  color: rgba(247, 242, 230, 0.52);
  font-size: 10.5px;
  line-height: 1.7;
}

.radius-number {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 17px;
}

.radius-number strong {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.radius-number span {
  color: rgba(247, 242, 230, 0.4);
  font-size: 9px;
}

.radius-card .btn-light {
  margin-top: 16px;
}

.radius-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin: auto;
}

.radius-visual .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 242, 230, 0.12);
  border-radius: 50%;
}

.radius-visual .ring:nth-child(2) {
  inset: 23px;
}

.radius-visual .ring:nth-child(3) {
  inset: 48px;
}

.radius-visual .ring:nth-child(4) {
  inset: 72px;
  background: rgba(201, 242, 78, 0.08);
  border-color: rgba(201, 242, 78, 0.3);
}

.radius-visual .r-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 242, 78, 0.12);
}

.radius-visual .r-dot:nth-child(5) {
  left: 47%;
  top: 15%;
}

.radius-visual .r-dot:nth-child(6) {
  right: 16%;
  top: 45%;
}

.radius-visual .r-dot:nth-child(7) {
  left: 24%;
  bottom: 19%;
}

.radius-visual .r-dot:nth-child(8) {
  right: 34%;
  bottom: 31%;
  width: 5px;
  height: 5px;
}

.radius-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.radius-center span {
  width: 17px;
  height: 17px;
  border: 3px solid #1d1d19;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.saved-routes {
  display: grid;
  gap: 8px;
}

.saved-route {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: left;
  transition: transform 0.22s var(--ease), border-color 0.22s;
}

.saved-route:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
}

.saved-route-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.saved-route-copy {
  min-width: 0;
}

.saved-route-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 680;
}

.saved-route-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
}

.saved-route > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 248, 241, 0.58);
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.badge-medal {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  box-shadow: inset 0 0 0 4px var(--bg);
}

.badge-item:nth-child(1) .badge-medal,
.badge-item:nth-child(4) .badge-medal {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: transparent;
}

.badge-item.locked {
  opacity: 0.45;
}

.migration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.migration-card h2 {
  margin: 5px 0 7px;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.migration-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(23, 32, 6, 0.6);
  font-size: 10.5px;
  line-height: 1.65;
}

.migration-card .eyebrow {
  color: rgba(23, 32, 6, 0.46);
}

.migration-card .eyebrow .dot {
  background: var(--accent-ink);
}

.migration-card .btn {
  background: var(--ink);
  color: #fbf8f1;
}

.settings-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  display: grid;
  gap: 1px;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  background: var(--paper);
  text-align: left;
  transition: background 0.2s;
}

.settings-row:hover {
  background: #fffdf8;
}

.settings-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.settings-icon .icon {
  width: 15px;
  height: 15px;
}

.settings-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.settings-copy strong {
  font-size: 10.5px;
  font-weight: 650;
}

.settings-copy span {
  color: var(--muted-2);
  font-size: 8px;
}

.settings-value {
  color: var(--muted);
  font-size: 9px;
}

.settings-row > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

/* =========================================================
   Right sidebar
   ========================================================= */

.rightbar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 22px 30px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.36), transparent 38%),
    var(--bg);
  scrollbar-width: thin;
}

.context-sticky {
  display: grid;
  gap: 12px;
}

.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.context-head strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 720;
}

.context-head strong .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-deep);
}

.context-weather {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
}

.context-weather .icon {
  width: 13px;
  height: 13px;
}

.context-map-wrap {
  position: relative;
}

.context-map-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 8.5px;
}

.context-map-note .context-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-weight: 600;
}

.context-tip .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.context-calendar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.context-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px 10px;
}

.context-calendar-head strong {
  font-size: 11px;
  font-weight: 720;
}

.context-calendar-head button {
  color: var(--muted-2);
  font-size: 8.5px;
}

.context-calendar-head button:hover {
  color: var(--ink);
}

.context-calendar .calendar-list {
  border: 0;
  border-radius: 0;
}

.context-calendar .calendar-row {
  padding: 11px 14px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.context-calendar .calendar-row:hover {
  background: rgba(240, 235, 225, 0.45);
}

.context-calendar .calendar-copy strong {
  font-size: 10px;
}

.context-calendar .calendar-copy span {
  font-size: 8px;
}

.context-quote {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  background: #1c1c18;
  color: #f7f2e6;
}

.context-quote::before {
  content: "“";
  position: absolute;
  top: -13px;
  right: 10px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
  opacity: 0.3;
}

.context-quote p {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.65;
}

.context-quote span {
  display: block;
  margin-top: 10px;
  color: rgba(247, 242, 230, 0.4);
  font-size: 8px;
}

.context-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(251, 248, 241, 0.56);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.context-cta:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

.context-cta-copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 680;
}

.context-cta-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.context-cta .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-deep);
}

/* =========================================================
   Mobile nav
   ========================================================= */

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 62px;
  padding: 5px;
  border: 1px solid rgba(25, 25, 23, 0.08);
  border-radius: 21px;
  background: rgba(251, 248, 241, 0.92);
  box-shadow: 0 16px 40px rgba(25, 25, 23, 0.16);
  backdrop-filter: blur(20px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.mobile-nav-item .icon {
  width: 19px;
  height: 19px;
}

.mobile-nav-item.active {
  background: var(--ink);
  color: #fbf8f1;
}

.mobile-nav-item.active .icon {
  color: var(--accent);
}

/* =========================================================
   Modal
   ========================================================= */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(16, 15, 12, 0.55);
  backdrop-filter: blur(9px);
}

.modal-root.is-open {
  display: flex;
  animation: backdropIn 0.25s ease both;
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  position: relative;
  width: min(780px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.35s var(--ease) both;
  scrollbar-width: thin;
}

.modal.narrow {
  width: min(530px, 100%);
}

.modal.wide {
  width: min(860px, 100%);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  z-index: 20;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(22, 20, 16, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: #fff;
  color: var(--ink);
}

.modal-close.on-light {
  border-color: var(--line);
  background: rgba(251, 248, 241, 0.9);
  color: var(--ink);
}

.modal-hero {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background: #2a261e;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.modal-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 8, 0.06), rgba(12, 11, 8, 0.72));
}

.modal-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px;
}

.modal-hero-copy h2 {
  max-width: 580px;
  margin: 11px 0 7px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.modal-hero-copy p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.7;
}

.modal-body {
  padding: 25px;
}

.modal-body.tight {
  padding-top: 18px;
}

.modal-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-kicker .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.modal-title {
  margin: 12px 0 9px;
  font-size: clamp(25px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 0 1 auto;
}

.modal-section {
  margin-top: 22px;
}

.modal-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9.5px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-row .icon {
  width: 13px;
  height: 13px;
}

.why-box {
  padding: 15px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10.5px;
  line-height: 1.7;
}

.why-box strong {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.metric-list {
  display: grid;
  gap: 11px;
}

.metric-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  font-size: 9px;
}

.metric-row span:first-child {
  color: var(--muted);
}

.metric-row strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.metric-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-2);
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-deep);
}

.review-card {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(240, 235, 225, 0.45);
}

.review-card img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.review-copy {
  min-width: 0;
}

.review-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.review-head strong {
  font-size: 9.5px;
  font-weight: 700;
}

.review-head span {
  color: var(--muted-2);
  font-size: 8px;
}

.review-copy p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.65;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px -25px -25px;
  padding: 15px 25px calc(15px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.93);
  backdrop-filter: blur(18px);
}

.sticky-actions .action-note {
  color: var(--muted-2);
  font-size: 8.5px;
}

.sticky-actions .action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Blind box ---- */

.blindbox-modal-head {
  padding: 25px 25px 0;
}

.option-section {
  margin-top: 19px;
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.option-label span {
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-pill {
  min-height: 33px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.option-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.option-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fbf8f1;
}

.route-loading {
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.route-loading .spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.route-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.route-result-head h3 {
  margin: 7px 0 5px;
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.route-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.route-badge {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.route-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 17px;
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 0 0 18px;
}

.route-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 54px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.route-step-time {
  padding-top: 15px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  text-align: right;
}

.route-step-img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 58px;
  overflow: hidden;
  border: 3px solid var(--paper);
  border-radius: 12px;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
}

.route-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-step-copy h4 {
  margin: 3px 0 4px;
  font-size: 12.5px;
  font-weight: 720;
}

.route-step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.route-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: rgba(240, 235, 225, 0.45);
  font-size: 9.5px;
  line-height: 1.6;
}

.route-task .icon {
  width: 15px;
  height: 15px;
  color: var(--accent-deep);
}

.route-task strong {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Identity modal ---- */

.identity-modal-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.identity-modal-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.identity-modal-row:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.identity-modal-row.active {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}

.identity-modal-row img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  object-fit: cover;
}

.identity-modal-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 720;
}

.identity-modal-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.identity-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
}

.identity-modal-row.active .identity-check {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.identity-check .icon {
  width: 11px;
  height: 11px;
}

/* ---- Info modal ---- */

.info-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.info-item {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(240, 235, 225, 0.36);
  font-size: 10px;
  line-height: 1.65;
  color: var(--ink-2);
}

.info-number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 9px;
}

/* ---- Forms ---- */

.form-grid {
  display: grid;
  gap: 13px;
  margin-top: 19px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(240, 235, 225, 0.4);
  color: var(--ink);
  font-size: 11px;
  outline: 0;
  transition: border-color 0.2s, background 0.2s;
}

.form-row input,
.form-row select {
  height: 42px;
  padding: 0 12px;
}

.form-row textarea {
  min-height: 118px;
  padding: 11px 12px;
  line-height: 1.6;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--accent-deep);
  background: var(--paper);
}

.form-hint {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

/* ---- Story modal ---- */

.story-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--paper-2);
}

.story-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(16, 15, 12, 0.55));
}

.story-modal-body {
  padding: 25px;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.story-author strong {
  display: block;
  font-size: 10px;
}

.story-author span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.story-modal-body h2 {
  max-width: 620px;
  margin: 20px 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.story-prose {
  max-width: 640px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
}

.story-prose p {
  margin: 0 0 14px;
}

.story-signoff {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8.5px;
}

/* ---- Join confirm ---- */

.confirm-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(240, 235, 225, 0.4);
}

.confirm-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.confirm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.confirm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 9px;
}

.confirm-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.confirm-meta .icon {
  width: 12px;
  height: 12px;
}

/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #1a1a17;
  color: #fbf8f1;
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.28s, transform 0.32s var(--ease);
}

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

.toast .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* =========================================================
   Real index · passport · annual report · visit mode
   ========================================================= */

.cross-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cross-copy .cross-actions .btn {
  margin-top: 0;
}

.btn-ghost.on-dark {
  color: #f7f2e6;
  border-color: rgba(247, 242, 230, 0.24);
}

.btn-ghost.on-dark:hover {
  color: #f7f2e6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(247, 242, 230, 0.5);
}

.reports-section {
  margin-top: 44px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-card {
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.report-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-score {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}

.report-score::before {
  content: "★ ";
  color: var(--accent-deep);
  font-size: 10px;
}

.report-card h3 {
  margin: 11px 0 9px;
  font-size: 15px;
  font-weight: 740;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.report-verdict {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 700;
}

.report-verdict .icon {
  width: 11px;
  height: 11px;
}

.report-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.report-lists strong {
  display: block;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-lists div:first-child strong {
  color: var(--accent-deep);
}

.report-lists ul {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.report-lists li {
  position: relative;
  padding-left: 9px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
}

.report-lists li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

.report-lists div:first-child li::before {
  background: var(--accent-deep);
}

.report-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 7.5px;
}

.report-foot > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-foot img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

/* Passport */

.passport-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.passport-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed var(--line);
  border-radius: 17px;
  pointer-events: none;
}

.passport-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 17px;
  border-bottom: 1px dashed var(--line);
  background: linear-gradient(135deg, var(--accent-soft), rgba(251, 248, 241, 0) 68%);
}

.passport-label {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.passport-head h3 {
  margin: 8px 0 5px;
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.045em;
}

.passport-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.passport-ring {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent-deep) calc(var(--progress) * 1%), var(--paper-2) 0);
}

.passport-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--paper);
}

.passport-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.passport-tasks {
  position: relative;
  display: grid;
}

.passport-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  text-align: left;
  transition: background 0.2s;
}

.passport-task:last-child {
  border-bottom: 0;
}

.passport-task:hover {
  background: rgba(240, 235, 225, 0.35);
}

.passport-task-copy strong {
  display: block;
  font-size: 11.5px;
  font-weight: 680;
  transition: color 0.2s;
}

.passport-task-copy > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.passport-stamp {
  width: 68px;
  min-height: 31px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transform: rotate(-3deg);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.passport-task:hover .passport-stamp {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.passport-task.done .passport-stamp {
  border-style: solid;
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  animation: stampPop 0.36s var(--ease) both;
}

.passport-task.done .passport-task-copy strong {
  color: var(--accent-deep);
}

.passport-task.done .passport-task-copy > span {
  opacity: 0.62;
}

@keyframes stampPop {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(1.35);
  }
  70% {
    transform: rotate(-2deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(-3deg) scale(1);
  }
}

/* Annual report */

.annual-modal {
  background: #171714;
  color: #f7f2e6;
}

.annual-card {
  position: relative;
  padding: 32px 32px 12px;
  overflow: hidden;
  isolation: isolate;
}

.annual-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -100px;
  top: -190px;
  border-radius: 50%;
  background: var(--annual-accent);
  opacity: 0.22;
  filter: blur(12px);
}

.annual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(247, 242, 230, 0.36);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.annual-year {
  margin-top: 30px;
  color: var(--annual-accent);
  font-family: var(--serif);
  font-size: clamp(100px, 17vw, 166px);
  font-weight: 500;
  line-height: 0.76;
  letter-spacing: -0.08em;
}

.annual-identity {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 20px;
}

.annual-identity strong {
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.035em;
}

.annual-identity span {
  color: rgba(247, 242, 230, 0.45);
  font-size: 9.5px;
}

.annual-quote {
  max-width: 590px;
  margin: 14px 0 0;
  color: rgba(247, 242, 230, 0.64);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.annual-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(247, 242, 230, 0.12);
  border-radius: 16px;
  background: rgba(247, 242, 230, 0.12);
}

.annual-stats div {
  padding: 14px;
  background: #1d1d19;
}

.annual-stats strong {
  display: block;
  color: var(--annual-accent);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

.annual-stats span {
  display: block;
  margin-top: 6px;
  color: rgba(247, 242, 230, 0.42);
  font-size: 8px;
}

.annual-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  margin-top: 26px;
}

.annual-lower h3 {
  margin: 0 0 12px;
  color: rgba(247, 242, 230, 0.62);
  font-size: 10px;
  font-weight: 650;
}

.annual-bar-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 19px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: rgba(247, 242, 230, 0.54);
  font-size: 8.5px;
}

.annual-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 242, 230, 0.1);
}

.annual-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--annual-accent);
}

.annual-bar-row strong {
  color: rgba(247, 242, 230, 0.7);
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 500;
  text-align: right;
}

.annual-place {
  padding: 13px;
  border: 1px solid rgba(247, 242, 230, 0.1);
  border-radius: 13px;
  background: rgba(247, 242, 230, 0.04);
}

.annual-place + .annual-place {
  margin-top: 8px;
}

.annual-place span {
  color: rgba(247, 242, 230, 0.36);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.annual-place strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 680;
}

.annual-place p {
  margin: 4px 0 0;
  color: rgba(247, 242, 230, 0.45);
  font-size: 8.5px;
  line-height: 1.55;
}

.annual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 230, 0.1);
  color: rgba(247, 242, 230, 0.3);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.annual-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 32px 28px;
}

/* Visit mode */

.visit-modal {
  background: var(--paper);
}

.visit-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 64px 12px 20px;
  background: #1b1b17;
  color: #f7f2e6;
  font-size: 9px;
}

.visit-banner > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.visit-banner .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--visit-accent);
}

.visit-banner > span:nth-child(2) {
  color: rgba(247, 242, 230, 0.46);
}

.visit-banner button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: rgba(247, 242, 230, 0.6);
  font-size: 8px;
}

.visit-banner button:hover {
  color: var(--visit-accent);
}

.visit-banner button .icon {
  width: 11px;
  height: 11px;
}

.visit-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #24211c;
  color: #fff;
}

.visit-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visit-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 8, 0.06), rgba(12, 11, 8, 0.82));
}

.visit-word {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--serif);
  font-size: 92px;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.visit-hero-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 27px;
}

.visit-hero-copy h2 {
  max-width: 600px;
  margin: 12px 0 8px;
  font-size: clamp(31px, 4.4vw, 47px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.visit-hero-copy > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.6;
}

.visit-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.visit-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--accent-deep);
}

.visit-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.visit-quick-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(240, 235, 225, 0.36);
}

.visit-quick-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.visit-quick-icon .icon {
  width: 14px;
  height: 14px;
}

.visit-quick-item strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.visit-quick-item > span:last-child {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.visit-quote {
  position: relative;
  margin-top: 15px;
  padding: 17px;
  overflow: hidden;
  border-radius: 14px;
  background: #1d1d19;
  color: #f7f2e6;
}

.visit-quote > span {
  position: absolute;
  top: 3px;
  right: 13px;
  color: var(--visit-accent);
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  opacity: 0.18;
}

.visit-quote p {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.visit-quote small {
  display: block;
  margin-top: 9px;
  color: rgba(247, 242, 230, 0.38);
  font-size: 8px;
}

/* Migration assistant */

.migration-modal {
  background: var(--paper);
}

.migration-head {
  position: relative;
  padding: 29px 32px 26px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #1b1b17;
  color: #f7f2e6;
  isolation: isolate;
}

.migration-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
}

.migration-kicker {
  color: rgba(247, 242, 230, 0.4);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.migration-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 18px;
}

.migration-step {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 242, 230, 0.25);
  border-radius: 50%;
  color: rgba(247, 242, 230, 0.4);
  font-family: var(--serif);
  font-size: 9px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.migration-step.active {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.migration-step.done {
  border-color: transparent;
  background: rgba(247, 242, 230, 0.13);
  color: var(--accent);
}

.migration-step .icon {
  width: 11px;
  height: 11px;
}

.migration-steps i {
  width: 30px;
  height: 1px;
  background: rgba(247, 242, 230, 0.16);
}

.migration-head h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.migration-head > p {
  max-width: 560px;
  margin: 11px 0 0;
  color: rgba(247, 242, 230, 0.58);
  font-size: 11px;
  line-height: 1.7;
}

.migration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.migration-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: left;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.migration-option:nth-child(5) {
  grid-column: span 2;
}

.migration-option:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.migration-option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.migration-option-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.migration-option-copy strong {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.migration-option-copy span {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.migration-option-arrow {
  color: var(--muted-2);
  transition: transform 0.22s, color 0.22s;
}

.migration-option:hover .migration-option-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-deep);
}

.migration-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.migration-privacy-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--accent-deep);
}

.migration-privacy-note strong {
  color: var(--ink);
}

.migration-target-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(251, 248, 241, 0.4));
}

.migration-target-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
}

.migration-target-preview > div {
  min-width: 0;
}

.migration-target-preview span:not(.migration-target-icon) {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.migration-target-preview strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.migration-target-preview p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.migration-checklist {
  display: grid;
  gap: 7px;
}

.migration-check {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(240, 235, 225, 0.32);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.migration-check:hover {
  border-color: var(--line-strong);
  background: rgba(240, 235, 225, 0.55);
}

.migration-check.selected {
  border-color: rgba(91, 117, 0, 0.24);
  background: var(--accent-soft);
}

.migration-checkmark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.migration-check.selected .migration-checkmark {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #fff;
}

.migration-checkmark .icon {
  width: 11px;
  height: 11px;
}

.migration-check-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.migration-check-copy strong {
  font-size: 10.5px;
  font-weight: 680;
}

.migration-check-copy span {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.migration-summary {
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.migration-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  background: var(--paper-2);
}

.migration-summary-head span {
  font-size: 10.5px;
  font-weight: 700;
}

.migration-summary-head strong {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
}

.migration-summary-row {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 9.5px;
  line-height: 1.45;
}

.migration-summary-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.migration-summary-check .icon {
  width: 10px;
  height: 10px;
}

.migration-success {
  padding: 34px 30px 30px;
  text-align: center;
}

.migration-success-mark {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 10px var(--accent-soft);
  animation: stampPop 0.5s var(--ease) both;
}

.migration-success-mark .icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.migration-success .migration-kicker {
  margin-top: 23px;
  color: var(--muted-2);
}

.migration-success h2 {
  max-width: 450px;
  margin: 10px auto 11px;
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.migration-success > p {
  max-width: 400px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
}

.success-recs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 23px 0 18px;
  text-align: left;
}

.success-recs > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(240, 235, 225, 0.38);
}

.success-recs span {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.success-recs strong {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.45;
}

.migration-success .migration-privacy-note {
  margin-top: 0;
  text-align: left;
}

.migration-success .modal-actions {
  justify-content: center;
  margin-top: 18px;
}

/* Event detail */

.event-detail-hero {
  min-height: 300px;
}

.event-detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.event-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 24px;
}

.event-detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.event-detail-info > div {
  padding: 11px 12px;
  background: var(--paper);
}

.event-detail-info span {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
}

.event-detail-info strong {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 680;
}

.event-flow {
  display: grid;
  gap: 11px;
}

.event-flow-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.event-flow-item > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 8px;
}

.event-flow-item strong {
  display: block;
  padding-top: 3px;
  font-size: 10.5px;
  font-weight: 680;
}

.event-flow-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.event-safety-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-safety-list span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 8px;
}

.event-safety-list .icon {
  width: 11px;
  height: 11px;
  color: var(--accent-deep);
}

.event-detail-side {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.event-host-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(240, 235, 225, 0.35);
}

.event-host-card > img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.event-host-card span {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
}

.event-host-card strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}

.event-host-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.event-spots-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.event-spots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 8px;
}

.event-spots-head strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}

.event-spots-bar {
  height: 6px;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--paper-2);
}

.event-spots-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-deep);
}

.event-spots-card p {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

.event-join-main {
  width: 100%;
}

.event-detail-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted-2);
  font-size: 7.5px;
  line-height: 1.4;
}

.event-detail-note .icon {
  width: 11px;
  height: 11px;
}

/* Global search */

.search-modal {
  background: var(--paper);
}

.search-modal-head {
  padding: 26px 26px 0;
}

.search-modal-head .modal-kicker {
  padding-right: 40px;
}

.search-bar-big {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  transition: border-color 0.2s, background 0.2s;
}

.search-bar-big:focus-within {
  border-color: var(--accent-deep);
  background: #fffdf8;
}

.search-bar-big > .icon {
  width: 20px;
  height: 20px;
  color: var(--muted-2);
}

.search-bar-big input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.search-bar-big input::placeholder {
  color: var(--muted-2);
  font-weight: 500;
}

.search-kbd {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.search-results {
  max-height: 57vh;
  overflow-y: auto;
  padding: 19px 26px 24px;
  scrollbar-width: thin;
}

.search-start {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.search-start-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.search-start strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.search-start p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.search-group + .search-group {
  margin-top: 14px;
}

.search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 7px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  text-align: left;
  transition: background 0.2s;
}

.search-result:hover {
  background: var(--paper-2);
}

.search-result-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.search-result-icon .icon {
  width: 15px;
  height: 15px;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 680;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result-copy span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-result > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
}

.search-empty {
  padding: 30px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
}

.search-empty strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.search-empty p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

/* Profile collections */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.collection-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.collection-panel.collection-wide {
  grid-column: 1 / -1;
}

.collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: var(--paper-2);
}

.collection-head strong {
  font-size: 10px;
  font-weight: 700;
}

.collection-head span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 9px;
}

.collection-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 0.2s;
}

.collection-row:hover {
  background: #fffdf8;
}

.collection-row > img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.collection-date {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.collection-date strong {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
}

.collection-date span {
  margin-top: 3px;
  font-size: 7px;
  font-weight: 700;
}

.collection-copy {
  min-width: 0;
}

.collection-copy strong {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 680;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.collection-copy span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.collection-row > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.collection-empty {
  padding: 24px 16px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.collection-more {
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  text-align: center;
}

/* Buddy applications */

.buddy-app-list {
  display: grid;
  gap: 8px;
}

.buddy-app-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.buddy-app-card > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.buddy-app-copy {
  min-width: 0;
}

.buddy-app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.buddy-app-top strong {
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.45;
}

.buddy-app-copy > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.buddy-app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

.buddy-demo-confirm {
  padding: 0;
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.buddy-demo-confirm:hover {
  color: var(--ink);
}

/* Notifications */

.notification-btn {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1;
}

.notifications-modal {
  width: min(570px, 100%);
  background: var(--paper);
}

.notifications-head {
  padding: 24px 24px 17px;
  border-bottom: 1px solid var(--line);
}

.notifications-head .modal-title {
  margin-bottom: 7px;
}

.notification-list {
  display: grid;
  gap: 7px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 16px 20px;
  scrollbar-width: thin;
}

.notification-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.notification-item:hover {
  border-color: var(--line-strong);
  background: #fffdf8;
}

.notification-item.unread {
  border-color: rgba(91, 117, 0, 0.18);
  background: var(--accent-soft);
}

.notification-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-2);
}

.notification-item.unread .notification-icon {
  background: var(--accent);
  color: var(--accent-ink);
}

.notification-icon .icon {
  width: 15px;
  height: 15px;
}

.notification-copy {
  min-width: 0;
}

.notification-type {
  display: block;
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notification-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.notification-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.notification-item > .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.notification-empty {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

.notification-empty > .icon {
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  color: var(--muted-2);
}

.notification-empty strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.notification-empty p {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.6;
}

.notification-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.5;
}

/* Comments */

.comment-modal {
  width: min(640px, 100%);
  background: var(--paper);
}

.comment-modal-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.comment-modal-head .modal-title {
  margin-bottom: 13px;
}

.comment-post-preview {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border-radius: 12px;
  background: var(--paper-2);
}

.comment-post-preview img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.comment-post-preview strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
}

.comment-post-preview p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.comment-modal-body {
  padding: 15px 24px 18px;
}

.comment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--muted-2);
  font-size: 8px;
}

.comment-sort {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(240, 235, 225, 0.4);
}

.comment-sort-btn {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  transition: background 0.2s, color 0.2s;
}

.comment-sort-btn:hover {
  color: var(--ink);
}

.comment-sort-btn.active {
  background: var(--ink);
  color: #fbf8f1;
}

.comment-list {
  display: grid;
  gap: 13px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.comment-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.comment-item > img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-meta strong {
  font-size: 9px;
  font-weight: 700;
}

.comment-meta span {
  color: var(--muted-2);
  font-size: 7.5px;
}

.comment-main > p {
  margin: 5px 0 0;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.65;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 6px;
}

.comment-like,
.comment-reply,
.comment-report {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--muted-2);
  font-size: 8px;
  transition: color 0.2s;
}

.comment-like:hover,
.comment-reply:hover {
  color: var(--ink);
}

.comment-report:hover {
  color: #a43b2f;
}

.comment-like .icon {
  width: 12px;
  height: 12px;
}

.comment-like.liked {
  color: var(--accent-deep);
}

.comment-like.liked .icon {
  fill: currentColor;
}

.comment-empty {
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
  text-align: center;
}

.comment-thread {
  min-width: 0;
}

.comment-replies {
  display: grid;
  gap: 10px;
  margin: 10px 0 0 41px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.comment-item.reply {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
}

.comment-item.reply > img {
  width: 26px;
  height: 26px;
}

.comment-item.reply .comment-meta strong {
  font-size: 8.5px;
}

.comment-item.reply .comment-main > p {
  font-size: 9.8px;
}

.comment-author-badge {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 6.5px;
  font-weight: 750;
  line-height: 1;
}

.comment-reply-to {
  color: var(--accent-deep);
  font-size: 7.5px;
  font-weight: 600;
}

.comment-reply-indicator {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 8.5px;
}

.comment-reply-indicator strong {
  font-weight: 700;
}

.comment-reply-cancel {
  color: var(--muted);
  font-size: 8px;
}

.comment-reply-cancel:hover {
  color: var(--ink);
}

.comment-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  bottom: 0;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.comment-form > img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.comment-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  max-height: 110px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(240, 235, 225, 0.4);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.55;
  outline: 0;
  resize: none;
}

.comment-form textarea:focus {
  border-color: var(--accent-deep);
  background: #fffdf8;
}

/* Share card */

.event-share {
  width: 100%;
}

.share-modal {
  width: min(560px, 100%);
  background: var(--paper);
}

.share-modal-head {
  padding: 24px 24px 0;
}

.share-preview {
  position: relative;
  margin: 17px 24px 0;
  overflow: hidden;
  border-radius: 20px;
  background: #1b1b17;
  color: #f7f2e6;
  box-shadow: 0 14px 40px rgba(25, 25, 23, 0.14);
}

.share-preview-image {
  position: relative;
  height: 215px;
  overflow: hidden;
  background: #2a261e;
}

.share-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.04) 50%, rgba(10, 9, 7, 0.4));
}

.share-preview-image .pill {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  font-size: 8px;
}

.share-preview-copy {
  padding: 18px;
}

.share-preview-copy > span {
  color: rgba(247, 242, 230, 0.42);
  font-family: var(--serif);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-preview-copy h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.share-preview-copy > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  color: rgba(247, 242, 230, 0.56);
  font-size: 9.5px;
  line-height: 1.6;
}

.share-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 242, 230, 0.11);
  color: rgba(247, 242, 230, 0.32);
  font-family: var(--serif);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.share-link-box {
  max-height: 50px;
  margin: 13px 24px 0;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  word-break: break-all;
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 24px 24px;
}

.share-actions .btn {
  flex: 1;
}

/* Group chat */

.event-group {
  width: 100%;
}

.buddy-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--accent-deep);
  font-size: 8px;
  font-weight: 650;
}

.buddy-group-btn:hover {
  color: var(--ink);
}

.buddy-group-btn .icon {
  width: 12px;
  height: 12px;
}

.group-unread-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.group-chat-modal {
  width: min(620px, 100%);
  background: var(--paper);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 58px 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), rgba(251, 248, 241, 0) 72%);
}

.chat-avatar-stack {
  display: flex;
  flex: 0 0 auto;
  padding-left: 9px;
}

.chat-avatar-stack img {
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.chat-head-copy {
  min-width: 0;
  flex: 1;
}

.chat-head-copy > span {
  color: var(--muted-2);
  font-family: var(--serif);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.chat-head-copy h2 {
  overflow: hidden;
  margin: 3px 0 2px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-head-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 8.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 7.5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.chat-count:hover {
  background: var(--paper);
  color: var(--ink);
}

.chat-count .icon {
  width: 10px;
  height: 10px;
  transition: transform 0.2s var(--ease);
}

.chat-count.open .icon {
  transform: rotate(180deg);
}

.chat-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 20px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(240, 235, 225, 0.38);
}

.chat-member {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.chat-member > img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.chat-member > div {
  min-width: 0;
}

.chat-member strong {
  display: block;
  overflow: hidden;
  font-size: 8.5px;
  font-weight: 680;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-member span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 7px;
}

.chat-pinned {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 11px 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.chat-pinned > div {
  min-width: 0;
  padding: 9px 10px;
  background: var(--paper);
}

.chat-pinned span {
  display: block;
  color: var(--muted-2);
  font-size: 6.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-pinned strong {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 20px 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: rgba(23, 32, 6, 0.65);
  font-size: 8px;
  line-height: 1.5;
}

.chat-notice .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: var(--accent-deep);
}

.chat-messages {
  display: grid;
  gap: 12px;
  max-height: 44vh;
  overflow-y: auto;
  padding: 15px 20px 18px;
  background: rgba(240, 235, 225, 0.22);
  scrollbar-width: thin;
}

.chat-system {
  justify-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted-2);
  font-size: 7px;
  text-align: center;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 88%;
}

.chat-message.self {
  flex-direction: row-reverse;
  margin-left: auto;
}

.chat-message > img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.chat-bubble {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--paper);
}

.chat-message.self .chat-bubble {
  border-color: transparent;
  border-radius: 12px 12px 4px 12px;
  background: var(--accent-soft);
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.chat-meta strong {
  font-size: 8px;
  font-weight: 700;
}

.chat-meta span {
  color: var(--muted-2);
  font-size: 6.5px;
}

.chat-bubble p {
  margin: 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.6;
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 90px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 10px;
  line-height: 1.5;
  outline: 0;
  resize: none;
}

.chat-form textarea:focus {
  border-color: var(--accent-deep);
  background: #fffdf8;
}

.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 15px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.chat-leave-btn {
  color: var(--muted-2);
  font-size: 7.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-leave-btn:hover {
  color: #a43b2f;
}

.event-cancel-link {
  align-self: center;
  padding: 0;
  color: var(--muted-2);
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-cancel-link:hover {
  color: #a43b2f;
}

/* People & follow */

.follow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.follow-pill .icon {
  width: 11px;
  height: 11px;
}

.follow-pill:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.follow-pill.following {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.post-follow {
  margin-left: auto;
  flex: 0 0 auto;
}

.host-follow {
  margin-top: 7px;
}

.story-follow {
  margin-left: auto;
  align-self: flex-start;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.person-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.person-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.person-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-card-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.person-card-head span {
  display: block;
  color: var(--muted-2);
  font-size: 7.5px;
}

.person-card-head strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.person-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 10px 0 11px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
}

.person-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.person-card-foot .tag-row {
  gap: 4px;
}

.person-card-foot .tag {
  min-height: 19px;
  padding: 0 6px;
  font-size: 7px;
}

.person-follow {
  flex: 0 0 auto;
}

.person-modal {
  background: var(--paper);
}

.person-modal-hero {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 27px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), rgba(251, 248, 241, 0) 72%);
}

.person-modal-hero > img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 3px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.person-modal-hero span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.person-modal-hero h2 {
  margin: 5px 0 5px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.person-modal-hero p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.person-quote {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
}

.person-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.person-self-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.person-self-note .icon {
  width: 13px;
  height: 13px;
}

.person-content-list {
  display: grid;
  gap: 7px;
}

.person-content-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(240, 235, 225, 0.3);
  text-align: left;
  transition: background 0.2s;
}

.person-content-row:hover {
  background: var(--paper-2);
}

.person-content-row img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.person-content-row > span {
  min-width: 0;
}

.person-content-row strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.45;
}

.person-content-row span span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 7.5px;
}

.person-content-row > .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1440px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-card {
    min-height: 126px;
  }
}

@media (max-width: 1240px) {
  .shell {
    grid-template-columns: 226px minmax(0, 1fr);
  }

  .rightbar {
    display: none;
  }

  .calendar-inline {
    display: block;
  }

  .view {
    max-width: 920px;
  }
}

@media (max-width: 1100px) {
  .entry-main {
    grid-template-columns: minmax(330px, 0.82fr) minmax(420px, 1fr);
    gap: 48px;
  }

  .entry-copy h1 {
    font-size: clamp(50px, 6.4vw, 76px);
  }
}

@media (max-width: 980px) {
  .entry-main {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 54px 0 44px;
  }

  .entry-copy h1 {
    font-size: clamp(50px, 10vw, 86px);
  }

  .entry-collage {
    margin-top: 32px;
  }

  .identity-option {
    min-height: 82px;
  }

  .shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 20px;
  }

  .topbar {
    height: 66px;
    margin: 0 -20px;
    padding: 0 20px;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-brand .brand-cn {
    font-size: 21px;
  }

  .mobile-brand .brand-en {
    color: var(--muted-2);
  }

  .mobile-brand .brand-dot {
    background: var(--accent-deep);
  }

  .topbar-context {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .view {
    max-width: 760px;
    padding: 24px 0 105px;
  }

  .home-hero {
    min-height: 400px;
  }
}

@media (max-width: 760px) {
  .entry-root {
    padding: 22px 18px 18px;
  }

  .entry-plate > span:not(.plate-live) {
    display: none;
  }

  .entry-main {
    padding: 38px 0 30px;
    gap: 34px;
  }

  .entry-copy h1 {
    font-size: clamp(46px, 13.5vw, 68px);
    line-height: 1;
  }

  .entry-copy > p {
    margin-top: 21px;
    font-size: 13px;
  }

  .entry-collage {
    display: none;
  }

  .identity-list {
    gap: 7px;
  }

  .identity-option {
    grid-template-columns: 22px 58px minmax(0, 1fr) 32px;
    gap: 10px;
    min-height: 75px;
    padding: 8px 12px 8px 10px;
    border-radius: 17px;
  }

  .id-thumb {
    width: 58px;
    height: 56px;
    border-radius: 11px;
  }

  .id-name {
    font-size: 18px;
  }

  .id-tagline {
    font-size: 10.5px;
  }

  .id-arrow {
    width: 30px;
    height: 30px;
  }

  .entry-foot {
    display: block;
    line-height: 1.7;
  }

  .entry-ticker {
    display: none;
  }

  .main {
    padding: 0 16px;
  }

  .topbar {
    margin: 0 -16px;
    padding: 0 16px;
    height: 62px;
  }

  .topbar .icon-btn {
    width: 36px;
    height: 36px;
  }

  .topbar {
    gap: 10px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .mobile-brand {
    flex: 0 0 auto;
  }

  .mobile-brand .brand-en,
  .mobile-brand .brand-dot {
    display: none;
  }

  .mobile-brand .brand-cn {
    font-size: 24px;
    white-space: nowrap;
  }

  .identity-mini {
    height: 36px;
    max-width: 106px;
    padding-right: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .identity-mini .icon {
    display: none;
  }

  .avatar-btn {
    display: none;
  }

  .view {
    padding-top: 21px;
  }

  .site-notice-wrap {
    padding-top: 12px;
  }

  .site-notice {
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    gap: 9px;
    padding: 10px 11px;
  }

  .site-notice-icon {
    width: 30px;
    height: 30px;
  }

  .site-notice-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .page-intro h1 {
    font-size: clamp(33px, 8.6vw, 44px);
  }

  .page-intro > p {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .home-hero {
    min-height: 390px;
    margin-top: 21px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-content h2 {
    font-size: clamp(28px, 8vw, 37px);
  }

  .hero-content > p {
    font-size: 11.5px;
  }

  .hero-word {
    font-size: 58px;
    top: 68px;
    right: 16px;
  }

  .hero-topline {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .quick-grid {
    gap: 8px;
  }

  .quick-card {
    min-height: 128px;
    padding: 13px;
  }

  .section {
    margin-top: 37px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card.featured {
    grid-column: auto;
    display: block;
    min-height: 0;
  }

  .story-card.featured .story-media {
    height: 190px;
  }

  .story-card.featured .story-copy {
    padding: 17px 18px 18px;
  }

  .story-card.featured .story-copy h3 {
    font-size: 20px;
  }

  .event-mini-grid,
  .event-grid,
  .place-grid,
  .treehole-grid {
    grid-template-columns: 1fr;
  }

  .event-mini-grid > :only-child {
    grid-column: auto;
  }

  .event-media,
  .place-media {
    height: 170px;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-lists {
    grid-template-columns: 1fr 1fr;
  }

  .passport-head {
    padding: 18px 17px 15px;
  }

  .passport-head h3 {
    font-size: 19px;
  }

  .passport-ring {
    width: 58px;
    height: 58px;
  }

  .passport-task {
    padding: 12px 17px;
    gap: 10px;
  }

  .passport-stamp {
    width: 58px;
    font-size: 7.5px;
  }

  .annual-card {
    padding: 23px 20px 8px;
  }

  .annual-year {
    margin-top: 24px;
    font-size: 94px;
  }

  .annual-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .annual-quote {
    font-size: 14px;
  }

  .annual-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annual-lower {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .annual-actions {
    justify-content: stretch;
    padding: 0 20px 22px;
  }

  .annual-actions .btn {
    flex: 1;
  }

  .event-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-detail-info {
    grid-template-columns: 1fr 1fr;
  }

  .search-modal-head {
    padding: 21px 20px 0;
  }

  .search-bar-big {
    min-height: 52px;
    padding: 0 13px;
  }

  .search-bar-big input {
    font-size: 12.5px;
  }

  .search-kbd {
    display: none;
  }

  .search-results {
    max-height: 60vh;
    padding: 16px 20px 20px;
  }

  .collection-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-modal-hero {
    gap: 12px;
    padding: 21px 20px 17px;
  }

  .person-modal-hero > img {
    width: 60px;
    height: 60px;
  }

  .person-modal-hero h2 {
    font-size: 24px;
  }

  .notifications-head,
  .comment-modal-head {
    padding: 20px 20px 14px;
  }

  .notification-list {
    max-height: 58vh;
    padding: 14px 16px;
  }

  .comment-modal-body {
    padding: 14px 20px 16px;
  }

  .comment-list {
    max-height: 34vh;
  }

  .comment-form textarea {
    font-size: 9.5px;
  }

  .comment-replies {
    margin-left: 34px;
    padding-left: 10px;
  }

  .comment-reply-indicator {
    font-size: 8px;
  }

  .notification-foot {
    padding: 11px 16px 14px;
  }

  .share-modal-head {
    padding: 20px 20px 0;
  }

  .share-preview {
    margin: 14px 20px 0;
  }

  .share-preview-image {
    height: 180px;
  }

  .share-preview-copy {
    padding: 16px;
  }

  .share-link-box {
    margin: 12px 20px 0;
  }

  .share-actions {
    padding: 14px 20px 20px;
  }

  .share-actions .btn {
    flex: 1 1 40%;
  }

  .chat-head {
    gap: 9px;
    padding: 17px 52px 14px 16px;
  }

  .chat-avatar-stack img {
    width: 30px;
    height: 30px;
  }

  .chat-head-copy h2 {
    font-size: 14px;
  }

  .chat-head-copy p {
    font-size: 8px;
  }

  .chat-pinned {
    margin: 10px 16px 0;
  }

  .chat-pinned > div {
    padding: 8px;
  }

  .chat-pinned strong {
    font-size: 8px;
  }

  .chat-members {
    margin: 10px 16px 0;
  }

  .chat-notice {
    margin: 10px 16px 0;
    font-size: 7.5px;
  }

  .chat-messages {
    max-height: 42vh;
    padding: 14px 16px;
  }

  .chat-form {
    padding: 10px 16px 13px;
  }

  .chat-foot {
    padding: 0 16px 12px;
  }

  .migration-head {
    padding: 23px 20px 21px;
    border-radius: 24px 24px 0 0;
  }

  .migration-head h2 {
    font-size: 28px;
  }

  .migration-head > p {
    font-size: 10.5px;
  }

  .migration-steps i {
    width: 20px;
  }

  .migration-options {
    grid-template-columns: 1fr;
  }

  .migration-option:nth-child(5) {
    grid-column: auto;
  }

  .migration-success {
    padding: 29px 20px 24px;
  }

  .success-recs {
    grid-template-columns: 1fr;
  }

  .migration-success .modal-actions {
    flex-direction: column-reverse;
  }

  .migration-success .modal-actions .btn {
    width: 100%;
  }

  .visit-banner {
    padding: 11px 56px 11px 16px;
  }

  .visit-banner > span:nth-child(2) {
    display: none;
  }

  .visit-banner button {
    margin-left: 0;
  }

  .visit-hero {
    height: 310px;
  }

  .visit-hero-copy {
    padding: 20px;
  }

  .visit-word {
    font-size: 58px;
    top: 18px;
    right: 16px;
  }

  .visit-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cross-card {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 22px;
  }

  .cross-media {
    height: 150px;
  }

  .cross-copy h2 {
    font-size: 23px;
  }

  .blindbox-banner {
    min-height: 255px;
    padding: 22px;
    align-items: flex-start;
  }

  .blindbox-art {
    position: absolute;
    right: 16px;
    top: 18px;
    width: 100px;
    height: 100px;
    margin: 0;
  }

  .blindbox-copy {
    max-width: 100%;
  }

  .blindbox-copy h2 {
    max-width: 300px;
    font-size: 29px;
  }

  .section-head-actions .btn span {
    display: none;
  }

  .buddy-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .buddy-row > img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .buddy-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
  }

  .talk-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .talk-tab {
    flex: 0 0 auto;
  }

  .post-image {
    height: 205px;
  }

  .cross-story {
    grid-template-columns: 94px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .cross-story img {
    width: 94px;
    height: 72px;
  }

  .profile-pass {
    min-height: 270px;
    padding: 22px;
  }

  .profile-pass h1 {
    margin-top: 58px;
    font-size: 38px;
  }

  .profile-pass::before {
    width: 220px;
    height: 220px;
    right: -90px;
    top: -80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radius-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .radius-visual {
    display: none;
  }

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

  .migration-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-root {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .modal.narrow,
  .modal.wide {
    width: 100%;
  }

  .modal-hero {
    min-height: 235px;
  }

  .modal-hero-copy {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .sticky-actions {
    margin: 22px -20px -20px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  }

  .sticky-actions .action-note {
    display: none;
  }

  .sticky-actions .action-group {
    width: 100%;
  }

  .sticky-actions .action-group .btn {
    flex: 1;
  }

  .route-step {
    grid-template-columns: 42px 58px minmax(0, 1fr);
    gap: 8px;
  }

  .route-step:not(:last-child)::before {
    left: 71px;
    top: 48px;
  }

  .route-step-img {
    width: 58px;
    height: 50px;
    border-width: 2px;
  }

  .route-step-time {
    padding-top: 13px;
    font-size: 9px;
  }

  .route-result-head h3 {
    font-size: 21px;
  }

  .route-badge {
    width: 54px;
    height: 54px;
    font-size: 8px;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 430px) {
  .entry-copy h1 {
    font-size: 43px;
  }

  .id-en {
    display: none;
  }

  .identity-option {
    grid-template-columns: 18px 52px minmax(0, 1fr) 28px;
    gap: 8px;
    min-height: 70px;
  }

  .id-thumb {
    width: 52px;
    height: 52px;
  }

  .id-name {
    font-size: 16.5px;
  }

  .id-tagline {
    font-size: 9.5px;
  }

  .quick-copy strong {
    font-size: 13px;
  }

  .quick-copy span {
    font-size: 8.5px;
  }

  .hero-content h2 {
    font-size: 27px;
  }

  .hero-meta .pill {
    padding: 0 8px;
  }

  .post-image {
    height: 180px;
  }

  .profile-pass h1 {
    font-size: 34px;
  }

  .profile-quote {
    font-size: 11px;
  }
}

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

/* =========================================================
   Auth 登录 / 注册
   ========================================================= */
.auth-root {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(201,242,78,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(255,180,162,0.16), transparent 55%),
    var(--bg, #171714);
}
.auth-panel {
  width: min(440px, 100%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 34px 30px 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.auth-brand { margin-bottom: 22px; }
.auth-title {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.5px;
}
.auth-sub { margin: 0 0 24px; color: rgba(255,255,255,0.55); font-size: 14px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.6);
  padding: 9px 0;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
  transition: .18s;
}
.auth-tab.is-active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > span { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: .3px; }
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: .18s;
  box-sizing: border-box;
}
.auth-field input:focus {
  border-color: var(--accent, #C9F24E);
  box-shadow: 0 0 0 3px rgba(201,242,78,0.14);
}
.auth-identities { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-identity { position: relative; cursor: pointer; }
.auth-identity input { position: absolute; opacity: 0; pointer-events: none; }
.auth-identity span {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: .18s;
}
.auth-identity input:checked + span {
  background: var(--accent, #C9F24E);
  border-color: var(--accent, #C9F24E);
  color: #172006;
  font-weight: 600;
}
.auth-submit { width: 100%; justify-content: center; margin-top: 6px; }
.auth-error {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  color: #ff8b7b;
}
.auth-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 520px) {
  .auth-panel { padding: 26px 20px 20px; border-radius: 18px; }
  .auth-title { font-size: 25px; }
}

/* 图片上传 */
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.upload-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  border: 1px dashed rgba(255,255,255,0.25);
  font-size: 13px; color: rgba(255,255,255,0.75);
  transition: .18s;
}
.upload-trigger:hover { border-color: var(--accent, #C9F24E); color: var(--accent, #C9F24E); }
.upload-preview { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-remove {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.65); color: #fff;
  display: grid; place-items: center; padding: 0;
}
.upload-hint { font-size: 11px; color: rgba(255,255,255,0.35); width: 100%; }

/* 群聊加载态 */
.chat-loading { padding: 60px 0; text-align: center; color: rgba(255,255,255,0.5); font-size: 14px; }

/* 侧边栏退出登录 */
.side-logout {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11.5px;
  cursor: pointer;
  transition: .18s;
}
.side-logout:hover { color: #ff8b7b; border-color: rgba(255,139,123,0.4); }

/* =========================================================
   真实地图 CityMap
   ========================================================= */
.cl-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #EDE8DD;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.cl-map.is-dragging { cursor: grabbing; }

.cl-map-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cl-map-surface.has-tiles { background: #F2EEE6; }
.cl-tile {
  position: absolute;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.cl-grid { display: block; }

/* 点位 */
.cl-map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cl-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .15s ease;
}
.cl-pin:hover { transform: translate(-50%, -100%) scale(1.08); z-index: 5; }
.cl-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent, #C9F24E);
  border: 2.5px solid #1d1d18;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  display: block;
}
.cl-pin.is-active .cl-pin-dot {
  background: #ff5d47;
  width: 17px;
  height: 17px;
}
.cl-pin-label {
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(24,24,20,0.88);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .15s;
}
.cl-pin:hover .cl-pin-label,
.cl-pin.is-active .cl-pin-label { opacity: 1; }

/* 我的位置 */
.cl-user {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.cl-user-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2f7bff;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px rgba(47,123,255,0.4), 0 2px 6px rgba(0,0,0,0.3);
  grid-area: 1 / 1;
  z-index: 2;
}
.cl-user-pulse {
  grid-area: 1 / 1;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(47,123,255,0.45);
  animation: cl-pulse 2s ease-out infinite;
}
@keyframes cl-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(4.2); opacity: 0; }
  100% { transform: scale(4.2); opacity: 0; }
}

/* 控件 */
.cl-map-controls {
  position: absolute;
  right: 10px;
  bottom: 34px;
  display: grid;
  gap: 5px;
  z-index: 6;
}
.cl-map-controls button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.94);
  color: #23231f;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: .15s;
}
.cl-map-controls button:hover { background: #fff; transform: translateY(-1px); }

/* 比例尺 */
.cl-map-scale {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #5a574e;
  z-index: 6;
  pointer-events: none;
}
.cl-map-scale span {
  display: block;
  height: 5px;
  border: 1px solid #5a574e;
  border-top: 0;
}
.cl-map-scale em { font-style: normal; }

/* 定位按钮 */
.map-locate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  color: #23231f;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: .15s;
  z-index: 7;
  pointer-events: auto;
}
.map-locate:hover { background: #fff; }
.map-locate[disabled] { opacity: .6; cursor: wait; }
.map-locate svg { width: 12px; height: 12px; }

/* 地图浮层内的按钮需要可点击（覆盖 pointer-events: none） */
.map-overlay .map-locate {
  pointer-events: auto;
}

/* 距离显示：提高可读性 */
.place-foot { font-size: 11px; letter-spacing: 0; }
.place-foot span { font-variant-numeric: tabular-nums; }

/* ---------- 我的页面：头像 + 编辑资料 ---------- */
.profile-id {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(247, 242, 230, 0.22);
  background: rgba(247, 242, 230, 0.08);
}

.profile-id .profile-kicker { margin-bottom: 0; }

.profile-pass .profile-name {
  margin: 6px 0 8px;
}

.profile-bio {
  max-width: 460px;
  margin: 0 0 6px;
  color: rgba(247, 242, 230, 0.78);
  font-size: 12px;
  line-height: 1.6;
}

.profile-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-edit-profile svg { width: 13px; height: 13px; }

/* 编辑资料弹窗里的头像编辑器 */
.avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-editor-preview {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(240, 235, 225, 0.4);
  position: relative;
  transition: border-color 0.2s;
}

.avatar-editor-preview:hover { border-color: var(--accent-deep); }

.avatar-editor-preview.is-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.avatar-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-editor-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.avatar-editor-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.avatar-editor-actions .btn svg { width: 13px; height: 13px; }

@media (max-width: 860px) {
  .profile-id { gap: 12px; }
  .profile-avatar { width: 56px; height: 56px; flex-basis: 56px; }
  .profile-pass .profile-name { font-size: 30px; }
  .profile-actions { width: 100%; margin-top: 10px; }
  .profile-topline { flex-wrap: wrap; }
}

/* =========================================================
   移动端输入框防缩放
   iOS Safari 在 input/textarea 字号 < 16px 时，聚焦会自动
   放大整个页面。这里在移动端把输入控件统一提到 16px，
   并锁定文字大小调整，避免页面整体“变大”。
   ========================================================= */
@media (max-width: 980px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* 所有可输入控件至少 16px，防止 iOS 自动缩放 */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  textarea,
  select {
    font-size: 16px !important;
    /* iOS 上字号变大后避免行高被撑乱 */
    line-height: 1.35;
  }

  /* 搜索类输入框：保持视觉紧凑 */
  .search-field input,
  .search-bar-big input,
  .place-search,
  #place-search {
    font-size: 16px !important;
  }
  .search-field input::placeholder,
  .search-bar-big input::placeholder {
    font-size: 14px;
  }

  /* 弹窗/评论/群聊输入框：字号提升后微调高度与内边距 */
  .form-row input,
  .form-row select {
    height: 46px;
    padding: 0 12px;
  }
  .form-row textarea {
    padding: 11px 12px;
    line-height: 1.6;
  }
  .comment-form textarea,
  .chat-form textarea {
    padding: 10px 12px;
    line-height: 1.5;
    min-height: 46px;
  }
  .comment-form textarea { max-height: 120px; }
  .chat-form textarea { max-height: 100px; }

  /* 登录/注册页输入框 */
  .auth-field input {
    padding: 13px 14px;
    line-height: 1.35;
  }

  /* 焦点时不要横向溢出，避免出现“页面变宽”的错觉 */
  body {
    overflow-x: hidden;
  }
  input:focus,
  textarea:focus,
  select:focus {
    max-width: 100%;
  }
}

/* 弹窗内输入：移动端保持居中并允许内部滚动，避免弹窗被键盘顶出屏幕 */
@media (max-width: 980px) {
  .modal-root {
    align-items: flex-start;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .modal {
    margin: auto 0;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* 聚焦时不要做平滑滚动，减少“页面跳动感” */
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   成长模块：签到 /  foothold 足迹 / 同频匹配
   ========================================================= */

.skeleton-line {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--paper-2) 25%, rgba(0,0,0,.04) 50%, var(--paper-2) 75%);
  background-size: 200% 100%;
  animation: skeletonMove 1.4s infinite linear;
}

@keyframes skeletonMove {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.growth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- 签到 ---------- */
.checkin-card,
.footprint-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.checkin-card h3,
.footprint-card h3 {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.checkin-head,
.footprint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.checkin-week {
  display: flex;
  gap: 6px;
}

.checkin-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.checkin-dot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  max-height: 32px;
  border-radius: 9px;
  border: 1px dashed var(--line-strong);
  background: rgba(240, 235, 225, .4);
  color: transparent;
  transition: all .2s;
}

.checkin-dot svg { width: 13px; height: 13px; }

.checkin-day.is-checked .checkin-dot {
  border-style: solid;
  border-color: transparent;
  background: var(--accent);
  color: var(--ink);
}

.checkin-day.is-today .checkin-dot {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent-deep);
}

.checkin-day em {
  color: var(--muted-2);
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.checkin-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.checkin-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.checkin-stat strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.checkin-stat span {
  color: var(--muted-2);
  font-size: 7.5px;
}

.checkin-foot .btn { margin-left: auto; }

.checkin-foot .btn:disabled {
  opacity: .55;
  cursor: default;
}

/* ---------- 足迹 ---------- */
.footprint-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(240, 235, 225, .55);
  overflow: hidden;
}

.footprint-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width .5s cubic-bezier(.2,.8,.3,1);
}

.footprint-meta {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.footprint-card .btn { align-self: flex-start; }

/* ---------- 同频 ---------- */
.match-strip {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.match-strip::-webkit-scrollbar { height: 5px; }
.match-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.match-card {
  position: relative;
  display: flex;
  flex: 0 0 128px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 15px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.match-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
}

.match-card strong {
  font-size: 11px;
  font-weight: 700;
}

.match-reason {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.match-score {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.match-score em { font-size: 7px; font-style: normal; }
.match-score.sm { position: static; font-size: 12px; }

/* ---------- 足迹弹窗 ---------- */
.fp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
}

.fp-progress-wrap small {
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
}

.fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 11px;
}

.fp-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.fp-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.62));
}

.fp-tile-name,
.fp-tile-date {
  position: absolute;
  left: 9px;
  z-index: 1;
  color: #fff;
}

.fp-tile-name {
  bottom: 20px;
  font-size: 10px;
  font-weight: 700;
}

.fp-tile-date {
  bottom: 8px;
  font-size: 7.5px;
  opacity: .72;
}

/* ---------- 同频弹窗 ---------- */
.match-tag-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

.match-empty-hint { color: var(--muted-2); font-size: 9px; }

.match-list { display: grid; gap: 9px; }

.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.match-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 38px;
}

.match-row-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-row-copy strong { font-size: 11px; }
.match-row-copy > span { color: var(--muted); font-size: 8.5px; }

.match-shared {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

/* ---------- 兴趣选择 ---------- */
.interest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 20px;
}

.interest-chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 10px;
  transition: all .18s;
}

.interest-chip:hover { border-color: var(--accent-deep); color: var(--ink); }

.interest-chip.is-on {
  border-color: transparent;
  background: var(--accent);
  color: var(--ink);
  font-weight: 650;
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .growth-row { grid-template-columns: 1fr; }
  .match-card { flex-basis: 112px; }
  .fp-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* =========================================================
   社交互动：心情 / 挑战 / 投票 / 提问箱
   ========================================================= */

/* ---------- 心情卡片 ---------- */
.mood-card,
.qabox-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.mood-card h3,
.qabox-card h3 {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.mood-head,
.qabox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mood-current {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mood-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
  transition: all .18s;
}

.mood-btn span { font-size: 17px; line-height: 1; }
.mood-btn em {
  color: var(--muted-2);
  font-size: 7.5px;
  font-style: normal;
  white-space: nowrap;
}

.mood-btn:hover {
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

.mood-btn.is-on {
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.mood-btn.is-on em { color: var(--ink); font-weight: 700; }

.mood-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.mood-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--paper-2);
  font-size: 12px;
}

.mood-history-empty,
.mood-note {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.6;
}

.mood-note {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--serif);
}

/* ---------- 提问箱 ---------- */
.qabox-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.qabox-list { display: grid; gap: 9px; }

.qabox-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
}

.qabox-q {
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink);
}

.qabox-q::before {
  content: 'Q ';
  color: var(--accent-deep);
  font-weight: 800;
}

.qabox-a {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.qabox-a::before {
  content: 'A ';
  color: var(--accent-deep);
  font-weight: 800;
}

.qa-question {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- 城市挑战 ---------- */
.challenge-list { display: grid; gap: 11px; }

.challenge-card {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color .2s;
}

.challenge-card.is-done {
  border-color: transparent;
  background: var(--accent-soft);
}

.challenge-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.challenge-emoji { font-size: 22px; line-height: 1.1; }

.challenge-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.challenge-copy strong { font-size: 12px; font-weight: 750; }

.challenge-copy span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.challenge-bar {
  height: 6px;
  margin: 12px 0 9px;
  border-radius: 999px;
  background: rgba(240, 235, 225, .7);
  overflow: hidden;
}

.challenge-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transition: width .4s ease;
}

.challenge-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.challenge-progress {
  color: var(--muted-2);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.challenge-done {
  color: var(--accent-deep);
  font-size: 9px;
  font-weight: 750;
}

/* ---------- 投票 ---------- */
.poll-section { margin-bottom: 22px; }
.poll-card {
  padding: 16px 18px;
  margin-bottom: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.poll-question {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.poll-options { display: grid; gap: 7px; }

.poll-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  overflow: hidden;
  text-align: left;
  transition: border-color .18s, background .18s;
}

.poll-option:hover:not(:disabled) {
  border-color: var(--accent-deep);
}

.poll-option.is-result {
  cursor: default;
  background: rgba(240, 235, 225, .45);
}

.poll-option.is-mine {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}

.poll-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(201, 242, 78, .28);
  transition: width .45s cubic-bezier(.2,.8,.3,1);
}

.poll-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
}

.poll-label svg { width: 12px; height: 12px; }

.poll-percent {
  position: relative;
  z-index: 1;
  font-size: 9.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.poll-meta {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 8.5px;
}

/* ---------- 情绪地图弹窗 ---------- */
.mood-dist {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.mood-dist-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mood-dist-label {
  flex: 0 0 92px;
  font-size: 10px;
  white-space: nowrap;
}

.mood-dist-bar {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(240, 235, 225, .7);
  overflow: hidden;
}

.mood-dist-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .5s ease;
}

.mood-dist-row strong {
  flex: 0 0 34px;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .mood-picker { grid-template-columns: repeat(3, 1fr); }
  .mood-dist-label { flex-basis: 76px; font-size: 9px; }
}

/* emoji 字体回退：部分 Linux 环境缺 emoji 字体，显式指定回退链 */
.mood-btn span,
.mood-dot,
.mood-current,
.challenge-emoji,
.challenge-done {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
               "Twemoji Mozilla", "Segoe UI Symbol", sans-serif;
}

/* =========================================================
   设置面板 / 安全中心 / 闲置漂流
   ========================================================= */

.settings-panel { display: grid; gap: 4px; margin: 18px 0 8px; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-of-type { border-bottom: 0; }

.setting-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.setting-copy strong { font-size: 11px; font-weight: 700; }
.setting-copy span { color: var(--muted); font-size: 9px; line-height: 1.55; }

.setting-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
}

/* 开关 */
.switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(240, 235, 225, .9);
  border: 1px solid var(--line-strong);
  transition: background .22s, border-color .22s;
}

.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .22s cubic-bezier(.2,.8,.3,1);
}

.switch.is-on {
  background: var(--accent);
  border-color: transparent;
}

.switch.is-on i { transform: translateX(18px); }

/* ---------- 安全中心 ---------- */
.safety-hotlines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0 4px;
}

.safety-hotline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-2);
  text-align: center;
  transition: border-color .18s, transform .18s;
}

.safety-hotline:hover { border-color: var(--danger); transform: translateY(-1px); }
.safety-hotline strong { color: var(--danger); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.safety-hotline span { color: var(--muted); font-size: 7.5px; }

.safety-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.safety-tip {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.safety-tip strong { display: block; margin-bottom: 8px; font-size: 10px; }

.safety-tip ul {
  margin: 0;
  padding-left: 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.75;
}

.safety-tip li { margin-bottom: 2px; }

.safety-records { display: grid; gap: 7px; }

.safety-record {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 9.5px;
}

.safety-record > span:first-child { flex: 1; }

/* ---------- 闲置漂流 ---------- */
.giveaway-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 15px;
}

.giveaway-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.giveaway-filters .chip-btn {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  transition: all .18s;
}

.giveaway-filters .chip-btn:hover { border-color: var(--accent-deep); color: var(--ink); }

.giveaway-filters .chip-btn.active {
  border-color: transparent;
  background: var(--accent);
  color: var(--ink);
  font-weight: 650;
}

.giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.giveaway-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}

.giveaway-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.giveaway-card.is-claimed { opacity: .62; }

.giveaway-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}

.giveaway-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.giveaway-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted-2);
}

.giveaway-noimg svg { width: 26px; height: 26px; }

.giveaway-mode {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 15, 12, .72);
  color: #fff;
  font-size: 7.5px;
  font-weight: 650;
  backdrop-filter: blur(6px);
}

.giveaway-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px 12px;
}

.giveaway-body strong { font-size: 10.5px; font-weight: 700; line-height: 1.4; }
.giveaway-meta { color: var(--muted-2); font-size: 8px; }

.giveaway-desc {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.giveaway-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
}

.giveaway-author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 8px;
  min-width: 0;
}

.giveaway-author img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 16px;
}

.giveaway-claimed {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 650;
}

@media (max-width: 860px) {
  .safety-tips { grid-template-columns: 1fr; }
  .safety-hotlines { grid-template-columns: repeat(3, 1fr); }
  .giveaway-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* =========================================================
   删除自己的内容
   ========================================================= */

.post-action.post-delete {
  color: var(--muted-2);
}

.post-action.post-delete:hover {
  color: #d34848;
  background: rgba(211, 72, 72, 0.08);
}

.treehole-delete {
  opacity: 0.45;
}

.treehole-delete:hover {
  opacity: 1;
  color: #d34848;
}

.delete-preview {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
}

.btn.btn-danger {
  background: #d34848;
  color: #fff;
  border-color: transparent;
}

.btn.btn-danger:hover {
  background: #bd3a3a;
}

.btn.btn-danger:disabled {
  opacity: 0.6;
}

/* =========================================================
   AI 实时路线：天气条 + AI 标记
   ========================================================= */

.route-ai-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.route-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.rw-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--accent-deep);
}

.rw-icon svg { width: 17px; height: 17px; }

.rw-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rw-copy strong { font-size: 10.5px; font-weight: 700; }
.rw-copy span { color: var(--muted); font-size: 8.5px; }

.rw-days {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.rw-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--muted);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.rw-day em {
  color: var(--muted-2);
  font-size: 7px;
  font-style: normal;
}

.route-step[data-open-place] { cursor: pointer; transition: background .2s; }
.route-step[data-open-place]:hover { background: var(--paper-2); }

/* =========================================================
   多图上传 + 图片查看器
   ========================================================= */

.upload-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}

.upload-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.upload-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.upload-thumb.is-uploading img { opacity: 0.45; }

.upload-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 15, 12, 0.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.18s;
}

.upload-thumb-remove:hover { background: #d34848; }
.upload-thumb-remove svg { width: 11px; height: 11px; }

.upload-thumb-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.spinner.sm { width: 18px; height: 18px; border-width: 2px; }

/* ---------- 帖子多图网格 ---------- */

.post-image.multi {
  display: grid;
  gap: 4px;
  overflow: hidden;
  border-radius: 12px;
}

.post-image.multi.grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-image.multi.grid-3 { grid-template-columns: repeat(3, 1fr); }

.post-image-cell {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.post-image-cell img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.post-image-cell:hover img { transform: scale(1.04); }

.post-image.single { cursor: zoom-in; }

/* ---------- 图片查看器 ---------- */

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.lightbox.is-open { opacity: 1; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  max-width: 92vw;
  max-height: 88vh;
  margin: 0;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lbIn 0.26s var(--ease);
}

@keyframes lbIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close svg { width: 17px; height: 17px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-top: -22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox-nav svg { width: 20px; height: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

@media (max-width: 860px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; width: 36px; height: 36px; }
  .upload-grid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
}
