/* HERBINO 2026-11-14: compact authenticated workspace. Public site unchanged. */
body:not([data-view="workspace"]) .topbar .workspace-trail,
body:not([data-view="workspace"]) .topbar .workspace-account,
body:not([data-view="workspace"]) .topbar #contextToggle { display:none !important; }

body[data-view="workspace"] .topbar {
  height:60px; min-height:60px; padding:5px 17px;
  gap:clamp(7px,1.15vw,17px); flex-wrap:nowrap;
}
body[data-view="workspace"] .topbar .brand { flex:none; font-size:21px; gap:7px; }
body[data-view="workspace"] .topbar .brand img { width:38px; height:38px; }
body[data-view="workspace"] .topbar .workspace-trail {
  display:flex; position:static; flex:1 1 auto; width:auto; min-width:0;
  gap:8px; align-items:center; justify-content:flex-start; padding:0;
  background:transparent; border:0; box-shadow:none;
}
body[data-view="workspace"] .workspace-breadcrumb {
  flex-wrap:nowrap; min-width:0; overflow:hidden; white-space:nowrap;
  gap:5px; font-size:12px;
}
body[data-view="workspace"] .workspace-breadcrumb :is(a,strong) {
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis;
}
body[data-view="workspace"] .workspace-breadcrumb .crumb-back {
  min-width:max-content; margin-right:4px; padding-right:10px;
}
body[data-view="workspace"] .topbar #workspaceJumpButton { display:none; }
body[data-view="workspace"] .topbar .header-actions {
  display:flex; flex:none; gap:7px; align-items:center; min-width:0;
}
body[data-view="workspace"] .topbar .header-actions .qa-trigger,
body[data-view="workspace"] .topbar #contextToggle,
body[data-view="workspace"] .workspace-account > summary {
  min-height:42px; border-radius:10px; font-size:12px; padding:7px 11px;
}
body[data-view="workspace"] .topbar #contextToggle {
  display:inline-flex; gap:5px; border:1px solid var(--line);
  background:transparent; color:var(--forest);
}
body[data-view="workspace"] .topbar #contextToggle::before {
  content:'✎'; font:22px/1 var(--serif);
}
body[data-view="workspace"] .topbar .locale-control select {
  width:78px; min-height:42px; max-width:78px; text-overflow:ellipsis;
}
body[data-view="workspace"] .workspace-account {
  display:block; position:relative; flex:none; min-width:0; z-index:42;
}
body[data-view="workspace"] .workspace-account > summary {
  display:flex; align-items:center; gap:9px; max-width:162px;
  border:1px solid var(--line); background:var(--paper);
  color:var(--forest); cursor:pointer; list-style:none;
  font:600 12px/1.2 var(--sans);
}
body[data-view="workspace"] .workspace-account > summary::-webkit-details-marker { display:none; }
body[data-view="workspace"] .workspace-account > summary .user-name {
  margin:0; min-width:0; overflow:hidden; white-space:nowrap;
  text-overflow:ellipsis; font:600 12px/1.2 var(--sans);
}
body[data-view="workspace"] .workspace-account > summary .account-glyph {
  flex:none; font-size:18px; line-height:1;
}
body[data-view="workspace"] .workspace-account[open] > summary {
  background:var(--card); border-color:var(--moss);
}
body[data-view="workspace"] .workspace-account .workspace-controls {
  display:flex; position:absolute; right:0; top:calc(100% + 8px);
  z-index:55; width:235px; min-width:0; padding:9px;
  flex-direction:column; align-items:stretch; gap:4px;
  border:1px solid var(--line); border-radius:12px;
  background:var(--card); box-shadow:0 15px 35px rgba(25,43,29,.18);
}
body[data-view="workspace"] .workspace-account .workspace-controls > :is(a,button) {
  box-sizing:border-box; display:flex; width:100%; min-height:44px;
  justify-content:flex-start; padding:9px 11px; gap:7px;
  text-align:left; border-radius:7px; font-size:13px;
}
body[data-view="workspace"] .workspace {
  height:100%; min-width:0; --sidebar-width:82px;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  grid-template-areas:"explorer content";
}
body[data-view="workspace"] .workspace.hb-module-board-enabled { --sidebar-width:82px; }
body[data-view="workspace"] .workspace.is-focused {
  --sidebar-width:64px;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  grid-template-areas:"explorer content";
}
body[data-view="workspace"] .context-dock { display:none !important; }
body[data-view="workspace"] .workspace-panel {
  padding:17px 20px 28px; overflow:auto;
  scrollbar-gutter:auto; overscroll-behavior:contain;
}
body[data-view="workspace"] .shell-explorer { padding:10px 5px; }
body[data-view="workspace"] .workspace-nav {gap:4px;}
body[data-view="workspace"] .workspace-nav a {
  min-height:51px; padding:8px 5px; gap:5px; flex-direction:column;
  justify-content:center; font-size:11px; text-align:center;
}
body[data-view="workspace"] .workspace-nav .nav-index {
  font:700 13px/1 var(--sans);
}
body[data-view="workspace"] .explorer-heading,
body[data-view="workspace"] .explorer-foot {display:none;}
body[data-view="workspace"] .hb-board-rail-link,
body[data-view="workspace"] .hb-board-rail-launch {
  width:70px; min-height:59px; padding:5px 2px;
}
body[data-view="workspace"] .panel-header {margin-bottom:12px; gap:12px;}
body[data-view="workspace"] .panel-header h2 {font-size:clamp(24px,2.1vw,31px);}
body[data-view="workspace"] .garden-journey-intro {margin-bottom:11px;}
body[data-view="workspace"] .garden-stage .boundary-preview {
  height:clamp(310px,calc(100dvh - 275px),760px);
}
body[data-view="workspace"] .map-toolbar {padding:9px 14px;}
body[data-view="workspace"] .map-toolbar h3 {font-size:17px;}
/* Daily overview is a workspace, not a second promotional homepage. */
body[data-view="workspace"] .home-today-compact {max-width:none;}
body[data-view="workspace"] .home-today-compact .home-today-header {
  display:flex; align-items:baseline; justify-content:space-between;
  flex-wrap:wrap; gap:6px 20px; margin:0 0 13px;
}
body[data-view="workspace"] .home-today-compact .home-today-header h2 {
  font:600 clamp(25px,2.5vw,32px)/1.15 var(--serif); margin:0;
}
body[data-view="workspace"] .home-today-compact .home-today-header .home-muted {
  max-width:none; font-size:12px; line-height:1.4;
}
body[data-view="workspace"] .home-today-compact .home-today-grid {
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:12px;
}
body[data-view="workspace"] .home-today-compact :is(.home-active-garden,.home-quick,.home-favorites) {
  padding:16px 17px; box-shadow:none;
}
body[data-view="workspace"] .home-today-compact .home-garden-identity {
  gap:12px; margin-bottom:14px;
}
body[data-view="workspace"] .home-today-compact .home-garden-emblem {
  width:54px; height:54px; flex-basis:54px;
}
body[data-view="workspace"] .home-today-compact .home-garden-name h3 {
  font:600 clamp(21px,2vw,26px)/1.2 var(--serif); margin:0 0 3px;
}
body[data-view="workspace"] .home-today-compact .home-quick h3,
body[data-view="workspace"] .home-today-compact .home-favorites h3 {
  font:600 19px/1.2 var(--serif); margin:0 0 9px;
}
body[data-view="workspace"] .home-today-compact .home-quick-links {gap:6px;}
body[data-view="workspace"] .home-today-compact .home-quick-item {
  min-height:46px; padding:5px 11px; gap:8px; font-size:12px;
}
body[data-view="workspace"] .home-today-compact .home-quick-art {
  width:31px; height:32px; flex-basis:31px; margin-right:3px;
}
body[data-view="workspace"] .home-today-compact .home-favorites {
  margin-top:12px; background:transparent; border-color:var(--line);
}
body[data-view="workspace"] .home-today-compact .home-favorite-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); margin:7px 0 0;
}
body[data-view="workspace"] .home-today-compact .home-favorite-item {
  min-height:48px; font-size:12px; padding:6px 9px;
}
body[data-view="workspace"] .home-today-compact .home-favorite-art {
  width:32px; height:34px; flex-basis:32px;
}
body[data-view="workspace"] .qa-today:has(.qa-grid:empty) {display:none;}
@media(max-width:900px) {
  body[data-view="workspace"] .topbar {height:56px; min-height:56px; padding:5px 11px; gap:8px;}
  body[data-view="workspace"] .topbar .brand {font-size:19px;}
  body[data-view="workspace"] .topbar .brand img {width:34px;height:34px;}
  body[data-view="workspace"] .workspace,
  body[data-view="workspace"] .workspace.is-focused {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr);
    grid-template-areas:"content";
  }
  body[data-view="workspace"] .workspace-panel {
    padding:12px 13px calc(var(--nav-height) + 20px + env(safe-area-inset-bottom));
  }
  body[data-view="workspace"] .shell-explorer {display:contents;}
  body[data-view="workspace"] .workspace-nav {
    position:fixed; inset:auto 0 0; z-index:35;
    grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px;
  }
  body[data-view="workspace"] .topbar .workspace-trail {flex:1 1 auto;}
  body[data-view="workspace"] .topbar .workspace-breadcrumb .crumb-ancestor,
  body[data-view="workspace"] .topbar .workspace-breadcrumb .crumb-divider,
  body[data-view="workspace"] .topbar .workspace-breadcrumb strong {display:none;}
  body[data-view="workspace"] .topbar .workspace-breadcrumb .crumb-back {
    border:0; padding:0; margin:0; font-size:12px;
  }
  body[data-view="workspace"] .hb-board-context:not([hidden]) {display:none !important;}
  body[data-view="workspace"] .home-today-compact .home-today-grid {grid-template-columns:1fr;}
  body[data-view="workspace"] .garden-stage .boundary-preview {
    height:clamp(220px,calc(100dvh - 285px),620px);
  }
}
@media(max-width:600px) {
  body[data-view="workspace"] .topbar {gap:6px; padding-inline:8px;}
  body[data-view="workspace"] .topbar .brand {font-size:0;}
  body[data-view="workspace"] .topbar .brand > span {display:none;}
  body[data-view="workspace"] .topbar .header-actions {gap:4px;}
  body[data-view="workspace"] .topbar .locale-control select {
    width:64px; max-width:64px; font-size:11px; padding:0 2px;
  }
  body[data-view="workspace"] .topbar #contextToggle {
    font-size:0; min-width:40px; width:40px; padding:0;
  }
  body[data-view="workspace"] .topbar #contextToggle::before {font-size:21px;}
  body[data-view="workspace"] .workspace-account > summary {
    width:43px; justify-content:center; padding:8px; min-height:42px;
  }
  body[data-view="workspace"] .workspace-account > summary .user-name {display:none;}
  body[data-view="workspace"] .topbar .header-actions .qa-trigger {min-width:53px; padding:8px 6px; font-size:12px;}
  body[data-view="workspace"] .home-today-compact .home-today-header {display:block;}
  body[data-view="workspace"] .home-today-compact :is(.home-active-garden,.home-quick,.home-favorites) {padding:13px;}
  body[data-view="workspace"] .home-today-compact .home-today-header .home-muted {margin-top:3px;}
}
@media(max-width:345px) {
  body[data-view="workspace"] .topbar .workspace-trail {display:none;}
}
@media print {
  body[data-view="workspace"] .workspace-account,
  body[data-view="workspace"] .topbar #contextToggle {display:none !important;}
}

/* A closed account menu must never create a persistent vertical toolbar. */
body[data-view="workspace"] .workspace-account:not([open]) .workspace-controls { display:none !important; }
