/* Shared interface rules. Page-specific components retain their own layout. */
:root {
    --ui-ink: #223348;
    --ui-muted: #526174;
    --ui-line: #dbe3eb;
    --ui-page: #f4f7fa;
    --ui-surface: #fff;
    --ui-link: #1762c4;
    --ui-selected: #eaf2fd;
    --ui-hover: #f0f5fa;
    --ui-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html.theme-dark {
    --ui-ink: #e8eef5;
    --ui-muted: #b8c6d6;
    --ui-line: #415166;
    --ui-page: #1c2430;
    --ui-surface: #252e3b;
    --ui-link: #9bc8ff;
    --ui-selected: #293e59;
    --ui-hover: #2d3949;
}
.ui-shell, .ui-shell button, .ui-shell input, .ui-shell select, .ui-shell textarea { font-family: var(--ui-font); }
.ui-shell { color: var(--ui-ink); font-size: 15px; line-height: 1.5; }
.ui-shell .content-wrapper { background: var(--ui-page); }
.ui-shell .main-wrapper { max-width: 1264px; padding: 24px 32px; }
.ui-shell .main-wrapper > .container-fluid, .ui-shell .main-wrapper > .container { max-width: 1200px; padding-left: 0; padding-right: 0; }
.ui-shell .main-wrapper h1 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.025em; margin-bottom: 12px; font-weight: 650; }
.ui-shell h2 { letter-spacing: -.012em; }
.ui-shell .h4 { font-size: 21px; }
.ui-shell .h5 { font-size: 18px; }
.ui-shell .main-wrapper > h1 + p, .ui-shell .research-tools > h1 + p { max-width: 76ch; margin-bottom: 24px; color: var(--ui-muted); }
.ui-shell .text-muted { color: var(--ui-muted) !important; }
.ui-shell .main-header { min-height: 64px; padding: 8px 20px; border-bottom: 1px solid var(--ui-line); box-shadow: none; }
.ui-shell .main-header .btn { font-size: 14px; }
.ui-shell .main-header [aria-current="page"] { background: var(--ui-selected); box-shadow: none; }
.ui-shell .main-sidebar { border-color: var(--ui-line); background: var(--ui-surface); }
.ui-shell .main-sidebar .nav-link, .ui-shell .main-sidebar .brand-link,
.ui-shell .btn-nav-action, .ui-shell #themeToggle { color: var(--ui-ink); }
.ui-shell .btn-nav-action i, .ui-shell #themeToggle i { color: inherit; }
.ui-shell .brand-link { min-height: 64px; padding: 16px; border-bottom: 1px solid var(--ui-line); display: flex; align-items: center; gap: 10px; }
.ui-shell .brand-link .brand-image { float: none; margin: 0; width: 30px; height: 30px; }
.ui-shell .brand-link .brand-text { font-size: 19px; font-weight: 600 !important; letter-spacing: -.02em; }
.ui-shell .sidebar { padding: 8px 12px 24px; }
.ui-shell .nav-sidebar .nav-header { padding: 20px 12px 8px; font-size: 12px; font-weight: 600; }
.ui-shell .nav-sidebar .nav-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; margin-bottom: 2px; border-radius: 6px; font-size: 14px; box-shadow: none; }
.ui-shell .nav-sidebar .nav-link > .nav-icon { width: 18px; margin: 0; font-size: 16px; flex-shrink: 0; }
.ui-shell .nav-sidebar .nav-link p { white-space: normal; }
.ui-shell .account-menu-link.active { background: var(--ui-selected); color: var(--ui-link); font-weight: 600; }
.ui-shell .main-sidebar .nav-sidebar .nav-link.active,
.ui-shell .main-sidebar .navigation-group .nav-link.active { color: var(--ui-link); background: var(--ui-selected); box-shadow: inset 3px 0 var(--ui-link); font-weight: 600; }
.ui-shell .main-sidebar .nav-link:hover { background: var(--ui-hover); }
.ui-shell .navigation-group { margin: 0; }
.ui-shell .navigation-group > summary { display: flex; align-items: center; min-height: 44px; gap: 8px; padding: 8px 12px; font-size: 13px; list-style: none; }
.ui-shell .navigation-group > summary::-webkit-details-marker { display: none; }
.ui-shell .navigation-group > summary::before { content: ''; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg); }
.ui-shell .navigation-group[open] > summary::before { transform: rotate(45deg); }
.ui-shell .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.ui-shell .btn-sm, .ui-shell .btn-xs { font-size: 13px; }
.ui-shell .btn-lg { padding: 10px 18px; font-size: 16px; }
.ui-shell .btn-outline-secondary { color: var(--ui-ink); border-color: #9aaabd; }
.ui-shell .btn-outline-secondary:hover, .ui-shell .btn-outline-secondary:focus-visible { background: var(--ui-hover); border-color: var(--ui-muted); color: var(--ui-ink); }
.ui-shell .btn-link { text-decoration: none; }
.ui-shell .btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ui-shell .btn:disabled, .ui-shell .btn.disabled { opacity: .55; }
.ui-shell .form-control { border-color: #a9b6c6; border-radius: 6px; background: var(--ui-surface); color: var(--ui-ink); font-size: 14px; }
.ui-shell .form-control:focus { border-color: var(--ui-link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-link) 14%, transparent); }
.ui-shell label { color: var(--ui-ink); font-size: 13px; font-weight: 600; }
.ui-shell .form-group { margin-bottom: 20px; }
.ui-shell .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ui-shell .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ui-shell .nav-tabs { border-bottom: 1px solid var(--ui-line); gap: 4px; }
.ui-shell .nav-tabs .nav-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; color: var(--ui-muted); font-size: 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.ui-shell .nav-tabs .nav-link.active { color: var(--ui-link); background: transparent; border-bottom-color: var(--ui-link); font-weight: 600; }
.ui-shell .nav-tabs .nav-link:hover { color: var(--ui-link); background: var(--ui-hover); }
.ui-shell .stock-tabs-nav { margin-bottom: 28px !important; }
.ui-shell .table { color: var(--ui-ink); background: var(--ui-surface); font-size: 14px; margin-bottom: 0; }
.ui-shell .table th, .ui-shell .table td { padding: 12px 14px; border-color: var(--ui-line); vertical-align: middle; }
/* Legacy tables may put column headers in tbody; data rows with row headers are not column headers. */
.ui-shell .table thead th, .ui-shell .table:not(:has(> thead)) > tbody > tr:first-child:has(> th):not(:has(> td, > th[scope="row"])) > th { background: var(--ui-hover); font-size: 12px; color: var(--ui-muted); border-bottom-width: 1px; font-weight: 600; }
.ui-shell .table-striped tbody tr:nth-of-type(odd) { background: color-mix(in srgb, var(--ui-hover) 40%, transparent); }
.ui-shell .table-hover tbody tr:hover { background: var(--ui-hover); color: var(--ui-ink); }
.ui-shell .table-responsive { border: 1px solid var(--ui-line); border-radius: 8px; margin-bottom: 20px; background: var(--ui-surface); }
.ui-shell .table-responsive > .table { border: 0; }
.ui-shell .dividend-history-table-wrap > details > .table-responsive { border: 0; border-radius: 0; margin-bottom: 0; }
.ui-shell .table .td-second { margin-top: 4px; color: var(--ui-muted); font-size: 12px; }
.ui-shell .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; color: var(--ui-link); border-color: var(--ui-line); background: var(--ui-surface); }
.ui-shell .page-item.active .page-link { background: var(--ui-link); border-color: var(--ui-link); color: var(--ui-surface); }
.ui-shell .pagination { margin: 20px 0; flex-wrap: wrap; }
.ui-shell .card, .ui-shell .list-group-item { background: var(--ui-surface); border-color: var(--ui-line); color: var(--ui-ink); }
.ui-shell .card-header, .ui-shell .card-footer { border-color: var(--ui-line); background: transparent; }
.ui-shell .alert { border-radius: 8px; padding: 14px 16px; font-size: 14px; }
.ui-shell .empty-state, .ui-shell .compact-empty-state, .ui-shell .comparison-empty { padding: 24px; background: var(--ui-surface); border: 1px dashed var(--ui-line); border-radius: 8px; color: var(--ui-muted); }
.ui-shell .empty-state p:last-child, .ui-shell .compact-empty-state p:last-child { margin-bottom: 0; }
.ui-shell .account-page, .ui-shell .site-login { padding: 28px; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-surface); }
.ui-shell .account-page h1, .ui-shell .site-login h1 { font-size: 26px; }
.ui-shell .account-page > p, .ui-shell .site-login > p { font-size: 14px; color: var(--ui-muted); }
.ui-shell .account-page form { padding-top: 20px; border-top: 1px solid var(--ui-line); }
.ui-shell .account-page .custom-control { padding-top: 12px; padding-bottom: 12px; }
.ui-shell .account-page details > summary { min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--ui-muted); font-size: 13px; }
.ui-shell .reading-page, .ui-shell .learn-page, .ui-shell .research-report { font-size: 15px; line-height: 1.7; }
.ui-shell .learn-page > p, .ui-shell .reading-page > p { max-width: 76ch; }
.ui-shell .reading-page h2, .ui-shell .learn-page h2 { font-size: 22px; margin-top: 28px; margin-bottom: 12px; }
.ui-shell .archive-list-item, .ui-shell .announcement-item, .ui-shell .news-item { padding: 20px 0; border-color: var(--ui-line); }
.ui-shell .archive-list-item h2 { max-width: 75ch; font-size: 17px; }
.ui-shell .archive-meta, .ui-shell .content-item-meta { margin-bottom: 6px; font-size: 12px; }
.ui-shell .note-card { margin-bottom: 20px; }
.ui-shell .note-card .card-header, .ui-shell .note-card .card-body, .ui-shell .note-card .card-footer { padding: 16px 20px !important; }
.ui-shell .note-card .card-footer { background: var(--ui-hover); font-size: 12px; }
.ui-shell .note-card .card-title { font-size: 16px; }
.ui-shell .site-footer { margin-top: 40px; font-size: 12px; gap: 8px 24px; }
.ui-shell .site-footer .footer-theme { margin-left: auto; font-size: 12px; }
.ui-shell .site-breadcrumbs:has(.breadcrumb:empty) { display: none; }

/* Date switches share naming, spacing and selected state across discovery/calendar. */
.ui-date-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.security-search > .form-control { min-width: 0; }

/* Shared page headings and light-weight action disclosures. */
.ui-page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ui-page-heading > div:first-child { flex: 1; min-width: 240px; }
.ui-page-heading h1, .ui-page-heading h2 { margin: 0 0 8px; }
.ui-page-heading p { margin: 0; max-width: 76ch; color: var(--ui-muted); font-size: 14px; }
.ui-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ui-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; background: var(--ui-hover); color: var(--ui-muted); border-radius: 5px; font-size: 12px; font-weight: 500; vertical-align: middle; }
.ui-action-menu { position: relative; width: 44px; justify-self: end; }
.ui-action-menu > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 6px; color: var(--ui-muted); cursor: pointer; list-style: none; }
.ui-action-menu > summary::-webkit-details-marker { display: none; }
.ui-action-menu > summary:hover, .ui-action-menu[open] > summary { background: var(--ui-hover); color: var(--ui-ink); }
.ui-action-menu__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 1040; width: 208px; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface); box-shadow: 0 8px 24px rgba(15, 23, 42, .14); }
.ui-shell .ui-action-menu__panel > a, .ui-shell .ui-action-menu__panel > .btn { display: flex; justify-content: flex-start; gap: 10px; width: 100%; padding: 10px; min-height: 44px; font-size: 13px; border: 0; background: transparent; border-radius: 4px; text-decoration: none; }
.ui-shell .ui-action-menu__panel > a:hover, .ui-shell .ui-action-menu__panel > .btn:hover { background: var(--ui-hover); }
.ui-shell .ui-action-menu__panel > .btn { color: #b43e46; }
.theme-dark .ui-shell .ui-action-menu__panel > .btn { color: #ff9ba4; }

/* Page-family refinements, kept here so new pages inherit the same vocabulary. */
.ui-shell .transaction-page > form { padding: 20px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 8px; }
.ui-shell .calendar-filter-details > summary { min-height: 44px; cursor: pointer; font-size: 14px; }
.ui-shell .calendar-results-heading h2, .ui-shell .research-result-toolbar h2 { font-size: 20px; }
.ui-shell .market-snapshot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 16px 20px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface); }
.ui-shell .market-snapshot > p { flex-basis: 100%; margin: 0 !important; }
.ui-shell .portfolio-summary { padding: 4px 0; margin-bottom: 20px; }
.ui-shell .portfolio-summary .card { background: transparent; }
.ui-shell .portfolio-summary .card-body { padding: 16px; }
.ui-shell .portfolio-summary strong { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ui-shell .portfolio-summary h2 { font-size: 13px; color: var(--ui-muted); }
.ui-shell .portfolio-holdings .portfolio-price-cell, .ui-shell .portfolio-holdings .portfolio-shares-cell { text-align: right; }
.ui-shell .portfolio-holdings .portfolio-shares-cell input { text-align: right; }
.ui-shell .company-content-tabs { margin-top: 8px; }
.ui-shell .company-quote-line { font-variant-numeric: tabular-nums; }
.ui-shell .dividend-summary h2 { font-size: 16px; }
.ui-shell .company-profile--empty { background: none; }
.ui-shell .membership-panel { box-shadow: none; background: var(--ui-surface); border-color: var(--ui-line); padding: 24px; }
.ui-shell .membership-hero { background: var(--ui-hover); border-color: var(--ui-line); }
.ui-shell .membership-price { color: var(--ui-ink); }
.ui-shell .digest-eyebrow { display: none; }
.ui-shell .digest-empty { min-height: 170px; padding: 24px; }
.ui-shell .digest-empty-icon { width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.ui-shell .digest-header { margin-top: 0; }
.ui-shell .digest-status { background: none; border: 0; padding: 0 0 16px; border-bottom: 1px solid var(--ui-line); border-radius: 0; }
.ui-shell .digest-status--warning { background: #fff8e8; border: 1px solid #e6cc91; border-radius: 6px; padding: 12px 16px; }
.announcement-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-shell .ranking-table td:nth-child(n+2), .ui-shell .buyback-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui-shell .ranking-table th:first-child { width: 60%; }
.ui-shell .buyback-table th:first-child { width: 56px; }
.ui-shell .screener-results-table thead th:nth-child(4), .ui-shell .screener-results-table thead th:nth-child(5) { text-align: right; }
.ui-shell #momentum-table th:last-child, .ui-shell #momentum-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ui-shell[data-page="momentum/price"] .table th:not(:first-child), .ui-shell[data-page="momentum/price"] .table td:not(:first-child) { text-align: right; }
.theme-dark .ui-shell .digest-status--warning { background: #3a3020; border-color: #79623a; }

/* Rankings and grouped navigation share the data-first visual language. */
.ui-shell .ranking-heading { align-items: flex-start; margin-bottom: 16px; }
.ui-shell .ranking-heading h1 { margin-bottom: 8px; }
.ui-shell .ranking-heading p { margin: 0; max-width: 68ch; color: var(--ui-muted); font-size: 14px; }
.ui-shell .ranking-method { margin-top: 4px; color: var(--ui-muted); font-size: 13px; }
.ui-shell .ranking-method summary { min-height: 40px; padding: 8px 0; cursor: pointer; color: var(--ui-link); }
.ui-shell .ranking-method p { margin: 0 0 8px; }
.ui-shell .ranking-context { margin: 12px 0; }
.ui-shell .ranking-table .td-first { font-size: 14px; }
.ui-shell .ranking-table td:nth-child(3) .td-first { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ui-ink); }
.ui-shell .navigation-group { border-top: 1px solid var(--ui-line); }
.ui-shell .navigation-group > summary { color: var(--ui-muted); cursor: pointer; }
.ui-shell .navigation-group .nav-link { color: var(--ui-ink); }
.ui-shell .navigation-group > summary:focus-visible { outline: 2px solid var(--ui-link); outline-offset: -2px; }
.ui-shell .momentum-heading, .ui-shell .movers-heading { margin-bottom: 16px; }
.ui-shell .momentum-heading h1, .ui-shell .movers-heading h1 { margin-bottom: 8px; }
.ui-shell .momentum-heading p, .ui-shell .movers-heading p { margin: 0; color: var(--ui-muted); }
.ui-shell .market-snapshot--compact { gap: 4px 16px; padding: 8px 12px; }
.ui-shell .market-snapshot--compact > p { flex-basis: auto; margin-top: 0 !important; }
.ui-shell .market-snapshot-details { flex-basis: 100%; font-size: 13px; }
.ui-shell .market-snapshot-details summary { display: inline-flex; min-height: 36px; align-items: center; cursor: pointer; color: var(--ui-link); }
.ui-shell .momentum-note { margin-top: 12px; }
.ui-shell .table-header-help { display: inline-block; margin-left: 4px; font-size: 12px; font-weight: 400; }
.ui-shell .table-header-help summary { display: inline-flex; min-height: 18px; min-width: 18px; align-items: center; justify-content: center; padding: 0; color: var(--ui-link); cursor: pointer; }
.ui-shell .table-header-help summary::before { content: '?'; }
.ui-shell .table-header-help[open]::after { display: block; max-width: 220px; padding-top: 4px; color: var(--ui-muted); content: attr(data-help); font-size: 12px; font-weight: 400; line-height: 1.35; }
.ui-shell .momentum-stock-name { display: inline-block; font-weight: 600; }
.ui-shell .momentum-stock-full { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--ui-muted); }
.ui-shell .momentum-stock-full summary { display: inline; cursor: pointer; color: var(--ui-link); }
.ui-shell .momentum-stock-full span { margin-left: 4px; }
.ui-shell .movers-change.text-success { color: #237a4b !important; font-weight: 600; }
.ui-shell .movers-change.text-danger { color: #b23a48 !important; font-weight: 600; }
.theme-dark .ui-shell .movers-change.text-success { color: #75c99b !important; }
.theme-dark .ui-shell .movers-change.text-danger { color: #ff9ca7 !important; }
.ui-shell .admin-page, .ui-shell .site-legacy-entry { max-width: 960px; }
.ui-shell .admin-section { margin-top: 24px; }
.ui-shell .admin-stats { max-width: 760px; }
.ui-shell .admin-stats td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ui-shell .admin-migrate-form { max-width: 760px; padding: 20px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface); }
.ui-shell .admin-migrate-form .form-actions { margin-top: 20px; }
.ui-shell .site-entry-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.ui-shell .site-entry-links article { padding: 20px; border-top: 2px solid var(--ui-link); background: var(--ui-surface); border: 1px solid var(--ui-line); }
.ui-shell .site-entry-links article p { color: var(--ui-muted); min-height: 48px; }
.ui-shell .company-summary-page, .ui-shell .symbol-page { max-width: 1000px; }
.ui-shell .momentum-price-page #momentum-chart { outline: 0; border: 1px solid var(--ui-line); border-radius: 6px; background: var(--ui-surface); }
.ui-shell .momentum-price-page .btn-group { display: inline-flex; flex-wrap: wrap; }
.ui-shell .momentum-price-page [data-chart-days][aria-pressed="true"],
.ui-shell .momentum-price-page [data-chart-days][aria-pressed="true"]:hover,
.ui-shell .momentum-price-page [data-chart-days][aria-pressed="true"]:focus,
.ui-shell .momentum-price-page [data-chart-days][aria-pressed="true"]:focus-visible { color: var(--ui-surface) !important; background: var(--ui-link) !important; border-color: var(--ui-link) !important; font-weight: 600; transition: none; }
.ui-shell .momentum-price-page [data-chart-days][aria-pressed="true"] { transition: none; }
@media (max-width: 991.98px) {
    .ui-shell .main-wrapper { padding: 20px 16px; }
    .ui-shell .main-header { padding: 8px; }
}
@media (max-width: 575.98px) {
    .ui-shell .main-wrapper { padding: 16px; }
    .ui-shell .main-header .btn { padding-left: 8px; padding-right: 8px; }
    .ui-shell .main-wrapper h1 { font-size: 25px; }
    .ui-shell .table th, .ui-shell .table td { padding: 10px 8px; font-size: 13px; }
    .ui-shell .portfolio-holdings td { padding: .2rem; border: 0; }
    .ui-shell .portfolio-holdings .portfolio-price-cell, .ui-shell .portfolio-holdings .portfolio-shares-cell { text-align: left; }
    .ui-shell .portfolio-holdings .portfolio-move-cell { padding: 0; }
    .ui-shell .nav-tabs .nav-link { padding: 10px 8px; font-size: 13px; }
    .ui-shell .stock-tabs-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; margin-bottom: 20px !important; border: 0; border-radius: 7px; background: var(--ui-hover); white-space: nowrap; overflow: visible; }
    .ui-shell .stock-tabs-nav > .nav-item { min-width: 0; }
    .ui-shell .stock-tabs-nav > .nav-item > .nav-link { justify-content: center; height: 44px; min-height: 44px; padding: 8px 2px; border: 0; border-radius: 5px; font-size: 12px; white-space: nowrap !important; }
    .ui-shell .stock-tabs-nav > .nav-item > .nav-link.active { background: var(--ui-surface); color: var(--ui-link); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
    .ui-shell .stock-tabs-nav .fa, .ui-shell .stock-tabs-nav .stock-tab-label { display: none; }
    .ui-shell .stock-tabs-nav .stock-tab-label-mobile { display: inline; }
    .ui-shell .account-page, .ui-shell .site-login { padding: 20px; margin: 8px auto 24px; }
    .ui-shell .transaction-page > form { padding: 16px; }
    .ui-page-heading { gap: 12px; margin-bottom: 20px; }
    .ui-page-heading > div:first-child { min-width: 0; flex-basis: 100%; }
    .ui-page-actions { width: 100%; }
    .ui-shell .site-footer { gap: 4px 16px; margin-top: 32px; }
    .ui-shell .site-footer .footer-theme { margin-left: 0; }
    .ui-shell .site-entry-links { grid-template-columns: 1fr; gap: 12px; }
    .ui-shell .site-entry-links article p { min-height: 0; }
    .ui-shell .momentum-price-page #momentum-chart { height: 320px !important; }
}

/* Source-review worksheet: readable evidence IDs and restrained explanation width. */
.ui-shell .stability-admin > p { max-width: 76ch; }
.ui-shell .stability-admin code { color: var(--ui-ink); overflow-wrap: anywhere; }
