/* Panel iPad – wspólny styl wszystkich trybów (Instrument v3).
   iOS 9.3.5 / Safari 9: bez CSS Grid, bez gap we flexboxie, bez var(); flexbox i animacje z prefiksami -webkit-. */

@font-face { font-family: 'BC'; src: url('fonts/barlow-condensed-300.woff') format('woff'); font-weight: 300; }
@font-face { font-family: 'BC'; src: url('fonts/barlow-condensed-400.woff') format('woff'); font-weight: 400; }
@font-face { font-family: 'BC'; src: url('fonts/barlow-condensed-500.woff') format('woff'); font-weight: 500; }
@font-face { font-family: 'BC'; src: url('fonts/barlow-condensed-600.woff') format('woff'); font-weight: 600; }
@font-face { font-family: 'JBM'; src: url('fonts/jetbrains-mono-400.woff') format('woff'); font-weight: 400; }

html, body { margin: 0; padding: 0; width: 1024px; height: 768px; background: #0E1012; overflow: hidden; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; -webkit-box-sizing: border-box; }
.root { position: absolute; left: 0; top: 0; width: 1024px; height: 768px; padding: 28px; color: #F3F4F6; font-family: 'BC', sans-serif; }
.num { font-variant-numeric: tabular-nums; -webkit-font-feature-settings: "tnum"; font-feature-settings: "tnum"; }

/* układ */
.row { display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; }
.col { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.between { -webkit-justify-content: space-between; justify-content: space-between; }
.cx { -webkit-justify-content: center; justify-content: center; }
.mid { -webkit-align-items: center; align-items: center; }
.base { -webkit-align-items: baseline; align-items: baseline; }
.end { -webkit-align-items: flex-end; align-items: flex-end; }
.grow { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; }
.fix { -webkit-flex-shrink: 0; flex-shrink: 0; }
.hide { display: none; }

/* typografia i kolory */
.mono { font-family: 'JBM', monospace; }
.muted { color: #9CA3AF; }
.faint { color: #6B7280; }
.amber { color: #F59E0B; }
.good { color: #34D399; }
.mod { color: #FB923C; }
.bad { color: #F87171; }
.cold { color: #38BDF8; }
.card { background: #16191D; border: 1px solid #262B33; border-radius: 14px; padding: 18px 20px; }
.h { font-size: 23px; font-weight: 600; letter-spacing: 0.06em; line-height: 28px; text-align: center; }
.lab { font-size: 15px; font-weight: 500; letter-spacing: 0.08em; color: #9CA3AF; text-transform: uppercase; }
.ico { display: block; }
.ico.hide { display: none; }
.rule { height: 1px; background: #262B33; }

/* górny pasek */
.top { height: 52px; margin-bottom: 16px; }
.top .meta { font-size: 15px; line-height: 22px; }
.top .meta .ico { margin: 0 4px 0 2px; }
.top .names { color: #7C8594; }
.pill { border-radius: 22px; padding: 6px 18px; }
.pill.warn { border: 1.5px solid #D97706; background: rgba(245,158,11,0.12); }
.pill.badp { border: 1.5px solid #DC2626; background: rgba(248,113,113,0.12); }
.pill.ok { border: 1.5px solid #374151; }
.pill span { font-size: 20px; font-weight: 600; margin-left: 10px; }
.pill.warn span { color: #FBBF24; }
.pill.badp span { color: #FCA5A5; }
.pill.ok span { color: #9CA3AF; }
.mode { margin-right: 16px; }
.mode .t { font-size: 13px; letter-spacing: 0.1em; color: #9CA3AF; }
.dots { margin-top: 5px; }
.dots i { display: block; width: 7px; height: 7px; border-radius: 4px; background: #374151; margin-left: 5px; }
.dots i.on { background: #F59E0B; }
.clock { font-size: 48px; font-weight: 600; line-height: 1; }

/* rzędy i karty */
.r1 { height: 294px; margin-bottom: 16px; }
.r2 { height: 334px; }
.ra { height: 300px; margin-bottom: 16px; }   /* tryby z paskiem na dole */
.rb { height: 264px; margin-bottom: 16px; }
.mr { margin-right: 16px; }
.w300 { width: 300px; }
.c-side { width: 230px; }
.c-side + .c-side { margin-left: 16px; }

/* łuki */
.gauge { position: relative; }
.gauge > svg { position: absolute; left: 0; top: 0; }
.gauge .val { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* tabela parametrów */
.tbl .tr { border-bottom: 1px solid #262B33; padding: 4px 0; }
.tbl .tr:last-child { border-bottom: 0; }
.tbl .tr .ico { margin-right: 8px; }
.tbl .v { font-size: 20px; font-weight: 600; }

/* pasek rekomendacji */
.reco { border-top: 1px solid #262B33; padding-top: 8px; }
.reco .main { font-size: 20px; font-weight: 600; margin-left: 12px; }
.reco .sep { font-size: 20px; color: #6B7280; margin: 0 8px; }
.reco .add { font-size: 20px; font-weight: 500; color: #F59E0B; }

/* meteogram */
.c-met { padding: 14px 18px; }

/* plan dnia */
.ev { margin-top: 12px; padding-left: 13px; }
.ev .t { font-size: 18px; width: 58px; color: #F59E0B; }
.ev .n { font-size: 20px; }
.ev .rel { font-size: 15px; color: #F59E0B; margin-top: 1px; }
.ev.past { opacity: 0.4; }
.ev.past .t { color: #9CA3AF; }
.ev.now { border-left: 3px solid #F59E0B; padding-left: 10px; }
.empty .n { font-size: 20px; color: #9CA3AF; margin-top: 14px; }
.empty .tm { font-size: 18px; margin-top: 10px; }

/* wartości w kafelkach */
.kv .lab { margin-bottom: 4px; }
.kv .v { font-size: 40px; font-weight: 600; line-height: 1; }
.kv .s { font-size: 16px; color: #9CA3AF; margin-top: 4px; }

/* sloty prognozy */
.slot { width: 64px; }
.slot .hr { font-size: 15px; color: #9CA3AF; }
.slot .tv { font-size: 26px; font-weight: 600; margin-top: 2px; }
.slot .ds { font-size: 15px; color: #9CA3AF; }

/* paski porównania */
.bar { height: 10px; border-radius: 5px; }

/* pasek przewijany */
.ticker { height: 48px; overflow: hidden; white-space: nowrap; padding: 0 0 0 18px; }
.ticker .lab { color: #F59E0B; margin-right: 18px; }
.ticker .lane { position: relative; overflow: hidden; height: 48px; }
.ticker .run { position: absolute; left: 0; top: 0; height: 48px; line-height: 48px; font-size: 20px;
  -webkit-animation: tick 60s linear infinite; animation: tick 60s linear infinite; }
.ticker .run b { font-weight: 600; color: #9CA3AF; margin: 0 14px; }
@-webkit-keyframes tick { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* wyciszenie i noc */
.calm { color: #9CA3AF; }
.calm .bigclock { font-size: 220px; font-weight: 300; line-height: 0.85; color: #B4BBC4; }
.calm .info { width: 290px; padding: 0 16px; }
.calm .info .v { font-size: 30px; font-weight: 500; color: #B4BBC4; margin-top: 6px; }
.calm .vr { width: 1px; background: #1F242B; }
.night { background: #000; }
.night .bigclock { font-size: 190px; font-weight: 300; line-height: 1; color: #2E2E2E; }
