/* Consistent restrained spring motion, with explicit reduced-motion alternatives. */
dialog[open]:not(.compare-dialog):not(.record-dialog){animation:islandDialogIn .4s cubic-bezier(.16,.76,.22,1) both;transform-origin:50% 34%;will-change:transform,opacity}
dialog[open]::backdrop{animation:islandBackdropIn .25s ease both}
@keyframes islandDialogIn{0%{opacity:0;transform:translateY(-12px) scale(.9,.82);border-radius:46px}65%{opacity:1;transform:translateY(2px) scale(1.008,1.015);border-radius:27px}100%{opacity:1;transform:none;border-radius:24px}}
@keyframes islandBackdropIn{from{opacity:0}to{opacity:1}}
.account-menu.is-liquid-open{animation:islandMenuIn .36s cubic-bezier(.18,.8,.2,1) both;transform-origin:calc(100% - 38px) 0}
@keyframes islandMenuIn{0%{opacity:0;transform:translateY(-8px) scale(.86,.76);border-radius:30px}67%{opacity:1;transform:translateY(1px) scale(1.008,1.018)}100%{opacity:1;transform:none}}
.header-actions #profileButton,.header-actions #openBilling{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;line-height:1;padding-top:0;padding-bottom:0;vertical-align:middle}
.header-actions #profileButton>span,.header-actions #openBilling>span{display:block;line-height:1.2;margin:0;white-space:nowrap}
.header-actions #profileButton>svg,.header-actions #openBilling>svg{display:block;flex-shrink:0;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.editor-save-group>small{white-space:nowrap;line-height:1.5;flex-shrink:0;max-width:none}
.editor-save-group{align-items:center;gap:14px}
.collection-summary{align-self:center;align-items:center;justify-content:center}
.collection-summary>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:125px;padding:17px 20px;text-align:center}
.collection-summary strong{font-size:36px;line-height:1;font-variant-numeric:tabular-nums}
.collection-summary>div>span{font-size:12px;line-height:1.5;margin:0;white-space:nowrap}
.save-template>svg{stroke-width:1.5;stroke-linejoin:round}.save-template.saved>svg{fill:currentColor;stroke-width:1.25}
.root-category[data-root="建筑设计"]>svg{width:21px;height:21px;stroke-width:1.5}
#immersiveHero .hero-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:32px;min-height:66px;padding:0 18px 0 25px;line-height:1.25;font-size:20px;position:relative;overflow:hidden;isolation:isolate}
#immersiveHero .hero-primary>svg{flex-shrink:0;display:block;margin:0}
#immersiveHero .hero-primary:before{display:none}
#immersiveHero .hero-primary:after{content:'';position:absolute;top:-50%;bottom:-50%;left:-100%;width:50%;background:linear-gradient(90deg,transparent,#fff8,transparent);transform:skewX(-22deg);pointer-events:none;animation:heroButtonSheen 4.8s ease-in-out infinite;mix-blend-mode:soft-light}
@keyframes heroButtonSheen{0%,10%{left:-100%;opacity:0}17%{opacity:1}48%{left:175%;opacity:.8}55%,100%{left:175%;opacity:0}}
.template-search>i{animation:searchIconGlow 3.8s ease-in-out infinite;flex-shrink:0}
@keyframes searchIconGlow{0%,100%{opacity:.65;filter:drop-shadow(0 0 0 #91b8ff00)}50%{opacity:1;filter:drop-shadow(0 0 5px #91b8ffd9)}}
#reuseReference:not([hidden]){animation:reuseHintPulse 3.8s ease-in-out 3}
@keyframes reuseHintPulse{0%,100%{box-shadow:inset 0 0 0 1px #98b2e540}50%{box-shadow:inset 0 0 0 1px #b7d2ffbd,0 0 16px #90b5ff21}}

.record-filter-island{position:relative;display:block!important;font-size:13px;z-index:30}
.liquid-native-select{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden;white-space:nowrap;pointer-events:none;opacity:0;padding:0!important;border:0!important}
.record-filter-trigger{display:flex;align-items:center;justify-content:center;gap:9px;min-width:140px;height:43px;padding:0 13px;border-radius:13px;border:1px solid #8c9fc349;background:linear-gradient(140deg,#9ab1e017,#b8a0cc0a);box-shadow:inset 0 1px 0 #fff1;color:var(--secondary);font-size:13px;line-height:1.3;white-space:nowrap;transition:background .22s,border-color .22s}
.record-filter-trigger>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.record-filter-trigger>svg:last-child{width:13px;height:13px;margin-left:3px;transition:transform .3s}.is-open .record-filter-trigger>svg:last-child{transform:rotate(180deg)}
.is-open .record-filter-trigger{border-color:#9bb4e3;background:#a8bce226;color:var(--accent-heading)}
.record-filter-options{position:absolute;right:0;top:calc(100% + 9px);width:187px;padding:7px;border:1px solid #9aafd04f;border-radius:18px;background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(25px) saturate(125%);box-shadow:0 14px 40px #08132938,inset 0 1px 0 #fff2;opacity:0;transform:translateY(-7px) scale(.92,.86);transform-origin:75% -8px;transition:opacity .17s,transform .18s}
.record-filter-options:before{content:'';position:absolute;top:-11px;left:0;right:0;height:13px}
.is-open .record-filter-options{opacity:1;transform:none;animation:islandMenuIn .36s cubic-bezier(.18,.8,.2,1) both}
.record-filter-options>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;border-radius:11px;padding:10px 12px;color:var(--secondary);font-size:13px;text-align:left;gap:12px}
.record-filter-options>button>i{width:15px;height:15px;opacity:0}.record-filter-options>button>i>svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none}.record-filter-options>button[aria-selected=true]{color:var(--accent-heading);background:var(--lilac-soft)}.record-filter-options>button[aria-selected=true]>i{opacity:1}.record-filter-options>button:hover{background:var(--soft)}
.history-selection-bar:not([hidden]){animation:selectionIslandIn .38s cubic-bezier(.17,.8,.2,1) both;transform-origin:50% 50%;border-radius:16px;box-shadow:0 10px 30px #0b183118,inset 0 1px 0 #ffffff14}
@keyframes selectionIslandIn{from{opacity:0;transform:translateY(13px) scale(.88,.7);border-radius:35px}65%{opacity:1;transform:translateY(-1px) scale(1.005,1.025)}to{opacity:1;transform:none}}

.template-search.has-search-history{position:relative;overflow:visible;z-index:31}
.search-history-panel{position:absolute;right:0;top:calc(100% + 11px);width:max(100%,310px);max-width:calc(100vw - 36px);padding:12px;border:1px solid #8ca5d14d;border-radius:20px;background:color-mix(in srgb,var(--surface) 97%,transparent);backdrop-filter:blur(25px) saturate(120%);box-shadow:0 18px 50px #09152d33,inset 0 1px 0 #fff2;animation:islandMenuIn .32s cubic-bezier(.18,.8,.2,1) both;transform-origin:80% 0}
.search-history-heading{display:flex;align-items:center;justify-content:space-between;padding:1px 4px 8px;color:var(--muted);font-size:12px;line-height:1.5}
.search-history-heading>button{font-size:12px;padding:6px 8px;color:var(--secondary);min-height:32px}
.search-history-row{display:flex;align-items:center;gap:3px;border-radius:11px}.search-history-row:hover{background:var(--lilac-soft)}
.search-history-row>button:first-child{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:43px;padding:10px;color:var(--secondary);text-align:left;font-size:13px}
.search-history-row>button:first-child>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-history-row svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}
.remove-search-term{display:grid;place-items:center;width:34px;height:36px;color:var(--muted);border-radius:9px}.remove-search-term:hover{color:var(--text);background:var(--soft)}
.search-history-empty{padding:10px 5px 15px;color:var(--muted);font-size:12px;line-height:1.8;white-space:normal}

.editor-leave-dialog,.editor-help-dialog{width:min(490px,calc(100vw - 32px));max-height:calc(100svh - 32px);overflow:auto;padding:31px;border-radius:24px}
.leave-emblem{display:grid;place-items:center;height:52px;width:52px;border:1px solid #a8b9d747;border-radius:17px;background:linear-gradient(135deg,#b4c9f02b,#bba6d31c);color:var(--accent-heading);margin-bottom:21px}
.leave-emblem>svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.4}
.editor-leave-dialog>h2,.editor-help-dialog>h2{font-size:26px;line-height:1.5;color:var(--accent-heading);margin-top:5px;letter-spacing:-.5px}
.editor-leave-dialog>p{font-size:14px;line-height:1.9;margin-top:12px;color:var(--secondary)}
.leave-save-note{padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.9;margin-top:22px}.leave-save-note>strong{font-weight:500;color:var(--secondary)}
.leave-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}.leave-actions>button{min-height:48px;font-size:14px;justify-content:center;padding:11px 12px}.leave-without-saving{display:block;min-height:42px;margin:12px auto -7px;padding:7px 18px;color:var(--muted);font-size:13px}
.editor-help-button{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--secondary);border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 10px;min-height:35px}.editor-help-button>svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}.canvas-toolbar{flex-wrap:wrap}.canvas-toolbar>.editor-help-button{margin-left:6px}
.editor-help-steps{display:flex;flex-direction:column;gap:11px;margin-top:24px}
.editor-help-steps>article{display:flex;align-items:center;gap:15px;padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--soft)}
.help-step-icon{display:grid;place-items:center;width:45px;height:48px;border-radius:12px;background:#a7bde820;color:var(--accent-heading);flex-shrink:0}.help-step-icon svg{height:26px;width:26px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.editor-help-steps article:nth-child(2) .help-step-icon{background:#bda0d71c;color:#c2b2dc}.editor-help-steps article:nth-child(3) .help-step-icon{background:#d3b87b17;color:#d9c49c}
.editor-help-steps small{font-size:11px;font-weight:600;line-height:1.3;color:var(--muted)}.editor-help-steps h3{font-size:16px;line-height:1.5;margin-top:3px;color:var(--text);font-weight:550}.editor-help-steps p{font-size:12px;line-height:1.75;color:var(--muted);margin-top:5px}
.editor-help-dialog>.primary-button{width:100%;justify-content:center;min-height:49px;margin-top:23px;font-size:15px}.editor-help-footnote{font-size:11px;text-align:center;color:var(--muted);margin-top:13px;line-height:1.7}
.guide-visual{display:grid!important;grid-template-columns:1fr auto 1fr auto 1fr;gap:14px;align-items:center;padding:20px!important}
.guide-visual>span{display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;line-height:1.5}.guide-visual>span>svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.guide-visual strong{font-weight:500}.guide-visual>b{font-size:16px;font-weight:400;color:var(--muted)}
.guide-toc>button{transition:background .22s,color .22s,border-color .22s;border-radius:0 10px 10px 0}.guide-toc>button.is-current{color:var(--accent-heading);background:var(--lilac-soft);border-left-color:#9eb6e5}
:root[data-theme=light] .record-filter-trigger{background:#f4f7fe;border-color:#c6d3ea;color:#5a7195}:root[data-theme=light] .is-open .record-filter-trigger{background:#e2eaff;border-color:#a1b7dd}
:root[data-theme=light] .editor-help-steps article:nth-child(2) .help-step-icon{color:#8f77aa}:root[data-theme=light] .editor-help-steps article:nth-child(3) .help-step-icon{color:#a38753}

/* A monochrome brush-line companion; its hit area is separate from contact. */
.contact-mascot{position:absolute;bottom:calc(100% - 5px);right:15px;width:103px;height:118px;z-index:3;border:0;background:none!important;padding:0;pointer-events:auto;color:#e9e9e9;filter:drop-shadow(0 3px 6px #0005);cursor:pointer;transition:right .4s,transform .45s cubic-bezier(.2,.7,.2,1);transform-origin:65% 96%;--pet-paper:#24262be6;--pet-belly:#d1d1d10e;--pet-ink:#dedede}
.contact-mascot>svg{display:block;height:100%;width:100%;overflow:visible;fill:none;stroke:var(--pet-ink);stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.pet-figure{transform-origin:55px 118px;animation:petBreathe 4.8s ease-in-out infinite}.pet-body{transform-origin:55px 115px}
.pet-ground{fill:#0002;stroke:none}.pet-outline,.pet-tail,.pet-ear{fill:var(--pet-paper)}.pet-belly{fill:var(--pet-belly);stroke-width:.6}.pet-fur{stroke-width:.55;opacity:.5}.pet-marks{stroke-width:.45;fill:#6b6a67;opacity:.9}
.pet-nose,.pet-pupil{fill:var(--pet-ink);stroke:none}.pet-eyes{transform-origin:55px 44px;animation:petBlink 6.3s linear infinite}.pet-eyes>ellipse{fill:#f7f7f4;stroke-width:.75}
.pet-ear-left{transform-origin:40px 36px;animation:petEar 9s ease-in-out infinite}.pet-ear-right{transform-origin:72px 37px;animation:petEar 11s 2s ease-in-out infinite reverse}
.pet-whiskers{stroke-width:.65;opacity:.85}.pet-arm-left{transform-origin:27px 72px;animation:petArmRest 7s ease-in-out infinite}.pet-arm-right{transform-origin:83px 72px;animation:petArmRest 9s ease-in-out infinite reverse}
.pet-yawn{opacity:0;fill:var(--pet-paper);animation:petYawn 19s ease-in-out infinite}.pet-smile{animation:petSmile 19s ease-in-out infinite}.pet-scratch,.pet-surprise,.pet-dizzy-marks{opacity:0}
.pet-scratch{stroke-width:1.3}.pet-scratch>g>path{transform-box:fill-box;transform-origin:center}
.pet-tooltip{position:absolute;left:50%;bottom:102%;transform:translate(-50%,5px);border:1px solid #aaa5;border-radius:8px;padding:5px 9px;white-space:nowrap;background:#25262ded;color:#e3e3e3;font-size:10px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.contact-mascot:hover .pet-tooltip,.contact-mascot:focus-visible .pet-tooltip{opacity:1;transform:translate(-50%,0)}
.contact-mascot.is-tickled .pet-scratch{opacity:1}.contact-mascot.is-tickled .pet-arm-right{opacity:0}.contact-mascot.is-tickled .pet-scratch>g>path{animation:petScratch .25s ease-in-out infinite alternate}.contact-mascot.is-tickled .pet-eyes{transform:scaleY(.65);animation:none}.contact-mascot.is-tickled .pet-smile{animation:none;transform:translateY(1px)}
.floating-tools.is-contact-open .contact-mascot{right:6px;transform:translateY(13px) rotate(9deg)}.floating-tools.is-contact-open .pet-arm-right{transform:rotate(-35deg)}.floating-tools.is-contact-open .pet-figure{animation:petLean 4.5s ease-in-out infinite}
.contact-mascot.is-startled .pet-figure{animation:petStartle 1.15s cubic-bezier(.22,.7,.25,1) both}.contact-mascot.is-startled .pet-surprise{opacity:1}.contact-mascot.is-startled .pet-eyes{animation:none;transform:scale(1.12)}.contact-mascot.is-startled .pet-arm-left{animation:petFlail .19s ease-in-out 4 alternate}.contact-mascot.is-startled .pet-arm-right{animation:petFlail .19s ease-in-out 4 alternate-reverse}
.contact-mascot.is-dizzy .pet-figure{animation:petDizzy .24s ease-in-out 5 alternate}.contact-mascot.is-dizzy .pet-dizzy-marks{opacity:1;animation:petDizzy .35s ease-in-out infinite alternate}.contact-mascot.is-dizzy .pet-eyes{animation:none;transform:scaleY(.5)}
.contact-mascot.is-delighted .pet-figure{animation:petDelight .7s ease-in-out 2}.contact-mascot.is-delighted .pet-eyes{animation:none;transform:scaleY(.4)}.contact-mascot.is-delighted .pet-arm-left{animation:petFlail .3s ease-in-out 4 alternate}
.contact-mascot.pet-resting *{animation-play-state:paused!important}
.contact-mascot,:root[data-theme=light] .contact-mascot{--pet-paper:#aeadabed;--pet-belly:#efeee9ed;--pet-ink:#3d3c3b;color:#404040;filter:drop-shadow(0 2px 4px #2222)}
:root[data-theme=light] .pet-tooltip{background:#fffffff2;color:#555;border-color:#bbb9}
@keyframes petBreathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1px) scale(1.014,1.022)}}
@keyframes petBlink{0%,39%,43%,77%,80%,100%{transform:scaleY(1)}41%,79%{transform:scaleY(.12)}}
@keyframes petEar{0%,60%,72%,100%{transform:rotate(0)}64%{transform:rotate(-6deg)}68%{transform:rotate(4deg)}}
@keyframes petArmRest{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}
@keyframes petYawn{0%,72%,86%,100%{opacity:0;transform:scaleY(.25);transform-origin:55px 62px}76%,82%{opacity:1;transform:scaleY(1);transform-origin:55px 62px}}
@keyframes petSmile{0%,72%,86%,100%{opacity:1}76%,82%{opacity:0}}
@keyframes petScratch{from{transform:translate(-1px,-1px) rotate(-6deg)}to{transform:translate(1px,1px) rotate(6deg)}}
@keyframes petLean{0%,100%{transform:rotate(0)}50%{transform:rotate(-2deg)}}
@keyframes petStartle{0%{transform:translateY(0) scale(1.04,.95)}28%{transform:translateY(-28px) rotate(-7deg)}58%{transform:translateY(-13px) rotate(6deg)}80%{transform:translateY(3px) scale(1.07,.94)}100%{transform:none}}
@keyframes petFlail{from{transform:rotate(-23deg)}to{transform:rotate(27deg)}}
@keyframes petDizzy{from{transform:translate(-3px,-4px) rotate(-8deg)}to{transform:translate(3px,0) rotate(8deg)}}
@keyframes petDelight{0%,100%{transform:none}45%{transform:translateY(-7px) rotate(-3deg)}75%{transform:translateY(1px) scale(1.03,.97)}}
@media(max-width:1180px){.editor-save-group{gap:9px}.editor-save-group>small{font-size:11px}.guide-visual{gap:9px}.guide-visual>span{font-size:13px;gap:6px}}
@media(max-width:760px){.editor-save-group>small{display:none}.editor-help-button{font-size:11px}.guide-visual{gap:8px;padding:16px 10px!important}.guide-visual>span{flex-direction:column;font-size:12px;gap:8px}.guide-visual>span>svg{height:26px;width:26px}.guide-visual>b{font-size:13px}.collection-summary>div{flex-direction:row;min-width:0;gap:12px;padding:0}}
@media(max-width:580px){
  .brand{flex-shrink:0;gap:6px}.brand strong{font-size:22px;white-space:nowrap;gap:3px;line-height:1}.brand strong>span{font-size:14px;letter-spacing:0}.brand-symbol{width:32px;height:32px;flex-shrink:0;border-radius:10px}.brand-symbol>svg.ls-monogram{width:28px;height:28px}
  .header-actions{gap:5px}.header-actions #openBilling{padding-left:8px;padding-right:8px;font-size:11px}.header-actions #openBilling>svg{display:none}.header-actions #profileButton{padding-left:8px;padding-right:8px;font-size:11px}.header-actions #profileButton>span{max-width:44px;overflow:hidden;text-overflow:ellipsis}
  .header-actions #profileButton,.header-actions #openBilling{height:34px;gap:5px}.header-actions #profileButton>svg,.header-actions #openBilling>svg{height:14px;width:14px}
  #immersiveHero .hero-primary{min-height:60px;font-size:18px;gap:26px;padding:0 15px 0 20px}
  .record-filter-trigger{min-width:124px;height:42px;font-size:12px;padding:0 10px;gap:7px}.record-filter-options{width:173px}.record-filter-options>button{min-height:45px;font-size:13px}
  .editor-leave-dialog,.editor-help-dialog{padding:26px 23px}.editor-leave-dialog>h2,.editor-help-dialog>h2{font-size:23px}.leave-actions{grid-template-columns:1fr}.leave-actions>.primary-button{order:-1}.editor-help-steps>article{padding:12px;gap:12px}.editor-help-steps h3{font-size:15px}.editor-help-steps p{font-size:12px}.help-step-icon{height:43px;width:39px}
  .canvas-toolbar>.editor-help-button{margin-left:0;align-self:flex-start}.contact-mascot{width:83px;height:95px;right:-10px}.floating-tools.is-contact-open .contact-mascot{right:5px}.pet-tooltip{font-size:10px}
}
@media(max-height:520px){.contact-mascot{display:none}}
@media(prefers-reduced-motion:reduce){
  dialog[open]:not(.compare-dialog):not(.record-dialog),dialog[open]::backdrop,.account-menu.is-liquid-open,.is-open .record-filter-options,.search-history-panel,.history-selection-bar:not([hidden]),#immersiveHero .hero-primary:after,.template-search>i,#reuseReference:not([hidden]){animation:none}
  .record-filter-trigger,.record-filter-trigger>svg:last-child,.record-filter-options,.guide-toc>button,.contact-mascot,.pet-tooltip{transition:none}
  .contact-mascot *{animation:none!important}.pet-yawn{opacity:0}.pet-smile{opacity:1}
}
.save-template svg{stroke-width:1.5;stroke-linejoin:round}.save-template.saved svg{fill:currentColor;stroke-width:1.25}
.record-filter-trigger>i{height:16px;width:16px;display:grid;place-items:center;flex-shrink:0}.record-filter-trigger>i>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.editor-help-button>i{display:grid;place-items:center;width:15px;height:15px}.editor-help-button svg{height:15px;width:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.leave-emblem svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.4}
.guide-visual>span>i{width:26px;height:26px;display:grid;place-items:center;flex-shrink:0}.guide-visual>span svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.feedback-demo-note>i{height:16px;width:16px;flex-shrink:0;display:grid;place-items:center}.feedback-demo-note>i>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
