:root {
  --bg-color: #FFFFFF;
  --navy: #0D1B2E;      /* Midnight Blue */
  --navy-light: #1A304C;
  --navy-ultra-light: rgba(13, 27, 46, 0.05);
  --navy-opaque: rgba(13, 27, 46, 0.85);
  
  /* Accent colors to make the app feel energetic and premium */
  --accent-color: #FF5A5F; /* Active Coral */
  --accent-hover: #E04E52;
  --accent-light: rgba(255, 90, 95, 0.1);
  --green: #2EC4B6;
  --green-light: rgba(46, 196, 182, 0.1);
  --card-bg: #FFFFFF;
  --border-color: rgba(13, 27, 46, 0.1);
  --text-muted: #677484;
  --shadow: 0 8px 30px rgba(13, 27, 46, 0.06);
  --shadow-lg: 0 16px 40px rgba(13, 27, 46, 0.12);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: #F4F6F8;
  color: var(--navy);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Application Shell - Centers on desktop, full screen on mobile */
#app-shell {
  width: 100%;
  max-width: 450px;
  height: 100vh;
  height: 100dvh;
  max-height: 900px;
  background-color: var(--bg-color);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (max-width: 480px) {
  #app-shell {
    max-height: 100vh;
    border-radius: 0;
  }
  body {
    background-color: var(--bg-color);
  }
}

@media (min-width: 481px) {
  #app-shell {
    border-radius: 32px;
    border: 8px solid var(--navy);
    height: 95vh;
    height: 95dvh;
  }
}

/* Splash Screen & Heartbeat */
#splash-screen {
  position: absolute;
  inset: 0;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.splash-logo-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.splash-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 20px;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-top: 24px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.splash-title span {
  color: var(--accent-color);
}

.splash-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo {
    animation: none;
  }
}

/* Auth Screens */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
}

.auth-container {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.auth-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--navy-ultra-light);
}

/* Image Upload Preview Container */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--navy-ultra-light);
  border: 2px dashed var(--navy);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

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

.avatar-preview i {
  font-size: 1.5rem;
  color: var(--navy);
}

.profile-avatar-upload {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto 16px auto;
  flex-wrap: wrap;
}

.profile-avatar-preview {
  border-style: solid;
  background-color: var(--navy);
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--navy-light);
  transform: translateY(-1px);
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy-ultra-light);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

/* Main Dashboard Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: rgba(250, 246, 236, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.streak-badge:hover {
  transform: scale(1.05);
}

/* Scrollable Content Container */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 80px 20px;
  position: relative;
  scrollbar-width: none;
}

.content-area::-webkit-scrollbar {
  display: none;
}

/* Bottom Tab Navigation */
.nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  padding: 8px 0;
}

.nav-item i {
  font-size: 1.3rem;
  transition: var(--transition);
}

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

.nav-item.active i {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Feed Screen */
.post-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-profile-link {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
}

.post-profile-link:focus-visible,
.post-author-info:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-info {
  flex: 1;
  border-radius: 8px;
  cursor: pointer;
}

.post-author-info:hover .post-author-name {
  color: var(--accent-color);
}

.on-jog-badge {
  border: 0;
  background-color: var(--accent-color);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 9px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.profile-on-jog {
  width: auto;
}

.post-author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-caption {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hashtag-chip {
  border: 0;
  background: transparent;
  color: var(--accent-color);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0 1px;
}

.post-image-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  aspect-ratio: 16/10;
  background-color: var(--navy-ultra-light);
}

.post-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-photo-grid {
  display: grid;
  gap: 3px;
  background-color: var(--card-bg);
}

.post-photo-grid.photo-count-1 {
  grid-template-columns: 1fr;
}

.post-photo-grid.photo-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.post-photo-grid.photo-count-3 {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.post-photo-grid.photo-count-3 .post-photo-tile:first-child {
  grid-row: 1 / span 2;
}

.post-photo-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: var(--navy-ultra-light);
}

.post-photo-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(13, 27, 46, 0.62);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
}

.post-session-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--navy-opaque);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.runner-profile-modal {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.runner-profile-modal h3 {
  font-family: var(--font-heading);
  margin: 4px 0 0;
}

.runner-profile-modal p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.runner-profile-bio {
  color: var(--navy);
  font-weight: 700;
}

.profile-stats-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.profile-stats-row span {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.profile-stats-row strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.post-actions {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.post-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.post-action-btn i {
  font-size: 1.1rem;
}

.post-action-btn.liked {
  color: var(--accent-color);
}

.post-action-btn.liked i {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-session-metrics {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
}

.post-session-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background-color: var(--navy-ultra-light);
}

.post-comments-list {
  background-color: var(--navy-ultra-light);
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 0.86rem;
}

.comment-item {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-bubble {
  display: inline-grid;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: var(--card-bg);
  color: var(--navy);
}

.comment-bubble strong {
  font-size: 0.78rem;
}

.comment-reply-btn {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0 0 8px;
}

.comment-replies {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 2px solid var(--border-color);
}

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

.selected-photo-preview span {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--navy-ultra-light);
}

.selected-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-photo-preview em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(13, 27, 46, 0.62);
  color: #FFFFFF;
  font-style: normal;
  font-weight: 900;
}

.screen-back-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background-color: rgba(250, 246, 236, 0.12);
  color: #FAF6EC;
  cursor: pointer;
  flex: 0 0 auto;
}

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

.skeleton-card {
  padding: 16px;
  border-radius: 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.skeleton-avatar,
.skeleton-lines i,
.skeleton-block {
  display: block;
  background: linear-gradient(90deg, rgba(13, 27, 46, 0.06), rgba(13, 27, 46, 0.13), rgba(13, 27, 46, 0.06));
  background-size: 220% 100%;
  animation: skeletonPulse 1.15s ease-in-out infinite;
}

.skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.skeleton-lines {
  flex: 1;
  display: grid;
  gap: 8px;
}

.skeleton-lines i {
  height: 11px;
  border-radius: 999px;
}

.skeleton-lines i:last-child {
  width: 56%;
}

.skeleton-block {
  height: 132px;
  border-radius: 12px;
  margin-top: 10px;
}

.skeleton-block.short {
  width: 62%;
  height: 14px;
}

@keyframes skeletonPulse {
  to { background-position: -220% 0; }
}

.feed-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.feed-search i {
  color: var(--text-muted);
}

.feed-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
}

.feed-recommendations {
  margin-bottom: 14px;
}

.feed-recommendations-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px 2px;
}

.feed-recommendations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px 2px;
}

.feed-recommendations-head .feed-recommendations-title {
  margin: 0;
}

.feed-recommendations-head button,
.screen-inline-back {
  border: 0;
  background: transparent;
  color: var(--accent-color);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.screen-inline-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background-color: var(--navy-ultra-light);
  color: var(--navy);
}

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

.runner-recommendation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.runner-recommendation-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
}

.runner-recommendation-profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.runner-recommendation-profile span {
  display: grid;
  min-width: 0;
}

.runner-recommendation-profile strong,
.runner-recommendation-profile em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.runner-recommendation-profile em {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.runner-recommendation-follow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background-color: var(--navy);
  color: var(--bg-color);
  cursor: pointer;
}

.private-profile-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  background-color: var(--accent-light);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.privacy-toggle-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background-color: var(--navy-ultra-light);
  text-align: left;
}

.privacy-toggle-copy {
  display: grid;
  gap: 4px;
}

.privacy-toggle-copy strong {
  font-family: var(--font-heading);
}

.privacy-toggle-copy span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.privacy-switch {
  display: inline-flex;
  cursor: pointer;
}

.privacy-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.privacy-switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background-color: rgba(13, 27, 46, 0.18);
  position: relative;
  transition: var(--transition);
}

.privacy-switch span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(13, 27, 46, 0.22);
  transition: var(--transition);
}

.privacy-switch input:checked + span {
  background-color: var(--accent-color);
}

.privacy-switch input:checked + span::after {
  transform: translateX(20px);
}

.legal-consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.legal-consent-row input {
  margin-top: 2px;
}

.legal-consent-row button {
  border: 0;
  background: transparent;
  color: var(--accent-color);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.legal-page {
  display: grid;
  gap: 10px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.45;
}

.legal-page h4 {
  margin-top: 6px;
  font-family: var(--font-heading);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Jog Session Panel */
.jog-panel-header {
  text-align: center;
  margin-bottom: 20px;
}

.jog-panel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.sync-status {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--border-color);
}

.sync-status.online {
  color: #126b3a;
  background-color: #e8f7ee;
}

.sync-status.offline {
  color: #8a4f00;
  background-color: #fff2d8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}

/* Live Map View */
#map-container {
  height: 280px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

#map {
  width: 100%;
  height: 100%;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  background-color: #e5e3db;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shared-session-map {
  width: 100%;
  height: 260px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #e5e3db;
  position: relative;
}

/* Controls during Run */
.run-controls {
  display: flex;
  gap: 12px;
}

.active-run-overlay {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.active-run-overlay.active {
  display: flex;
}

/* Music Integration Bar */
.music-bar {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.music-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-provider-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1DB954; /* Spotify green */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
}

.music-text {
  max-width: 220px;
}

.music-track {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-hits {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 14px;
  margin: -4px 0 16px 0;
  box-shadow: var(--shadow);
}

.spotify-hits-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.spotify-hits-title i {
  color: #1DB954;
}

.spotify-hit-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--border-color);
}

.spotify-hit-row img,
.spotify-hit-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--navy-ultra-light);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.spotify-hit-row strong,
.spotify-hit-row span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.spotify-hit-row strong {
  font-size: 0.83rem;
}

.spotify-hit-row span,
.spotify-empty {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.spotify-hit-row em {
  color: var(--accent-color);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

/* Communities Screen */
.community-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
}

.community-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background-color: var(--navy-ultra-light);
}

.community-details {
  flex: 1;
}

.community-name {
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.community-members-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.community-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Group Event Card */
.event-card {
  background-color: var(--navy-ultra-light);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  border: 1px solid rgba(13, 27, 46, 0.05);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.event-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.event-time-tag {
  background-color: var(--navy);
  color: var(--bg-color);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.poll-container {
  margin-top: 12px;
}

.poll-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.poll-option:hover {
  background-color: var(--navy-ultra-light);
}

.poll-option.selected {
  border-color: var(--accent-color);
  background-color: var(--accent-light);
  color: var(--accent-color);
}

/* Merch Store */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.merch-note {
  margin: -4px 0 14px;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.merch-admin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.merch-admin-panel div {
  display: grid;
  min-width: 0;
}

.merch-admin-panel span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.merch-admin-panel .btn {
  width: auto;
  padding: 8px 10px;
  font-size: 0.76rem;
  border-radius: 8px;
}

.merch-item {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.merch-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: var(--navy-ultra-light);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy);
  font-size: 2.4rem;
}

.merch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-name {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
}

.merch-price {
  font-weight: 800;
  color: var(--accent-color);
  margin-top: 4px;
  font-size: 0.95rem;
}

.merch-buy-btn {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

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

.merch-order-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
}

.merch-order-card span,
.merch-order-card em {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
}

/* Modal Styling */
.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 27, 46, 0.4);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-color);
  width: 100%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px 40px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(13, 27, 46, 0.15);
  max-height: 80%;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Floating Notification Banner */
.notification-banner {
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(calc(-100% - 120px));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-banner.active {
  transform: translateY(0);
}

.notification-icon {
  font-size: 1.3rem;
  color: var(--accent-color);
}

.notification-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 2026 social UI system */
:root[data-theme="dark"] {
  --bg-color: #0f1115;
  --navy: #f6f7f9;
  --navy-light: #dfe4ea;
  --navy-ultra-light: rgba(255,255,255,.06);
  --navy-opaque: rgba(15,17,21,.92);
  --card-bg: #181b21;
  --border-color: rgba(255,255,255,.11);
  --text-muted: #9aa3af;
  --shadow: 0 8px 30px rgba(0,0,0,.22);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.35);
}

:root[data-theme="dark"] body { background:#090b0e; }
:root[data-theme="dark"] img { filter: brightness(.92); }
:root[data-theme="dark"] body, :root[data-theme="dark"] .screen, :root[data-theme="dark"] .content-area,
:root[data-theme="dark"] .post-card, :root[data-theme="dark"] .modal-content, :root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .comment-bubble, :root[data-theme="dark"] .nav-bar, :root[data-theme="dark"] .app-header {
  color:var(--navy);
}
:root[data-theme="dark"] [style*="color:var(--text-muted)"], :root[data-theme="dark"] .text-muted { color:var(--text-muted)!important; }

.comment-user-link { border:0; padding:0; background:transparent; color:var(--navy); font:inherit; font-weight:800; cursor:pointer; text-align:left; }
.comment-user-link:hover { color:var(--accent-color); text-decoration:underline; }
.carousel-photo { cursor:zoom-in; }
.media-viewer-active .modal-content { max-width:960px; background:#08090b; color:white; }
.photo-lightbox { display:grid; gap:14px; }.lightbox-stage { border:0; padding:0; background:#08090b; width:100%; max-height:72vh; cursor:zoom-in; }
.lightbox-stage img { display:block; width:100%; max-height:72vh; object-fit:contain; }.lightbox-actions { display:flex; gap:10px; flex-wrap:wrap; }
.lightbox-actions .btn { width:auto; flex:1; min-width:160px; }.preference-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:16px 0; text-align:left; }
.preference-grid label > span { display:block; margin-bottom:6px; font-size:.75rem; font-weight:800; color:var(--text-muted); }
@media(max-width:520px){.preference-grid{grid-template-columns:1fr}}

.header-actions, .header-profile { display:flex; align-items:center; gap:10px; }
.header-profile, .theme-toggle, .notification-nav { border:0; background:transparent; color:var(--navy); cursor:pointer; }
.theme-toggle, .notification-nav { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; position:relative; font-size:1rem; }
.theme-toggle:hover, .notification-nav:hover { background:var(--navy-ultra-light); }
.notification-nav::after { content:attr(data-tooltip); position:absolute; right:0; top:46px; padding:6px 9px; border-radius:7px; background:var(--navy); color:var(--card-bg); font-size:.68rem; opacity:0; pointer-events:none; transform:translateY(-3px); transition:.18s ease; }
.notification-nav:hover::after { opacity:1; transform:none; }
.notification-count { position:absolute; right:1px; top:0; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#e10b17; color:white; border:2px solid var(--bg-color); font:bold 10px/14px var(--font-body); }
.header-avatar-wrap, .avatar-presence { display:inline-flex; position:relative; }
.header-avatar-wrap img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.presence-dot { position:absolute; width:10px; height:10px; right:-1px; bottom:0; border-radius:50%; background:#e10b17; border:2px solid var(--card-bg); }
.header-profile > .streak-badge { margin:0; }

.post-owner-menu { margin-left:auto; position:relative; }
.post-owner-menu summary { list-style:none; width:32px; height:32px; display:grid; place-items:center; border-radius:50%; cursor:pointer; }
.post-owner-menu summary::-webkit-details-marker { display:none; }
.post-owner-menu[open] { z-index:5; }
.post-owner-menu[open] > button { display:flex; }
.post-owner-menu > button { display:none; position:absolute; right:0; top:34px; min-width:130px; padding:10px 12px; gap:8px; border:1px solid var(--border-color); background:var(--card-bg); color:var(--navy); cursor:pointer; }
.post-owner-menu > button:first-of-type { border-radius:10px 10px 0 0; }
.post-owner-menu > button:last-of-type { top:74px; border-radius:0 0 10px 10px; }
.post-owner-menu .danger { color:#db2636; }

.post-photo-carousel { aspect-ratio:4/3; position:relative; overflow:hidden; background:#e9edf1; }
.carousel-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .24s ease; }
.carousel-photo.active { opacity:1; }
.photo-counter { position:absolute; z-index:3; right:12px; top:12px; background:rgba(0,0,0,.64); color:white; border-radius:7px; padding:5px 8px; font-size:.72rem; }
.carousel-arrow { position:absolute; z-index:3; top:50%; transform:translateY(-50%); width:36px; height:36px; border:0; border-radius:50%; background:rgba(255,255,255,.9); color:#17191d; box-shadow:0 3px 16px rgba(0,0,0,.18); }
.carousel-arrow.previous { left:10px; }.carousel-arrow.next { right:10px; }
.show-more-comments { width:100%; border:0; border-top:1px solid var(--border-color); background:transparent; color:var(--accent-hover); padding:11px; font-weight:800; cursor:pointer; }

.upload-dropzone { border:1px dashed rgba(225,11,23,.45); border-radius:13px; min-height:104px; padding:16px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:rgba(225,11,23,.035); cursor:pointer; color:var(--navy); }
.upload-dropzone i { color:#e10b17; font-size:1.35rem; }.upload-dropzone span { color:var(--text-muted); font-size:.72rem; }
.file-input-hidden { position:absolute!important; opacity:0; width:1px; height:1px; overflow:hidden; }
.star-rating { display:flex; gap:7px; }
.star-rating .star { border:0; background:transparent; color:#c6cbd2; font-size:1.8rem; cursor:pointer; padding:2px; }
.star-rating .star.active { color:#f5b301; transform:scale(1.04); }
.btn-danger { background:#fff1f2; color:#bf1324; border:1px solid #ffc8ce; }
.logout-button { margin-top:20px; }

.text-action { border:0; background:transparent; color:#e10b17; font-weight:800; cursor:pointer; }
.notification-page { display:flex; flex-direction:column; gap:1px; border:1px solid var(--border-color); border-radius:16px; overflow:hidden; }
.notification-item { display:flex; align-items:center; gap:12px; padding:14px; background:var(--card-bg); cursor:pointer; position:relative; }
.notification-item.unread { background:rgba(225,11,23,.055); }
.notification-item.unread::before { content:""; width:7px; height:7px; border-radius:50%; background:#e10b17; position:absolute; right:10px; top:10px; }
.notification-avatar { width:46px; height:46px; flex:0 0 46px; display:grid; place-items:center; border-radius:50%; background:var(--navy-ultra-light); position:relative; }
.notification-avatar > img { width:100%; height:100%; object-fit:cover; border-radius:50%; }.notification-kind { position:absolute; right:-3px; bottom:-2px; width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:#e10b17; color:white; font-size:.58rem; border:2px solid var(--card-bg); }
.notification-copy { flex:1; min-width:0; }.notification-copy p { font-size:.8rem; margin:2px 0; color:var(--text-muted); }.notification-copy time { font-size:.66rem; color:var(--text-muted); }
.notification-follow { border:1px solid #e10b17; color:#e10b17; background:transparent; border-radius:8px; padding:7px 10px; font-weight:800; }.notification-follow.following { color:var(--text-muted); border-color:var(--border-color); }
.empty-state { padding:54px 22px; display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--text-muted); text-align:center; }.empty-state i{font-size:2rem}.empty-state strong{color:var(--navy)}
.history-row { width:100%; border:0; border-bottom:1px solid var(--border-color); padding:15px 2px; background:transparent; color:var(--navy); display:flex; align-items:center; justify-content:space-between; text-align:left; }.history-row span{display:flex; flex-direction:column; gap:3px}.history-row small{color:var(--text-muted)}
.product-detail h3 { margin:16px 0 6px; }.product-detail > strong { color:#e10b17; }.product-detail p { margin:12px 0 18px; color:var(--text-muted); line-height:1.55; }.product-gallery { aspect-ratio:4/3; border-radius:14px; overflow:hidden; background:var(--navy-ultra-light); position:relative; }.product-gallery img { width:100%; height:100%; object-fit:cover; }.product-gallery img:not(.active){display:none}.product-gallery span{position:absolute;right:10px;top:10px;background:rgba(0,0,0,.65);color:white;border-radius:6px;padding:5px 8px;font-size:.7rem}

@media (min-width: 900px) {
  body { align-items:stretch; }
  #app-shell { max-width:1180px; max-height:none; height:100vh; border:0; border-radius:0; box-shadow:none; }
  #dashboard { padding-left:190px; }
  .app-header { position:absolute; left:190px; right:0; top:0; height:70px; padding:0 28px; border-bottom:1px solid var(--border-color); }
  .content-area { margin-top:70px; padding:20px 28px 60px; max-width:760px; width:100%; align-self:center; }
  .nav-bar { position:absolute; left:0; top:0; bottom:0; width:190px; height:auto; flex-direction:column; align-items:stretch; justify-content:flex-start; padding:90px 18px 20px; border-right:1px solid var(--border-color); border-top:0; background:var(--card-bg); }
  .nav-item { flex:0 0 auto; flex-direction:row; justify-content:flex-start; gap:12px; padding:13px 14px; border-radius:9px; }
  .nav-item.active { background:rgba(225,11,23,.08); color:#e10b17; }
  .nav-item::before { display:none; }
  .brand-section { position:fixed; left:28px; top:18px; z-index:40; }
  .merch-grid { grid-template-columns:repeat(3,1fr); }
}

/* Desktop shell lock: keep the header, sidebar and scroll region independent. */
@media (min-width: 900px) {
  body { padding:0; align-items:stretch; }
  #app-shell { width:100%; max-width:1240px; height:100vh; max-height:none; border:0; border-radius:0; }
  #dashboard { padding-left:0; }
  #dashboard.screen.active {
    display:grid;
    grid-template-columns:200px minmax(0,1fr);
    grid-template-rows:70px minmax(0,1fr);
  }
  #dashboard .app-header {
    position:relative;
    inset:auto;
    grid-column:1 / -1;
    grid-row:1;
    height:70px;
    padding:0 28px;
    z-index:120;
    background:var(--card-bg);
  }
  #dashboard .brand-section { position:static; }
  #dashboard .content-area {
    grid-column:2;
    grid-row:2;
    width:100%;
    max-width:none;
    margin:0;
    padding:22px 32px 60px;
    align-self:stretch;
  }
  #dashboard .nav-bar {
    position:static;
    grid-column:1;
    grid-row:2;
    width:200px;
    height:100%;
    padding:24px 16px;
    gap:5px;
    border-right:1px solid var(--border-color);
  }
  #dashboard .nav-item { flex-direction:row; justify-content:flex-start; gap:12px; padding:13px 14px; border-radius:9px; }
  #dashboard .nav-item.active { background:rgba(225,11,23,.08); color:#e10b17; }
  #dashboard .content-area > * { max-width:1080px; }
  .feed-layout { display:grid; grid-template-columns:minmax(0,2.35fr) minmax(250px,1fr); gap:20px; align-items:start; }
  .feed-side-rail { position:sticky; top:0; display:flex; flex-direction:column; gap:14px; }
  .feed-side-rail .feed-recommendations { margin:0; }
}

.feed-side-rail { display:none; }
.desktop-side-panel { padding:18px; border:1px solid var(--border-color); border-radius:14px; background:var(--card-bg); }
.desktop-side-panel p { margin-top:10px; color:var(--text-muted); font-size:.78rem; line-height:1.5; }
@media (min-width: 1100px) { .feed-side-rail { display:flex; } }

/* Profile Replay Timeline */
.replay-point-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.replay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 16px 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

@media (max-width: 380px) {
  .auth-container,
  .content-area {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .nav-item span {
    font-size: 0.68rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }
}

@media (min-width: 900px) {
  body {
    padding: 24px;
  }

  #app-shell {
    max-width: 1120px;
    border-radius: 28px;
    border-width: 0;
  }

  #dashboard.screen.active {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  #dashboard .app-header {
    grid-column: 1 / -1;
    padding: 18px 28px;
  }

  #dashboard .content-area {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 32px 32px;
  }

  #dashboard .content-area > * {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }

  #dashboard .nav-bar {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 96px;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 24px 10px;
    border-top: 0;
    border-right: 1px solid var(--border-color);
  }

  #dashboard .nav-item {
    border-radius: 14px;
    padding: 12px 6px;
  }

  #dashboard .nav-item.active {
    background-color: var(--navy-ultra-light);
  }

  #login-screen,
  #splash-screen {
    align-items: center;
  }

  #login-screen .auth-container {
    width: min(100%, 520px);
    margin: 0 auto;
  }

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

  .merch-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  #map-container {
    height: min(42vh, 420px);
  }
}

/* Final desktop shell lock: keep header, sidebar, and feed scroll independent. */
@media (min-width: 900px) {
  body { padding:0; align-items:stretch; }
  #app-shell { width:100%; max-width:1240px; height:100vh; max-height:none; border:0; border-radius:0; }
  #dashboard { padding-left:0; }
  #dashboard.screen.active { display:grid; grid-template-columns:200px minmax(0,1fr); grid-template-rows:70px minmax(0,1fr); }
  #dashboard .app-header { position:relative; inset:auto; grid-column:1/-1; grid-row:1; height:70px; padding:0 28px; z-index:120; background:var(--card-bg); }
  #dashboard .brand-section { position:static; }
  #dashboard .content-area { grid-column:2; grid-row:2; width:100%; max-width:none; margin:0; padding:22px 32px 60px; align-self:stretch; }
  #dashboard .nav-bar { position:static; grid-column:1; grid-row:2; width:200px; height:100%; padding:24px 16px; gap:5px; border-right:1px solid var(--border-color); }
  #dashboard .nav-item { flex-direction:row; justify-content:flex-start; gap:12px; padding:13px 14px; border-radius:9px; }
  #dashboard .nav-item.active { background:rgba(225,11,23,.08); color:#e10b17; }
  #dashboard .content-area > * { max-width:1080px; }
  .feed-layout { display:grid; grid-template-columns:minmax(0,2.35fr) minmax(250px,1fr); gap:20px; align-items:start; }
  .feed-side-rail { position:sticky; top:0; flex-direction:column; gap:14px; }
  .feed-side-rail .feed-recommendations { margin:0; }
}

.feed-side-rail { display:none; }
.desktop-side-panel { padding:18px; border:1px solid var(--border-color); border-radius:14px; background:var(--card-bg); }
.desktop-side-panel p { margin-top:10px; color:var(--text-muted); font-size:.78rem; line-height:1.5; }
@media (min-width:1100px) { .feed-side-rail { display:flex; } }

.app-header { background-color:var(--card-bg); }
:root[data-theme="dark"] .nav-bar { background-color:rgba(24,27,33,.96); }
