#hbqGuidedDialog{color:#f6f3f5;background:#19171d;border:1px solid #61434f;border-radius:22px;width:min(720px,calc(100vw - 24px));max-height:92dvh;padding:0;box-shadow:0 24px 90px #0009}
#hbqGuidedDialog::backdrop{background:#08060ccc;backdrop-filter:blur(5px)}
#hbqGuidedDialog .hg-shell{padding:26px}#hbqGuidedDialog h2{font-size:clamp(24px,5vw,36px);line-height:1.15;margin:8px 0 18px;color:#fff}#hbqGuidedDialog h3{color:#fff;font-size:17px}
#hbqGuidedDialog .hg-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.hg-kicker{color:#f5a6c5;font-size:12px;letter-spacing:.1em;font-weight:700}
#hbqGuidedDialog label{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:14px;color:#e4dce2}#hbqGuidedDialog input,#hbqGuidedDialog select{width:100%;min-width:0;box-sizing:border-box;background:#28232c;color:#fff;border:1px solid #6a5d6a;border-radius:10px;padding:12px;font:inherit}
#hbqGuidedDialog button,#hgSavedPlans button,.hg-launch button{min-height:44px;cursor:pointer}#hbqGuidedDialog button{white-space:normal}#hbqGuidedDialog .primary{background:#963957;color:#fff;border:1px solid #da8fa8}#hbqGuidedDialog .secondary{background:#302832;color:#fff;border:1px solid #6a5d6a}#hbqGuidedDialog button:focus-visible,#hbqGuidedDialog input:focus-visible,#hbqGuidedDialog select:focus-visible{outline:3px solid #ffc375;outline-offset:3px}
.hg-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hg-note{color:#c4b9c3;font-size:13px;line-height:1.6}.hg-estimate{padding:16px;background:#332530;color:#ffe2ee;border-radius:12px;margin:18px 0;font-weight:600}.hg-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.hg-actions button{flex:1;padding:12px;border-radius:12px;font:inherit;font-weight:700}.hg-targets article{border-top:1px solid #51434f;margin-top:16px;padding-top:8px}
#hbqGuidedDialog summary{cursor:pointer;padding:12px 0}#hbqGuidedDialog progress{width:100%;height:8px;accent-color:#ec94b3;margin:12px 0 22px}.hg-current{text-align:center}.hg-exercise-image{display:block;width:100%;height:160px;object-fit:contain;border-radius:12px;margin:12px auto;background:#f5f2f3}.hg-timer{font-size:clamp(46px,13vw,76px);font-weight:800;text-align:center;font-variant-numeric:tabular-nums;line-height:1.2;color:#ffc1d8}.hg-center{text-align:center;color:#d2c5cf}.hg-stats>div{padding:16px;background:#28222c;border:1px solid #493d49;border-radius:14px}.hg-stats span{display:block;font-size:12px;color:#cbbcc7}.hg-stats strong{display:block;font-size:25px;margin-top:8px;font-variant-numeric:tabular-nums}.hg-next{padding:14px;border-left:3px solid #d97a9d;background:#241e28;font-size:14px}.hg-results>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #493d49}.hg-results strong{white-space:nowrap}.hg-saved-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 0;border-bottom:1px solid #504653}.hg-saved-row small{display:block;margin-top:6px}.hg-saved-row button{margin:4px}.hg-launch{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}#hgMessage{color:#ffd0e1;line-height:1.5}#hbqGuidedDialog[aria-busy=true] button,#hbqGuidedDialog[aria-busy=true] input,#hbqGuidedDialog[aria-busy=true] select{pointer-events:none;opacity:.7}
@media(max-width:480px){#hbqGuidedDialog .hg-shell{padding:18px}.hg-grid{gap:10px}.hg-actions{flex-direction:column}.hg-stats strong{font-size:22px}.hg-targets .hg-grid{grid-template-columns:1fr}#hbqGuidedDialog .hg-header button{padding:8px}.hg-exercise-image{height:135px}}

/* Refined layout: quiet surfaces, consistent controls and reachable mobile actions. */
#hbqGuidedDialog{background:#17171c;border-color:#3e3540;border-radius:24px;width:min(760px,calc(100vw - 24px));max-height:92dvh;font-family:inherit;scrollbar-width:thin;scrollbar-color:#695363 #17171c}
#hbqGuidedDialog .hg-shell{padding:30px;box-sizing:border-box}
#hbqGuidedDialog h2{font-size:30px;font-weight:750;letter-spacing:-.035em;line-height:1.2;margin:8px 0 18px}
#hbqGuidedDialog .hg-header{padding-bottom:16px;border-bottom:1px solid #363039;margin-bottom:22px;align-items:flex-start}
#hbqGuidedDialog .hg-header p{color:#bbb2be;margin:8px 0 0;font-size:13px}
#hbqGuidedDialog .hg-header button{border:1px solid #49404d;border-radius:10px;min-height:38px;padding:8px 12px;font-size:13px;flex-shrink:0}
#hbqGuidedDialog .hg-kicker{font-size:10px;letter-spacing:.14em;color:#e6a1b9;line-height:1.5}
#hbqGuidedDialog label{font-size:13px;font-weight:600;line-height:1.5;margin:10px 0;color:#ded9e2}
#hbqGuidedDialog input,#hbqGuidedDialog select{font-size:16px;font-weight:400;background:#222128;border-color:#48414d;border-radius:12px;min-height:48px;padding:11px 12px}
#hbqGuidedDialog .hg-grid{gap:16px;align-items:start}
#hbqGuidedDialog .hg-grid label{height:auto;justify-content:flex-start}
#hbqGuidedDialog .hg-note{font-size:12px;line-height:1.6;color:#ada4b3;margin:14px 0}
#hbqGuidedDialog .hg-overview{border:1px solid #61414f;background:#2a2029;border-radius:16px;padding:18px 20px;margin:22px 0}
#hbqGuidedDialog .hg-estimate{padding:0;margin:7px 0 0;border:0;background:none;font-size:17px;line-height:1.6;color:#f3e8ee;font-weight:600}
#hbqGuidedDialog details{border:1px solid #39323f;border-radius:14px;padding:0 16px;background:#1d1b23;margin-bottom:20px}
#hbqGuidedDialog summary{padding:15px 0;font-size:13px;color:#d7cedd;font-weight:600}
#hbqGuidedDialog .hg-targets article{border-color:#39323f;padding:8px 0 12px;margin-top:0}
#hbqGuidedDialog .hg-targets h3{font-size:15px;line-height:1.4;margin:12px 0}
#hbqGuidedDialog .hg-actions{gap:10px;margin-top:20px}
#hbqGuidedDialog .hg-actions button{font-size:14px;font-weight:650;border-radius:12px;min-height:48px;line-height:1.4;padding:12px 16px}
#hbqGuidedDialog .primary{background:#963c5b;border-color:#b65878;color:white;box-shadow:0 3px 10px #08060c30}
#hbqGuidedDialog .secondary{background:#24212a;border-color:#4d4253;color:#ebe5ef;box-shadow:none}
#hbqGuidedDialog .primary:hover{background:#ad486b}#hbqGuidedDialog .secondary:hover{background:#322b38}
#hbqGuidedDialog[data-view=player] .hg-header{margin-bottom:8px;padding-bottom:14px}
#hbqGuidedDialog progress{height:6px;border-radius:8px;overflow:hidden;margin:10px 0 24px;border:0;background:#38303d}
#hbqGuidedDialog progress::-webkit-progress-bar{background:#38303d;border-radius:8px}#hbqGuidedDialog progress::-webkit-progress-value{background:#d3819f;border-radius:8px}
#hbqGuidedDialog .hg-current h2{margin:8px 0 10px;font-size:28px}
#hbqGuidedDialog .hg-current>p:not(.hg-note){color:#e4d7e0;font-size:15px;margin:8px 0}
#hbqGuidedDialog .hg-exercise-image{height:170px;margin:16px auto;border-radius:14px}
#hbqGuidedDialog .hg-current .hg-note{max-width:560px;margin:12px auto 20px}
#hbqGuidedDialog .hg-clock-card{background:#211d26;border:1px solid #443448;border-radius:20px;padding:22px 16px 16px;text-align:center;margin:20px 0 14px}
#hbqGuidedDialog .hg-timer{font-size:72px;letter-spacing:-.045em;line-height:1.1;margin:8px 0;color:#f2dbe7;font-weight:750}
#hbqGuidedDialog .hg-center{font-size:13px;margin:8px 0 0;color:#c5b6c7}
#hbqGuidedDialog .hg-stats{gap:12px}
#hbqGuidedDialog .hg-stats>div{background:#201e26;border-color:#3b3341;padding:16px;border-radius:14px}
#hbqGuidedDialog .hg-stats span{font-size:11px;line-height:1.5;color:#b8aebb}
#hbqGuidedDialog .hg-stats strong{font-size:25px;letter-spacing:-.025em;color:#f1eaf2}
#hbqGuidedDialog .hg-next{border:1px solid #3b3341;border-left:3px solid #b66685;border-radius:10px;background:#201d25;padding:13px 16px;margin:14px 0;font-size:13px;line-height:1.5;color:#d7cbdc}
#hbqGuidedDialog .hg-player-actions{display:grid;grid-template-columns:1fr 1.7fr;position:sticky;bottom:-30px;background:#17171cf5;padding:14px 0 12px;margin-top:8px;z-index:2;border-top:1px solid #38303d}
#hbqGuidedDialog .hg-player-actions [data-hg=finish]{grid-column:1 / -1;border:0;background:none;min-height:32px;padding:5px;color:#bbadbf;font-size:12px}
#hbqGuidedDialog .hg-results{margin-top:20px;font-size:13px;line-height:1.5}
#hbqGuidedDialog .hg-results>div{padding:14px 2px;border-color:#39323f}
#hbqGuidedDialog .hg-results strong{color:#f0c8dc;font-variant-numeric:tabular-nums}
#hbqGuidedDialog #hgMessage{font-size:13px;color:#f2bbd1;margin:14px 0 0}#hbqGuidedDialog #hgMessage:empty{display:none}
#hgSavedPlans{border-radius:18px}#hgSavedPlans h3{margin-bottom:8px}#hgSavedPlans .hg-saved-row{border-color:#493e4d}#hgSavedPlans .hg-saved-row strong{font-size:15px}#hgSavedPlans .hg-saved-row small{font-size:12px;color:#bcb2c3}#hgSavedPlans button,.hg-launch button{border-radius:11px;padding:10px 14px;font-size:13px}.hg-launch{margin:16px 0;gap:10px}
@media(max-width:480px){
 #hbqGuidedDialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:20px}
 #hbqGuidedDialog .hg-shell{padding:20px}
 #hbqGuidedDialog h2{font-size:26px;margin-bottom:10px}
 #hbqGuidedDialog .hg-header{gap:10px;margin-bottom:18px;padding-bottom:14px}
 #hbqGuidedDialog .hg-header .hg-kicker{font-size:9px;letter-spacing:.09em}
 #hbqGuidedDialog .hg-grid{gap:12px}
 #hbqGuidedDialog .hg-grid>label{font-size:12px}
 #hbqGuidedDialog .hg-grid>label input{margin-top:auto}
 #hbqGuidedDialog .hg-overview{padding:16px;margin:18px 0}
 #hbqGuidedDialog .hg-estimate{font-size:15px}
 #hbqGuidedDialog .hg-current h2{font-size:25px}
 #hbqGuidedDialog .hg-exercise-image{height:135px}
 #hbqGuidedDialog .hg-clock-card{padding:18px 14px 15px;margin:16px 0 12px}
 #hbqGuidedDialog .hg-timer{font-size:64px}
 #hbqGuidedDialog .hg-stats>div{padding:13px}
 #hbqGuidedDialog .hg-stats strong{font-size:23px}
 #hbqGuidedDialog .hg-player-actions{bottom:-20px}
 #hbqGuidedDialog .hg-player-actions button{padding:11px 8px;font-size:13px}
 .hg-launch{flex-direction:column}.hg-launch button{width:100%}
}

/* Plan creation and exercise picker use HBQ's black + burgundy theme. */
#hgCreatePlan,#hgSavedPlans,#hbqGuidedDialog{--hg-bg:var(--vp-bg,#0a0b0f);--hg-surface:var(--vp-surface,#17181f);--hg-control:var(--vp-surface-2,#1f2129);--hg-border:var(--vp-border,#3d3f49);--hg-accent:var(--vp-burgundy,#9f1d55);--hg-muted:var(--vp-muted,#b9bcc6)}
#hgCreatePlan{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid var(--hg-border);border-top:3px solid var(--hg-accent);border-radius:18px;background:var(--hg-surface);padding:24px;margin:20px 0 24px;color:#fff}
#hgCreatePlan h3{font-size:23px;margin:6px 0 8px;line-height:1.3}#hgCreatePlan p{color:var(--hg-muted);font-size:14px;line-height:1.6;margin:0;max-width:580px}
#hgCreatePlan .hg-kicker,#hgSavedPlans .hg-kicker{color:#e292b3;font-size:10px;letter-spacing:.12em;font-weight:700}
#hgSavedPlans{background:var(--hg-surface)!important;border:1px solid var(--hg-border)!important;border-radius:18px!important;padding:24px!important;margin:20px 0!important}
#hgSavedPlans h3{font-size:21px;line-height:1.35;margin:6px 0!important}
#hgCreatePlan button,#hgSavedPlans button,#hbqGuidedDialog button{appearance:none;-webkit-appearance:none;font-family:inherit!important;line-height:1.4!important;border-style:solid!important;border-width:1px!important;border-radius:12px!important;box-shadow:none!important;cursor:pointer}
#hgCreatePlan button,#hgSavedPlans button{padding:12px 18px!important;font-size:14px!important;font-weight:650!important;min-height:46px;white-space:normal}
#hgCreatePlan .primary,#hgSavedPlans .primary,#hbqGuidedDialog .primary{background:var(--hg-accent)!important;border-color:#b94777!important;color:#fff!important}
#hgCreatePlan .secondary,#hgSavedPlans .secondary,#hbqGuidedDialog .secondary{background:var(--hg-control)!important;border-color:var(--hg-border)!important;color:#f6f3f6!important}
#hgCreatePlan button{flex-shrink:0}#hgSavedPlans .hg-hub-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#hgSavedPlans .hg-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
#hgSavedPlans .hg-empty{padding:22px;background:#111217;border:1px dashed #49404e;border-radius:13px;color:#b9bcc6;font-size:14px;line-height:1.6}#hgSavedPlans .hg-empty strong{display:block;color:#e7e8ec;margin-bottom:6px}#hgSavedPlans .hg-empty p{margin:0;color:#b9bcc6}
#hgSavedPlans .hg-saved-row>div:last-child{display:flex;gap:8px}#hgSavedPlans .hg-saved-row button{margin:0}#hgSavedPlans button:focus-visible,#hgCreatePlan button:focus-visible{outline:3px solid #e59abb;outline-offset:3px}
#hbqGuidedDialog{background:var(--hg-surface)!important;color:#fff!important;border-color:var(--hg-border)!important}
#hbqGuidedDialog .hg-composition{margin:22px 0;padding:18px;border:1px solid var(--hg-border);border-radius:16px;background:#111217}
#hbqGuidedDialog .hg-section-heading,#hbqGuidedDialog .hg-picker-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
#hbqGuidedDialog .hg-section-heading h3{margin:5px 0;font-size:17px;line-height:1.4}
#hbqGuidedDialog .hg-section-heading button,#hbqGuidedDialog .hg-picker-top button{padding:10px 12px;min-height:42px;font-size:13px;flex-shrink:0}
#hbqGuidedDialog .hg-empty{font-size:13px;line-height:1.6;color:var(--hg-muted);margin:14px 0 0}
#hbqGuidedDialog .hg-selected-list{padding:0;margin:16px 0 0;list-style:none;display:grid;gap:8px}
#hbqGuidedDialog .hg-selected-list li{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #33343e;background:var(--hg-surface);border-radius:12px}
#hbqGuidedDialog .hg-number{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#351522;color:#eea5c5;font-size:11px;font-weight:700;flex-shrink:0}
#hbqGuidedDialog .hg-selected-name{flex:1;min-width:0}#hbqGuidedDialog .hg-selected-name strong{font-size:13px;display:block;line-height:1.4}#hbqGuidedDialog .hg-selected-name small{display:block;font-size:11px;line-height:1.4;color:#b9bcc6;margin-top:4px}
#hbqGuidedDialog .hg-reorder{display:flex;gap:4px;flex-shrink:0}#hbqGuidedDialog .hg-reorder button{padding:6px 9px;min-height:36px;font-size:11px}
#hbqGuidedDialog #hgPicker{border-top:1px solid var(--hg-border);padding-top:18px;margin-top:20px}#hbqGuidedDialog #hgPicker[hidden]{display:none!important}
#hbqGuidedDialog #hgExerciseChoices{max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#hbqGuidedDialog .hg-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #33343e}
#hbqGuidedDialog .hg-choice>div{min-width:0}#hbqGuidedDialog .hg-choice strong{font-size:14px;line-height:1.4;display:block}#hbqGuidedDialog .hg-choice small{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:#b9bcc6}
#hbqGuidedDialog .hg-choice button{min-width:76px;padding:9px 12px;min-height:42px;font-size:12px;flex-shrink:0}#hbqGuidedDialog .hg-choice button:disabled{opacity:.65;cursor:default}
#hbqGuidedDialog #hgPickerStatus{font-size:12px;color:#d7bccb;margin:14px 0 0}
#hgSavedPlans [hidden],#hgCreatePlan [hidden]{display:none!important}
@media(max-width:600px){#hgCreatePlan{padding:20px;flex-direction:column;align-items:stretch;gap:16px}#hgCreatePlan button{width:100%}#hgCreatePlan h3{font-size:22px}#hgSavedPlans{padding:20px!important}#hgSavedPlans .hg-section-heading{align-items:flex-start;flex-direction:column;gap:10px}#hbqGuidedDialog .hg-composition{padding:14px}#hbqGuidedDialog .hg-section-heading{align-items:flex-start;flex-direction:column}#hbqGuidedDialog .hg-section-heading>button{width:100%}#hbqGuidedDialog .hg-selected-list li{flex-wrap:wrap}#hbqGuidedDialog .hg-selected-name{flex-basis:calc(100% - 40px)}#hbqGuidedDialog .hg-reorder{margin-left:auto}#hbqGuidedDialog .hg-selected-list .hg-reorder button{min-height:40px;padding:8px 12px}}
