/* BOB STUDIO — тема «тетрадь маппера» поверх site.css + studio.css (те же цвета и шрифты, что у каталога) */
:root, :root[data-theme="light"]{
  --bg:#0e1319; --bg2:#121820; --panel:#151c24; --panel2:#1b232d; --line:#26313c; --line2:#344250;
  --text:#e3e9ef; --muted:#93a2b1; --dim:#64727f;
  --a1:#7fb0ff; --a2:#7fb0ff; --grad:#7fb0ff; --ok:#6fd3a0; --bad:#ff7a8a; --star:#ffc857;
  --tile:var(--gimg-pic) 0 0/60px 60px, #222c37;
  --r:6px; --shadow:0 18px 40px -22px rgba(0,0,0,.7);
  --f-display:"Unbounded","IBM Plex Sans",system-ui,sans-serif;
  --f-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  --gimg-paper:url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 shape-rendering=%22crispEdges%22><rect x=%2212%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%231f2933%22/><rect x=%220%22 y=%2212%22 width=%2260%22 height=%221%22 fill=%22%231f2933%22/><rect x=%2224%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%231f2933%22/><rect x=%220%22 y=%2224%22 width=%2260%22 height=%221%22 fill=%22%231f2933%22/><rect x=%2236%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%231f2933%22/><rect x=%220%22 y=%2236%22 width=%2260%22 height=%221%22 fill=%22%231f2933%22/><rect x=%2248%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%231f2933%22/><rect x=%220%22 y=%2248%22 width=%2260%22 height=%221%22 fill=%22%231f2933%22/><rect x=%220%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%2327333f%22/><rect x=%220%22 y=%220%22 width=%2260%22 height=%221%22 fill=%22%2327333f%22/></svg>");
  --gimg-pic:url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 shape-rendering=%22crispEdges%22><rect x=%2212%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%232b3642%22/><rect x=%220%22 y=%2212%22 width=%2260%22 height=%221%22 fill=%22%232b3642%22/><rect x=%2224%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%232b3642%22/><rect x=%220%22 y=%2224%22 width=%2260%22 height=%221%22 fill=%22%232b3642%22/><rect x=%2236%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%232b3642%22/><rect x=%220%22 y=%2236%22 width=%2260%22 height=%221%22 fill=%22%232b3642%22/><rect x=%2248%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%232b3642%22/><rect x=%220%22 y=%2248%22 width=%2260%22 height=%221%22 fill=%22%232b3642%22/><rect x=%220%22 y=%220%22 width=%221%22 height=%2260%22 fill=%22%2334414e%22/><rect x=%220%22 y=%220%22 width=%2260%22 height=%221%22 fill=%22%2334414e%22/></svg>");
  --accent:#7fb0ff; --accent-ink:#0e1319; --accent-soft:#1d2c42; --new:#f0a868;
  color-scheme:dark;
}
html, body{font-family:var(--f-body)}
body.studio{background:var(--bg)}

/* шапка */
.st-top{background:var(--bg);padding:10px 16px}
.st-top .brand-mark{width:32px;height:32px;filter:none;color:var(--accent)}
.st-top .brand-name{font:800 18px/1 var(--f-display)}
.brand-name b{background:none;-webkit-background-clip:initial;background-clip:initial;color:var(--accent)}

/* кнопки */
.btn{border-radius:5px;background:var(--accent);color:var(--accent-ink);box-shadow:none;font-weight:600;border:1px solid var(--accent)}
.btn:hover{filter:brightness(1.08)}
.btn-ghost{border-radius:5px;background:var(--panel);border:1px solid var(--line2);font-weight:600}
.btn-ghost:hover{border-color:var(--accent);background:var(--panel)}
.chip-btn{border-radius:5px;background:var(--panel);border:1px solid var(--accent);color:var(--accent);backdrop-filter:none}
.chip-btn:hover{background:var(--accent);color:var(--accent-ink)}
.icon-btn{border-radius:6px}
.seg{border-radius:5px;padding:3px;gap:3px}
.seg button{border-radius:3px}
.seg button.on{background:var(--accent);color:var(--accent-ink);box-shadow:none}
.pbtns button, .chip{border-radius:4px}
.pbtns button.on, .chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.pbtns.ph button.on, .an-list button.on, .an-list button:hover{border-color:var(--accent);color:var(--accent)}

/* библиотека */
.st-lib, .st-props{background:var(--bg)}
.st-lib input[type=search], .st-props input[type=search], .st-props .pfull input[type=text]{border-radius:5px;border-color:var(--line2)}
.st-lib input[type=search]:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.lib-hint.pick{color:var(--accent)}
.lib-it{border-radius:6px}
.lib-it:hover{transform:none;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.lib-it .im{background:var(--tile)}
.lib-it .id{font:600 10.5px var(--f-mono);color:var(--accent);background:var(--panel);border:1px solid var(--line2);border-radius:3px;padding:0 5px}
.lib-grid, .props{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.lib-grid::-webkit-scrollbar, .props::-webkit-scrollbar{width:8px}
.lib-grid::-webkit-scrollbar-thumb, .props::-webkit-scrollbar-thumb{background:var(--line2);border-radius:2px;border:2px solid var(--bg)}
.lib-grid::-webkit-scrollbar-thumb:hover, .props::-webkit-scrollbar-thumb:hover{background:var(--accent)}

/* сцена */
.st-view{background:#0b1015 var(--gimg-paper) 0 0/60px 60px}
.st-tools .seg{background:var(--panel);backdrop-filter:none}
.st-empty b{font-family:var(--f-display)}
.st-load{border-radius:5px;background:var(--panel);border:1px solid var(--line2);backdrop-filter:none;font-family:var(--f-mono);font-size:12.5px}
.st-load i{border-top-color:var(--accent)}
.sel-box{border-color:var(--accent);border-radius:3px}

/* свойства */
.pbox{border-radius:6px}
.pbox h4{font:600 11.5px var(--f-mono);letter-spacing:.06em}
.pbox.grp{border-color:var(--accent)}
.ptitle{font-family:var(--f-display);font-weight:700;font-size:15px}
.psub{font-family:var(--f-mono);font-size:11.5px}
.prow input[type=range]{accent-color:var(--accent)}
.prow input[type=number], .prow select, .pfull select, .colors input[type=color]{border-radius:4px;border-color:var(--line2);font-family:var(--f-mono)}
.attached div, .cam-row{border-radius:5px}
.attached button{color:var(--accent)}
.straps button{border-radius:4px}
.straps button.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}

/* окна: рендер и локация */
dialog::backdrop{background:rgba(6,9,13,.6);backdrop-filter:blur(4px)}
.auth[open]{border-radius:8px;border:1px solid var(--line2);background:var(--panel);box-shadow:none}
.auth h3{font:700 20px var(--f-display)}
.render-dlg select, .loc-side input{border-radius:5px;border-color:var(--line2)}
.render-prev{border-radius:6px;background:var(--tile)}
.loc-map{border-radius:6px}
.loc-coord{font:500 11.5px var(--f-mono);border-radius:3px}
.loc-places button{border-radius:4px}
.loc-places button:hover{border-color:var(--accent)}
.cam-badge{border-radius:5px}
.toast{border-radius:5px;font:500 13.5px var(--f-mono)}

/* значки (свои SVG вместо эмодзи) */
.si{width:15px;height:15px;flex:none;vertical-align:-3px;margin-right:6px}
.btn .si,.btn-ghost .si,.chip-btn .si{margin-right:0}
.st-actions .btn-ghost{display:inline-flex;align-items:center;gap:7px}
.st-actions .btn-ghost .si,.st-tools .si{color:var(--accent)}
.st-tools .seg button.on .si{color:var(--accent-ink)}
.seg button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.seg button .si{margin:0;width:14px;height:14px}
.focus-btn .si,#slist button .si,.u-del .si,.d-close .si,.cam-row .bad .si,[data-ren] .si{margin:0}
.focus-btn{color:var(--accent);opacity:1}
#slist [data-look]{color:var(--accent);opacity:1}
#slist [data-lock]{color:var(--muted)}
#slist [data-lock].on{color:var(--new);filter:none}
#slist span .si{color:var(--dim);width:13px;height:13px;margin-right:4px}
.d-close .si{width:18px;height:18px}
.u-del{display:grid;place-items:center}.u-del .si{width:11px;height:11px}
.lib-up .im .si,.lib-it[data-uid] .im .si{width:38px;height:38px;margin:0;color:var(--accent)}
.an-cur .si{color:var(--accent);width:12px;height:12px}
.cam-badge .si{color:inherit}

/* логотип студии не кликается; рядом — переход в каталог */
.st-top .brand{cursor:default;user-select:none}
.st-top .to-obj{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;text-decoration:none;color:var(--text);font:700 12px var(--f-display);letter-spacing:.02em}
.st-top .to-obj .si{color:var(--accent)}
.st-top .to-obj:hover{border-color:var(--accent)}
.st-top .btn-ghost,.st-top .btn{white-space:nowrap}
/* узкий экран: у кнопок шапки остаются только значки (подпись — во всплывающей подсказке) */
@media (max-width:1150px){
  .st-actions .btn-ghost{font-size:0;gap:0;padding:0 11px}
  .st-actions .btn-ghost .si{width:18px;height:18px}
}
