
* { box-sizing: border-box; }
html, body { min-height: 100%; }

html {
    background: var(--app-bg-outer);
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    color: var(--text);
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--text-md);
    line-height: var(--leading-md);
    background: var(--app-bg-outer);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: var(--vantiq-page-bg);
}

/* The application shell has one background owner. Product modules, including
   the portfolio workspace, stay transparent and may only style their own
   section surfaces. */
.main-shell,
.main-shell--full,
.portfolio-shell,
.portfolio-shell--detail,
.portfolio-shell--index {
    background-color: transparent;
    background-image: none;
}

/* Shared premium hover motion for ticker cards and reusable future tables.
   Apply .vantiq-hover-lift to cards/rows, or .vantiq-interactive-table to tables. */
.vantiq-hover-lift,
.vantiq-interactive-row,
.vantiq-interactive-table tbody tr {
    position: relative;
    transform: translateY(0) scale(1);
    transition: var(--vantiq-hover-lift-transition);
    will-change: transform;
}

.vantiq-hover-lift:hover,
.vantiq-hover-lift:focus-within,
.vantiq-interactive-row:hover,
.vantiq-interactive-row:focus-within,
.vantiq-interactive-table tbody tr:hover,
.vantiq-interactive-table tbody tr:focus-within {
    z-index: 2;
    transform: var(--vantiq-hover-lift-transform);
    box-shadow: var(--vantiq-hover-lift-shadow);
}

.vantiq-interactive-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.vantiq-interactive-table tbody tr {
    background: var(--vantiq-surface-row);
}

.vantiq-interactive-table tbody tr:hover,
.vantiq-interactive-table tbody tr:focus-within {
    background: var(--vantiq-surface-row-hover);
}

/* Hover artifact guards: preserve lift motion while keeping rounded surfaces clean. */
.vantiq-hover-lift,
.vantiq-interactive-row,
.vantiq-card-surface,
.vantiq-card-surface--interactive,
.compact-row,
.featured-news-card,
.news-feed-item,
.news-card,
.signal-card__news-item,
.search-security-card,
.search-issuer-card,
.security-detail-page .security-news-signal,
.security-detail-page .security-fundamentals-lane,
.security-detail-page .fundamental-tile,
.fundamental-tile {
    isolation: isolate;
    overflow: hidden;
    background-clip: padding-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.vantiq-interactive-table tbody td {
    border-top: 1px solid var(--vantiq-border-hairline);
    border-bottom: 1px solid var(--vantiq-border-hairline);
}

.vantiq-interactive-table tbody td:first-child {
    border-left: 1px solid var(--vantiq-border-hairline);
    border-radius: 18px 0 0 18px;
}

.vantiq-interactive-table tbody td:last-child {
    border-right: 1px solid var(--vantiq-border-hairline);
    border-radius: 0 18px 18px 0;
}

@media (prefers-reduced-motion: reduce) {
    .vantiq-hover-lift,
    .vantiq-interactive-row,
    .vantiq-interactive-table tbody tr {
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }

    .vantiq-hover-lift:hover,
    .vantiq-hover-lift:focus-within,
    .vantiq-interactive-row:hover,
    .vantiq-interactive-row:focus-within,
    .vantiq-interactive-table tbody tr:hover,
    .vantiq-interactive-table tbody tr:focus-within {
        transform: none;
    }
}

a { color: inherit; text-decoration: none; }
button {
    appearance: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}

button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 180ms ease, transform 160ms ease; }
button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}
input[type="text"] {
    width: 100%;
    min-height: var(--control-height);
    border: 1px solid var(--border-default);
    background: var(--surface-control);
    color: var(--text);
    outline: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    font-size: var(--text-control);
    line-height: var(--leading-control);
}
input[type="text"]::placeholder { color: var(--muted); }
input[type="text"]:hover { border-color: var(--border-strong); }
input[type="text"]:focus {
    border-color: var(--brand-border);
    box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

::selection { background: rgba(var(--brand-rgb), .30); color: var(--text-primary); }

:where(input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea) {
    width: 100%;
    min-height: var(--control-height);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--surface-control);
    color: var(--text-primary);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

:where(input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea):hover {
    border-color: var(--border-strong);
}

:where(input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea):focus {
    border-color: var(--brand-border);
    box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

:where(input, select, textarea, button):disabled {
    cursor: not-allowed;
    opacity: .52;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: var(--focus-ring);
}

.button-link--ghost,
.admin-secondary-action,
.account-logout {
    border: 1px solid var(--border-default);
    background: var(--surface-control);
    color: var(--text-primary);
    box-shadow: none;
}

.button-link--ghost:hover,
.admin-secondary-action:hover,
.account-logout:hover {
    border-color: var(--brand-border);
    background: var(--surface-control-hover);
    color: var(--brand-hover);
}

.admin-delete-button,
.portfolio-card__delete-button,
.watchlist-remove-button {
    border-color: var(--negative-border);
    background: var(--negative-soft);
    color: var(--negative);
    box-shadow: none;
}

* { scrollbar-color: var(--border-strong) var(--bg-secondary); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--bg-secondary); }
*::-webkit-scrollbar-thumb { border: 2px solid var(--bg-secondary); border-radius: 999px; background: var(--border-strong); }
*::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.main-shell--full {
    min-height: 100vh;
    padding: 20px 28px 40px;
}
.page-chrome {
    position: sticky;
    top: 14px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: var(--radius-xl);
    background: rgba(5, 14, 25, 0.96);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    transition: box-shadow 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.page-chrome.is-scrolled {
    box-shadow: 0 14px 34px rgba(0,0,0,0.30);
    border-color: var(--border-default);
    background: rgba(5, 14, 25, 0.985);
}
.page-chrome__left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: max-content;
    flex: 0 0 auto;
}
.menu-button {
    width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: var(--radius-md);
    padding: 0;
    background: var(--surface-control);
    border: 1px solid var(--border-default);
    box-shadow: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #f0f4fb;
    display: block;
}


.search-submit-button {
    min-width: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-control);
}
.search-submit-button:active {
    transform: translateY(0) scale(0.995);
}

.sidebar-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 18px;
    margin-bottom: 14px;
}

.drawer-close-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
    padding: 0;
    background: var(--surface-control);
    border: 1px solid var(--border-default);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
}
.drawer-close-button::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-soft); opacity: 0; transition: opacity 180ms ease; z-index: -1; }
.drawer-close-button:hover::before,
.drawer-close-button:focus-visible::before {
    opacity: 1;
}
.drawer-close-button span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(241, 245, 252, 0.92);
}
.drawer-close-button span:first-child { transform: rotate(45deg); }
.drawer-close-button span:last-child { transform: rotate(-45deg); }

.brand--drawer {
    padding: 6px 6px 0;
    margin-bottom: 0;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 1400;
}
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 318px;
    max-width: calc(100vw - 24px);
    height: 100vh;
    padding: 20px;
    transform: translateX(-108%);
    transition: transform 260ms cubic-bezier(.2,.8,.2,1);
    z-index: 1410;
}
.sidebar-drawer__inner {
    height: 100%;
    border-radius: var(--radius-xl);
    padding: 22px 18px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-elevated);
}
body.drawer-is-open {
    overflow: hidden;
}
body.drawer-is-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}
body.drawer-is-open .sidebar-drawer {
    transform: translateX(0);
}

.sidebar__nav { display: grid; gap: 10px; }
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--muted);
    border: 1px solid transparent;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--brand-soft);
    opacity: 0;
    transition: opacity 180ms ease;
}
.nav-link:hover, .nav-link.is-active {
    color: var(--text);
    background: var(--surface-selected);
    border-color: var(--brand-border);
    box-shadow: none;
}
.nav-link:hover::before, .nav-link.is-active::before {
    opacity: 1;
}
.nav-link:hover {
    transform: translateX(2px);
}
.nav-link__icon {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(214, 223, 239, 0.82);
    transition: color 180ms ease, transform 180ms ease;
}
.nav-link__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
.nav-link:hover .nav-link__icon, .nav-link.is-active .nav-link__icon {
    color: var(--brand);
    transform: translateY(-0.5px);
}
.nav-link > span:last-child {
    position: relative;
    z-index: 1;
}

.card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 24px;
}
.card--hero {
    padding: 26px;
    margin-bottom: 22px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-head--compact { margin-bottom: 14px; }
.module-title,
.section-head h2,
.news-feed-shell__head h2 {
    margin: 0;
    font-size: var(--module-title-font-size);
    letter-spacing: var(--module-title-letter-spacing);
    line-height: var(--module-title-line-height);
}
.leaders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.leaders-card { min-height: 100%; }
.compact-list { display: grid; gap: 12px; }
.compact-list--leaders-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
    gap: 14px;
}
.compact-list--leaders-grid .compact-row {
    min-height: 96px;
}
.compact-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    transition: var(--vantiq-hover-lift-transition);
}

.compact-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 10%, rgba(255,255,255,0.08), transparent 38%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.compact-row:hover {
    transform: var(--vantiq-hover-lift-transform);
    box-shadow: var(--vantiq-hover-lift-shadow);
    border-color: rgba(255,255,255,0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
}
.compact-row:hover::after { opacity: 1; }
.compact-row__title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.compact-row__meta {
    color: var(--muted);
    font-size: var(--text-md);
    line-height: 1.35;
}
.compact-row__side {
    text-align: right;
    min-width: 102px;
}

.leader-card-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
}
.leader-card-row__main {
    display: flex;
    align-items: center;
    gap: 0.86rem;
    min-width: 0;
}
.leader-card-row__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.leader-card-row__ticker-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.leader-card-row__ticker {
    margin-bottom: 0;
    line-height: 1.08;
    white-space: nowrap;
}
.security-kind-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(129, 161, 255, 0.18);
    background: rgba(66, 104, 255, 0.08);
    color: rgba(198, 210, 246, 0.82);
    font-size: var(--text-xs);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.015em;
    white-space: nowrap;
}
.leader-card-row__issuer {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}
.leader-card-row__metrics {
    display: grid;
    gap: 3px;
    justify-items: end;
    align-content: center;
    min-width: 92px;
    text-align: right;
    white-space: nowrap;
}
.leader-card-row__change {
    font-size: var(--text-base);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.leader-card-row__price {
    color: var(--muted);
    font-size: var(--text-md);
    line-height: 1.2;
    font-weight: 700;
}
.is-positive { color: var(--positive); font-weight: 700; }
.is-negative { color: var(--danger); font-weight: 700; }
.empty-state {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 1400px) {
    .compact-list--leaders-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1399px) {
    .compact-list--leaders-grid .leader-card-row:nth-child(n + 7) {
        display: none;
    }
}


@media (max-width: 1180px) {
    .compact-list--leaders-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 980px) {
    .leaders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .compact-list--leaders-grid {
        grid-template-columns: 1fr;
    }
    .leader-card-row {
        padding: 16px;
        gap: 12px;
    }
    .leader-card-row__metrics {
        min-width: 78px;
    }
}
@media (max-width: 720px) {
    .main-shell--full { padding: 14px 16px 28px; }
    .card, .card--hero { padding: 20px; }
    .module-title,
    .section-head h2,
    .news-feed-shell__head h2 { font-size: var(--module-title-font-size); }
    .page-chrome {
        top: 10px;
        flex-wrap: wrap;
        align-items: stretch;
        min-height: auto;
        padding: 10px;
        border-radius: 22px;
    }
    .page-chrome__left {
        width: 100%;
    }
    .chrome-search {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
        grid-template-columns: 1fr auto;
    }
    .chrome-search__button {
        min-width: 84px;
    }
}



.brand,
.topbar-brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
}

.brand--drawer {
    padding: 6px 8px 18px;
    margin-bottom: 16px;
}

.brand__mark--symbol,
.topbar-brand__mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0;
    color: rgba(245, 248, 255, 0.95);
}

.brand__mark--symbol img,
.topbar-brand__mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand__text,
.topbar-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
    padding-top: 0;
    margin-left: -2px;
}

.brand__title,
.topbar-brand__title {
    display: block;
    font-size: 1.17rem;
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.96;
    margin-left: 0;
    transform: translate(1px, -1.5px);
    color: rgba(245, 248, 255, 0.985);
}

.brand__subtitle,
.topbar-brand__subtitle {
    display: block;
    font-family: "Exo 2", Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 500;
    margin-top: -1px;
    font-size: var(--text-xs);
    color: rgba(195, 205, 223, 0.66);
    letter-spacing: 0.012em;
    line-height: 1.04;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.topbar-brand {
    margin-left: 0;
    padding-right: 0;
    flex: 0 0 auto;
}

.topbar-brand__mark {
    width: 34px;
    height: 34px;
}

.page-chrome {
    gap: 22px;
}

.menu-button {
    flex: 0 0 auto;
}

.chrome-search {
    flex: 1 1 320px;
    min-width: 0;
    width: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.chrome-search input[type="text"] {
    min-width: 0;
    padding: 0.86rem 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-control);
    border-color: var(--border-default);
    font-size: var(--text-md);
}


.chrome-search__button {
    min-width: 96px;
    padding: 0.86rem 1.22rem;
    border: 1px solid rgba(212, 222, 236, 0.80);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(230, 237, 245, 0.94));
    color: #07111e;
    font-size: var(--text-md);
    font-weight: var(--font-bold);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.chrome-search__button-label {
    display: inline-block;
}

.chrome-search__button-icon {
    display: none;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.chrome-search__button-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chrome-search__button:hover,
.chrome-search__button:focus-visible {
    background: linear-gradient(180deg, #ffffff, rgba(236, 242, 248, 0.98));
    border-color: rgba(229, 237, 247, 0.95);
    color: #04111d;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.chrome-search__button:active {
    transform: translateY(1px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@media (max-width: 720px) {
    .topbar-brand__subtitle {
        display: none;
    }

    .topbar-brand__title {
        font-size: var(--text-base);
        letter-spacing: -0.05em;
        margin-left: 0;
    }

    .topbar-brand {
        margin-left: 0;
        gap: 1px;
    }

    .brand__mark--symbol,
    .topbar-brand__mark {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 560px) {
    .main-shell--full {
        padding-top: 12px;
    }

    .page-chrome {
        top: 8px;
        gap: 8px;
        padding: 0;
        margin-bottom: 16px;
        min-height: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        align-items: center;
        flex-wrap: nowrap;
    }

    .page-chrome.is-scrolled {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .page-chrome__left {
        width: auto;
        flex: 0 0 auto;
        gap: 8px;
    }

    .topbar-brand__text {
        display: none;
        min-width: 0;
    }

    .topbar-brand {
        margin-left: 0;
        padding-right: 0;
        gap: 0;
    }

    .topbar-brand__mark {
        width: 28px;
        height: 28px;
    }

    .topbar-brand__title {
        font-size: var(--text-md);
        margin-left: -1px;
        letter-spacing: -0.055em;
    }

    .topbar-brand__subtitle {
        display: none;
    }

    .menu-button {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }

    .chrome-search {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        flex-basis: auto;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .chrome-search input[type="text"] {
        padding: 0.78rem 0.92rem;
        font-size: var(--text-md);
        min-width: 0;
    }

    .chrome-search__button {
        min-width: 50px;
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 50px;
        color: var(--text-primary);
        background: var(--surface-control);
        border: 1px solid var(--border-default);
        box-shadow: none;
        transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
    }

    .chrome-search__button:hover,
    .chrome-search__button:focus-visible {
        background: var(--surface-selected);
        border-color: var(--brand-border);
        box-shadow: none;
        color: var(--brand-hover);
    }

    .page-chrome.is-scrolled .chrome-search__button {
        background: linear-gradient(135deg, rgba(46, 107, 255, 0.24), rgba(89, 108, 255, 0.18));
        border-color: rgba(124, 161, 255, 0.28);
        box-shadow: 0 14px 28px rgba(25, 48, 106, 0.26), inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .chrome-search__button-label {
        display: none;
    }

    .chrome-search__button-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 390px) {
    .chrome-search__button {
        min-width: 50px;
        width: 50px;
        height: 46px;
        border-radius: 16px;
    }

    .chrome-search__button-icon {
        width: 17px;
        height: 17px;
    }
}


@media (max-width: 720px) {
    .sidebar-drawer {
        width: min(332px, calc(100vw - 12px));
        padding: 12px 10px 16px;
    }
    .drawer-close-button {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }
    .drawer-close-button span {
        width: 20px;
    }
}


.prose-block {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.prose-block p {
    margin: 0;
    color: rgba(226, 231, 240, 0.88);
    line-height: 1.7;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ghost-link {
    color: rgba(196, 212, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
}

.ghost-link:hover {
    color: rgba(255, 255, 255, 0.96);
}


.eyebrow {
    margin-bottom: 10px;
    color: rgba(157, 185, 255, 0.82);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head__muted {
    color: var(--muted);
    font-size: var(--text-md);
}

.section-head__description {
    margin: 10px 0 0;
    max-width: 720px;
    color: rgba(227, 233, 244, 0.78);
    line-height: 1.65;
}

.news-page-intro {
    margin-bottom: 20px;
}

.news-page-intro__head {
    align-items: flex-start;
    gap: 18px;
}


.featured-news-stage {
    padding: 18px 20px 20px;
    margin-bottom: 16px;
}

.featured-news-stage__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.featured-news-stage__title,
.featured-news-stage__head h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.featured-news-stage__title {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    line-height: 1.05;
}

.featured-news-stage__link {
    color: rgba(226, 233, 245, 0.74);
    font-size: var(--text-md);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.featured-news-stage__link:hover {
    color: rgba(255,255,255,0.96);
    transform: translateX(1px);
}

.featured-news-stage__grid {
    display: grid;
    align-items: stretch;
    gap: 14px;
}

.featured-news-stage__grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-news-stage__grid--news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-news-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 136px;
    padding: 14px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.024));
    border: 1px solid rgba(255,255,255,0.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.featured-news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.13);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.032));
    box-shadow: 0 14px 28px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.04);
}

.featured-news-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(187, 198, 220, 0.74);
    font-size: var(--text-sm);
}


.featured-news-card__signals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.news-analysis-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.news-analysis-pill--positive {
    color: #b8ffd1;
    background: rgba(47, 214, 107, 0.14);
    border-color: rgba(47, 214, 107, 0.28);
}

.news-analysis-pill--danger {
    color: #ffd0cb;
    background: rgba(255, 92, 77, 0.14);
    border-color: rgba(255, 92, 77, 0.28);
}

.news-analysis-pill--warning {
    color: #ffe1a8;
    background: rgba(255, 187, 71, 0.14);
    border-color: rgba(255, 187, 71, 0.24);
}

.news-analysis-pill--muted {
    color: rgba(225, 233, 245, 0.88);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
}

.featured-news-card__title {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.32;
    letter-spacing: -0.024em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.96em;
}

.featured-news-card--home .featured-news-card__title {
    -webkit-line-clamp: 2;
    max-height: 2.64em;
}

.featured-news-card--news .featured-news-card__title {
    font-size: var(--text-base);
}

.featured-news-stage--news {
    padding: 20px;
}

.news-feed-shell {
    padding: 18px 22px 10px;
}

.news-feed-shell__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.news-feed-shell__controls {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.news-feed-shell__head h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.news-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-filter-menu {
    position: relative;
    justify-self: end;
}

.news-filter-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    min-width: 132px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.075);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.024));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
    color: rgba(226, 233, 244, 0.9);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.news-filter-menu__trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.13);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.032));
    box-shadow: 0 14px 28px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.04);
}

.news-filter-menu__trigger:focus-visible {
    outline: 2px solid rgba(124, 164, 255, 0.76);
    outline-offset: 3px;
}

.news-filter-menu__title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.news-filter-menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: rgba(204, 214, 231, 0.76);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
}

.news-filter-menu__icon svg {
    width: 100%;
    height: 100%;
}

.news-filter-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(324px, calc(100vw - 32px));
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(24, 31, 49, 0.94), rgba(17, 23, 39, 0.96)),
        rgba(17, 23, 39, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 18px 40px rgba(2, 8, 24, 0.28);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 220ms ease,
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 220ms ease;
    z-index: 30;
}

.news-filter-menu__panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 14px;
    height: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.08);
    background: rgba(21, 28, 44, 0.96);
    transform: rotate(45deg);
}

.news-filter-menu__groups {
    display: grid;
    gap: 10px;
}

.news-filter-menu__group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.016));
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

.news-filter-menu__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.news-filter-menu__group-title {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(159, 173, 197, 0.62);
}

.news-filter-menu__list {
    display: grid;
    gap: 6px;
}

.news-filter-menu__list--segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-filter-menu__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 15px;
    text-decoration: none;
    color: rgba(224, 231, 242, 0.84);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.news-filter-menu__option:hover {
    transform: translateY(-1px);
    color: rgba(246, 249, 255, 0.96);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.09);
}

.news-filter-menu__option--sort {
    min-height: 68px;
    align-items: flex-end;
    padding: 12px 12px 10px;
}

.news-filter-menu__option--sort .news-filter-menu__option-label {
    white-space: nowrap;
}

.news-filter-menu__option--sort .news-filter-menu__option-state {
    position: absolute;
    top: 10px;
    right: 10px;
}

.news-filter-menu__option-label {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.news-filter-menu__option-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(93, 135, 255, 0.14);
    border: 1px solid rgba(93, 135, 255, 0.24);
    color: rgba(225, 233, 248, 0.82);
    font-size: var(--text-xs);
    white-space: nowrap;
}

.news-filter-menu.is-open .news-filter-menu__trigger {
    border-color: rgba(255,255,255,0.11);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.028));
    box-shadow: 0 12px 28px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.035);
}

.news-filter-menu.is-open .news-filter-menu__icon {
    transform: rotate(180deg);
    color: rgba(231, 238, 248, 0.9);
}

.news-filter-menu.is-open .news-filter-menu__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.news-feed-shell.is-loading {
    opacity: 0.76;
    transition: opacity 160ms ease;
}

.news-filter-menu__option.is-active {
    color: rgba(246, 249, 255, 0.96);
    background: rgba(62, 107, 255, 0.14);
    border-color: rgba(93, 135, 255, 0.35);
}

.news-filter-chip {
    padding: 9px 13px;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(214, 222, 237, 0.78);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.news-filter-chip:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
}

.news-filter-chip.is-active {
    color: rgba(255,255,255,0.96);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

.news-filter-row--sort {
    justify-content: flex-end;
}

.news-filter-chip--sort {
    font-size: 0.9rem;
}

.news-feed-list {
    display: grid;
    gap: 0;
}

/* News Event Feed: flat editorial rows, not a wall of nested cards. */
.news-feed-item {
    position: relative;
    padding: 18px 4px 17px;
    border: 0;
    border-bottom: 1px solid rgba(145, 165, 200, 0.13);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color 160ms ease;
}

.news-feed-item:first-child {
    border-top: 1px solid rgba(145, 165, 200, 0.10);
}

.news-feed-item:hover {
    transform: none;
    border-color: rgba(145, 165, 200, 0.13);
    background: rgba(255,255,255,0.022);
    box-shadow: none;
}

.news-feed-item:focus-within {
    background: rgba(255,255,255,0.026);
}

.news-feed-item.is-important {
    border-color: rgba(145, 165, 200, 0.13);
    background: transparent;
}

.news-feed-item.is-important:hover {
    background: rgba(255,255,255,0.022);
}

.news-feed-item__header {

    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.news-feed-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(187, 198, 220, 0.74);
    font-size: var(--text-sm);
}


.news-feed-item__body {
    max-width: 86ch;
}

.news-feed-item__title {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.38;
    letter-spacing: -0.024em;
}

.news-feed-item__title a {
    color: inherit;
    text-decoration: none;
}

.news-feed-item__title a:hover,
.featured-news-card:hover .featured-news-card__title {
    color: rgba(255,255,255,0.98);
}

.news-feed-item__taxonomy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.news-feed-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.news-entity-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.065);
    background: rgba(255,255,255,0.018);
    color: rgba(226, 233, 245, 0.82);
    text-decoration: none;
    font-size: var(--text-md);
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.news-entity-tag:hover {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.96);
    transform: none;
}

.news-entity-tag--secondary {
    color: rgba(208, 218, 235, 0.72);
}

.news-feed-item__insight {
    margin: 10px 0 0;
    color: rgba(224, 231, 242, 0.74);
    line-height: 1.55;
    font-size: var(--text-md);
}

.news-feed-item__insight--muted {
    color: rgba(189, 202, 229, 0.68);
}


.news-feed-item__signals {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.news-feed-item__meta-separator {
    color: rgba(145, 165, 200, 0.34);
}

.news-feed-item__official-source {
    color: rgba(142, 226, 157, 0.82);
}

.news-feed-item__material-update {
    color: rgba(225, 190, 121, 0.86);
}

.news-event-disclosure {
    margin-top: 14px;
    border-top: 1px solid rgba(145, 165, 200, 0.095);
}

.news-event-disclosure__summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 10px 2px 7px;
    color: rgba(196, 207, 225, 0.76);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.news-event-disclosure__summary::-webkit-details-marker {
    display: none;
}

.news-event-disclosure__summary:hover {
    color: var(--text-primary);
}

.news-event-disclosure__summary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 6px;
}

.news-event-disclosure__chevron {
    display: inline-flex;
    width: 16px;
    height: 16px;
    transition: transform 150ms ease;
}

.news-event-disclosure__chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.news-event-disclosure[open] .news-event-disclosure__chevron {
    transform: rotate(180deg);
}

.news-event-analysis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 0;
    padding: 4px 2px 5px;
}

.news-event-analysis__section {
    min-width: 0;
    padding: 13px 0 15px;
    border-top: 1px solid rgba(145, 165, 200, 0.075);
}

.news-event-analysis__section--wide {
    grid-column: 1 / -1;
}

.news-event-analysis__section:first-child {
    border-top: 0;
}

.news-event-analysis__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-event-analysis__section h4 {
    margin: 0;
    color: rgba(237, 241, 248, 0.92);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: -0.012em;
}

.news-event-analysis__section p {
    max-width: 82ch;
    margin: 7px 0 0;
    color: rgba(200, 210, 226, 0.76);
    font-size: var(--text-md);
    line-height: 1.58;
}

.news-event-analysis__section--uncertainty p {
    color: rgba(181, 193, 213, 0.70);
}

.news-event-sources__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    margin-top: 8px;
}

.news-event-sources__list a,
.news-event-sources__list > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(190, 202, 220, 0.74);
    font-size: var(--text-sm);
    text-decoration: none;
}

.news-event-sources__list a:hover {
    color: var(--text-primary);
}

.news-event-sources__official {
    color: rgba(121, 215, 139, 0.82);
    font-size: var(--text-xs);
}

.news-feed-shell__more {
    display: flex;
    justify-content: center;
    padding: 18px 0 6px;
}

.news-feed-shell__more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(235, 240, 248, 0.86);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.news-feed-shell__more-link:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.96);
    transform: translateY(-1px);
}

.news-feed-item__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .featured-news-stage__grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .featured-news-stage__head,
    .news-feed-shell__head,
    .news-feed-item__header,
    .news-feed-item__taxonomy {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-news-stage,
    .featured-news-stage--news,
    .news-feed-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .news-feed-shell__controls {
        justify-items: stretch;
        width: 100%;
    }

    .news-filter-menu {
        justify-self: stretch;
        width: 100%;
    }

    .news-filter-menu__trigger {
        width: 100%;
        justify-content: space-between;
    }

    .news-filter-menu__panel {
        left: 0;
        right: auto;
        width: 100%;
        transform-origin: top center;
    }

    .news-filter-menu__panel::before {
        right: 32px;
    }

    .news-filter-row--sort,
    .news-feed-item__signals {
        justify-content: flex-start;
    }

    .news-filter-menu__list--segmented {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .featured-news-stage__grid--news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .featured-news-stage__grid--home,
    .featured-news-stage__grid--news {
        grid-template-columns: 1fr;
    }
}
.search-results-card {
    margin-bottom: 14px;
    padding: 18px 22px;
}

.compact-list--search-results {
    gap: 10px;
}

.compact-row--search-result {
    padding: 14px 16px;
}

@media (max-width: 980px) {
    .news-highlight-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .news-topline,
    .news-feed-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-highlight-grid {
        grid-template-columns: 1fr;
    }

    .news-feed-item__row {
        grid-template-columns: 1fr;
    }

    .news-feed-item__signals {
        justify-content: flex-start;
    }

    .news-filter-menu__trigger {
        min-height: 44px;
        padding: 8px 12px 8px 14px;
        gap: 8px;
        min-width: 0;
    }
}


.signal-card {
    border-radius: 22px;
    padding: 22px 24px;
}
.signal-card--positive {
    border-color: rgba(47, 214, 107, 0.18);
}
.signal-card--danger {
    border-color: rgba(255, 92, 77, 0.18);
}
.signal-card--warning {
    border-color: rgba(255, 200, 87, 0.18);
}
.signal-card__summary {
    margin: 2px 0 10px;
    font-size: var(--text-base);
    line-height: 1.55;
}
.signal-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: var(--text-md);
    margin-bottom: 14px;
}
.signal-card__news {
    display: grid;
    gap: 10px;
}
.signal-card__news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.signal-card__news-item:hover {
    background: rgba(255,255,255,0.06);
}
.signal-card__news-title {
    font-weight: 600;
    line-height: 1.4;
}
.signal-card__news-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
@media (max-width: 860px) {
    .signal-card__news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .signal-card__news-pills {
        justify-content: flex-start;
    }
}

.news-detail-page {
    display: grid;
    gap: 18px;
}

.news-detail-hero,
.news-detail-focus,
.news-detail-source,
.news-detail-analysis,
.news-detail-story {
    padding: 28px 30px;
}

.news-detail-hero {
    background: linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.02));
}

.news-detail-hero__head,
.news-detail-source__head {
    display: grid;
    gap: 10px;
}

.news-detail-hero__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px 24px;
}

.news-detail-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 2.3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    max-width: 30ch;
    text-wrap: pretty;
}

.news-detail-hero__date {
    color: var(--muted);
    white-space: nowrap;
    font-size: var(--text-md);
    justify-self: end;
    align-self: start;
    padding-top: 4px;
}

.news-detail-hero__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.news-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    color: rgba(214, 222, 237, 0.74);
    font-size: var(--text-md);
}

.news-detail-hero__meta span,
.news-detail-hero__meta a {
    color: inherit;
    text-decoration: none;
}

.news-detail-hero__meta span {
    position: relative;
}

.news-detail-hero__source a {
    color: rgba(232, 238, 248, 0.84);
}

.news-detail-hero__source a:hover {
    color: rgba(255,255,255,0.98);
}

.news-detail-hero__signals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.news-market-context {
    padding: 24px 26px;
    background: linear-gradient(180deg, rgba(20, 27, 43, 0.98), rgba(17, 23, 39, 0.96));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 44px rgba(3, 8, 20, 0.22);
}

.news-market-context__head {
    margin-bottom: 12px;
}

.news-market-context__title {
    margin: 0;
    color: rgba(205, 216, 236, 0.78);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-market-context__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 20px;
    align-items: center;
}

.news-market-context__identity {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.news-market-context__ticker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.news-market-context__ticker,
.news-market-context__ticker:visited {
    color: rgba(244, 248, 255, 0.96);
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.news-market-context__ticker:hover {
    color: rgba(255,255,255,1);
}

.news-market-context__issuer {
    color: rgba(176, 190, 214, 0.7);
    font-size: var(--text-md);
}


.news-market-context__quote {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    text-align: right;
}

.news-market-context__price {
    color: rgba(247, 250, 255, 0.98);
    font-size: clamp(1.28rem, 1.8vw, 1.52rem);
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.news-market-context__change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: rgba(223, 231, 243, 0.84);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.news-market-context__change--positive {
    color: rgba(118, 228, 172, 0.96);
    border-color: rgba(88, 194, 140, 0.22);
    background: rgba(33, 83, 59, 0.28);
}

.news-market-context__change--danger {
    color: rgba(255, 145, 145, 0.96);
    border-color: rgba(220, 104, 104, 0.2);
    background: rgba(98, 42, 42, 0.28);
}

.news-market-context__chart-shell {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.news-market-context__chart-stage {
    position: relative;
    min-height: 238px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.055);
    background:
        radial-gradient(circle at top left, rgba(75, 101, 179, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01));
}

.news-market-context__chart {
    width: 100%;
    height: 238px;
}


.news-market-context__news-marker {
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 160ms ease;
}

.news-market-context__news-marker.is-hidden {
    opacity: 0;
}

.news-market-context__news-marker-line {
    position: absolute;
    top: 18px;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(110, 137, 204, 0.5), rgba(110, 137, 204, 0.12));
}

.news-market-context__news-marker-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 137, 204, 0.22);
    background: rgba(18, 24, 38, 0.88);
    color: rgba(206, 217, 236, 0.76);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(6, 9, 18, 0.18);
}

.news-market-context__chart-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: rgba(188, 201, 220, 0.72);
    font-size: var(--text-md);
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, rgba(11, 15, 27, 0.28), rgba(11, 15, 27, 0.16));
    transition: opacity 180ms ease, visibility 180ms ease;
    pointer-events: none;
}

.news-market-context__chart-state--loading {
    color: rgba(216, 225, 238, 0.8);
}

.news-market-context__chart-state.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.news-market-context__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}
.news-market-context__fallback {
    color: rgba(178, 191, 210, 0.72);
    font-size: var(--text-md);
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.news-market-context__attribution,
.news-market-context__attribution:visited {
    color: rgba(143, 159, 184, 0.56);
    font-size: var(--text-sm);
    text-decoration: none;
    white-space: nowrap;
}

.news-market-context__attribution:hover {
    color: rgba(196, 208, 227, 0.86);
}

@media (max-width: 720px) {
    .news-market-context {
        padding: 20px 18px;
    }

    .news-market-context__grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .news-market-context__quote {
        justify-content: flex-start;
        text-align: left;
    }

    .news-market-context__chart-stage,
    .news-market-context__chart {
        min-height: 204px;
        height: 204px;
    }
}

.news-detail-focus__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.news-detail-focus__head h2 {
    margin: 0;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.news-detail-focus__head h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.news-detail-focus__signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.news-detail-focus__summary {
    display: grid;
    gap: 12px;
    max-width: 70ch;
}

.news-detail-focus__summary p {
    margin: 0;
    color: rgba(224, 231, 242, 0.82);
    line-height: 1.72;
    font-size: var(--text-base);
}

.news-detail-focus__summary .news-detail-focus__lead {
    color: rgba(247, 250, 255, 0.96);
    font-size: clamp(1.04rem, 1.22vw, 1.14rem);
    line-height: 1.82;
}

.news-detail-focus__summary .news-detail-focus__support {
    color: rgba(190, 202, 226, 0.72);
}

.news-detail-story__list {
    display: grid;
    gap: 0;
}

.news-detail-story__row {
    display: grid;
    grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.news-detail-story__row:first-child {
    border-top: none;
    padding-top: 0;
}

.news-detail-story__row h2 {
    margin: 0;
    padding-top: 2px;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(173, 186, 205, 0.8);
}

.news-detail-story__content {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.news-detail-story__row p {
    margin: 0;
    color: rgba(229, 236, 247, 0.9);
    line-height: 1.8;
    max-width: 68ch;
    font-size: var(--text-base);
    text-wrap: pretty;
}

.news-detail-story__row--lead p {
    color: rgba(247, 250, 255, 0.98);
    font-size: clamp(1.05rem, 1.28vw, 1.16rem);
    line-height: 1.82;
}

.news-detail-story__row--conclusion {
    align-items: start;
}

.news-detail-story__conclusion-text {
    color: rgba(236, 241, 250, 0.94);
    font-weight: 600;
}

.news-detail-event-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    max-width: 72ch;
}

.news-detail-event-sources a,
.news-detail-event-sources span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-sm);
}

.news-detail-event-sources a {
    text-decoration: none;
    transition: color 140ms ease;
}

.news-detail-event-sources a:hover,
.news-detail-event-sources a:focus-visible {
    color: var(--text-primary);
}

.news-detail-takeaway-list {
    display: grid;
    gap: 12px;
    max-width: 70ch;
}

.news-detail-takeaway-line {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 0;
}

.news-detail-takeaway-line__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 999px;
    margin-top: 0.5rem;
    font-size: 0;
    line-height: 0;
    background: currentColor;
}

.news-detail-takeaway-line--positive .news-detail-takeaway-line__icon {
    color: rgba(102, 219, 160, 0.94);
    box-shadow: 0 0 0 5px rgba(102, 219, 160, 0.16);
}

.news-detail-takeaway-line--danger .news-detail-takeaway-line__icon {
    color: rgba(255, 132, 132, 0.94);
    box-shadow: 0 0 0 5px rgba(255, 132, 132, 0.16);
}

.news-detail-takeaway-line--warning .news-detail-takeaway-line__icon {
    color: rgba(240, 191, 97, 0.94);
    box-shadow: 0 0 0 5px rgba(240, 191, 97, 0.15);
}

.news-detail-takeaway-line--muted .news-detail-takeaway-line__icon {
    color: rgba(174, 190, 215, 0.86);
    box-shadow: 0 0 0 5px rgba(174, 190, 215, 0.14);
}

.news-detail-takeaway-line__body {
    color: rgba(236, 241, 250, 0.96);
    font-size: var(--text-base);
    line-height: 1.78;
    text-wrap: pretty;
}

.news-detail-takeaway-line__label {
    color: rgba(250, 252, 255, 0.98);
    font-weight: 700;
    margin-right: 0.36rem;
}

.news-detail-disclaimer {
    margin-top: 16px;
    color: rgba(173, 186, 205, 0.74);
    font-size: 0.9rem;
    line-height: 1.58;
    max-width: 62ch;
}

.news-detail-disclaimer--story {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.news-detail-postscript {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    max-width: 64ch;
}

.news-detail-postscript p {
    margin: 0;
    color: rgba(214, 222, 237, 0.68);
    line-height: 1.6;
    font-size: var(--text-md);
}

.news-detail-actions {
    margin-top: -2px;
    justify-content: center;
    width: 100%;
}


.news-detail-back-link {
    text-align: center;
    min-width: 0;
    padding: 0.92rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.18), rgba(91, 108, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 34px rgba(8, 14, 28, 0.34);
    color: rgba(240, 245, 255, 0.96);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease, background 220ms ease, color 180ms ease;
}
.news-detail-back-link:hover {
    transform: translateY(-2px);
    border-color: rgba(112, 157, 255, 0.34);
    background: linear-gradient(135deg, rgba(53, 138, 255, 0.24), rgba(100, 118, 255, 0.18));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 42px rgba(17, 44, 102, 0.34);
}
.news-detail-back-link:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(8, 14, 28, 0.28);
}
.news-detail-back-link:focus-visible {
    outline: 2px solid rgba(113, 156, 255, 0.82);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .news-detail-hero,
    .news-detail-focus,
    .news-detail-source,
    .news-detail-analysis,
    .news-detail-story {
        padding: 24px 24px;
    }
}

@media (max-width: 720px) {
    .news-detail-page {
        gap: 14px;
    }

    .news-detail-hero__head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .news-detail-hero__meta-row {
        align-items: flex-start;
    }

    .news-detail-story__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 0;
    }

    .news-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-hero,
    .news-detail-focus,
    .news-detail-source,
    .news-detail-analysis,
    .news-detail-story {
        padding: 20px 18px;
    }

    .news-detail-hero__title {
        max-width: none;
    }

    .news-detail-hero__date {
        justify-self: start;
        white-space: normal;
    }
}

/* Stage 9.1 home showcase: product modules, compact utility rail and premium motion. */
.home-action-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}























.home-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 580px), 1fr));
    gap: 16px;
    margin-bottom: 16px;
    align-items: start;
}

.home-rating-card,
.home-analysis-card {
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.home-rating-card::before,
.home-analysis-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background: radial-gradient(circle at 14% 0%, rgba(87, 123, 255, 0.10), transparent 35%);
    opacity: 0.9;
}

.home-rating-list {
    position: relative;
    display: grid;
    gap: 10px;
    z-index: 1;
}

.home-rating-row {
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.065);
    background: linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.027));
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
    animation: vantiq-soft-rise 520ms cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(70ms * var(--item-index, 0));
}

.home-rating-row:hover,
.home-rating-row:focus-visible {
    transform: translateY(-3px) scale(1.006);
    border-color: rgba(136, 164, 255, 0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.073), rgba(255,255,255,0.038));
    box-shadow: 0 20px 36px rgba(0,0,0,0.28), 0 0 26px rgba(78, 115, 255, 0.07);
}

.home-rating-row__rank {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(226, 235, 249, 0.72);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.8rem;
    font-weight: 700;
}

.home-rating-row__main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-rating-row__ticker-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.home-rating-row__ticker-line strong {
    color: rgba(248, 251, 255, 0.98);
    font-size: var(--text-base);
    letter-spacing: -0.015em;
}

.home-rating-row__name {
    color: rgba(164, 177, 204, 0.78);
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-rating-row__score {
    min-width: 66px;
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    color: rgba(246, 249, 255, 0.96);
    font-weight: 700;
    font-size: var(--text-base);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.home-rating-row__tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    min-height: 21px;
    padding: 2px 8px;
    border-radius: 999px;
    color: rgba(212, 224, 255, 0.92);
    background: rgba(92, 124, 255, 0.14);
    border: 1px solid rgba(117, 146, 255, 0.20);
    font-size: var(--text-xs);
    font-weight: 700;
}

.home-rating-row__value {
    color: rgba(246, 249, 255, 0.96);
    font-weight: 700;
}

.home-analysis-card__rotation {
    color: rgba(160, 174, 202, 0.72);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
}

.home-analysis-spotlight {
    position: relative;
    z-index: 1;
    min-height: 298px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        radial-gradient(circle at 82% 14%, rgba(93, 119, 255, 0.14), transparent 34%),
        linear-gradient(150deg, rgba(255,255,255,0.056), rgba(255,255,255,0.028));
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.home-analysis-spotlight:hover,
.home-analysis-spotlight:focus-visible {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(132, 159, 255, 0.18);
    box-shadow: 0 24px 48px rgba(0,0,0,0.30), 0 0 32px rgba(88, 116, 255, 0.10);
}

.home-analysis-spotlight__top {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
}

.home-analysis-spotlight__identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-analysis-spotlight__ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(248, 251, 255, 0.98);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.home-analysis-spotlight__name {
    color: rgba(164, 177, 204, 0.78);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-analysis-spotlight__rating {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: rgba(246, 249, 255, 0.96);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.home-analysis-spotlight__tier {
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(117, 146, 255, 0.20);
    background: rgba(92, 124, 255, 0.14);
    color: rgba(212, 224, 255, 0.92);
    font-size: var(--text-xs);
    font-weight: 700;
}

.home-analysis-spotlight__score {
    color: rgba(246, 249, 255, 0.96);
    font-weight: 700;
}

.home-analysis-spotlight__verdict {
    align-self: flex-start;
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(225, 233, 245, 0.9);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    font-size: var(--text-sm);
    font-weight: 700;
}

.home-analysis-spotlight__verdict--positive {
    color: var(--vantiq-good-text);
    background: var(--vantiq-good-soft);
    border-color: var(--vantiq-good-border);
}

.home-analysis-spotlight__verdict--negative,
.home-analysis-spotlight__verdict--danger {
    color: var(--vantiq-bad-text);
    background: var(--vantiq-bad-soft);
    border-color: var(--vantiq-bad-border);
}

.home-analysis-spotlight__text {
    margin: 0;
    color: rgba(226, 235, 249, 0.86);
    font-size: var(--text-base);
    line-height: 1.62;
    letter-spacing: -0.018em;
}

.home-release-footer {
    margin-top: 18px;
    padding: 8px 4px 0;
}

.home-release-footer p {
    margin: 0;
    color: rgba(148, 163, 190, 0.62);
    font-size: var(--text-sm);
    line-height: 1.5;
    text-align: center;
}

.vantiq-reveal {
    animation: vantiq-reveal-up 620ms cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(90ms * var(--reveal-index, 0));
}

.vantiq-stagger-item {
    animation: vantiq-soft-rise 520ms cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(60ms * var(--item-index, 0));
}

@keyframes vantiq-reveal-up {
    from { opacity: 0; transform: translateY(16px) scale(0.992); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes vantiq-soft-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .home-action-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-intelligence-grid {
        grid-template-columns: 1fr;
    }
    .home-analysis-spotlight {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .home-action-rail {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    
    
    
    .home-rating-row {
        grid-template-columns: 26px 38px minmax(0, 1fr) auto;
        padding: 11px 12px;
        gap: 10px;
    }
    .home-rating-row__rank {
        width: 22px;
        height: 22px;
        border-radius: 10px;
    }
    .home-analysis-spotlight__top {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vantiq-reveal,
    .vantiq-stagger-item,
    .home-rating-row {
        animation: none !important;
    }
    .home-rating-row,
.home-analysis-spotlight {
        transition: none !important;
    }
    .home-rating-row:hover,
.home-analysis-spotlight:hover {
        transform: none !important;
    }
}

/* Stage 9.1a home refinements: compact access strip, account dialog and thesis-based AI spotlight. */












































.home-analysis-spotlight {
    min-height: 0;
}

.home-analysis-spotlight__sector {
    align-self: flex-start;
    padding: 8px 11px;
    border-radius: 999px;
    color: rgba(190, 218, 255, 0.98);
    background: rgba(52, 128, 255, 0.13);
    border: 1px solid rgba(85, 146, 255, 0.20);
    font-size: 0.8rem;
    font-weight: 700;
}

.home-analysis-points {
    display: grid;
    gap: 18px;
}

.home-analysis-points__section {
    display: grid;
    grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-top: 2px;
}

.home-analysis-points__section + .home-analysis-points__section {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-analysis-points__label {
    margin: 0;
    color: var(--module-subheading-color, rgba(177, 213, 255, 0.92));
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.25;
    text-transform: uppercase;
    text-shadow: var(--module-subheading-shadow);
}

.home-analysis-points__theses {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.home-analysis-thesis {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: rgba(229, 236, 247, 0.92);
    font-size: clamp(0.94rem, 1.06vw, 1.01rem);
    font-weight: 600;
    line-height: 1.58;
    letter-spacing: -0.018em;
    text-wrap: pretty;
}

.home-analysis-thesis::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-md);
    background: rgba(154, 170, 196, 0.54);
    box-shadow: 0 0 0 5px rgba(154, 170, 196, 0.06);
}

.home-analysis-thesis__title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-analysis-thesis__dash {
    color: rgba(183, 197, 222, 0.72);
    margin: 0 0.18em;
}

.home-analysis-thesis__body {
    color: rgba(228, 236, 249, 0.92);
}

.home-analysis-thesis--positive .home-analysis-thesis__title {
    color: rgba(92, 222, 170, 0.96);
    text-shadow: 0 0 18px rgba(68, 214, 162, 0.13);
}

.home-analysis-thesis--positive::before {
    background: linear-gradient(135deg, rgba(91, 224, 171, 0.98), rgba(65, 190, 164, 0.85));
    box-shadow: 0 0 0 5px rgba(74, 210, 162, 0.08), 0 0 18px rgba(61, 207, 158, 0.22);
}

.home-analysis-thesis--warning .home-analysis-thesis__title,
.home-analysis-thesis--danger .home-analysis-thesis__title {
    color: rgba(255, 135, 126, 0.96);
    text-shadow: 0 0 18px rgba(255, 107, 103, 0.12);
}

.home-analysis-thesis--warning::before,
.home-analysis-thesis--danger::before {
    background: linear-gradient(135deg, rgba(255, 128, 118, 0.98), rgba(213, 89, 101, 0.88));
    box-shadow: 0 0 0 5px rgba(248, 93, 94, 0.08), 0 0 18px rgba(235, 91, 97, 0.2);
}

.home-analysis-thesis--neutral .home-analysis-thesis__title {
    color: rgba(210, 224, 250, 0.96);
}

@media (min-width: 1440px) {
    
    .home-intelligence-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 580px), 1fr));
    }
}

@media (max-width: 860px) {
    
    
    .home-analysis-points__section {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 560px) {
    
    
    
    .home-analysis-thesis {
        font-size: 0.9rem;
        line-height: 1.52;
    }
    .home-analysis-thesis__body {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    
    
}


/* Stage 9.1c home polish: full-width icon rail, centered account/close icons, title-only AI theses. */




















.home-analysis-points {
    gap: 16px;
}

.home-analysis-points__section {
    grid-template-columns: minmax(106px, 142px) minmax(0, 1fr);
    gap: 16px;
}

.home-analysis-points__theses {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-analysis-thesis {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 8px 12px 8px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.042);
    font-size: clamp(0.86rem, 0.95vw, 0.94rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    white-space: nowrap;
    max-width: 100%;
}

.home-analysis-thesis::before {
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
}

.home-analysis-thesis__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-analysis-thesis__dash,
.home-analysis-thesis__body {
    display: none !important;
}

.home-analysis-thesis--positive {
    background: rgba(55, 215, 158, 0.075);
    border-color: rgba(86, 224, 174, 0.16);
}

.home-analysis-thesis--warning,
.home-analysis-thesis--danger {
    background: rgba(255, 132, 120, 0.075);
    border-color: rgba(255, 142, 130, 0.16);
}

@media (min-width: 1440px) {
    
}

@media (max-width: 860px) {
    
    .home-analysis-points__section {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .home-analysis-points__theses {
        gap: 8px;
    }
}

@media (max-width: 560px) {
    
    
    .home-analysis-thesis {
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
        min-height: 32px;
        font-size: var(--text-sm);
        line-height: 1.18;
    }
}

/* Stage 9.1e home AI chart: interactive chart, sturdier mobile icons and rating-like row lift. */
.home-rating-row {
    transition: var(--vantiq-hover-lift-transition), filter 220ms ease;
    will-change: transform;
}

.home-rating-row:hover,
.home-rating-row:focus-visible {
    transform: var(--vantiq-hover-lift-transform);
    filter: drop-shadow(0 22px 40px rgba(0,0,0,0.30));
    box-shadow: none;
}











.home-analysis-spotlight {
    gap: 14px;
}

.home-analysis-spotlight__top {
    border-radius: 18px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.home-analysis-spotlight__top:hover,
.home-analysis-spotlight__top:focus-visible {
    transform: translateY(-1px);
}

.home-analysis-spotlight__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.home-analysis-spotlight__details {
    color: rgba(188, 203, 232, 0.74);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    transition: color 180ms ease;
}

.home-analysis-spotlight__details:hover,
.home-analysis-spotlight__details:focus-visible {
    color: rgba(229, 236, 255, 0.94);
}

.home-analysis-chart {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.065);
    background:
        radial-gradient(circle at 80% 0%, rgba(88, 119, 255, 0.11), transparent 42%),
        rgba(5, 10, 22, 0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.026);
}

.home-analysis-chart__head,
.home-analysis-chart__metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-analysis-chart__label {
    color: rgba(207, 219, 244, 0.92);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.home-analysis-chart__period {
    color: rgba(150, 166, 196, 0.78);
    font-size: var(--text-xs);
    font-weight: 700;
}

.home-analysis-chart__price {
    color: rgba(248, 251, 255, 0.98);
    font-size: clamp(1.04rem, 1.3vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-analysis-chart__change {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
    color: rgba(218, 229, 247, 0.90);
}

.home-analysis-chart__change--positive,
.home-analysis-chart__change.news-market-context__change--positive {
    color: rgba(87, 230, 177, 0.98);
    border-color: rgba(86, 224, 174, 0.18);
    background: rgba(55, 215, 158, 0.075);
}

.home-analysis-chart__change--negative,
.home-analysis-chart__change.news-market-context__change--danger {
    color: rgba(255, 139, 129, 0.98);
    border-color: rgba(255, 142, 130, 0.18);
    background: rgba(255, 132, 120, 0.075);
}

.home-analysis-chart__shell {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-analysis-chart__stage,
.home-analysis-chart__canvas {
    min-height: clamp(190px, 22vw, 285px);
    height: clamp(190px, 22vw, 285px);
    border-radius: 18px;
}

.home-analysis-chart__stage {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.010));
    border: 1px solid rgba(255,255,255,0.045);
}

@media (min-width: 1440px) {
    .home-analysis-chart__stage,
    .home-analysis-chart__canvas {
        min-height: 292px;
        height: 292px;
    }
}

@media (max-width: 1100px) {
    .home-analysis-chart__stage,
    .home-analysis-chart__canvas {
        min-height: 260px;
        height: 260px;
    }
}

@media (max-width: 560px) {
    
    .home-analysis-chart {
        padding: 12px;
        border-radius: 20px;
    }
    .home-analysis-chart__head,
    .home-analysis-chart__metrics {
        align-items: flex-start;
    }
    .home-analysis-chart__stage,
    .home-analysis-chart__canvas {
        min-height: 210px;
        height: 210px;
        border-radius: 16px;
    }
}

/* Stage 9.1g home interaction polish: stronger TOP-10 lift, quieter AI card and cleaner chart header. */
.home-rating-card {
    overflow: visible;
}

.home-rating-list {
    padding: 2px 0;
}

.home-rating-row {
    position: relative;
    z-index: 1;
    transform: translate3d(0, 0, 0) scale(1);
    background: linear-gradient(135deg, rgba(255,255,255,0.058), rgba(255,255,255,0.030));
    transition: transform 230ms cubic-bezier(.2,.8,.2,1), filter 230ms ease, border-color 230ms ease, background 230ms ease;
}

.home-rating-row:hover,
.home-rating-row:focus-visible {
    z-index: 5;
    transform: translate3d(7px, -6px, 0) scale(1.018);
    border-color: rgba(142, 171, 238, 0.25);
    background: linear-gradient(135deg, rgba(255,255,255,0.084), rgba(255,255,255,0.043));
    filter: drop-shadow(0 24px 42px rgba(0,0,0,0.35)) drop-shadow(0 0 26px rgba(88, 116, 255, 0.10));
    box-shadow: none;
}

.home-analysis-spotlight:hover,
.home-analysis-spotlight:focus-visible {
    transform: none;
    border-color: rgba(132, 159, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.026);
}

.home-analysis-chart {
    gap: 8px;
    padding-top: 12px;
}

.home-analysis-chart__head,
.home-analysis-chart__label,
.home-analysis-chart__period {
    display: none !important;
}

.home-analysis-chart__metrics {
    margin-bottom: 2px;
}





@media (max-width: 560px) {
    .home-rating-row:hover,
    .home-rating-row:focus-visible {
        transform: translate3d(3px, -4px, 0) scale(1.01);
    }
    
    
}


/* Stage 9.1h home cleanup: TOP-10 rows use the same hover mechanics as leader tiles; market mover blocks are removed from home. */
.home-rating-card {
    overflow: visible;
}

.home-rating-list {
    overflow: visible;
    padding: 2px 0;
}

.home-rating-row.compact-row {
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: var(--vantiq-hover-lift-transition);
    will-change: transform;
    isolation: isolate;
}

.home-rating-row.compact-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 10%, rgba(255,255,255,0.08), transparent 38%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
    z-index: 0;
}

.home-rating-row.compact-row:hover,
.home-rating-row.compact-row:focus-visible {
    z-index: 8;
    transform: var(--vantiq-hover-lift-transform);
    box-shadow: var(--vantiq-hover-lift-shadow);
    filter: none;
    border-color: rgba(255,255,255,0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
}

.home-rating-row.compact-row:hover::after,
.home-rating-row.compact-row:focus-visible::after {
    opacity: 1;
}

.home-rating-row > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 560px) {
    .home-rating-row.compact-row:hover,
    .home-rating-row.compact-row:focus-visible {
        transform: translateY(-3px) scale(1.006);
    }
}

/* Stage 9.1i home TOP-10 interaction fix: mirror ratings table lift, keep hover highlight nearly invisible. */
.home-rating-card,
.home-rating-list {
    overflow: visible !important;
}

.home-rating-row.compact-row {
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    will-change: transform, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition:
        transform 260ms cubic-bezier(.2,.8,.2,1),
        filter 260ms ease,
        border-color 220ms ease,
        background 220ms ease !important;
}

.home-rating-row.compact-row:hover,
.home-rating-row.compact-row:focus-visible {
    z-index: 20;
    transform: translate3d(0, -5px, 0) scale(1.015) !important;
    filter: drop-shadow(0 22px 40px rgba(0,0,0,0.30));
    box-shadow: none !important;
    border-color: rgba(136, 166, 226, 0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.064), rgba(255,255,255,0.033));
}

.home-rating-row.compact-row::after {
    opacity: 0 !important;
    background: radial-gradient(circle at 14% 0%, rgba(255,255,255,0.035), transparent 40%);
}

.home-rating-row.compact-row:hover::after,
.home-rating-row.compact-row:focus-visible::after {
    opacity: 0.18 !important;
}

@media (max-width: 560px) {
    .home-rating-row.compact-row:hover,
    .home-rating-row.compact-row:focus-visible {
        transform: translate3d(0, -3px, 0) scale(1.008) !important;
    }
}

/* Stage 9.1j: final TOP-10 premium hover and tier color parity with ratings. */
.home-rating-card {
    overflow: hidden !important;
    border-radius: var(--radius-xl);
}

.home-rating-card::before,
.home-analysis-card::before {
    inset: 0;
    border-radius: inherit;
}

.home-rating-list {
    overflow: visible !important;
    padding: 4px 0 2px;
}

.home-rating-row.compact-row {
    --home-top10-row-bg: linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.030));
    --home-top10-row-bg-hover: linear-gradient(135deg, rgba(255,255,255,0.058), rgba(255,255,255,0.032));
    transform: translate3d(0, 0, 0) scale(1) !important;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
        transform 360ms cubic-bezier(.16, 1, .3, 1),
        filter 360ms cubic-bezier(.16, 1, .3, 1),
        border-color 260ms ease,
        background 260ms ease !important;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    box-shadow: none !important;
    background: var(--home-top10-row-bg) !important;
    border-color: rgba(255,255,255,0.065) !important;
    contain: paint;
}

.home-rating-row.compact-row:hover,
.home-rating-row.compact-row:focus-visible {
    z-index: 20;
    transform: translate3d(0, 0, 0) scale(1.018) !important;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,0.28));
    background: var(--home-top10-row-bg-hover) !important;
    border-color: rgba(142, 166, 218, 0.125) !important;
    box-shadow: none !important;
}

.home-rating-row.compact-row::after {
    opacity: 0 !important;
}

.home-rating-row.compact-row:hover::after,
.home-rating-row.compact-row:focus-visible::after {
    opacity: 0.08 !important;
}

.home-rating-row--tier-s .home-rating-row__tier,
.home-analysis-spotlight--tier-s .home-analysis-spotlight__tier {
    color: rgba(231, 242, 255, 0.98);
    border-color: rgba(140, 182, 255, 0.34);
    background: linear-gradient(135deg, rgba(72, 129, 255, 0.20), rgba(112, 90, 255, 0.13));
}

.home-rating-row--tier-a .home-rating-row__tier,
.home-analysis-spotlight--tier-a .home-analysis-spotlight__tier {
    color: var(--vantiq-good-text);
    border-color: var(--vantiq-good-border);
    background: var(--vantiq-good-soft);
}

.home-rating-row--tier-b .home-rating-row__tier,
.home-analysis-spotlight--tier-b .home-analysis-spotlight__tier {
    color: rgba(202, 224, 255, 0.96);
    border-color: rgba(94, 151, 255, 0.22);
    background: rgba(70, 128, 255, 0.08);
}

.home-rating-row--tier-c .home-rating-row__tier,
.home-analysis-spotlight--tier-c .home-analysis-spotlight__tier {
    color: var(--vantiq-text-secondary);
}

.home-rating-row--tier-d .home-rating-row__tier,
.home-rating-row--tier-e .home-rating-row__tier,
.home-analysis-spotlight--tier-d .home-analysis-spotlight__tier,
.home-analysis-spotlight--tier-e .home-analysis-spotlight__tier {
    color: var(--vantiq-warn-text);
    border-color: var(--vantiq-warn-border);
    background: var(--vantiq-warn-soft);
}

@media (max-width: 560px) {
    .home-rating-row.compact-row:hover,
    .home-rating-row.compact-row:focus-visible {
        transform: translate3d(0, 0, 0) scale(1.010) !important;
        filter: drop-shadow(0 14px 24px rgba(0,0,0,0.24));
    }
}


/* Stage 9.1k: TOP-10 rows use the same stable lift mechanics as ratings table. */
.home-rating-card {
    overflow: hidden !important;
    border-radius: var(--radius-xl);
}

.home-rating-card::before,
.home-analysis-card::before {
    border-radius: inherit;
}

.home-rating-list {
    position: relative;
    z-index: 1;
    overflow: visible !important;
    padding: 8px 0 8px;
}

.home-rating-row.compact-row {
    --home-top10-row-surface: rgba(255,255,255,0.044);
    --home-top10-row-border: rgba(126, 153, 206, 0.16);
    position: relative;
    isolation: isolate;
    transform: translateY(0) scale(1) !important;
    transform-origin: center center;
    transition: var(--vantiq-hover-lift-transition), filter 220ms ease !important;
    will-change: transform;
    filter: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.030)) !important;
    border-color: var(--home-top10-row-border) !important;
    contain: none !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home-rating-row.compact-row:hover,
.home-rating-row.compact-row:focus-visible {
    --home-top10-row-surface: rgba(255,255,255,0.056);
    --home-top10-row-border: rgba(136, 166, 226, 0.22);
    z-index: 30;
    transform: var(--vantiq-hover-lift-transform) !important;
    filter: drop-shadow(0 22px 40px rgba(0,0,0,0.30)) !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.056), rgba(255,255,255,0.032)) !important;
    border-color: var(--home-top10-row-border) !important;
}

.home-rating-row.compact-row::after,
.home-rating-row.compact-row:hover::after,
.home-rating-row.compact-row:focus-visible::after {
    opacity: 0 !important;
    content: none !important;
}

.home-rating-row--tier-s .home-rating-row__tier,
.home-analysis-spotlight--tier-s .home-analysis-spotlight__tier {
    color: rgba(255, 231, 169, 0.98);
    border-color: rgba(255, 178, 70, 0.54);
    background: linear-gradient(135deg, rgba(255, 148, 54, 0.30), rgba(255, 205, 86, 0.16));
    box-shadow: inset 0 0 22px rgba(255, 166, 62, 0.10);
}

.home-rating-row--tier-a .home-rating-row__tier,
.home-analysis-spotlight--tier-a .home-analysis-spotlight__tier {
    color: rgba(231, 211, 255, 0.98);
    border-color: rgba(169, 119, 255, 0.50);
    background: linear-gradient(135deg, rgba(137, 86, 255, 0.28), rgba(204, 107, 255, 0.14));
    box-shadow: inset 0 0 22px rgba(169, 119, 255, 0.09);
}

.home-rating-row--tier-b .home-rating-row__tier,
.home-analysis-spotlight--tier-b .home-analysis-spotlight__tier {
    color: rgba(205, 226, 255, 0.98);
    border-color: rgba(93, 156, 255, 0.48);
    background: linear-gradient(135deg, rgba(62, 126, 255, 0.27), rgba(86, 182, 255, 0.13));
    box-shadow: inset 0 0 22px rgba(93, 156, 255, 0.08);
}

.home-rating-row--tier-c .home-rating-row__tier,
.home-analysis-spotlight--tier-c .home-analysis-spotlight__tier {
    color: rgba(190, 255, 231, 0.96);
    border-color: rgba(74, 214, 173, 0.40);
    background: linear-gradient(135deg, rgba(29, 178, 137, 0.20), rgba(77, 211, 190, 0.10));
}

.home-rating-row--tier-d .home-rating-row__tier,
.home-analysis-spotlight--tier-d .home-analysis-spotlight__tier {
    color: rgba(255, 220, 157, 0.96);
    border-color: rgba(226, 166, 78, 0.42);
    background: linear-gradient(135deg, rgba(197, 127, 52, 0.20), rgba(232, 186, 99, 0.10));
}

.home-rating-row--tier-e .home-rating-row__tier,
.home-analysis-spotlight--tier-e .home-analysis-spotlight__tier {
    color: rgba(255, 190, 190, 0.96);
    border-color: rgba(255, 100, 115, 0.42);
    background: linear-gradient(135deg, rgba(218, 68, 86, 0.22), rgba(255, 118, 118, 0.10));
}

@media (max-width: 560px) {
    .home-rating-row.compact-row:hover,
    .home-rating-row.compact-row:focus-visible {
        transform: translateY(-3px) scale(1.008) !important;
        filter: drop-shadow(0 14px 24px rgba(0,0,0,0.24)) !important;
    }
}


/* Stage 9.1l home TOP-10 stable hover: animate the row from a fixed shell.
   The shell keeps the pointer hitbox static, so the visual lift no longer flickers
   when the transformed row moves under the cursor. */
.home-rating-list {
    overflow: visible !important;
    gap: 10px;
}

.home-rating-row-shell {
    position: relative;
    display: block;
    border-radius: 22px;
    isolation: isolate;
    animation: none;
    transform: translateZ(0);
}

.home-rating-row-shell > .home-rating-row.compact-row {
    width: 100%;
    animation: none !important;
    transform: translate3d(0,0,0) scale(1) !important;
    transform-origin: center center;
    transition:
        transform 320ms cubic-bezier(.16, 1, .3, 1),
        filter 320ms cubic-bezier(.16, 1, .3, 1),
        border-color 220ms ease,
        background 220ms ease !important;
    will-change: transform, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.030)) !important;
    border-color: rgba(126, 153, 206, 0.16) !important;
}

.home-rating-row-shell:hover > .home-rating-row.compact-row,
.home-rating-row-shell:focus-within > .home-rating-row.compact-row {
    z-index: 30;
    transform: var(--vantiq-hover-lift-transform) !important;
    filter: drop-shadow(0 22px 40px rgba(0,0,0,0.30)) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.060), rgba(255,255,255,0.034)) !important;
    border-color: rgba(136, 166, 226, 0.22) !important;
}

.home-rating-row-shell > .home-rating-row.compact-row::after,
.home-rating-row-shell:hover > .home-rating-row.compact-row::after,
.home-rating-row-shell:focus-within > .home-rating-row.compact-row::after {
    content: none !important;
    opacity: 0 !important;
}

@media (max-width: 560px) {
    .home-rating-row-shell:hover > .home-rating-row.compact-row,
    .home-rating-row-shell:focus-within > .home-rating-row.compact-row {
        transform: translateY(-3px) scale(1.008) !important;
        filter: drop-shadow(0 14px 24px rgba(0,0,0,0.24)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-rating-row-shell,
    .home-rating-row-shell > .home-rating-row.compact-row,
    .home-rating-row-shell:hover > .home-rating-row.compact-row,
    .home-rating-row-shell:focus-within > .home-rating-row.compact-row {
        animation: none !important;
        transform: none !important;
        transition: none !important;
        filter: none !important;
    }
}


/* Stage 9.2 release legal shell */
.site-footer {
    width: min(100%, 1180px);
    margin: 48px auto 0;
    padding: 18px 0 30px;
    border-top: 1px solid rgba(128, 153, 200, 0.18);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 28px);
}

.site-footer__links a {
    color: rgba(220, 227, 245, 0.68);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 180ms ease, opacity 180ms ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: rgba(255,255,255,0.94);
}

.site-footer__note {
    margin: 14px 0 0;
    text-align: center;
    color: rgba(169, 181, 210, 0.58);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.legal-hero,
.legal-card,
.error-page {
    width: min(100%, 980px);
    margin: 0 auto;
}

.legal-hero {
    padding: 44px 0 24px;
}

.legal-hero__eyebrow,
.legal-hero__updated {
    margin: 0;
    color: rgba(155, 180, 235, 0.72);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-hero h1,
.error-page h1 {
    margin: 12px 0 12px;
    color: rgba(248, 250, 255, 0.96);
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.legal-hero__lead,
.error-page p {
    margin: 0;
    max-width: 780px;
    color: rgba(215, 224, 246, 0.76);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.7;
}

.legal-hero__updated {
    margin-top: 18px;
    text-transform: none;
    letter-spacing: 0;
}

.legal-card {
    padding: 28px;
    border: 1px solid rgba(128, 153, 200, 0.13);
    border-radius: 32px;
    background:
        radial-gradient(circle at 85% 0%, rgba(88, 145, 255, 0.10), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.046), rgba(255,255,255,0.022));
    box-shadow: 0 22px 58px rgba(0,0,0,0.26);
}

.legal-section + .legal-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.legal-section h2 {
    margin: 0 0 12px;
    color: rgba(246, 248, 255, 0.94);
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.legal-section p,
.legal-section li {
    color: rgba(211, 220, 242, 0.74);
    font-size: var(--text-md);
    line-height: 1.72;
}

.legal-section p {
    margin: 0;
}

.legal-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.legal-section li + li {
    margin-top: 8px;
}

.error-page {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0;
}

.error-page__code {
    margin: 0;
    color: rgba(155, 180, 235, 0.70);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

@media (max-width: 760px) {
    .site-footer {
        margin-top: 36px;
        padding: 16px 0 24px;
    }

    .site-footer__links {
        justify-content: center;
        gap: 12px 18px;
    }

    .legal-hero {
        padding-top: 34px;
    }

    .legal-card {
        padding: 22px;
        border-radius: 26px;
    }
}

@media (max-width: 520px) {
    .site-footer__links a {
        font-size: var(--text-xs);
    }

    .site-footer__note {
        font-size: var(--text-xs);
    }

    .legal-hero h1,
    .error-page h1 {
        font-size: clamp(2rem, 14vw, 3.2rem);
    }

    .legal-card {
        padding: 18px;
    }
}

/* Stage 9.3 auth foundation */
.auth-shell,
.account-shell {
    min-height: 58vh;
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 72px) 0;
}

.auth-panel,
.account-panel {
    width: min(100%, 540px);
    border: 1px solid rgba(106, 132, 190, 0.24);
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(90, 110, 180, 0.20), transparent 42%),
        linear-gradient(145deg, rgba(17, 25, 44, 0.94), rgba(8, 13, 26, 0.94));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
    padding: clamp(24px, 4vw, 38px);
}

.auth-panel__head,
.account-panel__head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-panel__eyebrow,
.account-panel__eyebrow {
    margin: 0;
    color: rgba(145, 169, 220, 0.72);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-panel h1,
.account-panel h1 {
    margin: 0;
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    letter-spacing: -0.055em;
}

.auth-panel p,
.account-panel p {
    margin: 0;
    color: rgba(184, 196, 222, 0.82);
    line-height: 1.65;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 126, 126, 0.28);
    border-radius: 18px;
    background: rgba(255, 83, 83, 0.10);
    color: rgba(255, 179, 179, 0.95);
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: rgba(166, 186, 226, 0.82);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(112, 138, 202, 0.24);
    border-radius: 18px;
    background: rgba(8, 14, 28, 0.58);
    color: rgba(240, 245, 255, 0.96);
    font: inherit;
    font-weight: 700;
    padding: 0 16px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-form input:focus {
    border-color: var(--brand-border);
    box-shadow: 0 0 0 4px var(--focus-ring-soft);
    background: rgba(12, 20, 40, 0.72);
}

.auth-form__hint {
    font-size: var(--text-sm);
}

.auth-submit,
.account-home,
.account-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 0;
    border-radius: 18px;
    color: #031108;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 260ms cubic-bezier(.16, 1, .3, 1), box-shadow 260ms ease, filter 220ms ease, background 220ms ease;
}

.auth-submit,
.account-home {
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.auth-submit:hover,
.auth-submit:focus-visible,
.account-home:hover,
.account-home:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    filter: brightness(1.04);
}

.account-logout {
    background: rgba(42, 52, 80, 0.94);
    color: var(--text-primary);
    box-shadow: none;
}

.account-logout:hover,
.account-logout:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(7, 12, 24, 0.26);
    filter: brightness(1.04);
}

.auth-switch {
    margin-top: 20px !important;
    color: rgba(169, 183, 209, 0.78) !important;
}

.auth-switch a,
.account-next a {
    color: rgba(176, 197, 255, 0.98);
    font-weight: 700;
    text-decoration: none;
}

.account-panel {
    width: min(100%, 680px);
}

.account-panel__success {
    color: rgba(105, 240, 186, 0.92) !important;
    font-weight: 700;
}

.account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(112, 138, 202, 0.20);
    border-radius: 20px;
    background: rgba(16, 24, 44, 0.72);
}

.account-card + .account-card,
.account-next,
.account-actions {
    margin-top: 14px;
}

.account-card__label {
    color: rgba(147, 165, 199, 0.76);
    font-weight: 700;
}

.account-next {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(8, 14, 28, 0.42);
}

.account-next h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.account-next ul {
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(184, 196, 222, 0.82);
    line-height: 1.7;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.account-actions form {
    margin: 0;
}

.account-home,
.account-logout {
    padding: 0 22px;
}

@media (max-width: 560px) {
    .auth-shell,
    .account-shell {
        padding: 26px 0 44px;
    }

    .auth-panel,
    .account-panel {
        border-radius: 26px;
    }

    .account-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-actions form,
    .account-home,
    .account-logout {
        width: 100%;
    }
}

/* Stage 9.4 watchlist foundation */
.watchlist-shell {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 4vw, 54px) 0;
}

.watchlist-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(106, 132, 190, 0.22);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(18, 28, 52, 0.92), rgba(8, 13, 27, 0.90));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.watchlist-head h1 {
    margin: 0 0 8px;
    font-size: clamp(2.1rem, 6vw, 3.45rem);
    letter-spacing: -0.055em;
}

.watchlist-head p {
    margin: 0;
    max-width: 620px;
    color: rgba(184, 196, 222, 0.82);
    line-height: 1.6;
}

.watchlist-head__action,
.watchlist-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    color: #031108;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 260ms cubic-bezier(.16, 1, .3, 1), box-shadow 260ms ease, filter 220ms ease;
}

.watchlist-head__action:hover,
.watchlist-head__action:focus-visible,
.watchlist-empty a:hover,
.watchlist-empty a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    filter: brightness(1.04);
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.watchlist-card {
    position: relative;
    display: grid;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(106, 132, 190, 0.20);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(20, 30, 54, 0.90), rgba(12, 18, 34, 0.92));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    transition: transform 300ms cubic-bezier(.16, 1, .3, 1), border-color 240ms ease, box-shadow 300ms ease;
}

.watchlist-card:hover,
.watchlist-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(121, 151, 224, 0.34);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.26);
}

.watchlist-card__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.watchlist-card__identity {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.watchlist-card__identity strong {
    font-family: "Exo 2", Manrope, sans-serif;
    font-size: var(--text-base);
    letter-spacing: -0.02em;
}

.watchlist-card__identity span,
.account-watchlist__item small {
    overflow: hidden;
    color: rgba(151, 166, 199, 0.82);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-tier-badge {
    min-width: 44px;
    height: 34px;
    gap: 5px;
    border-radius: 14px;
    font-size: var(--text-md);
}

.watchlist-tier-badge strong {
    font-size: 0.9rem;
}

.watchlist-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(178, 191, 220, 0.86);
    font-weight: 700;
}

.watchlist-card__change--positive { color: var(--vantiq-good-text); }
.watchlist-card__change--danger { color: var(--vantiq-danger-text); }
.watchlist-card__change--neutral { color: rgba(178, 191, 220, 0.78); }

.watchlist-card__form button {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(134, 154, 198, 0.18);
    border-radius: 15px;
    background: rgba(35, 44, 70, 0.70);
    color: rgba(215, 224, 246, 0.92);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.watchlist-card__form button:hover,
.watchlist-card__form button:focus-visible {
    transform: translateY(-1px);
    background: rgba(47, 58, 90, 0.86);
    border-color: rgba(134, 154, 198, 0.30);
}

.watchlist-empty,
.watchlist-alert {
    border: 1px solid rgba(106, 132, 190, 0.20);
    border-radius: 24px;
    background: rgba(13, 20, 38, 0.72);
    padding: 22px;
}

.watchlist-empty h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.watchlist-empty p,
.watchlist-alert {
    color: rgba(184, 196, 222, 0.84);
}

.watchlist-alert--success {
    border-color: rgba(84, 228, 175, 0.22);
    background: rgba(31, 179, 129, 0.10);
    color: rgba(126, 245, 204, 0.96);
}

.watchlist-alert--danger {
    border-color: rgba(255, 126, 126, 0.24);
    background: rgba(255, 83, 83, 0.10);
    color: rgba(255, 179, 179, 0.96);
}

.account-watchlist {
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(112, 138, 202, 0.18);
    border-radius: 22px;
    background: rgba(8, 14, 28, 0.42);
}

.account-watchlist__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.account-watchlist__head h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.account-watchlist__head p,
.account-watchlist__empty {
    margin: 0;
    color: rgba(184, 196, 222, 0.78);
}

.account-watchlist__head a {
    color: rgba(176, 197, 255, 0.98);
    font-weight: 700;
    text-decoration: none;
}

.account-watchlist__list {
    display: grid;
    gap: 8px;
}

.account-watchlist__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(112, 138, 202, 0.12);
    border-radius: 16px;
    background: rgba(17, 25, 45, 0.62);
    color: inherit;
    text-decoration: none;
    transition: transform 240ms cubic-bezier(.16, 1, .3, 1), background 220ms ease, border-color 220ms ease;
}

.account-watchlist__item:hover,
.account-watchlist__item:focus-visible {
    transform: translateY(-2px);
    background: rgba(24, 34, 60, 0.78);
    border-color: rgba(112, 138, 202, 0.22);
}

.account-watchlist__item > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.account-watchlist__item em {
    min-width: 48px;
    height: 28px;
    border-radius: 12px;
    font-size: var(--text-sm);
    font-style: normal;
}

.issuer-logo--xs {
    width: 28px;
    height: 28px;
    border-radius: 12px;
    font-size: var(--text-xs);
}

.security-watchlist-action {
    margin: 0;
}

.security-watchlist-action__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(112, 138, 202, 0.22);
    border-radius: var(--radius-md);
    background: rgba(15, 24, 47, 0.72);
    color: rgba(210, 223, 255, 0.92);
    font: inherit;
    font-size: var(--text-md);
    font-weight: 700;
    padding: 0 13px;
    cursor: pointer;
    transition: transform 240ms cubic-bezier(.16, 1, .3, 1), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.security-watchlist-action__button svg {
    width: 17px;
    height: 17px;
}

.security-watchlist-action__button:hover,
.security-watchlist-action__button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(126, 151, 255, 0.42);
    background: rgba(35, 49, 90, 0.82);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.20);
}

.security-watchlist-action__button.is-saved {
    border-color: rgba(84, 228, 175, 0.28);
    background: rgba(26, 131, 101, 0.18);
    color: rgba(125, 245, 204, 0.96);
}

@media (max-width: 820px) {
    .security-watchlist-action__button {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        aspect-ratio: 1;
        justify-content: center;
        gap: 0;
        padding: 0;
    }

    .security-watchlist-action__button svg {
        width: 18px;
        height: 18px;
    }

    .security-watchlist-action__button span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
        padding: 0;
    }
}

@media (max-width: 680px) {
    .watchlist-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .watchlist-head__action {
        width: 100%;
    }
}

/* Stage 9.5 personal surfaces: separate watchlist access from account and show rating rank in saved papers. */
















.account-profile-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid rgba(112, 138, 202, 0.14);
    border-radius: 20px;
    background: rgba(8, 14, 28, 0.34);
}

.account-profile-note span {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(120, 146, 255, 0.12);
    color: rgba(190, 207, 255, 0.95);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.account-profile-note p {
    margin: 0;
    color: rgba(176, 190, 220, 0.76) !important;
    font-size: var(--text-md);
    line-height: 1.55;
}

.watchlist-card__meta--rating {
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(112, 138, 202, 0.12);
    border-radius: 16px;
    background: rgba(8, 14, 28, 0.34);
}

.watchlist-card__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-control);
    color: var(--text-secondary);
    font-family: "Exo 2", Manrope, sans-serif;
    font-size: var(--text-md);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.watchlist-card__rank:hover,
.watchlist-card__rank:focus-visible {
    transform: translateY(-1px);
    border-color: var(--brand-border);
    background: var(--brand-soft);
    color: var(--text-primary);
}

@media (max-width: 560px) {
    
}

/* Stage 9.5a watchlist entry polish: clear guest state and native-tooltip-free auth toast. */


















@media (max-width: 560px) {
    
}


/* Stage 9.5b guest watchlist notice: keep the message in the VANTIQ palette and dismiss it only on outside click or Esc. */












@media (max-width: 560px) {
    
}

/* Stage 9.6 drawer/search overlay guard: the home quick-action rail must never float above the off-canvas menu. */





/* Stage 9.7 sticky-search stacking guard: the home quick-action rail is content, not chrome.
   It must scroll underneath the sticky header/search instead of painting over it. */
.page-chrome {
    z-index: 220;
}





/* Stage 9.9 sticky search scroll-under polish: the quick-action rail remains
   ordinary page content. The sticky chrome owns the higher layer, without using
   pseudo-elements that can create a dark tab above the header. */
.main-shell--full {
    isolation: isolate;
}

.page-chrome {
    z-index: 520;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(9, 14, 26, 0.992), rgba(8, 13, 25, 0.988));
    background-clip: padding-box;
    -webkit-backdrop-filter: blur(18px) saturate(1.04);
    backdrop-filter: blur(18px) saturate(1.04);
}

.page-chrome.is-scrolled {
    background: linear-gradient(145deg, rgba(10, 15, 28, 0.996), rgba(8, 13, 25, 0.994));
    border-color: rgba(130, 153, 215, 0.16);
    box-shadow: 0 22px 54px rgba(0,0,0,0.42), 0 0 0 1px rgba(0,0,0,0.18);
}





@media (max-width: 560px) {
    .page-chrome.is-scrolled {
        background: rgba(7, 12, 23, 0.985);
        border: 1px solid rgba(130, 153, 215, 0.14);
        border-radius: 22px;
        box-shadow: 0 18px 42px rgba(0,0,0,0.38);
        backdrop-filter: blur(18px) saturate(1.05);
        -webkit-backdrop-filter: blur(18px) saturate(1.05);
        padding: 6px;
    }
}

/* Stage: market movers — dedicated market dynamics page and compact home slice. */
.market-page {
    display: grid;
    gap: 20px;
}
.market-movers-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at 18% 0%, rgba(91, 127, 255, 0.15), transparent 36%),
        linear-gradient(150deg, rgba(17, 24, 41, 0.92), rgba(8, 13, 26, 0.97));
}
.market-movers-hero__copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}
.market-movers-hero__eyebrow {
    margin: 0;
    color: rgba(155, 177, 216, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: var(--text-xs);
    font-weight: 700;
}
.market-movers-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1;
    letter-spacing: -0.055em;
}
.market-movers-hero p {
    margin: 0;
    color: rgba(190, 203, 226, 0.84);
    line-height: 1.6;
    font-weight: 600;
}
.market-movers-hero__stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.market-movers-hero__stats span {
    min-width: 116px;
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.045);
}
.market-movers-hero__stats strong {
    font-family: "Exo 2", Manrope, sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
}
.market-movers-hero__stats small {
    color: rgba(158, 174, 204, 0.76);
    font-weight: 700;
}
.market-movers-card__head {
    align-items: flex-start;
    gap: 18px;
}
.market-movers-card__subtitle {
    margin: 6px 0 0;
    color: rgba(158, 174, 204, 0.78);
    font-weight: 600;
}
.market-period-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.market-period-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    color: rgba(215, 225, 244, 0.84);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.market-period-tab:hover,
.market-period-tab:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(116, 149, 255, 0.32);
    background: rgba(91, 127, 255, 0.10);
}
.market-period-tab--active {
    color: rgba(239, 244, 255, 0.98);
    border-color: rgba(107, 143, 255, 0.40);
    background: linear-gradient(135deg, rgba(76, 111, 255, 0.22), rgba(76, 218, 174, 0.08));
}
.home-market-movers__actions {
    position: relative;
    z-index: 20;
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 156px;
}
.home-market-period-menu {
    position: relative;
    z-index: 30;
    display: block;
}
.home-market-period-menu__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    min-width: 112px;
    padding: 0 32px 0 13px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 160, 216, 0.18);
    background: linear-gradient(135deg, rgba(92, 118, 174, 0.18), rgba(122, 151, 216, 0.08));
    color: rgba(226, 235, 255, 0.96);
    box-shadow: inset 0 0 18px rgba(130, 165, 230, 0.045);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.home-market-period-menu__button::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(205, 218, 247, 0.82);
    border-bottom: 2px solid rgba(205, 218, 247, 0.82);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 160ms ease;
}
.home-market-period-menu__button::-webkit-details-marker {
    display: none;
}
.home-market-period-menu__button:hover,
.home-market-period-menu[open] .home-market-period-menu__button {
    transform: translateY(-1px);
    border-color: rgba(158, 187, 245, 0.34);
    background: linear-gradient(135deg, rgba(92, 118, 174, 0.26), rgba(122, 151, 216, 0.12));
    box-shadow: 0 14px 34px rgba(0,0,0,0.18), inset 0 0 18px rgba(130, 165, 230, 0.07);
}
.home-market-period-menu[open] .home-market-period-menu__button::after {
    transform: translateY(-35%) rotate(225deg);
}
.home-market-period-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 7px;
    min-width: 150px;
    padding: 9px;
    border-radius: 18px;
    border: 1px solid rgba(126, 149, 205, 0.20);
    background: linear-gradient(145deg, rgba(29, 40, 67, 0.985), rgba(13, 22, 41, 0.995));
    box-shadow: 0 24px 56px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.055);
}
.home-market-period-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 160, 216, 0.12);
    color: rgba(187, 202, 230, 0.84);
    background: rgba(255,255,255,0.028);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.home-market-period-option:hover,
.home-market-period-option:focus-visible,
.home-market-period-option--active {
    color: var(--text-primary);
    border-color: var(--brand-border);
    background: var(--brand-soft);
}
.market-movers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.market-movers-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.market-movers-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.market-movers-panel__head h2,
.market-movers-panel__head h3,
.home-market-movers__panel h3 {
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.market-movers-panel__title {
    color: rgba(239, 244, 255, 0.96);
    font-weight: 700;
}

.market-movers-panel__head span {
    color: rgba(151, 169, 200, 0.72);
    font-size: var(--text-sm);
    font-weight: 700;
}
.market-mover-list,
.home-market-movers__list {
    display: grid;
    gap: 10px;
}
.market-mover-row,
.home-market-mover-row {
    position: relative;
    display: grid;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--market-mover-border, rgba(255,255,255,0.075));
    background: linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.026));
    isolation: isolate;
    overflow: hidden;
    transition: var(--vantiq-hover-lift-transition);
}
.market-mover-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 20px;
}
.market-mover-row:hover,
.market-mover-row:focus-visible,
.home-market-mover-row:hover,
.home-market-mover-row:focus-visible {
    transform: translateY(-3px) scale(1.006);
    border-color: color-mix(in srgb, var(--market-mover-border, rgba(255,255,255,0.13)) 70%, rgba(255,255,255,0.18));
    box-shadow: var(--vantiq-hover-lift-shadow);
}
.market-mover-row--positive,
.home-market-mover-row--positive {
    --market-mover-accent: rgba(142, 232, 205, 0.92);
}
.market-mover-row--negative,
.home-market-mover-row--negative {
    --market-mover-accent: rgba(245, 176, 190, 0.92);
}
.market-mover-row__main,
.home-market-mover-row__main {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.market-mover-row__ticker,
.home-market-mover-row__main strong {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: rgba(243, 247, 255, 0.96);
    line-height: 1.1;
}
.market-mover-row__name,
.home-market-mover-row__main small {
    color: rgba(154, 170, 199, 0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.market-mover-row__metrics {
    display: grid;
    gap: 3px;
    justify-items: end;
    text-align: right;
    white-space: nowrap;
}
.market-mover-row__metrics strong,
.home-market-mover-row__change {
    color: var(--market-mover-accent, rgba(229, 237, 255, 0.95));
    font-family: "Exo 2", Manrope, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.market-mover-row__metrics small {
    color: rgba(150, 166, 195, 0.76);
    font-weight: 700;
}
.home-market-movers {
    margin-top: 20px;
}
.home-market-movers__head {
    align-items: flex-start;
    gap: 18px;
}
.home-market-movers__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.home-market-movers__panel {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}
.home-market-movers__list {
    align-content: start;
}
.home-market-mover-row {
    align-self: start;
}
.home-market-mover-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 18px;
}
.home-market-mover-row__main {
    gap: 2px;
}
.home-market-mover-row__main strong,
.home-market-mover-row__change {
    font-size: var(--text-md);
}
.home-market-mover-row__main small {
    font-size: var(--text-sm);
}
@media (max-width: 920px) {
    .market-movers-hero,
    .market-movers-card__head {
        display: grid;
    }
    .market-movers-hero__stats,
    .market-period-tabs {
        justify-content: flex-start;
    }
    .home-market-movers__actions {
        justify-items: start;
        min-width: 0;
    }
    .market-movers-grid,
    .home-market-movers__grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .market-movers-hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .market-period-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .market-period-tab {
        width: 100%;
    }
    .home-market-period-menu__panel {
        right: auto;
        left: 0;
    }
    .market-mover-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .market-mover-row__metrics {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }
}

/* Refinement: market dynamics period control and AJAX updates. */
.market-movers-card {
    position: relative;
    overflow: visible;
}
.market-movers-card__title {
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}
.market-movers-card__head {
    align-items: flex-start;
    justify-content: space-between;
}
.market-period-menu {
    position: relative;
    z-index: 30;
    display: block;
    justify-self: end;
    flex: 0 0 auto;
}
.market-period-menu__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 118px;
    padding: 0 34px 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 160, 216, 0.18);
    background: linear-gradient(135deg, rgba(92, 118, 174, 0.18), rgba(122, 151, 216, 0.08));
    color: rgba(226, 235, 255, 0.96);
    box-shadow: inset 0 0 18px rgba(130, 165, 230, 0.045);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.market-period-menu__button::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(205, 218, 247, 0.82);
    border-bottom: 2px solid rgba(205, 218, 247, 0.82);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 160ms ease;
}
.market-period-menu__button::-webkit-details-marker {
    display: none;
}
.market-period-menu__button:hover,
.market-period-menu[open] .market-period-menu__button {
    transform: translateY(-1px);
    border-color: rgba(158, 187, 245, 0.34);
    background: linear-gradient(135deg, rgba(92, 118, 174, 0.26), rgba(122, 151, 216, 0.12));
    box-shadow: 0 14px 34px rgba(0,0,0,0.18), inset 0 0 18px rgba(130, 165, 230, 0.07);
}
.market-period-menu[open] .market-period-menu__button::after {
    transform: translateY(-35%) rotate(225deg);
}
.market-period-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 7px;
    min-width: 154px;
    padding: 9px;
    border-radius: 18px;
    border: 1px solid rgba(126, 149, 205, 0.20);
    background: linear-gradient(145deg, rgba(29, 40, 67, 0.985), rgba(13, 22, 41, 0.995));
    box-shadow: 0 24px 56px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.055);
}
.market-period-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 160, 216, 0.12);
    color: rgba(187, 202, 230, 0.84);
    background: rgba(255,255,255,0.028);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.market-period-option:hover,
.market-period-option:focus-visible,
.market-period-option--active {
    color: var(--text-primary);
    border-color: var(--brand-border);
    background: var(--brand-soft);
}
.market-mover-row,
.home-market-mover-row {
    border-color: rgba(127, 148, 198, 0.105);
}
.market-mover-row:hover,
.market-mover-row:focus-visible,
.home-market-mover-row:hover,
.home-market-mover-row:focus-visible {
    border-color: rgba(157, 179, 229, 0.20);
}
.market-movers-card.is-loading [data-market-movers-table],
.home-market-movers.is-loading [data-market-movers-table] {
    opacity: 0.46;
    pointer-events: none;
    transform: translateY(1px);
    transition: opacity 140ms ease, transform 140ms ease;
}
@media (max-width: 920px) {
    .market-movers-card__head {
        display: grid;
    }
    .market-period-menu {
        justify-self: start;
    }
}
@media (max-width: 560px) {
    .market-period-menu__panel {
        right: auto;
        left: 0;
    }
}

/* Market dynamics quality filter refinement. */
.market-movers-card__filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.market-quality-menu__button {
    min-width: 116px;
    border-color: rgba(124, 207, 185, 0.18);
    background: linear-gradient(135deg, rgba(82, 178, 155, 0.13), rgba(108, 142, 214, 0.075));
}
.market-quality-menu[open] .market-quality-menu__button,
.market-quality-menu__button:hover {
    border-color: rgba(139, 225, 203, 0.28);
    background: linear-gradient(135deg, rgba(82, 178, 155, 0.18), rgba(108, 142, 214, 0.105));
}
.market-quality-menu__panel {
    min-width: 148px;
}
@media (max-width: 920px) {
    .market-movers-card__filters {
        justify-content: flex-start;
    }
}
@media (max-width: 560px) {
    .market-movers-card__filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .market-movers-card__filters .market-period-menu,
    .market-movers-card__filters .market-period-menu__button {
        width: 100%;
    }
    .market-movers-card__filters .market-period-menu__panel {
        left: 0;
        right: auto;
    }
}

/* Deployment target marker shown only on staging/test contours. */
.deployment-badge {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 999px;
    background: rgba(8, 13, 24, 0.74);
    color: rgba(224, 242, 254, 0.9);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    pointer-events: none;
}

@media (max-width: 640px) {
    .deployment-badge {
        right: 12px;
        bottom: 12px;
        min-width: 40px;
        min-height: 22px;
        padding: 0 8px;
        font-size: var(--text-xs);
    }
}

/* Market dynamics tier filter: same calm color system as attractiveness rating. */
.market-tier-menu__button {
    min-width: 104px;
    border-color: rgba(165, 137, 244, 0.18);
    background: linear-gradient(135deg, rgba(112, 88, 220, 0.14), rgba(106, 139, 214, 0.07));
}
.market-tier-menu[open] .market-tier-menu__button,
.market-tier-menu__button:hover {
    border-color: rgba(183, 158, 255, 0.30);
    background: linear-gradient(135deg, rgba(112, 88, 220, 0.20), rgba(106, 139, 214, 0.10));
}
.market-tier-menu__panel {
    min-width: 118px;
}
@media (max-width: 560px) {
    .market-movers-card__filters {
        grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    }
}

/* Stage 7.1d quick-action logo chips: remove the framed rail and outer button shells.
   The row now behaves like a calm set of app/logo chips on the page surface:
   no common capsule outline, no individual button outline, only soft matte color tiles. */
































@media (max-width: 560px) {
    

    

    
}

/* Stage 7.1e mobile chrome opacity polish: keep the mobile header airy, but make
   its touch targets visually solid while removing the ghost outline around the
   search button. The sticky wrapper stays invisible; each control owns its own
   opaque surface, so page content cannot bleed through on scroll. */
@media (max-width: 560px) {
    .page-chrome,
    .page-chrome.is-scrolled {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        overflow: visible !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .menu-button {
        background: linear-gradient(145deg, rgba(12, 18, 32, 0.995), rgba(9, 14, 26, 0.99));
        border: 1px solid rgba(124, 145, 202, 0.18);
        box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.055);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .page-chrome.is-scrolled .menu-button {
        background: linear-gradient(145deg, rgba(12, 18, 32, 1), rgba(9, 14, 26, 0.996));
        border-color: rgba(136, 157, 216, 0.22);
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.30),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .topbar-brand,
    .topbar-brand__mark {
        opacity: 1;
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
    }

    .chrome-search {
        isolation: isolate;
        overflow: visible;
    }

    .chrome-search input[type="text"] {
        background: linear-gradient(145deg, rgba(10, 15, 28, 0.995), rgba(8, 13, 25, 0.99));
        border-color: rgba(124, 145, 202, 0.16);
        box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.045);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        background: linear-gradient(145deg, rgba(10, 15, 28, 1), rgba(8, 13, 25, 0.996));
        border-color: rgba(136, 157, 216, 0.20);
        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .chrome-search__button,
    .page-chrome.is-scrolled .chrome-search__button {
        background: linear-gradient(135deg, var(--brand) 0%, var(--brand) 52%, var(--brand-active) 100%);
        border: 0;
        box-shadow:
            0 12px 26px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            inset 0 -1px 0 rgba(0, 0, 0, 0.10);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .chrome-search__button:hover,
    .chrome-search__button:focus-visible,
    .page-chrome.is-scrolled .chrome-search__button:hover,
    .page-chrome.is-scrolled .chrome-search__button:focus-visible {
        background: linear-gradient(135deg, var(--brand-hover) 0%, var(--brand-hover) 52%, var(--brand-active) 100%);
        border: 0;
        box-shadow:
            0 14px 30px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.20),
            inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    }
}


/* News Event Feed responsive ownership must follow the base event-grid rules. */
@media (max-width: 780px) {
    .news-event-analysis {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .news-event-analysis__section--wide {
        grid-column: auto;
    }

    .news-event-analysis__section {
        padding-block: 12px 13px;
    }

    .news-event-analysis__heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .news-feed-item {
        padding-inline: 2px;
    }

    .news-event-disclosure__summary {
        width: 100%;
        justify-content: space-between;
    }

    .news-event-sources__list {
        gap: 7px 10px;
    }
}

/* Watchlist table refresh: quick access to rating, current price and company card. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.watchlist-table-shell {
    overflow: hidden;
    border: 1px solid rgba(107, 132, 194, 0.22);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(15, 24, 46, 0.88), rgba(7, 12, 26, 0.92));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.04);
}

.watchlist-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.watchlist-table th {
    padding: 15px 18px;
    color: rgba(165, 179, 211, 0.78);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.055em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(112, 138, 202, 0.14);
    background: rgba(12, 18, 34, 0.48);
}

.watchlist-table td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(112, 138, 202, 0.12);
}

.watchlist-table tbody tr:last-child td {
    border-bottom: 0;
}

.watchlist-row {
    transition: background 220ms ease, transform 220ms ease;
}

.watchlist-row:hover,
.watchlist-row:focus-within {
    background: rgba(35, 48, 82, 0.20);
}

.watchlist-table th:nth-child(1),
.watchlist-table td:nth-child(1) { width: 34%; }
.watchlist-table th:nth-child(2),
.watchlist-table td:nth-child(2) { width: 18%; }
.watchlist-table th:nth-child(3),
.watchlist-table td:nth-child(3) { width: 16%; }
.watchlist-table th:nth-child(4),
.watchlist-table td:nth-child(4) { width: 22%; }
.watchlist-table th:nth-child(5),
.watchlist-table td:nth-child(5) { width: 10%; }

.watchlist-security-link {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.watchlist-table__identity {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.watchlist-table__identity strong {
    overflow: hidden;
    font-family: "Exo 2", Manrope, sans-serif;
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.018em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-table__identity span,
.watchlist-table__price span {
    overflow: hidden;
    color: rgba(151, 166, 199, 0.82);
    font-size: var(--text-sm);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watchlist-table__price {
    color: rgba(230, 236, 252, 0.96);
}

.watchlist-table__price strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Exo 2", Manrope, sans-serif;
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.018em;
    white-space: nowrap;
}

.watchlist-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 86px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(136, 152, 190, 0.10);
    color: rgba(188, 200, 226, 0.92);
    font-family: "Exo 2", Manrope, sans-serif;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.watchlist-change--positive {
    background: rgba(88, 218, 160, 0.13);
    color: var(--vantiq-good-text);
}

.watchlist-change--danger {
    background: rgba(255, 117, 135, 0.13);
    color: var(--vantiq-danger-text);
}

.watchlist-change__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: var(--text-sm);
    line-height: 1;
}

.watchlist-rating-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.watchlist-table__tier--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    border-radius: 14px;
    background: rgba(110, 128, 166, 0.10);
    color: rgba(172, 185, 214, 0.78);
    font-weight: 700;
}

.watchlist-table__rank {
    white-space: nowrap;
}

.watchlist-table__form {
    display: flex;
    justify-content: flex-end;
}

.watchlist-table__form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 120, 135, 0.18);
    border-radius: var(--radius-md);
    background: rgba(70, 31, 43, 0.32);
    color: rgba(255, 196, 202, 0.94);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.watchlist-table__form button:hover,
.watchlist-table__form button:focus-visible {
    transform: translateY(-1px);
    background: rgba(100, 37, 50, 0.48);
    border-color: rgba(255, 136, 150, 0.30);
}

@media (max-width: 860px) {
    .watchlist-head {
        align-items: flex-start;
    }

    .watchlist-table-shell {
        border-radius: 24px;
    }

    .watchlist-table th,
    .watchlist-table td {
        padding-inline: 14px;
    }

    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) { width: 32%; }
    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) { width: 20%; }
    .watchlist-table th:nth-child(3),
    .watchlist-table td:nth-child(3) { width: 17%; }
    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) { width: 21%; }
    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) { width: 10%; }

    .watchlist-rating-cell {
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .watchlist-shell {
        gap: 14px;
        padding-top: 18px;
    }

    .watchlist-head {
        display: grid;
        gap: 14px;
        padding: 20px;
        border-radius: 24px;
    }

    .watchlist-head h1 {
        margin-bottom: 0;
        font-size: clamp(2rem, 11vw, 2.7rem);
        line-height: 0.98;
    }

    .watchlist-head__action {
        width: 100%;
        min-height: 44px;
    }

    .watchlist-table-shell {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .watchlist-table,
    .watchlist-table tbody,
    .watchlist-table tr,
    .watchlist-table td {
        display: block;
        width: 100% !important;
    }

    .watchlist-table thead {
        display: none;
    }

    .watchlist-table tbody {
        display: grid;
        gap: 12px;
    }

    .watchlist-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 11px 14px;
        padding: 16px;
        border: 1px solid rgba(106, 132, 190, 0.20);
        border-radius: 24px;
        background: linear-gradient(145deg, rgba(18, 28, 52, 0.92), rgba(8, 13, 27, 0.92));
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    }

    .watchlist-row:hover,
    .watchlist-row:focus-within {
        background: linear-gradient(145deg, rgba(22, 34, 62, 0.95), rgba(9, 15, 30, 0.94));
    }

    .watchlist-table td {
        padding: 0;
        border-bottom: 0;
    }

    .watchlist-table__security {
        grid-column: 1 / -1;
    }

    .watchlist-security-link {
        width: 100%;
    }

    .watchlist-table__price,
    .watchlist-table__change,
    .watchlist-table__rating {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
        padding-top: 10px !important;
        border-top: 1px solid rgba(112, 138, 202, 0.12);
    }

    .watchlist-table__price::before,
    .watchlist-table__change::before,
    .watchlist-table__rating::before {
        content: attr(data-label);
        color: rgba(151, 166, 199, 0.78);
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .watchlist-table__price strong {
        margin-bottom: 0;
        text-align: right;
    }

    .watchlist-table__price span {
        display: none;
    }

    .watchlist-table__change {
        justify-content: flex-end;
    }

    .watchlist-table__change::before {
        margin-right: auto;
    }

    .watchlist-change {
        min-width: 82px;
    }

    .watchlist-rating-cell {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .watchlist-table__action {
        grid-column: 1 / -1;
    }

    .watchlist-table__form button {
        width: 100%;
        min-height: 40px;
        border-radius: 15px;
    }
}

@media (max-width: 390px) {
    .watchlist-row {
        padding: 14px;
        border-radius: 22px;
    }

    .watchlist-table__identity strong {
        font-size: var(--text-md);
    }

    .watchlist-rating-cell {
        gap: 7px;
    }

    .watchlist-card__rank {
        min-width: 62px;
        padding-inline: 9px;
    }
}

/* Stage 9.6 watchlist table polish: compact actions, clean price/change and mobile rows. */
.watchlist-head {
    align-items: center;
}

.watchlist-head h1 {
    margin-bottom: 0;
}

.watchlist-table th:nth-child(1),
.watchlist-table td:nth-child(1) { width: 36%; }
.watchlist-table th:nth-child(2),
.watchlist-table td:nth-child(2) { width: 20%; }
.watchlist-table th:nth-child(3),
.watchlist-table td:nth-child(3) { width: 17%; }
.watchlist-table th:nth-child(4),
.watchlist-table td:nth-child(4) { width: 20%; }
.watchlist-table th:nth-child(5),
.watchlist-table td:nth-child(5) { width: 7%; }

.watchlist-change {
    min-width: 0;
    min-height: 0;
    padding: 0;
    gap: 6px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
}

.watchlist-change--positive,
.watchlist-change--danger {
    background: transparent;
}

.watchlist-change--positive {
    color: var(--vantiq-good-text);
}

.watchlist-change--danger {
    color: var(--vantiq-danger-text);
}

.watchlist-change__arrow {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: var(--text-base);
    font-weight: 700;
}

.watchlist-table__form {
    justify-content: center;
}

.watchlist-remove-button {
    box-sizing: border-box;
    display: grid !important;
    place-items: center;
    width: 34px !important;
    height: 34px;
    min-width: 34px;
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    appearance: none;
    -webkit-appearance: none;
    color: rgba(255, 250, 248, 0.98) !important;
    background: linear-gradient(135deg, #ff5952, #c72e2a) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 26px rgba(198, 46, 42, 0.34), 0 0 0 1px rgba(255,255,255,0.12) !important;
    cursor: pointer;
    transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.watchlist-remove-button:hover,
.watchlist-remove-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 16px 34px rgba(198, 46, 42, 0.42), 0 0 0 1px rgba(255,255,255,0.14) !important;
}

.watchlist-remove-button__glyph {
    width: 13px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.watchlist-remove-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 860px) {
    .watchlist-table th:nth-child(1),
    .watchlist-table td:nth-child(1) { width: 35%; }
    .watchlist-table th:nth-child(2),
    .watchlist-table td:nth-child(2) { width: 20%; }
    .watchlist-table th:nth-child(3),
    .watchlist-table td:nth-child(3) { width: 17%; }
    .watchlist-table th:nth-child(4),
    .watchlist-table td:nth-child(4) { width: 20%; }
    .watchlist-table th:nth-child(5),
    .watchlist-table td:nth-child(5) { width: 8%; }
}

@media (max-width: 680px) {
    .watchlist-shell {
        gap: 14px;
    }

    .watchlist-head {
        padding: 18px 18px 16px;
    }

    .watchlist-head h1 {
        font-size: clamp(2.15rem, 10vw, 2.72rem);
        letter-spacing: -0.06em;
    }

    .watchlist-table-shell {
        overflow: visible;
    }

    .watchlist-table tbody {
        gap: 10px;
    }

    .watchlist-row {
        position: relative;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) auto;
        gap: 10px 12px;
        padding: 14px 14px 13px;
        border-radius: 22px;
    }

    .watchlist-table__security {
        grid-column: 1 / -1;
        padding-right: 44px !important;
    }

    .watchlist-security-link {
        gap: 10px;
    }

    .watchlist-table__identity strong {
        font-size: var(--text-base);
    }

    .watchlist-table__identity span {
        font-size: var(--text-sm);
        line-height: 1.2;
    }

    .watchlist-table__price,
    .watchlist-table__change,
    .watchlist-table__rating {
        min-width: 0;
        padding-top: 9px !important;
        border-top: 1px solid rgba(112, 138, 202, 0.11);
    }

    .watchlist-table__price {
        grid-column: 1;
        grid-row: 2;
        display: block !important;
    }

    .watchlist-table__change {
        grid-column: 2;
        grid-row: 2;
        display: block !important;
    }

    .watchlist-table__rating {
        grid-column: 3;
        grid-row: 2;
        display: block !important;
    }

    .watchlist-table__price::before,
    .watchlist-table__change::before,
    .watchlist-table__rating::before {
        display: block;
        margin: 0 0 5px;
        color: rgba(151, 166, 199, 0.68);
        font-size: var(--text-xs);
        line-height: 1;
    }

    .watchlist-table__price strong {
        margin: 0;
        text-align: left;
        font-size: var(--text-md);
        line-height: 1.12;
    }

    .watchlist-table__price span {
        display: block;
        margin-top: 3px;
        font-size: var(--text-xs);
    }

    .watchlist-change {
        justify-content: flex-start;
        gap: 4px;
        font-size: var(--text-md);
        line-height: 1.12;
    }

    .watchlist-change__arrow {
        font-size: var(--text-md);
    }

    .watchlist-rating-cell {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: wrap;
    }

    .watchlist-tier-badge {
        min-width: 48px;
        min-height: 30px;
        padding-inline: 9px;
        border-radius: 13px;
    }

    .watchlist-card__rank {
        min-width: 54px;
        min-height: 30px;
        padding-inline: 8px;
        border-radius: 12px;
        font-size: var(--text-xs);
    }

    .watchlist-table__action {
        position: absolute;
        top: 13px;
        right: 13px;
        width: auto !important;
        grid-column: auto;
    }

    .watchlist-table__form button,
    .watchlist-remove-button {
        width: 32px !important;
        height: 32px;
        min-width: 32px;
        min-height: 32px !important;
        border-radius: 50% !important;
    }

    .watchlist-remove-button__glyph {
        width: 12px;
        height: 3px;
    }
}

@media (max-width: 390px) {
    .watchlist-row {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.85fr) auto;
        gap: 9px 9px;
        padding: 13px;
    }

    .watchlist-table__security {
        padding-right: 42px !important;
    }

    .watchlist-table__identity strong {
        font-size: var(--text-md);
    }

    .watchlist-table__price strong,
    .watchlist-change {
        font-size: var(--text-sm);
    }

    .watchlist-tier-badge {
        min-width: 44px;
        min-height: 28px;
        font-size: var(--text-xs);
    }

    .watchlist-card__rank {
        min-width: 50px;
        min-height: 28px;
        font-size: var(--text-xs);
    }
}

/* Stage 9.6b watchlist responsive tightening: rank-first rows, calmer title and edge delete action. */
.watchlist-shell {
    gap: 16px;
    padding-top: clamp(8px, 1.7vw, 18px);
    padding-bottom: clamp(28px, 4vw, 54px);
}

.watchlist-head {
    min-height: clamp(112px, 14vw, 154px);
    padding: clamp(20px, 3.2vw, 30px);
}

.watchlist-head h1 {
    font-size: clamp(1.95rem, 3.8vw, 2.75rem);
    line-height: 0.98;
    letter-spacing: -0.062em;
}

.watchlist-change--positive,
.watchlist-change--positive strong,
.watchlist-change--positive .watchlist-change__arrow {
    color: rgba(111, 238, 184, 0.98) !important;
}

.watchlist-change--danger,
.watchlist-change--danger strong,
.watchlist-change--danger .watchlist-change__arrow {
    color: rgba(255, 132, 142, 0.98) !important;
}

.watchlist-change--neutral,
.watchlist-change--neutral strong,
.watchlist-change--neutral .watchlist-change__arrow {
    color: rgba(172, 187, 216, 0.82) !important;
}

@media (max-width: 860px) {
    .watchlist-head h1 {
        font-size: clamp(2rem, 5.4vw, 2.75rem);
    }
}

@media (max-width: 680px) {
    .watchlist-shell {
        gap: 12px;
        padding-top: 6px;
    }

    .watchlist-head {
        min-height: 134px;
        padding: 22px 28px 20px;
        border-radius: 26px;
    }

    .watchlist-head h1 {
        max-width: 8.6em;
        font-size: clamp(2.15rem, 9vw, 2.55rem);
        line-height: 0.95;
        letter-spacing: -0.065em;
    }

    .watchlist-row {
        grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.86fr) minmax(96px, 0.72fr);
        padding: 16px 60px 15px 16px;
    }

    .watchlist-table__security {
        padding-right: 0 !important;
    }

    .watchlist-table__action {
        top: 18px;
        right: 16px;
        width: 34px !important;
        max-width: 34px;
        padding: 0 !important;
        border: 0 !important;
        z-index: 2;
    }

    .watchlist-table__form {
        width: 34px;
        justify-content: center;
    }

    .watchlist-table__form button,
    .watchlist-remove-button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .watchlist-table__price strong,
    .watchlist-change {
        font-size: clamp(0.88rem, 3.6vw, 0.98rem);
    }
}

@media (max-width: 390px) {
    .watchlist-head {
        min-height: 126px;
        padding: 20px 24px 18px;
    }

    .watchlist-head h1 {
        font-size: clamp(2.05rem, 8.8vw, 2.32rem);
    }

    .watchlist-row {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.78fr) minmax(86px, 0.68fr);
        padding: 14px 56px 14px 14px;
    }

    .watchlist-table__action {
        top: 16px;
        right: 14px;
    }
}

/* Stage 9.6c watchlist vertical rhythm: bring the page title closer to the search chrome without touching global header behavior. */
.watchlist-shell {
    margin-top: -14px;
    padding-top: clamp(4px, 1vw, 10px);
}

@media (max-width: 680px) {
    .watchlist-shell {
        margin-top: -8px;
        padding-top: 4px;
    }
}

/* Stage 29.1 account identity: Yandex ID/email verification and public profile foundation. */
.auth-panel--wide,
.account-panel--profile {
    width: min(100%, 760px);
}

.auth-yandex,
.auth-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin-bottom: 16px;
    border: 1px solid rgba(145, 166, 218, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(95, 115, 170, 0.12));
    color: rgba(242, 247, 255, 0.96);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(0);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.auth-yandex:hover,
.auth-yandex:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(95, 115, 170, 0.18));
    box-shadow: 0 14px 32px rgba(67, 88, 157, 0.24), inset 0 1px 0 rgba(255,255,255,0.12);
    transform: translateY(-1px);
    color: #ffffff;
}

.auth-yandex:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(67, 88, 157, 0.18), inset 0 1px 0 rgba(255,255,255,0.1);
}

.auth-yandex[aria-disabled="true"],
.auth-google[aria-disabled="true"] {
    opacity: 0.62;
    pointer-events: none;
}

.auth-yandex__mark,
.auth-google__mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: #1c2540;
    font-weight: 700;
}

.auth-yandex__mark {
    overflow: hidden;
    background: transparent;
    color: inherit;
    box-shadow: 0 6px 16px rgba(255, 74, 56, 0.16);
    transform: translateZ(0) scale(1);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.auth-yandex:hover .auth-yandex__mark,
.auth-yandex:focus-visible .auth-yandex__mark {
    transform: translateZ(0) scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 74, 56, 0.24);
}

.auth-yandex__mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    color: rgba(143, 161, 201, 0.78);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(112, 138, 202, 0.18);
}

.auth-alert--soft {
    border-color: rgba(134, 158, 230, 0.22);
    background: rgba(93, 114, 210, 0.12);
    color: rgba(204, 216, 255, 0.95);
}

.auth-form__grid,
.account-profile-form__grid,
.account-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-form textarea,
.account-profile-form textarea,
.account-profile-form input,
.account-avatar-upload input[type="file"] {
    width: 100%;
    border: 1px solid rgba(112, 138, 202, 0.24);
    border-radius: 18px;
    background: rgba(8, 14, 28, 0.58);
    color: rgba(240, 245, 255, 0.96);
    font: inherit;
    font-weight: 700;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-form textarea,
.account-profile-form textarea {
    min-height: 96px;
    resize: none;
    padding: 14px 16px;
    line-height: 1.5;
}

.account-profile-form input,
.account-avatar-upload input[type="file"] {
    min-height: 50px;
    padding: 0 16px;
}

.auth-form textarea:focus,
.account-profile-form textarea:focus,
.account-profile-form input:focus {
    border-color: var(--brand-border);
    box-shadow: 0 0 0 4px var(--focus-ring-soft);
    background: rgba(12, 20, 40, 0.72);
}

.auth-form__hint--center {
    margin: -4px 0 14px !important;
    text-align: center;
}

.account-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid rgba(128, 154, 226, 0.30);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(87, 112, 255, 0.62), rgba(25, 37, 70, 0.88));
    box-shadow: 0 18px 52px rgba(78, 100, 220, 0.22);
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar span {
    color: white;
    font-size: 2.1rem;
    font-weight: 700;
}

.account-status-card,
.account-verify-card,
.account-profile-form {
    border: 1px solid rgba(112, 138, 202, 0.20);
    border-radius: 24px;
    background: rgba(16, 24, 44, 0.64);
}

.account-status-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
}

.account-status-card span,
.account-profile-form label > span,
.account-avatar-upload > span {
    color: rgba(147, 165, 199, 0.76);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-status-card strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(242, 247, 255, 0.96);
    font-size: var(--text-base);
}

.account-status-card em {
    color: rgba(177, 190, 221, 0.78);
    font-style: normal;
    font-weight: 700;
}

.account-status-card em.is-good {
    color: rgba(103, 234, 179, 0.92);
}

.account-status-card em.is-warning {
    color: rgba(255, 199, 116, 0.94);
}

.account-verify-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 18px;
}

.account-verify-card strong {
    display: block;
    margin-bottom: 4px;
    color: rgba(245, 248, 255, 0.98);
    font-size: var(--text-base);
}

.account-dev-link {
    display: inline-flex;
    margin-top: 10px;
    color: rgba(176, 197, 255, 0.98);
    font-weight: 700;
    text-decoration: none;
}

.account-profile-form {
    display: grid;
    gap: 16px;
    margin-top: 14px;
    padding: 18px;
}

.account-profile-form label,
.account-avatar-upload {
    display: grid;
    gap: 8px;
}

.account-avatar-upload small {
    color: rgba(148, 165, 202, 0.78);
    font-weight: 700;
}

@media (max-width: 700px) {
    .auth-form__grid,
    .account-profile-form__grid,
    .account-status-grid {
        grid-template-columns: 1fr;
    }

    .account-profile-hero {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .account-verify-card {
        align-items: stretch;
        flex-direction: column;
    }

    .account-verify-card form,
    .account-verify-card .account-home {
        width: 100%;
    }
}


/* Portal-wide file picker polish. */
input[type="file"] {
    min-height: 50px;
    padding: 7px 10px;
    color: rgba(184, 198, 230, 0.82);
    line-height: 1.9;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    color: #031108;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

input[type="file"]::-webkit-file-upload-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    color: #031108;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:focus-visible::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button,
input[type="file"]:focus-visible::-webkit-file-upload-button {
    filter: brightness(1.05);
}

/* Stage 11.1 account profile cleanup: tighter profile surface and polished avatar upload. */
.account-shell--profile {
    min-height: auto;
    place-items: start center;
    margin-top: -12px;
    padding-top: clamp(4px, 1.2vw, 14px);
    padding-bottom: clamp(42px, 6vw, 76px);
}

.account-avatar-upload input[type="file"] {
    min-height: 50px;
    padding: 7px 10px;
    color: rgba(184, 198, 230, 0.82);
    line-height: 1.9;
    cursor: pointer;
}

.account-avatar-upload input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    color: #031108;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.account-avatar-upload input[type="file"]::-webkit-file-upload-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-active));
    color: #031108;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.account-avatar-upload input[type="file"]:hover::file-selector-button,
.account-avatar-upload input[type="file"]:focus-visible::file-selector-button,
.account-avatar-upload input[type="file"]:hover::-webkit-file-upload-button,
.account-avatar-upload input[type="file"]:focus-visible::-webkit-file-upload-button {
    filter: brightness(1.05);
}

@media (max-width: 700px) {
    .account-shell--profile {
        margin-top: -10px;
        padding-top: 4px;
    }

    .account-avatar-upload input[type="file"] {
        padding: 7px 8px;
        font-size: var(--text-md);
    }
}


/* Stage 11.2 account profile polish: remove duplicated public-name card and split bottom actions. */
.account-status-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.account-actions--profile {
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 16px;
}

.account-actions--profile form {
    flex: 0 0 auto;
}

.account-actions--profile .account-home {
    margin-left: auto;
}

.account-actions--profile .account-home,
.account-actions--profile .account-logout {
    min-width: 128px;
}

@media (max-width: 560px) {
    .account-actions.account-actions--profile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 12px;
    }

    .account-actions.account-actions--profile form {
        width: 100%;
        min-width: 0;
    }

    .account-actions.account-actions--profile .account-home,
    .account-actions.account-actions--profile .account-logout {
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
    }
}


/* Account profile save button aligned with broker-report upload action. */
.account-profile-form .auth-submit {
    width: 100%;
    min-height: 50px;
    border-radius: var(--radius-md);
    color: #07111f;
    background: linear-gradient(135deg, #e9f2ff 0%, #cfe1ff 52%, #a9caff 100%);
    box-shadow:
        0 12px 26px rgba(108, 151, 230, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(74, 112, 188, 0.12);
}

.account-profile-form .auth-submit:hover,
.account-profile-form .auth-submit:focus-visible {
    transform: translateY(-1px);
    color: #07111f;
    background: linear-gradient(135deg, #e9f2ff 0%, #cfe1ff 52%, #a9caff 100%);
    box-shadow:
        0 14px 30px rgba(108, 151, 230, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(74, 112, 188, 0.12);
    filter: none;
}

/* Auth anti-abuse honeypot: hidden from people, visible enough for simple bots. */
.auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Optional registration challenge shown only when anti-abuse Turnstile mode is enabled. */
.auth-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.2rem 0 0.45rem;
}

/* Stage anti-abuse admin UX polish: account gear, role block and admin control center. */
.account-panel--profile {
    position: relative;
}

.account-admin-link {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(123, 147, 224, 0.24);
    border-radius: 14px;
    background: rgba(14, 22, 42, 0.72);
    color: rgba(219, 229, 255, 0.92);
    box-shadow: 0 14px 30px rgba(5, 11, 24, 0.28);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.account-admin-link:hover,
.account-admin-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(129, 153, 235, 0.46);
    background: rgba(22, 33, 60, 0.9);
    box-shadow: 0 18px 36px rgba(57, 87, 182, 0.22);
}

.account-admin-link svg {
    width: 20px;
    height: 20px;
}

.account-status-grid--compact {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
}

.account-status-card--role strong {
    font-size: var(--text-base);
}

.account-panel__hint {
    margin: 0;
    color: rgba(165, 181, 220, 0.78);
    font-size: var(--text-md);
    line-height: 1.55;
}

.admin-dashboard-panel {
    width: min(100%, 1180px);
}

.admin-dashboard-nav {
    margin-top: -4px;
    margin-bottom: 16px;
}

.admin-dashboard-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(112, 138, 202, 0.20);
    border-radius: 24px;
    background: rgba(16, 24, 44, 0.64);
}

.admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-section-head h2,
.admin-metrics-panel h3 {
    margin: 0;
    color: rgba(242, 247, 255, 0.96);
}

.admin-inline-filter {
    display: flex;
    align-items: end;
    gap: 12px;
}

.admin-inline-filter label,
.admin-inline-filter select,
.admin-filter-form select,
.admin-role-form select {
    display: grid;
    gap: 8px;
}

.admin-inline-filter select,
.admin-filter-form select,
.admin-role-form select {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(112, 138, 202, 0.24);
    border-radius: 14px;
    background: rgba(8, 14, 28, 0.58);
    color: rgba(240, 245, 255, 0.96);
    font: inherit;
    font-weight: 700;
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.admin-kpi-card {
    min-height: 116px;
}

.admin-kpi-card--good em {
    color: rgba(103, 234, 179, 0.92);
}

.admin-kpi-card--warning em {
    color: rgba(255, 199, 116, 0.94);
}

.admin-metrics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    gap: 18px;
}

.admin-metrics-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(112, 138, 202, 0.16);
    border-radius: 20px;
    background: rgba(9, 16, 31, 0.56);
}

.admin-metric-bars {
    display: grid;
    gap: 10px;
}

.admin-metric-row {
    display: grid;
    gap: 6px;
}

.admin-metric-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(230, 237, 255, 0.94);
    font-weight: 700;
}

.admin-metric-row__head small {
    color: rgba(148, 165, 202, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-metric-row__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-metric-row__bar {
    height: 7px;
    border-radius: 999px;
    min-width: 0;
}

.admin-metric-row__bar--registrations {
    background: linear-gradient(90deg, rgba(108, 135, 255, 0.92), rgba(142, 187, 255, 0.98));
}

.admin-metric-row__bar--logins {
    background: linear-gradient(90deg, rgba(100, 228, 180, 0.88), rgba(158, 242, 212, 0.95));
}

.admin-metric-row__bar--blocked {
    background: linear-gradient(90deg, rgba(255, 171, 85, 0.9), rgba(255, 214, 123, 0.96));
}

.admin-top-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-top-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(112, 138, 202, 0.14);
    border-radius: 14px;
    background: rgba(15, 22, 40, 0.56);
}

.admin-top-list span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(230, 237, 255, 0.94);
    font-weight: 700;
}

.admin-top-list strong {
    color: rgba(255, 255, 255, 0.96);
}

.admin-filter-form {
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr) minmax(120px, 0.4fr) auto;
    align-items: end;
}

.admin-user-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.admin-users-table-wrap {
    overflow-x: auto;
}

.admin-users-table td {
    vertical-align: top;
}

.admin-user-cell {
    display: grid;
    gap: 4px;
}

.admin-user-cell strong {
    overflow-wrap: anywhere;
}

.admin-user-cell small {
    color: rgba(148, 165, 202, 0.82);
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(118, 140, 210, 0.24);
    background: rgba(22, 32, 60, 0.66);
    color: rgba(241, 246, 255, 0.96);
    font-size: var(--text-sm);
    font-weight: 700;
}

.admin-role-badge--admin {
    background: rgba(83, 113, 240, 0.24);
    border-color: rgba(112, 145, 255, 0.34);
}

.admin-role-badge--expert {
    background: rgba(64, 182, 156, 0.22);
    border-color: rgba(104, 224, 193, 0.28);
}

.admin-role-badge--user {
    background: rgba(44, 63, 112, 0.22);
    border-color: rgba(118, 140, 210, 0.24);
}

.admin-user-flags {
    display: grid;
    gap: 6px;
}

.admin-flag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(25, 34, 60, 0.62);
    color: rgba(220, 229, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-flag.is-good {
    color: rgba(103, 234, 179, 0.92);
}

.admin-flag.is-warning {
    color: rgba(255, 199, 116, 0.94);
}

.admin-user-actions {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.admin-role-form {
    display: flex;
    gap: 8px;
}

.admin-role-form select {
    flex: 1 1 auto;
}

.admin-role-form .account-home,
.admin-delete-button {
    min-width: 118px;
}

.admin-delete-button[disabled],
.admin-role-form select[disabled],
.admin-role-form button[disabled] {
    opacity: 0.56;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .admin-kpi-grid,
    .admin-user-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-metrics-layout,
    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .admin-section-head,
    .admin-inline-filter {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 700px) {
    .account-admin-link {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .account-status-grid--compact,
    .admin-kpi-grid,
    .admin-user-summary {
        grid-template-columns: 1fr;
    }

    .admin-role-form {
        flex-direction: column;
    }

    .admin-user-actions {
        min-width: 0;
    }
}

/* Admin product panel v2: polished product dashboard, responsive without backend terminology. */
.admin-product-shell {
    width: min(100%, 1240px);
    margin: -10px auto 0;
    padding: clamp(4px, 1.2vw, 16px) clamp(14px, 3vw, 28px) clamp(42px, 6vw, 78px);
}

.admin-product-hero,
.admin-product-card {
    border: 1px solid rgba(112, 138, 202, 0.20);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 0%, rgba(96, 119, 255, 0.20), transparent 36%),
        linear-gradient(145deg, rgba(16, 24, 44, 0.90), rgba(8, 14, 28, 0.84));
    box-shadow: 0 22px 70px rgba(4, 10, 24, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-product-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(22px, 3vw, 34px);
}

.admin-product-hero__content {
    max-width: 740px;
}

.admin-product-hero h1 {
    margin: 4px 0 10px;
    color: rgba(248, 251, 255, 0.98);
    font-size: clamp(2.15rem, 5vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.admin-product-hero p:not(.account-panel__eyebrow) {
    margin: 0;
    color: rgba(180, 194, 226, 0.84);
    font-size: var(--text-base);
    line-height: 1.65;
}

.admin-product-hero__actions,
.admin-product-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-product-hero__actions {
    justify-content: flex-end;
}

.admin-product-tabs {
    margin-top: 18px;
}

.admin-product-tabs a,
.admin-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(126, 150, 220, 0.22);
    border-radius: var(--radius-md);
    background: rgba(19, 29, 54, 0.72);
    color: rgba(226, 235, 255, 0.94);
    font-size: var(--text-md);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.admin-product-tabs a:hover,
.admin-product-tabs a:focus-visible,
.admin-secondary-action:hover,
.admin-secondary-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(136, 160, 238, 0.42);
    background: rgba(27, 40, 72, 0.88);
}

.admin-product-card {
    margin-top: 18px;
    padding: clamp(18px, 2.5vw, 26px);
}

.admin-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.78fr);
    gap: 18px;
    align-items: stretch;
}

.admin-product-card--wide {
    grid-row: span 2;
}

.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-card-head--compact {
    margin-bottom: 14px;
}

.admin-card-head h2 {
    margin: 0;
    color: rgba(248, 251, 255, 0.98);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    letter-spacing: -0.03em;
}

.admin-card-head p:not(.account-panel__eyebrow) {
    margin: 6px 0 0;
    color: rgba(169, 184, 220, 0.8);
    line-height: 1.55;
}

.admin-period-switch {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(112, 138, 202, 0.18);
    border-radius: var(--radius-md);
    background: rgba(8, 14, 28, 0.58);
}

.admin-period-switch button {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: rgba(178, 193, 229, 0.86);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
}

.admin-period-switch button.is-active,
.admin-period-switch button:hover,
.admin-period-switch button:focus-visible {
    background: rgba(96, 119, 255, 0.22);
    color: rgba(247, 250, 255, 0.98);
}

.admin-product-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-product-kpi {
    min-height: 126px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    padding: 17px;
    border: 1px solid rgba(112, 138, 202, 0.16);
    border-radius: 24px;
    background: rgba(9, 16, 31, 0.62);
}

.admin-product-kpi span,
.admin-product-filter label > span {
    color: rgba(147, 165, 199, 0.76);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-product-kpi strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(250, 252, 255, 0.98);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-product-kpi em {
    color: rgba(172, 188, 224, 0.78);
    font-style: normal;
    font-size: var(--text-md);
    font-weight: 700;
}

.admin-product-kpi--good em {
    color: rgba(103, 234, 179, 0.92);
}

.admin-product-kpi--warning em {
    color: rgba(255, 199, 116, 0.94);
}

.admin-chart-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(170, 186, 222, 0.82);
    font-size: var(--text-sm);
    font-weight: 700;
}

.admin-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-chart-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.admin-product-chart {
    display: grid;
    gap: 11px;
    padding: 16px;
    border: 1px solid rgba(112, 138, 202, 0.14);
    border-radius: 22px;
    background: rgba(7, 13, 26, 0.46);
}

.admin-product-chart__row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: center;
}

.admin-product-chart__date {
    color: rgba(225, 234, 255, 0.92);
    font-weight: 700;
}

.admin-product-chart__tracks {
    display: grid;
    gap: 5px;
}

.admin-product-chart__track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(76, 94, 140, 0.18);
}

.admin-product-chart__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.admin-product-chart__row small {
    color: rgba(147, 165, 199, 0.72);
    font-weight: 700;
    text-align: right;
}

.is-registrations {
    background: linear-gradient(90deg, rgba(108, 135, 255, 0.95), rgba(157, 191, 255, 0.98));
}

.is-logins {
    background: linear-gradient(90deg, rgba(100, 228, 180, 0.9), rgba(158, 242, 212, 0.98));
}

.is-blocked {
    background: linear-gradient(90deg, rgba(255, 171, 85, 0.92), rgba(255, 214, 123, 0.98));
}

.admin-product-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-product-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(112, 138, 202, 0.14);
    border-radius: 17px;
    background: rgba(9, 16, 31, 0.54);
}

.admin-product-list span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(230, 237, 255, 0.94);
    font-weight: 700;
}

.admin-product-list strong {
    color: rgba(255, 255, 255, 0.96);
    font-size: var(--text-base);
}

.admin-product-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(170px, 0.7fr) minmax(130px, 0.45fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.admin-product-filter label {
    display: grid;
    gap: 8px;
}

.admin-product-filter input,
.admin-product-filter select,
.admin-role-form select {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(112, 138, 202, 0.22);
    border-radius: 16px;
    background: rgba(8, 14, 28, 0.58);
    color: rgba(240, 245, 255, 0.96);
    font: inherit;
    font-weight: 700;
    outline: none;
}

.admin-role-overview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-role-overview__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(112, 138, 202, 0.16);
    border-radius: var(--radius-md);
    background: rgba(9, 16, 31, 0.54);
}

.admin-role-overview__item span {
    color: rgba(166, 181, 217, 0.82);
    font-size: var(--text-sm);
    font-weight: 700;
}

.admin-role-overview__item strong {
    color: rgba(248, 251, 255, 0.98);
}

.admin-users-surface {
    overflow-x: auto;
    border: 1px solid rgba(112, 138, 202, 0.14);
    border-radius: 24px;
    background: rgba(7, 13, 26, 0.44);
}

.admin-product-users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-product-users-table th,
.admin-product-users-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(112, 138, 202, 0.10);
    text-align: left;
    vertical-align: top;
}

.admin-product-users-table th {
    color: rgba(147, 165, 199, 0.76);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-product-users-table td {
    color: rgba(229, 237, 255, 0.92);
    font-weight: 700;
}

.admin-product-users-table tbody tr:hover {
    background: rgba(35, 50, 88, 0.18);
}

@media (max-width: 1120px) {
    .admin-product-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-product-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-card--wide {
        grid-row: auto;
    }
}

@media (max-width: 780px) {
    .admin-product-shell {
        padding-inline: 10px;
    }

    .admin-product-hero,
    .admin-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-product-hero__actions {
        justify-content: stretch;
    }

    .admin-product-hero__actions .account-home,
    .admin-product-hero__actions .admin-secondary-action,
    .admin-product-filter .auth-submit {
        width: 100%;
    }

    .admin-product-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-product-filter {
        grid-template-columns: 1fr;
    }

    .admin-period-switch {
        width: 100%;
        justify-content: space-between;
    }

    .admin-period-switch button {
        flex: 1 1 0;
        min-height: 38px;
    }

    .admin-product-chart__row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .admin-product-chart__row small {
        grid-column: 2;
        text-align: left;
    }

    .admin-users-surface {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .admin-product-users-table,
    .admin-product-users-table thead,
    .admin-product-users-table tbody,
    .admin-product-users-table tr,
    .admin-product-users-table th,
    .admin-product-users-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-product-users-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .admin-product-users-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .admin-product-users-table tr {
        padding: 14px;
        border: 1px solid rgba(112, 138, 202, 0.16);
        border-radius: 22px;
        background: rgba(9, 16, 31, 0.58);
    }

    .admin-product-users-table td {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(112, 138, 202, 0.08);
    }

    .admin-product-users-table td::before {
        content: attr(data-label);
        color: rgba(147, 165, 199, 0.76);
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .admin-product-users-table td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .admin-product-hero,
    .admin-product-card {
        border-radius: 24px;
        padding: 18px;
    }

    .admin-product-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-product-tabs a {
        width: 100%;
    }

    .admin-product-users-table td {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* R4 acceptance — Watchlist owns a flat page shell; rows remain the only entity surfaces. */
.watchlist-shell .watchlist-head {
    min-height: 0;
    padding: 4px 2px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.watchlist-shell .watchlist-head h1 {
    max-width: none;
    font-size: var(--title-lg);
    line-height: var(--leading-title-lg);
    letter-spacing: -0.035em;
}
.watchlist-shell .watchlist-table-shell {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.watchlist-shell .watchlist-table th {
    background: transparent;
    border-bottom-color: var(--border-subtle);
}
.watchlist-shell .watchlist-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
}
.watchlist-shell .watchlist-table tbody tr:last-child { border-bottom: 0; }
.watchlist-remove-button {
    border: 1px solid rgba(239, 98, 108, .26) !important;
    border-radius: 10px !important;
    color: var(--danger) !important;
    background: rgba(239, 98, 108, .08) !important;
    box-shadow: none !important;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.watchlist-remove-button:hover,
.watchlist-remove-button:focus-visible {
    border-color: rgba(239, 98, 108, .46) !important;
    background: rgba(239, 98, 108, .13) !important;
    box-shadow: none !important;
    filter: none;
}
@media (max-width: 680px) {
    .watchlist-shell .watchlist-head {
        min-height: 0;
        padding: 4px 2px 10px;
        border-radius: 0;
    }
    .watchlist-shell .watchlist-head h1 {
        font-size: var(--title-lg);
        line-height: var(--leading-title-lg);
        letter-spacing: -0.035em;
    }
    .watchlist-shell .watchlist-table tbody { gap: 8px; }
    .watchlist-shell .watchlist-row {
        padding: 14px 54px 13px 14px;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        background: var(--vantiq-surface-row);
        box-shadow: none;
    }
    .watchlist-shell .watchlist-table tbody tr { border-bottom: 0; }
}

/* R4 acceptance — News detail uses page-level hierarchy instead of stacked cards. */
.news-detail-page { gap: 0; }
.news-detail-page > .vantiq-page-section {
    padding: 26px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.news-detail-page > .vantiq-page-section + .vantiq-page-section {
    border-top: 1px solid var(--border-subtle);
}
.news-detail-page > .news-detail-hero { padding-top: 8px; }
.news-detail-page > .news-market-context {
    padding-block: 22px;
    background: transparent;
}
.news-detail-page .news-market-context__chart-shell {
    margin-top: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    overflow: hidden;
}
.news-detail-actions {
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}
@media (max-width: 620px) {
    .news-detail-page > .vantiq-page-section { padding: 20px 2px; }
    .news-detail-page > .news-detail-hero { padding-top: 6px; }
}

/* R4 acceptance — Account: flat shell, one surface depth, canonical controls. */
.account-shell--profile .account-panel--profile {
    width: min(100%, 780px);
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.account-shell--profile .account-profile-hero {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}
.account-shell--profile .account-avatar {
    width: 84px;
    height: 84px;
    border-color: var(--border-default);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: none;
}
.account-shell--profile .account-status-card {
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.account-shell--profile .account-status-grid {
    gap: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.account-shell--profile .account-verify-card {
    margin-top: 16px;
    border-color: var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: none;
}
.account-shell--profile .account-profile-form {
    margin-top: 20px;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--border-subtle);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.account-shell--profile .account-profile-form input,
.account-shell--profile .account-profile-form textarea,
.account-shell--profile .account-avatar-upload input[type="file"] {
    border-color: var(--border-default);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: none;
}
.account-shell--profile .account-avatar-upload input[type="file"]::file-selector-button,
.account-shell--profile .account-avatar-upload input[type="file"]::-webkit-file-upload-button {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-primary);
    box-shadow: none;
}
.account-shell--profile .account-profile-form .auth-submit {
    width: min(220px, 100%);
    justify-self: end;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    color: #06110a;
    background: var(--brand);
    box-shadow: none;
}
.account-shell--profile .account-profile-form .auth-submit:hover,
.account-shell--profile .account-profile-form .auth-submit:focus-visible {
    color: #06110a;
    background: var(--brand-hover);
    box-shadow: none;
    filter: none;
}
.account-shell--profile .account-actions--profile .account-home,
.account-shell--profile .account-actions--profile .account-logout,
.account-shell--profile .account-admin-link {
    border: 1px solid var(--border-default);
    background: var(--surface-1);
    color: var(--text-secondary);
    box-shadow: none;
}
.account-shell--profile .account-actions--profile .account-home:hover,
.account-shell--profile .account-actions--profile .account-home:focus-visible,
.account-shell--profile .account-actions--profile .account-logout:hover,
.account-shell--profile .account-actions--profile .account-logout:focus-visible,
.account-shell--profile .account-admin-link:hover,
.account-shell--profile .account-admin-link:focus-visible {
    border-color: var(--border-strong);
    background: var(--surface-2);
    color: var(--text-primary);
    box-shadow: none;
    filter: none;
}

/* R4 acceptance — Admin: shared matte language, flat section ownership. */
.admin-product-shell .admin-product-hero,
.admin-product-shell .admin-product-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
}
.admin-product-shell .admin-product-hero {
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.admin-product-shell .admin-product-hero h1 {
    margin-block: 4px 8px;
    font-size: var(--title-lg);
    line-height: var(--leading-title-lg);
    letter-spacing: -0.035em;
}
.admin-product-shell .admin-product-card {
    margin-top: 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
}
.admin-product-shell > .admin-product-card:first-of-type { border-top: 0; }
.admin-product-shell .admin-product-grid { gap: 0 24px; }
.admin-product-shell .admin-product-grid > .admin-product-card { height: 100%; }
.admin-product-shell .admin-product-kpi,
.admin-product-shell .admin-product-chart,
.admin-product-shell .admin-product-list li,
.admin-product-shell .admin-role-overview__item,
.admin-product-shell .admin-users-surface {
    border-color: var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--vantiq-surface-row);
    box-shadow: none;
}
.admin-product-shell .admin-product-tabs a,
.admin-product-shell .admin-secondary-action,
.admin-product-shell .admin-product-hero__actions .account-home {
    border: 1px solid var(--border-default);
    background: var(--surface-1);
    color: var(--text-secondary);
    box-shadow: none;
}
.admin-product-shell .admin-product-tabs a:hover,
.admin-product-shell .admin-product-tabs a:focus-visible,
.admin-product-shell .admin-secondary-action:hover,
.admin-product-shell .admin-secondary-action:focus-visible,
.admin-product-shell .admin-product-hero__actions .account-home:hover,
.admin-product-shell .admin-product-hero__actions .account-home:focus-visible {
    border-color: var(--border-strong);
    background: var(--surface-2);
    color: var(--text-primary);
    box-shadow: none;
}
.admin-product-shell .admin-period-switch { background: var(--surface-1); }
.admin-product-shell .admin-period-switch button.is-active,
.admin-product-shell .admin-period-switch button:hover,
.admin-product-shell .admin-period-switch button:focus-visible {
    background: var(--brand-soft);
    color: var(--text-primary);
}
@media (max-width: 780px) {
    .admin-product-shell .admin-product-hero { padding: 6px 0 20px; }
    .admin-product-shell .admin-product-grid { gap: 0; }
    .admin-product-shell .admin-product-card { padding: 20px 0; }
    .admin-product-shell .admin-product-users-table tr {
        border-radius: var(--radius-md);
        background: var(--vantiq-surface-row);
        box-shadow: none;
    }
}


/* R4 visual acceptance — Account custom file control. */
.account-shell--profile .account-avatar-upload {
    display: grid;
    gap: 8px;
}
.account-shell--profile .account-avatar-upload__label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
}
.account-shell--profile .account-file-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 7px 10px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    cursor: pointer;
}
.account-shell--profile .account-file-control:focus-within,
.account-shell--profile .account-file-control:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.account-shell--profile .account-file-control__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.account-shell--profile .account-file-control__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 700;
}
.account-shell--profile .account-file-control__name {
    min-width: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 460px) {
    .account-shell--profile .account-file-control {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .account-shell--profile .account-file-control__action {
        justify-self: start;
    }
}

@media (max-width: 620px) {
    .account-shell--profile .account-profile-form .auth-submit {
        width: 100%;
        justify-self: stretch;
    }
}

/* R4 ownership — Home page geometry stays with the Home/base module. */
.home-intelligence-grid {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}
.home-rating-card,
.home-analysis-card {
    min-height: 0;
    padding: 24px;
}
.home-market-movers { padding: 24px 0 0; }
@media (max-width: 620px) {
    .featured-news-stage.featured-news-stage--home,
    .home-rating-card,
    .market-movers-card.card { padding-inline: 0; }
}

/* Home R1 — flat module ownership: rows and data visualisations own surfaces, not page sections. */
.featured-news-stage.featured-news-stage--home,.home-rating-card,.home-analysis-card,.home-market-movers{border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none}
.home-rating-card,.home-analysis-card{overflow:visible!important;padding:24px 0}
.home-rating-card::before,.home-analysis-card::before{display:none}
.home-intelligence-grid{gap:28px;padding-bottom:0;border-bottom:0}
.home-analysis-card{padding-left:28px;border-left:1px solid var(--border-subtle)}
.home-analysis-spotlight{gap:14px;padding:0;border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none}
.home-analysis-spotlight:hover,.home-analysis-spotlight:focus-visible{border-color:transparent;background:transparent;box-shadow:none}
.home-analysis-spotlight__sector{padding:0;border:0;border-radius:0;background:transparent;color:var(--vantiq-text-muted);font-size:var(--text-sm);font-weight:600}
.home-analysis-chart{padding:14px 0;border:0;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);border-radius:0;background:transparent;background-image:none;box-shadow:none}
.home-analysis-chart__stage{border-color:var(--border-subtle);border-radius:var(--radius-md);background:rgba(255,255,255,.015)}
.home-analysis-thesis,.home-analysis-thesis--positive,.home-analysis-thesis--warning,.home-analysis-thesis--danger{min-height:0;padding:4px 0 4px 18px;border:0;border-radius:0;background:transparent;white-space:normal}
.home-analysis-thesis::before{left:0}
.home-market-movers{margin-top:0;padding-top:24px;border-top:1px solid var(--border-subtle)}
@media(max-width:1100px){.home-intelligence-grid{gap:0}.home-analysis-card{padding-left:0;border-left:0;border-top:1px solid var(--border-subtle)}}
@media(max-width:620px){.featured-news-stage.featured-news-stage--home,.home-rating-card,.home-analysis-card,.home-market-movers{padding-right:0;padding-left:0}.home-analysis-chart{padding-right:0;padding-left:0}}

/* Market R1 — the movers rows own the entity surfaces; the market page shell stays flat. */
.market-page .market-movers-card.vantiq-page-section{padding:0;border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none}
.market-page .market-movers-card__head{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--border-subtle)}
.market-page .market-movers-grid{gap:28px}
@media(max-width:920px){.market-page .market-movers-grid{gap:22px}.market-page .market-movers-panel + .market-movers-panel{padding-top:22px;border-top:1px solid var(--border-subtle)}}

/* Compact frosted sticky chrome — approved 2026-08-31.
   At page top the established header remains unchanged. Once scrolling starts,
   the whole chrome becomes a lighter glass surface and contracts by roughly a
   quarter so it does not consume module-sized vertical space. */
.page-chrome,
.page-chrome .menu-button,
.page-chrome .topbar-brand__mark,
.page-chrome .chrome-search input[type="text"],
.page-chrome .chrome-search__button {
    transition-property: background, background-color, border-color, box-shadow, color, min-height, height, width, padding, gap, border-radius, transform;
    transition-duration: 190ms;
    transition-timing-function: ease;
}

@media (min-width: 561px) {
    .page-chrome.is-scrolled {
        top: 8px;
        min-height: 52px;
        padding: 5px 8px;
        gap: 14px;
        border-radius: 18px;
        background: linear-gradient(145deg, rgba(8, 18, 32, 0.54), rgba(5, 14, 27, 0.40));
        border-color: rgba(150, 181, 204, 0.17);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.025);
        -webkit-backdrop-filter: blur(20px) saturate(1.12);
        backdrop-filter: blur(20px) saturate(1.12);
    }

    .page-chrome.is-scrolled .page-chrome__left {
        gap: 10px;
    }

    .page-chrome.is-scrolled .menu-button {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 13px;
        background: rgba(8, 20, 34, 0.28);
        border-color: rgba(153, 181, 204, 0.14);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    }

    .page-chrome.is-scrolled .menu-button span {
        width: 17px;
    }

    .page-chrome.is-scrolled .topbar-brand__mark {
        width: 28px;
        height: 28px;
    }

    .page-chrome.is-scrolled .topbar-brand__title {
        font-size: 1.04rem;
    }

    .page-chrome.is-scrolled .topbar-brand__subtitle {
        font-size: 0.64rem;
        opacity: 0.78;
    }

    .page-chrome.is-scrolled .chrome-search {
        gap: 8px;
    }

    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        padding: 0.58rem 0.88rem;
        border-radius: 13px;
        background: linear-gradient(145deg, rgba(8, 20, 35, 0.34), rgba(5, 15, 28, 0.24));
        border-color: rgba(150, 181, 204, 0.13);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
        -webkit-backdrop-filter: blur(10px) saturate(1.06);
        backdrop-filter: blur(10px) saturate(1.06);
    }

    .page-chrome.is-scrolled .chrome-search__button {
        min-width: 82px;
        min-height: 38px;
        padding: 0.52rem 0.96rem;
        border-radius: 13px;
        background: linear-gradient(180deg, rgba(244, 248, 252, 0.86), rgba(226, 235, 244, 0.78));
        border-color: rgba(230, 239, 248, 0.68);
        box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.36);
    }
}

@media (max-width: 560px) {
    /* The existing mobile top-of-page state intentionally stays unwrapped.
       Scrolled state becomes one compact glass plate rather than several opaque
       floating controls. */
    .page-chrome.is-scrolled {
        top: 6px;
        gap: 6px;
        min-height: 40px;
        padding: 3px !important;
        border: 1px solid rgba(150, 181, 204, 0.16) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: linear-gradient(145deg, rgba(8, 18, 32, 0.58), rgba(5, 14, 27, 0.43)) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
        -webkit-backdrop-filter: blur(19px) saturate(1.12) !important;
        backdrop-filter: blur(19px) saturate(1.12) !important;
    }

    .page-chrome.is-scrolled .page-chrome__left {
        gap: 5px;
    }

    .page-chrome.is-scrolled .menu-button {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 12px;
        background: rgba(8, 20, 34, 0.24);
        border-color: rgba(153, 181, 204, 0.12);
        box-shadow: none;
    }

    .page-chrome.is-scrolled .menu-button span {
        width: 16px;
    }

    .page-chrome.is-scrolled .topbar-brand__mark {
        width: 22px;
        height: 22px;
    }

    .page-chrome.is-scrolled .chrome-search {
        gap: 5px;
    }

    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        padding: 0.36rem 0.58rem;
        border-radius: 12px;
        font-size: 0.78rem;
        background: rgba(7, 18, 31, 0.28);
        border-color: rgba(150, 181, 204, 0.12);
        box-shadow: none;
        -webkit-backdrop-filter: blur(9px) saturate(1.05);
        backdrop-filter: blur(9px) saturate(1.05);
    }

    .page-chrome.is-scrolled .chrome-search__button {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        flex-basis: 32px;
        padding: 0;
        border-radius: 12px;
        background: rgba(235, 243, 250, 0.78);
        border-color: rgba(235, 243, 250, 0.62);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
    }

    .page-chrome.is-scrolled .chrome-search__button-icon {
        width: 15px;
        height: 15px;
    }
}

/* Home/Header v1.3 — stable compact iOS-like glass chrome.
   Geometry is identical before and after scrolling.  is-scrolled changes only
   visual surface properties, eliminating sticky threshold layout oscillation. */
.page-chrome,
.page-chrome.is-scrolled {
    top: 9px;
    min-height: 54px;
    padding: 6px 8px;
    gap: 14px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(177, 205, 226, 0.105);
    background: linear-gradient(145deg, rgba(5, 17, 30, 0.085), rgba(3, 13, 25, 0.035));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(18px) saturate(1.12) brightness(0.78);
    backdrop-filter: blur(18px) saturate(1.12) brightness(0.78);
    transition: background 190ms ease, border-color 190ms ease, box-shadow 190ms ease, backdrop-filter 190ms ease, -webkit-backdrop-filter 190ms ease;
}
.page-chrome.is-scrolled {
    border-color: rgba(177, 205, 226, 0.075);
    background: linear-gradient(145deg, rgba(5, 17, 30, 0.030), rgba(3, 13, 25, 0.012));
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(20px) saturate(1.14) brightness(0.76);
    backdrop-filter: blur(20px) saturate(1.14) brightness(0.76);
}

.page-chrome .page-chrome__left,
.page-chrome.is-scrolled .page-chrome__left {
    gap: 9px;
}
.page-chrome .menu-button,
.page-chrome.is-scrolled .menu-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 13px;
    border: 1px solid rgba(177, 205, 226, 0.105);
    background: rgba(5, 18, 32, 0.115);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    backdrop-filter: blur(10px) saturate(1.08);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.page-chrome .menu-button span,
.page-chrome.is-scrolled .menu-button span {
    width: 17px;
}
.page-chrome .topbar-brand__mark,
.page-chrome.is-scrolled .topbar-brand__mark {
    width: 29px;
    height: 29px;
    transition: opacity 160ms ease, filter 160ms ease;
}
.page-chrome .topbar-brand__title,
.page-chrome.is-scrolled .topbar-brand__title {
    font-size: 1.04rem;
}
.page-chrome .topbar-brand__subtitle,
.page-chrome.is-scrolled .topbar-brand__subtitle {
    font-size: 0.64rem;
}
.page-chrome .chrome-search,
.page-chrome.is-scrolled .chrome-search {
    gap: 7px;
}
.page-chrome .chrome-search input[type="text"],
.page-chrome.is-scrolled .chrome-search input[type="text"] {
    height: 40px;
    min-height: 40px;
    padding: 0 0.82rem;
    border-radius: 13px;
    border-color: rgba(177, 205, 226, 0.095);
    background: rgba(5, 18, 32, 0.115);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
    backdrop-filter: blur(10px) saturate(1.08);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.page-chrome.is-scrolled .menu-button,
.page-chrome.is-scrolled .chrome-search input[type="text"] {
    background: rgba(5, 18, 32, 0.075);
    border-color: rgba(177, 205, 226, 0.075);
}
.page-chrome .chrome-search__button,
.page-chrome.is-scrolled .chrome-search__button {
    min-width: 78px;
    height: 40px;
    min-height: 40px;
    padding: 0 0.90rem;
    border-radius: 13px;
    border-color: rgba(232, 241, 248, 0.55);
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.84), rgba(225, 235, 243, 0.72));
    box-shadow: 0 6px 16px rgba(0,0,0,0.11), inset 0 1px 0 rgba(255,255,255,0.28);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.page-chrome.is-scrolled .chrome-search__button {
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.78), rgba(225, 235, 243, 0.66));
}

@media (max-width: 560px) {
    .page-chrome,
    .page-chrome.is-scrolled {
        top: 6px;
        min-height: 46px !important;
        padding: 4px !important;
        gap: 5px;
        border: 1px solid rgba(177, 205, 226, 0.09) !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        background: linear-gradient(145deg, rgba(5, 17, 30, 0.075), rgba(3, 13, 25, 0.028)) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.02) !important;
        -webkit-backdrop-filter: blur(17px) saturate(1.10) brightness(0.78) !important;
        backdrop-filter: blur(17px) saturate(1.10) brightness(0.78) !important;
    }
    .page-chrome.is-scrolled {
        background: linear-gradient(145deg, rgba(5, 17, 30, 0.022), rgba(3, 13, 25, 0.008)) !important;
        border-color: rgba(177, 205, 226, 0.06) !important;
        -webkit-backdrop-filter: blur(19px) saturate(1.12) brightness(0.76) !important;
        backdrop-filter: blur(19px) saturate(1.12) brightness(0.76) !important;
    }
    .page-chrome .page-chrome__left,
    .page-chrome.is-scrolled .page-chrome__left { gap: 4px; }
    .page-chrome .menu-button,
    .page-chrome.is-scrolled .menu-button {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        border-radius: 11px;
        background: rgba(5, 18, 32, 0.10) !important;
        border: 1px solid rgba(177, 205, 226, 0.08) !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: blur(8px) saturate(1.06) !important;
        backdrop-filter: blur(8px) saturate(1.06) !important;
    }
    .page-chrome.is-scrolled .menu-button { background: rgba(5, 18, 32, 0.06) !important; }
    .page-chrome .topbar-brand__mark,
    .page-chrome.is-scrolled .topbar-brand__mark {
        width: 24px;
        height: 24px;
    }
    .page-chrome .chrome-search,
    .page-chrome.is-scrolled .chrome-search { gap: 4px; }
    .page-chrome .chrome-search input[type="text"],
    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        height: 36px;
        min-height: 36px;
        padding: 0 0.58rem;
        border-radius: 11px;
        font-size: 0.78rem;
        background: rgba(5, 18, 32, 0.10) !important;
        border: 1px solid rgba(177, 205, 226, 0.08) !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: blur(8px) saturate(1.06) !important;
        backdrop-filter: blur(8px) saturate(1.06) !important;
    }
    .page-chrome.is-scrolled .chrome-search input[type="text"] { background: rgba(5, 18, 32, 0.06) !important; }
    .page-chrome .chrome-search__button,
    .page-chrome.is-scrolled .chrome-search__button {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        flex: 0 0 36px;
        padding: 0;
        border-radius: 11px;
        background: rgba(238, 245, 250, 0.74) !important;
        border: 1px solid rgba(238, 245, 250, 0.46) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    .page-chrome .chrome-search__button-icon,
    .page-chrome.is-scrolled .chrome-search__button-icon {
        width: 15px;
        height: 15px;
    }
}

/* v1.3 tablet guard: the older <=720px responsive rule used a two-row chrome.
   Keep the compact one-row geometry through the full tablet range. */
@media (min-width: 561px) and (max-width: 720px) {
    .page-chrome,
    .page-chrome.is-scrolled {
        flex-wrap: nowrap;
        align-items: center;
        min-height: 54px;
        padding: 6px 8px;
    }
    .page-chrome__left,
    .page-chrome.is-scrolled .page-chrome__left {
        width: auto;
        flex: 0 0 auto;
    }
    .page-chrome .chrome-search,
    .page-chrome.is-scrolled .chrome-search {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
        flex-basis: auto;
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* Header v1.4 — thin dark iOS-style glass. Geometry remains exactly shared
   between normal/scrolled states; scrolling only reduces optical surface tint. */
.page-chrome,
.page-chrome.is-scrolled {
    border-color: rgba(190, 216, 234, 0.11);
    background: linear-gradient(145deg, rgba(3, 13, 25, 0.030), rgba(3, 12, 23, 0.012));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    -webkit-backdrop-filter: blur(5px) saturate(1.03) brightness(0.96);
    backdrop-filter: blur(5px) saturate(1.03) brightness(0.96);
}
.page-chrome.is-scrolled {
    border-color: rgba(190, 216, 234, 0.075);
    background: linear-gradient(145deg, rgba(3, 13, 25, 0.012), rgba(3, 12, 23, 0.004));
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    -webkit-backdrop-filter: blur(6px) saturate(1.03) brightness(0.97);
    backdrop-filter: blur(6px) saturate(1.03) brightness(0.97);
}
.page-chrome .menu-button,
.page-chrome.is-scrolled .menu-button {
    background: rgba(5, 18, 32, 0.060);
    border-color: rgba(190, 216, 234, 0.10);
    -webkit-backdrop-filter: blur(5px) saturate(1.03) brightness(0.96);
    backdrop-filter: blur(5px) saturate(1.03) brightness(0.96);
}
.page-chrome.is-scrolled .menu-button {
    background: rgba(5, 18, 32, 0.040);
}
.page-chrome .chrome-search input[type="text"],
.page-chrome.is-scrolled .chrome-search input[type="text"] {
    background: rgba(5, 18, 32, 0.075);
    border-color: rgba(190, 216, 234, 0.095);
    -webkit-backdrop-filter: blur(5px) saturate(1.03) brightness(0.95);
    backdrop-filter: blur(5px) saturate(1.03) brightness(0.95);
}
.page-chrome.is-scrolled .chrome-search input[type="text"] {
    background: rgba(5, 18, 32, 0.055);
    border-color: rgba(190, 216, 234, 0.075);
}

@media (max-width: 560px) {
    .page-chrome,
    .page-chrome.is-scrolled {
        background: linear-gradient(145deg, rgba(3, 13, 25, 0.028), rgba(3, 12, 23, 0.010)) !important;
        border-color: rgba(190, 216, 234, 0.09) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
        -webkit-backdrop-filter: blur(5px) saturate(1.03) brightness(0.96) !important;
        backdrop-filter: blur(5px) saturate(1.03) brightness(0.96) !important;
    }
    .page-chrome.is-scrolled {
        background: linear-gradient(145deg, rgba(3, 13, 25, 0.010), rgba(3, 12, 23, 0.003)) !important;
        border-color: rgba(190, 216, 234, 0.06) !important;
        -webkit-backdrop-filter: blur(5px) saturate(1.025) brightness(0.97) !important;
        backdrop-filter: blur(5px) saturate(1.025) brightness(0.97) !important;
    }
    .page-chrome .menu-button,
    .page-chrome.is-scrolled .menu-button {
        background: rgba(5, 18, 32, 0.055) !important;
        -webkit-backdrop-filter: blur(5px) saturate(1.03) brightness(0.96) !important;
        backdrop-filter: blur(5px) saturate(1.03) brightness(0.96) !important;
    }
    .page-chrome.is-scrolled .menu-button { background: rgba(5, 18, 32, 0.035) !important; }
    .page-chrome .chrome-search input[type="text"],
    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        background: rgba(5, 18, 32, 0.070) !important;
        -webkit-backdrop-filter: blur(5px) saturate(1.03) brightness(0.95) !important;
        backdrop-filter: blur(5px) saturate(1.03) brightness(0.95) !important;
    }
    .page-chrome.is-scrolled .chrome-search input[type="text"] { background: rgba(5, 18, 32, 0.050) !important; }
}

/* Mobile header v1.5 — iOS-safe focus typography.
   Keep the premium one-row chrome, but never expose a focusable text input
   below the WebKit-safe 16px computed size. Geometry is shared before/after
   scroll so focus and sticky state cannot produce a layout jump. */
@media (max-width: 560px) {
    .page-chrome,
    .page-chrome.is-scrolled {
        min-height: 50px !important;
    }
    .page-chrome .menu-button,
    .page-chrome.is-scrolled .menu-button,
    .page-chrome .chrome-search__button,
    .page-chrome.is-scrolled .chrome-search__button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .page-chrome .chrome-search__button,
    .page-chrome.is-scrolled .chrome-search__button {
        flex-basis: 40px;
    }
    .page-chrome .chrome-search input[type="text"],
    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        height: 40px;
        min-height: 40px;
        padding-inline: 0.62rem;
        font-size: 16px;
        line-height: 20px;
    }
    .page-chrome .topbar-brand__mark,
    .page-chrome.is-scrolled .topbar-brand__mark {
        width: 26px;
        height: 26px;
    }
}

/* Mobile/touch focus safety — WebKit must never see a sub-16px text input.
   Narrow phones use the compact 40px geometry above; wider tablets/landscape
   keep their existing 40px control geometry and only inherit the safe type. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .page-chrome .chrome-search input[type="text"],
    .page-chrome.is-scrolled .chrome-search input[type="text"] {
        font-size: 16px;
        line-height: 20px;
    }
}
