*{box-sizing:border-box}html,body{margin:0;background:#edf2fa;color:#22314a;font-family:system-ui,sans-serif;font-size:13px}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #8397ff;outline-offset:3px}[hidden]{display:none!important}
.tour-header{height:60px;background:#1b2940;color:#eff3ff;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:12px}.tour-brand{display:flex;align-items:center;gap:8px}.tour-brand strong{font-size:23px;letter-spacing:-1px}.tour-brand>span{border-left:1px solid #ffffff28;margin-left:12px;padding-left:18px;color:#b7c6df;font-size:11px}.tour-header button{background:#ffffff09;color:#d9e3fa;border:1px solid #ffffff28;padding:8px 12px;border-radius:7px;font-size:11px}
.tour-toolbar{height:44px;display:flex;align-items:center;gap:22px;padding:0 24px;background:#24334b;color:#a9b9d3;font-size:11px}.tour-toolbar strong{background:#4d5cdb;color:#fff;padding:8px 18px;border-radius:6px}.tour-toolbar-note{margin-left:auto;font-size:10px}
.tour-workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr);height:520px}.tour-scene{position:relative;min-width:0;background:radial-gradient(ellipse at 70% 25%,#3c4c70,#1d2c45 75%);overflow:hidden}.tour-scene iframe{display:block;width:100%;height:100%;border:0;background:transparent}.scene-caption{position:absolute;bottom:16px;left:0;right:0;text-align:center;pointer-events:none;color:#b7c6e1;font-size:10px}.tour-loading{position:absolute;inset:0;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;background:#23324a;color:#d6def2;text-align:center;padding:24px}.tour-loading strong{font-size:12px;font-weight:500}.loading-mark{font-size:42px;color:#aebaff;animation:tour-pulse 1.6s ease-in-out infinite}.tour-loading button{background:#4d5cdb;border:0;color:white;padding:10px 18px;border-radius:8px}
.tour-editor{padding:26px;background:linear-gradient(135deg,#f5f8ff,#e5ecfa);border-left:1px solid #bcc9e0;min-width:0}.library-heading{display:flex;align-items:center;gap:10px}.tour-step{display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid #c4cff0;border-radius:7px;color:#586bc3;background:#e6ebff;font-size:11px;flex-shrink:0}h2{font-size:15px;margin:0;font-weight:650}.library-heading p{font-size:10px;color:#76849b;margin:5px 0 0}.tour-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:18px}.material{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 4px 9px;border:1px solid #c7d3e7;border-radius:10px;background:#ffffffb0;color:#2c3d5d;font-size:11px;position:relative;transition:transform .2s,border-color .2s,background .2s}.material[draggable="true"]{cursor:grab}.material[draggable="true"]:active{cursor:grabbing}.material:not(:disabled):hover{transform:translateY(-3px);border-color:#8799df;background:#fff}.material small{font-size:9px;color:#7887a1}.material[data-added="true"]{border-color:#9fb4d5;background:#eef3ff}.swatch{display:block;width:44px;height:44px;border-radius:50%;background:linear-gradient(130deg,#ffffff0a 20%,#ffffffb8 43%,#ffffff00 60%),var(--finish);box-shadow:inset 0 0 0 1px #ffffff22,0 4px 8px #17243b20}.tour-guide{height:63px;display:flex;align-items:center;justify-content:center;gap:10px;color:#6274c8;font-size:10px}.tour-guide svg{width:35px;height:36px;transform:rotate(-45deg);animation:tour-arrow 1.8s ease-in-out infinite}.tour-guide.complete svg{animation:none}.tour-group{border:1.5px dashed #9caee0;border-radius:12px;padding:15px;background:#ffffff80;min-height:137px;transition:background .2s,border-color .2s,box-shadow .2s}.tour-group.over{background:#dfe7ff;border-color:#5265ce;box-shadow:0 0 0 4px #697eea18}.group-heading,.group-heading>div{display:flex;align-items:center;gap:8px}.group-heading{justify-content:space-between}.group-heading h2{font-size:13px}.group-heading>span{font-size:9px;color:#8390a8}.tour-empty{display:flex;align-items:center;justify-content:center;gap:9px;margin:27px 0 14px;font-size:10px;color:#7f8dab}.tour-empty>span{font-size:23px;color:#8497d5}.tour-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tour-choices:not(:empty){margin-top:12px}.tour-choices .material{padding:8px 2px;font-size:10px;gap:6px}.tour-choices .swatch{width:32px;height:32px}.material[aria-pressed="true"]{background:#e6eaff;border-color:#6576da;box-shadow:0 0 0 1px #6576da}.material[aria-pressed="true"]:after{content:'✓';position:absolute;top:3px;right:5px;font-size:10px;color:#5368c4}.tour-status{font-size:11px;line-height:1.55;color:#52678c;margin:15px 0 0;min-height:34px}.tour-footnote{font-size:9px;color:#8a96aa;margin:7px 0 0}
@keyframes tour-arrow{50%{translate:0 5px}}@keyframes tour-pulse{50%{opacity:.4}}
@media(max-width:680px){.tour-header{padding:0 14px;height:54px}.tour-brand>span{font-size:9px;padding-left:10px;margin-left:4px}.tour-brand strong{font-size:20px}.tour-brand img{width:25px;height:25px}.tour-header button{font-size:10px;padding:7px}.tour-toolbar{padding:0 14px;gap:15px;height:40px}.tour-toolbar-note{display:none}.tour-workspace{height:auto;grid-template-columns:1fr}.tour-scene{height:300px}.tour-editor{padding:22px;border-left:0;border-top:1px solid #c1cce1}.tour-library{margin-top:14px}.tour-guide{height:56px}.tour-footnote{margin-bottom:0}.tour-group{min-height:135px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.tour-workspace{position:relative}
.tour-drop-arrow{position:absolute;z-index:5;right:0;top:0;width:41%;height:100%;pointer-events:none;overflow:visible;opacity:.24;transition:opacity .35s}
.tour-drop-arrow path{fill:none;stroke:#000;stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.tour-drop-arrow.done{opacity:0}
.tour-toolbar button{border:1px solid #ffffff33;padding:7px 14px;border-radius:7px;font:600 11px/1.4 system-ui,sans-serif;color:#fff;background:#4e60df;white-space:nowrap}
.tour-preview-button{opacity:0;visibility:hidden;transform:translateY(6px);pointer-events:none;transition:opacity .45s,transform .45s,visibility .45s}
.tour-preview-button.available{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.tour-toolbar #back{margin-left:auto;background:#ffffff12}
.preview-active .tour-preview-button{display:none}
.preview-active .library-heading,.preview-active .tour-library,.preview-active .tour-guide,.preview-active .tour-footnote,.preview-active .group-heading .tour-step,.preview-active #count{display:none}
.tour-preview-intro{margin:12px 0 30px}.tour-preview-intro>span{color:#6879b4;font-size:9px;font-weight:650;letter-spacing:.13em}.tour-preview-intro h2{font-size:25px;letter-spacing:-.035em;margin:13px 0 10px}.tour-preview-intro p{font-size:12px;color:#72819c}
.preview-active .tour-group{background:#fff;border:1px solid #c5d1e8;box-shadow:0 12px 24px -20px #17243b55;padding:20px}
.preview-active .tour-choices{margin-top:18px}.preview-active .tour-choices .material{padding:14px 4px;gap:12px}.preview-active .tour-choices .swatch{width:42px;height:42px}
.tour-approval{display:flex;align-items:center;gap:12px;background:#e1f5e9;border:1px solid #9bceae;border-radius:12px;padding:15px;margin-top:22px;color:#21633c;animation:approval-enter .45s ease both}
.tour-approval>span{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#299159;color:#fff;font-size:20px}.tour-approval p{margin:0;font-size:12px;line-height:1.6}.tour-approval strong{display:block;font-weight:650}
@keyframes approval-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:680px){.tour-brand>span{max-width:115px;line-height:1.4}.tour-toolbar{gap:9px}.tour-toolbar strong{padding:8px 10px}.tour-toolbar #preview{margin-left:auto}.tour-drop-arrow{top:300px;height:460px;width:100%}.preview-active .tour-editor{padding-top:20px}.tour-preview-intro{margin:0 0 20px}.tour-approval{margin-top:16px;padding:12px}.tour-approval p{font-size:11px}}


/* Guided overlay: preserve Studio colors and dim only beneath the instructions. */
.tour{position:relative;isolation:isolate}
.tour:after{content:'';position:absolute;inset:0;z-index:4;background:rgba(0,0,0,.48);pointer-events:none;opacity:1;transition:opacity .35s}
body.guide-complete .tour:after{opacity:0}
.tour-editor-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;font-size:11px;text-align:center}
.tour-editor-tabs>*{padding:8px;border:1px solid #bdcae2;border-radius:6px;color:#536984;font-weight:500;background:#edf2fb}
.tour-editor-tabs>strong{background:linear-gradient(#575ee8,#3841bf);border-color:#7880ed;color:#fff}
.tour-drop-arrow{right:auto;left:0;top:0;width:100%;height:100%;opacity:1;color:#fff;filter:drop-shadow(0 2px 4px #0008);animation:none;transition:opacity .35s}
.tour-drop-arrow path{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.tour-drop-arrow.done{opacity:0}
.tour-guide{position:relative;z-index:6;flex-direction:column;gap:5px;color:#e0e7f5;font-size:9px}
.drag-cue{display:flex;align-items:center;gap:8px;color:white;animation:drag-cue-motion 1.8s ease-in-out infinite}
.drag-cue svg{width:24px;height:24px;transform:none;animation:none;overflow:visible}
.drag-cue svg path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.drag-cue b{font-size:13px;font-weight:650}
.tour-guide.complete{color:#6274c8}.tour-guide.complete .drag-cue{display:none}
.preview-active .tour-editor-tabs{display:none}
@keyframes drag-cue-motion{0%,100%{transform:translateY(-3px);opacity:.8}50%{transform:translateY(3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.drag-cue{animation:none!important}}

.tour-drop-arrow:not(.done){animation:straight-arrow-glow 1.8s ease-in-out infinite}
@keyframes straight-arrow-glow{0%,100%{opacity:.65}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.tour-drop-arrow{animation:none!important}}

.tour{min-height:100vh}
@media(min-width:681px){.tour-workspace{height:calc(100vh - 104px)}}

/* Spotlight the active material and destination above the dimming layer. */
.material.guided-material{position:relative;z-index:6;background:#fff;border-color:#7d8fe4;box-shadow:0 0 0 3px #bbc7ff80,0 7px 22px #0003;opacity:1}
.tour-group{position:relative;z-index:6;background:#f1f5ff;border-color:#9baee2;box-shadow:0 0 0 2px #b5c4f640}
.preview-active .tour-group{z-index:auto}
.tour-drop-arrow{z-index:7}
.tour-toolbar #preview{position:relative;z-index:8;font-size:13px;padding:10px 18px;min-height:38px;border:1px solid #b7c0ff;background:linear-gradient(135deg,#6974fa,#4654d6);box-shadow:0 0 0 3px #9eacff35;color:white}
.tour-toolbar #preview.available{animation:preview-callout 1.7s ease-in-out infinite}
.preview-ready .tour-toolbar-note{color:#fff;position:relative;z-index:6}
@keyframes preview-callout{0%,100%{box-shadow:0 0 0 3px #a8b5ff40,0 3px 12px #0003;transform:scale(1)}50%{box-shadow:0 0 0 7px #a8b5ff25,0 4px 22px #8294ff80;transform:scale(1.035)}}
@media(max-width:680px){.preview-ready .tour-toolbar>span:first-child,.preview-ready .tour-toolbar>strong{display:none}.tour-toolbar #preview{font-size:12px;padding:9px 14px}.preview-ready .tour-toolbar #preview{margin:auto;min-width:240px}}
@media(prefers-reduced-motion:reduce){.tour-toolbar #preview.available{animation:none!important;transform:none}}

.preview-ready .tour-guide{color:#fff}
.tour-toolbar #preview:not(.available){display:none}
.tour-toolbar #preview.available{animation:preview-arrive .45s ease both,preview-callout 1.7s .45s ease-in-out infinite}
@keyframes preview-arrive{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.tour-toolbar #preview.available{animation:none!important}}

.tour-toolbar #preview{margin-left:auto}
.tour-discover-studio{display:inline-flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;padding:13px 22px;min-height:46px;border:1px solid #7d89ee;border-radius:11px;background:linear-gradient(135deg,#6068ef,#3d4acb);box-shadow:inset 0 1px #ffffff28,0 5px 14px #3f51b52b;color:#fff;font:600 13px/1.4 system-ui,sans-serif;text-decoration:none;transition:transform .2s,box-shadow .2s}
.tour-discover-studio:hover{transform:translateY(-2px);box-shadow:0 8px 18px #3f51b544}
.tour-discover-studio:focus-visible{outline:3px solid #8c9cf4;outline-offset:3px}
.preview-active .tour-preview-intro{margin-bottom:18px}
.preview-active .tour-approval{margin-top:14px}
.preview-active .tour-status{min-height:18px;margin-top:10px}
@media(max-width:680px){.tour-discover-studio{width:100%;margin-top:12px}}
@media(prefers-reduced-motion:reduce){.tour-discover-studio{transition:none}.tour-discover-studio:hover{transform:none}}

/* Decorative Studio tool rail; existing demo interactions stay in the workspace. */
.tour-workspace{grid-template-columns:78px minmax(0,1fr) minmax(340px,420px)}
.tour-tools{background:#1b2940;border-right:1px solid #40516c;padding:8px 4px;display:flex;flex-direction:column;justify-content:space-between;gap:2px;overflow:hidden;pointer-events:none;user-select:none}
.tour-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;border:1px solid transparent;border-radius:6px;color:#b9c9e4;font-size:9px;line-height:1.2;text-align:center}
.tour-tool svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.tour-tool.active{background:#344173;border-color:#6574b4;color:#e1e7ff}
@media(max-width:680px){.tour-workspace{grid-template-columns:48px minmax(0,1fr)}.tour-tools{grid-column:1;grid-row:1 / 3;justify-content:flex-start;gap:14px;padding:10px 2px}.tour-tool{font-size:7px;padding:5px 0}.tour-tool svg{width:19px;height:19px}.tour-scene,.tour-editor{grid-column:2}.tour-editor{padding:16px 12px}.tour-header{padding-inline:10px}.scene-caption{padding-inline:8px}}

/* Keep the tour contained within its frame at every breakpoint. */
html,body{height:100%;overflow:hidden}
.tour{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.tour-header,.tour-toolbar{flex-shrink:0}
.tour-workspace{flex:1;min-height:0;height:auto}
.tour-tools{padding:5px 3px;gap:0}
.tour-tool{padding:3px 1px;font-size:8px;gap:3px;min-height:0;flex:1}
.tour-tool svg{width:18px;height:18px}
@media(min-width:681px){.tour-workspace{grid-template-columns:66px minmax(0,1fr) minmax(340px,420px)}.tour-editor{padding:18px 24px}.tour-preview-intro{margin-top:4px}.preview-active .tour-preview-intro{margin-bottom:12px}.tour-approval{padding:12px}.tour-discover-studio{margin-top:10px;padding-block:10px;min-height:42px}}
@media(max-width:680px){.tour-workspace{grid-template-columns:42px minmax(0,1fr);grid-template-rows:280px minmax(0,1fr)}.tour-scene{height:280px}.tour-tools{gap:8px;justify-content:flex-start}.tour-tool{flex:0 0 auto;font-size:6.5px;padding:5px 0}.tour-tool svg{width:17px;height:17px}.tour-editor{padding:12px 10px}.tour-preview-intro h2{font-size:22px}.preview-active .tour-group{padding:14px}.tour-approval{padding:10px}}

@media(min-width:681px){.tour-workspace{grid-template-rows:minmax(0,1fr)}.tour-editor{min-height:0;padding-block:14px}.tour-guide{height:55px}.tour-status{margin-top:10px;min-height:28px}}
