:root {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: #f5f7fb;
    color-scheme: dark;
    background: #15233a url("alpen.webp") center / cover fixed no-repeat;
    --muted: #c5cfdf;
    --border: rgb(209 222 255 / .15);
    --blue: #5775d6;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, rgb(18 26 48 / .25), rgb(6 15 30 / .37));
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #a9bcff;
    outline-offset: 3px;
}
button, input, select { font: inherit; }
.icon { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; vertical-align: middle; }
.topbar {
    min-height: 82px;
    padding: 16px max(24px, 2.65vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(90deg, rgb(16 28 52 / .48), rgb(29 39 67 / .27));
    border-bottom: 1px solid rgb(233 238 255 / .07);
}
.brand, .top-actions, .clock { display: flex; align-items: center; }
.brand { gap: clamp(12px, 2.2vw, 34px); }
.brand > .icon { width: 30px; height: 30px; color: #e2eafa; }
h1 { margin: 0; font-size: clamp(1.25rem, 2.25vw, 2.125rem); font-weight: 650; letter-spacing: -.025em; }
.top-actions { gap: 16px; color: #e4e9f6; }
.clock { gap: clamp(12px, 2vw, 32px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.settings-button { border-left: 1px solid var(--border); padding-left: 14px; }
.dashboard {
    display: grid;
    grid-template-columns: minmax(0, .895fr) minmax(0, 1fr);
    gap: 18px 15px;
    padding: 21px 2.35vw 34px;
    max-width: 1700px;
    margin-inline: auto;
}
.card {
    min-width: 0;
    padding: 16px clamp(16px, 1.7vw, 29px) 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(140deg, rgb(16 25 43 / .93), rgb(9 17 31 / .91));
    box-shadow: 0 15px 30px rgb(4 10 21 / .16);
    backdrop-filter: blur(15px);
}
.weather-card, .rss-card { min-height: 375px; }
.favorites-card, .quick-card { min-height: 299px; }
.card-header, .card-header h2, .rss-actions { display: flex; align-items: center; }
.card-header { justify-content: space-between; min-height: 37px; gap: 12px; margin-bottom: 16px; }
.card-header h2 { gap: 17px; margin: 0; font-size: clamp(1.15rem, 1.57vw, 1.55rem); font-weight: 650; letter-spacing: -.02em; }
.card-header h2 .icon { width: 30px; height: 30px; }
.card-action { color: #dce4f4; font-size: .94rem; }
.card-action:hover, .attribution:hover { color: white; text-decoration: underline; }
.icon-button { display: grid; place-items: center; min-width: 36px; min-height: 36px; color: var(--muted); border-radius: 8px; }
.icon-button:hover { color: #fff; background: rgb(231 237 255 / .10); }
.rss-actions { gap: 5px; }
.rss-badge { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: linear-gradient(#ffaf2b, #eb7006); box-shadow: inset 0 0 0 1px #ffc36b70; }
.rss-badge .icon { width: 24px !important; height: 24px !important; }
.gold { color: #ffc350; }
.location { margin: 12px 0 0; display: flex; align-items: center; gap: 10px; font-size: 1.19rem; }
.location .icon { width: 20px; height: 20px; color: var(--muted); }
.source { margin-left: auto; font-size: .75rem; color: var(--muted); }
.weather-current { min-height: 150px; display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 10px 8% 13px 3%; }
.temperature { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 34px); }
.temperature strong { display: block; font-size: clamp(2.2rem, 3.55vw, 3.55rem); font-weight: 620; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.temperature div > span { display: block; font-size: clamp(1rem, 1.4vw, 1.35rem); color: #dce5f4; margin-top: 8px; }
.weather-symbol, .forecast-icon { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.weather-symbol { font-size: clamp(3rem, 6.15vw, 6rem); line-height: 1; }
.weather-details { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; color: #e4eaf5; font-size: clamp(.8rem, 1.13vw, 1.06rem); }
.weather-details li { display: flex; align-items: center; gap: 9px; }
.weather-details .icon { width: 17px; height: 17px; color: var(--muted); }
.forecast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgb(205 220 250 / .08); border-radius: 13px; background: rgb(111 137 188 / .07); }
.forecast-day { position: relative; display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 103px; padding: 7px 1px; text-align: center; white-space: nowrap; }
.forecast-day:first-child { border-radius: 12px; background: rgb(131 157 204 / .18); }
.forecast-day:nth-child(n + 3)::before { content: ""; position: absolute; left: 0; top: 10%; height: 80%; border-left: 1px solid var(--border); }
.forecast-day strong { font-weight: 600; }
.forecast-icon { font-size: 1.8rem; line-height: 1.2; }
.attribution, .feed-note { display: block; margin: 8px 0 0; font-size: .7rem; color: var(--muted); }
.tabs { display: flex; align-items: center; gap: clamp(3px, 1vw, 18px); margin: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tabs a { display: block; padding: 7px clamp(6px, 1.3vw, 22px); border-radius: 999px; font-size: clamp(.76rem, 1.14vw, 1.04rem); white-space: nowrap; }
.tabs a[aria-current] { background: var(--blue); min-width: 80px; text-align: center; color: #fff; }
.tabs a:hover { background: #4260bc; }
.articles { max-height: 470px; overflow: auto; }
.article { display: grid; grid-template-columns: clamp(65px, 6.25vw, 96px) minmax(0, 1fr) auto; align-items: center; gap: clamp(11px, 1.4vw, 24px); min-height: 78px; padding: 10px 3px 10px 0; border-bottom: 1px solid var(--border); }
.article:hover { background: rgb(148 179 244 / .10); }
.article > .icon, .quick .icon:last-child { width: 20px; height: 20px; color: var(--muted); }
.thumbnail { width: 100%; height: 55px; border-radius: 10px; background: #152843 center / cover no-repeat; }
.chip { background-image: url("chip.webp"); }
.earth { background-image: url("earth.webp"); }
.laptop { background-image: url("laptop.webp"); }
.article-copy { display: grid; gap: 5px; font-size: clamp(.85rem, 1.13vw, 1.07rem); }
.article-copy strong { font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.article-copy span { color: var(--muted); font-size: .9em; }
.favorites, .quick-links { display: grid; gap: 14px; }
.favorites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.tile { min-width: 0; border: 1px solid rgb(216 227 255 / .07); border-radius: 15px; background: linear-gradient(140deg, rgb(133 156 196 / .17), rgb(122 145 185 / .12)); box-shadow: inset 0 1px 0 rgb(228 236 255 / .035); }
.tile:hover { background: rgb(139 166 221 / .26); border-color: var(--border); }
.tile span { overflow-wrap: anywhere; }
.favorite { display: grid; justify-items: center; align-content: center; gap: 7px; min-height: 96px; padding: 8px 4px; text-align: center; }
.favorite .icon { width: 38px; height: 38px; }
.quick { display: flex; gap: clamp(9px, 1.45vw, 24px); align-items: center; min-height: 59px; padding: 8px clamp(10px, 1.25vw, 20px); }
.quick .icon:first-child { width: 28px; height: 28px; color: #dce5f4; }
.quick .icon:last-child { margin-left: auto; }
.empty { color: var(--muted); padding: 12px 0; }
.settings { margin: 21px auto 30px; width: min(100% - 32px, 1040px); }
.settings h3 { font-size: 1rem; margin: 20px 0 10px; }
.entry { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; padding: 11px; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 12px; }
.entry label { display: grid; flex: 1 1 145px; gap: 5px; color: var(--muted); font-size: .88rem; }
.entry label:has([name=url]) { flex-basis: 225px; }
.entry input, .entry select { width: 100%; min-height: 39px; background: #131f32; color: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.entry button { min-height: 39px; border: 1px solid transparent; border-radius: 8px; padding: 7px 12px; background: #425fbe; color: #fff; cursor: pointer; }
.entry button:hover { background: #536fd0; }
.entry .delete { background: #63394a; }
.entry .delete:hover { background: #83495e; }
.notice { padding: 10px; border-radius: 8px; background: #224f4c; }
.notice.error { background: #673b49; }

@media (max-width: 1050px) {
    .weather-current { padding-inline: 0; }
    .weather-symbol { font-size: clamp(3rem, 5.5vw, 5.5rem); }
    .weather-card, .rss-card, .favorites-card, .quick-card { min-height: auto; }
}
@media (max-width: 780px) {
    .dashboard { grid-template-columns: 1fr; padding-inline: 16px; }
    .topbar { min-height: 66px; padding: 12px 16px; }
    .top-actions { gap: 6px; }
    .settings-button { padding-left: 7px; }
    .weather-symbol { font-size: clamp(3rem, 11vw, 5.5rem); }
}
@media (max-width: 475px) {
    .brand .icon { width: 23px; height: 23px; }
    .clock .date { display: none; }
    .card { padding-inline: 13px; border-radius: 15px; }
    .card-header h2 { gap: 9px; }
    .card-header h2 .icon { width: 25px; height: 25px; }
    .card-action { font-size: .8rem; }
    .weather-current { min-height: 125px; }
    .forecast-day { min-height: 84px; font-size: .76rem; }
    .forecast-icon { font-size: 1.3rem; }
    .favorites, .quick-links { gap: 8px; }
    .favorite { min-height: 80px; font-size: .76rem; }
    .favorite .icon { width: 29px; height: 29px; }
    .quick { min-height: 52px; font-size: .8rem; }
    .quick .icon:first-child { width: 22px; height: 22px; }
    .quick .icon:last-child { width: 15px; height: 15px; }
    .tabs a[aria-current] { min-width: 0; }
}
@media (max-width: 340px) {
    .weather-current { flex-wrap: wrap; padding-block: 12px; }
    .weather-details { gap: 5px; }
    .tabs { flex-wrap: wrap; }
}
