#space{min-height:70vh}#space .shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:70vh}#space .side{border-right:1px solid var(--mend-rule);padding:24px 16px;display:flex;flex-direction:column;gap:20px}#space .side-nav{display:flex;flex-direction:column;gap:8px}#space .side-nav button{justify-content:flex-start;border-color:transparent}#space button.selected{background:var(--brand-blue-gray)}#space main{padding:36px;min-width:0}#space .page-col{max-width:760px}#space .heading{display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:28px;flex-wrap:wrap}#space h1{font-size:clamp(30px,4vw,44px);margin:8px 0 12px}#space h2{font-size:24px;margin:8px 0 16px}#space p{line-height:1.6}#space .email{overflow-wrap:anywhere}#space .cards{display:flex;flex-direction:column;gap:24px}#space .cards>.panel{width:100%}#space .panel{border:1px solid var(--mend-rule);border-radius:var(--mend-radius);padding:26px;min-width:0}#space .orb-area{height:95px;display:flex;align-items:center;justify-content:center;margin-bottom:24px}#space .orb{width:40px;height:40px;border-radius:50%;background:var(--brand-orange)}#space .eyebrow{margin:0 0 12px}#space .stack{display:flex;flex-direction:column;gap:16px}#space .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:24px 0}#space .field{display:flex;flex-direction:column;gap:14px}#space input[type=range]{width:100%;min-height:44px}#space .check{display:flex;align-items:center;gap:12px;min-height:48px}#space .actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:22px}#space .mobile{display:none}#space button:disabled{opacity:.6;cursor:default}#space .status{min-height:24px}#space [hidden]{display:none!important}#space .video-library video{display:block;width:100%;height:auto;border-radius:var(--mend-radius)}@media(max-width:760px){#space .shell{display:block}#space .side{display:none}#space main{padding:24px 16px}#space .fields{grid-template-columns:1fr}#space .panel{padding:20px}#space .mobile{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 6px max(8px,env(safe-area-inset-bottom));background:var(--mend-white);border-top:1px solid var(--mend-rule)}#space .mobile button{padding:12px 3px;font-size:12px;min-height:48px;border-color:transparent}#space .orb-area{height:58px}#space .heading{gap:12px}}

/* Side panel blocks: membership and ChatGPT status (small type). */
#space .side-blocks{display:flex;flex-direction:column;gap:16px}
#space .side-blocks:empty{display:none}
#space .side-block{font-size:14px;border-top:1px solid var(--mend-rule);padding-top:16px;min-width:0;overflow-wrap:anywhere}
#space .side-block p{margin:0 0 6px;line-height:1.5}
#space .side-block .actions{margin-top:10px;gap:10px}
#space .side-block .button,#space .side-block button{font-size:14px;min-height:44px}
/* On More (mobile), the same blocks sit in the main column as cards. */
#space .more-blocks{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}
#space .more-blocks .side-block{border:1px solid var(--mend-rule);border-radius:var(--mend-radius);padding:20px}
/* Room for the fixed mobile nav below the shared footer. */
@media(max-width:760px){#space~[data-mend-footer] .mend-foot{padding-bottom:110px}}

/* Reuse the approved preference preview ball on its black stage. */
#space .session-card .orb-area{height:144px;margin:20px 0 24px;background:#000;border-radius:16px;overflow:hidden}
#space .session-card .orb-area .preview-orb{position:static;width:56px;height:56px;flex-shrink:0;transform:none;will-change:auto}
#space .session-card .session-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:0}
#space .session-card .session-actions button{margin:0}
@media(max-width:760px){#space .session-card .orb-area{height:128px}#space .session-card .session-actions button{flex:1 1 160px}}

/* Start here guide: spacing only, inherits .panel. */
#space .start-here ol{margin:0;padding-left:1.25rem}
#space .start-here li+li{margin-top:18px}
#space .start-here h3{margin:0 0 4px}
#space .start-here p{margin:0 0 8px;overflow-wrap:anywhere}
#space .start-here .actions{margin-top:12px}
#space .start-here .step-link{margin-top:12px}
#space .start-here .step-link a{display:inline-flex;align-items:center;min-height:44px}

/* Home step grid (Revision R4): one numbered grid of same-size blocks, 3 across, 1 column at 760 px. */
#space .page-home{max-width:1120px}
#space .step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:24px;list-style:none;margin:0;padding:0;counter-reset:mend-step}
#space .step-block{display:flex;flex-direction:column;min-width:0;counter-increment:mend-step}
#space .step-block h2{display:flex;align-items:flex-start;gap:12px;margin-top:0}
#space .step-block h2::before{content:counter(mend-step);flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--mend-rule);font-size:16px;line-height:1}
#space .step-block[aria-current=step] h2::before{background:var(--brand-blue-gray)}
#space .step-block p{overflow-wrap:anywhere}
#space .step-block>.actions:last-child,#space .step-block .session-actions{margin-top:auto;padding-top:8px}
#space .step-block .actions .button,#space .step-block .actions button{min-height:44px}
#space .step-block select{width:100%;min-height:44px}
#space .step-block.session-card .orb-area{height:110px;margin:4px 0 16px}
@media(max-width:1100px) and (min-width:761px){#space .step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#space .step-grid{grid-template-columns:1fr;grid-auto-rows:auto}#space .step-block.session-card .orb-area{height:96px}}
#space .step-block h2{font-size:20px}
#space .step-block .session-actions a.button{font-size:inherit}

/* Revision R8: always four equal-height blocks. 4 across at >= 1100 px, 2x2 from 761 to 1099 px,
   1 column at <= 760 px. Compact type so all four sit above the fold on a laptop. */
#space .page-home{max-width:none}
#space .step-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:16px}
@media(max-width:1099px) and (min-width:761px){#space .step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#space .step-grid{grid-template-columns:1fr;grid-auto-rows:auto}}
@media(min-width:761px){#space main:has(.step-grid){padding:24px 28px}#space .page-home .heading{margin-bottom:16px}#space .page-home h1{font-size:34px;margin:0 0 4px}#space .page-home .email{margin:0}}
#space .step-block{padding:18px;font-size:14px}
#space .step-block p{line-height:1.45;margin:0 0 8px}
#space .step-block h2{font-size:18px;line-height:1.3;margin:0 0 10px;gap:10px}
#space .step-block h2::before{width:28px;height:28px;font-size:14px}
#space .step-block .actions{margin-top:auto;padding-top:10px;gap:8px}
#space .step-block .actions .button,#space .step-block .actions button{padding:10px 14px;font-size:14px;width:100%}
#space .step-block.session-card .orb-area{height:72px;margin:2px 0 10px}
#space .step-block.session-card .orb-area .preview-orb{width:40px;height:40px}

/* Saved setup snapshot (R8.3), reusing the preferences theme swatch in a small size. */
#space .setup-snapshot{margin:0;display:grid;gap:6px}
#space .setup-snapshot div{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--mend-rule);padding-bottom:5px}
#space .setup-snapshot dt{font-weight:600}
#space .setup-snapshot dd{margin:0;display:flex;align-items:center;gap:6px;text-align:right;overflow-wrap:anywhere}
#space .theme-swatch.mini{width:34px;height:20px;padding:3px;gap:3px;border-radius:4px;flex:0 0 auto}

/* Worksheet progress (R8.4): 3 clickable steps; Skipped is a muted full bar. */
#space .ws-progress{margin:6px 0 8px}
#space .ws-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
#space .ws-step{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;min-height:44px;padding:4px 2px;border:0;background:transparent;color:inherit;font-size:12px;line-height:1.2;cursor:pointer;text-align:center}
#space .ws-step .ws-bar{display:block;height:8px;border-radius:4px;background:var(--mend-rule)}
#space .ws-step.is-filled .ws-bar{background:var(--mend-orange,#E59E4C)}
#space .ws-step.is-skipped .ws-bar{background:var(--mend-blue,#B3C6D1)}
#space .ws-step[aria-pressed=true] .ws-label{font-weight:700}
#space .ws-progress.is-skipped .ws-label{opacity:.75}
#space .ws-skip{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:transparent;color:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#space .ws-skipped{margin:2px 0 0}

/* R8.4 buttons: next action orange (primary); every other button blue-grey with ink text.
   Quiet buttons render as text links. Nav buttons keep their own style. */
#space :is(.actions,.session-actions,.stack,.side-block) :is(button,.button):not(.primary):not(.quiet){background:var(--mend-blue,#B3C6D1);color:var(--mend-ink,#172026);border-color:var(--mend-blue,#B3C6D1)}
#space button.quiet{background:transparent;border-color:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;padding-left:0;padding-right:0;min-height:44px}
#space .step-block .actions button.quiet{width:auto}
#space .step-block :is(p,dt,dd,li,small){font-size:14px}
#space .step-block small{font-size:12px}
#space .step-block .session-actions{margin:0;padding-top:10px}
#space .step-block .session-actions .button{width:100%}
#space .step-block .actions{margin-bottom:0}
#space .step-block .actions .button{justify-content:center;text-align:center}

/* Round 9: one button rule on every Your Space page and in every theme (locked colours only).
   Next action = orange #E59E4C with ink text; every other button = blue-grey #B3C6D1 with ink text.
   Ink on orange is about 7.7:1 and ink on blue-grey about 9.6:1 (both pass WCAG AA).
   Nav buttons, quiet text links, theme tiles and the worksheet step bar keep their own styles. */
#space :is(button,.button).primary,#space :is(button,.button).primary:hover{background:var(--mend-orange,#E59E4C);color:var(--mend-ink,#172026);border-color:var(--mend-orange,#E59E4C)}
#space :is(button,.button):not(.primary,.quiet,.theme-choice,.ws-step,.ws-skip):not(.side-nav *,.mobile *){background:var(--mend-blue,#B3C6D1);color:var(--mend-ink,#172026);border-color:var(--mend-blue,#B3C6D1)}
/* Session setup page: one orange. Save & open your session is the next action; Save setup only when
   there is no launch button (Connected without ChatGPT); Preview stays secondary. */
#space #preferences-content button.primary:not([data-pref=launch-top],[data-pref=launch]){background:var(--mend-blue,#B3C6D1);border-color:var(--mend-blue,#B3C6D1)}
/* Noel, 3 Dec 2026: only the next task's button is orange (Set up your session, then Connect microphone, then Start). */
#space #preferences-content button.primary:not(.is-next):not([data-pref=launch-top]){background:var(--mend-blue,#B3C6D1);border-color:var(--mend-blue,#B3C6D1)}
#space #preferences-content button.is-next:not(:disabled){background:var(--mend-orange,#E59E4C)!important;border-color:var(--mend-orange,#E59E4C)!important;color:#fff!important}
#space #preferences-content:not(:has([data-pref=launch])) button.primary[data-pref=save]{background:var(--mend-orange,#E59E4C);border-color:var(--mend-orange,#E59E4C)}
/* Focus stays visible on dark themes: outline follows the theme text colour. */
#space :is(button,.button,a,select,input):focus-visible{outline:3px solid var(--ui-text,#172026);outline-offset:3px}
#space [data-free-start-section] label,#space [data-free-start-section] textarea{display:block;width:100%;box-sizing:border-box}#space [data-free-start-section] textarea{margin:8px 0 12px}#space [data-free-start-section]{margin:24px 0}

/* Videos tab (19 Nov 2026): rows of session cards and the watch view. Existing tokens only; panel/button components unchanged. */
#space .video-rows{display:flex;flex-direction:column;gap:32px}
#space .video-row h2{margin:0 0 14px}
#space .video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
#space .video-grid.one-col{grid-template-columns:1fr;gap:14px}
#space .video-card{display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none;min-width:0;border-radius:var(--mend-radius)}
#space .video-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--mend-radius);border:1px solid var(--mend-rule);background:#000}
#space .video-card-text{display:flex;flex-direction:column;gap:2px}
#space .video-card-text strong{line-height:1.35}
#space .video-card:hover strong,#space .video-card:focus-visible strong{text-decoration:underline}
#space .watch{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}
#space .watch video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#000;border-radius:var(--mend-radius)}
#space .watch h1{margin:18px 0 4px}
#space .watch-meta{margin:0 0 8px}
#space .watch .library-upsell{margin-top:24px}
/* B2 (21 Nov 2026): end-of-video invite. One element in .watch-player: is-over = end screen laid over the video (ink at .72,
   white text, one orange button, Close top right); is-below = the same panel under the player. Palette colours only. */
#space .watch-player{position:relative}
#space .watch-player .library-upsell.is-over{position:absolute;inset:0;z-index:2;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 56px;overflow:hidden;background:rgba(23,32,38,.72);color:#FFFFFF;border:0;border-radius:var(--mend-radius);box-shadow:none}
#space .watch-player .library-upsell.is-over>:not(.end-close){max-width:28rem;color:#FFFFFF}
#space .watch-player .library-upsell.is-over h2{margin:0 0 8px}
#space .watch-player .library-upsell.is-over p{margin:0 0 16px}
#space .watch-player .library-upsell.is-over .actions{justify-content:center}
#space .watch-player .library-upsell h2:focus{outline:none}
#space .watch-player .library-upsell h2:focus-visible{outline:3px solid #FFFFFF;outline-offset:3px}
#space .watch-player .library-upsell.is-below h2:focus-visible{outline-color:var(--ui-text,#172026)}
#space .watch-player .end-close{display:none}
#space .watch-player .library-upsell.is-over .end-close{display:flex;align-items:center;justify-content:center;position:absolute;top:4px;right:4px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;color:#FFFFFF;font:inherit;font-size:28px;line-height:1;box-shadow:none;cursor:pointer}
#space .watch-player .library-upsell.is-over .end-close:focus-visible{outline:3px solid #FFFFFF;outline-offset:-3px}
#space .watch-next h2{margin:0 0 14px}
@media(max-width:1000px){#space .watch{grid-template-columns:1fr}}
@media(max-width:760px){#space .mobile{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}#space .video-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}#space main:has(.video-rows),#space main:has(.watch){padding-bottom:96px}}

/* 24 Nov 2026 (account funnel fix 2): price, contrast and refund lines inside the upgrade invites. Existing tokens only. */
#space .offer-line{margin:6px 0;line-height:1.45}
#space .offer-line + .actions{margin-top:12px}
#space .watch-player .library-upsell.is-over .offer-line{margin:0 0 8px}
