/* App parity: measurements follow the iPhone HomeView / ContentView. */
:root {color-scheme:dark; --bg:#000; --panel:#111214; --panel-2:#1c1c1e; --text:#f5f5f6; --muted:#999ba2; --line:rgba(255,255,255,.11); --surface-border:rgba(255,255,255,.12); --surface-radius:24px; --brand-art:url('/assets/web/energy-glass.jpg');}
html {scrollbar-gutter:stable;}
/* Clip horizontal overflow without creating a scroll container above sticky headers. */
html,body {overflow-x:clip;}
body {background:#000; font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif; -webkit-font-smoothing:antialiased;}
[hidden] {display:none!important;}
button,a,input,select,textarea {-webkit-tap-highlight-color:transparent;}
button,a {touch-action:manipulation;}
button {cursor:pointer;}
button:disabled {cursor:default;opacity:.5;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid #b6d7ff;outline-offset:4px;}
button svg, .pill-button svg {width:20px;height:20px;flex-shrink:0;}
.skip-link {position:fixed;top:-100px;left:20px;background:#fff;color:#000;padding:12px;z-index:50000;}
.skip-link:focus {top:12px;}
.app {width:100%;max-width:840px;margin:0 auto;padding:0 18px calc(102px + env(safe-area-inset-bottom));background:#000;overflow-x:clip;}
.screen {min-width:0;}
.topbar {margin:0;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:12px;gap:8px;min-height:74px;}
#home>.topbar {position:sticky;top:0;z-index:10;margin-inline:-18px;padding-inline:18px;background:linear-gradient(to bottom,#000 calc(100% - 14px),rgba(0,0,0,.72) calc(100% - 9px),rgba(0,0,0,.24) calc(100% - 4px),transparent);}
.brand {font-size:24px;font-weight:700;letter-spacing:-.6px;white-space:nowrap;}
.header-actions {display:flex;align-items:center;gap:8px;}
.topbar > *, .dialog-header > * {min-width:0;}
.circle-button {display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;width:38px;height:38px;padding:9px;color:rgba(255,255,255,.82);background:rgba(255,255,255,.08);flex-shrink:0;font-size:24px;font-weight:400;}
.circle-button svg {width:20px;height:20px;}
#openLibrary svg {fill:currentColor;stroke-width:1.4;}
.account-button {min-width:58px;height:38px;padding:0 14px;border:0;border-radius:24px;color:#000;background:#fff;font-size:14px;font-weight:700;white-space:nowrap;}
.hero {height:320px;min-height:320px;margin:0 -18px;padding:6px 18px 28px;justify-content:flex-start;background-color:#000;border-radius:0 0 28px 28px;isolation:isolate;}
.hero::before,.hero.has-cover::before {background:linear-gradient(180deg,#000 0%,rgba(0,0,0,.72) 8%,rgba(0,0,0,.14) 22%,transparent 34%,transparent 68%,rgba(0,0,0,.16) 78%,rgba(0,0,0,.74) 92%,#000 100%);}
.hero-copy {max-width:100%;padding:14px;background:none;border-radius:0;box-shadow:none;isolation:isolate;}
.hero-copy::before {position:absolute;content:"";inset:-18px -24px;z-index:-1;background:radial-gradient(ellipse at 22% 42%,rgba(0,0,0,.74),rgba(0,0,0,.24) 62%,transparent 80%);filter:blur(10px);pointer-events:none;}
.hero-dateline {display:flex;align-items:center;gap:8px;margin-bottom:10px;}
.hero-date {min-height:16px;color:rgba(255,255,255,.62);font:700 13px ui-monospace,SFMono-Regular,Menlo,monospace;}
.hero-copy h1 {font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.13;font-weight:700;margin:0 0 14px;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
html[lang=zh-CN] .hero-copy h1 {font-family:inherit;font-size:28px;line-height:1.14;}
.hero-copy p {font-size:16px;line-height:1.35;font-weight:600;color:rgba(255,255,255,.68);margin:0;max-width:calc(100% - 48px);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.hero-actions {position:absolute;left:18px;right:18px;bottom:28px;display:flex;align-items:center;justify-content:space-between;}
.hero-navigation {display:flex;align-items:center;gap:10px;min-width:0;}
.hero-arrow {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(0,0,0,.28);color:#fff;}
.hero-arrow svg {width:16px;height:16px;}
.hero-arrow:disabled {opacity:.25;}
.hero-arrow:enabled:hover {background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.4);}
.hero-navigation .pager {flex-shrink:0;padding-bottom:0;}
.hero-navigation .pager button::after {inset:-10px -4px;}
.pager {gap:8px;}
.pager button {width:8px;height:8px;border-radius:8px;background:rgba(255,255,255,.28);}
.pager button.active {width:34px;background:rgba(255,255,255,.96);}
.pager button::after {content:"";position:absolute;inset:-12px;}
.pager button {position:relative;}
#filters {margin:12px -18px 8px;gap:10px;padding:0 18px;}
.chip {font-size:15px;font-weight:600;line-height:20px;border-color:rgba(255,255,255,.18);color:rgba(255,255,255,.78);background:rgba(255,255,255,.08);padding:9px 16px;}
.chip.active {background:#fff;color:#000;}
.news-list {display:block;}
.news-item {padding:13px 0;margin:0;border:0;border-bottom:.5px solid rgba(255,255,255,.11);background:none;border-radius:0;}
.news-open,.saved-open {display:block;width:100%;padding:0;border:0;background:none;text-align:left;color:inherit;}
.news-item .meta {display:flex;align-items:baseline;gap:6px;margin:0 0 8px;font-size:12px;font-weight:600;color:rgba(255,255,255,.45);line-height:17px;white-space:nowrap;}
.news-countries {overflow:hidden;text-overflow:ellipsis;}
.news-item time {margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums;flex-shrink:0;}
.major-badge {padding:1px 7px;background:rgba(255,149,0,.12);color:#ff9500;border-radius:12px;font-size:11px;}
.news-item h3 {font-size:17px;line-height:1.35;font-weight:600;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.news-item p {color:rgba(255,255,255,.58);font-size:14px;line-height:1.4;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.brief-card {margin:14px 0;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);overflow:hidden;}
.brief-card .cover {height:172px;min-height:172px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:16px;gap:8px;background-size:cover;background-position:center;}
.brief-card .cover strong {font-size:23px;font-weight:700;line-height:1.22;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.brief-card .meta {font-size:11px;color:rgba(255,255,255,.66);font-weight:700;}
.brief-body {padding:16px;}
.brief-body p {font-size:15px;line-height:1.4;font-weight:600;color:rgba(255,255,255,.66);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 12px;}
.brief-card .item-actions {margin:0;}
.brief-badge {padding:4px 8px;background:rgba(255,255,255,.14);border:.5px solid rgba(255,255,255,.18);border-radius:20px;font-size:10px;font-weight:700;}
.tabbar {left:50%;right:auto;bottom:0;transform:translateX(-50%);width:min(100%,840px);max-width:none;border:0;border-radius:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:3px 14px max(6px,env(safe-area-inset-bottom));background:#000;box-shadow:none;backdrop-filter:none;z-index:40;}
.tabbar::before {position:absolute;content:"";top:-22px;height:22px;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.86) 58%,#000);pointer-events:none;}
.tab {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:48px;min-width:0;color:rgba(255,255,255,.48);border:0;background:none;padding:0;}
.tab svg {width:26px;height:26px;stroke-width:1.8;}
.tab span {font-size:11px;font-weight:600;line-height:14px;}
.tab.active {color:#fff;}
#markets .brand {font-size:32px;}
#markets .market-grid {display:grid;grid-template-columns:1fr;gap:12px;}
#peers .topbar {display:none;}
#peersContent {padding-top:18px;}
body[data-active-tab=assistant] .app {padding-bottom:0;}
#assistant {height:calc(100dvh - 64px - env(safe-area-inset-bottom));margin:0 -18px;}
#assistantContent {height:100%;min-height:0;}
.ba-assistant {background:#000;}
.ba-assistant svg {width:22px;height:22px;}
.app-dialog {box-sizing:border-box;width:min(760px,calc(100% - 48px));max-height:88dvh;margin:auto;border:1px solid var(--surface-border);border-radius:28px;background:linear-gradient(145deg,#191a1d,#101113 60%);color:var(--text);padding:32px;overscroll-behavior:contain;box-shadow:0 32px 120px #000b,inset 0 1px #ffffff08;scrollbar-width:thin;scrollbar-color:#3e4045 transparent;}
.app-dialog::backdrop {background:rgba(0,0,0,.72);backdrop-filter:blur(10px);}
.app-dialog .topbar {position:static;min-height:0;padding:0 0 24px;margin:0;background:transparent;backdrop-filter:none;}
.app-dialog h1 {font-size:clamp(26px,3vw,34px);line-height:1.35;letter-spacing:-.035em;margin:14px 0 24px;}
.app-dialog h2 {font-size:27px;line-height:1.25;letter-spacing:-.035em;margin:0;}
.dialog-header {display:flex;align-items:center;justify-content:space-between;margin:0 0 22px;gap:16px;}
.dialog-eyebrow {margin:0 0 7px;color:#b9a684;font-size:11px;font-weight:650;letter-spacing:.12em;line-height:1.5;}
.dialog-header>.dialog-eyebrow {margin:0;}
.dialog-header .circle-button {background:#ffffff08;border:1px solid #ffffff10;}
.app-dialog .quiet {font-size:13px;color:var(--muted);line-height:1.65;}
.search-field {display:flex;align-items:center;gap:12px;background:#090a0c;border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:7px 8px 7px 16px;transition:border-color .18s,box-shadow .18s;}
.search-field:focus-within {border-color:#b4a58e;box-shadow:0 0 0 3px #baa88a12;}
.search-field #searchFieldIcon {display:flex;color:#8d8f97;flex-shrink:0;}
.search-field svg {width:20px;height:20px;}
.search-field input {min-width:0;flex:1;background:none;border:0;color:#fff;font:inherit;font-size:16px;padding:8px 0;}
.search-field input:focus-visible {outline:none;}
.search-field input::placeholder {color:#777a83;}
.search-field button {flex-shrink:0;border:0;background:#eeeef0;color:#161719;border-radius:11px;min-height:40px;padding:0 18px;font-size:14px;font-weight:650;}
#searchStatus {min-height:22px;margin:14px 2px;}
.search-intro {padding:26px 16px 32px;text-align:center;}
.empty-symbol {display:grid;place-items:center;width:66px;height:66px;margin:0 auto 20px;border:1px solid #ffffff17;border-radius:21px;background:linear-gradient(145deg,#2a2b30,#141518);color:#d4c5a7;box-shadow:inset 0 1px #ffffff12,0 12px 30px #0003;}
.empty-symbol svg {width:28px;height:28px;}
.search-intro h3 {font-size:20px;letter-spacing:-.02em;margin:0 0 10px;}
.search-intro p {max-width:350px;margin:0 auto;color:var(--muted);font-size:14px;line-height:1.7;}
.search-topics {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:26px auto 0;}
.search-topics button {display:flex;align-items:center;gap:16px;border:1px solid #ffffff12;border-radius:10px;background:#ffffff04;color:#c6c7cb;padding:10px 14px;font-size:13px;}
.search-topics button:hover {background:#ffffff0c;border-color:#ffffff28;}
.search-topics span {color:#767a82;}
#searchResults .news-item {padding:20px 0;}
#searchResults .news-item:last-child {border-bottom:0;}
#searchMore {width:100%;margin-top:12px;}
.news-detail-body {font-size:17px;line-height:1.85;color:#d0d1d5;}
.news-detail-body p {white-space:pre-wrap;}
.detail-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:28px 0 20px;padding-top:24px;border-top:1px solid var(--line);}
.pill-button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid rgba(255,255,255,.12);background:#ffffff06;border-radius:13px;padding:10px 17px;font-size:14px;font-weight:600;transition:background .16s,border-color .16s;}
.pill-button:hover,.circle-button:hover {background:#ffffff13;border-color:#ffffff24;}
.pill-button.primary {background:#fff;color:#000;}
.pill-button.primary:hover {background:#dfdfe2;}
.original-link {display:inline-flex;align-items:center;color:#c6b592;font-size:14px;text-decoration:none;margin-bottom:15px;}
.original-link:hover {text-decoration:underline;}
.library-empty {text-align:center;padding:44px 20px 50px;color:var(--muted);border:1px solid #ffffff09;border-radius:20px;background:radial-gradient(ellipse at 50% 0,#ffffff06,transparent 70%);}
.library-empty h3 {color:var(--text);font-size:23px;line-height:1.35;letter-spacing:-.03em;margin:0 0 12px;}
.library-empty p {font-size:14px;line-height:1.75;max-width:330px;margin:0 auto 26px;}
.library-empty .pill-button {min-width:156px;min-height:46px;}
.app-dialog #library .brand {font-size:27px;letter-spacing:-.03em;}
.app-dialog #librarySub {font-size:13px;line-height:1.6;margin:8px 0 0;color:var(--muted);}
#libraryGroups:empty {display:none;}
.saved-list {display:block;}
.saved-item {display:flex;gap:18px;align-items:center;padding:22px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;}
.saved-item:last-child {border-bottom:0;}
.saved-item .meta {color:#b8a988;font-size:11px;font-weight:600;}
.saved-open {min-width:0;}
.saved-item h3 {font-size:17px;line-height:1.4;margin:8px 0;}
.saved-item p {font-size:14px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);margin:0;}
.saved-item .circle-button svg {fill:currentColor;}
.mini-player {display:flex;align-items:center;gap:8px;position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 28px),812px);padding:10px 12px;background:rgba(33,33,35,.94);backdrop-filter:blur(24px);border:1px solid rgba(255,255,255,.1);border-radius:18px;z-index:45;}
#miniPlayerOpen {display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;text-align:left;background:none;border:0;padding:0;}
#miniPlayerTitle {font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;}
#miniPlayerStatus {font-size:11px;color:var(--muted);}
.web-status {position:fixed;bottom:130px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);border:1px solid var(--line);padding:13px 18px;border-radius:15px;background:#28282a;box-shadow:0 8px 30px #000;z-index:12000;font-size:14px;}
.player,.reader {background:#000;}
.player {padding-top:max(18px,env(safe-area-inset-top));}
.player-cover,.reader-cover {border-radius:12px;}
.reader.active,.player.active {overscroll-behavior:contain;}
.overlay-open {overflow:hidden;}
.undo-toast {z-index:12000;}
@media (max-width:600px) {
  html {scrollbar-gutter:auto;}
  .app-dialog {width:100%;max-height:92dvh;margin:auto 0 0;border-bottom:0;border-radius:28px 28px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom));}
  #libraryDialog,#searchDialog {min-height:85dvh;}
}
@media (max-width:360px) {
  .brand {font-size:21px;}
  .header-actions {gap:5px;}
  .circle-button {width:34px;height:34px;}
  .account-button {min-width:52px;padding:0 11px;font-size:13px;}
  html[lang=zh-CN] .hero-copy h1 {font-size:27px;}
}
@media (min-width:700px) {
  .app {border-inline:1px solid rgba(255,255,255,.055);}
  .topbar {padding-top:24px;padding-bottom:20px;}
  .hero {height:360px;min-height:360px;}
  .hero-copy {max-width:640px;}
  .hero-copy h1,html[lang=zh-CN] .hero-copy h1 {font-size:32px;}
  .hero-copy p {max-width:560px;}
  .tabbar {border-inline:1px solid rgba(255,255,255,.055);}
  #filters {margin-top:24px;}
  #markets .market-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .reader,.player {left:50%;transform:translateX(-50%);width:min(840px,100%);border-inline:1px solid var(--line);}
  .player .player-cover {max-width:440px;margin-inline:auto;}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

/* Full player follows FullPlayerView's 22pt inset, 2:3 cover and 92pt control. */
.overlay-open .tabbar {visibility:hidden;}
.player {z-index:60;padding-inline:22px;}
.player-topbar {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;}
.player-topbar>div {display:flex;align-items:center;gap:10px;}
.player-topbar .close-player {display:grid;place-items:center;width:44px;height:44px;}
.player-topbar .close-player svg {width:23px;height:23px;}
.player-cover {position:relative;height:auto;aspect-ratio:3/2;margin:0 -22px 26px;border-radius:0;}
.player-cover:after {content:"";position:absolute;inset:0;background:linear-gradient(#000,rgba(0,0,0,.52) 8%,transparent 24%,transparent 76%,rgba(0,0,0,.52) 92%,#000);}
.player h1 {font-size:34px;line-height:1.15;font-weight:700;}
.player .time-row {font-size:12px;font-weight:600;color:rgba(255,255,255,.68);font-variant-numeric:tabular-nums;}
.player .controls {margin:26px 0;}
.player .control {font-size:28px;font-weight:600;}
.player .control.main {width:92px;height:92px;font-size:34px;}
.player .speed-row {display:none;}
.player .speed-options {display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:#1c1c1e;padding:4px;border-radius:12px;margin:0 0 30px;}
.player .speed-options button {min-width:0;border:0;border-radius:8px;padding:9px 3px;font-size:12px;}
.player .speed-options button.active {background:#454548;color:#fff;}
.section-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.section-heading h2 {margin:0;}

#markets .markets-header {margin:0;padding:18px 0 0;min-height:56px;}
#markets .wm-ranges-host {margin:22px 0 34px;}
#markets #refreshMarkets {display:none;}
#markets .wm-date:after {content:"";display:inline-block;width:18px;height:18px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M7 2v6m10-6v6M3 11h18' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;}

.player-edition-date {margin:10px 0 0;font-size:17px;font-weight:600;color:rgba(255,255,255,.58);}

/* One navigation tree: bottom tabs on phones, Duo-style rail on wide windows. */
.desktop-only {display:none;}
.nav-tabs {display:contents;}
.nav-language {grid-column:1/-1;display:flex;justify-content:flex-start;height:36px;}
.language-switch {width:64px;height:36px;}
.language-trigger {width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid #ffffff0b;border-radius:11px;background:#ffffff06;color:#aaaab0;font:600 11px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;transition:background .18s,color .18s;}
.language-trigger:hover,.language-trigger[aria-expanded=true] {background:#ffffff10;color:#fff;}
.language-trigger svg {width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .18s;}
.language-trigger[aria-expanded=true] svg {transform:rotate(180deg);}
.language-menu {position:fixed;z-index:1000;width:168px;padding:5px;border:1px solid #ffffff1a;border-radius:14px;background:#1b1b1e;box-shadow:0 10px 32px #0008;overflow-y:auto;animation:language-menu-in .15s ease-out;}
.language-menu button {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#aaaab0;font-family:inherit;font-size:13px;text-align:left;}
.language-menu button:hover,.language-menu button:focus-visible {outline:none;background:#ffffff0d;color:#fff;}
.language-menu button[aria-checked=true] {color:#f1f1f3;background:#ffffff09;}
.language-check {visibility:hidden;font-size:12px;}
.language-menu button[aria-checked=true] .language-check {visibility:visible;}
@keyframes language-menu-in {from {opacity:0;transform:translateY(4px);} to {opacity:1;transform:translateY(0);}}
@media (max-width:999px) {
  :root {--mobile-nav-height:calc(103px + max(6px,env(safe-area-inset-bottom)));}
  .tabbar .tab {height:58px;min-height:58px;}
  .app {padding-bottom:calc(var(--mobile-nav-height) + 38px);}
  #assistant {height:calc(100dvh - var(--mobile-nav-height));}
  .mini-player {bottom:calc(var(--mobile-nav-height) + 8px);}
}
.home-feed {min-width:0;}
@media (min-width:1000px) {
  :root {--rail-width:96px;--desktop-inset:36px;}
  html,body {overflow-x:clip;}
  .app {width:calc(100% - var(--rail-width));max-width:none;margin:0 0 0 var(--rail-width);padding:0 var(--desktop-inset) 100px;border:0;}
  .app>.screen {max-width:1280px;margin-inline:auto;}
  .desktop-only {display:block;}
  .tabbar {inset:0 auto 0 0;transform:none;width:var(--rail-width);height:100dvh;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:24px 12px 18px;border:0;border-right:1px solid var(--line);overflow-y:auto;scrollbar-width:none;background:#080809;}
  .tabbar::before {display:none;}
  .rail-brand {display:grid;place-items:center;height:48px;margin:0 0 32px;border-radius:14px;flex-shrink:0;}
  .rail-brand img {display:block;border-radius:13px;}
  .nav-tabs {display:flex;flex-direction:column;gap:12px;}
  .nav-language {height:auto;margin-top:auto;padding-top:24px;justify-content:center;flex-shrink:0;}
  .tab {position:relative;min-height:66px;height:66px;gap:6px;padding:10px 2px;border-radius:14px;transition:background .15s,color .15s;}
  .tab.active {background:#ffffff12;}
  .tab.active::before {content:"";position:absolute;left:-12px;top:20px;bottom:20px;width:3px;background:#fff;border-radius:0 3px 3px 0;}
  .tab:hover {background:#ffffff0b;color:#fff;}
  .tab.active:hover {background:#ffffff18;}
  .tab svg {width:24px;height:24px;}
  .tab span {font-size:11px;line-height:15px;}
  .topbar {min-height:100px;padding:28px 0 24px;}
  #home.active {display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr);column-gap:32px;align-items:start;}
  #home {--home-header-height:100px;}
  #home>.topbar {grid-column:1/-1;min-height:var(--home-header-height);margin-inline:0;padding-inline:0;}
  #home .brand {font-size:28px;letter-spacing:-.8px;}
  #home .hero {position:sticky;top:var(--home-header-height);height:clamp(440px,calc(100dvh - 136px),720px);min-height:0;margin:0;padding:28px 28px 112px;border:1px solid var(--line);border-radius:24px;justify-content:flex-end;}
  #home .hero::before {background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.03) 20%,rgba(0,0,0,.58) 48%,rgba(0,0,0,.92) 85%,#080808);}
  #home .hero {border-color:rgba(255,255,255,.16);border-radius:28px;box-shadow:0 20px 60px rgba(0,0,0,.38),0 0 24px rgba(184,212,255,.025);}
  #home .hero::after {content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 1px rgba(255,255,255,.52),inset 1px 0 1px rgba(255,255,255,.24),inset 0 -1px 1px rgba(207,226,255,.24),inset 0 0 12px rgba(222,236,255,.08);}
  #home .hero-copy {padding:0;max-width:none;}
  #home .hero-copy::before {display:none;}
  #home .hero-dateline {margin-bottom:18px;}
  #home .hero-date {color:rgba(255,255,255,.7);font-size:14px;}
  #home .hero-copy h1 {font-size:clamp(30px,2.6vw,40px);line-height:1.2;-webkit-line-clamp:4;margin-bottom:18px;}
  #home .hero-copy p {max-width:none;font-size:16px;font-weight:500;line-height:1.6;-webkit-line-clamp:4;color:rgba(255,255,255,.7);}
  #home .hero-actions {left:28px;right:28px;bottom:28px;}
  .feed-heading {margin:0 0 18px;font-size:21px;font-weight:650;line-height:28px;}
  #home #filters {position:sticky;top:var(--home-header-height);z-index:3;margin:0;padding:0 0 14px;gap:8px;background:#000;box-shadow:0 -16px 0 #000;}
  #home .chip {font-size:13px;line-height:18px;padding:8px 14px;}
  #home .news-item {padding:20px 0;}
  #home .news-item h3 {font-size:19px;line-height:1.4;}
  #home .news-item p {font-size:14px;line-height:1.6;}
  #home .news-item:first-child {padding-top:8px;}
  #home .brief-card .cover {height:210px;}
  #markets.screen .markets-header {margin:0;padding:30px 0 0;min-height:88px;max-width:none;}
  #markets #refreshMarkets {display:inline-flex;}
  #markets.screen .wm-ranges-host {margin:24px 0 28px;max-width:640px;}
  #markets #marketGrid {max-width:none;gap:20px;}
  #markets .wm-card {padding:22px;border-radius:16px;}
  #markets .wm-chart {height:140px;margin-top:12px;}
  #peersContent {padding-top:16px;}
  #peersContent .bp-shell,#peersContent .bp-detail {width:100%;max-width:none;padding-inline:0;}
  #peersContent .bp-shell {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start;}
  #peersContent .bp-mode,#peersContent .bp-company-rail,#peersContent .bp-overview-grid,#peersContent .bp-metric-rail,#peersContent .bp-follow-status {grid-column:1/-1;margin:0;}
  #peersContent .bp-mode {height:50px;align-items:center;}
  #peersContent .bp-company-rail {gap:28px;padding:0 0 6px;}
  #peersContent .bp-overview-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
  #peersContent .bp-metric-card {min-height:120px;padding:54px 14px 14px;}
  #peersContent .bp-glyph {top:14px;left:14px;width:30px;height:30px;font-size:22px;line-height:26px;}
  #peersContent .bp-trend-card,#peersContent .bp-capital-card {margin:0;min-height:280px;padding:22px;}
  #peersContent .bp-spark {height:178px;margin-top:14px;}
  #peersContent .bp-capital-items {row-gap:26px;margin-top:24px;padding-top:20px;}
  #peersContent .bp-card-title b {font-size:16px;}
  #peersContent .bp-capital-items b {font-size:19px;}
  #peersContent .bp-comparison>.bp-chart-card,#peersContent .bp-comparison>.bp-table-wrap,#peersContent .bp-selected-snapshot {grid-column:1/-1;margin:0;}
  #peersContent .bp-chart {height:260px;}
  #peersContent .bp-table {font-size:13px;}
  #peersContent .bp-table th,#peersContent .bp-table td {padding:14px 16px;}
  #peersContent .bp-table thead th {font-size:11px;}
  #peersContent .bp-detail-grid {gap:20px;}
  #peersContent .bp-detail-card {padding:22px;}
  #peersContent .bp-stat b {font-size:18px;}
  #peersContent .bp-stat small {font-size:11px;}
  body[data-active-tab=assistant] .app {padding:0;}
  #assistant.screen {height:100dvh;max-width:none;margin:0;}
  #assistant .ba-assistant {background:#000;}
  #assistant .ba-assistant-head {min-height:80px;padding:0 28px;}
  #assistant .ba-welcome {padding-top:clamp(46px,12vh,120px);}
  #assistant .ba-welcome h1 {font-size:30px;}
  #assistant .ba-prompts {width:min(100%,660px);}
  #assistant .ba-history {width:280px;}
  #assistant .ba-assistant:has(.ba-history) {padding-left:280px;}
  .mini-player {bottom:22px;left:calc(50% + var(--rail-width)/2);width:min(calc(100% - var(--rail-width) - 72px),760px);box-shadow:0 12px 48px #0009;}
  .web-status,.undo-toast {left:calc(50% + var(--rail-width)/2);bottom:105px;}
  .overlay-open .app {opacity:.25;}
}
@supports (mask-composite:exclude) or (-webkit-mask-composite:xor) {
  @media (min-width:1000px) {
    #home .hero::after {
      padding:5px;
      background:radial-gradient(ellipse at 0 0,rgba(255,255,255,.32),transparent 48%),radial-gradient(ellipse at 100% 100%,rgba(184,220,255,.18),transparent 48%),linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025) 38%,rgba(210,229,255,.015) 65%,rgba(255,255,255,.08));
      -webkit-backdrop-filter:blur(4px) saturate(1.3);
      backdrop-filter:blur(4px) saturate(1.3);
      -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
      mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
      -webkit-mask-composite:xor;
      mask-composite:exclude;
    }
  }
}
@media (min-width:1280px) {
  :root {--desktop-inset:44px;}
  #home.active {column-gap:44px;}
  #markets #marketGrid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (min-width:1000px) and (max-height:700px) {
  .tabbar {padding-top:12px;padding-bottom:12px;}
  .rail-brand {margin-bottom:12px;}
  .nav-tabs {gap:6px;}
  .tab {min-height:56px;height:56px;}
  #home .hero {position:relative;top:auto;height:auto;min-height:380px;}
}

/* Reading and listening share the same quieter surface as the dialogs. */
.reader .reader-inner {max-width:760px;padding-bottom:56px;}
.reader h1 {font-size:clamp(30px,4vw,42px);line-height:1.3;letter-spacing:-.035em;}
.reader .reader-dek {color:#a4a6ad;font-size:17px;line-height:1.8;}
.reader .reader-section {padding-top:26px;margin-top:28px;}
.reader .reader-section h2 {font-size:20px;line-height:1.45;letter-spacing:-.02em;}
.reader .reader-section p {color:#d3d4d8;line-height:1.9;}
.reader .reader-action {min-height:44px;padding:11px 20px;border-radius:13px;}
.reader .meta {color:#a7987e;font-size:12px;}
.player .chapters,.player .player-section {padding-top:24px;border-top:1px solid var(--line);margin-top:24px;}
.player .chapters h2,.player .player-section h2 {font-size:18px;letter-spacing:-.02em;margin:0 0 16px;}
.player .chapter {border-radius:14px;border-color:#ffffff0c;background:#ffffff04;}
.player .chapter.active {background:#ffffff0b;border-color:#ffffff20;}
.player .speed-options {background:#131416;border:1px solid #ffffff0b;border-radius:14px;padding:5px;gap:5px;}
.player .speed-options button {min-height:36px;color:#9fa1a8;}
.player .speed-options button.active {background:#303136;}
.source-news-dialog.app-dialog {line-height:1.8;}
.source-news-dialog #sourceNewsTitle {font-size:28px;line-height:1.4;letter-spacing:-.025em;margin:18px 0;}
.source-news-dialog #sourceNewsMeta {color:#b8a988;font-size:12px;padding-right:44px;}
.source-news-dialog #sourceNewsSnippet,.source-news-dialog #sourceNewsBody {color:#cecfd4;font-size:16px;line-height:1.85;}
.source-news-dialog #sourceNewsOriginal {color:#c6b592;font-size:14px;text-decoration:none;}
.source-news-dialog form {float:right;}
.source-news-dialog #closeSourceNews {border:1px solid #ffffff14;border-radius:12px;background:#ffffff08;color:#d3d4d8;min-height:38px;padding:0 13px;font:inherit;font-size:13px;}
@media (min-width:1000px) {
  .reader {width:min(960px,calc(100% - 160px));padding:28px 48px 48px;}
  .reader .reader-cover {border-radius:22px;aspect-ratio:2/1;max-height:340px;}
  .reader .player-topbar {margin-bottom:24px;}
}
@media (min-width:1200px) {
  .player.active {left:var(--rail-width);width:calc(100% - var(--rail-width));transform:none;border:0;display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr);column-gap:64px;align-content:start;align-items:start;padding:28px max(44px,calc((100vw - 1280px)/2)) 64px;}
  .player>* {grid-column:2;min-width:0;}
  .player .player-topbar {grid-column:1/-1;margin-bottom:28px;}
  .player .player-cover {grid-column:1;grid-row:2 / span 8;position:sticky;top:28px;width:100%;max-width:none;aspect-ratio:4/5;margin:0;border-radius:24px;}
  .player .player-cover {background-size:cover;}
  .player .player-cover::after {background:linear-gradient(180deg,#0000 40%,#0007);border-radius:inherit;}
  .player h1 {font-size:clamp(27px,2.5vw,38px);line-height:1.3;margin:0;letter-spacing:-.03em;}
  .player .player-edition-date {font-size:13px;margin-top:14px;}
  .player .controls {margin:22px 0;gap:36px;}
  .player .control.main {width:76px;height:76px;}
  .player .speed-options {margin-bottom:0;}
  .player .chapter-time {font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;}
  .player .chapter-title {font-size:15px;font-weight:600;line-height:1.5;}
  .player .player-section {grid-column:2;}
}
@media (max-width:600px) {
  .app-dialog {padding:26px 20px max(28px,env(safe-area-inset-bottom));}
  .app-dialog h2,.app-dialog #library .brand {font-size:24px;}
  .dialog-eyebrow {font-size:10px;}
  .search-field {gap:8px;padding-left:12px;}
  .search-field input {font-size:15px;}
  .search-field button {padding-inline:13px;font-size:13px;}
  .search-field svg {width:18px;height:18px;}
  .search-intro {padding:28px 0;}
  .search-topics button {padding:10px 12px;gap:10px;}
  .library-empty {padding:38px 14px;}
  .app-dialog .detail-actions {gap:8px;}
  .app-dialog .detail-actions .pill-button {padding-inline:13px;font-size:13px;}
  .source-news-dialog #sourceNewsTitle {font-size:24px;}
}

/* Daily routes share the category order; date navigation remains independent. */
.daily-showcase {min-width:0;}
.daily-routes {--route-index:0;position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:3px;margin:0 0 12px;border:1px solid #ffffff13;border-radius:14px;background:#111214;}
.daily-routes::before {content:"";position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border-radius:10px;background:#303133;box-shadow:inset 0 1px 0 #ffffff14;transform:translateX(calc(var(--route-index)*100%));transition:transform .26s cubic-bezier(.2,.7,.2,1);}
.daily-routes button {min-width:0;min-height:32px;padding:5px 4px;border:0;border-radius:10px;background:transparent;color:#929398;font-size:13px;font-weight:600;line-height:18px;transition:color .2s;}
.daily-routes button[aria-pressed=true] {color:#fff;}
#home .daily-showcase .hero {height:380px;min-height:380px;padding-bottom:140px;}
#home .hero-actions {flex-direction:column;align-items:stretch;gap:16px;bottom:24px;}
#home .hero-navigation {justify-content:center;}
.daily-entry-actions {display:flex;align-items:center;gap:10px;}
.daily-entry-actions button {display:flex;justify-content:center;align-items:center;gap:9px;min-height:44px;min-width:0;flex:1;padding:10px 12px;border-radius:24px;font-size:13px;font-weight:650;line-height:20px;white-space:nowrap;}
.daily-listen {border:1px solid #fff;background:#fff;color:#111;}
.daily-read {border:1px solid #ffffff3b;background:#ffffff12;color:#fff;backdrop-filter:blur(12px);}
.daily-listen:hover {background:#e7e7e7;}
.daily-read:hover {background:#ffffff20;}
.daily-audio-note {flex:1;text-align:center;color:#a1a1a6;font-size:12px;}
#home .hero-copy p {max-width:100%;}
@media (min-width:700px) and (max-width:999px) {
  #home .daily-showcase .hero {height:420px;}
}
@media (min-width:1000px) {
  #home .daily-showcase {position:sticky;top:var(--home-header-height);}
  #home .daily-showcase .hero {position:relative;top:auto;height:clamp(390px,calc(100dvh - 200px),680px);min-height:0;padding-bottom:152px;}
  #home .hero-actions {bottom:26px;}
  #home .hero-copy h1 {font-size:clamp(27px,2.3vw,36px);-webkit-line-clamp:3;}
  #home .hero-copy p {-webkit-line-clamp:3;font-size:15px;line-height:1.5;}
}
@media (min-width:1000px) and (max-height:700px) {
  #home .daily-showcase {position:relative;top:auto;}
  #home .daily-showcase .hero {height:440px;}
}
@media (prefers-reduced-motion:reduce) {
  .daily-routes::before,.daily-routes button {transition:none;}
}
