/* Offline-ready: optional web font removed. */
:root{color-scheme:dark;--bg:#0b1219;--panel:#12202a;--raised:#1b2b37;--line:#2d404b;--line2:#3a4d59;--muted:#9bacb7;--text:#f0f2ec;--gold:#e5ae70;--gold2:#fbd8a9;--cyan:#76cdbd;--red:#ff8b83;--shadow:0 18px 54px #0005}*{box-sizing:border-box}html{font-family:'DM Sans','Noto Sans JP',system-ui,sans-serif;background:var(--bg);color:var(--text)}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%}::selection{background:#e5ae7070}p{line-height:1.75}h1,h2,h3,p{margin-top:0}.app-shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#0f1a22;border-right:1px solid #273943;display:flex;flex-direction:column;padding:27px 14px 20px;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 26px;text-decoration:none!important}.brand-symbol{width:40px;height:40px;border:1px solid #e5ae7055;border-radius:12px;background:#2b2925;color:var(--gold);display:grid;place-items:center;font-size:28px;line-height:1}.brand strong{font-size:16px;letter-spacing:.075em}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:.22em;margin-top:3px}.side-label{font-size:10px;letter-spacing:.18em;font-weight:700;color:#8198a7;padding:18px 16px 9px}.nav-btn{width:100%;display:flex;gap:13px;align-items:center;text-align:left;border:0;background:transparent;color:#9fb2bd;border-radius:11px;padding:12px 15px;margin-bottom:3px;transition:background .2s,color .2s;font-size:13px;font-weight:600}.nav-btn:hover{background:#1c2e39;color:#fff}.nav-btn.current{background:#263a44;color:#f8debb;box-shadow:inset 3px 0 var(--gold)}.nav-icon{width:20px;text-align:center;font-size:18px}.side-bottom{margin-top:auto}.mode-note{font-size:10px;color:#718a99;background:#172732;border:1px solid #253c47;border-radius:10px;padding:11px;line-height:1.7}.main{min-width:0}.topbar{height:79px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,4vw,50px);border-bottom:1px solid #263942;background:#0d1820bb;position:sticky;top:0;backdrop-filter:blur(20px);z-index:10;gap:15px}.breadcrumb{display:flex;align-items:center;gap:10px;color:#91a6b5;font-size:12px}.breadcrumb b{font-weight:700;color:#f0f1e8}.top-actions{display:flex;align-items:center;gap:12px}.pill-money{display:flex;align-items:center;gap:9px;background:#252c2b;color:#f6cc91;padding:9px 14px;border-radius:12px;border:1px solid #54442f;font-weight:800;font-size:13px}.pill-user{font-size:12px;background:#1c2d38;border-radius:50px;padding:9px 12px;color:#cfdee4;border:1px solid #334853}.demo-switch{padding:8px 9px;min-width:95px;background:#192b35;border:1px solid #3a4d5a;color:#e8e4db;border-radius:9px;font-size:11px}.page{max-width:1500px;margin:0 auto;padding:clamp(19px,3vw,40px) clamp(16px,4vw,50px) 90px}.eyebrow{font-size:10px;letter-spacing:.22em;color:var(--gold);text-transform:uppercase;font-weight:800;margin-bottom:10px}.page-title{font-size:clamp(29px,3.7vw,46px);font-weight:800;letter-spacing:-.055em;margin:0 0 10px}.lead{color:#acc0c9;font-size:13px;line-height:1.85;max-width:740px}.section-title{font-size:19px;margin-bottom:18px;letter-spacing:-.03em}.space-between{display:flex;align-items:center;justify-content:space-between;gap:14px}.gap-top{margin-top:30px}.stack{display:flex;flex-direction:column;gap:16px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:0 4px 15px #0001}.panel.flat{box-shadow:none}.panel.glow{background:radial-gradient(circle at 0 0,#30402f 0,transparent 70%),#1a2a2f;border-color:#56614b}.panel.dark{background:#101b24}.panel h3{font-size:16px;margin-bottom:10px}.panel p:last-child{margin-bottom:0}.muted{color:var(--muted)}.tiny{font-size:11px}.small{font-size:12px}.strong{font-weight:800}.accent{color:var(--gold)}.green{color:var(--cyan)}.danger{color:var(--red)}.vline{width:1px;background:var(--line)}.divider{height:1px;background:var(--line);margin:16px 0}.stat{padding:21px;background:#15232c;border:1px solid #2d414c;border-radius:14px}.stat-label{font-size:10px;letter-spacing:.08em;color:var(--muted);margin-bottom:8px}.stat-value{font-size:26px;font-weight:800;letter-spacing:-.06em}.stat-sub{color:#78919f;font-size:10px;margin-top:5px}.btn{border:1px solid var(--line2);border-radius:10px;padding:11px 16px;background:#23343e;color:#f1f0e9;font-size:12px;font-weight:800;transition:transform .12s,background .12s;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover:not(:disabled){background:#304751;transform:translateY(-1px)}.btn.primary{background:var(--gold);color:#241a13;border-color:var(--gold)}.btn.primary:hover{background:#f6c791}.btn.ghost{background:transparent;border-color:#415460;color:#bacfd7}.btn.greenbtn{background:#2c5a4f;color:#e0fff7;border-color:#45816d}.btn.smallbtn{padding:7px 12px;font-size:11px;border-radius:8px}.btn.wide{width:100%}.btn:active:not(:disabled){transform:scale(.985)}.badge{display:inline-flex;align-items:center;border-radius:6px;background:#2d3f49;border:1px solid #425865;color:#c9dce0;font-size:10px;font-weight:700;padding:4px 8px;white-space:nowrap}.badge.gold{color:#f6d49e;background:#43382a;border-color:#6a5133}.badge.greenbadge{color:#abf2dd;background:#244538;border-color:#376653}.badge.redbadge{color:#ffa69e;background:#513331;border-color:#754540}.hero{min-height:260px;background:radial-gradient(ellipse at 85% 10%,#ad7e4750,transparent 43%),linear-gradient(108deg,#243831,#152c31 75%);border:1px solid #4c5647;border-radius:20px;position:relative;overflow:hidden;padding:clamp(24px,4vw,42px);display:flex;align-items:center;gap:25px;margin-bottom:25px}.hero-content{position:relative;z-index:2;flex:1}.hero h2{font-size:clamp(24px,2.8vw,37px);letter-spacing:-.06em;line-height:1.5;margin:0 0 12px}.hero p{font-size:12px;line-height:1.8;max-width:550px;color:#c3d2cd}.hero-art{width:225px;height:215px;flex:0 0 auto;display:grid;place-items:center;filter:drop-shadow(12px 16px 10px #0005)}.hero-art svg{width:100%}.buttons{display:flex;flex-wrap:wrap;gap:10px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(198px,1fr));gap:14px}.product{background:#162631;border:1px solid #2d434d;border-radius:14px;overflow:hidden;transition:border-color .2s,transform .2s}.product:hover{transform:translateY(-3px);border-color:#92784e}.product-art{height:160px;background:radial-gradient(circle at 50% 42%,#304858,#17232c 70%);display:grid;place-items:center;position:relative;overflow:hidden}.product-art canvas{width:100%;height:100%}.product-art .badge{position:absolute;top:10px;left:10px}.product-body{padding:14px}.product-name{font-weight:800;font-size:13px;line-height:1.5;min-height:22px}.product-meta{font-size:10px;color:#94a6b0;margin:4px 0 12px}.product-price{font-size:19px;font-weight:800;color:var(--gold)}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.field-label{font-size:11px;font-weight:700;color:#b7c9d1;display:block;margin-bottom:7px}.field{width:100%;min-width:0;border:1px solid #3a505c;border-radius:10px;padding:11px 12px;background:#0d1b25;color:#f0efe8;outline:0;font-size:12px}.field:focus{border-color:#d9a365;box-shadow:0 0 0 2px #d9a36518}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-stack{display:flex;flex-direction:column;gap:13px}.empty{border:1px dashed #3b5661;border-radius:14px;background:#172530;padding:33px;text-align:center;color:#a4bac5;font-size:12px;line-height:1.9}.empty-icon{font-size:36px;margin-bottom:10px}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.tabs{display:flex;align-items:center;gap:6px;margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:10px}.tab{background:transparent;border:1px solid transparent;color:#8ba3b0;border-radius:8px;padding:10px 14px;font-size:12px;font-weight:800}.tab.active{background:#273a45;color:#fff;border-color:#3b535e}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.viewport-panel{background:#0c1821;border:1px solid #304552;border-radius:17px;overflow:hidden;min-width:0}.viewport-header{padding:13px 18px;background:#152630;border-bottom:1px solid #2c4551;display:flex;align-items:center;justify-content:space-between;gap:9px}.viewport{position:relative;height:min(65vh,560px);min-height:340px}.viewport canvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:none}.viewport-hint{position:absolute;bottom:12px;left:14px;color:#97b1bf;font-size:10px;background:#0b1a25d9;border:1px solid #334b56;border-radius:8px;padding:7px 9px;pointer-events:none}.editor-options{padding:18px;background:#162630;border:1px solid #304652;border-radius:17px}.tool{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #3b515c;border-radius:9px;padding:10px 9px;background:#22333d;color:#b6c9d1;font-size:11px;font-weight:700;cursor:pointer}.tool.active{color:#271b0c;background:#e2b477;border-color:#e2b477}.palette{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.swatch{width:100%;aspect-ratio:1;border:2px solid #ffffff20;border-radius:5px;cursor:pointer}.swatch.active{outline:2px solid #fff;outline-offset:1px}.range{width:100%;accent-color:var(--gold)}.panel-caption{color:#8ca2ae;font-size:10px;line-height:1.8;margin-top:10px}.gallery-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}.gallery-canvas{height:365px;background:#0b1821;border-radius:12px;overflow:hidden}.gallery-canvas canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.inventory-row,.listing-row,.activity-row{padding:12px 0;display:flex;align-items:center;gap:14px;border-bottom:1px solid #2d414c}.inventory-row:last-child,.listing-row:last-child,.activity-row:last-child{border-bottom:0}.tile-mini{width:63px;height:63px;border-radius:10px;background:#263a46;flex:0 0 63px;overflow:hidden;display:grid;place-items:center}.tile-mini canvas{width:100%;height:100%}.item-info{flex:1;min-width:0}.item-info strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-info small{font-size:10px;color:#93aab6}.side-card{display:flex;gap:8px;align-items:center}.chart-bar{height:8px;border-radius:5px;background:#283f4a;overflow:hidden}.chart-bar>span{height:100%;display:block;background:var(--gold)}.foot{font-size:11px;color:#7f99a7;text-align:center;padding:35px 15px;border-top:1px solid #23333e}.foot a{text-decoration:underline}.modal-shade{position:fixed;inset:0;background:#03090ce0;display:flex;align-items:center;justify-content:center;z-index:50;padding:12px}.modal{width:min(560px,100%);max-height:94vh;overflow:auto;background:#172733;border:1px solid #475967;box-shadow:var(--shadow);border-radius:18px;padding:26px}.modal h2{font-size:22px;margin-bottom:18px}.modal canvas{width:100%;height:280px;display:block;background:#0a1923;border-radius:10px}.toast{position:fixed;right:20px;bottom:20px;background:#25433d;border:1px solid #598779;color:#e9fff5;padding:15px 20px;border-radius:12px;z-index:100;box-shadow:var(--shadow);max-width:360px;font-size:12px}.toast.error{background:#512d2d;border-color:#96514d;color:#ffe6de}.loading-splash{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#e5c294}.splash-cube{font-size:90px;line-height:1}.loading-splash h1{letter-spacing:.2em}.mobile-nav{display:none}.warning-text{color:#eacb96;font-size:11px;line-height:1.8;padding:12px;border-left:3px solid #bd925f;background:#493f2c4d}.table-wrap{overflow:auto}.clean-table{border-collapse:collapse;width:100%;font-size:12px}.clean-table td,.clean-table th{border-bottom:1px solid #354650;padding:12px 8px;text-align:left}.clean-table th{color:#94aab5;font-size:10px}.auth-hero{max-width:480px;margin:30px auto}.checkbox-label{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--muted)}.space-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.space-slot{background:#1d303b;border:1px solid #3b4f59;border-radius:10px;padding:13px;min-height:88px;text-align:center;font-size:11px}.space-slot span{display:block;font-size:22px;margin-bottom:5px}.inline-radio{display:flex;gap:12px;flex-wrap:wrap;font-size:11px}.inline-radio label{display:flex;align-items:center;gap:6px;color:#c6d7df}.timepill{font-size:11px;color:#e5ba87;background:#3e362f;padding:6px 9px;border-radius:8px}.link-text{color:#d9b88f;text-decoration:underline;cursor:pointer}.twocol-summary{display:grid;grid-template-columns:1fr 1fr;gap:13px}.help-card{margin-bottom:15px}.help-card h3{color:#f2d2a5}.help-card p{font-size:12px;color:#aec1ca}.help-card code{color:#e6b679}#toasts{pointer-events:none}#toasts button{pointer-events:auto}
@media(max-width:1200px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-art{width:165px}.editor-layout{grid-template-columns:minmax(0,1fr) 245px}.page{padding-left:25px;padding-right:25px}}@media(max-width:850px){.gallery-layout{grid-template-columns:1fr}.app-shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{height:65px;padding:0 15px}.page{padding:25px 14px 88px}.hero{min-height:220px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;background:#13232edc;backdrop-filter:blur(18px);padding:8px 3px max(9px,env(safe-area-inset-bottom));border-top:1px solid #344b58;justify-content:space-around}.mobile-nav button{background:transparent;border:0;color:#acbfcc;font-size:9px;font-weight:700;padding:5px 6px;display:flex;flex-direction:column;align-items:center;gap:5px}.mobile-nav button span{font-size:19px}.mobile-nav button.current{color:#f6c98f}.editor-layout{grid-template-columns:1fr}.viewport{height:390px}.editor-options{display:block}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.foot{margin-bottom:55px}}@media(max-width:560px){.hero{padding:22px;min-height:240px}.hero-art{width:90px;position:absolute;right:10px;top:7px;opacity:.42}.hero h2{font-size:27px}.hero-content{z-index:2}.grid-2,.grid-3{grid-template-columns:1fr}.stats-mobile{grid-template-columns:repeat(2,minmax(0,1fr))}.pill-user{display:none}.top-actions{gap:6px}.pill-money{font-size:11px;padding:8px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-art{height:126px}.product-body{padding:10px}.product-price{font-size:15px}.page-title{font-size:30px}.panel{padding:16px}.viewport{height:350px;min-height:260px}.space-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal{padding:17px}.breadcrumb{font-size:11px}.topbar{padding:0 10px}}
/* v1.3: assembly positioning inputs and explicit paint mode */
.assembly-part {padding:12px;border:1px solid rgba(180,204,216,.2);border-radius:12px;background:rgba(14,31,42,.45)}
.assembly-part strong {display:block;margin-bottom:10px;font-size:13px}
.assembly-coordinate {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.assembly-coordinate label {font-size:12px;color:#a9b5c4}
.assembly-coordinate .field {display:block;margin-top:3px;width:100%;min-width:0;padding:8px 5px}
#assembly-status {min-height:22px}
#editor-canvas {touch-action:none}
@media(max-width:630px){.assembly-coordinate{grid-template-columns:repeat(2,minmax(0,1fr))}}

.assembly-nudges{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;font-size:12px}
.assembly-nudges span{display:inline-flex;align-items:center;gap:4px}
.assembly-nudges button{min-width:27px;padding:4px 7px;border:1px solid #637f8d;border-radius:6px;background:#24404f;color:#fff;cursor:pointer}

/* v1.4: immersive editors (workshop, assembly and gallery use a consistent viewport) */
.assembly-workspace{height:500px;position:relative;overflow:hidden;border-radius:12px}
.assembly-workspace canvas,.gallery-workspace canvas{height:100%;width:100%;display:block;cursor:grab}
.assembly-workspace canvas:active,.gallery-workspace canvas:active{cursor:grabbing}
.gallery-workspace{min-height:410px;position:relative;overflow:hidden;border-radius:12px}
.workspace-hud{font-size:12px;color:var(--muted);padding:10px 12px;line-height:1.6;background:rgba(10,24,33,.55);border-radius:8px;margin:8px 0}
.assembly-part.assembly-selected{outline:2px solid #e7ab66;outline-offset:2px;background:rgba(230,170,95,.08)}
.gallery-slot-editor{display:flex;flex-direction:column;gap:4px;min-width:0}
.gallery-slot-editor .space-slot{min-height:70px;width:100%}
.gallery-slot-editor .active{outline:2px solid #e7ab66}
@media(max-width:650px){.assembly-workspace{height:380px}.gallery-workspace{min-height:300px}.viewport-hint{font-size:10px}}

.move-modes{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.move-modes .btn{min-width:64px}.move-modes .btn.active{outline:2px solid #dfa35c;outline-offset:1px}

/* Direct manipulation handles: anchored to the selected sculpture in each 3D viewport. */
.edit-gizmo{position:absolute;z-index:5;width:130px;height:128px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 2px 6px #000b)}
.edit-gizmo[hidden]{display:none!important}.gizmo-handle{position:absolute;pointer-events:auto;border:1px solid #ffffff66;color:white;border-radius:7px;padding:5px 7px;font-size:11px;font-weight:800;cursor:grab;touch-action:none;user-select:none;background:#1f3448ee;box-shadow:0 2px 8px #0009}
.gizmo-handle:active{cursor:grabbing;filter:brightness(1.4)}.gizmo-handle:focus-visible{outline:3px solid #ffd08c;outline-offset:2px}
.gx{right:0;top:58px;background:#a44043ee}.gy{left:50px;top:0;background:#2c8053ee}.gz{left:0;bottom:0;background:#37629cee}.gxz{left:48px;top:60px;background:#5b666de8}.gxy{left:7px;top:24px}.gyz{right:7px;bottom:7px}

/* v1.9 / My Place — immersive room-first browsing with opt-in editing */
.room-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.room-page-head .page-title{margin-bottom:5px}
.room-page-head .lead{margin:0}
.room-mode-switch{display:flex;gap:5px;padding:5px;border:1px solid #435464;border-radius:13px;background:#101c24;box-shadow:inset 0 1px #ffffff0c}
.room-mode-switch button{appearance:none;background:transparent;color:#aebec5;font-weight:750;font-size:12px;cursor:pointer;border:0;border-radius:9px;padding:12px 17px;white-space:nowrap;transition:background .16s,color .16s}
.room-mode-switch button.selected{background:#e6bc81;color:#2b2219;box-shadow:0 2px 14px #e9b87228}
.room-mode-switch button:focus-visible,.room-collection-item:focus-visible{outline:3px solid #edc98b;outline-offset:3px}
.room-layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(265px,.76fr);gap:18px;align-items:start}
.room-main{min-width:0;padding:14px;background:linear-gradient(150deg,#1d2c35,#111f29 75%);border:1px solid #44515a}
.room-overline{padding:7px 7px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.room-viewport{height:clamp(420px,65vh,710px);min-height:420px;position:relative;background:radial-gradient(ellipse at 53% 48%,#38535a 0%,#172b36 60%,#0c1923 100%);border-radius:13px;overflow:hidden;border:1px solid #566062}
.room-viewport canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}
.room-viewport canvas:active{cursor:grabbing}
.room-corner-caption{position:absolute;left:18px;top:16px;pointer-events:none;letter-spacing:.17em;font-weight:750;font-size:10px;color:#f8deb9;text-shadow:0 2px 5px #0008}
.room-viewport-bottom{position:absolute;bottom:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#e5d7c9;font-size:11px;line-height:1.5;pointer-events:none;text-shadow:0 1px 3px #000}
.room-viewport-bottom span{display:inline-block;padding:8px 12px;background:#14232cdd;border:1px solid #ffffff2a;border-radius:9px}
.room-minibutton{pointer-events:auto;white-space:nowrap;border:1px solid #e8d5b766;background:#1a2c37ee;color:#f7e1bd;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:750;cursor:pointer}
.room-sidebar{display:flex;flex-direction:column;gap:16px;min-width:0}.room-sidebar .panel{padding:18px}
.room-info-panel h3,.room-decoration-panel h3{font-size:16px}
.room-collection{display:flex;flex-direction:column;gap:4px;margin-top:16px;max-height:420px;overflow:auto;padding-right:4px}
.room-collection-item{appearance:none;text-align:left;border:1px solid transparent;border-radius:10px;background:#172832;color:#d5e0e3;display:flex;gap:12px;align-items:center;width:100%;padding:12px 11px;cursor:pointer}
.room-collection-item:hover{background:#243943}.room-collection-item.current{border-color:#caa67977;background:#263a3f}
.room-collection-number{font-size:11px;font-weight:800;color:#d1a978;font-variant-numeric:tabular-nums}
.room-collection-name{min-width:0;flex:1}.room-collection-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.room-collection-name small{font-size:10px;color:#a4b9c3}
.room-collection-arrow{font-size:22px;color:#d6bd97;line-height:1}
.room-selection-info{margin-top:12px;border-top:1px solid #ffffff19;padding-top:12px;line-height:1.7}.room-selection-info strong{color:#f0d2aa}.room-selection-info p{margin:5px 0 10px}
.room-view-caption{padding:17px 12px 8px;display:flex;gap:13px;align-items:start;color:#e9d9be}.room-view-caption>span{font-size:25px;color:#d5ad6e;line-height:1}
.room-view-caption strong{font-size:13px}.room-view-caption p{font-size:12px;color:#a6b9be;margin:4px 0 0;line-height:1.6}
.room-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:15px}.room-selected{min-width:0;max-width:60%}.room-selected strong{display:block;color:#e8d4b5;font-size:12px;white-space:normal}
.room-tool-actions{display:flex;gap:7px}.room-precision details{border-top:1px solid #ffffff1c;margin-top:13px;padding:12px 5px 0}.room-precision summary{font-size:12px;font-weight:700;color:#d9c5ab;cursor:pointer}
.room-theme-buttons{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.room-theme-buttons button{padding:9px 10px;background:#253946;color:#c7d9de;border:1px solid #56636a;border-radius:9px;font-size:11px;cursor:pointer}
.room-theme-buttons button.active{background:#ac8558;color:#fff7e8;border-color:#d4b98a}.room-theme-label{font-weight:700;color:#e2caac;margin:12px 0}
.room-ownership-note{display:flex;justify-content:space-between;align-items:center;gap:20px}.room-ownership-note>div{max-width:710px}
/* Keep the gallery manipulation handles hidden in view mode, and make the editor's
   handles visible without creating a dense cluster of tiny floating buttons. */
.room-gizmo{width:190px;height:190px;z-index:6;filter:drop-shadow(0 3px 9px #000c)}
.room-gizmo .gizmo-hub{position:absolute;left:87px;top:88px;width:16px;height:16px;border:3px solid #e7ddd0;border-radius:50%;background:#384d56;box-shadow:0 1px 10px #0009}
.room-gizmo .gizmo-line-axis{position:absolute;pointer-events:none;height:4px;border-radius:4px;transform-origin:0 50%;left:95px;top:96px}
.room-gizmo .gx-line{width:64px;background:#df7775;transform:rotate(-5deg)}
.room-gizmo .gy-line{width:72px;background:#86c49d;transform:rotate(-94deg)}
.room-gizmo .gz-line{width:59px;background:#83abec;transform:rotate(145deg)}
.room-gizmo .gizmo-handle{font-size:12px;padding:10px 13px;border:1px solid #fffc;min-width:52px;min-height:40px;border-radius:11px;box-shadow:0 3px 15px #000b}
.room-gizmo .gx{top:75px;right:0;background:#a7464b}.room-gizmo .gy{left:67px;top:0;background:#30784d}
.room-gizmo .gz{left:0;top:131px;background:#355b9b}.room-gizmo .gxz{left:112px;top:131px;background:#5c5855}
@media(max-width:1100px){.room-layout{grid-template-columns:1fr}.room-collection{max-height:250px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.room-page-head{align-items:stretch}.room-mode-switch{width:100%}.room-mode-switch button{flex:1;padding:12px 8px}.room-viewport{height:clamp(330px,51vh,500px);min-height:330px}.room-viewport-bottom{font-size:10px;align-items:end}.room-viewport-bottom span{max-width:70%}.room-collection{grid-template-columns:1fr;max-height:260px}.room-ownership-note{flex-wrap:wrap}.room-tool-actions{width:100%}.room-editor-toolbar{align-items:start}.room-selected{max-width:100%}.room-gizmo{transform:translate(-50%,-50%) scale(.82)}}

/* v2.0: in-viewport single-cell and brush footprints, compact hover feedback. */
.voxel-hover-info{position:absolute;left:12px;top:12px;z-index:3;max-width:min(92%,510px);pointer-events:none;padding:7px 10px;background:rgba(6,19,28,.86);border:1px solid rgba(118,184,201,.38);border-radius:8px;color:#e7e9e8;font-size:12px;line-height:1.5;box-shadow:0 4px 12px rgba(0,0,0,.22)}
.custom-paint{padding:12px;background:rgba(255,255,255,.025);border:1px solid rgba(172,193,208,.13);border-radius:10px}
.custom-paint-row{display:grid;grid-template-columns:52px minmax(75px,1fr) auto;align-items:center;gap:8px}
.custom-paint-row input[type=color]{border:1px solid rgba(190,211,222,.3);padding:3px;border-radius:8px;height:44px;width:52px;background:#152530;cursor:pointer}
.custom-paint-row input.field{min-width:70px}
@media(max-width:520px){.custom-paint-row{grid-template-columns:48px 1fr}.custom-paint-row button{grid-column:1 / -1}.voxel-hover-info{font-size:11px;padding:5px 7px}}
