:root{color-scheme:light;--bg:#e2e5e7;--card:#f4f5f6;--ink:#20282d;--muted:#4e5b62;--line:#b8c1c6;--green:#176b37;--red:#ad2029;--orange:#965800;--gray:#53636b;--head:#293238;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:18px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.3}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #1462a0;outline-offset:2px}button:disabled{opacity:.6;cursor:not-allowed}[hidden]{display:none!important}header{background:var(--head);color:white}.bar{max-width:960px;margin:auto;display:flex;align-items:center;gap:12px;padding:15px 12px}.bar h1{font-size:27px;margin:0;font-weight:800}.bar p{font-size:15px;margin:3px 0 0;color:#e1e6e8}.refresh,.back{border:1px solid #849198;color:white;background:none;border-radius:8px;min-width:46px;min-height:46px;font-size:32px;line-height:1}.refresh{margin-left:auto}.back{border:0;font-size:40px}main{max-width:960px;margin:auto;padding:12px}.contact,.primary{width:100%;border:0;border-radius:9px;background:var(--head);color:white;min-height:50px;padding:12px;font-weight:700}.contact{background:var(--card);color:var(--head);border:1px solid #89959b;margin-bottom:12px}.summary{display:flex;flex-wrap:wrap;gap:6px 15px;font-size:15px;font-weight:700;margin:0 0 12px}.stations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}.station{display:flex;flex-direction:column;text-align:left;min-width:0;padding:11px 9px;background:var(--card);border:1px solid var(--line);border-radius:11px;color:var(--ink);gap:6px;width:100%;overflow-wrap:anywhere}.station:active{background:#d6dcdf}.station-top{display:flex;align-items:flex-start;gap:7px}.pump{width:31px;height:35px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.station h2{font-size:19px;line-height:1.13;margin:0;font-weight:800}.station .brand{font-size:15px;font-weight:650}.address{font-size:15px;color:var(--muted);min-height:2.5em}.schedule{font-size:14px;display:grid;gap:4px;border-top:1px solid var(--line);padding-top:7px}.state{font-size:17px;font-weight:800;border-top:1px solid var(--line);padding-top:7px;line-height:1.2}.metrics{display:grid;gap:5px;font-size:15px}.metrics div{display:flex;gap:5px;align-items:baseline}.mini{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none;align-self:center}.green{color:var(--green)}.red{color:var(--red)}.orange,.shift{color:var(--orange)}.unknown,.closed_hours{color:var(--gray)}.closed_admin{color:var(--red)}.age{font-size:13px;font-weight:600;color:var(--muted);margin-top:auto;padding-top:5px}.age.old{color:var(--orange)}.foot{font-size:14px;color:var(--muted);text-align:center}.panel{background:var(--card);border:1px solid var(--line);border-radius:11px;padding:14px;margin-bottom:12px}.panel h2{font-size:23px;margin:0 0 8px}.panel h3{font-size:20px;margin:0 0 12px}.panel p{margin:6px 0}.history{padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.history:last-child{border:0}.history time{font-weight:750;font-size:15px;color:var(--muted)}.history p{font-size:17px}.field{margin:0 0 17px;min-width:0;border:0;padding:0}.field legend,.field>label,.label{font-weight:750;margin-bottom:8px;display:block}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.choices.three{grid-template-columns:repeat(3,minmax(0,1fr))}.choice{display:block;position:relative}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice span{display:flex;justify-content:center;align-items:center;min-height:49px;height:100%;padding:8px 4px;text-align:center;background:#e3e7e9;border:1px solid #9da9b0;border-radius:8px;font-size:17px;font-weight:650}.choice input:checked+span{background:#35434b;color:white;border-color:#35434b}.choice input:checked+span.yes{background:var(--green)}.choice input:checked+span.no{background:var(--red)}.choice input:checked+span.generator{background:#f0cb70;color:#252019;border-color:#965800}.choice input:focus-visible+span{outline:3px solid #1462a0;outline-offset:2px}textarea,input:not([type=radio]):not([type=checkbox]),select{background:#fff;border:1px solid #8e9ca3;border-radius:8px;padding:11px;width:100%;min-height:48px;font-size:18px}textarea{resize:vertical;min-height:90px}.hint{font-size:15px;color:var(--muted)}.counter{text-align:right;font-size:14px;color:var(--muted)}.error{color:var(--red);font-weight:650;margin:8px 0}.notice:not(:empty),#notice:not(:empty){padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--card);margin:0 0 10px}.secondary{background:var(--card);border:1px solid #89959b;border-radius:8px;padding:10px;min-height:46px;font-weight:700}.adminrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.adminrow button{flex:none}.adminlist{display:grid;gap:8px}.adminlist .panel{margin:0}a{color:#17588a}#detail-view,#message-view{max-width:650px;margin:auto}@media(min-width:650px){.station{padding:16px}.station h2{font-size:23px}.address,.metrics{font-size:18px}.schedule,.age{font-size:16px}.pump{width:39px;height:42px}}@media(max-width:360px){main{padding:7px}.stations{gap:6px}.station{padding:8px 6px}.station h2{font-size:17px}.station-top{gap:4px}.pump{width:26px}.choice span{font-size:15px}}

/* UI v0.2 */
#edit-form input[type=date]{display:block;width:100%;min-width:0;max-width:100%;height:48px;padding:8px 10px;-webkit-appearance:none;appearance:none;text-align:left}
#edit-form input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
.edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.edit-actions button{width:100%;min-width:0;min-height:48px;padding:8px}
#admin-stations .adminrow{position:relative;display:block;padding-right:65px;overflow-wrap:anywhere}
#admin-stations .edit-pencil{position:absolute;top:10px;right:10px;width:44px;height:44px;min-height:44px;padding:9px;display:grid;place-items:center}
.edit-pencil svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.station .station-top{display:block;width:100%}
.station h2{font-size:clamp(13px,4vw,17px);line-height:1.2;overflow-wrap:normal}
.station .state{display:flex;align-items:flex-start;gap:6px}
.station .pump{width:23px;height:25px;flex:none}
.station .schedule>div{display:flex;align-items:flex-start;gap:4px}
.station .schedule>div>span{min-width:0}
@media(min-width:650px){.station h2{font-size:21px}.station .pump{width:30px;height:32px}}

.station .state.unknown{font-size:14px;font-weight:600;}

/* UI v0.2.2 */
#detail-view .choice span{font-size:15px}
#detail-view .primary{font-size:16px}
@media(max-width:360px){
    #detail-view .choice span{font-size:13px}
}

/* UI v0.2.3 */
.station .state{
    border-bottom:1px solid var(--line);
    padding-bottom:7px;
    align-items:center;
}

/* UI v0.2.4 */
.station .state{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:3px 6px;
    align-items:center;
    align-content:center;
}
.station .state .pump{
    grid-row:1 / span 2;
}
.station .state .age{
    grid-column:2;
    margin:0;
    padding:0;
    font-size:12px;
    font-weight:500;
}
.map-actions{
    display:grid;
    gap:7px;
    margin:12px 0;
    text-align:center;
}
.map-route{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:10px;
    border:1px solid #89959b;
    border-radius:8px;
    background:#e3e7e9;
    color:var(--ink);
    font-size:15px;
    font-weight:700;
    text-decoration:none;
}
.map-search{
    font-size:13px;
}

/* UI v0.2.5 */
.main-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-bottom:12px;
}
.main-actions .contact{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:76px;
    margin:0;
    padding:8px 5px;
    font-size:14px;
    line-height:1.25;
}
.action-icon{
    font-size:23px;
    line-height:1;
}
.android-icon{
    color:var(--green);
    font-weight:800;
}

/* UI v0.2.7 */
.station .state,
.station .state.unknown,
.station .state > span {
    font-size:14px !important;
    font-weight:700;
    line-height:1.25;
}

.station .state .age {
    font-size:12px !important;
    font-weight:500;
}

/* UI v0.2.8 */

.station .state{
    align-content:start;
}

.station .state .pump{
    align-self:start;
    margin-top:0;
}

.map-actions .map-route,
.map-actions .map-search{
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    width:100%;
    min-height:46px;
    padding:10px 8px;
    border:1px solid #89959b;
    border-radius:8px;
    background:#e3e7e9;
    color:var(--ink);
    font-size:15px;
    font-weight:700;
    line-height:1.25;
    text-align:center;
    text-decoration:none;
}

/* UI v0.2.9 */
.map-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    align-items:stretch;
}
.map-actions .map-route,
.map-actions .map-search{
    min-width:0;
    min-height:60px;
    font-size:14px;
    padding:8px 5px;
}
.map-actions .hint{
    grid-column:1 / -1;
}

/* UI v0.2.10 */
.map-actions .map-search {
    order:1;
}
.map-actions .map-route {
    order:2;
}
.map-actions .hint {
    order:3;
}
.map-actions a {
    font-size:14px;
    line-height:1.3;
    text-align:center;
}

/* UI v0.2.12 — Report section */

#detail-view #report {
    background:#D5E0E8;
    border:1px solid #8599A8;
    margin-top:20px;
    border-radius:11px;
}

#detail-view #report > h3 {
    background:#354E60;
    color:#FFFFFF;
    margin:-14px -14px 18px;
    padding:14px;
    border-radius:10px 10px 0 0;
    font-size:20px;
}

#detail-view #report .choice input:not(:checked) + span {
    background:#F4F7FA;
    border-color:#8D9EAB;
}

#detail-view #report .primary {
    background:#354E60;
    color:#FFFFFF;
}


/* UI v0.2.13 */
#notice.notice-success:not(:empty){
    background:#176B37;
    color:#FFFFFF;
    border:1px solid #12582D;
    font-size:15px;
    font-weight:700;
    padding:14px 10px;
    text-align:center;
}
#notice.notice-success::before{
    content:"✓ ";
}

/* UI v0.2.14 */
.detail-status {
    border-top:1px solid var(--line);
    margin-top:12px;
    padding-top:10px;
}
.detail-updated {
    font-size:14px;
    font-weight:600;
    color:var(--muted);
    margin-top:5px;
}
.detail-updated.old {
    color:var(--orange);
}

/* UI v0.2.15 */
.detail-status p,
.detail-status .detail-updated {
    font-size:18px;
    font-weight:700;
    line-height:1.3;
}
.detail-status .detail-updated {
    display:block;
    color:inherit;
    margin-top:4px;
}

/* Admin order v0.2.6 */
#admin-stations .order-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}
#admin-stations .order-actions button{width:42px;min-height:42px;padding:4px;font-size:20px}
#admin-stations .order-actions button:disabled{opacity:.35;cursor:default}
#admin-stations .order-actions label{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--muted)}
#admin-stations .order-actions select{width:auto;min-width:56px;min-height:42px;padding:5px;font-size:15px}


/* UI v0.2.18 */

.station .state {
    border-bottom: 0;
    padding-bottom: 3px;
}

.detail-status {
    background: var(--gray);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 12px 14px;
    margin-top: 12px;
}

.detail-status.green {
    background: var(--green);
}

.detail-status.red,
.detail-status.closed_admin {
    background: var(--red);
}

.detail-status.shift,
.detail-status.closed_hours {
    background: var(--orange);
}

.detail-status.unknown {
    background: var(--gray);
}

.detail-status p,
.detail-status p b,
.detail-status .detail-updated,
.detail-status .detail-updated.old {
    color: #fff;
}

.detail-status p {
    margin: 0;
}

.detail-status .detail-updated {
    margin-top: 4px;
}


/* UI v0.2.19 */

#android-download,
#contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#android-download .action-icon,
#contact .action-icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#android-download::before,
#contact::before {
    content: none;
}
