body { height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--aos-surface); border-bottom: 1px solid var(--aos-line); padding-top: max(10px, env(safe-area-inset-top)); }
.brand { font-weight: 700; color: var(--aos-accent); white-space: nowrap; }
.top select { padding: 6px 10px; border: 1px solid var(--aos-line); border-radius: var(--aos-radius); font: inherit; background: var(--aos-surface); max-width: 40vw; }
.spacer { flex: 1; }
.user { color: var(--aos-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.burger { display: none; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--aos-ink); }
.layout { flex: 1; display: flex; min-height: 0; }
.side { width: 260px; overflow-y: auto; background: var(--aos-surface); border-right: 1px solid var(--aos-line); padding: 12px 8px; }
.side h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--aos-muted); margin: 14px 10px 6px; }
.side .prod { display: block; padding: 7px 10px; border-radius: 8px; color: var(--aos-ink); text-decoration: none; font-weight: 600; }
.side .scr { display: block; padding: 5px 10px 5px 26px; border-radius: 8px; color: var(--aos-muted); text-decoration: none; font-size: 14px; }
.side a:hover { background: var(--aos-bg); }
.side a.active { background: #eef2ff; color: var(--aos-accent); }
.muted { color: var(--aos-muted); padding: 0 10px; }
.content { flex: 1; position: relative; min-width: 0; }
.content iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--aos-surface); }
.welcome { padding: 32px; max-width: 720px; }
.welcome h1 { font-size: 22px; margin: 0 0 8px; }
.toast { position: fixed; right: 16px; bottom: 16px; max-width: 420px; z-index: 10; }
@media (max-width: 760px) {
  .burger { display: block; }
  .side { position: fixed; top: 56px; bottom: 0; left: 0; z-index: 5; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 16px rgba(0,0,0,.08); }
  .side.open { transform: none; }
  .user { display: none; }
}
