/* The AI Studio workspace (5 Nov 2026): the platform menu folds behind the top menu button, the studio's modules are a slim rail down the left, the page has the rest. */
body.ws-mode #side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .22s cubic-bezier(.2, .7, .2, 1); box-shadow: var(--shadow); z-index: 60; }
body.ws-mode.side-open #side { transform: none; }
body.ws-mode.side-open #scrim { display: block; position: fixed; inset: 0; background: rgba(5, 8, 14, .55); z-index: 55; backdrop-filter: none; }
body.ws-mode #menu-btn { display: inline-grid; }
body.ws-mode .side-fold { display: none; }
body.ws-mode.side-folded #side { width: 280px; }
body.ws-mode.side-folded .brand-t, body.ws-mode.side-folded #side-search, body.ws-mode.side-folded .side-t, body.ws-mode.side-folded .side-tag { display: revert; }
body.ws-mode.side-folded .brand { display: flex; } body.ws-mode.side-folded .side-item { justify-content: flex-start; padding: 7px 10px; }

.sec.ws { flex-direction: row; min-height: 100%; align-items: stretch; }
.ws-rail { flex: none; width: 92px; position: sticky; top: 0; align-self: flex-start; height: calc(100vh - var(--nav-h)); overflow-y: auto; scrollbar-width: none; background: linear-gradient(180deg, #0f131c, #0c0f16); border-right: 1px solid var(--line); padding: 10px 6px 18px; }
.ws-rail::-webkit-scrollbar { display: none; }
.ws-tabs { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.ws-tabs .sec-tab { flex-direction: column; justify-content: center; gap: 5px; padding: 10px 4px 9px; border: 1px solid transparent; border-bottom: 1px solid transparent; border-radius: 12px; font-size: 11.5px; font-weight: 600; line-height: 1.15; white-space: normal; text-align: center; color: var(--muted); transition: background .15s, color .15s, transform .15s; }
.ws-tabs .sec-tab .ic { width: 22px; height: 22px; opacity: .85; transition: transform .2s; }
.ws-tabs .sec-tab:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.ws-tabs .sec-tab:hover .ic { transform: translateY(-1px) scale(1.06); }
.ws-tabs .sec-tab.on { color: #fff; background: linear-gradient(160deg, rgba(124, 92, 255, .28), rgba(108, 140, 255, .14)); border-color: rgba(138, 164, 255, .35); box-shadow: 0 6px 18px rgba(76, 60, 200, .22) inset, 0 0 0 1px rgba(255, 255, 255, .03); }
.ws-tabs .sec-tab.on .ic { color: #b9c8ff; }
.ws-tabs .sec-tab-t { display: block; max-width: 80px; overflow-wrap: anywhere; }
.ws-tabs .sec-lock { position: absolute; top: 5px; right: 6px; }
.ws-tabs .sec-tab:first-child { margin-bottom: 8px; }
.ws-tabs .sec-tab:first-child::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -6px; height: 1px; background: var(--line); }
.ws-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ws-head { padding: 0 28px; }
.ws-head .sec-sub { padding-top: 10px; }
@media (max-width: 760px) {
  .ws-rail { width: 70px; padding: 8px 4px; } .ws-tabs .sec-tab { font-size: 10px; padding: 8px 2px; } .ws-tabs .sec-tab .ic { width: 19px; height: 19px; }
  .ws-head { padding: 0 14px; }
}
/* a phone: the modules are a strip across the top that scrolls sideways, the page has the whole width */
@media (max-width: 640px) {
  .sec.ws { flex-direction: column; }
  .ws-rail { position: sticky; top: 0; z-index: 9; width: 100%; height: auto; align-self: stretch; padding: 6px 6px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .ws-tabs { flex-direction: row; gap: 4px; }
  .ws-tabs .sec-tab { flex: none; min-width: 66px; padding: 6px 4px; }
  .ws-tabs .sec-tab:first-child { margin-bottom: 0; margin-right: 6px; }
  .ws-tabs .sec-tab:first-child::after { left: auto; right: -5px; top: 10px; bottom: 10px; width: 1px; height: auto; }
}
