/* Prototype workspaces: preserve the hub identity, bring the work together. */
[hidden] { display: none !important; }
body { background: #fff; }
#site-header { border-bottom: 1px solid var(--fine); }
#site-header nav a { text-decoration: none; border-radius: 6px; padding: 0 14px; font-weight: 600; }
#site-header nav a[aria-current="page"] { background: var(--fine); color: var(--navy); }
#site-header .account { padding-bottom: 14px; }
#overview { padding: 40px 0 28px; }
.overview-layout { display: block; }
.overview-main { max-width: 820px; }
.overview-main h2 { font: 700 40px/1.2 var(--font-body); letter-spacing: 0; margin: 0 0 8px; }
.overview-intro { margin: 0 0 28px; max-width: 60ch; }
#overview #in-progress { padding: 0; border: 0; }
#overview a, #workspace-history a, #review-packages a { color: var(--navy); }
.prototype-list { list-style: none; padding: 0; margin: 0; }
.prototype-list .stand-item { padding: 20px 0; margin: 0; border: 0; border-bottom: 1px solid var(--fine); background: none; border-radius: 0; }
.prototype-list .stand-item:first-child { border-top: 1px solid var(--fine); }
.prototype-title, .prototype-list .stand-name a { display: inline-block; font: 700 21px/1.3 var(--font-body); text-underline-offset: 4px; }
.prototype-title, .prototype-list .stand-name { overflow-wrap: anywhere; }
.prototype-purpose { margin: 6px 0; max-width: 60ch; }
.prototype-open { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.stand-wait { font-weight: 700; margin: 8px 0 4px; }
.stand-next { font-size: 15px; margin: 0; max-width: 65ch; }
#needs-you { background: var(--tint); color: var(--navy); border: 0; padding: 28px 0; }
#needs-you h2 { font: 700 22px/1.3 var(--font-body); color: var(--navy); }
#needs-you .lead { font-size: 16px; font-weight: 400; }
#needs-you.is-empty { padding: 24px 0; }
#needs-you .need-row { background: #fff; }
#needs-you .needs-copy { display: block; }
#needs-you .see-all { color: var(--navy); }
.workspace-context > a:first-child { color: var(--navy); }
.workflow-actions .btn { margin-left: 0; }
.workflow > [role="status"]:empty { display: none; }
.workflow-notice:empty { display: none; }
body[data-navigation-ready] h3:focus:not(:focus-visible), #overview-heading:focus:not(:focus-visible) { outline: none; }
.workspace-moved { overflow-wrap: anywhere; }
.workspace-moved pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-tools { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--fine); padding: 14px 0 0; }
.workspace-context { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.workspace-context > a:first-child { min-height: 44px; display: inline-flex; align-items: center; }
.workspace-context label { font-weight: 600; }
.workspace-context select { min-height: 44px; max-width: 100%; min-width: 0; padding: 8px 32px 8px 12px; background: #fff; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); font: inherit; }
#workspace-demo { margin-left: auto; }
.workspace-tools nav { display: flex; gap: 4px; margin-top: 10px; }
.workspace-tools nav a { text-decoration: none; padding: 12px 16px; border-bottom: 3px solid transparent; font-weight: 600; }
.workspace-tools nav a[aria-current="page"] { border-bottom-color: var(--navy); background: var(--tint); }
body[data-navigation-ready] #prototypes { padding: 28px 0 8px; border: 0; }
body[data-navigation-ready] #prototypes .team { border: 0; padding: 0; }
body[data-navigation-ready] #prototypes .team-head,
body[data-navigation-ready] #prototypes .card-open,
body[data-navigation-ready] #prototypes .lion-line,
body[data-navigation-ready] #prototypes a.demo { display: none; }
body[data-navigation-ready] #prototypes .card-grid { display: block; }
body[data-navigation-ready] #prototypes .card { border: 0; border-radius: 0; padding: 0; }
body[data-navigation-ready] #prototypes .card-body { padding: 0; }
body[data-navigation-ready] #prototypes h3 { font: 700 32px/1.2 var(--font-body); margin: 0 0 8px; }
body[data-navigation-ready] #prototypes .purpose { font-size: 18px; max-width: 65ch; }
body[data-navigation-ready] #prototypes .notes { font-size: 14px; }
body[data-navigation-ready] #prototypes .meta { font-weight: 700; margin: 12px 0; }
.workflow-next { margin: 8px 0 16px; max-width: 65ch; }
#coordination, #review-packages, #workspace-history, #agent-settings { padding: 24px 0 48px; border: 0; background: #fff; }
#coordination h2, #review-packages h2, #workspace-history h2, #agent-settings h2 { font: 700 24px/1.3 var(--font-body); margin-bottom: 12px; }
body[data-navigation-ready] #coordination-list > .workflow > h3 { display: none; }
body[data-navigation-ready] #coordination-list > .workflow { padding-top: 0; border: 0; }
body[data-navigation-ready] .pkg-group > h3 { display: none; }
.workflow > p, .workflow > div > p { max-width: 70ch; }
.workflow details, .workspace-moved { margin: 16px 0; }
.workflow summary, .workspace-moved > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
#workspace-packages, #workspace-history-list { max-width: 80ch; }
.workspace-empty { color: var(--navy); padding: 24px 0; }
#agent-settings .agent-connect { border: 0; padding-top: 16px; }
#agent-settings .agent-connect > h2 { font-size: 20px; }
@media (max-width: 767px) {
  #overview { padding-top: 28px; }
  .overview-layout { grid-template-columns: 1fr; gap: 24px; }
  .overview-main h2 { font-size: 34px; }
  #site-header .header-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  #site-header nav { grid-column: 1 / -1; margin: 0; }
  .workspace-context { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .workspace-context label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .workspace-context select { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  #workspace-demo { margin-left: 0; }
  .workspace-tools nav a { padding: 10px 8px; font-size: 15px; }
  body[data-navigation-ready] #prototypes h3 { font-size: 28px; }
}

.reviewed-context { padding: 8px 16px; background: var(--tint); border-radius: 4px; }
.reviewed-context a { color: var(--navy); display: inline-flex; align-items: center; min-height: 44px; }

/* Stage is a shared workflow projection, never a second editable status. */
.stage-chip { display: inline-flex; align-items: center; flex: none; width: fit-content; gap: 4px; padding: 4px 10px; border: 1px solid var(--navy); border-radius: 999px; background: var(--tint); color: var(--navy); font: 600 14px/1.4 var(--font-body); white-space: nowrap; }
.stage-chip[data-stage="final"] { background: #fff; }
.stage-chip[data-stage="attention"], .stage-chip[data-stage="unavailable"] { border-color: var(--scarlet); background: #fff4f4; }
.prototype-title-row, .prototype-list .stand-name, .workspace-title-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0; }
.workspace-title-row h3 { flex: 0 1 auto; }
.stage-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 20px; }
.stage-filter label { font-weight: 600; }
.stage-filter select { min-height: 44px; padding: 8px 32px 8px 12px; background: #fff; border: 1px solid var(--navy); border-radius: 4px; color: var(--navy); font: inherit; }
.stage-filter p { margin: 0; font-size: 14px; }
#stage-filter-empty { padding: 20px 0; }
.workspace-context-bar { padding: 20px 0 0; }
.workspace-tools { padding: 0; }
.workspace-tools nav { margin-top: 0; }
body[data-navigation-ready] #prototypes { padding-top: 20px; padding-bottom: 16px; }
body[data-navigation-ready] #prototypes .rv { display: none; }
body[data-workspace-tab="current"] #prototypes .workflow-next { display: none; }
.prototype-details { margin: 12px 0 0; font-size: 14px; }
.prototype-details summary { cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; }
.prototype-details p { margin: 4px 0; }
body[data-navigation-ready] #prototypes .workflow-next { margin-bottom: 0; }
body[data-navigation-ready] .workflow > .workflow-state { display: none; }
.round-next { margin: 16px 0 28px; }
.round-next-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 80ch; }
.round-next-heading h4 { margin: 0; }
.round-next-heading .btn { border: 1px solid var(--fine); color: var(--navy); margin-left: 0; }
.round-next > p { margin: 8px 0; font-size: 18px; }
.round-next .workflow-actions:empty { display: none; }
.review-brief { max-width: 72ch; margin-bottom: 28px; }
.review-brief h4 { margin: 0 0 12px; }
.review-brief .btn { margin-top: 4px; }
.round-details { max-width: 80ch; }
body[data-navigation-ready] .workflow-form { margin-top: 32px; margin-bottom: 32px; }
body[data-navigation-ready] :where(h2, h3, h4, details, textarea, button, select) { scroll-margin-top: 72px; }
@media (max-width: 767px) {
  .workspace-context-bar { padding-top: 16px; }
  .workspace-title-row { gap: 8px; }
  .round-next-heading { align-items: flex-start; }
  .round-next-heading .btn { padding: 8px 10px; }
  .round-next > p { font-size: 16px; }
}

/* One aligned brand row; project names carry operational meaning. */
#site-header .header-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 20px; }
.brand-lockup { display: grid; grid-template-columns: auto auto; align-items: start; gap: 20px; }
#site-header .brand { --logo-h: 40px; }
.brand-home, .wordmark-home { display: flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; border-radius: 4px; }
#site-header .brand-home { position: relative; }
/* Keep the official wordmark white; render its box mark separately in brand colors. */
#site-header .logo { background: transparent; padding: 0; height: var(--logo-h); filter: brightness(0) invert(1); clip-path: inset(0 0 0 16%); }
#site-header .brand-symbol { position: absolute; left: 0; width: calc(var(--logo-h) * 239 / 271); height: var(--logo-h); pointer-events: none; }
.brand-lockup h1 { font-size: 44px; line-height: 1; }
/* Bebas's cap height sits above the PNG's visual center. */
.wordmark-home { transform: translateY(4px); }
#site-header .partner { font-size: 14px; }
/* Names this surface under the Voltron wordmark, level with the Comprendo credit. */
.surface { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.surface-label { margin: 0; font: 400 16px/1.2 var(--font-body); white-space: nowrap; }
/* Optional link to the Studio; it leads the account row and wraps above it when narrow. */
#site-header .account { flex-wrap: wrap; }
.studio-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: var(--white); font-size: 16px; font-weight: 600; text-underline-offset: 4px; }
#site-header nav { justify-self: end; margin: 0; }
#site-header nav ul { gap: 4px; padding: 0; }
#site-header .account { padding-top: 0; padding-bottom: 12px; }
#sign-out { border: 1px solid #ffffff80; background: transparent; color: var(--white); font-weight: 600; }
body[data-navigation-ready] #prototypes .meta .badge { display: none; }
body[data-navigation-ready] h2[tabindex="-1"]:focus { outline: none; }
:where(a, button, select):focus:not(:focus-visible) { outline: none; }
:where(a, button, select):focus-visible { outline-width: 2px; outline-offset: 3px; }
#backlog { border: 0; padding: 36px 0 48px; }
#backlog h2 { font: 700 32px/1.2 var(--font-body); letter-spacing: 0; }
.backlog { max-width: 80ch; }
.backlog li { padding: 20px 0; gap: 16px; align-items: start; border-color: var(--fine); }
.backlog-title { font-size: 20px; line-height: 1.3; }
.backlog-context { margin: 4px 0 0; }
.backlog-project { color: var(--navy); font-size: 16px; }
a.backlog-project { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.backlog-note { font-size: 16px; margin-top: 4px; }
@media (hover: hover) {
  #site-header nav a:hover { background: #ffffff20; }
  #site-header nav a[aria-current="page"]:hover { background: var(--sky); }
  .brand-home:hover, .wordmark-home:hover { opacity: .85; }
  .studio-link:hover { text-decoration-thickness: 2px; }
  .workspace-tools nav a:hover { background: var(--tint); border-bottom-color: var(--sky); }
  .workspace-tools nav a[aria-current="page"]:hover { border-bottom-color: var(--navy); }
  #sign-out:hover { background: #ffffff20; }
  a.backlog-project:hover { text-decoration-thickness: 2px; }
}
#site-header nav a:active { background: var(--sky); color: var(--navy); }
.workspace-tools nav a:active { background: var(--fine); }
@media (max-width: 999px) {
  #site-header .header-bar { grid-template-columns: 1fr; gap: 16px; }
  #site-header nav { justify-self: start; width: 100%; }
  .brand-lockup { justify-content: start; }
}
@media (max-width: 767px) {
  #site-header .brand { --logo-h: 30px; }
  .brand-lockup { gap: 20px; }
  .brand-lockup h1 { font-size: 36px; }
  #site-header nav a { padding: 0 10px; }
  .studio-link { flex-basis: 100%; }
  #backlog h2 { font-size: 28px; }
  .backlog li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
}

/* Voltron is the shared backdrop; named lion icons identify projects. */
#main { position: relative; isolation: isolate; clip-path: inset(0); }
#main::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 150px;
  right: -140px;
  width: min(920px, 90vw);
  height: calc(100vh - 100px);
  min-height: 720px;
  background: url('/assets/art/voltron-transcend.png') center top / contain no-repeat;
  opacity: .13;
  pointer-events: none;
}
#main > section, #main #in-progress { background: transparent; }
#needs-you { background: #f0fbfee8; }
.prototype-icon { width: 40px; height: 40px; object-fit: contain; flex: none; }
.prototype-title, .prototype-list .stand-name a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.prototype-title-row { gap: 8px 16px; }
.prototype-title-row .stage-chip { margin-left: auto; }
.prototype-switcher { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prototype-switcher .prototype-icon { width: 32px; height: 32px; }
.prototype-switcher select { width: 100%; }
.workspace-title-row h3 { margin-bottom: 0 !important; }
.prototype-list .prototype-purpose, .prototype-list .stand-wait, .prototype-list .stand-next, .prototype-open { margin-left: 52px; }
@media (max-width: 767px) {
  #main::before { width: 640px; top: 200px; right: -260px; opacity: .075; }
  .prototype-switcher { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .prototype-title-row .stage-chip { margin-left: 52px; }
  .prototype-title-row { gap: 4px 12px; }
  .workspace-title-row { gap: 8px 12px; }
  .workspace-title-row h3 { flex: 1; min-width: 0; }
  .workspace-title-row .stage-chip { margin-left: 52px; }
}

body[data-navigation-ready] #prototypes .team,
body[data-navigation-ready] #prototypes .card { background: transparent; }
@media (max-width: 767px) {
  #site-header nav ul { flex-wrap: wrap; width: 100%; }
  .prototype-title { width: 100%; }
}
