/* Shared workspace palette. Use semantic colors separately for status and errors. */
:root {
  --workspace-page: #f4f7fa;
  --workspace-surface: #fff;
  --workspace-sidebar: #fbfcfe;
  --workspace-border: #dce4ee;
  --workspace-ink: #17283c;
  --workspace-muted: #53657b;
  --workspace-accent: #155ab5;
  --workspace-accent-hover: #104b98;
  --workspace-accent-soft: #e8f1fb;
  --workspace-nav-current: #123e73;
  --workspace-nav-marker: #2269a7;
  --workspace-focus: #1d5c91;
  --workspace-selection-border: #a9c5e4;
}

/* Authenticated workspace chrome. Both entry documents use the same geometry. */
html:has(.poc-shell) { font-size:16px; }
.poc-shell {
  --poc-rail: 14.5rem;
  --poc-top: 3.65rem;
  --poc-content: 78rem;
  --poc-gutter: clamp(.75rem, 2.1vw, 2rem);
  display: grid; grid-template-columns: var(--poc-rail) minmax(0, 1fr);
  grid-template-rows: auto 1fr; align-items: start;
  font-size: 1rem; font-synthesis: weight style; min-height: 100vh;
}
.poc-shell > .poc-header {
  grid-column: 1/-1; grid-row: 1; z-index: 19;
  position: sticky; top: 0; height: var(--poc-top); min-height: var(--poc-top);
  background: var(--workspace-surface); border-bottom: 1px solid var(--workspace-border);
}
.poc-shell .poc-top-inner {
  height: 100%; padding-inline: 1.35rem; display: flex; align-items: center;
  justify-content: flex-start; gap: .55rem;
}
.poc-shell .poc-home {
  color: var(--workspace-ink); font: 740 1rem/1.15 system-ui,sans-serif;
  display: inline-flex; align-items: center; min-height: 44px; gap: .55rem;
  text-decoration: none; min-width: 0; padding:0;
}
.poc-shell .poc-home:hover { text-decoration: underline; }
.poc-shell .poc-brand-icon {
  display: inline-block; width: 1.06rem; height: 1.06rem; flex: none;
  background: var(--workspace-accent); border-radius: .31rem;
}
.poc-shell .poc-brand-icon::after {
  content:""; display:block; width:.47rem; height:.27rem; transform:rotate(-45deg);
  border-left:2px solid white; border-bottom:2px solid white; margin:.26rem 0 0 .24rem;
}
.poc-shell .poc-head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .4rem; }
.poc-shell .poc-header-action, .poc-shell .poc-tab-action, .poc-shell .poc-menu-toggle {
  display: inline-flex; align-items:center; justify-content:center; width:max-content;
  min-height:44px; color:var(--workspace-ink); background:white; border:1px solid #becbdb;
  border-radius:.45rem; padding:.38rem .58rem; text-decoration:none; font:675 .84rem/1.2 system-ui,sans-serif;
}
.poc-shell .poc-menu-toggle { display:none; }
.poc-shell .poc-rail {
  grid-row:2; grid-column:1; box-sizing:border-box; display:block;
  position:sticky; top:var(--poc-top); height:calc(100dvh - var(--poc-top)); overflow:auto;
  background:var(--workspace-sidebar); border-inline-end:1px solid var(--workspace-border);
  padding:1.15rem .75rem; min-width:0;
}
.poc-shell .poc-rail-title { display:flex; align-items:center; justify-content:space-between; padding:.35rem .6rem .55rem; color:#132e43;font:730 1rem/1.4 system-ui,sans-serif; }
.poc-shell .poc-rail .poc-nav { display:block; margin:0; padding:0; border:0; }
.poc-shell .poc-nav-group { display:grid; gap:.12rem; margin:0; }
.poc-shell .poc-nav-group+.poc-nav-group { margin-top:1.15rem; padding-top:.75rem; border-top:1px solid var(--workspace-border); }
.poc-shell .poc-nav-label { margin:.3rem .63rem; padding:0; color:#506679; font:710 .74rem/1.4 system-ui,sans-serif; }
.poc-shell .poc-nav .poc-nav-item {
  display:flex; align-items:center; justify-content:flex-start; gap:.55rem; padding:.45rem .56rem;
  min-height:44px; border:1px solid transparent; border-radius:.45rem;
  color:#17374e; font:680 .87rem/1.3 system-ui,sans-serif; text-decoration:none;
  text-align:start; overflow-wrap:anywhere;
}
.poc-shell .poc-nav .poc-nav-item svg { flex:0 0 18px; }
.poc-shell .poc-nav .poc-nav-sub { padding-inline-start:2rem; font-size:.79rem; color:#344d65; }
.poc-shell .poc-nav .poc-nav-item[href]:hover { background:#eff5fb; border-color:#d5e4f5; }
.poc-shell .poc-nav .poc-nav-item[data-current-section=true] { background:#f0f6fc; color:var(--workspace-nav-current); }
.poc-shell .poc-nav .poc-nav-item[aria-current=page] {
  box-shadow:inset 3px 0 var(--workspace-nav-marker); background:var(--workspace-accent-soft); color:var(--workspace-nav-current);
}
.poc-shell .poc-nav .poc-nav-item[aria-disabled=true] { opacity:.54; cursor:not-allowed; }
.poc-shell > .poc-content { grid-column:2; grid-row:2; min-width:0; }
.poc-shell .poc-main { width:100%; max-width:var(--poc-content); margin:0 auto; padding:1.25rem var(--poc-gutter) 3rem; }
.poc-shell .poc-main h1 { font:720 clamp(1.45rem, 2.4vw, 1.9rem)/1.28 system-ui,sans-serif; letter-spacing:-.025em; }
.poc-shell .poc-tabs {
  display:flex; align-items:center; gap:.5rem; width:100%; min-width:0;
  padding:.35rem var(--poc-gutter); background:white; border-bottom:1px solid var(--workspace-border); margin:0;
}
.poc-shell .poc-tabs[hidden] {display:none}
.poc-shell .poc-tab-list { display:flex; align-items:center; min-width:0; flex:1 1 auto; overflow-x:auto; gap:.28rem; padding:.2rem; }
.poc-shell .poc-tabs .poc-tab {
 display:inline-flex; align-items:center; flex:0 0 auto; min-height:44px; width:max-content;
 max-width:min(20rem,62vw); padding:.38rem .65rem; border:1px solid transparent; border-radius:.45rem;
 color:#17374e; background:white; text-decoration:none; text-align:start; white-space:normal;
 font:675 .86rem/1.25 system-ui,sans-serif; overflow-wrap:anywhere;
}
.poc-shell .poc-tabs .poc-tab:hover { background:#eff5fb; }
.poc-shell .poc-tabs .poc-tab:is([aria-current=page],[aria-pressed=true]) {
 color:var(--workspace-nav-current); background:var(--workspace-accent-soft); border-color:var(--workspace-selection-border);
}
.poc-shell .poc-tab-action { flex:none; }
.poc-shell .poc-shade:not([hidden]) { display:none; }
@media(max-width:780px) {
 .poc-shell { display:block; }
 .poc-shell .poc-top-inner { padding-inline:.55rem; gap:.35rem; }
 .poc-shell .poc-home { font-size:clamp(.69rem, 3vw, .92rem); }
 .poc-shell .poc-menu-toggle { display:inline-flex; align-self:center; gap:.2rem; }
 .poc-shell .poc-rail {
   display:none; position:fixed; z-index:30; top:0; inset-inline-start:0; bottom:0;
   width:min(17rem,calc(100vw - 2.25rem)); height:100dvh; max-width:none;
   box-shadow:10px 0 32px #173d6540;
 }
 .poc-shell .poc-rail:is(.is-open,[data-open=true]) { display:block; visibility:visible; transform:none; }
 .poc-shell .poc-shade:not([hidden]) { display:block; position:fixed; z-index:29; inset:0; background:#12294172; }
}
.poc-shell .poc-rail-title :is(.nav-close,.workspace-close) { display:none; }
@media(max-width:780px) {
 .poc-shell .poc-rail-title :is(.nav-close,.workspace-close) { display:inline-flex; min-width:44px; }
}
@media(max-width:780px) {
 .poc-shell .poc-rail-title :is(.nav-close,.workspace-close) {
   box-sizing:border-box; position:static; height:44px; min-height:44px; padding:.3rem; align-self:center;
 }
}
.poc-shell .poc-rail-title :is(.nav-close,.workspace-close):focus-visible { outline:3px solid var(--workspace-focus); }
.poc-shell .poc-nav .poc-nav-item[aria-current=page][href]:hover {
  background:var(--workspace-accent-soft);
}
