/* One set of content, controls and brand styles; only layout changes by width. */
@media (max-width: 1099px) {
  html { scroll-padding-top: 170px; }
  .atlas-ui { -webkit-text-size-adjust: 100%; }
  .atlas-ui :is(main, section, article, aside, .panel, .section-head > *, .strategy-detail) { min-width: 0; }
  .atlas-ui :is(.footnote, .table-note, .panel-note, .section-updated, .form-note, .form-help) { font-size: 11px; overflow-wrap: anywhere; }
  .atlas-ui :is(.section-head, .rank-heading, .rank-heading-actions) { flex-wrap: wrap; }
  .atlas-ui.page-pre #attention .rank-heading .section-updated { display: block; font-size: 10px; }
  .atlas-ui.page-pre .section-sub { display: inline; }
  .atlas-ui.page-post .hero p:not(.eyebrow),
  .atlas-ui.page-post .section-head p { display: block; font-size: 12px; }
  .atlas-ui.page-post .section-head p { flex-basis: 100%; margin: 0; }
  .atlas-ui.page-post .seat-group-note { display: block; font-size: 11px; white-space: normal; }
}

@media (max-width: 1099px) {
  /* Status and dates remain available on phones instead of being hidden. */
  .atlas-ui .ui-header { height: auto; min-height: 0; }
  .atlas-ui .ui-header-inner { height: auto; display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 12px 16px 0; }
  .atlas-ui .ui-brand { order: 1; }
  .atlas-ui .ui-brand small { display: block; font-size: 9px; letter-spacing: 1px; margin-top: 4px; }
  .atlas-ui .ui-header-end { display: contents; }
  .atlas-ui .ui-profile { order: 2; margin-left: auto; }
  .atlas-ui .ui-header .ui-nav { order: 3; width: 100%; display: flex; justify-content: space-between; gap: 2px; padding: 3px 0 7px; }
  .atlas-ui .ui-header .ui-nav a { flex: 1 0 auto; text-align: center; min-height: 40px; padding: 9px 6px; font-size: 12px; }
  .atlas-ui .ui-edition { display: block; order: 4; flex: 1 0 100%; font-size: 8px; letter-spacing: 1px; white-space: normal; padding-bottom: 8px; }
  .atlas-ui .ui-header .header-data { display: block; order: 4; flex: 1 0 100%; max-width: none; padding: 6px 0 9px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.5; }
  .atlas-ui .ui-header .source-details { font-size: 10px; }
  .atlas-ui .ui-header .source-details[open] p { position: absolute; left: 0; right: auto; top: 20px; width: min(360px, calc(100vw - 32px)); max-height: 45dvh; overflow: auto; padding: 14px; }

  .atlas-ui.page-home .research-status { display: block; grid-column: 2; font-size: 11px; }
  .atlas-ui.page-home .research-row { grid-template-columns: 30px minmax(0, 1fr) 62px; gap: 6px 10px; }
  .atlas-ui.page-home .research-link { grid-column: 3; grid-row: 1 / 3; }
  .atlas-ui.page-home .research-intro p:not(.eyebrow) { display: block; }
  .atlas-ui.page-pre .edition-nav > span { display: block; max-width: none; margin-top: 8px; font-size: 11px; }

  /* The same strategy cards become a horizontal selector above the detail. */
  .atlas-ui.page-lab .desktop-layout { display: block; padding: 14px; }
  .atlas-ui.page-lab .strategy-shelf { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; height: auto; min-height: 0; max-height: none; padding: 14px; margin-bottom: 14px; overflow: visible; }
  .atlas-ui.page-lab :is(.ui-shelf-heading, .shelf-section-title, #official-list, #strategy-list, .shelf-signature) { grid-column: 1 / -1; }
  .atlas-ui.page-lab .ui-shelf-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 0 0 4px; }
  .atlas-ui.page-lab .ui-shelf-heading h2 { font-size: 19px !important; margin: 0; }
  .atlas-ui.page-lab .ui-shelf-heading > span { display: inline; order: 2; margin-left: auto; }
  .atlas-ui.page-lab .ui-shelf-heading p { display: block; order: 3; flex-basis: 100%; font-size: 11px; }
  .atlas-ui.page-lab .shelf-section-title { padding: 4px 0; margin: 0; }
  .atlas-ui.page-lab .mine-title { padding-top: 8px; }
  .atlas-ui.page-lab .official-label { display: inline; font-size: 10px; }
  .atlas-ui.page-lab :is(#official-list, #strategy-list) { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; grid-template-columns: none; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #739b90 #244c43; }
  .atlas-ui.page-lab :is(#official-list, #strategy-list)::-webkit-scrollbar { height: 6px; }
  .atlas-ui.page-lab :is(#official-list, #strategy-list)::-webkit-scrollbar-thumb { background: #739b90; border-radius: 3px; }
  .atlas-ui.page-lab .shelf-strategy { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 10px; min-height: 65px; scroll-snap-align: start; }
  .atlas-ui.page-lab .shelf-strategy strong { font-size: 13px; white-space: normal; }
  .atlas-ui.page-lab .shelf-strategy small { font-size: 10px; }
  .atlas-ui.page-lab #strategy-list:has(.shelf-empty) { display: block; padding: 0; }
  .atlas-ui.page-lab .shelf-empty { padding: 2px 0 6px; font-size: 11px; }
  .atlas-ui.page-lab .shelf-empty small { display: block; }
  .atlas-ui.page-lab .shelf-create { min-width: 0; width: 100%; margin: 0; padding: 10px 6px; font-size: 12px; }
  .atlas-ui.page-lab .shelf-signature { display: block; margin: 0; padding: 0; font-size: 8px; }
  .atlas-ui.page-lab .workspace-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .atlas-ui.page-lab .workspace-tabs button { flex: 0 0 auto; min-width: 76px; min-height: 44px; font-size: 12px; padding: 12px 8px; }
  .atlas-ui.page-lab :is(.table-scroll, .trade-record-scroll, #latest-screen, #tab-content) { max-width: 100%; overflow-x: auto; }
  .atlas-ui.page-lab :is(.screen-table, .holdings-table, .monitor-record-table) { min-width: 680px; }
  .atlas-ui.page-lab .trade-record-table { min-width: 780px; }
  .atlas-ui.page-lab :is(th, td) { font-size: 12px; }
  .atlas-ui.page-lab .saved-condition-grid { grid-template-columns: 1fr; }
  .atlas-ui.page-lab #editor-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); margin: auto; }
  .atlas-ui.page-lab #editor-dialog #strategy-form { height: 90dvh; max-height: calc(100dvh - 20px); }
  .atlas-ui.page-lab #editor-dialog :is(input, select, textarea) { min-width: 0; max-width: 100%; font-size: 16px; }
  .atlas-ui.page-lab #editor-dialog .dialog-footer { flex-wrap: wrap; gap: 8px; }
  .atlas-ui.page-lab #editor-dialog .dialog-footer > div { flex-wrap: wrap; gap: 6px; }
  .atlas-ui.page-lab #editor-dialog .dialog-footer .button { padding: 9px 10px; }
}

@media (max-width: 650px) {
  .atlas-ui :is(.panel, .world-section, .events-section, .attention-section, .calendar-section) { overflow-wrap: anywhere; }
  .atlas-ui.page-home .market-card-heading { flex-wrap: wrap; gap: 5px 12px; }
  .atlas-ui.page-home .market-card-heading small { display: block; font-size: 9px; }
  .atlas-ui.page-home .breadth-heading strong { display: inline; font-size: 11px; }
  .atlas-ui.page-home .daily-line { display: flex; align-items: baseline; flex-wrap: wrap; padding-top: 13px; gap: 6px 10px; font-size: 12px; }
  .atlas-ui.page-home .daily-line p { flex: 1 1 210px; }
  .atlas-ui.page-home .daily-line > span { font-size: 11px; }
  .atlas-ui.page-home .research-intro p:not(.eyebrow) { font-size: 12px; }
  .atlas-ui.page-home .research-name b { white-space: normal; overflow: visible; }

  .atlas-ui.page-pre .edition-nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .atlas-ui.page-pre .edition-nav nav a { font-size: 12px; padding: 8px; }
  .atlas-ui.page-pre .edition-nav nav b { display: inline; margin-right: 5px; }
  .atlas-ui.page-pre .section-head .section-count { display: inline; font-size: 11px; }
  .atlas-ui.page-pre #attention .rank-heading .section-updated { display: block; order: 2; flex-basis: 100%; text-align: left; }
  .atlas-ui.page-pre #attention .rank-heading-actions { justify-content: flex-start; }
  .atlas-ui.page-pre #attention .rank-score small { display: inline; font-size: 10px; }
  .atlas-ui.page-pre #attention .rank-top { flex-wrap: wrap; gap: 6px 8px; }
  .atlas-ui.page-pre #attention .rank-name { font-size: 13px; }
  .atlas-ui.page-pre #attention .rank-code { font-size: 10px; }
  .atlas-ui.page-pre :is(.brief-source, .brief-source time, .cover-meta, .cover-meta .section-updated) { font-size: 11px; }
  .atlas-ui.page-pre .market-time { font-size: 11px; }
  .atlas-ui.page-pre #events-list .morning-row > summary,
  .atlas-ui.page-pre #events-list .morning-editorial { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .atlas-ui.page-pre #events-list .morning-original { display: block; grid-column: 2; font-size: 11px; }
  .atlas-ui.page-pre #events-list .morning-row time { display: block; grid-column: 3; font-size: 10px; }
  .atlas-ui.page-pre :is(#ipo-table, #suspension-table) { max-width: 100%; overflow-x: auto; }

  .atlas-ui.page-post .hero { flex-wrap: wrap; padding: 22px 18px; }
  .atlas-ui.page-post .hero > div:first-child { flex: 1 1 180px; }
  .atlas-ui.page-post .hero h1 span { display: block; margin: 6px 0 0; max-width: none; font-size: 12px; }
  .atlas-ui.page-post .hero p:not(.eyebrow) { font-size: 12px; }
  .atlas-ui.page-post .hero .dateline { margin-left: auto; }
  .atlas-ui.page-post .dateline > span, .atlas-ui.page-post .dateline small { font-size: 11px; }
  .atlas-ui.page-post .section-head { align-items: flex-start; }
  .atlas-ui.page-post .section-head > div:first-child { flex: 1 1 100%; gap: 8px; }
  .atlas-ui.page-post .badge { max-width: 100%; font-size: 11px; }
  .atlas-ui.page-post .indices { grid-template-columns: 1fr; gap: 8px; }
  .atlas-ui.page-post .index { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 12px; }
  .atlas-ui.page-post .index > b { font-size: 12px; }
  .atlas-ui.page-post .index strong { grid-column: 2; grid-row: 1; margin: 0; font-size: 25px; }
  .atlas-ui.page-post .index > span { grid-column: 2; text-align: right; }
  .atlas-ui.page-post .index small { grid-column: 1 / -1; font-size: 11px; margin: 0; }
  .atlas-ui.page-post .index .quote-note { font-size: 10px; }
  .atlas-ui.page-post .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .atlas-ui.page-post .anchors { flex-wrap: wrap; white-space: normal; gap: 6px; }
  .atlas-ui.page-post .anchors a { font-size: 11px; }
  .atlas-ui.page-post .seat-group-note { flex-basis: 100%; }
  .atlas-ui.page-post .rotation-history-bar { flex-wrap: wrap; gap: 8px; }
  .atlas-ui.page-post #rotation-dates { display: flex; flex-wrap: wrap; gap: 5px; }
  .atlas-ui.page-post .rotation-history-bar nav button { margin: 0; font-size: 11px; }
  .atlas-ui.page-post :is(.rotation-fact, .rotation-rank, .rotation-observe, .rotation-returns) { font-size: 11px; }

  .atlas-ui.page-my .setting-item small { display: block; font-size: 11px; }
  .atlas-ui.page-my .setting-item > span:last-child { display: inline; }
  .atlas-ui.page-my .setting-item b { font-size: 13px; }
  .atlas-ui.page-my .account-copy .account-meta { font-size: 11px !important; }
  .atlas-ui.page-my .watch-panel .section-head { flex-wrap: wrap; gap: 12px; }
  .atlas-ui.page-my .watch-foot { font-size: 11px; }
  .atlas-ui.page-my dialog :is(input, select, textarea) { font-size: 16px; }
  .atlas-ui.page-my footer { flex-wrap: wrap; gap: 12px; }
}

/* Market figures must not force a wider page on the smallest phones. */
@media (max-width: 650px) {
  .atlas-ui.page-home .market-card { grid-template-columns: minmax(0, 1fr); }
  .atlas-ui.page-home .market-indices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-ui.page-home .market-breadth { display: block; }
  .atlas-ui.page-home .breadth-heading { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .atlas-ui.page-home .breadth-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
}
@media (max-width: 380px) {
  .atlas-ui.page-home .market-indices { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .atlas-ui.page-home .index-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .atlas-ui.page-home .index-row > div { flex-basis: auto; }
  .atlas-ui.page-home .index-row b { padding: 0; font-size: 11px; }
  .atlas-ui.page-home .index-value { font-size: 20px; }
}

/* Phone density: preserve every content item and control; reduce decorative space. */
@media (max-width: 650px) {
  html { scroll-padding-top: 142px; }
  body.atlas-ui { font-size: 13px; line-height: 1.55; }
  .atlas-ui .ui-header-inner { gap: 4px 10px; padding: 8px 12px 4px; }
  .atlas-ui .ui-brand { gap: 8px; }
  .atlas-ui .ui-brand > span:last-child { font-size: 22px; }
  .atlas-ui .ui-brand small { font-size: 8px; margin-top: 2px; letter-spacing: .5px; }
  .atlas-ui .ui-mark { width: 30px; height: 32px; border-radius: 8px; }
  .atlas-ui .ui-mark svg { width: 23px; height: 23px; }
  .atlas-ui .ui-edition { order: 2; flex: 1 1 130px; min-width: 0; padding: 0; text-align: right; font-size: 7px; line-height: 1.4; letter-spacing: .6px; }
  .atlas-ui .ui-header .ui-nav { gap: 2px; padding: 0; }
  .atlas-ui .ui-header .ui-nav a { min-height: 40px; padding: 10px 4px; font-size: 12px; line-height: 20px; }
  .atlas-ui .ui-header .header-data { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 5px 0 1px; font-size: 9px; line-height: 1.4; }
  .atlas-ui .ui-header .header-data > span { margin: 0; }
  .atlas-ui .ui-header .source-details { font-size: 10px; }
  .atlas-ui .ui-header .source-details[open] p { width: min(360px, calc(100vw - 24px)); }
  .atlas-ui.page-pre > main, .atlas-ui.page-post > main, .atlas-ui.page-my > main { padding: 12px 12px 0; }
  .atlas-ui :is(.panel, .world-section, .events-section, .attention-section, .calendar-section) { border-radius: 11px; }
  .atlas-ui .section-head { margin-bottom: 12px; gap: 8px; }
  .atlas-ui h2 { font-size: 18px; }
  .atlas-ui :is(.number, .section-no) { width: 23px; height: 23px; border-radius: 6px; }
  .atlas-ui .button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
  .atlas-ui :is(.footnote, .table-note, .panel-note) { line-height: 1.6; }
  .atlas-ui > aside[aria-label="研究说明"] { margin: 12px auto !important; padding: 12px 14px !important; font-size: 11px !important; line-height: 1.6 !important; }
  .atlas-ui footer { gap: 10px; padding-top: 16px; padding-bottom: 16px; }

  /* Home: a shorter cover and denser market/readout cards. */
  .atlas-ui.page-home .hero { width: calc(100% - 24px); margin-top: 12px; border-radius: 12px; }
  .atlas-ui.page-home .hero-inner { min-height: 0; padding: 20px; }
  .atlas-ui.page-home .hero-copy { max-width: none; }
  .atlas-ui.page-home h1 { font-size: 32px; line-height: 1.3; letter-spacing: -1px; margin: 12px 0 10px; }
  .atlas-ui.page-home .hero-description { max-width: 100%; font-size: 12px; line-height: 1.65; }
  .atlas-ui.page-home .hero-actions { margin-top: 16px; gap: 10px 14px; }
  .atlas-ui.page-home .primary-button { min-height: 40px; padding: 9px 12px; gap: 12px; }
  .atlas-ui.page-home .hero-caption { margin-top: 12px; line-height: 1.6; letter-spacing: 1px; }
  .atlas-ui.page-home .home-content { padding: 0 12px; }
  .atlas-ui.page-home .market-card { margin-top: 10px; padding: 14px; gap: 10px; border-radius: 11px; }
  .atlas-ui.page-home .market-card-heading { font-size: 14px; }
  .atlas-ui.page-home .market-card-heading small { margin-top: 2px; }
  .atlas-ui.page-home .market-indices { gap: 8px; }
  .atlas-ui.page-home .index-row { padding-right: 6px; }
  .atlas-ui.page-home .index-row b { padding-bottom: 3px; }
  .atlas-ui.page-home .index-value { font-size: 20px; letter-spacing: -.5px; line-height: 1.3; }
  .atlas-ui.page-home .market-breadth { padding-top: 9px; }
  .atlas-ui.page-home .breadth-figures { padding-top: 5px; gap: 8px; }
  .atlas-ui.page-home .market-footer { padding-top: 7px; }
  .atlas-ui.page-home .daily-line { padding: 9px 2px 0; gap: 4px 8px; font-size: 11px; }
  .atlas-ui.page-home .section-heading { margin: 20px 0 10px; }
  .atlas-ui.page-home :is(.product-grid, .facts-grid) { gap: 10px; }
  .atlas-ui.page-home :is(.product-card, .product-card.active, .fact-card) { padding: 14px; border-radius: 11px; }
  .atlas-ui.page-home .product-top { margin-bottom: 6px; }
  .atlas-ui.page-home .product-icon { width: 30px; height: 30px; font-size: 22px; border-radius: 8px; }
  .atlas-ui.page-home .product-card h3 { font-size: 20px; }
  .atlas-ui.page-home .product-card h3 > span { font-size: 11px; margin-left: 8px; }
  .atlas-ui.page-home .product-fact { margin-top: 9px; line-height: 1.6; }
  .atlas-ui.page-home .product-bottom { margin-top: 10px; padding-top: 8px; }
  .atlas-ui.page-home .fact-body { padding-top: 9px; }
  .atlas-ui.page-home .fact-body h3 { font-size: 16px; line-height: 1.5; }
  .atlas-ui.page-home .fact-body p { margin: 6px 0; line-height: 1.65; }
  .atlas-ui.page-home .fact-link { padding-top: 9px; margin-top: 8px; }
  .atlas-ui.page-home :is(.mini-returns, .seat-amount) { margin: 9px 0; }
  .atlas-ui.page-home .research { margin: 18px 0; padding: 14px; gap: 12px; }
  .atlas-ui.page-home .research-intro h2 { margin: 5px 0 6px; }
  .atlas-ui.page-home .research-intro a { margin-top: 10px; }
  .atlas-ui.page-home .research-list { padding: 0 10px; }
  .atlas-ui.page-home .research-row { padding: 10px 0; min-height: 56px; }
  .atlas-ui.page-home .home-footer { gap: 10px; padding: 16px 0; }

  /* Premarket: retain sources and dates within shorter report sections. */
  .atlas-ui.page-pre .cover { padding: 16px; gap: 10px; border-radius: 12px; }
  .atlas-ui.page-pre .cover-title { gap: 5px 10px; }
  .atlas-ui.page-pre .cover h1 { font-size: 25px; line-height: 1.3; }
  .atlas-ui.page-pre .cover-brief { padding-top: 10px; }
  .atlas-ui.page-pre .brief-text { margin: 8px 0 10px; font-size: 13px; line-height: 1.65; }
  .atlas-ui.page-pre .cover-stats { gap: 10px 16px; }
  .atlas-ui.page-pre .cover-stats b { font-size: 20px; }
  .atlas-ui.page-pre .cover-meta { margin-top: 10px; padding-top: 8px; gap: 4px 8px; }
  .atlas-ui.page-pre .edition-nav { padding: 10px 0; }
  .atlas-ui.page-pre .edition-nav nav { gap: 4px; }
  .atlas-ui.page-pre .edition-nav nav a { min-height: 40px; padding: 10px 8px; line-height: 20px; }
  .atlas-ui.page-pre .edition-nav > span { margin-top: 5px; line-height: 1.5; }
  .atlas-ui.page-pre :is(.world-section, .events-section, .attention-section, .calendar-section) { padding: 14px; margin-bottom: 12px; }
  .atlas-ui.page-pre .editorial-grid { gap: 0; margin-bottom: 0; }
  .atlas-ui.page-pre .section-head h2 { font-size: 17px; }
  .atlas-ui.page-pre .market-strip { gap: 10px 12px; padding: 4px 0 12px; }
  .atlas-ui.page-pre .market-price { font-size: 20px; }
  .atlas-ui.page-pre .world-evidence { gap: 10px; padding-top: 12px; }
  .atlas-ui.page-pre #events-list .morning-row > summary,
  .atlas-ui.page-pre #events-list .morning-editorial { min-height: 44px; padding: 9px 5px; gap: 5px; }
  .atlas-ui.page-pre #attention .dual-ranks { gap: 12px; }
  .atlas-ui.page-pre #attention .rank-heading { padding: 10px 0; gap: 6px; }
  .atlas-ui.page-pre #attention .rank-row { padding-top: 8px; padding-bottom: 8px; }
  .atlas-ui.page-pre #attention .concept-accordion > summary { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .atlas-ui.page-pre #attention .rank-top { gap: 4px 6px; }
  .atlas-ui.page-pre .schedule-grid { gap: 12px; }
  .atlas-ui.page-pre .schedule-grid > div + div { padding-top: 12px; }
  .atlas-ui.page-pre :is(th, td) { padding: 8px 6px; }

  /* Postmarket: keep the cover date alongside the title; reduce list whitespace. */
  .atlas-ui.page-post .hero { display: grid; grid-template-columns: minmax(0, 1fr) 120px; min-height: 0; padding: 16px; gap: 10px; margin-bottom: 12px; border-radius: 12px; }
  .atlas-ui.page-post .hero > div:first-child { min-width: 0; }
  .atlas-ui.page-post .hero h1 { font-size: 24px; line-height: 1.3; }
  .atlas-ui.page-post .hero h1 span { margin-top: 4px; font-size: 11px; line-height: 1.5; }
  .atlas-ui.page-post .hero p:not(.eyebrow) { margin-top: 7px; font-size: 12px; line-height: 1.55; }
  .atlas-ui.page-post .hero .dateline { min-width: 0; margin: 0; padding: 10px 8px; }
  .atlas-ui.page-post .dateline strong { font-size: 19px; line-height: 1.3; }
  .atlas-ui.page-post .dateline small { line-height: 1.5; }
  .atlas-ui.page-post .notice { padding: 8px 10px; margin-bottom: 10px; }
  .atlas-ui.page-post .anchors { gap: 5px; margin: 10px 0 12px; }
  .atlas-ui.page-post .anchors a { min-height: 40px; padding: 10px 8px; line-height: 20px; }
  .atlas-ui.page-post .panel { padding: 14px; margin-bottom: 12px; }
  .atlas-ui.page-post .section-head > div:first-child { gap: 6px; }
  .atlas-ui.page-post .section-head p { line-height: 1.5; }
  .atlas-ui.page-post .indices { gap: 6px; }
  .atlas-ui.page-post .index { padding: 9px 10px; gap: 2px 8px; }
  .atlas-ui.page-post .index strong { font-size: 23px; line-height: 1.2; }
  .atlas-ui.page-post .stats { gap: 8px; margin-top: 12px; padding-top: 12px; }
  .atlas-ui.page-post .stats strong { font-size: 21px; }
  .atlas-ui.page-post .sentiment { margin-top: 12px; padding: 10px; gap: 6px; }
  .atlas-ui.page-post .seat-group > summary { min-height: 44px; padding: 10px; gap: 5px; }
  .atlas-ui.page-post .seat-profile > summary { min-height: 44px; padding: 8px 3px; }
  .atlas-ui.page-post .rotation-history-bar { gap: 6px; margin-bottom: 10px; }
  .atlas-ui.page-post .rotation-item { padding: 8px 0; }
  .atlas-ui.page-post .event-row { padding-top: 10px; padding-bottom: 10px; }

  /* Lab: reduce shelf and card spacing without altering strategy behavior. */
  .atlas-ui.page-lab .desktop-layout { padding: 10px 12px; }
  .atlas-ui.page-lab .strategy-shelf { padding: 12px; gap: 5px; margin-bottom: 10px; }
  .atlas-ui.page-lab .ui-shelf-heading { gap: 2px 8px; padding-bottom: 2px; }
  .atlas-ui.page-lab .ui-shelf-heading h2 { font-size: 18px !important; }
  .atlas-ui.page-lab .ui-shelf-heading p { margin: 2px 0; line-height: 1.5; }
  .atlas-ui.page-lab .shelf-section-title { padding: 3px 0; }
  .atlas-ui.page-lab .mine-title { padding-top: 5px; }
  .atlas-ui.page-lab :is(#official-list, #strategy-list) { grid-auto-columns: 184px; gap: 6px; padding-bottom: 5px; }
  .atlas-ui.page-lab .shelf-strategy { padding: 8px; min-height: 60px; gap: 7px; }
  .atlas-ui.page-lab .shelf-strategy strong { font-size: 12px; line-height: 1.4; }
  .atlas-ui.page-lab .shelf-empty { padding: 2px 0 4px; line-height: 1.5; }
  .atlas-ui.page-lab .shelf-empty small { margin-top: 3px; }
  .atlas-ui.page-lab .shelf-create { min-height: 40px; padding: 8px 6px; }
  .atlas-ui.page-lab .detail-primary { padding: 14px; }
  .atlas-ui.page-lab .detail-secondary { margin-top: 12px; padding: 0 10px 12px; }
  .atlas-ui.page-lab .detail-heading { padding-bottom: 10px; margin-bottom: 10px; gap: 9px; }
  .atlas-ui.page-lab .title-line h1 { font-size: 22px; }
  .atlas-ui.page-lab .identity-line { margin-top: 6px; gap: 6px; flex-wrap: wrap; }
  .atlas-ui.page-lab :is(#runtime-header, #saved-strategy-details, .quant-workflow) { padding: 10px; line-height: 1.6; }
  .atlas-ui.page-lab .detail-metrics { gap: 6px; margin-top: 12px; }
  .atlas-ui.page-lab .detail-metrics .metric-card { min-height: 72px; padding: 10px; }
  .atlas-ui.page-lab .detail-metrics .metric-value { font-size: 23px; line-height: 1.25; }
  .atlas-ui.page-lab .today-results { margin-top: 12px; padding-top: 12px; }
  .atlas-ui.page-lab .workspace-tabs { padding-top: 4px; gap: 4px; }
  .atlas-ui.page-lab .workspace-tabs button { min-height: 42px; padding: 10px 8px; }
  .atlas-ui.page-lab :is(.screen-table, .holdings-table, .trade-record-table, .monitor-record-table) :is(th, td) { padding: 8px 10px; font-size: 12px; line-height: 1.5; }
  .atlas-ui.page-lab .monitor-day > summary { min-height: 44px; padding: 10px; }
  .atlas-ui.page-lab .detail-footer { padding: 14px 6px; line-height: 1.6; }
  .atlas-ui.page-lab #editor-dialog .dialog-heading { padding: 12px 14px; }
  .atlas-ui.page-lab #editor-dialog .editor-body { padding: 14px; }
  .atlas-ui.page-lab #editor-dialog fieldset { margin-bottom: 14px; padding-bottom: 14px; }
  .atlas-ui.page-lab #editor-dialog .form-grid { gap: 10px; }
  .atlas-ui.page-lab #editor-dialog .dialog-footer { padding: 10px 12px; }
  .atlas-ui.page-lab #editor-dialog :is(input, select, textarea) { font-size: 16px; }

  /* Personal space: shorter account, empty state and help cards. */
  .atlas-ui.page-my .page-heading { margin: 3px 0 12px; gap: 8px; }
  .atlas-ui.page-my h1 { font-size: 23px; line-height: 1.4; }
  .atlas-ui.page-my h1 span { margin-top: 3px; }
  .atlas-ui.page-my .account-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); min-height: 0; padding: 14px; gap: 10px; }
  .atlas-ui.page-my .account-avatar { width: 42px; height: 42px; }
  .atlas-ui.page-my .account-copy { min-width: 0; max-width: none; }
  .atlas-ui.page-my .account-copy h2 { font-size: 18px; margin: 0 0 4px; line-height: 1.4; }
  .atlas-ui.page-my .account-copy p:not(.eyebrow) { line-height: 1.5; }
  .atlas-ui.page-my .account-copy .account-meta { margin-top: 4px; }
  .atlas-ui.page-my .account-actions { grid-column: 2; width: auto; padding: 0; gap: 8px; }
  .atlas-ui.page-my .account-actions .button { min-width: 0; min-height: 40px; padding: 8px 14px; }
  .atlas-ui.page-my .member-grid { margin-top: 12px; gap: 12px; }
  .atlas-ui.page-my .watch-panel { padding: 14px 14px 0; }
  .atlas-ui.page-my .watch-panel .section-head { gap: 8px; margin-bottom: 10px; }
  .atlas-ui.page-my .panel-note { margin: 8px 0 12px; line-height: 1.6; }
  .atlas-ui.page-my .watch-group summary { min-height: 42px; padding: 10px 0; }
  .atlas-ui.page-my .empty-state { padding: 18px 12px; margin-bottom: 12px; }
  .atlas-ui.page-my .empty-symbol { width: 34px; height: 34px; font-size: 21px; margin: 0 0 8px; }
  .atlas-ui.page-my .empty-state p { margin: 5px 0 10px; }
  .atlas-ui.page-my .watch-foot { padding: 10px 0; gap: 6px 10px; }
  .atlas-ui.page-my .service-rail { gap: 12px; }
  .atlas-ui.page-my :is(.ui-shortcuts, .install-card, .settings) { padding: 14px; }
  .atlas-ui.page-my .ui-shortcuts h2 { margin: 4px 0 8px; }
  .atlas-ui.page-my .ui-shortcuts a { min-height: 44px; padding: 9px 0; }
  .atlas-ui.page-my .install-card > p:not(.eyebrow) { margin: 8px 0 12px; line-height: 1.6; }
  .atlas-ui.page-my .settings { margin-top: 12px; }
  .atlas-ui.page-my .settings-grid { margin-top: 12px; gap: 8px; }
  .atlas-ui.page-my .setting-item { padding: 9px !important; gap: 7px; }
}

@media (max-width: 380px) {
  .atlas-ui.page-home .hero-inner { padding: 18px; }
  .atlas-ui.page-home h1 { font-size: 30px; }
  .atlas-ui.page-home .index-row { padding: 6px 0; }
  .atlas-ui.page-home .index-value { font-size: 19px; }
  .atlas-ui.page-post .hero { grid-template-columns: minmax(0, 1fr) 106px; padding: 14px; gap: 8px; }
  .atlas-ui.page-post .hero h1 { font-size: 23px; }
}

/* Postmarket phone-only compact overview; desktop rules remain unchanged. */
@media(max-width:650px){
 .atlas-ui.page-post .hero{grid-template-columns:minmax(0,1fr) 132px;gap:10px;align-items:start}
 .atlas-ui.page-post .hero .dateline{width:132px;min-width:0;max-width:none;padding:10px 8px;text-align:right;align-self:start}
 .atlas-ui.page-post .hero .dateline strong{display:block;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:18px;letter-spacing:-.3px;line-height:1.4;font-variant-numeric:tabular-nums}
 .atlas-ui.page-post .hero .dateline :is(span,small){display:block;max-width:none;font-size:10px;line-height:1.5}
 .atlas-ui.page-post #market .indices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
 .atlas-ui.page-post #market .index{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px;padding:10px 6px}
 .atlas-ui.page-post #market .index>b{font-size:11px;white-space:nowrap}
 .atlas-ui.page-post #market .index strong{margin:0;font-size:clamp(14px,4.3vw,20px);line-height:1.25;letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
 .atlas-ui.page-post #market .index>span{font-size:12px;text-align:left;white-space:nowrap}
 .atlas-ui.page-post #market .index>small{display:none}
 .atlas-ui.page-post #market .mobile-index-note{display:block!important;grid-column:1/-1;margin:0;font-size:10px;line-height:1.6;color:var(--muted)}
 .atlas-ui.page-post #market .market-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:8px}
 .atlas-ui.page-post #market .market-grid .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:0}
 .atlas-ui.page-post #market .stats>div{min-width:0}
 .atlas-ui.page-post #market .stats label{display:block;font-size:10px;white-space:nowrap}
 .atlas-ui.page-post #market .stats strong{font-size:clamp(16px,4.8vw,20px);line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
 .atlas-ui.page-post #market .stats strong small{font-size:10px}
 .atlas-ui.page-post #market .market-right{border-left:0;border-top:1px solid var(--line);padding:10px 0 0;margin:0}
 .atlas-ui.page-post #market .breadth-bar{margin:9px 0 6px}
 .atlas-ui.page-post #market .market-grid :is(.muted,.footnote){font-size:10px;line-height:1.6}
 .atlas-ui.page-post #market .market-right .footnote{margin:6px 0 0}
 .atlas-ui.page-post #market .sentiment{margin-top:12px;padding:10px;gap:6px}
}

/* Phone-only seat radar: omit repeated totals and keep stock amounts nearby. */
@media(max-width:650px){
 .atlas-ui.page-post #seats .seat-overview>p{display:none}
 .atlas-ui.page-post #seats .seat-overview{margin:8px 0 12px;gap:0;align-items:flex-start}
 .atlas-ui.page-post #seats .seat-overview>small{text-align:left}
 .atlas-ui.page-post #seats .seat-trade{justify-content:flex-start;align-items:flex-start;gap:8px;margin-bottom:8px;min-height:30px}
 .atlas-ui.page-post #seats .seat-trade .stock-link{flex:0 0 auto}
 .atlas-ui.page-post #seats .seat-trade>span{flex:0 0 auto;white-space:nowrap}
}

/* Phone-only listed stocks: narrow identity column and scroll the complete reasons. */
@media(max-width:650px){
 .atlas-ui.page-post #seats .seat-group[data-seat-group="stocks"]>.seat-group-body{min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin}
 .atlas-ui.page-post #seats .listed-stocks{width:100%;min-width:560px;table-layout:fixed;margin-top:8px}
 .atlas-ui.page-post #seats .listed-stocks th:first-child{width:104px}
 .atlas-ui.page-post #seats .listed-stocks :is(th,td){padding:8px 6px;vertical-align:top;line-height:1.6}
 .atlas-ui.page-post #seats .listed-stocks :is(th,td):first-child{padding-right:8px}
 .atlas-ui.page-post #seats .listed-stocks .stock-link{white-space:nowrap;font-size:11px}
 .atlas-ui.page-post #seats .listed-stocks .stock-link small{display:block;margin-left:0;font-size:10px;line-height:1.5}
 .atlas-ui.page-post #seats .listed-stocks td+td{white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.6}
}

/* Phone-only seat columns follow the widest stock/amount pair, without spare width. */
@media(max-width:650px){
 .atlas-ui.page-post #seats .seat-matrix{table-layout:auto;width:max-content;min-width:0!important}
 .atlas-ui.page-post #seats .seat-matrix :is(th,td){padding:8px 6px}
 .atlas-ui.page-post #seats .seat-matrix thead th:first-child{width:40px;min-width:40px}
 .atlas-ui.page-post #seats .seat-matrix thead th:not(:first-child){width:auto}
 .atlas-ui.page-post #seats .seat-matrix tbody>tr>th{white-space:nowrap}
 .atlas-ui.page-post #seats .seat-trade{width:max-content;max-width:none;gap:6px;flex-wrap:nowrap}
 .atlas-ui.page-post #seats .seat-trade :is(.stock-link,span){flex:0 0 auto;white-space:nowrap}
}

/* Phone-only strategy summary: six complete metrics in two rows. */
@media(max-width:650px){
 .atlas-ui.page-lab #detail-metrics.compact-backtest-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
 .atlas-ui.page-lab #detail-metrics.compact-backtest-metrics .metric-card{min-width:0;min-height:0;padding:8px 6px;border-radius:6px}
 .atlas-ui.page-lab #detail-metrics.compact-backtest-metrics .metric-label{font-size:10px;line-height:1.4;white-space:nowrap}
 .atlas-ui.page-lab #detail-metrics.compact-backtest-metrics .metric-value{display:block;font-size:clamp(16px,4.6vw,19px);line-height:1.3;letter-spacing:-.4px;margin:5px 0 3px;white-space:nowrap;font-variant-numeric:tabular-nums}
 .atlas-ui.page-lab #detail-metrics.compact-backtest-metrics .metric-card p{font-size:9px;line-height:1.35;margin-top:3px;overflow-wrap:anywhere}
}

/* Phone-only daily selection: size columns to content, without wide score padding. */
@media(max-width:650px){
 .atlas-ui.page-lab #strategy-latest .screen-table{width:max-content;min-width:0;table-layout:auto}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th,.atlas-ui.page-lab #strategy-latest .screen-table>tbody>tr>td{padding:6px;font-size:11px;line-height:1.35;white-space:nowrap}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:first-child,.atlas-ui.page-lab #strategy-latest .screen-table>tbody>tr>td:first-child{min-width:78px;width:auto}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(2),.atlas-ui.page-lab #strategy-latest .screen-table>tbody>tr>td:nth-child(2){min-width:0;width:auto;text-align:left!important}
 .atlas-ui.page-lab #strategy-latest .screen-score-main{gap:4px}
 .atlas-ui.page-lab #strategy-latest .screen-score-main strong{font-size:11px}
 .atlas-ui.page-lab #strategy-latest .screen-score-time{font-size:9px}
 .atlas-ui.page-lab #strategy-latest .screen-table td>small{font-size:9px;line-height:1.3;margin-top:2px}
 .atlas-ui.page-lab #strategy-latest .screen-table>tbody>tr>td:last-child{white-space:normal}
}


/* Daily monitoring: phones show all six facts without horizontal scrolling.
   Desktop keeps its original explanation column and score evidence. */
.atlas-ui.page-lab #tab-content :is(.monitor-mobile-detail,.monitor-mobile-notes){display:none}
.atlas-ui.page-lab #tab-content .monitor-record-table tbody>tr:nth-child(4n+3):not(:hover){background:#fafcff}
.atlas-ui.page-lab #tab-content .monitor-record-table tbody>tr:nth-last-child(2)>td{border-bottom:0}
@media(max-width:650px){
 .atlas-ui.page-lab #tab-content .monitor-record-scroll>.monitor-record-table{width:100%;min-width:0;max-width:100%;table-layout:fixed}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th,
 .atlas-ui.page-lab #tab-content .monitor-record-table>tbody>tr>td{padding:5px 2px;font-size:clamp(9px,2.6vw,11px);line-height:1.35;vertical-align:middle;min-width:0;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-variant-numeric:tabular-nums}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th{font-size:10px;font-weight:600}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(1){width:19%}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(2){width:16%}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(3){width:14%}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(4){width:14%}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(5){width:19%}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(6){width:18%}
 .atlas-ui.page-lab #tab-content .monitor-record-table>thead>tr>th:nth-child(7),
 .atlas-ui.page-lab #tab-content .monitor-record-table>tbody>tr>td:nth-child(7),
 .atlas-ui.page-lab #tab-content :is(.monitor-desktop-status,.monitor-selection-evidence,.monitor-scroll-hint){display:none}
 .atlas-ui.page-lab #tab-content .monitor-record-table>tbody>tr:not(.monitor-mobile-notes)>td:nth-child(2),
 .atlas-ui.page-lab #tab-content .monitor-record-table>tbody>tr:not(.monitor-mobile-notes)>td:nth-child(3),
 .atlas-ui.page-lab #tab-content .monitor-record-table>tbody>tr:not(.monitor-mobile-notes)>td:nth-child(4){white-space:nowrap;overflow-wrap:normal;letter-spacing:-.2px}
 .atlas-ui.page-lab #tab-content .monitor-record-table td>a{display:block;white-space:normal;line-height:1.4}
 .atlas-ui.page-lab #tab-content .monitor-record-table td>small{display:block;font-size:9px;line-height:1.3;margin:2px 0 0;white-space:normal;letter-spacing:-.3px}
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail{display:block;margin:0}
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail>summary{display:flex;align-items:center;gap:2px;min-height:32px;margin:0;padding:0;cursor:pointer;list-style:none;font-size:inherit}
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail>summary::-webkit-details-marker{display:none}
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail>summary:after{content:'▸';flex:none;font-size:9px;color:#668c83}
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail[open]>summary:after{transform:rotate(90deg)}
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail .monitor-status{font-size:inherit;padding:2px 3px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
 .atlas-ui.page-lab #tab-content tr:has(.monitor-mobile-detail[open])+.monitor-mobile-notes{display:table-row}
 .atlas-ui.page-lab #tab-content .monitor-record-table .monitor-mobile-notes>td{padding:7px 8px;background:#f3f8f6;white-space:normal;font-size:10px;text-align:left}
 .atlas-ui.page-lab #tab-content .monitor-mobile-notes p{margin:3px 0;line-height:1.5}
 .atlas-ui.page-lab #tab-content .monitor-mobile-notes small{font-size:9px;line-height:1.5}
 .atlas-ui.page-lab #tab-content .monitor-day{margin:7px 0}
 .atlas-ui.page-lab #tab-content .monitor-day>summary{padding:7px 8px;font-size:11px;line-height:1.45;min-height:38px}
 .atlas-ui.page-lab #tab-content .monitor-day>.form-note,
 .atlas-ui.page-lab #tab-content .execution-audit-note .form-note{margin:5px 8px;font-size:10px;line-height:1.45}
 .atlas-ui.page-lab #tab-content .monitor-legend{margin:5px 0;font-size:10px;line-height:1.45}
 .atlas-ui.page-lab #tab-content>h3{margin:10px 0 6px;font-size:13px}
}

/* Keep the normal holding monitor label on exactly two phone lines. */
@media(max-width:650px){
 .atlas-ui.page-lab #tab-content .monitor-mobile-detail .monitor-status-line{display:block;white-space:nowrap}
}


/* Compact phone tables share native disclosures with daily monitoring.
   The original desktop cells and their complete explanations stay available. */
.atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.phone-table-toggle,.phone-table-notes,.phone-table-extra){display:none}
.atlas-ui.page-lab #tab-content .trade-record-table>tbody>tr:nth-child(4n+3):not(:hover){background:#fafcff}
.atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table)>tbody>tr:nth-last-child(2)>td{border-bottom:0}
@media(max-width:650px){
 .atlas-ui.page-lab #live-holdings{padding:8px 5px}
 .atlas-ui.page-lab #live-holdings .holdings-heading{gap:6px;align-items:baseline}
 .atlas-ui.page-lab #live-holdings .holdings-heading>small{font-size:8px;text-align:right}
 .atlas-ui.page-lab #live-holdings .holdings-table,
 .atlas-ui.page-lab #strategy-latest .screen-table,
 .atlas-ui.page-lab #tab-content .trade-record-table{width:100%;min-width:0!important;max-width:100%;table-layout:fixed}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table)>thead>tr>th,
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table)>tbody>tr>td{padding:5px 2px;font-size:clamp(9px,2.6vw,11px);line-height:1.35;min-width:0!important;max-width:none;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;text-align:left!important;font-variant-numeric:tabular-nums;letter-spacing:-.2px}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table)>thead>tr>th{font-size:10px;font-weight:600}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-desktop{display:none}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) span.phone-table-extra{display:inline}
 .atlas-ui.page-lab #live-holdings :is(th,td).phone-table-extra{display:table-cell}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:nth-child(1){width:21%}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:nth-child(2){width:20%}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:nth-child(3){width:16%}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:nth-child(5){width:16%}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:nth-child(6){width:16%}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:nth-child(8){width:11%}
 .atlas-ui.page-lab #live-holdings .holdings-table>thead>tr>th:is(:nth-child(4),:nth-child(7)),
 .atlas-ui.page-lab #live-holdings .holdings-table>tbody>tr:not(.phone-table-notes)>td:is(:nth-child(4),:nth-child(7)){display:none}
 .atlas-ui.page-lab #live-holdings .holdings-table>tbody>tr:not(.phone-table-notes)>td:is(:nth-child(3),:nth-child(5),:nth-child(6)){white-space:nowrap}
 .atlas-ui.page-lab #live-holdings .holdings-table>tbody>tr:not(.phone-table-notes)>td:nth-child(2) small{font-size:8px;line-height:1.25}
 .atlas-ui.page-lab #live-holdings .phone-table-toggle>summary>span{display:none}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(1){width:20%;min-width:0}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(2){width:23%;min-width:0}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(3){width:16%}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(4){width:15%}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(5){width:12%}
 .atlas-ui.page-lab #strategy-latest .screen-table>thead>tr>th:nth-child(6){width:14%}
 .atlas-ui.page-lab #strategy-latest .screen-score-main{display:block;white-space:normal}
 .atlas-ui.page-lab #strategy-latest .screen-score-main strong{font-size:inherit}
 .atlas-ui.page-lab #strategy-latest .screen-score-time{display:block;font-size:8px;line-height:1.3;white-space:normal;letter-spacing:-.3px}
 .atlas-ui.page-lab #strategy-latest .screen-table>tbody>tr:not(.phone-table-notes)>td:nth-child(5)>small{display:none}
 .atlas-ui.page-lab #strategy-latest .screen-table>tbody>tr:not(.phone-table-notes)>td:nth-child(2)>small{font-size:8px;letter-spacing:-.5px}
 .atlas-ui.page-lab #strategy-latest .pagination{gap:5px;flex-wrap:wrap;font-size:9px}
 .atlas-ui.page-lab #strategy-latest .pagination button{padding:4px 6px;font-size:10px;min-height:30px}
 .atlas-ui.page-lab #tab-content .trade-record-table>thead>tr>th:nth-child(1){width:18%!important}
 .atlas-ui.page-lab #tab-content .trade-record-table>thead>tr>th:nth-child(2){width:22%!important}
 .atlas-ui.page-lab #tab-content .trade-record-table>thead>tr>th:nth-child(3){width:10%!important}
 .atlas-ui.page-lab #tab-content .trade-record-table>thead>tr>th:nth-child(4){width:18%!important}
 .atlas-ui.page-lab #tab-content .trade-record-table>thead>tr>th:nth-child(5){width:18%!important}
 .atlas-ui.page-lab #tab-content .trade-record-table>thead>tr>th:nth-child(6){width:14%!important}
 .atlas-ui.page-lab #tab-content .trade-record-table .trade-side{font-size:inherit;padding:2px;white-space:nowrap}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table) td>small{display:block;margin:2px 0 0;font-size:8px;line-height:1.3;white-space:normal}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-toggle{display:block;margin:0;line-height:1.35}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-toggle>summary{display:flex;align-items:center;gap:2px;min-height:32px;cursor:pointer;list-style:none;margin:0;padding:0;font-size:inherit;line-height:1.35}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-toggle>summary::-webkit-details-marker{display:none}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-toggle>summary:after{content:'▸';font-size:9px;flex:none;color:#668c83}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-toggle[open]>summary:after{transform:rotate(90deg)}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) tr:has(.phone-table-toggle[open])+.phone-table-notes{display:table-row}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table)>.phone-table-notes>td,
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) :is(.holdings-table,.screen-table,.trade-record-table)>tbody>.phone-table-notes>td{padding:8px;background:#f3f8f6;font-size:10px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 .atlas-ui.page-lab :is(#live-holdings,#strategy-latest,#tab-content) .phone-table-notes p{margin:4px 0;font-size:10px;line-height:1.5}
 .atlas-ui.page-lab #strategy-latest .phone-table-notes .condition-evidence-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto}
 .atlas-ui.page-lab #strategy-latest .phone-table-notes .condition-evidence{width:100%;min-width:0;table-layout:fixed}
 .atlas-ui.page-lab #strategy-latest .phone-table-notes .condition-evidence :is(th,td){padding:5px 3px;font-size:9px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:left!important}
 .atlas-ui.page-lab #strategy-latest .phone-table-notes .condition-evidence th:first-child{width:40%}
 .atlas-ui.page-lab #strategy-latest .phone-table-notes .condition-evidence th:not(:first-child){width:20%}
}

/* Keep the phone selection evidence count and triangle on one line. */
@media(max-width:650px){
 .atlas-ui.page-lab #strategy-latest .screen-table .phone-table-toggle>summary{flex-wrap:nowrap;white-space:nowrap;gap:1px}
 .atlas-ui.page-lab #strategy-latest .screen-table .phone-table-toggle>summary>span{display:inline-block;flex:0 0 auto;white-space:nowrap}
}

/* Rule body text follows the intraday condition list's inherited typography. */
.atlas-ui.page-lab #rules-content #strategy-description{font:inherit;color:inherit}
.atlas-ui.page-lab #rules-content #strategy-description :is(.saved-condition-grid,.saved-condition-grid dt,.saved-condition-grid dd,.strategy-condition-summary ul,.strategy-condition-summary li,.strategy-condition-summary p){font:inherit;color:inherit;letter-spacing:normal}

/* Keep the phone transaction explanation label and triangle on one line. */
@media(max-width:650px){
 .atlas-ui.page-lab #tab-content .trade-record-table .phone-table-toggle>summary{flex-wrap:nowrap;white-space:nowrap;gap:1px;padding-inline-end:10px!important}
 .atlas-ui.page-lab #tab-content .trade-record-table .phone-table-toggle>summary>span{display:inline-block;flex:0 0 auto;white-space:nowrap}
 .atlas-ui.page-lab #tab-content .trade-record-table .phone-table-toggle>summary:after{inset-inline-end:1px!important}
}

/* Four strategy detail tabs share the entire row equally at every width. */
.atlas-ui.page-lab .workspace-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;justify-content:stretch;overflow:visible}
.atlas-ui.page-lab .workspace-tabs>button{width:100%;min-width:0;max-width:none;margin:0;padding-left:2px;padding-right:2px;text-align:center;white-space:nowrap}
@media(max-width:650px){
 .atlas-ui.page-lab .workspace-tabs>button{font-size:clamp(10px,2.7vw,12px);padding:10px 2px}
}

/* Strategy navigation shares the report covers' existing mountain landscape. */
.atlas-ui.page-lab .strategy-shelf{background-color:#f3f2e9;background-image:linear-gradient(180deg,rgba(249,247,239,.95) 0%,rgba(249,247,239,.86) 32%,rgba(241,244,236,.74) 68%,rgba(235,240,233,.50) 100%),url('/assets/atlas-horizon-desktop-eb1cb0823651.webp?v=eb1cb0823651');background-position:center,65% center;background-size:cover;background-repeat:no-repeat;border-color:#d5dfd6;color:#294b40}
.atlas-ui.page-lab .strategy-shelf .ui-shelf-heading h2{color:#24483c!important}
.atlas-ui.page-lab .strategy-shelf .ui-shelf-heading>span{color:#627d6d}
.atlas-ui.page-lab .strategy-shelf .ui-shelf-heading p{color:#536f60}
.atlas-ui.page-lab .strategy-shelf .shelf-section-title>button{color:#365b4b}
.atlas-ui.page-lab .strategy-shelf :is(.official-label,.mine-title>span){background:rgba(255,255,255,.65);color:#4d6b5b;border:1px solid #78958230}
.atlas-ui.page-lab .strategy-shelf .mine-title{border-color:#6e897440}
.atlas-ui.page-lab .strategy-shelf .shelf-strategy{background:rgba(255,255,255,.66);border-color:#9aafa14d;color:#294e40}
.atlas-ui.page-lab .strategy-shelf .shelf-strategy small{color:#597363}
.atlas-ui.page-lab .strategy-shelf .shelf-strategy:hover{background:rgba(255,255,255,.90);border-color:#8ba394}
.atlas-ui.page-lab .strategy-shelf .shelf-strategy.active{background:#deebe3;border-color:#7ca18c;color:#244c3f;box-shadow:inset 0 0 0 1px #9ab6a266}
.atlas-ui.page-lab .strategy-shelf .shelf-strategy.active small{color:#506e5c}
.atlas-ui.page-lab .strategy-shelf .strategy-emblem{background:#315b51;border-color:#547b68}
.atlas-ui.page-lab .strategy-shelf .shelf-arrow{color:#668772}
.atlas-ui.page-lab .strategy-shelf .shelf-strategy.active .shelf-arrow{color:#4b735b}
.atlas-ui.page-lab .strategy-shelf .shelf-empty{color:#41614f}
.atlas-ui.page-lab .strategy-shelf .shelf-empty small{color:#5a7663}
.atlas-ui.page-lab .strategy-shelf .shelf-create{background:rgba(249,252,247,.92);border-color:#a8bfb0;color:#365b4b;box-shadow:0 2px 8px #365b4b0d}
.atlas-ui.page-lab .strategy-shelf .shelf-create:hover{background:#e3eee5;border-color:#8fad98}
.atlas-ui.page-lab .strategy-shelf .shelf-signature{color:#526e5b}
@media(max-width:650px){
 .atlas-ui.page-lab .strategy-shelf{background-image:linear-gradient(180deg,rgba(249,247,239,.95) 0%,rgba(249,247,239,.86) 32%,rgba(241,244,236,.74) 68%,rgba(235,240,233,.50) 100%),url('/assets/atlas-horizon-mobile-c3aaf64716c3.webp?v=c3aaf64716c3');background-position:center,65% center}
}

/* Postmarket phone disclosures use the document instead of nested viewports. */
@media(max-width:650px){
 .atlas-ui.page-post :is(#market,#ladder,#seats,#summary){min-width:0;max-width:100%}
 .atlas-ui.page-post :is(#market,#ladder,#seats,#summary) :is(.seat-list,.seat-group-list,.rotation-items){height:auto!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto}
 .atlas-ui.page-post #seats .seat-group-body{min-width:0;padding-inline:5px}
 .atlas-ui.page-post #seats .seat-profile-body{min-width:0;padding-inline:0}
 .atlas-ui.page-post #seats .seat-group:not([data-seat-group="stocks"]) .seat-matrix-scroll{width:100%;max-width:100%;height:auto;max-height:none;overflow:visible;border-radius:6px}
 .atlas-ui.page-post #seats .seat-group:not([data-seat-group="stocks"]) .seat-matrix{display:block;width:100%;min-width:0!important;max-width:100%;table-layout:auto}
 .atlas-ui.page-post #seats .seat-matrix-desktop-hint{display:none}
 .atlas-ui.page-post #seats .seat-matrix-mobile-hint{display:inline!important;font-size:9px}
 .atlas-ui.page-post #seats .seat-matrix>thead{display:none}
 .atlas-ui.page-post #seats .seat-matrix>tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
 .atlas-ui.page-post #seats .seat-matrix>tbody>tr{display:contents}
 .atlas-ui.page-post #seats .seat-matrix>tbody>tr>th{display:none}
 .atlas-ui.page-post #seats .seat-matrix>tbody>tr>td{display:block;min-width:0;width:auto;grid-row:var(--seat-day-row);padding:7px 4px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
 .atlas-ui.page-post #seats .seat-matrix>tbody>tr:first-child>td{grid-column:1;border-right:1px solid var(--line)}
 .atlas-ui.page-post #seats .seat-matrix>tbody>tr:nth-child(2)>td{grid-column:2;border-right:0}
 .atlas-ui.page-post #seats .seat-matrix>tbody>tr>td:before{content:attr(data-seat-date) ' · ' attr(data-seat-side);display:block;font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap;margin-bottom:7px;color:var(--muted)}
 .atlas-ui.page-post #seats .seat-trade{display:flex;align-items:flex-start;justify-content:space-between;width:100%;max-width:100%;min-height:0;gap:4px;margin-bottom:7px}
 .atlas-ui.page-post #seats .seat-trade .stock-link{flex:1 1 auto;min-width:0;width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:clamp(9px,2.7vw,11px);line-height:1.45}
 .atlas-ui.page-post #seats .seat-trade .stock-link small{font-size:9px;line-height:1.35}
 .atlas-ui.page-post #seats .seat-trade>span{flex:0 0 auto;white-space:nowrap;font-size:clamp(9px,2.6vw,10px);line-height:1.5}
 .atlas-ui.page-post #ladder .stock-list{width:100%;min-width:0!important;table-layout:fixed}
 .atlas-ui.page-post #ladder .stock-list :is(th,td){min-width:0;padding:7px 4px;font-size:11px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
 .atlas-ui.page-post #ladder .stock-list :is(th,td):first-child{width:32%}
 .atlas-ui.page-post #ladder .stock-list :is(th,td):nth-child(2){width:18%}
 .atlas-ui.page-post #ladder .stock-list :is(th,td):nth-child(3){width:20%}
 .atlas-ui.page-post #ladder .stock-list .stock-link{white-space:normal;font-size:inherit}
 .atlas-ui.page-post #ladder .stock-list .stock-link small{display:block;font-size:9px;line-height:1.4}
 .atlas-ui.page-post #summary .rotation-items{max-width:100%}
}

/* Phone strategy catalog: one selector, vertical cards, stable disclosure. */
.atlas-ui.page-lab .mobile-catalog-toggle{display:none}
@media(max-width:650px){
 .atlas-ui.page-lab .strategy-shelf{padding:10px;gap:6px}
 .atlas-ui.page-lab .strategy-shelf>.mobile-catalog-toggle{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:56px;padding:8px 10px;border:1px solid #b9cdc2;border-radius:9px;background:rgba(255,255,255,.84);color:#244c3f;text-align:left;cursor:pointer}
 .atlas-ui.page-lab .mobile-catalog-heading{display:grid;gap:3px;min-width:0}
 .atlas-ui.page-lab .mobile-catalog-heading small{font-size:10px;line-height:1.3;color:#658275;font-weight:400}
 .atlas-ui.page-lab .mobile-catalog-heading strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
 .atlas-ui.page-lab .mobile-catalog-action{display:flex;align-items:center;gap:8px;flex:0 0 auto;font-size:11px;color:#4b735b}
 .atlas-ui.page-lab .mobile-catalog-toggle:focus-visible{outline:2px solid #4c9276;outline-offset:3px}
 .atlas-ui.page-lab .strategy-shelf[data-mobile-expanded="false"]>:not(.mobile-catalog-toggle){display:none!important}
 .atlas-ui.page-lab .strategy-shelf>:is(.ui-shelf-heading,.shelf-signature){display:none}
 .atlas-ui.page-lab .strategy-shelf :is(#official-list,#strategy-list){display:grid;grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-columns:auto;gap:5px;width:100%;height:auto;max-height:none;overflow:visible;padding:0;scroll-snap-type:none}
 .atlas-ui.page-lab .strategy-shelf :is(#official-list,#strategy-list)[hidden]{display:none!important}
 .atlas-ui.page-lab .strategy-shelf .shelf-strategy{width:100%;min-width:0;min-height:52px;padding:7px 9px;scroll-snap-align:none}
 .atlas-ui.page-lab .strategy-shelf .shelf-strategy strong{font-size:13px;line-height:1.4;white-space:normal}
 .atlas-ui.page-lab .strategy-shelf .shelf-strategy small{font-size:10px;line-height:1.35}
 .atlas-ui.page-lab .strategy-shelf .shelf-section-title{padding:5px 3px 2px}
 .atlas-ui.page-lab .strategy-shelf .shelf-create{grid-column:1/-1;min-height:40px;margin-top:4px}
}

/* Crisp full-color candlesticks and rising arrows at every strategy entry. */
.atlas-ui.page-lab .strategy-emblem.strategy-emblem--candles{padding:0;width:32px;height:36px;min-width:32px;background:none!important;border:0!important;box-shadow:none!important;overflow:visible;color:inherit}
.atlas-ui.page-lab .strategy-emblem--candles img{display:block;width:32px;height:32px;max-width:none;border-radius:8px;object-fit:contain;filter:drop-shadow(0 2px 2px #183b2d1a);user-select:none;pointer-events:none}
.atlas-ui.page-lab .strategy-symbol{display:inline-flex;align-items:center;font-size:0;line-height:1}
.atlas-ui.page-lab .mobile-catalog-icon{display:none}
@media(max-width:650px){
 .atlas-ui.page-lab .mobile-catalog-icon{display:inline-flex;align-items:center;flex:0 0 32px}
 .atlas-ui.page-lab .mobile-catalog-heading{flex:1}
 .atlas-ui.page-lab .strategy-shelf>.mobile-catalog-toggle{gap:9px}
}
