@import url('/assets-and-environments-lab/studio/style.css');
:root{--bg:#080f17;--panel:#111f2b;--line:#263843;--ink:#e8f0f3;--muted:#91a6b1;--accent:#b3edd0}
body{height:100dvh;overflow:hidden;font-size:14px}button,a,input,select{transition:background .15s,border-color .15s}button{border-radius:9px}header.topbar{height:76px;padding:0 26px;gap:28px;background:#0c1720}.wordmark{font-size:16px!important;letter-spacing:.15em!important;line-height:1;display:grid;gap:6px}.wordmark span{font-size:10px;color:var(--accent);letter-spacing:.28em}.project-label{display:flex;align-items:center;gap:12px;margin-left:20px;font-size:11px;letter-spacing:.02em}.project-label select{max-width:340px;min-width:190px;padding:8px 12px;font-size:13px}.local-badge{font-size:9px;letter-spacing:.15em;color:#8ba899;margin-left:auto}.topbar>button{font-size:12px;padding:9px 14px}.explorer{height:calc(100dvh - 76px);max-width:none;padding:0;display:grid;grid-template-columns:320px 1fr}.browser{display:flex;flex-direction:column;min-height:0;background:#0c1720;border-right:1px solid var(--line)}.browser-intro{padding:23px 22px 12px}.eyebrow{font-size:9px;letter-spacing:.16em;color:#6f9687;margin:0 0 8px}.browser h1{font-size:23px;font-weight:600;letter-spacing:-.04em;margin:0;line-height:1.2}.browser #categories{padding:4px 18px 12px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.category{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;font-size:11px;background:#101e28;border-color:transparent}.category.active{background:#213b37;border-color:#547d6d;color:#c5f7dc}.category:disabled{opacity:.35;cursor:default}.category span{font-size:9px;opacity:.6}.search-line{padding:0 18px;display:flex;gap:6px}.search-line input{width:100%;min-width:0;font-size:12px;padding:10px}.search-line button{padding:6px 12px;font-size:20px}.search-line button[aria-pressed=true]{color:#f4d279;border-color:#917839}.count{margin:12px 22px;font-size:10px;color:#718b98}.asset-list{overflow:auto;flex:1;padding:0 10px 16px;scrollbar-width:thin;scrollbar-color:#355146 transparent}.asset-row{display:flex;position:relative;gap:8px;padding:3px;border:1px solid transparent;border-radius:10px;margin-bottom:4px}.asset-row.selected{border-color:#547d6d;background:#19312d}.asset-select{flex:1;display:flex;align-items:center;gap:12px;text-align:left;padding:9px;background:transparent;border:none;min-width:0}.asset-select:hover{background:#1b2b33}.asset-icon{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:radial-gradient(at 25% 10%,#3c635f,#142c39);font-size:18px;color:#b7d6c7}.asset-icon.world{background:radial-gradient(at 20% 10%,#51665b,#15303c)}.asset-icon img{width:100%;height:100%;object-fit:contain;background:#091219;border-radius:8px}.asset-text{min-width:0}.asset-text strong{display:block;font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.asset-text small{display:block;color:#7d98a2;font-size:10px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:175px}.star{align-self:center;padding:5px;border:none;background:transparent;color:#70888e;font-size:16px}.star.saved{color:#f4d279}.list-hint{padding:10px 18px;border-top:1px solid var(--line);font-size:10px;margin:0;color:#5f7c88}.stage{position:relative;min-width:0;background:radial-gradient(ellipse at 55% 35%,#1a3542,#08121b 75%);overflow:hidden}.stage iframe{width:100%;height:100%;border:0;background:#091a25}.stage-top,.stage-bottom{position:absolute;left:0;right:0;z-index:2;display:flex;align-items:center;gap:12px;pointer-events:none}.stage-top{top:0;padding:18px 24px;background:linear-gradient(#08121be8,transparent);font-size:10px;letter-spacing:.08em}.stage-top a,.stage-top button,.stage-bottom button{pointer-events:auto}.stage-top>a{margin-left:auto;font-size:10px;white-space:nowrap}.stage-top>span{color:#adc3ca;text-transform:uppercase}.stage-top #preview-actions{display:flex;gap:6px}.stage-top button{background:#10232be0;border-color:#38545480;padding:7px 10px;font-size:10px}.stage-bottom{bottom:0;justify-content:space-between;padding:28px 26px 22px;background:linear-gradient(transparent,#071019ed 30%)}.stage-bottom h2{font-size:26px;letter-spacing:-.04em;margin:0;max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-bottom #stage-hint{font-size:11px;margin-top:8px;color:#9ab6c1}.stage-buttons{display:flex;gap:7px;align-self:flex-end;flex-shrink:0}.stage-buttons button{padding:9px 13px;background:#142930dd;border-color:#3d5854}.stage-buttons #details-open{font-size:11px}#stage-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7d9eac}.orb{font-size:80px;color:#84b9a9;text-shadow:0 0 80px #80c4b8}.stage #stage-empty h2{font-size:25px;color:#d0e1e7}.stage #stage-empty p{font-size:12px}dialog{color:var(--ink);background:#0e1d28;border:1px solid #36514f;border-radius:15px;padding:25px;max-width:600px;width:90%;max-height:85dvh;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#050b12b8;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-head h2{font-size:22px;letter-spacing:-.03em;margin:0}.dialog-head button{background:transparent;border:none;font-size:20px;padding:2px 8px}.import-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.import-actions button{font-size:12px}.small{font-size:11px;overflow-wrap:anywhere}.notes{grid-template-columns:1fr}.check{display:flex;align-items:center;gap:8px;margin:14px 0}#details-content p{overflow-wrap:anywhere}.empty-list{font-size:12px;padding:24px;color:var(--muted)}
@media(max-width:900px){header.topbar{gap:10px;padding:0 16px}.project-label{margin-left:0}.project-label{font-size:0}.local-badge{display:none}.topbar>button{margin-left:auto}.explorer{grid-template-columns:270px 1fr}.asset-text strong{max-width:140px}.stage-bottom h2{font-size:22px}.stage-top{padding:15px 14px;flex-wrap:wrap}.stage-top #preview-actions{order:3;width:100%}.stage-top>a{margin-left:auto}.stage-bottom{padding:24px 16px 16px;flex-wrap:wrap}.stage-buttons{margin-left:auto}}
@media(max-width:620px){header.topbar{height:62px}.wordmark{font-size:12px!important}.project-label select{min-width:0;max-width:170px;font-size:11px}.topbar>button{font-size:10px;padding:8px}.explorer{height:calc(100dvh - 62px);grid-template-columns:1fr;grid-template-rows:56% 44%}.stage{grid-row:1}.browser{grid-row:2;border-top:1px solid var(--line)}.browser-intro{display:none}.browser #categories{grid-template-columns:repeat(4,1fr);padding:8px 12px;gap:4px}.search-line{padding:0 12px}.count{margin:7px 15px}.asset-list{padding-bottom:4px}.asset-select{padding:5px}.asset-icon{height:34px;width:34px}.asset-text strong{max-width:70vw}.asset-text small{max-width:65vw}.list-hint{display:none}.stage-bottom h2{font-size:20px;max-width:65vw}.stage-bottom #stage-hint{display:none}.stage-top{padding:12px}.stage-top #preview-actions{width:auto;order:0}.stage-top>span{display:none}.stage-top>a{font-size:9px}.stage-top button{font-size:9px;padding:6px}.stage-bottom{gap:5px;padding:20px 12px 12px}.stage-buttons button{padding:6px 10px}.stage-buttons #details-open{font-size:10px}.stage-bottom .eyebrow{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.layout-tabs{display:flex;gap:3px;margin-left:auto;background:#081219;border:1px solid #29433e;border-radius:8px;padding:3px}.layout-tabs a{font-size:11px!important;letter-spacing:0!important;padding:6px 10px;text-decoration:none;color:#8ba8b1}.layout-tabs a.active{background:#28443c;color:#d2efdf;border-radius:5px}.local-badge{margin-left:0}@media(max-width:760px){.local-badge{display:none}.layout-tabs{margin-left:auto}.project-label select{max-width:150px}.topbar>button{margin-left:0}}@media(max-width:620px){.wordmark{display:none!important}.layout-tabs a{font-size:10px!important;padding:5px 8px}}

/* Phone browsing keeps the preview and the asset tray on screen together. */
@media (max-width:620px) {
  header.topbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:44px 44px;
    height:114px;
    padding:10px 12px;
    gap:6px 10px;
    width:100%;
  }
  .project-label { margin:0; min-width:0; }
  .project-label select { width:100%; max-width:none; min-width:0; height:44px; }
  #manage-open { min-height:44px; grid-column:2; grid-row:1; }
  .layout-tabs { grid-column:1/-1; grid-row:2; justify-self:center; margin:0; padding:0; }
  .layout-tabs a { min-height:44px; min-width:80px; display:grid; place-items:center; }
  .explorer { height:calc(100dvh - 114px); width:100%; grid-template-columns:minmax(0,1fr); grid-template-rows:55% 45%; }
  .browser { min-width:0; }
  .category { min-height:44px; justify-content:center; padding:6px 3px; }
  .category span { display:none; }
  .search-line input { min-height:44px; }
  .search-line button, .star { min-width:44px; min-height:44px; }
  .asset-text { flex:1; overflow:hidden; }
  .asset-text strong, .asset-text small { max-width:100%; }
  .stage-top { flex-wrap:nowrap; gap:6px; }
  .stage-top button, .stage-top>a { min-height:44px; display:grid; place-items:center; }
  .stage-bottom { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .stage-bottom h2 { font-size:17px; max-width:100%; }
  .stage-buttons { gap:4px; }
  .stage-buttons button { min-height:44px; min-width:44px; padding:6px 8px; }
  dialog { width:calc(100% - 24px); max-width:none; padding:18px; max-height:85dvh; }
  .dialog-head button { min-height:44px; min-width:44px; }
  .import-actions { display:grid; grid-template-columns:1fr 1fr; }
  .import-actions button { min-height:44px; }
  #browser-picker { grid-column:1/-1; }
}
