/* Dům: styl „Apple TV“ (tmavé pozadí, skleněné karty, záře) přepsaný na plynulé jednotky, aby obrazovky fungovaly
   na monitoru, tabletu i telefonu. Barvy, písmo a poloměry jsou z návrhu televizních obrazovek (common.css). */
:root {
  --bg: #05070c; --pad: clamp(16px, 5vw, 96px); --gap: clamp(10px, 1.4vw, 24px);
  --green: #34d399; --amber: #fbbf24; --rose: #fb7185; --cyan: #38bdf8; --dim: #94a3b8;
  --t-dim: rgba(255,255,255,.62); --t-faint: rgba(255,255,255,.5);
  --ac: #e5e7eb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: #fff; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid rgba(255,255,255,.9); outline-offset: 3px; }

.tv { position: relative; min-height: 100vh; }
.glow { position: fixed; width: 110vmax; height: 110vmax; left: -30vmax; top: -62vmax; border-radius: 50%; filter: blur(60px); opacity: .55; transition: background .5s ease; pointer-events: none; z-index: 0; }
.glow.b { left: auto; top: auto; right: -50vmax; bottom: -78vmax; opacity: .28; }

/* ---------- horní lišta ---------- */
.top { position: relative; z-index: 6; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 28px); padding: clamp(14px, 2.4vw, 44px) var(--pad) 0; min-height: 44px; font-size: clamp(14px, 1.15vw, 22px); font-weight: 600; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 1.35vw, 26px); font-weight: 700; letter-spacing: -.2px; }
.brand svg { width: 1.15em; height: 1.15em; fill: #fff; }
.crumb { color: rgba(255,255,255,.55); font-weight: 600; margin-left: -6px; }
.top .sp { flex: 1; }
.pill { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); font-weight: 500; white-space: nowrap; }
.pill i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.clock { font-weight: 600; font-variant-numeric: tabular-nums; }
.lnk { height: 40px; padding: 0 18px; border-radius: 20px; display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.86); white-space: nowrap; }
.logout { color: rgba(255,255,255,.5); font-size: .9em; padding: 4px 8px; }

.eyebrow { font-size: clamp(12px, .95vw, 18px); font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--t-dim); }
.title { font-size: clamp(34px, 4vw, 76px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin-top: 12px; overflow-wrap: anywhere; }
.meta { font-size: clamp(16px, 1.35vw, 26px); color: rgba(255,255,255,.74); margin-top: 16px; line-height: 1.4; }
.sub { font-size: clamp(15px, 1.2vw, 23px); color: rgba(255,255,255,.66); margin-top: 10px; }
.page { position: relative; z-index: 2; padding: 0 var(--pad) 72px; }
.stack > * + * { margin-top: var(--gap); }

.g { background: rgba(255,255,255,.09); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); border-radius: 22px; }
/* zaostření jako na tvOS: zvětšení, zvednutí a lesk, žádný rámeček */
.fc { position: relative; transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, background .3s ease, opacity .3s ease; }
.fc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 22%, rgba(255,255,255,0) 46%); opacity: 0; transition: opacity .32s ease; pointer-events: none; }
@media (hover: hover) {
  .fc:hover:not(:disabled):not(.dis) { transform: translateY(-4px) scale(1.03); box-shadow: 0 24px 44px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.16); z-index: 3; }
  .fc:hover:not(:disabled):not(.dis)::after { opacity: 1; }
}
.fc:focus-visible { transform: translateY(-4px) scale(1.03); box-shadow: 0 24px 44px rgba(0,0,0,.55); z-index: 3; outline: none; }
.fc:focus-visible::after { opacity: 1; }

/* ---------- pozadí s obrázkem ---------- */
.bg { position: absolute; left: 0; right: 0; top: 0; height: min(78vh, 760px); background-size: cover; background-position: center; z-index: 0; transition: background-image .45s ease, opacity .45s ease; }
.bg.data { background-image: none !important; }
.bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,7,12,.94) 0%, rgba(5,7,12,.62) 38%, rgba(5,7,12,.08) 72%),
  linear-gradient(180deg, rgba(5,7,12,.55) 0, rgba(5,7,12,0) 22%, rgba(5,7,12,0) 34%, rgba(5,7,12,.86) 76%, #05070c 100%); }
.bg.right { left: 28%; }
.bg.right::after { background: linear-gradient(180deg, rgba(5,7,12,.78) 0, rgba(5,7,12,0) 20%), linear-gradient(90deg, #05070c 4%, rgba(5,7,12,.5) 40%, rgba(5,7,12,.12) 100%), linear-gradient(180deg, rgba(5,7,12,0) 30%, rgba(5,7,12,.92) 82%, #05070c 100%); }

/* ---------- dlaždice a čísla ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--gap); }
.tiles.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: clamp(14px, 1.2vw, 22px) clamp(16px, 1.4vw, 24px); display: flex; flex-direction: column; min-height: 118px; text-align: left; }
.tile .l { font-size: clamp(13px, 1vw, 17px); font-weight: 600; color: var(--t-dim); line-height: 1.25; }
.tile .v { margin-top: auto; padding-top: 8px; font-size: clamp(24px, 2vw, 38px); font-weight: 700; letter-spacing: -.8px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .v.lg { font-size: clamp(18px, 1.35vw, 25px); letter-spacing: -.3px; line-height: 1.2; }
.tile .v small { font-size: .5em; font-weight: 600; color: var(--t-dim); margin-left: 6px; letter-spacing: 0; }
.tile .s { font-size: clamp(12px, .85vw, 15px); color: var(--t-faint); margin-top: 5px; min-height: 1.2em; }
.tile.g1 { background: linear-gradient(155deg, rgba(52,211,153,.22), rgba(52,211,153,.03) 70%), rgba(255,255,255,.06); }
.tile.w1 { background: linear-gradient(155deg, rgba(251,191,36,.26), rgba(251,191,36,.04) 70%), rgba(255,255,255,.06); }
.tile.b1 { background: linear-gradient(155deg, rgba(251,113,133,.26), rgba(251,113,133,.04) 70%), rgba(255,255,255,.06); }
.tile.dimd .v { color: rgba(255,255,255,.4); }
.tile.sel { box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.tone-g { color: var(--green); } .tone-w { color: var(--amber); } .tone-b { color: var(--rose); }

.tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab { height: 48px; padding: 0 20px; border-radius: 24px; display: inline-flex; align-items: center; font-size: clamp(15px, 1.1vw, 20px); font-weight: 600; color: rgba(255,255,255,.8); white-space: nowrap; }
.tab.on { background: rgba(255,255,255,.22); color: #fff; }
.tabs .nt { margin-left: auto; font-size: 15px; line-height: 1.35; color: var(--t-faint); max-width: 620px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }

.msg { font-size: clamp(16px, 1.2vw, 22px); font-weight: 600; min-height: 1.6em; display: flex; align-items: center; gap: 12px; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { font-size: 14px; color: var(--t-faint); line-height: 1.45; }
.soon { padding: clamp(22px, 3vw, 44px); max-width: 720px; font-size: clamp(17px, 1.4vw, 24px); line-height: 1.5; color: rgba(255,255,255,.8); }
.soon b { display: block; font-size: 1.5em; margin-bottom: 8px; }

/* ---------- potvrzovací okno ---------- */
.dlg { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,7,12,.74); backdrop-filter: blur(40px) saturate(140%); -webkit-backdrop-filter: blur(40px) saturate(140%); animation: dlgin .3s ease; }
@keyframes dlgin { from { opacity: 0; } to { opacity: 1; } }
.dlg .box { width: min(100%, 640px); text-align: center; }
.dlg .box b { display: block; font-size: clamp(26px, 3.2vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.dlg .box p { font-size: clamp(16px, 1.6vw, 24px); line-height: 1.45; color: rgba(255,255,255,.72); margin: 16px 0 32px; }
.db { display: flex; width: min(100%, 440px); height: 68px; margin: 0 auto 14px; border-radius: 22px; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.db.primary { background: rgba(255,255,255,.94); color: #05070c; }

/* ---------- tlačítka voleb ---------- */
.opt { min-height: 52px; padding: 8px 18px; border-radius: 18px; display: inline-flex; align-items: center; gap: 9px; font-size: clamp(15px, 1.1vw, 19px); font-weight: 600; white-space: nowrap; color: rgba(255,255,255,.9); }
.opt svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.opt.on { background: var(--ac); color: #06121c; box-shadow: 0 0 34px color-mix(in srgb, var(--ac) 45%, transparent); }
.opt.dis, .opt:disabled { opacity: .32; }
.opt.sq { width: 64px; padding: 0; justify-content: center; font-size: 30px; }
.btn { height: 56px; padding: 0 28px; border-radius: 18px; background: rgba(255,255,255,.92); color: #05070c; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }

/* =================== HOME =================== */
.hero { position: relative; z-index: 2; min-height: clamp(220px, 34vw, 470px); padding: clamp(18px, 4vw, 70px) var(--pad) 0; }
.hero .info { max-width: min(900px, 100%); }
.big { display: flex; align-items: baseline; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.big b { font-size: clamp(38px, 4.2vw, 64px); font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.big b small { font-size: .44em; font-weight: 600; color: var(--t-dim); margin-left: 6px; }
.hint { margin-top: 20px; font-size: 16px; color: var(--t-faint); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.go { height: 40px; padding: 0 18px; border-radius: 20px; background: rgba(255,255,255,.92); color: #05070c; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; }
.rows { position: relative; z-index: 3; padding-bottom: 60px; }
.row { margin-top: clamp(14px, 2vw, 30px); }
.rt { padding: 0 var(--pad); font-size: clamp(17px, 1.3vw, 23px); font-weight: 700; color: rgba(255,255,255,.86); }
.track { display: flex; gap: clamp(12px, 1.6vw, 28px); padding: 18px var(--pad) 30px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.track::-webkit-scrollbar { display: none; }
.card { position: relative; flex: none; scroll-snap-align: start; border-radius: 22px; cursor: pointer; transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, filter .3s ease; display: block; }
@media (hover: hover) { .card:hover, .card:focus-visible { transform: translateY(-6px) scale(1.06); box-shadow: 0 30px 50px rgba(0,0,0,.6); z-index: 4; } }
.card:focus-visible { transform: translateY(-6px) scale(1.06); outline: none; box-shadow: 0 30px 50px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.8); z-index: 4; }
.card .face { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background-size: cover; background-position: center; }
.card .face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.07) 22%, rgba(255,255,255,0) 46%); opacity: 0; transition: opacity .32s ease; }
.card:hover .face::after, .card:focus-visible .face::after { opacity: 1; }
.glass { width: clamp(210px, 21vw, 300px); height: clamp(130px, 12vw, 170px); }
.glass.wide { width: clamp(250px, 25vw, 405px); }
.glass .face { background: rgba(255,255,255,.09); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.11); }
.glass .face.heat { background: linear-gradient(155deg, rgba(251,146,60,.42), rgba(251,146,60,.08) 70%), rgba(255,255,255,.05); }
.glass .face.cool { background: linear-gradient(155deg, rgba(56,189,248,.42), rgba(56,189,248,.08) 70%), rgba(255,255,255,.05); }
.glass .face.hot { background: linear-gradient(155deg, rgba(239,68,68,.45), rgba(239,68,68,.1) 70%), rgba(255,255,255,.05); }
.glass .face.cold { background: linear-gradient(155deg, rgba(56,189,248,.26), rgba(56,189,248,.05) 70%), rgba(255,255,255,.05); }
.glass .face.warn { background: linear-gradient(155deg, rgba(251,191,36,.42), rgba(251,191,36,.08) 70%), rgba(255,255,255,.05); }
.glass .face.frost { background: radial-gradient(ellipse at center, rgba(56,189,248,.4) 40%, rgba(255,255,255,.6) 100%); box-shadow: inset 0 0 26px rgba(255,255,255,.6); }
.gc { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.gc .n { display: flex; align-items: center; gap: 9px; font-size: clamp(14px, 1.05vw, 19px); font-weight: 600; color: rgba(255,255,255,.88); }
.gc .n svg { width: 22px; height: 22px; fill: currentColor; opacity: .85; flex: none; }
.gc .v { margin-top: auto; display: flex; align-items: baseline; gap: 14px; }
.gc .v b { font-size: clamp(28px, 2.4vw, 44px); font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gc .v b small { font-size: .46em; font-weight: 600; color: var(--t-dim); margin-left: 4px; }
.gc .v b.w { font-size: clamp(22px, 1.8vw, 34px); }
.gc .s { font-size: clamp(12px, .9vw, 16px); color: var(--t-dim); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster { width: clamp(220px, 21vw, 336px); aspect-ratio: 16/9; }
.poster .face { background-color: #111827; }
.poster .lbl { position: absolute; left: 4px; right: 4px; top: calc(100% + 8px); font-size: 17px; font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster { margin-bottom: 34px; }
.poster .live { position: absolute; left: 12px; top: 10px; font-size: 12px; font-weight: 800; letter-spacing: 1.3px; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 2; }
.poster .live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.poster .stamp { position: absolute; right: 10px; bottom: 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.45); z-index: 2; }
.poster .ph, .tilecam .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 18px; font-weight: 600; color: rgba(255,255,255,.55); background: linear-gradient(135deg, #1f2937, #0b1220); z-index: 1; }
.poster img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.poster.dead img.shot { filter: grayscale(1) brightness(.5); }

/* =================== STRÁNKY =================== */
.pg-head { position: relative; z-index: 2; padding: clamp(12px, 3vw, 54px) var(--pad) 0; min-height: clamp(180px, 22vw, 320px); }
.pg-head .title { font-size: clamp(30px, 3.6vw, 64px); max-width: 1000px; }
.hv { display: flex; align-items: baseline; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.hv b { font-size: clamp(40px, 5.2vw, 92px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hv b small { font-size: .42em; font-weight: 700; margin-left: 8px; opacity: .7; letter-spacing: -.5px; }
.hv > span { font-size: clamp(15px, 1.25vw, 23px); font-weight: 500; color: rgba(255,255,255,.7); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 0; margin: clamp(14px, 2vw, 30px) 0; }
.facts .c { padding: 0 clamp(14px, 1.6vw, 28px); border-left: 1px solid rgba(255,255,255,.14); }
.facts .c:first-child { padding-left: 0; border-left: 0; }
.facts .v { font-size: clamp(22px, 2.1vw, 40px); font-weight: 700; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts .l { font-size: clamp(13px, .95vw, 17px); font-weight: 500; color: rgba(255,255,255,.58); margin-top: 4px; }
.stp { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.stp .v { margin-top: 0; padding: 0; }
.sb { width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.14); font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.tile.tog { cursor: pointer; }

/* =================== ENERGIE =================== */
.energy { display: grid; grid-template-columns: minmax(250px, 30%) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.stage-wrap { position: relative; width: 100%; aspect-ratio: 1920 / 1080; }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; --lab: 1; }
.stage .bg-img { position: absolute; left: 0; top: 4px; width: 1920px; height: 1072px; background-size: 100% 100%; background-repeat: no-repeat; transition: filter .5s ease; }
.stage.off .bg-img { filter: grayscale(1) brightness(.6); }
.stage .fl { position: absolute; left: 0; top: 0; pointer-events: none; }
@keyframes flow { from { stroke-dashoffset: var(--a); } to { stroke-dashoffset: calc(var(--a) - var(--per)); } }
.stage .tg { position: absolute; white-space: nowrap; height: 80px; transform: scale(var(--lab)); transform-origin: 0 0; }
.stage .tg.br { height: 109px; }
.stage .tg.r { text-align: right; transform-origin: 100% 0; }
.stage .tg.b { transform-origin: 0 100%; }
.stage .tg.r.b { transform-origin: 100% 100%; }
.stage .tg.r .l, .stage .tg.r .bs { left: auto; right: 0; }
.stage .v { font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: -.2px; transition: text-shadow .3s ease; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.stage .v small { font-size: 22px; font-weight: 400; margin-left: 6px; }
.stage .l { position: absolute; left: 0; top: 54px; font-weight: 300; font-size: 21px; color: #c9ced6; }
.stage .bs { position: absolute; left: 0; top: 48px; font-weight: 400; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.stage .br .l { top: 84px; }
.stage .v.f { text-shadow: 0 0 26px rgba(255,255,255,.75); }
.st { width: 100%; padding: 16px 22px; display: block; margin-bottom: 14px; }
.st .n { display: flex; align-items: center; gap: 10px; font-size: clamp(14px, 1.05vw, 19px); font-weight: 600; color: rgba(255,255,255,.8); }
.st .n i { width: 10px; height: 10px; border-radius: 50%; }
.st .v { margin-top: 6px; font-size: clamp(34px, 3vw, 58px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.st .v small { font-size: .4em; font-weight: 600; color: var(--t-dim); margin-left: 6px; letter-spacing: 0; }
.st .s { font-size: clamp(13px, .95vw, 17px); font-weight: 600; margin-top: 2px; }
.st.sel { box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.day { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 8px; margin-top: var(--gap); }
.day .c { padding: 18px 20px; position: relative; }
.day .c + .c::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: rgba(255,255,255,.12); }
.day .l { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.58); }
.day .v { font-size: clamp(22px, 1.8vw, 32px); font-weight: 700; letter-spacing: -.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.day .v small { font-size: .55em; font-weight: 600; color: var(--t-dim); margin-left: 6px; }
.day .s { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* =================== KLIMATIZACE =================== */
.klima { display: grid; grid-template-columns: minmax(260px, 30%) minmax(0, 1fr); gap: clamp(20px, 3vw, 54px); }
.room { margin-top: 26px; font-size: clamp(88px, 11vw, 168px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ac); font-variant-numeric: tabular-nums; transition: color .4s ease; }
.room small { font-size: .32em; font-weight: 700; letter-spacing: -1px; margin-left: 8px; }
.roomcap { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.55); margin-top: 6px; }
.host { font-size: 15px; color: rgba(255,255,255,.4); margin-top: 12px; }
.ctl .rw { margin-bottom: 18px; }
.ctl .lb { font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.ctl .cs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.setv { min-width: 190px; text-align: center; font-size: clamp(32px, 3vw, 46px); font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.setv small { font-size: 18px; font-weight: 600; color: rgba(255,255,255,.55); margin-left: 10px; letter-spacing: 0; }
.heat { --ac: #fb923c; } .cool { --ac: #38bdf8; }
.ov { padding: clamp(22px, 3vw, 44px); border-radius: 28px; text-align: center; background: rgba(20,24,34,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); margin-bottom: 22px; }
.ov b { display: block; font-size: clamp(24px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.6px; }
.ov span { display: block; font-size: clamp(15px, 1.4vw, 22px); color: rgba(255,255,255,.72); margin-top: 12px; line-height: 1.45; }

/* =================== BOJLER =================== */
.bojler { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 420px); gap: clamp(20px, 4vw, 80px); align-items: center; padding-top: clamp(10px, 3vw, 50px); }
.state { font-size: clamp(60px, 9vw, 150px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 18px; color: var(--ac); transition: color .4s ease; }
.btns { display: flex; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.bt { width: min(100%, 280px); height: 84px; border-radius: 26px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 24px; font-weight: 700; }
.bt svg { width: 28px; height: 28px; fill: currentColor; }
.bt.dis, .bt:disabled { opacity: .3; }
.tank { position: relative; width: min(100%, 360px); aspect-ratio: 420 / 620; margin: 0 auto; border-radius: 120px; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 120px color-mix(in srgb, var(--ac) 40%, transparent); transition: box-shadow .5s ease; }
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 70%, transparent), color-mix(in srgb, var(--ac) 22%, transparent)); transition: background .5s ease; }
.water::before { content: ''; position: absolute; left: -10%; right: -10%; top: -18px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--ac) 80%, #fff 8%); opacity: .55; }
.bb { position: absolute; bottom: -14px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,235,230,.75); opacity: 0; }
.on .bb { animation: rise 4.2s ease-in infinite; }
.bb.b1 { left: 18%; } .bb.b2 { left: 36%; animation-delay: .8s !important; width: 8px; height: 8px; } .bb.b3 { left: 55%; animation-delay: 1.7s !important; } .bb.b4 { left: 72%; animation-delay: 2.6s !important; width: 8px; height: 8px; } .bb.b5 { left: 84%; animation-delay: 3.3s !important; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translateY(-400px); opacity: 0; } }
.tank svg { position: absolute; left: 50%; top: 50%; width: 38%; height: auto; transform: translate(-50%, -50%); fill: rgba(255,255,255,.9); }
.boiler-on { --ac: #ef4444; } .boiler-cold { --ac: #38bdf8; } .boiler-none { --ac: #94a3b8; }

/* =================== KAMERY =================== */
.camgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.tilecam { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background-color: #111827; display: block; }
.tilecam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tilecam .badge { position: absolute; left: 12px; top: 10px; font-size: 12px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.5); z-index: 2; }
.tilecam .badge i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: currentColor; }
.tilecam .nm { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 17px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.tilecam.dead img { filter: grayscale(1) brightness(.5); }
.full { position: relative; margin-top: var(--gap); border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16/9; max-height: 78vh; width: 100%; }
.full img, .full .live-slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.full .osd { position: absolute; left: 0; right: 0; top: 0; padding: 14px 18px; display: flex; gap: 16px; align-items: center; background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); z-index: 3; flex-wrap: wrap; }
.full .osd .nm { font-size: 22px; font-weight: 700; }
.full .osd .tm { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); }
.full .err { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(5,7,12,.82); z-index: 2; }
.full .err b { font-size: clamp(22px, 2.6vw, 38px); } .full .err span { margin-top: 10px; font-size: 18px; color: rgba(255,255,255,.7); max-width: 560px; }
.camnav { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.camnav .note { margin-left: auto; }

/* =================== BAZÉN =================== */
.pool-hero { position: absolute; left: 0; right: 0; top: 0; height: min(82vh, 780px); z-index: 0; }
.pool-hero i { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .8s ease; }
.pool-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,12,.7) 0, rgba(5,7,12,0) 16%), linear-gradient(90deg, rgba(5,7,12,.9) 0%, rgba(5,7,12,.5) 34%, rgba(5,7,12,0) 64%), linear-gradient(180deg, rgba(5,7,12,0) 42%, rgba(5,7,12,.88) 66%, #05070c 86%); }
.tile .bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); margin-top: 10px; }
.tile .bar u { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: rgba(52,211,153,.45); }
.tile .bar i { position: absolute; top: -4px; width: 6px; height: 14px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.7); }

/* =================== SEKAČKA =================== */
.mower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 54px); align-items: start; margin-top: clamp(10px, 2vw, 36px); }
.mw { padding: 22px 26px; display: flex; justify-content: space-between; gap: 18px; width: 100%; margin-top: 18px; }
.mw .nm b { font-size: clamp(24px, 2.2vw, 36px); display: block; }
.mw .chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 18px; font-weight: 600; }
.mw .chip i { width: 9px; height: 9px; border-radius: 50%; }
.mw .bt2 { min-width: 120px; text-align: right; }
.mw .bt2 .l { font-size: 14px; color: var(--t-dim); } .mw .bt2 .v { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mw .bt2 .v small { font-size: .5em; margin-left: 3px; }
.bat { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); margin-top: 6px; overflow: hidden; } .bat i { display: block; height: 100%; border-radius: 3px; }
.cmds .lh { font-size: clamp(20px, 1.7vw, 28px); font-weight: 700; }
.cmds .ls { font-size: 16px; color: var(--t-dim); margin: 6px 0 16px; }
.cmd { display: block; width: 100%; padding: 16px 22px; border-radius: 18px; font-size: clamp(16px, 1.3vw, 21px); font-weight: 600; margin-bottom: 10px; }
.cmd.danger { color: #fecaca; box-shadow: inset 0 0 0 1px rgba(251,113,133,.5); }
.cmd.dis, .cmd:disabled { opacity: .35; }

/* =================== GRAFY =================== */
.chart-wrap { margin-top: var(--gap); position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.chart .avg { stroke: rgba(255,255,255,.3); stroke-dasharray: 6 6; }
.chart text { fill: rgba(255,255,255,.6); font-size: 20px; font-family: inherit; }
.chart text.sel { fill: #fff; font-weight: 700; }
.chart .hit { cursor: pointer; fill: transparent; }
.chart .line { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.summary .c .v { font-size: clamp(20px, 1.8vw, 30px); font-weight: 700; }
.summary .c .l { font-size: 14px; color: var(--t-dim); margin-top: 2px; }
.sel-box .hv b { font-size: clamp(40px, 4.4vw, 76px); }
.delta { font-size: 24px; font-weight: 700; margin-right: 12px; }

/* =================== PLÁN, AUTA =================== */
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: start; margin-top: var(--gap); }
.plan .map { padding: 16px; } .plan .map img { width: 100%; height: auto; display: block; }
.cars { display: flex; gap: var(--gap); margin-top: var(--gap); overflow-x: auto; padding-bottom: 8px; }
.cc { flex: 1 0 150px; border-radius: 18px; overflow: hidden; text-align: left; opacity: .7; }
.cc.on { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.cc .ph { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.cc .nm { padding: 10px 12px 0; font-weight: 700; } .cc .pl { padding: 2px 12px 12px; font-size: 13px; color: var(--t-dim); }
.car-hero { position: relative; border-radius: 22px; min-height: clamp(180px, 28vw, 420px); background-size: cover; background-position: center; margin-top: var(--gap); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.acts .task { color: var(--amber); font-weight: 600; max-width: 900px; }

/* =================== PŘIHLÁŠENÍ =================== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }

/* =================== TELEFON / TABLET =================== */
@media (max-width: 1100px) {
  .energy, .klima, .bojler, .mower, .plan { grid-template-columns: minmax(0, 1fr); }
  .bojler .tank { order: -1; width: min(60%, 220px); }
  .tiles.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day .c:nth-child(4)::before { display: none; }
}
@media (max-width: 640px) {
  .top { padding-top: 14px; }
  .crumb { display: none; }
  .camgrid { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .day { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .day .c:nth-child(odd)::before { display: none; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
  .tabs .nt { margin-left: 0; max-width: none; }
  .facts .c { padding: 0 12px; }
  .hint .keys { display: none; }
  .poster { width: min(78vw, 300px); }
  .glass { width: min(64vw, 250px); }
  .glass.wide { width: min(76vw, 300px); }
  .lnk { height: 36px; padding: 0 12px; font-size: 14px; }
  .tab { height: 42px; padding: 0 14px; }
  .opt { min-height: 46px; padding: 6px 12px; }
  .bt { width: 100%; }
  .bg { height: 62vh; }
  .stage-wrap { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); width: calc(100% + var(--pad) * 2); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.opt.on:disabled { opacity: .8; }
[hidden] { display: none !important; }
