:root {
  --ink: #173e4d;
  --muted: #63808a;
  --teal: #087f80;
  --blue: #3895d4;
  --mint: #dff6ee;
  --cream: #fffaf0;
  --sun: #ffd36f;
  --coral: #ff9475;
  --white: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #e8f4f1;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { min-height: 100vh; padding: 34px 28px 72px; background: radial-gradient(circle at 85% 12%, #d5f6fa 0, transparent 34%), radial-gradient(circle at 8% 60%, #eaf7da 0, transparent 32%), #e9f3ef; }
.workspace-head { width: min(1100px, 100%); margin: 0 auto 24px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #3b9a91; }
.workspace-head h1 { margin: 7px 0 5px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; line-height: 1.2; }
.workspace-head h1 span { font-weight: 500; color: #779294; }
.workspace-head p { margin: 0; color: #65818a; font-size: 14px; line-height: 1.8; }
.spec-pill { flex: none; margin-bottom: 4px; padding: 11px 16px; border: 1px solid #d8e9e6; border-radius: 999px; background: #fff9; color: #476d73; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px #6a9f9120; }
.spec-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #38bb89; }
.stage { width: 824px; height: 504px; margin: 0 auto 25px; position: relative; }
.device { width: 824px; height: 504px; padding: 12px; border-radius: 31px; background: linear-gradient(145deg,#234a56,#153542); box-shadow: 0 12px 0 #163341, 0 30px 70px #1e606047; transform-origin: top left; }
.device::after { content: ""; position: absolute; top: 247px; right: 3px; width: 4px; height: 29px; border-radius: 5px; background: #66828a; }
.device-screen { width: 800px; height: 480px; position: relative; overflow: hidden; border-radius: 20px; isolation: isolate; background: #f6fdf9; }
.device-screen::before { content: ""; position: absolute; width: 370px; height: 370px; top: -235px; right: -90px; border-radius: 50%; background: #daf8ee; z-index: -1; }
.device-screen::after { content: ""; position: absolute; width: 240px; height: 240px; bottom: -172px; left: -78px; border-radius: 50%; background: #e4f4ff; z-index: -1; }
.screen-header { height: 70px; position: relative; z-index: 3; padding: 19px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 29px; height: 29px; border-radius: 10px 10px 12px 12px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,#3bc9bf,#258ad1); box-shadow: 0 4px 9px #1d969550; font-size: 17px; }
.brand small { display: block; margin-top: -3px; font-size: 8px; line-height: 1; letter-spacing: .12em; font-weight: 800; color: #6fa5a9; }
.screen-tag { min-height: 30px; padding: 7px 12px; border-radius: 100px; background: #fff; color: #66858c; box-shadow: 0 3px 14px #3b7a7514; font-size: 12px; font-weight: 700; }
.screen-tag strong { color: var(--teal); }
.screen-content { position: relative; z-index: 2; height: 410px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.b1 { width: 17px; height: 17px; background: #bceadd; left: 26px; top: 198px; }
.blob.b2 { width: 10px; height: 10px; background: #ffe8a7; right: 34px; top: 185px; }
.blob.b3 { width: 11px; height: 11px; background: #b5e2f7; right: 359px; bottom: 32px; }
.eyeline { display: inline-flex; align-items: center; gap: 7px; color: #239e91; font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.eyeline::before { content: ""; width: 16px; height: 3px; border-radius: 4px; background: #38c8ad; }
.handsfree-cue { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 390px; padding: 6px 15px 6px 7px; border-radius: 16px; color: #157f76; background: #e3f8ef; font-size: 15px; font-weight: 900; box-shadow: inset 0 0 0 1px #d2f0e5; }
.cue-pulse { width: 29px; height: 29px; flex: none; display: grid; place-items: center; border-radius: 11px; color: white; background: #18a998; box-shadow: 0 0 0 0 #18a99855; animation: cue-pulse 2s infinite; }
@keyframes cue-pulse { 60% { box-shadow: 0 0 0 8px #18a99800; } 100% { box-shadow: 0 0 0 0 #18a99800; } }
.passive-next { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 13px; border-radius: 100px; background: #e4f8ef; color: #13887a; font-size: 15px; font-weight: 900; }
.passive-next i { width: 8px; height: 8px; border-radius: 50%; background: #24b998; box-shadow: 0 0 0 4px #c9f1e4; }

/* Idle and greeting */
.hero-copy { position: absolute; left: 48px; top: 48px; width: 390px; z-index: 2; }
.hero-copy h2 { margin: 15px 0 12px; color: #194551; font-size: 50px; line-height: 1.14; letter-spacing: -.075em; }
.hero-copy h2 em { font-style: normal; color: #07948e; }
.hero-copy p { margin: 0 0 23px; max-width: 355px; color: #5f7f86; font-size: 19px; line-height: 1.6; font-weight: 600; }
.hero-side { position: absolute; right: 45px; top: 6px; width: 330px; height: 345px; display: grid; place-items: center; }
.hero-side::before { content: ""; position: absolute; width: 303px; height: 303px; border-radius: 55% 45% 50% 45%; background: linear-gradient(150deg,#e3f8ed,#d8f1fb); transform: rotate(-15deg); }
.hero-side::after { content: ""; position: absolute; width: 34px; height: 34px; top: 22px; right: 24px; border-radius: 50%; background: #ffdda0; box-shadow: -257px 191px 0 -9px #b9e8e3, -190px -12px 0 -10px #b9e8e3; }
.mascot { position: relative; z-index: 1; width: 266px; height: 302px; filter: drop-shadow(0 16px 10px #40a4a32f); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.face-align-copy h2 { font-size: 45px; }
.face-preview-card { position: absolute; right: 38px; top: 6px; width: 304px; height: 311px; z-index: 2; padding: 12px; border-radius: 24px; background: white; box-shadow: 0 9px 28px #2b777522; }
.face-preview-heading { height: 31px; display: flex; align-items: center; gap: 6px; color: #245a61; }
.face-preview-heading strong { font-size: 14px; white-space: nowrap; }
.face-preview-heading small { margin-left: auto; color: #698a8a; font-size: 10px; font-weight: 800; white-space: nowrap; }
.face-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #25b89a; box-shadow: 0 0 0 4px #def8ee; }
.face-preview-window { position: relative; height: 188px; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg,#6aa8b7,#306779 65%,#224d5d); }
.face-preview-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#123e4b4d,transparent 35%); }
.face-demo-person { position: absolute; inset: 0; transition: transform .3s ease, opacity .3s ease; }
.face-demo-head { position: absolute; left: 95px; top: 29px; width: 88px; height: 105px; border-radius: 45% 45% 47% 47%; background: #f1c8a5; box-shadow: inset 0 19px 0 #443d4d; }
.face-demo-head::after { content: "•  •"; position: absolute; top: 42px; left: 27px; color: #51474a; font-size: 19px; letter-spacing: 13px; white-space: nowrap; }
.face-demo-body { position: absolute; left: 51px; top: 132px; width: 176px; height: 105px; border-radius: 90px 90px 0 0; background: #c5e5e7; }
.state-outside .face-demo-person { transform: translateX(125px); opacity: .7; }
.state-multi .face-demo-person { transform: translateX(-48px) scale(.8); }
.state-multi .face-demo-person::after { content: ""; position: absolute; left: 204px; top: 54px; width: 54px; height: 65px; border-radius: 50%; background: #f3d3ae; box-shadow: 0 50px 0 15px #f8d495; }
.face-live-feed { display: none; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-preview-card.streaming .face-live-feed { display: block; }
.face-preview-card.streaming .face-demo-person { display: none; }
.face-guide-oval { position: absolute; z-index: 2; left: 79px; top: 12px; width: 122px; height: 158px; border: 2px dashed #fffd; border-radius: 50%; box-shadow: 0 0 0 999px #12384224; pointer-events: none; }
.state-found .face-guide-oval, .state-known .face-guide-oval, .state-unknown .face-guide-oval { border-color: #76f4c3; box-shadow: 0 0 0 999px #12384218, 0 0 0 4px #76f4c333; }
.face-preview-corner { position: absolute; z-index: 2; width: 16px; height: 16px; border-color: #fff8; border-style: solid; }
.face-preview-corner.top-left { left: 10px; top: 10px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.face-preview-corner.top-right { right: 10px; top: 10px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.face-preview-corner.bottom-left { left: 10px; bottom: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.face-preview-corner.bottom-right { right: 10px; bottom: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.face-preview-unavailable { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; color: #54777d; background: #e5f0ee; font-size: 16px; font-weight: 900; }
.face-preview-status { height: 62px; margin-top: 8px; padding: 7px 10px; display: flex; align-items: center; gap: 9px; border-radius: 14px; background: #e8f5f1; }
.face-status-icon { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #cce9e1; color: #168475; font-size: 21px; font-weight: 900; }
.face-preview-status strong { display: block; color: #23656b; font-size: 16px; line-height: 1.2; }
.face-preview-status small { display: block; margin-top: 2px; color: #628783; font-size: 12px; font-weight: 700; }
.state-found .face-preview-status, .state-known .face-preview-status, .state-unknown .face-preview-status { background: #ddf8e9; }
.state-found .face-status-icon, .state-known .face-status-icon, .state-unknown .face-status-icon { color: white; background: #25af89; }
.state-multi .face-preview-status { background: #fff1d4; }
.state-multi .face-status-icon { color: #9b6e20; background: #ffe1a0; }
.state-offline .face-preview-status { background: #edf2f0; }
.state-offline .face-status-icon { color: #657d79; background: #d8e4e0; }
.hero-footer { position: absolute; left: 38px; right: 38px; bottom: 24px; height: 57px; border: 1px solid #def0eb; border-radius: 18px; background: #fff9; display: flex; align-items: center; justify-content: center; gap: 20px; color: #56777e; font-size: 15px; font-weight: 800; box-shadow: 0 5px 20px #315b5310; }
.flow-chip { display: inline-flex; align-items: center; gap: 7px; }
.flow-chip i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e0f7f1; color: #148e87; font-size: 13px; font-style: normal; }
.flow-arrow { color: #a7c7c6; font-size: 19px; }
.welcome-copy h2 { font-size: 47px; }
.identity-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 100px; background: white; color: #498081; font-size: 14px; font-weight: 800; box-shadow: 0 4px 16px #2d777217; }
.identity-badge .badge-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ffdfa7; font-size: 15px; }
.welcome-card { position: absolute; left: 46px; bottom: 24px; width: 708px; height: 57px; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px #367e771a; display: flex; align-items: center; gap: 15px; padding: 0 18px; color: #577d80; font-weight: 800; font-size: 15px; }
.welcome-card i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #dbf6e9; color: #219883; font-style: normal; }
.welcome-card b { color: #aac6c4; }

/* Preparation */
.prep-title { position: absolute; left: 38px; top: 8px; }
.prep-title h2 { margin: 8px 0 0; font-size: 34px; letter-spacing: -.06em; }
.prep-grid { position: absolute; top: 103px; left: 38px; right: 38px; height: 244px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.prep-card { position: relative; overflow: hidden; border-radius: 25px; background: white; box-shadow: 0 8px 28px #367e7718; padding: 22px; }
.prep-card.blue { background: linear-gradient(145deg,#e7f8ff,#fff); }
.prep-card.green { background: linear-gradient(145deg,#e6fbf0,#fff); }
.prep-card .count { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: #198f92; font-size: 16px; font-weight: 900; }
.prep-card h3 { margin: 10px 0 0; font-size: 27px; letter-spacing: -.04em; }
.prep-card p { margin: 2px 0 0; color: #6d9294; font-size: 15px; font-weight: 600; }
.prep-illustration { position: absolute; right: 10px; bottom: -10px; width: 165px; height: 165px; }
.prep-bottom { position: absolute; bottom: 20px; left: 38px; right: 38px; display: flex; align-items: center; justify-content: space-between; }
.prep-bottom p { margin: 0; color: #668489; font-size: 17px; font-weight: 700; }

/* Guide */
.guide-header { height: 73px; padding-top: 17px; align-items: center; }
.guide-header .name-pill { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border-radius: 100px; background: white; box-shadow: 0 3px 10px #3e797414; font-size: 14px; font-weight: 800; }
.guide-header .name-pill span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #ffdcaa; }
.progress { display: flex; align-items: center; gap: 7px; }
.progress-dot { width: 24px; height: 9px; border-radius: 100px; background: #dbece9; }
.progress-dot.done { background: #54c5a0; }
.progress-dot.now { width: 35px; background: #0b9a91; box-shadow: 0 0 0 4px #d4f4ec; }
.step-count { font-size: 13px; font-weight: 800; color: #69888c; }
.step-count strong { color: #068d86; font-size: 19px; }
.guide-grid { position: absolute; left: 24px; right: 24px; top: 9px; bottom: 87px; display: grid; grid-template-columns: 418px 1fr; gap: 14px; }
.demo-card { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(145deg,#dff8f1,#e7f6ff 85%); box-shadow: 0 8px 24px #427b7517; }
.hands-svg { width: 100%; height: 100%; }
.hands-svg .left-hand { transform-origin: 185px 180px; animation: rub-left 1.4s ease-in-out infinite alternate; }
.hands-svg .right-hand { transform-origin: 278px 180px; animation: rub-right 1.4s ease-in-out infinite alternate; }
.hands-svg.mode-outer .left-hand { animation-name: rub-outer-left; }
.hands-svg.mode-outer .right-hand { animation-name: rub-outer-right; }
.hands-svg.mode-arch .left-hand { animation-name: rub-arch-left; }
.hands-svg.mode-thumb .right-hand { animation-name: rub-thumb-right; }
.hands-svg.mode-finger .left-hand { animation-name: rub-finger-left; }
.hands-svg.mode-wrist .right-hand { animation-name: rub-wrist-right; }
@keyframes rub-left { to { transform: translate(15px,-7px) rotate(5deg); } }
@keyframes rub-right { to { transform: translate(-17px,7px) rotate(-5deg); } }
@keyframes rub-outer-left { to { transform: translate(26px,1px) rotate(-8deg); } }
@keyframes rub-outer-right { to { transform: translate(-10px,2px) rotate(8deg); } }
@keyframes rub-arch-left { to { transform: translate(18px,4px) rotate(11deg); } }
@keyframes rub-thumb-right { to { transform: translate(-14px,3px) rotate(-15deg); } }
@keyframes rub-finger-left { to { transform: translate(22px,0) rotate(15deg); } }
@keyframes rub-wrist-right { to { transform: translate(-7px,4px) rotate(18deg); } }
.camera-card { display: flex; flex-direction: column; min-width: 0; border-radius: 24px; padding: 12px; background: white; box-shadow: 0 8px 24px #427b7517; }
.camera-view { height: 196px; flex: none; border-radius: 16px; position: relative; overflow: hidden; background: #243b3c; }
.camera-feed { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-frame { position: absolute; inset: 9px; border: 1.5px solid #ffffffb5; border-radius: 11px; pointer-events: none; box-shadow: 0 0 0 999px #09252310; }
.camera-view.missing .camera-feed { opacity: .28; filter: grayscale(.6); }
.camera-view.offline .camera-feed { display: none; }
.camera-view.offline { background: #e5eeea; }
.camera-view.offline .camera-frame { border-color: #a6c3bc; box-shadow: none; }
.camera-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 9px 13px; border-radius: 100px; white-space: nowrap; background: #143c43d9; color: white; font-size: 15px; font-weight: 900; }
.camera-view.offline .camera-overlay { background: white; color: #63827f; }
.recognition-result { min-height: 84px; flex: 1; margin-top: 10px; padding: 10px 11px; border-radius: 15px; background: #e8f5f4; color: #2b7776; display: flex; align-items: center; gap: 10px; }
.result-icon { width: 35px; height: 35px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #cce8e4; color: #087f80; font-size: 21px; font-weight: 900; }
.result-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result-copy strong { font-size: 20px; line-height: 1.2; white-space: nowrap; }
.result-copy small { font-size: 16px; line-height: 1.25; font-weight: 800; color: #608787; }
.recognition-result.matched { background: #dff8e9; color: #14836d; }
.recognition-result.matched .result-icon { background: #26b78c; color: white; }
.recognition-result.other, .recognition-result.unclear { background: #fff2d9; color: #8a671f; }
.recognition-result.other .result-icon, .recognition-result.unclear .result-icon { background: #f6d997; color: #8a671f; }
.recognition-result.other .result-copy small, .recognition-result.unclear .result-copy small { color: #9b814c; }
.recognition-result.missing, .recognition-result.offline { background: #edf2f0; color: #617a77; }
.recognition-result.missing .result-icon, .recognition-result.offline .result-icon { background: #d6e2df; color: #67817b; }
.guide-footer { position: absolute; left: 24px; right: 24px; bottom: 18px; height: 54px; display: flex; align-items: center; gap: 12px; }
.instruction { flex: 1; height: 54px; padding: 0 19px; border-radius: 18px; display: flex; align-items: center; gap: 14px; color: #1b5d60; background: white; box-shadow: 0 5px 16px #367e7714; font-size: 23px; font-weight: 900; letter-spacing: -.035em; }
.instruction .instruction-index { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: white; background: #19a39a; font-size: 18px; line-height: 1; }
.instruction .instruction-copy { height: 34px; display: flex; align-items: center; line-height: 1; }
.auto-next { width: 174px; height: 54px; flex: none; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border-radius: 17px; background: #e2f8ed; color: #188575; font-size: 18px; font-weight: 900; white-space: nowrap; }
.auto-next-track { display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 20px; background: #bee9d8; }
.auto-next-track i { display: block; width: 100%; height: 100%; border-radius: 20px; background: #20ad91; animation: countdown-shrink var(--step-duration, 15000ms) linear forwards; }
@keyframes countdown-shrink { to { width: 0; } }
#screen[data-frozen="true"] .auto-next-track i, #screen[data-scene="paused"] .auto-next-track i { animation-play-state: paused; }
.pause-overlay { position: absolute; inset: 0; z-index: 7; background: #184c54a9; display: grid; place-items: center; backdrop-filter: blur(4px); }
.pause-dialog { width: 430px; padding: 32px; text-align: center; border-radius: 30px; background: #fff; box-shadow: 0 22px 55px #123e4755; }
.pause-symbol { width: 75px; height: 75px; margin: 0 auto 14px; border-radius: 25px; display: grid; place-items: center; color: #0c9187; background: #ddf6ed; font-size: 37px; }
.pause-dialog h2 { margin: 0 0 7px; font-size: 29px; }
.pause-dialog p { margin: 0 0 23px; color: #71898c; font-size: 17px; }
.return-wait { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 100px; background: #e7f8ef; color: #1d8b79; font-size: 15px; font-weight: 900; }
.return-wait i { width: 7px; height: 7px; border-radius: 50%; background: #28b599; animation: dot-wave 1.2s infinite; }
.return-wait i:nth-child(2) { animation-delay: .2s; }
.return-wait i:nth-child(3) { animation-delay: .4s; margin-right: 5px; }
@keyframes dot-wave { 50% { transform: translateY(-4px); opacity: .5; } }

/* Finish, done and exception */
.finish-title { position: absolute; left: 40px; top: 8px; }
.finish-title h2 { margin: 8px 0 0; font-size: 37px; letter-spacing: -.06em; }
.finish-grid { position: absolute; top: 109px; left: 39px; right: 39px; height: 226px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.finish-card { position: relative; overflow: hidden; padding: 22px 23px; border-radius: 25px; background: #e8f7ff; }
.finish-card:last-child { background: #fff2dd; }
.finish-card b { display: block; font-size: 29px; }
.finish-card span { color: #5e8287; font-size: 16px; font-weight: 700; }
.finish-card svg { position: absolute; width: 150px; height: 150px; right: 12px; bottom: -10px; }
.finish-bottom { position: absolute; left: 41px; right: 41px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; color: #67858b; font-size: 15px; font-weight: 700; }
.done-content .hero-copy { top: 20px; }
.done-content .hero-copy h2 { font-size: 43px; }
.done-content .hero-side { top: 18px; }
.done-stamp { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 100px; color: #23927e; background: #e4f9ea; font-size: 14px; font-weight: 900; }
.multi-people { position: absolute; right: 53px; top: 54px; width: 290px; height: 220px; border-radius: 50%; background: #e3f6f0; }
.person { position: absolute; width: 112px; height: 150px; top: 50px; border-radius: 55px 55px 35px 35px; background: #7bcfd0; }
.person::before { content: ""; position: absolute; width: 90px; height: 90px; left: 10px; top: -48px; border-radius: 50%; background: #ffd1ab; box-shadow: inset 0 18px 0 #554f58; }
.person::after { content: "••"; position: absolute; top: -25px; left: 42px; letter-spacing: 12px; color: #243c42; font-size: 21px; }
.person.one { left: 38px; transform: rotate(-9deg); }
.person.two { right: 32px; transform: rotate(9deg); background: #ffc67c; }
.fault-card { position: absolute; left: 43px; right: 43px; top: 93px; bottom: 50px; padding: 40px 45px; border-radius: 30px; background: #fff; display: flex; align-items: center; gap: 25px; box-shadow: 0 14px 38px #376e6c1a; }
.fault-icon { flex: none; width: 165px; height: 165px; border-radius: 50%; display: grid; place-items: center; background: #fff0d4; color: #e3a539; font-size: 84px; }
.fault-copy h2 { margin: 0 0 10px; font-size: 32px; }
.fault-copy p { margin: 0 0 24px; color: #6d8488; font-size: 17px; line-height: 1.7; }
.fault-wait { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 100px; background: #fff5df; color: #a27725; font-size: 14px; font-weight: 900; }
.fault-wait i { width: 8px; height: 8px; border-radius: 50%; background: #e8aa43; }

/* Demonstration controls */
.controls { width: min(1100px, 100%); margin: 0 auto; border: 1px solid #d6eae5; border-radius: 25px; padding: 23px 26px 20px; background: #ffffffc7; box-shadow: 0 15px 40px #6796891b; }
.controls-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.controls h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.04em; }
.controls-head p { margin: 0 0 3px; color: #789195; font-size: 12px; }
.scenario-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scenario-button { padding: 8px 13px; border: 1px solid #d8ebe7; border-radius: 12px; color: #4e7175; background: #fff; font-size: 13px; font-weight: 800; transition: all .15s; }
.scenario-button:hover { border-color: #95d5c9; transform: translateY(-1px); }
.scenario-button.active { border-color: #0c9b8f; color: #fff; background: #0b948a; box-shadow: 0 4px 11px #0b948a33; }
.simulation-controls { margin-top: 19px; padding: 17px 18px; border: 1px solid #d8ebe7; border-radius: 17px; background: #f4fbf8; }
.simulation-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.simulation-heading .control-label { margin: 0; }
.simulation-heading > span:last-child { color: #67948f; font-size: 11px; font-weight: 800; }
.simulation-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.simulation-buttons button { height: 33px; padding: 0 11px; border: 1px solid #cbe5dd; border-radius: 10px; background: white; color: #397675; font-size: 12px; font-weight: 800; }
.simulation-buttons button:hover { color: #087f78; border-color: #75cdb9; background: #e9faf1; }
.face-controls { margin-top: 10px; padding: 17px 18px; border: 1px solid #d8ebe7; border-radius: 17px; background: #f4fbf8; }
.face-controls-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.face-camera-toggle { height: 33px; padding: 0 12px; border: 1px solid #0b948a; border-radius: 10px; background: #0b948a; color: white; font-size: 12px; font-weight: 800; }
.face-camera-hint { margin: 10px 0 0; color: #6e8d8d; font-size: 11px; line-height: 1.5; }
.recognition-controls { margin-top: 10px; padding: 17px 18px; border: 1px solid #d8ebe7; border-radius: 17px; background: #f4fbf8; }
.recognition-controls-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.recognition-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.recognition-button { height: 33px; padding: 0 11px; border: 1px solid #cbe5dd; border-radius: 10px; background: white; color: #397675; font-size: 12px; font-weight: 800; }
.recognition-button:hover { color: #087f78; border-color: #75cdb9; background: #e9faf1; }
.recognition-button.active { color: #fff; border-color: #0b948a; background: #0b948a; }
.recognized-field { display: inline-flex; align-items: center; gap: 7px; color: #66868b; font-size: 12px; font-weight: 800; white-space: nowrap; }
.recognized-field select { height: 33px; max-width: 145px; padding: 0 7px; border: 1px solid #cbe5dd; border-radius: 10px; background: white; color: #397675; font: inherit; }
.control-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; margin-top: 20px; border-top: 1px solid #e3f0ec; }
.control-label { display: block; margin: 2px 0 9px; color: #66868b; font-size: 12px; font-weight: 800; }
.step-buttons { display: flex; gap: 6px; }
.step-button { width: 36px; height: 36px; border: 1px solid #d3e9e3; border-radius: 11px; background: #f4fbf9; color: #4b7779; font-size: 14px; font-weight: 900; }
.step-button.active { color: white; border-color: #139a90; background: #139a90; }
.control-actions { display: flex; align-items: end; gap: 8px; }
.autoplay-field { height: 36px; display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: #557b7b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.autoplay-field input { width: 16px; height: 16px; margin: 0; accent-color: #0b9c8e; }
.name-field { display: flex; flex-direction: column; gap: 5px; color: #66868b; font-size: 12px; font-weight: 800; }
.name-field input { width: 112px; height: 36px; padding: 0 10px; border: 1px solid #d2e7e2; border-radius: 10px; outline-color: #16a89a; background: white; color: #264f55; font-size: 14px; font-weight: 700; }
.restart-button { height: 36px; border: 0; border-radius: 10px; padding: 0 13px; background: #254e56; color: white; font-size: 12px; font-weight: 800; }
.prototype-note { margin: 19px 0 0; color: #829899; font-size: 11px; line-height: 1.7; }
@media (max-width: 700px) { .page-shell { padding: 22px 10px 45px; } .workspace-head { display: block; padding: 0 8px; } .spec-pill { display: inline-block; margin-top: 13px; } .controls { padding: 20px 16px; border-radius: 17px; } .controls-head { display: block; } .controls-head p { margin-top: 7px; line-height: 1.6; } .simulation-heading { align-items: flex-start; flex-direction: column; gap: 4px; } .control-bottom { display: block; } .control-actions { margin-top: 16px; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
