:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --text: #171412;
  --muted: #736c63;
  --soft: #eee8df;
  --line: rgba(31, 26, 21, 0.1);
  --primary: #151312;
  --primary-text: #ffffff;
  --accent: #c67858;
  --accent-2: #557c72;
  --danger: #b33a3a;
  --success: #247a57;
  --shadow-xs: 0 4px 14px rgba(41, 31, 23, 0.06);
  --shadow-sm: 0 10px 26px rgba(41, 31, 23, 0.08);
  --shadow: 0 24px 70px rgba(41, 31, 23, 0.14);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12110f;
    --bg-elevated: rgba(26, 24, 21, 0.84);
    --surface: rgba(32, 29, 25, 0.9);
    --surface-solid: #211e1a;
    --text: #f6f1e9;
    --muted: #b5ab9e;
    --soft: #2d2924;
    --line: rgba(255, 244, 230, 0.12);
    --primary: #f6f1e9;
    --primary-text: #151312;
    --accent: #e19974;
    --accent-2: #8cb6a8;
    --shadow-xs: 0 4px 14px rgba(0, 0, 0, 0.18);
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.22);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  }
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(198, 120, 88, 0.18), transparent 32rem),
    radial-gradient(circle at 100% 0%, rgba(85, 124, 114, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg));
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.page-container { min-height: 100vh; padding-bottom: 96px; }
.chat-page { padding-bottom: 154px; }

.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(150%);
}

.header-content {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 70px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-title { min-width: 0; text-align: center; }
.header-title h1, .header-content h1, .header-content h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-button, .small-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.main-content { padding: 22px 16px 34px; }
.content-wrapper { width: min(var(--max), 100%); margin: 0 auto; }
.feed-wrapper, .profile-wrapper, .villa-wrapper, .member-profile-wrapper, .messages-wrapper {
  display: grid;
  gap: 16px;
}

.auth-container, .landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card, .landing-card {
  width: min(470px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.auth-header h1, .brand-mark {
  margin: 0;
  font-size: 38px;
  line-height: 0.95;
  font-weight: 950;
}

.auth-header p, .landing-copy, .auth-footer, .form-help, .villa-meta, .villa-location, .item-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.landing-card h1 {
  margin: 14px 0;
  font-size: clamp(38px, 11vw, 62px);
  line-height: 0.94;
  font-weight: 950;
}

.landing-actions, .quick-actions, .section-actions, .composer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-form, .modal-form, .profile-form { display: grid; gap: 14px; }
.form-group { display: grid; gap: 7px; }
.form-group label { color: var(--muted); font-size: 13px; font-weight: 850; }

input, textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: var(--surface-solid);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

textarea { resize: vertical; line-height: 1.45; }

input:focus, textarea:focus, select:focus {
  border-color: color-mix(in srgb, var(--accent) 66%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn, .btn-icon, .pill-action {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover, .btn-icon:hover, .pill-action:hover { transform: translateY(-1px); }

.btn {
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 18%, transparent);
}

.btn-secondary {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-block { width: 100%; }

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.btn-icon.text-icon {
  width: auto;
  min-width: 44px;
  padding: 0 12px;
  font-size: 12px;
}

.alert {
  padding: 13px 15px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.alert-error { background: color-mix(in srgb, var(--danger) 13%, var(--surface-solid)); color: var(--danger); }
.alert-success { background: color-mix(in srgb, var(--success) 13%, var(--surface-solid)); color: var(--success); }

.welcome-section { margin: 6px 0 18px; }
.welcome-section h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(32px, 8vw, 58px);
  line-height: 0.98;
  font-weight: 950;
}
.welcome-section p { max-width: 620px; color: var(--muted); line-height: 1.5; }

.villas-grid, .overview-grid, .members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.villas-grid { margin-top: 22px; }

.villa-card, .metric-card, .member-card, .activity-item, .timeline-item, .packing-item, .post-card, .outfit-card,
.empty-state, .profile-panel, .progress-section, .composer-card, .invite-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.villa-card { overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.villa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.villa-cover {
  min-height: 150px;
  position: relative;
  background:
    linear-gradient(135deg, rgba(198, 120, 88, 0.88), rgba(85, 124, 114, 0.88)),
    linear-gradient(45deg, var(--soft), transparent);
}

.countdown-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #171412;
  font-size: 13px;
  font-weight: 950;
}

.villa-info { padding: 16px; }
.villa-info h3 { margin: 0 0 7px; font-size: 21px; line-height: 1.12; }
.compact-card .villa-info { padding: 18px; }

.villa-hero {
  min-height: 310px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  border-radius: 30px;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.1), rgba(23, 20, 18, 0.52)),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #c67858, #557c72);
}

.villa-hero .eyebrow { color: rgba(255, 255, 255, 0.78); }
.villa-hero h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(40px, 12vw, 76px);
  line-height: 0.94;
  font-weight: 950;
}
.villa-hero p { max-width: 620px; color: rgba(255, 255, 255, 0.84); line-height: 1.5; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 850;
}

.countdown-card {
  min-width: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  text-align: center;
}
.countdown-number { display: block; font-size: 38px; line-height: 1; font-weight: 950; }
.countdown-label { display: block; margin-top: 7px; font-size: 12px; font-weight: 900; text-transform: uppercase; }

.invite-card {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.invite-card strong { font-size: 24px; letter-spacing: 0.14em; }

.metric-card { padding: 17px; color: inherit; }
.metric-top, .progress-header, .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.metric-top span { color: var(--muted); font-size: 13px; font-weight: 900; }
.metric-top strong { font-size: 27px; line-height: 1; }
.metric-card p { color: var(--muted); line-height: 1.45; margin: 12px 0 0; }

.progress-bar {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--soft);
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.section { margin: 12px 0; }
.section h2, .progress-section h2, .empty-state h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.member-card, .person-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-card { padding: 12px; }
.member-info { color: inherit; text-decoration: none; }
.member-name, .person-line strong { display: block; font-weight: 900; }
.member-role, .person-line span { color: var(--muted); font-size: 13px; }

.avatar, .member-avatar, .profile-big-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--accent) 64%, var(--primary)));
  color: var(--primary-text);
  font-weight: 950;
}
.avatar { width: 42px; height: 42px; font-size: 14px; }
.avatar-sm { width: 38px; height: 38px; font-size: 13px; }
.avatar-xs { width: 28px; height: 28px; font-size: 11px; }
.member-avatar { width: 48px; height: 48px; }
.profile-big-avatar { width: 94px; height: 94px; font-size: 30px; }
.avatar-image img, .profile-big-avatar img, .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-stack { display: flex; margin-top: 16px; }
.avatar-stack .avatar { border: 3px solid var(--surface-solid); margin-left: -9px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.story-avatar-link {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.story-avatar-link .story-ring-active {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 3px;
  background: conic-gradient(from 220deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
}

.story-avatar-link .story-ring-inner {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  padding: 2px;
  background: var(--surface-solid);
}

.story-avatar-link .avatar,
.story-avatar-link .member-avatar,
.story-avatar-link .passport-avatar,
.story-avatar-link .messages-thread-avatar,
.story-avatar-link .messages-member-card-avatar {
  border-radius: 999px;
}

.story-avatar-link .messages-member-card-avatar img {
  border-radius: 999px;
}

.story-avatar-link-plain {
  border-radius: 999px;
}

.activity-list, .items-list, .messages { display: grid; gap: 10px; }
.activity-item { display: grid; gap: 11px; padding: 14px; }
.activity-item a,
.timeline-item a,
.supply-pulse-card a,
.messages-thread-body {
  color: inherit;
  text-decoration: none;
}
.activity-content { margin: 0; color: var(--text); line-height: 1.5; }
.activity-meta { display: flex; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }

.timeline-list {
  position: relative;
  display: grid;
  gap: 10px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding: 13px 14px 13px 46px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
}
.timeline-dot {
  position: absolute;
  left: 14px;
  top: 23px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--surface-solid);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 1px var(--line);
}
.timeline-copy { min-width: 0; }
.timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.timeline-top strong { font-size: 14px; }
.timeline-top span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.timeline-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.timeline-copy b { color: var(--text); }

.outfits-wrapper { display: grid; gap: 18px; }
.outfit-hero {
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.14), rgba(23, 20, 18, 0.52)),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 17rem),
    linear-gradient(135deg, #9c6f64, #557c72);
  box-shadow: var(--shadow);
}
.outfit-hero .eyebrow { color: rgba(255, 255, 255, 0.76); }
.outfit-hero h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(34px, 9vw, 64px);
  line-height: 0.96;
  font-weight: 950;
}
.outfit-hero p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}
.outfit-moment-section { display: grid; gap: 12px; }
.moment-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.style-summary-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.style-summary-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}
.style-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.style-summary-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
}
.style-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.style-summary-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.outfit-masonry {
  column-count: 3;
  column-gap: 14px;
}
.outfit-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  break-inside: avoid;
}
.outfit-image {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: 520px;
  object-fit: cover;
  background: var(--soft);
}
.outfit-card-body {
  padding: 13px;
  display: grid;
  gap: 10px;
}
.outfit-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}
.outfit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}
.color-theme {
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-solid));
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.outfit-votes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.vote-btn {
  min-height: 36px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-solid);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}
.vote-btn.is-active {
  color: var(--primary-text);
  background: var(--primary);
  border-color: transparent;
}
.vote-btn span { font-size: 15px; line-height: 1; }

.empty-state { padding: 28px; text-align: center; }
.empty-state p { color: var(--muted); margin: 8px auto 0; max-width: 420px; }

.packing-wrapper { display: grid; gap: 16px; }
.suitcase-hero {
  min-height: 240px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.12), rgba(23, 20, 18, 0.58)),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.2), transparent 17rem),
    linear-gradient(135deg, #557c72, #9c6f64);
  box-shadow: var(--shadow);
}
.suitcase-hero .eyebrow { color: rgba(255, 255, 255, 0.76); }
.suitcase-copy h2 {
  margin: 0;
  font-size: clamp(38px, 10vw, 70px);
  line-height: 0.94;
  font-weight: 950;
}
.suitcase-copy p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}
.progress-ring-card {
  min-width: 170px;
  padding: 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  text-align: center;
}
.progress-ring {
  width: 104px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(23, 20, 18, 0.82) 0 56%, transparent 57%),
    conic-gradient(#ffffff var(--progress), rgba(255, 255, 255, 0.22) 0);
}
.progress-ring span { font-size: 24px; font-weight: 950; }
.progress-ring-card strong { display: block; font-size: 20px; }
.progress-ring-card div:last-child span { color: rgba(255, 255, 255, 0.78); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.suitcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.suitcase-category-card,
.shared-essentials,
.essential-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.suitcase-category-card { padding: 14px; display: grid; gap: 12px; }
.suitcase-category-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.category-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-solid));
  border: 1px solid var(--line);
  font-size: 18px;
}
.suitcase-category-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}
.suitcase-category-head p,
.suitcase-empty {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.suitcase-packed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suitcase-packed-chip {
  max-width: 100%;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  border-radius: 15px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}
.suitcase-packed-chip span {
  font-size: 13px;
  font-weight: 900;
}
.suitcase-packed-chip small,
.essential-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.packing-filters {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
}
.filter-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}
.filter-chip.is-active {
  color: var(--primary-text);
  background: var(--primary);
  border-color: transparent;
}
.filter-chip span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.shared-essentials { padding: 16px; display: grid; gap: 12px; }
.essentials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.essential-card {
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.essential-card strong {
  display: block;
  font-size: 14px;
}
.essential-card .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}
.is-filtered-out { display: none !important; }

.progress-section { padding: 18px; }
.progress-header span { color: var(--muted); font-weight: 900; }

.packing-category h3 {
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.packing-item {
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
}
.packing-item.packed { opacity: 0.72; }
.item-name { font-weight: 900; }
.badge { color: var(--success); font-size: 12px; font-weight: 900; }

.checkbox-btn {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.packing-item.packed .checkbox-btn {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.packing-item.packed .checkbox-btn::after { content: ""; width: 10px; height: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); display: block; margin: 9px auto; }
.btn-delete {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.composer-card { padding: 14px; }
.composer-card textarea { border: 0; box-shadow: none; background: transparent; padding: 8px; }
.composer-card textarea:focus { box-shadow: none; }
.composer-actions { justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }

.post-card { padding: 16px; display: grid; gap: 12px; }
.post-content { margin: 0; white-space: pre-wrap; line-height: 1.55; font-size: 16px; }
.post-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill-action {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill-action.is-active {
  color: var(--primary-text);
  background: var(--primary);
}
.pill-action.is-static { cursor: default; }
.pill-action span { font-weight: 950; color: inherit; }

.comments {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.comment { display: flex; align-items: flex-start; gap: 9px; }
.comment p { margin: 2px 0 0; color: var(--muted); line-height: 1.45; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.chat-main { padding-bottom: 0; }
.chat-shell { max-width: 760px; }
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  box-shadow: none;
  background: transparent;
  border: 0;
}
.message-row.is-mine { justify-content: flex-end; }
.message-row.is-theirs { justify-content: flex-start; }
.message-stack { max-width: min(76vw, 540px); }
.message-meta { color: var(--muted); font-size: 12px; margin: 0 0 4px 4px; }
.message-content {
  padding: 12px 14px;
  border-radius: 20px;
  line-height: 1.45;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.message-row.is-mine .message-content {
  background: var(--primary);
  color: var(--primary-text);
  border-color: transparent;
  border-bottom-right-radius: 6px;
}
.message-row.is-theirs .message-content {
  background: var(--surface-solid);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.chat-form {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 25;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.chat-form input { flex: 1; border-radius: 999px; }

.profile-panel { padding: 18px; }
.profile-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-identity h2 { margin: 0 0 5px; font-size: 28px; line-height: 1; }
.profile-bio { margin: 8px 0 0; color: var(--text); line-height: 1.45; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}
.modal.is-open { display: flex; }
.modal-content {
  width: min(500px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-header h2 { margin: 0; }
.modal-close { border: 0; background: transparent; cursor: pointer; font-size: 28px; line-height: 1; }

.bottom-nav {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
}
.nav-item {
  min-width: 0;
  min-height: 54px;
  padding: 7px 2px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}
.nav-item.active { background: var(--primary); color: var(--primary-text); }
.nav-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
}
.nav-item .nav-icon-svg {
  display: inline-flex;
  line-height: 0;
}
.nav-item .nav-avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.nav-item.active .nav-avatar {
  box-shadow: 0 0 0 2px var(--primary-text);
}
.nav-item .label { font-size: 10px; line-height: 1; }

.header-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.header-profile-avatar {
  width: 36px;
  height: 36px;
}

.comments-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.comments-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.comments-toggle:hover {
  color: var(--text);
}
.comments-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.comments-body[hidden] {
  display: none;
}
.comment-block + .comment-block {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.comment-head span {
  color: var(--muted);
  font-size: 12px;
}
.comment-reply-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 4px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.comment-reply-toggle:hover {
  color: var(--text);
}
.comment-reply {
  margin-left: 28px;
  margin-top: 8px;
}
.reply-form {
  margin-left: 28px;
  margin-top: 8px;
}
.reply-form[hidden] {
  display: none;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.app-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .main-content { padding: 18px 14px 30px; }
  .header-content { min-height: 64px; padding-inline: 14px; }
  .header-title h1, .header-content h1 { font-size: 17px; }
  .quick-actions .btn, .section-actions .btn, .landing-actions .btn { flex: 1; }
  .villa-hero { grid-template-columns: 1fr; min-height: 380px; padding: 20px; }
  .countdown-card { width: 100%; min-width: 0; text-align: left; }
  .overview-grid, .members-grid, .villas-grid { grid-template-columns: 1fr; }
  .invite-card { align-items: stretch; flex-direction: column; }
  .invite-card .btn { width: 100%; }
  .profile-identity { align-items: flex-start; flex-direction: column; }
  .comment-form { grid-template-columns: 1fr; }
  .outfit-hero { align-items: stretch; flex-direction: column; }
  .outfit-hero .btn { width: 100%; }
  .style-summary-card { grid-template-columns: 1fr; }
  .style-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outfit-masonry { column-count: 2; column-gap: 10px; }
  .suitcase-hero { grid-template-columns: 1fr; min-height: 360px; }
  .progress-ring-card { justify-items: start; text-align: left; }
  .essential-card { grid-template-columns: auto 1fr; }
  .essential-card .btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 460px) {
  .outfit-masonry { column-count: 1; }
}

/* Premium landing and auth */
.marketing-body,
.auth-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.72), transparent 16rem),
    radial-gradient(circle at 78% 18%, rgba(198, 120, 88, 0.2), transparent 24rem),
    radial-gradient(circle at 70% 86%, rgba(85, 124, 114, 0.2), transparent 24rem),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 82%, var(--accent) 18%));
}

.marketing-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.marketing-hero {
  width: min(1180px, 100%);
  min-height: min(780px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
}

.marketing-brand {
  width: fit-content;
  display: inline-flex;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.marketing-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.marketing-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7.6vw, 86px);
  line-height: 0.96;
  font-weight: 950;
}

.marketing-copy .landing-copy {
  max-width: 660px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--muted);
}

.marketing-preview-wrap {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.app-preview-card {
  width: min(390px, 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.preview-cover {
  min-height: 230px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.06), rgba(23, 20, 18, 0.58)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.24), transparent 12rem),
    linear-gradient(135deg, #d99573, #557c72);
}

.preview-cover .eyebrow { color: rgba(255, 255, 255, 0.78); }
.preview-cover h2 {
  margin: 0;
  font-size: 38px;
  line-height: 0.94;
}
.preview-cover > span {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.preview-panel {
  padding: 18px;
  display: grid;
  gap: 15px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.preview-avatars { display: flex; }
.preview-avatars span {
  width: 38px;
  height: 38px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border: 3px solid var(--surface-solid);
  border-radius: 999px;
  color: var(--primary-text);
  background: var(--primary);
  font-size: 12px;
  font-weight: 950;
}
.preview-avatars span:first-child { margin-left: 0; }

.preview-progress {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}
.preview-progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}
.preview-progress-top span { color: var(--muted); font-weight: 900; }

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.preview-tile {
  min-height: 128px;
  padding: 14px;
  display: grid;
  align-content: end;
  border-radius: 20px;
  color: white;
}
.preview-tile span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.76;
}
.preview-tile strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.05;
}
.preview-tile p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}
.outfit-tile { background: linear-gradient(135deg, #171412, #9c6f64); }
.mood-tile { background: linear-gradient(135deg, #557c72, #d99573); }

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}
.float-one { left: 0; top: 13%; }
.float-two { right: 0; top: 42%; }
.float-three { left: 7%; bottom: 14%; }

.auth-layout {
  min-height: 100vh;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 18px;
  place-items: stretch;
  align-items: center;
}

.auth-hero-panel {
  min-height: 700px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 34px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.08), rgba(23, 20, 18, 0.62)),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(135deg, #9c6f64, #557c72);
  box-shadow: var(--shadow);
}
.auth-hero-panel .marketing-brand,
.auth-hero-panel .eyebrow { color: rgba(255, 255, 255, 0.86); }
.auth-hero-panel h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
}
.auth-hero-panel p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}
.auth-preview-stack {
  display: grid;
  gap: 10px;
  max-width: 390px;
}
.auth-mini-card {
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-weight: 900;
}
.auth-mini-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.auth-layout .auth-card {
  align-self: center;
  border-radius: 30px;
}
.auth-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}
.auth-footer a {
  color: var(--text);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .marketing-shell { padding: 18px; place-items: start center; }
  .marketing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .marketing-copy { padding-top: 18px; }
  .marketing-preview-wrap { min-height: 500px; }
  .app-preview-card { transform: none; }
  .floating-card { position: static; width: fit-content; }
  .marketing-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .float-two { align-self: flex-end; }
  .float-three { align-self: flex-start; }
  .auth-layout {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .auth-hero-panel {
    min-height: 380px;
    border-radius: 28px;
  }
  .auth-layout .auth-card { width: 100%; }
}

@media (max-width: 540px) {
  .marketing-copy h1 { font-size: 42px; }
  .marketing-copy .landing-copy { font-size: 16px; }
  .landing-actions .btn { width: 100%; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-cover { min-height: 210px; }
  .preview-cover h2 { font-size: 32px; }
  .auth-hero-panel { display: none; }
  .auth-layout { padding: 14px; }
  .auth-layout .auth-card { padding: 22px; }
}

/* Premium dashboard */
.dashboard-page .header-content {
  width: min(1080px, 100%);
}

.dashboard-page .content-wrapper {
  max-width: 1080px;
}

.dashboard-wrapper {
  display: grid;
  gap: 18px;
}

.dashboard-hero-card {
  min-height: 300px;
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 32px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.12), rgba(23, 20, 18, 0.62)),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #9c6f64, #557c72);
  box-shadow: var(--shadow);
}

.dashboard-hero-card .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-hero-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  font-weight: 950;
}

.dashboard-hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-stats-panel {
  display: grid;
  gap: 10px;
}

.dashboard-stat {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.dashboard-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-stat strong {
  color: white;
  font-size: 30px;
  line-height: 1;
}

.dashboard-empty-state {
  width: min(460px, 100%);
  justify-self: center;
  padding: 26px;
}

.empty-visual {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 24px;
  font-weight: 950;
  box-shadow: var(--shadow-sm);
}

.dashboard-empty-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .dashboard-page .villas-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-hero-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-stats-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-stat {
    display: grid;
    justify-items: start;
  }

  .dashboard-hero-actions .btn,
  .dashboard-empty-actions .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .dashboard-stats-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-copy h2 {
    font-size: 32px;
  }
}

/* Create Villa wizard */
.villa-wizard-modal {
  width: min(560px, 100%);
}

.villa-wizard {
  gap: 16px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.wizard-progress span {
  height: 7px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.wizard-progress span::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.24s ease;
}

.wizard-progress span.is-active::after {
  width: 100%;
}

.villa-host-card {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--surface-solid);
}

.villa-host-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 12px;
  font-weight: 950;
}

.villa-host-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.wizard-step {
  display: none;
  gap: 12px;
  animation: wizardIn 0.18s ease;
}

.wizard-step.is-active {
  display: grid;
}

.wizard-step h3 {
  margin: 0;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1;
}

.vibe-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vibe-chip {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-solid);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.vibe-chip.is-active,
.vibe-chip:hover {
  color: var(--primary-text);
  background: var(--primary);
  border-color: transparent;
}

.wizard-review-card {
  display: grid;
  gap: 9px;
}

.wizard-review-card div {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}

.wizard-review-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wizard-review-card strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.wizard-actions .btn {
  flex: 1;
}

.wizard-actions [disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.input-wiggle {
  animation: inputWiggle 0.36s ease;
}

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

@keyframes inputWiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 520px) {
  .villa-wizard-modal {
    padding: 16px;
    border-radius: 24px;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .wizard-review-card div {
    display: grid;
  }

  .wizard-review-card strong {
    text-align: left;
  }
}

/* Passport profile */
.profile-wrapper,
.member-profile-wrapper,
.messages-page .content-wrapper.messages-wrapper {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
}

.messages-page .content-wrapper.messages-wrapper {
  width: min(760px, 100%);
  margin: 0 auto;
}

.passport-card,
.member-profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.passport-cover,
.member-passport-cover {
  min-height: 168px;
  background: linear-gradient(135deg, #151312, #c67858 52%, #f8a66d);
}

.member-passport-cover {
  background: linear-gradient(135deg, #557c72, #c67858 58%, #f0b37c);
}

.passport-body,
.member-passport-body {
  position: relative;
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.passport-avatar,
.passport-avatar.avatar-image {
  width: 112px;
  height: 112px;
  margin-top: -56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid var(--surface-solid);
  border-radius: 34px;
  color: var(--primary-text);
  background: linear-gradient(135deg, #151312, #c67858);
  box-shadow: var(--shadow);
  font-size: 34px;
  font-weight: 950;
  flex-shrink: 0;
}

.passport-avatar img,
.passport-avatar.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.passport-main,
.member-passport-copy {
  min-width: 0;
  padding-top: 16px;
}

.passport-main h2,
.member-passport-copy h2 {
  margin: 3px 0 4px;
  max-width: 620px;
  font-size: clamp(31px, 6vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.passport-main .villa-meta,
.member-passport-copy .villa-meta {
  margin: 0;
}

.passport-main .profile-bio,
.member-passport-copy .profile-bio {
  max-width: 640px;
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.passport-actions,
.member-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.passport-stats > div,
.member-stat-grid > div {
  min-height: 96px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-xs);
}

.passport-stats span,
.member-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.passport-stats strong,
.member-stat-grid strong {
  color: var(--text);
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1;
}

.activity-vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-vibe-chips .vibe-pill,
.activity-vibe-chips span {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 900;
}

.profile-section-card,
.member-section-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.profile-section-card .section-heading,
.member-section-card .section-heading,
.member-profile-panel .section-heading {
  margin-bottom: 14px;
}

.profile-section-card .section-heading h2,
.member-section-card .section-heading h2,
.member-profile-panel .section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.profile-empty-card,
.member-empty-card {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  text-align: center;
}

.profile-empty-card h3,
.member-empty-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.profile-empty-card p,
.member-empty-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-villa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-villa-card {
  overflow: hidden;
  min-height: 250px;
  display: grid;
  grid-template-rows: 128px 1fr;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: inherit;
  text-decoration: none;
  background: var(--surface-solid);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-villa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.profile-villa-cover {
  position: relative;
  background: linear-gradient(135deg, #c67858, #151312);
}

.profile-villa-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 16, 28, 0.58);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 950;
}

.profile-villa-card .villa-info {
  padding: 16px;
}

.profile-villa-card h3 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.15;
}

.profile-villa-card .villa-location {
  margin-top: 10px;
}

@media (min-width: 760px) {
  .passport-body,
  .member-passport-body {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
  }

  .passport-actions,
  .member-profile-actions {
    grid-column: auto;
    justify-content: end;
    align-self: end;
  }
}

@media (max-width: 620px) {
  .passport-card,
  .member-profile-card {
    border-radius: 26px;
  }

  .passport-cover,
  .member-passport-cover {
    min-height: 130px;
  }

  .passport-body,
  .member-passport-body {
    padding: 0 16px 18px;
  }

  .passport-avatar,
  .passport-avatar.avatar-image {
    width: 94px;
    height: 94px;
    margin-top: -46px;
    border-radius: 30px;
    font-size: 28px;
  }

  .passport-main,
  .member-passport-copy {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .passport-actions .btn,
  .member-profile-actions .btn {
    flex: 1;
  }

  .passport-stats,
  .member-stat-grid {
    margin: 0 16px 16px;
    grid-template-columns: 1fr;
  }

  .profile-villa-grid {
    grid-template-columns: 1fr;
  }
}

/* Group supplies */
.supplies-wrapper {
  display: grid;
  gap: 16px;
}

.supplies-hero {
  min-height: 250px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 18px;
  align-items: end;
  border-radius: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.08), rgba(23, 20, 18, 0.6)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #557c72, #c67858);
  box-shadow: var(--shadow);
}

.supplies-hero .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.supplies-hero h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.96;
}

.supplies-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.supplies-progress-card {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.supplies-progress-card strong {
  display: block;
  color: white;
  font-size: 38px;
  line-height: 1;
}

.supplies-progress-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplies-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supplies-section-grid {
  display: grid;
  gap: 14px;
}

.supply-section-card,
.supply-item-card,
.supply-pulse-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.supply-section-card {
  padding: 16px;
  display: grid;
  gap: 13px;
  border-radius: 26px;
}

.supply-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.supply-section-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}

.supply-section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.supply-section-head > span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 950;
}

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

.supply-item-card {
  padding: 13px;
  display: grid;
  gap: 12px;
  border-radius: 20px;
}

.supply-item-card.claimed {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--surface);
}

.supply-item-card.brought {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success) 12%, transparent), transparent),
    var(--surface);
}

.supply-item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
}

.supply-status-dot {
  width: 13px;
  height: 13px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

.supply-item-card.claimed .supply-status-dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 14%, transparent);
}

.supply-item-card.brought .supply-status-dot {
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent);
}

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

.supply-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.supply-title-row span,
.supply-brought-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.supply-item-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.supply-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.supply-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
}

.supply-person {
  padding: 8px 10px;
  width: fit-content;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.supply-person span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.supply-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.supply-item-actions form,
.supply-item-actions .btn {
  flex: 1;
}

.supply-brought-pill {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, var(--surface-solid));
}

.supplies-empty {
  padding: 28px;
}

.supply-pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.supply-pulse-card {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 20px;
  color: inherit;
}

.supply-pulse-card strong {
  display: block;
  line-height: 1.25;
}

.supply-pulse-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.supply-pulse-card .story-avatar-link span {
  display: inline-grid;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
}

@media (max-width: 720px) {
  .supplies-hero {
    min-height: 360px;
    grid-template-columns: 1fr;
  }

  .supplies-actions .btn {
    flex: 1;
  }

  .supply-section-head,
  .supply-title-row {
    display: grid;
  }

  .supply-section-head > span,
  .supply-title-row span {
    width: fit-content;
  }
}

@media (max-width: 460px) {
  .supply-item-actions {
    display: grid;
  }
}

/* Member profiles and direct messages */
.member-profile-wrapper {
  display: grid;
  gap: 16px;
}

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

.member-profile-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.dm-companion-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.muted-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mini-list {
  display: grid;
  gap: 9px;
}

.mini-list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.mini-list-item strong {
  display: block;
  line-height: 1.25;
}

.mini-list-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.member-outfit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.member-outfit-card {
  overflow: hidden;
  min-height: 240px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.member-outfit-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.member-outfit-card div {
  padding: 13px;
}

.member-outfit-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.member-outfit-card strong {
  display: block;
  margin-top: 5px;
  line-height: 1.2;
}

.member-outfit-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dm-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dm-companion-card {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.dm-companion-card strong {
  display: block;
}

.dm-companion-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.message-meta a,
.comment a,
.person-line {
  text-decoration: none;
}

/* Messages Center */
.messages-header-badge,
.messages-unread-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.messages-header-spacer {
  width: 28px;
  height: 28px;
}

.messages-unread-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-size: 11px;
}

.messages-compose-card,
.messages-empty-card,
.messages-inbox-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.messages-compose-card {
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}

.messages-compose-head {
  display: grid;
  gap: 4px;
}

.messages-compose-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.messages-compose-form {
  display: grid;
  gap: 12px;
}

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

.messages-compose-empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface-solid);
  font-size: 13px;
  font-weight: 850;
}

.messages-compose-submit {
  justify-self: start;
}

.messages-villa-group {
  display: grid;
  gap: 10px;
}

.messages-inbox-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.messages-villa-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 6px;
}

.messages-villa-label h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
}

.messages-villa-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.messages-villa-count {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.messages-thread-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-xs);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.messages-thread-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(198, 120, 88, 0.28);
}

.messages-thread-card.has-unread {
  border-color: rgba(198, 120, 88, 0.32);
  background: linear-gradient(180deg, rgba(198, 120, 88, 0.08), var(--surface-solid));
}

.messages-thread-avatar.avatar {
  width: 52px;
  height: 52px;
  font-size: 16px;
  font-weight: 950;
  border: 2px solid var(--surface-solid);
  box-shadow: var(--shadow-xs);
}

.messages-thread-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.messages-thread-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.messages-thread-top strong {
  font-size: 16px;
  line-height: 1.2;
}

.messages-thread-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.messages-thread-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.messages-thread-preview {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-thread-card.has-unread .messages-thread-preview {
  font-weight: 800;
  opacity: 1;
}

.messages-empty-card {
  padding: 24px 18px;
  text-align: center;
}

.messages-empty-card .empty-state h2 {
  margin-top: 0;
}

/* Call link buttons */
.call-links-section {
  display: grid;
  gap: 12px;
}

.call-options-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.call-options-bar-compact .call-link-btn {
  padding: 8px 12px;
  font-size: 12px;
}

.call-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.call-link-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-solid));
}

.form-help-inline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: lowercase;
}

.dm-call-bar {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  display: grid;
  gap: 8px;
}

.dm-call-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dm-call-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 720px) {
  .messages-compose-grid {
    grid-template-columns: 1fr;
  }
}

/* VILLA FINAL PROFILE FIX */
.profile-wrapper {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.profile-wrapper .passport-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 21, 0.1);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(41, 31, 23, 0.14);
}

.profile-wrapper .passport-cover {
  display: block;
  min-height: 168px;
  background: linear-gradient(135deg, #151312, #c67858 52%, #f8a66d);
}

.profile-wrapper .passport-body {
  position: relative;
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.profile-wrapper .passport-avatar,
.profile-wrapper .passport-avatar.avatar-image {
  width: 112px;
  height: 112px;
  margin-top: -56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #151312, #c67858);
  box-shadow: 0 24px 70px rgba(41, 31, 23, 0.14);
  font-size: 34px;
  font-weight: 950;
}

.profile-wrapper .passport-avatar img,
.profile-wrapper .passport-avatar.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-wrapper .passport-main {
  min-width: 0;
  padding-top: 16px;
}

.profile-wrapper .passport-main h2 {
  margin: 3px 0 4px;
  font-size: clamp(31px, 6vw, 46px);
  line-height: 0.98;
  font-weight: 950;
}

.profile-wrapper .passport-main .profile-bio {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.profile-wrapper .passport-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.profile-wrapper .passport-stats > div {
  min-height: 96px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(31, 26, 21, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(41, 31, 23, 0.06);
}

.profile-wrapper .passport-stats span {
  display: block;
  color: #736c63;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-wrapper .passport-stats strong {
  display: block;
  color: #171412;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1;
}

.profile-wrapper .profile-section-card {
  padding: 18px;
  border: 1px solid rgba(31, 26, 21, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(41, 31, 23, 0.08);
}

.profile-wrapper .profile-section-card .section-heading {
  margin-bottom: 14px;
}

.profile-wrapper .profile-section-card .section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.profile-wrapper .activity-vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-wrapper .activity-vibe-chips .vibe-pill,
.profile-wrapper .activity-vibe-chips span {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid rgba(31, 26, 21, 0.1);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(41, 31, 23, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.profile-wrapper .profile-villa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.profile-wrapper .profile-villa-card {
  overflow: hidden;
  min-height: 250px;
  display: grid;
  grid-template-rows: 128px 1fr;
  border: 1px solid rgba(31, 26, 21, 0.1);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(41, 31, 23, 0.06);
  color: inherit;
  text-decoration: none;
}

.profile-wrapper .profile-villa-cover {
  position: relative;
  min-height: 128px;
  background: linear-gradient(135deg, #c67858, #151312);
}

.profile-wrapper .profile-villa-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 16, 28, 0.58);
  font-size: 12px;
  font-weight: 950;
}

.profile-wrapper .profile-villa-card .villa-info {
  padding: 16px;
}

.profile-wrapper .profile-villa-card h3 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.15;
}

.profile-wrapper .profile-empty-card {
  padding: 18px;
  border: 1px dashed rgba(31, 26, 21, 0.1);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.dashboard-page .dashboard-wrapper {
  display: grid;
  gap: 18px;
}

.dashboard-page .dashboard-hero-card {
  min-height: 300px;
  padding: clamp(20px, 4vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: end;
  border: 1px solid rgba(31, 26, 21, 0.1);
  border-radius: 32px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 20, 18, 0.12), rgba(23, 20, 18, 0.62)),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #9c6f64, #557c72);
  box-shadow: 0 24px 70px rgba(41, 31, 23, 0.14);
}

.dashboard-page .dashboard-stats-panel {
  display: grid;
  gap: 10px;
}

.dashboard-page .dashboard-stat {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-page .dashboard-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-page .dashboard-stat strong {
  display: block;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

@media (min-width: 760px) {
  .profile-wrapper .passport-body {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-wrapper .passport-actions {
    grid-column: auto;
    justify-content: end;
    align-self: end;
  }
}

@media (max-width: 760px) {
  .dashboard-page .dashboard-hero-card {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-stats-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .dashboard-stat {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .profile-wrapper .passport-cover {
    min-height: 130px;
  }

  .profile-wrapper .passport-body {
    padding: 0 16px 18px;
  }

  .profile-wrapper .passport-avatar,
  .profile-wrapper .passport-avatar.avatar-image {
    width: 94px;
    height: 94px;
    margin-top: -46px;
    border-radius: 30px;
    font-size: 28px;
  }

  .profile-wrapper .passport-main {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .profile-wrapper .passport-actions .btn {
    flex: 1;
  }

  .profile-wrapper .passport-stats {
    margin: 0 16px 16px;
    grid-template-columns: 1fr;
  }

  .profile-wrapper .profile-villa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-page .dashboard-stats-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .profile-wrapper .passport-card,
  .profile-wrapper .passport-stats > div,
  .profile-wrapper .profile-section-card,
  .profile-wrapper .activity-vibe-chips .vibe-pill,
  .profile-wrapper .activity-vibe-chips span,
  .profile-wrapper .profile-villa-card,
  .profile-wrapper .profile-empty-card {
    background: #211e1a;
    border-color: rgba(255, 244, 230, 0.12);
  }

  .profile-wrapper .passport-avatar,
  .profile-wrapper .passport-avatar.avatar-image {
    border-color: #211e1a;
  }

  .profile-wrapper .passport-stats span {
    color: #b5ab9e;
  }

  .profile-wrapper .passport-stats strong {
    color: #f6f1e9;
  }
}

/* VILLA MEMBER PROFILE FIX */
.member-profile-wrapper .passport-card,
.member-profile-wrapper .member-profile-card {
  overflow: hidden;
  border: 1px solid rgba(255, 244, 230, 0.18);
  border-radius: 28px;
  background: #fffaf3;
  box-shadow: 0 18px 40px rgba(36, 28, 20, 0.08);
}

.member-profile-wrapper .passport-cover,
.member-profile-wrapper .member-passport-cover {
  min-height: 160px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(120deg, #8b5e34 0%, #c49a6c 45%, #f0d7b5 100%);
}

.member-profile-wrapper .passport-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 20px;
  align-items: end;
  padding: 0 24px 22px;
}

.member-profile-wrapper .passport-avatar,
.member-profile-wrapper .passport-avatar.avatar-image {
  width: 108px;
  height: 108px;
  margin-top: -54px;
  border: 4px solid #fffaf3;
  border-radius: 34px;
  font-size: 32px;
  box-shadow: 0 10px 24px rgba(36, 28, 20, 0.12);
}

.member-profile-wrapper .passport-main {
  padding-top: 8px;
}

.member-profile-wrapper .passport-main h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
}

.member-profile-wrapper .passport-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-profile-wrapper .passport-stats,
.member-profile-wrapper .member-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 20px 20px;
  padding: 0;
}

.member-profile-wrapper .passport-stats > div,
.member-profile-wrapper .member-stat-grid > div {
  padding: 14px 16px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.member-profile-wrapper .passport-stats span,
.member-profile-wrapper .member-stat-grid span {
  display: block;
  color: #8a7b6c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-profile-wrapper .passport-stats strong,
.member-profile-wrapper .member-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: #2f2418;
  font-size: 24px;
  line-height: 1;
}

.member-profile-wrapper .member-section-card,
.member-profile-wrapper .member-profile-panel {
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 24px;
  background: #fffaf3;
  box-shadow: 0 12px 28px rgba(36, 28, 20, 0.05);
}

.member-profile-wrapper .member-section-card {
  padding: 22px 22px 24px;
}

.member-profile-wrapper .member-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.member-profile-wrapper .member-profile-panel {
  padding: 20px;
}

.member-profile-wrapper .member-empty-card {
  padding: 22px;
  border: 1px dashed rgba(139, 94, 52, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

/* Profile photo preview in edit modal */
.profile-photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.9);
}

.profile-photo-preview-avatar {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 22px;
  font-size: 22px;
}

.profile-photo-preview-label {
  margin: 0 0 4px;
  color: #2f2418;
  font-weight: 700;
}

.profile-past-section .profile-villa-cover-past {
  background: linear-gradient(135deg, #6f675f, #a89b8d);
}

.profile-past-section .profile-villa-card-past {
  opacity: 0.92;
}

/* Trip memories */
.memories-upload-card,
.memories-page .member-section-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 24px;
  background: #fffaf3;
}

.memories-note {
  margin: 0 0 16px;
  color: #8a7b6c;
  font-size: 14px;
}

.villa-storage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.villa-storage-card .eyebrow {
  margin-bottom: 4px;
}

.villa-storage-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.villa-storage-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.memories-upload-form {
  display: grid;
  gap: 14px;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.memories-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.memory-card {
  overflow: hidden;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

.memory-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.memory-photo-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #efe5d8;
}

.memory-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-favorite-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(47, 36, 24, 0.72);
  color: #ffd86b;
  font-size: 14px;
}

.memory-card-body {
  padding: 14px;
}

.memory-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.memory-card-top strong {
  display: block;
  font-size: 14px;
}

.memory-card-top span,
.memory-card-caption {
  display: block;
  color: #8a7b6c;
  font-size: 12px;
}

.memory-favorite-form {
  margin-top: 10px;
}

.memory-favorite-btn {
  border: 1px solid rgba(139, 94, 52, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #6f5840;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.memory-favorite-btn.is-active {
  border-color: rgba(198, 145, 45, 0.35);
  background: rgba(255, 216, 107, 0.18);
  color: #8b5e34;
}

/* Messages member picker */
.messages-compose-members {
  margin-top: 16px;
}

.messages-compose-members-label {
  margin: 0 0 10px;
  color: #8a7b6c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.messages-member-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.messages-member-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(139, 94, 52, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.messages-member-card.is-selected {
  border-color: rgba(139, 94, 52, 0.45);
  background: rgba(255, 244, 230, 0.95);
  box-shadow: inset 0 0 0 1px rgba(139, 94, 52, 0.12);
}

.messages-member-card:focus-visible {
  outline: 2px solid rgba(139, 94, 52, 0.45);
  outline-offset: 2px;
}

.messages-member-card-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5e34, #c49a6c);
  color: #fffaf3;
  font-size: 13px;
  font-weight: 800;
}

.messages-member-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-member-card-copy strong {
  display: block;
  color: #2f2418;
  font-size: 14px;
}

.messages-member-card-copy span {
  display: block;
  color: #8a7b6c;
  font-size: 12px;
}

@media (min-width: 760px) {
  .member-profile-wrapper .passport-body {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .member-profile-wrapper .passport-actions {
    grid-column: auto;
    justify-content: end;
    align-self: end;
  }
}

@media (max-width: 760px) {
  .member-profile-wrapper .passport-cover,
  .member-profile-wrapper .member-passport-cover {
    min-height: 130px;
  }

  .member-profile-wrapper .passport-body {
    padding: 0 16px 18px;
  }

  .member-profile-wrapper .passport-avatar,
  .member-profile-wrapper .passport-avatar.avatar-image {
    width: 94px;
    height: 94px;
    margin-top: -46px;
    border-radius: 30px;
    font-size: 28px;
  }

  .member-profile-wrapper .passport-main {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .member-profile-wrapper .passport-actions .btn {
    flex: 1;
  }

  .member-profile-wrapper .passport-stats,
  .member-profile-wrapper .member-stat-grid {
    margin: 0 16px 16px;
    grid-template-columns: 1fr;
  }

  .member-profile-wrapper .member-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .member-profile-wrapper .passport-card,
  .member-profile-wrapper .member-profile-card,
  .member-profile-wrapper .passport-stats > div,
  .member-profile-wrapper .member-stat-grid > div,
  .member-profile-wrapper .member-section-card,
  .member-profile-wrapper .member-profile-panel,
  .member-profile-wrapper .member-empty-card,
  .memories-upload-card,
  .memories-page .member-section-card,
  .memory-card,
  .messages-member-card {
    background: #211e1a;
    border-color: rgba(255, 244, 230, 0.12);
  }

  .member-profile-wrapper .passport-avatar,
  .member-profile-wrapper .passport-avatar.avatar-image {
    border-color: #211e1a;
  }

  .member-profile-wrapper .passport-stats span,
  .member-profile-wrapper .member-stat-grid span,
  .memory-card-top span,
  .memory-card-caption,
  .messages-member-card-copy span {
    color: #b5ab9e;
  }

  .member-profile-wrapper .passport-stats strong,
  .member-profile-wrapper .member-stat-grid strong,
  .messages-member-card-copy strong {
    color: #f6f1e9;
  }
}

/* VILLA ACTIVITY CENTER */
.activity-center-page .activity-center-count {
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 244, 230, 0.16);
  color: #fffaf3;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.activity-center-wrapper {
  display: grid;
  gap: 18px;
}

.activity-center-hero {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 243, 0.95)),
    linear-gradient(120deg, rgba(196, 154, 108, 0.18), rgba(139, 94, 52, 0.08));
  box-shadow: 0 14px 32px rgba(36, 28, 20, 0.06);
}

.activity-center-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.1;
}

.activity-center-lede {
  margin: 0;
  color: #6f5840;
  font-size: 15px;
  line-height: 1.55;
}

.activity-center-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-center-date span {
  padding: 8px 12px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6f5840;
  font-size: 12px;
  font-weight: 700;
}

.activity-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.activity-filter-bar::-webkit-scrollbar {
  display: none;
}

.activity-filter-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(139, 94, 52, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6f5840;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}

.activity-filter-chip.is-active {
  border-color: rgba(139, 94, 52, 0.42);
  background: linear-gradient(135deg, #8b5e34, #a87445);
  color: #fffaf3;
  box-shadow: 0 8px 18px rgba(139, 94, 52, 0.18);
}

.activity-center-feed {
  display: grid;
  gap: 12px;
}

.activity-center-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 20px;
  background: #fffaf3;
  box-shadow: 0 10px 24px rgba(36, 28, 20, 0.05);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.activity-center-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(36, 28, 20, 0.08);
}

.activity-center-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #c49a6c, #8b5e34);
}

.activity-center-card-post,
.activity-center-card-comment {
  --activity-accent: linear-gradient(180deg, #d7a86e, #8b5e34);
}

.activity-center-card-message {
  --activity-accent: linear-gradient(180deg, #7ea8d8, #4f79ad);
}

.activity-center-card-packing_added,
.activity-center-card-packing_packed {
  --activity-accent: linear-gradient(180deg, #7cb587, #4d8a59);
}

.activity-center-card-supply_claimed,
.activity-center-card-supply_brought {
  --activity-accent: linear-gradient(180deg, #d4a15d, #b07a2d);
}

.activity-center-card-outfit_added {
  --activity-accent: linear-gradient(180deg, #c58fd1, #8f5f9d);
}

.activity-center-card-memory_added {
  --activity-accent: linear-gradient(180deg, #e0a06d, #c46d3a);
}

.activity-center-card-post .activity-center-accent,
.activity-center-card-comment .activity-center-accent,
.activity-center-card-message .activity-center-accent,
.activity-center-card-packing_added .activity-center-accent,
.activity-center-card-packing_packed .activity-center-accent,
.activity-center-card-supply_claimed .activity-center-accent,
.activity-center-card-supply_brought .activity-center-accent,
.activity-center-card-outfit_added .activity-center-accent,
.activity-center-card-memory_added .activity-center-accent {
  background: var(--activity-accent, linear-gradient(180deg, #c49a6c, #8b5e34));
}

.activity-center-card-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.activity-center-copy {
  min-width: 0;
}

.activity-center-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.activity-center-identity {
  display: grid;
  gap: 4px;
}

.activity-center-identity strong {
  color: #2f2418;
  font-size: 15px;
}

.activity-center-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 94, 52, 0.08);
  color: #8b5e34;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-center-top time {
  flex: 0 0 auto;
  color: #8a7b6c;
  font-size: 12px;
  white-space: nowrap;
}

.activity-center-preview {
  margin: 0;
  color: #4b4034;
  font-size: 14px;
  line-height: 1.5;
}

.activity-center-arrow {
  color: #b5ab9e;
  font-size: 24px;
  line-height: 1;
}

.activity-center-empty {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px dashed rgba(139, 94, 52, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
}

.activity-center-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-center-footnote {
  margin: 0;
  color: #8a7b6c;
  font-size: 14px;
  text-align: center;
}

@media (min-width: 760px) {
  .activity-center-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (prefers-color-scheme: dark) {
  .activity-center-hero,
  .activity-center-card,
  .activity-center-empty,
  .activity-filter-chip,
  .activity-center-date span {
    background: #211e1a;
    border-color: rgba(255, 244, 230, 0.12);
  }

  .activity-center-lede,
  .activity-center-preview,
  .activity-center-footnote,
  .activity-center-top time,
  .activity-center-date span {
    color: #b5ab9e;
  }

  .activity-center-identity strong {
    color: #f6f1e9;
  }

  .activity-filter-chip.is-active {
    color: #fffaf3;
  }
}

/* VILLA MESSAGING UX + TIMELINE */
.messages-compose-empty {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(139, 94, 52, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: #6f5840;
  font-size: 14px;
}

.timeline-view-all {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-posts-publications {
  min-width: 180px;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.page-cta-hero,
.memories-hero,
.feed-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 243, 0.96)),
    linear-gradient(120deg, rgba(196, 154, 108, 0.16), rgba(139, 94, 52, 0.08));
  box-shadow: 0 12px 28px rgba(36, 28, 20, 0.05);
}

.page-cta-hero h2,
.memories-hero h2,
.feed-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.1;
}

.page-cta-hero p,
.memories-hero p,
.feed-hero p {
  margin: 0;
  color: #6f5840;
  line-height: 1.55;
}

.page-primary-cta {
  width: fit-content;
  min-height: 48px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(139, 94, 52, 0.18);
}

.suitcase-copy .page-primary-cta,
.outfit-hero .page-primary-cta,
.supplies-hero .page-primary-cta {
  margin-top: 14px;
}

.floating-add-btn {
  position: fixed;
  left: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 119;
  display: none;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #8b5e34, #a87445);
  color: #fffaf3;
  box-shadow: 0 14px 30px rgba(36, 28, 20, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

body:not(:has(.bottom-nav)) .floating-add-btn {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

body:has(.dm-dock) .floating-add-btn {
  max-width: calc(100vw - 120px);
}

@media (max-width: 760px) {
  .floating-add-btn {
    display: inline-flex;
  }

  .page-primary-cta {
    width: 100%;
    justify-content: center;
  }
}

.dm-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
}

body:has(.bottom-nav) .dm-dock {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
}

.dm-dock-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #8b5e34, #a87445);
  color: #fffaf3;
  box-shadow: 0 14px 30px rgba(36, 28, 20, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.dm-dock.is-open .dm-dock-bubble {
  box-shadow: 0 10px 24px rgba(36, 28, 20, 0.14);
}

.dm-dock-bubble-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.dm-dock-bubble-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffd86b;
  color: #2f2418;
  font-size: 11px;
  font-weight: 900;
}

.dm-dock-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(460px, calc(100vh - 140px));
  display: none;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(139, 94, 52, 0.14);
  border-radius: 22px;
  background: #fffaf3;
  box-shadow: 0 20px 44px rgba(36, 28, 20, 0.16);
}

.dm-dock.is-open .dm-dock-panel {
  display: grid;
}

.dm-dock-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
  border-bottom: 1px solid rgba(139, 94, 52, 0.1);
}

.dm-dock-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a7b6c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.dm-dock-tab.is-active {
  background: rgba(139, 94, 52, 0.12);
  color: #8b5e34;
}

.dm-dock-body {
  min-height: 0;
  overflow: auto;
}

.dm-dock-pane {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.dm-dock-pane[hidden] {
  display: none !important;
}

.dm-dock-feature-link,
.dm-dock-room {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
}

.dm-dock-feature-icon,
.dm-dock-room-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5e34, #c49a6c);
  color: #fffaf3;
  font-weight: 900;
}

.dm-dock-feature-copy,
.dm-dock-room-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dm-dock-feature-copy strong,
.dm-dock-room-copy strong {
  color: #2f2418;
  font-size: 14px;
}

.dm-dock-feature-copy span,
.dm-dock-room-copy span {
  color: #8a7b6c;
  font-size: 12px;
}

.dm-dock-pane-note {
  margin: 0;
  color: #8a7b6c;
  font-size: 12px;
}

.dm-dock-room-list {
  display: grid;
  gap: 8px;
}

.dm-dock-footer-link {
  display: block;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(139, 94, 52, 0.1);
  color: #8b5e34;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.dm-dock-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(139, 94, 52, 0.1);
}

.dm-dock-panel-head strong {
  display: block;
  color: #2f2418;
  font-size: 16px;
}

.dm-dock-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-dock-close {
  border: 0;
  background: transparent;
  color: #8a7b6c;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dm-dock-thread-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.dm-dock-thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(139, 94, 52, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
}

.dm-dock-thread.has-unread {
  border-color: rgba(139, 94, 52, 0.28);
  background: rgba(255, 244, 230, 0.95);
}

.dm-dock-thread-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dm-dock-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-dock-thread-top strong {
  color: #2f2418;
  font-size: 14px;
}

.dm-dock-thread-top span,
.dm-dock-thread-meta,
.dm-dock-thread-preview {
  color: #8a7b6c;
  font-size: 12px;
}

.dm-dock-thread-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-dock-thread-badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #8b5e34;
  color: #fffaf3;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.dm-dock-empty {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-align: center;
}

.dm-dock-empty p {
  margin: 0;
  color: #6f5840;
}

@media (max-width: 620px) {
  .dm-dock {
    right: 12px;
  }

  .dm-dock-bubble {
    padding: 12px 14px;
  }

  .dm-dock-bubble-label {
    display: none;
  }

  .dm-dock-panel {
    width: min(320px, calc(100vw - 24px));
  }
}

@media (max-width: 480px) {
  .dm-dock.is-open .dm-dock-panel {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(58vh, 420px);
  }

  body:not(:has(.bottom-nav)) .dm-dock.is-open .dm-dock-panel {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* Chat rooms */
.rooms-hero,
.rooms-create-card,
.rooms-list-card,
.messages-trip-rooms-card,
.room-meta-card,
.room-invite-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 24px;
  background: #fffaf3;
}

.rooms-create-form,
.room-invite-form {
  display: grid;
  gap: 14px;
}

.rooms-grid,
.rooms-grid-compact {
  display: grid;
  gap: 12px;
}

.rooms-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.room-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
}

.room-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5e34, #c49a6c);
  color: #fffaf3;
  font-weight: 900;
}

.room-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.room-card-copy strong {
  color: #2f2418;
  font-size: 15px;
}

.room-card-copy span,
.room-card-meta {
  color: #8a7b6c;
  font-size: 12px;
}

.messages-trip-room-group {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.messages-trip-room-group h3 {
  margin: 0;
  font-size: 16px;
}

.room-member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(139, 94, 52, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
  font-size: 12px;
}

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

.room-invite-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 94, 52, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: dark) {
  .messages-compose-empty,
  .page-cta-hero,
  .memories-hero,
  .feed-hero,
  .rooms-hero,
  .rooms-create-card,
  .rooms-list-card,
  .messages-trip-rooms-card,
  .room-meta-card,
  .room-invite-card,
  .room-card,
  .room-member-chip,
  .room-invite-option,
  .dm-dock-panel,
  .dm-dock-thread,
  .dm-dock-feature-link,
  .dm-dock-room {
    background: #211e1a;
    border-color: rgba(255, 244, 230, 0.12);
  }

  .page-cta-hero p,
  .memories-hero p,
  .feed-hero p,
  .room-card-copy span,
  .room-card-meta,
  .dm-dock-panel-head strong,
  .dm-dock-thread-top strong,
  .dm-dock-feature-copy strong,
  .dm-dock-room-copy strong {
    color: #f6f1e9;
  }

  .messages-compose-empty,
  .dm-dock-thread-top span,
  .dm-dock-thread-meta,
  .dm-dock-thread-preview,
  .dm-dock-empty p {
    color: #b5ab9e;
  }
}

/* Notifications v1 */
.notifications-float {
  position: fixed;
  right: 16px;
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  z-index: 121;
}

body:not(:has(.bottom-nav)) .notifications-float {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

.notifications-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fffaf3;
  color: #6f5438;
  box-shadow: 0 14px 30px rgba(36, 28, 20, 0.16);
  text-decoration: none;
}

.notifications-bell.has-unread {
  color: #8b5e34;
}

.notifications-bell-icon {
  display: inline-flex;
  line-height: 0;
}

.notifications-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffd86b;
  color: #2f2418;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.notifications-bell-badge[hidden] {
  display: none;
}

.notifications-wrapper {
  display: grid;
  gap: 16px;
}

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

.notifications-toolbar p {
  margin: 0;
  color: var(--muted);
}

.notifications-empty-card,
.notifications-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.notifications-list {
  display: grid;
  gap: 0;
  padding: 8px;
}

.notification-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  border-radius: 14px;
}

.notification-item + .notification-item {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 4px;
}

.notification-item.is-unread {
  background: rgba(255, 216, 107, 0.12);
}

.notification-item-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

.notification-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.notification-top strong {
  font-size: 15px;
}

.notification-top span,
.notification-meta,
.notification-body {
  color: var(--muted);
  font-size: 13px;
}

.notification-body {
  color: var(--text);
}

.notification-mark-form {
  padding: 12px 8px 12px 0;
}

.notification-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 22px;
}

@media (max-width: 640px) {
  .notifications-float {
    bottom: calc(142px + env(safe-area-inset-bottom, 0px));
  }
}

/* PWA install v1 */
.pwa-install-banner {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 12px;
  padding: 16px 44px 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(36, 28, 20, 0.08);
}

.pwa-install-banner[hidden] {
  display: none;
}

.pwa-install-copy {
  display: grid;
  gap: 4px;
}

.pwa-install-copy strong {
  font-size: 16px;
}

.pwa-install-copy span {
  color: var(--muted);
  font-size: 14px;
}

.pwa-install-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pwa-install-close:hover,
.pwa-install-close:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
}

.pwa-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pwa-install-actions .btn {
  min-width: 118px;
}

.app-settings-modal {
  max-width: 420px;
}

.app-settings-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.app-settings-status span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.app-settings-status strong {
  font-size: 15px;
  text-align: right;
}

.app-settings-actions {
  display: grid;
  gap: 12px;
}

.auth-body .pwa-install-banner {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto 24px;
}

.dashboard-page .pwa-install-banner,
.page-container > .pwa-install-banner {
  margin: 0 16px 16px;
}

.offline-shell {
  min-height: 100vh;
  place-items: center;
}

.offline-card {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(36, 28, 20, 0.08);
}

.offline-card h1 {
  margin: 8px 0 12px;
}

.offline-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* Villa stories */
.stories-page .stories-wrapper {
  display: grid;
  gap: 18px;
}

.stories-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-xs);
}

.stories-note,
.stories-preview-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.stories-strip-section,
.stories-preview-section {
  margin-top: 0;
}

.stories-preview-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stories-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.stories-strip-compact {
  margin-bottom: 14px;
}

.story-ring-item {
  flex: 0 0 auto;
  width: 78px;
  text-align: center;
}

.story-ring-item-yours {
  width: 86px;
}

.story-ring-button,
.story-ring-item a {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.story-ring-button {
  position: relative;
  width: 100%;
}

.story-ring {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
}

.story-ring-active {
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #e8b88a);
}

.story-ring-add {
  padding: 3px;
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  background: transparent;
}

.story-ring-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: 50%;
  background: var(--bg);
}

.story-avatar {
  width: 62px;
  height: 62px;
  font-size: 18px;
}

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

.story-ring-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-countdown-label {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.story-add-badge {
  position: absolute;
  right: 8px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
}

.stories-add-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stories-add-form {
  display: grid;
  gap: 14px;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.story-viewer[hidden] {
  display: none !important;
}

.story-viewer.is-open {
  display: block;
}

.story-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.story-viewer-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.story-viewer-progress {
  display: flex;
  gap: 4px;
  padding: 12px 14px 0;
}

.story-viewer-progress-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-viewer-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transition: width 0.2s ease;
}

.story-viewer-progress-bar.is-done span {
  width: 100%;
}

.story-viewer-progress-bar.is-current span {
  width: 100%;
}

.story-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
}

.story-viewer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.story-viewer-user strong {
  display: block;
  font-size: 14px;
}

.story-viewer-user span {
  display: block;
  font-size: 12px;
  opacity: 0.78;
}

.story-viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 40%, #333);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

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

.story-viewer-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.story-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 24px;
}

.story-viewer-content {
  width: 100%;
  height: min(72vh, 640px);
  display: grid;
  place-items: center;
  padding: 0 14px;
}

.story-viewer-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.story-viewer-text {
  width: min(100%, 420px);
  padding: 28px 24px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 72%, #2b211b), color-mix(in srgb, var(--accent-2) 58%, #1f2a27));
  color: #fff;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.story-viewer-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.story-viewer-nav-prev { left: 0; }
.story-viewer-nav-next { right: 0; }

@media (min-width: 720px) {
  .stories-hero {
    align-items: center;
  }

  .story-ring-item {
    width: 88px;
  }

  .story-ring {
    width: 78px;
    height: 78px;
  }

  .story-avatar {
    width: 68px;
    height: 68px;
  }
}

/* Trip highlights */
.highlights-section,
.highlights-preview-section {
  margin-top: 0;
}

.highlights-empty-card,
.highlight-open-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.highlights-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.highlights-strip-compact {
  margin-bottom: 14px;
}

.highlight-ring-item {
  flex: 0 0 auto;
  width: 78px;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.highlight-ring {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent), #d4a574);
}

.highlight-ring-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}

.highlight-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.highlight-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 70%, #2b211b), color-mix(in srgb, var(--accent-2) 55%, #1f2a27));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.highlight-cover-fallback-lg {
  width: 96px;
  height: 96px;
  font-size: 34px;
}

.highlight-hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-xs);
}

.highlight-hero-cover {
  width: 96px;
  height: 96px;
}

.highlight-hero-cover img,
.highlight-hero-cover .highlight-cover-fallback-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.highlight-hero-copy h2 {
  margin: 6px 0 8px;
}

.highlight-meta,
.highlight-meta-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.highlight-meta-sub {
  margin-top: 4px;
  font-size: 14px;
}

.highlight-wrapper {
  display: grid;
  gap: 18px;
}

.story-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px 14px 18px;
}

.story-save-highlight-btn,
.story-download-btn,
.story-save-memory-btn {
  min-width: 180px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.story-save-memory-form {
  margin: 0;
}

.highlight-viewer-title {
  text-align: center;
  padding: 0 14px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .highlight-hero {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .highlight-ring-item {
    width: 88px;
  }

  .highlight-ring {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 719px) {
  .villa-storage-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .villa-storage-card span {
    white-space: normal;
  }
}
