/**
 * patient-shell.css — Unified patient shell using Atlas visual language.
 *
 * Provides the shared header, left sidebar navigation, and content area
 * that wraps all patient pages (investigations, messages, records,
 * feedback, requests).  Adopts the Atlas palette (Inter
 * font, cool greys, teal accent) so the patient experience feels
 * cohesive with the Atlas workspace.
 *
 * The Atlas page itself is NOT rendered inside this shell — it keeps
 * its own full-page layout.  This shell covers everything else.
 */


/* ═══════════════════════════════════════════════
   1 · Theme variables
   ═══════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --ps-bg:          #f0f2f5;
  --ps-bg-surface:  #ffffff;
  --ps-bg-warm:     #f8f9fb;
  --ps-bg-hover:    rgba(0,0,0,0.02);

  /* Text hierarchy */
  --ps-text:        #1e293b;
  --ps-text-soft:   rgba(30,41,59,0.72);
  --ps-text-dim:    rgba(30,41,59,0.44);
  --ps-text-ghost:  rgba(30,41,59,0.20);

  /* Accent — teal (matches Atlas) */
  --ps-accent:      #4a9d8a;
  --ps-accent-dim:  rgba(74,157,138,0.10);
  --ps-accent-text: #2d6d5a;

  /* Borders and surfaces */
  --ps-border:        rgba(0,0,0,0.08);
  --ps-border-soft:   rgba(0,0,0,0.05);

  /* Shadows */
  --ps-shadow:     0 8px 30px rgba(0,0,0,0.08);
  --ps-shadow-sm:  0 2px 8px rgba(0,0,0,0.04);
  --ps-shadow-lg:  0 16px 48px rgba(0,0,0,0.12);

  /* Status tones */
  --ps-red:    #dc2626;
  --ps-amber:  #d97706;
  --ps-green:  #059669;
  --ps-blue:   #2563eb;
  --ps-teal:   #0d9488;
  --ps-grey:   #6b7280;

  /* Status backgrounds */
  --ps-red-bg:    #fef2f2;
  --ps-amber-bg:  #fffbeb;
  --ps-green-bg:  #ecfdf5;
  --ps-blue-bg:   #eff6ff;
  --ps-teal-bg:   #f0fdfa;
  --ps-grey-bg:   #f9fafb;
}


/* ═══════════════════════════════════════════════
   2 · Base reset
   ═══════════════════════════════════════════════ */

html, body {
  margin: 0;
  padding: 0;
  background: var(--ps-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ps-text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

.hidden { display: none !important; }

#patient-shell-app {
  height: 100vh;
  overflow: hidden;
}


/* ═══════════════════════════════════════════════
   3 · Shell layout
   ═══════════════════════════════════════════════ */

.ps-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.ps-body {
  display: flex;
  flex: 1;
  gap: 0;
  padding: 24px;
  min-height: 0;
  overflow: hidden;
  background: var(--ps-bg);
}


/* ═══════════════════════════════════════════════
   4 · Header
   ═══════════════════════════════════════════════ */

.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 58px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ps-accent) 3%, var(--ps-bg-surface)) 0%,
      var(--ps-bg-surface) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--ps-accent) 10%, var(--ps-border));
  z-index: 100;
}

.ps-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ps-text);
  transition: opacity 0.15s;
}

.ps-header-brand:hover { opacity: 0.82; }

.ps-header-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
}

.ps-header-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ps-header-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ps-text);
}

.ps-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ps-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ps-text-soft);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.ps-header-icon:hover {
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
  box-shadow: 0 2px 6px rgba(74,157,138,0.12);
}


/* ═══════════════════════════════════════════════
   5 · Sidebar
   ═══════════════════════════════════════════════ */

.ps-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--ps-bg-surface);
  border: 1px solid var(--ps-border);
  border-right: none;
  border-radius: 24px 0 0 24px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.ps-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ps-text-soft);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  position: relative;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.ps-nav-item:hover {
  background: var(--ps-bg-hover);
  color: var(--ps-text);
}

.ps-nav-item.active {
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
  font-weight: 600;
}

.ps-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.8;
}

.ps-nav-item.active .ps-nav-icon { opacity: 1; }

.ps-nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ps-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ps-nav-divider {
  height: 1px;
  background: var(--ps-border-soft);
  margin: 10px 8px;
}

.ps-nav-section-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ps-text-dim);
  padding: 12px 14px 4px;
}


/* ═══════════════════════════════════════════════
   6 · Content area
   ═══════════════════════════════════════════════ */

.ps-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  min-width: 0;
  background: var(--ps-bg-surface);
  border: 1px solid var(--ps-border);
  border-radius: 0 24px 24px 0;
}

.ps-content-inner {
  padding: 28px 28px;
}


/* ═══════════════════════════════════════════════
   7 · Page titles and section headings
   ═══════════════════════════════════════════════ */

.ps-page-header {
  margin-bottom: 28px;
}

.ps-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ps-text);
  margin: 0 0 4px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.ps-page-subtitle {
  font-size: 13.5px;
  color: var(--ps-text-dim);
  margin: 0;
  line-height: 1.5;
}

.ps-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}


/* ═══════════════════════════════════════════════
   8 · Cards
   ═══════════════════════════════════════════════ */

.ps-card {
  background: var(--ps-bg-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ps-card:hover {
  box-shadow: var(--ps-shadow-sm);
  border-color: color-mix(in srgb, var(--ps-accent) 18%, var(--ps-border));
}

.ps-card--clickable {
  cursor: pointer;
}

.ps-card + .ps-card { margin-top: 10px; }


/* ═══════════════════════════════════════════════
   9 · Overview — Atlas tile
   ═══════════════════════════════════════════════ */

.ps-atlas-tile {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--ps-accent) 6%, var(--ps-bg-surface)) 0%,
      var(--ps-bg-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--ps-accent) 14%, var(--ps-border));
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.ps-atlas-tile:hover {
  box-shadow: 0 6px 22px rgba(74,157,138,0.12);
  transform: translateY(-1px);
}

.ps-atlas-tile-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ps-atlas-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ps-atlas-tile-body {
  min-width: 0;
}

.ps-atlas-tile-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ps-text);
  letter-spacing: -0.01em;
}

.ps-atlas-tile-stats {
  font-size: 13px;
  color: var(--ps-text-soft);
  margin-top: 2px;
}

.ps-atlas-tile-arrow {
  color: var(--ps-accent);
  font-size: 14px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   10 · ACI cards (investigations)
   ═══════════════════════════════════════════════ */

.ps-aci-card {
  background: var(--ps-bg-surface);
  border: 1px solid var(--ps-border);
  border-left: 4px solid var(--ps-grey);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ps-aci-card:hover {
  box-shadow: var(--ps-shadow-sm);
}

.ps-aci-card + .ps-aci-card { margin-top: 8px; }

/* Status tone borders */
.ps-aci-card[data-tone="red"]   { border-left-color: var(--ps-red); }
.ps-aci-card[data-tone="amber"] { border-left-color: var(--ps-amber); }
.ps-aci-card[data-tone="green"] { border-left-color: var(--ps-green); }
.ps-aci-card[data-tone="blue"]  { border-left-color: var(--ps-blue); }
.ps-aci-card[data-tone="teal"]  { border-left-color: var(--ps-teal); }
.ps-aci-card[data-tone="grey"]  { border-left-color: var(--ps-grey); }

.ps-aci-card-body {
  flex: 1;
  min-width: 0;
}

.ps-aci-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.ps-aci-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-text);
  letter-spacing: -0.01em;
}

.ps-aci-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
}

.ps-aci-pill--red    { background: var(--ps-red-bg);   color: var(--ps-red); }
.ps-aci-pill--amber  { background: var(--ps-amber-bg); color: var(--ps-amber); }
.ps-aci-pill--green  { background: var(--ps-green-bg); color: var(--ps-green); }
.ps-aci-pill--blue   { background: var(--ps-blue-bg);  color: var(--ps-blue); }
.ps-aci-pill--teal   { background: var(--ps-teal-bg);  color: var(--ps-teal); }
.ps-aci-pill--grey   { background: var(--ps-grey-bg);  color: var(--ps-grey); }

.ps-aci-card-meta {
  font-size: 12.5px;
  color: var(--ps-text-dim);
  line-height: 1.4;
}

.ps-aci-card-cta {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.ps-aci-card-cta--primary {
  background: var(--ps-accent);
  color: #fff;
}

.ps-aci-card-cta--primary:hover {
  background: var(--ps-accent-text);
  box-shadow: 0 2px 8px rgba(74,157,138,0.2);
}

.ps-aci-card-cta--ghost {
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
}

.ps-aci-card-cta--ghost:hover {
  background: color-mix(in srgb, var(--ps-accent) 18%, transparent);
}


/* ═══════════════════════════════════════════════
   11 · Record rows
   ═══════════════════════════════════════════════ */

.ps-record-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  transition: background 0.12s;
}

.ps-record-row:hover { background: var(--ps-bg-hover); }

.ps-record-row + .ps-record-row {
  border-top: 1px solid var(--ps-border-soft);
}

.ps-record-date {
  font-size: 12px;
  color: var(--ps-text-dim);
  min-width: 70px;
  flex-shrink: 0;
}

.ps-record-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ps-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-record-type {
  font-size: 11.5px;
  color: var(--ps-text-dim);
  background: var(--ps-bg);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   12 · Message rows
   ═══════════════════════════════════════════════ */

.ps-message-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background 0.12s;
}

.ps-message-row:hover { background: var(--ps-bg-hover); }

.ps-message-row + .ps-message-row {
  border-top: 1px solid var(--ps-border-soft);
}

.ps-message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.ps-message-body {
  flex: 1;
  min-width: 0;
}

.ps-message-sender {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ps-text);
}

.ps-message-subject {
  font-size: 12.5px;
  color: var(--ps-text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-message-time {
  font-size: 12px;
  color: var(--ps-text-dim);
  flex-shrink: 0;
}

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


/* ═══════════════════════════════════════════════
   13 · Notification rows
   ═══════════════════════════════════════════════ */

.ps-notif-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background 0.12s;
}

.ps-notif-row:hover { background: var(--ps-bg-hover); }

.ps-notif-row + .ps-notif-row {
  border-top: 1px solid var(--ps-border-soft);
}

.ps-notif-row.unread {
  background: color-mix(in srgb, var(--ps-accent) 4%, transparent);
}

.ps-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ps-notif-body { flex: 1; min-width: 0; }

.ps-notif-text {
  font-size: 13.5px;
  color: var(--ps-text);
  line-height: 1.45;
}

.ps-notif-time {
  font-size: 12px;
  color: var(--ps-text-dim);
  margin-top: 2px;
}

.ps-notif-actions {
  flex-shrink: 0;
}

.ps-notif-mark-btn {
  border: none;
  background: none;
  color: var(--ps-text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.ps-notif-mark-btn:hover {
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
}


/* ═══════════════════════════════════════════════
   14 · Empty states
   ═══════════════════════════════════════════════ */

.ps-empty {
  text-align: center;
  padding: 40px 24px;
  color: var(--ps-text-dim);
}

.ps-empty-icon {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.ps-empty-text {
  font-size: 14px;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════
   15 · Section spacing for overview grid
   ═══════════════════════════════════════════════ */

.ps-overview-section { margin-bottom: 28px; }
.ps-overview-section:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════
   16 · Back link (ACI detail)
   ═══════════════════════════════════════════════ */

.ps-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ps-text-dim);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}

.ps-back-link:hover { color: var(--ps-accent-text); }


/* ═══════════════════════════════════════════════
   17 · ACI detail header
   ═══════════════════════════════════════════════ */

.ps-aci-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ps-aci-detail-heading {
  min-width: 0;
}

.ps-aci-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ps-text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ps-aci-detail-clinician {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--ps-text-soft);
}

.ps-aci-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.ps-aci-detail-person {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ps-text-soft);
}

/* ACI details render inside the patient shell.  The legacy standalone
   ACI stylesheet still defines a centered card width, so the shell
   explicitly lets the investigation task area use the full workspace. */
.ps-content-inner > .acp-shell,
.ps-content-inner #aci-detail-mount,
.ps-content-inner #aci-section-mount {
  width: 100%;
  max-width: none;
  margin: 0;
}

@media (max-width: 760px) {
  .ps-aci-detail-header {
    display: block;
  }
}


/* ═══════════════════════════════════════════════
   18 · Utility — mark-all button
   ═══════════════════════════════════════════════ */

.ps-mark-all-btn {
  border: none;
  background: var(--ps-accent-dim);
  color: var(--ps-accent-text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.ps-mark-all-btn:hover {
  background: color-mix(in srgb, var(--ps-accent) 18%, transparent);
}


/* ═══════════════════════════════════════════════
   19 · Loading skeleton
   ═══════════════════════════════════════════════ */

.ps-skeleton {
  background: linear-gradient(90deg, var(--ps-bg) 25%, var(--ps-bg-warm) 50%, var(--ps-bg) 75%);
  background-size: 200% 100%;
  animation: ps-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.ps-skeleton--line   { height: 14px; width: 60%; margin-bottom: 10px; }
.ps-skeleton--card   { height: 72px; width: 100%; margin-bottom: 10px; border-radius: 14px; }
.ps-skeleton--tile   { height: 86px; width: 100%; border-radius: 16px; }

@keyframes ps-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ═══════════════════════════════════════════════
   20 · Settings overlay — atlas variable bridge
   ═══════════════════════════════════════════════
   The atlas-settings.css styles reference --atlas-* variables that
   are normally scoped to .atlas-root.  When the settings overlay
   renders inside the patient shell (outside of Atlas), we provide
   the same variables mapped from the patient-shell palette.
   ═══════════════════════════════════════════════ */

.ps-root .atlas-settings-overlay {
  z-index: 200;
  --atlas-bg:           var(--ps-bg-surface);
  --atlas-bg-warm:      var(--ps-bg-warm);
  --atlas-bg-deep:      var(--ps-bg);
  --atlas-text:         var(--ps-text);
  --atlas-text-soft:    var(--ps-text-soft);
  --atlas-text-dim:     var(--ps-text-dim);
  --atlas-text-ghost:   var(--ps-text-ghost);
  --atlas-accent:       var(--ps-accent);
  --atlas-accent-dim:   var(--ps-accent-dim);
  --atlas-accent-text:  var(--ps-accent-text);
  --atlas-surface-b:    var(--ps-border);
  --atlas-overlay:      rgba(0,0,0,0.3);
  --atlas-shadow-lg:    var(--ps-shadow-lg);
  --atlas-sev-severe:   var(--ps-red);
}


/* ═══════════════════════════════════════════════
   21 · Toast notification
   ═══════════════════════════════════════════════ */

.ps-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ps-text);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--ps-shadow);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

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


/* ═══════════════════════════════════════════════
   21 · Responsive — tablet and below
   ═══════════════════════════════════════════════ */

@media (max-width: 860px) {
  .ps-sidebar {
    width: 240px;
    padding: 16px 10px;
  }

  .ps-content-inner {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .ps-header {
    padding: 0 16px;
    height: 52px;
  }

  .ps-sidebar {
    display: none;
  }

  .ps-body {
    padding: 0;
  }

  .ps-content {
    border: none;
    border-radius: 0;
  }

  .ps-content-inner {
    padding: 20px 16px;
  }

  .ps-body {
    flex-direction: column;
  }

  /* Mobile bottom nav — shown when sidebar is hidden */
  .ps-mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--ps-bg-surface);
    border-top: 1px solid var(--ps-border);
    z-index: 100;
    padding: 0 8px;
    align-items: center;
    justify-content: space-around;
  }

  .ps-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--ps-text-dim);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.15s;
  }

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

  .ps-mobile-nav-icon { font-size: 18px; }

  .ps-content-inner { padding-bottom: 72px; }
}

/* Hide mobile nav on desktop */
.ps-mobile-nav { display: none; }
