:root {
    color-scheme: dark;
    --bg: #07101d;
    --bg-soft: #0c1728;
    --panel: rgba(17, 29, 47, .86);
    --panel-strong: #122139;
    --line: rgba(145, 174, 210, .16);
    --text: #edf5ff;
    --muted: #8fa4bc;
    --cyan: #56d8ed;
    --blue: #6f9dff;
    --red: #ff626b;
    --violet: #b293ff;
    --green: #56e0a0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -10%, #1a3552 0, transparent 42%), var(--bg); color: var(--text); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.app-shell { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 18px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 8px 4px 28px; border-bottom: 1px solid var(--line); }
.brand-block, .topbar-tools, .panel-heading, .radar-intro, .metric-row, .footer-bar { display: flex; align-items: center; }
.brand-block { gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(86,216,237,.5); border-radius: 14px; color: var(--cyan); font-size: 24px; font-weight: 800; box-shadow: 0 0 28px rgba(86,216,237,.12); }
.eyebrow, .panel-heading, .panel-code, .live-badge, .footer-bar, .f1-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
h1, h2, p { margin: 0; } h1 { font-size: 25px; letter-spacing: -.03em; } h2 { font-size: 20px; letter-spacing: -.02em; }
.subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.topbar-tools { gap: 24px; }
.clock-block { display: grid; gap: 0; text-align: right; color: var(--muted); font-size: 12px; }
.clock-block strong { color: var(--text); font-size: 22px; letter-spacing: .04em; }
.search-form { display: flex; width: min(260px, 32vw); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,12,22,.58); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 11px 13px; background: transparent; color: var(--text); }
.search-form button { border: 0; padding: 0 14px; background: transparent; color: var(--cyan); cursor: pointer; font-size: 18px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(420px, 2fr) minmax(190px, .78fr); gap: 16px; padding-top: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(24,41,65,.92), var(--panel)); box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.panel-heading { gap: 9px; padding: 17px 18px 13px; }
.panel-code { margin-left: auto; font-size: 9px; opacity: .72; }
.live-badge { margin-left: auto; color: var(--green); font-size: 9px; letter-spacing: .08em; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 10px currentColor; } .status-dot.red { color: var(--red); background: var(--red); } .status-dot.cyan { color: var(--cyan); background: var(--cyan); } .status-dot.blue { color: var(--blue); background: var(--blue); } .status-dot.violet { color: var(--violet); background: var(--violet); } .status-dot.green { color: var(--green); background: var(--green); }
.f1-panel { overflow: hidden; border-color: rgba(255,98,107,.25); } .f1-hero { padding: 22px 18px 16px; background: linear-gradient(135deg, rgba(255,98,107,.17), transparent); } .f1-number { display: block; color: var(--red); font-size: 58px; font-weight: 800; line-height: .9; } .f1-label { display: block; margin-top: 12px; color: #ff9a9f; }
.metric-card, .metric-row, .panel-note { margin: 0 18px; } .metric-card { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); } .metric-card span, .metric-row span { color: var(--muted); font-size: 11px; } .metric-card strong { font-size: 15px; } .metric-card small, .panel-note { color: var(--muted); font-size: 11px; }
.metric-row { justify-content: space-between; gap: 12px; padding: 15px 0; } .metric-row div { display: grid; gap: 3px; } .metric-row strong { font-size: 17px; } .panel-note { padding: 14px 0 18px; }
.radar-panel { min-height: 560px; padding-bottom: 16px; } .radar-intro { justify-content: space-between; padding: 4px 20px 18px; } .radar-intro p { margin-top: 3px; color: var(--muted); font-size: 12px; } .radar-count { color: var(--cyan); font-size: 28px; font-weight: 800; }
.category-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 20px 16px; } .category-tab { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: rgba(4,12,23,.38); color: var(--muted); cursor: pointer; white-space: nowrap; } .category-tab:hover, .category-tab.active { border-color: rgba(86,216,237,.6); background: rgba(86,216,237,.12); color: var(--cyan); }
.feed-status { margin: 0 20px 12px; color: var(--muted); font-size: 13px; } .feed-status:empty { display: none; } .article-list { display: grid; gap: 9px; padding: 0 12px; }
.article-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; min-height: 124px; padding: 10px; border: 1px solid transparent; border-radius: 13px; background: rgba(4,12,23,.28); transition: border-color .2s, background .2s; } .article-card:hover { border-color: rgba(86,216,237,.25); background: rgba(86,216,237,.05); }
.article-thumb { width: 116px; height: 104px; overflow: hidden; border-radius: 9px; background: linear-gradient(135deg, #173453, #0b1729); } .article-thumb img { width: 100%; height: 100%; object-fit: cover; } .article-thumb.placeholder { display: grid; place-items: center; color: rgba(86,216,237,.6); font-size: 24px; }
.article-content { min-width: 0; display: grid; align-content: center; gap: 5px; } .article-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; } .article-meta .category { color: var(--cyan); } .article-title { color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.25; text-decoration: none; } .article-title:hover { color: var(--cyan); } .article-summary { display: -webkit-box; overflow: hidden; color: #a9b9ca; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.utility-panel { margin-bottom: 16px; padding-bottom: 3px; } .utility-location, .utility-value { padding: 4px 18px 0; } .utility-location { color: var(--muted); font-size: 12px; } .utility-value { display: block; font-size: 31px; letter-spacing: -.04em; } .utility-value.text-value { font-size: 16px; padding-top: 10px; } 
.footer-bar { justify-content: space-between; gap: 12px; padding: 18px 4px 0; font-size: 9px; } .footer-bar .status-dot { margin-right: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1050px) { .dashboard-grid { grid-template-columns: 1fr 1.8fr; } .right-column { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .utility-panel { margin: 0; } }
@media (max-width: 720px) { .app-shell { width: min(100% - 24px, 560px); padding-top: 14px; } .topbar, .topbar-tools { align-items: flex-start; flex-direction: column; } .topbar-tools { width: 100%; gap: 12px; } .clock-block { text-align: left; } .search-form { width: 100%; } .dashboard-grid { grid-template-columns: 1fr; } .right-column { grid-column: auto; display: grid; grid-template-columns: 1fr; } .radar-panel { min-height: 0; } .footer-bar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 450px) { .article-card { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; } .article-thumb { width: 88px; height: 94px; } .article-title { font-size: 14px; } .article-summary { display: none; } }
.weather-location-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 12px; }
.weather-location-tab { border:1px solid var(--line); background:transparent; color:var(--muted); border-radius:999px; padding:6px 9px; cursor:pointer; font:inherit; font-size:11px; }
.weather-location-tab.active { color:var(--text); border-color:var(--cyan); background:rgba(45,212,191,.1); }
.weather-status { min-height:18px; color:var(--muted); font-size:12px; }
.weather-current { display:flex; align-items:baseline; gap:10px; }
.weather-temperature { font-size:38px; letter-spacing:-1px; }
.weather-condition { color:var(--muted); font-size:13px; }
.weather-details { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0; }
.weather-details span { display:flex; flex-direction:column; gap:3px; }
.weather-details small,.weather-day small { color:var(--muted); font-size:10px; }
.weather-details strong { font-size:12px; }
.weather-forecast { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.weather-day { display:flex; flex-direction:column; gap:4px; padding:8px; border:1px solid var(--line); border-radius:8px; font-size:11px; }
.weather-day strong { font-size:12px; }
@media (max-width:720px) { .weather-forecast { grid-template-columns:1fr; } }.f1-section { margin-top:14px; }
.f1-section h3 { margin:0 0 7px; color:var(--muted); font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.f1-schedule,.f1-row { display:grid; gap:7px; }
.f1-session,.f1-row { grid-template-columns:1fr auto; align-items:center; padding:5px 0; border-bottom:1px solid var(--line); font-size:11px; }
.f1-session strong,.f1-row strong { font-size:11px; color:var(--text); }
.f1-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.f1-position { color:var(--muted); width:20px; }
.f1-row { grid-template-columns:24px 1fr auto; }
.f1-row .f1-name { min-width:0; }
.f1-row:last-child,.f1-session:last-child { border-bottom:0; }
@media (max-width:720px) { .f1-columns { grid-template-columns:1fr; gap:4px; } }/* Phase 1 redesign: page layout and header shell only. */
body { overflow-x: hidden; background: radial-gradient(circle at 50% -12%, #1d3d5d 0, transparent 44%), linear-gradient(180deg, #07101d 0%, #081322 100%); }
.app-shell { width: min(1600px, calc(100% - 32px)); padding: 24px 0 20px; }
.topbar { gap: 32px; padding: 10px 6px 22px; border-bottom-color: rgba(145,174,210,.24); }
.topbar-tools { gap: 28px; }
.dashboard-grid { grid-template-columns: minmax(330px, 1fr) minmax(600px, 2fr) minmax(300px, 1fr); gap: 18px; padding-top: 20px; }
.left-column, .radar-panel, .right-column { min-width: 0; }
.panel { border-radius: 18px; background: linear-gradient(145deg, rgba(25,43,67,.9), rgba(14,27,45,.88)); box-shadow: 0 18px 52px rgba(0,0,0,.22); }
@media (max-width: 1320px) {
    .dashboard-grid { grid-template-columns: minmax(300px, .95fr) minmax(0, 1.7fr); }
    .right-column { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
    .utility-panel { margin: 0; }
}
@media (max-width: 720px) {
    .app-shell { width: min(100% - 24px, 560px); padding-top: 14px; }
    .topbar { gap: 20px; padding-bottom: 18px; }
    .topbar-tools { gap: 12px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
    .right-column { grid-column: auto; grid-template-columns: 1fr; gap: 14px; }
}
/* Phase 2 redesign: F1 Control Center internal hierarchy. */
.f1-panel .f1-panel .f1-hero { position: relative; padding: 24px 20px 20px; background: linear-gradient(135deg, rgba(255,98,107,.2), rgba(255,98,107,.03) 62%, transparent); }
.f1-hero-kicker { display:block; color:#ff9a9f; font-size:11px; font-weight:700; letter-spacing:.14em; }
.f1-race-title { display:block; margin-top:8px; color:var(--text); font-size:clamp(24px,2vw,34px); line-height:1.08; }
.f1-race-location,.f1-race-date { display:block; margin-top:9px; color:var(--muted); font-size:13px; }
.f1-race-date { margin-top:5px; color:#d6e0ed; font-size:12px; }
.f1-countdown { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:16px 18px 0; }
.f1-countdown-card { min-width:0; padding:10px 6px; border:1px solid rgba(255,98,107,.22); border-radius:10px; background:rgba(4,12,23,.3); text-align:center; }
.f1-countdown-card strong { display:block; color:var(--red); font-size:24px; line-height:1; }
.f1-countdown-card span { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.f1-panel .f1-section { margin:20px 18px 0; }
.f1-panel .f1-section h3 { margin:0 0 9px; color:#cbd7e5; font-size:11px; letter-spacing:.13em; }
.f1-schedule { display:grid; gap:0; }
.f1-session { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; min-width:0; padding:8px 0 8px 10px; border-bottom:1px solid var(--line); }
.f1-session::before { position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:2px; background:var(--cyan); content:""; }
.f1-session-qualifying::before { background:var(--violet); }
.f1-session-sprint::before { background:#f0aa54; }
.f1-session-race::before { background:var(--red); }
.f1-session-name { min-width:0; overflow:hidden; color:var(--text); font-size:12px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.f1-session-time { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:11px; text-align:right; white-space:nowrap; }
.f1-session-time strong { color:var(--text); font-size:12px; }
.f1-panel .f1-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:20px 18px 0; }
.f1-panel .f1-columns .f1-section { min-width:0; margin:0; padding:12px; border:1px solid var(--line); border-radius:12px; background:rgba(4,12,23,.22); }
.f1-panel .f1-row { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:6px; align-items:center; min-width:0; padding:7px 0; border-bottom:1px solid var(--line); font-size:12px; }
.f1-panel .f1-row:last-child { border-bottom:0; }
.f1-position { display:grid; place-items:center; width:20px; height:20px; border-radius:6px; background:rgba(255,98,107,.12); color:#ff9a9f; font-size:10px; font-weight:700; }
.f1-panel .f1-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.f1-points { color:var(--text); font-size:11px; }
.f1-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.f1-podium-card { min-width:0; min-height:88px; padding:10px 8px; border:1px solid var(--line); border-radius:11px; background:rgba(4,12,23,.22); text-align:center; }
.f1-podium-position { display:grid; place-items:center; width:24px; height:24px; margin:0 auto 7px; border-radius:50%; background:rgba(255,255,255,.1); color:var(--text); font-size:12px; font-weight:800; }
.f1-podium-1 .f1-podium-position { background:rgba(240,190,80,.25); color:#ffd978; }
.f1-podium-2 .f1-podium-position { background:rgba(190,205,220,.22); color:#dbe7f4; }
.f1-podium-3 .f1-podium-position { background:rgba(190,125,80,.24); color:#e3ac81; }
.f1-podium-name,.f1-podium-team { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.f1-podium-name { font-size:12px; font-weight:700; }
.f1-podium-team { margin-top:4px; color:var(--muted); font-size:10px; }
@media (max-width:1100px) { .f1-panel .f1-columns { grid-template-columns:1fr; } }
@media (max-width:720px) { .f1-countdown { grid-template-columns:repeat(2,minmax(0,1fr)); } .f1-session-time { flex-direction:column; gap:0; align-items:flex-end; } .f1-podium { grid-template-columns:1fr; } .f1-panel .f1-section { margin-top:16px; } }

/* Phase 2 visual pass: cohesive F1 mission-control treatment. */
.f1-panel { border:1px solid rgba(255,98,107,.34); background:linear-gradient(150deg, rgba(20,30,50,.97), rgba(8,18,33,.96)); box-shadow:-12px -8px 40px rgba(255,55,70,.08), 0 20px 52px rgba(0,0,0,.26); }
.f1-panel .panel-heading { align-items:flex-start; border-bottom-color:rgba(87,175,207,.16); }
.f1-panel-heading-label { display:flex; flex-direction:column; gap:3px; min-width:0; }
.f1-panel-heading-label small { color:var(--muted); font-size:9px; font-weight:600; letter-spacing:.14em; }
.f1-panel .panel-code { margin-left:auto; }
.f1-panel .f1-hero { min-height:190px; isolation:isolate; overflow:hidden; background-image:linear-gradient(90deg, rgba(5,14,27,.98) 0%, rgba(5,14,27,.88) 38%, rgba(5,14,27,.38) 72%, rgba(5,14,27,.22) 100%), url('/assets/img/f1-hero.png'), linear-gradient(135deg, rgba(255,98,107,.22), rgba(5,14,27,.95)); background-position:center; background-size:cover; }
.f1-panel .f1-hero::after { position:absolute; right:18px; bottom:17px; width:82px; height:3px; border-radius:99px; background:var(--red); box-shadow:-22px 8px 0 rgba(255,98,107,.35), -44px 16px 0 rgba(255,98,107,.16); content:""; opacity:.8; }
.f1-hero-kicker { position:relative; z-index:1; color:#ff9a9f; }
.f1-race-title,.f1-race-location,.f1-race-date { position:relative; z-index:1; }
.f1-race-title { max-width:86%; font-size:clamp(27px,2.2vw,36px); letter-spacing:-.02em; }
.f1-race-date::before { content:'◷'; margin-right:7px; color:var(--red); }
.f1-panel .f1-countdown-card,.f1-panel .f1-columns .f1-section,.f1-podium-card { border-color:rgba(87,175,207,.19); border-radius:11px; background:rgba(10,24,42,.58); }
.f1-panel .f1-countdown-card { padding:12px 7px; }
.f1-panel .f1-countdown-card strong { color:#ffb0b4; font-size:27px; text-shadow:0 0 14px rgba(255,98,107,.22); }
.f1-panel .f1-countdown-card span { font-size:9px; letter-spacing:.04em; }
.f1-panel .f1-section { position:relative; padding-top:18px; border-top:1px solid rgba(87,175,207,.16); }
.f1-panel .f1-columns { border-top:1px solid rgba(87,175,207,.16); padding-top:18px; }
.f1-panel .f1-columns .f1-section { border-top:0; }
.f1-panel .f1-section h3 { margin-bottom:12px; }
.f1-session { padding-top:9px; padding-bottom:9px; border-bottom-color:rgba(87,175,207,.13); }
.f1-session-time strong { min-width:42px; }
.f1-session-race .f1-session-name,.f1-session-race .f1-session-time strong { color:#ff9a9f; }
.f1-panel .f1-row { gap:9px; border-bottom-color:rgba(87,175,207,.13); }
.f1-panel .f1-row:first-child .f1-position { background:rgba(255,98,107,.22); color:#ffd4d6; }
.f1-podium-section { border-bottom:0; }
.f1-podium-card { min-height:94px; }
@media (max-width:720px) { .f1-panel .f1-hero { min-height:175px; } .f1-race-title { max-width:100%; } }

/* Phase 3 visual pass: F1 color, border and spacing refinement. */
.f1-panel { border:1px solid transparent; background:linear-gradient(150deg, rgba(20,30,50,.98), rgba(8,18,33,.97)) padding-box, linear-gradient(135deg, rgba(240,79,91,.72) 0%, rgba(103,157,190,.34) 48%, rgba(45,212,191,.2) 100%) border-box; box-shadow:-13px -10px 34px rgba(240,79,91,.11), 11px 15px 34px rgba(31,92,126,.07), 0 20px 52px rgba(0,0,0,.26); }
.f1-panel .panel-heading { padding-bottom:12px; border-bottom-color:rgba(103,157,190,.2); }
.f1-panel-heading-label small { color:#9fb3c8; font-size:9px; }

.f1-panel .panel-code { display:none; }
.f1-panel .f1-hero { min-height:190px; padding-bottom:18px; background-image:linear-gradient(90deg, rgba(5,14,27,.99) 0%, rgba(5,14,27,.9) 38%, rgba(5,14,27,.42) 72%, rgba(5,14,27,.24) 100%), url('/assets/img/f1-hero.png'), linear-gradient(135deg, rgba(240,79,91,.22), rgba(5,14,27,.95)); }
.f1-hero-kicker { color:#f05a64; }
.f1-race-title { color:#f4f8fc; }
.f1-race-location { color:#a9bbce; }
.f1-race-date { color:#e2eaf3; }
.f1-race-date::before { color:#f05a64; }
.f1-panel .f1-countdown { margin-top:12px; gap:7px; }
.f1-panel .f1-countdown-card,.f1-panel .f1-columns .f1-section,.f1-podium-card { border-color:rgba(103,157,190,.22); border-radius:10px; background:rgba(13,31,52,.62); }
.f1-panel .f1-countdown-card { padding:11px 6px; }
.f1-panel .f1-countdown-card strong { color:#f4f8fc; font-size:27px; text-shadow:0 0 12px rgba(240,79,91,.2); }
.f1-panel .f1-countdown-card span { color:#91a8be; font-size:9px; }
.f1-panel .f1-panel .f1-section { margin-top:16px; padding-top:15px; border-top-color:rgba(103,157,190,.19); }
.f1-panel .f1-section h3 { margin-bottom:10px; color:#c8d7e6; }
.f1-panel .f1-columns { gap:8px; margin-top:16px; padding-top:15px; }
.f1-panel .f1-columns .f1-section { padding:11px; }
.f1-session { padding-top:8px; padding-bottom:8px; border-bottom-color:rgba(103,157,190,.15); }
.f1-session-time { color:#849ab0; }
.f1-session-time strong { color:#eef4fa; }
.f1-session-race .f1-session-name,.f1-session-race .f1-session-time strong { color:#f05a64; }
.f1-panel .f1-row { gap:9px; padding:6px 0; border-bottom-color:rgba(103,157,190,.15); }
.f1-position { background:rgba(103,157,190,.14); color:#c9d9e8; }
.f1-panel .f1-row:first-child .f1-position { background:rgba(240,79,91,.2); color:#ffe1e3; }
.f1-podium-section { margin-top:15px !important; }
.f1-podium { gap:7px; }
.f1-podium-card { min-height:91px; padding:9px 7px; }
.f1-podium-name { color:#eef4fa; }
.f1-podium-team { color:#91a8be; }
@media (max-width:720px) { .f1-panel .f1-hero { min-height:175px; } }

/* Phase 4 visual pass: F1 heading, standings accents and compact spacing. */
.f1-panel .panel-heading { min-height:44px; padding-top:12px; padding-bottom:10px; }
.f1-panel-heading-label { gap:4px; }
.f1-panel-heading-label { color:#f2f6fb; font-size:14px; font-weight:800; letter-spacing:.045em; line-height:1.1; }
.f1-panel-heading-label small { color:#a9bbce; font-size:10px; font-weight:650; letter-spacing:.13em; line-height:1.15; }
.f1-panel .f1-hero { min-height:180px; padding-top:20px; padding-bottom:16px; }
.f1-panel .f1-countdown { margin-top:9px; gap:6px; }
.f1-panel .f1-panel .f1-section { margin-top:13px; padding-top:12px; }
.f1-panel .f1-section h3 { margin-bottom:8px; }
.f1-panel .f1-columns { gap:7px; margin-top:13px; padding-top:12px; }
.f1-panel .f1-columns .f1-section { padding:10px; }
.f1-panel .f1-row { gap:8px; padding:5px 0; }
.f1-panel .f1-position { border:1px solid rgba(103,157,190,.18); }
.f1-panel .f1-columns .f1-row:nth-child(1) .f1-position { border-color:rgba(240,190,80,.42); background:rgba(240,190,80,.16); color:#f4d477; }
.f1-panel .f1-columns .f1-row:nth-child(2) .f1-position { border-color:rgba(190,205,220,.36); background:rgba(190,205,220,.14); color:#dbe5ef; }
.f1-panel .f1-columns .f1-row:nth-child(3) .f1-position { border-color:rgba(190,125,80,.4); background:rgba(190,125,80,.15); color:#dca47d; }
.f1-panel .f1-columns .f1-row:nth-child(-n+3) .f1-points { color:#e7eef6; }
.f1-panel .f1-podium-section { margin-top:12px !important; padding-top:12px; }
.f1-panel .f1-podium { gap:6px; }
.f1-panel .f1-podium-card { min-height:88px; padding:8px 6px; }
@media (max-width:720px) { .f1-panel .f1-hero { min-height:168px; } }


/* Phase 4 follow-up: supplied local F1 mark. */
.f1-logo { display:block; width:69px; height:18px; flex:0 0 auto; margin-left:auto; object-fit:contain; }


/* Micro pass: align header and close the countdown-to-schedule gap. */
.f1-panel .panel-heading { align-items:center; }
.f1-panel .f1-section { margin-top:11px; padding-top:10px; }
.f1-panel .f1-countdown + .f1-section { margin-top:8px; padding-top:10px; }
.f1-panel .f1-podium-section { margin-top:11px !important; padding-top:10px; }
.f1-panel[data-error]::after { display:block; padding:12px 18px 16px; border-top:1px solid rgba(103,157,190,.18); color:#a9bbce; content:attr(data-error); font-size:12px; }


/* Micro pass 2: give the podium a quiet lower closing space. */
.f1-panel .f1-podium-section { padding-bottom:14px; }

/* Phase 3: Weather panel visual redesign. */
.weather-panel { border:1px solid transparent; background:linear-gradient(150deg, rgba(18,38,59,.97), rgba(7,19,35,.97)) padding-box, linear-gradient(135deg, rgba(45,212,191,.52), rgba(81,145,214,.3) 52%, rgba(34,74,120,.22)) border-box; box-shadow:-8px -7px 30px rgba(45,212,191,.07), 0 18px 46px rgba(0,0,0,.24); }
.weather-panel .panel-heading { align-items:center; padding-bottom:12px; border-bottom:1px solid rgba(86,216,237,.16); }
.weather-panel-heading-label { display:flex; flex-direction:column; gap:3px; color:#eef6fb; font-size:14px; font-weight:800; letter-spacing:.06em; line-height:1.05; }
.weather-panel-heading-label small { color:#9fb9cc; font-size:9px; font-weight:650; letter-spacing:.14em; }
.weather-panel .panel-code { display:none; }
.weather-panel .weather-location-tabs { gap:6px; margin:12px 0 13px; }
.weather-panel .weather-location-tab { padding:7px 10px; border-color:rgba(103,157,190,.22); background:rgba(9,25,43,.42); color:#8fa8bd; font-size:12px; }
.weather-panel .weather-location-tab.active { border-color:rgba(45,212,191,.7); background:rgba(45,212,191,.12); color:#e6fbff; box-shadow:0 0 14px rgba(45,212,191,.08); }
.weather-panel .weather-status { min-height:0; margin-bottom:7px; color:#a9bbce; font-size:12px; }
.weather-panel .weather-current { display:flex; align-items:center; gap:12px; min-height:74px; padding:10px 0 11px; border-top:1px solid rgba(86,216,237,.14); border-bottom:1px solid rgba(86,216,237,.14); }
.weather-icon { flex:0 0 54px; color:#63e1ef; font-size:48px; line-height:1; text-align:center; text-shadow:0 0 18px rgba(86,216,237,.2); }
.weather-summary { min-width:0; display:flex; flex-direction:column; gap:4px; }
.weather-panel .weather-temperature { color:#f2f8fc; font-size:40px; font-weight:800; letter-spacing:-1.5px; line-height:1; }
.weather-panel .weather-condition { color:#a9c1d4; font-size:13px; }
.weather-panel .weather-details { gap:6px; margin:11px 0 13px; }
.weather-panel .weather-details span { min-width:0; gap:4px; padding:8px 6px; border:1px solid rgba(103,157,190,.16); border-radius:9px; background:rgba(10,28,47,.42); }
.weather-panel .weather-details small { color:#819bb1; font-size:9px; letter-spacing:.07em; text-transform:uppercase; }
.weather-panel .weather-details strong { color:#edf5fa; font-size:12px; }
.weather-panel .weather-forecast { gap:6px; }
.weather-panel .weather-day { min-width:0; min-height:100px; gap:5px; padding:8px 7px; border:1px solid rgba(103,157,190,.18); border-radius:9px; background:rgba(10,28,47,.42); }
.weather-panel .weather-day > span:first-child { color:#9fb6c9; font-size:10px; white-space:nowrap; }
.weather-day-state { display:flex; min-width:0; align-items:center; gap:4px; color:#b5c9d8; font-size:10px; line-height:1.15; }
.weather-day-icon { flex:0 0 auto; color:#63e1ef; font-size:20px; font-weight:400; line-height:1; }
.weather-panel .weather-day strong { margin-top:auto; color:#edf5fa; font-size:13px; }
.weather-panel .weather-day small { color:#819bb1; font-size:9px; }
@media (max-width:1100px) and (min-width:721px) { .weather-panel .weather-forecast { grid-template-columns:repeat(2,minmax(0,1fr)); } .weather-panel .weather-day:last-child { grid-column:1 / -1; } }
@media (max-width:720px) { .weather-panel .weather-details { grid-template-columns:repeat(3,minmax(0,1fr)); } .weather-panel .weather-forecast { grid-template-columns:1fr; } }

/* Weather spacing pass: consistent inner breathing room. */
.weather-panel > .panel-heading { padding:14px 18px 11px; }
.weather-panel > .weather-location-tabs { margin:12px 18px 13px; gap:8px; }
.weather-panel > .weather-status { margin:0 18px 7px; }
.weather-panel > #weather-content { padding:0 18px 16px; }
.weather-panel .weather-current { padding:13px 2px 14px; }
.weather-panel .weather-details { gap:8px; margin:11px 0 14px; }
.weather-panel .weather-forecast { gap:8px; }
.weather-panel .weather-day { padding:9px 8px; }

/* Phase 4: RSS Radar and article card redesign. */
.radar-panel { padding-bottom:16px; }
.radar-panel > .panel-heading { padding:16px 20px 12px; border-bottom:1px solid rgba(86,216,237,.16); }
.radar-panel > .panel-heading > span:not(.status-dot):not(.live-badge) { color:#eef6fb; font-size:14px; font-weight:800; letter-spacing:.07em; }
.radar-panel .live-badge { margin-left:auto; color:#75d9b2; font-size:9px; }
.radar-intro { padding:12px 20px 14px; }
.radar-intro h2 { color:#f0f6fa; font-size:17px; letter-spacing:.02em; }
.radar-intro p { color:#9bb0c2; font-size:11px; }
.radar-count { font-size:24px; }
.radar-panel .category-tabs { gap:6px; overflow:visible; flex-wrap:wrap; margin-top:10px; padding:0 20px 12px; }
.radar-panel .category-tab { padding:5px 10px; border-color:rgba(103,157,190,.2); background:rgba(6,20,35,.4); color:#8fa8bd; font-size:11px; }
.radar-panel .category-tab:hover,.radar-panel .category-tab.active { border-color:rgba(86,216,237,.65); background:rgba(86,216,237,.1); color:#65ddec; }
.radar-panel .feed-status { margin:0 20px 9px; color:#9bb0c2; font-size:12px; }
.radar-panel .article-list { gap:8px; padding:0 16px; }
.radar-panel .article-card { grid-template-columns:112px minmax(0,1fr); gap:13px; min-height:0; padding:9px; border:1px solid rgba(103,157,190,.16); border-radius:11px; background:rgba(6,19,34,.5); }
.radar-panel .article-card:hover { border-color:rgba(86,216,237,.4); background:rgba(86,216,237,.055); transform:translateY(-1px); }
.radar-panel .article-thumb { width:112px; height:88px; border-radius:8px; background:linear-gradient(135deg,#173453,#0b1729); }
.radar-panel .article-thumb.placeholder { color:rgba(86,216,237,.55); }
.radar-panel .article-content { gap:4px; }
.radar-panel .article-meta { display:flex; align-items:center; gap:7px; min-width:0; font-size:10px; }
.radar-panel .article-meta .category { color:#65ddec; }
.radar-panel .article-meta .article-date { margin-left:auto; color:#819bb1; font-size:10px; letter-spacing:0; text-transform:none; white-space:nowrap; }
.radar-panel .article-title { display:-webkit-box; overflow:hidden; color:#eef5fa; font-size:15px; line-height:1.23; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.radar-panel .article-summary { display:-webkit-box; overflow:hidden; color:#a9bbc9; font-size:11px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
@media (max-width:720px) { .radar-panel .article-list { padding:0 12px; } .radar-panel .article-card { grid-template-columns:92px minmax(0,1fr); gap:10px; } .radar-panel .article-thumb { width:92px; height:82px; } .radar-panel .article-meta .article-date { font-size:9px; } }
@media (max-width:480px) { .radar-panel .article-card { grid-template-columns:1fr; } .radar-panel .article-thumb { width:100%; height:128px; } .radar-panel .article-meta { align-items:flex-start; flex-wrap:wrap; } .radar-panel .article-meta .article-date { margin-left:0; width:100%; } }

/* RSS header count: keep it beside the live state. */
.radar-panel .panel-heading .radar-count { margin-left:8px; color:var(--cyan); font-size:9px; font-weight:700; letter-spacing:.08em; line-height:1; }



/* RSS Radar shell refinement: keep article card internals unchanged. */
.radar-panel {
    border: 1px solid transparent;
    background:
        linear-gradient(150deg, rgba(20,39,62,.97), rgba(9,20,37,.97)) padding-box,
        linear-gradient(135deg, rgba(86,216,237,.55) 0%, rgba(74,139,196,.3) 44%, rgba(46,83,127,.2) 100%) border-box;
    box-shadow: -10px -8px 34px rgba(86,216,237,.07), inset 0 1px 0 rgba(160,214,235,.04), 0 20px 52px rgba(0,0,0,.24);
}
.radar-panel > .panel-heading {
    min-height: 45px;
    padding: 15px 20px 12px;
    border-bottom: 1px solid rgba(86,216,237,.2);
    background: linear-gradient(90deg, rgba(86,216,237,.045), transparent 58%);
}
.radar-panel > .panel-heading > .status-dot { flex: 0 0 auto; }
.radar-panel > .panel-heading > span:not(.status-dot):not(.live-badge):not(.radar-count) {
    color: #eef6fb;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.1;
}
.radar-panel .live-badge {
    margin-left: auto;
    color: #79d8c0;
    font-size: 9px;
    letter-spacing: .1em;
}
.radar-panel .panel-heading .radar-count {
    margin-left: 5px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}
.radar-panel .category-tabs {
    gap: 7px;
    margin-top: 10px;
    padding: 0 20px 13px;
}
.radar-panel .feed-status { margin: 0 20px 10px; }
.radar-panel .article-list { padding: 0 20px 2px; }
@media (max-width:720px) {
    .radar-panel > .panel-heading { padding-left: 16px; padding-right: 16px; }
    .radar-panel .category-tabs { padding-left: 16px; padding-right: 16px; }
    .radar-panel .article-list { padding-left: 16px; padding-right: 16px; }
}

/* RSS loading state: keep it in the header without shifting the article list. */
.radar-panel > .panel-heading > .feed-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 18px 0 auto;
    color: #9bbdcc;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}
.radar-panel > .panel-heading > .feed-status[hidden] { display: none; }
.radar-panel > .panel-heading > .feed-status::before {
    width: 7px;
    height: 7px;
    border: 1px solid rgba(86,216,237,.35);
    border-top-color: var(--cyan);
    border-radius: 50%;
    content: "";
    animation: radar-loading-spin .75s linear infinite;
}
.radar-panel > .panel-heading > .live-badge { margin-left: 0; }
@keyframes radar-loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
    .radar-panel > .panel-heading > .feed-status { margin-right: 10px; font-size: 0; }
}

/* Keep LIVE DATA and the article count together at the right edge. */
.radar-panel > .panel-heading > .radar-live-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex: 0 0 auto;
}
.radar-panel > .panel-heading > .radar-live-group .live-badge { margin-left: 0; }
.radar-panel > .panel-heading > .radar-live-group .radar-count { margin-left: 0; }
.radar-panel > .panel-heading > .feed-status { margin-left: 18px; margin-right: 0; }
@media (max-width: 560px) {
    .radar-panel > .panel-heading > .feed-status { margin-left: auto; margin-right: 10px; }
}

/* Match the RSS loading label to the compact LIVE DATA treatment. */
.radar-panel > .panel-heading > .feed-status {
    color: #9bbdcc;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* Override the stronger RSS heading selector for the compact loading label. */
.radar-panel > .panel-heading > span.feed-status:not(.status-dot):not(.live-badge):not(.radar-count) {
    color: #9bbdcc;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
}

/* Compact header/navigation pass. */
.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 58px;
    padding: 8px 4px 10px;
    background: linear-gradient(180deg, rgba(7,16,29,.2), rgba(7,16,29,.04));
}
.brand-block { gap: 10px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.eyebrow { font-size: 8px; letter-spacing: .12em; }
h1 { font-size: 20px; line-height: 1.05; }
.subtitle { margin-top: 1px; font-size: 10px; white-space: nowrap; }
.topbar-nav { display: flex; justify-content: center; align-items: center; gap: 4px; min-width: 0; }
.topbar-nav-button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 10px;
    background: transparent;
    color: #91a6bc;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}
.topbar-nav-button:hover { border-color: rgba(86,216,237,.25); background: rgba(86,216,237,.06); color: #d9f5fb; }
.topbar-nav-button.active { border-color: rgba(86,216,237,.55); background: rgba(86,216,237,.11); color: var(--cyan); }
.topbar-tools { gap: 16px; min-width: 0; }
.clock-block { font-size: 10px; }
.clock-block strong { font-size: 18px; }
.search-form { width: min(240px, 20vw); border-radius: 9px; }
.search-form input { padding: 8px 10px; font-size: 12px; }
.search-form button { padding: 0 11px; font-size: 16px; }
.dashboard-grid { padding-top: 16px; }
@media (max-width: 1250px) {
    .topbar { gap: 12px; }
    .topbar-nav-button { padding-left: 7px; padding-right: 7px; }
    .topbar-tools { gap: 10px; }
    .search-form { width: min(210px, 18vw); }
}
@media (max-width: 900px) {
    .topbar { grid-template-columns: auto 1fr; }
    .topbar-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-top: 2px; }
    .topbar-tools { justify-self: end; }
}
@media (max-width: 720px) {
    .topbar { display: flex; align-items: stretch; flex-direction: column; gap: 12px; padding-bottom: 14px; }
    .brand-block { align-items: center; }
    .topbar-nav { width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
    .topbar-tools { width: 100%; align-items: center; flex-direction: row; justify-content: space-between; }
    .search-form { width: min(260px, 58vw); }
    .dashboard-grid { padding-top: 16px; }
}

/* Compact shell top spacing. */
.app-shell { padding-top: 0; }

/* Header nameday line. */
.clock-block { line-height: 1.15; }
.clock-block > #current-date { font-weight: 650; }
.clock-nameday { color: #9bb0c2; font-size: 10px; font-weight: 500; white-space: nowrap; }

/* Header clock replaces the hidden brand block and remains left aligned. */
.topbar > .clock-block { text-align: left; min-width: max-content; }


/* Focused F1 view. */
.f1-focused-view { min-width: 0; padding: 20px 0 8px; }
.f1-focused-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 4px 16px; border-bottom:1px solid rgba(103,157,190,.2); }
.f1-focused-heading h2 { margin-top:5px; color:#a9bbce; font-size:12px; letter-spacing:.18em; }
.f1-focused-kicker { display:flex; align-items:center; gap:9px; color:#f4f8fc; font-size:16px; font-weight:800; letter-spacing:.08em; }
.f1-focused-heading .f1-logo { width:90px; height:23px; }
.f1-focused-hero { position:relative; isolation:isolate; overflow:hidden; min-height:310px; margin-top:16px; padding:28px 30px 24px; border:1px solid rgba(240,79,91,.35); border-radius:18px; background-image:linear-gradient(90deg, rgba(5,14,27,.98) 0%, rgba(5,14,27,.88) 42%, rgba(5,14,27,.36) 100%), url('/assets/img/f1-hero.png'), linear-gradient(135deg, rgba(240,79,91,.2), rgba(5,14,27,.95)); background-position:center; background-size:cover; box-shadow:0 18px 44px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04); }
.f1-focused-hero h1 { max-width:760px; margin:12px 0 6px; color:#f4f8fc; font-size:clamp(32px,5vw,62px); line-height:1.02; letter-spacing:-.04em; }
.f1-focused-hero p { color:#a9bbce; font-size:15px; }
.f1-focused-hero p + p { margin-top:7px; color:#e2eaf3; }
.f1-focused-countdown { display:grid; grid-template-columns:repeat(4,minmax(110px,1fr)); gap:10px; max-width:720px; margin-top:28px; }
.f1-focused-countdown > div { padding:15px 12px; border:1px solid rgba(240,79,91,.25); border-radius:12px; background:rgba(5,14,27,.62); text-align:center; }
.f1-focused-countdown strong { display:block; color:#f4f8fc; font-size:32px; line-height:1; }
.f1-focused-countdown span { display:block; margin-top:7px; color:#91a8be; font-size:10px; letter-spacing:.14em; }
.f1-focused-status { margin:12px 0; color:#9bbdcc; font-size:11px; }
.f1-focused-two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:16px; }
.f1-focused-section { min-width:0; padding:18px; border:1px solid rgba(103,157,190,.2); border-radius:14px; background:linear-gradient(145deg, rgba(20,39,62,.72), rgba(9,20,37,.72)); box-shadow:inset 0 1px 0 rgba(160,214,235,.03); }
.f1-focused-section h3 { margin:0 0 13px; color:#c8d7e6; font-size:12px; letter-spacing:.14em; }
.f1-focused-list { display:grid; }
.f1-focused-session { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:center; padding:11px 0 11px 12px; border-bottom:1px solid rgba(103,157,190,.14); border-left:3px solid var(--cyan); }
.f1-focused-session:last-child { border-bottom:0; }
.f1-focused-session strong { color:#edf5fa; font-size:14px; }
.f1-focused-session span { color:#a9bbce; font-size:12px; text-align:right; white-space:nowrap; }
.f1-focused-session.f1-session-qualifying { border-left-color:var(--violet); }
.f1-focused-session.f1-session-sprint { border-left-color:#f0aa54; }
.f1-focused-session.f1-session-race { border-left-color:var(--red); background:rgba(240,79,91,.07); }
.f1-focused-session.f1-session-race strong,.f1-focused-session.f1-session-race span { color:#ff9ca2; }
.f1-focused-table-wrap { min-width:0; overflow-x:auto; }
.f1-focused-table { width:100%; min-width:460px; border-collapse:collapse; font-size:12px; }
.f1-focused-table th { padding:0 10px 9px; color:#819bb1; font-size:9px; font-weight:700; letter-spacing:.1em; text-align:left; white-space:nowrap; }
.f1-focused-table td { padding:9px 10px; border-top:1px solid rgba(103,157,190,.13); color:#dbe7f1; white-space:nowrap; }
.f1-focused-table td:first-child,.f1-focused-table th:first-child { padding-left:0; }
.f1-focused-table td:last-child,.f1-focused-table th:last-child { padding-right:0; text-align:right; }
.f1-focused-table td:nth-last-child(2),.f1-focused-table th:nth-last-child(2) { text-align:right; }
.f1-focused-table tr.rank-1 .f1-focused-rank { color:#f4d477; }
.f1-focused-table tr.rank-2 .f1-focused-rank { color:#dbe5ef; }
.f1-focused-table tr.rank-3 .f1-focused-rank { color:#dca47d; }
.f1-focused-rank { width:44px; color:#91a8be; font-weight:800; }
.f1-season-section,.f1-news-section { margin-top:16px; }
.f1-season-timeline { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; }
.f1-season-card { display:grid; grid-template-columns:auto 1fr; gap:1px 9px; min-width:0; padding:11px; border:1px solid rgba(103,157,190,.17); border-radius:10px; background:rgba(6,19,34,.45); }
.f1-season-card strong { grid-row:span 3; color:#91a8be; font-size:21px; line-height:1; }
.f1-season-card span { overflow:hidden; color:#e2eaf3; font-size:11px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.f1-season-card small { color:#91a8be; font-size:10px; }
.f1-season-card em { color:#819bb1; font-size:9px; font-style:normal; letter-spacing:.08em; }
.f1-season-card.next { border-color:rgba(240,79,91,.65); background:rgba(240,79,91,.11); box-shadow:0 0 22px rgba(240,79,91,.08); }
.f1-season-card.next strong,.f1-season-card.next em { color:#ff9ca2; }
.f1-season-card.completed { opacity:.7; }
.f1-news-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.f1-news-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.f1-news-card { min-width:0; overflow:hidden; border:1px solid rgba(103,157,190,.17); border-radius:11px; background:rgba(6,19,34,.45); color:inherit; text-decoration:none; transition:border-color .2s,background .2s; }
.f1-news-card:hover { border-color:rgba(86,216,237,.45); background:rgba(86,216,237,.06); }
.f1-news-thumb { height:105px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#173453,#0b1729); color:rgba(86,216,237,.55); font-size:22px; }
.f1-news-thumb img { width:100%; height:100%; object-fit:cover; }
.f1-news-body { display:grid; gap:6px; padding:11px; }
.f1-news-body small { color:#819bb1; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.f1-news-body strong { display:-webkit-box; overflow:hidden; color:#eef5fa; font-size:13px; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.f1-news-body p { display:-webkit-box; overflow:hidden; color:#a9bbc9; font-size:11px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
@media (max-width:1050px) { .f1-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .f1-focused-view { padding-top:16px; } .f1-focused-heading { padding-left:0; padding-right:0; } .f1-focused-hero { min-height:0; padding:22px 18px 18px; } .f1-focused-countdown { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:22px; } .f1-focused-two-col { grid-template-columns:1fr; gap:12px; margin-top:12px; } .f1-focused-section { padding:14px; } .f1-news-grid { grid-template-columns:1fr; } }
@media (max-width:480px) { .f1-focused-kicker { font-size:13px; } .f1-focused-heading .f1-logo { width:70px; height:auto; } .f1-focused-hero h1 { font-size:31px; } .f1-focused-session { grid-template-columns:1fr; gap:3px; } .f1-focused-session span { text-align:left; } }

/* Hash views: the author grid rule must not override the hidden attribute. */
.app-view[hidden] { display: none !important; }


/* Focused F1 data panes: keep full datasets available without excessive page height. */
.f1-last-race-panel .f1-focused-table-wrap { max-height: 390px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(86,216,237,.42) rgba(5,14,27,.45); }
.f1-driver-standings-panel .f1-focused-table-wrap { max-height: 450px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(86,216,237,.42) rgba(5,14,27,.45); }
.f1-last-race-panel .f1-focused-table th,
.f1-driver-standings-panel .f1-focused-table th { position: sticky; top: 0; z-index: 1; background: #122139; box-shadow: 0 1px 0 rgba(103,157,190,.18); }
.f1-last-race-panel .f1-focused-table th { background: #122139; }
.f1-last-race-panel .f1-focused-table-wrap::-webkit-scrollbar,
.f1-driver-standings-panel .f1-focused-table-wrap::-webkit-scrollbar { width: 7px; }
.f1-last-race-panel .f1-focused-table-wrap::-webkit-scrollbar-track,
.f1-driver-standings-panel .f1-focused-table-wrap::-webkit-scrollbar-track { background: rgba(5,14,27,.45); border-radius: 99px; }
.f1-last-race-panel .f1-focused-table-wrap::-webkit-scrollbar-thumb,
.f1-driver-standings-panel .f1-focused-table-wrap::-webkit-scrollbar-thumb { background: rgba(86,216,237,.34); border-radius: 99px; }
.f1-last-race-panel .f1-focused-table-wrap::-webkit-scrollbar-thumb:hover,
.f1-driver-standings-panel .f1-focused-table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(86,216,237,.52); }

/* Focused F1 desktop compact layout. */
.f1-focused-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto auto auto; align-items:center; min-height:160px; padding:20px 24px; }
.f1-focused-hero .f1-hero-kicker { grid-column:1; grid-row:1; }
.f1-focused-hero h1 { grid-column:1; grid-row:2; margin:5px 0 3px; font-size:clamp(28px,3.5vw,48px); }
.f1-focused-hero p { grid-column:1; }
.f1-focused-hero p:first-of-type { grid-row:3; }
.f1-focused-hero p:last-of-type { grid-row:4; margin-top:3px; }
.f1-focused-countdown { grid-column:2; grid-row:1 / span 4; width:min(410px,38vw); gap:7px; margin:0 0 0 22px; }
.f1-focused-countdown > div { padding:10px 8px; border-radius:10px; }
.f1-focused-countdown strong { font-size:27px; }
.f1-focused-countdown span { margin-top:5px; font-size:9px; }
.f1-schedule-panel { margin-top:12px; padding:14px 18px; }
.f1-schedule-panel h3 { margin-bottom:9px; }
.f1-focused-schedule { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:0; }
.f1-focused-schedule .f1-focused-session { min-height:58px; padding:8px 12px; border-top:0; border-bottom:0; border-left-width:2px; border-right:1px solid rgba(103,157,190,.14); }
.f1-focused-schedule .f1-focused-session:last-child { border-right:0; }
.f1-focused-schedule .f1-focused-session strong { font-size:12px; }
.f1-focused-schedule .f1-focused-session span { font-size:10px; }
.f1-focused-data-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:12px; align-items:start; }
.f1-focused-data-row .f1-focused-section { min-width:0; padding:14px 16px; }
.f1-focused-data-row .f1-focused-section h3 { margin-bottom:9px; }
.f1-focused-data-row .f1-focused-table-wrap { max-height:360px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(86,216,237,.42) rgba(5,14,27,.45); }
.f1-focused-data-row .f1-focused-table { min-width:0; font-size:11px; }
.f1-focused-data-row .f1-focused-table th { padding:0 6px 7px; font-size:8px; }
.f1-focused-data-row .f1-focused-table td { padding:7px 6px; }
.f1-focused-data-row .f1-focused-table th:first-child,.f1-focused-data-row .f1-focused-table td:first-child { padding-left:0; }
.f1-focused-data-row .f1-focused-table th:last-child,.f1-focused-data-row .f1-focused-table td:last-child { padding-right:0; }
.f1-focused-data-row .f1-focused-table-wrap::-webkit-scrollbar { width:6px; }
.f1-focused-data-row .f1-focused-table-wrap::-webkit-scrollbar-track { background:rgba(5,14,27,.45); border-radius:99px; }
.f1-focused-data-row .f1-focused-table-wrap::-webkit-scrollbar-thumb { background:rgba(86,216,237,.34); border-radius:99px; }
.f1-focused-data-row .f1-focused-table th { position:sticky; top:0; z-index:1; background:#122139; box-shadow:0 1px 0 rgba(103,157,190,.18); }
.f1-focused-season-section,.f1-focused-news-section { margin-top:12px; }
@media (max-width:1200px) and (min-width:721px) { .f1-focused-data-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .f1-constructor-standings-panel { grid-column:1 / -1; } .f1-focused-countdown { width:min(360px,34vw); margin-left:14px; } }
@media (max-width:720px) { .f1-focused-hero { display:block; min-height:0; padding:20px 18px 18px; } .f1-focused-hero h1 { margin-top:7px; } .f1-focused-countdown { width:auto; margin:18px 0 0; } .f1-focused-schedule { grid-template-columns:repeat(2,minmax(0,1fr)); } .f1-focused-schedule .f1-focused-session { border-right:0; border-bottom:1px solid rgba(103,157,190,.14); } .f1-focused-data-row { grid-template-columns:1fr; gap:12px; margin-top:12px; } .f1-focused-data-row .f1-focused-table-wrap { max-height:360px; } .f1-constructor-standings-panel { grid-column:auto; } }

/* Focused F1 compact polish pass. */
.f1-focused-hero { grid-template-columns:minmax(0,1fr) minmax(320px,38%); min-height:148px; padding:15px 24px; }
.f1-focused-hero h1 { margin-top:4px; font-size:clamp(27px,3.2vw,44px); }
.f1-focused-countdown { width:100%; max-width:390px; margin:0 8px 0 16px; }
.f1-focused-countdown > div { padding:8px 6px; }
.f1-focused-countdown strong { font-size:25px; }
.f1-focused-countdown span { margin-top:4px; }
.f1-schedule-panel { margin-top:9px; padding:9px 16px; }
.f1-schedule-panel h3 { margin-bottom:5px; }
.f1-focused-schedule .f1-focused-session { min-height:40px; padding:5px 10px; }
.f1-focused-schedule .f1-focused-session strong { font-size:12px; }
.f1-focused-schedule .f1-focused-session span { font-size:11px; }
.f1-focused-data-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.08fr); gap:10px; margin-top:9px; }
.f1-focused-data-row .f1-focused-section { padding:12px 14px; }
.f1-focused-data-row .f1-focused-section h3 { margin-bottom:7px; line-height:1.1; }
.f1-focused-data-row .f1-focused-table-wrap { max-height:345px; padding-right:10px; scrollbar-gutter:stable; }
.f1-focused-data-row .f1-focused-table th { padding-top:4px; padding-bottom:6px; vertical-align:middle; line-height:1.1; }
.f1-focused-data-row .f1-focused-table td { padding-top:5px; padding-bottom:5px; vertical-align:middle; line-height:1.15; }
.f1-constructor-standings-panel .f1-focused-table-wrap { max-height:none; }
.f1-focused-data-row .f1-focused-table { width:100%; }
@media (max-width:1200px) and (min-width:721px) { .f1-focused-data-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .f1-constructor-standings-panel { grid-column:1 / -1; } .f1-constructor-standings-panel .f1-focused-table-wrap { max-height:345px; } .f1-focused-hero { grid-template-columns:minmax(0,1fr) minmax(290px,38%); } .f1-focused-countdown { margin-left:10px; margin-right:4px; } }
@media (max-width:720px) { .f1-focused-hero { display:block; min-height:0; padding:16px 18px 17px; } .f1-focused-countdown { margin:16px 0 0; } .f1-schedule-panel { padding:10px 14px; } .f1-focused-schedule .f1-focused-session { min-height:38px; } .f1-focused-data-row .f1-focused-table-wrap { max-height:345px; } }

/* F1 focused final visual polish. */
.f1-focused-hero { min-height:136px; padding:11px 24px; }
.f1-focused-hero h1 { margin-top:3px; font-size:clamp(26px,3vw,42px); }
.f1-focused-countdown { max-width:380px; margin-left:14px; margin-right:12px; }
.f1-focused-countdown > div { padding:7px 6px; }
.f1-focused-countdown strong { font-size:24px; }
.f1-schedule-panel { margin-top:7px; padding:6px 14px; }
.f1-schedule-panel h3 { margin-bottom:3px; }
.f1-focused-schedule .f1-focused-session { min-height:32px; padding:3px 9px; }
.f1-focused-schedule .f1-focused-session strong { font-size:12px; }
.f1-focused-schedule .f1-focused-session span { font-size:12px; }
.f1-focused-data-row .f1-focused-table-wrap { max-height:310px; }
.f1-constructor-standings-panel .f1-focused-table-wrap { max-height:310px; overflow-y:auto; scrollbar-gutter:stable; }
.f1-season-timeline { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:7px; }
.f1-season-card { position:relative; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; min-height:50px; padding:8px 9px; gap:1px 8px; }
.f1-season-card strong { grid-row:1 / span 2; font-size:19px; }
.f1-season-card span { align-self:end; font-size:11px; line-height:1.1; }
.f1-season-card small { align-self:start; font-size:10px; line-height:1.1; }
.f1-season-card em { position:absolute; right:8px; bottom:8px; font-size:8px; line-height:1; }
.f1-season-card.next { box-shadow:0 0 20px rgba(240,79,91,.1), inset 0 0 0 1px rgba(240,79,91,.12); }
.f1-news-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.f1-news-thumb { height:120px; }
@media (max-width:1200px) and (min-width:721px) { .f1-focused-hero { grid-template-columns:minmax(0,1fr) minmax(290px,38%); } .f1-focused-countdown { margin-left:10px; margin-right:8px; } .f1-season-timeline { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:1050px) and (min-width:721px) { .f1-news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:720px) { .f1-focused-hero { min-height:0; padding:15px 18px 16px; } .f1-focused-countdown { margin:15px 0 0; } .f1-schedule-panel { padding:8px 12px; } .f1-focused-schedule .f1-focused-session { min-height:34px; padding:4px 8px; } .f1-season-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); } .f1-news-thumb { height:112px; } }
@media (max-width:480px) { .f1-season-timeline { grid-template-columns:1fr; } }

/* Final focused F1 spacing correction. */
@media (min-width:721px) {
    .f1-focused-data-row > .f1-focused-section { height:325px; display:flex; flex-direction:column; }
    .f1-focused-data-row > .f1-focused-section > .f1-focused-table-wrap { flex:1 1 auto; min-height:0; max-height:none; }
}
.f1-season-section,.f1-news-section { margin-top:9px; }

/* Focused Weather view. */
.weather-focused-view { min-width:0; padding:20px 0 8px; }
.weather-focused-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 4px 15px; border-bottom:1px solid rgba(86,216,237,.2); }
.weather-focused-kicker { display:flex; align-items:center; gap:9px; color:#eef6fb; font-size:16px; font-weight:800; letter-spacing:.08em; }
.weather-focused-heading h2 { margin-top:5px; color:#9bb0c2; font-size:12px; letter-spacing:.16em; }
.weather-focused-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0; }
.weather-focused-tab { border:1px solid rgba(103,157,190,.25); border-radius:999px; padding:7px 13px; background:rgba(6,20,35,.5); color:#91a8be; cursor:pointer; font:inherit; font-size:12px; }
.weather-focused-tab.active,.weather-focused-tab:hover { border-color:rgba(86,216,237,.7); background:rgba(86,216,237,.11); color:#65ddec; }
.weather-focused-status { margin:10px 0; color:#9bb0c2; font-size:12px; }
.weather-focused-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:20px; align-items:center; padding:22px 24px; border:1px solid transparent; border-radius:16px; background:linear-gradient(145deg,rgba(20,39,62,.95),rgba(9,20,37,.95)) padding-box,linear-gradient(135deg,rgba(86,216,237,.58),rgba(74,139,196,.22)) border-box; box-shadow:0 18px 44px rgba(0,0,0,.2),inset 0 1px 0 rgba(160,214,235,.05); }
.weather-focused-current { display:flex; align-items:center; gap:18px; min-width:0; }
.weather-focused-icon { color:#63e1ef; font-size:76px; line-height:1; text-shadow:0 0 24px rgba(86,216,237,.2); }
.weather-focused-current strong { display:block; color:#edf5fa; font-size:clamp(38px,5vw,62px); line-height:1; letter-spacing:-.05em; }
.weather-focused-current span:not(.weather-focused-icon) { display:block; margin-top:8px; color:#a9c1d4; font-size:15px; }
.weather-focused-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.weather-focused-metrics > div { min-width:0; padding:11px 9px; border:1px solid rgba(103,157,190,.18); border-radius:10px; background:rgba(10,28,47,.48); }
.weather-focused-metrics small { display:block; color:#819bb1; font-size:9px; letter-spacing:.07em; }
.weather-focused-metrics strong { display:block; margin-top:6px; color:#edf5fa; font-size:13px; white-space:nowrap; }
.weather-focused-sun { grid-column:2; display:flex; gap:18px; margin-top:-10px; color:#91a8be; font-size:11px; }
.weather-focused-sun strong { color:#dcebf2; }
.weather-focused-section { min-width:0; margin-top:14px; padding:16px 18px; border:1px solid rgba(103,157,190,.2); border-radius:14px; background:linear-gradient(145deg,rgba(20,39,62,.72),rgba(9,20,37,.72)); }
.weather-focused-section h3 { margin:0 0 11px; color:#c8d7e6; font-size:11px; letter-spacing:.14em; line-height:1.1; }
.weather-hourly-strip { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(62px,1fr); gap:7px; overflow-x:auto; padding:2px 2px 5px; scrollbar-width:thin; scrollbar-color:rgba(86,216,237,.36) rgba(5,14,27,.45); }
.weather-hour { display:grid; justify-items:center; gap:6px; min-width:0; padding:8px 5px; border:1px solid rgba(103,157,190,.15); border-radius:9px; background:rgba(6,19,34,.44); }
.weather-hour small { color:#91a8be; font-size:10px; }
.weather-hour span { color:#63e1ef; font-size:22px; line-height:1; }
.weather-hour strong { color:#eef5fa; font-size:13px; }
.weather-hour em { color:#819bb1; font-size:10px; font-style:normal; }
.weather-hour.active { border-color:rgba(86,216,237,.7); background:rgba(86,216,237,.1); }
.weather-focused-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.weather-chart { min-width:0; height:170px; overflow:hidden; border-radius:8px; background:rgba(6,19,34,.3); }
.weather-chart svg { display:block; width:100%; height:100%; }
.weather-chart-grid { stroke:rgba(145,174,210,.12); stroke-width:1; }
.weather-chart-line { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.weather-chart-point { stroke:#081322; stroke-width:2; }
.weather-daily-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.weather-daily-card { display:grid; justify-items:center; gap:7px; min-width:0; padding:11px 7px; border:1px solid rgba(103,157,190,.17); border-radius:10px; background:rgba(6,19,34,.44); text-align:center; }
.weather-daily-card strong { overflow:hidden; color:#a9bbce; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.weather-daily-card span { color:#63e1ef; font-size:27px; line-height:1; }
.weather-daily-card b { color:#eef5fa; font-size:13px; white-space:nowrap; }
.weather-daily-card small { color:#819bb1; font-size:10px; }
.weather-daily-card.active { border-color:rgba(86,216,237,.65); background:rgba(86,216,237,.08); }
.weather-daily-card.active strong { color:#65ddec; }
.weather-news-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.weather-news-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.weather-news-card { display:grid; grid-template-columns:90px minmax(0,1fr); min-width:0; overflow:hidden; border:1px solid rgba(103,157,190,.17); border-radius:10px; background:rgba(6,19,34,.44); color:inherit; text-decoration:none; }
.weather-news-card:hover { border-color:rgba(86,216,237,.45); background:rgba(86,216,237,.06); }
.weather-news-image { display:grid; place-items:center; min-height:88px; overflow:hidden; background:linear-gradient(135deg,#173453,#0b1729); color:#63e1ef; font-size:22px; }
.weather-news-image img { width:100%; height:100%; object-fit:cover; }
.weather-news-body { display:grid; align-content:center; gap:5px; min-width:0; padding:9px; }
.weather-news-body small { overflow:hidden; color:#819bb1; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.weather-news-body strong { display:-webkit-box; overflow:hidden; color:#eef5fa; font-size:12px; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
@media (max-width:1100px) { .weather-focused-hero { grid-template-columns:1fr; } .weather-focused-sun { grid-column:auto; margin-top:0; } .weather-daily-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .weather-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .weather-focused-view { padding-top:16px; } .weather-focused-heading { padding-left:0; padding-right:0; } .weather-focused-hero { padding:18px; } .weather-focused-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .weather-focused-sun { flex-wrap:wrap; } .weather-focused-charts { grid-template-columns:1fr; gap:12px; } .weather-focused-section { padding:14px; } .weather-daily-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .weather-news-grid { grid-template-columns:1fr; } }
@media (max-width:480px) { .weather-focused-current { gap:12px; } .weather-focused-icon { font-size:58px; } .weather-focused-current strong { font-size:40px; } }

/* Weather focused visual polish. */
.weather-focused-heading .weather-focused-tabs { margin:0 auto; }
.weather-focused-heading .weather-focused-tab { padding:5px 10px; font-size:11px; }
.weather-focused-hero { gap:14px; padding:14px 18px; }
.weather-focused-icon { font-size:62px; }
.weather-focused-current { gap:13px; }
.weather-focused-current span:not(.weather-focused-icon) { margin-top:5px; font-size:13px; }
.weather-focused-metrics { gap:6px; }
.weather-focused-metrics > div { padding:8px 7px; }
.weather-focused-metrics small { font-size:8px; }
.weather-focused-metrics strong { margin-top:4px; font-size:12px; }
.weather-focused-sun { margin-top:-5px; }
.weather-chart-label { fill:#91a8be; font:10px Inter,ui-sans-serif,system-ui,sans-serif; }
.weather-chart-time { fill:#a9bbce; }
.weather-news-grid .weather-news-card { display:block; grid-template-columns:none; }
.weather-news-grid .weather-news-image { height:120px; min-height:0; }
.weather-news-grid .weather-news-body { display:grid; align-content:initial; gap:6px; padding:11px; }
@media (max-width:1100px) { .weather-focused-heading .weather-focused-tabs { margin:0 auto; } }
@media (max-width:720px) { .weather-focused-heading { flex-wrap:wrap; } .weather-focused-heading .weather-focused-tabs { order:3; width:100%; margin:0; } .weather-focused-hero { padding:14px; } }

/* Weather focused compact layout pass. */
.weather-focused-heading { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; }
.weather-focused-heading > div:first-child { justify-self:start; }
.weather-focused-heading .weather-focused-tabs { justify-self:center; margin:0; }
.weather-focused-heading > .panel-code { justify-self:end; }
.weather-focused-hero { min-height:95px; gap:12px; padding:10px 16px; }
.weather-focused-icon { font-size:56px; }
.weather-focused-current { gap:11px; }
.weather-focused-current strong { font-size:clamp(34px,4vw,52px); }
.weather-focused-current span:not(.weather-focused-icon) { margin-top:3px; font-size:12px; }
.weather-focused-metrics { gap:5px; }
.weather-focused-metrics > div { padding:6px 7px; }
.weather-focused-metrics small { font-size:8px; }
.weather-focused-metrics strong { margin-top:2px; font-size:11px; }
.weather-focused-sun { gap:12px; margin-top:-3px; font-size:10px; }
.weather-focused-hourly-section { padding-top:12px; padding-bottom:12px; }
.weather-focused-hourly-section h3 { margin-bottom:8px; }
.weather-hour { padding:7px 5px; gap:5px; }
.weather-focused-data-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.weather-focused-data-grid > .weather-focused-section { min-width:0; margin-top:14px; display:flex; flex-direction:column; }
.weather-focused-data-grid .weather-chart { flex:1 1 auto; height:auto; min-height:170px; }
.weather-focused-data-grid .weather-daily-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; align-content:start; }
.weather-focused-data-grid .weather-daily-card { padding:7px 4px; gap:4px; }
.weather-focused-data-grid .weather-daily-card span { font-size:22px; }
.weather-focused-data-grid .weather-daily-card b { font-size:11px; }
.weather-focused-data-grid .weather-daily-card small { font-size:9px; }
@media (max-width:1100px) {
  .weather-focused-data-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .weather-focused-data-grid > .weather-focused-daily-section { grid-column:1 / -1; }
}
@media (max-width:720px) {
  .weather-focused-heading { display:flex; flex-wrap:wrap; }
  .weather-focused-heading .weather-focused-tabs { order:3; width:100%; justify-content:flex-start; }
  .weather-focused-heading > .panel-code { margin-left:auto; }
  .weather-focused-data-grid { grid-template-columns:1fr; }
  .weather-focused-data-grid > .weather-focused-daily-section { grid-column:auto; }
}
/* Weather focused typography and shared news-card polish. */
.weather-focused-metrics small { font-size:10px; }
.weather-focused-metrics strong { margin-top:3px; font-size:13px; }
.weather-focused-sun { font-size:11px; }
.weather-chart-label { font-size:12px; }
.weather-chart-time { font-size:11px; }
.weather-news-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.weather-news-grid .f1-news-card { display:block; }
.weather-news-grid .f1-news-thumb { height:120px; min-height:0; }
.weather-news-grid .f1-news-body { display:grid; align-content:initial; gap:6px; padding:11px; }
.weather-news-grid .f1-news-body small { font-size:9px; }
.weather-news-grid .f1-news-body strong { font-size:13px; line-height:1.25; }
.weather-news-grid .f1-news-body p { font-size:11px; line-height:1.35; }
@media (max-width:1050px) and (min-width:721px) { .weather-news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:720px) { .weather-news-grid { grid-template-columns:1fr; } .weather-news-grid .f1-news-thumb { height:112px; } }
/* Focused News view. */
.news-focused-view { min-width:0; padding:20px 0 8px; }
.news-focused-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 4px 15px; border-bottom:1px solid rgba(86,216,237,.2); }
.news-focused-kicker { display:flex; align-items:center; gap:9px; color:#eef6fb; font-size:16px; font-weight:800; letter-spacing:.08em; }
.news-focused-heading h2 { margin-top:5px; color:#9bb0c2; font-size:12px; letter-spacing:.16em; }
.news-focused-controls { display:flex; align-items:center; gap:10px; min-width:0; margin-top:14px; }
.news-category-tabs { display:flex; flex:1 1 auto; gap:7px; min-width:0; overflow-x:auto; padding:0 0 3px; scrollbar-width:thin; }
.news-category-tab { flex:0 0 auto; border:1px solid rgba(103,157,190,.25); border-radius:999px; padding:7px 12px; background:rgba(6,20,35,.5); color:#91a8be; cursor:pointer; font:inherit; font-size:12px; white-space:nowrap; }
.news-category-tab:hover,.news-category-tab.active { border-color:rgba(86,216,237,.7); background:rgba(86,216,237,.11); color:#65ddec; }
.news-source-control { display:flex; flex:0 0 auto; align-items:center; gap:7px; color:#819bb1; font-size:11px; white-space:nowrap; }
.news-source-control select { max-width:190px; border:1px solid rgba(103,157,190,.3); border-radius:9px; padding:7px 9px; background:#0b1b2e; color:#dcebf2; font:inherit; font-size:12px; }
.news-focused-status { flex:0 0 auto; color:#91a8be; font-size:11px; white-space:nowrap; }
.news-focused-meta { display:flex; justify-content:flex-end; min-height:19px; margin:8px 0 10px; color:#819bb1; font-size:11px; }
.news-focused-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; }
.news-focused-grid .f1-news-card { min-width:0; }
.news-load-more { display:block; margin:16px auto 0; border:1px solid rgba(86,216,237,.45); border-radius:999px; padding:8px 18px; background:rgba(86,216,237,.08); color:#65ddec; cursor:pointer; font:inherit; font-size:12px; letter-spacing:.08em; }
.news-load-more:hover { background:rgba(86,216,237,.15); }
.news-load-more:disabled { cursor:wait; opacity:.55; }
.news-load-more[hidden] { display:none; }
@media (max-width:1050px) and (min-width:721px) { .news-focused-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) {
  .news-focused-view { padding-top:16px; }
  .news-focused-heading { padding-left:0; padding-right:0; }
  .news-focused-controls { align-items:stretch; flex-wrap:wrap; }
  .news-category-tabs { flex-basis:100%; }
  .news-source-control { flex:1 1 auto; justify-content:space-between; }
  .news-source-control select { flex:1 1 auto; max-width:none; }
  .news-focused-status { align-self:center; }
  .news-focused-grid { grid-template-columns:1fr; }
}
/* News focused visual redesign. */
.news-focused-view { width:100%; max-width:1500px; margin:0 auto; }
.news-focused-controls.panel { display:flex; align-items:center; gap:12px; margin-top:14px; padding:11px 14px; border-color:rgba(86,216,237,.2); background:linear-gradient(145deg,rgba(20,39,62,.78),rgba(9,20,37,.78)); }
.news-focused-controls .news-category-tabs { padding:0; }
.news-focused-controls .news-source-control { margin-left:auto; }
.news-focused-controls .news-focused-status { order:3; }
.news-focused-count { flex:0 0 auto; color:#819bb1; font-size:11px; white-space:nowrap; }
.news-section-heading { display:flex; align-items:center; justify-content:space-between; margin:18px 0 10px; }
.news-section-heading h3 { margin:0; color:#c8d7e6; font-size:11px; letter-spacing:.14em; line-height:1.1; }
.news-featured-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); gap:12px; }
.news-featured-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; }
.news-featured-card:first-child { grid-row:1 / -1; }
.news-featured-card .f1-news-thumb { height:105px; flex:0 0 105px; }
.news-featured-card:first-child .f1-news-thumb { height:230px; flex-basis:230px; }
.news-featured-card .f1-news-body { flex:1 1 auto; padding:12px; }
.news-featured-card:first-child .f1-news-body strong { font-size:18px; line-height:1.2; }
.news-featured-card:first-child .f1-news-body p { font-size:12px; line-height:1.4; }
.news-featured-card .f1-news-body strong { font-size:14px; }
.news-list-section { min-width:0; }
.news-list-section .news-section-heading { margin-top:22px; }
.news-focused-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:0; }
.news-focused-grid .f1-news-card { min-height:100%; display:flex; flex-direction:column; }
.news-focused-grid .f1-news-thumb { height:120px; flex:0 0 120px; }
.news-focused-grid .f1-news-body { flex:1 1 auto; display:grid; align-content:start; }
.news-focused-grid .f1-news-body strong { min-height:2.5em; }
.news-focused-grid .f1-news-body p { min-height:2.7em; }
.news-featured-section[hidden] { display:none; }
@media (max-width:1200px) and (min-width:901px) { .news-focused-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) and (min-width:721px) { .news-focused-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .news-featured-grid { grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr); } }
@media (max-width:720px) {
  .news-focused-controls.panel { align-items:stretch; flex-wrap:wrap; }
  .news-focused-controls .news-category-tabs { flex-basis:100%; }
  .news-focused-controls .news-source-control { flex:1 1 auto; margin-left:0; justify-content:space-between; }
  .news-focused-controls .news-source-control select { flex:1 1 auto; max-width:none; }
  .news-focused-controls .news-focused-status { margin-left:auto; }
  .news-focused-count { align-self:center; }
  .news-featured-grid { display:grid; grid-template-columns:1fr; grid-template-rows:none; }
  .news-featured-card:first-child { grid-row:auto; }
  .news-featured-card:first-child .f1-news-thumb { height:180px; flex-basis:180px; }
  .news-focused-grid { grid-template-columns:1fr; }
}
/* Focused Tasks view. */
.tasks-focused-view { width:100%; max-width:1500px; margin:0 auto; min-width:0; padding:20px 0 8px; }
.tasks-focused-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:0 4px 15px; border-bottom:1px solid rgba(178,147,255,.22); }
.tasks-focused-kicker { display:flex; align-items:center; gap:9px; color:#eef5fa; font-size:16px; font-weight:800; letter-spacing:.08em; }
.tasks-focused-heading h2 { margin-top:5px; color:#9bb0c2; font-size:12px; letter-spacing:.16em; }
.tasks-new-button { border:1px solid rgba(178,147,255,.58); border-radius:999px; padding:8px 14px; background:rgba(178,147,255,.1); color:#c9b9ff; cursor:pointer; font:inherit; font-size:12px; font-weight:700; letter-spacing:.06em; }
.tasks-new-button:hover { background:rgba(178,147,255,.18); }
.tasks-focused-controls.panel { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding:11px 14px; border-color:rgba(178,147,255,.2); background:linear-gradient(145deg,rgba(31,31,63,.8),rgba(9,20,37,.8)); }
.tasks-focused-status { color:#91a8be; font-size:11px; }
.tasks-focused-count { color:#c9b9ff; font-size:12px; font-weight:700; }
.tasks-focused-active { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; align-items:start; }
.tasks-focused-group { min-width:0; margin-top:18px; }
.tasks-focused-group h3,.tasks-section-heading h3 { margin:0 0 9px; color:#c9b9ff; font-size:11px; letter-spacing:.14em; line-height:1.1; }
.tasks-focused-grid { display:grid; gap:9px; }
.task-focused-card { min-width:0; padding:13px 14px; border:1px solid rgba(145,174,210,.16); border-left:3px solid rgba(86,216,237,.5); border-radius:12px; background:linear-gradient(145deg,rgba(20,39,62,.78),rgba(9,20,37,.78)); box-shadow:inset 0 1px 0 rgba(160,214,235,.04); }
.task-focused-card.priority-1 { border-left-color:#8298ae; }
.task-focused-card.priority-2 { border-left-color:#56d8ed; }
.task-focused-card.priority-3 { border-left-color:#e8b75a; }
.task-focused-card.priority-4 { border-left-color:#ff626b; }
.task-focused-card.completed { opacity:.7; border-left-color:#75869a; }
.task-focused-card-heading { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
.task-focused-state { color:#b293ff; font-size:16px; font-weight:800; }
.task-focused-card.completed .task-focused-state { color:#56e0a0; }
.task-focused-card h4 { min-width:0; margin:0; overflow:hidden; color:#eef5fa; font-size:15px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.task-focused-card.completed h4 { color:#a5b3c2; text-decoration:line-through; }
.task-focused-priority { color:#9bb0c2; font-size:10px; white-space:nowrap; }
.task-focused-card.priority-3 .task-focused-priority { color:#e8b75a; }
.task-focused-card.priority-4 .task-focused-priority { color:#ff858c; }
.task-focused-description { margin:8px 0 0; overflow:hidden; color:#a9bbc9; font-size:12px; line-height:1.35; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.task-focused-metadata { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:10px; }
.task-focused-meta-item { display:flex; gap:4px; align-items:baseline; min-width:0; color:#819bb1; font-size:11px; }
.task-focused-meta-item small { color:#71879c; font-size:9px; letter-spacing:.05em; text-transform:uppercase; }
.task-focused-meta-item strong { color:#c8d7e6; font-size:11px; font-weight:600; }
.task-focused-meta-item.overdue strong { color:#ff858c; }
.task-focused-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.task-focused-actions button { border:1px solid rgba(86,216,237,.3); border-radius:7px; padding:5px 9px; background:rgba(86,216,237,.07); color:#9debf3; cursor:pointer; font:inherit; font-size:11px; }
.task-focused-actions button:hover { background:rgba(86,216,237,.14); }
.task-focused-actions button.secondary { border-color:rgba(145,174,210,.25); background:rgba(145,174,210,.06); color:#b2c2d2; }
.task-focused-actions button.danger { border-color:rgba(255,98,107,.28); background:rgba(255,98,107,.06); color:#ff9a9f; }
.tasks-completed-section { margin-top:20px; padding-top:2px; border-top:1px solid rgba(178,147,255,.16); }
.tasks-section-heading { margin-top:16px; }
.tasks-completed-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; max-height:520px; overflow-y:auto; padding-right:5px; scrollbar-width:thin; scrollbar-color:rgba(178,147,255,.35) rgba(5,14,27,.45); }
.tasks-focused-empty { color:#819bb1; font-size:13px; }
@media (max-width:900px) and (min-width:721px) { .tasks-focused-active { grid-template-columns:1fr; } .tasks-completed-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .tasks-focused-view { padding-top:16px; } .tasks-focused-heading { padding-left:0; padding-right:0; } .tasks-focused-heading h2 { font-size:11px; } .tasks-focused-active { grid-template-columns:1fr; } .tasks-focused-controls.panel { align-items:flex-start; flex-direction:column; } .tasks-completed-grid { grid-template-columns:1fr; max-height:none; } .task-focused-card-heading { grid-template-columns:auto minmax(0,1fr); } .task-focused-priority { grid-column:2; } }
/* Active focused task cards: consistent base height without clipping content. */
.tasks-focused-active .task-focused-card { display:flex; flex-direction:column; height:100%; min-height:140px; }
.tasks-focused-active .task-focused-actions { margin-top:auto; }