.auto-steer-hud{position:fixed;top:calc(92px + var(--safe-top));right:32px;width:240px;max-width:calc(100vw - 32px);pointer-events:auto}
.auto-steer-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 13px;border:1px solid #e8edda66;border-radius:6px;background:#203f35ec;color:#fff6e7;font:600 .8125rem/1.25 Arial,sans-serif;text-align:left;backdrop-filter:blur(10px)}
.auto-steer-button[aria-pressed=true]{background:#f4ede0;color:#244339;border-color:#f4ede0}
.auto-steer-button:hover{border-color:#f1bc8e}.auto-steer-state{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0;opacity:.85}
.auto-steer-status{margin:6px 0 0;padding:0 2px;font-size:.75rem;line-height:1.4;color:#f6f1e2;text-shadow:0 1px 5px #102b22,0 1px 9px #102b22}
.auto-steer-menu{margin-top:22px;border-top:1px solid #24433925;padding-top:2px}.auto-steer-menu .settings-row{margin-top:14px}
.puncture-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:17;width:336px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 96px - var(--safe-top) - var(--safe-bottom));overflow:auto;padding:21px 23px;border:1px solid #fff9;border-radius:10px;background:#faf4e7;color:#243f38;box-shadow:0 12px 50px #102b2255;pointer-events:auto}
.puncture-card .eyebrow{font-size:.625rem;letter-spacing:.13em;color:#8c6145;margin:0 0 7px}.puncture-card h2{font:400 1.7rem/1.1 Georgia,serif;letter-spacing:-.035em;margin:0 0 10px}
.puncture-countdown{font-size:.875rem;line-height:1.5;margin:0 0 15px}.puncture-card .button-primary{width:100%;min-height:44px;justify-content:center;background:#294b3e;color:#fff5e4;padding:12px 16px;font-size:.875rem}.puncture-card .button-primary:hover{background:#386251}
.puncture-help{font-size:.75rem;line-height:1.45;margin:10px 0 0;color:#5b6c5e}
#hud:has(#auto-steer-hud:not(.hidden)) #bike-badge{display:none}
#hud:has(#puncture-card:not(.hidden)) > :not(#puncture-card):not(.topbar):not(#toast){visibility:hidden}
@media(max-width:700px),(pointer:coarse),(max-width:900px) and (max-height:560px){
  #hud .auto-steer-hud{position:static;grid-area:3 / 1 / 4 / -1;justify-self:end;width:248px;max-width:100%;min-width:0}
  .auto-steer-status{font-size:.75rem;text-align:right;margin-top:4px}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:900px),(orientation:landscape) and (max-height:560px) and (pointer:coarse){
  #hud .auto-steer-hud{grid-area:2 / 2 / 3 / 3;align-self:start;justify-self:center;width:230px}
  .auto-steer-status{text-align:center}
  .puncture-card{padding:16px 20px;max-height:calc(100dvh - 76px)}
}
