/* Phone-first mirror: one camera surface, one thumb-reachable step sheet. */
body{background:#20231f;min-height:100vh;display:flex;align-items:center;justify-content:center}.phoneApp{position:relative;width:100%;max-width:460px;height:100dvh;min-height:500px;overflow:hidden;background:#272a25;isolation:isolate}header{position:absolute;z-index:5;inset:0 0 auto;height:calc(65px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 18px 0;background:linear-gradient(#131711ad,transparent);border:0;color:white}.brand{font-size:20px;color:white;gap:8px;letter-spacing:-.7px}.brandmark{width:28px;height:28px;font-size:23px;background:#d9ee9b;color:#283320;border-radius:8px}.beta{display:none}.headerActions{display:flex;gap:4px}.iconbutton{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:white;font-size:23px;border-radius:50%}.headerActions button:last-child{font-size:15px}main{padding:0;max-width:none;margin:0;height:100%}.intro,footer{display:none}.workspace{display:block;height:100%;margin:0}.mirrorColumn{position:absolute;inset:0 0 275px}.mirror{height:100%;min-height:0;aspect-ratio:auto;border-radius:0;background:#2c2c29;overflow:hidden}.mirror img,.mirror video{object-fit:cover}.mirrorTop{top:calc(71px + env(safe-area-inset-top));left:17px;right:17px;align-items:flex-start;flex-wrap:wrap;gap:12px}.lookChip{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid #ffffff38;border-radius:14px;padding:12px;background:#242a20a3;backdrop-filter:blur(16px);color:#fff;flex:1;min-height:61px}.lookChip small{display:block;font-size:9px;letter-spacing:1.1px;color:#d4dcc8;margin-bottom:5px}.lookChip strong{display:block;font-size:15px;font-weight:500}.lookIcon{font-size:20px;color:var(--lime)}.chevron{margin-left:auto;color:#d9e9bc}.glassbutton{position:absolute;right:0;top:76px;width:44px;min-height:44px;overflow:hidden;font-size:0;background:#242a20b0;color:white;border:1px solid #ffffff45;backdrop-filter:blur(10px)}.glassbutton:before{content:'◈';font-size:23px}.glassbutton[aria-pressed=false]{opacity:.5}.glasspill{position:absolute;top:78px;left:0;font-size:9px;padding:7px 9px;background:#242a2080;border:0}.faceHint{top:auto;bottom:101px;left:30px;right:30px;font-size:10px;line-height:1.4;color:#f4f5ed}.placementLabel{bottom:129px;max-width:90%;padding:9px 13px;font-size:12px;border-radius:30px;background:#f8f9f2db}.tinySpark{font-size:19px}.mirrorBottom{padding:20px 16px 40px;gap:8px;background:linear-gradient(transparent,#171c14b3)}.cameraBtn{min-height:44px;padding:11px 25px;background:#f4f8e8e8;font-size:13px}.mirrorBottom>span{font-size:9px;color:#e3e9d9}.mirrorSettings{position:absolute;z-index:6;left:16px;right:16px;bottom:-18px;background:#f7f8f3;border-radius:12px;margin:0;padding:5px 12px;gap:8px;box-shadow:0 -2px 20px #1a21120a;color:#6b755e;font-size:10px}.mirrorSettings input{flex:1;max-width:90px;min-width:25px;height:28px}.mirrorSettings .quiet{font-size:11px;min-width:78px;min-height:36px;margin-left:auto}.guidance{position:absolute;z-index:4;inset:auto 0 0;height:300px;border-radius:27px 27px 0 0;background:#f7f8f3;padding:35px 22px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;box-shadow:0 -12px 40px #171d1517}.sheetHandle{position:absolute;top:10px;left:calc(50% - 18px);width:36px;height:3px;border-radius:4px;background:#d3d9ca}.sheetScroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;flex:1;min-height:0;padding-bottom:8px}.sheetScroll::-webkit-scrollbar{display:none}.guidance .sectionline{font-size:10px;letter-spacing:1.2px}.duration{font-size:9px;padding:4px 7px}.guidance h2{font-size:23px;line-height:1.2;margin:9px 0 7px;letter-spacing:-.8px}.tooltag{border:0;padding:0;font-size:11px;color:#889078}.guidance .instruction{font-size:14px;line-height:1.6;margin:10px 0}.technique summary{font-size:12px;color:#596b3c;cursor:pointer;padding:8px 0;min-height:38px}.actions{margin-top:10px}.actions li{font-size:14px}.tip p,.adaptation p{font-size:13px}.adaptation strong{font-size:14px}.stepFooter{display:flex;flex-direction:row-reverse;gap:10px;flex-shrink:0;padding-top:7px;background:#f7f8f3}.complete{flex:1;min-height:48px;padding:13px 17px;font-size:14px;border-radius:13px;background:#d9edaa}.stepFooter #backBtn{margin:0;border:1px solid #dde2d3;border-radius:13px;min-width:48px;height:48px;font-size:29px;color:#5d6c4d;padding:0}.steps{padding:0}.steps nav{display:block;max-height:none;overflow:visible}.step{padding:13px 8px;width:100%;min-height:57px;margin:4px 0;gap:14px}.step strong{font-size:15px}.step small{display:block;font-size:12px}.step .number{width:33px;height:33px;font-size:13px}.steps .sub,.stats,.steps .line,.progressLabel,.steps progress,.steps>#restartBtn{display:revert}.steps .sub{display:block;font-size:14px}.stats{display:flex}.steps h2{font-size:26px;margin:12px 0}.steps .line{display:block;margin:18px 0}.progressLabel{display:flex;font-size:12px}.steps progress{display:block;width:100%}.steps>#restartBtn{display:block;min-height:44px;font-size:14px}.steps .sectionline{padding-right:22px;font-size:11px}.importbar{display:flex;flex-wrap:wrap;padding:10px 12px;gap:8px}.importbar input{font-size:16px;padding:10px 0;width:calc(100% - 40px)}.importbar .primary{width:100%;font-size:14px;border-radius:9px;min-height:46px;justify-content:center}.importbar .primary span{display:none}.importnote{font-size:13px;margin:14px 0 0;line-height:1.65}.tutorialBox{margin:20px 0 0;max-width:none}.tutorialBox .textbutton{font-size:14px;min-height:44px}dialog{max-width:430px;max-height:calc(100dvh - 38px);overflow:auto;width:calc(100% - 24px);padding:30px 22px 24px;border-radius:22px;overscroll-behavior:contain;margin:auto}dialog h2{font-size:28px}dialog::backdrop{background:#151c1370;backdrop-filter:blur(8px)}dialog .close{height:44px;width:44px;right:5px;top:5px}dialog .eyebrow{padding-right:25px;font-size:10px}dialog .primary{min-height:48px}textarea{font-size:16px;min-height:160px}dialog label{font-size:14px}.toast{bottom:calc(315px + env(safe-area-inset-bottom));width:calc(100% - 36px);max-width:412px;font-size:13px;line-height:1.5;padding:13px 17px}.importbar:focus-within{outline:2px solid #a5ba76}
@media(min-width:600px){body{padding:24px;background:radial-gradient(ellipse at 50% 25%,#454d3c,#232820 70%)}.phoneApp{height:min(900px,calc(100dvh - 48px));min-height:560px;border-radius:34px;box-shadow:0 20px 90px #0008;outline:1px solid #ffffff25}dialog{max-width:420px}}@media(max-height:730px){.guidance{height:270px;padding-top:32px}.mirrorColumn{bottom:245px}.guidance h2{font-size:21px}.guidance .instruction{font-size:13px;margin:7px 0}.lookChip{min-height:51px;padding:9px}.mirrorTop{top:calc(62px + env(safe-area-inset-top))}.glassbutton{top:64px}.glasspill{top:66px}.placementLabel{display:none}.faceHint{bottom:91px;font-size:9px}.mirrorBottom{padding-bottom:32px}.toast{bottom:280px}}@media(max-width:350px){header{padding-left:13px;padding-right:9px}.brand{font-size:18px}.guidance{padding-left:17px;padding-right:17px}.lookChip strong{font-size:14px}.mirrorSettings{left:12px;right:12px;font-size:9px;gap:6px}}
#stepsDialog .mirrorSettings{position:static;margin-top:16px;padding:9px 12px;box-shadow:none;border:1px solid #dde3d3;font-size:12px;gap:9px}#stepsDialog .mirrorSettings .quiet{font-size:12px;min-height:44px}#stepsDialog .mirrorSettings input{height:44px}.guidance{padding-top:26px}.sheetHandle{top:9px}
/* Face-led guidance: the face is the working surface, not a thumbnail. */
.mirrorColumn{inset:0}.mirror{height:100%}.mirror img{transform:scale(1.14)}.mirror video{transform:scale(-1.14,1.14)}header{height:calc(57px + env(safe-area-inset-top));padding-left:16px;padding-right:10px}.brand{font-size:18px}.brandmark{width:25px;height:25px;font-size:21px}.mirrorTop{top:calc(59px + env(safe-area-inset-top));left:15px;right:15px}.lookChip{min-height:45px;padding:8px 11px;border-radius:25px;flex:0 1 auto;gap:9px;background:#22281dc2}.lookChip small{display:none}.lookChip strong{font-size:13px}.lookChip .lookIcon{font-size:17px}.lookChip .chevron{margin-left:6px}.glassbutton{top:0;right:0;width:44px;height:44px;min-height:44px;background:#22281da8}.glasspill{top:56px;padding:5px 8px;font-size:8px;letter-spacing:.6px;background:#22281d8c}.placementLabel{display:none!important}.mirrorBottom{bottom:calc(124px + env(safe-area-inset-bottom));padding:8px 15px;background:transparent;align-items:flex-end;gap:5px;pointer-events:none}.cameraBtn{pointer-events:auto;min-height:44px;padding:10px 15px;background:#20271cd9;border:1px solid #ffffff55;color:#f2f8e8;font-size:12px;backdrop-filter:blur(8px)}.mirrorBottom>span{display:none}.faceHint{top:auto;bottom:calc(184px + env(safe-area-inset-bottom));font-size:9px;left:15px;right:15px;text-align:left;color:#f5f8ef;text-shadow:0 1px 5px #000;background:none;max-width:240px}.guidance{height:calc(123px + env(safe-area-inset-bottom));padding:11px 16px calc(10px + env(safe-area-inset-bottom));border-radius:21px 21px 0 0;background:#f6f8f0f5;box-shadow:0 -6px 34px #0001;backdrop-filter:blur(18px);gap:4px}.sheetHandle{display:none}.sheetScroll{display:flex;align-items:center;gap:12px;overflow:hidden;min-height:32px;flex:none;padding:0}.guidance .sectionline{flex-shrink:0;font-size:9px;letter-spacing:.5px}.guidance .duration{display:none}.guidance h2{font-size:17px;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.4px}.stepFooter{padding:5px 0 0;background:transparent;gap:8px;min-height:48px;align-items:center}.complete{min-height:46px;font-size:13px;padding:12px}.stepFooter #backBtn{height:46px;min-width:44px;background:#f5f8ed}.detailsBtn{height:46px;min-width:47px;padding:0 10px;border:1px solid #d5deca;border-radius:12px;background:#f6f8f0;color:#536143;font-size:12px}.faceCallout{position:absolute;z-index:2;min-height:36px;padding:10px 9px;background:#253021d9;color:#f6ffe9;border:1px solid #eef8db72;border-radius:10px;font-size:11px;line-height:1.3;font-weight:500;box-shadow:0 3px 12px #0002;backdrop-filter:blur(8px);pointer-events:none;text-align:center}.faceCallout:first-child{color:#f4ffd9}#faceCallouts{position:absolute;inset:0;pointer-events:none}#detailsDialog .tooltag{font-size:13px;line-height:1.6}#detailsDialog .instruction{font-size:16px;line-height:1.7}#detailsDialog .technique summary{display:none}#detailsDialog .actions li{font-size:15px}#detailsDialog .tip p{font-size:14px;line-height:1.7}.toast{bottom:calc(145px + env(safe-area-inset-bottom))}@media(max-height:660px){.guidance{height:calc(112px + env(safe-area-inset-bottom));padding-top:7px}.mirrorBottom{bottom:calc(111px + env(safe-area-inset-bottom))}.faceHint{bottom:calc(169px + env(safe-area-inset-bottom))}.mirrorTop{top:calc(51px + env(safe-area-inset-top))}.lookChip{min-height:40px}.faceCallout{font-size:10px;padding:10px 7px}.brand{font-size:17px}}
/* Import and account controls stay out of the face-led mirror until requested. */
.importIntro{margin:10px 0 18px}.importbar input{width:auto;min-height:42px}.importAction{width:100%;margin-top:12px;min-height:48px}.consentNote{font-size:12px;line-height:1.65;margin:13px 0;color:#526047}.importnote{margin-top:12px;margin-bottom:8px}.formError{color:#923f35;font-size:13px;background:#fbece8;border:1px solid #e9c7be;padding:10px 12px;border-radius:9px;overflow-wrap:anywhere}.serviceActions{display:flex;gap:18px;flex-wrap:wrap}.serviceActions .textbutton{min-height:44px}.secondary{min-height:44px;border:1px solid #c8d3ba;background:#f1f5e9;border-radius:10px;color:#405335;padding:10px 14px;font-size:13px}.fallbackOptions{margin-top:18px;border-top:1px solid #dce2d3;padding-top:6px}.fallbackOptions summary{min-height:44px;cursor:pointer;display:list-item;align-content:center;font-size:13px;color:#566847}.fallbackOptions p{font-size:12px}.fallbackButtons{display:flex;flex-wrap:wrap;gap:8px}.tutorialBox a{display:inline-block;min-height:44px}.tutorialBox iframe{background:#222}.suppliedTutorial{border-left:2px solid #b9cba0;padding-left:10px}.lookChip{max-width:calc(100% - 54px)}.lookChip>span:nth-child(2){min-width:0}.lookChip strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.lookChip .lookIcon,.lookChip .chevron{flex-shrink:0}#loginForm input{width:100%;min-height:48px;font-size:16px;border:1px solid #cad3be;border-radius:9px;background:white;padding:10px 12px}#loginForm .primary{margin-top:18px;width:100%}#cancelAnalyze{min-height:44px;text-decoration:underline}#detailsDialog .actions{margin-top:22px}#watchStep{width:100%;margin:8px 0}#detailsDialog .instruction{margin:16px 0}.faceCallout{overflow-wrap:anywhere;line-height:1.4;min-height:39px}#importForm[aria-busy=true] .importAction:before{content:'';width:14px;height:14px;border:2px solid #ffffff4d;border-top-color:white;border-radius:50%;animation:analysis-spin .9s linear infinite}#importForm[aria-busy=true] .importAction{gap:10px;opacity:.85}.small{overflow-wrap:anywhere}@keyframes analysis-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition:none!important}}@media(max-width:350px){.brand{font-size:16px}.guidance h2{font-size:15px}.guidance{padding-left:12px;padding-right:12px}.complete{font-size:12px}.detailsBtn{font-size:11px;padding:0 8px}.faceCallout{font-size:10px}.lookChip strong{font-size:12px}}
.analysisOptions{font-size:12px;border:1px solid #dfe5d7;border-radius:9px;padding:0 12px}.analysisOptions summary{min-height:40px;align-content:center;cursor:pointer;color:#556b42}.analysisOptions label{font-size:12px;margin:4px 0 8px}.analysisOptions input{width:110px;min-height:44px;border:1px solid #c9d3bd;background:#fff;border-radius:8px;padding:8px 10px;font-size:16px}.analysisOptions p{margin-bottom:12px}

.cameraEmpty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:100px 36px 210px;text-align:center;color:#eff5e6;background:radial-gradient(ellipse at 50% 36%,#414d37,#20271f 75%)}.cameraEmptyIcon{font-size:49px;color:#d9edaa;font-weight:400}.cameraEmpty h2{font-size:28px;letter-spacing:-1px;margin:18px 0 10px}.cameraEmpty p{font-size:15px;line-height:1.6;max-width:260px;color:#ccd6c0;margin:0 0 19px}.cameraEmpty>span:last-child{font-size:11px;color:#a7b49b}@media(max-height:650px){.cameraEmpty{padding-bottom:160px}.cameraEmpty h2{font-size:23px}.cameraEmptyIcon{font-size:36px}}
/* Compact step bar: ‹  [step card → details]  ›  */
.guidance{height:auto;flex-direction:row;align-items:center;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.stepArrow{flex:none;width:46px;height:46px;margin:0;padding:0;border:1px solid #d5deca;border-radius:14px;background:#f6f8f0;color:#536143;font-size:28px;line-height:1}
.stepArrow.next{background:#d9edaa;border-color:#c7dd92;color:#2c3a1d}
.stepArrow:disabled{opacity:.35}
.stepCard{flex:1;min-width:0;min-height:46px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:6px 12px;border:0;border-radius:14px;background:#eef2e4;color:#253021;text-align:left}
.stepMeta{grid-column:1;font-size:9px;letter-spacing:.6px;color:#6b7860}
.stepTitle{grid-column:1;font-size:15px;font-weight:500;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stepCardChevron{grid-column:2;grid-row:1/3;font-size:20px;color:#8d9a7e}
/* Live-mirror state, camera button and guidance switch: one row at the bottom. */
.mirrorBottom{bottom:calc(76px + env(safe-area-inset-bottom))}
.mirrorControls{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;pointer-events:auto}
.mirrorControls .glasspill,.mirrorControls .glassbutton{position:static}
.mirrorControls .glasspill{padding:6px 9px;font-size:9px;letter-spacing:.6px}
.faceHint{bottom:calc(136px + env(safe-area-inset-bottom))}
@media(max-width:350px){.mirrorControls{gap:5px}.mirrorControls .cameraBtn{padding:10px 11px}.stepTitle{font-size:14px}}
/* Keep the face hint beside the picture-in-picture, never under it. */
.mirror[data-pip=on] .faceHint{max-width:calc(100% - 185px)}
/* Top bar: logo · video title (opens the step list) · + */
header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;column-gap:6px}
.brand{justify-self:start}
.headerTitle{justify-self:center;max-width:100%;min-width:0;display:flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px;border:0;border-radius:20px;background:transparent;color:#fff;text-align:center}
.headerTitle>span:first-child{min-width:0}
.headerTitle small{display:none}
.headerTitle strong{display:block;font-size:15px;font-weight:500;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 6px #0006}
.headerTitle .chevron{flex-shrink:0;font-size:13px;opacity:.8}
.headerTitle:hover,.headerTitle:focus-visible{background:#ffffff1f}
header .iconbutton{justify-self:end}
.howItWorks{display:block;margin:18px auto 2px;text-decoration:underline;text-underline-offset:3px}
/* Bottom bar: picture-in-picture (left) · status dot, camera, ◈ (right). */
.mirrorControls{justify-content:space-between;align-items:flex-end;min-height:44px}
.mirrorControls .pip{position:relative;right:auto;bottom:auto;flex:none}
.mirrorActions{display:flex;align-items:center;gap:8px;margin-left:auto}
.statusWrap{position:relative;display:flex}
.statusDot{width:32px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent}
.statusDot span{width:10px;height:10px;border-radius:50%;background:#a9b0a1;box-shadow:0 0 0 3px #00000040}
.statusDot[data-live=on] span{background:#8ee05a;box-shadow:0 0 0 3px #8ee05a40,0 0 10px #8ee05a}
.mirrorInfo{position:absolute;right:-6px;bottom:calc(100% + 6px);width:max-content;max-width:min(240px,70vw);display:flex;flex-direction:column;gap:3px;padding:9px 11px;border-radius:12px;background:#f6f8f0f2;color:#3e4836;font-size:11px;line-height:1.4;box-shadow:0 6px 20px #0004;text-align:left}
.mirrorInfo[hidden]{display:none}
.mirrorInfo strong{font-size:9px;letter-spacing:.8px;color:#5d6c4d}
/* Face labels: grey text on a translucent panel; no arrows to the face. */
.faceCallout,.faceCallout:first-child{background:#f4f6f08c;color:#4b5146;border:1px solid #ffffff73;box-shadow:0 2px 10px #0000001a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
/* Fit the bottom bar on narrow phones: scale the inset, keep labels on one line. */
.mirrorControls{gap:8px}
.mirrorControls .pip{width:clamp(84px,30vw,132px);height:auto;aspect-ratio:16/9}
.mirrorActions{gap:6px;min-width:0}
.mirrorActions .cameraBtn{white-space:nowrap}
.statusDot{width:28px}
@media(max-width:350px){.mirrorActions .cameraBtn{font-size:11px;padding:10px}.mirrorActions .glassbutton{width:40px;height:40px;min-height:40px}}
/* Open the status popover from the right edge of the controls so it stays on screen. */
.mirrorActions{position:relative}
.statusWrap{position:static}
.mirrorInfo{right:0;z-index:3}
/* Face labels sit in a stack just above the camera button, off the face. */
#faceCallouts{position:absolute;z-index:2;inset:auto;right:15px;bottom:calc(76px + 44px + 10px + env(safe-area-inset-bottom));max-width:calc(100% - 38px - clamp(84px,30vw,132px));display:flex;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}
#faceCallouts .faceCallout{position:static;width:auto;min-height:0;padding:7px 11px;font-size:12px;line-height:1.3;text-align:right;border-radius:10px}
/* Messages: translucent panel near the top, clear of the labels and controls. */
.toast{top:calc(64px + env(safe-area-inset-top));bottom:auto;background:#f4f6f0b8;color:#3e4836;border:1px solid #ffffff80;box-shadow:0 6px 24px #0000002e;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
/* Guidance on/off switch, the same height as the camera button. */
.guideSwitch{flex:none;position:relative;width:46px;height:30px;padding:0;border:1px solid #ffffff55;border-radius:15px;background:#20271cb3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:background .2s}
.guideSwitch:before{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#e9eee0;box-shadow:0 1px 3px #0005;transition:transform .2s}
.guideSwitch[aria-checked=true]{background:#8fbf5ad9;border-color:#b9df8a}
.guideSwitch[aria-checked=true]:before{transform:translateX(16px);background:#fff}
.guideSwitch:focus-visible{outline:2px solid #d9ee9b;outline-offset:2px}
/* Smaller camera button, aligned with the switch. */
.mirrorActions{align-items:center}
.mirrorActions .cameraBtn{min-height:30px;height:30px;padding:0 12px;font-size:11px;border-radius:15px;display:flex;align-items:center}
.statusDot{height:30px}
@media(max-width:350px){.mirrorActions .cameraBtn{padding:0 9px;font-size:10.5px}}
@media(prefers-reduced-motion:reduce){.guideSwitch,.guideSwitch:before{transition:none}}
/* Step bar as a floating card (like iOS tab bars): inset from the sides and
   lifted above the home indicator, so rounded screen corners never clip it. */
:root{--sheetGap:max(12px,calc(env(safe-area-inset-bottom) + 10px));--sheetH:62px}
.guidance{left:10px;right:10px;bottom:var(--sheetGap);height:var(--sheetH);padding:8px;gap:8px;border-radius:26px;background:#f7f8f3f2;box-shadow:0 8px 30px #0000003d,0 0 0 1px #ffffff99;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.stepArrow{border-radius:19px}
.stepCard{border-radius:19px}
.mirrorBottom{bottom:calc(var(--sheetGap) + var(--sheetH) + 6px)}
#faceCallouts{bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + 44px + 10px)}
@media(max-width:350px){.guidance{left:8px;right:8px;padding:7px;gap:6px}}
/* Picture-in-picture 50% bigger (was clamp(84px,30vw,132px)). */
:root{--pipW:clamp(126px,45vw,198px)}
.mirrorControls .pip{width:var(--pipW)}
/* Round map-style buttons (like Google Maps' layers button): layers = guidance on/off, camera on the far right. */
.mirrorActions{gap:10px}
.mirrorActions .mapButton{position:static;flex:none;width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:0;border-radius:50%;background:#fff;color:#3c4043;box-shadow:0 1px 4px #0000004d,0 2px 10px #00000026;backdrop-filter:none;-webkit-backdrop-filter:none}
.mapButton svg{width:22px;height:22px}
.guideSwitch:before{content:none}
.guideSwitch[aria-checked=false]{background:#ffffffcc;color:#80868b}
.guideSwitch[aria-checked=true]{background:#fff;color:#3e7a1f;box-shadow:0 0 0 2px #9ccc65,0 2px 10px #00000026}
.cameraBtn[data-state=live]{background:#d9ee9b;color:#283320}
.cameraBtn[data-state=pending]{opacity:.65}
.mapButton:focus-visible{outline:2px solid #d9ee9b;outline-offset:3px}
/* Status text is for screen readers only now. */
.srOnly{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Face labels as subtitles: centered, no box, above the picture-in-picture. */
#faceCallouts{left:15px;right:15px;max-width:none;align-items:center;bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + var(--pipH) + 14px)}
#faceCallouts .faceCallout,#faceCallouts .faceCallout:first-child{padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff;font-size:16px;font-weight:600;line-height:1.35;text-align:center;text-shadow:0 1px 3px #000c,0 0 10px #0009}
/* Messages live inside the app card, just under the top bar (the card is
   inset on larger screens, so viewport-fixed positioning overlapped it). */
.toast{position:absolute;top:calc(57px + env(safe-area-inset-top) + 8px)}
/* Picture-in-picture 30% smaller than the last size (was clamp(126px,45vw,198px)). */
:root{--pipW:clamp(88px,31.5vw,139px)}
/* Layers and camera buttons share one "on" color. */
.guideSwitch[aria-checked=true],.cameraBtn[data-state=live]{background:#d9ee9b;color:#283320;box-shadow:0 1px 4px #0000004d,0 2px 10px #00000026}
/* + window: link box with a clear (×) button, Browse, and its results. */
.importbar{position:relative}
.importbar input{padding-right:40px}
.clearUrl{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#e6eadc;color:#4c5843;font-size:17px;line-height:1;display:grid;place-items:center}
.clearUrl[hidden]{display:none}
.browseBtn{display:block;width:100%;margin-top:10px;min-height:42px;border:1px solid #d5deca;border-radius:12px;background:#f6f8f0;color:#3e4836;font-size:13px;font-weight:500}
.browseBtn[aria-expanded=true]{background:#eef2e4}
.browseResults{margin-top:10px;max-height:330px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px;padding:2px}
.browseResults[hidden]{display:none}
.browseItem{display:flex;gap:10px;align-items:center;width:100%;padding:6px;border:0;border-radius:12px;background:#f3f5ee;text-align:left;color:#253021}
.browseItem:hover,.browseItem:focus-visible{background:#e8eedb}
.browseThumb{position:relative;flex:none;width:104px;aspect-ratio:16/9;border-radius:8px;background:#ccd3c3 center/cover no-repeat}
.browseThumb small{position:absolute;right:4px;bottom:4px;padding:0 4px;border-radius:4px;background:#000000b3;color:#fff;font-size:10px;line-height:1.5}
.browseItem>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}
.browseItem strong{font-size:12.5px;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.browseItem>span:last-child small{font-size:11px;color:#6b7860;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.browseNote{margin:6px 2px;font-size:12px;color:#6b7860}
#importStatus:empty{display:none}
/* Tappable picture-in-picture → clip window that plays from that moment. */
.pip{pointer-events:auto;cursor:pointer;padding:0;font:inherit}
.pip:focus-visible{outline:2px solid #d9ee9b;outline-offset:2px}
.pip:after{content:'▶';position:absolute;right:6px;bottom:5px;width:18px;height:18px;border-radius:50%;background:#000000a6;color:#fff;font-size:8px;line-height:18px;text-align:center}
.clipDialog{width:min(560px,calc(100% - 24px));padding:18px 16px 16px}
.clipFrame{position:relative;margin:10px 0 12px;border-radius:12px;overflow:hidden;background:#111;aspect-ratio:16/9}
.clipFrame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* Opening a pop-up focuses its ×; never draw the green focus ring on it. */
.close:focus-visible{outline:none;border-radius:50%;background:#0000000f}
/* Product line above the subtitle labels, and the look's product list. */
#faceCallouts .faceProduct{color:#f3f7ea;font-size:13px;font-weight:500;letter-spacing:.2px;text-align:center;text-shadow:0 1px 3px #000c,0 0 10px #0009}
#faceCallouts .faceProduct[hidden]{display:none}
.productsBox{margin:14px 0 6px}
.products{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.products li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 10px;border-radius:10px;background:#f1f4ea}
.products strong{font-size:13px;font-weight:500;color:#253021}
.products small{flex:none;font-size:11px;color:#6b7860}
/* Magic-mirror logo (icon.svg) replaces the lettered square. */
.brand img.brandmark{display:block;width:30px;height:30px;background:none;border-radius:0}
/* Overlay text: product and labels share one small subtitle style. */
#faceCallouts .faceCallout,#faceCallouts .faceCallout:first-child,#faceCallouts .faceProduct{font-size:13px;font-weight:500;line-height:1.35;letter-spacing:.1px}
/* + window: Google sign-in above the link box. */
.account{margin:4px 0 14px}
.googleBtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;padding:0 16px;border:1px solid #dadce0;border-radius:22px;background:#fff;color:#3c4043;font-size:14px;font-weight:500;letter-spacing:.1px}
.googleBtn[hidden]{display:none}
.googleBtn:hover{background:#f8faf5}
.googleBtn:disabled{opacity:.6}
.googleG{width:18px;height:18px;flex:none}
.signedIn{margin:0;font-size:12.5px;color:#526047}
.signedIn[hidden]{display:none}
.signedIn .textbutton{display:inline;padding:0;margin:0;font-size:12.5px;text-decoration:underline;text-underline-offset:3px}
/* + window: visible link label; Analyze in the app's lime accent. */
.urlLabel{display:block;margin:0 2px 7px;font-size:12.5px;font-weight:500;color:#3e4836}
.importbar{padding-left:14px}
.primary.importAction{background:#d9ee9b;color:#283320;border:1px solid #c7dd92;font-weight:600}
.primary.importAction:hover{background:#cfe68c}
.primary.importAction:disabled{opacity:.75}
#importForm[aria-busy=true] .importAction:before{border-color:#28332033;border-top-color:#283320}
/* Look complete: capture / share card above the bottom controls. */
.doneCard{position:absolute;z-index:6;left:12px;right:12px;bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + var(--pipH) + 14px);display:flex;flex-direction:column;gap:3px;padding:14px 14px 12px;border-radius:18px;background:#f6f8f0f2;box-shadow:0 8px 30px #0000004d;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.doneCard[hidden]{display:none}
.doneTitle{font-size:15px;font-weight:600;color:#253021}
.doneSub{font-size:12px;color:#6b7860}
.doneActions{display:flex;gap:8px;margin-top:10px}
.doneBtn{flex:1;min-height:44px;padding:0 10px;border:1px solid #d5deca;border-radius:21px;background:#fff;color:#253021;font-size:13px;font-weight:500}
.doneBtn.doneShare{background:#d9ee9b;border-color:#c7dd92;font-weight:600}
.doneBtn:disabled{opacity:.6}
.doneClose{position:absolute;top:6px;right:8px;width:32px;height:32px;border:0;background:none;color:#6b7860;font-size:20px}
.phoneApp[data-done=on] #faceCallouts{display:none}
/* Captured photo preview. */
.captureImg{display:block;width:100%;max-height:58vh;object-fit:contain;margin:12px 0;border-radius:14px;background:#111}
.captureActions{display:flex;gap:8px}
.captureActions button{flex:1;margin:0;min-height:44px}
.captureActions .primary{background:#d9ee9b;color:#283320;border:1px solid #c7dd92;font-weight:600}
.captureNote{margin:10px 2px 0}
/* Capture preview: sized to the photo (no side bars); one Share button. */
.captureImg{width:auto;max-width:100%;max-height:58vh;margin:12px auto;background:none}
.captureActions .primary{width:100%}
/* Default screen: "Cue Mirror" / "Your look, step by step", then small print. */
.cameraEmpty h2{margin-bottom:6px}
.cameraEmpty p.cameraEmptyTagline{font-size:17px;font-weight:500;color:#e7efdb;max-width:none;margin:0 0 16px}
.cameraEmpty p:not(.cameraEmptyTagline){font-size:12.5px;line-height:1.55;color:#b9c4ad;margin-bottom:10px}
/* "Discover more tutorials" beside the picture-in-picture. */
.discoverBtn{flex:none;align-self:flex-end;display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 12px 6px 10px;border:1px solid #ffffff55;border-radius:14px;background:#20271cd9;color:#f2f8e8;font-size:11px;font-weight:500;line-height:1.25;text-align:left;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.discoverSpark{color:#d9ee9b;font-size:14px}
.discoverNote{margin:4px 2px 12px}
.discoverDialog .browseResults{max-height:62vh}
@media(max-width:350px){.discoverMore{display:none}.discoverBtn{padding:6px 9px;gap:5px}}
/* Portrait inset for vertical videos; --pipH keeps labels and cards above it. */
:root{--pipH:calc(var(--pipW) * 9 / 16)}
.phoneApp[data-pip-orientation=portrait]{--pipH:calc(var(--pipW) * .62 * 16 / 9)}
.phoneApp[data-pip-orientation=portrait] .mirrorControls .pip{width:calc(var(--pipW) * .62)}
.clipDialog[data-orientation=portrait] .clipFrame{aspect-ratio:9 / 16;width:min(100%, calc(62vh * 9 / 16));margin-inline:auto}
/* Save (bookmark) stacked above the layers button, Google Maps style. */
.toolStack{display:flex;flex-direction:column;gap:8px}
.mirrorActions{align-items:flex-end}
.saveBtn[aria-pressed=true]{background:#d9ee9b;color:#283320;--bookFill:currentColor}
.saveBtn[hidden]{display:none}
/* Keep face labels above the stacked buttons too. */
#faceCallouts{bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + max(var(--pipH), 96px) + 14px)}
.savedBox{margin-top:14px}
.savedBox[hidden]{display:none}
.savedBox .browseResults{margin-top:8px;max-height:260px}
/* Right-side controls: one vertical column (overlay, save, camera), icons only. */
.mirrorActions{flex-direction:column;align-items:center;gap:4px}
.mirrorActions .mapButton,.mirrorActions .mapButton[aria-checked],.mirrorActions .cameraBtn[data-state]{width:40px;height:40px;min-height:40px;background:none;border:0;box-shadow:none;color:#fff;filter:drop-shadow(0 1px 3px #000a)}
.mapButton svg{width:24px;height:24px}
.mirrorActions .guideSwitch[aria-checked=false]{color:#ffffff8c}
.mirrorActions .previewBtn:focus-visible{outline:2px solid #d9ee9b;outline-offset:2px;border-radius:50%}
.mirrorActions .guideSwitch[aria-checked=true],.mirrorActions .cameraBtn[data-state=live],.mirrorActions .saveBtn[aria-pressed=true]{color:#d9ee9b}
.mirrorActions .cameraBtn[data-state=pending]{opacity:.6}
/* Labels and the look-complete card clear the column (3 × 40px + gaps). */
#faceCallouts{bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + max(var(--pipH), 176px) + 14px)}
.doneCard{bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + max(var(--pipH), 220px) + 14px)}

/* Preview makeup: the selfie, dimmed while OpenAI works, then the result. */
.previewFrame{position:relative}
/* Viewfinder: the live, mirrored camera in the preview's 2:3 portrait. */
.previewCamera{aspect-ratio:2/3;object-fit:cover;transform:scaleX(-1)}
.previewCamera[hidden]{display:none}
/* "Capture your look" viewfinder: the live, mirrored camera in the photo's shape (set from the mirror). */
.captureCamera{object-fit:cover;transform:scaleX(-1)}
.captureCamera[hidden],.captureImg[hidden]{display:none}
.retakeCapture{display:block;margin:10px auto 0}
/* Both viewfinders show a dark frame while the camera starts. */
.captureCamera,.previewCamera{background:#111}
.retakeCapture[hidden]{display:none}
.previewDialog[data-state=working] .captureImg{filter:blur(3px) brightness(.7)}
.previewWorking{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;font-size:14px;text-align:center;padding:0 24px;text-shadow:0 1px 3px #0009}
.previewSpinner{width:34px;height:34px;border-radius:50%;border:3px solid #ffffff4d;border-top-color:#d9ee9b;animation:previewSpin 1s linear infinite}
@keyframes previewSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.previewSpinner{animation-duration:3s}}

/* Product tags: the overlay's product line is a tappable tag, and so is each
   product in the step list; the product sheet links to its store page. */
#faceCallouts .faceProduct.productTag{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;max-width:100%;margin:0 auto 2px;padding:5px 11px 5px 9px;border:1px solid #ffffff59;border-radius:999px;background:#1d241a80;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;font:inherit;font-size:13px;font-weight:500;cursor:pointer;text-shadow:none}
#faceCallouts .faceProduct.productTag[hidden]{display:none}
#faceCallouts .faceProduct #faceProductName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.productTag .tagIcon{flex:none;width:14px;height:14px;color:#d9ee9b}
.productTag .tagArrow{flex:none;opacity:.75}
.productTag:focus-visible,.productRow:focus-visible{outline:2px solid #d9ee9b;outline-offset:2px}
.products li{padding:0;background:none}
.productRow{display:flex;width:100%;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 10px;border:0;border-radius:10px;background:#f1f4ea;font:inherit;text-align:left;cursor:pointer}
.productDialog h2{margin-bottom:6px}
.productStatus{margin:0 0 14px}
.productDialog[data-state=finding] .productStatus:before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;border-radius:50%;border:2px solid #c7dd92;border-top-color:#3e7a1f;animation:previewSpin 1s linear infinite}
.productLink{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:0 0 10px;border:1px solid #c7dd92;border-radius:12px;background:#d9ee9b;color:#283320;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.productLink[hidden]{display:none}
.productDialog .textbutton{display:block;text-align:center}

/* "Discover more tutorials" is small text under the picture-in-picture, and
   the overlay text sits just above them, clear of the icon column. */
.pipStack{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;max-width:calc(var(--pipW) + 24px)}
.discoverLink{padding:2px 0;border:0;background:none;color:#f2f8e8;font:inherit;font-size:11px;font-weight:500;letter-spacing:.1px;white-space:nowrap;text-shadow:0 1px 3px #000c;cursor:pointer}
.discoverLink .discoverSpark{font-size:10px}
.discoverLink:focus-visible{outline:2px solid #d9ee9b;outline-offset:2px;border-radius:4px}
/* The overlay text sits beside the picture-in-picture, between it and the
   icon column: left of it is the PiP stack (at least the Discover text's
   134px), right of it the 40px icons. */
#faceCallouts{left:calc(15px + max(var(--pipW), 134px) + 10px);right:62px;bottom:calc(var(--sheetGap) + var(--sheetH) + 6px + 22px);max-width:none;align-items:center;gap:5px}
#faceCallouts .faceCallout,#faceCallouts .faceCallout:first-child{font-size:12.5px;line-height:1.3}
#faceCallouts .faceProduct.productTag{margin:0;padding:4px 9px 4px 8px;border-radius:12px;font-size:12px;line-height:1.25;text-align:left}
#faceCallouts .faceProduct #faceProductName{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* Preview progress over the dimmed selfie. */
.previewWorking{gap:10px}
.previewBar{width:min(78%,240px);height:7px;appearance:none;-webkit-appearance:none;border:0;border-radius:99px;background:#ffffff40;overflow:hidden}
.previewBar::-webkit-progress-bar{background:#ffffff40;border-radius:99px}
.previewBar::-webkit-progress-value{background:#d9ee9b;border-radius:99px;transition:width .5s ease}
.previewBar::-moz-progress-bar{background:#d9ee9b;border-radius:99px}
.previewElapsed{font-size:11.5px;opacity:.85;font-variant-numeric:tabular-nums}

/* Product sheet: the store card when known; otherwise the Google link leads
   while the search runs. */
.productUsed{margin:0 0 12px;color:#6b7860}
.productUsed:empty{display:none}
.productCard{display:flex;flex-direction:column;gap:3px;margin:0 0 14px;padding:12px 14px;border-radius:14px;background:#f1f4ea;border:1px solid #e1e8d2}
.productCard[hidden]{display:none}
.productStore{font-size:10.5px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#3e7a1f}
.productCard strong{font-size:15px;font-weight:600;color:#253021;line-height:1.3}
.productDomain{font-size:12px;color:#7a8670}
.productFinding{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
.productFinding[hidden]{display:none}
.productFinding progress{width:100%;height:7px;appearance:none;-webkit-appearance:none;border:0;border-radius:99px;background:#e3e7d8;overflow:hidden}
.productFinding progress::-webkit-progress-bar{background:#e3e7d8;border-radius:99px}
.productFinding progress::-webkit-progress-value{background:#8fbf5a;border-radius:99px;transition:width .5s ease}
.productFinding progress::-moz-progress-bar{background:#8fbf5a;border-radius:99px}
.productElapsed{font-size:11.5px;color:#7a8670;font-variant-numeric:tabular-nums}
.productDialog[data-state=found] .productSearch{min-height:0;margin:2px 0 0;border:0;background:none;color:#5b6a52;font-weight:500;font-size:13px;text-decoration:underline}
.productSignIn{display:block;margin:4px auto 0}
.productSignIn[hidden]{display:none}
.productDialog[data-state=finding] .productStatus:before{content:none}

/* Voice: the mic tops the icon column, lime and pulsing while Cue is on. */
.mirrorActions .talkBtn[data-state=listening],.mirrorActions .talkBtn[data-state=speaking],.mirrorActions .talkBtn[data-state=connecting]{color:#d9ee9b}
.mirrorActions .talkBtn[data-state=connecting]{opacity:.7}
.mirrorActions .talkBtn[data-state=listening] svg,.mirrorActions .talkBtn[data-state=speaking] svg{animation:talkPulse 1.6s ease-in-out infinite}
@keyframes talkPulse{50%{transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.mirrorActions .talkBtn svg{animation:none!important}}

/* Overlay off: the picture-in-picture and Discover link hide too, keeping
   their space so the icon column stays put. */
.phoneApp[data-overlay=off] .pipStack{visibility:hidden;pointer-events:none}

/* Header: + and the profile avatar share the right side. */
header{grid-template-columns:84px minmax(0,1fr) 84px}
.headerActions{justify-self:end;display:flex;align-items:center;gap:2px}
.profileBtn{display:grid;place-items:center;color:#fff}
.profileBtn svg{width:24px;height:24px}
.profileAvatar{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1.5px #ffffffb3}
.profileAvatar[hidden],.profileIcon[hidden]{display:none}
.profileIcon{display:grid;place-items:center}
.profileLetter{display:grid;place-items:center;background:#d9ee9b;color:#283320;font-size:13px;font-weight:700}
/* Profile page: a full-height sheet. */
.profileDialog{width:min(100%,460px);max-width:460px;height:100dvh;max-height:100dvh;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));border-radius:0;overflow-y:auto}
@media(min-width:600px){.profileDialog{height:min(860px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);margin:auto;border-radius:28px}}
.profileSignedOut[hidden],.profileMain[hidden]{display:none}
.profileSignedOut p{margin:6px 0 18px;color:#5b6a52}
.profileHead{display:flex;align-items:center;gap:14px;margin:4px 0 20px}
.profileHead h2{margin:0;font-size:22px}
.profileHead p{margin:2px 0 0;color:#7a8670;word-break:break-all}
.profilePhoto{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;overflow:hidden;background:#d9ee9b;color:#283320;font-size:24px;font-weight:600}
.profilePhoto img{width:100%;height:100%;object-fit:cover}
.profilePhoto img[hidden],.profilePhoto span[hidden]{display:none}
.profileDialog .sectionline{display:flex;justify-content:space-between;align-items:center}
.profileCount{font-size:11px;font-weight:600;color:#3e7a1f}
.profileStatus{margin:12px 2px;color:#6b7860}
.profileStatus:empty{display:none}
.profileSaved{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.profileSaved li{position:relative;display:flex;align-items:stretch}
.profileLook{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:8px 40px 8px 8px;border:1px solid #e1e8d2;border-radius:14px;background:#f6f8f0;font:inherit;text-align:left;cursor:pointer}
.profileLook img{flex:none;width:112px;aspect-ratio:16/9;border-radius:9px;object-fit:cover;background:#dfe5d3}
.profileLook span{min-width:0;display:flex;flex-direction:column;gap:4px}
.profileLook strong{font-size:13.5px;font-weight:600;line-height:1.3;color:#253021;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.profileLook small{font-size:11.5px;color:#7a8670}
.profileRemove{position:absolute;top:6px;right:6px;width:30px;height:30px;border:0;border-radius:50%;background:none;color:#8a9580;font-size:20px;line-height:1;cursor:pointer}
.profileRemove:hover{background:#e7ecdc;color:#3a4434}
.profileLook:focus-visible,.profileRemove:focus-visible,.profileBtn:focus-visible{outline:2px solid #8fbf5a;outline-offset:2px}
.profileSignOut{display:block;margin:22px auto 0}

/* Step bar in the icon column's style: half-translucent dark glass, white
   text, and bare white arrows (no boxes or circles) with the same soft
   shadow; disabled arrows fade. */
.guidance{background:#1d241a80;border:1px solid #ffffff2e;box-shadow:0 6px 24px #0000004d;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.guidance .stepArrow,.guidance .stepArrow.next{width:40px;height:46px;border:0;border-radius:0;background:none;box-shadow:none;color:#fff;font-size:34px;font-weight:300;filter:drop-shadow(0 1px 3px #000a)}
.guidance .stepArrow:disabled{opacity:.3}
.guidance .stepArrow:focus-visible,.guidance .stepCard:focus-visible{outline:2px solid #d9ee9b;outline-offset:2px;border-radius:12px}
.guidance .stepCard{background:none;color:#fff;text-shadow:0 1px 3px #0008}
.guidance .stepMeta{color:#ffffffb3}
.guidance .stepTitle{color:#fff}
.guidance .stepCardChevron{color:#ffffffa6}

/* + page: "Discover more make-up tutorials" as a small text link, like the
   one under the picture-in-picture (dark text on the light sheet). */
.discoverInline{display:block;margin:10px auto 2px;color:#3e4a37;text-shadow:none;font-size:12px}
.discoverInline .discoverSpark{color:#6d9a3c}
.discoverInline[hidden]{display:none}

/* Home screen: no ring icon; a "Turn on camera" button under the hint. */
.demoCameraBtn{display:inline-flex;align-items:center;gap:8px;margin:4px 0 14px;padding:10px 18px;border:0;border-radius:22px;background:#d9ee9b;color:#283320;font:inherit;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 4px 16px #0004}
.demoCameraBtn svg{width:19px;height:19px}
.demoCameraBtn:focus-visible{outline:2px solid #fff;outline-offset:3px}
/* Second action under "Guide My Makeup": the same shape, as an outline button. */
.demoPreviewBtn{margin-top:-4px;background:transparent;color:#e7efdb;box-shadow:inset 0 0 0 1px #d9ee9b80}
/* Both camera-start buttons share one width, labels centred. */
.demoCameraBtn{width:min(220px,100%);justify-content:center}
/* Header logo: just the mark, no disc. */
.brand img.brandmark{width:32px;height:32px}

/* No logo in the header: the title stays centered between empty space and
   the right-hand buttons. */
header .headerTitle{grid-column:2}
header .headerActions{grid-column:3}

/* Preview working in the background: a pulsing lime dot on its icon; the
   dialog's "Notify me when it's generated" button sits under the progress. */
.mirrorActions .previewBtn{position:relative}
.mirrorActions .previewBtn[data-busy=true]::after{content:'';position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:#d9ee9b;box-shadow:0 0 0 2px #1d241acc;animation:talkPulse 1.2s ease-in-out infinite}
.previewLater{width:100%;min-height:44px;margin:0}
.previewLater[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.mirrorActions .previewBtn[data-busy=true]::after{animation:none}}

/* Header: the guide's title on the left, + and profile on the right; no chevron. */
header{grid-template-columns:minmax(0,1fr) auto}
header .headerTitle{grid-column:1;justify-self:start;max-width:100%;padding-left:0;padding-right:8px;text-align:left}
header .headerTitle > span{align-items:flex-start;text-align:left}
header .headerActions{grid-column:2}


.photoPick{width:100%;max-width:400px;display:flex;align-items:center;gap:13px;padding:10px 12px 10px 10px;margin-bottom:10px;border:1px solid #ffffff2e;border-radius:20px;background:#1d241a80;box-shadow:0 6px 24px #0000004d;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);text-align:left;cursor:pointer}
.photoPick:focus-within{outline:2px solid #d9ee9b;outline-offset:2px}
.photoPickThumb{flex:none;width:60px;height:60px;display:grid;place-items:center;border-radius:14px;background:#ffffff14;color:#d9edaa;overflow:hidden}
.photoPickThumb svg{width:26px;height:26px}
.photoPickThumb img{width:100%;height:100%;object-fit:cover}
.photoPickText{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.photoPickText strong{font-size:15px;font-weight:500;color:#fff}
.photoPickText small{font-size:12px;line-height:1.45;color:#b9c4ad}
.photoPickAction{flex:none;font-size:13px;font-weight:600;color:#e7efdb;padding:7px 13px;border-radius:22px;box-shadow:inset 0 0 0 1px #d9ee9b80}
.createGo{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:min(220px,100%);min-height:44px;margin:14px 0 12px;padding:10px 18px;border:0;border-radius:22px;background:#d9ee9b;color:#283320;font-size:14px;font-weight:600;box-shadow:0 4px 16px #0004}
.createGo svg{width:19px;height:19px}
.createGo:disabled{opacity:.45}
.createGo:focus-visible{outline:2px solid #fff;outline-offset:3px}
.createNote{font-size:11px;line-height:1.5;color:#a7b49b;margin:0;max-width:290px}
.createOr{width:100%;max-width:400px;display:flex;align-items:center;gap:12px;margin:16px 0 14px;color:#a7b49b;font-size:11px;letter-spacing:1.2px;text-transform:uppercase}
.createOr:before,.createOr:after{content:'';flex:1;height:1px;background:#ffffff24}
.photoPickText em{font-style:normal;font-weight:400;color:#b9c4ad}
.photoPick[data-disabled=true]{opacity:.45;pointer-events:none}
.createSignedOut{width:100%;margin-bottom:12px;padding:12px 14px;border-radius:18px;background:#d9ee9b1a;border:1px solid #d9ee9b4d}
.createSignedOut p{margin:0 0 4px;font-size:12.5px;color:#e7efdb}
.createSignedOut .createGo{margin:6px 0 2px}
/* "Show me how": a pill and caption at the top of the mirror, above the forehead. */
#demoCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.howPanel{position:absolute;z-index:3;top:calc(60px + env(safe-area-inset-top));left:12px;right:12px;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.howPanel[hidden]{display:none}
.howBtn{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 16px 8px 13px;border:0;border-radius:22px;background:#d9ee9b;color:#283320;font:inherit;font-size:13px;font-weight:600;box-shadow:0 4px 16px #0005}
.howBtn svg{width:16px;height:16px}
.howBtn[aria-pressed=true]{background:#f7f8f3;color:#283320}
.howBtn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.howCaption{max-width:320px;margin:0;padding:8px 13px;border-radius:16px;background:#1d241ab8;border:1px solid #ffffff2e;color:#f4f9ea;font-size:13px;line-height:1.45;text-align:center;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 16px #0004}
/* The creator's clip during "Show me how": the picture-in-picture spot, portrait for Shorts. */
.howClip{pointer-events:none;background:#000}
.howClip[hidden]{display:none}
.howClip iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.howClip span{position:absolute;left:6px;bottom:5px;font-size:10px;line-height:1.4;color:#fff;background:#000000a6;border-radius:6px;padding:0 5px}
.howClip:after{display:none}
.howClip span{white-space:nowrap;right:6px;overflow:hidden;text-overflow:ellipsis}
.howBtn[hidden]{display:none}
/* "Check my work": a second pill, then a small result card under the pills. */
.howRow{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.checkBtn{background:#f7f8f3}
.checkBtn[aria-busy=true]{opacity:.75}
.checkCard{pointer-events:auto;position:absolute;z-index:3;left:50%;transform:translateX(-50%);bottom:calc(var(--sheetGap, 12px) + var(--sheetH, 62px) + var(--pipH, 80px) + 40px);width:calc(100% - 24px);max-width:330px;margin:0;padding:10px 32px 10px 14px;border-radius:16px;background:#1d241ad9;border:1px solid #ffffff2e;color:#f4f9ea;font-size:13px;line-height:1.45;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 16px #0004}
.checkCard[hidden]{display:none}
.checkCard strong{display:block;font-size:13px;color:#d9ee9b}
.checkCard[data-state=fix] strong,.checkCard[data-state=failed] strong{color:#fff}
.checkCard ul{margin:4px 0 0;padding-left:17px}
.checkCard li+li{margin-top:4px}
.checkCard p{margin:6px 0 0;color:#c9d3bd;font-size:12px}
.checkCard p:empty{display:none}
.checkClose{position:absolute;top:4px;right:4px;width:32px;height:32px;border:0;background:none;color:#f4f9ea;font-size:20px;line-height:1}
.checkClose:focus-visible{outline:2px solid #d9ee9b;border-radius:10px}
/* The new-look sheet: a link, or a photo of the look, plus an optional palette, in one form. */
#importDialog .createOr{max-width:none;margin:16px 0 12px;color:var(--muted)}
#importDialog .createOr:before,#importDialog .createOr:after{background:var(--line)}
#importDialog .photoPick{max-width:none;margin-bottom:0;background:#fff;border-color:var(--line);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#importDialog .photoPickThumb{width:52px;height:52px;background:#eef3e3;color:#55703a}
#importDialog .photoPickText strong{color:var(--ink);font-size:14.5px}
#importDialog .photoPickText small,#importDialog .photoPickText em{color:var(--muted)}
#importDialog .photoPickAction{color:#3e4836;box-shadow:inset 0 0 0 1px #c7dd92}
#importDialog .paletteGap{height:8px}
#importDialog .createSignedOut{background:#eef5dc;border-color:#d3e3ad}
#importDialog .createSignedOut p{color:#3e4836}
#importDialog .createSignedOut .createGo{width:auto;margin:6px 0 2px;box-shadow:none}
#importDialog .createNote{max-width:none;margin-top:10px;color:var(--muted)}
.demoNewLink{margin:-2px 0 12px;padding:8px 12px;border:0;background:none;color:#d9ee9b;font:inherit;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.demoNewLink:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:8px}
/* The bottom row spans the mirror; only its clip and icons take taps, so the camera screen's buttons above stay reachable. */
.mirrorControls{pointer-events:none}
.mirrorControls>*{pointer-events:auto}
