:root {
  --bg: #eef6ff;
  --card: #ffffff;
  --ink: #0d2440;
  --muted: #5a7a9a;
  --line: #e4ebef;
  --accent: #1e6ff5;
  --neon: #00c2ff;
  --accent-deep: #1552c9;
  --warm: #ff9f0a;
  --rain: #4f8fd0;
  --snow: #8fb6d6;
  --shadow: 0 1px 2px rgba(22,36,44,.04), 0 8px 24px rgba(22,36,44,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hdr { background: linear-gradient(180deg, #fff, #fbfdfe); border-bottom: 1px solid var(--line); }
.hdr-in {
  max-width: 920px; margin: 0 auto; padding: 20px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; color: var(--accent); }
.logo svg { width: 34px; height: 34px; }
h1 { font-size: 21px; font-weight: 650; letter-spacing: -.2px; }
h1 span { color: var(--accent); font-weight: 650; }
.tag { font-size: 13px; color: var(--muted); }
.meta { font-size: 12.5px; color: var(--muted); text-align: right; }
.meta b { color: var(--ink); font-weight: 600; }

.wrap { max-width: 920px; margin: 0 auto; padding: 26px 20px 40px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card-hd { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.city { font-size: 17px; font-weight: 650; }
.region { font-size: 12px; color: var(--muted); }

.day { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day.today .dow b { color: var(--accent-deep); }
.dow { font-size: 13px; color: var(--muted); }
.dow b { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.ico { color: var(--accent); display: inline-flex; }
.ico svg { width: 26px; height: 26px; }
.ico.rain { color: var(--rain); }
.ico.snow { color: var(--snow); }
.ico.sun { color: var(--warm); }

.mid { min-width: 0; }
.cond { font-size: 13.5px; font-weight: 550; }
.sub { font-size: 12px; color: var(--muted); display: flex; gap: 12px; margin-top: 2px; flex-wrap: wrap; }
.sub .s { display: inline-flex; align-items: center; gap: 4px; }
.sub svg { width: 13px; height: 13px; opacity: .8; }

.temps { text-align: right; white-space: nowrap; }
.tmax { font-size: 16px; font-weight: 650; }
.tmin { font-size: 13px; color: var(--muted); margin-left: 6px; }
.conf { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.sunbars { display: flex; gap: 6px; margin-top: 4px; }
.sb { font-size: 10.5px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.bar { width: 100%; min-width: 60px; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--warm); }

.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }
.err { grid-column: 1 / -1; text-align: center; color: #b4452f; padding: 30px; }
.legend { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; }

.ftr { max-width: 720px; margin: 0 auto; padding: 18px 20px 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.accbar { display: flex; align-items: center; gap: 10px; background: #eef6ff; border: 1px solid #cfe3ff; border-radius: 12px; padding: 11px 14px; margin-bottom: 18px; font-size: 13px; color: #1552c9; }
.accbar svg { width: 17px; height: 17px; color: #1e6ff5; flex-shrink: 0; }
.accbar b { font-weight: 650; color: #1552c9; }
.accbar .muted { color: #5a7a9a; }

.sub .solar { color: #b9731a; font-weight: 550; }
.sub .solar svg { color: #ff9f0a; opacity: 1; }

.ico.storm { color: #6f5fc0; }
.skillbar { background: #f0f5fb; border: 1px solid #d4e2f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.skill-h { font-size: 12.5px; color: #2c4a66; font-weight: 600; margin-bottom: 9px; }
.skill-h span { font-weight: 400; color: #000000; }
.skill-rows { display: flex; flex-wrap: wrap; gap: 14px; }
.sk { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #2c4a66; font-weight: 600; }
.sk b { color: #16242c; min-width: 30px; }
.skbar { width: 70px; height: 5px; border-radius: 3px; background: #dce7f1; overflow: hidden; }
.skbar i { display: block; height: 100%; background: #1e6ff5; }
.skill-note { font-size: 11px; color: #000000; margin-top: 9px; }

/* Solárne skóre 0-5 */
.cond { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score { display: inline-flex; align-items: center; gap: 3px; }
.score i { width: 7px; height: 7px; border-radius: 50%; background: #e0e7ec; display: inline-block; }
.score b { font-size: 11px; font-weight: 650; margin-left: 3px; color: var(--muted); }
.sc5 i.on { background: #1e6ff5 } .sc5 b { color: #1e6ff5 }
.sc4 i.on { background: #6fbf73 } .sc4 b { color: #4ba259 }
.sc3 i.on { background: #ff9f0a } .sc3 b { color: #c07f1e }
.sc2 i.on { background: #e07b39 } .sc2 b { color: #c2641f }
.sc1 i.on { background: #d65f4e } .sc1 b { color: #c24a39 }
.sc0 i.on { background: #9fb0ba } .sc0 b { color: #000000 }

/* Moja FVE */
.sub .myield { color: #1f7d56; font-weight: 600; }
.sub .myield svg { color: #1e6ff5; opacity: 1; }
.plant { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #fbfdfe; flex-wrap: wrap; }
.plant .pl-ico { display: inline-flex; color: var(--accent); }
.plant .pl-ico svg { width: 18px; height: 18px; }
.pl-l { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pl-in { width: 74px; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; color: var(--ink); -moz-appearance: textfield; }
.pl-in:focus { border-color: var(--accent); }
.pl-in::-webkit-outer-spin-button, .pl-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pl-u { font-size: 12px; color: var(--muted); margin-left: -4px; }
.week { font-size: 12px; color: var(--ink); margin-left: auto; text-align: right; }
.week b { color: #1f7d56; font-weight: 650; }
.week .hint { color: var(--muted); font-weight: 400; }
@media (max-width: 720px) { .week { margin-left: 0; width: 100%; text-align: left; margin-top: 2px; } }

/* Stranka mesta */
a.city { color: inherit; text-decoration: none; }
a.city:hover { color: var(--accent); }
.single { max-width: 560px; margin: 0 auto; }
.crumb { margin-bottom: 14px; font-size: 13px; }
.crumb a { color: var(--accent-deep); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.seo { max-width: 700px; margin: 18px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.seo b { color: var(--ink); }

/* Spolahlivost + dni 8-14 */
.rel { font-weight: 600; }
.rel svg { width: 12px; height: 12px; opacity: 1; }
.rel-nizka { color: #c0392b; }
.rel-stredna { color: #c2841f; }
.more-btn { width: 100%; text-align: center; background: #f7fafc; border: 0; border-top: 1px solid var(--line); color: var(--accent-deep); font: 600 12.5px system-ui; padding: 11px; cursor: pointer; }
.more-btn:hover { background: #eef4f7; }
.ext { border-top: 1px solid var(--line); }
.ext .day { opacity: .8; }
.ext-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #c2841f; padding: 9px 18px; background: #fff8ef; border-bottom: 1px solid var(--line); }
.ext-note svg { width: 14px; height: 14px; flex: none; }

/* Historia presnosti */
.histbox { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; margin-top: 18px; }
.hist-h { font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.hist-h span { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hist-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.hchip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; color: var(--muted); cursor: pointer; }
.hchip b { font-size: 13px; font-weight: 700; }
.hchip.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(59,167,196,.15); }
.hchip.hp-hi { border-color: #bfe6d3; } .hchip.hp-hi b { color: #1e6ff5; }
.hchip.hp-mid { border-color: #f0dcb8; } .hchip.hp-mid b { color: #c2841f; }
.hchip.hp-lo { border-color: #f1c9c4; } .hchip.hp-lo b { color: #c0392b; }
.hchip.hp-na b { color: var(--muted); }
.hist-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.hist-empty { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #000000; background: #f7fafc; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.hist-empty svg { width: 16px; height: 16px; color: #c2841f; flex: none; margin-top: 1px; }
.hist-detail { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.hist-load { font-size: 12.5px; color: var(--muted); padding: 8px 0; }
.hd-truth { font-size: 13px; margin-bottom: 10px; }
.hd-truth b { color: var(--ink); font-weight: 700; }
.hd-truth .muted { color: var(--muted); font-size: 11.5px; }
.hd-h { font-size: 11.5px; font-weight: 650; color: var(--accent-deep); margin: 10px 0 4px; }
.hd-block { display: flex; flex-direction: column; gap: 3px; }
.hd-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 5px 8px; border-radius: 7px; }
.hd-row.ens { background: #eef6f9; font-weight: 600; }
.hd-row.win .hd-src { color: #1e6ff5; font-weight: 700; }
.hd-src { color: var(--ink); }
.hd-pred { color: var(--muted); font-variant-numeric: tabular-nums; }
.hd-err { font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.hd-err.ok { color: #1e6ff5; }
.hd-err.no { color: #c0392b; }

/* Gate (prihlasenie) */
.gatebox.gate-wrap { margin-top: 18px; }
.gate { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 22px; max-width: 460px; margin: 0 auto; text-align: center; }
.gate-ico { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--accent); background: #eaf6fa; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.gate-ico svg { width: 24px; height: 24px; }
.gate h3 { font-size: 18px; font-weight: 650; margin-bottom: 6px; }
.gate-lead { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.gate-step { display: flex; flex-direction: column; gap: 9px; max-width: 300px; margin: 0 auto; }
.gate input { width: 100%; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; text-align: center; background: #fff; color: var(--ink); }
.gate input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,167,196,.12); }
.gate-code { letter-spacing: 8px; font-weight: 700; font-size: 20px !important; }
.gate-btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 16px; font: 600 14px system-ui; cursor: pointer; }
.gate-btn:hover { background: var(--accent-deep); }
.gate-btn:disabled { opacity: .6; cursor: default; }
.gate-back { background: none; border: 0; color: var(--muted); font: 500 12.5px system-ui; cursor: pointer; padding: 4px; }
.gate-sent { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; line-height: 1.5; }
.gate-msg { font-size: 12.5px; color: var(--accent-deep); margin-top: 12px; min-height: 16px; }
.gate-msg.err { color: #c0392b; }
.gate-priv { font-size: 11px; color: #000000; margin-top: 14px; line-height: 1.5; }
.gate-overlay { position: fixed; inset: 0; background: rgba(244,247,249,.96); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }

/* Nahlad karta */
.card.preview .preview-foot { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 16px; border-top: 1px solid var(--line); background: #f7fbfc; font-size: 12px; color: var(--accent-deep); font-weight: 550; }
.card.preview .preview-foot svg { width: 15px; height: 15px; flex: none; }

/* Ucet + install */
.acct { font-size: 12px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.acct b { color: var(--ink); font-weight: 600; }
.linkbtn { background: none; border: 0; color: var(--accent-deep); font: 600 12px system-ui; cursor: pointer; padding: 0; text-decoration: underline; }
.pwa-install { background: #eaf6fa; color: var(--accent-deep); border: 1px solid #cde9f1; border-radius: 8px; padding: 6px 12px; font: 600 12px system-ui; cursor: pointer; }
.pwa-install:hover { background: #ddeff5; }
.hd-cap { font-size: 11px; color: var(--muted); margin: 10px 0 6px; font-weight: 600; }

/* PWA install banner */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(22,36,44,.18); padding: 11px 12px; max-width: 520px; margin: 0 auto; transform: translateY(150%); opacity: 0; transition: transform .28s cubic-bezier(.2,.7,.3,1), opacity .28s; }
.pwa-banner.show { transform: translateY(0); opacity: 1; }
.pwa-banner .pb-ico img { width: 42px; height: 42px; border-radius: 10px; display: block; }
.pwa-banner .pb-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pwa-banner .pb-tx b { font-size: 13.5px; color: var(--ink); }
.pwa-banner .pb-tx span { font-size: 11.5px; color: var(--muted); }
.pwa-banner .pb-add { background: var(--accent); color: #fff; border: 0; border-radius: 9px; padding: 9px 14px; font: 600 13px system-ui; cursor: pointer; white-space: nowrap; }
.pwa-banner .pb-add:hover { background: var(--accent-deep); }
.pwa-banner .pb-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 4px; }

/* Noc */
.day .night svg { color: #6b78a8; }
.day .night.frost { color: #2f6fd6; font-weight: 600; }
.day .night.frost svg { color: #2f6fd6; }
.sbl { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.sbl svg { width: 11px; height: 11px; color: var(--warm); flex: none; }

/* Gate: odoslany odkaz */
.gate-sent-box { text-align: center; }
.gate-sent-box .sent-tick { width: 52px; height: 52px; margin: 4px auto 12px; color: #fff; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gate-sent-box .sent-tick svg { width: 26px; height: 26px; }
.gate-sent-box h4 { font-size: 17px; font-weight: 650; margin-bottom: 8px; color: var(--ink); }
.gate-sent { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 340px; margin: 0 auto; }
.gate-hint { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.gate-back { margin-top: 14px; }

/* Magic-link overlay */
.magic-ov { position: fixed; inset: 0; background: rgba(244,247,249,.97); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.magic-card { background: var(--card,#fff); border: 1px solid var(--line,#e4ebef); border-radius: 16px; box-shadow: 0 10px 30px rgba(22,36,44,.10); padding: 30px 26px; max-width: 360px; text-align: center; }
.magic-card svg { width: 40px; height: 40px; color: var(--accent,#1e6ff5); margin-bottom: 12px; }
.magic-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 6px; color: var(--ink,#16242c); }
.magic-card p { font-size: 13.5px; color: var(--muted,#5b6b73); line-height: 1.5; }
.magic-card .gate-btn { margin-top: 18px; }

/* Login modal + horne tlacidlo + unlock CTA */
.hdr-right { display: flex; align-items: center; gap: 12px; }
.login-top { background: var(--accent,#1e6ff5); color: #fff; border: none; border-radius: 9px; padding: 9px 16px; font-size: 13.5px; font-weight: 650; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 8px rgba(59,167,196,.25); }
.login-top:hover { filter: brightness(1.05); }
.unlock-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; background: var(--accent,#1e6ff5); color: #fff; border: none; border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 650; cursor: pointer; box-shadow: 0 3px 10px rgba(59,167,196,.28); }
.unlock-cta svg { width: 18px; height: 18px; flex: none; }
.unlock-cta:hover { filter: brightness(1.05); }
.login-modal { position: fixed; inset: 0; background: rgba(15,25,30,.55); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 36px 14px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.login-modal-box { position: relative; width: 100%; max-width: 420px; background: var(--card,#fff); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.32); margin: 12px auto; }
.login-modal-x { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted,#8a99a0); cursor: pointer; z-index: 2; padding: 4px 10px; }
.login-modal-body { padding: 6px 6px 2px; }
.login-modal-body .gate { box-shadow: none; border: none; }

/* Install help modal */
.inst-help { position: fixed; inset: 0; background: rgba(15,25,30,.55); z-index: 320; display: flex; align-items: center; justify-content: center; padding: 24px; }
.inst-card { position: relative; background: var(--card,#fff); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.32); padding: 28px 24px; max-width: 360px; text-align: center; }
.inst-card .inst-x { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 26px; line-height: 1; color: #000; cursor: pointer; padding: 4px 8px; }
.inst-ico img { width: 56px; height: 56px; border-radius: 13px; margin-bottom: 12px; }
.inst-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; color: var(--ink); }
.inst-card p { font-size: 13.5px; color: #000; line-height: 1.55; }
.inst-card .inst-sub { font-size: 12px; color: #000; margin-top: 10px; }

/* Moje mesta */
.mycities { margin-bottom: 26px; padding: 18px 18px 20px; background: linear-gradient(180deg,#f0f9fc,#f7fbfc); border: 1px solid #cfe7ef; border-radius: 16px; }
.mc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mc-head h2 { font-size: 17px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.mc-head h2 svg { width: 18px; height: 18px; color: var(--accent); }
.mc-sub { font-size: 12px; color: #000; }
.mc-add { display: flex; gap: 8px; margin-bottom: 8px; }
.mc-add input { flex: 1; font-size: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fff; color: var(--ink); }
.mc-add input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,167,196,.12); }
.mc-btn { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 0 18px; font: 650 13.5px system-ui; cursor: pointer; white-space: nowrap; }
.mc-btn:hover { filter: brightness(1.05); }
.mc-btn:disabled { opacity: .6; cursor: default; }
.mc-msg { font-size: 12.5px; color: var(--accent-deep); min-height: 14px; margin-bottom: 6px; }
.mc-msg.err { color: #c0392b; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .mc-grid { grid-template-columns: 1fr; } }
.mc-empty { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: #000; background: #fff; border: 1px dashed #cfe7ef; border-radius: 12px; padding: 18px; }
.mc-empty svg { width: 16px; height: 16px; color: var(--accent); }
.card-hd .hd-l { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.mc-pin { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--accent-deep); background: #eaf6fa; padding: 2px 7px; border-radius: 20px; }
.mc-pin svg { width: 11px; height: 11px; }
.city-rm { background: none; border: none; color: #000; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .45; }
.city-rm:hover { opacity: 1; color: #c0392b; }

/* Rezim majitela FVE (ked je zadany kWp) */
.card.has-plant { border-color: #bfe6d3; }
.card.has-plant .card-hd { background: linear-gradient(180deg,#f1fbf6,#fff); }
.card.has-plant .sub .solar { display: none; }
.card.has-plant .myield { order: -1; display: inline-flex; align-items: center; gap: 4px; background: #e7f9ef; color: #1552c9; font-weight: 700; padding: 3px 9px; border-radius: 8px; font-size: 12.5px; }
.card.has-plant .myield svg { width: 13px; height: 13px; color: #1e6ff5; opacity: 1; }
.kwp-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: #1552c9; background: #e7f9ef; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.kwp-badge svg { width: 11px; height: 11px; }
.pl-saved { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 650; color: #1e6ff5; white-space: nowrap; }
.pl-saved svg { width: 13px; height: 13px; }
.fve-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 18px 10px; padding: 12px 14px; background: linear-gradient(135deg,#1e6ff5,#1552c9); border-radius: 12px; color: #fff; }
.fve-main { display: flex; align-items: center; gap: 11px; }
.fve-main svg { width: 26px; height: 26px; color: #fff; flex: none; }
.fve-tx { display: flex; flex-direction: column; line-height: 1.2; }
.fve-lbl { font-size: 11.5px; opacity: .92; }
.fve-big { font-size: 19px; font-weight: 750; }
.fve-eur { font-size: 14px; font-weight: 600; opacity: .92; }
.fve-week { font-size: 12px; opacity: .96; text-align: right; }
.fve-week b { font-weight: 750; }
@media (max-width: 720px) { .fve-week { text-align: left; width: 100%; } }

/* FVE rezim: bateria + QiTune signaly (wash/heat/ev) */
.fve-banner { display: block; }
.fve-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fve-soc { font-size: 12.5px; opacity: .96; }
.fve-soc b { font-weight: 750; }
.fve-signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.sig { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border-radius: 20px; padding: 4px 11px 4px 8px; font-size: 12px; font-weight: 600; }
.sig i { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.sig-g i { background: #46e09a; }
.sig-a i { background: #ffd24a; }
.sig-r i { background: #ff8a8a; }
.fve-week { font-size: 11.5px; opacity: .95; margin-top: 11px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 9px; }
.fve-week b { font-weight: 750; }

/* Kalibrovany stlpec: model (sivy) vs nas odhad (zeleny akcent) */
.temps { display: flex; align-items: flex-start; justify-content: flex-end; gap: 7px; flex-wrap: wrap; text-align: right; }
.tcol { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.tcol .tval { display: flex; align-items: baseline; gap: 4px; }
.tcol .tmax { font-size: 21px; font-weight: 700; }
.tcol .tmin { font-size: 13px; font-weight: 600; opacity: .6; }
.t-tag, .t-tag2 { font-size: 9px; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; line-height: 1; margin-bottom: 2px; display: inline-flex; align-items: center; gap: 2px; }
.t-tag svg { width: 10px; height: 10px; stroke-width: 3.2; }
.t-model { color: #000000; }
.t-model .t-tag2 { color: #9aa6ad; }
.t-model .conf { font-size: 10px; color: #6b7c86; font-weight: 600; margin-top: 2px; }
.t-cal { background: rgba(30,111,245,.08); border: 1px solid rgba(30,111,245,.3); border-radius: 11px; padding: 3px 8px 4px; }
.t-cal .t-tag { color: #1552c9; }
.t-cal .tmax { color: #1552c9; }
.t-cal .tmin { color: #1e6ff5; opacity: .8; }
.t-cal .t-sub { font-size: 8px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: #1e6ff5; margin-top: 1px; }



/* Ikona pocasia nad teplotou (model aj kalibrovana) */
.ti { display: inline-flex; margin-bottom: 2px; color: var(--accent); }
.ti svg { width: 20px; height: 20px; }
.ti.sun { color: var(--warm); }
.ti.rain { color: var(--rain); }
.ti.snow { color: var(--snow); }
.ti.storm { color: #6f5fc0; }

/* Odkaz na porovnanie s realitou */
.verify-cta { display: block; text-align: center; margin: 0 auto 14px; max-width: 440px; background: #fff; border: 1px solid #cfe0d8; color: #1552c9; font-weight: 700; font-size: 13px; text-decoration: none; padding: 10px 14px; border-radius: 12px; }
.verify-cta:active { background: #f2f7f4; }

/* Live refresh - jemny pulz pri aktualizacii */
.meta.upd { animation: metapulse 1.2s ease; }
@keyframes metapulse { 0% { opacity: .3; } 100% { opacity: 1; } }

/* FVE plan spotrebicov (druhy riadok banera) */
.fve-appliances { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.appl { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border-radius: 20px; padding: 5px 12px 5px 9px; font-size: 12px; font-weight: 600; }
.appl-ic { display: inline-flex; }
.appl-ic svg { width: 17px; height: 17px; }
.appl b { font-weight: 800; margin-right: 1px; }
.appl.dim { opacity: .48; }
.fve-soc svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }

/* FVE polia: zoskupene bublinky s ikonkou (nerozpadnu sa pri zalomeni) */
.pl-l svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--accent); margin-right: 2px; }
.pl-field { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 2px 9px 2px 7px; }
.pl-field .pl-fi { display: inline-flex; color: var(--accent); flex: none; }
.pl-field .pl-fi svg { width: 15px; height: 15px; }
.pl-field .pl-fi.pl-eur { font-weight: 800; font-size: 13px; line-height: 1; }
.pl-field .pl-in { width: 46px; border: none; background: transparent; padding: 4px 0; }
.pl-field .pl-in:focus { border: none; }
.pl-field .pl-u { margin-left: 0; }

/* Plan spotrebicov POD kazdym dnom (cela sirka riadku) */
.day-appl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
.dappl { display: inline-flex; align-items: center; gap: 5px; background: #dfefff; border: 1px solid #d9ebe0; border-radius: 16px; padding: 3px 10px 3px 7px; font-size: 11.5px; font-weight: 600; color: #1552c9; }
.dappl-ic { display: inline-flex; color: #1e6ff5; }
.dappl-ic svg { width: 15px; height: 15px; }
.dappl b { font-weight: 800; color: #0f5c3e; margin-right: 1px; }
.dappl.dim { opacity: .42; }

/* ===== v3: dni ako oddelene karty ===== */
.card { background: transparent; border: none; box-shadow: none; }
.card .card-hd, .card .plant { background: #fff; }
.card .card-hd { border-radius: 16px 16px 0 0; border: 1px solid #e3ebef; border-bottom: none; }
.card .plant { border: 1px solid #e3ebef; border-top: 1px solid #eef3f5; border-radius: 0 0 16px 16px; margin-bottom: 12px; }
.card .fve-banner { border-radius: 16px; margin: 0 0 12px; }
.day { background: #fff; border: 2px solid #e4ecf0; border-radius: 16px; margin: 0 0 11px; padding: 13px 15px; box-shadow: 0 1px 3px rgba(16,40,60,.05); }
.day.today { border-color: #1e6ff5 !important; box-shadow: 0 4px 16px rgba(30,111,245,.13); }
.day .dow { padding-top: 2px; }
.day .dow b { font-size: 15px; }
.ext { padding-top: 4px; }
.ext .day { opacity: .85; }
.more-btn { margin: 2px 0 10px; }
.unlock-cta { margin-top: 2px; }
.sunbars .sbl b { font-weight: 800; }

/* kWh pri kazdej cinnosti */
.dappl-k { font-size: 10px; font-weight: 800; opacity: .6; margin-left: 3px; }

/* auto pod minimom - oranzove varovanie */
.dappl.warn { background: #fdf3e2; border-color: #f0d9ad; color: #8a5a12; opacity: 1; }
.dappl.warn .dappl-ic { color: #c2841f; }
.dappl.warn b { color: #8a5a12; }

/* ===== Energy view (dark FVE dashboard) ===== */
.mode-tgl { display: inline-flex; align-items: center; gap: 6px; background: #10231a; color: #ff9f0a; border: 1px solid #1e6ff5; border-radius: 20px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mode-tgl svg { width: 15px; height: 15px; }
body.ev-on { background: #0b141b; }
body.ev-on #app, body.ev-on #mycities, body.ev-on .accbar, body.ev-on .skillbar, body.ev-on .verify-cta, body.ev-on #legend, body.ev-on .ftr { display: none !important; }
body.ev-on .hdr, body.ev-on .hdr-in { background: #0b141b; color: #eaf6da; }
body.ev-on .hdr h1, body.ev-on .meta { color: #eaf6da; }
#energyview { max-width: 720px; margin: 0 auto; padding: 4px 14px 50px; }
.ev-empty { color: #9fb3a8; font-size: 13px; padding: 24px 6px; }
.ev-card { background: #101c25; border: 1px solid #1a2a35; border-radius: 18px; padding: 16px 16px 14px; margin: 0 0 14px; color: #0d2440; }
.ev-lbl { font-size: 12px; letter-spacing: .08em; font-weight: 800; color: #cfe3cd; margin-bottom: 12px; }
.ev-lbl::after { content: ""; display: block; width: 26px; height: 3px; background: #ff9f0a; border-radius: 2px; margin-top: 5px; }
.ev-lbl2 { font-size: 10.5px; letter-spacing: .07em; font-weight: 800; color: #8ba38f; margin: 14px 0 4px; }
.ev-lbl2 span { font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .7; margin-left: 6px; }
.ev-hero { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ev-sub { font-size: 12.5px; color: #9fb3a8; margin-bottom: 2px; }
.ev-big { font-size: 44px; font-weight: 800; line-height: 1.05; color: #fff; }
.ev-big span { font-size: 16px; font-weight: 700; color: #9fb3a8; }
.ev-trend { font-size: 12px; font-weight: 700; color: #ff9f0a; margin-top: 4px; }
.ev-trend.neg { color: #ffb35c; }
.ev-heroR { text-align: center; min-width: 120px; }
.ev-gsvg { width: 120px; height: 68px; display: block; }
.ev-gv { font-size: 19px; font-weight: 800; color: #fff; margin-top: -34px; }
.ev-gv span { font-size: 12px; color: #9fb3a8; }
.ev-gs { font-size: 8.5px; letter-spacing: .06em; color: #8ba38f; font-weight: 700; margin-top: 2px; }
.ev-curve { width: 100%; height: auto; display: block; }
.ev-grid { stroke: #1c2c37; stroke-width: 1; }
.ev-ax { fill: #7d948b; font-size: 8.5px; font-weight: 600; }
.ev-dash { stroke: #5f7a6a; stroke-width: 1; stroke-dasharray: 3 3; }
.ev-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ev-tile { text-align: center; padding: 10px 4px 8px; border-radius: 14px; background: #0d1720; border: 1px solid #1c2c37; }
.ev-tile.off { opacity: .38; }
.ev-tlbl { font-size: 8.6px; letter-spacing: .05em; font-weight: 800; color: #9fb3a8; margin-bottom: 8px; }
.ev-tic { display: inline-flex; color: #d7ead2; }
.ev-tic svg { width: 34px; height: 34px; stroke-width: 1.4; }
.ev-tval { font-size: 21px; font-weight: 800; color: #ff9f0a; margin-top: 6px; }
.ev-trec { font-size: 9.5px; color: #8ba38f; font-weight: 600; margin-top: 1px; }
.ev-carsw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-carsw:has(.ev-car:only-child) { grid-template-columns: 1fr; }
.ev-car { background: #0d1720; border: 1px solid #1c2c37; border-radius: 14px; padding: 11px 12px; }
.ev-carh { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .06em; font-weight: 800; color: #cfe3cd; }
.ev-cari { display: inline-flex; color: #d7ead2; }
.ev-cari svg { width: 24px; height: 24px; stroke-width: 1.5; }
.ev-carb { margin: 7px 0 8px; }
.ev-carp { font-size: 23px; font-weight: 800; color: #ff9f0a; margin-right: 7px; }
.ev-carp.warn { color: #ffb35c; }
.ev-cars { font-size: 10.5px; color: #9fb3a8; font-weight: 600; }
.ev-dots { display: flex; gap: 5px; }
.ev-dots i { width: 8px; height: 8px; border-radius: 50%; background: #22333f; }
.ev-dots i.on { background: #ff9f0a; }
.ev-d3w { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ev-d3 { text-align: center; background: #0d1720; border: 1px solid #1c2c37; border-radius: 14px; padding: 11px 6px 10px; }
.ev-d3.cur { border-color: #ff9f0a; }
.ev-d3l { font-size: 9.5px; letter-spacing: .06em; font-weight: 800; color: #9fb3a8; margin-bottom: 6px; }
.ev-d3i { display: inline-flex; color: #d7ead2; }
.ev-d3i svg { width: 26px; height: 26px; stroke-width: 1.5; }
.ev-d3v { font-size: 15.5px; font-weight: 800; color: #ff9f0a; margin-top: 5px; }
.ev-d3v span { font-size: 10.5px; color: #9fb3a8; }
.ev-d3s { font-size: 9px; color: #8ba38f; font-weight: 600; margin-top: 2px; }

/* F1: kurenie tile + auto-fit dlazdice */
.ev-tiles { grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); }
.ev-tu { font-size: 11px; color: #9fb3a8; }

/* F2: priority modal + tlacidlo */
.pl-prio { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px 11px; font-size: 12px; font-weight: 700; color: #1552c9; cursor: pointer; }
.pl-prio svg { width: 14px; height: 14px; }
.prio-ov { position: fixed; inset: 0; background: rgba(10,24,32,.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; }
.prio-box { background: #fff; border-radius: 18px; width: 100%; max-width: 420px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.prio-hd { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; font-weight: 800; }
.prio-hd svg { width: 16px; height: 16px; vertical-align: -3px; color: #1552c9; }
.prio-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #000; opacity: .55; }
.prio-tabs { display: flex; gap: 7px; margin: 12px 0 8px; }
.prio-tab { flex: 1; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; color: #000; }
.prio-tab.on { background: #dfefff; border-color: #1e6ff5; color: #1552c9; }
.prio-sub { font-size: 11.5px; opacity: .65; margin-bottom: 9px; }
.prio-it { display: flex; align-items: center; gap: 9px; padding: 8px 6px 8px 4px; border-bottom: 1px solid #eef3f5; }
.prio-n { width: 20px; height: 20px; border-radius: 50%; background: #dfefff; color: #1552c9; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.prio-l { flex: 1; font-size: 13.5px; font-weight: 650; }
.prio-mv { width: 34px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #1552c9; }
.prio-mv:disabled { opacity: .28; }
.prio-mv svg { width: 16px; height: 16px; }

/* F3: rezimy dna */
.ev-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-mode { display: inline-flex; align-items: center; gap: 6px; background: #0d1720; border: 1px solid #1c2c37; color: #cfe3cd; border-radius: 20px; padding: 8px 13px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ev-mode svg { width: 14px; height: 14px; }
.ev-mode.on { background: #123222; border-color: #ff9f0a; color: #ff9f0a; }

/* notifikacie toggle v ucte */
.ntf { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-right: 14px; cursor: pointer; }
.ntf input { width: 17px; height: 17px; accent-color: #1e6ff5; }

/* M5: Pro plan */
.plan-tag { display: inline-flex; align-items: center; border-radius: 16px; padding: 4px 11px; font-size: 11.5px; font-weight: 800; margin-right: 12px; }
.plan-tag.pro { background: #dfefff; border: 1px solid #1e6ff5; color: #1552c9; }
.plan-tag.free { background: #10231a; border: 1px solid #1e6ff5; color: #ff9f0a; cursor: pointer; }
.up-box { max-width: 400px; }
.up-h { font-size: 20px; font-weight: 800; margin-bottom: 3px; }
.up-sub { font-size: 12.5px; opacity: .7; margin-bottom: 12px; }
.up-list { margin: 0 0 14px; padding-left: 18px; }
.up-list li { font-size: 13px; line-height: 1.7; }
.up-cta { display: block; width: 100%; border: none; border-radius: 12px; padding: 13px; font-size: 14.5px; font-weight: 800; cursor: pointer; background: #1e6ff5; color: #fff; margin-bottom: 8px; }
.up-cta.sec { background: #dfefff; color: #1552c9; border: 1px solid #cfe0d8; }
.up-note { font-size: 10.5px; opacity: .55; text-align: center; margin-top: 4px; }
.up-row { border-color: #1e6ff5; background: #f2faf6; }

/* G1: semafor dni + Dnes zvladnes + prebytok + najlepsi den */
.day.day-g { border-color: #bfe6ff; }
.day.day-a { border-color: #fbe3ad; }
.day.day-r { border-color: #f5c2c2; }
.fve-hsub { display: block; font-size: 12px; opacity: .92; margin-top: 3px; }
.fve-dnes { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; opacity: .85; margin: 12px 0 7px; }
.fve-list { display: flex; flex-direction: column; gap: 6px; }
.fl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.fl svg { width: 15px; height: 15px; flex: none; }
.fl.ok svg { color: #b9f56b; }
.fl.no { opacity: .82; }
.fl.no svg { color: #ffd24a; }
.ev-sur { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ev-surv { font-size: 30px; font-weight: 800; color: #ff9f0a; }
.ev-surv.low { color: #ffb35c; }
.ev-surv span { font-size: 14px; color: #9fb3a8; }
.ev-surr { font-size: 12px; color: #cfe3cd; font-weight: 600; }
.ev-best { display: flex; justify-content: space-between; align-items: baseline; }
.ev-bd { font-size: 17px; font-weight: 800; color: #fff; }
.ev-bv { font-size: 22px; font-weight: 800; color: #ff9f0a; }
.ev-bv span { font-size: 12px; color: #9fb3a8; }
.ev-bs { font-size: 12px; color: #cfe3cd; font-weight: 600; margin-top: 6px; }
.ev-carst { font-size: 11px; font-weight: 700; color: #ff9f0a; margin: -3px 0 8px; }
.ev-carst.warn { color: #ffb35c; }

.prio-sec { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 800; color: #1552c9; margin: 14px 0 8px; }
.prio-car { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.prio-ci { display: inline-flex; color: #1552c9; flex: none; }
.prio-ci svg { width: 17px; height: 17px; }
.prio-cn { flex: 1; min-width: 0; font-size: 13px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.prio-ck { width: 58px; font-size: 13px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 9px; outline: none; -moz-appearance: textfield; }
.prio-ck::-webkit-outer-spin-button, .prio-ck::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prio-cu { font-size: 10.5px; color: var(--muted); flex: none; }
.prio-cico { display: inline-flex; color: #1552c9; flex: none; }
.prio-cico svg { width: 16px; height: 16px; }

.ev-assist { display: flex; align-items: flex-start; gap: 11px; background: linear-gradient(135deg, #123222, #101c25); border-color: #1e6ff5; }
.ev-ai { display: inline-flex; color: #ff9f0a; flex: none; margin-top: 1px; }
.ev-ai svg { width: 22px; height: 22px; }
.ev-ail { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; color: #ff9f0a; margin-bottom: 3px; }
.ev-ait { font-size: 13.5px; font-weight: 650; color: #eaf6da; line-height: 1.45; }

.fve-banner[hidden]{display:none !important;}

/* F2: jednotlive modely pod dnom */
.models-tgl { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 700; color: #1552c9; cursor: pointer; }
.models-tgl svg { width: 14px; height: 14px; }
.models-tgl.on { background: #dfefff; border-color: #1e6ff5; }
.day-models { grid-column: 1 / -1; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
.dm-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dm-lbl { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-right: 2px; }
.dm-chip { display: inline-flex; align-items: center; gap: 5px; background: #f4f8fa; border: 1px solid #e3ebef; border-radius: 8px; padding: 3px 8px; font-size: 11.5px; color: #33414a; }
.dm-chip b { font-weight: 800; color: #1552c9; }
.dm-chip i { font-style: normal; font-weight: 700; color: var(--muted); font-size: 10.5px; }
.dm-blend { font-size: 11.5px; color: #1552c9; margin-left: 2px; }
.dm-blend b { font-weight: 800; }

/* A+B: vychod/zapad + strecha nastavenia */
.sun-rs svg { color: #e0a63a; }
.prio-rf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.prio-rfl { font-size: 13px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.prio-rfl svg { width: 15px; height: 15px; color: #1552c9; }
.prio-tilt { width: 58px; font-size: 13px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; outline: none; -moz-appearance: textfield; margin-left: auto; }
.prio-tilt::-webkit-outer-spin-button, .prio-tilt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prio-rfu { font-size: 13px; color: var(--muted); }
.prio-azw { margin-bottom: 4px; }
.prio-azrow { display: flex; gap: 6px; margin-top: 7px; }
.prio-az { flex: 1; padding: 9px 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; color: #000; cursor: pointer; }
.prio-az.on { background: #dfefff; border-color: #1e6ff5; color: #1552c9; }

/* C1: realna krivka box */
.ev-curvebox { width: 100%; }

/* C2: casova os plan dna */
.ev-tl-box { background: #101c25; border: 1px solid #1a2a35; border-radius: 18px; padding: 16px 16px 14px; margin: 0 0 14px; }
.tl-hdr { position: relative; height: 14px; margin: 2px 0 8px 122px; }
.tl-hdr span { position: absolute; transform: translateX(-50%); font-size: 9px; font-weight: 700; color: #7d948b; }
.tl-rows { display: flex; flex-direction: column; gap: 7px; }
.tl-row { display: flex; align-items: center; gap: 7px; }
.tl-ic { display: inline-flex; color: #ff9f0a; flex: none; }
.tl-ic svg { width: 16px; height: 16px; }
.tl-lbl { width: 92px; flex: none; font-size: 11.5px; font-weight: 650; color: #cfe3cd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar { position: relative; flex: 1; height: 12px; background: #0d1720; border-radius: 6px; overflow: hidden; }
.tl-bar i { position: absolute; top: 0; height: 100%; background: linear-gradient(90deg, #ffb84d, #ff9f0a); border-radius: 6px; min-width: 4px; }
.tl-t { flex: none; font-size: 9.5px; font-weight: 700; color: #8ba38f; width: 42px; text-align: right; }

/* ===== Energy view LIGHT ===== */
body.ev-on { background: #eef3f5; }
body.ev-on .hdr, body.ev-on .hdr-in { background: #fff; color: #0f1b24; }
body.ev-on .hdr h1, body.ev-on .meta { color: #0f1b24; }
body.ev-on .mode-tgl { background: #dfefff; color: #1552c9; border-color: #1e6ff5; }
#energyview .ev-card { background: #fff; border-color: #e6edf0; color: #0f1b24; box-shadow: 0 1px 2px rgba(16,40,60,.05); }
#energyview .ev-lbl { color: #0f1b24; }
#energyview .ev-lbl::after { background: #1e6ff5; }
#energyview .ev-lbl2 { color: #5a6b73; }
#energyview .ev-lbl2 span { color: #7d8b93; }
#energyview .ev-sub { color: #5a6b73; }
#energyview .ev-big { color: #0f1b24; }
#energyview .ev-big span { color: #5a6b73; }
#energyview .ev-trend { color: #1552c9; }
#energyview .ev-trend.neg { color: #c2841f; }
#energyview .ev-gv { color: #0f1b24; }
#energyview .ev-gv span, #energyview .ev-gs { color: #5a6b73; }
#energyview .ev-ax { fill: #8a9aa2; }
#energyview .ev-grid { stroke: #e6edf0; }
#energyview .ev-dash { stroke: #b7c4ca; }
#energyview .ev-curve path[fill="none"] { stroke: #ff9f0a !important; }
#energyview .ev-curve circle { stroke: #ff9f0a !important; }
#energyview .ev-gsvg path[stroke="#ff9f0a"] { stroke: #ff9f0a !important; }
#energyview .ev-gsvg path[stroke="#22303a"] { stroke: #e6edf0 !important; }
#energyview .ev-tile { background: #f4f8fa; border-color: #e6edf0; }
#energyview .ev-tlbl { color: #5a6b73; }
#energyview .ev-tic { color: #33414a; }
#energyview .ev-tval { color: #1552c9; }
#energyview .ev-trec { color: #7d8b93; }
#energyview .ev-tu { color: #5a6b73; }
#energyview .ev-car { background: #f4f8fa; border-color: #e6edf0; }
#energyview .ev-carh { color: #0f1b24; }
#energyview .ev-cari { color: #33414a; }
#energyview .ev-carp { color: #1552c9; }
#energyview .ev-carp.warn { color: #c2841f; }
#energyview .ev-cars { color: #5a6b73; }
#energyview .ev-carst { color: #1552c9; }
#energyview .ev-carst.warn { color: #c2841f; }
#energyview .ev-dots i { background: #dbe4e8; }
#energyview .ev-dots i.on { background: #1e6ff5; }
#energyview .ev-mode { background: #fff; border-color: #e6edf0; color: #33414a; }
#energyview .ev-mode.on { background: #dfefff; border-color: #1e6ff5; color: #1552c9; }
#energyview .ev-surv { color: #1552c9; }
#energyview .ev-surv.low { color: #c2841f; }
#energyview .ev-surv span { color: #5a6b73; }
#energyview .ev-surr { color: #33414a; }
#energyview .ev-bd { color: #0f1b24; }
#energyview .ev-bv { color: #1552c9; }
#energyview .ev-bv span { color: #5a6b73; }
#energyview .ev-bs { color: #33414a; }
#energyview .ev-d3 { background: #f4f8fa; border-color: #e6edf0; }
#energyview .ev-d3.cur { border-color: #1e6ff5; }
#energyview .ev-d3l { color: #5a6b73; }
#energyview .ev-d3i { color: #33414a; }
#energyview .ev-d3v { color: #1552c9; }
#energyview .ev-d3v span { color: #5a6b73; }
#energyview .ev-d3s { color: #8a9aa2; }
#energyview .ev-assist { background: linear-gradient(135deg, #dfefff, #f4f8fa); border-color: #1e6ff5; }
#energyview .ev-ai { color: #1e6ff5; }
#energyview .ev-ail { color: #1552c9; }
#energyview .ev-ait { color: #0f1b24; }
#energyview .tl-hdr span { color: #8a9aa2; }
#energyview .tl-ic { color: #1e6ff5; }
#energyview .tl-lbl { color: #0f1b24; }
#energyview .tl-bar { background: #eef3f5; }
#energyview .tl-bar i { background: linear-gradient(90deg, #1e6ff5, #00c2ff); }
#energyview .tl-t { color: #5a6b73; }

/* D2: nabijacka prepinac */
.prio-chg { margin-bottom: 11px; }
.prio-seg { display: flex; gap: 6px; margin-top: 7px; }
.prio-ch, .prio-ac { flex: 1; padding: 9px 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12.5px; font-weight: 700; color: #33414a; cursor: pointer; }
.prio-ch.on, .prio-ac.on { background: #eaf2ff; border-color: #1e6ff5; color: #1552c9; }
