/* BE Personal Training rest timer — restrained black/white/bronze/gold/silver.
   Keep functional controls legible and generous for iPad use. */
.be-rest-entry,.be-rest-overlay,.be-rest-fab,.be-rest-exercise-button{
 --rest-ink:#171718;--rest-charcoal:#222224;--rest-gold:#C6A15C;
 --rest-bronze:#9A7047;--rest-silver:#C7C9CE;--rest-white:#FFFFFF
}
.be-rest-entry{
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;
 background:#FFFFFF!important;color:#181819!important;border:1px solid #D6D8DD!important;
 border-left:3px solid #9A7047!important;border-radius:12px!important;
 box-shadow:none!important;overflow:hidden;padding:15px 17px!important
}
.be-rest-entry h2{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:3px 0 2px!important;color:#171718!important;font-size:1.14rem!important;font-weight:750}
.be-rest-entry p{color:#67676B!important;font-size:.79rem;margin:0!important}
.be-rest-eyebrow{font-size:.61rem;letter-spacing:.1em;font-weight:800;color:#9A7047}
.be-rest-entry-clock{font-size:.97rem!important;color:#9A7047!important;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.be-rest-entry-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.be-rest-button,.be-rest-icon,.be-rest-presets button,.be-rest-adjust button,.be-rest-options button,.be-rest-exercise-button{
 appearance:none;border:1px solid transparent;border-radius:7px;font-family:inherit;font-weight:700;
 cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent
}
.be-rest-button{min-height:42px;padding:10px 15px;font-size:.85rem;white-space:nowrap}
.be-rest-entry .be-rest-start{background:#222224!important;border-color:#222224!important;color:#FFFFFF!important}
.be-rest-entry .be-rest-outline{background:#FFFFFF!important;color:#222224!important;border-color:#C7C9CE!important}
.be-rest-entry button:focus-visible,.be-rest-modal button:focus-visible,.be-rest-fab:focus-visible,.be-rest-exercise-button:focus-visible{
 outline:3px solid #C6A15C!important;outline-offset:3px!important
}
.be-rest-fab{
 position:fixed;z-index:920;right:max(17px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));
 display:flex;align-items:center;justify-content:center;gap:7px;
 height:49px;min-width:122px;padding:8px 13px;border:1px solid #9A7047;border-radius:8px;
 background:#171718;color:#FFFFFF;font:inherit;box-shadow:0 4px 16px #0004;cursor:pointer
}
.be-rest-fab>span{font-size:1.1rem;color:#C6A15C}
.be-rest-fab strong{font-size:.99rem;font-weight:800;font-variant-numeric:tabular-nums}
.be-rest-fab small{font-size:.58rem;color:#C7C9CE;font-weight:750;letter-spacing:.07em}
.be-rest-fab-running{border-color:#C6A15C!important;box-shadow:inset 3px 0 #C6A15C,0 4px 16px #0004!important}
.be-rest-overlay[hidden],.be-rest-modal [hidden]{display:none!important}
.be-rest-overlay{
 position:fixed;inset:0;z-index:3000;overflow-y:auto;overscroll-behavior:contain;
 display:flex;align-items:center;justify-content:center;padding:16px;
 background:#09090BD9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)
}
.be-rest-modal{
 position:relative;width:min(570px,100%);max-height:95dvh;overflow-y:auto;
 padding:clamp(20px,3vw,30px);border:1px solid #555558;border-radius:14px;
 background:#19191B!important;color:#FFFFFF!important;box-shadow:0 24px 70px #0008;
 --be-rest-gold:#C6A15C
}
.be-rest-modal-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-bottom:16px;border-bottom:1px solid #424244}
.be-rest-title{display:flex;gap:16px;align-items:center;min-width:0}
.be-rest-logo{width:55px;height:37px;object-fit:contain;flex:none}
.be-rest-modal-top h2{font-size:1.17rem!important;font-weight:750!important;letter-spacing:-.025em;color:#FFFFFF!important;margin:2px 0 0}
.be-rest-modal-top .be-rest-eyebrow{color:#C6A15C}
.be-rest-top-buttons{display:flex;gap:7px;align-items:center}
.be-rest-icon{display:grid;place-items:center;min-width:42px;min-height:42px;background:#29292C;color:#FFFFFF;border-color:#535356;font-size:1.26rem}
.be-rest-center{display:block;margin:18px 0 22px}
.be-rest-ring{
 display:flex;flex-direction:column;align-items:stretch;justify-content:center;
 width:100%;height:auto;min-height:208px;padding:23px 26px 0;border:1px solid #414143;border-radius:9px;
 background:#222224!important;box-shadow:none!important
}
.be-rest-ring-inner{
 display:flex;align-items:center;justify-content:center;flex-direction:column;
 border:0;background:transparent!important;box-shadow:none!important;text-align:center
}
.be-rest-ring-inner>span{font-size:.65rem;letter-spacing:.13em;color:#C7C9CE;font-weight:750}
.be-rest-ring-inner strong{
 display:block;color:#FFFFFF!important;font-size:clamp(4rem,10vw,6.5rem);font-weight:650;
 letter-spacing:-.07em;line-height:1.12;font-variant-numeric:tabular-nums;white-space:nowrap
}
.be-rest-ring-inner em{font-style:normal;font-size:.83rem;color:#D1D1D4;font-weight:650;margin:4px 0 22px}
.be-rest-ring[data-phase="finished"] .be-rest-ring-inner em{color:#C6A15C}
.be-rest-meter{height:5px;width:calc(100% + 52px);margin-left:-26px;background:#48484B}
.be-rest-meter>span{display:block;height:100%;background:#C6A15C;transition:width .14s linear}
.be-rest-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.be-rest-presets button{min-height:48px;padding:8px 5px;font-size:.94rem;font-variant-numeric:tabular-nums;background:#242427;color:#F6F6F7;border-color:#505053}
.be-rest-presets button.is-selected{background:#C6A15C!important;border-color:#C6A15C!important;color:#111111!important}
.be-rest-adjust{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:9px 0 0}
.be-rest-adjust>span{font-size:.74rem;color:#BABBBE;text-align:center}
.be-rest-adjust button{min-height:40px;min-width:90px;padding:8px 12px;background:#252527;color:#F5F5F5;border-color:#515154;font-size:.8rem}
.be-rest-controls{display:flex;justify-content:center;gap:9px;margin:21px 0 12px}
.be-rest-controls .be-rest-button{flex:1;min-width:0;max-width:280px;min-height:54px;font-size:.95rem}
.be-rest-controls .be-rest-primary{background:#C6A15C!important;color:#111111!important;border-color:#C6A15C!important}
.be-rest-controls .be-rest-outline{background:#252527!important;color:#FFFFFF!important;border-color:#646469!important}
.be-rest-options{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:10px 0 12px;padding-top:13px;border-top:1px solid #414143}
.be-rest-options button{min-height:41px;padding:8px 12px;color:#E5E5E7;background:#252527;border-color:#515153;font-size:.76rem}
.be-rest-options button[aria-pressed="true"]{background:#37302A;border-color:#9A7047;color:#EDD4AA}
.be-rest-hint{display:block;font-size:.71rem;text-align:center;color:#B6B6BB;line-height:1.5}
.be-rest-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.be-rest-exercise-button{
 display:inline-flex;align-items:center;gap:8px;min-height:42px;margin-top:7px;padding:8px 12px;
 background:#F4F4F5!important;color:#29292B!important;border-color:#D6D8DD!important;font-size:.8rem;text-align:left
}
.be-rest-exercise-button span{font-size:.7rem;color:#77787B}
.be-rest-overlay.be-rest-expanded{padding:0}
.be-rest-expanded .be-rest-modal{
 display:flex;flex-direction:column;justify-content:space-between;
 width:100%;min-height:100dvh;max-height:none;border:0;border-radius:0;
 padding:max(22px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left))
}
.be-rest-expanded .be-rest-center{flex:1;display:flex;flex-direction:column;justify-content:center}
.be-rest-expanded .be-rest-ring{min-height:min(40vh,350px)}
.be-rest-expanded .be-rest-ring-inner strong{font-size:clamp(6rem,17vw,10.5rem)}
body.be-rest-open{overflow:hidden}
.bh-coach-page .bh-set-grid{grid-template-columns:minmax(92px,115px) minmax(80px,1fr) minmax(85px,1fr)}
.be-rest-set-cell{display:flex;align-items:center;gap:8px;min-width:0;font-size:.82rem;font-weight:700}
.be-rest-set-cell>span{min-width:12px}
.be-rest-set-action{
 min-width:62px;min-height:42px;border-radius:7px;border:1px solid #D6D8DD;
 background:#F4F4F5!important;color:#343438!important;font:inherit;font-size:.75rem;font-weight:750;cursor:pointer;touch-action:manipulation
}
.be-rest-set-action:focus-visible{outline:3px solid #C6A15C;outline-offset:2px}
@media(hover:hover){.be-rest-button:hover,.be-rest-icon:hover,.be-rest-presets button:hover,.be-rest-adjust button:hover,.be-rest-options button:hover,.be-rest-exercise-button:hover{filter:brightness(1.10)}}
@media(max-width:780px){
 .be-rest-entry-actions{width:100%}.be-rest-entry-actions>button{flex:1}
 .be-rest-fab{right:12px;bottom:calc(90px + env(safe-area-inset-bottom));min-width:109px;height:45px}
 .be-rest-overlay{padding:9px}.be-rest-modal{border-radius:11px;padding:18px}
 .be-rest-ring{min-height:192px}
}
@media(max-height:650px){
 .be-rest-overlay{align-items:flex-start}.be-rest-modal{max-height:none}
 .be-rest-center{margin:10px 0}.be-rest-ring{min-height:165px}
 .be-rest-ring-inner strong{font-size:clamp(3.3rem,8vw,4.7rem)}
}
@media(max-width:410px){
 .be-rest-logo{width:43px;height:30px}.be-rest-title{gap:8px}
 .be-rest-top-buttons{gap:4px}.be-rest-icon{min-width:39px;min-height:39px}
 .be-rest-ring{padding:14px 10px 0;min-height:171px}
 .be-rest-meter{width:calc(100% + 20px);margin-left:-10px}
 .be-rest-ring-inner strong{font-size:clamp(3.55rem,15vw,5rem)}
 .be-rest-adjust button{min-width:77px;padding:7px}
 .bh-coach-page .bh-set-grid{grid-template-columns:92px minmax(72px,1fr) minmax(78px,1fr);gap:5px}
 .be-rest-set-cell{gap:4px}.be-rest-set-action{min-width:60px;padding:3px}
}
@media(prefers-reduced-motion:reduce){.be-rest-meter>span{transition:none}}
