:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:#dee1e5;background:#111418;font-synthesis:none}*{box-sizing:border-box}html{min-height:100%}body{margin:0;background:radial-gradient(ellipse at 50% 12%,#2b3036 0,#171b1f 46%,#0e1013 100%);min-height:100vh}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.38}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffd66e;outline-offset:3px}[hidden]{display:none!important}main{max-width:930px;margin:0 auto;padding:23px 22px 38px}.app-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:28px}.brand{font-weight:900;font-size:13px;letter-spacing:.23em;color:#eceff0}.brand small{color:#959ea9;font-size:9px;margin-left:8px;letter-spacing:.24em}.brand-led,.live-dot,.tiny-led{display:inline-block;border-radius:50%;background:#65cc79;box-shadow:0 0 9px #68ec87;vertical-align:middle}.brand-led{height:7px;width:7px;margin-right:8px}.app-header button{background:#303740;color:#fff;border:1px solid #4a525c;border-radius:5px;padding:8px 12px;font-size:11px}.meter-view{padding:0}.device{position:relative;padding:25px 28px 15px;background:linear-gradient(135deg,#343a40 0%,#171a1e 12%,#080a0c 53%,#272c31 95%,#0f1215);border-radius:20px 20px 13px 13px;border:3px solid #090b0e;box-shadow:inset 0 2px 2px #505963,inset 0 -8px 12px #020305,0 5px 2px #08090b,0 24px 42px #0008}.device:before{content:"";position:absolute;left:16px;right:16px;top:10px;height:1px;background:#737b82;opacity:.5}.screw{position:absolute;width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#46515b,#101318 63%);border:1px solid #000;box-shadow:inset 0 0 0 1px #3f464d}.screw:after{content:"";position:absolute;left:2px;right:2px;top:5px;height:1px;background:#040608;transform:rotate(-27deg)}.screw-tl{top:37px;left:7px}.screw-tr{top:37px;right:7px}.screw-bl{bottom:23px;left:7px}.screw-br{bottom:23px;right:7px}.lcd{padding:13px 13px 12px;border:5px solid #070b11;border-radius:6px;background:linear-gradient(155deg,#f7fafc 0%,#eaf2fa 50%,#d3e2f2 100%);color:#171e29;box-shadow:inset 0 0 1px 2px #728398,0 0 0 1px #4d5660,0 0 12px #a9c7e71c;position:relative;overflow:hidden}.lcd:after{content:"";position:absolute;left:0;top:0;right:0;height:32%;background:linear-gradient(#fff6,#fff0);pointer-events:none}.lcd-topline{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px;font-weight:800;border-bottom:1px solid #c2cbd8;padding:0 2px 8px;letter-spacing:.025em}.tiny-led{width:5px;height:5px;margin-right:3px;box-shadow:none}.lcd-clock{font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.065em}.lcd-signal{font-size:10px;color:#1f4879;background:#d1e0ee;border:1px solid #a5bdd5;padding:2px 6px;border-radius:2px}.lcd-grid{display:grid;grid-template-columns:83px minmax(0,1fr) 128px;gap:7px;margin-top:8px;min-height:226px}.left-indicators{border-right:1px solid #b9c8db;padding:1px 7px 0 0;display:flex;align-items:stretch;flex-direction:column;gap:8px}.mode-indicator{background:#fff;color:#858c92;border:2px solid #c5cfdc;font-size:20px;text-align:center;line-height:1.55;font-weight:900;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff}.mode-indicator.vacant{color:#fff;background:#bd3339;border-color:#e09a9c}.mode-indicator.occupied{color:#fff;background:#1557aa;border-color:#83ade0}.mode-indicator.payment{color:#2e2118;background:#f0b35e;border-color:#e7c18d}.mode-indicator.pickup{color:#151b20;background:#cfdae6;border-color:#a5b8c9}.mode-indicator.paused{opacity:.7}.surcharge-indicator{font-size:11px;color:#394552;text-align:center;border:1px solid #c3cfda;background:#e5ebf4;padding:7px 0;white-space:nowrap;font-weight:800}.surcharge-indicator.active{background:#fff0ce;border-color:#eca84e;color:#af5719}.indicators-caption{font-weight:900;font-size:12px;margin-top:auto;margin-bottom:12px;letter-spacing:.15em;writing-mode:vertical-rl;align-self:center;color:#596879}.readout{display:flex;flex-direction:column;min-width:0}.readout-caption{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:12px;font-weight:850;color:#5c6b7a;padding:3px 5px}.readout-caption span{font-size:10px;color:#536a7e;font-weight:500;text-align:right}.fare-display{display:flex;justify-content:center;align-items:baseline;gap:5px;flex:1;min-height:112px;white-space:nowrap;letter-spacing:-.04em}.fare-display strong{font-family:Arial,"Noto Sans JP",sans-serif;font-size:clamp(68px,11.8vw,114px);font-weight:750;font-variant-numeric:tabular-nums;line-height:1.25;letter-spacing:-.06em;color:#171b23;text-shadow:1px 1px #fff;overflow:hidden;text-overflow:clip}.fare-display span{font-size:21px;font-weight:900;letter-spacing:0}.fare-rule{display:flex;min-height:30px;align-items:center;justify-content:space-between;gap:4px;border-top:2px solid #7796b6;border-bottom:1px solid #adc2d5;font-size:10px;color:#43556c;padding:4px 2px}.fare-rule #time-calculation{color:#ad6820;font-weight:850;white-space:nowrap}.readout-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:10px 0 4px;font-size:11px;color:#516172;font-variant-numeric:tabular-nums;white-space:nowrap}.readout-bottom b{font-size:14px;color:#1b2937}.state-buttons{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:4px}.meter-button{font-size:30px;font-weight:900;letter-spacing:.025em;border-radius:2px;border:2px solid #7b8fa7;box-shadow:inset 1px 2px #ffffff59,inset -2px -3px #0003,0 1px 1px #8295a7;line-height:1;min-height:60px}.btn-vacant{background:linear-gradient(#f7d1d2,#d66366);color:#9b1c23;border-color:#cf8f90}.btn-occupied{background:linear-gradient(#91bff4,#2a6ac5);color:#092f7a;border-color:#7b99bd}.btn-payment{background:linear-gradient(#ffe4bb,#f1aa53);color:#76431d;border-color:#d2a46c}.meter-button.active{color:#fff;filter:saturate(1.3);box-shadow:inset 0 0 0 3px #fff8,0 0 0 1px #263a50,0 0 9px #528dcfbb}.btn-vacant.active{background:linear-gradient(#d6646b,#bc232b)}.btn-occupied.active{background:linear-gradient(#2a76dc,#124aab)}.btn-payment.active{background:linear-gradient(#efbd6a,#ca7a28)}.function-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.function-buttons button{background:linear-gradient(#f7f9ff,#d9e6f5);border:2px solid #94aaca;border-radius:2px;color:#355070;font-size:16px;font-weight:800;padding:10px 1px;min-height:44px;box-shadow:inset 0 2px #fff,0 1px #a9b4bd}.function-buttons button.active{background:linear-gradient(#cce5ff,#70a6ef);border-color:#3477d5;color:#072f73;box-shadow:inset 0 0 0 2px #d0eaff}.device-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 12px 0;font-size:9px;letter-spacing:.1em;color:#79838c}.device-logo{font-style:italic;font-weight:900;font-size:19px;letter-spacing:-.08em;color:#d0d5d9}.device-logo em{font-style:normal;color:#919ca5;font-size:10px;letter-spacing:0}.device-mark{color:#9da6b0}.serial{color:#434a53;margin-left:8px}.drive-panel{background:#1d242b;border:1px solid #3e4955;border-radius:7px;margin-top:21px;padding:17px 20px;color:#d1dce6}.drive-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.live-dot{height:6px;width:6px;margin-right:9px}.drive-heading #message{font-size:11px;color:#a9bbc9;text-align:right;max-width:480px}.drive-row{display:flex;align-items:center;gap:12px;margin-top:17px}.drive-row label{font-size:11px;color:#97a9ba}.drive-row select,.drive-row button{background:#10171d;color:#e0ecf4;border:1px solid #53616d;padding:9px 12px;border-radius:4px;font-size:12px}.drive-row button{margin-left:auto}.demo-controls{padding-top:17px}.demo-controls label{display:flex;justify-content:space-between;font-size:12px;color:#c0d0db}.demo-controls output{color:#f5cf7f;font-variant-numeric:tabular-nums}.demo-controls input{display:block;width:100%;accent-color:#8fbaf3;margin:13px 0 7px}.range-caption{display:flex;justify-content:space-between;color:#8597a8;font-size:10px}.note{font-size:11px;color:#8b969f;line-height:1.8;margin:12px 4px 20px}.tabs{display:flex;gap:6px;border-bottom:1px solid #4a535d;padding:0 0 7px;margin-top:25px}.tabs button{flex:1;color:#9da9b5;background:transparent;border:0;padding:11px 4px;font-size:12px;border-radius:3px}.tabs .selected{background:#343e47;color:#fff;font-weight:850}.utility-panel{background:#1d242b;padding:22px 25px;margin-top:15px;border:1px solid #394652;border-radius:5px}.utility-panel h2{font-size:20px;margin:0 0 9px}.utility-panel p{font-size:12px;color:#aab7c3;line-height:1.85}.section-head{display:flex;align-items:center;justify-content:space-between}.section-head button,.setting-actions button{background:#384654;color:#fff;border:1px solid #718092;border-radius:4px;padding:9px 12px;font-size:12px}.setting-actions .primary{background:#c3d9f1;color:#142536;font-weight:800}.setting-actions{display:flex;gap:10px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:21px 0}.fields label{font-size:12px;color:#b2c2d0}.fields input{display:block;width:100%;background:#121b23;border:1px solid #5b6875;color:#f3f7fb;border-radius:4px;padding:10px;margin-top:7px}.ride{padding:15px 0;border-top:1px solid #46515d;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.ride strong{font-size:20px;color:#e2e9f1}.ride small{display:block;font-size:11px;color:#9baab8;margin-top:5px}details{font-size:12px;color:#bdcad6;margin-top:24px}footer{text-align:center;color:#737e88;font-size:10px;margin-top:25px;line-height:1.9}@media(max-width:650px){main{padding:15px 10px 35px}.app-header{margin:2px 7px 18px}.device{padding:16px 13px 11px;border-radius:12px}.screw{width:8px;height:8px}.screw-tl,.screw-tr{top:21px}.screw-bl,.screw-br{bottom:17px}.screw-tl,.screw-bl{left:2px}.screw-tr,.screw-br{right:2px}.lcd{padding:6px;border-width:3px}.lcd-topline{font-size:9px;padding:3px 0 6px}.lcd-clock{font-size:9px}.lcd-signal{font-size:8px}.lcd-grid{grid-template-columns:52px minmax(0,1fr) 74px;gap:4px;margin-top:6px;min-height:186px}.left-indicators{gap:5px;padding-right:3px}.mode-indicator{font-size:12px;border-width:1px}.surcharge-indicator{font-size:9px}.indicators-caption{font-size:9px}.readout-caption{font-size:9px;padding:3px 0}.readout-caption span{font-size:8px;max-width:72%}.fare-display{min-height:100px;gap:2px}.fare-display strong{font-size:clamp(43px,10vw,70px)}.fare-display span{font-size:13px}.meter-button{min-height:46px;font-size:19px;border-width:1px}.fare-rule{font-size:8px;min-height:27px}.readout-bottom{font-size:8px;padding:7px 0 4px;gap:3px}.readout-bottom b{font-size:10px}.function-buttons{gap:4px;margin-top:7px}.function-buttons button{font-size:12px;min-height:37px;padding:5px 0;border-width:1px}.device-footer{padding:9px 5px 0;font-size:7px}.device-logo{font-size:14px}.device-logo em{font-size:8px}.serial{display:none}.drive-panel{padding:14px 12px;margin-top:15px}.drive-heading{display:block}.drive-heading #message{display:block;margin-top:7px;text-align:left}.drive-row{margin-top:13px}.note{font-size:10px}.tabs{margin-top:20px}.utility-panel{padding:18px 13px}.fields{gap:12px}}@media(max-width:355px){.lcd-grid{grid-template-columns:42px minmax(0,1fr) 63px}.fare-display strong{font-size:41px}.lcd-service{font-size:8px}.meter-button{font-size:17px}.readout-bottom{font-size:7px}.readout-bottom b{font-size:9px}}@media(orientation:landscape) and (max-height:560px){main{max-width:860px;padding-top:6px}.app-header{margin-bottom:8px}.device{padding-top:13px}.lcd-grid{min-height:165px}.note{margin-bottom:3px}.drive-panel{padding:10px 16px;margin-top:9px}.tabs{margin-top:8px}}@media print{body{background:white;color:black}header,.tabs,.drive-panel,.note,footer,.function-buttons,.state-buttons{display:none!important}.device{box-shadow:none;background:white;color:#222;border:1px solid #999}.lcd{border-color:#888}}
/* Viewport-sized meter with settings kept in a modal. */
body{height:100dvh;min-height:0;overflow:hidden}
main{max-width:none;width:100%;height:100%;margin:0;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:8px}
.app-header{flex:none;margin:0;min-height:40px;gap:8px}.brand{font-size:11px;letter-spacing:.12em}.brand small{font-size:8px;margin-left:4px}.screen-actions{display:flex;gap:6px}.screen-actions button{min-height:40px;white-space:nowrap}
.meter-view{flex:1;min-height:0;display:flex}.device{width:100%;min-height:0;display:flex;flex-direction:column;padding:clamp(12px,2vw,28px) clamp(12px,2vw,28px) 10px}.lcd{flex:1;min-height:0;display:flex;flex-direction:column}.lcd-topline{flex:none}.lcd-grid{flex:1;min-height:0;grid-template-columns:clamp(48px,9vw,150px) minmax(0,1fr) clamp(74px,16vw,220px);gap:clamp(4px,1vw,14px)}.readout{justify-content:center}.fare-display{min-height:0;align-items:center}.fare-display strong{font-size:min(15vw,35dvh,240px);line-height:1.05}.fare-display span{font-size:clamp(14px,2.8vw,40px)}.meter-button{min-height:0;font-size:clamp(19px,4vw,64px)}.mode-indicator{font-size:clamp(12px,2.5vw,32px)}.function-buttons{flex:none}.function-buttons button{font-size:clamp(12px,2vw,28px);padding:clamp(6px,1.6vh,15px) 1px}.device-footer{flex:none}.meter-status{flex:none;display:flex;align-items:center;gap:10px;min-height:32px;font-size:11px;color:#b6c4d0}.meter-status span{flex:1}.meter-status button,dialog button{background:#303b46;color:#edf2f7;border:1px solid #627284;border-radius:5px;padding:10px 14px;font-size:12px}.meter-status button{padding:7px 12px;white-space:nowrap}
dialog{color:#dee1e5;background:#171d24;border:1px solid #53616e;border-radius:14px;padding:20px;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 20px 80px #0009}dialog::backdrop{background:#05080cc9;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.dialog-heading h1{font-size:22px;margin:0}.dialog-heading button{min-height:44px}.tabs{margin-top:16px}.tabs button{min-height:44px}.utility-panel{margin-top:12px}.drive-row{flex-wrap:wrap}.demo-controls input{min-height:36px}.setting-actions{flex-wrap:wrap}
@media(max-width:650px){.app-header{margin:0}.brand small{display:none}.device{border-radius:12px}.fare-rule{flex-wrap:wrap;font-size:9px}.readout-bottom{flex-wrap:wrap;font-size:10px;white-space:normal}.readout-bottom b{font-size:13px}.readout-caption{flex-wrap:wrap;font-size:10px}.readout-caption span{font-size:9px;max-width:100%}.lcd-clock{letter-spacing:0}.meter-status{font-size:10px}dialog{padding:14px}.fields{grid-template-columns:1fr 1fr}.utility-panel{padding:16px 12px}}
@media(orientation:portrait) and (max-width:650px){.readout-bottom{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 0}.fare-rule{min-height:40px}.function-buttons button{min-height:48px}.state-buttons{gap:8px}.surcharge-indicator{white-space:normal}.device-footer{padding-top:12px}}
@media(max-height:440px){main{gap:4px}.app-header{min-height:32px}.screen-actions button{min-height:32px;padding:5px 10px}.device{padding-top:10px;padding-bottom:5px}.device-footer{padding-top:5px}.function-buttons{margin-top:5px}.function-buttons button{min-height:32px;padding:4px}.readout-bottom{padding:4px 0}.fare-rule{min-height:22px}.lcd-topline{padding-bottom:4px}.meter-status{min-height:26px}.meter-status button{padding:4px 10px}}
@media print{body{height:auto;overflow:visible}main{height:auto}.meter-status,dialog{display:none!important}.meter-view{min-height:300px}.device{min-height:300px}}

/* Only the meter casing occupies the viewport. */
main{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);gap:0}
.device{box-shadow:inset 0 2px 2px #505963,inset 0 -8px 12px #020305;overflow:hidden}
.device-footer{padding:8px 4px 0;min-height:44px}.device-logo{font-size:clamp(13px,2vw,24px);white-space:nowrap}
.screen-actions{gap:5px}.screen-actions button{min-height:36px;padding:6px 10px;font-size:11px;background:linear-gradient(#343c45,#1d232a);color:#dce4ec;border:1px solid #54606c;border-radius:4px}
.readout .meter-status{color:#516172;font-size:9px;gap:4px;min-height:0;margin-top:5px;flex-wrap:wrap}.readout .meter-status span{min-width:0;overflow-wrap:anywhere}.readout .meter-status button{padding:5px 7px;font-size:10px}
#settings-dialog{position:fixed;inset:auto;margin:0;max-width:none;max-height:none;box-sizing:border-box;border:0;border-radius:2px;box-shadow:none;overscroll-behavior:contain;background:linear-gradient(155deg,#f7fafc,#d3e2f2);color:#171e29;padding:clamp(12px,2vw,24px)}
#settings-dialog::backdrop{background:transparent;backdrop-filter:none}
#settings-dialog .utility-panel{background:#eef4fa;color:#171e29;border-color:#adc2d5}
#settings-dialog .utility-panel p,#settings-dialog .fields label,#settings-dialog .drive-row label,#settings-dialog details{color:#43556c}
#settings-dialog .tabs{border-color:#a5bbcf}#settings-dialog .tabs button{color:#43556c}#settings-dialog .tabs .selected{background:#c3d9f1;color:#142536}
#settings-dialog .demo-controls label,#settings-dialog .demo-controls output,#settings-dialog .range-caption{color:#355070}
#settings-dialog .ride strong{color:#171e29}#settings-dialog .ride small{color:#516172}
@media(max-width:650px){main{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.device-footer{padding-top:6px}.device-logo em{display:none}.screen-actions button{font-size:10px;padding:6px 8px}}
@media(max-height:440px){.device-footer{min-height:32px;padding-top:4px}.screen-actions button{min-height:28px;padding:4px 8px}.readout .meter-status{font-size:8px}.readout .meter-status button{padding:3px 6px}}
@media print{.screen-actions{display:none!important}}
.gps-indicator{display:inline-flex;align-items:center;gap:6px;flex:none}
.gps-strength{display:inline-flex;align-items:flex-end;gap:2px;height:17px;min-width:22px;color:#22683e}
.gps-strength i{display:block;width:4px;background:#a9b8c6;border-radius:1px}
.gps-strength i:nth-child(1){height:4px}.gps-strength i:nth-child(2){height:8px}.gps-strength i:nth-child(3){height:12px}.gps-strength i:nth-child(4){height:16px}
.gps-strength[data-level="1"]{color:#a35d16}
.gps-strength[data-level="1"] i:nth-child(-n+1),.gps-strength[data-level="2"] i:nth-child(-n+2),.gps-strength[data-level="3"] i:nth-child(-n+3),.gps-strength[data-level="4"] i{background:currentColor}
@media(max-width:650px){.gps-indicator{gap:4px}.gps-strength{transform:scale(.85);transform-origin:right center;min-width:22px}}
