/* ==========================================================================
   GODWIT DEMO
   The live Godwit head unit on godwit.html (js/godwit-demo.js). Everything
   inside .gw-unit is laid out at the head unit's native size, a 1024x600
   screen above two 240 px knobs, and the whole unit is scaled to fit.
   Colours are the HMI's own tokens (hmi/qml/Theme.qml), light and dark.
   ========================================================================== */

.gw-demo {
  outline: none;
}

.gw-stage {
  position: relative;
  width: 100%;
  max-width: 1104px;
  margin: 0 auto;
  overflow: hidden;
}

.gw-unit {
  --bg: #f5f5f5; --scr: #ffffff; --card: #ffffff; --track: #ebebeb; --raise: #ffffff; --line: #cacaca;
  --tx: #1a1a1a; --tx2: #4a4a4a; --acc: #3D7B31; --onacc: #ffffff; --accsoft: #DCEDD9;
  --heat: #C62828; --cool: #00708A; --warn: #8A5A00; --onalert: #ffffff; --chrome: rgba(245, 245, 245, 0.92);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.07), 0 14px 40px rgba(0, 0, 0, 0.13);
  position: absolute;
  left: 0;
  top: 0;
  width: 1104px;
  height: 1000px;
  border-radius: 32px;
  background: #141414;
  transform-origin: 0 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.2;
}

.gw-unit.gw-dark {
  --bg: #000000; --scr: #000000; --card: #1a1a1a; --track: #2a2a2a; --raise: #3a3a3a; --line: #3a3a3a;
  --tx: #ffffff; --tx2: #aaaaaa; --acc: #7BC96A; --onacc: #000000; --accsoft: rgba(82, 164, 65, 0.24);
  --heat: #FF5453; --cool: #48E6FE; --warn: #FFC107; --onalert: #000000; --chrome: rgba(10, 10, 10, 0.9);
  --shadow: none;
  --shadow-lg: none;
}

.gw-unit *, .gw-unit *::before, .gw-unit *::after { box-sizing: border-box; }

.gw-bezel { position: absolute; left: 28px; top: 28px; width: 1048px; height: 624px; border-radius: 14px; background: #000; }
.gw-sep { position: absolute; left: 0; right: 0; top: 668px; height: 1px; background: rgba(255, 255, 255, 0.05); }
.gw-brand { position: absolute; left: 0; right: 0; top: 800px; text-align: center; color: #3a3a3a; font-size: 12px; font-weight: 700; letter-spacing: 5px; }

.gw-screen {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 1024px;
  height: 600px;
  overflow: hidden;
  background: var(--bg);
}

.gw-mapwrap { position: absolute; inset: 0; background: var(--track); }
.gw-map { position: absolute; left: 0; top: 0; width: 1024px; height: 600px; }
.gw-ui { position: absolute; inset: 0; pointer-events: none; }
.gw-ui .pe { pointer-events: auto; }

/* ------------------------------------------------------------ primitives */
.gw-ic { display: inline-block; flex: none; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.gw-num { font-variant-numeric: tabular-nums; }
.gw-ell { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-row5 { display: inline-flex; align-items: center; gap: 5px; }
[data-a], [data-lp] { cursor: pointer; }

.gw-card { position: relative; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); transition: background-color 0.2s; }
.gw-card--lg { box-shadow: var(--shadow-lg); }
.gw-card.no-shadow { box-shadow: none; }
.gw-card.is-sel::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--acc); pointer-events: none; }
.gw-card.is-inset.is-sel::after { inset: 0; }

.gw-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.gw-switch { position: relative; flex: none; width: 48px; height: 30px; border-radius: 15px; background: var(--line); transition: background 0.2s; }
.gw-switch span { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: transform 0.2s; }
.gw-switch.is-on { background: var(--acc); }
.gw-switch.is-on span { transform: translateX(18px); }
.gw-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--accsoft); color: var(--acc); font-weight: 700; transition: background 0.2s; }
.gw-avatar.is-on { background: var(--acc); color: var(--onacc); }
.gw-roundbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--track); }
.gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 28px; background: var(--track); color: var(--tx); font-size: 17px; font-weight: 700; }
.gw-btn.is-acc { background: var(--acc); color: var(--onacc); }
.gw-bigbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px; border-radius: 30px; background: var(--acc); color: var(--onacc); font-size: 18px; font-weight: 700; }
.gw-step { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 40px; border-radius: 22px; background: var(--track); }
.gw-step:active, .gw-btn:active, .gw-kbtn:active, .gw-key:active, .gw-seek:active { background: var(--accsoft); }
.gw-bar { position: relative; display: block; width: 100%; height: 24px; border-radius: 12px; background: var(--track); overflow: hidden; }
.gw-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--acc); transition: width 0.3s; }
.gw-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; position: relative; }
.gw-scroll::-webkit-scrollbar { display: none; }
.gw-empty { padding: 40px 20px; text-align: center; color: var(--tx2); font-size: 16px; }

@keyframes gw-kin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gw-spin { to { transform: rotate(360deg); } }
@keyframes gw-breathe { 0%, 100% { opacity: calc(var(--o) * 0.6); } 50% { opacity: var(--o); } }
@keyframes gw-flow { 0% { transform: translate(0, 0); opacity: 0; } 50% { opacity: 0.85; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes gw-wave { to { transform: translateX(-50%); } }
@keyframes gw-pulse { 0%, 100% { transform: scale(0.85); } 50% { transform: scale(1.1); } }

/* ------------------------------------------------------------ chrome */
.gw-status { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: var(--chrome); display: flex; align-items: center; padding: 0 20px; font-size: 16px; z-index: 5; }
.gw-status__clock { font-weight: 700; }
.gw-status__mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.gw-status__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.gw-status__phone { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--acc); font-size: 15px; font-weight: 600; }
.gw-turnpill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: 14px; color: #000; font-size: 14px; font-weight: 700; }
.gw-turnpill__ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 10px; background: rgba(0, 0, 0, 0.12); }

.gw-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; background: var(--chrome); z-index: 5; }
.gw-dockrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 6px; }
.gw-dock { display: flex; align-items: center; justify-content: center; width: 72px; height: 56px; border-radius: 18px; transition: background 0.2s; }
.gw-dock.is-on { background: var(--accsoft); }
.gw-hint { position: absolute; top: 6px; bottom: 6px; left: 6px; width: 248px; border-radius: 16px; display: flex; align-items: center; gap: 12px; padding-left: 12px; }
.gw-hint.is-mirrored { left: auto; right: 6px; flex-direction: row-reverse; padding: 0 12px 0 0; text-align: right; }
.gw-hint.is-open { background: var(--accsoft); }
.gw-hint__dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 4px solid; transition: border-color 0.3s; }
.gw-hint__txt { display: flex; flex-direction: column; min-width: 0; }
.gw-hint__name { font-size: 17px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-hint__sub { font-size: 13px; color: var(--tx2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.gw-page { position: absolute; left: 24px; top: 58px; width: 976px; height: 448px; animation: gw-kin 0.25s ease-in-out; }
.gw-navpage { position: absolute; inset: 0; }
.gw-navpage > .gw-card, .gw-navpage .gw-mapbtns { animation: gw-kin 0.25s ease-in-out; }

.gw-launcher { position: absolute; left: 0; right: 0; top: 40px; height: 484px; background: var(--bg); padding: 22px 28px; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; gap: 14px; animation: gw-kin 0.2s ease-in-out; }
.gw-launcher__cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gw-launcher__name { font-size: 15px; font-weight: 600; }

.gw-banner { position: absolute; left: 24px; top: 50px; width: 976px; height: 96px; z-index: 7; animation: gw-kin 0.25s ease-in-out; }
.gw-banner .gw-card { display: flex; align-items: center; padding: 0 14px; gap: 16px; }
.gw-banner__l { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 260px; height: 68px; border-radius: 34px; font-size: 20px; font-weight: 700; }
.gw-banner__r { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; width: 180px; height: 56px; border-radius: 28px; font-size: 17px; font-weight: 700; margin-left: auto; }
.gw-banner__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.gw-banner__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 15px; color: var(--tx2); }
.gw-banner__txt b { font-size: 24px; color: var(--tx); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-meter { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; margin-top: 2px; }
.gw-meter span { display: block; height: 100%; border-radius: 3px; background: var(--cool); transition: width 0.06s; }

.gw-kpanel { position: absolute; bottom: 88px; width: 340px; z-index: 8; animation: gw-kin 0.2s ease-in-out; }
.gw-kpanel .gw-card { display: flex; flex-direction: column; gap: 14px; }
.gw-kpanel__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--tx2); }
.gw-kpanel__row { display: flex; gap: 12px; align-items: center; }
.gw-kpanel__val { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gw-kpanel__val b { font-size: 17px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-kbtn { display: inline-flex; align-items: center; justify-content: center; height: 56px; border-radius: 28px; background: var(--track); font-size: 16px; font-weight: 700; color: var(--tx); }
.gw-kbtn.is-acc { background: var(--acc); color: var(--onacc); }

.gw-alert { position: absolute; left: 50%; transform: translateX(-50%); height: 54px; padding: 0 24px; border-radius: 24px; background: var(--heat); color: var(--onalert); display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; white-space: nowrap; z-index: 9; animation: gw-kin 0.25s ease-in-out; }
.gw-hud { position: absolute; left: 50%; width: 460px; height: 72px; margin-left: -230px; z-index: 10; animation: gw-kin 0.18s ease-out; }
.gw-hud__badge { position: absolute; left: 12px; top: 12px; width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.gw-hud__lbl { position: absolute; left: 74px; top: 12px; font-size: 14px; font-weight: 600; color: var(--tx2); }
.gw-hud__track { position: absolute; left: 74px; right: 96px; bottom: 16px; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.gw-hud__track span { display: block; height: 100%; border-radius: 5px; transition: width 0.09s; }
.gw-hud__val { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 56px; text-align: right; font-size: 28px; font-weight: 700; }
.gw-toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); max-width: 900px; padding: 12px 22px; border-radius: 24px; background: var(--tx); color: var(--bg); font-size: 17px; font-weight: 600; text-align: center; z-index: 11; }
.gw-dim { position: absolute; inset: 0; background: #000; pointer-events: none; z-index: 20; }

.gw-notice { position: absolute; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 15; }
.gw-notice .gw-card { box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------ navigation */
.gw-attrib { position: absolute; right: 20px; bottom: 78px; font-size: 11px; color: var(--tx2); text-shadow: 0 0 2px var(--bg), 0 0 2px var(--bg); }
.gw-man { display: flex; align-items: center; height: 104px; padding: 16px; gap: 16px; }
.gw-man__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; transition: background 0.4s; }
.gw-man__txt { display: flex; flex-direction: column; min-width: 0; }
.gw-man__dist { font-size: 42px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.05; }
.gw-man__st { font-size: 20px; font-weight: 600; color: var(--tx2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-man__then { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; background: var(--track); font-size: 17px; }
.gw-man__then b { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-mapbtns { position: absolute; right: 20px; bottom: 92px; display: grid; grid-template-columns: 56px 56px; gap: 20px; }

.gw-search { position: absolute; inset: 0; background: var(--bg); z-index: 4; animation: gw-kin 0.2s ease-in-out; }
.gw-field { position: absolute; top: 0; height: 56px; border-radius: 28px; background: var(--track); display: flex; align-items: center; gap: 12px; padding: 0 18px 0 20px; font-size: 20px; }
.gw-res__head { flex: none; height: 52px; display: flex; align-items: center; padding: 0 22px; font-size: 20px; font-weight: 700; }
.gw-res__list { flex: 1; overflow-y: auto; padding: 0 10px 10px; scrollbar-width: none; position: relative; }
.gw-res__row { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 14px; border-radius: 14px; margin-bottom: 2px; }
.gw-res__row.is-sel { background: var(--accsoft); }
.gw-res__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gw-res__txt b { font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-res__txt span { font-size: 13px; color: var(--tx2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-res__mi { font-size: 14px; font-weight: 600; color: var(--tx2); }
.gw-prev { display: flex; flex-direction: column; gap: 8px; padding: 10px 22px; }
.gw-prev__name { font-size: 26px; }
.gw-prev__addr { font-size: 16px; color: var(--tx2); }

.gw-kb { display: flex; flex-direction: column; gap: 8px; }
.gw-kb__row { display: flex; gap: 8px; justify-content: center; }
.gw-key { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); font-size: 24px; color: var(--tx); }
.gw-key.is-special { background: var(--track); box-shadow: none; }
.gw-key.is-word { font-size: 17px; font-weight: 700; }
.gw-key.is-acc { background: var(--acc); color: var(--onacc); }
.gw-key.is-off { opacity: 0.4; }

/* ------------------------------------------------------------ media / radio */
.gw-media__main { position: absolute; left: 0; right: 384px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 22px; }
.gw-art { flex: none; display: flex; align-items: center; justify-content: center; width: 200px; height: 200px; border-radius: 22px; transition: background 0.3s; }
.gw-progress { display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.gw-progress span { display: block; height: 100%; background: var(--tx); transition: width 1s linear; }
.gw-tbtn { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; }
.gw-play { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--tx); }
.gw-queue { display: flex; flex-direction: column; gap: 4px; height: calc(100% - 40px); }
.gw-qrow { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 14px; border-radius: 14px; transition: background 0.2s; min-width: 0; }
.gw-qrow.is-sel { background: var(--accsoft); }
.gw-qrow b { font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-qrow span { font-size: 14px; color: var(--tx2); }

.gw-radio__main { position: absolute; left: 0; right: 354px; top: 0; bottom: 112px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.gw-sigbars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.gw-sigbars span { width: 6px; border-radius: 3px; transition: background 0.2s; }
.gw-presets { position: absolute; right: 0; top: 0; width: 330px; bottom: 112px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.gw-scale { position: absolute; left: 0; top: 0; height: 100%; transition: transform 0.18s ease-in-out; }
.gw-tick { position: absolute; top: 16px; width: 2px; height: 14px; border-radius: 1px; background: var(--tx2); opacity: 0.45; }
.gw-tick.is-major { height: 30px; opacity: 0.9; }
.gw-ticklbl { position: absolute; top: 56px; transform: translateX(-50%); font-size: 15px; font-weight: 600; color: var(--tx2); }
.gw-dialfade { position: absolute; left: 0; top: 0; width: 18%; height: 100%; background: linear-gradient(90deg, var(--card), transparent); pointer-events: none; }
.gw-dialfade.is-r { left: auto; right: 0; background: linear-gradient(270deg, var(--card), transparent); }
.gw-needle { position: absolute; left: 50%; top: 8px; width: 4px; height: 52px; margin-left: -2px; border-radius: 2px; transition: background 0.2s; }
.gw-seek { position: absolute; top: 18px; width: 60px; height: 60px; border-radius: 30px; background: var(--track); display: flex; align-items: center; justify-content: center; }
[data-drag="radio"] { cursor: ew-resize; touch-action: pan-y; }

/* ------------------------------------------------------------ climate */
.gw-van { position: absolute; left: 50%; top: 0; width: 340px; height: 448px; margin-left: -170px; overflow: hidden; }
.gw-van__img { position: absolute; left: 20px; top: 2px; width: 300px; }
.gw-van__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: linear-gradient(transparent, var(--bg) 50%); }
.gw-van__temps { position: absolute; left: 0; right: 0; bottom: 62px; text-align: center; font-size: 14px; font-weight: 600; color: var(--tx2); white-space: pre; }
.gw-glow { position: absolute; opacity: var(--o); animation: gw-breathe 3.2s ease-in-out infinite; transition: opacity 0.4s; pointer-events: none; }
.gw-streak { position: absolute; width: 7px; height: 44px; animation: gw-flow 1.5s linear infinite; pointer-events: none; }
.gw-zone { position: absolute; top: 0; width: 290px; height: 384px; display: flex; flex-direction: column; gap: 14px; }
.gw-zone__head { display: flex; justify-content: space-between; height: 18px; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; color: var(--tx2); }
.gw-zone__head span:last-child { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.gw-zone.is-mir .gw-zone__head { flex-direction: row-reverse; }
.gw-zone__temp { display: flex; align-items: center; gap: 14px; height: 96px; }
.gw-zone.is-mir .gw-zone__temp { flex-direction: row-reverse; }
.gw-zone__mark { position: absolute; left: 0; bottom: -2px; width: 28px; height: 3px; border-radius: 2px; background: var(--acc); }
.gw-zone.is-mir .gw-zone__mark { left: auto; right: 0; }
.gw-zone__note { font-size: 15px; color: var(--tx2); }
.gw-zone.is-mir .gw-zone__note { text-align: right; }
.gw-airrow { display: flex; gap: 2px; height: 48px; padding: 4px; border-radius: 16px; background: var(--track); }
.gw-zone.is-mir .gw-airrow { flex-direction: row-reverse; }
.gw-air { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 12px; transition: background 0.2s; }
.gw-air.is-on { background: var(--raise); }
.gw-zone__lblrow { display: flex; justify-content: space-between; align-items: center; height: 16px; margin-bottom: 8px; }
.gw-zone.is-mir .gw-zone__lblrow { flex-direction: row-reverse; }
.gw-rowlbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; color: var(--tx2); }
.gw-rowlbl.is-on { color: var(--acc); }
.gw-rowlbl i { width: 6px; height: 6px; border-radius: 3px; background: var(--acc); }
.gw-fanrow { display: flex; gap: 4px; align-items: flex-end; height: 24px; }
.gw-zone.is-mir .gw-fanrow { flex-direction: row-reverse; }
.gw-fanrow span { flex: 1; border-radius: 4px; transition: background 0.2s; }
.gw-seatrow { display: flex; gap: 4px; height: 14px; }
.gw-seatrow span { border-radius: 4px; transition: background 0.2s; }
.gw-togs { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 8px; }
.gw-tog { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 23px; background: var(--track); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.2s; }
.gw-tog.is-on { background: var(--acc); color: var(--onacc); }

/* ------------------------------------------------------------ list rows */
.gw-lrow { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; transition: background 0.2s; }
.gw-lrow.is-sel { background: var(--accsoft); }
.gw-lrow__n { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-lrow__v { padding: 4px 10px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--tx2); }
.gw-lrow__v.is-edit { background: var(--acc); color: var(--onacc); }
.gw-steppers { display: flex; gap: 6px; }
.gw-stepr { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; background: var(--card); }

/* ------------------------------------------------------------ water / lights / level */
.gw-tanks { position: absolute; left: 0; top: 0; right: 384px; bottom: 0; display: flex; }
.gw-tank { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.gw-tank__art { position: relative; }
.gw-tank__art img { width: 100%; height: 100%; display: block; }
.gw-tank__body { position: absolute; overflow: hidden; border-radius: 9% / 6%; }
.gw-tank__fill { position: absolute; left: 0; right: 0; bottom: 0; transition: height 0.4s ease-out; }
.gw-wave { position: absolute; left: 0; top: -6px; width: 200%; height: 8px; border-radius: 50%; filter: brightness(1.2); animation: gw-wave 2.8s linear infinite; -webkit-mask: radial-gradient(12px 6px at 25% 100%, #000 99%, transparent) 0 0 / 50% 100% repeat-x; mask: radial-gradient(12px 6px at 25% 100%, #000 99%, transparent) 0 0 / 50% 100% repeat-x; }
.gw-lgrid { position: absolute; left: 0; top: 0; right: 314px; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 12px; }
.gw-bub__h { position: absolute; left: 24px; top: 149px; width: 252px; height: 2px; background: var(--line); }
.gw-bub__v { position: absolute; left: 149px; top: 24px; width: 2px; height: 252px; background: var(--line); }
.gw-bub__c { position: absolute; left: 108px; top: 108px; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--line); }
.gw-bub { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.35s, background 0.35s; }
.gw-bub__front { position: absolute; left: 0; right: 0; top: 12px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--tx2); }

/* ------------------------------------------------------------ cameras */
.gw-cams { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #0b0b0b; }
.gw-feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gw-nofeed { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9a9a9a; font-size: 18px; }
.gw-nofeed span { color: #6a6a6a; font-size: 15px; }
.gw-guides { position: absolute; left: 50%; bottom: 0; width: 560px; height: 240px; margin-left: -280px; }
.gw-guides i { position: absolute; height: 5px; border-radius: 3px; }
.gw-glass { position: absolute; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: 26px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 16px; font-weight: 700; }
.gw-glass > i { width: 10px; height: 10px; border-radius: 5px; }
.gw-camtab { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 22px; color: #fff; }
.gw-camtab.is-on { background: #fff; color: #000; }

/* ------------------------------------------------------------ phone */
.gw-tab { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 24px; background: var(--track); font-size: 18px; font-weight: 700; }
.gw-tab.is-on { background: var(--tx); color: var(--bg); }
.gw-favs { position: absolute; top: 62px; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 12px; }
.gw-crow { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 10px; border-radius: 14px; }
.gw-crow.is-sel, .gw-rrow.is-sel, .gw-srow.is-sel { background: var(--accsoft); }
.gw-rrow { display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 12px; border-radius: 14px; margin-bottom: 4px; transition: background 0.2s; }
.gw-call { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% - 55px)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gw-callbtn { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tx2); }

/* ------------------------------------------------------------ settings */
.gw-set__detail { position: absolute; left: 12px; right: 456px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.gw-setic { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; }
.gw-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-opt { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--track); font-size: 15px; font-weight: 600; }
.gw-opt.is-on { background: var(--acc); color: var(--onacc); }
.gw-wbars { display: inline-flex; align-items: flex-end; }
.gw-wbars span { border-radius: 2px; }
.gw-set__head { flex: none; display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 18px 0 14px; }
.gw-set__head b { font-size: 20px; }
.gw-set__head span { margin-left: auto; font-size: 13px; color: var(--tx2); }
.gw-srow { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; border-radius: 14px; margin-bottom: 2px; transition: background 0.2s; }
.gw-srow__lead { display: flex; gap: 12px; }
.gw-srow__n { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-srow__t { display: flex; align-items: center; gap: 10px; }
.gw-doc { padding: 0 24px 24px; white-space: pre-wrap; font-size: 16px; line-height: 1.45; }
.gw-pairic { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 48px; background: var(--accsoft); }
.gw-pairic.is-pulse { animation: gw-pulse 1.8s ease-in-out infinite; }
.gw-scrim { position: absolute; left: -24px; right: -24px; top: -58px; bottom: -94px; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; z-index: 3; }
.gw-dark .gw-scrim { background: rgba(0, 0, 0, 0.6); }

/* ------------------------------------------------------------ knobs */
.gw-knob { position: absolute; top: 690px; width: 240px; height: 240px; border-radius: 50%; cursor: grab; touch-action: none; }
.gw-knob:active { cursor: grabbing; }
.gw-knob__well { position: absolute; inset: 0; border-radius: 50%; background: #060606; }
.gw-knob__well::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 15px solid #1a1a1a; }
.gw-knob__ring { position: absolute; left: -28px; top: -28px; width: 296px; height: 296px; max-width: none; pointer-events: none; }
.gw-knob__led { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #2c2c2c; opacity: 0.6; }
.gw-knob__knurl { position: absolute; left: 22px; top: 22px; width: 196px; height: 196px; border-radius: 50%;
  background: repeating-conic-gradient(#2f2f2f 0deg 2.5deg, #151515 2.5deg 5deg); transition: transform 0.12s ease-in-out; }
.gw-knob__cap { position: absolute; inset: 12px; border-radius: 50%; background: linear-gradient(#3a3a3a, #141414); }
.gw-knob__tick { position: absolute; left: 96px; top: 3px; width: 4px; height: 10px; border-radius: 2px; background: #d0d0d0; }
.gw-knob__disp { position: absolute; left: 45px; top: 45px; width: 150px; height: 150px; border-radius: 50%; background: #000; border: 2px solid #050505; overflow: hidden; transition: border-color 0.1s; }
.gw-knob__disp.is-flash { border: 4px solid #7BC96A; }
.gw-knob__glass { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%); pointer-events: none; }
.gw-face { position: absolute; left: -2px; top: -2px; width: 240px; height: 240px; border-radius: 50%; background: var(--scr); transform: scale(0.625); transform-origin: 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.gw-face__lbl { max-width: 164px; font-size: 19px; font-weight: 700; letter-spacing: 0.6px; color: var(--tx2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-face__val { display: flex; align-items: baseline; max-width: 200px; letter-spacing: -2px; line-height: 1.05; }
.gw-face__val .gw-num { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-face__unit { font-size: 30px; color: var(--tx2); letter-spacing: 0; }
.gw-face__sub { max-width: 170px; font-size: 19px; font-weight: 600; color: var(--tx2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gw-face__pager { display: flex; gap: 6px; padding-top: 8px; }
.gw-face__pager i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width 0.2s; }
.gw-face__pager i.is-on { width: 26px; background: var(--acc); }
.gw-knob__note { position: absolute; top: 942px; width: 360px; text-align: center; color: #9a9a9a; font-size: 13px; line-height: 18px; }

/* ------------------------------------------------------------ the controls */
.gw-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.gw-cgroup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
.gw-clabel { width: 100%; text-align: center; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.gw-cbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 22px; background: transparent; color: #fff; font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; transition: background var(--transition-fast); }
.gw-cbtn:hover { background: rgba(255, 255, 255, 0.1); }
.gw-cbtn.is-on { background: #FF5453; border-color: #FF5453; color: #000; }
.gw-cbtn[aria-pressed="true"]:not(.is-on) { background: var(--color-primary); }
.gw-cbtn .gw-ic { background: currentColor !important; }
.gw-gears { display: inline-flex; gap: 4px; padding: 4px; border-radius: 26px; background: rgba(255, 255, 255, 0.08); }
.gw-gear { width: 48px; height: 36px; border: 0; border-radius: 18px; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.gw-gear.is-on { background: var(--color-primary); color: #000; }
.gw-gear.is-r { background: #FF5453; }
.gw-cbtn:focus-visible, .gw-gear:focus-visible { outline: 2px solid var(--color-success); outline-offset: 2px; }
/* Phones: thumb-sized knobs under the screen, captions dropped */
.gw-unit.is-compact .gw-knob { top: 700px; transform: scale(1.5); transform-origin: 50% 0; }
.gw-unit.is-compact .gw-knob__note, .gw-unit.is-compact .gw-brand { display: none; }
.gw-stage:fullscreen { max-width: none; background: #000; }
.gw-stage:fullscreen .gw-unit { border-radius: 0; }
.gw-rotate { display: none; }
/* Phones: the head unit first, what you can make happen right under it */
@media (max-width: 640px) {
  .gw-demo { display: flex; flex-direction: column; }
  .gw-demo .gw-controls { order: 2; margin: var(--space-6) 0 0; gap: var(--space-4); }
  .gw-demo .gw-rotate { order: 1; }
  .gw-demo .gw-demo-hint { order: 3; }
  .gw-cbtn { min-height: 40px; padding: 0 12px; }
}
@media (max-width: 640px) and (orientation: portrait) {
  .gw-rotate { display: block; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: var(--text-sm); margin-top: var(--space-3); }
}
.gw-demo-hint { text-align: center; color: rgba(255, 255, 255, 0.6); font-size: var(--text-sm); margin-top: var(--space-4); }
.gw-demo:not(.is-ready) .gw-stage { min-height: 200px; }

/* ------------------------------------------------------------ page notices
   Godwit is test software: these keep anyone from fitting it to a vehicle */
.gw-hero-warn { display: inline-block; margin-top: var(--space-4); padding: var(--space-2) var(--space-4); border-radius: var(--border-radius-lg); background: rgba(0, 0, 0, 0.55); color: #FFC107; font-weight: 600; font-size: var(--text-sm); }
.gw-callout { padding: var(--space-4) var(--space-5); border-left: 4px solid #FFC107; border-radius: var(--border-radius-md, 8px); background: #fff8e1; color: var(--color-dark); }
