/* Počasí Domašov V7 · samostatné, nekolidující styly · UTF-8 */
:root{color-scheme:light;--ink:#082e59;--ink-muted:#385f85;--page:#bfe6fc;--panel:rgba(220,241,255,.89);--panel-border:rgba(255,255,255,.93);--tile:rgba(244,251,255,.53);--tile-border:rgba(255,255,255,.88);--shadow:0 7px 24px rgba(22,79,130,.12);--detail:#eff8ff;--stroke:#b5d5ed;--nav-bg:rgba(226,243,255,.94);--nav-ink:#214e79;--graph-bg:rgba(243,250,255,.83)}
*,*::before,*::after{box-sizing:border-box}
html{background:#afdaf6;-webkit-text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;margin:0;color:var(--ink);background:linear-gradient(180deg,#11649a 0,#5aadd9 440px,#a5d8f5 675px,#cae9fc 1040px,#d1edff 100%);min-height:100vh;overflow-x:hidden}
a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.app-shell{isolation:isolate;position:relative;max-width:460px;min-height:100vh;margin:0 auto;padding:0 0 calc(116px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(0,68,120,.02),rgba(197,230,252,.16) 700px,rgba(212,235,250,.17) 1100px,transparent 1250px)}
.app-shell::before{content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;height:670px;z-index:-1;background-image:url('sky-v8.jpg');background-size:cover;background-repeat:no-repeat;background-position:50% top;opacity:1}
.app-header{min-height:88px;display:flex;align-items:center;justify-content:space-between;padding:16px 15px 10px;gap:9px;color:#fff}
.brand{display:flex;gap:10px;align-items:center;min-width:0}
.brand-icon{width:48px;height:48px;flex:none;border:1px solid rgba(225,247,255,.66);border-radius:16px;background:linear-gradient(145deg,#51c4fa,#0277b9);box-shadow:0 6px 12px rgba(0,49,110,.20);display:grid;place-items:center}
.brand-icon svg{width:40px;height:40px;color:#f5ffff;filter:drop-shadow(0 2px 4px rgba(1,62,123,.26))}
.brand strong{display:block;font-size:clamp(17px,5vw,23px);font-weight:800;letter-spacing:-.55px;line-height:1.13;white-space:nowrap}
.brand span{display:block;font-size:clamp(9px,2.7vw,11px);line-height:1.4;color:#e6f5ff;white-space:nowrap}
.header-actions{display:flex;gap:7px;flex-shrink:0}
.header-actions button,.round-action{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(118,196,249,.18);border:1px solid rgba(227,244,255,.55);box-shadow:inset 0 1px rgba(255,255,255,.12)}
.header-actions button svg,.round-action svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#themeBtn{font-size:22px;line-height:1}
.screen{display:none;padding:0 13px 26px}.screen.active{display:block}
#home{padding-top:0}
.weather-hero{position:relative;color:#fff;isolation:isolate;min-width:0}
.atmosphere{position:absolute;inset:0;z-index:-1;pointer-events:none}
.mist{display:none}
.hero-top{height:19px;display:flex;justify-content:space-between;align-items:center;padding:0 2px;gap:5px}
.live-tag{font-size:8px;font-weight:800;letter-spacing:.8px;color:#e5f8ff}.live-tag i{display:inline-block;width:6px;height:6px;margin-right:5px;background:#6ef0ba;border-radius:50%;vertical-align:middle;box-shadow:0 0 9px rgba(79,244,179,.75)}
.hero-update{font-size:8px;color:#e3f4ff;text-align:right;white-space:nowrap}
.hero-core{display:grid;grid-template-columns:26% 38% 36%;align-items:center;min-height:186px;padding:16px 0 4px}
.hero-weather{min-width:0;display:flex;justify-content:center;align-items:center}
.weather-symbol{width:100%;display:flex;justify-content:center}
.weather-symbol svg{height:auto;aspect-ratio:1;display:block;width:min(100%,115px);color:#e7f4ff;filter:drop-shadow(0 9px 11px rgba(2,56,109,.17))}
.hero-readings{min-width:0;align-self:center;padding:0 0 0 3px}
.big-temp{font-size:clamp(46px,13vw,66px);font-weight:750;letter-spacing:-3.6px;line-height:1.01;white-space:nowrap;color:#fff;text-shadow:0 4px 14px rgba(4,52,100,.16)}
.big-temp sup{font-size:.34em;font-weight:650;vertical-align:top;display:inline-block;letter-spacing:-.1px;margin:3px 0 0 2px}
.weather-caption{font-size:clamp(14px,4.1vw,18px);font-weight:750;line-height:1.2;margin:3px 0 7px;overflow-wrap:break-word;color:#fff}
.feels{display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:4px;max-width:100%;white-space:nowrap;font-size:clamp(8.5px,2.4vw,11px);padding:6px 7px;background:rgba(179,224,251,.22);border:1px solid rgba(242,251,255,.68);border-radius:30px;box-shadow:inset 0 1px rgba(255,255,255,.16);color:#fff}
.feels b{font-weight:800;font-size:1.1em}
.today-range{display:flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;gap:3px;font-size:clamp(9px,2.55vw,11px);color:#f5fbff;margin:8px 0 0 1px}
.today-range b{font-weight:650}.range-sep{margin:0 3px;opacity:.65}
.sunline{height:150px;position:relative;min-width:0;align-self:center;border-left:1px solid rgba(225,243,255,.37);margin-left:2px}
.sun-curve{position:absolute;top:5px;left:4%;width:93%;height:75px;overflow:visible}
.astro-label{position:absolute;top:82px;width:50%;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;color:#fff}
.astro-rise{left:0}.astro-set{right:0}
.astro-label svg{width:29px;height:26px;color:#ffd133;stroke:#ffd133;fill:none}
.astro-label small{font-size:clamp(9px,2.6vw,11px);line-height:1.05;color:#fff}
.astro-label b{font-size:clamp(12px,3.8vw,17px);font-weight:850;line-height:1.1;color:#fff}
.hero-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:6px 0 0}
.mini-metric{min-width:0;min-height:77px;padding:8px 2px 7px;border:1px solid rgba(229,246,255,.66);border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;background:linear-gradient(140deg,rgba(214,239,255,.31),rgba(155,209,244,.23));box-shadow:inset 0 1px rgba(255,255,255,.11),0 4px 11px rgba(0,62,125,.09)}
.metric-icon{display:flex;align-items:center;justify-content:center;height:23px;width:23px;color:#f1fcff}
.metric-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mini-metric>span:not(.metric-icon){font-size:clamp(8px,2.0vw,10px);font-weight:550;line-height:1.15;color:#effbff;white-space:nowrap;letter-spacing:0}
.mini-metric b{font-size:clamp(12px,3.2vw,16px);letter-spacing:-.3px;white-space:nowrap;line-height:1.15;color:#fff}
.mini-metric small{font-size:.73em;font-weight:500;letter-spacing:0}
.quick-status{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 3px 21px}
.status-pill{border-radius:99px;padding:7px 11px;font-size:clamp(10px,2.7vw,12px);font-weight:700;white-space:nowrap;line-height:1.35}
.status-pill.bio{background:#d5fce2;color:#136b3f;border:1px solid rgba(255,255,255,.5)}.status-pill.aqi{background:#ffe091;color:#62410a;border:1px solid #ffefbb}
.forecast-card{border:1.5px solid var(--panel-border);background:var(--panel);box-shadow:var(--shadow);border-radius:24px;padding:13px 12px 0;color:var(--ink);overflow:hidden;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.forecast-title{display:flex;align-items:center;gap:10px;min-width:0}
.forecast-badge{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;background:linear-gradient(138deg,#7ad9ff,#138bd1);border-radius:15px;box-shadow:0 5px 10px rgba(24,115,174,.18)}
.forecast-badge svg{width:33px;height:33px;color:#f1faff}
.forecast-badge.is-weather-img{background:transparent;box-shadow:none}
.forecast-badge.is-weather-img img{display:block;width:44px;height:44px;object-fit:contain}
.forecast-title>div:nth-child(2){min-width:0}
.forecast-title h2{margin:0;color:var(--ink);font-size:clamp(15px,4.1vw,19px);font-weight:800;letter-spacing:-.45px;white-space:nowrap}
.forecast-title p{margin:2px 0 0;color:var(--ink-muted);font-size:11px}
.forecast-day{margin-left:auto;flex:0 0 32px;display:grid;place-items:center;height:32px;border-radius:50%;border:1px solid var(--panel-border);background:rgba(243,250,255,.63);font-size:25px;color:#235e95}
.forecast-prose{font-size:12px;line-height:1.48;margin:12px 2px;color:var(--ink)}
.forecast-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
.forecast-stat-row>div{min-width:0;border:1px solid var(--tile-border);border-radius:14px;background:var(--tile);text-align:center;padding:9px 4px;min-height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.forecast-stat-row small{font-size:clamp(8px,2.2vw,10px);line-height:1.2;color:var(--ink-muted)}
.forecast-stat-row strong{font-size:clamp(12px,3.3vw,16px);line-height:1.15;font-weight:800;margin-top:5px;color:var(--ink);white-space:nowrap}
.hourly-section{margin:0 -12px;padding:11px 12px 13px;border-top:1px solid rgba(255,255,255,.85);background:rgba(245,251,255,.19)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.section-heading h2{margin:0;font-size:19px;letter-spacing:-.5px;line-height:1.22;color:var(--ink)}
.hourly-section .section-heading h2{font-size:16px}
.hourly-arrow{display:grid;place-items:center;width:29px;height:29px;background:rgba(243,250,255,.66);border:1px solid var(--panel-border);color:#1b5c93;border-radius:50%;font-size:21px}
.hourly-track{display:flex;gap:5px;overflow-x:auto;padding:0 0 4px;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none}
.hourly-track::-webkit-scrollbar{display:none}
.hour-chip{flex:0 0 48px;min-width:48px;scroll-snap-align:start;border-radius:14px;padding:7px 2px 6px;text-align:center;background:var(--tile);border:1px solid var(--tile-border);color:var(--ink)}
.hour-chip time{display:block;font-size:9px;color:var(--ink)}.hour-chip svg{display:block;height:30px;width:30px;color:#5baddf;margin:5px auto 4px}.hour-chip b{display:block;font-size:13px;color:var(--ink);line-height:1.2}.hour-chip small{display:block;font-size:7px;color:var(--ink-muted);margin-top:2px}
.forecast-more{display:none}
.shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:13px 0 0}
.shortcut-grid a{min-width:0;min-height:58px;padding:7px 6px;display:flex;align-items:center;gap:5px;background:linear-gradient(135deg,rgba(246,252,255,.81),rgba(207,230,252,.86));border:1px solid rgba(255,255,255,.97);border-radius:16px;box-shadow:var(--shadow);color:var(--ink)}
.shortcut-symbol{width:30px;height:32px;flex:0 0 30px;display:grid;place-items:center;background:rgba(120,209,248,.29);border-radius:10px;color:#1578b8}
.shortcut-symbol svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.shortcut-grid a:nth-child(3n) .shortcut-symbol{background:rgba(168,171,241,.23);color:#516bc6}
.shortcut-grid strong{font-size:clamp(9px,2.65vw,12px);line-height:1.12;letter-spacing:-.25px;font-weight:780;overflow-wrap:break-word}
.shortcut-chevron{margin-left:auto;color:#367aac;font-size:19px;line-height:1}
.highlights{display:none}
.charts{margin-top:19px}
.charts .section-heading{margin:0 2px 9px}.charts .section-heading>span{display:none}
.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chart-card{min-width:0;padding:11px 9px 4px;background:var(--graph-bg);border:1px solid var(--panel-border);border-radius:17px;box-shadow:var(--shadow);color:var(--ink)}
.chart-title{display:flex;justify-content:space-between;gap:4px;align-items:center;font-size:12px;font-weight:770;color:var(--ink)}.chart-title strong{font-size:11px;color:var(--ink);white-space:nowrap}
.chart-card canvas{width:100%;height:91px;display:block;margin:4px auto 0}
.home-bottom{display:flex;justify-content:space-between;gap:6px;font-size:10px;color:var(--ink-muted);padding:20px 4px 6px}.home-bottom a{color:#125a9e}
.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(8px + env(safe-area-inset-bottom));z-index:50;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;width:min(calc(100% - 22px),438px);height:69px;padding:6px 7px;background:var(--nav-bg);border:1px solid rgba(255,255,255,.88);border-radius:30px;box-shadow:0 9px 26px rgba(17,86,143,.20);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.nav-tab{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:24px;color:var(--nav-ink);font-size:10px;font-weight:600}
.nav-tab.active{color:#fff;background:linear-gradient(145deg,#169bdf,#03579b);box-shadow:0 5px 10px rgba(7,99,161,.18)}
.nav-ico{width:24px;height:24px;display:grid;place-items:center}.nav-ico svg{height:22px;width:22px;stroke:currentColor;fill:none;stroke-width:1.95;stroke-linejoin:round;stroke-linecap:round}
.secondary-screen{padding-top:9px}.screen-heading{padding:16px 6px 21px;color:#fff;text-shadow:0 2px 7px rgba(0,60,105,.11)}
.screen-heading .eyebrow{font-size:10px;font-weight:850;letter-spacing:1.5px;color:#e9f9ff}
.screen-heading h1{font-size:26px;letter-spacing:-.7px;margin:8px 0 8px;color:#fff;line-height:1.18}
.screen-heading p{margin:0;font-size:12px;line-height:1.5;color:#e7f5ff}
.nav-grid{display:grid;gap:10px}.nav-grid a{display:flex;align-items:center;justify-content:space-between;min-height:66px;padding:15px 17px;border:1px solid var(--panel-border);border-radius:19px;background:var(--panel);color:var(--ink);font-size:14px;font-weight:700;box-shadow:var(--shadow)}.nav-grid b{color:#1e83c0;font-size:23px}
.secondary-screen .forecast-card{margin-bottom:14px}.secondary-screen #chartsMirror{margin-top:19px}.big-external{display:block;text-align:center;background:linear-gradient(140deg,#158bd3,#02589a);border-radius:18px;padding:15px;color:#fff;margin-top:16px;font-weight:700;font-size:13px}
.detail-panel{padding-top:14px}.detail-panel::before{content:attr(data-title);display:block;color:#fff;font-weight:800;font-size:24px;margin:12px 4px 19px}
.section-card{overflow:hidden;margin-bottom:13px;background:var(--panel);border:1px solid var(--panel-border);border-radius:18px;color:var(--ink);box-shadow:var(--shadow)}
.section-card h2{padding:14px 15px;margin:0;border-bottom:1px solid var(--stroke);font-size:15px;color:var(--ink)}
.metric-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 15px;font-size:12px;border-bottom:1px solid var(--stroke);color:var(--ink-muted)}.metric-row:last-child{border-bottom:0}.metric-row strong{color:var(--ink);font-size:12px;text-align:right;max-width:60%;overflow-wrap:anywhere}.metric-row small{font-size:10px;font-weight:500;display:block;color:var(--ink-muted);padding-top:2px}.section-card.about-card p{padding:0 15px;font-size:12px;line-height:1.6;color:var(--ink-muted)}
/* Dark style has its own complete palette, not inverted white cards. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e9f7ff;--ink-muted:#b9d7ec;--page:#0a2544;--panel:rgba(20,60,99,.94);--panel-border:rgba(149,201,239,.36);--tile:rgba(59,112,151,.38);--tile-border:rgba(176,220,247,.24);--shadow:0 10px 26px rgba(0,10,30,.25);--detail:#12395b;--stroke:rgba(148,204,240,.2);--nav-bg:rgba(10,38,69,.96);--nav-ink:#b7d9f0;--graph-bg:rgba(19,58,96,.92);background:#061d37}
[data-theme="dark"] body{background:linear-gradient(180deg,#041c37 0,#0b426e 440px,#0c3c66 700px,#082443 1040px,#061b35 100%)}
[data-theme="dark"] .app-shell::before{opacity:.43;filter:brightness(.73) saturate(.72)}
[data-theme="dark"] .forecast-card{backdrop-filter:blur(11px)}
[data-theme="dark"] .shortcut-grid a{background:linear-gradient(130deg,rgba(28,76,121,.94),rgba(16,57,100,.96));border-color:var(--panel-border)}
[data-theme="dark"] .shortcut-symbol{background:rgba(88,177,223,.23);color:#a3e1ff}
[data-theme="dark"] .shortcut-grid a:nth-child(3n) .shortcut-symbol{background:rgba(156,167,243,.2);color:#b2c5ff}
[data-theme="dark"] .forecast-day,[data-theme="dark"] .hourly-arrow{background:rgba(35,100,144,.75);color:#d4f3ff}
[data-theme="dark"] .hourly-section{background:rgba(15,51,89,.45);border-color:rgba(163,212,246,.25)}
[data-theme="dark"] .nav-grid b,[data-theme="dark"] .shortcut-chevron{color:#99d9ff}
[data-theme="dark"] .home-bottom a{color:#b2e5ff}
[data-theme="dark"] .status-pill.aqi{color:#614114}
[data-theme="dark"] .section-card h2{background:rgba(68,131,177,.17)}
@media(max-width:375px){.app-header{padding:13px 10px 8px;min-height:77px}.brand{gap:7px}.brand-icon{width:41px;height:41px;border-radius:13px}.brand-icon svg{width:33px}.brand strong{font-size:17px}.brand span{font-size:9px}.header-actions{gap:4px}.header-actions button,.round-action{width:34px;height:34px}.screen{padding-left:10px;padding-right:10px}.hero-core{grid-template-columns:25% 39% 36%;min-height:174px}.big-temp{font-size:clamp(43px,12.5vw,53px)}.astro-label b{font-size:13px}.hero-metrics{gap:5px}.mini-metric>span:not(.metric-icon){font-size:8px}.mini-metric b{font-size:11.5px}.forecast-title h2{font-size:15px}.shortcut-grid{gap:5px}.shortcut-grid a{padding:5px 4px}.shortcut-symbol{width:26px;height:28px;flex-basis:26px}.shortcut-symbol svg{width:18px;height:18px}.shortcut-grid strong{font-size:9px}.hour-chip{flex-basis:46px;min-width:46px}}
@media(max-width:335px){.brand strong{font-size:15px}.brand span{font-size:8px}.header-actions button,.round-action{width:31px;height:31px}.hero-core{grid-template-columns:24% 39% 37%}.big-temp{font-size:42px}.feels{font-size:8px;padding:5px 4px}.today-range{font-size:8px}.mini-metric b{font-size:10px}.mini-metric>span:not(.metric-icon){font-size:7px}.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shortcut-grid strong{font-size:11px}}
@media(min-width:461px){body{background-color:#a9d6f4}.app-shell{box-shadow:0 0 50px rgba(0,43,100,.23)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* V8: referenční kompozice 928×1648 přenesená na skutečný viewport telefonu.
   Změny jsou omezeny na prezentační vrstvu, PHP a meteorologické datové zdroje zůstávají. */
:root{--ink:#09295a;--ink-muted:#355a82;--panel:rgba(209,235,255,.89);--panel-border:rgba(255,255,255,.92);--tile:rgba(232,246,255,.58);--tile-border:rgba(255,255,255,.76);--nav-bg:rgba(221,242,255,.86);--graph-bg:rgba(234,246,255,.81);--shadow:0 5px 14px rgba(29,92,157,.12)}
html{background:#a8d5f5}
body{background:linear-gradient(180deg,#065489 0%,#3b9bcc 32%,#a4d7f4 60%,#c4e7fc 100%)}
.app-shell{padding:0 0 calc(15px + env(safe-area-inset-bottom));min-height:100vh;max-width:460px;overflow:hidden}
.app-shell::before{height:860px;background-image:url('sky-v8.jpg');background-position:50% 0;background-size:100% 100%;opacity:1;filter:none}
.app-header{min-height:61px;padding:10px 12px 3px;gap:7px}
.brand{gap:9px}
.brand-icon{width:44px;height:44px;border-radius:13px}
.brand-icon svg{height:36px;width:36px}
.brand strong{font-size:clamp(16px,4.9vw,21px);letter-spacing:-.55px;line-height:1.06}
.brand span{font-size:clamp(8px,2.48vw,10px)}
.header-actions{gap:6px}
.header-actions button,.round-action{width:33px;height:33px}
.header-actions svg,.header-actions button svg,.round-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.screen{padding-left:10px;padding-right:10px;padding-bottom:10px}
.weather-hero{isolation:isolate}
.hero-top{height:1px;overflow:visible;position:relative}
.hero-top .live-tag{display:none}
.hero-update{position:absolute;right:2px;top:-1px;font-size:7px;opacity:.67;white-space:nowrap}
.hero-core{grid-template-columns:25% 34% 41%;min-height:114px;padding:7px 0 0;align-items:center}
.hero-weather{align-items:center;justify-content:center;min-width:0}
.weather-symbol svg{width:min(100%,100px);filter:drop-shadow(0 8px 10px rgba(0,33,73,.19))}
.hero-readings{padding:0 2px 0 0;align-self:center}
.big-temp{font-size:clamp(46px,12.6vw,60px);font-weight:760;line-height:1;letter-spacing:-2.6px;text-shadow:0 4px 12px rgba(11,49,100,.14)}
.big-temp sup{font-size:.34em;margin:3px 0 0 1px}
.weather-caption{font-size:clamp(12px,3.8vw,16px);font-weight:740;margin:1px 0 5px}
.feels{font-size:clamp(7.5px,2.25vw,10px);padding:4px 5px;gap:3px;letter-spacing:-.06px}
.feels b{font-size:1.08em}
.today-range{font-size:clamp(8px,2.4vw,10px);margin-top:5px;gap:2px}
.range-sep{margin:0 3px}
.sunline{height:105px;align-self:center;margin-left:1px;border-left:1px solid rgba(232,248,255,.36)}
.sun-curve{top:-2px;left:4%;height:56px;width:92%;overflow:visible}
.astro-label{top:58px;gap:1px}
.astro-label svg{height:20px;width:23px}
.astro-label small{font-size:clamp(8px,2.3vw,10px);line-height:1.1}
.astro-label b{font-size:clamp(12px,3.5vw,16px);line-height:1.08}
.hero-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:4px}
.mini-metric{min-height:48px;border-radius:13px;padding:5px 4px;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:3px;row-gap:1px;text-align:left;align-content:center;justify-items:stretch;box-shadow:inset 0 1px rgba(255,255,255,.19),0 3px 8px rgba(0,60,117,.10)}
.metric-icon{width:24px;height:26px;grid-row:1/3;grid-column:1;align-self:center}
.metric-icon svg{width:22px;height:22px}
.mini-metric>span:not(.metric-icon){grid-column:2;grid-row:1;font-size:clamp(7px,1.9vw,9px);font-weight:500;white-space:normal;letter-spacing:-.12px;line-height:1.07}
.mini-metric b{grid-column:2;grid-row:2;font-size:clamp(10px,2.8vw,13px);font-weight:780;letter-spacing:-.2px;line-height:1.07;white-space:nowrap}
.mini-metric small{font-size:.7em}
.quick-status{margin:8px 2px 10px;gap:5px}
.status-pill{padding:5px 9px;font-size:clamp(9px,2.6vw,11px)}
.status-pill.bio{background:#dcffeb}
.status-pill.aqi{background:#ffe093}
.forecast-card{background:rgba(218,240,255,.87);border:1.4px solid rgba(255,255,255,.9);border-radius:20px;padding:9px 9px 0;box-shadow:0 6px 18px rgba(47,102,157,.16)}
.forecast-title{gap:8px}
.forecast-badge{width:38px;height:38px;flex-basis:38px;border-radius:12px}
.forecast-badge svg{height:30px;width:30px}
.forecast-badge.is-weather-img img{height:38px;width:38px}
.forecast-title h2{font-size:clamp(14px,4vw,18px);letter-spacing:-.35px}
.forecast-title p{font-size:clamp(9px,2.7vw,11px);margin-top:1px}
.forecast-day{width:27px;height:27px;flex-basis:27px;font-size:21px}
.forecast-prose{font-size:clamp(10px,2.7vw,12px);line-height:1.35;margin:8px 1px;color:#133960}
.forecast-stat-row{gap:5px;margin-bottom:8px}
.forecast-stat-row>div{min-height:45px;padding:5px 4px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:3px;text-align:left;border-radius:12px;background:rgba(244,251,255,.46)}
.forecast-stat-row>div>span:last-child{min-width:0;display:flex;flex-direction:column}
.forecast-stat-row small{font-size:clamp(7px,2vw,9px);line-height:1.1;color:#44648b}
.forecast-stat-row strong{font-size:clamp(10px,2.9vw,13px);line-height:1.12;margin-top:4px;white-space:nowrap;color:#102e5c}
.forecast-stat-icon{flex:0 0 20px;display:grid;place-items:center;color:#0086cf}
.forecast-stat-icon svg{width:19px;height:23px}
.hourly-section{margin:0 -9px;padding:7px 9px 9px;background:rgba(243,251,255,.16)}
.hourly-section .section-heading{margin-bottom:6px}
.hourly-section .section-heading h2{font-size:clamp(12px,3.2vw,15px)}
.hourly-arrow{width:26px;height:26px;font-size:19px}
.hourly-track{gap:4px;padding-bottom:1px}
.hour-chip{min-width:0;flex:0 0 calc((100% - 28px)/8);padding:6px 1px 5px;border-radius:13px;scroll-snap-align:none}
.hour-chip time{font-size:clamp(7px,1.8vw,9px)}
.hour-chip svg{height:24px;width:24px;margin:3px auto 2px}
.hour-chip b{font-size:clamp(10px,2.8vw,13px)}
.hour-chip small{display:none}
.shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:9px;gap:6px}
.shortcut-grid a{min-height:43px;padding:5px 5px;border-radius:13px;gap:5px}
.shortcut-symbol{width:28px;height:29px;flex-basis:28px;border-radius:9px}
.shortcut-symbol svg{width:18px;height:18px}
.shortcut-grid strong{font-size:clamp(9px,2.55vw,11px);line-height:1.05;letter-spacing:-.16px}
.shortcut-chevron{font-size:17px}
.charts{margin-top:12px}
.charts .section-heading{margin:0 1px 7px}
.charts .section-heading h2{font-size:17px}
.chart-grid{gap:6px}
.chart-card{padding:8px 7px 3px;border-radius:13px}
.chart-title{font-size:11px}
.chart-title strong{font-size:10px}
.chart-card canvas{height:73px;margin:3px auto 0}
.home-bottom{padding:13px 3px 0;font-size:9px}
.bottom-nav{position:relative;left:auto;transform:none;bottom:auto;height:61px;margin:15px auto 0;width:calc(100% - 20px);padding:5px 6px;border-radius:26px;box-shadow:0 8px 18px rgba(23,79,135,.16)}
.nav-tab{font-size:10px;gap:3px;border-radius:21px}
.nav-ico svg{width:21px;height:21px}
/* The same atmospheric glass treatment remains readable on all secondary screens. */
.secondary-screen{padding-top:7px}.screen-heading{padding:14px 3px 16px}.screen-heading h1{font-size:23px}.screen-heading p{font-size:12px}
.section-card,.nav-grid a{background:rgba(234,246,255,.86);border-color:rgba(255,255,255,.90)}
html[data-theme="dark"]{--ink:#ebf7ff;--ink-muted:#b8d9f2;--panel:rgba(20,63,103,.94);--panel-border:rgba(166,212,240,.42);--tile:rgba(59,112,151,.38);--tile-border:rgba(176,220,247,.25);--nav-bg:rgba(10,38,68,.92);--graph-bg:rgba(17,56,91,.88)}
[data-theme="dark"] body{background:linear-gradient(180deg,#061e39 0%,#0b426b 33%,#112f58 67%,#081d36 100%)}
[data-theme="dark"] .app-shell::before{opacity:.34;filter:brightness(.65) saturate(.8)}
[data-theme="dark"] .forecast-card{background:rgba(20,60,101,.91)}
[data-theme="dark"] .forecast-prose,[data-theme="dark"] .forecast-stat-row strong{color:#eef9ff}
[data-theme="dark"] .forecast-stat-row small{color:#b1d8f5}
[data-theme="dark"] .forecast-stat-row>div{background:rgba(91,143,180,.19)}
[data-theme="dark"] .section-card,[data-theme="dark"] .nav-grid a{background:rgba(23,65,103,.95);border-color:var(--panel-border)}
[data-theme="dark"] .shortcut-grid a{background:linear-gradient(130deg,rgba(34,80,123,.9),rgba(20,60,101,.92));border-color:var(--panel-border)}
[data-theme="dark"] .hourly-section{background:rgba(8,47,85,.34)}
@media(max-width:375px){
 .app-header{min-height:57px;padding:9px 8px 3px}
 .brand-icon{width:40px;height:40px}.brand-icon svg{width:33px;height:33px}
 .brand strong{font-size:clamp(15px,4.9vw,18px)}.brand span{font-size:clamp(7px,2.6vw,10px)}
 .header-actions button,.round-action{width:30px;height:30px}
 .screen{padding-left:8px;padding-right:8px}
 .hero-core{min-height:109px;grid-template-columns:25% 34% 41%}
 .big-temp{font-size:clamp(39px,12.4vw,47px)}
 .weather-caption{font-size:12px}
 .feels{font-size:clamp(7px,2.3vw,9px);padding:3px 4px}
 .today-range{font-size:clamp(7.5px,2.3vw,9px)}
 .sunline{height:100px}.sun-curve{height:53px}.astro-label{top:57px}
 .hero-metrics{gap:4px}.mini-metric{min-height:45px;padding:4px 2px;grid-template-columns:20px minmax(0,1fr)}
 .metric-icon{width:20px}.metric-icon svg{width:19px}
 .mini-metric>span:not(.metric-icon){font-size:7px}.mini-metric b{font-size:10px}
 .forecast-title h2{font-size:clamp(13px,4vw,16px)}
 .forecast-stat-icon{flex-basis:16px}.forecast-stat-icon svg{width:16px}
 .forecast-stat-row small{font-size:7px}.forecast-stat-row strong{font-size:10px}
 .shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shortcut-grid strong{font-size:9px}
 .shortcut-symbol{width:24px;flex-basis:24px}.shortcut-symbol svg{width:17px}
 .hour-chip{flex-basis:calc((100% - 28px)/8)}
}
@media(max-width:335px){
 .hero-core{grid-template-columns:23% 37% 40%}.hero-readings{padding:0}.weather-symbol svg{width:82px}
 .big-temp{font-size:39px}.feels{font-size:7px}.astro-label b{font-size:12px}
 .forecast-stat-icon{display:none}.forecast-stat-row>div{text-align:center;justify-content:center}
 .shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shortcut-grid strong{font-size:8.5px}
}
@media(min-width:461px){.app-shell{box-shadow:0 0 40px rgba(0,43,100,.20)}}
/* Finální výškové doladění vůči schválené referenci. */
.app-header{min-height:58px;padding-top:8px;padding-bottom:2px}
.hero-core{min-height:107px;padding-top:6px}
.hero-metrics{margin-top:1px}
.mini-metric{min-height:44px}
.quick-status{margin:6px 2px 8px}
.forecast-card{padding-top:8px}
.forecast-badge{width:36px;height:36px;flex-basis:36px}
.forecast-badge.is-weather-img img{height:36px;width:36px}
.forecast-prose{margin:6px 1px;font-size:11px;line-height:1.28}
#home .forecast-prose{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.forecast-stat-row{margin-bottom:5px}
.forecast-stat-row>div{min-height:40px;padding:4px}
.hourly-section{padding-top:5px;padding-bottom:6px}
.hourly-section .section-heading{margin-bottom:4px}
.hourly-arrow{height:23px;width:23px}
.hour-chip{padding:4px 1px 4px}
.hour-chip svg{height:21px;width:21px;margin:2px auto}
.shortcut-grid{margin-top:8px}
#home .chart-card:nth-child(n+3){display:none}
#measurements .chart-card:nth-child(n+3){display:block}
#measurements .charts{margin-top:15px}
#home .home-bottom{display:none}
.bottom-nav{margin-top:14px}
@media(max-width:375px){.hero-core{min-height:104px}.mini-metric{min-height:44px}.app-header{min-height:56px}}
/* Navigace leží vždy u spodního okraje krátkých obrazovek, ale nikdy nepřekryje obsah. */
.app-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.app-shell>main{flex:1 0 auto}
.bottom-nav{margin-bottom:10px}
.hero-weather{transform:translate(4px,-3px)}


/* V11 – přehlednější hlavní panel: zachování čtyř karet v jedné řadě,
   ale každá má vlastní prostor pro ikonu, popis a hodnotu. */
.hero-top{height:12px;overflow:visible}
.hero-update{top:1px;font-size:8px}
.hero-core{grid-template-columns:22% 41% 37%;min-height:169px;padding:12px 0 10px;gap:0}
.weather-symbol svg{width:min(100%,79px)}
.hero-weather{transform:none}
.hero-readings{padding:0 4px 0 6px}
.big-temp{font-size:clamp(46px,13vw,62px);line-height:1.06;letter-spacing:-2.9px}
.weather-caption{font-size:clamp(14px,3.9vw,18px);line-height:1.2;margin:7px 0 10px}
.feels{padding:6px 7px;font-size:clamp(8.5px,2.45vw,11px)}
.today-range{font-size:clamp(9px,2.7vw,11px);margin-top:12px;gap:3px}
.sunline{height:130px}
.sun-curve{top:1px;height:69px;left:4%;width:92%}
.astro-label{top:76px;gap:2px}
.astro-label svg{width:25px;height:23px}
.astro-label small{font-size:clamp(9px,2.5vw,11px)}
.astro-label b{font-size:clamp(14px,3.8vw,17px)}
.hero-metrics{gap:7px;margin-top:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
.mini-metric{min-height:74px;padding:7px 2px 8px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center}
.metric-icon{flex:none;width:26px;height:25px}
.metric-icon svg{height:25px;width:25px}
.mini-metric>span:not(.metric-icon){font-size:clamp(8px,2.2vw,10px);line-height:1.1;font-weight:650;white-space:normal}
.mini-metric b{font-size:clamp(11px,3.35vw,15px);letter-spacing:-.3px;white-space:nowrap;line-height:1.17}
.mini-metric small{font-size:.7em}
.quick-status{margin:10px 2px 12px}
@media(max-width:375px){
 .hero-core{min-height:160px;grid-template-columns:23% 40% 37%;padding-top:10px}
 .big-temp{font-size:clamp(42px,12.8vw,52px)}
 .weather-caption{font-size:clamp(12px,3.8vw,15px);margin:6px 0 9px}
 .feels{font-size:clamp(8px,2.35vw,10px);padding:5px}
 .today-range{font-size:clamp(8px,2.5vw,10px);margin-top:10px}
 .sunline{height:121px}
 .sun-curve{height:62px}
 .astro-label{top:70px}
 .astro-label b{font-size:13px}
 .hero-metrics{gap:5px}
 .mini-metric{min-height:70px;padding:6px 1px}
 .metric-icon{width:23px;height:23px}.metric-icon svg{width:23px;height:23px}
 .mini-metric>span:not(.metric-icon){font-size:8px}
 .mini-metric b{font-size:clamp(10px,3.15vw,12px)}
}
@media(max-width:335px){
 .hero-core{min-height:154px;grid-template-columns:23% 42% 35%}
 .big-temp{font-size:43px}
 .weather-symbol svg{width:65px}
 .feels{font-size:7.7px}
 .mini-metric b{font-size:10px}
}

/* V10 – four primary destinations; detailed DOMACAST is accessed from its card. */
.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
.brand{cursor:pointer;text-decoration:none;color:#fff;border-radius:10px}
.brand:focus-visible{outline:2px solid #fff;outline-offset:4px}
#home #forecastPreview{cursor:pointer}
#home #forecastPreview:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* V11: skutené přepínání Slunce a Měsíce na společné SVG dráze. */
#astroOrb .astro-moon{display:none}
body.weather-night #astroOrb .astro-moon{display:inline}
body.weather-night #astroOrb .astro-sun{display:none}

/* V13: klasické piktogramy východu/západu a přehledné nové grafy. */
.astro-label svg{width:31px;height:27px;stroke-width:0;color:#ffd438;filter:drop-shadow(0 1px 2px rgba(0,40,90,.26))}
.chart-card .chart-note{color:var(--ink-muted);font-size:9px;line-height:1.2;margin:0 1px 4px;min-height:11px}
#measurements .chart-card canvas{height:88px}
#measurements .chart-grid{row-gap:8px}
/* Na úvodní stránce jsou nadále jen dvě křivky. */
#home .chart-card:nth-child(n+3){display:none}
#measurements .chart-card:nth-child(n+3){display:block}
@media(max-width:350px){.chart-title{font-size:10px}.chart-title strong{font-size:9px}}


/* V14 – adaptivní atmosféra. Výběr podle aktuálního WMO kódu Open-Meteo.
   Vzory jsou lokální, nepoužívají externí obrázky nebo animace. */
body{--sky-image:url('sky-partly-v14.jpg');--sky-top:#125688;--sky-mid:#67b3db;--sky-bottom:#cbeaff;background:linear-gradient(180deg,var(--sky-top) 0%,var(--sky-mid) 34%,var(--sky-bottom) 75%,#d1edff 100%)}
body[data-sky="clear"]{--sky-image:url('sky-clear-v14.jpg');--sky-top:#04578d;--sky-mid:#62b9e3;--sky-bottom:#d0ecfd}
body[data-sky="partly"]{--sky-image:url('sky-partly-v14.jpg');--sky-top:#125688;--sky-mid:#67b3db;--sky-bottom:#cbeaff}
body[data-sky="overcast"]{--sky-image:url('sky-overcast-v14.jpg');--sky-top:#275b83;--sky-mid:#8bc1e0;--sky-bottom:#d3eafa}
body[data-sky="rain"]{--sky-image:url('sky-rain-v14.jpg');--sky-top:#0a4777;--sky-mid:#63accf;--sky-bottom:#c8e5f6}
body[data-sky="snow"]{--sky-image:url('sky-snow-v14.jpg');--sky-top:#2a5c89;--sky-mid:#a1cadd;--sky-bottom:#e0f0f7}
body[data-sky="fog"]{--sky-image:url('sky-fog-v14.jpg');--sky-top:#285c87;--sky-mid:#b6d7e8;--sky-bottom:#e0eff7}
body[data-sky="storm"]{--sky-image:url('sky-storm-v14.jpg');--sky-top:#081e41;--sky-mid:#4583ad;--sky-bottom:#c0dce9}
.app-shell::before{background-image:var(--sky-image);background-size:100% 100%;background-repeat:no-repeat;background-position:center top;opacity:1;filter:none;transition:background-image .1s}
/* Noční atmosféra nezávisí na ručním světlém/tmavém režimu. */
body.weather-night{--sky-top:#071d3c;--sky-mid:#194b7b;--sky-bottom:#9bc7df}
body.weather-night .app-shell::before{background-image:linear-gradient(180deg,rgba(0,11,40,.72) 0%,rgba(4,30,66,.52) 37%,rgba(15,65,107,.17) 77%,transparent 100%),var(--sky-image)}
body.weather-night[data-sky="clear"] .app-shell::before{background-image:url('sky-night-v14.jpg')}
/* Ruční tmavý režim zachovává tmavé meteorologické karty z V13 a přizpůsobuje oblohu. */
html[data-theme="dark"] body{background:linear-gradient(180deg,#051c36 0%,#113e66 36%,#0d3258 70%,#081e37 100%)}
html[data-theme="dark"] .app-shell::before{opacity:.63;filter:brightness(.70) saturate(.72)}
html[data-theme="dark"] body.weather-night .app-shell::before{opacity:.85;filter:brightness(.85) saturate(.75)}
/* Původní PNG ikony, které současný desktopový web používá také v astronomii. */
.astro-label .astro-original-icon{width:30px;height:23px;display:block;object-fit:contain;margin:0 auto 1px;filter:drop-shadow(0 1px 3px rgba(255,187,30,.18))}
@media(max-width:375px){.astro-label .astro-original-icon{width:27px;height:21px}}

/* V15 – současný UV index na hlavní obrazovce a samostatné doplňkové senzory. */
.quick-status{display:flex;justify-content:space-between;gap:5px;align-items:center}
.quick-status .status-pill{padding:5px clamp(5px,1.9vw,9px);font-size:clamp(9px,2.45vw,11px);min-width:0}
.status-pill.uv{display:inline-flex;justify-content:center;align-items:center;gap:3px;background:rgba(239,226,255,.93);border:1px solid rgba(255,255,255,.78);color:#58318c;box-shadow:0 2px 8px rgba(47,58,143,.10);text-decoration:none}
.status-pill.uv b{font-size:1.1em;font-variant-numeric:tabular-nums}
.status-pill.uv:focus-visible,.sensor-tile:focus-visible{outline:3px solid #ffcc50;outline-offset:3px}
html[data-theme="dark"] .status-pill.uv{background:rgba(67,48,110,.95);border-color:rgba(185,160,228,.48);color:#f1deff}
.nav-tab.sensors-tab>span:last-child{font-size:9px;line-height:1.06;text-align:center;max-width:76px}
.sensor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.sensor-tile{position:relative;min-width:0;min-height:166px;display:flex;flex-direction:column;gap:7px;padding:14px 13px 12px;text-decoration:none;color:var(--ink);background:var(--panel);border:1.5px solid var(--panel-border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}
.sensor-tile-icon{display:grid;place-items:center;width:40px;height:40px;background:rgba(107,194,237,.2);color:#168bd0;border-radius:13px}
.sensor-tile-icon svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.sensor-solar .sensor-tile-icon{background:rgba(255,205,99,.21);color:#e09a16}
.sensor-uv .sensor-tile-icon{background:rgba(170,129,228,.21);color:#9861cd}
.sensor-leaf .sensor-tile-icon{background:rgba(91,190,143,.22);color:#319c73}
.sensor-soil .sensor-tile-icon{background:rgba(160,144,119,.2);color:#9a785b}
.sensor-tile strong{font-size:14px;line-height:1.2;letter-spacing:-.2px}
.sensor-tile-note{font-size:11px;line-height:1.4;color:var(--ink-muted);min-height:30px}
.sensor-tile-value{margin-top:auto;font-size:23px;font-weight:800;letter-spacing:-.45px;line-height:1.12}
.sensor-tile-value small{font-size:12px;letter-spacing:0;font-weight:600}
.sensor-tile-action{font-size:11px;font-weight:700;color:#147fb6;margin-top:auto}
.sensor-tile-arrow{position:absolute;right:12px;top:12px;color:#3d97c7;font-size:22px;line-height:1}
.sensor-source-note{font-size:11px;line-height:1.5;color:#194d76;margin:15px 7px 5px;text-shadow:none}
html[data-theme="dark"] .sensor-tile{background:rgba(23,65,103,.95);border-color:var(--panel-border)}
html[data-theme="dark"] .sensor-tile-action{color:#a9e0ff}
html[data-theme="dark"] .sensor-source-note{color:#d5eeff}
@media(max-width:350px){.sensor-grid{gap:7px}.sensor-tile{padding:11px 10px;min-height:168px}.sensor-tile strong{font-size:12px}.sensor-tile-note{font-size:10px}.sensor-tile-value{font-size:20px}.nav-tab.sensors-tab>span:last-child{font-size:8.5px}.quick-status .status-pill{font-size:9px;padding:4px 5px}}

/* V17: aktualni vlhkost a teplota listoveho/pudniho senzoru ze sdilene vrstvy. */
.sensor-leaf,.sensor-soil{min-height:187px}
.sensor-tile-secondary{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 5px;font-size:10px;line-height:1.35;color:var(--ink-muted);margin-top:1px}
.sensor-tile-secondary b{font-size:12px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:350px){.sensor-leaf,.sensor-soil{min-height:187px}.sensor-tile-secondary{font-size:9px}.sensor-tile-secondary b{font-size:11px}}

/* V18 – srozumitelné ikony v předpovědi a UV pod sluneční dráhou. */
.forecast-stat-row .forecast-stat-icon svg{filter:drop-shadow(0 1px 1px rgba(16,80,128,.18))}
.forecast-stat-row .forecast-stat-icon{color:#1975b0}
.sunline{height:165px}
.hero-core{min-height:190px}
.astro-uv{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:5px 10px;border-radius:18px;border:1px solid rgba(238,249,255,.8);background:rgba(211,235,252,.26);box-shadow:inset 0 1px rgba(255,255,255,.12);color:#fff;font-size:clamp(9px,2.5vw,11px);font-weight:650;white-space:nowrap;text-decoration:none}
.astro-uv strong{font-size:1.1em;font-variant-numeric:tabular-nums}
.astro-uv:focus-visible{outline:2px solid #ffe47a;outline-offset:3px}
body.weather-night .astro-uv{display:none}
body.weather-night .sunline{height:130px}
body.weather-night .hero-core{min-height:169px}
@media(max-width:375px){.sunline{height:154px}.hero-core{min-height:184px}.astro-uv{padding:4px 7px}body.weather-night .sunline{height:121px}body.weather-night .hero-core{min-height:160px}}
@media(max-width:335px){.sunline{height:150px}.hero-core{min-height:180px}}
/* Třípolohové nastavení vzhledu: nabídka se zobrazí nad ostatním obsahem. */
.app-header{position:relative;z-index:20}
.theme-picker{position:relative}
.theme-menu[hidden]{display:none!important}
.theme-menu{position:absolute;z-index:50;right:-42px;top:calc(100% + 10px);width:220px;padding:9px;background:rgba(239,249,255,.98);border:1px solid rgba(255,255,255,.95);box-shadow:0 12px 30px rgba(5,45,95,.35);border-radius:17px;color:#173d68;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.theme-menu-heading{font-size:11px;letter-spacing:.3px;font-weight:800;color:#436382;padding:7px 9px 6px}
.header-actions .theme-menu button{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;height:auto;border:0;border-radius:11px;box-shadow:none;background:transparent;padding:9px 10px;margin:0;color:#16446e}
.theme-menu button>span:first-child{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:750;line-height:1.2}
.theme-menu button small{font-size:10px;font-weight:450;color:#526f89}
.theme-menu button .theme-check{opacity:0;color:#006dab;font-size:15px;font-weight:800}
.header-actions .theme-menu button[aria-pressed="true"]{background:#d3ecfc}
.theme-menu button[aria-pressed="true"] .theme-check{opacity:1}
.theme-menu button:focus-visible{outline:2px solid #197cc6;outline-offset:0}
html[data-theme="dark"] .theme-menu{background:rgba(14,49,83,.98);border-color:#5b90b5;color:#eaf8ff;box-shadow:0 12px 30px rgba(0,7,19,.6)}
html[data-theme="dark"] .theme-menu-heading{color:#b5d8ed}
html[data-theme="dark"] .header-actions .theme-menu button{color:#e9f8ff}
html[data-theme="dark"] .theme-menu button small{color:#b5d3e6}
html[data-theme="dark"] .header-actions .theme-menu button[aria-pressed="true"]{background:#205d91}
html[data-theme="dark"] .theme-menu button .theme-check{color:#a7e5ff}
@media(max-width:335px){.theme-menu{right:-40px;width:205px}}

/* V19: UV pod vrcholem sluneční dráhy (bez samostatné karty) a čitelná volba AUTO. */
.sunline{height:130px}
.hero-core{min-height:169px}
.astro-uv{
  position:absolute;
  top:52px;
  bottom:auto;
  left:50%;
  transform:translateX(-50%);
  display:inline-flex;
  gap:4px;
  align-items:baseline;
  justify-content:center;
  padding:0;
  margin:0;
  color:#fff;
  font-size:12px;
  font-weight:650;
  line-height:1.25;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-shadow:0 1px 4px rgba(0,40,85,.65);
  white-space:nowrap;
}
.astro-uv strong{font-size:12px;font-weight:850;color:#fff}
body.weather-night .astro-uv{display:none}
body.weather-night .sunline{height:130px}
body.weather-night .hero-core{min-height:169px}
#themeBtn .theme-auto-mark{
 display:block;
 font-family:inherit;
 font-size:10px;
 font-weight:850;
 letter-spacing:.3px;
 line-height:1;
 color:currentColor;
}
@media(max-width:375px){
 .sunline,body.weather-night .sunline{height:121px}
 .hero-core,body.weather-night .hero-core{min-height:160px}
 .astro-uv{top:47px;font-size:11px;gap:3px}
 .astro-uv strong{font-size:11px}
 #themeBtn .theme-auto-mark{font-size:9px;letter-spacing:0}
}
@media(max-width:335px){.sunline,body.weather-night .sunline{height:121px}.hero-core,body.weather-night .hero-core{min-height:160px}.astro-uv{top:45px}}

/* V20: podélná pilulka místo malého kruhu pro AUTO, sluneční paprsky v astronomickém oblouku. */
.header-actions #themeBtn{
  width:65px; min-width:65px; height:37px; padding:0 9px;
  border-radius:999px; display:flex; align-items:center; justify-content:center;
  white-space:nowrap; overflow:hidden; box-sizing:border-box;
  font-size:14px; line-height:1;
}
.header-actions #themeBtn .theme-auto-mark{font-size:11px;font-weight:850;letter-spacing:.7px;line-height:1;white-space:nowrap}
.header-actions #themeBtn svg{width:21px;height:21px;flex:none}
#astroOrb .astro-sun{pointer-events:none}
@media(max-width:375px){
  .header-actions #themeBtn{width:57px;min-width:57px;height:31px;padding:0 5px}
  .header-actions #themeBtn .theme-auto-mark{font-size:10px;letter-spacing:.3px}
  .header-actions #themeBtn svg{width:19px;height:19px}
  .app-header{gap:5px}
  .brand{gap:7px}
  .header-actions{gap:5px}
}
@media(max-width:335px){
  .header-actions #themeBtn{width:54px;min-width:54px}
  .brand strong{font-size:14px;letter-spacing:-.45px}
  .brand span{font-size:7.5px}
  .brand-icon{width:36px;height:36px}
  .brand-icon svg{width:29px;height:29px}
}

/* V21: kamerový náhled a samostatná obrazovka, světlý/tmavý režim. */
.camera-home{margin:13px 0 16px}
.camera-home-link,.camera-page-card{display:block;background:var(--panel);border:1.5px solid var(--panel-border);box-shadow:var(--shadow);border-radius:22px;overflow:hidden;color:var(--ink)}
.camera-home-link{text-decoration:none}
.camera-home-link:focus-visible,.camera-refresh:focus-visible{outline:3px solid #f4c54e;outline-offset:3px}
.camera-heading{display:flex;align-items:center;gap:10px;padding:12px 13px 11px}
.camera-glyph{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#43c8f6,#0969b4);box-shadow:0 3px 8px rgba(13,109,179,.24);color:white}
.camera-glyph svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.camera-heading>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.camera-heading strong{font-size:15px;letter-spacing:-.25px}
.camera-heading small{font-size:11px;color:var(--ink-muted)}
.camera-picture{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:rgba(76,128,160,.17)}
.camera-picture img{display:block;object-fit:cover;object-position:center;width:100%;height:100%}
.camera-picture img[hidden],.camera-no-photo[hidden],.camera-video[hidden]{display:none!important}
.camera-no-photo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;background:linear-gradient(145deg,rgba(124,179,212,.2),rgba(208,232,249,.55));padding:16px;color:var(--ink-muted);font-size:12px}
.camera-empty-icon{display:grid;place-items:center;width:45px;height:45px;border:1.5px solid rgba(99,169,215,.65);border-radius:50%;font-size:38px;line-height:1;color:#4a9bca}
.camera-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 13px 12px;font-size:11px;color:var(--ink-muted)}
.camera-caption>span:last-child{white-space:nowrap;color:#1678af;font-weight:800}
.camera-page-card{padding:13px;margin-bottom:14px}
.camera-page-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:11px}
.camera-page-head h2{font-size:16px;margin:0}
.camera-state-pill,.camera-video-status{font-size:10px;font-weight:750;border-radius:999px;padding:6px 9px;background:rgba(115,190,235,.2);color:var(--ink)}
.camera-picture-large{border-radius:14px}
.camera-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink-muted);font-size:11px;padding-top:10px}
.camera-refresh{appearance:none;border:1px solid var(--panel-border);border-radius:12px;background:rgba(101,180,235,.20);padding:9px 12px;color:var(--ink);font-size:11px;font-weight:800}
.camera-video{display:block;width:100%;aspect-ratio:16/9;border-radius:14px;background:#051c31}
.camera-video-empty{display:flex;align-items:center;justify-content:center;text-align:center;min-height:130px;border-radius:14px;background:rgba(103,162,208,.17);color:var(--ink-muted);font-size:12px;padding:15px}
.camera-video-empty[hidden]{display:none!important}
.camera-smallprint,.camera-disclaimer{color:var(--ink-muted);font-size:11px;line-height:1.5;margin:10px 3px 2px}
.camera-disclaimer{padding:0 4px 8px}
html[data-theme="dark"] .camera-home-link,html[data-theme="dark"] .camera-page-card{background:rgba(20,60,101,.93)}
html[data-theme="dark"] .camera-caption>span:last-child{color:#a3ddff}
html[data-theme="dark"] .camera-no-photo{background:linear-gradient(145deg,#143a60,#1c547d)}
@media(max-width:350px){.camera-heading strong{font-size:14px}.camera-heading small,.camera-caption{font-size:10px}.camera-caption{gap:4px}.camera-page-head h2{font-size:14px}}

/* V22: Webkamera je poslední karta na Domů, přímo nad navigací. */
#home > .camera-home{margin:15px 0 4px}


/* V24 – inteligentně zmenšující se hlavička. Vzhled a rozložení V22 zůstávají. */
/* Žádná spodní navigace, ani její prázdné místo. */
.app-shell { padding-bottom:calc(18px + env(safe-area-inset-bottom)); }
/* Sjednocená výška přepínače režimu a kruhového tlačítka Informace. */
.app-header .header-actions { align-items:center; gap:6px; }
.app-header .round-action, .app-header .header-actions #themeBtn {
  height:36px; box-sizing:border-box; border:1px solid rgba(227,244,255,.55);
}
.app-header .round-action { width:36px; min-width:36px; border-radius:50%; }
.app-header .header-actions #themeBtn {
  width:61px; min-width:61px; padding:0 7px;
  border-radius:999px; display:flex; justify-content:center; align-items:center;
}
.app-header .header-actions #themeBtn .theme-auto-mark { font-size:10.5px; letter-spacing:.45px; }
.app-header .header-actions #themeBtn svg { width:20px; height:20px; }
@media(max-width:375px){
 .app-header .round-action,.app-header .header-actions #themeBtn{height:33px}
 .app-header .round-action{width:33px;min-width:33px}
 .app-header .header-actions #themeBtn{width:58px;min-width:58px}
}
@media(max-width:335px){
 .app-header .round-action,.app-header .header-actions #themeBtn{height:31px}
 .app-header .round-action{width:31px;min-width:31px}
 .app-header .header-actions #themeBtn{width:54px;min-width:54px}
}

.compact-header {
 position:fixed;
 top:calc(env(safe-area-inset-top, 0px) + 5px);
 left:50%; transform:translate(-50%, -85px);
 width:min(calc(100% - 20px),438px); min-height:52px;
 display:flex; align-items:center; gap:10px; padding:6px 7px 6px 9px;
 z-index:120; border:1px solid rgba(235,249,255,.48); border-radius:19px;
 background:linear-gradient(110deg,rgba(9,83,145,.96),rgba(5,67,123,.96));
 color:#fff; box-shadow:0 7px 20px rgba(4,39,80,.24);
 -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
 opacity:0; visibility:hidden; pointer-events:none;
 transition:transform .20s ease, opacity .20s ease, visibility .20s;
}
.compact-header.is-visible {
 transform:translate(-50%,0); opacity:1; visibility:visible; pointer-events:auto;
}
.compact-brand { display:flex;align-items:center;gap:8px;min-width:0;flex:1;color:#fff; }
.compact-brand-icon { width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;
 border-radius:11px; background:linear-gradient(140deg,#42b9ef,#0574b2);
 border:1px solid rgba(231,251,255,.54); }
.compact-brand-icon svg {width:27px;height:27px;color:#e4f6ff}
.compact-brand-name {font-size:clamp(12px,3.75vw,15px);font-weight:800;letter-spacing:-.28px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-temp {font-size:clamp(12px,3.5vw,16px);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff}
.compact-menu-wrap {position:relative;flex:0 0 auto}
.compact-menu-btn {width:39px;height:38px;border-radius:13px;display:grid;place-items:center;
 color:#fff;background:rgba(201,236,255,.17);border:1px solid rgba(231,249,255,.54)}
.compact-menu-btn svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.compact-menu-btn[aria-expanded="true"] {background:rgba(188,230,255,.32)}
.compact-menu[hidden] {display:none!important}
.compact-menu {position:absolute;top:calc(100% + 13px);right:-5px;width:min(282px,calc(100vw - 32px));
 padding:8px;border:1px solid rgba(238,251,255,.94);border-radius:19px;
 background:rgba(228,244,255,.98);color:#153d67;
 box-shadow:0 14px 32px rgba(3,34,72,.32);-webkit-backdrop-filter:blur(19px);backdrop-filter:blur(19px)}
.compact-menu-link {min-height:49px;display:flex;align-items:center;gap:12px;padding:9px 13px;
 border-radius:12px;font-size:13px;font-weight:730;color:#1a4c77}
.compact-menu-link svg {width:21px;height:21px;flex:0 0 21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.compact-menu-link.active {background:#d1eafa;color:#0867a5}
.compact-menu-link:focus-visible,.compact-menu-btn:focus-visible,.compact-brand:focus-visible{outline:2px solid #ffd771;outline-offset:3px}
.compact-menu-link:active{background:rgba(46,147,212,.14)}
html[data-theme="dark"] .compact-header {background:linear-gradient(110deg,rgba(9,47,82,.98),rgba(7,35,70,.98));border-color:rgba(143,197,233,.48)}
html[data-theme="dark"] .compact-menu {background:rgba(16,51,87,.98);border-color:rgba(139,195,231,.58)}
html[data-theme="dark"] .compact-menu-link {color:#e5f5ff}
html[data-theme="dark"] .compact-menu-link.active{background:rgba(59,138,195,.37);color:#fff}
/* Na vedlejších obrazovkách funguje redukovaná hlavička jako jediná navigace. */
.app-shell.is-secondary .app-header {height:0;min-height:0;padding:0;margin:0;overflow:hidden;visibility:hidden}
.app-shell.is-secondary #appMain {padding-top:calc(60px + env(safe-area-inset-top, 0px))}
@media(max-width:335px) {
 .compact-header {width:calc(100% - 12px);gap:6px;padding-left:7px}
 .compact-brand {gap:5px}
 .compact-brand-name {font-size:11px}
 .compact-temp {font-size:12px}
 .compact-menu-btn {width:35px;height:36px}
}
@media(prefers-reduced-motion:reduce) {
 .compact-header {transition:none}
}

/* V25 - primary hamburger is visible in the original top header from the first frame.
   Information remains available under Menu -> Vice -> O aplikaci. */
.top-menu-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}
.app-header .top-menu-wrap>.round-action{padding:0;cursor:pointer;display:grid;place-items:center}
.app-header .top-menu-wrap>.round-action[aria-expanded="true"]{background:rgba(185,231,255,.28)}
.top-menu-wrap .top-menu{z-index:220;right:0;top:calc(100% + 12px);max-height:min(330px,75vh);overflow-y:auto}
.app-header .top-menu-wrap .top-menu-link{border:0}
@media (max-width:335px){.top-menu-wrap .top-menu{right:0}}


/* V26 – sjednocený konec všech obrazovek. Původní meteorologické karty beze změny.
   Dřívější sky-layer končila ostře v 860px: maska ji plynule rozpouští do podkladu.
   Pozadí používá absolutní barevné body, nikoli procenta podle délky stránky. */
html{background-color:#d1edff}
html[data-theme="dark"]{background-color:#071d35}
body{
  background:linear-gradient(180deg,
    var(--sky-top) 0px,
    var(--sky-mid) 380px,
    var(--sky-bottom) 830px,
    #d1edff 1330px,
    #d1edff 100%);
}
html[data-theme="dark"] body{
  background:linear-gradient(180deg,
    #061e39 0px,
    #17486e 395px,
    #284c69 710px,
    #244563 965px,
    #152f4d 1300px,
    #071d35 1780px,
    #071d35 100%);
}
.app-shell::before{
  -webkit-mask-image:linear-gradient(180deg,
    #000 0px, #000 450px,
    rgba(0,0,0,.90) 535px,
    rgba(0,0,0,.64) 650px,
    rgba(0,0,0,.30) 755px,
    transparent 860px);
  mask-image:linear-gradient(180deg,
    #000 0px, #000 450px,
    rgba(0,0,0,.90) 535px,
    rgba(0,0,0,.64) 650px,
    rgba(0,0,0,.30) 755px,
    transparent 860px);
}
/* Souvislý prostor pod poslední kartou ve všech záložkách včetně krátkých. */
.app-shell{min-height:100vh;min-height:100dvh}
.screen{padding-bottom:28px}
#measurements .charts{padding-bottom:12px}
#home > .camera-home{margin-bottom:12px}

/* Navigace na záložky nemá animovat posun dokumentu. Předejde překryvu dvou hlaviček v Safari. */
html{scroll-behavior:auto}


/* V28: jednotné pozadí dokumentu, bez hranic pod krátkými záložkami.
   Dříve se prosvítalo rozdílné pozadí html, body a .app-shell,
   na Safari zvlášť při změně výšky viditelného viewportu. */
html {
  --canvas-top:#125688;
  --canvas-mid:#67b3db;
  --canvas-bottom:#cbeaff;
  background-color:#d1edff;
  background-image:linear-gradient(180deg,
    var(--canvas-top) 0px,
    var(--canvas-mid) 380px,
    var(--canvas-bottom) 830px,
    #d1edff 1330px,
    #d1edff 100%);
  background-repeat:no-repeat;
}
html[data-sky="clear"]{--canvas-top:#04578d;--canvas-mid:#62b9e3;--canvas-bottom:#d0ecfd}
html[data-sky="partly"]{--canvas-top:#125688;--canvas-mid:#67b3db;--canvas-bottom:#cbeaff}
html[data-sky="overcast"]{--canvas-top:#275b83;--canvas-mid:#8bc1e0;--canvas-bottom:#d3eafa}
html[data-sky="rain"]{--canvas-top:#0a4777;--canvas-mid:#63accf;--canvas-bottom:#c8e5f6}
html[data-sky="snow"]{--canvas-top:#2a5c89;--canvas-mid:#a1cadd;--canvas-bottom:#e0f0f7}
html[data-sky="fog"]{--canvas-top:#285c87;--canvas-mid:#b6d7e8;--canvas-bottom:#e0eff7}
html[data-sky="storm"]{--canvas-top:#081e41;--canvas-mid:#4583ad;--canvas-bottom:#c0dce9}
html[data-dayphase="night"]{--canvas-top:#071d3c;--canvas-mid:#194b7b;--canvas-bottom:#9bc7df}
html[data-theme="dark"] {
  background-color:#071d35;
  background-image:linear-gradient(180deg,
    #061e39 0px,
    #17486e 395px,
    #284c69 710px,
    #244563 965px,
    #152f4d 1300px,
    #071d35 1780px,
    #071d35 100%);
}
body,html[data-theme="dark"] body,.app-shell{
  background:none;
  background-color:transparent;
}
/* Atmosférický snímek je pouze jemná horní vrstva.
   Vytrácí se ještě před koncem krátkých stránek, takže nevznikne šev. */
.app-shell::before {
  height:min(860px,calc(100% - 80px));
  -webkit-mask-image:linear-gradient(to bottom,
    #000 0%,#000 52%,rgba(0,0,0,.90) 63%,rgba(0,0,0,.40) 80%,transparent 100%);
  mask-image:linear-gradient(to bottom,
    #000 0%,#000 52%,rgba(0,0,0,.90) 63%,rgba(0,0,0,.40) 80%,transparent 100%);
}

/* V30 – datum platnosti dennich hodnot DOMACAST (bez zasahu do vypoctu). */
.forecast-title .forecast-heading-text{flex:1 1 auto;min-width:0}
.forecast-title .forecast-period{margin-left:auto;flex:0 0 auto;align-self:center;white-space:nowrap;border-radius:999px;padding:5px 9px;background:rgba(255,231,157,.88);border:1px solid rgba(255,245,205,.98);color:#68470a;font-size:10px;line-height:1.2;font-weight:800;letter-spacing:.02em}
[data-theme="dark"] .forecast-title .forecast-period{background:rgba(255,225,144,.97);border-color:#fbe9b0;color:#62400a}
@media(max-width:365px){.forecast-title{gap:6px}.forecast-title .forecast-period{padding:4px 7px;font-size:9px}.forecast-title h2{white-space:normal;line-height:1.08}}


/* V33 – iOS 26/27: nechat systemovy stavovy radek mimo obsah stranky.
   Puvodni black-translucent nutil WebKit aplikovat systemovy blur pres logo.
   Nove meta nastaveni je odstraneno. U nove instalace je safe-area-top 0,
   starsi instalace muzou docasne vracet kladne inset – ten respektujeme,
   ale NEPRIDAVAME zadnych dalsich 20px jako ve V32. */
html.ios-pwa-standalone .app-shell {
  padding-top: env(safe-area-inset-top, 0px);
}
/* Vedlejsi obrazovky: nezdvojovat safe-area v hlavnim obsahu. */
html.ios-pwa-standalone .app-shell.is-secondary #appMain {
  padding-top: 60px;
}


/* V34 – iOS 27 PWA: WebKit vykresluje systémový blur pod stavovým řádkem,
   který na úvodní obrazovce zasahuje i logo a původní hlavičku.
   Podle testů v samostatně instalovaných PWA může malý fixní compositor
   guard eliminovat rozmazanou oblast bez posunu obsahu. Jde o experimentální
   workaround pro iOS 27, nikoliv veřejné API WebKitu.
   Safarimu a Androidu se tento element vůbec nezobrazuje. */
.ios-pwa-top-guard{display:none}
html.ios-pwa-standalone .ios-pwa-top-guard{
  display:block;
  position:fixed;
  inset:0 0 auto 0;
  height:11px;
  z-index:200;
  pointer-events:none;
  background-color:#102f50;
  -webkit-background-clip:text;
  background-clip:text;
}


/* V35 – ukazatel mesicni faze na nocni draze. Kulaty stribrny Mesic
   odpovida desktopovemu ukazateli, bez srpkove masky. Pouze nocni rezim.
   Vetsi vyska zajistuje prostor pro vice-radkovy cesky nazev faze. */
body.weather-night .hero-core{min-height:190px}
body.weather-night .sunline{height:159px}
body.weather-night .sun-curve{top:36px;height:68px}
body.weather-night .astro-label{top:105px}
body.weather-night .astro-moon-phase{
  position:absolute;z-index:1;top:0;left:3px;right:0;
  display:flex;flex-direction:column;align-items:center;
  gap:2px;text-align:center;color:#f6fbff;
  font-size:clamp(9.5px,2.5vw,11px);line-height:1.15;
  text-shadow:0 1px 4px rgba(0,28,63,.38);
  pointer-events:none;
}
body.weather-night .astro-moon-phase span{opacity:.91}
body.weather-night .astro-moon-phase strong{
  font-size:clamp(10.5px,2.8vw,12.5px);font-weight:800;
  line-height:1.16;max-width:100%;overflow-wrap:normal;
  text-wrap:balance;
}
@media(max-width:375px){
 body.weather-night .hero-core{min-height:190px}
 body.weather-night .sunline{height:158px}
 body.weather-night .sun-curve{top:39px;height:63px}
 body.weather-night .astro-label{top:104px}
 body.weather-night .astro-moon-phase{top:0;gap:1px;font-size:9px}
 body.weather-night .astro-moon-phase strong{font-size:10.5px;line-height:1.1}
}
@media(max-width:335px){
 body.weather-night .hero-core{min-height:188px}
 body.weather-night .sunline{height:158px}
 body.weather-night .sun-curve{top:41px;height:59px}
 body.weather-night .astro-label{top:104px}
 body.weather-night .astro-moon-phase strong{font-size:10px}
}

/* V36 – denni oblouk a pozice UV zustavaji beze zmeny.
   Nocni nazvy fazi jsou kratsi a do V35 rozvrzeni se vejdou bez kolizi. */

/* V37 / verejna verze 1.0.0 – cislo verze a historie v sekci Vice → O aplikaci. */
#more .about-link-version{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-size:11px;font-weight:700;color:var(--ink-muted)}
#more .about-link-version b{font-size:23px;color:#1e83c0}
html[data-theme="dark"] #more .about-link-version b{color:#99d9ff}
.app-about-card .app-release-head{padding:19px 16px 14px;display:flex;flex-direction:column;gap:6px}
.app-release-kicker{font-size:10px;letter-spacing:1.05px;font-weight:800;color:var(--ink-muted)}
.app-release-version{font-size:18px;font-weight:650;line-height:1.2;color:var(--ink)}
.app-release-version strong{font-size:30px;font-weight:850;letter-spacing:-.6px}
.app-release-meta{font-size:11px;line-height:1.4;color:var(--ink-muted)}
.app-release-meta span{margin:0 4px}
.app-about-card p{margin:0 0 17px}
.app-changelog-item{border-top:1px solid var(--stroke)}
.app-changelog-item summary{display:flex;align-items:center;gap:12px;padding:15px 15px;cursor:pointer;color:var(--ink);font-size:13px;font-weight:800;list-style:none}
.app-changelog-item summary::-webkit-details-marker{display:none}
.app-changelog-item summary::after{content:'⌄';font-size:20px;line-height:1;color:var(--ink-muted);margin-left:0;transform:rotate(0deg);transition:transform .18s ease}
.app-changelog-item[open] summary::after{transform:rotate(180deg)}
.app-changelog-date{margin-left:auto;white-space:nowrap;color:var(--ink-muted);font-size:10px;font-weight:600}
.app-changelog-body{padding:0 16px 15px;color:var(--ink-muted);font-size:12px;line-height:1.55}
.app-changelog-body ul{margin:0;padding-left:17px}
.app-changelog-body li+li{margin-top:6px}
.app-update-hint{font-size:11px;line-height:1.55;color:var(--ink-muted);margin:16px 6px 8px;opacity:.95}
@media(max-width:335px){.app-changelog-item summary{gap:7px;padding:14px 11px;font-size:12px}.app-changelog-date{font-size:9px}}


/* V39 / 1.0.1 – denní čas slunečního svitu ze senzorů v prostoru nad obloukem.
   Noční dráha Měsíce (V35/V36) ani umístění UV mimo denní režim se nemění. */
body.weather-day .hero-core{min-height:190px}
body.weather-day .sunline{height:159px}
body.weather-day .sun-curve{top:36px;height:66px}
body.weather-day .astro-label{top:107px}
body.weather-day .astro-uv{top:88px}
body.weather-day .astro-sunshine{
  position:absolute;z-index:1;top:0;left:3px;right:0;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:2px;text-align:center;color:#f6fbff;
  font-size:clamp(9px,2.45vw,11px);line-height:1.15;
  text-shadow:0 1px 4px rgba(0,28,63,.4);pointer-events:none;
  white-space:nowrap;
}
body.weather-day .astro-sunshine span{opacity:.93}
body.weather-day .astro-sunshine strong{font-size:clamp(11px,3vw,13px);font-weight:800;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:375px){
 body.weather-day .hero-core{min-height:190px}
 body.weather-day .sunline{height:158px}
 body.weather-day .sun-curve{top:40px;height:60px}
 body.weather-day .astro-label{top:105px}
 body.weather-day .astro-uv{top:87px}
 body.weather-day .astro-sunshine{top:1px;gap:1px;font-size:9px}
 body.weather-day .astro-sunshine strong{font-size:11px}
}
@media(max-width:335px){
 body.weather-day .hero-core{min-height:188px}
 body.weather-day .sunline{height:157px}
 body.weather-day .sun-curve{top:41px;height:59px}
 body.weather-day .astro-label{top:105px}
 body.weather-day .astro-uv{top:87px}
 body.weather-day .astro-sunshine{font-size:8.5px}
 body.weather-day .astro-sunshine strong{font-size:10.5px}
}

/* V46 – pill for CHMU warnings. Normal two-pill layout stays unchanged. */
.quick-status.has-chmu{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px}
.quick-status.has-chmu .status-pill.bio{grid-column:1;justify-self:start}
.quick-status.has-chmu .status-pill.chmu{grid-column:2;justify-self:center;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.quick-status.has-chmu .status-pill.aqi{grid-column:3;justify-self:end}
.status-pill.chmu{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid rgba(67,52,31,.18);box-shadow:0 3px 9px rgba(12,45,88,.13);font-weight:750;color:#4b3300;text-decoration:none}
.status-pill.chmu-1{background:#fff2b8;color:#5b4500}
.status-pill.chmu-2{background:#ffd9a6;color:#743e07}
.status-pill.chmu-3{background:#f4b7b4;color:#831b23}
.status-pill.chmu:focus-visible{outline:3px solid #ffffff;outline-offset:3px}
/* Pouze při aktivní výstraze: BIO, ČHMÚ a AQI v jedné řadě i na iPhonu. */
@media(max-width:440px){
 .quick-status.has-chmu{grid-template-columns:max-content minmax(0,1fr) max-content;column-gap:clamp(3px,1.1vw,7px);row-gap:0}
 .quick-status.has-chmu .status-pill.bio{grid-column:1;grid-row:1;justify-self:start}
 .quick-status.has-chmu .status-pill.chmu{grid-column:2;grid-row:1;justify-self:center;white-space:nowrap;text-align:center;font-size:clamp(8.5px,2.45vw,11px);padding:5px 6px;gap:3px}
 .quick-status.has-chmu .status-pill.aqi{grid-column:3;grid-row:1;justify-self:end}
 .quick-status.has-chmu .status-pill.aqi .aqi-prefix{display:none}
}
