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

    :root {
      --blue:       #2563eb;
      --blue-light: #eff6ff;
      --blue-mid:   #bfdbfe;
      --green:      #2d6a4f;
      --green-light:#d8f3dc;
      --gray-50:    #f9fafb;
      --gray-100:   #f3f4f6;
      --gray-200:   #e5e7eb;
      --gray-300:   #d1d5db;
      --gray-400:   #9ca3af;
      --gray-500:   #6b7280;
      --gray-700:   #374151;
      --gray-900:   #111827;
      --red-light:  #fee2e2;
      --red:        #dc2626;
      --amber:      #d97706;
      --amber-light:#fef3c7;
      --amber-mid:  #f59e0b;
      --amber-dark-bg: linear-gradient(105deg,#1c0f02 0%,#3b1c04 50%,#5c2e08 100%);
      --white:      #ffffff;
      --radius:     10px;
      --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
      --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background-color: #f5f0e8;
      background-image: none;
      color: var(--gray-900);
      min-height: 100vh;
    }

    /* ── WIREFRAME BANNER ─────────────────────────────────── */
    .screen-nav { display: none; }

    /* ── APP SHELL ─────────────────────────────────────────── */
    .app-shell { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }

    /* ── APP NAV ───────────────────────────────────────────── */
    .app-nav {
      background: #1a3d2e;
      border-bottom: 1px solid rgba(0,0,0,.25);
      padding: 0 48px;
      display: flex; align-items: center; justify-content: space-between;
      height: 72px;
      position: sticky; top: 0; z-index: 10;
      box-shadow: 0 2px 8px rgba(0,0,0,.2);
    }
    .nav-logo {
      display: flex; align-items: center;
      cursor: pointer;
    }
    .nav-right { display: flex; align-items: center; gap: 24px; }
    .nav-left { display: flex; align-items: center; gap: 20px; }
    .nav-game-pill {
      font-size: 0.82rem;
      font-weight: 600;
      color: rgba(255,255,255,0.7);
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 20px;
      padding: 5px 13px;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s;
    }
    .nav-game-pill:hover { color: #fff; background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }
    .avatar {
      width: 34px; height: 34px; border-radius: 50%;
      background: rgba(82,183,136,.25);
      border: 1.5px solid rgba(82,183,136,.5);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; color: var(--green-light);
      cursor: pointer; transition: background .15s;
    }
    .avatar:hover { background: rgba(82,183,136,.4); }
    .nav-avatar-wrap { position: relative; margin-left: 40px; }
    .nav-avatar-dropdown {
      position: absolute; top: 100%; right: 0;
      background: #1a3327; border-radius: 12px;
      padding: 0 18px 16px; padding-top: 20px;
      min-width: 190px;
      box-shadow: 0 8px 32px rgba(0,0,0,.35);
      opacity: 0; pointer-events: none;
      transform: translateY(-4px);
      transition: opacity .15s ease, transform .15s ease;
      z-index: 9999;
    }
    /* invisible bridge fills the space between avatar bottom and dropdown top */
    .nav-avatar-dropdown::before {
      content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
    }
    .nav-avatar-wrap:hover .nav-avatar-dropdown {
      opacity: 1; pointer-events: auto; transform: translateY(0);
    }
    .nav-dd-name {
      font-size: 14px; font-weight: 700; color: #fff;
      padding-bottom: 12px; margin-bottom: 10px;
      border-bottom: 1px solid rgba(255,255,255,.12);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .nav-dd-btn {
      display: block; width: 100%; text-align: left;
      background: none; border: none; cursor: pointer;
      font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75);
      padding: 8px 0; font-family: inherit; letter-spacing: .01em;
      transition: color .12s;
    }
    .nav-dd-btn:hover { color: #f97316; }
    .nav-dd-signout { color: rgba(255,255,255,.4); margin-top: 2px; }
    .nav-dd-signout:hover { color: #f87171; }
    .nav-link {
      font-size: 16px; font-weight: 700;
      color: rgba(255,255,255,.9); cursor: pointer;
      padding: 4px 2px;
      text-decoration: none;
      letter-spacing: .2px;
      transition: color .15s;
    }
    .nav-link:hover { color: #f97316; background: none; text-decoration: none; }

    /* ── HAMBURGER MENU ───────────────────────────────────── */
    .hamburger-btn {
      display: none; background: none; border: none; cursor: pointer;
      padding: 6px; margin-left: 8px;
    }
    .hamburger-btn span {
      display: block; width: 22px; height: 2.5px; background: #fff;
      border-radius: 2px; transition: transform .25s, opacity .2s;
      margin: 5px 0;
    }
    .hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger-btn.open span:nth-child(2) { opacity: 0; }
    .hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .mobile-menu {
      display: none; position: fixed; top: 72px; left: 0; right: 0;
      background: #1a3d2e; z-index: 9;
      padding: 12px 24px 20px; flex-direction: column; gap: 4px;
      border-bottom: 2px solid rgba(255,255,255,.1);
      box-shadow: 0 8px 24px rgba(0,0,0,.3);
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu .nav-link {
      display: block; padding: 12px 8px; font-size: 17px;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .mobile-menu .nav-link:last-child { border-bottom: none; }
    .mobile-menu .mobile-user-section {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 8px 6px; margin-top: 4px;
      border-top: 1px solid rgba(255,255,255,.15);
    }
    .mobile-menu .mobile-user-section .avatar { width: 30px; height: 30px; font-size: 12px; }
    .mobile-menu .mobile-signout {
      font-size: 14px; color: rgba(255,255,255,.5); cursor: pointer;
      padding: 8px; margin-left: auto;
    }

    @media (max-width: 768px) {
      .hamburger-btn { display: block; }
      .mobile-menu .nav-game-mobile { color: rgba(255,255,255,0.75); font-style: normal; }
      .nav-right .nav-link,
      .nav-right > span:not(#nav-user-name),
      .nav-right #nav-user-name,
      .nav-right .avatar,
      .nav-right > span[onclick="doSignOut()"] { display: none !important; }
      .app-nav { padding: 0 16px; }
      .app-shell { padding: 0 12px 40px; overflow-x: hidden; }
      .hp-nav { padding: 0 16px; }
      .hp-nav-links { gap: 12px; }
      .hp-content { padding: 100px 20px 60px; }
      .hp-title { font-size: 2.2rem; }
      .step-bar { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .step-label { font-size: 11px; }
      .step-actions { flex-direction: column; gap: 8px; }
      .step-actions .btn { width: 100%; justify-content: center; }
      .card-pad { padding: 16px; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
      .two-col, .three-col { grid-template-columns: 1fr; }
      .trip-grid { grid-template-columns: 1fr; }
      .group-view { grid-template-columns: 1fr; }
      .publish-summary { grid-template-columns: 1fr; }
      .friends-card { overflow-x: auto; }
      table { font-size: 13px; }
      th, td { padding: 8px 6px; }
    }

    @media (max-width: 480px) {
      .hp-nav-links .hp-nav-login { display: block; }
      .hp-nav-links .hp-nav-cta { display: none; }
      .hp-nav-links a:not(.hp-nav-login):not(.hp-nav-cta) { display: none; }
      .hp-title { font-size: 1.7rem; }
      .hp-sub { font-size: 15px; }
      .hp-actions { flex-direction: column; gap: 10px; }
      .hp-actions .btn, .hp-actions .hp-btn-primary, .hp-actions .hp-btn-ghost { width: 100%; text-align: center; justify-content: center; }
      .step-circle { width: 24px; height: 24px; font-size: 11px; }
      .step-label { display: none; }
      .trip-card-name { font-size: 15px; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .btn { font-size: 12px; padding: 8px 12px; }
      .btn-lg { font-size: 14px; padding: 10px 18px; }
    }

    /* ── SCREENS ───────────────────────────────────────────── */
    .screen { display: none; padding-top: 24px; }
    #screen-home { padding-top: 0; }
    .screen.active { display: block; }

    /* ── SHARED COMPONENTS ─────────────────────────────────── */
    .card {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); box-shadow: var(--shadow);
    }
    .card-pad { padding: 24px; }

    .btn {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 13px; font-weight: 600; padding: 9px 16px;
      border-radius: 7px; border: none; cursor: pointer;
      transition: opacity .15s, transform .1s;
    }
    .btn:hover { opacity: .9; }
    .btn:active { transform: scale(.98); }
    .btn-primary  { background: var(--blue); color: #fff; }
    .btn-green    { background: var(--green); color: #fff; }
    .btn-outline  { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }
    .btn-ghost    { background: transparent; color: var(--gray-500); }
    .btn-danger   { background: var(--red-light); color: var(--red); }
    .btn-lg { font-size: 15px; padding: 12px 24px; }
    .btn-sm { font-size: 12px; padding: 6px 12px; }

    /* Uniform action buttons (My Gear toolbar) — same width, centered, color-shift on hover */
    .btn-uniform {
      min-width: 140px;
      justify-content: center;
      text-align: center;
      transition: background-color .15s, color .15s, transform .1s;
    }
    .btn-uniform:hover { opacity: 1; }
    .btn-green.btn-uniform:hover    { background: #1f4d38; }
    .btn-danger-solid               { background: var(--red); color: #fff; }
    .btn-danger-solid.btn-uniform:hover { background: #991b1b; }

    .input-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; }
    .input-group label { font-size: 14px; font-weight: 700; color: var(--gray-800); letter-spacing: .1px; }
    .input-group input, .input-group select, .input-group textarea {
      padding: 11px 14px; border: 1.5px solid var(--gray-300);
      border-radius: 8px; font-size: 15px; outline: none;
      background: #fff;
      box-shadow: 0 1px 3px rgba(0,0,0,.06);
      transition: border-color .15s, box-shadow .15s;
    }
    .input-group input:focus, .input-group select:focus, .input-group textarea:focus {
      border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    }

    .badge {
      display: inline-block; font-size: 11px; font-weight: 700;
      padding: 2px 8px; border-radius: 20px;
    }
    .badge-blue   { background: var(--blue-light); color: var(--blue); }
    .badge-green  { background: var(--green-light); color: var(--green); }
    .badge-amber  { background: var(--amber-light); color: var(--amber); }
    .badge-gray   { background: var(--gray-100); color: var(--gray-500); }

    /* placeholder block */
    .ph {
      background: var(--gray-100); border: 2px dashed var(--gray-300);
      border-radius: 8px; display: flex; align-items: center;
      justify-content: center; color: var(--gray-400);
      font-size: 12px; font-weight: 600; letter-spacing: .5px;
      text-transform: uppercase;
    }

    /* annotation */
    .ann {
      display: block;
      font-size: 13px; color: var(--gray-400);
      margin-top: 4px;
    }

    /* step progress */
    .step-bar {
      display: flex; align-items: center; gap: 0;
      margin-bottom: 28px;
    }
    .step-item {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 600;
    }
    .step-circle {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 800; flex-shrink: 0;
    }
    .step-circle.done   { background: var(--green); color: #fff; }
    .step-circle.active { background: var(--blue); color: #fff; }
    .step-circle.todo   { background: var(--gray-200); color: var(--gray-400); }
    .step-label.active  { color: var(--blue); }
    .step-label.done    { color: var(--green); }
    .step-label.todo    { color: var(--gray-400); }
    .step-item.nav-done { cursor: pointer; }
    .step-item.nav-done:hover .step-circle { opacity: .8; transform: scale(1.08); }
    .step-item.nav-done:hover .step-label  { text-decoration: underline; color: var(--gray-700); }
    .step-circle { transition: opacity .15s, transform .15s; }
    .step-line {
      flex: 1; height: 2px; background: var(--gray-200); min-width: 24px; max-width: 60px;
    }
    .step-line.done { background: var(--green); }

    /* section header */
    .section-hd {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 16px;
    }
    .section-hd h2 { font-size: 17px; font-weight: 700; color: var(--gray-900); }
    .section-hd p  { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

    /* ── SCREEN: LOGIN ─────────────────────────────────────── */
    .login-wrap {
      min-height: calc(100vh - 40px);
      display: flex; align-items: center; justify-content: center;
      padding: 40px 20px;
      background-image: url('https://res.cloudinary.com/de6kxuwv8/image/upload/v1779410135/dramatcpeaks_io0gcx.png');
      background-size: cover;
      background-position: center 40%;
    }
    .login-card {
      width: 100%; max-width: 400px;
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: 16px; padding: 36px 32px;
      box-shadow: var(--shadow-md);
    }
    .login-logo {
      text-align: center; margin-bottom: 28px;
    }
    .login-logo .mark { font-size: 40px; display: block; margin-bottom: 6px; }
    .login-logo .name { font-size: 22px; font-weight: 800; color: var(--green); }
    .login-logo .sub  { font-size: 12px; color: var(--gray-400); }
    .login-card { max-width: 420px; }

    /* Password strength bar */
    .pw-strength-bar { height: 4px; border-radius: 2px; background: var(--gray-200); margin-top: 6px; overflow: hidden; }
    .pw-strength-fill { height: 100%; border-radius: 2px; width: 0; transition: width .3s, background .3s; }
    .pw-strength-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

    /* Experience tag pills */
    .exp-tag {
      display: inline-block; padding: 7px 14px; border: 1.5px solid var(--gray-200);
      border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--gray-600);
      cursor: pointer; transition: all .15s;
    }
    .exp-tag:hover, .exp-tag.selected { background: var(--green); color: #fff; border-color: var(--green); }

    /* Onboarding option cards */
    .onboard-option {
      border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 16px 18px;
      margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s;
      display: flex; align-items: center; gap: 14px;
    }
    .onboard-option:hover { border-color: var(--green); background: #f0fdf4; }
    .onboard-option-icon { font-size: 26px; flex-shrink: 0; }
    .onboard-option-title { font-size: 15px; font-weight: 700; color: var(--gray-900); }
    .onboard-option-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
    .divider {
      display: flex; align-items: center; gap: 12px;
      font-size: 12px; color: var(--gray-400); margin: 16px 0;
    }
    .divider::before, .divider::after {
      content: ''; flex: 1; height: 1px; background: var(--gray-200);
    }
    .sso-btn {
      width: 100%; padding: 10px; border: 1px solid var(--gray-300);
      border-radius: 7px; background: #fff; font-size: 13px; font-weight: 600;
      cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .sso-btn:hover { background: var(--gray-50); }

    /* ── SCREEN: DASHBOARD ─────────────────────────────────── */

    .hp-banner-inner {
      max-width: 1100px;
      margin: 0 auto;
      position: relative;
    }


    /* ── PCT GAME SPONSORED BANNER ── */
    .pct-banner {
      display: flex;
      align-items: center;
      width: 100%;
      height: 90px;
      margin: 20px 0 4px;
      border-radius: 10px;
      overflow: hidden;
      text-decoration: none;
      position: relative;
      background: #fff;
      border: 1px solid var(--gray-200);
      box-shadow: 0 1px 4px rgba(0,0,0,.06);
      transition: box-shadow .2s;
    }
    .pct-banner:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
    .pct-banner-stripe {
      position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
      background: linear-gradient(180deg, #52b788 0%, #2d6a4f 100%);
    }
    .pct-banner-copy {
      flex: 1;
      padding: 0 24px 0 20px;
    }
    .pct-banner-headline {
      font-size: 20px; font-weight: 900; color: var(--gray-900);
      letter-spacing: -.3px; line-height: 1;
    }
    .pct-banner-game { color: #d97706; }
    .pct-banner-sub {
      font-size: 13px; color: var(--gray-400);
      margin-top: 5px; font-weight: 500; letter-spacing: .02em;
    }
    .pct-banner-cta {
      background: #d97706; color: #fff;
      font-size: 13px; font-weight: 800;
      padding: 10px 22px; border-radius: 20px;
      white-space: nowrap; flex-shrink: 0;
      margin-right: 20px;
      box-shadow: 0 2px 8px rgba(217,119,6,.3);
      transition: background .15s, transform .15s;
    }
    .pct-banner:hover .pct-banner-cta { background: #b45309; transform: scale(1.03); }
    .pct-banner-sponsored {
      position: absolute; top: 7px; right: 10px;
      font-size: 9px; font-weight: 600; letter-spacing: .07em;
      text-transform: uppercase; color: var(--gray-300);
      pointer-events: none;
    }




    .dash-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 28px 0 20px; flex-wrap: wrap; gap: 12px;
    }
    .dash-header h1 { font-size: 32px; font-weight: 900; letter-spacing: -.5px; }
    .dash-header p  { font-size: 17px; color: var(--gray-700); font-weight: 500; margin-top: 4px; }

    /* ── LIFETIME STAT CARDS ── */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 32px;
    }
    @media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
    .stat-card {
      background: #1a3d2e;
      border-radius: 14px;
      padding: 20px 18px 18px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: transform .15s, box-shadow .15s;
      border: 1px solid rgba(255,255,255,.06);
    }
    .stat-card::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 20% 20%, rgba(82,183,136,.15) 0%, transparent 65%);
      pointer-events: none;
    }
    .stat-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(0,0,0,.25);
    }
    .stat-card:hover::after {
      content: '→';
      position: absolute; bottom: 14px; right: 16px;
      font-size: 13px; font-weight: 700;
      color: rgba(255,255,255,.3);
    }
    .stat-icon { font-size: 28px; margin-bottom: 10px; display: block; }
    .stat-num {
      font-size: 36px; font-weight: 900; color: #fff;
      letter-spacing: -1.5px; line-height: 1;
    }
    .stat-num .stat-unit {
      font-size: 16px; font-weight: 600; color: rgba(255,255,255,.45);
      margin-left: 2px; letter-spacing: 0;
    }
    .stat-label {
      font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .08em; color: rgba(255,255,255,.4);
      margin-top: 6px;
    }
    .stat-card.highlight .stat-num { color: #52b788; }

    /* ── RECORD CARD (new achievement stat card) ── */
    .record-card {
      background: #fff;
      border-radius: 16px;
      border: 1px solid var(--gray-200);
      box-shadow: 0 2px 16px rgba(0,0,0,.07);
      overflow: hidden;
      margin-bottom: 32px;
      min-height: 180px;
    }
    .rc-stats { display: grid; grid-template-columns: repeat(4,1fr); min-height: 115px; }
    .rc-header {
      background: var(--amber-dark-bg);
      padding: 20px 24px;
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
    }
    .rc-header-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
    .rc-level-pill {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--gray-100); border: 1px solid var(--gray-200);
      border-radius: 20px; padding: 5px 13px; white-space: nowrap; flex-shrink: 0;
    }
    .rc-level-text { font-size: 13px; font-weight: 700; color: var(--gray-600); }
    .rc-summary {
      font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8);
      line-height: 1.45; min-width: 0;
    }
    .rc-summary em { font-style: normal; color: var(--amber-mid); font-weight: 700; }
    .rc-streak { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .rc-streak-icon { font-size: 15px; }
    .rc-streak-label { font-size: 11px; font-weight: 700; color: var(--amber-mid); white-space: nowrap; }
    .rc-streak-sub   { font-size: 10px; color: rgba(255,255,255,.35); white-space: nowrap; }

    .rc-stat {
      padding: 20px 18px 18px;
      border-right: 1px solid var(--gray-100);
      cursor: pointer; transition: background .15s;
      position: relative;
      display: flex; align-items: center; justify-content: center;
    }
    .rc-stat:last-child { border-right: none; }
    .rc-stat:hover { background: var(--gray-100); }
    .rc-stat.c-green:hover { background: #edfbf1; }
    .rc-stat.c-blue:hover  { background: #eaf3ff; }
    .rc-stat.c-amber:hover { background: #fff8eb; }
    .rc-stat.c-slate:hover { background: #f1f3f5; }
    .rc-stat:hover::after {
      content: '↗'; position: absolute; top: 10px; right: 11px;
      font-size: 13px; font-weight: 700; color: var(--gray-400);
    }
    .rc-stat.c-green:hover::after { color: var(--green); }
    .rc-stat.c-blue:hover::after  { color: var(--blue); }
    .rc-stat.c-amber:hover::after { color: var(--amber); }
    .rc-stat-main { display: flex; flex-direction: row; align-items: center; gap: 9px; }
    .rc-num {
      font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.03em; flex-shrink: 0;
    }
    .rc-num .rc-k { font-size: 34px; font-weight: 900; letter-spacing: -.03em; opacity: .55; }
    .rc-num span   { font-size: 34px; font-weight: 900; letter-spacing: -.03em; opacity: .55; }
    .rc-stat.c-green .rc-num { color: var(--green); }
    .rc-stat.c-blue  .rc-num { color: var(--blue); }
    .rc-stat.c-amber .rc-num { color: var(--amber); }
    .rc-stat.c-slate .rc-num { color: var(--gray-700); }
    .rc-label {
      display: flex; align-items: center; gap: 10px;
      font-size: 14px; font-weight: 700;
      letter-spacing: .01em;
      margin-top: 5px;
    }
    .rc-stat.c-green .rc-label { color: var(--green); }
    .rc-stat.c-blue  .rc-label { color: var(--blue); }
    .rc-stat.c-amber .rc-label { color: var(--amber); }
    .rc-stat.c-slate .rc-label { color: var(--gray-700); }
    .rc-icon { display: block; flex-shrink: 0; }
    .rc-sub { border-top: 1px solid var(--gray-100); padding: 10px 16px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 10px; }
    .rc-sub-item { font-size: 11px; color: var(--gray-400); line-height: 1.55; }
    .rc-sub-item strong { color: var(--gray-700); font-weight: 700; display: block; }

    @media (max-width: 640px) {
      .rc-stats { grid-template-columns: 1fr 1fr; }
      .rc-stat  { border-bottom: 1px solid var(--gray-100); }
      .rc-stat:nth-child(2n) { border-right: none; }
      .rc-header { flex-wrap: wrap; }
      .rc-streak { display: none; }
    }

    /* ── STAT DETAIL DRAWER ── */
    .sd-overlay {
      display: none; position: fixed; inset: 0;
      background: transparent; z-index: 9100;
    }
    .sd-overlay.open { display: block; }
    .sd-sheet {
      position: fixed;
      background: #fff; border-radius: 0 0 14px 14px;
      padding: 0 0 20px;
      box-shadow: 0 10px 36px rgba(0,0,0,.18);
      animation: sdDropDown .2s cubic-bezier(.2,.9,.4,1);
      overflow: hidden;
      z-index: 9101;
    }
    @keyframes sdDropDown {
      from { transform: translateY(-10px); opacity: 0; }
      to   { transform: translateY(0);     opacity: 1; }
    }

    /* Drawer header — mirrors rc-stat-main visual language */
    .sd-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px 13px;
      border-bottom: 1px solid rgba(0,0,0,.06);
    }
    .sd-header-main { display: flex; align-items: center; gap: 10px; }
    /* Match rc-num exactly — number and unit spans look identical to the card */
    .sd-big {
      font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.03em; flex-shrink: 0;
    }
    .sd-big span     { font-size: 34px; font-weight: 900; letter-spacing: -.03em; opacity: .55; }
    .sd-big .rc-k    { font-size: 34px; font-weight: 900; letter-spacing: -.03em; opacity: .55; }
    /* Match rc-label exactly — icon group */
    .sd-label-group { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
    .sd-word  { font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
    .sd-icon  { display: block; flex-shrink: 0; }
    .sd-close { font-size: 18px; color: var(--gray-400); cursor: pointer; line-height: 1; background: none; border: none; padding: 4px; }
    .sd-sub   { font-size: 12px; color: var(--gray-500); margin-bottom: 18px; }
    .sd-sub strong { color: var(--gray-700); }
    /* Drawer records row */
    .sd-records { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 20px 20px 24px; }
    .sd-rec-val  { font-size: 26px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
    .sd-rec-val span { font-size: 14px; font-weight: 600; opacity: .55; }
    .sd-rec-label { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }

    /* ── PACK BUILDER (inline, in Gear Shed) ── */
    .pb-name-prompt {
      display: none; align-items: center; gap: 10px;
      background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 10px;
      padding: 12px 16px; margin-bottom: 18px;
    }
    .pb-name-prompt.visible { display: flex; }
    .pb-name-prompt input {
      flex: 1; padding: 9px 12px; border: 1.5px solid var(--gray-300);
      border-radius: 8px; font-size: 14px; font-weight: 600; outline: none;
      font-family: inherit;
    }
    .pb-name-prompt input:focus { border-color: var(--green); }
    /* Split layout when builder is active */
    .pb-split { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
    @media (max-width: 720px) {
      .pb-split { grid-template-columns: 1fr; }
    }
    /* Gear items become clickable in build mode */
    .pb-build-active .shed-item-row { cursor: pointer; transition: background .12s, border-color .12s; }
    .pb-build-active .shed-item-row:hover { background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
    .pb-build-active .shed-item-row.in-pack { background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
    /* Add / added pill on each row in build mode */
    .pb-row-btn { display: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #bbf7d0;
      background: #f0fdf4; color: var(--green); font-size: 17px; font-weight: 700; cursor: pointer;
      align-items: center; justify-content: center; flex-shrink: 0; transition: background .12s; line-height: 1; }
    .pb-build-active .pb-row-btn { display: flex; }
    .pb-row-btn.added { background: var(--green); color: #fff; border-color: var(--green); font-size: 12px; }
    /* Build mode banner */
    .pb-banner {
      display: none; align-items: center; justify-content: space-between;
      background: var(--green); color: #fff; padding: 10px 16px;
      border-radius: 10px; margin-bottom: 16px; gap: 12px;
    }
    .pb-banner.visible { display: flex; }
    .pb-banner-name { font-size: 14px; font-weight: 800; }
    .pb-banner-hint { font-size: 12px; opacity: .75; margin-top: 2px; }
    /* Sticky pack panel */
    .pb-panel {
      background: #fff; border-radius: 14px; border: 1.5px solid #bbf7d0;
      box-shadow: 0 4px 24px rgba(45,106,79,.12); position: sticky; top: 72px; overflow: hidden;
    }
    .pb-panel-header { background: var(--green); padding: 14px 16px; }
    .pb-ph-name  { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 10px; }
    .pb-ph-weights { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
    .pb-ph-wt    { background: rgba(255,255,255,.15); border-radius: 7px; padding: 7px 6px; text-align: center; }
    .pb-ph-val   { font-size: 14px; font-weight: 900; color: #fff; }
    .pb-ph-lbl   { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); margin-top: 2px; }
    .pb-panel-items { max-height: 340px; overflow-y: auto; padding: 10px 12px; }
    .pb-panel-empty { padding: 24px 12px; text-align: center; font-size: 13px; color: var(--gray-400); }
    .pb-pi-row  { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
      background: var(--gray-50); border-radius: 8px; margin-bottom: 5px; }
    .pb-pi-name { font-size: 13px; font-weight: 600; color: var(--gray-900); flex: 1; min-width: 0;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pb-pi-wt   { font-size: 11px; color: var(--gray-400); flex-shrink: 0; }
    .pb-carry   { display: flex; border-radius: 6px; overflow: hidden; border: 1px solid var(--gray-200); flex-shrink: 0; }
    .pb-carry-btn { padding: 3px 8px; font-size: 10px; font-weight: 700; border: none; cursor: pointer;
      background: #fff; color: var(--gray-400); transition: background .1s, color .1s; }
    .pb-carry-btn.on { background: var(--green); color: #fff; }
    .pb-pi-remove { background: none; border: none; color: var(--gray-300); cursor: pointer;
      font-size: 16px; line-height: 1; padding: 0 2px; transition: color .12s; }
    .pb-pi-remove:hover { color: #dc2626; }
    .pb-panel-footer { padding: 12px; border-top: 1px solid var(--gray-100); }
    .pb-notes { width: 100%; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: 8px;
      font-size: 12px; color: var(--gray-700); outline: none; font-family: inherit; resize: none;
      margin-bottom: 8px; }
    .pb-notes:focus { border-color: var(--green); }
    /* Mobile: bottom sheet */
    @media (max-width: 720px) {
      .pb-panel {
        position: fixed; bottom: 0; left: 0; right: 0; top: auto;
        border-radius: 16px 16px 0 0; border: none;
        box-shadow: 0 -8px 40px rgba(0,0,0,.2); z-index: 400;
        max-height: 55vh; display: flex; flex-direction: column;
      }
      .pb-panel-items { flex: 1; }
      .pb-panel.collapsed .pb-panel-items,
      .pb-panel.collapsed .pb-panel-footer { display: none; }
      .pb-panel-header { cursor: pointer; }
      .pb-sheet-handle { width: 36px; height: 3px; background: rgba(255,255,255,.35);
        border-radius: 3px; margin: 0 auto 10px; }
    }

    /* ── ACHIEVEMENTS SCREEN ── */
    .ach-page-header { margin: 20px 0 18px; }
    .ach-page-title  { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 4px; }
    .ach-page-sub    { font-size: 13px; color: var(--gray-500); }
    .ach-callout {
      background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
      padding: 14px 18px; font-size: 13px; color: var(--green); font-weight: 600;
      display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    }
    .ach-section-title {
      font-size: 11px; font-weight: 800; text-transform: uppercase;
      letter-spacing: .1em; color: var(--gray-400); margin: 20px 0 12px;
    }
    .ach-badge-tabs {
      display: flex; gap: 0; border-bottom: 1px solid var(--gray-200);
      margin-bottom: 18px; overflow-x: auto;
      -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .ach-badge-tabs::-webkit-scrollbar { display: none; }
    .ach-tab {
      padding: 10px 16px; font-size: 12px; font-weight: 700; color: var(--gray-400);
      border-bottom: 2px solid transparent; cursor: pointer;
      white-space: nowrap; transition: color .15s, border-color .15s;
      background: none; border-top: none; border-left: none; border-right: none;
      font-family: inherit;
    }
    .ach-tab.active { color: var(--green); border-bottom-color: var(--green); }
    /* Badge grid */
    .badge-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
    @media (max-width: 640px) { .badge-grid { grid-template-columns: repeat(2,1fr); } }
    .badge {
      border-radius: 14px; padding: 18px 12px 16px;
      display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px;
      border: 1.5px solid transparent;
    }
    .badge.earned.g { background: #edfbf1; border-color: #bbf7d0; }
    .badge.earned.b { background: #eaf3ff; border-color: #bfdbfe; }
    .badge.earned.a { background: #fff8eb; border-color: #fde68a; }
    .badge.earned.s { background: #f1f3f5; border-color: #e2e8f0; }
    .badge.earned.p { background: #f5f3ff; border-color: #ddd6fe; }
    .badge.locked   { background: #fafafa; border-color: var(--gray-200); }
    .badge.locked .badge-icon-wrap { opacity: .3; filter: grayscale(1); }
    .badge-icon-wrap {
      width: 52px; height: 52px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .badge-icon-wrap.g { background: rgba(45,106,79,.12);  color: var(--green); }
    .badge-icon-wrap.b { background: rgba(37,99,235,.12);  color: var(--blue); }
    .badge-icon-wrap.a { background: rgba(217,119,6,.12);  color: var(--amber); }
    .badge-icon-wrap.s { background: rgba(55,65,81,.10);   color: var(--gray-700); }
    .badge-icon-wrap.p { background: rgba(109,40,217,.10); color: #6d28d9; }
    .badge-name  { font-size: 12px; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
    .badge.locked .badge-name { color: var(--gray-500); }
    .badge-desc  { font-size: 11px; color: var(--gray-500); line-height: 1.4; }
    .badge-date  { font-size: 10px; font-weight: 700; color: var(--green); }
    .badge-scope { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .5; }
    .badge-progress-wrap  { width: 100%; margin-top: 2px; }
    .badge-progress-track { height: 4px; border-radius: 2px; background: var(--gray-200); }
    .badge-progress-fill  { height: 4px; border-radius: 2px; background: var(--green-light); }
    .badge-progress-label { font-size: 10px; color: var(--gray-400); font-weight: 600; margin-top: 4px; text-align: center; }


    /* ── TRIP JOURNAL ─────────────────────────────────────────── */
    .tj-tab-strip {
      display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 0;
    }
    .tj-tab {
      padding: 12px 24px; font-size: 15px; font-weight: 700; border: none;
      background: none; cursor: pointer; border-bottom: 3px solid transparent;
      color: var(--gray-400); margin-bottom: -2px; font-family: inherit;
      position: relative; transition: color .15s;
      min-height: 44px; display: flex; align-items: center;
    }
    .tj-tab.active { border-bottom-color: var(--green); color: var(--green); }
    .tj-badge-dot {
      display: none; position: absolute; top: 10px; right: 8px;
      width: 8px; height: 8px; background: var(--red); border-radius: 50%;
    }
    .tj-stat-grid {
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px;
    }
    @media (max-width: 640px) { .tj-stat-grid { grid-template-columns: repeat(2, 1fr); } }
    .tj-stat-card {
      background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
      padding: 16px 18px; border-top: 4px solid var(--gray-200);
    }
    .tj-stat-card { cursor: pointer; transition: box-shadow .15s, transform .1s; }
    .tj-stat-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateY(-1px); }
    .tj-stat-card.selected { box-shadow: 0 0 0 2px currentColor; }
    .tj-stat-card.g.selected { box-shadow: 0 0 0 2px var(--green); }
    .tj-stat-card.b.selected { box-shadow: 0 0 0 2px var(--blue); }
    .tj-stat-card.a.selected { box-shadow: 0 0 0 2px var(--amber); }
    .tj-stat-card.s.selected { box-shadow: 0 0 0 2px #475569; }
    .tj-stat-card.g { border-top-color: var(--green); }
    .tj-stat-card.b { border-top-color: var(--blue); }
    .tj-stat-card.a { border-top-color: var(--amber); }
    .tj-stat-card.s { border-top-color: #475569; }
    .tj-stat-label {
      font-size: 11px; font-weight: 700; color: var(--gray-400);
      text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px;
    }
    .tj-stat-num { font-size: 28px; font-weight: 900; letter-spacing: -.5px; line-height: 1; }
    .tj-stat-num.g { color: var(--green); }
    .tj-stat-num.b { color: var(--blue); }
    .tj-stat-num.a { color: var(--amber); }
    .tj-stat-num.s { color: #475569; }
    #tj-page-sub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
    .tj-hd-stat { font-size: 14px; color: var(--gray-500); font-weight: 600; letter-spacing: .01em; }
    .tj-hd-stat em { font-style: normal; font-size: 24px; font-weight: 900; color: var(--gray-900); margin-right: 3px; letter-spacing: -.02em; }
    .tj-hd-sep  { color: var(--gray-300); font-size: 18px; font-weight: 300; line-height: 1; }
    .tj-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    @media (max-width: 640px) {
      .tj-charts-row {
        display: flex; overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 12px; padding-bottom: 8px;
      }
      .tj-charts-row::-webkit-scrollbar { display: none; }
      .tj-charts-row > .tj-chart-card {
        flex: 0 0 88%; scroll-snap-align: start; min-width: 0;
        padding: 20px 16px 18px;
      }
    }
    .tj-bottom-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 640px) { .tj-bottom-row  { grid-template-columns: 1fr; } }
    .tj-chart-card {
      background: #fff; border: none; border-radius: 16px;
      padding: 28px 28px 24px;
      box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
    }
    .tj-chart-title {
      font-size: 16px; font-weight: 800; color: var(--gray-900);
      margin-bottom: 18px; letter-spacing: -.01em;
    }
    .tj-bar-group { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 160px; }
    .tj-bar-group.tj-bar-dense { gap: 2px; }
    .tj-bar-group.tj-bar-dense .tj-bar-val   { font-size: 9px; }
    .tj-bar-group.tj-bar-dense .tj-bar-label { font-size: 9px; }
    .tj-bar-col   { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
    .tj-bar       { width: 100%; border-radius: 4px 4px 0 0; }
    .tj-bar-val   { font-size: 11px; font-weight: 800; color: var(--gray-700); }
    .tj-bar-label { font-size: 10px; color: var(--gray-400); font-weight: 600; }
    .tj-heat-row  { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; }
    .tj-heat-yr   { font-size: 11px; color: var(--gray-400); font-weight: 700; width: 36px; flex-shrink: 0; }
    .tj-heat-cell { flex: 1; height: 32px; border-radius: 5px; min-width: 0; }
    .tj-heat-months { display: flex; gap: 5px; padding-left: 40px; margin-top: 6px; }
    .tj-heat-mo   { flex: 1; text-align: center; font-size: 10px; color: var(--gray-400); font-weight: 700; min-width: 0; }
    .tj-detail-panel { border-radius: 12px; overflow: hidden; }
    .tj-detail-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px; font-size: 13px; font-weight: 800;
      color: var(--gray-700); border-bottom: 1px solid var(--gray-200);
      background: #fff;
    }
    .tj-detail-close {
      font-size: 18px; line-height: 1; color: var(--gray-400); cursor: pointer;
      background: none; border: none; padding: 0 2px; font-family: inherit;
    }
    .tj-detail-close:hover { color: var(--gray-700); }
    .tj-detail-body { background: #fff; padding: 18px; }
    .tj-insight-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
    @media (max-width: 640px) { .tj-insight-row { grid-template-columns: 1fr; } }
    .tj-insight {
      background: var(--gray-50); border: 1px solid var(--gray-200);
      border-radius: 12px; padding: 16px 18px;
    }
    .tj-freq-toggles { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
    @media (max-width: 640px) { .tj-freq-toggles { gap: 8px 14px; } }
    .tj-freq-link, .tj-miles-link, .tj-elev-link, .tj-heat-link {
      font-size: 13px; font-weight: 700; color: var(--gray-400); cursor: pointer;
      text-decoration: none; border-bottom: none;
      transition: color .12s; user-select: none;
      padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center;
    }
    .tj-freq-link:hover,  .tj-miles-link:hover,  .tj-elev-link:hover,  .tj-heat-link:hover  { color: #f97316; text-decoration: underline; text-underline-offset: 3px; }
    .tj-freq-link.active, .tj-miles-link.active, .tj-elev-link.active, .tj-heat-link.active { color: #f97316; text-decoration: underline; text-underline-offset: 3px; }
    .tj-insight-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
    .tj-insight-val   { font-size: 24px; font-weight: 900; letter-spacing: -.3px; }
    .tj-heat-grid { width: 100%; }
    .tj-chart-scroll { overflow-y: auto; max-height: 220px; scrollbar-width: thin; scrollbar-color: var(--gray-200) transparent; }
    .tj-chart-scroll::-webkit-scrollbar { width: 4px; }
    .tj-chart-scroll::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }
    .tj-heat-key  { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; justify-content: center; }
    .tj-heat-key-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gray-500); font-weight: 600; }
    .tj-heat-key-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
    .tj-trip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
    .tj-trip-item {
      background: var(--gray-50); border-radius: 10px; padding: 13px 16px;
      display: flex; align-items: center; gap: 12px;
    }
    .tj-trip-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tj-trip-right {
      display: grid; grid-template-columns: 78px 72px 58px 106px;
      gap: 0 4px; align-items: center; flex-shrink: 0;
    }
    .tj-trip-right > span { font-size: 12px; font-weight: 700; text-align: right; }
    .tj-trip-meta { display: none; align-items: center; gap: 5px; flex-wrap: wrap; }
    .tj-trip-meta-dot { color: var(--gray-300); font-size: 11px; }
    .tj-trip-stat-days { font-size: 12px; font-weight: 700; color: var(--gray-600); }
    .tj-trip-stat-elev { font-size: 12px; font-weight: 700; color: #475569; }
    .tj-trip-stat-dist { font-size: 12px; font-weight: 700; color: var(--amber); }
    .tj-trip-stat-date { font-size: 12px; font-weight: 600; color: var(--gray-400); }
    .tj-trip-item--clickable { cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
    .tj-trip-item--clickable:hover { background: #e9f5ee; box-shadow: 0 0 0 2px var(--green); }
    .tj-trip-no-date-hint { font-size: 11px; font-weight: 700; color: var(--amber); background: #fef3c7; border-radius: 6px; padding: 3px 8px; white-space: nowrap; flex-shrink: 0; }
    @media (max-width: 640px) {
      .tj-trip-item { flex-direction: column; align-items: flex-start; gap: 4px; }
      .tj-trip-name { white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.3; flex: none; width: 100%; }
      .tj-trip-right { display: none; }
      .tj-trip-meta { display: flex; }
      .tj-trip-no-date-hint { align-self: flex-start; }
    }

    /* ── SECTION HEADERS ── */
    .section-hd {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 14px;
    }
    .section-hd-left { display: flex; align-items: center; gap: 10px; }
    .section-title { font-size: 16px; font-weight: 800; color: var(--gray-900); }
    .section-count {
      background: var(--gray-200); color: var(--gray-500);
      font-size: 11px; font-weight: 700;
      padding: 2px 8px; border-radius: 20px;
    }
    .section-count.planned { background: #dbeafe; color: #1e40af; }
    .section-count.completed { background: var(--green-light); color: var(--green); }

    /* ── GET STARTED GRID (action cards — no fixed row height) ── */
    .get-started-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 16px; margin-bottom: 36px;
    }

    /* ── TRIP GRID ── */
    .trip-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      grid-auto-rows: 262px;
      gap: 16px; margin-bottom: 36px;
    }

    /* ── MOBILE: carousel layout ── */
    @media (max-width: 640px) {
      .trip-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 12px;
        margin-left: -16px; margin-right: -16px;
        padding-left: 16px; padding-right: 16px;
        /* hide scrollbar but keep scroll */
        scrollbar-width: none;
      }
      .trip-grid::-webkit-scrollbar { display: none; }
      .trip-grid .trip-card {
        flex: 0 0 82vw;
        max-width: 320px;
        height: 262px;
        scroll-snap-align: start;
      }
      .get-started-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 12px;
        margin-left: -16px; margin-right: -16px;
        padding-left: 16px; padding-right: 16px;
        scrollbar-width: none;
      }
      .get-started-grid::-webkit-scrollbar { display: none; }
      .get-started-grid > * {
        flex: 0 0 72vw;
        max-width: 280px;
        scroll-snap-align: start;
      }
    }

    /* ── GEAR NAME SUGGESTIONS DROPDOWN ── */
    .gi-suggestions {
      position: absolute; top: 100%; left: 0; right: 0; z-index: 10001;
      background: #fff; border: 1px solid var(--gray-200);
      border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14);
      margin-top: 4px; overflow: hidden;
    }
    .gi-suggestion-item {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 12px; cursor: pointer;
      border-bottom: 1px solid var(--gray-100);
      transition: background .1s;
    }
    .gi-suggestion-item:last-child { border-bottom: none; }
    .gi-suggestion-item:hover { background: var(--green-light); }
    .gi-suggestion-name { font-size: 13px; font-weight: 600; color: var(--gray-900); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gi-suggestion-meta { font-size: 11px; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; }

    /* ── TRIP CARD (dark full-bleed style) ── */
    .trip-card {
      background: linear-gradient(160deg, #0d1b2e 0%, #1a3154 55%, #2a5298 100%);
      border: none;
      border-radius: 18px; padding: 0;
      box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer;
      transition: transform .15s, box-shadow .15s;
      overflow: hidden;
      display: flex; flex-direction: column;
      height: 100%;
    }
    .trip-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.28); }
    .trip-card-header {
      background: transparent;
      padding: 20px 20px 18px;
      display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
    }
    .trip-card-header > div:first-child { min-width: 0; overflow: hidden; }
    .trip-card-header.completed-header { background: transparent; }
    .trip-card-body {
      padding: 0;
      display: flex; flex-direction: column; flex: 1;
    }
    .trip-card.is-completed { background: linear-gradient(160deg, #1f1205 0%, #3d220e 55%, #6b3d1a 100%); }
    .trip-card-name { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .trip-card-trail { font-size: 12px; color: rgba(255,255,255,.42); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .trip-badge-group {
      display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
      flex-shrink: 0; margin-left: 8px;
      min-height: 52px; /* fixed so cards with/without invitees have identical header height */
    }
    .trip-badge {
      font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
      white-space: nowrap;
    }
    .badge-type-dayhike  { background: rgba(255,255,255,.12); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15); }
    .badge-type-overnight{ background: rgba(255,255,255,.12); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15); }
    .badge-type-pack     { background: rgba(255,255,255,.12); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15); }
    .trip-card-profile { display: block; width: 100%; }
    .trip-card-stats {
      display: flex; gap: 0;
      border-top: 1px solid rgba(255,255,255,.07);
    }
    .trip-card-stats span {
      flex: 1; display: flex; flex-direction: column; align-items: center;
      padding: 8px 4px 0; text-align: center;
      border-right: 1px solid rgba(255,255,255,.07);
    }
    .trip-card-stats span:last-child { border-right: none; }
    .tcs-icon { margin-bottom: 2px; flex-shrink: 0; }
    .tcs-num  { font-size: 20px; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -.03em; }
    .tcs-unit { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.38); margin-top: 1px; }
    .tcs-lbl  { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.45); margin-top: 0px; margin-bottom: 8px; }
    /* ── CANCELLED TRIP CARD ── */
    .trip-card.is-cancelled {
      background: linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 100%); opacity: .6;
      cursor: default;
    }
    .trip-card.is-cancelled:hover { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
    .badge-cancelled { background: #fee2e2; color: #dc2626; }
    .trip-card-remove-btn {
      position: absolute; top: 10px; right: 10px;
      padding: 4px 10px; border-radius: 6px; border: 1px solid #fca5a5;
      background: #fff; color: #dc2626; font-size: 12px; font-weight: 600;
      cursor: pointer; opacity: 0; transition: opacity .15s;
      white-space: nowrap;
    }
    .trip-card.is-cancelled:hover .trip-card-remove-btn { opacity: 1; }

    /* ── DELETE TRIP CONFIRM MODAL ── */
    .del-trip-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.45);
      z-index: 1000; display: none; align-items: center; justify-content: center;
    }
    .del-trip-overlay.open { display: flex; }
    .del-trip-modal {
      background: #fff; border-radius: 14px; padding: 28px;
      width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
    }
    .del-trip-modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--gray-900); }
    .del-trip-modal p  { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; line-height: 1.5; }
    .del-trip-modal .del-trip-actions { display: flex; gap: 10px; }
    .del-trip-modal .del-trip-actions button { flex: 1; justify-content: center; }

    .completed-stamp {
      display: flex; align-items: center; gap: 5px;
      font-size: 11px; font-weight: 700; color: #52b788;
      margin-top: 10px;
    }
    .trip-card-footer {
      background: rgba(0,0,0,.28);
      border-top: none;
      margin-top: auto; padding: 10px 16px 14px;
      display: flex; gap: 8px;
    }

    /* ── RSVP AVATAR STACK ── */
    .tc-avatars {
      display: flex; align-items: center;
      position: relative; cursor: default;
    }
    .tc-avatar {
      width: 22px; height: 22px; border-radius: 50%;
      border: 2px solid #1a3154;
      display: flex; align-items: center; justify-content: center;
      font-size: 9px; font-weight: 800; color: #fff;
      margin-left: -6px; flex-shrink: 0;
    }
    .tc-avatar:first-child { margin-left: 0; }
    .tc-avatar.tc-accepted { background: #166534; }
    .tc-avatar.tc-pending  { background: #7f1d1d; }
    .tc-avatar.tc-overflow { background: rgba(255,255,255,.15); font-size: 8px; color: rgba(255,255,255,.7); }
    .tc-tooltip {
      position: absolute;
      top: calc(100% + 6px); right: 0;
      background: #1e293b;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 12px; padding: 10px 13px;
      min-width: 155px;
      box-shadow: 0 8px 28px rgba(0,0,0,.5);
      opacity: 0; pointer-events: none;
      transition: opacity .15s;
      z-index: 300;
      white-space: nowrap;
    }
    .tc-avatars:hover .tc-tooltip { opacity: 1; pointer-events: auto; }
    .tc-tooltip::after {
      content: ''; position: absolute;
      top: -6px; right: 10px;
      width: 10px; height: 10px;
      background: #1e293b;
      border-left: 1px solid rgba(255,255,255,.12);
      border-top: 1px solid rgba(255,255,255,.12);
      transform: rotate(45deg);
    }
    .tc-tooltip-hd {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .07em; color: rgba(255,255,255,.35); margin-bottom: 7px;
    }
    .tc-tooltip-person {
      display: flex; align-items: center; gap: 7px;
      padding: 3px 0; font-size: 12px; font-weight: 600;
    }
    .tc-tooltip-person + .tc-tooltip-person { border-top: 1px solid rgba(255,255,255,.06); }
    .tc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .tc-dot-green { background: #4ade80; }
    .tc-dot-red   { background: #f87171; }
    .tc-name-accepted { color: #4ade80; }
    .tc-name-pending  { color: #f87171; }
    .trip-status-select {
      font-size: 12px; font-weight: 600;
      padding: 5px 10px; border-radius: 6px;
      border: 1px solid rgba(255,255,255,.15);
      background: rgba(255,255,255,.08);
      color: rgba(255,255,255,.8); cursor: pointer;
      flex: 1;
    }
    .trip-status-select option { background: #1a3154; }
    .trip-card-complete-btn {
      background: none; border: 1.5px solid var(--gray-300);
      border-radius: 6px; padding: 6px 12px;
      font-size: 12px; font-weight: 700; color: var(--gray-500);
      cursor: pointer; transition: all .15s; flex: 1;
    }
    .trip-card-complete-btn:hover {
      border-color: #16a34a; color: #16a34a;
      background: #f0fdf4;
    }
    .trip-card-remove-btn-footer {
      background: none; border: 1px solid rgba(255,255,255,.15);
      border-radius: 6px; padding: 6px 10px;
      font-size: 12px; font-weight: 700; color: rgba(255,255,255,.25);
      cursor: pointer; transition: all .15s; flex-shrink: 0;
    }
    .trip-card-remove-btn-footer:hover {
      border-color: #fca5a5; color: #fca5a5; background: rgba(220,38,38,.15);
    }

    /* ── INVITATION CARD ── */
    .invite-card {
      background: #fffbeb; border: 1px solid #fde68a;
      border-radius: 12px; padding: 18px 20px;
      box-shadow: var(--shadow); position: relative; overflow: hidden;
    }
    .invite-card-accent {
      position: absolute; top: 0; left: 0; right: 0; height: 4px;
      background: linear-gradient(90deg, #f59e0b, #fbbf24);
    }
    .invite-card-from {
      font-size: 12px; font-weight: 700; color: #92400e;
      text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
    }
    .invite-card-name {
      font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 2px;
    }
    .invite-card-meta {
      font-size: 12px; color: var(--gray-500); margin-bottom: 14px;
    }
    .invite-card-actions { display: flex; gap: 8px; }
    .invite-btn-accept {
      flex: 1; padding: 8px 0; border-radius: 7px; border: none;
      background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
      cursor: pointer; transition: opacity .15s;
    }
    .invite-btn-accept:hover { opacity: .85; }
    .invite-btn-decline {
      flex: 1; padding: 8px 0; border-radius: 7px;
      border: 1px solid #fca5a5; background: #fff;
      color: #dc2626; font-size: 13px; font-weight: 600;
      cursor: pointer; transition: background .15s;
    }
    .invite-btn-decline:hover { background: #fef2f2; }

    /* ── NEW TRIP CARD ── */
    .trip-card-new {
      border-radius: 12px;
      min-height: 180px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      border: none;
      background-image: url('hero.jpeg');
      background-size: cover;
      background-position: center 40%;
      background-color: #0f2a1a; /* fallback while image loads */
      transition: transform .15s, box-shadow .15s;
    }
    .trip-card-new:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(0,0,0,.3);
    }
    .trip-card-new:hover .new-card-overlay { background: rgba(0,0,0,.28); }
    .new-card-overlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,.22); /* base tint so text stays readable */
      transition: background .25s ease;
    }
    .new-card-logo { display: none; }
    /* Always-visible label at bottom */
    .new-card-footer {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 10px 16px;
      background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
      display: flex; align-items: center; gap: 8px;
      z-index: 2;
    }
    .new-card-footer-text {
      font-size: 14px; font-weight: 800; color: #fff;
      text-shadow: 0 1px 6px rgba(0,0,0,.5);
      line-height: 1.2;
    }
    .new-card-footer-text small {
      display: block; font-size: 11px; font-weight: 400;
      color: rgba(255,255,255,.7); font-style: italic;
    }
    /* Hover CTA fades in */
    .new-card-content {
      position: absolute; inset: 0; z-index: 3;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity .25s ease;
    }
    .trip-card-new:hover .new-card-content { opacity: 1; }
    .new-card-plus {
      background: rgba(255,255,255,.18);
      border: 1.5px solid rgba(255,255,255,.5);
      border-radius: 20px;
      padding: 7px 18px;
      font-size: 13px; font-weight: 700; color: #fff;
      backdrop-filter: blur(4px);
      text-shadow: 0 1px 4px rgba(0,0,0,.3);
    }

    /* ── REPEAT TRIP CARD ── */
    .trip-card-repeat {
      border-radius: 12px;
      min-height: 180px;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      border: none;
      background: linear-gradient(145deg, #2c1a0e, #7c4a1e);
      transition: transform .15s, box-shadow .15s;
    }
    .trip-card-repeat:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(0,0,0,.3);
    }
    .trip-card-repeat:hover .repeat-card-overlay { background: rgba(0,0,0,.18); }
    .repeat-card-overlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0);
      transition: background .25s ease;
    }
    .trip-card-repeat {
      background-size: cover;
      background-position: center;
    }
    /* Always-visible label at the bottom */
    .repeat-card-label {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 10px 16px;
      background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
      display: flex; align-items: center; gap: 8px;
      z-index: 2;
    }
    .repeat-card-text {
      font-size: 14px; font-weight: 800; color: #fff;
      text-shadow: 0 1px 6px rgba(0,0,0,.5);
      line-height: 1.2;
    }
    .repeat-card-text small {
      display: block; font-size: 11px; font-weight: 400;
      color: rgba(255,255,255,.7); font-style: italic;
    }
    /* Hover CTA fades in */
    .repeat-card-hover {
      position: absolute; inset: 0; z-index: 3;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity .25s ease;
    }
    .trip-card-repeat:hover .repeat-card-hover { opacity: 1; }
    .repeat-card-cta {
      background: rgba(255,255,255,.18);
      border: 1.5px solid rgba(255,255,255,.5);
      border-radius: 20px;
      padding: 7px 18px;
      font-size: 13px; font-weight: 700; color: #fff;
      backdrop-filter: blur(4px);
      text-shadow: 0 1px 4px rgba(0,0,0,.3);
    }

    /* ── TRAIL LIBRARY CARD ── */
    .trip-card-trails {
      border-radius: 12px; min-height: 180px; cursor: pointer;
      position: relative; overflow: hidden;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      border: none;
      background: linear-gradient(145deg, #1a2e1a, #2d5a27);
      transition: transform .15s, box-shadow .15s;
    }
    .trip-card-trails:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
    .trip-card-trails:hover .trails-card-overlay { background: rgba(0,0,0,.18); }
    .trails-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s; }
    .trip-card-trails {
      background-size: cover;
      background-position: center;
    }
    .trails-card-footer {
      position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 16px;
      background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
      display: flex; align-items: center; gap: 8px; z-index: 2;
    }
    .trails-card-footer-text {
      font-size: 14px; font-weight: 800; color: #fff;
      text-shadow: 0 1px 6px rgba(0,0,0,.5); line-height: 1.2;
    }
    .trails-card-footer-text small {
      display: block; font-size: 11px; font-weight: 400;
      color: rgba(255,255,255,.7); font-style: italic;
    }
    .trails-card-hover {
      position: absolute; inset: 0; z-index: 3;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity .25s;
    }
    .trip-card-trails:hover .trails-card-hover { opacity: 1; }
    .trails-card-cta {
      background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.5);
      border-radius: 20px; padding: 7px 18px;
      font-size: 13px; font-weight: 700; color: #fff;
      backdrop-filter: blur(4px); text-shadow: 0 1px 4px rgba(0,0,0,.3);
    }

    /* ── TRAIL PICKER MODAL ── */
    .trail-picker-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.5);
      z-index: 1000; display: none; align-items: center; justify-content: center;
      padding: 20px;
    }
    .trail-picker-overlay.open { display: flex; }
    .trail-picker-modal {
      background: #fff; border-radius: 16px; width: 100%; max-width: 640px;
      max-height: 85vh; display: flex; flex-direction: column;
      box-shadow: 0 24px 64px rgba(0,0,0,.25);
    }
    .trail-picker-header {
      padding: 24px 24px 16px; border-bottom: 1px solid var(--gray-100);
      display: flex; align-items: center; justify-content: space-between;
    }
    .trail-picker-header h3 { font-size: 18px; font-weight: 800; color: var(--gray-900); }
    .trail-picker-header p  { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
    .trail-picker-list { overflow-y: auto; flex: 1; padding: 8px 0; }
    .trail-row {
      display: flex; align-items: center; gap: 16px;
      padding: 14px 24px; cursor: pointer; transition: background .12s;
      border-bottom: 1px solid var(--gray-50);
    }
    .trail-row:hover { background: #f0fdf4; }
    .trail-row-icon { font-size: 28px; flex-shrink: 0; }
    .trail-row-body { flex: 1; }
    .trail-row-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
    .trail-row-region { font-size: 12px; color: var(--gray-400); margin-top: 1px; }
    .trail-row-stats { display: flex; gap: 12px; margin-top: 5px; flex-wrap: wrap; }
    .trail-row-stat { font-size: 12px; color: var(--gray-500); }
    .trail-row-stat strong { color: var(--gray-700); }
    .trail-difficulty {
      font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
      white-space: nowrap; align-self: flex-start; margin-top: 2px;
    }
    .diff-moderate  { background: #fef9c3; color: #854d0e; }
    .diff-strenuous { background: #fee2e2; color: #991b1b; }
    .diff-epic      { background: #ede9fe; color: #5b21b6; }
    .trail-picker-footer {
      padding: 16px 24px; border-top: 1px solid var(--gray-100);
      display: flex; justify-content: space-between; align-items: center;
    }

    /* ── REPEAT TRIP MODAL ─────────────────────────────────── */
    .rt-trip-row {
      padding: 12px 16px;
      cursor: pointer;
      border-bottom: 1px solid var(--gray-100);
      transition: background .12s;
    }
    .rt-trip-row:hover { background: var(--gray-50); }
    .rt-trip-row.selected { background: #f0fdf4; }
    .rt-row-check {
      width: 22px; height: 22px; border-radius: 50%;
      border: 2px solid var(--gray-300);
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700; color: #fff;
      flex-shrink: 0; transition: background .15s, border-color .15s;
    }
    .rt-trip-row.selected .rt-row-check {
      border-color: var(--green); background: var(--green);
    }
    .rt-carry-chip {
      font-size: 11px; font-weight: 600; padding: 3px 10px;
      border-radius: 20px; white-space: nowrap;
    }
    .rt-carry-yes { background: #dcfce7; color: #15803d; }
    .rt-carry-no  { background: var(--gray-100); color: var(--gray-400); text-decoration: line-through; }
    .rt-prefilled {
      background: #f0fdf4 !important;
      border-color: #bbf7d0 !important;
    }

    /* ── STEP 1: PLAN TRIP ─────────────────────────────────── */
    .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
    @media (max-width: 640px) { .two-col, .three-col { grid-template-columns: 1fr; } }

    /* keep .preview-row for friends preview in banner */
    .preview-row {
      display: flex; justify-content: space-between;
      font-size: 13px; padding: 6px 0;
      border-bottom: 1px solid var(--gray-200);
    }
    .preview-row:last-child { border-bottom: none; }
    .preview-row .pk { color: var(--gray-500); }
    .preview-row .pv { font-weight: 600; }

    /* ── TRIP BANNER ───────────────────────────────────────── */
    .trip-banner {
      background: #1a3d2e;
      border-radius: 12px;
      padding: 20px 24px;
      margin-bottom: 20px;
      color: #fff;
      min-height: 80px;
      display: flex; align-items: center;
    }
    .trip-banner-empty {
      font-size: 14px; color: rgba(255,255,255,.4);
      font-style: italic; width: 100%; text-align: center;
    }
    .trip-banner-filled { width: 100%; }
    .trip-banner-name {
      font-size: 22px; font-weight: 800; letter-spacing: -.3px;
      color: #fff; line-height: 1.1; margin-bottom: 2px;
    }
    .trip-banner-trail {
      font-size: 13px; color: rgba(255,255,255,.55);
      margin-bottom: 14px;
    }
    .trip-banner-stats {
      display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    }
    .trip-stat-chip {
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.15);
      border-radius: 20px; padding: 4px 12px;
      font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9);
      white-space: nowrap;
    }
    .trip-stat-chip.highlight {
      background: rgba(82,183,136,.25);
      border-color: rgba(82,183,136,.4);
      color: var(--green-light);
    }
    .trip-stat-chip.friends-chip {
      background: rgba(37,99,235,.25);
      border-color: rgba(37,99,235,.4);
      color: #93c5fd;
    }

    /* ── STEP 2: GEAR LIST ─────────────────────────────────── */
    .gear-row-wf {
      display: flex; align-items: center; padding: 10px 0;
      border-bottom: 1px solid var(--gray-100); gap: 12px;
    }
    .gear-row-wf:last-child { border-bottom: none; }
    .gear-row-wf input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
    .gear-row-wf .gname { flex: 1; font-size: 13px; }
    .gear-row-wf .gcat  { font-size: 11px; color: var(--gray-400); }
    .gear-row-wf .gwt   { font-size: 12px; font-weight: 600; color: var(--gray-500); white-space: nowrap; }

    .weight-sidebar {
      background: var(--gray-900); color: #fff;
      border-radius: var(--radius); padding: 20px;
      position: sticky; top: 72px;
    }
    .weight-sidebar h3 { font-size: 12px; opacity: .5; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
    .ws-total { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -1px; }
    .ws-unit  { font-size: 14px; opacity: .6; }
    .ws-rows  { margin-top: 14px; }
    .ws-row   { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .ws-row:last-child { border-bottom: none; }
    .ws-row .wl { opacity: .55; }
    .ws-row .wv { font-weight: 600; }

    /* ── STEP 3: FOOD ──────────────────────────────────────── */
    .cal-banner {
      background: linear-gradient(135deg, #1a3d2e, #2d6a4f);
      color: #fff; border-radius: var(--radius);
      padding: 18px 22px; margin-bottom: 20px;
      display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
    }
    .cal-big { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
    .cal-sub { font-size: 12px; opacity: .65; }
    .cal-breakdown-wf { display: flex; gap: 20px; flex-wrap: wrap; }
    .cal-b-item { font-size: 12px; opacity: .75; }
    .cal-b-item strong { display: block; font-size: 16px; font-weight: 800; opacity: 1; }

    .day-tab-row {
      display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
    }
    .day-tab {
      padding: 6px 14px; border-radius: 20px; font-size: 12px;
      font-weight: 600; cursor: pointer; border: none;
      background: var(--gray-200); color: var(--gray-500);
      transition: all .15s;
    }
    .day-tab.active { background: var(--blue); color: #fff; }

    .meal-block {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
    }
    .meal-block-hd {
      display: flex; align-items: center; padding: 10px 16px;
      background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
      gap: 8px;
    }
    .meal-block-hd .mname { font-size: 13px; font-weight: 700; flex: 1; }
    .meal-block-hd .mtot  { font-size: 12px; color: var(--gray-400); }
    .meal-item-row {
      display: flex; align-items: center; padding: 9px 16px;
      border-bottom: 1px solid var(--gray-100); gap: 10px; font-size: 13px;
    }
    .meal-item-row:last-child { border-bottom: none; }
    .meal-item-row .mitem { flex: 1; }
    .meal-item-row .mcal  { font-size: 12px; color: var(--blue); font-weight: 600; }
    .meal-item-row .moz   { font-size: 12px; color: var(--green); font-weight: 600; width: 48px; text-align: right; }

    /* ── STEP 4: PUBLISH ───────────────────────────────────── */
    .publish-summary {
      display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
    }
    @media (max-width: 600px) { .publish-summary { grid-template-columns: 1fr; } }
    .pub-stat {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); padding: 18px; text-align: center;
    }
    .pub-stat .sv { font-size: 28px; font-weight: 800; color: var(--green); }
    .pub-stat .sl { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

    .share-box {
      background: var(--blue-light); border: 1px solid var(--blue-mid);
      border-radius: var(--radius); padding: 24px; text-align: center;
      margin-bottom: 20px;
    }
    .share-box h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
    .share-box p  { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }
    .share-url {
      background: var(--white); border: 1px solid var(--blue-mid);
      border-radius: 7px; padding: 10px 14px;
      font-size: 13px; color: var(--gray-500); font-family: monospace;
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }

    /* ── SCREEN: SHARED VIEW ───────────────────────────────── */
    .shared-hero {
      height: 220px; border-radius: var(--radius); overflow: hidden;
      position: relative; margin-bottom: 20px;
    }
    .shared-hero img { width: 100%; height: 100%; object-fit: cover; }
    .shared-hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65) 100%);
      display: flex; align-items: flex-end; padding: 20px;
    }
    .shared-hero-title { color: #fff; font-size: 22px; font-weight: 800; }
    .shared-hero-meta  { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 4px; }

    .shared-stats {
      display: flex; gap: 0; margin-bottom: 20px;
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); overflow: hidden;
    }
    .shared-stat {
      flex: 1; padding: 16px; text-align: center;
      border-right: 1px solid var(--gray-200);
    }
    .shared-stat:last-child { border-right: none; }
    .shared-stat .sv { font-size: 20px; font-weight: 800; color: var(--green); }
    .shared-stat .sl { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

    /* ── NAV ACTIONS ───────────────────────────────────────── */
    .step-actions {
      display: flex; justify-content: space-between; align-items: center;
      flex-wrap: wrap; gap: 10px;
      margin-top: 28px; padding-top: 20px;
      border-top: 1px solid var(--gray-200);
    }

    /* ── FRIENDS ───────────────────────────────────────────── */
    .friends-card {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); box-shadow: var(--shadow);
      margin-top: 20px; overflow: hidden;
    }
    .friends-card-hd {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px; border-bottom: 1px solid var(--gray-200);
      background: var(--gray-50);
    }
    .friends-card-hd h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
    .friends-card-hd a  { font-size: 12px; color: var(--blue); cursor: pointer; text-decoration: underline; }

    .friends-selected-strip {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      padding: 12px 18px; border-bottom: 1px solid var(--gray-200);
      background: var(--blue-light); min-height: 52px;
    }
    .friends-selected-strip .strip-label {
      font-size: 11px; font-weight: 700; color: var(--blue);
      text-transform: uppercase; letter-spacing: .5px; margin-right: 4px;
    }
    .friend-chip {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--white); border: 1px solid var(--blue-mid);
      border-radius: 20px; padding: 4px 10px 4px 6px;
      font-size: 12px; font-weight: 600; color: var(--blue);
      cursor: pointer;
    }
    .friend-chip .chip-avatar {
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--blue); color: #fff;
      font-size: 9px; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
    }
    .friend-chip .chip-x { font-size: 13px; opacity: .5; margin-left: 2px; }
    .friend-chip:hover .chip-x { opacity: 1; color: var(--red); }
    .no-friends-msg { font-size: 12px; color: var(--blue); opacity: .6; font-style: italic; }

    .friends-list { padding: 8px 0; }
    .friend-row {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 18px; cursor: pointer;
      transition: background .1s;
      border-bottom: 1px solid var(--gray-100);
    }
    .friend-row:last-child { border-bottom: none; }
    .friend-row:hover { background: var(--gray-50); }
    .friend-row.selected { background: var(--blue-light); }

    .friend-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0;
    }
    .friend-info { flex: 1; }
    .friend-name { font-size: 14px; font-weight: 600; }
    .friend-email { font-size: 12px; color: var(--gray-400); }
    .friend-toggle {
      width: 20px; height: 20px; border-radius: 50%;
      border: 2px solid var(--gray-300);
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; flex-shrink: 0; transition: all .15s;
    }
    .friend-row.selected .friend-toggle {
      background: var(--blue); border-color: var(--blue); color: #fff;
    }

    .add-friend-row {
      display: flex; gap: 8px; align-items: center;
      padding: 12px 18px; border-top: 1px dashed var(--gray-200);
      background: var(--gray-50);
    }
    .add-friend-row input {
      flex: 1; padding: 7px 10px; border: 1px solid var(--gray-300);
      border-radius: 6px; font-size: 13px; outline: none;
    }
    .add-friend-row input:focus { border-color: var(--blue); }

    /* ── GEAR SETS ─────────────────────────────────────────── */
    .gear-tabs {
      display: flex; gap: 0; margin-bottom: 20px;
      background: var(--gray-200); padding: 3px; border-radius: 8px;
      width: fit-content;
    }
    .gear-tab {
      padding: 7px 18px; font-size: 13px; font-weight: 600;
      border: none; border-radius: 6px; cursor: pointer;
      background: none; color: var(--gray-500); transition: all .15s;
    }
    .gear-tab.active { background: var(--white); color: var(--gray-900); box-shadow: var(--shadow); }

    .gear-set {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); margin-bottom: 12px;
      box-shadow: var(--shadow); overflow: visible;
    }
    .gear-set-hd {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 16px; cursor: pointer;
      background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
      border-radius: var(--radius) var(--radius) 0 0;
    }
    .gear-set-hd:hover { background: var(--gray-100); }
    .set-chevron { font-size: 10px; color: var(--gray-400); transition: transform .2s; }
    .gear-set.collapsed .set-chevron { transform: rotate(-90deg); }
    .set-icon { font-size: 16px; }
    .set-name { font-size: 14px; font-weight: 700; flex: 1; color: var(--gray-900); }
    .set-sublabel { font-size: 11px; font-weight: 400; color: var(--gray-400); margin-left: 4px; }
    .set-status { font-size: 12px; font-weight: 600; color: var(--green); }
    .gear-set.collapsed .gear-set-body { display: none; }

    .component-row {
      display: flex; align-items: center; gap: 10px;
      padding: 9px 16px 9px 32px;
      border-bottom: 1px solid var(--gray-100);
      position: relative;
    }
    .component-row:last-child { border-bottom: none; }
    .component-row:hover { background: var(--gray-50); }
    .comp-indent { color: var(--gray-300); font-size: 13px; flex-shrink: 0; }
    .comp-name { font-size: 13px; flex: 1; color: var(--gray-700); }
    .comp-wt { font-size: 12px; color: var(--gray-400); white-space: nowrap; margin-right: 8px; }

    .carrier-me {
      display: inline-flex; align-items: center; gap: 4px;
      background: var(--green-light); color: var(--green);
      font-size: 11px; font-weight: 700; padding: 3px 8px;
      border-radius: 20px; white-space: nowrap;
    }
    .carrier-friend {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 11px; font-weight: 700; padding: 3px 8px;
      border-radius: 20px; white-space: nowrap; color: #fff;
    }
    .carrier-avatar {
      width: 16px; height: 16px; border-radius: 50%;
      font-size: 8px; font-weight: 800; color: #fff;
      display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,.3);
    }

    .assign-wrap { position: relative; }
    .assign-btn {
      font-size: 11px; font-weight: 600; padding: 4px 10px;
      border: 1px dashed var(--gray-300); border-radius: 6px;
      background: none; cursor: pointer; color: var(--blue);
      white-space: nowrap; transition: all .15s;
    }
    .assign-btn:hover { background: var(--blue-light); border-color: var(--blue); }

    .assign-popover {
      position: absolute; right: 0; top: calc(100% + 4px);
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
      z-index: 50; min-width: 180px; overflow: hidden;
      display: none;
    }
    .assign-popover.open { display: block; }
    .assign-popover-hd { padding: 8px 12px; font-size: 11px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400);
      border-bottom: 1px solid var(--gray-100); }
    .assign-option {
      display: flex; align-items: center; gap: 8px;
      padding: 9px 12px; cursor: pointer; font-size: 13px;
      transition: background .1s;
    }
    .assign-option:hover { background: var(--blue-light); }
    .ap-avatar {
      width: 24px; height: 24px; border-radius: 50%;
      font-size: 9px; font-weight: 800; color: #fff;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .assign-option-me { border-top: 1px solid var(--gray-100); }

    /* solo gear row (not a set) */
    .solo-gear-row {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 16px; border-bottom: 1px solid var(--gray-100);
    }
    .solo-gear-row:last-child { border-bottom: none; }
    .solo-gear-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
    .solo-gear-row .gname { flex: 1; font-size: 13px; }
    .solo-gear-row .gwt   { font-size: 12px; color: var(--gray-400); }

    /* ── GROUP VIEW ─────────────────────────────────────────── */
    .group-view {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 16px; margin-bottom: 20px;
    }
    @media (max-width: 700px) { .group-view { grid-template-columns: 1fr; } }
    .person-col {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    }
    .person-col-hd {
      display: flex; align-items: center; gap: 10px;
      padding: 12px 14px; border-bottom: 1px solid var(--gray-200);
    }
    .person-col-hd.me-hd { background: var(--green-light); }
    .person-col-hd.friend-hd { background: var(--blue-light); }
    .pc-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      font-size: 12px; font-weight: 800; color: #fff;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .pc-name { font-size: 13px; font-weight: 700; }
    .pc-total { font-size: 12px; color: var(--gray-500); }
    .pc-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 7px 14px; border-bottom: 1px solid var(--gray-100);
      font-size: 12px;
    }
    .pc-item:last-child { border-bottom: none; }
    .pc-item .pi-name { color: var(--gray-700); flex: 1; }
    .pc-item .pi-wt   { color: var(--gray-400); font-weight: 600; white-space: nowrap; }
    .pc-item.unassigned { background: var(--amber-light); }
    .pc-item.unassigned .pi-name { color: var(--amber); }

    .group-total-bar {
      background: var(--gray-900); color: #fff; border-radius: var(--radius);
      padding: 14px 18px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
      margin-bottom: 16px;
    }
    .gtb-stat { text-align: center; }
    .gtb-num { font-size: 20px; font-weight: 800; }
    .gtb-label { font-size: 11px; opacity: .5; }
    .gtb-div { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; }

    /* ── FRIEND GEAR SCREEN ─────────────────────────────────── */
    .invite-banner {
      background: linear-gradient(135deg, var(--green), #1f5c41);
      color: #fff; border-radius: var(--radius); padding: 18px 22px;
      display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
    }
    .invite-banner .ib-icon { font-size: 32px; }
    .invite-banner .ib-text { flex: 1; }
    .invite-banner .ib-title { font-size: 16px; font-weight: 700; }
    .invite-banner .ib-sub   { font-size: 13px; opacity: .75; margin-top: 2px; }
    .invite-banner .ib-actions { display: flex; gap: 8px; }

    .friend-gear-section {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
      box-shadow: var(--shadow);
    }
    .fgs-hd {
      display: flex; align-items: center; gap: 10px; padding: 13px 16px;
      background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
    }
    .fgs-hd h3 { font-size: 14px; font-weight: 700; flex: 1; }
    .fgs-hd .fgs-count { font-size: 12px; color: var(--gray-400); }

    .assigned-item-row {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 16px; border-bottom: 1px solid var(--gray-100);
    }
    .assigned-item-row:last-child { border-bottom: none; }
    .ai-icon { font-size: 15px; }
    .ai-info { flex: 1; }
    .ai-name { font-size: 13px; font-weight: 500; }
    .ai-meta { font-size: 11px; color: var(--gray-400); }
    .ai-wt   { font-size: 12px; color: var(--gray-500); font-weight: 600; margin-right: 8px; }
    .add-lib-btn {
      font-size: 11px; font-weight: 600; padding: 4px 8px;
      background: var(--blue-light); color: var(--blue);
      border: none; border-radius: 5px; cursor: pointer; white-space: nowrap;
    }
    .add-lib-btn:hover { background: var(--blue-mid); }
    .add-lib-btn.added { background: var(--green-light); color: var(--green); }

    /* ── GPX IMPORT ─────────────────────────────────────────── */
    .gpx-drop-zone {
      border: 2px dashed var(--gray-300); border-radius: 10px;
      padding: 18px 20px; margin-bottom: 20px;
      display: flex; align-items: center; gap: 16px;
      background: var(--gray-50); cursor: pointer;
      transition: border-color .2s, background .2s;
    }
    .gpx-drop-zone:hover { border-color: var(--blue); background: var(--blue-light); }
    .gpx-drop-zone.imported { border-color: var(--green); background: var(--green-light); border-style: solid; cursor: default; }
    .gpx-icon { font-size: 28px; flex-shrink: 0; }
    .gpx-text { flex: 1; }
    .gpx-text strong { font-size: 13px; display: block; margin-bottom: 2px; }
    .gpx-text small { font-size: 11px; color: var(--gray-400); line-height: 1.5; }
    .gpx-drop-zone.imported .gpx-text small { color: var(--green); }
    .gpx-sources {
      display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
    }
    .gpx-source-tag {
      font-size: 10px; font-weight: 700; padding: 2px 7px;
      border-radius: 4px; background: var(--white);
      border: 1px solid var(--gray-200); color: var(--gray-500);
    }
    .gpx-or-divider {
      display: flex; align-items: center; gap: 10px;
      font-size: 11px; color: var(--gray-400); margin-bottom: 16px;
    }
    .gpx-or-divider::before, .gpx-or-divider::after {
      content: ''; flex: 1; height: 1px; background: var(--gray-200);
    }

    /* ── PANTRY / FOOD PLAN ──────────────────────────────────── */
    .pantry-toolbar {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
    }
    .pantry-status { display: flex; align-items: center; gap: 10px; }

    .cal-progress-wrap { margin-bottom: 16px; }
    .cal-progress-track {
      height: 8px; background: var(--gray-200); border-radius: 99px;
      overflow: hidden; margin-bottom: 6px;
    }
    .cal-progress-fill {
      height: 100%; border-radius: 99px;
      background: linear-gradient(90deg, var(--green), #52b788);
      transition: width .4s ease;
    }
    .cal-progress-fill.over { background: var(--red); }
    .cal-progress-labels {
      display: flex; justify-content: space-between;
      font-size: 11px; color: var(--gray-500);
    }

    /* updated meal-block header to fit new controls */
    .meal-block-hd {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 16px; background: var(--gray-50);
      border-bottom: 1px solid var(--gray-200);
      border-radius: var(--radius) var(--radius) 0 0;
      flex-wrap: wrap;
    }
    .meal-block { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
    .mname { font-size: 13px; font-weight: 700; flex: 1; }
    .mtot  { font-size: 12px; color: var(--green); font-weight: 600; }
    .copy-all-btn {
      font-size: 11px; color: var(--blue); background: none;
      border: 1px solid var(--blue-mid); border-radius: 5px;
      padding: 3px 8px; cursor: pointer; white-space: nowrap;
    }
    .copy-all-btn:hover { background: var(--blue-light); }
    .copy-all-btn.copied { color: var(--green); border-color: var(--green-light); }

    .meal-item-row {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 16px; border-bottom: 1px solid var(--gray-100);
      font-size: 13px;
    }
    .meal-item-row:last-of-type { border-bottom: none; }
    .mitem { flex: 1; color: var(--gray-700); }
    .qty-ctrl {
      display: flex; align-items: center; gap: 4px;
      font-size: 12px; color: var(--gray-500);
    }
    .qty-ctrl button {
      width: 20px; height: 20px; border-radius: 4px;
      border: 1px solid var(--gray-300); background: var(--white);
      cursor: pointer; font-size: 12px; line-height: 1;
      display: flex; align-items: center; justify-content: center;
    }
    .qty-num { width: 18px; text-align: center; font-weight: 700; font-size: 12px; }
    .mcal { font-size: 12px; color: var(--gray-500); white-space: nowrap; min-width: 52px; text-align: right; }
    .moz  { font-size: 12px; color: var(--gray-400); white-space: nowrap; min-width: 40px; text-align: right; }
    .remove-item-btn {
      width: 20px; height: 20px; border-radius: 4px; border: none;
      background: none; color: var(--gray-300); cursor: pointer;
      font-size: 14px; line-height: 1; flex-shrink: 0;
    }
    .remove-item-btn:hover { background: var(--red-light); color: var(--red); }

    .add-pantry-row {
      padding: 8px 16px; background: var(--gray-50);
      border-top: 1px dashed var(--gray-200);
    }
    .add-pantry-btn {
      font-size: 12px; font-weight: 600; color: var(--blue);
      background: none; border: 1px dashed var(--blue-mid);
      border-radius: 6px; padding: 5px 12px; cursor: pointer; width: 100%;
      text-align: left; transition: all .15s;
    }
    .add-pantry-btn:hover { background: var(--blue-light); border-style: solid; }
    .add-pantry-btn.open { background: var(--blue-light); border-style: solid; }

    .pantry-picker {
      display: none; border-top: 1px solid var(--blue-mid);
      background: var(--white);
    }
    .pantry-picker.open { display: block; }
    .pantry-picker-search {
      width: 100%; padding: 8px 14px;
      border: none; border-bottom: 1px solid var(--gray-200);
      font-size: 13px; outline: none; background: var(--gray-50);
    }
    .pantry-picker-list { max-height: 220px; overflow-y: auto; }
    .pantry-picker-item {
      display: flex; align-items: center; gap: 8px;
      padding: 8px 14px; border-bottom: 1px solid var(--gray-100);
      cursor: pointer; transition: background .1s;
    }
    .pantry-picker-item:hover { background: var(--blue-light); }
    .pantry-picker-item:last-child { border-bottom: none; }
    .ppi-name { flex: 1; font-size: 13px; color: var(--gray-700); }
    .ppi-meta { font-size: 11px; color: var(--gray-400); white-space: nowrap; }
    .ppi-add {
      font-size: 11px; padding: 3px 10px; background: var(--blue);
      color: #fff; border: none; border-radius: 5px; cursor: pointer;
      flex-shrink: 0;
    }
    .ppi-add:hover { opacity: .85; }
    .ppi-add.added { background: var(--green); }

    /* Manage Pantry modal */
    .pantry-modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,.45);
      z-index: 100; display: none; align-items: center; justify-content: center;
    }
    .pantry-modal-overlay.open { display: flex; }
    .pantry-modal {
      background: var(--white); border-radius: 14px;
      width: 100%; max-width: 600px; max-height: 80vh;
      display: flex; flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,.25);
      margin: 20px;
    }
    .pm-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 22px; border-bottom: 1px solid var(--gray-200);
    }
    .pm-header h2 { font-size: 16px; font-weight: 800; }
    .pm-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-400); }

    /* ── ACCOUNT SETTINGS ─────────────────────────────────────── */
    .acct-swatch {
      width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
      border: 3px solid transparent; transition: transform .1s, border-color .15s;
      flex-shrink: 0;
    }
    .acct-swatch:hover { transform: scale(1.12); }
    .acct-swatch.selected { border-color: var(--gray-900); }
    .acct-avatar-lg {
      width: 64px; height: 64px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0;
      transition: background .2s;
    }
    .danger-zone {
      margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-200);
    }
    .danger-zone-label {
      font-size: 11px; font-weight: 800; text-transform: uppercase;
      letter-spacing: .07em; color: var(--red); margin-bottom: 10px;
    }
    .acct-icon-swatch {
      width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; border: 2px solid transparent;
      background: var(--gray-100); transition: transform .1s, border-color .15s, background .15s;
    }
    .acct-icon-swatch:hover { transform: scale(1.12); background: var(--gray-200); }
    .acct-icon-swatch.selected { border-color: var(--gray-900); background: var(--blue-light); }
    .acct-icon-swatch.initials-opt {
      font-size: 11px; font-weight: 800; color: var(--gray-500); letter-spacing: -.5px;
    }
    .pm-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
    .pm-import-zone {
      border: 2px dashed var(--gray-300); border-radius: 10px;
      padding: 20px; text-align: center; cursor: pointer; margin-bottom: 20px;
      transition: all .2s;
    }
    .pm-import-zone:hover { border-color: var(--blue); background: var(--blue-light); }
    .pm-import-zone.loaded { border-color: var(--green); background: var(--green-light); border-style: solid; }
    .pm-item-row {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 0; border-bottom: 1px solid var(--gray-100);
      font-size: 13px;
    }
    .pm-item-row:last-child { border-bottom: none; }
    .pm-cat-tag {
      font-size: 10px; font-weight: 700; padding: 2px 6px;
      border-radius: 4px; white-space: nowrap;
    }
    .pm-cat-breakfast { background: #fef9c3; color: #854d0e; }
    .pm-cat-lunch     { background: #dcfce7; color: #166534; }
    .pm-cat-snack     { background: #ede9fe; color: #5b21b6; }
    .pm-cat-dinner    { background: #fee2e2; color: #991b1b; }

    /* ── HOMEPAGE SCREEN ─────────────────────────────────────── */
    :root {
      --bolt: #f0c040;
    }
    .hp-hero {
      position: relative; height: clamp(520px, 72vh, 740px);
      display: flex; align-items: center; overflow: hidden;
      background: var(--gray-900);
    }
    .hp-slide {
      position: absolute; inset: 0;
      background-size: cover; background-position: center 40%;
      opacity: 0; transition: opacity 1.2s ease-in-out;
    }
    .hp-slide.active { opacity: 1; }
    .hp-hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(105deg,rgba(10,28,20,.85) 0%,rgba(10,28,20,.58) 45%,rgba(10,28,20,.18) 100%);
      z-index: 1;
    }
    .hp-dots {
      position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
      display: flex; gap: 8px; z-index: 3;
    }
    .hp-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: rgba(255,255,255,.38); cursor: pointer;
      transition: background .3s, transform .3s;
      border: none; padding: 0;
    }
    .hp-dot.active { background: #fff; transform: scale(1.25); }
    .hp-nav {
      position: absolute; top: 0; left: 0; right: 0;
      height: 64px; padding: 0 48px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(26,61,46,.7); backdrop-filter: blur(10px);
      z-index: 2;
    }
    .hp-nav-logo {
      display: flex; align-items: center;
    }
    .hp-nav-links { display: flex; align-items: center; gap: 28px; }
    .hp-nav-game {
      font-size: 0.85rem;
      font-weight: 600;
      color: rgba(255,255,255,0.8) !important;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 20px;
      padding: 6px 14px;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s;
    }
    .hp-nav-game:hover { color: #fff !important; background: rgba(255,255,255,0.18) !important; }
    .hp-nav-links a {
      color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500;
      text-decoration: none; cursor: pointer;
    }
    .hp-nav-links a:hover { color: #fff; }
    .hp-nav-login {
      border: 1px solid rgba(255,255,255,.45); color: #fff !important;
      font-weight: 600 !important; padding: 7px 16px !important;
      border-radius: 6px; cursor: pointer;
    }
    .hp-nav-login:hover { background: rgba(255,255,255,.1) !important; }
    .hp-nav-cta {
      background: var(--green-light) !important; color: var(--green) !important;
      font-weight: 700 !important; padding: 8px 18px !important;
      border-radius: 6px; font-size: 14px;
    }
    .hp-content {
      position: relative; z-index: 1;
      max-width: 1100px; margin: 0 auto;
      padding: 120px 48px 80px;
    }
    .hp-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 12px; font-weight: 700; letter-spacing: 2px;
      text-transform: uppercase; color: var(--bolt); margin-bottom: 20px;
    }
    .hp-eyebrow::before { content:''; width:28px; height:2px; background:var(--bolt); display:block; }
    .hp-title {
      font-size: clamp(46px,6.5vw,82px); font-weight: 900;
      line-height: 1.0; letter-spacing: -2px; color: #fff; margin-bottom: 24px;
    }
    .hp-title .hp-accent { color: var(--green-light); }
    .hp-sub {
      font-size: clamp(16px,1.8vw,19px); color: rgba(255,255,255,.78);
      max-width: 480px; line-height: 1.65; margin-bottom: 40px;
    }
    .hp-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
    .hp-btn-primary {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--green-light); color: var(--green);
      font-size: 15px; font-weight: 700; padding: 14px 28px;
      border-radius: 8px; border: none; cursor: pointer;
      transition: background .2s, transform .15s;
    }
    .hp-btn-primary:hover { background: #6ecf9e; transform: translateY(-1px); }
    .hp-btn-ghost {
      color: rgba(255,255,255,.85); font-size: 15px; font-weight: 600;
      background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.3);
      padding: 14px 4px; cursor: pointer; transition: color .2s;
    }
    .hp-bolt-bg {
      position: absolute; right: 7%; bottom: 0;
      width: 380px; height: 380px; opacity: .08; pointer-events: none;
    }


    /* ── PCT GAME PROMO BAND ── */
    .game-band {
      position: relative;
      overflow: hidden;
      padding: 52px 48px;
      background:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='xMidYMid slice'>  <path d='M-50 200 Q150 190 300 197 Q500 205 650 193 Q800 182 1000 190 Q1100 194 1250 185' stroke='rgba(82,183,136,0.13)' stroke-width='1.2' fill='none'/>  <path d='M-50 180 Q100 167 280 175 Q460 183 600 168 Q740 153 880 163 Q1050 173 1250 160' stroke='rgba(82,183,136,0.14)' stroke-width='1.2' fill='none'/>  <path d='M-50 158 Q80 142 240 151 Q400 160 540 143 Q680 126 820 138 Q980 150 1100 135 Q1200 125 1250 128' stroke='rgba(82,183,136,0.14)' stroke-width='1.3' fill='none'/>  <path d='M-50 134 Q60 118 210 128 Q360 138 490 120 Q620 102 760 114 Q900 127 1040 110 Q1150 97 1250 104' stroke='rgba(82,183,136,0.13)' stroke-width='1.2' fill='none'/>  <path d='M-50 108 Q40 92 190 103 Q340 114 460 94 Q580 74 730 89 Q880 104 1010 85 Q1120 70 1250 78' stroke='rgba(82,183,136,0.12)' stroke-width='1.1' fill='none'/>  <path d='M-50 82 Q30 66 180 77 Q330 88 450 68 Q570 48 720 63 Q870 78 1000 58 Q1110 42 1250 50' stroke='rgba(82,183,136,0.11)' stroke-width='1' fill='none'/>  <path d='M-50 55 Q20 40 160 51 Q300 62 420 42 Q540 22 700 38 Q860 54 990 32 Q1100 16 1250 24' stroke='rgba(82,183,136,0.09)' stroke-width='1' fill='none'/>  <ellipse cx='880' cy='130' rx='200' ry='52' stroke='rgba(82,183,136,0.09)' stroke-width='1' fill='none'/>  <ellipse cx='880' cy='130' rx='130' ry='33' stroke='rgba(82,183,136,0.09)' stroke-width='1' fill='none'/>  <ellipse cx='880' cy='130' rx='65' ry='16' stroke='rgba(82,183,136,0.08)' stroke-width='1' fill='none'/>  <ellipse cx='220' cy='110' rx='150' ry='40' stroke='rgba(82,183,136,0.08)' stroke-width='1' fill='none'/>  <ellipse cx='220' cy='110' rx='90' ry='24' stroke='rgba(82,183,136,0.08)' stroke-width='1' fill='none'/> </svg>") center/cover no-repeat,
        linear-gradient(110deg, #0d1f12 0%, #132618 30%, #192e1e 60%, #1a2e16 100%);
    }
    .game-band-inner {
      max-width: 1100px; margin: 0 auto;
      display: flex; align-items: center; gap: 48px;
      position: relative; z-index: 1;
    }
    .game-band-copy { flex: 1; }
    .game-band-eyebrow {
      font-size: 10px; font-weight: 700; letter-spacing: .12em;
      text-transform: uppercase; color: #d97706; margin-bottom: 10px;
    }
    .game-band-title {
      font-size: 32px; font-weight: 900; color: #fff;
      letter-spacing: -.5px; line-height: 1.1; margin-bottom: 10px;
    }
    .game-band-title span { color: #d97706; }
    .game-band-sub {
      font-size: 15px; color: rgba(255,255,255,.6); line-height: 1.6; max-width: 480px;
    }
    .game-band-stats {
      display: flex; gap: 36px; flex-shrink: 0;
      border-left: 1px solid rgba(255,255,255,.15);
      border-right: 1px solid rgba(255,255,255,.15);
      padding: 0 48px;
    }
    .game-band-stat { text-align: center; }
    .game-band-stat-num {
      font-size: 30px; font-weight: 900; color: #d97706;
      letter-spacing: -1px; line-height: 1;
    }
    .game-band-stat-lbl {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: .08em; color: rgba(255,255,255,.35); margin-top: 4px;
    }
    .game-band-cta {
      background: #d97706; color: #fff;
      font-size: 15px; font-weight: 800;
      padding: 14px 28px; border-radius: 9px;
      text-decoration: none; white-space: nowrap; flex-shrink: 0;
      box-shadow: 0 4px 20px rgba(217,119,6,.4);
      transition: background .15s, transform .15s;
      display: inline-block;
    }
    .game-band-cta:hover { background: #b45309; transform: translateY(-2px); }

    @media (max-width: 640px) {
      .game-band { padding: 36px 24px; }
      .game-band-inner { flex-direction: column; gap: 24px; }
      .game-band-stats {
        border-left: none; border-right: none;
        border-top: 1px solid rgba(255,255,255,.15);
        border-bottom: 1px solid rgba(255,255,255,.15);
        padding: 20px 0; justify-content: center;
      }
      .game-band-cta { display: block; text-align: center; }
    }

    /* stats band */
    .hp-stats {
      background: var(--green); color: #fff;
      padding: 26px 48px; display: flex; justify-content: center; flex-wrap: wrap;
      position: relative; overflow: hidden;
    }
    .hp-stat {
      flex: 1; max-width: 220px; text-align: center;
      padding: 0 24px; border-right: 1px solid rgba(255,255,255,.15);
    }
    .hp-stat:last-child { border-right: none; }
    .hp-stat-num { font-size: 30px; font-weight: 800; color: var(--bolt); letter-spacing: -1px; }
    .hp-stat-lbl { font-size: 11px; opacity: .6; margin-top: 2px; letter-spacing: .5px; }

    /* features band */
    .hp-features {
      background: #faf8f4; padding: 80px 48px; position: relative; overflow: hidden;
    }
    .hp-features-inner { max-width: 1100px; margin: 0 auto; }
    .hp-features-hd { margin-bottom: 48px; }
    .hp-features-eyebrow {
      font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
      text-transform: uppercase; color: var(--green-mid); margin-bottom: 10px;
    }
    .hp-features-title {
      font-size: clamp(26px,3.5vw,40px); font-weight: 800;
      letter-spacing: -1px; color: var(--green); line-height: 1.15;
    }
    .hp-cards {
      display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
    }
    .hp-card {
      background: #fff; border: 1px solid var(--gray-200);
      border-radius: 16px; padding: 30px 26px;
      transition: transform .2s, box-shadow .2s;
    }
    .hp-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0,0,0,.08), 0 0 0 1px rgba(240,192,64,.15);
    }
    .hp-card-icon {
      width: 50px; height: 50px; background: #f5edd8;
      border-radius: 12px; display: flex; align-items: center;
      justify-content: center; font-size: 24px; margin-bottom: 18px;
    }
    .hp-card-title { font-size: 17px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
    .hp-card-desc  { font-size: 13px; color: var(--gray-500); line-height: 1.7; }
    .hp-card-tag   {
      display: inline-block; margin-top: 14px; font-size: 11px;
      font-weight: 700; color: var(--green-mid); text-transform: uppercase; letter-spacing: 1px;
    }
    /* rose window watermark */
    .hp-rose {
      position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
      width: 340px; height: 340px; opacity: .055; pointer-events: none;
    }

    /* bolt divider */
    .hp-bolt-divider {
      background: var(--green); padding: 28px 48px;
      display: flex; align-items: center; justify-content: center;
      gap: 24px; position: relative; overflow: hidden;
    }
    .hp-bolt-divider::before, .hp-bolt-divider::after {
      content:''; position:absolute; border-radius:50%;
      border: 1px solid rgba(240,192,64,.07);
    }
    .hp-bolt-divider::before { width:340px;height:340px;top:50%;left:50%;transform:translate(-50%,-50%); }
    .hp-bolt-divider::after  { width:200px;height:200px;top:50%;left:50%;transform:translate(-50%,-50%); }
    .hp-bolt-line {
      height: 1px; width: 100px;
      background: linear-gradient(90deg,transparent,rgba(240,192,64,.4),transparent);
    }
    .hp-bolt-icon {
      color: var(--bolt); font-size: 28px;
      filter: drop-shadow(0 0 12px rgba(240,192,64,.6));
      animation: bolt-pulse 3s ease-in-out infinite;
    }
    .hp-bolt-dots { color: rgba(240,192,64,.25); font-size: 11px; letter-spacing: 8px; }
    @keyframes bolt-pulse {
      0%,100% { opacity:.7; filter:drop-shadow(0 0 8px rgba(240,192,64,.4)); }
      50%     { opacity:1;  filter:drop-shadow(0 0 18px rgba(240,192,64,.8)); }
    }

    /* cta band */
    .hp-cta {
      background: linear-gradient(135deg, var(--green) 0%, #1f5c41 100%);
      padding: 88px 48px; text-align: center; position: relative; overflow: hidden;
    }
    .hp-cta-bolt-l, .hp-cta-bolt-r {
      position: absolute; top: 50%; transform: translateY(-50%);
      opacity: .1; pointer-events: none;
    }
    .hp-cta-bolt-l { left: 5%; }
    .hp-cta-bolt-r { right: 5%; transform: translateY(-50%) scaleX(-1); }
    .hp-cta-inner  { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
    .hp-cta-title  {
      font-size: clamp(26px,3.5vw,40px); font-weight: 800;
      letter-spacing: -1px; color: #fff; margin-bottom: 14px; line-height: 1.15;
    }
    .hp-cta-body  { font-size: 16px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
    .hp-cta-strange {
      font-size: 13px; font-style: italic; color: rgba(255,255,255,.3);
      margin-bottom: 30px;
    }
    .hp-cta-btn {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--green-light); color: var(--green);
      font-size: 16px; font-weight: 800; padding: 16px 36px;
      border-radius: 10px; border: none; cursor: pointer;
      box-shadow: 0 4px 20px rgba(82,183,136,.35);
      transition: background .2s, transform .15s, box-shadow .2s;
    }
    .hp-cta-btn:hover {
      background: #6ecf9e; transform: translateY(-2px);
      box-shadow: 0 8px 30px rgba(82,183,136,.45);
    }

    /* footer */
    .hp-footer {
      background: #0f2419; padding: 32px 48px;
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    }
    .hp-footer-logo {
      display: flex; align-items: center; gap: 8px;
      font-size: 15px; font-weight: 700; color: rgba(255,255,255,.8);
    }
    .hp-footer-logo span { color: var(--green-light); }
    .hp-footer-r { text-align: right; }
    .hp-footer-p  { font-size: 12px; color: rgba(255,255,255,.4); }
    .hp-footer-strange { font-size: 11px; font-style: italic; color: rgba(255,255,255,.18); margin-top: 3px; }

    /* misc */
    .mt-4 { margin-top: 16px; }
    .mt-6 { margin-top: 24px; }
    .mb-4 { margin-bottom: 16px; }
    .mb-6 { margin-bottom: 24px; }
    .text-muted { color: var(--gray-500); font-size: 13px; }
    .flex-between { display: flex; justify-content: space-between; align-items: center; }

  /* ── TRAIL LIBRARY ────────────────────────────────────────────── */
  .tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
  .tl-card {
    background: var(--white); border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow .15s;
  }
  .tl-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
  .tl-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .tl-card-name { font-size: 15px; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
  .tl-card-loc { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
  .tl-badge {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    padding: 3px 8px; border-radius: 99px; flex-shrink: 0;
  }
  .tl-badge.easy       { background: #dcfce7; color: #166534; }
  .tl-badge.moderate   { background: #fef9c3; color: #854d0e; }
  .tl-badge.hard       { background: #ffedd5; color: #9a3412; }
  .tl-badge.strenuous  { background: #fee2e2; color: #991b1b; }
  .tl-stats { display: flex; gap: 16px; }
  .tl-stat { display: flex; flex-direction: column; }
  .tl-stat-val { font-size: 16px; font-weight: 800; color: var(--gray-900); }
  .tl-stat-lbl { font-size: 11px; color: var(--gray-400); }
  .tl-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
  .tl-section-label {
    font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 24px 0 12px;
  }
  .tl-section-hd {
    display: flex; align-items: center; justify-content: space-between;
    margin: 24px 0 12px;
  }
  .tl-empty { text-align: center; color: var(--gray-400); font-size: 13px; font-style: italic; padding: 40px 0; }

  /* ── View toggle pill (shared by planned trips + trail library) ── */
  .view-toggle {
    display: flex; align-items: center; gap: 2px;
    background: var(--gray-100); border-radius: 8px; padding: 3px;
  }
  .vt-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 26px; border: none; background: transparent;
    border-radius: 6px; cursor: pointer; color: var(--gray-400);
    transition: background 0.15s, color 0.15s;
  }
  .vt-btn:hover { background: var(--gray-200); color: var(--gray-700); }
  .vt-btn.vt-active { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

  .trip-list-view { margin-bottom: 8px; }

  /* ── Planned trips list-view controls (light-themed) ── */
  .plv-controls {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 8px;
  }
  .plv-status-select {
    font-size: 12px; font-weight: 600;
    padding: 5px 8px; border-radius: 6px;
    border: 1px solid var(--gray-200);
    background: #fff; color: var(--gray-700); cursor: pointer;
  }
  .plv-status-select:hover { border-color: var(--gray-400); }
  .plv-del-btn {
    background: none; border: 1px solid var(--gray-200);
    border-radius: 6px; padding: 5px 8px;
    font-size: 12px; cursor: pointer;
    color: var(--gray-400); transition: all .15s; flex-shrink: 0;
  }
  .plv-del-btn:hover { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }
  @media (max-width: 640px) {
    .plv-controls { margin-left: 0; margin-top: 6px; }
  }

  /* ── Trail library list view (3-col right grid: diff | elev | dist) ── */
  .tlv-right-3col { grid-template-columns: 80px 72px 58px !important; }

  /* ── Avatar stack inside list rows ── */
  .plv-avatars { display: flex; align-items: center; flex-shrink: 0; }
  .plv-avatars .tc-avatars { position: relative; }

  /* Trail picker modal */
  #trail-picker-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
  }
  #trail-picker-overlay.open { display: flex; }
  #trail-picker-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
    max-height: 80vh; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
  }
  .tp-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
  .tp-body { overflow-y: auto; padding: 16px 24px 24px; flex: 1; }
  .tp-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--gray-200); cursor: pointer;
    transition: background .1s; border-radius: 8px; padding: 10px 8px;
  }
  .tp-row:last-child { border-bottom: none; }
  .tp-row:hover { background: var(--gray-100); }
  .tp-row-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
  .tp-row-sub { font-size: 12px; color: var(--gray-400); margin-top: 1px; }
  .tp-row-stats { margin-left: auto; text-align: right; flex-shrink: 0; }
  .tp-row-stat { font-size: 12px; color: var(--gray-500); }

  /* ── ONBOARDING TOUR ──────────────────────────────────────────── */
  #ts-tour-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  #ts-tour-overlay.open { opacity: 1; pointer-events: auto; }
  #ts-tour-modal {
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 520px;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    overflow: hidden; position: relative;
  }
  .ts-tour-header { padding: 28px 32px 0; position: relative; }
  .ts-tour-skip {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; cursor: pointer;
    font-size: 12px; color: var(--gray-500); font-weight: 500;
    padding: 4px 8px; border-radius: 6px; transition: color .15s, background .15s;
  }
  .ts-tour-skip:hover { color: var(--gray-700); background: var(--gray-100); }
  .ts-tour-dots { display: flex; gap: 6px; margin-bottom: 24px; }
  .ts-tour-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); transition: background .3s, width .3s; }
  .ts-tour-dot.active { background: var(--green); width: 22px; border-radius: 4px; }
  .ts-tour-dot.done { background: #D9CEB2; }
  .ts-tour-body { padding: 0 32px 28px; }
  .ts-tour-step { display: none; }
  .ts-tour-step.active { display: block; }
  .ts-tour-step.entering { animation: tsTourIn .25s ease forwards; }
  .ts-tour-step.entering-back { animation: tsTourBack .25s ease forwards; }
  @keyframes tsTourIn   { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }
  @keyframes tsTourBack { from { opacity:0; transform:translateX(-18px); } to { opacity:1; transform:translateX(0); } }
  .ts-tour-step.active .ts-step-icon { animation: tsTourIconPop .3s ease; }
  @keyframes tsTourIconPop { 0% { transform:scale(.8);opacity:0; } 60% { transform:scale(1.08); } 100% { transform:scale(1);opacity:1; } }
  .ts-step-icon { width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:30px; margin-bottom:20px; }
  .ts-step-icon.welcome   { background:#fff7ed; }
  .ts-step-icon.plan      { background:#eff6ff; }
  .ts-step-icon.pack      { background:var(--green-light,#f0fdf4); }
  .ts-step-icon.food      { background:#fff7ed; }
  .ts-step-icon.shakedown { background:#fdf4ff; }
  .ts-step-icon.done      { background:var(--green-light,#f0fdf4); }
  .ts-tour-title { font-size:22px; font-weight:800; color:var(--gray-900); letter-spacing:-.4px; margin-bottom:10px; line-height:1.2; }
  .ts-tour-text  { font-size:15px; color:var(--gray-700); line-height:1.65; margin-bottom:20px; }
  .ts-tour-text strong { color:var(--gray-900); }
  .ts-tour-pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
  .ts-tour-pill  { display:inline-flex; align-items:center; gap:5px; background:var(--gray-100); border-radius:99px; padding:5px 12px; font-size:12px; font-weight:600; color:var(--gray-700); }
  .ts-tour-preview { background:var(--gray-100); border-radius:12px; padding:14px 16px; margin-bottom:24px; border:1px solid var(--gray-200); }
  .ts-tour-prow { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--gray-200); font-size:13px; color:var(--gray-700); }
  .ts-tour-prow:last-child { border-bottom:none; }
  .ts-tour-prow .tsp-icon { font-size:16px; width:22px; text-align:center; }
  .ts-tour-plabel { flex:1; font-weight:500; }
  .ts-tour-pval   { font-size:12px; color:var(--gray-400); }
  .ts-tour-pbadge { font-size:11px; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--green-light,#f0fdf4); color:var(--green); }
  .ts-wbar-wrap  { margin-bottom:8px; }
  .ts-wbar-label { display:flex; justify-content:space-between; font-size:12px; color:var(--gray-500); margin-bottom:4px; }
  .ts-wbar-track { height:8px; background:var(--gray-200); border-radius:99px; overflow:hidden; }
  .ts-wbar-fill  { height:100%; border-radius:99px; background:var(--green); transition:width 1s ease; }
  .ts-cal-gauge  { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
  .ts-cal-circle { width:56px; height:56px; border-radius:50%; border:4px solid var(--green); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .ts-cal-val    { font-size:11px; font-weight:800; color:var(--green); text-align:center; line-height:1.1; }
  .ts-cal-title  { font-size:13px; font-weight:700; color:var(--gray-900); }
  .ts-cal-sub    { font-size:12px; color:var(--gray-500); }
  .ts-tour-done-emoji { font-size:48px; margin-bottom:16px; display:block; text-align:center; }
  .ts-tour-footer { padding:0 32px 28px; display:flex; align-items:center; justify-content:space-between; }
  .ts-tour-back { background:none; border:1px solid var(--gray-200); border-radius:10px; padding:10px 20px; font-size:14px; font-weight:600; color:var(--gray-500); cursor:pointer; transition:background .15s; }
  .ts-tour-back:hover { background:var(--gray-100); }
  .ts-tour-back:disabled { opacity:0; pointer-events:none; }
  .ts-tour-next { background:var(--green); border:none; border-radius:10px; padding:11px 28px; font-size:14px; font-weight:700; color:#fff; cursor:pointer; transition:background .15s, transform .1s; display:flex; align-items:center; gap:6px; }
  .ts-tour-next:hover  { background:#235c43; }
  .ts-tour-next:active { transform:scale(.97); }
  .ts-tour-next.cta       { background:#2563eb; }
  .ts-tour-next.cta:hover { background:#1d4ed8; }
  .ts-tour-counter { font-size:12px; color:var(--gray-400); font-weight:500; }

/* ── DAY HIKE SCREEN ───────────────────────────────────────── */
  /* Safety banner */
  .dh-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .dh-banner-icon { font-size: 24px; flex-shrink: 0; }
  .dh-banner-title { font-size: 15px; font-weight: 700; color: #15803d; margin-bottom: 4px; }
  .dh-banner-body  { font-size: 13px; color: #166534; line-height: 1.5; }

  /* Category group */
  .dh-category { margin-bottom: 22px; }
  .dh-category-hd {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-500);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Gear row */
  .dh-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
    margin-bottom: 4px;
  }
  .dh-item:hover { background: var(--gray-100); }
  .dh-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--green);
    flex-shrink: 0;
    cursor: pointer;
  }
  .dh-item-body { flex: 1; }
  .dh-item-name-row { display: flex; align-items: center; gap: 8px; }
  .dh-item-name  { font-size: 14px; font-weight: 600; color: var(--gray-900); }
  .dh-item-note  { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

  /* In-shed / missing badges */
  .dh-badge-shed    { font-size: 11px; font-weight: 600; color: var(--green); background: #f0fdf4; padding: 2px 7px; border-radius: 20px; }
  .dh-badge-missing { font-size: 11px; font-weight: 600; color: #92400e; background: #fef3c7; padding: 2px 7px; border-radius: 20px; }

  /* Footer CTA */
  .dh-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 14px;
    margin-top: 4px;
  }
/* ── END DAY HIKE ───────────────────────────────────────────── */

/* ── ADMIN ─────────────────────────────────────────────────── */
.admin-nav-link { color: var(--red) !important; font-weight: 800 !important; }

.admin-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px;
}
@media (max-width: 640px) { .admin-stat-row { grid-template-columns: repeat(2, 1fr); } }

.admin-stat-card {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  border-top: 4px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-stat-g { border-top-color: var(--green); }
.admin-stat-b { border-top-color: var(--blue); }
.admin-stat-a { border-top-color: var(--amber); }
.admin-stat-s { border-top-color: #475569; }
.admin-stat-val {
  font-size: 28px; font-weight: 900; letter-spacing: -.5px; line-height: 1;
  color: var(--gray-900);
}
.admin-stat-label {
  font-size: 11px; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 6px;
}

.admin-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
}
.admin-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table thead tr {
  background: var(--gray-50); border-bottom: 2px solid var(--gray-200);
}
.admin-table th {
  padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 800;
  color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--gray-100);
  vertical-align: top; color: var(--gray-700);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--gray-50); }

.au-name-cell { display: flex; align-items: center; gap: 10px; }
.au-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.au-name  { font-weight: 800; color: var(--gray-900); font-size: 13px; }
.au-email { font-size: 11px; color: var(--gray-400); font-weight: 500; margin-top: 1px; }
.au-trail { font-size: 11px; color: var(--green); font-weight: 700; margin-top: 2px; }

.au-trips-num { font-weight: 900; font-size: 15px; color: var(--gray-900); }
.au-trips-sub { font-size: 11px; color: var(--gray-400); font-weight: 600; }

.au-tag {
  display: inline-block; border-radius: 6px; padding: 3px 8px;
  font-size: 11px; font-weight: 800; white-space: nowrap;
}
.au-tag-yes { background: #edfbf1; color: var(--green); }
.au-tag-no  { background: var(--gray-100); color: var(--gray-400); }

/* ─── PCT: THE GAME JOURNAL TAB ───────────────────────────────────────────── */
.tj-game-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.tj-game-title {
  font-size: 1.15rem; font-weight: 800; color: var(--text);
}
.tj-game-play-link {
  font-size: 13px; font-weight: 700; color: var(--green);
  text-decoration: none; padding: 5px 12px;
  border: 1.5px solid var(--green); border-radius: 20px;
  transition: background .15s, color .15s;
}
.tj-game-play-link:hover { background: var(--green); color: #fff; }

.tj-game-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 640px) { .tj-game-stats { grid-template-columns: repeat(2, 1fr); } }
.tj-game-stat-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 14px 16px; text-align: center;
}
.tj-game-stat-num {
  font-size: 2rem; font-weight: 900; line-height: 1.1; letter-spacing: -.5px;
}
.tj-game-stat-sub {
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}

.tj-game-section-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px;
}
.tj-game-attempt-list { display: flex; flex-direction: column; gap: 10px; }
.tj-game-attempt-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 14px 16px;
}
.tj-game-attempt-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.tj-game-attempt-left { display: flex; align-items: center; gap: 10px; }
.tj-game-attempt-num {
  font-size: 14px; font-weight: 800; color: var(--text);
}
.tj-game-status {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
}
.tj-game-status-active    { background: #d1fae5; color: #065f46; }
.tj-game-status-completed { background: #dcfce7; color: #166534; }
.tj-game-status-failed    { background: #fee2e2; color: #991b1b; }

.tj-game-pips { display: flex; gap: 2px; font-size: 14px; }
.tj-game-pip { line-height: 1; }
.tj-game-pip-dead  { opacity: 1; }
.tj-game-pip-alive { opacity: 0.8; }

.tj-game-attempt-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-mid);
}
.tj-game-runs {
  margin-top: 10px; border-top: 1px solid var(--gray-100);
  padding-top: 8px; display: flex; flex-direction: column; gap: 4px;
}
.tj-game-run-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-mid);
}
.tj-game-run-cause { font-weight: 600; }
.tj-game-run-meta  { color: var(--text-muted); }

.tj-game-empty {
  text-align: center; padding: 48px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tj-game-empty-icon  { font-size: 2.5rem; }
.tj-game-empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.tj-game-empty-sub   { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── PCT Game Badge Shelf ─── */
.tj-game-badge-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tj-game-badge-shelf {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tj-game-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  position: relative;
}

.tj-game-badge-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.tj-game-badge-item.earned .tj-game-badge-img {
  filter: none;
}

.tj-game-badge-item.unearned .tj-game-badge-img {
  filter: grayscale(1) opacity(0.25);
}

.tj-game-badge-item.unearned:hover .tj-game-badge-img {
  filter: grayscale(1) opacity(0.45);
  transform: scale(1.05);
}

/* Tooltip on hover for unearned */
.tj-game-badge-item.unearned::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tj-game-badge-item.unearned:hover::after {
  opacity: 1;
}

.tj-game-badge-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tj-game-badge-item.unearned .tj-game-badge-label {
  opacity: 0.35;
}

.tj-game-badge-item.earned .tj-game-badge-label {
  color: var(--green, #2d6a4f);
}

.tj-game-badge-item.earned .tj-game-badge-img {
  filter: drop-shadow(0 2px 8px rgba(245, 166, 35, 0.35));
}

/* Coming soon badges */
.tj-game-badge-item.coming-soon { cursor: default; }
.tj-game-badge-img-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.tj-game-badge-item.coming-soon .tj-game-badge-img {
  width: 120px;
  height: 120px;
  filter: grayscale(1) opacity(0.2);
}
.tj-badge-coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.tj-game-badge-item.coming-soon .tj-game-badge-label {
  opacity: 0.3;
}

/* ─── PCT Game Cards (Games / Hikes) ─── */
.tj-gcard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.tj-gcard {
  display: flex;
  align-items: stretch;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tj-gcard-toggle {
  flex-shrink: 0;
  width: 36px;
  background: var(--gray-100);
  border: none;
  border-right: 1px solid var(--gray-200);
  color: var(--gray-400);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  line-height: 1;
}
.tj-gcard-toggle:hover { background: var(--gray-200); color: var(--gray-700); }
.tj-gcard--open .tj-gcard-toggle { color: var(--green); background: rgba(45,106,79,0.08); }

.tj-gcard-body { flex: 1; min-width: 0; }

/* Single-line header */
.tj-gcard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  flex-wrap: nowrap;
}

.tj-gcard-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
  flex-shrink: 0;
}

.tj-gcard-date {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}

.tj-gcard-spacer { flex: 1; min-width: 8px; }

.tj-gcard-inline-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.tj-gcard-inline-stat {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
}
.tj-gcard-inline-stat strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-800);
}

.tj-gcard-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tj-gcard-status-active    { background: var(--gray-100);       color: var(--gray-500);  border: 1px solid var(--gray-200); }
.tj-gcard-status-completed { background: rgba(45,106,79,0.1);   color: var(--green);     border: 1px solid rgba(45,106,79,0.2); }
.tj-gcard-status-failed    { background: rgba(220,38,38,0.08);  color: #dc2626;          border: 1px solid rgba(220,38,38,0.15); }

/* Hikes — hidden by default, shown when card is open */
.tj-gcard-hikes {
  display: none;
  border-top: 1px solid var(--gray-200);
}
.tj-gcard--open .tj-gcard-hikes { display: block; }

.tj-gcard-hike {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.tj-gcard-hike:last-child { border-bottom: none; }
.tj-gcard-hike--1 { background: rgba(45, 106, 79, 0.06); }
.tj-gcard-hike--2 { background: rgba(217, 119, 6, 0.07); }
.tj-gcard-hike--3 { background: rgba(37, 99, 235, 0.06); }

.tj-gcard-hike-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
  width: 44px;
}
.tj-gcard-hike--1 .tj-gcard-hike-num { color: var(--green); }
.tj-gcard-hike--2 .tj-gcard-hike-num { color: var(--amber); }
.tj-gcard-hike--3 .tj-gcard-hike-num { color: var(--blue); }

.tj-gcard-hike-cause {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  flex: 1;
}
.tj-gcard-hike-stat {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}
.tj-gcard-hike-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
}
