/* Approved Pencil world chrome. Controllers and IDs remain in index.html. */
.ui-icon{display:inline-block;width:17px;height:17px;flex:none;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
html body>header.site-header{height:var(--app-bar-height);min-height:var(--app-bar-height);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:8}
body .site-header .header-left{display:flex;align-items:center;gap:20px;min-width:0;flex:1}
body .site-header .brand{display:flex;align-items:center;gap:20px;flex:none;width:187px;margin:0;color:var(--ink);text-decoration:none;font:600 20px/1.2 var(--font-ui);letter-spacing:-.02em}
body .site-header .brand-icon{width:38px;height:38px;padding:8px;gap:5px;border-radius:5px}
body .site-header .brand-icon i{width:7px;height:7px}
.header-world{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:162px;height:36px;padding-left:20px;border-left:1px solid var(--line)}
.header-world strong{font:500 16px/1.5 var(--font-ui);white-space:nowrap}
.header-world small{font:600 11px/1.4 var(--font-ui);letter-spacing:.07em;color:#77796f;white-space:nowrap}
.header-nav{display:flex;align-items:center;width:536px;justify-content:center;gap:16px;white-space:nowrap}
.header-nav a,.header-nav button,body .site-header .header-nav .text-button{min-height:40px;display:inline-flex;align-items:center;padding:0;border:0;background:none;color:#77796f;text-decoration:none;font:500 14px/1.4 var(--font-ui);cursor:pointer}
body .site-header .header-nav [aria-current=page],body .site-header .header-nav button:hover,body .site-header .header-nav a:hover{color:var(--ink)}
body .site-header .header-nav .nav-account{display:none}
body .site-header .header-actions{display:flex;align-items:center;gap:12px;flex:none}
body .site-header .balance-button{min-height:50px;min-width:83px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:1px;padding:6px 10px;background:var(--table);border:1px solid var(--line);border-radius:7px}
body .site-header .balance-button span{font:600 11px/1.2 var(--font-ui);letter-spacing:.04em;text-transform:uppercase;color:#77796f}
body .site-header .balance-button strong{font:500 12px/1.4 var(--font-ui);font-variant-numeric:tabular-nums;white-space:nowrap}
body .site-header .icon-button{width:36px;height:36px;min-width:36px;min-height:36px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
body .site-header .icon-button .ui-icon{width:16px;height:16px}
body .site-header .account{display:flex;align-items:center;gap:8px;min-height:40px;padding:10px 14px;border-radius:7px;background:var(--deep);color:var(--paper);font:600 14px/1.4 var(--font-ui)}
body .site-header .account .ui-icon{width:16px;height:16px}
body .site-header #account-label{max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .site-header .mobile-menu{display:none}
body .site-header [hidden]{display:none!important}
html:not(.studio-page) body>.workspace{display:block}
body .world .world-title,body .world .world-tag{display:none}
.world-top-controls{position:absolute;z-index:3;left:24px;right:24px;top:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;pointer-events:none}
.world-top-controls>*{pointer-events:auto}
.current-location{display:flex;flex-direction:column;gap:3px;min-width:194px}
.current-location strong{font:500 24px/1.2 var(--font-ui);color:var(--ink)}
body #camera-coordinate{font:500 14px/1.4 var(--font-ui);font-variant-numeric:tabular-nums;color:#77796f}
body .world .world-location{position:static;display:flex;align-items:center;flex-wrap:nowrap;min-height:40px;margin-top:6px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:0 5px 16px #263a3014;overflow:hidden;color:var(--ink)}
body .world .world-location button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;height:40px;padding:10px 12px;border:0;border-left:1px solid var(--line);background:transparent;color:var(--ink);font:600 14px/1.4 var(--font-ui);white-space:nowrap}
body .world .world-location button:first-child{border-left:0;font-weight:500}
body .world .world-location button:hover{background:var(--table)}
body .world .world-location button .ui-icon{width:15px;height:15px}
body .world .world-location #open-navigator .ui-icon,body .world .world-location #reset-view .ui-icon{color:#77796f}
body .world .world-location #open-places .ui-icon{color:var(--accent)}
body .world .world-location #reset-view{width:36px;padding:10px}
body #place-coordinate{font:500 14px/1.4 var(--font-ui);font-variant-numeric:tabular-nums}
body .world .build-dock{position:absolute;left:calc(50% + 6px);bottom:22px;z-index:5;max-width:calc(100% - 32px);transform:translateX(-50%)}
body .build-choices{display:flex;align-items:center;gap:10px;width:626px;max-width:100%;min-height:64px;padding:10px 20px 10px 12px;border:0;border-radius:12px;background:var(--paper);box-shadow:0 10px 30px #263a3024}
body .build-choices[hidden]{display:none}
body .build-choices [hidden]{display:none!important}
body .build-choices:has(#start-building[hidden]){width:auto}
body .build-choices #start-building{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;min-width:149px;min-height:44px;height:44px;padding:12px 16px;border-radius:8px;background:var(--accent);color:var(--paper);font:600 14px/1.4 var(--font-ui)}
body .build-choices #start-building:hover{background:#c8583c}
body #start-building .ui-icon{width:18px;height:18px}
body #single-piece-price{display:none}
body .build-choices #build-area{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:143px;min-height:44px;height:44px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:600 14px/1.4 var(--font-ui)}
body .build-choices #build-area:hover{background:var(--table)}
body .build-choices #build-area .ui-icon{width:17px;height:17px}
body .build-choices #build-area small{display:none}
.dock-divider{height:30px;width:1px;flex:none;background:var(--line)}
body .build-choices .dock-tool{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:40px;height:40px;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:600 14px/1.4 var(--font-ui)}
body .build-choices .dock-tool .ui-icon{width:17px;height:17px}
body .build-choices .dock-tool[aria-pressed=true],body .build-choices .dock-tool:hover{background:#f0ece3}
body .build-choices .dock-tool:disabled{opacity:.5;cursor:not-allowed}
body .world .world-bottom{left:24px;right:32px;bottom:38px;align-items:flex-end;justify-content:flex-end}
body .world .world-note{position:absolute;left:0;bottom:-11px;display:flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;box-shadow:none;color:#77796f;max-width:none}
.presence-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#68a48b}
body .world-note #live-status{font:400 14px/1.5 var(--font-ui);color:#77796f;white-space:nowrap}
body .world-note #connection-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body .world-note:has(#retry-connection:not([hidden])) #connection-status{position:static;width:auto;height:auto;clip-path:none;white-space:normal;color:#9b4735}
body .world-note #retry-connection{border:0;background:none;text-decoration:underline;font:600 12px/1.4 var(--font-ui)}
body .world-note #brick-count[hidden]{display:none}
body .world .zoom{display:flex;align-items:center;gap:2px;padding:6px;border:0;border-radius:9px;background:var(--paper);box-shadow:0 6px 18px #263a301c}
body .world .zoom button{display:grid;place-items:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:9px;border:0;border-radius:6px;background:transparent}
body .world .zoom button:hover{background:var(--table)}
body .world .zoom .ui-icon{width:16px;height:16px}
body .world .zoom [hidden]{display:none}
body .world .zoom:has(#back-overview:not([hidden])) #zoom-value{display:none}
.world .build-controls{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%}
.world .build-controls .build-choices{flex:0 1 626px;min-width:0}
.world .build-controls .zoom{flex:none;pointer-events:auto}
body .world #world-hint{display:none}
@media(max-width:1150px){
 body .world .build-controls{flex-direction:column;align-items:stretch;width:min(626px,calc(100vw - 32px))}
 body .world .build-controls .build-choices{flex:none;width:100%}
 body .world .build-controls .zoom{align-self:center}
}
@media(max-width:1279px){
 body .site-header .header-nav{display:none;position:absolute;top:calc(100% + 6px);right:18px;left:auto;z-index:15;width:min(280px,calc(100vw - 36px));padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 12px 30px #263a3024;white-space:normal}
 body .site-header .header-nav.is-open{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px}
 body .site-header .header-nav a,body .site-header .header-nav button{min-height:44px;justify-content:flex-start;padding:8px 10px}
 body .site-header .header-nav .nav-account{display:inline-flex}
 body .site-header .mobile-menu{display:grid}
 html:not(.studio-page) body .world .build-dock{bottom:82px}
}
@media(max-width:1100px){body .world .current-location{display:none}body .world .world-location{margin-left:auto}}
@media(min-width:961px) and (max-width:1039px){
 body .build-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;width:100%;padding:7px 14px 7px 10px}
 body .build-choices #start-building,body .build-choices #build-area{grid-column:span 3;width:100%;min-width:0}
 body .build-choices .dock-divider{display:none}
 body .build-choices .dock-tool{grid-column:span 2;width:100%;min-width:0}
}
@media(max-width:960px){
 html:not(.studio-page) body>.workspace{display:block}
 body .world .world-top-controls{left:20px;right:20px;top:20px}
 body .world .world-location #share-spot span:last-child{display:none}
 body .world .world-location #share-spot{width:40px}
 body .world .world-location #open-places span:last-child{display:none}
 body .world .world-location #open-places{width:40px}
 body .world .world-title{display:none}
}
@media(max-width:700px){
 html body>header.site-header{height:var(--app-bar-height);min-height:var(--app-bar-height);padding:0 14px;gap:8px;flex-wrap:nowrap}
 body .site-header .brand{width:auto;gap:9px;font-size:17px}
 body .site-header .brand-icon{width:30px;height:30px;padding:6px;gap:4px}
 body .site-header .brand-icon i{width:5px;height:5px}
 body .site-header .header-world{display:none}
 body .site-header .header-actions{gap:6px;width:auto}
 body .site-header .balance-button{min-height:34px;min-width:0;flex-direction:row;gap:5px;padding:7px 9px}
 body .site-header .balance-button span{display:none}
 body .site-header .balance-button::before{content:'';width:14px;height:14px;background:var(--ink);-webkit-mask:url('/icons/box.svg') center/contain no-repeat;mask:url('/icons/box.svg') center/contain no-repeat}
 body .site-header .icon-button{width:34px;height:34px;min-width:34px;min-height:34px}
 body .site-header #account-button{display:none}
 body .world .world-top-controls{top:70px;left:12px;right:12px}
 body .world .current-location{display:none}
 body .world .world-location{width:100%;max-width:100%;margin:0;justify-content:space-between}
 body .world .world-location #open-navigator{flex:1;min-width:0}
 body #place-coordinate{overflow:hidden;text-overflow:ellipsis;font-size:12px}
 body .world .world-title{display:block;top:20px;left:20px;font:500 24px/1.2 var(--font-ui)}
 body .world .world-title br{display:none}
 body .world .world-title em::before{content:' '}
 body .world .world-bottom{left:12px;right:12px;bottom:10px;justify-content:flex-end}
 body .world .world-note{position:static;display:flex;flex:1;min-width:0}
 body .world .world-note #live-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
 body .world .world-note:has(#retry-connection:not([hidden])) #live-status{display:none}
 body .world .world-note:has(#retry-connection:not([hidden])) #connection-status{font-size:11px}
 html:not(.studio-page) body .world .build-dock,body .world .build-dock{position:absolute;left:50%;bottom:70px;width:calc(100% - 24px);max-width:440px}
 body .build-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;width:100%;padding:7px 14px 7px 10px;min-height:0}
 body .build-choices #start-building,body .build-choices #build-area{grid-column:span 3;width:100%;min-width:0;height:44px;font-size:12px}
 body .build-choices #start-building{flex-direction:row;gap:5px}
 body .build-choices .dock-divider{display:none}
 body .build-choices .dock-tool{grid-column:span 2;width:100%;min-width:0;font-size:12px}
}
@media(max-width:375px){body .site-header .brand{font-size:15px}body .site-header .balance-button strong{font-size:10px}body .site-header .header-actions{gap:4px}}
.world .build-controls .zoom{box-shadow:0 6px 18px #263a301c}
@media(min-width:701px) and (max-width:1279px){html:not(.studio-page) body .world .build-dock{bottom:22px}}
@media(max-width:700px){
 html:not(.studio-page) body .world .build-dock,body .world .build-dock{bottom:calc(16px + env(safe-area-inset-bottom))}
 .studio-page .workspace .world .build-dock{bottom:calc(12px + env(safe-area-inset-bottom))}
}

@media(min-width:701px){
 html:not(.studio-page) body .world:has(.area-selection:not([hidden])) .build-dock{
  position:fixed;
  top:calc(var(--app-bar-height) + 84px);
  right:24px;
  bottom:auto;
  left:auto;
  width:min(440px,calc(50% - 48px));
  max-width:none;
  transform:none;
 }
 body .world:has(.area-selection:not([hidden])) .area-selection{
  width:100%;
  max-height:calc(100dvh - var(--app-bar-height) - 112px);
 }
 body .world:has(.area-selection:not([hidden])) .build-controls{
  position:fixed;
  left:50%;
  bottom:24px;
  width:max-content;
  transform:translateX(-50%);
 }
}
@media(min-width:701px) and (max-width:1150px){
 body .world:has(.area-selection:not([hidden])) .build-controls{left:calc(25vw + 12px)}
 body .world:has(.area-selection:not([hidden])) .area-selection-heading strong{font-size:18px}
}
