.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wl-strip { margin: 1.25rem 0 2rem; }
.wl-strip-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.65rem;
}
.wl-strip-head h2 { margin: 0; font-size: 1.05rem; color: #333; }
.wl-strip-actions { display: flex; align-items: center; gap: 0.75rem; }
.wl-strip-head a { color: #667eea; font-weight: 650; font-size: 0.85rem; text-decoration: none; }
.wl-strip-head a:hover { text-decoration: underline; }
.wl-btn {
    display: inline-flex; align-items: center; padding: 0.35rem 0.85rem;
    background: #4f46e5; color: #fff !important; border-radius: 8px;
    font-weight: 700; font-size: 0.85rem; text-decoration: none !important;
}
.wl-btn:hover { background: #4338ca; color: #fff !important; }
.wl-strip-track {
    display: flex; gap: 0.65rem; overflow-x: auto; padding-bottom: 0.35rem;
    scrollbar-width: thin; align-items: stretch;
}
.wl-divider {
    flex: 0 0 1px; width: 1px; background: #e5e7eb; margin: 0.25rem 0.15rem;
}
.wl-chip {
    flex: 0 0 auto; display: flex; align-items: center; gap: 0.55rem;
    min-width: 168px; padding: 0.55rem 0.7rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.wl-chip:hover { border-color: #c7d2fe; box-shadow: 0 4px 12px rgba(79,70,229,0.12); }
.ua-home { margin: 0 0 2rem; }
.ua-home-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.75rem;
}
.ua-home-head h2 { margin: 0; font-size: 1.05rem; color: #333; }
.ua-home-head a { color: #667eea; font-weight: 650; font-size: 0.85rem; text-decoration: none; }
.ua-home-head a:hover { text-decoration: underline; }
.ua-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ua-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 1rem 1.1rem; box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}
.ua-card h3 { margin: 0 0 0.65rem; font-size: 0.95rem; color: #4f46e5; }
.ua-list { list-style: none; padding: 0; margin: 0; }
.ua-list li { padding: 0.35rem 0; border-bottom: 1px solid #f3f4f6; }
.ua-list li:last-child { border-bottom: 0; }
.ua-list a { color: #111827; text-decoration: none; font-size: 0.9rem; }
.ua-list a:hover { color: #4f46e5; text-decoration: underline; }
.ua-empty { margin: 0.35rem 0 0; color: #6b7280; font-size: 0.85rem; }
.home-continue-stocks {
    margin: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
    padding: 1.1rem 1.2rem;
}
.home-continue-stocks .ua-home-head { margin-bottom: 0.45rem; }
.home-continue-stocks .ua-list a { display: block; }
.sr-widget-chart { display: block; width: 100%; height: 150px; }
.sr-widget-chart-link { display: block; margin: 0 0 0.85rem; }
.wl-logo, .wl-logo-fallback {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    object-fit: contain; background: #f8fafc;
}
.wl-logo-fallback {
    display: none; align-items: center; justify-content: center;
    font-size: 0.62rem; font-weight: 800; color: #4338ca; background: #eef2ff;
}
.wl-badge {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.58rem; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.wl-badge-sp { background: #1d4ed8; }
.wl-badge-tsx { background: #b91c1c; }
.wl-badge-vix { background: #7c3aed; }
.wl-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.wl-ticker { font-size: 0.72rem; font-weight: 750; color: #4f46e5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-price { font-size: 0.92rem; font-weight: 700; color: #1a202c; }
.wl-change { font-size: 0.72rem; font-weight: 650; }
.wl-change.up { color: #16a34a; }
.wl-change.down { color: #dc2626; }
.wl-change.flat { color: #9ca3af; }
.wl-spark { width: 56px; height: 28px; flex-shrink: 0; }
.wl-spark svg { width: 100%; height: 100%; display: block; }
.home-feeds {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    margin: 1.5rem 0 2.5rem;
}
.home-feeds:has(.theme-carousel:only-child) {
    grid-template-columns: 1fr;
}
.home-feeds .theme-carousel,
.home-feeds .theme-picker {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.theme-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}
.theme-tile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.theme-tile:hover { border-color: #c7d2fe; }
.theme-tile.is-selected {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 0 0 1px #4f46e5;
}
.theme-tile-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.theme-tile-name {
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
}
.theme-slide-icon { margin-right: 0.35rem; }
.home-feeds .theme-carousel-viewport { flex: 1; min-height: 300px; }
.home-feeds .theme-carousel-head h2 { font-size: 1.2rem; }
.home-feeds .theme-slide-title { font-size: 1.12rem; }
.home-feeds .theme-carousel-frame { display: block; }
.home-feeds .features-carousel .theme-carousel-viewport { min-height: 320px; }
@media (max-width: 900px) {
    .home-feeds { grid-template-columns: 1fr; }
}
.theme-carousel-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.theme-carousel-head h2 {
    margin: 0 0 0.2rem; color: #333; font-size: 1.5rem;
}
.theme-carousel-head p { margin: 0; color: #718096; font-size: 0.9rem; }
.theme-carousel-all {
    color: #667eea; font-weight: 650; text-decoration: none; font-size: 0.9rem;
    align-self: center;
}
.theme-carousel-all:hover { text-decoration: underline; }
.theme-carousel-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.theme-carousel-frame {
    display: block;
}
.theme-carousel-viewport {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06); min-height: 280px; overflow: hidden;
}
.features-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    margin: 1.5rem 0 2.5rem;
}
.features-row:has(.theme-carousel:only-child) {
    grid-template-columns: 1fr;
}
.features-row .theme-carousel {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.features-row .theme-carousel-viewport { flex: 1; min-height: 320px; }
.features-row .theme-carousel-head h2 { font-size: 1.2rem; }
.features-carousel { margin: 0; }
.features-carousel .theme-carousel-viewport { min-height: 320px; }
@media (max-width: 900px) {
    .features-row { grid-template-columns: 1fr; }
}
.feat-econ-list {
    max-height: 220px; overflow-y: auto; margin: 0 0 1rem;
    padding-right: 0.25rem;
}
.feat-econ-date {
    font-size: 0.72rem; font-weight: 750; color: #4f46e5;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin: 0.55rem 0 0.25rem;
}
.feat-econ-date:first-child { margin-top: 0; }
.feat-econ-row {
    display: grid;
    grid-template-columns: 16px 2.4rem minmax(0, 1fr) auto;
    gap: 0.4rem; align-items: center;
    padding: 0.18rem 0; font-size: 0.8rem; line-height: 1.25;
    border-bottom: 1px solid #f3f4f6;
}
.feat-econ-flag {
    width: 16px; height: 12px; object-fit: cover; border-radius: 1px;
}
.feat-econ-time { color: #6b7280; font-variant-numeric: tabular-nums; font-size: 0.72rem; }
.feat-econ-name {
    color: #1a202c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
}
.feat-econ-country {
    color: #6b7280; font-size: 0.72rem; text-decoration: none; white-space: nowrap;
    max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis;
}
a.feat-econ-country:hover { color: #4f46e5; text-decoration: underline; }
.feat-curve-link {
    display: block; margin: 0 0 1rem; border-radius: 10px; overflow: hidden;
    border: 1px solid #e5e7eb; background: #f8fafc;
}
.feat-curve-link img {
    display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain;
}
.feat-curve-link:hover { border-color: #c7d2fe; }
.theme-slide { padding: 1.35rem 1.5rem 1.25rem; }
.theme-slide[hidden] { display: none !important; }
.theme-slide-kicker {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: #667eea; font-weight: 700; margin-bottom: 0.25rem;
}
.theme-slide-title { margin: 0 0 0.65rem; font-size: 1.45rem; color: #1a202c; letter-spacing: -0.02em; }
.theme-rec {
    display: inline-block; margin: 0 0 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px;
    background: #ecfdf5; color: #047857; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
}
.theme-slide-desc {
    margin: 0 0 1rem; color: #4a5568; font-size: 0.95rem; line-height: 1.55;
    max-height: 7.5rem; overflow: auto;
}
.theme-slide-stocks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.theme-chip {
    display: inline-block; padding: 0.22rem 0.55rem; border-radius: 999px;
    background: #eef2ff; color: #4338ca; font-weight: 650; font-size: 0.8rem;
    text-decoration: none; border: 1px solid #c7d2fe;
}
.theme-chip:hover { background: #e0e7ff; }
.theme-slide-empty { color: #9ca3af; font-size: 0.9rem; }
.theme-slide-cta { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.theme-fund-form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.theme-fund-form select {
    padding: 0.45rem 0.6rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.88rem;
}
.theme-cta {
    display: inline-flex; align-items: center; padding: 0.5rem 0.9rem; border-radius: 8px;
    font-weight: 650; font-size: 0.88rem; text-decoration: none; border: 1px solid transparent;
    cursor: pointer;
}
.theme-cta-primary { background: #4f46e5; color: #fff; border: 0; }
.theme-cta-primary:hover { background: #4338ca; color: #fff; }
.theme-cta-secondary { background: #fff; color: #4338ca; border-color: #c7d2fe; }
.theme-cta-secondary:hover { background: #eef2ff; }
.theme-cta-ghost { background: transparent; color: #4b5563; border-color: #e5e7eb; }
.theme-cta-ghost:hover { background: #f9fafb; }
.theme-cta-disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.theme-carousel-nav {
    min-width: 72px; padding: 0.35rem 0.7rem; border: 1px solid #e5e7eb; background: #fff;
    border-radius: 8px; font-size: 0.85rem; font-weight: 650; line-height: 1.2;
    color: #374151; cursor: pointer;
}
.theme-carousel-nav:hover { background: #eef2ff; color: #4338ca; }
.theme-carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; }
.theme-dot {
    width: 8px; height: 8px; border-radius: 99px; border: 0; background: #d1d5db; cursor: pointer; padding: 0;
}
.theme-dot.is-active { background: #4f46e5; width: 18px; }
.basket-table-section { margin: 0 0 2.5rem; }
#watchlistStrip + .basket-table-section { margin-top: 0.25rem; }
.basket-table-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.basket-table-head h2 { margin: 0 0 0.2rem; color: #333; font-size: 1.2rem; }
.basket-table-head p { margin: 0; color: #718096; font-size: 0.9rem; }
.basket-table-pick { display: flex; flex-direction: column; gap: 0.25rem; }
.basket-table-pick label { font-size: 0.75rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; }
.basket-table-tools { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.basket-table-pick select {
    min-width: 220px; padding: 0.45rem 0.65rem; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 0.92rem; background: #fff;
}
.basket-featured-flag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.7rem; border: 1px solid #d1d5db; border-radius: 8px;
    background: #fff; color: #6b7280; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.02em; cursor: pointer; user-select: none; white-space: nowrap;
}
.basket-featured-flag.is-on {
    background: #fffbeb; border-color: #fcd34d; color: #92400e;
}
.basket-featured-flag input { margin: 0; accent-color: #d97706; }
.basket-tool-btn {
    display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; border-radius: 8px;
    background: #4f46e5; color: #fff; font-weight: 650; font-size: 0.85rem; text-decoration: none;
    white-space: nowrap;
}
.basket-tool-btn:hover { background: #4338ca; color: #fff; }
.basket-tool-btn.ghost { background: #fff; color: #4338ca; border: 1px solid #c7d2fe; }
.basket-tool-btn.ghost:hover { background: #eef2ff; color: #3730a3; }
.basket-tool-btn.is-disabled {
    background: #e5e7eb; color: #9ca3af; pointer-events: none; cursor: not-allowed;
}
.basket-table-wrap {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06); overflow-x: auto;
}
.basket-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.basket-table th, .basket-table td {
    padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid #f1f5f9; white-space: nowrap;
}
.basket-table th { background: #f8fafc; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; font-weight: 700; }
.basket-table th[data-sort] { cursor: pointer; user-select: none; }
.basket-table th[data-sort]:hover { color: #4f46e5; }
.basket-table th[data-sort]::after { content: ''; margin-left: 0.3rem; font-size: 0.65rem; color: #cbd5e1; }
.basket-table th[aria-sort="ascending"]::after { content: '▲'; color: #4f46e5; }
.basket-table th[aria-sort="descending"]::after { content: '▼'; color: #4f46e5; }
.basket-table td.num, .basket-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.basket-table tbody tr:last-child td { border-bottom: 0; }
.basket-table tbody tr:hover { background: #f8fafc; }
.basket-sym { font-weight: 750; color: #4f46e5; text-decoration: none; }
.basket-sym:hover { text-decoration: underline; }
.basket-chg.up { color: #16a34a; font-weight: 650; }
.basket-chg.down { color: #dc2626; font-weight: 650; }
.basket-chg.flat { color: #9ca3af; }
.basket-range {
    display: flex; align-items: center; gap: 0.45rem; min-width: 168px;
}
.basket-range-end {
    font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 650;
    color: #64748b; white-space: nowrap;
}
.basket-range-track {
    position: relative; flex: 1; height: 3px; min-width: 72px;
    background: #c7d2fe; border-radius: 99px;
}
.basket-range-marker {
    position: absolute; top: 50%; width: 9px; height: 9px;
    background: #4f46e5; border: 2px solid #fff; border-radius: 50%;
    box-shadow: 0 0 0 1px #4f46e5;
    transform: translate(-50%, -50%);
}
.basket-link {
    color: #4f46e5; font-weight: 650; text-decoration: none; font-size: 0.85rem;
}
.basket-link:hover { text-decoration: underline; }
.basket-empty { text-align: center; color: #9ca3af; padding: 1.25rem !important; }
.home-customize { display: flex; justify-content: flex-end; margin: 0 0 0.75rem; }
.home-customize-toggle, .home-customize-login {
    display: inline-flex; align-items: center; padding: 0.4rem 0.85rem;
    border: 1px solid #c7d2fe; border-radius: 8px; background: #fff; color: #4338ca;
    font-weight: 700; font-size: 0.85rem; text-decoration: none; cursor: pointer;
}
.home-customize-toggle:hover, .home-customize-login:hover { background: #eef2ff; }
.home-customize-panel {
    margin: 0 0 1.5rem; padding: 1rem 1.1rem; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.home-customize-panel h2 { margin: 0 0 0.35rem; font-size: 1.15rem; color: #333; }
.home-customize-panel p { margin: 0 0 0.85rem; color: #718096; font-size: 0.9rem; }
.home-customize-list { list-style: none; margin: 0 0 0.85rem; padding: 0; }
.home-customize-list li {
    display: flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.2rem;
    border-bottom: 1px solid #f3f4f6; cursor: grab;
}
.home-customize-list li.is-dragging { opacity: 0.45; cursor: grabbing; }
.home-customize-grip {
    flex: 0 0 auto; color: #9ca3af; font-weight: 700; letter-spacing: -0.12em;
    user-select: none; cursor: grab;
}
.home-customize-list li span { flex: 1; font-weight: 650; color: #1f2937; }
.home-customize-list li .home-customize-grip { flex: 0 0 auto; color: #9ca3af; font-weight: 700; }
.home-customize-list button, .home-customize-add button, .home-customize-actions button {
    padding: 0.3rem 0.6rem; border: 1px solid #e5e7eb; border-radius: 8px;
    background: #fff; font-weight: 650; font-size: 0.8rem; cursor: pointer; color: #374151;
}
.home-customize-list button:hover, .home-customize-add button:hover, .home-customize-actions button:hover {
    background: #eef2ff; color: #4338ca;
}
.home-customize-add { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.85rem; }
.home-customize-add select, .home-customize-list select {
    min-width: 7.5rem; padding: 0.35rem 0.45rem; border: 1px solid #d1d5db; border-radius: 8px;
    background: #fff; font-size: 0.8rem; font-weight: 650; color: #374151;
}
.home-customize-add select { min-width: 220px; }
.home-customize-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.home-customize-actions .is-primary { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.home-customize-actions .is-primary:hover { background: #4338ca; color: #fff; }
.home-customize-note { margin: 0.6rem 0 0; color: #047857; font-size: 0.85rem; }
.home-widgets {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start;
}
.home-widget { margin: 0; min-width: 0; }
.home-widget.is-full { grid-column: 1 / -1; }
.home-widget.is-half,
.home-widget.is-carousel { grid-column: span 1; }
.home-widget.is-carousel .theme-carousel,
.home-widget.is-carousel .theme-picker {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}
.home-widget.is-carousel .theme-carousel-frame { flex: 1; display: flex; }
.home-widget.is-carousel .theme-carousel-viewport { flex: 1; min-height: 280px; }
@media (max-width: 900px) {
    .home-widgets { grid-template-columns: 1fr; }
    .home-widget.is-full,
    .home-widget.is-carousel { grid-column: auto; }
}
.home-widget-bar { display: flex; justify-content: flex-end; margin-bottom: 0.35rem; }
.home-widget-open { color: #4f46e5; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.home-widget-open:hover { text-decoration: underline; }
.home-tool-card {
    display: flex; gap: 0.85rem; align-items: center; padding: 1.1rem 1.2rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    text-decoration: none; color: inherit; box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.home-tool-card:hover { border-color: #c7d2fe; }
.home-tool-card .tool-icon { font-size: 1.6rem; }
.home-tool-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; color: #1f2937; }
.home-tool-card p { margin: 0; color: #6b7280; font-size: 0.9rem; }
.home-tool-preview {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 0.9rem 1rem; box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.home-tool-preview-kicker { margin: 0 0 0.65rem; color: #6b7280; font-size: 0.88rem; }
.home-tool-preview-empty { margin: 0; color: #6b7280; }
.home-tool-preview-list { list-style: none; margin: 0; padding: 0; }
.home-tool-preview-list li {
    display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
    padding: 0.45rem 0; border-top: 1px solid #f3f4f6;
}
.home-tool-preview-list li span { color: #1f2937; font-size: 0.92rem; }
.home-tool-preview-list li strong { color: #4f46e5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.basket-compare-page .basket-table-section { margin-top: 1.25rem; }
