/* Two columns of pictograms keep the work surface wide at every desktop size. */
@media(min-width:641px) and (max-width:900px){.workspace{grid-template-columns:112px minmax(0,1fr)}}
@media(min-width:901px){.workspace{grid-template-columns:112px minmax(0,1fr) 222px}}
@media(min-width:1550px){.workspace{grid-template-columns:112px minmax(0,1fr) 232px}}
#sidebar{scrollbar-width:thin;scrollbar-color:#cbd0bf transparent}
#sidebar>.panel-head{min-height:40px;padding:9px 10px;border-bottom:1px solid var(--line);margin-bottom:8px;justify-content:center;gap:6px}
#sidebar>.panel-head .ui-icon{width:17px;height:17px;margin:0}
#sidebar>.panel-head .mobile-only{display:none}
#sidebar #left-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px;padding:0 9px 10px}
#sidebar .side-nav-btn,#sidebar .catalog-launch,#sidebar [data-action="cell-table"],#sidebar .add-bp{display:flex;align-items:center;justify-content:center;width:auto;min-width:0;height:36px;padding:7px;margin:0;border:1px solid transparent;border-radius:6px;background:none;text-decoration:none}
#sidebar .catalog-launch{border-color:var(--line);background:#eeeee5}
#sidebar .side-nav-btn.active{background:var(--olive-light)}
#sidebar button>.ui-icon{width:20px;height:20px;margin:0;flex:none}
#sidebar .palette-tabs{grid-column:1/-1;gap:3px;padding:4px 0 8px;margin:4px 0 3px;border:0;border-bottom:1px solid var(--line);border-radius:0}
#sidebar .palette-tabs button{height:32px;padding:5px;display:grid;place-items:center;border:1px solid transparent}
#sidebar .palette-tabs button.active{border-color:#cad4bc}
#sidebar .palette{grid-column:1/-1;gap:5px}
#sidebar .tool{position:relative;display:grid;place-items:center;min-height:42px;height:42px;padding:8px;border-radius:7px;background:#f1f1e8}
#sidebar .tool .tool-glyph{display:flex;align-items:center;justify-content:center;margin:0;line-height:1}
#sidebar .tool .tool-glyph .ui-icon{width:25px;height:25px}
#sidebar .tool.active{background:#e2e9d5;border-color:#7f9366;box-shadow:inset 0 -2px #7f9366}
#sidebar .tool.restricted{background:#f5f4ee}
#sidebar .tool.restricted .tool-glyph{opacity:.5}
#sidebar .tool:disabled{opacity:.4}
#sidebar .tool strong,#sidebar .tool small,#sidebar .bp-list-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#sidebar .palette-hint{display:none}
#sidebar [data-action="cell-table"]{grid-column:1/-1;height:27px;border-bottom:1px solid var(--line);border-radius:0;margin-top:2px;padding-bottom:9px}
#sidebar [data-action="cell-table"] .ui-icon{width:16px;height:16px}
#sidebar .side-caption{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;margin:11px 3px 2px;font:9px var(--mono);color:#89937b}
#sidebar .side-caption .ui-icon{width:15px;height:15px;margin:0}
#sidebar .blueprint-list-btn{position:relative;display:flex;justify-content:center;min-width:0;height:39px;padding:5px 3px;gap:3px;border:1px solid transparent}
#sidebar .blueprint-list-btn.active{border-color:#c5d0b9;background:#e9eddf}
#sidebar .bp-icon{width:21px;height:23px;border:0;background:none!important;border-radius:0}
#sidebar .bp-icon .ui-icon{width:19px;height:19px}
#sidebar .blueprint-index{font:8px var(--mono);color:#737f66}
#sidebar .add-bp{height:39px;border:1px dashed #cbd0bf}
#sidebar .add-bp .ui-icon{width:16px;height:16px}
#sidebar .sidebar-bottom{margin-top:auto;padding:10px 9px 12px;border-top:1px solid var(--line);display:flex;justify-content:center}
#sidebar .sidebar-bottom button{display:grid;place-items:center;width:34px;height:30px;padding:5px;margin:0;text-decoration:none}
#sidebar .sidebar-bottom .ui-icon{width:17px;height:17px;margin:0}
#sidebar button:focus-visible{outline:2px solid #617e4b;outline-offset:2px;z-index:1}
#sidebar .solo-sidebar{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 5px;padding:0 0 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
#sidebar .solo-sidebar button{display:flex;align-items:center;justify-content:center;min-width:0;height:34px;gap:4px;padding:4px;border-radius:5px}
#sidebar .solo-sidebar [data-action="solo-stock"]{grid-column:1/-1;background:#e9eddf}
#sidebar .solo-sidebar b{font:10px var(--mono);margin:0}
#sidebar .solo-build-cost{grid-column:1/-1;margin:7px 0 0;padding:8px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
#sidebar .solo-build-cost>.mini-label{display:flex;justify-content:center}
#sidebar .solo-build-cost .solo-price{margin:8px 0 0;gap:7px}
#sidebar .solo-build-cost .solo-cost-row{gap:3px}
#sidebar .solo-build-cost .solo-cost-row b{font-size:8px;letter-spacing:-.4px}
#sidebar .solo-build-cost .solo-cost-row .ui-icon{width:16px;height:16px;margin:0}
#sidebar-tooltip{position:fixed;z-index:60;max-width:min(240px,calc(100vw - 24px));padding:9px 12px;background:#fafbf5;border:1px solid #d2d9c7;border-radius:7px;box-shadow:0 4px 16px #35462b1c;pointer-events:none;color:#495b3a;font:11px/1.4 var(--sans)}
#sidebar-tooltip strong{font-weight:600}
#sidebar-tooltip span:not(:empty){display:block;margin-top:3px;font-size:10px;color:#7d876f}
@media(max-width:640px){
  #sidebar.open{width:120px}
  #sidebar>.panel-head{justify-content:space-between;padding:5px 9px}
  #sidebar>.panel-head .mobile-only{display:inline-grid}
  #sidebar .tool{height:46px}
  #sidebar .palette-tabs button,#sidebar .side-nav-btn,#sidebar .catalog-launch,#sidebar .blueprint-list-btn,#sidebar .add-bp{min-height:40px}
}
