/* Mobile app experience for AI Source Atlas */
.mobile-toolbar,
.mobile-sheet-head,
.mobile-detail-close,
.mobile-backdrop,
.mobile-map-controls,
.mobile-map-hint,
.mobile-discovery{
  display:none;
}

@media (max-width:780px){
  :root{
    --mobile-gutter:16px;
    --bottom-nav-h:72px;
    --mobile-bg:#f6f3ed;
    --mobile-card:#fffdf9;
    --mobile-ink:#162434;
    --mobile-muted:#75808a;
    --mobile-line:#e7e1d7;
    --mobile-navy:#122438;
    --mobile-blue:#5b8def;
    --mobile-lilac:#8174e8;
    --mobile-green:#58a990;
    --mobile-orange:#e89a55;
  }

  html{
    scroll-padding-top:58px;
    background:var(--mobile-bg);
  }

  body{
    min-width:0;
    padding-bottom:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    overflow-x:hidden;
    background:
      radial-gradient(circle at 15% -10%,rgba(91,141,239,.09),transparent 32%),
      radial-gradient(circle at 90% 5%,rgba(129,116,232,.07),transparent 28%),
      var(--mobile-bg);
    background-size:auto;
    color:var(--mobile-ink);
    -webkit-tap-highlight-color:transparent;
  }

  body.mobile-sheet-open{
    overflow:hidden;
    overscroll-behavior:none;
  }

  .topbar{
    margin:0;
    padding:18px var(--mobile-gutter) 13px;
    display:block;
    border:0;
    background:rgba(246,243,237,.92);
  }

  .topbar .eyebrow{
    margin-bottom:5px;
    font-size:8px;
    line-height:1.3;
    letter-spacing:.14em;
    color:#8a9298;
  }

  h1{
    max-width:none;
    margin:0;
    font-size:34px;
    line-height:1;
    letter-spacing:-.045em;
  }

  .topbar p{
    margin-top:9px;
    max-width:360px;
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:11px;
    line-height:1.55;
    color:#6f7880;
  }

  .topbar p strong{
    display:inline;
    margin:0;
    font-family:inherit;
    font-size:12px;
    font-weight:700;
    color:var(--mobile-ink);
  }

  .header-stats{display:none}

  body[data-view="network"] .topbar,
  body[data-view="matrix"] .topbar,
  body[data-view="paths"] .topbar{
    display:none;
  }

  .view-nav{
    position:fixed;
    z-index:70;
    left:0;
    right:0;
    bottom:0;
    height:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    margin:0;
    padding:7px 8px env(safe-area-inset-bottom);
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
    border:0;
    border-top:1px solid rgba(28,43,57,.08);
    background:rgba(255,253,249,.94);
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px);
    box-shadow:0 -10px 35px rgba(26,40,54,.09);
  }

  .view-nav button,
  .view-nav button:first-child{
    min-width:0;
    min-height:56px;
    padding:6px 2px 5px;
    border:0;
    border-radius:15px;
    background:transparent;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
  }

  .view-nav button:before{
    display:block;
    margin-bottom:4px;
    font-family:Inter,sans-serif;
    font-size:18px;
    line-height:1;
    font-weight:500;
  }

  .view-nav button:nth-child(1):before{content:"◉"}
  .view-nav button:nth-child(2):before{content:"⌘"}
  .view-nav button:nth-child(3):before{content:"▦"}
  .view-nav button:nth-child(4):before{content:"↝"}

  .view-nav b{
    margin:0;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;
    font-size:10px;
    line-height:1;
    font-weight:750;
    white-space:nowrap;
  }

  .view-nav span{display:none}

  .view-nav button.active{
    background:var(--mobile-navy);
    color:#fff;
  }

  .view-nav button.active:after{display:none}

  .mobile-toolbar{
    position:sticky;
    z-index:45;
    top:0;
    margin:0;
    padding:7px var(--mobile-gutter) 9px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:8px;
    align-items:center;
    background:rgba(246,243,237,.92);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(28,43,57,.06);
  }

  .mobile-toolbar button{
    min-height:40px;
    border:1px solid var(--mobile-line);
    border-radius:13px;
    background:rgba(255,253,249,.88);
    padding:9px 12px;
    color:var(--mobile-ink);
    font-size:11px;
    box-shadow:0 4px 14px rgba(24,38,52,.035);
  }

  .mobile-toolbar #mobileFilterBtn{font-weight:700}

  .mobile-toolbar .mobile-search-trigger{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:left;
    color:#77818a;
  }

  .mobile-toolbar .mobile-search-trigger:before{
    content:"⌕";
    margin-right:7px;
    color:#485866;
    font-size:15px;
  }

  .mobile-result-count{
    min-width:46px;
    font-size:10px;
    line-height:1.25;
    color:#6d7881;
    text-align:right;
    white-space:nowrap;
  }

  .layout{
    display:block;
    margin:0;
    border:0;
  }

  .main-panel{
    min-height:0;
    padding:8px var(--mobile-gutter) 24px;
    background:transparent;
  }

  .panel{background:transparent}

  .view-head{
    margin:0 0 12px;
    padding:8px 2px 11px;
    display:block;
    border:0;
  }

  .view-head .eyebrow{
    display:block;
    margin-bottom:5px;
    font-size:8px;
    color:#879099;
  }

  .view-head h2{
    margin:0;
    font-size:27px;
    line-height:1.08;
    letter-spacing:-.025em;
  }

  .view-head p{
    margin-top:7px;
    max-width:360px;
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:11px;
    line-height:1.55;
    color:#75808a;
  }

  #view-atlas > .view-head,
  #view-atlas > .issue-lead,
  #view-atlas > .section-kicker,
  #view-atlas > .curated-routes,
  #view-atlas > .territory-grid{
    display:none!important;
  }

  .mobile-discovery{
    display:block;
    padding:1px 0 10px;
  }

  .discovery-hero{
    position:relative;
    height:258px;
    overflow:hidden;
    border-radius:25px;
    background:
      radial-gradient(circle at 78% 22%,rgba(100,151,255,.34),transparent 27%),
      radial-gradient(circle at 28% 85%,rgba(69,189,171,.20),transparent 31%),
      linear-gradient(145deg,#102238 0%,#162e49 55%,#0e1d2e 100%);
    color:#fff;
    box-shadow:0 18px 40px rgba(17,35,55,.20);
  }

  .discovery-hero canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:.96;
  }

  .discovery-hero:after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(9,24,39,.82) 0%,rgba(9,24,39,.34) 57%,rgba(9,24,39,.05) 100%);
    pointer-events:none;
  }

  .hero-copy{
    position:absolute;
    z-index:2;
    left:20px;
    right:20px;
    bottom:19px;
  }

  .hero-live{
    width:max-content;
    margin-bottom:9px;
    padding:5px 8px;
    display:flex;
    align-items:center;
    gap:6px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(255,255,255,.08);
    font-size:8px;
    letter-spacing:.11em;
    color:#cfdae5;
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
  }

  .live-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#6fe0c1;
    box-shadow:0 0 0 0 rgba(111,224,193,.65);
    animation:livePulse 2s ease-out infinite;
  }

  .hero-copy h2{
    max-width:240px;
    margin:0;
    font-size:30px;
    line-height:1.02;
    letter-spacing:-.035em;
    color:#fff;
  }

  .hero-copy p{
    margin:8px 0 13px;
    font-size:11px;
    color:#c4d0db;
  }

  .hero-cta{
    min-height:42px;
    padding:9px 14px;
    border:0;
    border-radius:999px;
    background:#fff;
    color:#15283d;
    font-size:11px;
    font-weight:750;
    box-shadow:0 7px 18px rgba(0,0,0,.13);
  }

  .hero-cta:after{content:"  →"}

  .discovery-grid{
    margin-top:12px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .discovery-card{
    min-height:103px;
    padding:14px;
    border:1px solid rgba(26,40,54,.06);
    border-radius:19px;
    background:rgba(255,253,249,.94);
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:11px;
    align-items:center;
    text-align:left;
    box-shadow:0 8px 24px rgba(28,42,56,.055);
  }

  .discovery-card-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    font-size:18px;
    font-weight:700;
    background:var(--card-soft,#eaf1ff);
    color:var(--card-color,#487ed4);
  }

  .discovery-card b{
    display:block;
    margin-bottom:5px;
    font-size:14px;
  }

  .discovery-card span{
    display:block;
    font-size:10px;
    color:#7b858e;
  }

  .discovery-card small{
    display:block;
    margin-top:7px;
    font-size:8px;
    color:#9aa1a7;
  }

  .mobile-section-title{
    margin:20px 2px 9px;
    display:flex;
    align-items:end;
    justify-content:space-between;
  }

  .mobile-section-title h3{
    margin:0;
    font-size:18px;
    line-height:1;
  }

  .mobile-section-title span{
    font-size:9px;
    color:#8a939a;
  }

  .topic-rail{
    margin-right:calc(-1 * var(--mobile-gutter));
    padding-right:var(--mobile-gutter);
    display:flex;
    gap:9px;
    overflow-x:auto;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }

  .topic-rail::-webkit-scrollbar{display:none}

  .topic-chip{
    flex:0 0 auto;
    min-width:118px;
    min-height:75px;
    padding:13px 13px 11px;
    border:0;
    border-radius:17px;
    background:linear-gradient(145deg,#edf2fb,#e2e9f4);
    color:#28384a;
    text-align:left;
    scroll-snap-align:start;
  }

  .topic-chip:nth-child(3n+2){background:linear-gradient(145deg,#eeeaf8,#e6e1f3)}
  .topic-chip:nth-child(3n+3){background:linear-gradient(145deg,#e7f1ed,#dcebe5)}

  .topic-chip b{
    display:block;
    font-size:12px;
    line-height:1.3;
  }

  .topic-chip span{
    display:block;
    margin-top:10px;
    font-size:9px;
    color:#7b8490;
  }

  .signal-strip{
    margin-top:12px;
    min-height:48px;
    padding:11px 13px;
    border:1px solid rgba(26,40,54,.06);
    border-radius:16px;
    background:rgba(255,253,249,.92);
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 7px 20px rgba(28,42,56,.04);
  }

  .signal-strip .signal-mark{
    width:28px;
    height:28px;
    flex:0 0 auto;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#e9eff8;
    color:#527ba6;
  }

  .signal-strip b{
    display:block;
    font-size:10px;
  }

  .signal-strip span{
    display:block;
    margin-top:2px;
    font-size:9px;
    color:#858e96;
  }

  #view-network .view-head{
    padding-top:4px;
    margin-bottom:5px;
  }

  #view-network .view-head h2{font-size:25px}

  #view-network .map-actions{
    margin:0 -2px 8px;
    min-height:38px;
    display:flex;
    flex-wrap:nowrap;
    gap:7px;
    overflow-x:auto;
    scrollbar-width:none;
  }

  #view-network .map-actions::-webkit-scrollbar{display:none}

  #view-network .map-actions button{
    flex:0 0 auto;
    min-height:35px;
    margin:0;
    padding:8px 11px;
    border:1px solid var(--mobile-line);
    border-radius:999px;
    background:#fffdf9;
    font-size:9px;
    color:#52606d;
  }

  #shareStatus{
    flex:0 0 auto;
    align-self:center;
    font-size:8px;
  }

  .graph-wrap{
    position:relative;
    width:100%;
    height:calc(100svh - 218px);
    min-height:470px;
    max-height:720px;
    overflow:hidden;
    border:0;
    border-radius:24px;
    background:
      radial-gradient(circle at 75% 20%,rgba(91,141,239,.11),transparent 25%),
      radial-gradient(circle at 22% 75%,rgba(88,169,144,.10),transparent 27%),
      linear-gradient(180deg,#fffdfa 0%,#f2f4f2 100%);
    background-size:auto;
    box-shadow:0 16px 36px rgba(25,39,53,.09);
    overscroll-behavior:none;
  }

  .graph-wrap:before{
    content:"";
    position:absolute;
    z-index:0;
    inset:0;
    background-image:
      linear-gradient(rgba(21,38,54,.025) 1px,transparent 1px),
      linear-gradient(90deg,rgba(21,38,54,.025) 1px,transparent 1px);
    background-size:28px 28px;
    pointer-events:none;
  }

  .graph-wrap svg,
  #graph{
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    min-width:0;
    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
  }

  .network-live-status{
    position:absolute;
    z-index:12;
    top:12px;
    left:12px;
    max-width:calc(100% - 90px);
    min-height:32px;
    padding:8px 11px;
    border:1px solid rgba(23,40,57,.08);
    border-radius:999px;
    background:rgba(255,253,249,.83);
    display:flex;
    align-items:center;
    gap:7px;
    font-size:8px;
    color:#596775;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    box-shadow:0 6px 16px rgba(28,42,56,.05);
  }

  .network-live-status b{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:650;
  }

  .mobile-map-controls{
    position:absolute;
    z-index:13;
    right:11px;
    bottom:12px;
    display:grid;
    grid-template-columns:44px 44px;
    gap:7px;
  }

  .mobile-map-controls button{
    width:44px;
    height:44px;
    border:1px solid rgba(23,40,57,.09);
    border-radius:14px;
    background:rgba(255,253,249,.92);
    color:#273a4c;
    font-size:20px;
    box-shadow:0 7px 18px rgba(24,38,52,.08);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
  }

  .mobile-map-controls .map-reset{
    grid-column:1/-1;
    width:auto;
    height:38px;
    font-size:9px;
    font-weight:650;
  }

  .mobile-map-hint{
    position:absolute;
    z-index:12;
    left:12px;
    bottom:12px;
    max-width:205px;
    padding:7px 10px;
    border-radius:11px;
    background:rgba(255,253,249,.84);
    color:#7b858d;
    font-size:8px;
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
  }

  #view-matrix .view-head,
  #view-paths .view-head{
    padding-top:5px;
  }

  .view-note{
    margin:0 2px 10px;
    font-size:9px;
    line-height:1.5;
    color:#7e8891;
  }

  .matrix-wrap{
    width:100%;
    max-height:calc(100svh - 230px);
    overflow:auto;
    border:0;
    border-radius:21px;
    background:#fffdf9;
    box-shadow:0 14px 34px rgba(24,38,52,.08);
    -webkit-overflow-scrolling:touch;
  }

  .relation-matrix{
    min-width:560px;
    font-size:9px;
  }

  .relation-matrix th{
    height:70px;
    min-width:34px;
    background:#f0ede7;
  }

  .relation-matrix .row-head{
    min-width:130px;
    max-width:130px;
    padding:10px;
    background:#fffdf9;
    font-size:9px;
  }

  .relation-matrix thead .row-head{background:#f0ede7}
  .matrix-cell{width:34px;height:34px;background:#fffdf9}
  .matrix-cell.related{background:#31506e}
  .matrix-cell.same{background:#c5c0b5}

  .path-intro{
    margin:0 0 11px;
    padding:11px 13px;
    border:1px solid var(--mobile-line);
    border-radius:15px;
    background:#fffdf9;
    font-size:10px;
    line-height:1.55;
    color:#6f7982;
  }

  .follow-path{
    position:relative;
    display:grid;
    grid-template-columns:1fr;
    gap:11px;
    border:0;
  }

  .follow-path:before{
    content:"";
    position:absolute;
    z-index:0;
    top:25px;
    bottom:25px;
    left:24px;
    width:3px;
    border-radius:99px;
    background:linear-gradient(180deg,var(--mobile-blue),var(--mobile-lilac),var(--mobile-green),var(--mobile-orange));
    background-size:100% 220%;
    animation:pathFlow 5s linear infinite;
  }

  .path-column{
    position:relative;
    z-index:1;
    min-height:0;
    margin:0;
    padding:0 0 0 48px;
    border:0;
    border-radius:0;
    background:transparent;
  }

  .path-column:before{
    content:counter(path-step,decimal-leading-zero);
    position:absolute;
    left:4px;
    top:16px;
    width:40px;
    height:40px;
    border:4px solid var(--mobile-bg);
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--mobile-blue);
    color:#fff;
    font-family:Georgia,serif;
    font-size:11px;
    box-shadow:0 5px 15px rgba(35,54,72,.14);
  }

  .follow-path{counter-reset:path-step}
  .path-column{counter-increment:path-step}
  .path-column:nth-child(2):before{background:var(--mobile-lilac)}
  .path-column:nth-child(3):before{background:var(--mobile-green)}
  .path-column:nth-child(4):before{background:var(--mobile-orange)}

  .path-column header{
    padding:15px 15px 10px;
    border:0;
    border-radius:19px 19px 0 0;
    background:#fffdf9;
  }

  .path-column header b{
    font-size:18px;
    line-height:1.15;
  }

  .path-column header span{
    display:block;
    margin-top:5px;
    font-size:10px;
    line-height:1.45;
    color:#7b858e;
  }

  .path-list{
    padding:0 15px 12px;
    border-radius:0 0 19px 19px;
    background:#fffdf9;
    display:grid;
    gap:0;
    box-shadow:0 10px 28px rgba(24,38,52,.055);
  }

  .path-card{
    min-height:58px;
    padding:11px 0;
    border-bottom:1px solid var(--mobile-line);
    background:transparent;
  }

  .path-card:last-child{border-bottom:0}
  .path-card b{font-size:12px}
  .path-card span{font-size:10px;line-height:1.4}

  .method,footer{display:none!important}

  .filters{
    position:fixed;
    z-index:90;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:min(86svh,760px);
    padding:0 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
    border:0;
    border-radius:28px 28px 0 0;
    background:#fffdf9;
    box-shadow:0 -22px 60px rgba(16,31,47,.24);
    transform:translateY(105%);
    transition:transform .26s cubic-bezier(.22,.75,.25,1),visibility .26s;
    visibility:hidden;
  }

  .filters.is-open{
    transform:translateY(0);
    visibility:visible;
  }

  .mobile-sheet-head{
    position:sticky;
    z-index:3;
    top:0;
    margin:0 -18px 12px;
    padding:20px 18px 12px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--mobile-line);
    background:rgba(255,253,249,.96);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }

  .mobile-sheet-head:before,
  .mobile-detail-bar:before{
    content:"";
    position:absolute;
    top:7px;
    left:50%;
    width:38px;
    height:4px;
    border-radius:999px;
    background:#d4d0c8;
    transform:translateX(-50%);
  }

  .mobile-sheet-head b{
    margin-top:2px;
    font-size:19px;
  }

  .mobile-sheet-head button,
  .mobile-detail-close{
    min-width:54px;
    min-height:38px;
    border:1px solid var(--mobile-line);
    border-radius:12px;
    background:#f7f4ee;
    font-size:11px;
  }

  .search span,.filter-block h2{
    font-size:9px;
    color:#8b9399;
  }

  .search input{
    min-height:48px;
    padding:10px 0;
    border-bottom:1px solid #cfc9bf;
    font-size:16px;
  }

  .filter-block{
    margin-top:17px;
    padding-top:14px;
    border-color:var(--mobile-line);
  }

  .kit-list,.chips{
    grid-template-columns:1fr 1fr;
    gap:0 16px;
  }

  .kit-list button,.chips button{
    min-height:45px;
    padding:10px 0;
    border-color:var(--mobile-line);
    font-size:13px;
  }

  .distance-legend{
    grid-template-columns:1fr 1fr;
    gap:0 16px;
  }

  .distance-legend button{
    min-height:57px;
    padding:9px 0;
    grid-template-columns:1fr;
    gap:3px;
    border-color:var(--mobile-line);
  }

  .distance-legend button b{font-size:13px}
  .distance-legend button span{text-align:left;font-size:10px}

  .secondary-btn{
    min-height:46px;
    margin-top:18px;
    border-radius:13px;
    font-size:11px;
  }

  .mobile-backdrop{
    position:fixed;
    z-index:80;
    inset:0;
    display:block;
    border:0;
    background:rgba(12,24,36,.48);
    opacity:0;
    visibility:hidden;
    transition:opacity .22s ease,visibility .22s ease;
  }

  .mobile-backdrop.is-open{
    opacity:1;
    visibility:visible;
  }

  .detail{
    position:fixed;
    z-index:92;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:min(86svh,780px);
    padding:12px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
    border:0;
    border-radius:28px 28px 0 0;
    background:#fffdf9;
    color:var(--mobile-ink);
    box-shadow:0 -22px 60px rgba(16,31,47,.28);
    transform:translateY(105%);
    transition:transform .28s cubic-bezier(.22,.75,.25,1),visibility .28s;
    visibility:hidden;
  }

  .detail.is-open{
    transform:translateY(0);
    visibility:visible;
  }

  .mobile-detail-bar{
    position:sticky;
    z-index:4;
    top:-12px;
    margin:-12px -18px 15px;
    padding:20px 18px 11px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--mobile-line);
    background:rgba(255,253,249,.97);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
  }

  .mobile-detail-bar span{
    margin-top:2px;
    font-size:8px;
    letter-spacing:.13em;
    color:#8c949a;
  }

  .mobile-detail-close{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    color:var(--mobile-ink);
  }

  .detail .empty-state{min-height:220px;color:#7c8790}
  .detail .empty-orbit{color:#d4dde4}
  .detail .empty-state h2{color:var(--mobile-ink)}

  .field-note-head{
    color:#8b949b;
    border-color:var(--mobile-line);
  }

  .field-note-head b{color:#66727c}

  .profile-head{
    grid-template-columns:70px 1fr;
    border-color:var(--mobile-line);
  }

  .avatar{
    width:70px;
    height:70px;
    border:0!important;
    background:linear-gradient(145deg,#20384f,#102337)!important;
    color:#fff;
    box-shadow:0 9px 22px rgba(16,35,55,.18);
  }

  .profile-head h2{
    font-size:26px;
    color:var(--mobile-ink);
  }

  .profile-head p,.source-badge,.detail .why,.detail small{
    color:#74808a;
  }

  .why{
    padding:15px 0 11px;
    font-size:13px;
    line-height:1.75;
  }

  .person-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  .person-tags span{
    min-height:31px;
    padding:6px 9px;
    display:inline-flex;
    align-items:center;
    border:1px solid var(--mobile-line);
    border-radius:999px;
    background:#f5f2ec;
    color:#5e6a74;
    font-size:10px;
  }

  .profile-metrics{
    margin-bottom:20px;
    border-color:var(--mobile-line);
  }

  .profile-metric{border-color:var(--mobile-line)}
  .profile-metric b{color:var(--mobile-ink);font-size:21px}
  .profile-metric span{color:#8d969d}

  .detail h3{color:#8a9298;font-size:9px}

  .links{gap:8px}

  .links a{
    min-height:44px;
    padding:10px 11px;
    border:1px solid var(--mobile-line);
    border-radius:13px;
    background:#f8f5ef;
    color:#41505e;
    font-size:11px;
  }

  .relation,.rec{
    min-height:49px;
    padding:11px 0;
    border-color:var(--mobile-line);
    color:var(--mobile-ink);
    font-size:11px;
  }

  .rec button{
    width:36px;
    height:36px;
    border-color:var(--mobile-line);
    background:#edf2f7;
    color:#334b61;
  }

  @media (min-width:390px){
    .discovery-grid{gap:11px}
    .discovery-card{min-height:108px}
  }
}

@media (max-width:360px){
  .discovery-card{
    min-height:94px;
    padding:11px;
    grid-template-columns:36px minmax(0,1fr);
  }
  .discovery-card-icon{width:36px;height:36px;border-radius:12px}
  .hero-copy h2{font-size:27px}
  .topic-chip{min-width:108px}
}

@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

@keyframes livePulse{
  0%{box-shadow:0 0 0 0 rgba(111,224,193,.55)}
  70%{box-shadow:0 0 0 7px rgba(111,224,193,0)}
  100%{box-shadow:0 0 0 0 rgba(111,224,193,0)}
}

@keyframes pathFlow{
  from{background-position:0 0}
  to{background-position:0 220%}
}
