/* Compact broadcast strip, inspired by the supplied financial-news reference. */
#city-ticker .city-ticker-card { padding:0; border-radius:12px; background:#191e21; border:1px solid #626655; color:#f4f1df; overflow:hidden; }
.city-feed-top { display:grid; grid-template-columns:96px minmax(180px,1fr) minmax(0,2fr); min-height:72px; }
.city-feed-featured { position:relative; overflow:hidden; perspective:550px; border-right:2px solid #a9a16b; color:inherit; text-decoration:none; }
.city-feed-featured .city-feed-face { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:1fr 1fr; padding:4px 10px; gap:2px 8px; }
.city-feed-featured .city-feed-name { grid-column:1/-1; font-size:13px; }
.city-feed-featured .city-feed-price { font-size:18px; }
.city-feed-featured .city-feed-change { align-self:center; min-height:23px; }
.city-feed-quote { color:inherit; text-decoration:none; }
.city-feed-quote:focus-visible,.city-feed-featured:focus-visible { outline:2px solid #f6d355; outline-offset:-2px; }
.city-feed-quote:hover,.city-feed-featured:hover { filter:brightness(1.18); }
.city-feed-clock { display:flex; flex-direction:column; justify-content:center; align-items:center; border-right:2px solid #a9a16b; background:#171c1d; }
.city-feed-clock time { color:#f6d355; font:500 27px/1.1 'Roboto Mono',monospace; font-variant-numeric:tabular-nums; letter-spacing:-2px; }
.city-feed-clock small { color:#d4cda9; font-size:9px; letter-spacing:.12em; margin-top:5px; }
.city-feed-markets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:#5d6057; padding:3px; }
.city-feed-quote { position:relative; height:31px; perspective:550px; overflow:hidden; background:#292f30; }
.city-feed-face { position:absolute; inset:0; display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center; padding-left:8px; background:#292f30; font-size:12px; white-space:nowrap; backface-visibility:hidden; transform-origin:center; }
.city-feed-name { overflow:hidden; text-overflow:ellipsis; font-weight:600; }
.city-feed-price { font:500 13px 'Roboto Mono',monospace; font-variant-numeric:tabular-nums; }
.city-feed-change { display:flex; align-items:center; justify-content:center; align-self:stretch; min-width:65px!important; padding:0 5px; background:#454c4c; font:500 12px 'Roboto Mono',monospace; font-variant-numeric:tabular-nums; }
.city-feed-face[data-direction="up"] .city-feed-change { background:#a3312c; color:#fff0d5; }
.city-feed-face[data-direction="down"] .city-feed-change { background:#287034; color:#e0ffd7; }
.city-feed-face::after { content:''; position:absolute; left:0; right:0; top:50%; height:1px; background:rgba(0,0,0,.2); pointer-events:none; }
.city-feed-outgoing { z-index:2; animation:cityFeedFoldOut .32s ease-in forwards; }
.city-feed-incoming { animation:cityFeedFoldIn .34s .28s ease-out both; }
@keyframes cityFeedFoldOut { to { transform:rotateX(-90deg); filter:brightness(.45); } }
@keyframes cityFeedFoldIn { from { transform:rotateX(90deg); filter:brightness(.45); } to { transform:rotateX(0); filter:brightness(1); } }
.city-feed-bottom { display:flex; align-items:center; min-height:30px; background:#121718; border-top:1px solid #77735b; }
#city-ticker .city-ticker-label { flex:0 0 96px; box-sizing:border-box; padding:0 8px; text-align:center; color:#ebcf71; font-size:10px; letter-spacing:.08em; }
#city-ticker .city-ticker-window { display:block; flex:1; width:auto; min-width:0; }
#city-ticker .city-ticker-track { display:flex; width:max-content; padding-left:0; animation:cityFeedCrawl var(--feed-duration,90s) linear infinite; font-size:12px; line-height:30px; }
#city-ticker .city-ticker-track .city-feed-copy { display:flex; flex:0 0 auto; margin:0; }
#city-ticker .city-feed-copy > span { flex:0 0 auto; margin:0; padding-right:44px; white-space:nowrap; }
@keyframes cityFeedCrawl { to { transform:translateX(-50%); } }

.city-feed-source { padding:4px 10px; border-top:1px solid #353c3d; color:#a5afac; font-size:10px; line-height:1.4; }
@media(max-width:600px) {
    .city-feed-top { grid-template-columns:72px minmax(0,1fr); }
    .city-feed-markets { grid-column:1/-1; grid-template-columns:minmax(0,1fr); }
    .city-feed-featured { min-height:68px; border-right:0; }
    .city-feed-clock time { font-size:22px; }
    .city-feed-clock small { font-size:8px; letter-spacing:0; }
    .city-feed-markets { grid-template-columns:minmax(0,1fr); }
    #city-ticker .city-ticker-label { flex-basis:72px; font-size:8px; }
    .city-feed-face { gap:5px; }
}
@media(prefers-reduced-motion:reduce) {
    .city-feed-outgoing { display:none; animation:none; }
    .city-feed-incoming { animation:none; }
    #city-ticker .city-ticker-track { animation:none; width:auto; }
    #city-ticker .city-ticker-window { overflow:auto; }
    #city-ticker .city-feed-copy[aria-hidden] { display:none; }
}
.weather-header { gap:12px; }
.weather-header > #weather-icon-img { flex:none; }
.city-weather-reading { flex:1; min-width:0; }
.city-weather-reading .temp-display { white-space:nowrap; line-height:1.15; }
.city-weather-reading .hum-display { margin-top:5px; line-height:1.5; }
.city-weather-warnings { display:flex; flex:0 0 auto; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:6px; max-width:86px; margin-left:auto; }
.city-weather-warnings:empty { display:none; }
.city-weather-warnings img { display:block; width:40px; height:40px; object-fit:contain; }
.city-weather-warnings a { display:flex; align-items:center; justify-content:center; min-width:40px; min-height:44px; border-radius:10px; color:inherit; font-size:11px; line-height:1.4; overflow-wrap:anywhere; text-decoration:none; transition:background .2s; }
.city-weather-warnings a:hover { background:rgba(128,128,128,.12); }
.city-weather-warnings a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media(max-width:400px) {
    .weather-header { gap:8px; padding:12px; }
    .weather-header > #weather-icon-img { width:44px; height:44px; }
    .city-weather-reading .temp-display { font-size:1.9rem; }
    .city-weather-reading .hum-display { font-size:.68rem; white-space:nowrap; }
    .city-weather-warnings { max-width:40px; }
}
.city-aqhi-serious { color:#ce75e9!important; }

/* Keep crawl typography stable across RSS updates, viewport autosizing and sources. */
#city-ticker { --feed-font-size:12px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
#city-ticker .city-ticker-track, #city-ticker .city-ticker-track * { font-family:Arial,"Microsoft YaHei","PingFang TC",sans-serif!important; font-size:var(--feed-font-size)!important; font-weight:500!important; line-height:2.5!important; letter-spacing:normal!important; -webkit-text-size-adjust:none; text-size-adjust:none; }
.city-feed-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid #353c3d; }
.city-feed-source { flex:1; border-top:0; }
.city-feed-fullscreen-button { flex:none; display:flex; align-items:center; gap:4px; margin:3px 7px; padding:4px 8px; border:1px solid #626655; border-radius:6px; background:#252e31; color:#e9d792; cursor:pointer; font:12px Arial,sans-serif; }
.city-feed-fullscreen-button .material-icons { font-size:18px; }
.city-feed-board,.city-feed-board-title { display:none; }
#city-ticker.city-feed-expanded { position:fixed; inset:0; z-index:10000; margin:0; padding:16px; width:100vw; max-width:none; height:100dvh; background:#090f12; --feed-font-size:clamp(18px,2vw,30px); }
#city-ticker.city-feed-expanded .city-ticker-card { display:flex; flex-direction:column; height:100%; border-radius:8px; }
.city-feed-expanded .city-feed-top { flex:none; grid-template-columns:150px minmax(0,1fr); min-height:74px; }
.city-feed-expanded .city-feed-top>.city-feed-featured,.city-feed-expanded .city-feed-top>.city-feed-markets { display:none; }
.city-feed-expanded .city-feed-board-title { display:flex; align-items:center; padding:0 24px; font:700 clamp(22px,3vw,42px) Arial,sans-serif; color:#e9d792; letter-spacing:.12em; }
.city-feed-expanded .city-feed-clock time { font-size:42px; }
.city-feed-expanded .city-feed-clock small { font-size:12px; }
.city-feed-expanded .city-feed-board { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:16px; flex:1; min-height:0; overflow:auto; padding:12px; }
.city-feed-board-group { display:flex; flex-direction:column; min-width:0; }
.city-feed-board-group h2 { margin:0 0 10px; font:600 clamp(14px,1.4vw,22px) Arial,sans-serif; color:#9eaaa8; }
.city-feed-board-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(48px,1fr); flex:1; gap:6px; }
.city-feed-board-group:nth-child(2) .city-feed-board-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.city-feed-board-quote { position:relative; display:block; min-width:0; min-height:48px; perspective:550px; overflow:hidden; color:inherit; text-decoration:none; }
.city-feed-board-quote .city-feed-face { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:1fr 1fr; gap:2px 6px; padding:5px 8px; font-size:clamp(12px,1.1vw,20px); }
.city-feed-board-quote .city-feed-name { grid-column:1 / -1; }
.city-feed-board-quote .city-feed-price,.city-feed-board-quote .city-feed-change { font-size:inherit; }
.city-feed-board-quote:focus-visible { outline:2px solid #f6d355; outline-offset:-2px; }
.city-feed-expanded .city-feed-bottom,.city-feed-expanded .city-feed-controls { flex:none; }
.city-feed-expanded .city-ticker-label { font-size:clamp(10px,1.1vw,18px)!important; }
@media(max-width:1000px) {
    .city-feed-expanded .city-feed-board { grid-template-columns:1fr 1fr; gap:8px; padding:8px; }
    .city-feed-board-grid,.city-feed-board-group:nth-child(2) .city-feed-board-grid { grid-template-columns:1fr; }
}
@media(max-width:600px) {
    #city-ticker.city-feed-expanded { padding:4px; }
    .city-feed-expanded .city-feed-top { grid-template-columns:100px 1fr; }
    .city-feed-expanded .city-feed-board { grid-template-columns:minmax(0,1fr); }
    .city-feed-expanded .city-feed-board-title { padding:0 12px; }
}
/* Translucent Material icon controls. */
.city-feed-fullscreen-button { width:36px; height:36px; min-height:36px; padding:8px; justify-content:center; border:1px solid rgba(255,255,255,.16); border-radius:50%; background:rgba(255,255,255,.10); color:#f4f1df; backdrop-filter:blur(12px); transition:background .2s,box-shadow .2s; }
.city-feed-fullscreen-button:hover { background:rgba(255,255,255,.2); box-shadow:0 2px 6px #0005; }
.city-feed-fullscreen-button:focus-visible { outline:3px solid #a4d2ed; outline-offset:3px; }
.city-feed-weather { display:flex; align-items:center; flex:none; min-height:36px; border-top:1px solid #77735b; background:#191e21; }
.city-feed-weather-label { flex:0 0 96px; text-align:center; color:#d4cda9; font-size:11px; }
.city-feed-weather-window { min-width:0; flex:1; overflow:hidden; }
.city-feed-weather-flip { position:relative; height:36px; perspective:550px; overflow:hidden; }
.city-feed-weather-flip .city-feed-face { display:flex; padding:0 10px; font-size:12px; }
.city-feed-weather-track { display:none; width:max-content; }
.city-feed-weather-copy { display:flex; flex:none; }
.city-feed-weather-copy > span { display:block; flex:none; padding:10px 40px 10px 0; color:#f4f1df; font-size:clamp(16px,1.6vw,26px); line-height:1.6; white-space:nowrap; font-variant-numeric:tabular-nums; }
.city-feed-expanded .city-feed-weather-flip { display:none; }
.city-feed-expanded .city-feed-weather-track { display:none; }
.city-feed-expanded .city-feed-weather-label { flex-basis:150px; font-size:clamp(12px,1.2vw,18px); }
@media(max-width:600px) {
    .city-feed-weather-label { flex-basis:72px; font-size:10px; }
    .city-feed-expanded .city-feed-weather-label { flex-basis:80px; }
}
@media(prefers-reduced-motion:reduce) {
    .city-feed-expanded .city-feed-weather-track { animation:none; width:auto; }
    .city-feed-expanded .city-feed-weather-window { overflow:auto; }
    .city-feed-weather-copy[aria-hidden] { display:none; }
}

/* The compact broadcast pairs the index and weather beside the stock rows. */
.city-feed-top { grid-template-rows:40px 32px; }
.city-feed-clock { grid-column:1; grid-row:1 / 3; }
.city-feed-top > .city-feed-featured { grid-column:2; grid-row:1; }
.city-feed-top > .city-feed-featured .city-feed-face { grid-template-columns:minmax(0,1fr) auto auto; grid-template-rows:1fr; padding:3px 7px; gap:6px; }
.city-feed-top > .city-feed-featured .city-feed-name { grid-column:auto; }
.city-feed-top > .city-feed-featured .city-feed-price { font-size:14px; }
.city-feed-top > .city-feed-markets { grid-column:3; grid-row:1 / 3; }
.city-feed-top > .city-feed-weather { grid-column:2; grid-row:2; min-width:0; min-height:0; border-right:2px solid #a9a16b; }
.city-feed-top > .city-feed-weather .city-feed-weather-label { display:none; }
.city-feed-top > .city-feed-weather .city-feed-weather-flip { height:31px; }
.city-feed-clock time { display:block; width:80px; height:32px; }
.city-feed-digital-clock { display:block; width:100%; height:100%; }
.city-feed-expanded .city-feed-top { grid-template-rows:auto; }
.city-feed-expanded .city-feed-clock { grid-row:1; }
.city-feed-expanded .city-feed-clock time { width:120px; height:46px; }
@media(max-width:600px) {
    .city-feed-top { grid-template-rows:40px 32px auto; }
    .city-feed-top > .city-feed-featured { min-height:0; }
    .city-feed-top > .city-feed-weather { border-right:0; }
    .city-feed-top > .city-feed-markets { grid-column:1 / -1; grid-row:3; }
    .city-feed-clock time { width:60px; height:27px; }
    .city-feed-expanded .city-feed-clock time { width:82px; height:34px; }
}

.city-feed-clock .city-feed-time-source { font-size:8px; letter-spacing:0; margin-top:3px; color:#a5afac; }
.city-feed-clock .city-feed-time-source[data-local="true"] { color:#e9c080; }
.city-feed-expanded .city-feed-clock time { width:140px; height:38px; }
.city-feed-expanded .city-feed-clock .city-feed-time-source { font-size:10px; }
@media(max-width:600px) {
    .city-feed-expanded .city-feed-clock time { width:90px; height:27px; }
}

.city-feed-information { flex:1; min-width:0; }
.city-feed-updates { padding:0 10px 5px; font-size:10px; color:#a5afac; line-height:1.5; }
.city-feed-controls { gap:4px; }
.city-feed-quote[hidden],.city-feed-board-quote[hidden] { display:none!important; }
.city-feed-weather-full,.city-feed-traffic-flip { display:none; }
.city-feed-info-flip { position:relative; min-width:0; height:54px; perspective:550px; overflow:hidden; }
.city-feed-info-flip .city-feed-face { display:flex; font-size:clamp(13px,1.3vw,22px); padding:6px 12px; white-space:normal; line-height:1.4; }
.city-feed-expanded .city-feed-weather { gap:6px; }
.city-feed-expanded .city-feed-weather-label { flex-basis:90px; font-size:12px; }
.city-feed-expanded .city-feed-weather-window { flex:1.4; }
.city-feed-expanded .city-feed-weather-full { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.city-feed-expanded .city-feed-traffic-flip { display:block; flex:1; height:60px; }
.city-feed-expanded .city-feed-traffic-flip .city-feed-face { font-size:clamp(12px,1vw,17px); }
.city-feed-stock-dialog { width:min(640px,90vw); max-height:80dvh; box-sizing:border-box; padding:24px; border:1px solid #626655; border-radius:18px; background:#191e21; color:#f4f1df; overflow:auto; }
.city-feed-stock-dialog::backdrop { background:#0009; backdrop-filter:blur(4px); }
.city-feed-stock-dialog h2 { margin:0 0 10px; font-size:20px; }
.city-feed-stock-hint,.city-feed-symbol-label { font-size:13px; line-height:1.6; color:#c5cdc9; }
.city-feed-stock-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:16px 0; }
.city-feed-stock-options label { display:flex; gap:8px; align-items:center; font-size:13px; }
.city-feed-stock-dialog input[type="checkbox"] { accent-color:#e9d792; }
.city-feed-stock-dialog textarea { box-sizing:border-box; width:100%; margin-top:6px; padding:10px; color:inherit; background:#292f30; border:1px solid #626655; border-radius:8px; font:14px monospace; }
.city-feed-stock-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.city-feed-stock-actions button { padding:9px 16px; border:1px solid #626655; border-radius:18px; background:#292f30; color:#f4f1df; cursor:pointer; }
.city-feed-stock-actions button[type="submit"] { background:#e9d792; color:#292f30; }
.city-feed-stock-error { color:#ffb4a8; font-size:13px; }
@media(max-width:600px) {
    .city-feed-expanded .city-feed-weather { flex-wrap:wrap; }
    .city-feed-expanded .city-feed-weather-label { flex-basis:100%; text-align:left; padding:4px 8px; }
    .city-feed-expanded .city-feed-weather-window { flex-basis:100%; }
    .city-feed-expanded .city-feed-traffic-flip { flex-basis:100%; height:54px; }
    .city-feed-stock-options { grid-template-columns:1fr; }
}

/* Fit both market groups to the viewport; JavaScript paginates their available slots. */
#city-ticker.city-feed-expanded { box-sizing:border-box; overflow:hidden; }
.city-feed-expanded .city-feed-board { overflow:hidden; }
.city-feed-board-group { min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr); }
.city-feed-board-grid { min-height:0; grid-auto-rows:minmax(0,1fr); }
.city-feed-board-quote { min-height:0; }
.city-feed-board-title { gap:16px; }
.city-feed-logo { width:48px; height:48px; object-fit:contain; flex:none; }
.city-feed-updates { padding:7px 10px; }
/* Material state layers, touch targets and accessible native checkboxes. */
#city-ticker button { position:relative; isolation:isolate; overflow:hidden; -webkit-tap-highlight-color:transparent; }
#city-ticker button::after { content:''; position:absolute; inset:0; border-radius:inherit; background:currentColor; opacity:0; pointer-events:none; transition:opacity .18s; }
#city-ticker button:hover::after { opacity:.08; }
#city-ticker button:active::after { opacity:.16; }
#city-ticker button:focus-visible { outline:3px solid #e9d792; outline-offset:3px; }
.city-feed-fullscreen-button { width:40px; height:40px; min-height:40px; border:0; box-shadow:0 1px 3px #0005; }
.city-feed-stock-actions button { min-height:40px; border:0; border-radius:20px; padding:0 24px; font:500 14px/1.4 Roboto,Arial,sans-serif; letter-spacing:.02em; background:transparent; color:#e9d792; transition:box-shadow .2s; }
.city-feed-stock-actions button[data-stock-action="reset"] { border:1px solid #8c9389; }
.city-feed-stock-actions button[type="submit"] { background:#e9d792; color:#292f30; box-shadow:0 1px 3px #0005; }
.city-feed-stock-options label { min-height:40px; cursor:pointer; gap:12px; }
.city-feed-stock-dialog input[type="checkbox"] { appearance:none; -webkit-appearance:none; position:relative; flex:none; width:18px; height:18px; margin:0 3px; border:2px solid #b7c1b8; border-radius:2px; background:transparent; cursor:pointer; transition:background .15s,border-color .15s,box-shadow .15s; }
.city-feed-stock-dialog input[type="checkbox"]:checked { background:#e9d792; border-color:#e9d792; }
.city-feed-stock-dialog input[type="checkbox"]:checked::after { content:''; position:absolute; left:4px; top:0; width:5px; height:10px; border:solid #292f30; border-width:0 2px 2px 0; transform:rotate(45deg); }
.city-feed-stock-dialog input[type="checkbox"]:hover { box-shadow:0 0 0 10px #e9d79214; }
.city-feed-stock-dialog input[type="checkbox"]:focus-visible { outline:2px solid #e9d792; outline-offset:6px; box-shadow:0 0 0 10px #e9d7921f; }
@media(max-width:600px) {
    .city-feed-expanded .city-feed-board { grid-template-rows:repeat(2,minmax(0,1fr)); }
    .city-feed-expanded .city-feed-board-grid,.city-feed-expanded .city-feed-board-group:nth-child(2) .city-feed-board-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .city-feed-expanded .city-feed-top { min-height:64px; }
    .city-feed-expanded .city-feed-board-title { gap:8px; font-size:21px; letter-spacing:.05em; padding:0 8px; }
    .city-feed-logo { width:32px; height:32px; }
    .city-feed-board-group h2 { margin-bottom:5px; font-size:13px; }
    .city-feed-expanded .city-feed-weather { gap:2px; }
    .city-feed-expanded .city-feed-weather-label { padding:2px 8px; font-size:10px; }
    .city-feed-info-flip { height:42px; }
    .city-feed-expanded .city-feed-traffic-flip { height:42px; }
    .city-feed-info-flip .city-feed-face { padding:3px 6px; font-size:12px; }
    #city-ticker.city-feed-expanded { --feed-font-size:16px; }
    .city-feed-expanded .city-feed-updates { font-size:9px; line-height:1.4; padding:4px 6px; }
    .city-feed-expanded .city-feed-fullscreen-button { margin:3px; }
}
@media(max-height:500px) {
    #city-ticker.city-feed-expanded { padding:4px; --feed-font-size:14px; }
    .city-feed-expanded .city-feed-top { min-height:48px; }
    .city-feed-expanded .city-feed-board { gap:6px; padding:4px 8px; }
    .city-feed-expanded .city-feed-board-group h2 { margin-bottom:4px; font-size:12px; }
    .city-feed-expanded .city-feed-weather { min-height:32px; }
    .city-feed-expanded .city-feed-info-flip { height:38px; }
    .city-feed-expanded .city-feed-clock time { height:27px; }
    .city-feed-expanded .city-feed-clock small { font-size:8px; margin-top:1px; }
    .city-feed-expanded .city-feed-logo { width:32px; height:32px; }
}
@media(forced-colors:active) {
    .city-feed-stock-dialog input[type="checkbox"] { appearance:auto; }
    .city-feed-stock-dialog input[type="checkbox"]::after { display:none; }
}

#city-ticker [hidden] { display:none!important; }
.city-feed-settings-tabs { display:flex; gap:8px; margin:16px 0; padding-bottom:8px; border-bottom:1px solid #626655; }
.city-feed-settings-tabs button,.city-feed-symbol-entry button { min-height:40px; padding:8px 20px; border:0; border-radius:20px; font:500 14px Roboto,Arial,sans-serif; color:#e9d792; background:transparent; cursor:pointer; }
.city-feed-settings-tabs button[aria-pressed="true"],.city-feed-symbol-entry button { background:#e9d792; color:#292f30; }
.city-feed-display-options,.city-feed-ticker-switches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.city-feed-display-options label,.city-feed-ticker-switches label,.city-feed-rss-options label { display:flex; align-items:center; gap:12px; min-height:44px; font-size:13px; cursor:pointer; }
.city-feed-ticker-options { border:1px solid #626655; border-radius:12px; padding:12px; margin:16px 0; min-width:0; }
.city-feed-ticker-options legend { color:#e9d792; padding:0 6px; font-size:13px; }
.city-feed-rss-options { margin:8px 0 0 20px; padding-left:12px; border-left:2px solid #626655; }
.city-feed-rss-options label span { overflow-wrap:anywhere; min-width:0; }
.city-feed-rss-options label:has(input:disabled) { opacity:.45; }
.city-feed-rss-hint { color:#b7c1b8; font-size:12px; line-height:1.7; }
.city-feed-symbol-entry { display:flex; align-items:center; gap:8px; margin:8px 0; }
.city-feed-symbol-entry input { width:100%; min-width:0; box-sizing:border-box; padding:12px; border:1px solid #8c9389; border-radius:8px; background:#292f30; color:#f4f1df; font:14px monospace; }
.city-feed-symbol-entry input:focus-visible { outline:2px solid #e9d792; outline-offset:1px; }
.city-feed-symbol-entry button { flex:none; }
.city-feed-custom-list { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.city-feed-custom-row { display:flex; gap:8px; align-items:center; border:1px solid #8c9389; border-radius:10px; padding-left:12px; font:13px monospace; }
.city-feed-custom-row .city-feed-fullscreen-button { width:32px; min-height:32px; height:32px; padding:4px; margin:0; background:transparent; box-shadow:none; }
.city-feed-stock-actions { position:sticky; bottom:-24px; background:#191e21; padding:12px 0 4px; margin-top:12px; }
.city-feed-no-markets.city-feed-expanded .city-feed-weather { flex:1; }
@media(max-width:600px) {
    .city-feed-stock-dialog { padding:16px; }
    .city-feed-stock-actions { bottom:-16px; }
    .city-feed-stock-actions button { padding:0 14px; }
}

.city-feed-stock-feedback { font-size:12px; color:#c4d9ad; }

/* Pixel-based headline queue preserves on-screen text when fresh data arrives. */
#city-ticker .city-ticker-track { animation:none; will-change:transform; }
#city-ticker .city-feed-headline { display:block; flex:none; margin:0; padding-right:44px; white-space:nowrap; }
@media(prefers-reduced-motion:reduce) {
    #city-ticker .city-ticker-window { overflow:hidden; }
    #city-ticker .city-ticker-track { width:max-content; }
}

.city-feed-speed-settings { padding:0 0 14px; margin-bottom:10px; border-bottom:1px solid #626655; }
.city-feed-speed-row { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; margin:10px 0 16px; font-size:13px; }
.city-feed-speed-row output { color:#e9d792; font-variant-numeric:tabular-nums; }
.city-feed-speed-row input[type="range"] { grid-column:1/-1; width:100%; margin:4px 0; accent-color:#e9d792; cursor:pointer; }
.city-feed-speed-row input:focus-visible { outline:2px solid #e9d792; outline-offset:4px; border-radius:8px; }
.city-feed-speed-hint { color:#b7c1b8; font-size:12px; line-height:1.6; }
.city-feed-speed-reset { border:1px solid #8c9389; border-radius:20px; min-height:36px; padding:6px 16px; background:transparent; color:#e9d792; font:500 13px Roboto,Arial,sans-serif; cursor:pointer; }

/* Keep intrinsic headline widths inside the responsive news card. */
.content-layout > *, .side-stack, .side-stack > .card-glass { min-width:0; }
.side-stack > .card-glass { box-sizing:border-box; max-width:100%; }
.news-ticker { width:100%; min-width:0; box-sizing:border-box; padding:12px 0; min-height:30px; line-height:1.8; }
.hk-news-viewport,#fullscreen-marquee { display:block; overflow:hidden; min-width:0; max-width:100%; contain:inline-size; text-align:left; -webkit-text-size-adjust:100%; }
.hk-news-viewport { width:100%; }
.hk-news-track { display:flex; width:max-content; max-width:none; animation:hkNewsScroll var(--news-duration,60s) linear infinite; will-change:transform; }
.hk-news-copy { display:block; flex:none; margin:0; padding:0 40px 0 0; white-space:nowrap; line-height:1.8; }
#fullscreen-marquee { padding:16px 0; }
@keyframes hkNewsScroll { to { transform:translateX(-50%); } }
@media(prefers-reduced-motion:reduce) {
    .hk-news-track { width:auto; animation:none; }
    .hk-news-copy { flex:1; white-space:normal; padding:0; }
    .hk-news-copy[aria-hidden] { display:none; }
}

/* Real latest-session price history, kept behind the quote labels. */
.city-feed-face > .city-feed-trend { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; color:#bac9cb; opacity:.45; }
.city-feed-trend-area { fill:currentColor; opacity:.14; }
.city-feed-trend-line { fill:none; stroke:currentColor; stroke-width:1.6; vector-effect:non-scaling-stroke; }
.city-feed-face[data-direction="up"] > .city-feed-trend { color:#ee8177; }
.city-feed-face[data-direction="down"] > .city-feed-trend { color:#74d092; }
.city-feed-face > .city-feed-name,.city-feed-face > .city-feed-price,.city-feed-face > .city-feed-change { position:relative; z-index:1; text-shadow:0 1px 3px #000; }

/* MDUI owns modal focus, entrance/exit animation and the overlay. */
mdui-dialog.city-feed-stock-dialog { width:auto; max-height:none; padding:0; border:0; background:transparent; color:var(--text-main); overflow:visible; z-index:11000; --mdui-color-surface-container-high:255,255,255; }
.mdui-theme-dark mdui-dialog.city-feed-stock-dialog { --mdui-color-surface-container-high:30,30,35; }
mdui-dialog.city-feed-stock-dialog::part(panel) { width:min(680px,calc(100vw - 24px)); height:min(760px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); display:flex; flex-direction:column; border-radius:28px; background:rgb(var(--mdui-color-surface-container-high)); }
mdui-dialog.city-feed-stock-dialog::part(body) { flex:1; min-height:0; overflow:auto; scrollbar-width:thin; scrollbar-color:rgba(128,128,128,.45) transparent; padding:0 24px; }
mdui-dialog.city-feed-stock-dialog::part(body)::-webkit-scrollbar { width:5px; }
mdui-dialog.city-feed-stock-dialog::part(body)::-webkit-scrollbar-thumb { background:#8887; border-radius:10px; }
mdui-dialog.city-feed-stock-dialog form { min-width:0; padding:0 3px 16px; }
.city-feed-material-tabs { display:block; position:sticky; top:0; z-index:1; margin-bottom:16px; background:rgb(var(--mdui-color-surface-container-high)); }
.city-feed-stock-dialog :is(.city-feed-stock-hint,.city-feed-rss-hint,.city-feed-symbol-label,.city-feed-ticker-options legend) { color:inherit; line-height:1.7; }
.city-feed-stock-dialog .city-feed-symbol-entry input { background:transparent; color:inherit; border-color:#8888; }
.city-feed-stock-dialog mdui-checkbox { flex:none; }
.city-feed-stock-dialog [hidden] { display:none!important; }
@media(max-width:600px){mdui-dialog.city-feed-stock-dialog { padding:0; }mdui-dialog.city-feed-stock-dialog::part(body){padding:0 16px}.city-feed-display-options,.city-feed-ticker-switches{grid-template-columns:minmax(0,1fr)}}
mdui-dialog.city-feed-stock-dialog :is(.city-feed-speed-row output,.city-feed-speed-hint,.city-feed-stock-feedback) { color:inherit; }
mdui-dialog.city-feed-stock-dialog input[type=range] { accent-color:rgb(var(--mdui-color-primary)); }
mdui-dialog.city-feed-stock-dialog .city-feed-speed-reset { color:rgb(var(--mdui-color-primary)); border-color:#8888; }
