/* Viti Dispatch meter faces. Sizes follow the meter's own width (container units), so one face works
   as a home-screen preview, inside the trip card, and as a full-screen dash or mirror meter. */
.vmf{container-type:inline-size;position:relative;overflow:hidden;border-radius:26px;isolation:isolate;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums}
.vmf-deco{position:absolute;inset:0;z-index:0;pointer-events:none}
.vmf-body{position:relative;z-index:1;display:flex;flex-direction:column;gap:5cqi;padding:6cqi 6cqi 6.5cqi}
.vmf-top{display:flex;justify-content:space-between;align-items:center;gap:3cqi}
.vmf-brand{font:800 3.2cqi/1 Manrope,system-ui,sans-serif;letter-spacing:.22em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vmf-plate{margin-left:2.4cqi;letter-spacing:.08em;opacity:.7}
.vmf-lamp{font:800 3.1cqi/1 Manrope,system-ui,sans-serif;letter-spacing:.16em;padding:1.8cqi 3.2cqi;border-radius:99px;white-space:nowrap}
.vmf-main{text-align:center}
.vmf-fare{display:flex;align-items:flex-start;justify-content:center;gap:1.6cqi;line-height:.9}
.vmf-cur{font:800 6.2cqi/1 Manrope,system-ui,sans-serif;margin-top:2.6cqi;letter-spacing:.02em}
.vmf-fare .vmf-v{font:800 21cqi/.9 Manrope,system-ui,sans-serif;letter-spacing:-.035em}
.vmf-tariff{margin-top:2.6cqi;font:700 3cqi/1 Manrope,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;opacity:.75}
.vmf-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:2.6cqi}
.vmf-cell{border-radius:4.4cqi;padding:3cqi 2cqi 2.6cqi;text-align:center}
.vmf-cell .vmf-v{display:block;font:800 6.2cqi/1 Manrope,system-ui,sans-serif;letter-spacing:-.01em}
.vmf-cell i{display:block;font:700 2.4cqi/1 Manrope,system-ui,sans-serif;font-style:normal;letter-spacing:.18em;margin-top:1.8cqi;opacity:.7}
.vmf-seg{height:1em;width:auto;display:block;margin:0 auto;overflow:visible}

/* ---------- 1. Viti Glass: ocean night, moving light, frosted glass ---------- */
.vmf-glass{background:linear-gradient(160deg,#04172c 0%,#082d4f 55%,#04172c 100%);color:#f2fbff;box-shadow:0 20px 50px -18px rgba(4,30,60,.75),inset 0 1px 0 rgba(255,255,255,.18)}
.vmf-glass .vmf-deco::before,.vmf-glass .vmf-deco::after{content:'';position:absolute;width:75%;aspect-ratio:1;border-radius:50%;filter:blur(18cqi);opacity:.75;animation:vmf-drift 14s ease-in-out infinite alternate}
.vmf-glass .vmf-deco::before{background:#19d3c5;left:-22%;top:-38%}
.vmf-glass .vmf-deco::after{background:#3b6cff;right:-25%;bottom:-45%;animation-delay:-7s}
@keyframes vmf-drift{to{transform:translate(18%,12%) scale(1.15)}}
.vmf-glass .vmf-body{margin:2.2cqi;border-radius:22px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px) saturate(140%);-webkit-backdrop-filter:blur(10px) saturate(140%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.vmf-glass .vmf-brand{color:#9fe8ff}
.vmf-glass .vmf-fare .vmf-v{background:linear-gradient(180deg,#ffffff 30%,#bfefff);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 4cqi rgba(110,220,255,.45))}
.vmf-glass .vmf-cur{color:#7fe3ff}
.vmf-glass .vmf-cell{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.vmf-glass .vmf-lamp--hire{background:rgba(52,211,153,.18);color:#6ff3bd;box-shadow:0 0 0 1px rgba(110,243,189,.45),0 0 18px rgba(52,211,153,.35)}
.vmf-glass .vmf-lamp--hired{background:rgba(251,191,36,.16);color:#ffd36b;box-shadow:0 0 0 1px rgba(255,211,107,.5),0 0 18px rgba(251,191,36,.35)}
.vmf-glass .vmf-lamp--stopped{background:rgba(248,113,113,.16);color:#ffb0b0;box-shadow:0 0 0 1px rgba(255,160,160,.45)}

/* ---------- 2. Classic LED: machined bezel, smoked window, real seven-segment digits ---------- */
.vmf-led{background:linear-gradient(145deg,#3b3f45 0%,#17191c 46%,#2c2f34 100%);color:#9aa1aa;padding:3.4cqi;box-shadow:0 22px 50px -20px #000,inset 0 1px 0 rgba(255,255,255,.18),inset 0 -2px 0 rgba(0,0,0,.6)}
.vmf-led .vmf-deco{background:
  radial-gradient(circle at 3.6cqi 3.6cqi,#c9cdd2 0 1.1cqi,#565b61 1.2cqi 1.6cqi,transparent 1.7cqi),
  radial-gradient(circle at calc(100% - 3.6cqi) 3.6cqi,#c9cdd2 0 1.1cqi,#565b61 1.2cqi 1.6cqi,transparent 1.7cqi),
  radial-gradient(circle at 3.6cqi calc(100% - 3.6cqi),#c9cdd2 0 1.1cqi,#565b61 1.2cqi 1.6cqi,transparent 1.7cqi),
  radial-gradient(circle at calc(100% - 3.6cqi) calc(100% - 3.6cqi),#c9cdd2 0 1.1cqi,#565b61 1.2cqi 1.6cqi,transparent 1.7cqi),
  repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 3px)}
.vmf-led .vmf-body{background:#050506;border-radius:16px;box-shadow:inset 0 3px 14px #000,inset 0 0 0 1px #000,0 1px 0 rgba(255,255,255,.08)}
.vmf-led .vmf-body::after{content:'';position:absolute;inset:0;border-radius:16px;pointer-events:none;background:linear-gradient(170deg,rgba(255,255,255,.09) 0%,rgba(255,255,255,0) 38%)}
.vmf-led .vmf-brand{color:#6f757d;font-family:'Courier New',ui-monospace,monospace}
.vmf-led .vmf-cur{color:#ff3b2b;font-family:'Courier New',ui-monospace,monospace;text-shadow:0 0 3cqi rgba(255,59,43,.7)}
.vmf-led .vmf-fare .vmf-v{font-size:19cqi}
.vmf-led .vmf-seg .on{fill:#ff2a1a;filter:drop-shadow(0 0 2.2px rgba(255,42,26,.95))}
.vmf-led .vmf-seg .off{fill:#260806}
.vmf-led .vmf-cell{background:#0a0b0c;box-shadow:inset 0 2px 8px #000}
.vmf-led .vmf-cell .vmf-v{font-size:6.4cqi}
.vmf-led .vmf-cell .vmf-seg .on{fill:#3dff86;filter:drop-shadow(0 0 2px rgba(61,255,134,.9))}
.vmf-led .vmf-cell .vmf-seg .off{fill:#06200f}
.vmf-led .vmf-tariff{color:#ffb020;opacity:.9}
.vmf-led .vmf-lamp{font-family:'Courier New',ui-monospace,monospace;border-radius:6px}
.vmf-led .vmf-lamp--hire{background:#ffb020;color:#2a1600;box-shadow:0 0 18px rgba(255,176,32,.75),inset 0 -2px 0 rgba(0,0,0,.25)}
.vmf-led .vmf-lamp--hired{background:#2a0a06;color:#ff5a48;box-shadow:inset 0 0 0 1px #ff3b2b,0 0 14px rgba(255,59,43,.5)}
.vmf-led .vmf-lamp--stopped{background:#0a2014;color:#3dff86;box-shadow:inset 0 0 0 1px #3dff86}

/* ---------- Chrome counter: polished chrome case, rolling black drums, red cents ---------- */
.vmf-drum{position:relative}
.vmf-drum .vmf-strip{display:flex;flex-direction:column;transition:transform .55s cubic-bezier(.3,1.35,.5,1)}
.vmf-drums{display:inline-flex;align-items:stretch;gap:.06em;line-height:1}
.vmf-drums .vmf-drum{display:inline-block;height:1.18em;width:.72em;overflow:hidden;border-radius:.08em;background:#0c0c0d;box-shadow:inset 0 0 0 1px #000,0 1px 0 rgba(255,255,255,.4)}
.vmf-drums .vmf-drum b{display:flex;height:1.18em;align-items:center;justify-content:center;font:700 1em/1 'Courier New',ui-monospace,monospace;color:#f4f1ea}
.vmf-drums .vmf-drum::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,0) 30%,rgba(255,255,255,.06) 50%,rgba(0,0,0,0) 70%,rgba(0,0,0,.85) 100%)}
.vmf-drums .vmf-drum.red{background:#b3120f}
.vmf-drums .vmf-dsep{display:flex;align-items:flex-end;padding-bottom:.12em;font:800 .8em/1 Manrope,sans-serif;color:#2a2a2a;margin:0 -.02em}
.vmf.vmf-drum{background:linear-gradient(160deg,#f6f7f8 0%,#c7cbd0 22%,#8e949b 48%,#e3e6e9 70%,#9aa0a6 100%);color:#1d1f22;padding:3cqi;box-shadow:0 22px 48px -20px rgba(0,0,0,.7),inset 0 1px 0 #fff,inset 0 -2px 0 rgba(0,0,0,.35)}
.vmf.vmf-drum .vmf-deco{background:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 1px,transparent 1px 4px)}
.vmf.vmf-drum .vmf-body{background:linear-gradient(180deg,#26282b,#111214);border-radius:16px;box-shadow:inset 0 3px 10px #000,0 1px 0 rgba(255,255,255,.7)}
.vmf.vmf-drum .vmf-brand{color:#c9ccd1;font-family:'Courier New',ui-monospace,monospace}
.vmf.vmf-drum .vmf-cur{color:#e8e4d8;font-family:'Courier New',ui-monospace,monospace}
.vmf.vmf-drum .vmf-fare .vmf-v{font-size:15cqi;letter-spacing:0}
.vmf.vmf-drum .vmf-fare .vmf-dsep{color:#e8e4d8}
.vmf.vmf-drum .vmf-tariff{color:#d6b25e}
.vmf.vmf-drum .vmf-cell{background:#0b0b0c;box-shadow:inset 0 2px 6px #000}
.vmf.vmf-drum .vmf-cell .vmf-v{font-size:5.6cqi;display:flex;justify-content:center}
.vmf.vmf-drum .vmf-cell .vmf-dsep{color:#e8e4d8}
.vmf.vmf-drum .vmf-cell i{color:#c9ccd1}
.vmf.vmf-drum .vmf-lamp{font-family:'Courier New',ui-monospace,monospace;border-radius:5px;background:linear-gradient(180deg,#ff4a3a,#b3120f);color:#fff;box-shadow:0 0 14px rgba(255,60,40,.55),inset 0 1px 0 rgba(255,255,255,.5)}
.vmf.vmf-drum .vmf-lamp--hire{background:linear-gradient(180deg,#ffd35a,#e0a100);color:#2a1a00;box-shadow:0 0 14px rgba(255,200,60,.6),inset 0 1px 0 rgba(255,255,255,.6)}
@media (prefers-reduced-motion:reduce){.vmf-drum .vmf-strip{transition:none}}

/* ---------- 3. Daylight: taxi yellow, checker band, black type that cuts through midday glare ---------- */
.vmf-sun{background:linear-gradient(180deg,#ffd51a 0%,#ffc400 100%);color:#0b0b0b;box-shadow:0 20px 45px -20px rgba(120,80,0,.7),inset 0 1px 0 rgba(255,255,255,.6)}
.vmf-sun .vmf-deco{background:repeating-conic-gradient(#0b0b0b 0 25%,#ffd51a 0 50%) 0 0/4.6cqi 4.6cqi;height:4.6cqi;bottom:auto}
.vmf-sun .vmf-deco::after{content:'';position:absolute;left:0;right:0;top:100%;height:400cqi;background:linear-gradient(115deg,rgba(255,255,255,.35) 0%,rgba(255,255,255,0) 22%)}
.vmf-sun .vmf-body{padding-top:9cqi}
.vmf-sun .vmf-fare .vmf-v{font-size:23cqi;letter-spacing:-.05em}
.vmf-sun .vmf-cur{color:#0b0b0b}
.vmf-sun .vmf-tariff{opacity:.85}
.vmf-sun .vmf-cell{background:#0b0b0b;color:#ffd51a}
.vmf-sun .vmf-cell i{color:#fff3b0;opacity:.85}
.vmf-sun .vmf-lamp{background:#0b0b0b;color:#ffd51a}
.vmf-sun .vmf-lamp--hire{box-shadow:0 0 0 2px #0b0b0b}
.vmf-sun .vmf-lamp--stopped{background:#b3001b;color:#fff}

/* ---------- 4. Masi: tapa-cloth cream with hand-printed borders, dark plaque ---------- */
.vmf-masi{background:#eadbb8;color:#2a1810;box-shadow:0 20px 45px -22px rgba(60,30,10,.7);padding:10cqi 4cqi}
.vmf-masi .vmf-deco{background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26'%3E%3Cpath d='M0 26 12 8 24 26zM24 26 36 8 48 26z' fill='%232a1810'/%3E%3Cpath d='M12 0 18 6 12 12 6 6zM36 0 42 6 36 12 30 6z' fill='%238b3a1c'/%3E%3Cpath d='M0 26h48' stroke='%232a1810' stroke-width='3'/%3E%3C/svg%3E") top left/11cqi 6cqi repeat-x,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26'%3E%3Cpath d='M0 0 12 18 24 0zM24 0 36 18 48 0z' fill='%232a1810'/%3E%3Cpath d='M12 26 18 20 12 14 6 20zM36 26 42 20 36 14 30 20z' fill='%238b3a1c'/%3E%3Cpath d='M0 0h48' stroke='%232a1810' stroke-width='3'/%3E%3C/svg%3E") bottom left/11cqi 6cqi repeat-x,
  repeating-linear-gradient(2deg,rgba(110,75,35,.07) 0 1px,transparent 1px 5px),
  radial-gradient(120% 90% at 50% 50%,#f3e7c9 0%,#e3d1a8 100%)}
.vmf-masi .vmf-body{background:#2a1810;color:#f3e6c8;border-radius:18px;box-shadow:inset 0 0 0 1.2cqi #2a1810,inset 0 0 0 1.5cqi #c79a5c,0 8px 22px -10px rgba(40,20,5,.8)}
.vmf-masi .vmf-brand{color:#d9b47a}
.vmf-masi .vmf-fare .vmf-v{font-family:Fraunces,Georgia,serif;font-weight:700;letter-spacing:-.02em;color:#fbf1dc}
.vmf-masi .vmf-cur{font-family:Fraunces,Georgia,serif;color:#d9b47a}
.vmf-masi .vmf-tariff{color:#d9b47a}
.vmf-masi .vmf-cell{background:rgba(243,230,200,.07);border:1px solid rgba(217,180,122,.35)}
.vmf-masi .vmf-cell .vmf-v{font-family:Fraunces,Georgia,serif}
.vmf-masi .vmf-lamp{background:#8b3a1c;color:#fbe9cf}
.vmf-masi .vmf-lamp--hire{background:#3f6b3a}

/* ---------- 5. Mirror / dash: black heads-up display, amber fare, cyan read-outs ---------- */
.vmf-hud{background:#000;color:#5ef2ff;box-shadow:0 20px 50px -20px #000,inset 0 0 0 1px rgba(94,242,255,.25)}
.vmf-hud .vmf-deco{background:
  linear-gradient(#5ef2ff,#5ef2ff) left 3cqi top 3cqi/6cqi 2px no-repeat,linear-gradient(#5ef2ff,#5ef2ff) left 3cqi top 3cqi/2px 6cqi no-repeat,
  linear-gradient(#5ef2ff,#5ef2ff) right 3cqi top 3cqi/6cqi 2px no-repeat,linear-gradient(#5ef2ff,#5ef2ff) right 3cqi top 3cqi/2px 6cqi no-repeat,
  linear-gradient(#5ef2ff,#5ef2ff) left 3cqi bottom 3cqi/6cqi 2px no-repeat,linear-gradient(#5ef2ff,#5ef2ff) left 3cqi bottom 3cqi/2px 6cqi no-repeat,
  linear-gradient(#5ef2ff,#5ef2ff) right 3cqi bottom 3cqi/6cqi 2px no-repeat,linear-gradient(#5ef2ff,#5ef2ff) right 3cqi bottom 3cqi/2px 6cqi no-repeat,
  repeating-linear-gradient(0deg,rgba(94,242,255,.05) 0 1px,transparent 1px 3px),
  radial-gradient(90% 70% at 50% 40%,rgba(255,176,32,.12),transparent 70%)}
.vmf-hud .vmf-brand,.vmf-hud .vmf-tariff,.vmf-hud .vmf-cell i,.vmf-hud .vmf-lamp{font-family:Orbitron,Manrope,sans-serif}
.vmf-hud .vmf-brand{color:#5ef2ff;opacity:.85}
.vmf-hud .vmf-fare .vmf-v{font-family:Orbitron,Manrope,sans-serif;font-weight:800;font-size:17cqi;letter-spacing:.01em;color:#ffb020;text-shadow:0 0 4cqi rgba(255,176,32,.6),0 0 1cqi rgba(255,210,120,.8)}
.vmf-hud .vmf-cur{font-family:Orbitron,Manrope,sans-serif;color:#ffb020;opacity:.85}
.vmf-hud .vmf-cell{border:1px solid rgba(94,242,255,.35);background:linear-gradient(180deg,rgba(94,242,255,.08),rgba(94,242,255,0));border-radius:2cqi}
.vmf-hud .vmf-cell .vmf-v{font-family:Orbitron,Manrope,sans-serif;font-size:5.4cqi;text-shadow:0 0 2cqi rgba(94,242,255,.6)}
.vmf-hud .vmf-lamp{border:1px solid currentColor;border-radius:2cqi}
.vmf-hud .vmf-lamp--hire{color:#5effa4;box-shadow:0 0 14px rgba(94,255,164,.4)}
.vmf-hud .vmf-lamp--hired{color:#ffb020;box-shadow:0 0 14px rgba(255,176,32,.4)}
/* Phone on its side or a mirror mount: fare on the left, read-outs stacked on the right */
@media (orientation:landscape){
.vmf-hud.vmf--full .vmf-body{display:grid;grid-template-columns:1.6fr 1fr;grid-template-rows:auto 1fr;column-gap:5vw;row-gap:3vh}
.vmf-hud.vmf--full .vmf-top{grid-column:1/-1}
.vmf-hud.vmf--full .vmf-cells{grid-template-columns:1fr;align-content:center;gap:2vh}
.vmf-hud.vmf--full .vmf-main{align-self:center}
.vmf-hud.vmf--full .vmf-fare .vmf-v{font-size:min(12cqi,30vh)}
.vmf-hud.vmf--full .vmf-cell .vmf-v{font-size:min(4cqi,7vh)}
.vmf-hud.vmf--full .vmf-cell{padding:1.4vh 1vw}
}

/* ---------- sizes ---------- */
.vmf--full{border-radius:0;height:100%;display:flex;flex-direction:column;justify-content:center}
.vmf--full .vmf-body{flex:0 1 auto}
@media (orientation:landscape){
.vmf--full .vmf-body{padding:5vh 6vw;gap:3.2vh}
.vmf--full .vmf-fare .vmf-v{font-size:min(21cqi,30vh)}.vmf-led.vmf--full .vmf-fare .vmf-v{font-size:min(19cqi,28vh)}
.vmf--full .vmf-cur{font-size:min(6.2cqi,8vh);margin-top:1.6vh}
.vmf--full .vmf-cell{padding:1.8vh 1vw}
.vmf--full .vmf-cell .vmf-v{font-size:min(6.2cqi,8vh)}
.vmf--full .vmf-cell i{font-size:min(2.4cqi,3vh);margin-top:1vh}
.vmf--full .vmf-brand,.vmf--full .vmf-lamp,.vmf--full .vmf-tariff{font-size:min(3.1cqi,3.6vh)}
.vmf--full .vmf-lamp{padding:1.2vh 1.6vw}
.vmf--full .vmf-tariff{margin-top:1.6vh}
}

@media (prefers-reduced-motion:reduce){.vmf-glass .vmf-deco::before,.vmf-glass .vmf-deco::after{animation:none}}
