/* Learning-space chrome. Navigation stays the original drawer: visible on a wide desk, hidden until the menu opens on a narrow one. */
.workspace>.topbar{height:auto;min-height:76px;flex-wrap:wrap;gap:12px;padding:12px 24px}
#accountHeader{margin-left:0;max-width:100%}
.account-tools{margin-left:0;gap:10px}
.account-expiry{font-variant-numeric:tabular-nums;font-size:12px;max-width:none;overflow:visible;white-space:nowrap;color:var(--ui-accent);background:var(--ui-soft);border-color:var(--ui-line);cursor:pointer}
.account-expiry:disabled{cursor:wait;color:var(--ui-muted)}
.header-activation,.header-install{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft);color:var(--ui-accent);font-size:12px;line-height:1.3;white-space:nowrap;cursor:pointer;flex:none}
.header-activation .icon,.header-install .icon{width:18px;height:18px;stroke-width:1.8}
.header-activation:hover,.header-install:hover{background:var(--ui-selected)}
.header-install[data-installed=true]{color:var(--ui-muted);background:transparent;cursor:default}
.header-install[data-installed=true]:hover{background:transparent}
.topbar .global-search{flex:1 1 240px;width:auto;max-width:380px;margin-left:0;margin-right:auto}
.topbar .local-status{display:none}
.workspace .topbar .topbar-back,.workspace .profile-return{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;margin:0;border:0;border-radius:9px;background:transparent;color:var(--ui-accent)}
.workspace .topbar .topbar-back:hover,.workspace .profile-return:hover{background:var(--ui-selected);text-decoration:none}
.workspace .topbar .topbar-back .icon,.workspace .profile-return .icon{width:27px;height:27px;stroke-width:2.2}
.workspace .profile-return span{display:none}
.saved-companion{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));width:68px;height:104px;z-index:35;pointer-events:none;filter:drop-shadow(0 2px 3px rgb(35 62 65 / 10%))}
.saved-companion>.girl-dress-figure,.saved-companion>canvas{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
@media(max-width:1200px){
  .workspace>.topbar{gap:8px;padding:10px 16px}
  .topbar .global-search{max-width:300px}
  .account-tools{gap:6px}
}
@media(max-width:1020px){
  .topbar .global-search{order:3;flex-basis:100%;max-width:none;margin-left:0;margin-right:0}
  .topbar .breadcrumb{display:none}
  #accountHeader{margin-left:auto}
  .account-menu-button{max-width:130px}
}
@media(max-width:640px){
  .workspace>.topbar{padding:8px;gap:6px}
  .header-activation{order:2;margin-left:auto;min-height:38px;padding:0 10px}
  .header-install{order:2;width:40px;min-height:38px;padding:0}
  .header-install .header-install-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  #accountHeader{order:3;flex:1;min-width:0;margin-left:0}
  .account-tools{flex-wrap:wrap;justify-content:flex-end;gap:4px}
  .account-expiry{font-size:10px;padding:5px 7px;min-height:30px;max-width:none;white-space:normal;text-align:right}
  .account-menu-button{min-height:32px;font-size:11px;padding:2px 6px;max-width:148px}
  .account-menu-button .avatar{width:25px;height:25px}
  .saved-companion{width:48px;height:72px;right:6px;bottom:6px}
  .main{padding-left:12px;padding-right:12px}
}
@media print{.saved-companion{display:none}}
