/* AtlasMarketWatch — Watch Widget CSS
   Design system variables provided by atlasbase-frontend.css (AtlasBase Suite)
   Edit colors/tokens THERE, not here.
   ═══════════════════════════════════════════ */

/* ─── Wrap ─── */
.aw-wrap {
    font-family: var(--ab-font);
    color: var(--ab-dark);
    width: 100%;
    background: var(--ab-bg);
    border: 1px solid var(--ab-border);
    overflow: hidden;
}

/* ─── Scrolling Ribbon ─── */
.aw-ribbon {
    background: var(--ab-dark);
    border-bottom: 2px solid var(--ab-blue);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}
.aw-ribbon-track {
    display: flex;
    width: 100%;
    overflow: hidden;
}
.aw-ribbon-inner {
    display: flex;
    align-items: center;
    animation: aw-scroll 60s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
}
.aw-ribbon-clone { animation: aw-scroll 60s linear infinite; }
@keyframes aw-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.aw-ribbon-track:hover .aw-ribbon-inner,
.aw-ribbon-track:hover .aw-ribbon-clone { animation-play-state: paused; }
.aw-ribbon-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    border-right: 1px solid var(--ab-dark2);
    height: 40px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s;
}
.aw-ribbon-item:hover { background: var(--ab-dark2); }
.aw-ribbon-icon { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.aw-ribbon-icon--stock  { background: var(--ab-blue); }
.aw-ribbon-icon--crypto { background: var(--ab-amber); }
.aw-ribbon-label  { font-size: 11px; font-weight: 600; color: var(--ab-white); }
.aw-ribbon-price  { font-size: 11px; font-weight: 700; color: var(--ab-white); }
.aw-ribbon-chg    { font-size: 10px; font-weight: 600; }
.aw-ribbon-up { color: var(--ab-green-bright); }
.aw-ribbon-dn { color: var(--ab-red-bright); }

/* ─── Main layout ─── */
.aw-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    padding: 10px;
}
.aw-left    { grid-column: 1; grid-row: 1; }
.aw-fng     { grid-column: 1; grid-row: 2; margin: 0; }
.aw-tv-link { grid-column: 1; grid-row: 3; }
.aw-right   { grid-column: 2; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 10px; }

/* ─── Left panel — fixed 540px ─── */
.aw-left {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    display: flex;
    flex-direction: column;
    height: 678px;
    overflow: hidden;
}
/* ─── Search bar ─── */
.aw-search-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--ab-bg);
    border-bottom: 1px solid var(--ab-border-light);
    flex-shrink: 0;
}
.aw-search-input {
    flex: 1;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-family: inherit;
    border: 1px solid var(--ab-border);
    border-right: none;
    outline: none;
    background: var(--ab-white);
    color: var(--ab-dark);
}
.aw-search-input:focus { border-color: var(--ab-blue); }
.aw-search-input::placeholder { color: var(--ab-text-faint); font-size: 11px; }
.aw-search-btn {
    height: 30px;
    padding: 0 14px;
    background: var(--ab-blue);
    color: var(--ab-white);
    border: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.aw-search-btn:hover { background: var(--ab-blue-hover); }
.aw-search-result {
    display: none;
    padding: 8px 14px;
    background: var(--ab-white);
    border-bottom: 1px solid var(--ab-border-light);
    cursor: pointer;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    flex-shrink: 0;
}
.aw-search-result:hover { background: var(--ab-bg-row-active); }
.aw-search-result-sym  { font-weight: 700; font-size: 12px; color: var(--ab-dark); font-family: monospace; }
.aw-search-result-name { color: var(--ab-text-muted); flex: 1; }
.aw-search-result-add  { font-size: 10px; color: var(--ab-blue); font-weight: 700; }
.aw-search-loading { padding: 8px 14px; font-size: 11px; color: var(--ab-text-faint); display: none; flex-shrink: 0; }
.aw-search-error   { padding: 8px 14px; font-size: 11px; color: #7f1d1d; display: none; flex-shrink: 0; }

/* ─── Tabs ─── */
.aw-tabs {
    display: flex;
    background: var(--ab-dark2);
    padding: 0 14px;
    gap: 0;
    flex-shrink: 0;
    overflow-x: auto;
}
.aw-tab {
    background: transparent;
    border: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ab-text-faint);
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: inherit;
    transition: all 0.15s;
    flex-shrink: 0;
}
.aw-tab:hover { color: var(--ab-white); }
.aw-tab--active { color: var(--ab-white); border-bottom-color: var(--ab-blue); }
.aw-tab--customize { margin-left: 4px; color: var(--ab-white); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; background: var(--ab-blue); padding: 0 10px; }
.aw-tab--customize:hover { background: var(--ab-blue-hover); color: var(--ab-white); }
.aw-tab--refresh { margin-left: auto; margin-right: 6px; color: var(--ab-white); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; background: var(--ab-blue); padding: 0 12px; width: 86px; text-align: center; flex-shrink: 0; }
.aw-tab--refresh:hover { background: var(--ab-blue-hover); }
.aw-tab--customize { margin-right: 6px; }
.aw-tab--refresh .aw-spin-icon { display: inline-block; }
.aw-tab--refresh.aw-refreshing .aw-spin-icon { animation: aw-spin 0.8s linear infinite; }
@keyframes aw-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* ─── Panel scrollable rows ─── */
.aw-panel {
    display: none;
    overflow-y: scroll;
    flex-direction: column;
    background: var(--ab-white);
    flex: 1;
    min-height: 0;
}
.aw-panel--active { display: flex; }


/* ─── Ticker table ─── */
/* 7-column grid: Ticker | Price | 24h | 1M | 1Y | MktCap | Spark */
.aw-table-head {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr 0.8fr 1fr 48px;
    padding: 5px 14px;
    background: var(--ab-bg);
    border-bottom: 1px solid var(--ab-border-light);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
}
.aw-table-head span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ab-text-faint);
    line-height: 1;
}
.aw-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr 0.8fr 1fr 48px;
    padding: 5px 12px;
    align-items: center;
    border-bottom: 1px solid var(--ab-bg);
    cursor: pointer;
    transition: background 0.12s;
}
.aw-row:hover { background: var(--ab-bg-row-hover); }
.aw-row.aw-row--active { background: var(--ab-bg-row-active); border-left: 3px solid var(--ab-blue); padding-left: 11px; }
.aw-row:last-child { border-bottom: none; }

.aw-row-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.aw-sym  { font-size: 11px; font-weight: 700; color: var(--ab-dark); white-space: nowrap; flex-shrink: 0; }
.aw-name { font-size: 9px; color: var(--ab-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-row-price { font-size: 11px; font-weight: 600; color: var(--ab-dark); }
.aw-row-chg   { }
.aw-chg-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    display: inline-block;
    white-space: nowrap;
}
.aw-chg-up { background: var(--ab-green-bg); color: var(--ab-green); }
.aw-chg-dn { background: var(--ab-red-bg); color: var(--ab-red); }
.aw-chg-na { background: transparent; color: var(--ab-text-faint); font-size: 10px; }
.aw-row-extra { font-size: 9px; font-weight: 600; color: var(--ab-text-muted); font-family: monospace; white-space: nowrap; }
.aw-row-spark { display: flex; justify-content: flex-end; align-items: center; }
.aw-spark { display: block; width: 44px; height: 20px; }
.aw-spark-line { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.aw-spark-up { stroke: var(--ab-green); }
.aw-spark-dn { stroke: var(--ab-red); }

/* ─── Up / Down colors ─── */
.aw-up { color: var(--ab-green); }
.aw-dn { color: var(--ab-red); }

/* ─── Customize panel ─── */
.aw-customize-inner { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.aw-customize-desc  { font-size: 12px; color: var(--ab-text-muted); line-height: 1.6; }
.aw-customize-input-row { display: flex; gap: 8px; }
.aw-customize-input-row input {
    flex: 1; height: 34px; padding: 0 10px;
    font-size: 12px; font-family: monospace; font-weight: 600;
    border: 1.5px solid var(--ab-border); outline: none; text-transform: uppercase;
}
.aw-customize-input-row input:focus { border-color: var(--ab-blue); }
.aw-customize-input-row button, #aw-reset-list {
    background: var(--ab-blue); color: var(--ab-white); border: none;
    padding: 0 14px; height: 34px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
}
.aw-customize-input-row button:hover { background: var(--ab-blue-hover); }
#aw-reset-list {
    background: transparent; color: var(--ab-text-faint); border: 1px solid var(--ab-border-light); font-size: 10px;
}
.aw-custom-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ab-bg); border: 1px solid var(--ab-border);
    padding: 3px 8px; font-size: 11px; font-weight: 600; font-family: monospace; margin: 2px;
}
.aw-custom-tag-remove { background: none; border: none; color: var(--ab-text-faint); cursor: pointer; font-size: 14px; line-height: 1; }
.aw-custom-tag-remove:hover { color: var(--ab-red); }

/* ─── Right panel — cards stacked ─── */

/* Chart panel - card */
/* News panel - fills remaining space */
.aw-news-panel {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    display: flex;
    flex-direction: column;
    height: 290px;
    overflow: hidden;
    flex-shrink: 0;
}


/* ─── Chart empty state ─── */
.aw-chart-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--ab-border);
}
.aw-chart-empty-icon  { font-size: 28px; color: var(--ab-border-light); }
.aw-chart-empty-text  { font-size: 12px; color: var(--ab-text-faint); text-align: center; }

/* ─── Chart loaded ─── */
.aw-chart-loaded { display: flex; flex-direction: column; }
.aw-chart-hd {
    padding: 8px 12px 6px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
    border-bottom: 1px solid var(--ab-bg);
}
.aw-chart-symbol { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-text-faint); margin-bottom: 2px; }
.aw-chart-name   { display: block; font-size: 12px; font-weight: 600; color: var(--ab-dark); }
.aw-chart-hd-right { text-align: right; flex-shrink: 0; }
.aw-chart-price  { display: block; font-size: 20px; font-weight: 700; color: var(--ab-dark); line-height: 1.1; }
.aw-chart-chg    { display: block; font-size: 11px; font-weight: 600; margin-top: 2px; }

/* ─── Timeframe tabs ─── */
.aw-tf-tabs { display: flex; gap: 2px; padding: 5px 12px; background: var(--ab-bg); border-bottom: 1px solid var(--ab-border-light); }
.aw-tf-tab {
    background: transparent; border: 1px solid var(--ab-border-light);
    color: var(--ab-text-muted); font-size: 10px; font-weight: 700;
    padding: 3px 9px; cursor: pointer; font-family: inherit; letter-spacing: 0.06em;
}
.aw-tf-tab:hover { background: var(--ab-white); color: var(--ab-dark); }
.aw-tf-tab--active { background: var(--ab-blue); border-color: var(--ab-blue); color: var(--ab-white); }

/* ─── Chart panel - card ─── */
.aw-chart-panel {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
    flex-shrink: 0;
}
.aw-chart-panel .aw-chart-loaded {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
/* TV widget — hard fixed height */
.aw-tv-widget {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    background: var(--ab-bg);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.aw-tv-widget iframe,
.aw-tv-widget > div {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* ─── TV affiliate link — own card below left panel ─── */
.aw-tv-link,
.aw-tv-link:link,
.aw-tv-link:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    text-align: center !important;
    padding: 0 !important;
    background: var(--ab-blue) !important;
    color: var(--ab-white) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    border: 1px solid var(--ab-blue-hover) !important;
}
.aw-tv-link:hover,
.aw-tv-link:focus { background: var(--ab-blue-hover) !important; color: var(--ab-white) !important; }

/* ─── Stat rows ─── */
.aw-stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--ab-border-light); }
.aw-stat { background: var(--ab-bg); padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; }
.aw-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-text-faint); }
.aw-stat-val   { font-size: 12px; font-weight: 700; color: var(--ab-dark); }

/* ─── 52W bar ─── */
.aw-52w { padding: 6px 12px; border-top: 1px solid var(--ab-bg); }
.aw-52w-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-text-faint); margin-bottom: 4px; display: block; }
.aw-52w-bar-wrap { display: flex; align-items: center; gap: 7px; }
.aw-52w-low  { font-size: 10px; font-weight: 600; color: var(--ab-red); white-space: nowrap; }
.aw-52w-high { font-size: 10px; font-weight: 600; color: var(--ab-green); white-space: nowrap; }
.aw-52w-track { flex: 1; height: 4px; background: var(--ab-border-light); border-radius: 2px; position: relative; }
.aw-52w-fill  { position: absolute; left: 0; top: 0; height: 4px; background: linear-gradient(to right,var(--ab-red),var(--ab-blue),var(--ab-green)); border-radius: 2px; transition: width 0.4s; }
.aw-52w-dot   { position: absolute; top: -4px; width: 12px; height: 12px; background: var(--ab-blue); border: 2px solid #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left 0.4s; }
.aw-52w-pct   { font-size: 9px; color: var(--ab-text-muted); margin-top: 5px; display: block; }

/* ─── Market Status ─── */
.aw-market-status {
    padding: 0 14px; background: var(--ab-bg); border-top: 1px solid var(--ab-border-light);
    display: flex; align-items: center; gap: 8px; height: 24px;
}
.aw-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.aw-status-dot--open   { background: var(--ab-green); animation: aw-pulse 2s infinite; }
.aw-status-dot--closed { background: var(--ab-red); }
.aw-status-dot--pre    { background: var(--ab-amber); }
@keyframes aw-pulse {
    0%,100% { box-shadow: 0 0 0 2px rgba(22,101,52,0.2); }
    50%      { box-shadow: 0 0 0 4px rgba(22,101,52,0.1); }
}
.aw-status-text { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--ab-text-muted); text-transform: uppercase; }
.aw-status-time { font-size: 9px; color: var(--ab-text-faint); margin-left: auto; }

/* ─── Banners ─── */
/* ─── Affiliate Banners — standalone between chart and news ─── */
#aw-banners {
    border: 1px solid var(--ab-border);
    background: var(--ab-dark);
    flex-shrink: 0;
}
.aw-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; background: var(--ab-dark); border-bottom: 1px solid var(--ab-dark2);
    text-decoration: none !important;
}
.aw-banner:last-child { border-bottom: none; }
.aw-banner:hover { background: var(--ab-dark2); }
.aw-banner-text  { font-size: 11px; color: var(--ab-text-faint); line-height: 1.4; }
.aw-banner-text strong { color: var(--ab-white); font-weight: 600; }
.aw-banner-cta   { background: var(--ab-blue); color: var(--ab-white); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; white-space: nowrap; flex-shrink: 0; }

/* ─── News ─── */
.aw-news { padding: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; }
.aw-news-hd {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ab-dark);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ab-bg);
    border-bottom: 2px solid var(--ab-blue);
}
.aw-news-hd span:first-child {
    color: var(--ab-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.aw-news-sym-badge {
    background: var(--ab-blue);
    color: var(--ab-white);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    letter-spacing: 0.06em;
}
.aw-news-loading { padding: 8px 14px; font-size: 11px; color: var(--ab-text-faint); }
#aw-news-list { overflow-y: scroll; flex: 1; min-height: 0; scrollbar-width: thin; }
.aw-news-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--ab-bg);
    text-decoration: none !important;
    transition: background 0.12s;
}
.aw-news-item:hover { background: var(--ab-bg-row-hover); }
.aw-news-item:last-child { border-bottom: none; }
.aw-news-headline { font-size: 11px; font-weight: 600; color: var(--ab-dark); line-height: 1.4; display: block; }
.aw-news-item:hover .aw-news-headline { color: var(--ab-blue); }
.aw-news-meta { font-size: 9px; color: var(--ab-text-faint); display: flex; gap: 6px; }
.aw-news-source { font-weight: 600; color: var(--ab-text-muted); }

/* ─── Related ─── */
.aw-related { padding: 8px 14px; border-top: 1px solid var(--ab-bg); }
.aw-related-hd { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ab-text-faint); margin-bottom: 6px; }
.aw-related-link { display: block; font-size: 11px; color: var(--ab-blue); text-decoration: none; padding: 3px 0; border-bottom: 1px solid var(--ab-bg); }
.aw-related-link:last-child { border-bottom: none; }
.aw-related-link:hover { text-decoration: underline; }

/* ─── Ad area ─── */
.aw-ad-bar { background: var(--ab-white); border-top: 1px solid var(--ab-border-light); display: flex; align-items: stretch; padding: 0; gap: 0; }
.aw-ad-label { background: transparent; color: var(--ab-text-ultra); font-size: 8px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 3px; border: none; flex-shrink: 0; line-height: 1.2; writing-mode: vertical-rl; transform: rotate(180deg); }
.aw-ad-inner { display: flex; align-items: center; gap: 12px; padding: 8px 14px; flex: 1; text-decoration: none !important; color: var(--ab-dark) !important; }
.aw-ad-inner:hover { opacity: 0.8; }
.aw-ad-img  { height: 32px; width: auto; object-fit: contain; flex-shrink: 0; }
.aw-ad-text { font-size: 12px; font-weight: 500; color: var(--ab-dark); flex: 1; line-height: 1.4; }
.aw-ad-cta  { background: var(--ab-blue); color: var(--ab-white); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; white-space: nowrap; flex-shrink: 0; }

/* ─── Footer ─── */
.aw-footer {
    background: var(--ab-bg);
    border-top: 1px solid var(--ab-border-light);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.aw-footer-left,
.aw-footer-right { font-size: 9px; color: var(--ab-border); }
.aw-footer-right strong { color: var(--ab-text-muted); }
.aw-footer-right a { color: var(--ab-border); text-decoration: none; }
.aw-footer-right a:hover { color: var(--ab-blue); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .aw-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 8px;
        gap: 8px;
    }
    .aw-left    { grid-column: 1; grid-row: 1; height: auto; }
    .aw-fng     { grid-column: 1; grid-row: 2; }
    .aw-tv-link { grid-column: 1; grid-row: 3; width: 100% !important; }
    .aw-right   { grid-column: 1; grid-row: 4; }
    .aw-chart-panel { height: auto; }
    .aw-news-panel  { height: auto; max-height: 300px; }
    .aw-panel       { max-height: 300px; }
    .aw-row, .aw-table-head { grid-template-columns: 1.5fr 1fr 0.8fr 48px; }
    .aw-row > div:nth-child(4),
    .aw-row > div:nth-child(5),
    .aw-row > div:nth-child(6),
    .aw-table-head span:nth-child(4),
    .aw-table-head span:nth-child(5),
    .aw-table-head span:nth-child(6) { display: none; }
}

/* ═══════════════════════════════════════════
   Skeleton Loader
═══════════════════════════════════════════ */
@keyframes aw-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.aw-skeleton {
    background: linear-gradient(90deg, var(--ab-bg) 25%, #e8e8e8 50%, var(--ab-bg) 75%);
    background-size: 400px 100%;
    animation: aw-shimmer 1.4s ease infinite;
    border-radius: 2px;
    display: inline-block;
}
.aw-skeleton-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr 0.8fr 1fr 48px;
    padding: 9px 14px;
    align-items: center;
    border-bottom: 1px solid var(--ab-bg);
    gap: 0;
}
.aw-skeleton-row:last-child { border-bottom: none; }

/* Ribbon skeleton */
.aw-ribbon-skeleton {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
    height: 40px;
}
.aw-ribbon-skeleton-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading overlay on right panel */
.aw-chart-skeleton {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}

/* ═══════════════════════════════════════════
   Market Movers Boxes
═══════════════════════════════════════════ */
.aw-movers {
    padding: 0 10px 10px;
}
.aw-movers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.aw-mover-box {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    display: flex;
    flex-direction: column;
}
.aw-mover-hd {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ab-border-light);
    background: var(--ab-bg);
    flex-shrink: 0;
}
.aw-mover-icon { font-size: 11px; flex-shrink: 0; }
.aw-mover-icon--up     { color: var(--ab-green); }
.aw-mover-icon--dn     { color: var(--ab-red); }
.aw-mover-icon--active { color: var(--ab-amber); }
.aw-mover-title { font-size: 10px; font-weight: 700; color: var(--ab-text-muted); flex: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.aw-mover-sub   { font-size: 9px; color: var(--ab-text-faint); white-space: nowrap; }
.aw-mover-list  { display: flex; flex-direction: column; }
.aw-mover-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 1px solid var(--ab-bg);
    cursor: pointer;
    transition: background 0.12s;
    gap: 8px;
}
.aw-mover-row:hover { background: var(--ab-bg-row-hover); }
.aw-mover-row:last-child { border-bottom: none; }
.aw-mover-left  { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; flex: 1; }
.aw-mover-sym  { font-size: 11px; font-weight: 700; color: var(--ab-blue); white-space: nowrap; flex-shrink: 0; }
.aw-mover-name { font-size: 9px; color: var(--ab-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-mover-right { text-align: right; flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
.aw-mover-price { font-size: 11px; font-weight: 600; color: var(--ab-dark); }
.aw-mover-pct   { display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 5px; }
.aw-mover-pct--up { background: var(--ab-green-bg); color: var(--ab-green); }
.aw-mover-pct--dn { background: var(--ab-red-bg); color: var(--ab-red); }
.aw-mover-pct--na { color: var(--ab-text-faint); background: transparent; }
.aw-skeleton-mover { cursor: default; }
.aw-skeleton-mover:hover { background: transparent !important; }

@media (max-width: 900px) { .aw-movers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .aw-movers-grid { grid-template-columns: 1fr; } }

.aw-fng {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    height: 160px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.aw-fng-hd {
    background: var(--ab-bg);
    border-bottom: 2px solid var(--ab-blue);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aw-fng-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ab-dark);
}
.aw-fng-src { font-size: 9px; color: var(--ab-text-faint); }

.aw-fng-body {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.aw-fng-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.aw-fng-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--ab-dark);
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}
.aw-fng-info { flex: 1; }
.aw-fng-classification {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.aw-fng-c-extreme-fear  { color: var(--ab-red); }
.aw-fng-c-fear          { color: var(--ab-amber); }
.aw-fng-c-neutral       { color: var(--ab-text-muted); }
.aw-fng-c-greed         { color: var(--ab-green); }
.aw-fng-c-extreme-greed { color: #14532d; }
.aw-fng-bar-track {
    height: 7px;
    background: linear-gradient(to right, var(--ab-red), var(--ab-amber), #888780, var(--ab-green), #14532d);
    border-radius: 3px;
    position: relative;
    margin-bottom: 3px;
}
.aw-fng-bar-fill { display: none; }
.aw-fng-bar-dot {
    position: absolute;
    top: -5px;
    width: 16px;
    height: 16px;
    background: var(--ab-dark);
    border: 2px solid var(--ab-white);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    transition: left 0.5s ease;
}
.aw-fng-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--ab-text-faint);
    margin-top: 6px;
}
.aw-fng-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 1px solid var(--ab-border-light);
    padding-left: 12px;
    flex-shrink: 0;
}
.aw-fng-stat { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.aw-fng-stat-lbl { font-size: 10px; color: var(--ab-text-faint); white-space: nowrap; font-weight: 600; }
.aw-fng-stat-val { font-size: 11px; font-weight: 700; color: var(--ab-dark); }

/* ─── Scrollbars ─── */
.aw-panel::-webkit-scrollbar,
#aw-news-list::-webkit-scrollbar { width: 5px; }
.aw-panel::-webkit-scrollbar-track,
#aw-news-list::-webkit-scrollbar-track { background: var(--ab-bg); }
.aw-panel::-webkit-scrollbar-thumb,
#aw-news-list::-webkit-scrollbar-thumb { background: var(--ab-border); border-radius: 3px; }
.aw-panel::-webkit-scrollbar-thumb:hover,
#aw-news-list::-webkit-scrollbar-thumb:hover { background: var(--ab-text-muted); }

/* ─── Loading placeholder rows ─── */
.aw-row--loading { opacity: 0.5; }
.aw-name--dim { color: var(--ab-text-faint); font-style: italic; }
