:root {
  --bg-a: #f3efe7;
  --bg-b: #dcebe7;
  --ink: #132129;
  --muted: #5f6b79;
  --line: rgba(30, 58, 74, 0.2);
  --primary: #0f6b61;
  --primary-2: #2b8e82;
  --soft: #e8f2f0;
  --surface: rgba(250, 251, 253, 0.82);
  --chrome-bg-a: rgba(32, 58, 82, 0.86);
  --chrome-bg-b: rgba(24, 47, 71, 0.82);
  --chrome-border: rgba(136, 171, 206, 0.34);
  --chrome-text: #d7e5f2;
  --chrome-active: #44d0a0;
  /* Landing / sign-in column width (unchanged for collage + auth panel) */
  --layout-max-width: 933px;
  /* Logged-in main column: tab container + footer align to this */
  --app-shell-column-max-width: 7in;
  /* Event / memory post cards: max 6in inside the tab column */
  --posts-content-max-width: 6in;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 166, 90, 0.26), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(31, 128, 112, 0.22), transparent 33%),
    radial-gradient(circle at 60% 100%, rgba(77, 163, 209, 0.18), transparent 36%),
    linear-gradient(160deg, var(--bg-a), var(--bg-b));
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
}

.app-shell {
  height: 100vh;
  padding: 0.9rem 1.05rem 0.7rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.8rem;
  overflow: hidden;
}

.app-main-row {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, min(96vw, var(--layout-max-width))) minmax(0, 1fr);
  align-items: stretch;
  position: relative;
  overflow: visible;
}

/* Main app (feed, profile, etc.): primary column + tab container max 7in. Landing sign-in keeps --layout-max-width. */
.app-main-row:not(:has(.landing-auth-layout)) {
  grid-template-columns: minmax(0, min(96vw, var(--app-shell-column-max-width))) minmax(0, 1fr);
}

.app-main-row .app-stage {
  grid-column: 1;
}

.app-right-rail {
  grid-column: 2;
  min-height: 0;
  min-width: 0;
  position: relative;
  margin-left: 0.85rem;
  margin-right: 0;
}

.app-shell:has(.landing-auth-layout) {
  overflow: visible;
}

.app-stage {
  width: 100%;
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
}

.app-stage-body {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  min-width: 0;
  width: 100%;
}

.app-tab-view {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-tab-view > .app-card {
  flex: 1;
  min-height: 0;
}

.app-card {
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(37, 71, 88, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 252, 0.78)),
    var(--surface);
  backdrop-filter: blur(14px);
  box-shadow:
    0 28px 72px rgba(15, 33, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.landing-auth-layout {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: visible;
}

.landing-collage-panel {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 1rem 1.1rem;
}

.landing-hero {
  width: min(100%, 560px);
  margin: 0 auto 0.45rem;
}

.landing-hero .copy {
  margin-top: 0.5rem;
}

.landing-collage {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1.04;
  margin: 0 auto;
}

.landing-photo,
.landing-orb {
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.landing-photo {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 26px 52px rgba(6, 22, 36, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.landing-photo-left {
  width: 38%;
  height: 64%;
  left: 5%;
  top: 17%;
  transform: rotate(-9deg);
  z-index: 1;
}

.landing-photo-right {
  width: 39%;
  height: 58%;
  right: 5%;
  top: 20%;
  transform: rotate(8deg);
  z-index: 1;
}

.landing-photo-main {
  width: 54%;
  height: 78%;
  left: 23%;
  top: 10%;
  z-index: 2;
}

.landing-orb {
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(8, 20, 35, 0.3);
  z-index: 3;
}

.landing-orb-a {
  width: 96px;
  height: 96px;
  left: 2%;
  bottom: 8%;
  transform: rotate(-6deg);
}

.landing-orb-b {
  width: 94px;
  height: 94px;
  right: 7%;
  bottom: 5%;
  transform: rotate(7deg);
}

.landing-photo img,
.landing-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-auth-panel {
  position: absolute;
  top: 50%;
  right: -350px;
  transform: translateY(-50%);
  z-index: 5;
  width: 330px;
  padding: 0.2rem 0.15rem 0.3rem;
  max-width: 330px;
}

.landing-auth-panel h1,
.landing-auth-panel h2 {
  margin-top: 0.2rem;
}

.landing-auth-panel .actions {
  margin-top: 0.9rem;
}

.landing-auth-panel .btn {
  width: 100%;
}

.landing-auth-panel .legal {
  margin-top: 0.9rem;
  color: #4f6371;
}

.landing-auth-panel .status-note {
  margin-top: 0.65rem;
}

.app-live {
  background:
    radial-gradient(circle at 18% 4%, rgba(49, 198, 171, 0.2), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(120, 152, 255, 0.2), transparent 36%),
    radial-gradient(circle at 42% 100%, rgba(255, 160, 118, 0.12), transparent 44%),
    linear-gradient(165deg, var(--chrome-bg-a), var(--chrome-bg-b));
  border-color: var(--chrome-border);
  color: #eaf2fa;
}

.app-live .feed-list {
  gap: 0.75rem;
}

.app-live .status-note,
.app-live .copy,
.app-live .tab-head p,
.app-live .feed-card p {
  color: #b8c5d4;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 800;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.08;
}

h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.copy,
.legal,
.progress-label,
.tab-head p,
.feed-card p {
  color: var(--muted);
}

.copy {
  margin: 0.55rem 0 0;
  line-height: 1.45;
}

.actions {
  margin-top: 1rem;
  display: grid;
  gap: 0.58rem;
}

.btn,
.mode,
.tabs button,
.feed-card button,
.chip,
.back-link {
  font-family: inherit;
}

.btn {
  border: 0;
  border-radius: 13px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn:disabled,
.primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(92deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 107, 97, 0.3);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.legal {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
}

.status-note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--primary);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.85rem 0 0.35rem;
}

.section-title {
  margin-top: 0;
  margin-bottom: 0.1rem;
  font-weight: 700;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #dbe7df;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ff8a45);
}

.progress-label {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.82rem;
}

.back-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.3rem;
  cursor: pointer;
}

label {
  margin: 0.7rem 0 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

input:not([type="checkbox"]) {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: #fff;
  color: var(--ink);
}

select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 0.45rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: #fff;
  cursor: pointer;
}

.chip.selected {
  border-color: transparent;
  background: var(--soft);
  color: var(--primary);
  font-weight: 700;
}

.tab-head {
  margin-bottom: 0.65rem;
}

.tab-head-live h3 {
  color: #f2f7fb;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.tab-head p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}

.mode-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.72rem;
}

.app-live .mode-row {
  border: 1px solid rgba(155, 179, 206, 0.22);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(57, 76, 100, 0.55);
}

.mode {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  background: #fff;
  cursor: pointer;
}

.app-live .mode {
  border-color: transparent;
  background: transparent;
  color: #cbd7e3;
}

.mode.active {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.app-live .mode.active {
  background: rgba(227, 235, 246, 0.32);
  color: #f4f8fb;
}

.feed-list {
  display: grid;
  gap: 0.58rem;
}

/* Post-style cards in the main tab column: max 6in, centered; fill when the column is narrower.
   Note: `.app-tab-view` wraps `.app-card.app-live` (not the reverse), so ancestors must be `.app-tab-view .app-live …`. */
.app-tab-view .app-live .feed-list > .feed-card,
.app-tab-view .app-live .feed-list > .memory-feed-card,
.app-tab-view .app-live .profile-section-body > .feed-card,
.app-tab-view .app-live .my-events-feed-list .feed-card,
.app-tab-view .app-live .my-events-feed-list .my-events-list-row,
.app-tab-view .app-live .my-events-feed-list .my-events-empty-card,
.app-tab-view .app-live .feed-tab > .feed-card.event-detail,
.app-tab-view .app-live > .feed-card.event-detail {
  width: 100%;
  max-width: min(100%, var(--posts-content-max-width));
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.feed-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem;
}

.app-live .feed-card {
  border-color: rgba(155, 186, 216, 0.28);
  background:
    linear-gradient(160deg, rgba(51, 74, 101, 0.78), rgba(35, 56, 82, 0.76));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Ready / Explore — iOS FeedCardView-style */
.app-live .feed-card-rich {
  padding: 0.65rem;
}

.app-live .feed-card-rich .feed-card-rich-inner {
  margin-top: 0;
  display: block;
}

.app-live .feed-card-rich .feed-card-hero {
  position: relative;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 0 !important;
  display: block !important;
}

.app-live .feed-card-rich .feed-card-hero-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.app-live .feed-card-rich .feed-card-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    145deg,
    hsla(var(--feed-hero-hue, 142), 46%, 40%, 0.42),
    hsla(calc(var(--feed-hero-hue, 142) + 28), 35%, 22%, 0.24),
    rgba(30, 44, 58, 0.3)
  );
}

.app-live .feed-card-rich .feed-card-hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.18), transparent 48%, rgba(0, 0, 0, 0.04));
}

.app-live .feed-card-rich .feed-card-time-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2a38;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.app-live .feed-card-rich .feed-card-title-btn {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: "Sora", "Avenir Next", sans-serif;
  text-align: left;
  max-width: 100%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #f0f6fc;
  border: 1px solid rgba(180, 200, 220, 0.2);
}

.app-live .feed-card-rich .feed-card-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9eb4cc !important;
  margin-top: 0.35rem !important;
}

.app-live .feed-card-rich .feed-card-pitch {
  font-size: 0.88rem;
  font-weight: 500;
  color: #b8c9dc !important;
  line-height: 1.45;
  margin-top: 0.4rem !important;
}

.app-live .feed-card-rich .feed-card-view-details {
  margin-top: 0.45rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5ecf9b;
  cursor: pointer;
  text-align: left;
}

.app-live .feed-card-rich .feed-card-pills {
  margin-top: 0.65rem !important;
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.app-live .feed-card-rich .feed-pills-spacer {
  flex: 1;
  min-width: 0.25rem;
}

.app-live .feed-card-rich .feed-pill {
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: rgba(26, 99, 69, 0.35);
  color: #eaf6f0;
}

.app-live .feed-card-rich .feed-pill-share {
  background: rgba(26, 99, 69, 0.35);
}

.feed-card h4 {
  margin: 0;
}

.feed-card p {
  margin: 0.3rem 0 0;
  line-height: 1.35;
}

.rationale {
  font-size: 0.82rem;
  color: var(--muted);
}

.event-detail-link-preview {
  margin: 0.75rem 0 1rem;
}

.event-detail-link-preview-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3b8;
}

.event-detail-link-preview-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(123, 154, 186, 0.28);
  background: rgba(18, 34, 52, 0.55);
  min-height: 140px;
  max-height: 240px;
}

.event-detail-link-preview-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.event-detail-source-url {
  margin-top: 0.45rem !important;
  word-break: break-all;
}

.event-detail-source-url a {
  color: #8ecfff;
}

.app-live .event-detail-source-url a {
  color: #8ecfff;
}

.event-detail {
  border-style: dashed;
}

.message-stack {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  padding-right: 0.2rem;
}

.message-stack p {
  margin: 0.2rem 0;
}

.feed-card div {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.feed-card div.settings-menu {
  display: grid;
  margin-top: 0.35rem;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.feed-card button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.36rem 0.52rem;
  font-size: 0.78rem;
  background: #fff;
}

.app-live .feed-card .settings-menu .settings-row {
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 1.02rem;
  background: rgba(39, 58, 82, 0.92);
  color: #e8f0f8;
  border: 1px solid rgba(123, 154, 186, 0.22);
}

.settings-actions {
  display: grid;
  gap: 0.4rem;
}

.settings-actions button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(39, 58, 82, 0.9);
  color: #e8f0f8;
  border: 1px solid rgba(123, 154, 186, 0.2);
}

.settings-actions button span {
  color: #c9d5e2;
  font-size: 1.5rem;
  line-height: 1;
}

/* Settings root menu (iOS F91-style list) */
.settings-page-head {
  margin-bottom: 0.35rem;
}

.settings-page-title {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f2f7fc;
}

.settings-hub-header {
  margin: 0 0 0.65rem;
}

.settings-hub-title {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eaf3fb;
}

.settings-hub-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #9eb0c4;
  max-width: 36rem;
  line-height: 1.45;
}

.settings-parity-note {
  margin: 0 0 0.85rem !important;
  line-height: 1.45 !important;
  color: #9eb0c4 !important;
  font-size: 0.9rem !important;
}

.settings-info-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.settings-info-tile {
  border: 1px solid rgba(123, 154, 186, 0.28);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: rgba(22, 38, 58, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.settings-info-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fa3b8;
}

.settings-info-tile-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #eaf2fa;
  word-break: break-word;
}

.settings-subscription-actions {
  flex-direction: column;
  align-items: stretch;
}

.settings-subscription-actions .btn {
  width: 100%;
}

.settings-readonly-input {
  opacity: 0.95;
  cursor: default;
}

.settings-curation-block {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(123, 154, 186, 0.18);
}

.settings-curation-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-curation-heading {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #eaf2fa;
}

.settings-data-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(18, 34, 52, 0.72);
  border: 1px solid rgba(123, 154, 186, 0.2);
}

.settings-data-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fa3b8;
}

.settings-data-value {
  font-size: 0.88rem;
  color: #dce8f4;
  line-height: 1.35;
  white-space: pre-wrap;
}

.settings-curation-note {
  margin: 0.45rem 0 0.65rem !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
}

.settings-segmented {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(20, 38, 61, 0.75);
  border: 1px solid rgba(123, 154, 186, 0.25);
}

.settings-seg {
  flex: 1;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: transparent;
  color: #b8c8dc;
}

.settings-seg.is-active {
  background: rgba(32, 179, 118, 0.28);
  color: #ecfff6;
}

.settings-push-hint {
  margin: 0.5rem 0 0 !important;
  font-size: 0.84rem !important;
  color: #9eb0c4 !important;
}

.settings-toggle-row--push {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(18, 34, 52, 0.72);
  border: 1px solid rgba(123, 154, 186, 0.22);
}

.settings-logout-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-menu {
  display: grid;
  gap: 0.4rem;
}

.settings-menu .settings-row {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.2;
  border-radius: 16px;
  min-height: 50px;
  padding: 0.9rem 1.05rem;
  background: linear-gradient(150deg, rgba(41, 62, 88, 0.93), rgba(33, 55, 80, 0.91));
  color: #e8f0f8;
  border: 1px solid rgba(141, 174, 208, 0.24);
  cursor: pointer;
  font: inherit;
}

.settings-menu .settings-row:hover {
  background: linear-gradient(150deg, rgba(48, 74, 103, 0.95), rgba(40, 64, 91, 0.94));
  border-color: rgba(146, 201, 234, 0.44);
}

.settings-chevron {
  color: #9eb0c4;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
}

.settings-row--destructive {
  color: #ffc9c9 !important;
  border-color: rgba(255, 120, 120, 0.38) !important;
  background: rgba(52, 22, 28, 0.55) !important;
}

.settings-detail-card .settings-detail-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #eaf2fa;
}

.settings-detail-card .btn {
  min-height: 44px;
  padding: 0.72rem 1rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.settings-detail-card .btn.btn-primary {
  border: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
}

.settings-detail-card .btn.btn-secondary {
  border: 1px solid rgba(123, 154, 186, 0.35);
  background: rgba(233, 239, 247, 0.1);
  color: #eaf2fa;
}

.settings-detail-card button:not(.btn):not(.back-link):not(.settings-seg) {
  border: 1px solid rgba(123, 154, 186, 0.35);
  border-radius: 11px;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  background: rgba(18, 34, 52, 0.74);
  color: #e6eff8;
}

.settings-detail-card button:not(.btn):not(.back-link):not(.settings-seg):hover {
  background: rgba(26, 46, 68, 0.86);
  border-color: rgba(140, 178, 210, 0.45);
}

.settings-detail-card .account-row button:not(.btn) {
  justify-self: start;
}

.settings-section-lead {
  margin: 0 0 0.85rem !important;
  line-height: 1.45;
}

.settings-section-sub {
  margin: 0.75rem 0 0.4rem !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8fa3b8 !important;
}

.settings-field-group {
  margin-bottom: 0.25rem;
}

.settings-detail-card .settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.settings-field-caption {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #8fa3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-readonly-value {
  margin: 0.2rem 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(18, 34, 52, 0.72);
  border: 1px solid rgba(123, 154, 186, 0.22);
  font-weight: 600;
  font-size: 0.95rem;
  color: #eaf2fa;
}

.settings-detail-card .settings-field-caption,
.settings-detail-card .settings-readonly-value,
.settings-detail-card .settings-field-label,
.settings-detail-card .settings-hint {
  margin: 0 !important;
}

.settings-detail-card .settings-field-group .btn {
  width: fit-content;
  min-width: 180px;
}

.settings-field-label {
  display: block;
  margin: 0.55rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c5d4e4;
}

.settings-field-label input,
.settings-field-label select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(141, 174, 208, 0.42);
  background: rgba(18, 34, 54, 0.74);
  color: #f2f8ff;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.settings-field-label input:focus,
.settings-field-label select:focus {
  outline: none;
  border-color: rgba(95, 214, 178, 0.7);
  box-shadow: 0 0 0 3px rgba(95, 214, 178, 0.17);
  background: rgba(23, 40, 62, 0.9);
}

.settings-hint {
  font-size: 0.8rem !important;
  margin: 0.25rem 0 0.65rem !important;
}

.settings-nested-card {
  margin: 0.65rem 0;
}

.settings-nested-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.settings-pref-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.settings-pref-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 11px;
  background: rgba(22, 40, 60, 0.78);
  border: 1px solid rgba(123, 154, 186, 0.28);
}

.settings-pref-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #eaf2fa;
}

.settings-pref-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #35c482;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
  font-weight: 600;
  color: #dce8f4;
}

.settings-toggle-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #35c482;
}

.settings-inline-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-detail-card .settings-inline-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.settings-detail-card .settings-subscription-actions {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.settings-detail-card .settings-logout-actions {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.settings-detail-card .account-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.settings-detail-card .settings-segmented {
  display: flex;
}

.settings-detail-card .settings-info-tiles {
  display: grid;
}

.settings-detail-card .settings-data-row {
  display: flex;
}

.settings-panel-back {
  margin-top: 1rem;
}

.settings-danger-block-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #ffb4b4;
}

.app-live .settings-inline-actions .btn-secondary {
  background: rgba(233, 239, 247, 0.1);
  color: #eaf2fa;
  border: 1px solid rgba(123, 154, 186, 0.35);
}

.app-live .settings-inline-actions .btn-secondary:hover {
  background: rgba(233, 239, 247, 0.16);
}

.settings-btn-danger {
  background: linear-gradient(90deg, #7a1530, #b32040) !important;
  color: #fff !important;
}

.settings-btn-danger-outline {
  border-color: rgba(255, 140, 140, 0.45) !important;
  color: #ffc9c9 !important;
  background: rgba(45, 18, 22, 0.55) !important;
}

.account-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.profile-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #2e3f53, #364b62);
  color: #eef4f8;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.profile-settings-btn {
  justify-self: end;
  border: 1px solid rgba(155, 179, 206, 0.24);
  border-radius: 999px;
  background: rgba(16, 33, 54, 0.62);
  color: #e4edf6;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

/* Profile tab (F14 hub parity) */
.profile-tab-header {
  margin-bottom: 0.65rem;
}

.profile-tab-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a9aba;
}

.profile-identity-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(123, 154, 186, 0.28);
  background: linear-gradient(155deg, rgba(32, 52, 78, 0.95), rgba(18, 34, 54, 0.92));
  box-shadow: 0 12px 32px rgba(0, 10, 24, 0.35);
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 1.65rem;
}

.profile-identity-text {
  flex: 1;
  min-width: 0;
}

.profile-display-name {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f9fc;
}

.profile-handle-line {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9eb6cc;
}

.profile-header-settings {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(140, 178, 220, 0.35);
  background: rgba(20, 38, 60, 0.85);
  color: #dce8f4;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-header-settings:hover {
  background: rgba(32, 58, 88, 0.95);
  border-color: rgba(160, 200, 240, 0.45);
}

.profile-stat-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.profile-stat-tile {
  border-radius: 12px;
  border: 1px solid rgba(123, 154, 186, 0.22);
  background: rgba(22, 40, 62, 0.78);
  padding: 0.55rem 0.35rem;
  text-align: center;
  cursor: default;
  font: inherit;
  color: inherit;
}

.profile-stat-tile strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f2f7fc;
}

.profile-stat-tile span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8faabe;
}

button.profile-stat-tile {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

button.profile-stat-tile:hover {
  background: rgba(32, 54, 80, 0.92);
  border-color: rgba(140, 178, 210, 0.38);
}

.profile-section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 0.65rem;
  padding: 0.25rem;
  border-radius: 13px;
  border: 1px solid rgba(123, 154, 186, 0.28);
  background: rgba(35, 55, 79, 0.8);
}

.profile-seg {
  border: 0;
  border-radius: 9px;
  padding: 0.45rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cfdeec;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.profile-seg.is-active {
  background: rgba(35, 196, 130, 0.22);
  color: #eafff4;
}

.profile-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-section-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #eaf2fa;
}

.profile-interests-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.profile-interests-toolbar .profile-section-heading {
  margin: 0;
}

.profile-interest-add-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  background: rgba(35, 196, 130, 0.2);
  color: #e6fff4;
}

.profile-interest-add-btn:hover {
  background: rgba(35, 196, 130, 0.32);
}

.profile-interests-meta,
.profile-interests-hint {
  font-size: 0.84rem !important;
  margin-top: 0.65rem !important;
}

.link-like {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #7ec8ff;
  text-decoration: underline;
  cursor: pointer;
}

.link-like:hover {
  color: #a8d8ff;
}

.profile-about-dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.profile-about-dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.profile-about-dl dt {
  margin: 0;
  color: #8fa3b8;
  font-weight: 700;
}

.profile-about-dl dd {
  margin: 0;
  color: #dce8f4;
}

.profile-bio-block {
  margin: 0 0 0.85rem;
  line-height: 1.45;
  color: #c5d4e4;
}

.profile-organized-meta {
  margin: 0.25rem 0;
}

.profile-organized-byline {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8faabe;
}

.profile-empty-card h4 {
  margin: 0 0 0.35rem;
}

.event-post-lock-hint {
  margin-top: 0.35rem !important;
  font-size: 0.82rem !important;
}

/* Floating quick actions — circular FABs offset to the right of the card */
.floating-dock {
  position: absolute;
  top: 0.2rem;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  pointer-events: none;
  z-index: 4;
  transform: translateX(calc(100% + 0.5rem));
}

.floating-dock-btn {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--chrome-border);
  border-radius: 50%;
  background: linear-gradient(165deg, var(--chrome-bg-a), var(--chrome-bg-b));
  color: var(--chrome-text);
  cursor: pointer;
  font: inherit;
  box-shadow:
    0 10px 26px rgba(0, 12, 28, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.floating-dock-btn:hover {
  background: linear-gradient(165deg, rgba(53, 79, 108, 0.98), rgba(35, 59, 86, 0.96));
  color: #fff;
  box-shadow:
    0 12px 30px rgba(0, 12, 28, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.floating-dock-btn:active {
  transform: scale(0.96);
}

.floating-dock-btn--accent {
  border-color: rgba(46, 168, 118, 0.45);
  background: linear-gradient(145deg, #1fa06a, #157a52);
  color: #f4fffa;
  box-shadow:
    0 10px 28px rgba(20, 130, 88, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.floating-dock-btn--accent:hover {
  background: linear-gradient(145deg, #24b378, #189060);
  color: #fff;
}

.floating-dock-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.floating-dock-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-dock-btn--accent .floating-dock-icon svg {
  width: 26px;
  height: 26px;
}

/* Create Event screen (F14.1 parity) */
.create-event-screen .create-screen-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a9aba;
}

.create-event-screen .create-screen-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3.8vw, 1.85rem);
  font-weight: 800;
  color: #f2f7fc;
}

.create-event-screen .create-screen-lead {
  margin: 0 0 1rem;
}

.create-screen-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.create-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.create-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9eb6cc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.create-field input,
.create-field textarea,
.create-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 11px;
  border: 1px solid rgba(123, 154, 186, 0.35);
  background: rgba(12, 26, 44, 0.65);
  color: #eaf2fa;
  font: inherit;
}

.create-field textarea {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.45;
}

.create-field--flush {
  margin-bottom: 0.75rem;
}

.create-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #eaf2fa;
}

.create-section-card {
  margin-bottom: 0.65rem;
}

.create-location-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(123, 154, 186, 0.35);
  background: rgba(16, 32, 52, 0.75);
  color: #dce8f4;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.create-location-row:hover {
  border-color: rgba(140, 190, 240, 0.45);
  background: rgba(22, 42, 68, 0.88);
}

.create-location-icon {
  color: #5fd49a;
  flex-shrink: 0;
}

.create-location-text {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
  color: #eaf2fa;
}

.create-location-chevron {
  color: #7a93ab;
  font-size: 1.25rem;
  font-weight: 600;
}

.create-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.4rem 0;
  font-weight: 600;
  color: #dce8f4;
  cursor: pointer;
}

.create-toggle input {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #35c482;
}

.create-hint,
.create-microcopy {
  margin: 0.25rem 0 0.5rem !important;
  font-size: 0.82rem !important;
}

.create-sharing-card .create-microcopy {
  margin-top: 0 !important;
  margin-bottom: 0.65rem !important;
}

.create-screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
  align-items: center;
}

.app-live .create-screen-actions .btn-secondary {
  background: rgba(233, 239, 247, 0.1);
  color: #dce8f4;
  border: 1px solid rgba(123, 154, 186, 0.35);
}

.profile-hero h3 {
  margin: 0;
  color: #f7fbff;
}

.profile-hero p {
  margin: 0.2rem 0 0;
  color: #ced9e4;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(35, 196, 130, 0.25);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #e7fff4;
}

.stats-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.62rem;
}

.stats-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 38, 62, 0.72);
  padding: 0.48rem;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 1.02rem;
}

.stats-grid span {
  font-size: 0.76rem;
  color: #b9c8d7;
}

.stats-grid-compact strong {
  font-size: 0.95rem;
  color: #eff6ff;
}

.stats-grid-compact span {
  font-size: 0.72rem;
}

.profile-sections {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.68rem;
  flex-wrap: wrap;
}

.profile-sections-spaced {
  margin-bottom: 0.72rem;
}

.profile-sections button {
  border: 1px solid rgba(123, 154, 186, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  background: rgba(35, 55, 79, 0.9);
  color: #dce8f4;
  cursor: pointer;
}

.now-feed-card {
  border-radius: 16px;
  border-color: rgba(140, 174, 210, 0.38);
  background: linear-gradient(160deg, rgba(46, 67, 94, 0.9), rgba(36, 56, 80, 0.88));
}

.now-map-preview {
  border-radius: 12px;
  min-height: 138px;
  display: grid;
  place-items: center;
  color: #e3f0ff;
  background: linear-gradient(145deg, rgba(74, 154, 112, 0.52), rgba(72, 122, 188, 0.46));
  margin-bottom: 0.65rem;
  font-weight: 700;
  justify-items: start;
  align-content: start;
  padding: 0.95rem;
}

.now-list {
  display: grid;
  gap: 0.5rem;
}

.now-row {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(162, 188, 218, 0.36);
  border-radius: 11px;
  background: rgba(20, 38, 60, 0.72);
  color: #f0f7ff;
  padding: 0.55rem 0.62rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.app-live .now-feed-card {
  border-color: rgba(140, 174, 210, 0.46);
  background: linear-gradient(160deg, rgba(38, 58, 84, 0.94), rgba(28, 46, 70, 0.92));
}

.app-live .now-feed-card .now-feed-title {
  color: #f4f9ff;
}

.app-live .now-feed-card .now-feed-lead {
  color: #d5e4f2;
}

.app-live .now-feed-card .now-map-preview {
  color: #f3f8fd;
}

.app-live .feed-card button.now-row {
  border: 1px solid rgba(162, 188, 218, 0.4);
  background: rgba(18, 36, 58, 0.86);
  color: #f1f8ff;
  font-size: 0.88rem;
}

.app-live .feed-card button.now-row:hover {
  background: rgba(26, 48, 73, 0.92);
  border-color: rgba(175, 202, 229, 0.56);
}

.app-live .feed-card button.now-row small {
  color: #d3e3f2;
}

.app-live .feed-card button.now-row .now-dot {
  color: #a9f0c8;
}

.now-row small {
  display: block;
  color: #d0e0f0;
  margin-top: 0.15rem;
}

.now-dot {
  color: #9de6bf;
}

.my-events-tabs {
  margin-top: 0.3rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(123, 154, 186, 0.3);
  border-radius: 13px;
  padding: 0.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  background: rgba(35, 55, 79, 0.8);
}

.my-events-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 0.5rem 0.4rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: #cfdeec;
  background: transparent;
}

.my-events-tabs button.active {
  background: rgba(35, 196, 130, 0.22);
  color: #eafff4;
}

.my-events-card {
  border-color: rgba(123, 154, 186, 0.32);
}

.invite-byline {
  margin: 0;
  color: #b6cadf;
  font-size: 0.8rem;
  font-weight: 700;
}

.my-events-rsvp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  margin: 0.55rem 0;
}

.my-events-rsvp button {
  border-radius: 999px;
  border: 1px solid rgba(123, 154, 186, 0.28);
  background: rgba(35, 55, 79, 0.78);
  color: #dce8f4;
  padding: 0.38rem 0.45rem;
}

.my-events-rsvp button.is-active {
  background: rgba(35, 196, 130, 0.26);
  color: #ecfff6;
}

.my-events-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.my-events-page-head {
  margin-bottom: 0.35rem;
}

.my-events-page-title {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f2f7fc;
}

.my-events-invite-card .my-events-venue-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.2rem 0 0.35rem;
  color: #f2f7fc;
}

.my-events-invite-meta {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #b8c5d4;
}

.my-events-actions--invite-secondary {
  margin-top: 0.35rem;
}

.my-events-actions--invite-share {
  margin-top: 0.35rem;
}

.my-events-accept-btn {
  width: 100%;
  margin-top: 0.55rem;
}

.btn-secondary-ghost {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(123, 154, 186, 0.45);
  background: rgba(25, 45, 68, 0.65);
  color: #dce8f4;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.48rem 0.5rem;
  cursor: pointer;
}

.btn-secondary-ghost:hover {
  background: rgba(35, 55, 79, 0.95);
}

.my-events-feed-cta {
  margin-top: 0.75rem;
}

.my-events-feed-cta .btn-primary {
  width: 100%;
}

.my-events-empty-card .my-events-empty-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #eaf2fa;
}

.my-events-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.my-events-list-row {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(123, 154, 186, 0.32);
  border-radius: 12px;
  background: rgba(28, 48, 72, 0.75);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  color: inherit;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.my-events-list-row:hover {
  background: rgba(38, 62, 92, 0.88);
  border-color: rgba(140, 178, 210, 0.45);
}

.my-events-list-title {
  font-size: 1rem;
  font-weight: 800;
  color: #eaf2fa;
  line-height: 1.25;
}

.my-events-list-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9eb0c4;
  line-height: 1.35;
}

.my-events-list-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a8fa3;
  margin-top: 0.15rem;
}

.event-post-card {
  background: rgba(37, 57, 80, 0.92);
  border-color: rgba(123, 154, 186, 0.34);
}

.event-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.event-post-pill {
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(35, 196, 130, 0.22);
  color: #e6fff4;
}

.event-post-event {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 0.44rem 0.58rem;
  font-weight: 700;
  background: rgba(233, 239, 247, 0.14);
  color: #ecf4fb;
  margin-bottom: 0.45rem;
}

.event-post-body {
  color: #d6e3ef;
  font-weight: 600;
  margin: 0 0 0.55rem;
}

.event-post-actions {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.event-post-comments {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.4rem;
}

.event-post-comments p {
  margin: 0;
  padding: 0.5rem 0.58rem;
  border-radius: 10px;
  background: rgba(233, 239, 247, 0.12);
  color: #dde8f4;
}

.event-post-comment-input {
  margin: 0.15rem 0 0;
}

.event-post-comment-input input {
  background: rgba(17, 34, 54, 0.72);
  border-color: rgba(123, 154, 186, 0.3);
  color: #e8f3ff;
}

.event-post-memory-btn,
.event-post-comments-btn {
  border: 1px solid rgba(123, 154, 186, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(35, 196, 130, 0.18);
  color: #eafff3;
  font-weight: 700;
}

.event-post-comments-btn {
  background: rgba(233, 239, 247, 0.14);
  color: #dde8f4;
}

.event-post-memory-btn:disabled,
.event-post-comments-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.profile-sections button.is-active {
  background: #1b7a55;
  color: #f4fff9;
  font-weight: 700;
}

.interest-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.interest-chip {
  border-radius: 999px;
  background: #2f4a5d;
  color: #f0f6fa;
  padding: 0.34rem 0.64rem;
  font-size: 0.78rem;
}

.interest-chip-btn {
  border: 1px solid rgba(155, 179, 206, 0.24);
  border-radius: 999px;
  background: rgba(31, 56, 76, 0.85);
  color: #eff6fd;
  padding: 0.34rem 0.64rem;
  font-size: 0.78rem;
}

.interest-chip-btn.is-selected {
  background: rgba(35, 196, 130, 0.28);
  border-color: rgba(35, 196, 130, 0.5);
}

.interest-chip-btn.is-removed {
  background: rgba(255, 105, 74, 0.2);
  border-color: rgba(255, 145, 122, 0.5);
}

.recently-removed {
  margin-top: 0.55rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.memories-empty h4 {
  color: #eef6ff;
}

.invite-list p {
  margin: 0.45rem 0;
}

.map-placeholder {
  min-height: 120px;
  border: 1px dashed rgba(155, 179, 206, 0.36);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #b8cbe0;
  background: rgba(17, 38, 64, 0.45);
}

.now-feed-container {
  position: relative;
  border: 1px solid rgba(130, 168, 196, 0.35);
  border-radius: 22px;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  background: #22263b;
}

.now-feed-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(170deg, rgba(34, 38, 59, 0.5), rgba(34, 38, 59, 0.3)),
    radial-gradient(circle at 18% 18%, rgba(224, 224, 224, 0.12), transparent 44%);
}

.now-feed-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.22) invert(0.92) hue-rotate(178deg) saturate(0.66) brightness(0.72) contrast(1.08);
}

.now-feed-overlay {
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 5.2rem;
  transform: translateY(-50%);
  max-height: calc(100% - 2rem);
  border-radius: 16px;
  z-index: 2;
  border: 1px solid rgba(224, 224, 224, 0.5);
  background: rgba(224, 224, 224, 0.58);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: 0 14px 30px rgba(11, 16, 30, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-right-rail:has(.side-nav:not(.is-collapsed)) .now-feed-overlay {
  right: min(18.5rem, 34%);
}

.now-feed-overlay .now-feed-title {
  color: #1e364c;
  margin-bottom: 0.2rem;
}

.now-feed-overlay .now-feed-lead {
  color: #3e5569;
  margin-bottom: 0.55rem;
}

.now-feed-overlay .now-list {
  overflow-y: auto;
  padding-right: 0.15rem;
}

.now-feed-overlay .now-row {
  border-color: rgba(132, 164, 190, 0.46);
  background: rgba(252, 254, 255, 0.9);
  color: #1f374b;
}

.now-feed-overlay .now-row:hover {
  background: rgba(240, 247, 252, 0.95);
}

.now-feed-overlay .now-row small {
  color: #4f677c;
}

.now-feed-overlay .now-dot {
  color: #1a9361;
}

.side-nav {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(228px, 23vw, 280px);
  border: 1px solid rgba(190, 203, 216, 0.8);
  border-radius: 18px;
  background: linear-gradient(175deg, rgba(250, 252, 254, 0.97), rgba(240, 246, 251, 0.94));
  box-shadow: -6px 0 20px rgba(18, 35, 52, 0.08), inset 1px 0 0 rgba(255, 255, 255, 0.72);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: width 0.22s ease, box-shadow 0.2s ease;
  transform-origin: right center;
}

.side-nav-toggle {
  border: 1px solid rgba(177, 195, 211, 0.8);
  border-radius: 999px;
  background: rgba(251, 253, 255, 0.96);
  color: #35516a;
  width: 100%;
  min-height: 34px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.side-nav-tabs,
.side-nav-actions {
  display: grid;
  gap: 0.35rem;
}

.side-nav button[data-tab],
.side-nav-action {
  border: 1px solid rgba(180, 198, 213, 0.72);
  border-radius: 11px;
  background: rgba(248, 251, 254, 0.94);
  color: #35516a;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.52rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.my-events-standalone-row {
  grid-template-columns: minmax(0, min(96vw, var(--app-shell-column-max-width)));
  justify-content: center;
}

.my-events-standalone-card {
  max-width: min(100%, var(--app-shell-column-max-width));
  padding-top: 1.05rem;
}

.my-events-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.my-events-layout-grid.has-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 0.8rem;
  align-items: start;
}

.my-events-detail-card {
  position: sticky;
  top: 0.85rem;
  margin: 0;
}

.my-events-detail-shell {
  min-width: 0;
}

.my-events-detail-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f2f7fc;
}

.my-events-detail-meta {
  margin: 0.38rem 0 0;
  color: #c3d2e2;
  font-size: 0.86rem;
  font-weight: 600;
}

.my-events-detail-pitch {
  margin: 0.46rem 0 0;
  color: #d5e1ed;
}

.my-events-detail-rows {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.34rem;
}

.my-events-detail-rows p {
  margin: 0;
  color: #d9e6f3;
}

.my-events-detail-actions {
  margin-top: 0.7rem;
}

.my-events-return-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.78rem;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.my-events-standalone-card .my-events-page-head {
  margin-top: 0.25rem;
}

@media (max-width: 980px) {
  .my-events-layout-grid.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-events-detail-card {
    position: static;
    margin-top: 0.2rem;
  }
}

.side-nav button[data-tab]:hover,
.side-nav-action:hover,
.side-nav-profile:hover,
.side-nav-toggle:hover {
  background: rgba(238, 246, 252, 0.98);
  border-color: rgba(147, 177, 201, 0.86);
}

.side-nav button[data-tab].active,
.side-nav-action--accent {
  background: linear-gradient(140deg, rgba(31, 160, 106, 0.9), rgba(20, 124, 83, 0.92));
  border-color: rgba(105, 210, 165, 0.52);
  color: #f5fffb;
}

.side-nav-footer-actions {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(182, 200, 214, 0.8);
  display: grid;
  gap: 0.4rem;
}

.side-nav-profile {
  border: 1px solid rgba(180, 198, 213, 0.72);
  border-radius: 11px;
  background: rgba(248, 251, 254, 0.94);
  color: #35516a;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.52rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.side-nav-profile.is-active {
  background: rgba(232, 244, 252, 0.98);
  border-color: rgba(141, 173, 199, 0.9);
}

.side-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(31, 160, 106, 0.9), rgba(20, 124, 83, 0.92));
  color: #f5fffb;
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 24px;
}

.side-nav-signout {
  color: #8d2f35;
}

.side-nav-signout .tab-icon svg {
  fill: currentColor;
}

.side-nav .tab-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.side-nav .tab-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.side-nav .tab-label {
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

.side-nav.is-collapsed {
  width: 64px;
}

.side-nav.is-collapsed .tab-label {
  opacity: 0;
  display: none;
}

.side-nav.is-collapsed .side-nav-avatar {
  margin: 0;
}

.side-nav.is-collapsed button[data-tab],
.side-nav.is-collapsed .side-nav-action,
.side-nav.is-collapsed .side-nav-profile {
  justify-content: center;
  padding-inline: 0.35rem;
}

.side-nav.is-collapsed [data-tooltip] {
  position: relative;
}

@media (hover: hover) {
  .side-nav.is-collapsed [data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 36, 53, 0.94);
    color: #f2f8ff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 8;
  }
}

.tabs {
  margin-top: 0.85rem;
  border: 1px solid var(--chrome-border);
  border-radius: 999px;
  padding: 0.32rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.12rem;
  background: linear-gradient(155deg, var(--chrome-bg-a), var(--chrome-bg-b));
  box-shadow:
    0 12px 28px rgba(4, 16, 29, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tabs-external {
  margin-top: 0;
  margin-bottom: 0;
}

.app-stage:has(.tabs-external) .app-tab-view > .app-card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.app-stage:has(.tabs-external) .tabs-external {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.app-live .tabs {
  border-color: var(--chrome-border);
  background: linear-gradient(155deg, var(--chrome-bg-a), var(--chrome-bg-b));
}

.tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.42rem 0.35rem 0.38rem;
  color: var(--chrome-text);
  cursor: pointer;
  font-weight: 700;
  display: grid;
  justify-items: center;
  gap: 0.16rem;
}

.app-live .tabs button {
  color: var(--chrome-text);
}

.tab-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.tab-icon svg {
  width: 18px;
  height: 18px;
  fill: currentcolor;
}

.tab-label {
  font-size: 0.7rem;
  line-height: 1;
}

.tabs button.active {
  background: transparent;
  color: var(--chrome-active);
}

.app-live .tabs button.active {
  background: transparent;
  color: var(--chrome-active);
}

.search-live {
  margin-top: 0;
}

.search-live input {
  background: rgba(56, 75, 99, 0.82);
  border-color: rgba(155, 179, 206, 0.22);
  color: #ecf4fb;
}

.fab-live {
  border: 0;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  line-height: 1;
  background: #ff694a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 105, 74, 0.38);
  margin-left: auto;
  display: block;
}

.messages-fab-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.2rem;
}

.messages-fab {
  border: 0;
  border-radius: 999px;
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #ff7a5c, #ff4f3a);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 90, 70, 0.42);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.messages-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 90, 70, 0.5);
}

.messages-fab:active {
  transform: translateY(0);
}

.messages-tab {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.messages-tab-header {
  margin: 0;
  padding: 0.15rem 0 0;
}

.messages-tab-title {
  margin: 0;
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eaf3fb;
}

.messages-tab-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #9eb0c4;
}

.feed-tab {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feed-tab-header {
  margin: 0;
  padding: 0.15rem 0 0;
}

.feed-tab-title {
  margin: 0;
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eaf3fb;
}

.feed-tab-date {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c5d4e2;
}

.feed-tab-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #9eb0c4;
  max-width: 36rem;
}

.feed-tab .feed-mode-row {
  margin-bottom: 0.45rem;
}

.now-feed-title {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #f3f8fd;
}

.now-feed-lead {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #c7d8e9;
}

.profile-interests-card,
.profile-organized-card {
  border-color: rgba(140, 174, 210, 0.35);
  background: linear-gradient(160deg, rgba(43, 64, 91, 0.9), rgba(34, 54, 78, 0.88));
}

.profile-organized-card h4,
.profile-interests-card h4,
.profile-interests-card .profile-section-heading {
  color: #f2f8ff;
}

.profile-organized-meta {
  color: #d5e4f2;
  line-height: 1.4;
}

.profile-organized-card .copy,
.profile-interests-card .copy {
  color: #cddded;
}

.profile-organized-byline {
  color: #bdd1e4;
}

.profile-interests-meta,
.profile-interests-hint {
  color: #c7d8e9 !important;
  line-height: 1.42;
}

.profile-interests-hint .link-like {
  color: #9fddff;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline;
  line-height: inherit;
  font-size: inherit;
  box-shadow: none;
}

.profile-interests-hint .link-like:hover {
  color: #c3ebff;
}

.app-live .profile-interests-card .profile-interest-add-btn {
  border: 1px solid rgba(111, 211, 168, 0.62);
  background: linear-gradient(140deg, rgba(31, 160, 106, 0.92), rgba(22, 126, 84, 0.9));
  color: #f4fffa;
}

.app-live .profile-interests-card .profile-interest-add-btn:hover {
  background: linear-gradient(140deg, rgba(37, 182, 121, 0.95), rgba(25, 148, 98, 0.92));
}

.app-live button[data-action='profile-create-event'] {
  border: 1px solid rgba(95, 214, 178, 0.6);
  background: linear-gradient(95deg, #14836b, #1fa06a);
  color: #f5fffb;
  font-weight: 800;
}

.app-live button[data-action='profile-create-event']:hover {
  background: linear-gradient(95deg, #1b9579, #25b57a);
}

.messages-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.messages-search-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9bab;
}

.message-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.message-thread-row {
  width: 100%;
  border: 1px solid rgba(155, 179, 206, 0.2);
  border-radius: 14px;
  background: rgba(44, 64, 88, 0.55);
  color: #eaf3fb;
  padding: 0.62rem 0.72rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.message-thread-row:hover {
  background: rgba(52, 76, 102, 0.72);
  border-color: rgba(123, 198, 173, 0.35);
}

.message-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(47, 95, 106, 0.95), rgba(53, 83, 108, 0.85));
  color: #deecfb;
  border: 1px solid rgba(155, 179, 206, 0.25);
}

.message-thread-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.message-thread-title {
  font-weight: 600;
  font-size: 1rem;
  color: #eaf3fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-thread-preview {
  font-size: 0.84rem;
  color: #9eb0c4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-empty-state {
  border: 1px dashed rgba(155, 179, 206, 0.28);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(36, 52, 72, 0.45);
}

.messages-empty-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #d9e6f2;
}

.messages-composer-card {
  border: 1px solid rgba(123, 198, 173, 0.35);
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(165deg, rgba(42, 68, 88, 0.92), rgba(38, 56, 76, 0.88));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.messages-composer-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #eaf3fb;
}

.messages-composer-search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9bab;
}

.messages-composer-search input {
  margin-top: 0.15rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  background: rgba(56, 75, 99, 0.82);
  border: 1px solid rgba(155, 179, 206, 0.22);
  border-radius: 10px;
  color: #ecf4fb;
  padding: 0.55rem 0.65rem;
}

.messages-composer-done {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.thread-conversation-card {
  border: 1px solid rgba(155, 179, 206, 0.22);
  border-radius: 16px;
  padding: 0.85rem 1rem 1rem;
  background: rgba(38, 56, 76, 0.88);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.thread-conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.thread-conversation-head-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.share-flow-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.45;
}

.share-flow-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thread-conversation-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: #eaf3fb;
}

.thread-conversation-sub {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: #9eb0c4;
  line-height: 1.35;
}

.thread-conversation-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 10px;
  background: rgba(56, 75, 99, 0.65);
  color: #c8d8e8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.thread-conversation-close:hover {
  background: rgba(72, 95, 124, 0.85);
  color: #fff;
}

.message-bubble-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  border-radius: 12px;
  background: rgba(28, 42, 58, 0.45);
}

.message-bubble {
  max-width: 92%;
  padding: 0.45rem 0.65rem 0.55rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.message-bubble.is-self {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(32, 179, 118, 0.45), rgba(28, 120, 95, 0.35));
  border: 1px solid rgba(123, 198, 173, 0.35);
}

.message-bubble.is-other {
  align-self: flex-start;
  background: rgba(52, 72, 96, 0.75);
  border: 1px solid rgba(155, 179, 206, 0.2);
}

.message-bubble-author {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9bab;
}

.message-bubble-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #eaf3fb;
  word-break: break-word;
}

.thread-compose-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #b8c5d4;
}

.thread-compose-label textarea {
  resize: vertical;
  min-height: 3rem;
  background: rgba(56, 75, 99, 0.82);
  border: 1px solid rgba(155, 179, 206, 0.22);
  border-radius: 10px;
  color: #ecf4fb;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.thread-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.thread-empty-copy {
  margin: 0.5rem 0.35rem;
  text-align: center;
  color: #8a9bab;
}

.new-message-list {
  display: grid;
  gap: 0.4rem;
}

.new-message-friend {
  width: 100%;
  border: 1px solid rgba(155, 179, 206, 0.22);
  border-radius: 10px;
  background: rgba(44, 64, 88, 0.72);
  color: #eaf3fb;
  padding: 0.52rem 0.62rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.new-message-friend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(47, 95, 106, 0.95), rgba(53, 83, 108, 0.85));
  color: #deecfb;
}

.new-message-friend-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.new-message-friend-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-message-friend-sub {
  font-size: 0.78rem;
  color: #8a9bab;
}

.new-message-soon {
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 105, 74, 0.35);
  color: #ffc9bc;
  padding: 0.16rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.new-message-friend small {
  border-radius: 999px;
  background: #ff694a;
  color: #fff;
  padding: 0.16rem 0.45rem;
  font-size: 0.7rem;
}

.notifications-tab {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notifications-tab-header {
  margin: 0;
  padding: 0.15rem 0 0;
}

.notifications-tab-title {
  margin: 0;
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eaf3fb;
}

.notifications-tab-sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #9eb0c4;
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.notifications-list-item {
  margin: 0;
  padding: 0;
}

.notification-row {
  width: 100%;
  border: 1px solid rgba(155, 179, 206, 0.2);
  border-radius: 14px;
  background: rgba(44, 64, 88, 0.55);
  color: #eaf3fb;
  padding: 0.62rem 0.72rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font: inherit;
}

.notification-row:hover {
  background: rgba(52, 76, 102, 0.72);
  border-color: rgba(123, 198, 173, 0.35);
}

.notification-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(255, 105, 74, 0.35), rgba(200, 90, 55, 0.25));
  color: #ffe8e0;
  border: 1px solid rgba(255, 140, 110, 0.35);
}

.notification-row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.notification-row-title {
  font-weight: 600;
  font-size: 1rem;
  color: #eaf3fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-row-preview {
  font-size: 0.84rem;
  color: #9eb0c4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.notification-row-chevron {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 300;
  color: #7a8fa3;
  line-height: 1;
}

.notifications-empty-state {
  border: 1px dashed rgba(155, 179, 206, 0.28);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(36, 52, 72, 0.45);
}

.notifications-empty-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #d9e6f2;
}

.notification-groups {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.notifications-tab .notification-groups {
  margin-bottom: 0.35rem;
}

.notification-group {
  border: 1px solid rgba(155, 179, 206, 0.24);
  border-radius: 14px;
  background: rgba(55, 74, 99, 0.78);
  padding: 0.62rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d9e6f2;
  width: 100%;
  text-align: left;
}

.notification-group.is-active {
  background: linear-gradient(145deg, rgba(47, 95, 106, 0.92), rgba(53, 83, 108, 0.9));
  border-color: rgba(123, 198, 173, 0.5);
}

.notification-group span {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.04rem;
}

.notification-group span i {
  font-style: normal;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-grid;
  place-items: center;
  color: #deecfb;
}

.notification-group span i svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentcolor;
}

.notification-group strong {
  min-width: 26px;
  text-align: center;
  border-radius: 999px;
  background: rgba(13, 32, 53, 0.8);
  padding: 0.12rem 0.4rem;
  pointer-events: none;
  font-size: 1rem;
  font-weight: 800;
}

.notification-group.is-highlighted {
  background: linear-gradient(145deg, rgba(47, 95, 106, 0.85), rgba(53, 83, 108, 0.78));
}

.site-footer {
  width: min(96vw, var(--layout-max-width));
  justify-self: start;
  border: 1px solid rgba(31, 67, 86, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(244, 250, 253, 0.72));
  backdrop-filter: blur(12px);
  padding: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer width matches main app column (7in). Landing / sign-in keeps .site-footer default (--layout-max-width). */
.app-shell:not(:has(.landing-auth-layout)) .site-footer {
  width: min(96vw, var(--app-shell-column-max-width));
}

.site-footer-copy {
  width: 100%;
  text-align: center;
  color: #4a647f;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer a,
.utility-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

/* Supporting pages */

.page-shell {
  min-height: 100vh;
  padding: 1rem;
}

.beta-shell,
.security-shell {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(10, 28, 20, 0.18);
  padding: 1.2rem;
}

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

.stack-form {
  display: grid;
  gap: 0.8rem;
}

.row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.primary-btn {
  border: 0;
  border-radius: 13px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
}

.status-text {
  margin: 0;
  min-height: 1.2rem;
  color: var(--primary);
  font-size: 0.88rem;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.security-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.85rem;
}

@media (max-width: 760px) {
  .app-shell:has(.landing-auth-layout) {
    overflow: hidden;
  }

  .app-shell {
    padding: 0.55rem 0.55rem 0.5rem;
  }

  .app-card {
    border-radius: 18px;
    padding: 0.9rem;
    min-height: 0;
  }

  .app-stage {
    width: 100%;
    overflow: visible;
    grid-template-rows: minmax(0, 1fr);
  }

  .app-main-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .app-main-row .app-stage {
    grid-column: 1;
  }

  .landing-auth-layout {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }

  .landing-collage-panel {
    flex: 0 0 auto;
    height: auto;
    padding: 0.8rem;
    min-height: max-content;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 0.8rem;
    overflow: hidden;
  }

  .landing-hero {
    width: 100%;
    margin: 0;
  }

  .landing-collage {
    width: min(100%, 300px);
    aspect-ratio: 1;
  }

  .landing-orb-a,
  .landing-orb-b {
    width: 76px;
    height: 76px;
  }

  .landing-auth-panel {
    flex: 0 0 auto;
    position: static;
    transform: none;
    max-width: none;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.15rem 0.1rem 0.9rem;
  }

  .landing-auth-panel .legal {
    margin-bottom: 0.2rem;
  }

  .app-main-row--with-rail .now-feed-container {
    display: none;
  }

  .app-main-row--with-rail .app-right-rail {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
  }

  .app-main-row--with-rail .side-nav {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    bottom: auto;
    width: 64px;
    padding: 0.35rem;
    gap: 0.3rem;
    pointer-events: auto;
  }

  .app-main-row--with-rail .side-nav:not(.is-collapsed) {
    width: min(68vw, 270px);
  }

  .app-main-row--with-rail .side-nav.is-collapsed .tab-label {
    display: none;
  }

  .app-main-row--with-rail .side-nav:not(.is-collapsed) .tab-label {
    display: inline;
  }

  .app-main-row--with-rail .side-nav button[data-tab],
  .app-main-row--with-rail .side-nav .side-nav-action,
  .app-main-row--with-rail .side-nav .side-nav-profile {
    min-height: 38px;
  }

  .app-main-row--with-rail .side-nav .tab-icon,
  .app-main-row--with-rail .side-nav .tab-icon svg {
    width: 20px;
    height: 20px;
  }

  .settings-menu .settings-row {
    min-height: 47px;
    font-size: 1rem;
  }

  .settings-detail-card .btn {
    min-height: 42px;
    font-size: 0.94rem;
  }

  .settings-detail-card .settings-field-group .btn {
    width: 100%;
    min-width: 0;
  }

  .settings-detail-card .settings-logout-actions {
    grid-template-columns: 1fr;
  }

  .settings-detail-card button:not(.btn):not(.back-link):not(.settings-seg) {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .profile-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-stat-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-two,
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* Add Memory screen + Memories tab + thread memory status (iOS parity) */
.app-live.add-memory-screen .add-memory-title {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #eaf2fa;
}

.app-live.add-memory-screen .add-memory-subtitle {
  margin: 0 0 1rem;
  color: #9dadc0;
  font-size: 0.95rem;
  font-weight: 600;
}

.app-live.add-memory-screen .add-memory-textarea {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(123, 154, 186, 0.35);
  padding: 0.75rem;
  background: rgba(15, 28, 42, 0.65);
  color: #eaf2fa;
  font: inherit;
  resize: vertical;
  min-height: 6rem;
}

.app-live.add-memory-screen .memory-photo-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  color: #b8c5d4;
  font-size: 0.92rem;
}

.app-live.add-memory-screen .add-memory-footnote {
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.memory-feed-card .memory-feed-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.memory-feed-card .memory-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 99, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #7dd4a8;
  flex-shrink: 0;
}

.memory-feed-meta .memory-author {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #eaf2fa;
}

.memory-event-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7ec8ff;
  cursor: pointer;
  text-align: left;
}

.memory-pill {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(26, 99, 69, 0.4);
  color: #b8f0d0;
}

.memory-feed-body {
  margin: 0.4rem 0;
  line-height: 1.45;
  color: #cfe0f0;
}

.memory-feed-time {
  margin: 0;
  font-size: 0.78rem;
  color: #8a9bab;
}

.thread-memory-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #b8c5d4;
  margin: 0.5rem 0;
}

.thread-memory-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c97a2a;
  flex-shrink: 0;
}

.thread-memory-dot.is-unlocked {
  background: #2ecc71;
}

.thread-memory-actions {
  margin-bottom: 0.65rem;
}

/* F52 / F53 feedback confirmation (web parity with iOS) */
.feedback-confirm-screen .feedback-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  min-height: min(52vh, 420px);
  padding: 0.5rem 0.25rem 1rem;
  max-width: 26rem;
  margin: 0 auto;
}

.feedback-confirm-screen .feedback-confirm-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: #eaf2fa;
  margin: 0;
}

.feedback-confirm-screen .feedback-confirm-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #9eb0c4;
}

.feedback-confirm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  margin-bottom: 0.35rem;
}

.feedback-confirm-icon--heart {
  color: #ff6b9d;
  background: rgba(255, 107, 157, 0.12);
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.18);
}

.feedback-confirm-icon--dismiss {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  box-shadow: 0 12px 40px rgba(255, 80, 80, 0.15);
}

.feedback-confirm-screen .btn-primary {
  margin-top: 0.75rem;
  min-width: 12rem;
}
