/* Compact editor banner: room menu, view segments and quiet utility icons. */
#editor header{position:relative;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:20px;padding:0 24px;overflow:visible}
#editor header .brand{grid-column:1;grid-row:1;justify-self:start;flex:0 0 auto}
#editor header #homeLogo{font-size:27px;letter-spacing:-.8px;gap:9px}
#editor header #homeLogo b{font-family:'Roomwise Archivo',Arial,sans-serif!important;font-weight:900;font-stretch:125%;font-variation-settings:'wdth' 125,'wght' 900;letter-spacing:-.02em;text-transform:none}
#editor header #homeLogo .roomwise-brand-mark{width:34px;height:34px}
#editor header .brand .project{display:none}
#editor header .editor-tools{grid-column:2;grid-row:1;justify-self:center;display:flex;align-items:center;gap:16px;min-width:0;margin:0;padding:0 24px;border-inline:0}
#editor header .roomnav{position:relative;inset:auto;z-index:5;margin:0;pointer-events:auto;min-width:120px;max-width:210px;flex:1 1 180px;border:0}
#editor .header-room-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px;padding:5px 12px;border:1px solid #ffffff32;border-radius:10px;background:#ffffff06;list-style:none;color:#fff6ef;user-select:none;cursor:pointer;transition:background .2s,border-color .2s}
#editor .header-room-picker>summary::-webkit-details-marker{display:none}
#editor .header-room-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#editor header #roomLabel{color:#fff6ef;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#editor header #roomArea{font-size:10px;font-weight:400;color:#d7c0b1;white-space:nowrap}
#editor .header-room-picker>summary>svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none;opacity:.7;transition:transform .18s}
#editor .header-room-picker[open]>summary>svg{transform:rotate(180deg)}
#editor .header-room-menu{position:absolute;top:calc(100% + 12px);left:0;width:270px;max-width:calc(100vw - 32px);padding:12px 8px 8px;background:#fffdf9f5;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid #e8ded4;border-radius:16px;box-shadow:0 16px 40px #321b1826;color:#3f302b;transform-origin:top center}
#editor .header-menu-label{display:block;padding:0 10px 8px;font-size:10px;font-weight:600;letter-spacing:1.1px;color:#9b877c}
#editor header #roomTabs{display:flex;flex-direction:column;gap:3px;overflow-y:auto;overflow-x:hidden;max-height:min(320px,55vh);padding:0}
#editor header #roomTabs .room-tab{position:relative;flex:none;width:100%;min-width:0}
#editor header #roomTabs .room-tab>[data-space]{display:block;width:100%;min-height:38px;padding:9px 38px 9px 12px;border:0;border-radius:9px;background:transparent;box-shadow:none;backdrop-filter:none;text-align:left;color:#67564d;font-size:13px;font-weight:500;white-space:normal;overflow-wrap:anywhere}
#editor header #roomTabs .room-tab>[data-space]:hover{background:#f3ede6}
#editor header #roomTabs .room-tab>[data-space].active{background:#eee5d9;color:#511e22;font-weight:600}
#editor header #roomTabs .room-tab-delete{background:transparent;color:#9b877c}
#editor .header-room-menu>small{display:block;padding:10px 10px 3px;font-size:10px;font-weight:400;color:#9b877c}
#editor header .toolbar{position:static;inset:auto;display:flex;align-items:center;gap:14px;margin:0;pointer-events:auto;flex:none}
#editor header .toolbar .switch{display:flex;align-items:center;gap:2px;margin:0;padding:3px;border:1px solid #ffffff1f;border-radius:10px;background:#ffffff0c;backdrop-filter:none;box-shadow:none}
#editor header .toolbar .switch button{min-height:30px;padding:6px 13px;border:0;border-radius:7px;background:transparent;color:#e5d3cb;box-shadow:none;white-space:nowrap;font-size:12px;font-weight:500;transition:background .15s,color .15s}
#editor header .toolbar .switch button:hover{background:#ffffff12;color:#fff6ef}
#editor header .toolbar .switch button.active{background:#f9f4ee;color:#511e22;box-shadow:0 1px 3px #2106091a}
#editor header .viewactions{display:flex;align-items:center;gap:3px;padding-left:12px;border-left:1px solid #ffffff26}
#editor header .viewactions button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:7px;border:0;border-radius:9px;background:transparent;backdrop-filter:none;color:#ecddd3;box-shadow:none}
#editor header .viewactions #snapshot{display:grid!important}
#editor header .viewactions button:hover{background:#ffffff14;color:#fff}
#editor header .viewactions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#editor header .editor-tools :is(button,summary):focus-visible{outline:2px solid #fff0c5;outline-offset:4px}
#editor header .header-room-menu button:focus-visible{outline-color:#9b6254;outline-offset:-2px}
#editor header .header-account-group{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
#editor header .headright{margin:0;flex-wrap:nowrap}
#editor header .account-area{flex:none;margin:0;padding:0}
@media(max-width:1180px){
 #editor header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:40px 40px;height:110px;min-height:110px;flex:0 0 110px;gap:6px 14px;padding:10px 20px}
 #editor header .brand{grid-column:1;grid-row:1}
 #editor header .header-account-group{grid-column:2/-1;grid-row:1}
 #editor header .headright{margin:0}
 #editor header .account-area{grid-column:3;grid-row:1;margin:0;padding:0}
 #editor header .editor-tools{grid-column:1/-1;grid-row:2;justify-self:stretch;margin:0;padding:0;border:0;border-top:1px solid #ffffff20;justify-content:center;gap:16px}
 #editor header .roomnav{flex:0 1 210px}
 #editor header #homeLogo{font-size:25px}
 #editor .header-room-menu{top:calc(100% + 8px)}
}
@media(max-width:700px){
 #editor header{padding:9px 14px;gap:6px 8px}
 #editor header #homeLogo{font-size:22px;gap:6px}
 #editor header #homeLogo .roomwise-brand-mark{width:28px;height:28px}
 #editor header .editor-tools{gap:8px;justify-content:center}
 #editor header .roomnav{flex:1 1 auto;min-width:74px;max-width:190px}
 #editor header .header-room-picker>summary{min-height:40px;gap:8px}
 #editor header #roomLabel{font-size:13px}
 #editor header #roomArea{display:none}
 #editor header .toolbar{gap:6px}
 #editor header .toolbar .switch button{min-height:32px;padding:6px 6px;font-size:11px}
 #editor header .viewactions{padding-left:6px;gap:0}
 #editor header .viewactions button{width:30px;height:40px;min-height:40px}
 #editor header .headright #uploadBtn{font-size:11px;padding:7px 10px;min-height:34px}
 #editor header .account-area .credit-pill{font-size:11px;padding:6px 9px;margin-right:6px}
 #editor .header-room-menu{left:0;width:250px}
}
@media(prefers-reduced-motion:reduce){#editor header .editor-tools *{transition:none!important}}
/* Add room belongs with the editing controls, separate from the account group. */
#editor header .editor-tools #uploadBtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:34px;padding:7px 10px;border:1px solid #ffffff32;border-radius:9px;background:transparent;color:#fff6ef;box-shadow:none;white-space:nowrap;font-size:12px;font-weight:500}
#editor header .editor-tools #uploadBtn:hover{background:#ffffff14;border-color:#ffffff59}
#editor header .editor-tools #uploadBtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
@media(max-width:700px){#editor header .editor-tools #uploadBtn{width:30px;height:36px;min-height:36px;padding:6px}#editor header .editor-tools #uploadBtn span{display:none}#editor header .header-account-group{gap:6px}}

/* Keep the room workspace clear; account and credits live in the header. */
#editor>footer{display:none}

html[data-demo="true"] #editor header .editor-tools #uploadBtn{display:none}
#editor .header-room-picker>summary:hover,#editor .header-room-picker[open]>summary{background:#ffffff10;border-color:#ffffff59}
@media(max-width:700px){#editor header .header-room-picker>summary{padding:5px 8px}}
/* Align header controls and use the active button fill for the wordmark. */
#editor header #homeLogo{color:#f9f4ee}
#editor header #homeLogo .roomwise-brand-mark{display:inline-block;flex:none;background:currentColor;mask:url(/roomwise-mark.svg) center/contain no-repeat;-webkit-mask:url(/roomwise-mark.svg) center/contain no-repeat}
#editor header .header-room-picker>summary{height:38px;min-height:38px;padding:4px 12px}
#editor header .header-room-copy{gap:1px}
#editor header #roomLabel{font-size:13px;line-height:15px}
#editor header #roomArea{font-size:9px;line-height:11px}
#editor header .toolbar .switch{height:38px}
#editor header .viewactions button,#editor header .editor-tools #uploadBtn{height:38px;min-height:38px}
#editor header :is(#signInTop,#accountAvatar,#creditPill,#saveToAccountBtn){height:38px;min-height:38px}
@media(max-width:700px){#editor header .header-room-picker>summary{padding:4px 8px}#editor header .toolbar .switch button{min-height:30px}}

#editor header #homeLogo b{color:inherit!important}
/* Use the credits control’s pill outline throughout the banner. */
#editor header .header-room-picker>summary,#editor header .editor-tools #uploadBtn,#editor header .toolbar .switch,#editor header .viewactions button,#editor header :is(#signInTop,#saveToAccountBtn){border:1px solid #ffffff59;border-radius:999px;background:#ffffff14}
#editor header .toolbar .switch button{border-radius:999px}
#editor header .viewactions{gap:6px}
#editor header .viewactions button{width:38px}
#editor header .header-room-picker>summary:hover,#editor header .editor-tools #uploadBtn:hover,#editor header .viewactions button:hover,#editor header :is(#signInTop,#saveToAccountBtn):hover{background:#ffffff26}
@media(max-width:700px){#editor header .viewactions{gap:4px;padding-left:4px}#editor header .viewactions button{width:30px}}
/* Keep room editing centered with quieter utility actions and tighter spacing. */
#editor header .editor-tools{gap:12px}
#editor header .toolbar{gap:10px}
#editor header .viewactions{gap:3px;padding-left:10px}
#editor header .viewactions button{border:0;background:transparent}
#editor header .viewactions button:hover{background:#ffffff14}
@media(max-width:700px){#editor header .editor-tools{gap:6px}#editor header .toolbar{gap:4px}#editor header .viewactions{gap:2px;padding-left:4px}}
/* A shared selection pill glides between camera modes. */
#editor header .toolbar .switch{position:relative;isolation:isolate}
#editor header .toolbar .switch::before{content:"";position:absolute;left:0;top:0;width:var(--view-pill-width,0px);height:var(--view-pill-height,30px);transform:translate(var(--view-pill-x,3px),var(--view-pill-y,3px));border-radius:999px;background:#f9f4ee;box-shadow:0 1px 3px #2106091a;pointer-events:none;opacity:0;z-index:0}
#editor header .toolbar .switch[data-pill-ready]::before{opacity:1}
#editor header .toolbar .switch[data-pill-motion]::before{transition:transform 360ms cubic-bezier(.22,1,.36,1),width 360ms cubic-bezier(.22,1,.36,1)}
#editor header .toolbar .switch button{position:relative;z-index:1;transition:color 220ms ease,background 150ms ease}
#editor header .toolbar .switch[data-pill-ready] button.active{background:transparent;box-shadow:none}
@media(prefers-reduced-motion:reduce){#editor header .toolbar .switch::before{transition:none!important}}
/* Keep area details in the room list, with a visually balanced utility divider. */
#editor header #roomArea{display:none}
#editor header .room-tab-name{display:block}
#editor header .room-tab-area{display:block;margin-top:3px;color:#9b877c;font-size:11px;font-weight:400;line-height:15px}
#editor header .viewactions{position:relative;border-left:0}
#editor header .viewactions::before{content:"";position:absolute;left:4.25px;top:0;bottom:0;width:1px;background:#ffffff26;pointer-events:none}
@media(max-width:700px){#editor header .viewactions::before{left:2.25px}}
/* Keep the account avatar circular at the shared header control height. */
#editor header #accountAvatar{width:38px;min-width:38px;max-width:38px;height:38px;min-height:38px;max-height:38px;flex:0 0 38px;aspect-ratio:1;border-radius:50%;padding:0;box-sizing:border-box}
/* Profile photo controls stay separate from account navigation. */
#editor header .account-area{position:relative}
#editor header .account-menu{max-width:calc(100vw - 28px)}
#editor header .account-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;pointer-events:none}
#editor header #accountMenuAvatar{position:relative;cursor:pointer}
#editor header #accountMenuAvatar::after{content:"+";position:absolute;right:-2px;bottom:-1px;display:grid;place-items:center;width:15px;height:15px;border:2px solid #fffdf9;border-radius:50%;background:#511e22;color:#fffdf9;font:500 11px/1 Arial}
#editor header .account-photo-control{display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 66px}
#editor header .account-photo-control>span{font-size:9px;color:#8a7468;white-space:nowrap}
#editor header #accountMenuAvatar:focus-visible{outline:2px solid #9b6254;outline-offset:4px}
/* Confirm the crop before a profile photo is saved. */
.profile-photo-dialog{box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #e8ded4;border-radius:24px;background:#fffdf9;color:#3f302b;box-shadow:0 24px 80px #321b1833}
.profile-photo-dialog::backdrop{background:#24151666;backdrop-filter:blur(5px)}
.profile-photo-dialog h2{margin:0 0 8px;font-size:23px;letter-spacing:-.5px}
.profile-photo-dialog>p{margin:0 0 20px;font-size:13px;line-height:1.5;color:#8a7468}
.profile-photo-dialog canvas{display:block;width:min(280px,100%);height:auto;aspect-ratio:1;margin:0 auto;border-radius:50%;touch-action:none;cursor:grab}
.profile-photo-dialog canvas.dragging{cursor:grabbing}
.profile-photo-dialog canvas:focus-visible{outline:2px solid #9b6254;outline-offset:4px}
.profile-photo-zoom{display:flex;align-items:center;gap:14px;margin:22px 0;font-size:13px;color:#8a7468}
.profile-photo-zoom input{flex:1;min-width:0;accent-color:#511e22}
.profile-photo-crop-actions{display:flex;justify-content:flex-end;gap:10px}
.profile-photo-crop-actions button{min-height:40px;padding:9px 20px;border:1px solid #e0d4ca;border-radius:999px;background:transparent;color:#5b4038;font:inherit;font-size:13px;cursor:pointer}
.profile-photo-crop-actions [data-save]{border-color:#511e22;background:#511e22;color:#f9f4ee}
/* Equal light furniture actions, with a quieter scale tool. */
#editor .furniture-actions #addBtn,#editor .furniture-actions .library-download-button{display:flex;align-items:center;justify-content:center;width:100%;height:48px;min-height:48px;padding:8px 6px;border:1px solid #f9f4ee;border-radius:14px;background:#f9f4ee;color:#915851;font-size:12px;font-weight:600;line-height:1.2;white-space:nowrap;box-sizing:border-box;box-shadow:none;text-align:center}
#editor .furniture-actions #addBtn{margin:12px 0 0}
#editor .furniture-actions .library-download-button{margin:10px 0 0}
#editor .furniture-actions #addBtn:hover,#editor .furniture-actions .library-download-button:hover{background:#fffdf7;border-color:#fffdf7}
#editor .furniture-actions #personBtn{display:flex;align-items:center;justify-content:center;width:100%;margin:10px 0 0;background:#f9f3ed66;border:1px solid #f9f4ee;color:#511e22;font-size:12px;font-weight:600;line-height:1.2;min-height:36px;padding:9px 12px;box-shadow:none}
#editor .furniture-actions #personBtn:hover{background:#ffffff30;color:#511e22}
/* Share the same sidebar edges as the room spending card. */
#editor .furniture-actions{width:100%;box-sizing:border-box;margin:0 0 18px}
/* Align the identity block to the photo itself, excluding its caption. */
#editor header .account-menu-head,.library-page .account-menu-head{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:start;gap:12px}
#editor header .account-menu-head>.account-photo-control,.library-page .account-menu-head>.account-photo-control{grid-column:1;grid-row:1}
#editor header .account-menu-head>.account-photo-control+div,.library-page .account-menu-head>.account-photo-control+div{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;min-height:44px;min-width:0}
