/* Guided components (docs/references/guided/DESIGN.md): one definition for each
   piece the guided players share, so a header, a play bar or a menu row looks
   and behaves the same in every routine. Players keep only what is theirs.
   Values come from guided_tokens.css. */

/* Icon buttons: a 44px target, a 22px icon and a label for screen readers. */
:is(.gs-box-player, .box-sheet) .box-icon-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
:is(.gs-box-player, .box-sheet) .box-icon-button svg { width:var(--guided-icon); height:var(--guided-icon); flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
:is(.gs-box-player, .box-sheet) .push-icon-only { display:inline-flex; flex:none; align-items:center; justify-content:center; width:var(--guided-touch); min-width:var(--guided-touch); min-height:var(--guided-touch); padding:10px; border:0; background:transparent; color:var(--gs-text-secondary); }
:is(.gs-box-player, .box-sheet) .push-icon-only [data-button-label] { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Player header: the leading control, the title, View and Options in one row. */
/* Push & release's header also carries breathing's .box-inline-heading, which breathing
   hides in full screen; this rule keeps every player header showing. */
.gs-box-player.box-player-view[data-presentation] :is(.push-heading, .perineal-heading, .reverse-heading, .pelvic101-heading) { position:relative; display:flex; flex:none; align-items:center; gap:8px; min-width:0; }
/* Breathing's header shows only in full screen (box_player.css); it shares the layout. */
.gs-box-player.box-player-view[data-presentation] .box-expanded-header { position:relative; flex:none; align-items:center; gap:8px; min-width:0; }
.gs-box-player :is(.push-heading, .perineal-heading, .reverse-heading, .pelvic101-heading, .box-expanded-header) h2 { flex:1; min-width:0; margin:0; font-size:var(--guided-size-title); font-weight:600; line-height:1.3; letter-spacing:var(--guided-tracking); overflow-wrap:anywhere; }
@media (max-width:350px) { .gs-box-player.box-player-view[data-presentation] :is(.push-heading, .perineal-heading, .reverse-heading, .pelvic101-heading, .box-expanded-header) { gap:4px; } }

/* View: a quiet header menu whose panel opens over the artwork. */
:is(.push-heading, .perineal-heading, .reverse-heading, .pelvic101-heading, .box-expanded-header) { z-index:3; }
.gs-box-player :is(.push-visual-menu, .perineal-visual-menu, .reverse-view) { position:static; flex:0 1 auto; min-width:var(--guided-touch); margin:0; padding:0; border:0; background:transparent; }
.gs-box-player :is(.push-visual-menu, .perineal-visual-menu, .reverse-view) > summary { display:flex; align-items:center; justify-content:center; gap:5px; min-width:var(--guided-touch); min-height:var(--guided-touch); margin:0; padding:8px 4px; border:0; border-radius:var(--guided-radius); cursor:pointer; list-style:none; color:var(--gs-text-secondary); font-size:var(--guided-size-small); font-weight:400; line-height:1.4; overflow-wrap:anywhere; }
:is(.push-visual-menu, .perineal-visual-menu, .reverse-view) > summary::-webkit-details-marker { display:none; }
:is(.push-visual-menu, .perineal-visual-menu, .reverse-view) > summary::after { content:""; width:6px; height:6px; margin-top:-3px; border-inline-end:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
:is(.push-visual-menu, .perineal-visual-menu, .reverse-view)[open] > summary { background:var(--box-soft); }
.gs-box-player :is(.push-visual-choice, .perineal-visual-choice, .reverse-view > div) { position:absolute; inset-inline-end:0; top:100%; z-index:2; width:min(260px, calc(86vw - 48px)); max-height:min(65dvh, 420px); overflow:auto; display:grid; grid-template-columns:1fr; gap:4px; padding:8px; border:1px solid var(--box-line); border-radius:var(--guided-radius); background:var(--gs-card); box-shadow:var(--guided-shadow-pop); }
.gs-box-player :is(.push-visual-choice, .perineal-visual-choice, .reverse-view > div) > button { width:100%; min-width:0; min-height:var(--guided-touch); padding:8px 12px; font-size:var(--guided-size-small); line-height:1.3; overflow-wrap:anywhere; text-align:start; }
.gs-box-player :is(.push-visual-choice, .perineal-visual-choice, .reverse-view > div) button[aria-pressed=true] { color:var(--box-action); border-color:var(--box-action); background:var(--box-soft); box-shadow:inset 0 0 0 1px var(--box-action); }
.gs-box-player :is(.push-visual-choice, .perineal-visual-choice, .reverse-view > div) button:disabled { cursor:default; }
:is(.push-visual-menu, .perineal-visual-menu, .reverse-view) > summary:focus-visible, .gs-box-player :is(.push-visual-choice, .perineal-visual-choice, .reverse-view > div) button:focus-visible { outline:2px solid var(--box-action); outline-offset:3px; }

/* Today card titles. */
.gs-box-player .box-inline-heading h2 { font-size:var(--guided-size-title); }
:is(.push-static-card, .perineal-static-card, .reverse-static-card, .strength-static-card, .pelvic101-static-card) .box-inline-heading h2 { min-width:0; font-size:var(--guided-size-card); font-weight:600; line-height:1.25; letter-spacing:var(--guided-tracking); overflow-wrap:anywhere; }
:is(.push-static-card, .perineal-static-card, .reverse-static-card, .strength-static-card, .pelvic101-static-card) .push-icon-only svg { width:var(--guided-icon); height:var(--guided-icon); fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }

/* A heading the player focuses for screen readers after a change shows no ring;
   keyboard focus on controls keeps its ring. */
:is(.gs-box-player, .box-sheet) :is(h1, h2, h3)[tabindex="-1"]:focus { outline:none; }

/* The phase: its heading and the cue beneath it. */
.gs-box-player :is(.box-player-main .box-phase h2, .push-guidance .box-phase h3, .perineal-guidance h3, .reverse-main h3, .pelvic101-main h3) { margin:0; font-size:var(--guided-size-phase); font-weight:600; line-height:1.25; letter-spacing:var(--guided-tracking); }
.gs-box-player[data-presentation=inline] :is(.box-player-main .box-phase h2, .push-guidance .box-phase h3, .perineal-guidance h3, .reverse-main h3, .pelvic101-main h3) { font-size:var(--guided-size-card); }
.gs-box-player :is(.box-player-main .box-phase p, .push-guidance .box-phase p, .perineal-guidance p, .reverse-main p, .pelvic101-readout p) { font-size:var(--guided-size-small); line-height:1.45; color:var(--gs-text-secondary); }

/* Progress: one quiet 180 × 4 bar. */
:is(.push-progress, .perineal-progress, .reverse-progress) { flex:none; text-align:center; color:var(--gs-text-secondary); font-size:var(--guided-size-small); font-variant-numeric:tabular-nums; }
:is(.push-progress, .perineal-progress, .reverse-progress) p { margin:0; }
:is(.push-progress, .perineal-progress, .reverse-progress) progress { display:block; appearance:none; width:min(100%,180px); height:4px; margin:4px auto; border:0; border-radius:var(--guided-radius-pill); overflow:hidden; background:var(--box-line); color:var(--gs-text-secondary); }
:is(.push-progress, .perineal-progress, .reverse-progress) progress::-webkit-progress-bar { background:var(--box-line); border-radius:var(--guided-radius-pill); }
:is(.push-progress, .perineal-progress, .reverse-progress) progress::-webkit-progress-value { background:var(--gs-text-secondary); border-radius:var(--guided-radius-pill); }
:is(.push-progress, .perineal-progress, .reverse-progress) progress::-moz-progress-bar { background:var(--gs-text-secondary); border-radius:var(--guided-radius-pill); }

/* The safety and comfort line above the controls. */
.gs-box-player :is(.push-comfort, .perineal-comfort, .reverse-comfort) { margin:0; padding:0; background:transparent; text-align:center; color:var(--gs-text-secondary); font-size:var(--guided-size-small); line-height:1.45; overflow-wrap:anywhere; }

/* Footer and transport: mute, the labelled play bar and Expand when inline. */
.gs-box-player.box-player-view[data-presentation] :is(.push-player-footer, .perineal-player-footer, .reverse-footer, .pelvic101-footer) { flex:none; display:grid; gap:var(--guided-gap-footer); padding-block:4px 0; border-top:0; }
.gs-box-player :is(.push-transport, .perineal-transport, .reverse-transport, .pelvic101-transport, .box-inline-controls) { display:flex; align-items:center; justify-content:center; gap:8px; }
.gs-box-player :is(.push-transport, .perineal-transport, .reverse-transport, .pelvic101-transport, .box-inline-controls) .box-primary { flex:1 1 auto; width:auto; height:auto; min-width:0; min-height:var(--guided-primary-h); padding:10px 16px; border:0; border-radius:var(--guided-radius-primary); background:var(--box-action); color:var(--box-on-action); }
.gs-box-player :is(.push-transport, .perineal-transport, .reverse-transport, .pelvic101-transport, .box-inline-controls) .box-primary svg { display:none; }
.gs-box-player :is(.push-transport, .perineal-transport, .reverse-transport, .pelvic101-transport, .box-inline-controls) .box-primary [data-button-label] { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; font-weight:600; }
/* Paused, End sits beside Resume (DESIGN.md decision 12). On Today's card Mute, Resume and Expand
   already fill the row at phone widths, so End takes its own row under them, with its label, as
   on breathing (box_player.css). Full screen keeps it in the row. */
.gs-box-player.box-player-view[data-presentation=inline] :is(.push-transport, .perineal-transport, .reverse-transport):has(> [data-guided-end]:not([hidden])) { flex-wrap:wrap; }
/* The bar keeps its width; a little less padding keeps Resume beside Mute and Expand at 320px with larger text. */
.gs-box-player.box-player-view[data-presentation=inline] :is(.push-transport, .perineal-transport, .reverse-transport):has(> [data-guided-end]:not([hidden])) > .box-primary { padding-inline:12px; }
.gs-box-player.box-player-view[data-presentation=inline] :is(.push-transport, .perineal-transport, .reverse-transport) > [data-guided-end] { order:1; flex:1 0 100%; gap:8px; }
.gs-box-player.box-player-view[data-presentation=inline] :is(.push-transport, .perineal-transport, .reverse-transport) > [data-guided-end] [data-button-label] { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; overflow-wrap:anywhere; font-size:var(--guided-size-small); }

/* Notices and status lines. */
:is(.push-settings-notice, .perineal-queued) { padding:10px 12px; border:1px solid var(--box-line); border-radius:var(--guided-radius); text-align:start; }
:is([data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]) { font-size:var(--guided-size-small); line-height:1.4; overflow-wrap:anywhere; }
:is([data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):empty { display:none; }
/* A status line (Saved, Added to Today, Couldn't save) eases in when text arrives; changing or clearing it
   never moves (the owner's motion review, 2026-11-04). A line hidden with display:none enters through
   @starting-style; the breathing sheet footer's clipped line through its empty state's opacity. */
:is(.gs-box-player, .box-sheet) :is([data-status], [data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):empty { opacity:0; }
:is(.gs-box-player, .box-sheet) :is([data-status], [data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):not(:empty) { opacity:1; transition:opacity 200ms var(--guided-ease-out); }
@starting-style { :is(.gs-box-player, .box-sheet) :is([data-status], [data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):not(:empty) { opacity:0; } }
@media (prefers-reduced-motion: no-preference) {
  :is(.gs-box-player, .box-sheet) :is([data-status], [data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):empty { translate:0 4px; }
  :is(.gs-box-player, .box-sheet) :is([data-status], [data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):not(:empty) { translate:0 0; transition:opacity 200ms var(--guided-ease-out), translate 200ms var(--guided-ease-out); }
  @starting-style { :is(.gs-box-player, .box-sheet) :is([data-status], [data-push-status], [data-perineal-status], [data-reverse-status], [data-daily-status], [data-knack-status], [data-urge-control-status], [data-pelvic101-status], [data-massage-status], [data-hypnosis-status]):not(:empty) { translate:0 4px; } }
}

/* Sheet frame: Back, the title and Close on one 48px grid. */
.box-sheet .gs-sheet-header { display:grid; grid-template-columns:var(--guided-touch-lg) minmax(0,1fr) var(--guided-touch-lg); gap:8px; align-items:center; }
.box-sheet .gs-sheet-title { grid-column:2; grid-row:1; min-width:0; text-align:center; }
.box-sheet .gs-sheet-close { grid-column:3; grid-row:1; }
.box-sheet :is(.box-sheet-back, [data-reverse-header-back], [data-daily-header-back], [data-knack-header-back], [data-urge-control-header-back], [data-pelvic101-header-back], [data-massage-header-back], [data-hypnosis-header-back]) { grid-column:1; grid-row:1; }
.box-sheet :is([data-push-sheet-body], [data-perineal-sheet-body], [data-reverse-sheet-body], [data-daily-sheet-body], [data-knack-sheet-body], [data-urge-control-sheet-body], [data-pelvic101-sheet-body], [data-massage-sheet-body], [data-hypnosis-sheet-body]) { display:grid; gap:var(--guided-sheet-gap); min-width:0; }
.box-sheet .box-secondary-controls { gap:8px; }

/* Today cards: the primary button, then one row of secondary links (Show me · About · History). */
.gs-box-player:is(.push-static-card, .perineal-static-card, .reverse-static-card, .strength-static-card, .pelvic101-static-card) .box-secondary-controls { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; }
.gs-box-player:is(.push-static-card, .perineal-static-card, .reverse-static-card, .strength-static-card, .pelvic101-static-card) .box-saved-actions .box-link { display:flex; justify-content:center; align-items:center; min-height:var(--guided-touch-lg); font-size:var(--guided-size-small); text-align:center; }

/* Welcome: the safety line sits right above Start, so Start never covers it, and one
   row of icon actions follows (Show me · About · Options). */
.box-sheet .guided-safety { margin:0; text-align:center; color:var(--gs-text-secondary); font-size:var(--guided-size-small); line-height:1.45; }
/* A 0–10 rating before and after a practice (utils/guided_outcome.js): eleven equal buttons in
   two rows, the word anchors under them, and the before → after note once answered. */
:is(.gs-box-player, .box-sheet) .guided-rating { min-width:0; margin:0; padding:0; border:0; display:grid; gap:8px; }
:is(.gs-box-player, .box-sheet) .guided-rating legend { margin:0 0 4px; padding:0; font-size:var(--guided-size-body); font-weight:600; line-height:1.35; }
:is(.gs-box-player, .box-sheet) .guided-rating-scale { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
:is(.gs-box-player, .box-sheet) .guided-rating-scale button { flex:0 0 calc((100% - 30px) / 6); min-width:0; min-height:var(--guided-touch); padding:0; border:1px solid var(--box-line); border-radius:var(--guided-radius-sm); background:transparent; color:inherit; font-size:var(--guided-size-body); font-variant-numeric:tabular-nums; }
:is(.gs-box-player, .box-sheet) .guided-rating-scale button[aria-pressed=true] { color:var(--box-action); border-color:var(--box-action); background:var(--box-soft); box-shadow:inset 0 0 0 1px var(--box-action); }
/* The chosen answer eases in (the owner's motion review, 2026-11-04); a colour change, so reduced motion keeps it. */
:is(.gs-box-player, .box-sheet) :is(.guided-rating-scale, .guided-choice, .box-check-in-choices) > button:not(:disabled) { transition:transform var(--guided-press) var(--guided-ease-out), background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease; }
/* Choosing redraws the card while the answer saves, so the chosen button is new: its look starts from none and
   eases in. !important only reaches this starting style, past each player's more specific chosen rule. */
@starting-style { :is(.gs-box-player, .box-sheet) :is(.guided-rating-scale, .guided-choice, .box-check-in-choices) > button[aria-pressed=true] { background-color:transparent !important; border-color:transparent !important; color:inherit !important; box-shadow:none !important; } }
:is(.gs-box-player, .box-sheet) .guided-rating-anchors { display:flex; justify-content:space-between; gap:12px; color:var(--gs-text-secondary); font-size:var(--guided-size-caption); }
:is(.gs-box-player, .box-sheet) :is(.guided-rating-hint, .guided-rating-note) { margin:0; color:var(--gs-text-secondary); font-size:var(--guided-size-small); line-height:1.45; }
:is(.gs-box-player, .box-sheet) .guided-rating-change { justify-self:start; align-self:start; margin:0; padding:6px 12px; border-radius:var(--guided-radius-sm); background:var(--box-soft); font-size:var(--guided-size-small); font-variant-numeric:tabular-nums; }
:is(.gs-box-player, .box-sheet) .guided-choice { min-width:0; margin:0; padding:0; border:0; display:grid; gap:8px; }
:is(.gs-box-player, .box-sheet) .guided-choice legend { margin:0 0 4px; padding:0; font-size:var(--guided-size-body); font-weight:600; line-height:1.35; }
:is(.gs-box-player, .box-sheet) .guided-choice button { width:100%; min-height:var(--guided-touch); }
:is(.gs-box-player, .box-sheet) .guided-choice--chips { display:flex; flex-wrap:wrap; }
:is(.gs-box-player, .box-sheet) .guided-choice--chips legend { width:100%; }
:is(.gs-box-player, .box-sheet) .guided-choice--chips button { width:auto; }
:is(.gs-box-player, .box-sheet) .guided-choice--chips button[aria-pressed=true] { color:var(--box-action); border-color:var(--box-action); background:var(--box-soft); }

/* One question at a time (DESIGN.md › Outcomes): the current card, then the row that steps between cards. */
:is(.gs-box-player, .box-sheet) .guided-steps { display:grid; gap:8px; width:100%; min-width:0; }
:is(.gs-box-player, .box-sheet) .guided-step { display:grid; gap:12px; min-width:0; padding:20px 16px; border:1px solid var(--box-line); border-radius:var(--guided-radius-card); text-align:center; touch-action:pan-y; }
:is(.gs-box-player, .box-sheet) .guided-step :is(.guided-rating, .guided-choice) legend { width:100%; text-align:center; }
:is(.gs-box-player, .box-sheet) .guided-step .guided-choice--chips { justify-content:center; }
:is(.gs-box-player, .box-sheet) .guided-step .guided-rating-change { justify-self:center; }
:is(.gs-box-player, .box-sheet) .guided-step > .box-link { justify-self:center; }
:is(.gs-box-player, .box-sheet) .guided-step-title { margin:0; color:var(--gs-text-primary); font-size:var(--guided-size-body); font-weight:600; line-height:1.35; }
:is(.gs-box-player, .box-sheet) .guided-step .guided-safety { margin:0; font-size:var(--guided-size-small); line-height:1.45; }
:is(.gs-box-player, .box-sheet) .guided-step-eyebrow { margin:0; color:var(--gs-text-secondary); font-size:var(--guided-size-caption); line-height:1.35; }
:is(.gs-box-player, .box-sheet) .guided-step-check { display:block; width:32px; height:32px; margin:0 auto; fill:none; stroke:var(--box-action); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
/* The linked bowel check-in: a row that opens it. Just after a save it settles in and its check draws once. */
:is(.gs-box-player, .box-sheet) .guided-step-link { display:flex; align-items:center; gap:10px; width:100%; min-height:var(--guided-touch); padding:10px 12px; border:0; border-radius:var(--guided-radius); background:var(--box-soft); color:var(--gs-text-primary); font:inherit; font-size:var(--guided-size-small); line-height:1.35; text-align:start; cursor:pointer; }
:is(.gs-box-player, .box-sheet) .guided-step-link > span { flex:1; min-width:0; }
:is(.gs-box-player, .box-sheet) .guided-step-link svg { width:var(--guided-icon-row); height:var(--guided-icon-row); flex:none; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
:is(.gs-box-player, .box-sheet) .guided-step-link-check { stroke:var(--box-action); }
:is(.gs-box-player, .box-sheet) .guided-step-link-chevron { stroke:var(--gs-text-secondary); }
[dir=rtl] :is(.gs-box-player, .box-sheet) .guided-step-link-chevron, :is(.gs-box-player, .box-sheet)[dir=rtl] .guided-step-link-chevron { transform:scaleX(-1); }
.box-history-detail .guided-step-link { margin-top:12px; }
/* History opens on a summary (redesign decision 9, milestone 8): one or two lines of facts above the list. */
:is(.gs-box-player, .box-sheet) .box-history-summary { display:grid; gap:4px; margin:0; padding:10px 12px; border-radius:var(--guided-radius); background:var(--box-soft); color:var(--gs-text-primary); font-size:var(--guided-size-small); line-height:1.35; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
:is(.gs-box-player, .box-sheet) .guided-step-link[data-fresh] { animation:guided-link-settle .32s var(--guided-ease-out) both; }
:is(.gs-box-player, .box-sheet) .guided-step-link[data-fresh] .guided-step-link-check path { stroke-dasharray:14; animation:guided-link-draw .45s .2s var(--guided-ease-out) both; }
@keyframes guided-link-settle { from { opacity:0; transform:translateY(4px); } }
@keyframes guided-link-draw { from { stroke-dashoffset:14; } }
@media (prefers-reduced-motion: reduce) { :is(.gs-box-player, .box-sheet) .guided-step-link[data-fresh], :is(.gs-box-player, .box-sheet) .guided-step-link[data-fresh] .guided-step-link-check path { animation:none; } }
:is(.gs-box-player, .box-sheet) .guided-steps-nav { display:flex; align-items:center; justify-content:space-between; }
:is(.gs-box-player, .box-sheet) .guided-steps-arrow { display:grid; place-items:center; width:var(--guided-touch); height:var(--guided-touch); padding:0; border:0; border-radius:var(--guided-radius-pill); background:transparent; color:var(--gs-text-primary); }
:is(.gs-box-player, .box-sheet) .guided-steps-arrow:disabled { color:var(--box-line); opacity:1; cursor:default; }
:is(.gs-box-player, .box-sheet) .guided-steps-arrow svg { width:var(--guided-icon); height:var(--guided-icon); fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
[dir=rtl] :is(.gs-box-player, .box-sheet) .guided-steps-arrow svg, :is(.gs-box-player, .box-sheet)[dir=rtl] .guided-steps-arrow svg { transform:scaleX(-1); }
:is(.gs-box-player, .box-sheet) .guided-steps-dots { display:flex; align-items:center; gap:6px; }
:is(.gs-box-player, .box-sheet) .guided-steps-dots span { width:6px; height:6px; border-radius:var(--guided-radius-pill); background:var(--box-dot); }
:is(.gs-box-player, .box-sheet) .guided-steps-dots span[data-current] { width:18px; background:var(--box-action); }
/* Under a result, only what a practice recorded, then Add (or Change) check-in (utils/guided_check_in). */
:is(.gs-box-player, .box-sheet) .guided-saved { display:grid; justify-items:center; gap:10px; width:100%; }
:is(.gs-box-player, .box-sheet) .guided-saved > :is(.guided-step-eyebrow, .guided-safety) { margin:0; text-align:center; }
:is(.gs-box-player, .box-sheet) .guided-saved > .guided-safety { color:var(--gs-text-secondary); font-size:var(--guided-size-small); line-height:1.45; }
:is(.gs-box-player, .box-sheet) .guided-saved > .guided-rating-change { justify-self:center; }
/* Did anything pass? opens the bowel check-in's sheet over a full-screen player. */
#tracker-sheet-host[data-guided-over] { z-index:100; }
.box-sheet .guided-welcome-actions { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; }
.box-sheet .guided-welcome-actions button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:100%; min-width:0; min-height:var(--guided-touch-lg); padding:6px 4px; border:0; border-radius:var(--guided-radius-sm); background:transparent; color:var(--gs-text-secondary); font-size:var(--guided-size-caption); line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.box-sheet .guided-welcome-actions button svg { width:var(--guided-icon-row); height:var(--guided-icon-row); flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.box-sheet .guided-welcome-actions button [data-button-label] { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; white-space:normal; }

/* Menu rows: a 20px icon, the label and a chevron. */
.box-sheet .pj-item-menu-options { display:grid; gap:8px; }
.box-sheet .pj-item-menu-option { width:100%; min-width:0; text-align:start; }
.box-sheet .pj-item-menu-option > span:not(.pj-item-menu-icon) { flex:1; min-width:0; overflow-wrap:anywhere; }
.box-sheet .box-menu-icon[data-chosen="false"] { visibility:hidden; }
.box-sheet :is(.box-menu-icon, .box-menu-chevron) { width:var(--guided-icon-row); height:var(--guided-icon-row); flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }

/* Disclosures in Help and settings. */
:is(.push-disclosure, .perineal-disclosure, .reverse-sheet details, .daily-sheet details, .knack-sheet details, .urge-control-sheet details, .pelvic101-sheet details, .massage-sheet details, .hypnosis-sheet details) { min-width:0; text-align:start; font-size:var(--guided-size-small); line-height:1.45; }
:is(.push-disclosure, .perineal-disclosure, .reverse-sheet details, .daily-sheet details, .knack-sheet details, .urge-control-sheet details, .pelvic101-sheet details, .massage-sheet details, .hypnosis-sheet details) > summary { min-height:var(--guided-touch); padding:10px 0; margin-inline-start:1em; cursor:pointer; color:var(--gs-text-secondary); overflow-wrap:anywhere; }
:is(.push-disclosure, .perineal-disclosure, .reverse-sheet details, .daily-sheet details, .knack-sheet details, .urge-control-sheet details, .pelvic101-sheet details, .massage-sheet details, .hypnosis-sheet details) > summary::marker { color:var(--gs-text-secondary); }
:is(.push-disclosure, .perineal-disclosure, .reverse-sheet details, .daily-sheet details, .knack-sheet details, .urge-control-sheet details, .pelvic101-sheet details, .massage-sheet details, .hypnosis-sheet details) > p { margin:4px 0 12px; color:var(--gs-text-secondary); }
:is(.push-disclosure, .perineal-disclosure, .reverse-sheet details, .daily-sheet details, .knack-sheet details, .urge-control-sheet details, .pelvic101-sheet details, .massage-sheet details, .hypnosis-sheet details) > summary:focus-visible { outline:2px solid var(--gs-text-primary); outline-offset:3px; border-radius:var(--guided-radius-xs); }

/* A selected choice shows the soft ring, never a solid fill. */
.box-sheet :is(.reverse-technique-answers, .reverse-segments) button[aria-pressed=true] { color:var(--box-action); border-color:var(--box-action); background:var(--box-soft); box-shadow:inset 0 0 0 1px var(--box-action); }

/* Spacing: one rhythm for the player's layout and its scrolling middle. */
.gs-box-player:is(.push-player, .perineal-player, .reverse-player, .daily-player, .knack-player, .urge-control-player, .pelvic101-player, .massage-player, .hypnosis-player) :is(.box-player-layout, .reverse-layout) { gap:var(--guided-gap-layout); }
.gs-box-player:is(.push-player, .perineal-player, .reverse-player, .daily-player, .knack-player, .urge-control-player, .pelvic101-player, .massage-player, .hypnosis-player) :is(.push-player-main, .perineal-player-main, .reverse-main, .pelvic101-main) { gap:var(--guided-gap-main); }
.gs-box-player:is(.push-player, .perineal-player, .reverse-player, .daily-player, .knack-player, .urge-control-player, .pelvic101-player, .massage-player, .hypnosis-player)[data-presentation=inline] :is(.box-player-layout, .reverse-layout, .push-player-main, .perineal-player-main, .reverse-main, .pelvic101-main) { gap:8px; }
@media (max-width:350px) { .gs-box-player.box-player-view:is(.push-player, .perineal-player, .reverse-player, .daily-player, .knack-player, .urge-control-player, .pelvic101-player, .massage-player, .hypnosis-player):not([data-presentation=inline]) { padding-inline:12px; } }
