/* PMC Pilot v29 workspace guidance.
   The workspace is a short sequence of visible steps. Keep the form linear,
   give experienced users a compact management drawer, and keep every surface
   rectangular and readable for a first-time project engineer. */
body.pmc-unified .uw-page-heading {margin:20px 0 24px;}
body.pmc-unified .uw-page-heading h1 {font-size:clamp(28px,3.2vw,42px);max-width:none;line-height:1.18;margin:0 0 12px;}
body.pmc-unified .uw-page-heading p {max-width:85ch;margin:0;}
body.pmc-unified #unified-workspace {
  --uw-ink: var(--pmc-ink, #172e46);
  --uw-muted: var(--pmc-muted, #53667a);
  --uw-line: var(--pmc-line, #d8e1e8);
  --uw-blue: var(--pmc-blue, #1f64c6);
  --uw-panel: #fff;
}
body.pmc-unified #unified-workspace :is(.uw-summary,.uw-example,.uw-manage,
  #uw-project,#uw-details,#uw-evidence,#uw-file-references,#uw-export,
  #uw-result,#uw-history,#uw-import-panel) {
  scroll-margin-top: 28px;
}
body.pmc-unified #unified-workspace .uw-summary {
  border: 1px solid var(--uw-line);
  border-top: 6px solid var(--group-color, var(--uw-blue));
  background: var(--uw-panel);
  padding: 28px;
  margin-block: 0 20px;
}
body.pmc-unified #unified-workspace .uw-summary > p:not(.v2-kicker) {
  max-width: 78ch;
  color: var(--uw-muted);
}
body.pmc-unified #unified-workspace .uw-summary h2 {
  max-width: 42ch;
  margin-top: 7px;
}
/* Four numbered links keep the route visible without forcing the user through
   a wizard or hiding project fields behind tabs. */
body.pmc-unified #unified-workspace .uw-step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
}
body.pmc-unified #unified-workspace .uw-step-nav a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--uw-line);
  border-top: 4px solid var(--uw-blue);
  background: #f6f9fc;
  color: var(--uw-ink);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
}
body.pmc-unified #unified-workspace .uw-step-nav a:hover,
body.pmc-unified #unified-workspace .uw-step-nav a:focus-visible {
  border-color: var(--uw-blue);
  background: #eaf2ff;
}
body.pmc-unified #unified-workspace .uw-step-nav strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--uw-blue);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
body.pmc-unified #unified-workspace :is(.uw-example,.uw-manage) {
  margin: 16px 0 22px;
  border: 1px solid var(--uw-line);
  background: #f6f9fc;
  padding: 18px 20px;
}
body.pmc-unified #unified-workspace :is(.uw-example,.uw-manage) summary {
  color: var(--uw-ink);
  font-size: 17px;
  font-weight: 700;
}
body.pmc-unified #unified-workspace :is(.uw-example,.uw-manage)[open] > summary {
  margin-bottom: 14px;
}
body.pmc-unified #unified-workspace .uw-example p,
body.pmc-unified #unified-workspace .uw-manage p {
  max-width: 84ch;
}
body.pmc-unified #unified-workspace .uw-example > p:first-of-type {
  color: var(--uw-blue);
}
body.pmc-unified #unified-workspace .uw-manage .v2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
body.pmc-unified #unified-workspace .uw-manage .v2-actions > * {
  flex: 1 1 220px;
}
body.pmc-unified #unified-workspace .uw-input-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 20px 0;
}
body.pmc-unified #unified-workspace .uw-input-sections > .v2-panel,
body.pmc-unified #unified-workspace :is(#uw-evidence,#uw-file-references,#uw-export,#uw-history) {
  min-width: 0;
  border: 1px solid var(--uw-line);
  background: var(--uw-panel);
  padding: 28px;
}
body.pmc-unified #unified-workspace .uw-input-sections > .v2-panel {
  margin: 0;
}
body.pmc-unified #unified-workspace :is(#uw-project,#uw-details) {
  border-top: 4px solid var(--group-color, var(--uw-blue));
}
/* The project identity fields stay at a comfortable reading width. Task
   evidence may use the full track because descriptions and excerpts are long. */
body.pmc-unified #unified-workspace #uw-project > :is(label,input,select,textarea,.uw-field-help,.uw-field-example) {
  max-width: 74ch;
}
body.pmc-unified #unified-workspace :is(#uw-project,#uw-details,#uw-evidence,#uw-export) > h2 {
  margin-top: 0;
}
body.pmc-unified #unified-workspace #uw-evidence,
body.pmc-unified #unified-workspace #uw-file-references,
body.pmc-unified #unified-workspace #uw-export,
body.pmc-unified #unified-workspace #uw-history {
  margin-block: 20px;
}
body.pmc-unified #unified-workspace .uw-field-help {
  max-width: 78ch;
  margin: -9px 0 14px;
  padding-inline-start: 12px;
  border-inline-start: 3px solid #77d3c5;
  color: var(--uw-muted);
  font-size: 15px;
  line-height: 1.6;
}
body.pmc-unified #unified-workspace .uw-field-example {
  max-width: 78ch;
  margin: -8px 0 14px;
  padding: 10px 12px;
  border-inline-start: 3px solid #d99a2b;
  background: #fff7e5;
  color: var(--uw-ink);
}
body.pmc-unified #unified-workspace .uw-field-example span {
  color: #8a5a0a;
}
body.pmc-unified #unified-workspace .uw-export-guide {
  border-top: 4px solid #087b73;
}
body.pmc-unified #unified-workspace .uw-export-guide .v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 20px;
}
body.pmc-unified #unified-workspace .uw-export-guide .v2-actions > * {
  flex: 1 1 220px;
}
body.pmc-unified #unified-workspace .uw-file-key {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0;
  max-width: 86ch;
  margin: 22px 0;
  border: 1px solid var(--uw-line);
}
body.pmc-unified #unified-workspace .uw-file-key :is(dt,dd) {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--uw-line);
}
body.pmc-unified #unified-workspace .uw-file-key dt {
  background: #eaf2ff;
  color: var(--uw-blue);
  font-weight: 750;
}
body.pmc-unified #unified-workspace .uw-file-key dd {
  color: var(--uw-muted);
}
body.pmc-unified #unified-workspace .uw-file-key :is(dt:last-of-type,dd:last-of-type) {
  border-bottom: 0;
}
/* Reusable “how it works” blocks on the catalogue and guidance pages. */
body.pmc-unified .pmc-howto-steps {
  counter-reset: howto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
body.pmc-unified .pmc-howto-steps > li {
  counter-increment: howto;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--uw-line);
  border-top: 4px solid var(--uw-blue);
  background: #fff;
}
body.pmc-unified .pmc-howto-steps > li::before {
  content: counter(howto);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  background: var(--uw-blue);
  color: #fff;
  font-weight: 750;
}
@media (max-width: 980px) {
  body.pmc-unified #unified-workspace .uw-step-nav,
  body.pmc-unified .pmc-howto-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  body.pmc-unified #unified-workspace :is(.uw-summary,.uw-input-sections > .v2-panel,
    #uw-evidence,#uw-file-references,#uw-export,#uw-history) {
    padding: 20px;
  }
  body.pmc-unified #unified-workspace .uw-step-nav,
  body.pmc-unified .pmc-howto-steps {
    grid-template-columns: 1fr;
  }
  body.pmc-unified #unified-workspace .uw-step-nav a {
    min-height: 54px;
  }
  body.pmc-unified #unified-workspace .uw-file-key {
    grid-template-columns: 1fr;
  }
  body.pmc-unified #unified-workspace .uw-file-key dt {
    border-bottom: 0;
  }
  body.pmc-unified #unified-workspace .uw-file-key dd {
    border-bottom: 1px solid var(--uw-line);
  }
}
