/* SpeedOk driving widget - the same card as in the app (GitHub #87 design, #89). Large card (PRO) .sw-l, small card (free) .sw-s.
   This file is identical in sites/oduvis.com/ and sites/speedok.oduvis.com/ (tools/sitestamp_test.py checks it); change both.
   Sizes in px are the app's dp, so a 360 px wide phone mock-up shows the card at its real size. */
.sw { position: relative; box-sizing: border-box; color: #f5f7fa; background: rgba(15, 27, 43, 0.8); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; line-height: normal; text-align: left; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.sw * { box-sizing: border-box; }
.sw-l { width: 248px; padding: 12px; border-radius: 22px; display: flex; flex-direction: column; gap: 8px; }
.sw-s { height: 60px; padding: 8px 9px 8px 8px; border-radius: 18px; display: inline-flex; align-items: center; gap: 8px; vertical-align: top; }
.sw-l.b-green, .sw-l.b-orange, .sw-l.b-red { border-width: 3px; padding: 10px; }
.sw-s.b-green, .sw-s.b-orange, .sw-s.b-red { border-width: 2.5px; padding: 6.5px 7.5px 6.5px 6.5px; }
.sw.b-green { border-color: #4cd964; }
.sw.b-orange { border-color: #f5a623; }
.sw.b-red { border-color: #ff6b5e; }

.sw-cap { display: flex; align-items: center; gap: 8px; min-height: 28px; min-width: 0; }
.sw-tile { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.sw-tile svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sw-tile.t-zone { background: rgba(46, 156, 202, 0.24); color: #8fd0ec; }
.sw-tile.t-camera, .sw-tile.t-warn { background: rgba(245, 166, 35, 0.24); color: #f5a623; }
.sw-tile.t-check-green { background: rgba(76, 217, 100, 0.22); color: #4cd964; }
.sw-tile.t-check-orange { background: rgba(245, 166, 35, 0.22); color: #f5a623; }
.sw-tile.t-check-red { background: rgba(255, 107, 94, 0.22); color: #ff6b5e; }
.sw-tile.t-check-grey, .sw-tile.t-logo { background: rgba(255, 255, 255, 0.12); color: #f5f7fa; }
.sw-tile.t-check-green svg, .sw-tile.t-check-orange svg, .sw-tile.t-check-red svg, .sw-tile.t-check-grey svg { stroke-width: 2.8; }
.sw-ct { font-size: 11px; font-weight: 800; letter-spacing: 0.11em; color: #c3cfde; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-ct.warn { color: #f5a623; }
.sw-chip { flex: none; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 6px; border-radius: 6px; background: rgba(245, 166, 35, 0.22); color: #f5c26b; text-shadow: none; }

.sw-hero { display: flex; align-items: center; gap: 10px; }
.sw-col { width: 140px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.sw-num { display: flex; align-items: baseline; white-space: nowrap; }
.sw-big { font-size: 44px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.sw-u { font-size: 14px; font-weight: 700; margin-left: 4px; }
.sw-ap { font-size: 28px; font-weight: 800; margin-right: 2px; }
.sw-ok { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.sw-ok span { font-size: 10px; font-weight: 800; letter-spacing: 0.11em; }
.sw-ok b { font-size: 26px; font-weight: 800; line-height: 1; }
.sw-ok i { font-style: normal; font-size: 12px; font-weight: 700; }
.sw-sign { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #ffffff; border: 4.8px solid #e53935; display: grid; place-items: center; color: #111111; font-weight: 800; font-size: 17px; line-height: 1; letter-spacing: -0.02em; text-shadow: none; }
.sw-sign.tall { width: 84px; height: 84px; border-width: 8.4px; font-size: 29px; }
.sw-sign.off { visibility: hidden; }
.sw-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.sw-bar i { display: block; height: 100%; width: 0; border-radius: 3px; }
.sw-bar i.sw-p42 { width: 42%; }
.sw-bar i.sw-p45 { width: 45%; }
.sw-bar i.sw-p62 { width: 62%; }
.sw-meta { font-size: 12px; font-weight: 700; color: #aebbcd; }
.sw-msg { font-size: 19px; font-weight: 800; line-height: 1.2; }

.sw-cam { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.sw-cam .sw-tile { width: 22px; height: 22px; border-radius: 7px; }
.sw-cam .sw-tile svg { width: 14px; height: 14px; }
.sw-cam .sw-lbl { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: #dce4ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-cam b { font-size: 22px; font-weight: 800; }
.sw-cam .sw-sign { width: 28px; height: 28px; border-width: 2.8px; font-size: 11px; }

.sw-s .sw-fig { width: 78px; flex: none; display: flex; align-items: baseline; white-space: nowrap; }
.sw-s .sw-big { font-size: 34px; line-height: 1; }
.sw-s .sw-u { font-size: 12px; margin-left: 3px; }
.sw-s .sw-ap { font-size: 20px; }
.sw-s .sw-sign { width: 42px; height: 42px; border-width: 4.2px; font-size: 15px; }
.sw-note { width: 128px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.sw-note b { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-note span { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sw .c-green { color: #4cd964; }
.sw .c-orange { color: #f5a623; }
.sw .c-red { color: #ff6b5e; }
.sw .c-grey { color: #aebbcd; }
.sw .c-white { color: #f5f7fa; }
.sw .c-soft { color: #c3cfde; }
.sw .f-blue { background: #2e9cca; box-shadow: 0 0 6px rgba(46, 156, 202, 0.8); }
.sw .f-green { background: #4cd964; box-shadow: 0 0 6px rgba(76, 217, 100, 0.8); }
.sw .f-orange, .sw .f-amber { background: #f5a623; box-shadow: 0 0 6px rgba(245, 166, 35, 0.8); }
.sw .f-red { background: #ff6b5e; box-shadow: 0 0 6px rgba(255, 107, 94, 0.8); }
.sw .f-grey { background: #9aaac0; }
@media (prefers-reduced-motion: no-preference) {
    .sw-bar i { transition: width 0.25s linear; }
}
