/* The dashboard shell, typography, colors, and drawer come from institutional-ui
   and dashboard-type. These rules lay out the Quantum workspace inside that shell. */
* { box-sizing: border-box }
body { margin: 0 }
button, input { font: inherit }
a { color: var(--dp-accent-ink); text-underline-offset: 3px }
button, summary, a { touch-action: manipulation }
button { cursor: pointer }
button:disabled { cursor: wait }
[hidden] { display: none !important }
.skip-link { position: fixed; z-index: 60; top: -5rem; left: 1rem; padding: .75rem }
.skip-link:focus { top: .5rem }

[data-shell="root"] {
  --content-inset: clamp(20px, 2.7vw, 40px);
}
#sidebar [data-shell-section="ecosystem"] > nav + [data-shell-caption] {
  margin-block-start: 14px !important;
}
.sidebar-foot { border-block-start: 1px solid var(--dp-rule-soft) }
.sidebar-foot span { display: flex; align-items: center; gap: 8px; font-size: .875rem }
.sidebar-foot span::before, .network i, .eyebrow::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  flex: none; border-radius: 50%; background: var(--dp-accent);
}
.sidebar-foot p { margin: 4px 0 0; color: var(--dp-faint); font-size: 1rem }
.breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 1rem }
.breadcrumb span { color: var(--dp-muted) }
.breadcrumb strong, .mobile-product { font-weight: 600 }
.mobile-product { display: none }
.network {
  margin-inline-start: auto; display: inline-flex; gap: 8px; align-items: center;
  padding: 5px 9px; border: 1px solid var(--dp-rule); border-radius: 4px;
  font: 400 .875rem/1.5 var(--dp-font-mono); color: var(--dp-muted);
}
main { width: 100%; padding: 0 var(--content-inset) 3rem }
.hero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,24%);
  align-items: center; gap: clamp(16px,3vw,48px); padding: 32px 0 24px;
}
.hero-copy { min-width: 0 }
.eyebrow { display: flex; align-items: center; gap: 8px }
.eyebrow::before { background: #83e4d2 }
html[data-product] .hero h1 {
  margin: 12px 0; font-size: 2.25rem; line-height: 1.2; overflow-wrap: break-word;
}
html[data-product] body, .hero-copy p, main p {
  font-size: 1rem; line-height: 1.5;
}
.hero-copy p { letter-spacing: .1px; margin: 0; color: var(--dp-muted); max-width: 76ch }
.workspace {
  display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  align-items: start; gap: 24px;
}
.workspace > *, .scope {
  min-width: 0; border: 1px solid var(--dp-rule); border-radius: var(--dp-r-lg);
  padding: 24px; background: var(--dp-surface); box-shadow: var(--dp-shadow);
}
#workspace, #record, #scope { scroll-margin-top: 88px }
html[data-product] main h2 { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.3; overflow-wrap: anywhere }
html[data-product] main h3 { margin: 0; font-size: 1.25rem; line-height: 1.4 }
main p, .muted { color: var(--dp-muted) }
label { display: block; margin: 20px 0 8px; font-weight: 600; line-height: 1.6 }
input {
  width: 100%; min-width: 0; min-height: 48px; padding: 9px 12px; line-height: 1.4;
  border: 1px solid var(--dp-control-border); border-radius: var(--dp-r-sm);
  background: var(--dp-control); color: var(--dp-text);
}
input::placeholder { color: var(--dp-faint) }
input[type="file"] { overflow: hidden }
input::file-selector-button, .actions button:not(.minor) {
  color: var(--dp-text); background: var(--dp-raised);
  border: 1px solid var(--dp-control-border); border-radius: var(--dp-r-sm);
  padding: 6px 12px; font: inherit; cursor: pointer;
}
input::file-selector-button { margin-inline-end: 10px }
.hint { margin: 8px 0 0 }
#message, #handoff-status { margin-bottom: 0; overflow-wrap: anywhere }
#handoff-status:empty, .hint:empty { display: none }
details { margin: 20px 0; padding: 12px 0; border-block: 1px solid var(--dp-rule-soft) }
summary { cursor: pointer; font-weight: 500 }
summary span, label .muted { color: var(--dp-faint); font-weight: 400; margin-inline-start: 6px }
html[data-product] button.primary { width: 100%; min-height: 54px; margin-top: 8px; padding: 10px 16px; font-size: 1rem; line-height: 1.5; font-weight: 500 }
.minor {
  background: transparent; color: var(--dp-accent-ink); border: 0; padding: 8px 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.card-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px; border-block-end: 1px solid var(--dp-rule-soft);
}
.card-title .label, .tag { color: var(--dp-muted); font: 400 .875rem/1.5 var(--dp-font-mono) }
.card-title .label { text-transform: uppercase; letter-spacing: .06em }
.tag { padding: 4px 8px; min-height: 32px; line-height: 1.6; letter-spacing: .05rem; border: 1px solid var(--dp-rule); border-radius: 5px }
dl { margin: 16px 0 0 }
dl div {
  display: grid; grid-template-columns: minmax(96px,.55fr) minmax(0,1fr);
  gap: 12px; padding: 10px 0; border-top: 1px solid var(--dp-rule-soft);
}
dt { color: var(--dp-muted) }
dd { margin: 0; overflow-wrap: anywhere; font: 400 .875rem/1.6 var(--dp-font-mono) }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px }
.actions:has(> [hidden]:first-child + [hidden]:last-child) { display: none }
.actions :is(button,a) { display: inline-flex; align-items: center; min-height: 44px }
.check { border-top: 1px solid var(--dp-rule-soft); padding: 14px 0 }
.check p { margin: 4px 0 }
[data-result="invalid"], [data-result="mismatch"], [data-result="error"] { color: #ffa7a1 !important }
[data-result="verified"] { color: #83e9bd !important }
.scope { margin-top: 24px }
.scope p { max-width: 90ch; margin: 8px 0 12px }

@media (max-width: 1000px) {
  .workspace { grid-template-columns: minmax(0,1fr) }
}
@media (max-width: 760px) {
  [data-shell="root"] { --content-inset: 16px }
  .workspace > *, .scope { padding: 18px }
  .hero { padding: 24px 0 }
  html[data-product] .hero h1 { font-size: 1.75rem }
  .breadcrumb, .network { display: none }
  .mobile-product { display: inline-block }
}
@media (max-width: 660px) {
  .hero { grid-template-columns: minmax(0,1fr) clamp(68px,22vw,104px); gap: 12px }
  .hero-copy { display: contents }
  .overview-title { grid-area: 1 / 1; min-width: 0 }
  .overview-helix { grid-area: 1 / 2 }
  .hero-copy p { grid-column: 1 / -1 }
  html[data-product] .hero h1 { margin-bottom: 0 }
}
