/* Session setup character (Noel, 6 Nov 2026): early-2000s feel, Mend palette only.
   Each appearance gets its own surface; voice cards are keyboard keys that press down on hover. */
html[data-mend-theme]{--page-bg:var(--ui-bg);--panel-bg:var(--ui-panel);--panel-edge:var(--ui-line);--panel-lip:rgba(255,255,255,.75);--panel-drop:rgba(23,32,38,.14);--key-face:color-mix(in srgb,#E59E4C 6%,#FFFFFF);--key-wall:color-mix(in srgb,#B3C6D1 72%,#172026);--key-edge:color-mix(in srgb,#B3C6D1 55%,#172026);--key-drop:rgba(23,32,38,.26)}
html[data-mend-theme=light]{--page-bg:linear-gradient(180deg,#FFFFFF 0%,color-mix(in srgb,#E59E4C 13%,#FFFFFF) 100%);--panel-bg:linear-gradient(180deg,#FFFFFF 0%,color-mix(in srgb,#E59E4C 5%,#FFFFFF) 100%);--panel-edge:color-mix(in srgb,#E59E4C 38%,#FFFFFF);--key-wall:color-mix(in srgb,#E59E4C 90%,#172026);--key-edge:color-mix(in srgb,#E59E4C 78%,#172026)}
html[data-mend-theme=night]{--page-bg:radial-gradient(120% 70% at 50% 0%,color-mix(in srgb,#172026 88%,#B3C6D1) 0%,#172026 42%,#000000 100%);--panel-bg:linear-gradient(180deg,color-mix(in srgb,#172026 84%,#B3C6D1) 0%,#172026 58%);--panel-edge:color-mix(in srgb,#B3C6D1 38%,#172026);--panel-lip:rgba(179,198,209,.3);--panel-drop:rgba(0,0,0,.6);--key-face:color-mix(in srgb,#172026 82%,#B3C6D1);--key-wall:#000000;--key-edge:#000000;--key-drop:rgba(0,0,0,.65)}
html[data-mend-theme=blue]{--page-bg:linear-gradient(180deg,color-mix(in srgb,#B3C6D1 92%,#172026) 0%,#B3C6D1 26%,color-mix(in srgb,#B3C6D1 42%,#FFFFFF) 100%);--panel-bg:linear-gradient(180deg,rgba(255,255,255,.86) 0%,rgba(255,255,255,.52) 46%,rgba(255,255,255,.38) 47%,rgba(255,255,255,.62) 100%);--panel-edge:rgba(255,255,255,.95);--panel-lip:#FFFFFF;--panel-drop:color-mix(in srgb,#172026 28%,transparent);--key-face:color-mix(in srgb,#B3C6D1 28%,#FFFFFF);--key-wall:color-mix(in srgb,#B3C6D1 62%,#172026);--key-edge:color-mix(in srgb,#B3C6D1 58%,#172026)}
html[data-mend-theme=gray]{--page-bg:repeating-linear-gradient(90deg,rgba(255,255,255,.1) 0 1px,rgba(23,32,38,.025) 1px 3px),linear-gradient(180deg,color-mix(in srgb,#172026 12%,#FFFFFF) 0%,color-mix(in srgb,#172026 30%,#FFFFFF) 100%);--panel-bg:linear-gradient(180deg,color-mix(in srgb,#172026 3%,#FFFFFF) 0%,color-mix(in srgb,#172026 13%,#FFFFFF) 100%);--panel-edge:color-mix(in srgb,#172026 44%,#FFFFFF);--panel-lip:#FFFFFF;--panel-drop:rgba(23,32,38,.24);--key-face:color-mix(in srgb,#172026 13%,#FFFFFF);--key-wall:color-mix(in srgb,#172026 58%,#FFFFFF);--key-edge:color-mix(in srgb,#172026 62%,#FFFFFF)}
html[data-mend-theme] #space{background:var(--page-bg);background-attachment:fixed}
html[data-mend-theme] #space .shell,html[data-mend-theme] #space main{background:transparent}
html[data-mend-theme] #space .preferences-panel{background:var(--panel-bg);border:1px solid var(--panel-edge);border-radius:18px;box-shadow:inset 0 1px 0 var(--panel-lip),0 10px 24px var(--panel-drop)}

/* Appearance tiles: a tiny scene of each appearance, not a colour swatch. */
#space .theme-choice{border-radius:16px}
#space .theme-choice[aria-pressed=true]{outline:3px solid var(--mend-orange);outline-offset:2px}
html[data-mend-theme] #space .theme-choice .theme-swatch{position:relative;overflow:hidden;align-items:center;height:84px;border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
html[data-mend-theme] #space .theme-choice .theme-swatch::after{content:"";position:absolute;left:0;right:0;top:0;height:46%;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.08));pointer-events:none}
html[data-mend-theme] #space .theme-choice .theme-swatch span:first-child{flex:none;width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff5e8 0%,#f8ddba 34%,#e6b57c 64%,#b77a44 100%)}
html[data-mend-theme] #space .theme-choice .theme-swatch span:last-child{height:44px;border-radius:7px}
html[data-mend-theme] #space .theme-choice .theme-swatch.light{background:linear-gradient(180deg,#FFFFFF,color-mix(in srgb,#E59E4C 30%,#FFFFFF));border-color:color-mix(in srgb,#E59E4C 45%,#FFFFFF)}
html[data-mend-theme] #space .theme-choice .theme-swatch.light span:last-child{background:#FFFFFF;border:1px solid color-mix(in srgb,#E59E4C 55%,#FFFFFF)}
html[data-mend-theme] #space .theme-choice .theme-swatch.night{background:radial-gradient(90% 90% at 50% 0%,color-mix(in srgb,#172026 78%,#B3C6D1),#000000);border-color:#000000}
html[data-mend-theme] #space .theme-choice .theme-swatch.night::after{opacity:.2}
html[data-mend-theme] #space .theme-choice .theme-swatch.night span:first-child{background:radial-gradient(circle at 35% 30%,#fff5e8 0%,#f8ddba 34%,#e6b57c 64%,#b77a44 100%);box-shadow:0 0 14px 3px rgba(232,176,108,.55)}
html[data-mend-theme] #space .theme-choice .theme-swatch.night span:last-child{background:#172026;border:1px solid color-mix(in srgb,#B3C6D1 45%,#172026)}
html[data-mend-theme] #space .theme-choice .theme-swatch.blue{background:linear-gradient(180deg,color-mix(in srgb,#B3C6D1 85%,#172026),color-mix(in srgb,#B3C6D1 40%,#FFFFFF));border-color:color-mix(in srgb,#B3C6D1 70%,#172026)}
html[data-mend-theme] #space .theme-choice .theme-swatch.blue span:first-child{background:radial-gradient(circle at 35% 30%,#fff5e8 0%,#f8ddba 34%,#e6b57c 64%,#b77a44 100%)}
html[data-mend-theme] #space .theme-choice .theme-swatch.blue span:last-child{background:rgba(255,255,255,.72);border:1px solid #FFFFFF}
html[data-mend-theme] #space .theme-choice .theme-swatch.gray{background:repeating-linear-gradient(90deg,rgba(255,255,255,.14) 0 1px,rgba(23,32,38,.05) 1px 3px),linear-gradient(180deg,color-mix(in srgb,#172026 10%,#FFFFFF),color-mix(in srgb,#172026 38%,#FFFFFF));border-color:color-mix(in srgb,#172026 50%,#FFFFFF)}
html[data-mend-theme] #space .theme-choice .theme-swatch.gray span:first-child{background:radial-gradient(circle at 35% 30%,#fff5e8 0%,#f8ddba 34%,#e6b57c 64%,#b77a44 100%)}
html[data-mend-theme] #space .theme-choice .theme-swatch.gray span:last-child{background:linear-gradient(180deg,#FFFFFF,color-mix(in srgb,#172026 18%,#FFFFFF));border:1px solid color-mix(in srgb,#172026 45%,#FFFFFF)}

/* Voice cards as plain keyboard keys: a flat face on a solid wall that presses down on hover. */
#space .voice-grid{gap:30px 22px;padding:8px 2px 14px}
#space .voice-card{--travel:11px;position:relative;padding:18px;border:1px solid var(--key-edge);border-radius:10px;background:var(--key-face);box-shadow:0 var(--travel) 0 var(--key-wall);transition:transform .09s cubic-bezier(.2,.8,.3,1),box-shadow .09s cubic-bezier(.2,.8,.3,1)}
/* Keeps the hover alive above the key once it has dropped, so it can't flicker at the top edge. */
#space .voice-card::before{content:"";position:absolute;left:-1px;right:-1px;top:calc(var(--travel)*-1 - 1px);height:calc(var(--travel) + 1px)}
#space .voice-card:hover,#space .voice-card:focus-within{transform:translateY(var(--travel));box-shadow:0 0 0 var(--key-wall)}
#space .voice-card h3{font-size:1.45rem}
@media(prefers-reduced-motion:reduce){#space .voice-card{transition:none}}

/* Dashboard step cards: the same plain key as the voice cards, pressing down on hover. */
html[data-mend-theme] #space .step-grid{padding-bottom:12px}
/* Night page fades to black, so a black wall vanishes here; the dashboard keys get a lit wall. */
html[data-mend-theme=night] #space .step-block{--key-wall:color-mix(in srgb,#B3C6D1 38%,#172026);--key-edge:color-mix(in srgb,#B3C6D1 45%,#172026)}
html[data-mend-theme] #space .step-block{--travel:11px;position:relative;border:1px solid var(--key-edge);border-radius:10px;background:var(--key-face);box-shadow:0 var(--travel) 0 var(--key-wall);transition:transform .09s cubic-bezier(.2,.8,.3,1),box-shadow .09s cubic-bezier(.2,.8,.3,1)}
/* Keeps the hover alive above the key once it has dropped, so it can't flicker at the top edge. */
html[data-mend-theme] #space .step-block::after{content:"";position:absolute;left:-1px;right:-1px;top:calc(var(--travel)*-1 - 1px);height:calc(var(--travel) + 1px)}
html[data-mend-theme] #space .step-block:hover,html[data-mend-theme] #space .step-block:focus-within{transform:translateY(var(--travel));box-shadow:0 0 0 var(--key-wall)}
@media(prefers-reduced-motion:reduce){html[data-mend-theme] #space .step-block{transition:none}}
