/* One non-modal rest surface. Bottom offset measures the actual navigation,
   including its safe area; the keyboard replaces that offset when visible. */
.rest-panel{position:fixed;right:24px;bottom:24px;z-index:7;width:min(440px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 12px 32px #0006;max-height:var(--rest-available-height,calc(100dvh - 100px));overflow:hidden}
.rest-panel[hidden],.rest-panel [hidden]{display:none!important}
.rest-bar{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;gap:2px;padding:6px}
.rest-summary{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:center;text-align:left;min-width:0;min-height:52px;padding:2px 6px;font-weight:400}
.rest-countdown{font:800 25px Manrope,sans-serif;font-variant-numeric:tabular-nums;color:var(--green);white-space:nowrap}
.rest-identification{min-width:0}.rest-status{font-size:12px;font-weight:700;line-height:1.25;margin:0;color:var(--text)}
.rest-series{font-size:12px;white-space:nowrap}.rest-finished .rest-status::before{content:'✓ '}
.rest-label{font-size:12px;line-height:1.3;margin:3px 0 0;color:var(--muted);max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.rest-bar>.rest-pause,.rest-expand{min-width:44px;min-height:44px;padding:8px;border-radius:10px;border:1px solid var(--line);font-size:20px;background:var(--ink);color:var(--green)}
.rest-progress{position:absolute;bottom:0;left:12px;right:12px;height:2px;margin:0;background:var(--line);overflow:hidden;border-radius:2px}
.rest-progress span{display:block;height:100%;background:var(--green)}
.rest-details{padding:4px 14px 14px;overflow:auto;overscroll-behavior:contain;max-height:calc(var(--rest-available-height,70dvh) - 72px)}
.rest-detail-label{font-size:14px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere;margin:4px 0 12px}
.rest-extra{font-size:12px;margin:6px 0}.rest-buttons{gap:6px}.rest-buttons button{min-height:44px}
.rest-sound-details{margin-top:12px;border-top:1px solid var(--line);padding-top:4px}
.rest-sound-details summary{display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:13px;font-weight:600;color:var(--green)}
.rest-sound-details summary::after{content:'⌃'}.rest-sound-details:not([open]) summary::after{content:'⌄'}
.rest-alert-options{display:flex;gap:4px;flex-wrap:wrap;margin:0;padding:0;border:0}.rest-alert-options button{min-height:44px;font-size:12px;padding:8px;color:var(--muted)}
.rest-alert-options button[aria-pressed=true]{color:var(--green)}.rest-caveat{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0}
.rest-finished .rest-status{color:var(--green)}.has-rest-timer .main{padding-bottom:max(70px,var(--rest-clearance,150px))}
html:has(.rest-panel:not([hidden])){scroll-padding-bottom:var(--rest-clearance,150px)}
@media(max-width:700px){.rest-panel{right:8px;width:calc(100% - 16px)}.rest-summary{gap:6px}.has-rest-timer .main{padding-bottom:max(110px,var(--rest-clearance,180px))}}
@media(max-width:350px){.rest-bar{padding:5px;gap:0}.rest-summary{padding-left:3px;padding-right:3px;gap:4px}.rest-countdown{font-size:23px}}
