/* ui/styles.css */
:root {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans CJK SC",
    sans-serif;
  color: #19353c;
  background: #f3f7f7;
  line-height: 1.6;
  font-synthesis: none;
  --teal:#146a75;
  --muted:#637880;
  --border:#d4e1e2;
  --warm:#a7671b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: #146a75;
}
button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: 9px 15px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
  gap: 6px;
}
button:hover,
.button-link:hover {
  filter: brightness(.96);
}
button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #e0ab52;
  outline-offset: 3px;
}
.secondary {
  background: #fff;
  color: #315f67;
  border-color: #adc5c9;
}
.text-button {
  border-color: transparent;
  background: transparent;
  color: #315f67;
  padding: 5px 8px;
}
.danger {
  background: #9e4b39;
  border-color: #9e4b39;
}
.danger.text-button {
  background: transparent;
  border-color: transparent;
  color: #984d3c;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 max(24px, calc((100vw - 1280px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: #234c55;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: .13em;
  font-weight: 500;
  color: #729096;
  margin-top: 3px;
}
.brand-mark {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #317482;
  border-radius: 8px;
  font-size: 21px;
  font-weight: 450;
}
.topbar #connection {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1280px;
  padding: 30px 24px;
  margin: auto;
}
h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  margin: 7px 0;
}
.eyebrow {
  color: #658087;
  font-size: 11px;
  letter-spacing: .08em;
  margin: 0;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  font-size: 14px;
  color: var(--muted);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 21px;
  margin: 20px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 0 15px;
}
.section-heading .eyebrow {
  margin-bottom: 5px;
}
.import-panel h2 {
  margin-bottom: 15px;
}
form#create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 16px;
  align-items: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
input:not([type=checkbox]):not([type=radio]),
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #b7cdd0;
  border-radius: 6px;
  padding: 9px;
  background: #fff;
  color: #19353c;
}
input[type=file] {
  font-size: 12px;
  min-height: 43px;
}
input:disabled {
  background: #eef2f2 !important;
  color: #6d8589;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.task-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 19px;
  min-width: 0;
}
.task-card h3 {
  font-size: 19px;
  margin: 10px 0;
  padding-right: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-card .thumbnail {
  position: absolute;
  right: 14px;
  top: 20px;
  width: 82px;
  height: 62px;
  object-fit: contain;
  background: #f2f6f6;
  border-radius: 6px;
}
.task-card .card-meta {
  font-size: 12px;
  color: var(--muted);
}
.task-card .toolbar {
  margin-top: 17px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eaf0f1;
  color: #3d626a;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge.warm,
.badge.unknown {
  background: #fff0d4;
  color: #885819;
}
.badge.failed {
  background: #fce9e4;
  color: #923e2f;
}
.badge.active {
  background: #e8f1ff;
  color: #2b5790;
}
.badge.verified {
  background: #dff0e6;
  color: #286144;
}
.empty {
  border: 1px dashed #c5d6d8;
  border-radius: 8px;
  padding: 22px;
  color: #71878b;
  font-size: 13px;
  width: 100%;
  grid-column: 1/-1;
}
.back {
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
.task-heading {
  margin-bottom: 19px;
}
.task-heading > div:last-child {
  text-align: right;
  flex-shrink: 0;
}
.compare-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
  font-size: 12px;
  color: #607d85;
}
.compare-heading > span:first-child {
  margin-right: auto;
}
.inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.inline input[type=checkbox],
input[type=radio] {
  margin: 0;
  accent-color: var(--teal);
}
.dual-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.viewpane {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.pane-heading {
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 78px;
}
.pane-heading h2 {
  margin-top: 3px;
}
.viewport {
  height: 405px;
  position: relative;
  background: #e9eff0;
  overflow: hidden;
}
.viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.view-message {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  background: #f2f7f7df;
  color: #566f78;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  pointer-events: none;
}
.view-help {
  font-size: 10px;
  color: #668086;
  background: #f7faf9;
  padding: 9px 13px;
  min-height: 33px;
}
.view-help span {
  color: #946523;
}
.pane-body {
  padding: 13px 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.pane-body .toolbar button,
.pane-body .button-link {
  font-size: 12px;
  padding: 7px 10px;
}
.pane-body .toolbar {
  margin: 5px 0 10px;
}
details {
  font-size: 12px;
}
summary {
  cursor: pointer;
  color: #395f68;
  line-height: 1.8;
}
details[open] > summary {
  margin-bottom: 10px;
}
.face-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-height: 180px;
  overflow: auto;
  padding: 4px 0;
}
.face-chip {
  background: #f5f8f8;
  color: #466975;
  border-color: #c5d5d8;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 5px;
}
.face-chip.selected {
  background: #ffe6ad;
  color: #634318;
  border-color: #c28c36;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.metric {
  background: #f3f7f7;
  border-radius: 6px;
  padding: 8px;
  min-width: 0;
}
.metric strong {
  font-size: 19px;
  display: block;
  color: #365e68;
}
.metric span {
  font-size: 10px;
  color: var(--muted);
}
.metric.unknown {
  background: #fff5de;
}
.metric.unknown strong {
  color: #8b6226;
}
.notice {
  background: #edf5f5;
  border: 1px solid #c4dadb;
  border-left: 4px solid #558994;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 0 0 17px;
  font-size: 13px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fff0eb;
  border-color: #e3b9ac;
  border-left-color: #b4644c;
  color: #903e2c;
}
.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}
.group-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfd;
}
.group-card.selected {
  border-color: #be9244;
  background: #fffaf0;
}
.group-card button {
  font-size: 11px;
  padding: 5px 9px;
}
.group-card p {
  font-size: 12px;
  color: #617880;
  overflow-wrap: anywhere;
}
.group-card .group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.group-editor {
  background: #f3f8f7;
  border: 1px solid #c9dcda;
  border-radius: 8px;
  padding: 16px;
}
.editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr .8fr 1fr;
  gap: 12px;
  align-items: end;
}
.check-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}
.check-field input {
  accent-color: var(--teal);
}
fieldset {
  border: 0;
  margin: 14px 0;
  padding: 0;
}
legend {
  font-size: 12px;
  margin-bottom: 7px;
}
legend .quiet {
  margin-left: 8px;
}
.tool-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  border: 1px solid #b9cdce;
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}
.tool-choice:has(input:checked) {
  background: #e1efed;
  border-color: #508b8f;
  color: #205e66;
}
.tool-choice input {
  accent-color: var(--teal);
}
.short-input {
  max-width: 76px;
  padding: 5px !important;
}
.save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}
.save-bar strong {
  font-size: 13px;
}
.search-panel {
  background: #f4f8f9;
  border-left: 4px solid #4b8791;
}
.search-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.search-controls label {
  flex-direction: row;
  align-items: center;
  font-size: 12px;
}
.search-controls input {
  width: 82px !important;
  padding: 7px !important;
}
.search-controls button {
  font-size: 13px;
}
.reason {
  color: #99532f;
  font-size: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.candidate-list {
  display: grid;
  gap: 11px;
}
.candidate-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.candidate-card.selected {
  border-color: #588e97;
  background: #f5fafb;
}
.candidate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.candidate-heading h3 {
  font-size: 14px;
}
.candidate-card .toolbar {
  margin-top: 10px;
}
.candidate-card button {
  font-size: 12px;
  padding: 6px 10px;
}
.candidate-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.7 ui-monospace, monospace;
  background: #f4f7f7;
  padding: 12px;
  max-height: 350px;
  overflow: auto;
}
.candidate-card .candidate-description {
  font-size: 12px;
  color: #5c7780;
  margin: 8px 0;
}
.candidate-card details {
  margin-top: 10px;
}
.timeline {
  padding: 14px 20px;
}
.timeline > summary {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.timeline > summary:before {
  content: "\25b8";
  color: #69858a;
}
.timeline[open] > summary:before {
  content: "\25be";
}
.timeline > summary > span:last-child {
  margin-left: auto;
}
.timeline ol {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid #e2eaea;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.timeline time {
  font-size: 11px;
  color: #70858d;
}
.timeline .event-text {
  white-space: pre-line;
}
.timeline .event-type {
  font-size: 10px;
  color: #718c95;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 29px;
  padding: 18px 0;
  color: #7b9095;
  font-size: 11px;
}
dialog {
  border: 1px solid #b9cccf;
  border-radius: 12px;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 24px;
  color: #19353c;
}
dialog::backdrop {
  background: #1a363c66;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  margin: 13px 0;
}
dialog label {
  margin: 17px 0;
}
#capabilities {
  white-space: pre-line;
  max-height: 240px;
  overflow: auto;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .viewport {
    height: 350px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    gap: 12px;
  }
  .group-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .brand {
    font-size: 15px;
  }
  .brand small {
    font-size: 8px;
  }
  main {
    padding: 22px 14px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 25px;
  }
  .task-heading {
    flex-direction: row;
  }
  .task-heading > div:last-child {
    text-align: right;
  }
  .panel {
    padding: 16px;
  }
  .dual-workspace {
    grid-template-columns: 1fr;
  }
  .viewport {
    height: 350px;
  }
  form#create-form {
    grid-template-columns: 1fr;
  }
  .compare-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .compare-heading > span:first-child {
    flex-basis: 100%;
  }
  .save-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-controls {
    gap: 10px;
  }
  .search-controls > button:first-of-type {
    width: 100%;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .editor-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .timeline > summary {
    gap: 7px;
  }
  .candidate-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pane-heading {
    padding: 13px;
  }
  .metrics {
    gap: 5px;
  }
  .metric strong {
    font-size: 17px;
  }
  .form-grid {
    gap: 10px;
  }
  .tool-choice {
    padding: 6px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.material-step-bar {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #f7faf9;
  border-top: 1px solid #e2ebeb;
}
.material-step-bar label {
  font-size: 12px;
  white-space: nowrap;
  color: #5c7981;
}
.material-step-bar select {
  font-size: 12px;
  padding: 6px;
  max-width: 100%;
  min-width: 0;
}
.cleanup-ack {
  align-items: flex-start;
  margin: 16px 0;
  font-size: 12px;
}
.cleanup-ack input {
  margin-top: 4px;
}
.task-card .toolbar {
  gap: 5px;
}
.task-card .text-button {
  font-size: 11px;
  padding: 6px 5px;
}
.error-details pre,
.failure-details pre,
#search-blocked pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 ui-monospace, monospace;
  max-height: 260px;
  overflow: auto;
  background: #f4f7f7;
  padding: 10px;
}
.failure-details {
  margin-top: 7px;
  color: #886344;
}
.more-candidates {
  border-top: 1px solid #d7e3e3;
  padding-top: 12px;
}
.more-candidates > .candidate-list {
  margin-top: 12px;
}
.more-candidates > summary {
  font-weight: 600;
}
#search-blocked {
  margin: 9px 0 13px;
}
#search-blocked li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
#search-blocked-list {
  padding-left: 18px;
}
.material-step-bar {
  height: 50px;
}
.task-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.task-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.task-preview {
  position: relative;
  height: 184px;
  margin: -5px -5px 16px;
  border-radius: 7px;
  background: #edf3f4;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.task-card .thumbnail {
  position: static;
  width: 100%;
  height: 100%;
  max-height: 184px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.thumbnail-placeholder {
  position: absolute;
  font-size: 12px;
  color: #637d85;
  padding: 20px;
  text-align: center;
}
.thumbnail-caption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 10px;
  color: #67828a;
  background: #f5f9f9dc;
  padding: 1px 6px;
  border-radius: 3px;
}
.task-card > .badge {
  align-self: flex-start;
}
.task-card h3 {
  padding-right: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 17px;
  line-height: 1.55;
  margin: 10px 0;
  min-height: 53px;
  overflow-wrap: anywhere;
}
.task-card .toolbar {
  margin-top: auto;
  padding-top: 15px;
}
.task-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.task-card {
  display: block;
  position: relative;
  padding: 17px 22px 22px;
  border-radius: 12px;
}
.task-preview {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 88px;
  height: 64px;
  margin: 0;
  background: transparent;
  border-radius: 6px;
}
.task-card .thumbnail {
  width: 88px;
  height: 64px;
  max-height: 64px;
}
.thumbnail-caption {
  display: none;
}
.thumbnail-placeholder {
  font-size: 9px;
  padding: 3px;
  line-height: 1.3;
}
.task-card h3 {
  padding-right: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
  font-size: 20px;
  margin: 6px 0 14px;
  line-height: 1.6;
}
.task-card > .badge {
  max-width: calc(100% - 92px);
}
.task-card .toolbar {
  margin-top: 20px;
  padding-top: 0;
}
@media (max-width: 680px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
}
.business-panel {
  border-left: 4px solid #648d8c;
}
.business-panel textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid #b7cdd0;
  border-radius: 6px;
  padding: 10px;
  color: #19353c;
  background: white;
  line-height: 1.55;
}
.business-panel textarea:disabled {
  background: #eef2f2;
}
.business-panel > .toolbar {
  margin-bottom: 10px;
}
.business-panel #business-session-id {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.business-panel #business-reason {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.business-activity ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-height: 280px;
  overflow: auto;
}
.business-activity li {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e1eaea;
}
.business-activity time {
  font-size: 11px;
  color: #647c84;
}
.business-activity p {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.business-panel .notice {
  margin-top: 10px;
}
.task-card .business-shortcut {
  font-size: 12px;
  margin-top: 10px;
  display: inline-block;
}
.comparison-panel .section-heading {
  flex-wrap: wrap;
  gap: 10px;
}
.comparison-panel .comparison-decision {
  font-weight: 600;
  margin: 10px 0 3px;
}
.comparison-panel .comparison-counts {
  margin: 12px 0;
}
.comparison-panel .toolbar {
  flex-wrap: wrap;
  margin: 12px 0;
}
.comparison-original pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 ui-monospace, monospace;
  max-height: 250px;
  overflow: auto;
  background: #f4f7f7;
  padding: 10px;
}
.batch-controls {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.batch-toolbar button {
  font-size: 12px;
  padding: 6px 10px;
}
.batch-status {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.batch-details {
  margin-top: 6px;
}
.batch-members {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}
.batch-members li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 2fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #edf2f2;
  overflow-wrap: anywhere;
}
.result-diff {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
}
.result-diff label {
  margin: 10px 0;
}
.diff-operation {
  padding: 8px 0;
  border-top: 1px solid #e0ebeb;
}
.diff-parameters {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
.diff-parameters th,
.diff-parameters td {
  vertical-align: top;
  text-align: left;
  padding: 6px;
  border: 1px solid #dbe5e5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.diff-parameters th:first-child {
  width: 24%;
}
.diff-parameters td {
  font-family: ui-monospace, monospace;
}
.workspace-switch button[aria-pressed=true] {
  background: #e3f0ee;
  border-color: #5c9298;
  color: #174e58;
}
#result-view-notice {
  max-width: 420px;
}
@media (max-width: 760px) {
  .batch-members li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .batch-members li .quiet {
    grid-column: 1/-1;
  }
  .batch-toolbar {
    gap: 6px;
  }
  .batch-toolbar span {
    flex-basis: 100%;
  }
}
.batch-selection {
  margin-bottom: 10px;
}
.batch-selection-bar {
  margin: 8px 0;
}
.batch-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5px 12px;
  max-height: 210px;
  overflow: auto;
}
.batch-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  min-width: 0;
}
.batch-choice input {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}
.batch-choice span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-budgets {
  margin: 10px 0;
  align-items: center;
}
.batch-budgets label {
  font-size: 12px;
  margin: 0;
}
.batch-budgets input {
  width: 76px;
  padding: 5px;
}
.batch-budgets select {
  max-width: 300px;
  padding: 5px;
  font-size: 12px;
}
#batch-selection-note {
  margin: 7px 0;
}
.batch-budgets label {
  max-width: 100%;
  flex-wrap: wrap;
}
.batch-budgets select {
  max-width: min(300px, 100%);
  min-width: 0;
}
.batch-choice {
  flex-direction: row;
  justify-content: flex-start;
}
.process-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.process-confirm input {
  width: auto;
}
#process-saved-status {
  font-weight: 600;
}
#process-new-group {
  align-self: end;
}
.metric.material-residual {
  border-left: 5px solid #d83c38;
}
.metric.material-missing {
  border-left: 5px solid #e0ae16;
}
.metric.material-unknown {
  border-left: 5px solid #3179d5;
}
.rough-plan-panel {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
  min-width: 0;
}
.rough-plan-panel p,
.rough-plan-panel pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.rough-plan-panel .toolbar {
  flex-wrap: wrap;
}
.rough-plan-panel ol {
  padding-left: 20px;
}
.rough-plan-panel li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.rough-plan-panel li[data-kind=finish] {
  background: #f4f7f7;
}
.rough-plan-panel li label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.rough-plan-panel input[type=checkbox] {
  width: auto;
}
.rough-plan-panel .process-triad {
  margin: 10px 0;
}
.rough-plan-panel .process-card {
  min-width: 0;
}
#rough-plan-status {
  font-weight: 600;
}
#rough-plan-step-receipts li {
  font: 11px/1.6 ui-monospace, monospace;
}
#rough-plan-execution[data-state=UNKNOWN] {
  border-left: 4px solid #3179d5;
  padding-left: 8px;
}
#rough-plan-readiness[data-state=BLOCKED],
#rough-plan-status[data-state=FAILED] {
  border-left: 4px solid #bd3f3f;
  padding-left: 8px;
}
#rough-plan-readiness {
  font-size: 12px;
}
#rough-plan-conditions,
#rough-plan-directions {
  font-size: 12px;
}
body.workpiece-page .constraint-details[data-rough=true] > :not(.rough-editor-details) {
  display: none;
}
body.workpiece-page .rough-editor-details[hidden] {
  display: none;
}
body.workpiece-page .rough-editor-details .process-triad {
  margin: 0;
}
body.workpiece-page .workspace-stage[data-rough=true].constraint-layout > .constraint-left {
  display: flex;
  flex-direction: column;
  align-self: start;
}
body.workpiece-page .workspace-stage[data-rough=true].constraint-layout .constraint-left > .dual-workspace {
  position: relative;
  top: auto;
  order: 0;
  flex: 0 0 auto;
}
body.workpiece-page .workspace-stage[data-rough=true].constraint-layout .constraint-left > .constraint-details {
  order: 1;
  flex: 0 0 auto;
  margin-top: 12px;
}
body.workpiece-page .rough-plan-panel #rough-direction-details {
  font-size: 12px;
  margin: 6px 0;
}
body.workpiece-page .rough-plan-panel #rough-plan-sequence li {
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.45;
}
body.workpiece-page .rough-plan-panel #rough-plan-sequence button {
  padding: 5px 7px;
  font-size: 11px;
}
body.workpiece-page .rough-plan-panel #rough-plan-sequence li[data-kind=finish] {
  padding: 5px 7px;
}
body.workpiece-page .rough-plan-panel #rough-plan-directions {
  padding-left: 16px;
}
body.workpiece-page #rough-plan-step-receipts {
  min-width: 0;
  padding-left: 0;
  list-style: none;
}
body.workpiece-page #rough-plan-step-receipts li {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.process-arrangement {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  min-width: 0;
}
.process-arrangement h3 {
  margin-bottom: 8px;
}
.arrangement-new {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 8px 0;
}
.process-arrangement select {
  max-width: 100%;
}
.process-arrangement button {
  padding: 7px 9px;
  font-size: 12px;
}
body.workpiece-page #owner-preselection label:has(#process-current-group),
body.workpiece-page #process-new-group {
  display: none;
}
body.workpiece-page .rough-plan-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
body.workpiece-page #rough-step-editor .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.workpiece-page #rough-sequence-details {
  margin: 10px 0;
  font-size: 12px;
}
body.workpiece-page #rough-plan-save,
body.workpiece-page #rough-plan-run {
  width: 100%;
}
body.workpiece-page .workspace-stage[data-rough=true] > .groups-panel > .section-heading,
body.workpiece-page .workspace-stage[data-rough=true] #workspace-selection,
body.workpiece-page .workspace-stage[data-rough=true] #workspace-intent-continuity {
  display: none;
}
#rough-save-conditions {
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
}
#rough-save-conditions li {
  display: block;
  border: 0;
  padding: 3px 0;
  overflow-wrap: anywhere;
}
#rough-save-conditions [data-ready=true] {
  color: #286144;
}
#rough-save-conditions [data-ready=false] {
  color: #b33b35;
}
#rough-step-editor small {
  font-size: 11px;
  color: var(--muted);
}
#process-history-results .button-link {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  margin: .35rem 0;
}
.quality-final-review {
  min-width: 0;
  padding: 12px;
  border: 1px solid #bdc8d4;
  border-radius: 8px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.quality-final-review button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}
.quality-inherited-witness {
  border-left: 3px solid #be853b;
  padding-left: 8px;
}
.quality-final-cards {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.quality-final-card {
  min-width: 0;
  border: 1px solid #d9e1e8;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}
.quality-final-card h4 {
  margin: 0 0 10px;
  font-size: 1em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}
.quality-final-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quality-final-counts > div {
  min-width: 0;
  padding: 8px;
  background: #f3f6f9;
  border-radius: 5px;
}
.quality-final-counts span,
.quality-final-counts strong,
.quality-final-counts small {
  display: block;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: normal;
}
.quality-final-counts strong {
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
.quality-final-counts small {
  color: #52697b;
  font-size: .8em;
  word-break: keep-all;
}
.quality-final-material-label {
  font-size: .9em;
  font-weight: 600;
}
.quality-final-card details {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e1e7ec;
  font-size: .9em;
  line-height: 1.6;
}
.quality-final-card summary {
  cursor: pointer;
  padding: 5px 0;
}
.quality-final-card details p {
  margin: 8px 0;
}
.quality-final-unmeasured {
  margin: 0;
  color: #795817;
}
.quality-candidate-comparison {
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #c7d3de;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.quality-candidate-card {
  min-width: 0;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
}
.quality-candidate-card h4 {
  font-size: 1em;
  line-height: 1.5;
  margin: 0 0 8px;
}
.quality-candidate-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quality-candidate-metrics > div {
  min-width: 0;
  background: #f3f6f9;
  border-radius: 5px;
  padding: 8px;
}
.quality-candidate-metrics p {
  margin: 6px 0;
  line-height: 1.7;
  word-break: keep-all;
}
.quality-candidate-metrics small {
  display: block;
  line-height: 1.6;
  color: #52697b;
}
.quality-candidate-reason {
  font-weight: 600;
  line-height: 1.6;
}
.quality-candidate-changes {
  padding-left: 20px;
  line-height: 1.7;
}
.quality-candidate-normal {
  border-top: 1px solid #dce4ec;
  padding-top: 8px;
  font-size: .9em;
  line-height: 1.7;
}
.quality-candidate-normal summary {
  cursor: pointer;
  padding: 5px 0;
}
.quality-candidate-normal-unavailable {
  font-size: .9em;
  color: #52697b;
  line-height: 1.6;
}
.quality-exploration-final {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d5dfe8;
  min-width: 0;
}
.quality-exploration-final h4 {
  font-size: 1em;
  line-height: 1.5;
  margin: 0 0 8px;
}
.quality-exploration-final details {
  font-size: .9em;
  line-height: 1.7;
}
.quality-exploration-final summary {
  cursor: pointer;
  padding: 6px 0;
}

/* ui/workspace.css */
body.workpiece-page .topbar {
  height: 48px;
  padding: 0 16px;
}
body.workpiece-page .brand small {
  display: none;
}
body.workpiece-page main {
  max-width: none;
  padding: 10px 16px 100px;
}
body.workpiece-page #work > .back {
  margin: 0;
  font-size: 12px;
}
body.workpiece-page .task-heading {
  margin: 0 0 8px;
  gap: 12px;
}
body.workpiece-page .task-heading .eyebrow {
  display: none;
}
body.workpiece-page #work-name {
  font-size: 23px;
  margin: 2px 0;
}
body.workpiece-page #work-summary {
  font-size: 12px;
  margin: 0;
}
body.workpiece-page #work-storage {
  margin: 0;
}
body.workpiece-page #task-block-details {
  margin: 8px 0;
  padding: 10px;
}
body.workpiece-page .workspace-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}
body.workpiece-page .workspace-switch button {
  font-size: 13px;
  padding: 6px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
body.workpiece-page .workspace-switch button[aria-pressed=true] {
  background: #146a75;
  color: #fff;
}
body.workpiece-page .workspace-switch > .quiet {
  margin-right: auto;
}
body.workpiece-page .workspace-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
  scroll-margin-top: 12px;
}
body.workpiece-page .workspace-stage[data-mode=select] .dual-workspace {
  grid-template-columns: minmax(0, 1fr);
}
body.workpiece-page .workspace-stage .viewport {
  height: clamp(340px, calc(100vh - 400px), 650px);
}
body.workpiece-page .workspace-stage .pane-heading {
  min-height: 42px;
  padding: 8px 14px;
}
body.workpiece-page .workspace-stage .pane-heading .eyebrow {
  display: none;
}
body.workpiece-page .workspace-stage .pane-heading h2 {
  margin: 0;
}
body.workpiece-page .workspace-stage .material-step-bar {
  height: 42px;
  min-height: 42px;
  padding: 4px 14px;
  font-size: 12px;
  line-height: 1.5;
}
body.workpiece-page .workspace-stage .pane-body {
  padding: 8px 12px;
}
body.workpiece-page .workspace-stage .view-help {
  min-height: 46px;
  padding: 5px 12px;
}
body.workpiece-page .groups-panel,
body.workpiece-page .workspace-result-panel {
  margin: 0;
  padding: 14px;
  position: static;
  max-height: none;
  overflow: visible;
  min-width: 0;
}
body.workpiece-page .groups-panel .section-heading {
  margin: 0 0 5px;
  gap: 5px;
  flex-wrap: wrap;
}
body.workpiece-page .groups-panel .eyebrow {
  display: none;
}
body.workpiece-page .groups-panel h2,
body.workpiece-page .workspace-result-panel > h2 {
  font-size: 16px;
}
body.workpiece-page .workspace-selection {
  font-size: 12px;
  color: #775922;
  margin: 5px 0 8px;
}
body.workpiece-page #group-list {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 0 0 10px;
  max-height: 115px;
}
body.workpiece-page .group-card {
  min-width: 150px;
  max-width: 210px;
  padding: 8px;
}
body.workpiece-page .group-card p {
  display: none;
}
body.workpiece-page .group-card .group-title {
  margin-bottom: 5px;
}
body.workpiece-page .group-editor {
  padding: 10px;
}
body.workpiece-page .editor-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 8px;
}
body.workpiece-page #group-face-summary {
  max-height: 36px;
  overflow: auto;
}
body.workpiece-page .groups-panel .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body.workpiece-page .groups-panel input:not([type=checkbox]):not([type=radio]) {
  padding: 6px;
}
body.workpiece-page .groups-panel fieldset {
  margin: 10px 0;
}
body.workpiece-page .tool-choice {
  padding: 5px 7px;
}
body.workpiece-page .groups-panel .toolbar {
  gap: 6px;
}
body.workpiece-page .groups-panel .toolbar button {
  padding: 7px 9px;
  font-size: 12px;
}
body.workpiece-page .save-bar {
  margin-top: 10px;
  display: block;
}
body.workpiece-page .save-bar .quiet,
body.workpiece-page #reload-intent {
  font-size: 11px;
}
body.workpiece-page #reload-intent {
  padding: 5px 9px;
}
body.workpiece-page #group-form > p.quiet {
  font-size: 11px;
  line-height: 1.5;
}
body.workpiece-page #operation-playback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #d3e0e2;
}
body.workpiece-page #step-current-label {
  grid-column: 1/-1;
  font-size: 14px;
  min-height: 23px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.workpiece-page #step-buttons {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.workpiece-page #operation-playback button {
  font-size: 12px;
  padding: 7px 10px;
  min-height: 36px;
}
body.workpiece-page #step-buttons button[aria-pressed=true] {
  background: #146a75;
  color: white;
}
body.workpiece-page #step-description {
  grid-column: 1/-1;
  margin: 2px 0;
  overflow-wrap: anywhere;
}
body.workpiece-page .workspace-result-panel .pane-body {
  padding: 0;
}
body.workpiece-page .workspace-result-panel .metric strong {
  font-size: 17px;
}
body.workpiece-page .workspace-result-panel .toolbar {
  gap: 7px;
}
body.workpiece-page .workspace-metric-note {
  font-size: 12px;
  color: #607980;
  margin: 0 0 8px;
}
body.workpiece-page .workspace-metric-note.frame-warning {
  background: #fff0d4;
  color: #885819;
  padding: 9px;
  border-radius: 5px;
}
body.workpiece-page .workspace-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fffffff5;
  border-top: 1px solid #bed1d3;
  box-shadow: 0 -3px 16px #173c4510;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
body.workpiece-page .workspace-dock button {
  min-height: 46px;
  font-size: 14px;
}
body.workpiece-page .workspace-dock-hint {
  display: block;
  font-size: 13px;
  color: #607980;
}
body.workpiece-page .workspace-run-progress {
  margin: 3px 0 0;
  color: #146a75;
  font-size: 13px;
  font-weight: 600;
}
body.workpiece-page .workspace-run-progress.waiting {
  color: #855b20;
}
body.workpiece-page .search-live {
  padding: 12px;
  background: #edf6f5;
  border-left: 3px solid #146a75;
  border-radius: 5px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
body.workpiece-page .search-live.waiting {
  background: #fff5e5;
  border-left-color: #a2742c;
}
body.workpiece-page .search-live p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}
body.workpiece-page .search-live-title {
  display: block;
  font-size: 15px;
}
body.workpiece-page .search-live-freshness {
  color: #61777b;
}
body.workpiece-page .search-live-pause {
  color: #855b20;
}
body.workpiece-page .material-diagnostic {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
  background: #fff5e5;
  color: #855b20;
  padding: 10px;
  border-radius: 5px;
  margin: 8px 0;
}
body.workpiece-page #search-progress {
  display: none;
}
body.workpiece-page .workspace-dock-status {
  margin-right: auto;
  min-width: 0;
  flex: 1;
}
body.workpiece-page .workspace-tray {
  position: fixed;
  z-index: 19;
  right: 16px;
  bottom: calc(var(--workspace-dock-height,70px) + 12px);
  width: min(510px, calc(100vw - 32px));
  max-height: calc(100vh - var(--workspace-dock-height,70px) - 85px);
  overflow: auto;
  margin: 0;
  box-shadow: 0 8px 38px #173c4530;
}
body.workpiece-page .workspace-tray-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d4e1e2;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
body.workpiece-page .workspace-tray > .section-heading .eyebrow {
  display: none;
}
body.workpiece-page .workspace-tray > .section-heading h2 {
  font-size: 16px;
}
body.workpiece-page #notice,
body.workpiece-page #error {
  padding: 7px 11px;
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.5;
  max-height: 62px;
  overflow: auto;
}
body.workpiece-page #task-block,
body.workpiece-page #error {
  display: none;
}
body.workpiece-page #workspace-problems {
  margin: 6px 0 8px;
  padding: 8px 12px;
  max-height: 64px;
  overflow: auto;
}
body.workpiece-page .workspace-dock-status #notice {
  padding: 0;
  border: 0;
  background: transparent;
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.4;
  max-height: 32px;
  overflow: auto;
}
@media (max-width: 1100px) {
  body.workpiece-page .workspace-stage {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
  }
  body.workpiece-page main {
    padding: 10px 12px 110px;
  }
  body.workpiece-page .workspace-stage[data-mode=compare] .dual-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  body.workpiece-page .workspace-stage[data-mode=compare] .viewport {
    height: 320px;
  }
  body.workpiece-page .workspace-dock {
    padding: 10px 12px;
    gap: 8px;
  }
}
@media (max-width: 720px) {
  body.workpiece-page .workspace-stage {
    grid-template-columns: 1fr;
  }
  body.workpiece-page main {
    padding-bottom: 140px;
  }
  body.workpiece-page .workspace-stage .viewport {
    height: 350px;
  }
  body.workpiece-page .workspace-switch {
    flex-wrap: wrap;
  }
  body.workpiece-page .workspace-switch > .quiet {
    width: 100%;
  }
  body.workpiece-page .workspace-dock {
    flex-wrap: wrap;
  }
  body.workpiece-page .workspace-dock-status {
    flex-basis: 100%;
    width: 100%;
  }
  body.workpiece-page .workspace-dock button {
    flex: 1;
    padding: 7px 8px;
    font-size: 12px;
  }
  body.workpiece-page .workspace-tray {
    right: 10px;
  }
  body.workpiece-page .task-heading {
    align-items: flex-start;
  }
  body.workpiece-page #work-name {
    font-size: 20px;
  }
  body.workpiece-page #work-storage {
    font-size: 10px;
  }
}
body.workpiece-page main {
  padding-bottom: calc(var(--workspace-dock-height,100px) + 20px);
}
label.capability-annotated {
  display: flex;
  flex-wrap: wrap;
  white-space: nowrap;
  align-items: center;
}
label.capability-annotated [data-capability-hint] {
  flex-basis: 100%;
  white-space: normal;
}
body.workpiece-page .workspace-stage.constraint-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
body.workpiece-page .constraint-layout > .constraint-left {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  height: var(--constraint-available-height,calc(100vh - var(--workspace-dock-height,100px) - 24px));
  min-height: 0;
  overflow: hidden;
}
body.workpiece-page .constraint-layout .constraint-left > .dual-workspace {
  position: static;
  flex: 0 0 auto;
  min-height: 0;
}
body.workpiece-page .constraint-layout > .groups-panel {
  grid-column: 2;
  grid-row: 1;
}
body.workpiece-page .constraint-layout #face-list-panel,
body.workpiece-page .constraint-layout #group-form,
body.workpiece-page .constraint-layout #workspace-intent-continuity,
body.workpiece-page .constraint-layout .save-bar .quiet {
  display: none;
}
body.workpiece-page .constraint-layout .viewport {
  height: var(--constraint-model-height,300px);
}
body.workpiece-page .constraint-layout .constraint-details {
  margin: 12px 0 0;
  padding: 16px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding: 16px 0;
}
body.workpiece-page .constraint-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
body.workpiece-page .constraint-info-grid > section {
  min-width: 0;
}
body.workpiece-page .constraint-info-grid .constraint-rough,
body.workpiece-page .constraint-info-grid > details {
  grid-column: 1/-1;
}
body.workpiece-page .constraint-info-grid .form-grid {
  grid-template-columns: repeat(5, minmax(75px, 1fr));
  gap: 8px;
}
body.workpiece-page .constraint-tools fieldset {
  margin: 12px 0;
  padding: 10px;
}
body.workpiece-page .constraint-tools input:not([type=checkbox]),
body.workpiece-page .constraint-tools select {
  width: 100%;
  min-width: 0;
  padding: 7px;
}
body.workpiece-page .constraint-common p {
  font-size: 12px;
  line-height: 1.55;
}
body.workpiece-page .constraint-common .toolbar {
  display: grid;
  gap: 8px;
}
body.workpiece-page .constraint-common .toolbar button {
  width: 100%;
}
body.workpiece-page .constraint-common .form-grid {
  grid-template-columns: 1fr;
}
body.workpiece-page .direction-choice {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
  white-space: normal;
  line-height: 1.6;
  font-size: 12px;
}
body.workpiece-page .direction-choice[aria-pressed=true] {
  outline: 3px solid #226781;
  outline-offset: 1px;
  background: #ecf5f7;
}
body.workpiece-page .direction-choice.necessary_candidate {
  border-left: 5px solid #c18513;
}
body.workpiece-page .direction-choice.sufficient_source_contact {
  border-left: 5px solid #087f86;
}
body.workpiece-page .direction-choice.unknown {
  border-left: 5px solid #728298;
}
body.workpiece-page .direction-choice.contradicted {
  border-left: 5px solid #b84650;
}
body.workpiece-page #constraint-selected-direction {
  padding: 10px;
  background: #edf5f7;
  line-height: 1.7;
}
body.workpiece-page .constraint-info-grid pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body.workpiece-page #constraint-face-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: none;
  overflow: visible;
}
body.workpiece-page .constraint-details h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
@media (max-width: 1250px) {
  body.workpiece-page .constraint-info-grid {
    grid-template-columns: 1fr;
  }
  body.workpiece-page .constraint-info-grid .form-grid {
    grid-template-columns: repeat(3, minmax(75px, 1fr));
  }
}
@media (max-width: 720px) {
  body.workpiece-page .workspace-stage.constraint-layout {
    grid-template-columns: 1fr;
  }
  body.workpiece-page .constraint-layout .constraint-left > .dual-workspace {
    position: static;
  }
  body.workpiece-page .constraint-layout > .groups-panel {
    grid-column: 1;
    grid-row: 2;
  }
  body.workpiece-page .constraint-layout > .constraint-left {
    grid-column: 1;
    grid-row: 1;
    position: static;
    height: auto;
    display: block;
    overflow: visible;
  }
  body.workpiece-page .constraint-layout .viewport {
    height: 350px;
  }
  body.workpiece-page .constraint-layout .constraint-details {
    overflow: visible;
    min-height: 0;
  }
}
body.workpiece-page .constraint-tuple-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #c8d9df;
  border-radius: 7px;
  background: #f7fbfc;
}
body.workpiece-page .constraint-tuple-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.6;
}
body.workpiece-page .constraint-tuple-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0;
}
body.workpiece-page .constraint-coverage-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 9px 0;
}
body.workpiece-page .constraint-coverage-counts summary {
  font-size: 12px;
  cursor: pointer;
}
body.workpiece-page .constraint-result-banner {
  padding: 10px 12px;
  margin: 10px 0;
  border: 1px solid #a7c5d0;
  border-left: 4px solid #517d8c;
  border-radius: 5px;
  background: #eef7fa;
  color: #1e4350;
  font-size: 13px;
  line-height: 1.65;
}
body.workpiece-page #constraint-contact-coverage {
  padding: 10px;
  margin-bottom: 12px;
  background: #f6f4fa;
  border: 1px solid #c9c1d7;
  border-radius: 5px;
}
body.workpiece-page #constraint-contact-coverage h4 {
  margin: 0 0 8px;
}
body.workpiece-page #constraint-contact-coverage p {
  font-size: 12px;
  line-height: 1.65;
  margin: 5px 0;
}
body.workpiece-page .view-coverage-summary {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 6px 9px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #a3bbc4;
  border-radius: 5px;
  color: #24404d;
  font-size: 12px;
  line-height: 1.55;
  pointer-events: none;
  z-index: 2;
}
body.workpiece-page .workspace-stage.constraint-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}
body.workpiece-page .constraint-layout #group-list,
body.workpiece-page .constraint-layout #workspace-selection {
  display: none;
}
body.workpiece-page .constraint-info-grid {
  display: block;
}
body.workpiece-page .constraint-info-grid > details {
  margin: 8px 0;
}
body.workpiece-page #constraint-tool-editor .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
body.workpiece-page #constraint-tool-editor h4 {
  margin: 8px 0;
  font-size: 13px;
}
body.workpiece-page #constraint-tool-editor fieldset {
  padding: 8px;
  margin: 8px 0;
}
body.workpiece-page #constraint-tool-editor input,
body.workpiece-page #constraint-tool-editor select {
  padding: 5px;
}
body.workpiece-page .constraint-next-action {
  padding: 8px;
  background: #e7f2f4;
  border-left: 3px solid #226781;
  height: 56px;
  overflow: auto;
  box-sizing: border-box;
}
body.workpiece-page #constraint-axis-summary,
body.workpiece-page #constraint-coverage-summary {
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 8px 0;
}
body.workpiece-page .constraint-result-banner {
  height: 84px;
  overflow: auto;
  box-sizing: border-box;
}
body.workpiece-page #constraint-assessment-summary,
body.workpiece-page #constraint-trial-capability {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
}
body.workpiece-page #constraint-save-draft,
body.workpiece-page #constraint-group-trial {
  width: 100%;
  margin: 4px 0;
}
body.workpiece-page #constraint-group-trial-result a {
  display: block;
  padding: 8px;
  background: #e7f2f4;
}
@media (min-width: 721px) {
  body.workpiece-page .workspace-dock {
    height: 90px;
    box-sizing: border-box;
  }
  body.workpiece-page .workspace-dock-status {
    max-height: 72px;
    overflow: auto;
  }
}
@media (max-width: 720px) {
  body.workpiece-page .workspace-stage.constraint-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.workpiece-page .constraint-layout > .constraint-left {
    grid-column: 1;
    grid-row: 1;
    position: static;
    height: auto;
  }
  body.workpiece-page .constraint-layout > .groups-panel {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
}
body.workpiece-page .workspace-stage.material-focus .dual-workspace {
  grid-template-columns: minmax(0, 1fr);
}
body.workpiece-page #saved-group-run {
  padding: 10px 0;
  border-top: 1px solid #c5d9dd;
  margin-top: 10px;
}
body.workpiece-page #saved-group-run label {
  display: block;
  font-size: 12px;
}
body.workpiece-page #group-trial-run {
  width: 100%;
  margin: 8px 0;
}
body.workpiece-page #group-trial-state {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body.workpiece-page #group-trial-links a {
  display: block;
  padding: 8px;
  background: #e7f2f4;
  font-size: 12px;
}
body.workpiece-page #native-toolpath {
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid #c5d9dd;
  min-width: 0;
}
body.workpiece-page #native-toolpath h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
body.workpiece-page #native-toolpath label {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
body.workpiece-page #native-path-operation {
  width: 100%;
  font-size: 12px;
  min-width: 0;
}
body.workpiece-page #native-path-status {
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
body.workpiece-page .constraint-layout > .constraint-left {
  position: static;
  height: auto;
  overflow: visible;
  display: block;
}
body.workpiece-page .constraint-layout .constraint-details {
  max-height: none;
  overflow: visible;
  min-height: 0;
  padding: 10px;
}
body.workpiece-page .constraint-layout .viewport {
  height: clamp(300px, 45vh, 470px);
}
body.workpiece-page .process-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
body.workpiece-page .process-card {
  min-width: 0;
  border: 1px solid #c5d6db;
  border-radius: 7px;
  background: #f7fbfc;
  padding: 10px;
}
body.workpiece-page .process-card.active {
  border-color: #297a87;
  box-shadow: inset 0 3px #297a87;
}
body.workpiece-page .process-focus {
  width: 100%;
  font-weight: 700;
  background: #e8f1f3;
  color: #294d5a;
  padding: 8px;
}
body.workpiece-page .process-focus[aria-pressed=true] {
  background: #297a87;
  color: white;
}
body.workpiece-page .process-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
body.workpiece-page .process-card-summary {
  font-weight: 700;
  min-height: 20px;
}
body.workpiece-page .process-card label {
  display: block;
  font-size: 12px;
  margin: 8px 0;
}
body.workpiece-page .process-card input[type=range] {
  display: block;
  width: 100%;
  padding: 0;
}
body.workpiece-page .process-card input[type=number],
body.workpiece-page .process-card select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
body.workpiece-page .process-card .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
body.workpiece-page .process-card .face-list {
  max-height: 240px !important;
  overflow: auto !important;
}
body.workpiece-page #constraint-tool-editor > section > p,
body.workpiece-page #constraint-tool-editor [data-tool-model-scope] {
  font-size: 11px;
  line-height: 1.5;
}
body.workpiece-page .process-card fieldset {
  min-width: 0;
}
body.workpiece-page .constraint-next-action,
body.workpiece-page .constraint-result-banner {
  height: auto;
  max-height: none;
  overflow: visible;
}
body.workpiece-page .workspace-side-actions {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
body.workpiece-page .workspace-dock {
  height: auto;
  min-height: 50px;
  padding: 8px 20px;
}
body.workpiece-page .workspace-dock-status {
  max-height: 60px;
}
body.workpiece-page #process-compute-missing {
  width: 100%;
  background: #297a87;
  color: white;
  margin-bottom: 8px;
}
body.workpiece-page #process-adopt-faces {
  width: 100%;
}
body.workpiece-page .constraint-info-grid > p {
  display: none;
}
@media (max-width: 900px) {
  body.workpiece-page .process-triad {
    grid-template-columns: 1fr;
  }
  body.workpiece-page .constraint-layout .viewport {
    height: 350px;
  }
}
body.workpiece-page[data-workspace-mode=select] #result-stages {
  padding: 6px 12px;
  margin: 6px 0;
}
body.workpiece-page[data-workspace-mode=select] #result-stages .stage-strip {
  display: none;
}
body.workpiece-page[data-workspace-mode=select] #result-stages .stage-details {
  margin-top: 4px;
}
body.workpiece-page .constraint-layout .viewport {
  height: clamp(270px, 33vh, 360px);
}
body.workpiece-page .constraint-layout .view-help {
  min-height: 24px;
  padding: 3px 12px;
  font-size: 11px;
}
body.workpiece-page .constraint-layout .constraint-left > .dual-workspace > section > .pane-body {
  display: none;
}
body.workpiece-page .constraint-layout .material-step-bar {
  height: 26px;
  min-height: 26px;
  padding: 2px 12px;
}
body.workpiece-page .constraint-layout .constraint-left > .dual-workspace {
  position: sticky;
  top: 8px;
  z-index: 5;
}
body.workpiece-page .constraint-layout .save-bar {
  display: none;
}
body.workpiece-page .constraint-common .form-grid {
  grid-template-columns: 1fr;
}
body.operation-planning .groups-panel > :not(#operation-plan):not(#manufacturing-frame) {
  display: none !important;
}
body.operation-planning .constraint-details > :not(#operation-cards) {
  display: none !important;
}
body.operation-planning #undo,
body.operation-planning #work > .panel:has(> #candidates) {
  display: none !important;
}
body.operation-planning .constraint-left {
  display: flex;
  flex-direction: column;
  align-self: start;
}
body.operation-planning .constraint-left > .dual-workspace {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto;
}
body.operation-planning .constraint-details {
  overflow: visible !important;
  max-height: none !important;
}
body.operation-planning .workspace-dock {
  position: relative;
  bottom: auto;
  margin-top: 12px;
}
body.operation-planning .process-card .process-confirm {
  font-size: 11px;
}
body.operation-planning .process-card p:not(.process-card-summary):not(#operation-face-note):not(#plan-process-axis-vector):not(#plan-process-contact-status) {
  font-size: 11px;
  line-height: 1.45;
}
.operation-plan h3 {
  font-size: 15px;
  margin: 8px 0;
}
.operation-current {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.operation-current label {
  font-size: 12px;
  margin: 8px 0;
}
.operation-current label:has(input[type=checkbox]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.operation-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.operation-list li + li {
  border-top: 1px solid var(--border);
}
.operation-list button {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 10px 8px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.operation-list button[aria-current=step] {
  background: #fff0cc;
  box-shadow: inset 4px 0 #b77b1a;
  font-weight: 600;
}
.operation-global {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.operation-global button {
  font-size: 12px;
  padding: 8px;
}
#operation-status {
  font-size: 12px;
  flex-basis: 100%;
  white-space: pre-line;
  margin: 4px 0;
}
#operation-checks {
  font-size: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#operation-checks p {
  margin: 6px 0;
}
#operation-axes,
#operation-variable-rule {
  width: 100%;
  min-height: 60px;
}
#operation-delete-confirm {
  background: #fff3e9;
  border: 1px solid #deb998;
  padding: 8px;
  border-radius: 6px;
}
#operation-return {
  position: sticky;
  top: 12px;
  margin: 8px 0;
  z-index: 2;
}
.operation-cards .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.operation-cards fieldset {
  margin: 7px 0;
}
.operation-cards h4 {
  font-size: 12px;
  margin: 7px 0;
}
.operation-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 30px;
  align-items: center;
}
.operation-list .operation-minus {
  width: 30px;
  background: transparent;
  color: #8a423a;
  font-size: 19px;
  padding: 7px 2px;
}
.operation-list li[data-condition-status=blocked] {
  border-left: 3px solid #b8493a;
  background: #fff4f1;
}
.operation-list .operation-row-state {
  font-size: 10px;
  color: #80582c;
  padding: 0 3px;
}
.operation-list li[data-condition-status=blocked] .operation-row-state {
  color: #a23227;
}
#operation-add {
  width: 100%;
  font-size: 13px;
  margin: 4px 0;
}
#operation-computation {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 12px;
}
#operation-computation button {
  font-size: 11px;
  margin: 4px;
  padding: 7px;
}
#operation-current-reasons {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  margin: 8px 0;
  color: #8c4c30;
}
#operation-actual-execution pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
  overflow: auto;
}
.quality-results {
  padding: 10px 14px;
  margin: 10px 0;
}
.quality-results h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
.quality-results > p {
  margin: 5px 0;
}
.quality-result-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.quality-result-rows > #quality-show-latest {
  flex: 0 0 auto;
}
.quality-result-group {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line,#d8dde4);
  border-radius: 6px;
  padding: 8px;
}
.quality-result-group h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.quality-result-group p {
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0;
}
.quality-result-group button {
  font-size: 12px;
  padding: 5px 8px;
  margin: 3px 3px 3px 0;
}
.quality-result-group details {
  font-size: 12px;
}
.quality-native-failure {
  color: #a62d24;
  overflow-wrap: anywhere;
}
body.workpiece-page .workspace-result-panel > .quality-results {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
  box-shadow: none;
}
body.workpiece-page .workspace-result-panel > .quality-results h2 {
  font-size: 16px;
}
body.workpiece-page .workspace-result-panel .quality-result-group button {
  white-space: normal;
  text-align: left;
}
body.workpiece-page #related-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
body.workpiece-page #related-results-list a {
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}
body.workpiece-page .workspace-result-panel #workspace-quality-results {
  width: 100%;
  white-space: normal;
  text-align: left;
  margin: 0 0 6px;
}
body.workpiece-page .workspace-result-panel > #related-results {
  margin: 8px 0;
  padding: 8px 0;
  border-bottom: 1px solid #d3e0e2;
}
body.workpiece-page .workspace-result-panel > .quality-results {
  margin: 8px 0;
  padding: 0 0 8px;
}
body.workpiece-page .workspace-result-technical {
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #d3e0e2;
  font-size: 12px;
}
body.workpiece-page .workspace-result-technical > summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
body.workpiece-page .workspace-result-technical > #artifact-links {
  margin-top: 10px;
}
@media (min-width: 901px) {
  body.workpiece-page .workspace-stage[data-mode=compare] > .dual-workspace {
    position: sticky;
    top: 12px;
  }
}
.result-list-row {
  border-bottom: 1px solid var(--border,#d6dce5);
  padding: .5rem 0;
}
.result-row-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .4rem;
}
.result-row-heading button:first-child {
  text-align: left;
  white-space: normal;
}
.result-list-row [aria-pressed=true] {
  outline: 2px solid var(--accent,#3869ad);
  outline-offset: 1px;
}
.result-list-row details > button {
  display: block;
  width: 100%;
  margin: .35rem 0;
  text-align: left;
  white-space: normal;
}
.result-list-row p {
  margin: .3rem 0;
  font-size: .85rem;
}
#result-list-notice {
  font-size: .85rem;
}
#result-remove-dialog {
  max-width: 32rem;
}
#result-remove-dialog::backdrop {
  background: #12203766;
}
.result-bulk {
  flex-wrap: wrap;
  margin: 8px 0;
}
.result-row-heading input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0 8px 0 0;
}
.result-retirement-dialog {
  max-width: min(660px, 90vw);
  max-height: 85vh;
  overflow: auto;
}
.result-retirement-dialog h3 {
  font-size: 14px;
  margin: 14px 0 6px;
}
.result-retirement-dialog ul {
  padding-left: 22px;
}
.result-retirement-dialog li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.result-retirement-dialog details {
  overflow-wrap: anywhere;
}
.planning-proposals {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6dce3;
}
.planning-proposals h3 {
  margin: 0 0 6px;
}
.planning-proposals textarea,
.planning-proposals select {
  box-sizing: border-box;
  width: 100%;
}
.planning-proposals p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.planning-proposal-card {
  border-top: 1px solid #d6dce3;
  padding: 8px 0;
}
.planning-proposal-card h4 {
  margin: 0 0 4px;
}
.planning-proposal-card details {
  margin-top: 6px;
}
.planning-proposals > summary {
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  margin-bottom: 6px;
}
.planning-proposals .proposal-settings {
  margin: 8px 0;
  color: #536975;
  font-size: .9rem;
}
.proposal-settings > summary,
.proposal-review-details > summary {
  cursor: pointer;
  padding: 8px 0;
}
.planning-proposals .planning-proposal-card {
  position: relative;
  border: 1px solid #cbdcdf;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  background: #fff;
  box-shadow: 0 2px 7px #193e4710;
}
.proposal-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.proposal-card-heading > div {
  min-width: 0;
}
.proposal-eyebrow {
  color: #146a75;
  font-size: .75rem;
  letter-spacing: .08em;
  font-weight: 650;
}
.proposal-card-heading h4 {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.planning-proposals .proposal-count {
  color: #39565f;
  font-size: .85rem;
  margin: 8px 0 2px;
}
.planning-proposals .proposal-list-hint,
.planning-proposals .proposal-action-help {
  font-size: .8rem;
  color: #617780;
  line-height: 1.6;
}
.proposal-why > summary,
.proposal-operation-why > summary {
  list-style: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  width: 36px;
  min-height: 36px;
  border: 1px solid #d4e1e4;
  border-radius: 50%;
  background: #f7fafb;
  color: #456875;
  font-weight: 650;
}
.proposal-why > summary::-webkit-details-marker,
.proposal-operation-why > summary::-webkit-details-marker {
  display: none;
}
.proposal-why {
  flex: 0 0 auto;
}
.proposal-explanation {
  position: absolute;
  z-index: 5;
  left: 10px;
  right: 10px;
  top: 56px;
  padding: 16px;
  border: 1px solid #9dbac2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px #183d4730;
  max-height: 42vh;
  overflow: auto;
  font-size: .87rem;
  line-height: 1.7;
}
.proposal-operation-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  max-height: 46vh;
  overflow: auto;
  border: 1px solid #d9e5e8;
  border-radius: 9px;
  scrollbar-width: thin;
}
.proposal-operation-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: start;
  border-bottom: 1px solid #e2ebed;
  background: #fff;
}
.proposal-operation-list > li:last-child {
  border-bottom: 0;
}
.proposal-operation-list .proposal-operation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #243e48;
  font: inherit;
  cursor: pointer;
}
.proposal-operation:hover {
  background: #f1f7f8 !important;
}
.proposal-operation[aria-pressed=true] {
  background: #e6f3f3 !important;
  box-shadow: inset 3px 0 #167480;
}
.proposal-order {
  flex: 0 0 23px;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: #78939b;
  line-height: 1.6;
}
.proposal-operation-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}
.proposal-operation-body strong {
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.proposal-operation-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  color: #637980;
}
.proposal-mode {
  background: #edf2f5;
  border-radius: 4px;
  padding: 1px 5px;
  color: #325769;
  font-weight: 650;
}
.proposal-tool {
  color: #506a74;
  font-size: .8rem;
}
.proposal-issue-badge {
  color: #9f3f27;
  border-radius: 4px;
  padding: 1px 5px;
  background: #fff0e9;
}
.planning-proposal-card .proposal-operation-why {
  display: contents;
  margin: 0;
}
.proposal-operation-why > summary {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-top: 12px;
  width: 28px;
  min-height: 28px;
  font-size: .8rem;
}
.proposal-operation-explanation {
  grid-column: 1/-1;
  padding: 12px 14px;
  background: #f6f9fa;
  border-top: 1px dashed #cbdadd;
  font-size: .83rem;
  line-height: 1.65;
}
.proposal-operation-why:not([open]) > .proposal-operation-explanation {
  display: none;
}
.proposal-operation-list > li[data-condition-status=blocked] .proposal-order {
  color: #a54832;
}
.proposal-adoption {
  padding-top: 3px;
}
.proposal-adoption .proposal-adopt-button {
  width: 100%;
  min-height: 44px;
  border-radius: 7px;
  background: #146a75;
  color: white;
  border: 1px solid #146a75;
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
}
.proposal-adoption .proposal-adopt-button:disabled {
  background: #edf1f2;
  color: #7b8b91;
  border-color: #d8e1e4;
  cursor: default;
}
.proposal-adoption-reason[data-blocked=true],
.proposal-issue-text {
  color: #a13d2b;
  font-size: .85rem;
  line-height: 1.6;
}
.proposal-review-details {
  font-size: .83rem;
  color: #586f78;
  line-height: 1.65;
}
.operation-proposal-imported {
  padding: 10px;
  border-radius: 7px;
  background: #e9f5f1;
  color: #24664e;
  font-size: .9rem;
  line-height: 1.6;
}
.proposal-stop-area:empty {
  display: none;
}
@media (max-width: 760px) {
  .planning-proposals .planning-proposal-card {
    padding: 12px;
  }
  .proposal-operation-list {
    max-height: 50vh;
  }
  .proposal-operation-list > li {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .proposal-operation-why > summary,
  .proposal-why > summary {
    width: 44px;
    min-height: 44px;
  }
  .proposal-operation-why > summary {
    margin-top: 6px;
  }
  .proposal-operation-list .proposal-operation {
    padding: 12px 8px;
  }
}
body.operation-planning .machining-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
body.operation-planning .machining-mode-buttons {
  display: flex;
  gap: 4px;
}
body.operation-planning .machining-mode-buttons button {
  background: white;
  color: #315f67;
  padding: 7px 19px;
}
body.operation-planning .machining-mode-buttons button[aria-pressed=true] {
  background: #146a75;
  color: white;
}
body.operation-planning .rotary-axis-fields fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}
body.operation-planning .rotary-axis-fields fieldset:last-child {
  grid-template-columns: 1fr;
}
body.operation-planning .rotary-axis-fields legend {
  font-weight: 600;
  font-size: 11px;
}
body.operation-planning .rotary-axis-fields label {
  margin: 0;
}
body.operation-planning .rotary-axis-fields input {
  padding: 5px;
}
body.workpiece-page .process-triad[data-direction-mode=system] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.workpiece-page .process-system-strategy {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #c5d6db;
  border-radius: 7px;
  background: #f7fbfc;
}
body.workpiece-page .process-system-strategy [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  body.workpiece-page .process-triad[data-direction-mode=system] {
    grid-template-columns: 1fr;
  }
}
.view-process-summary {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  background: #ffffffed;
  border: 1px solid #c4d2d6;
  border-radius: 5px;
  color: #355760;
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  z-index: 2;
  overflow-wrap: anywhere;
}
.proposal-retry-area {
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.proposal-retry-area > button {
  width: 100%;
  min-height: 44px;
}
.proposal-retry-area > p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}

/* ui/workflow-status.css */
.operation-primary {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.operation-primary button {
  flex: 1;
  padding: 11px 14px;
}
.operation-primary #operation-run {
  background: #2468aa;
  color: white;
  border-color: #2468aa;
}
.operation-primary #operation-run:disabled {
  background: #e5eaf0;
  color: #67778b;
  border-color: #d5dde6;
}
.operation-global > small {
  display: block;
  color: #607086;
  font-size: 12px;
  margin: 0 0 10px;
}
.operation-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.operation-global #operation-more {
  margin: 10px 0;
}
.operation-global #operation-more.needs-attention {
  border: 1px solid #d6a652;
  background: #fff9ed;
  padding: 8px;
  border-radius: 7px;
}
.workflow-status {
  border: 1px solid #d4deeb;
  border-left: 4px solid #6483a7;
  background: #f5f8fc;
  border-radius: 9px;
  padding: 12px;
  margin: 10px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.workflow-status p {
  margin: 6px 0;
  font-size: 13px;
}
.workflow-status[data-state=running] {
  border-left-color: #2870bc;
  background: #edf6ff;
}
.workflow-status[data-state=warning] {
  border-left-color: #c47e18;
  background: #fff8ed;
}
.workflow-status[data-state=ready] {
  border-left-color: #35806c;
  background: #f2faf6;
}
#workflow-timing {
  font-variant-numeric: tabular-nums;
  color: #245c94;
}
#workflow-freshness {
  color: #7c6345;
}
#workflow-open {
  margin-top: 7px;
}
.workflow-dialog {
  width: min(1060px, 90vw);
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #b8c8dc;
  border-radius: 15px;
  padding: 24px;
  color: #243449;
  box-shadow: 0 20px 90px #142f4966;
}
.workflow-dialog::backdrop {
  background: #16273877;
}
.workflow-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.workflow-dialog h2 {
  margin: 0;
}
.workflow-dialog h3 {
  margin-bottom: 8px;
}
.workflow-dialog p {
  line-height: 1.6;
}
.workflow-graph {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 24px 0;
}
.workflow-node {
  flex: 1;
  min-width: 0;
  border: 1px solid #d6dfe9;
  border-radius: 9px;
  padding: 14px 10px;
  background: #f8fafc;
}
.workflow-node p {
  font-size: 12px;
  margin: 8px 0 0;
  color: #65758a;
}
.workflow-node[data-state=current],
.workflow-branch[data-state=current] {
  border: 2px solid #3478bf;
  background: #eaf4ff;
}
.workflow-node[data-state=saved] {
  border-color: #64a090;
}
.workflow-arrow {
  align-self: center;
  color: #647d97;
}
.workflow-branch {
  padding: 12px;
  background: #f3f5f8;
  border: 1px solid #d6dfe9;
  border-radius: 8px;
}
.workflow-dialog details p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
@media (max-width: 760px) {
  .workflow-graph {
    flex-direction: column;
  }
  .workflow-arrow {
    transform: rotate(90deg);
  }
  .workflow-node {
    padding: 10px;
  }
  .workflow-dialog {
    padding: 18px;
  }
}
#operation-plan .operation-global {
  display: block;
}
#operation-plan .operation-primary {
  display: flex;
  width: 100%;
}
#operation-plan .operation-primary button {
  min-width: 0;
  white-space: nowrap;
  padding: 11px 14px;
}
dialog.workflow-dialog {
  max-width: min(1060px, 90vw);
}

/* ui/action-feedback.css */
body.workpiece-page .workspace-dock-status #process-action-feedback {
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  border-top: 1px solid #d7e3e3;
  padding-top: 4px;
  margin-top: 4px;
}
#process-action-current {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
#process-action-current[data-state=RUNNING] {
  color: #236287;
}
#process-action-current[data-state=FAILED],
#process-action-current[data-state=BLOCKED] {
  color: #9b302a;
}
#process-action-current[data-state=UNKNOWN],
#process-action-current[data-state=STALE] {
  color: #815519;
}
#process-action-feedback details > summary {
  font-size: 11px;
}
#process-action-feedback details[open] {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 20px;
  width: min(700px, calc(100vw - 40px));
  max-height: 240px;
  overflow: auto;
  border: 1px solid #bed1d3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 -3px 16px #173c4520;
  padding: 10px 14px;
}
#process-action-feedback ol {
  margin: 0;
  padding: 0 0 0 20px;
}
#process-action-feedback li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
#process-action-feedback li p {
  margin: 3px 0;
}
body.workpiece-page .workspace-dock-status {
  max-height: none;
}
body.workpiece-page .workspace-dock #process-action-feedback > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#group-trial-conditions {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 12px;
}
#group-trial-conditions li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 4px;
  align-items: start;
  padding: 4px 0;
  border-bottom: 1px solid #e1eaea;
  overflow-wrap: anywhere;
}
#group-trial-conditions li[data-state=PASS] {
  color: #23633f;
}
#group-trial-conditions li[data-state=FAIL],
#group-trial-conditions li[data-state=UNKNOWN] {
  color: #96392e;
}
#group-trial-conditions li button {
  font-size: 10px;
  padding: 3px 5px;
  white-space: nowrap;
}
#group-trial-conditions li p {
  margin: 0;
  font-size: 11px;
}
#group-trial-conditions-title {
  font-size: 14px;
  margin: 10px 0 5px;
}
#group-trial-readiness-summary {
  font-weight: 600;
  font-size: 12px;
}
#saved-group-run #group-trial-state {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#constraint-direction-results .direction-choice,
#process-triad .direction-choice {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#group-trial-conditions li[data-state=PASS] details > summary {
  color: #23633f;
  line-height: 1.35;
  font-size: 12px;
}
#group-trial-conditions li[data-state=PASS] {
  padding: 3px 0;
}
#process-history-return {
  max-width: 100%;
  min-width: 0;
}
#process-history-return a {
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
#group-trial-readiness-summary[data-ready=false] {
  color: #96392e;
  background: #fff0eb;
  padding: 6px 8px;
  border-radius: 5px;
}
#group-trial-readiness-summary[data-ready=true] {
  color: #23633f;
}
#group-trial-links a {
  display: block;
  margin: 4px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#saved-group-run {
  margin-top: 8px;
}
#saved-group-run > label {
  font-size: 12px;
}
#group-trial-links #group-continuation-reason {
  display: none;
}

/* ui/trial/workspace.css */
body.trial-customer-workspace main {
  max-width: 1600px;
  margin: 0 auto;
}
.trial-customer-workspace #workspace-status {
  min-height: 22px;
  margin: 8px 0;
  font-size: 13px;
}
.trial-customer-workspace #workspace-status.error {
  color: #9a3529;
}
.trial-customer-workspace #workspace-status.success {
  color: #21704d;
}
.trial-customer-workspace .workspace-switch {
  position: static;
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.trial-customer-workspace .workspace-switch button[aria-pressed=true] {
  background: #146a75;
  color: #fff;
}
.trial-customer-workspace .workspace-switch button[aria-pressed=false] {
  background: white;
  color: #315f67;
}
.trial-customer-workspace #workspace-stage .viewport {
  height: clamp(340px, 45vh, 540px);
}
.trial-customer-workspace #workspace-plan-host {
  overflow: visible;
  max-height: none;
}
.trial-customer-workspace .constraint-details {
  overflow: visible;
  max-height: none;
}
.trial-customer-workspace #workspace-plan-empty {
  font-size: 13px;
  color: #526e76;
}
.trial-customer-workspace #workspace-hover-face {
  font-weight: 600;
}
.trial-customer-workspace #workspace-notice {
  margin: 8px 0;
}
.trial-customer-workspace [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .trial-customer-workspace .page-heading {
    margin-bottom: 12px;
  }
  .trial-customer-workspace #workspace-stage .viewport {
    height: 350px;
  }
  .trial-customer-workspace .topbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    gap: 10px;
    padding: 12px 16px;
  }
  .trial-customer-workspace #workspace-account {
    font-size: 12px;
  }
}
body.trial-customer-workspace main {
  padding-top: 12px;
}
.trial-customer-workspace .page-heading {
  margin-bottom: 8px;
  align-items: center;
}
.trial-customer-workspace h1 {
  font-size: 24px;
  margin: 0;
}
.trial-customer-workspace #workspace-subtitle {
  font-size: 12px;
  margin: 2px 0 0;
}
.trial-customer-workspace .workspace-switch {
  margin: 8px 0;
}
.trial-customer-workspace .trial-workspace-guide {
  margin: 8px 0;
  padding: 8px 12px;
  min-height: 52px;
}
.trial-customer-workspace .trial-workspace-guide p {
  margin: 1px 0 0;
}
body.trial-customer-workspace[data-workspace-mounted=true] #workspace-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.trial-customer-workspace #plan-process-axis-vector {
  display: none !important;
}
.trial-customer-workspace[data-execution-enabled=false] #workflow-status {
  display: none !important;
}
.trial-customer-workspace #operation-tool-editor .form-grid:not([hidden]) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px;
  align-items: start;
}
.trial-customer-workspace #operation-tool-editor .form-grid input {
  width: 100%;
  min-width: 0;
}
.trial-customer-workspace #operation-tool-editor > p,
.trial-customer-workspace #operation-tool-editor [data-tool-model-scope] {
  display: none;
}
.trial-customer-workspace .process-card label {
  margin: 5px 0;
}
.trial-customer-workspace .view-help {
  font-size: 11px;
}
.trial-customer-workspace #plan-process-contact-status {
  display: none !important;
}
.trial-result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}
.trial-result-models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.trial-result-models .viewport {
  height: clamp(320px, 45vh, 540px);
}
.trial-customer-workspace #workspace-result-panel {
  min-width: 0;
  overflow: visible;
}
.trial-customer-workspace .result-list-row {
  border-top: 1px solid #d0dfe3;
  padding: 10px 0;
}
.trial-customer-workspace .result-list-row button {
  max-width: 100%;
  white-space: normal;
}
.trial-artifacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}
.trial-customer-workspace #step-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.trial-customer-workspace #workspace-result-error {
  min-height: 20px;
}
.trial-customer-workspace #workspace-result-panel pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.trial-customer-workspace #workspace-results .view-help {
  font-size: 11px;
}
@media (max-width: 1000px) {
  .trial-result-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .trial-result-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .trial-result-models {
    grid-template-columns: minmax(0, 1fr);
  }
}
.trial-customer-workspace #workflow-status {
  margin: 10px 0;
}
.trial-customer-workspace #workflow-status p:empty {
  display: none;
}
.trial-customer-workspace[data-unified-progress=true] #workflow-status {
  display: none;
}
.trial-run-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  position: sticky;
  top: 8px;
  z-index: 12;
  margin: 10px 0 14px;
  padding: 12px 16px;
  border: 1px solid #a8cbd6;
  border-left: 4px solid #277a8c;
  border-radius: 12px;
  background: #f0f9fc;
  box-shadow: 0 3px 12px #1232;
  overflow-wrap: anywhere;
}
.trial-run-progress[hidden] {
  display: none;
}
.trial-run-progress[data-active=false] {
  position: static;
  box-shadow: none;
}
.trial-run-progress[data-state=warning] {
  border-left-color: #b77218;
  background: #fff8ea;
}
#workspace-run-heading {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#workspace-run-title {
  font-size: 17px;
  line-height: 1.4;
}
#workspace-run-time {
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #125568;
  flex-shrink: 0;
}
.trial-run-progress p {
  grid-column: 1;
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.4;
}
#workspace-run-counts {
  font-size: 15px;
  font-weight: 600;
}
#workspace-run-estimate {
  color: #5b6b78;
}
#workspace-run-connection {
  color: #346851;
}
#workspace-run-connection[data-state=warning] {
  color: #975615;
}
#workspace-run-notice {
  font-weight: 600;
  color: #125568;
}
#workspace-run-actions {
  grid-column: 2;
  grid-row: 2/6;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#workspace-run-actions button {
  min-height: 40px;
  padding: 8px 14px;
}
@media (max-width: 720px), (max-width: 1000px) and (max-height: 600px) {
  .trial-run-progress {
    grid-template-columns: minmax(0, 1fr);
    top: 0;
    padding: 8px 10px;
    margin: 6px 0 10px;
  }
  #workspace-run-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  #workspace-run-title {
    font-size: 14px;
  }
  #workspace-run-time {
    font-size: 19px;
  }
  .trial-run-progress p {
    font-size: 12px;
    margin: 3px 0;
  }
  #workspace-run-counts {
    font-size: 13px;
  }
  #workspace-run-actions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
  }
  #workspace-run-actions button {
    min-height: 44px;
    flex: 1 1 120px;
    padding: 7px 5px;
    font-size: 13px;
  }
  body.trial-mobile-editor[data-unified-progress=true] #workspace-stage .constraint-left > #workspace-select-source-slot {
    top: var(--trial-progress-height,0px) !important;
  }
}
.trial-result-models .pane-heading {
  height: 54px;
  box-sizing: border-box;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
}
.trial-customer-workspace #workflow-dialog .workflow-branch {
  display: none;
}
.trial-loading {
  margin: 8px 0;
  padding: 9px 12px;
  background: #f3f7f8;
  border: 1px solid #d3e0e3;
  border-radius: 8px;
  font-size: 13px;
}
.trial-loading > span {
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
}
.trial-loading p {
  margin: 5px 0;
}
.trial-loading details {
  font-size: 12px;
}
.trial-loading[data-failed=true] {
  border-color: #c77665;
  background: #fff5f2;
}
.trial-loading[data-ready=true] {
  padding: 5px 12px;
}
.trial-loading[data-ready=true] > p {
  display: none;
}
.trial-loading[data-ready=true] > details {
  display: inline-block;
  margin-left: 12px;
}
.mobile-view-help {
  display: none;
}
@media (max-width: 720px) {
  body.trial-customer-workspace main {
    padding: 10px;
  }
  .trial-customer-workspace .page-heading {
    gap: 8px;
    align-items: start;
  }
  .trial-customer-workspace .page-heading > div {
    min-width: 0;
  }
  .trial-customer-workspace h1 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .trial-customer-workspace button {
    min-height: 40px;
  }
  .trial-customer-workspace .workspace-switch button {
    min-height: 44px;
  }
  .trial-customer-workspace .constraint-layout .constraint-left > .dual-workspace {
    position: static;
  }
  .trial-customer-workspace .viewport {
    max-width: 100%;
  }
  .trial-customer-workspace #workspace-stage .viewport {
    height: 320px;
  }
  .trial-customer-workspace .process-triad {
    grid-template-columns: minmax(0, 1fr);
  }
  .trial-customer-workspace .panel {
    min-width: 0;
  }
  .trial-customer-workspace .form-grid {
    min-width: 0;
  }
  .trial-customer-workspace input,
  .trial-customer-workspace select {
    min-width: 0;
    max-width: 100%;
  }
  .trial-customer-workspace #workspace-plan-host {
    overflow-wrap: anywhere;
  }
  .desktop-view-help {
    display: none;
  }
  .mobile-view-help {
    display: inline;
  }
  .trial-loading > span {
    display: block;
    margin: 4px 0;
  }
}
body.trial-customer-workspace[data-workspace-mounted=true] #workspace-reopen {
  display: none;
}
.trial-trod-tutorial {
  border: 1px solid #bfd5db;
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  background: #f5fafb;
}
.trial-trod-tutorial p {
  margin: 8px 0;
  line-height: 1.6;
}
.trial-trod-groups,
.trial-trod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trial-trod-groups button[aria-current=step] {
  background: #d9eff2;
  border-color: #267c89;
}
.trial-trod-tutorial video {
  display: block;
  width: 100%;
  max-width: 640px;
  max-height: 300px;
  margin: 8px 0;
  background: #172b33;
}
.trial-trod-tutorial details {
  padding: 8px 0;
}
.trial-trod-tutorial [data-complete=true] {
  color: #16634a;
  font-weight: bold;
}
@media (max-width: 600px) {
  .trial-trod-groups button {
    flex: 1 1 45%;
    text-align: left;
  }
  .trial-trod-tutorial {
    padding: 10px;
  }
  .trial-trod-actions button {
    min-height: 44px;
  }
}
#workspace-mobile-nav,
#workspace-mobile-help {
  display: none;
}
@media (max-width: 720px), (max-width: 1000px) and (max-height: 600px) {
  body.trial-customer-workspace.trial-mobile-editor main {
    padding: 8px;
    overflow-wrap: anywhere;
  }
  .trial-mobile-editor #workspace-mobile-help {
    display: block;
    margin: 8px 0;
    border: 1px solid #bfd5db;
    border-radius: 8px;
    background: #f5fafb;
  }
  .trial-mobile-editor #workspace-mobile-help > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
    font-size: 14px;
  }
  .trial-mobile-editor #workspace-mobile-help[open] > summary {
    border-bottom: 1px solid #bfd5db;
  }
  .trial-mobile-editor #workspace-help {
    padding: 0 8px;
  }
  .trial-mobile-editor #workspace-stage {
    display: block;
  }
  .trial-mobile-editor #workspace-stage > .constraint-left {
    position: static;
    display: block;
    height: auto;
    min-width: 0;
    overflow: visible;
  }
  body.trial-mobile-editor #workspace-stage .constraint-left > #workspace-select-source-slot {
    position: sticky !important;
    top: 0 !important;
    z-index: 8;
    background: #f5f9fa;
    display: block;
    margin: 0;
    padding: 0 0 5px;
    box-shadow: 0 3px 7px #1232;
  }
  body.trial-mobile-editor[data-mobile-keyboard=true] #workspace-stage .constraint-left > #workspace-select-source-slot {
    position: static !important;
    top: auto !important;
  }
  body.trial-mobile-editor #workspace-stage .viewport {
    height: clamp(130px, 25svh, 225px);
    min-height: 0;
  }
  .trial-mobile-editor #workspace-source-pane .pane-heading {
    min-height: 44px;
    padding: 0 6px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .trial-mobile-editor #workspace-source-pane .pane-heading h2 {
    font-size: 15px;
    margin: 0;
  }
  .trial-mobile-editor #workspace-source-pane .view-help {
    min-height: 22px;
    padding: 3px 5px;
    font-size: 11px;
  }
  .trial-mobile-editor #workspace-mobile-nav {
    display: flex;
    gap: 4px;
    width: 100%;
    padding: 4px 0 0;
    box-sizing: border-box;
  }
  .trial-mobile-editor #workspace-mobile-nav button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 7px 3px;
    font-size: 14px;
    white-space: normal;
  }
  .trial-mobile-editor #workspace-mobile-nav button[aria-pressed=true] {
    background: #176c77;
    color: #fff;
    border-color: #176c77;
  }
  .trial-mobile-editor #workspace-cards {
    margin: 6px 0 0;
    padding: 0;
    min-width: 0;
  }
  .trial-mobile-editor #workspace-plan-host {
    margin: 8px 0 0;
    width: 100%;
    box-sizing: border-box;
  }
  .trial-mobile-editor [data-mobile-panel=editor] > #workspace-plan-host {
    display: none;
  }
  .trial-mobile-editor [data-mobile-panel=plan] > #workspace-cards {
    display: none;
  }
  .trial-mobile-editor .process-triad,
  .trial-mobile-editor .process-triad[data-direction-mode=system] {
    display: block;
  }
  .trial-mobile-editor #workspace-cards .process-focus {
    display: none;
  }
  .trial-mobile-editor [data-mobile-focus=faces] .process-card:not([data-process-card=faces]),
  .trial-mobile-editor [data-mobile-focus=tools] .process-card:not([data-process-card=tools]),
  .trial-mobile-editor [data-mobile-focus=axes] .process-card:not([data-process-card=axes]) {
    display: none;
  }
  .trial-mobile-editor .process-system-strategy {
    margin-top: 10px;
  }
  .trial-mobile-editor .process-card {
    padding: 10px;
  }
  .trial-mobile-editor .operation-list {
    max-height: 230px;
  }
  .trial-mobile-editor .operation-list li {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }
  .trial-mobile-editor .operation-list .operation-minus {
    width: 44px;
    min-height: 44px;
  }
  .trial-mobile-editor button,
  .trial-mobile-editor summary,
  .trial-mobile-editor a {
    min-height: 44px;
  }
  .trial-mobile-editor input:not([type=checkbox]):not([type=radio]):not([type=range]),
  .trial-mobile-editor select,
  .trial-mobile-editor textarea {
    font-size: 16px !important;
    min-height: 44px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .trial-mobile-editor input[type=checkbox],
  .trial-mobile-editor input[type=radio] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .trial-mobile-editor label:has(input[type=checkbox]),
  .trial-mobile-editor label:has(input[type=radio]) {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 2px 4px 2px 0;
  }
  .trial-mobile-editor input[type=range] {
    min-height: 44px;
    width: 100%;
  }
  .trial-mobile-editor #workspace-demo-notice {
    padding: 7px 10px;
    font-size: 12px;
  }
  .trial-mobile-editor #workspace-demo-notice > p:not([role=alert]) {
    display: none;
  }
  .trial-mobile-editor #workspace-demo-notice a {
    display: inline-flex;
    align-items: center;
  }
  .trial-mobile-editor .page-heading {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
  }
  .trial-mobile-editor .page-heading > div {
    flex: 1 1 200px;
    min-height: 0;
  }
  .trial-mobile-editor #workspace-loading[data-ready=true] {
    font-size: 11px;
  }
  .trial-mobile-editor #workspace-loading[data-ready=true] > span {
    display: inline;
    margin-left: 6px;
  }
  .trial-mobile-editor .process-card,
  .trial-mobile-editor .form-grid,
  .trial-mobile-editor .toolbar {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 720px), (max-width: 1000px) and (max-height: 600px) {
  .trial-mobile-editor #workspace-demo-notice > strong {
    display: block;
  }
  .trial-mobile-editor #workspace-demo-notice:not([hidden]) ~ #workspace-run-limit {
    display: none;
  }
  .trial-mobile-editor #workspace-mobile-nav button:not([aria-pressed=true]) {
    background: #fff;
    color: #315f67;
  }
}
@media (max-width: 1000px) and (max-height: 500px) {
  body.trial-mobile-editor #workspace-stage .viewport {
    height: 100px;
  }
}
@media (max-width: 720px), (max-width: 1000px) and (max-height: 600px) {
  .trial-mobile-editor .desktop-view-help {
    display: none;
  }
  .trial-mobile-editor .mobile-view-help {
    display: inline;
  }
}
@media (max-width: 720px), (max-width: 1000px) and (max-height: 600px) {
  .trial-mobile-editor a {
    display: inline-flex;
    align-items: center;
  }
}
.trial-material-navigation {
  grid-column: 1/-1;
  border: 1px solid #b9d3db;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  min-width: 0;
}
.material-nav-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.material-nav-toolbar strong {
  flex: 1;
  min-width: 160px;
  font-size: 16px;
}
.trial-material-navigation button {
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  font-size: 15px;
}
.trial-material-navigation button[aria-pressed=true] {
  background: #176578;
  color: #fff;
  border-color: #176578;
}
.material-nav-steps {
  margin-top: 8px;
}
.material-nav-steps summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.material-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
}
.material-load-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: #47636b;
  font-size: 14px;
}
.material-load-feedback button {
  margin-left: auto;
}
.trial-customer-workspace .trial-result-models {
  min-width: 0;
}
.trial-customer-workspace #material-step {
  display: none;
}
@media (max-width: 760px) {
  .trial-material-navigation {
    padding: 8px;
  }
  .material-nav-toolbar strong {
    order: -1;
    flex-basis: 100%;
    font-size: 15px;
  }
  .material-nav-toolbar button {
    flex: 1;
    padding: 8px 5px;
  }
  .material-nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .trial-material-navigation button {
    font-size: 14px;
  }
  .material-load-feedback {
    font-size: 13px;
  }
  .trial-result-models {
    position: relative;
  }
}
.trial-customer-workspace[data-trial-view=result] #workspace-help,
.trial-customer-workspace[data-trial-view=result] #workspace-mobile-help,
.trial-customer-workspace[data-trial-view=result] #workspace-demo-notice {
  display: none !important;
}
.trial-material-navigation button {
  background: #fff;
  color: #245560;
  border: 1px solid #a6c3cd;
}
.trial-material-navigation button[aria-pressed=true] {
  background: #176578;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #093e4c;
}
.trial-material-navigation button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.material-nav-steps summary:before {
  content: "\25b8";
}
.material-nav-steps[open] summary:before {
  content: "\25be";
}
@media (max-width: 650px) {
  .trial-result-models > section {
    order: -1;
  }
  .trial-result-models .viewport {
    height: clamp(260px, 38vh, 360px);
  }
}
.result-acceptance {
  border-top: 1px solid #dbe4ec;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.result-acceptance p {
  margin: 0 0 8px;
}
.result-acceptance strong {
  color: #253f59;
}
.result-acceptance details {
  color: #526579;
}
.result-acceptance summary {
  cursor: pointer;
  padding: 6px 0;
}
.result-acceptance[data-state]:not([data-state=UNAVAILABLE]) ~ #quality-results > h3,
.result-acceptance[data-state]:not([data-state=UNAVAILABLE]) ~ #quality-results > .quality-record-summary {
  display: none;
}
#workspace-material-viewer {
  scroll-margin-top: calc(var(--trial-progress-height,0px) + 16px);
}
#workspace-run-reason {
  color: #855b20;
}
.trial-customer-workspace .workspace-switch {
  flex-wrap: wrap;
  align-items: start;
}
.workspace-switch .proposal-retry-area {
  display: contents;
}
.workspace-switch .proposal-retry-area > button {
  width: auto;
  margin-left: auto;
}
.workspace-switch .proposal-retry-area > p {
  flex-basis: 100%;
  margin: 0;
}
.workspace-switch .proposal-retry-area[data-blocked=false] > p {
  display: none;
}
body.trial-customer-workspace[data-primary-progress=true] #workspace-guidance {
  display: none;
}
body.trial-customer-workspace[data-primary-progress=true] #planning-proposal-status {
  display: none;
}
body.trial-customer-workspace[data-primary-progress=true] #planning-retry-area[data-blocked=true] {
  display: none;
}
#workspace-example-version {
  max-width: 95ch;
  line-height: 1.6;
}
.trial-mobile-editor #workspace-demo-notice > #workspace-example-version {
  display: block;
}
.trial-material-navigation [data-current],
#workspace-selected-heading {
  min-width: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trial-operation-mapping {
  font-size: 13px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.trial-operation-mapping summary {
  cursor: pointer;
}
.trial-operation-mapping p {
  margin: 6px 0;
}
#workspace-download-status button {
  margin-left: 10px;
}

/* ui/trial/workspace-guide.css */
.trial-workspace-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #c9dcdf;
  border-radius: 10px;
  background: #f3f9fa;
  margin: 12px 0;
}
.trial-workspace-guide > div {
  flex: 1;
  min-width: 0;
}
.trial-workspace-guide strong {
  font-size: 14px;
}
.trial-workspace-guide p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #49666f;
}
.trial-workspace-guide button {
  flex-shrink: 0;
}
.trial-workspace-guide [hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  .trial-workspace-guide {
    flex-wrap: wrap;
    gap: 8px;
  }
  .trial-workspace-guide > div {
    flex-basis: 100%;
  }
  .trial-workspace-guide p {
    font-size: 13px;
  }
}
.trial-workspace-guide {
  display: block;
}
.trial-guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trial-first-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  list-style: none;
  margin: 8px 0;
}
.trial-first-steps li {
  min-width: 0;
}
.trial-first-steps button {
  width: 100%;
  white-space: normal;
  min-height: 38px;
  padding: 6px;
}
.trial-first-steps button[aria-current=step] {
  border-color: #146a75;
  background: #e0f1f2;
  color: #124f58;
}
.trial-guide-current {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  border-top: 1px solid #d8e6e8;
  padding-top: 8px;
  margin-top: 6px;
}
.trial-guide-current strong {
  grid-column: 1;
}
.trial-guide-current p {
  grid-column: 1;
}
.trial-guide-current button {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.trial-workspace-guide details {
  margin-top: 8px;
}
.trial-workspace-guide summary {
  cursor: pointer;
  font-size: 13px;
}
.trial-workspace-guide video {
  display: block;
  max-width: 720px;
  width: 100%;
  max-height: 60vh;
  margin-top: 8px;
  background: #15272e;
}
.trial-workspace-guide #workspace-guide-step-note {
  font-size: 12px;
}
@media (max-width: 680px) {
  .trial-first-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .trial-first-steps button {
    font-size: 12px;
  }
  .trial-first-steps button {
    min-height: 44px;
  }
  .trial-guide-current {
    display: block;
  }
  .trial-guide-current button {
    margin-top: 7px;
  }
  .trial-guide-heading {
    align-items: start;
  }
  .trial-guide-heading button {
    min-height: 44px;
  }
  .trial-workspace-guide summary {
    padding: 8px 0;
  }
}
#workspace-guidance {
  min-width: 0;
  margin: 8px 0;
}
#workspace-next-step {
  background: #f3f9fa;
  border: 1px solid #c9dcdf;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  min-width: 0;
}
#workspace-next-step #workspace-guide-context {
  grid-column: 1/-1;
  color: #49666f;
  overflow-wrap: anywhere;
}
#workspace-next-step .trial-guide-checklist {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0;
}
#workspace-next-step .trial-guide-checklist button {
  background: #fff;
  color: #835427;
  border: 1px solid #d9c5ae;
  border-radius: 5px;
  min-height: 36px;
  padding: 5px 9px;
  font-size: 12px;
}
#workspace-next-step .trial-guide-checklist button[data-complete=true] {
  color: #176044;
  border-color: #80b198;
  background: #edf8f0;
}
#workspace-next-step #workspace-guide-title {
  grid-column: 1;
  grid-row: 3;
  font-size: 14px;
}
#workspace-next-step #workspace-guide-text {
  grid-column: 1;
  grid-row: 4;
  font-size: 13px;
  line-height: 1.5;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
#workspace-next-step #workspace-guide-action {
  grid-column: 2;
  grid-row: 3/5;
  min-height: 44px;
  max-width: 180px;
  white-space: normal;
}
#workspace-guide-reopen {
  margin: 5px 0;
  min-height: 44px;
}
@media (max-width: 720px), (max-width: 1000px) and (max-height: 600px) {
  #workspace-next-step {
    display: block;
    padding: 8px 10px;
  }
  #workspace-next-step .trial-guide-checklist {
    display: flex;
    gap: 4px;
  }
  #workspace-next-step .trial-guide-checklist button {
    flex: 1;
    min-height: 44px;
    padding: 5px;
    font-size: 12px;
  }
  #workspace-next-step #workspace-guide-action {
    max-width: 100%;
    margin-top: 7px;
  }
}
@media (max-width: 1000px) and (max-height: 600px) {
  #workspace-next-step {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
  }
  #workspace-next-step #workspace-guide-context,
  #workspace-next-step .trial-guide-checklist {
    display: none;
  }
  #workspace-next-step #workspace-guide-title {
    grid-row: 1;
  }
  #workspace-next-step #workspace-guide-text {
    grid-row: 2;
    font-size: 12px;
  }
  #workspace-next-step #workspace-guide-action {
    grid-row: 1/3;
    margin: 0;
  }
}
#workspace-next-step [hidden] {
  display: none !important;
}
.trial-lesson-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  padding: 9px 12px;
  border: 1px solid #bfd5db;
  border-radius: 8px;
  font-size: 13px;
  background: #f5fafb;
}
.trial-lesson-active {
  padding: 12px;
  border: 1px solid #89b4ba;
  border-radius: 8px;
  background: #f3f9fa;
  margin: 8px 0;
  min-width: 0;
}
.trial-lesson-active p {
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.trial-lesson-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trial-lesson-heading strong {
  font-size: 15px;
}
.trial-lesson-fields,
.trial-lesson-actions,
.trial-lesson-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.trial-lesson-fields button {
  flex: 1;
}
.trial-lesson-active button,
.trial-lesson-launch button,
.trial-lesson-groups button {
  min-height: 44px;
  font-size: 13px;
  white-space: normal;
}
.trial-lesson-active button[data-complete=true],
.trial-lesson-groups button[data-complete=true] {
  background: #eaf7ed;
  color: #185c3c;
  border-color: #81b797;
}
.trial-lesson-fields button[aria-current=step] {
  outline: 2px solid #1b6d79;
  outline-offset: 1px;
}
#challenge-lesson-progress[data-complete=true] {
  color: #185c3c;
  font-weight: bold;
}
#challenge-lesson-target {
  margin: 6px 0;
  font-size: 13px;
}
#challenge-lesson-target summary {
  cursor: pointer;
  min-height: 28px;
  line-height: 28px;
}
#workspace-guidance[data-lesson-active=true] #workspace-next-step {
  display: none;
}
#challenge-lesson-finish button {
  margin: 4px;
}
.trial-lesson-active [hidden],
.trial-lesson-active[hidden],
.trial-lesson-launch[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .trial-lesson-launch {
    flex-wrap: wrap;
  }
  .trial-lesson-active {
    padding: 9px;
  }
  .trial-lesson-heading {
    align-items: flex-start;
  }
  .trial-lesson-actions button {
    flex: 1 1 40%;
  }
  #challenge-lesson-target summary {
    min-height: 44px;
    line-height: 44px;
  }
}

/* ui/manufacturing-frame.css */
.manufacturing-frame {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line, #cbd5d9);
}
.manufacturing-frame h2 {
  font-size: 1.15rem;
  margin: 0 0 .45rem;
}
.manufacturing-frame h3 {
  font-size: 1rem;
  margin: 1rem 0 .5rem;
}
.manufacturing-frame > p {
  line-height: 1.6;
}
.manufacturing-frame fieldset {
  min-width: 0;
  margin: .7rem 0;
  border: 1px solid var(--line, #cbd5d9);
  border-radius: .55rem;
  padding: .75rem;
}
.manufacturing-frame legend {
  font-weight: 650;
  padding: 0 .25rem;
}
.manufacturing-frame-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.manufacturing-frame label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .3rem;
  font-size: .9rem;
}
.manufacturing-frame [hidden] {
  display: none !important;
}
.manufacturing-frame input:not([type=checkbox]),
.manufacturing-frame select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.manufacturing-frame input[type=checkbox] {
  width: 1.2rem;
  height: 1.2rem;
}
.manufacturing-frame-list {
  list-style: none;
  margin: .4rem 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.manufacturing-frame-list button {
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.5;
  background: white;
  color: #25525b;
  border-color: #cbd5d9;
}
.manufacturing-frame-list button[aria-current=step] {
  border-color: #287472;
  background: #eaf5f2;
  color: #153d3c;
  box-shadow: inset 3px 0 #287472;
}
.manufacturing-frame > details {
  margin: .7rem 0;
}
.manufacturing-frame > details > summary {
  cursor: pointer;
  line-height: 1.6;
  color: #25525b;
}
.manufacturing-frame-actions,
.manufacturing-frame-axis-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .65rem 0;
}
.manufacturing-frame-axis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin-bottom: .45rem;
}
.manufacturing-frame-face-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.3rem, 1fr));
  gap: .4rem;
  margin-top: .6rem;
}
.manufacturing-frame-face-list label {
  flex-direction: row;
  align-items: center;
  border: 1px solid #dde3e6;
  border-radius: .35rem;
  padding: .3rem;
}
.manufacturing-frame-face-list input {
  order: -1;
}
#manufacturing-frame-issues {
  padding-left: 1.2rem;
  line-height: 1.55;
}
#manufacturing-frame-save {
  background: #1e6562;
  color: white;
  border-color: #1e6562;
}
#manufacturing-frame-save:disabled {
  opacity: .55;
}
#manufacturing-frame-status {
  overflow-wrap: anywhere;
}
.fixture-choice-flow {
  border: 1px solid #c5d9d6;
  border-radius: .7rem;
  padding: .8rem;
  background: #f5faf9;
  margin-bottom: 1rem;
}
.fixture-choice-flow h3 {
  margin-top: 0;
}
.fixture-choice-steps {
  display: grid;
  gap: .65rem;
}
.fixture-choice-steps h4 {
  margin: .45rem 0;
  font-size: .95rem;
}
.fixture-choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}
.fixture-choice-cards button {
  min-height: 2.8rem;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
  padding: .65rem;
  background: white;
  color: #244e51;
  border: 1px solid #bacdcb;
  border-radius: .45rem;
}
.fixture-choice-cards button small {
  display: block;
  font-size: .8rem;
  margin-top: .2rem;
}
.fixture-choice-cards button[aria-pressed=true] {
  border-color: #1e6562;
  background: #dff1eb;
  box-shadow: inset 3px 0 #1e6562;
}
.fixture-choice-flow button:focus-visible {
  outline: 3px solid #e6ad45;
  outline-offset: 2px;
}
.fixture-choice-flow details {
  margin: .6rem 0;
}
.fixture-choice-flow summary {
  cursor: pointer;
  line-height: 1.6;
}
#manufacturing-library-select {
  background: #1e6562;
  border-color: #1e6562;
  color: white;
  min-height: 2.8rem;
}
#manufacturing-library-select:disabled {
  opacity: .55;
}
#manufacturing-library-preview-note {
  font-weight: 600;
  line-height: 1.5;
}
#manufacturing-library-boundary,
#manufacturing-library-target-note {
  font-size: .85rem;
  line-height: 1.5;
}
@media (max-width: 420px) {
  .manufacturing-frame-fields {
    grid-template-columns: 1fr;
  }
  .manufacturing-frame-actions button {
    flex: 1 1 auto;
  }
}

/* ui/setup-arrangement.css */
.setup-arrangement {
  border: 2px solid #33817b;
  border-radius: .7rem;
  padding: .9rem;
  margin: .9rem 0;
  background: #f4faf8;
}
.setup-arrangement [hidden] {
  display: none !important;
}
.setup-arrangement fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.setup-arrangement h3 {
  font-size: 1.1rem;
}
.arrangement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: .7rem 0;
}
.arrangement-grid label {
  min-width: 0;
  font-size: .8rem;
}
.arrangement-grid input,
.arrangement-grid select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.arrangement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .65rem 0;
}
.arrangement-actions button {
  font-size: .83rem;
  padding: .45rem .65rem;
}
.arrangement-layer-switch {
  display: flex;
  gap: .4rem;
}
.arrangement-layer-switch button {
  flex: 1;
  padding: .6rem .3rem;
  background: white;
  color: #155e58;
}
.arrangement-layer-switch button[aria-pressed=true] {
  background: #155e58;
  color: white;
}
.arrangement-active-layer {
  border-left: 3px solid #33817b;
  padding-left: .6rem;
  font-size: .85rem;
}
.arrangement-datum-note {
  font-size: .8rem;
  line-height: 1.5;
  margin: .5rem 0;
}
.arrangement-yaw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: .7rem;
  align-items: center;
  margin: .5rem 0 .8rem;
}
.arrangement-yaw-row input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.arrangement-yaw-row label {
  font-size: .8rem;
}
.arrangement-yaw-row input[type=range] {
  accent-color: #155e58;
}
#setup-arrangement-status,
#setup-arrangement-issues {
  overflow-wrap: anywhere;
}
#setup-arrangement-save {
  background: #155e58;
  color: white;
}
body.arrangement-active #workspace-viewer {
  outline: 2px solid #33817b;
  outline-offset: -2px;
}
body.arrangement-active #manufacturing-frame > :not(#workspace-arrangement-host),
body.arrangement-active #workspace-plan-host > :not(#manufacturing-frame),
body.arrangement-active #workspace-guidance,
body.arrangement-active #workspace-manual-editor,
body.arrangement-active #workspace-source-pane .view-help {
  display: none !important;
}
body.arrangement-active #workspace-current-run {
  position: static;
}
body.arrangement-active .setup-arrangement {
  margin-top: 0;
}
@media (min-width: 901px) {
  body.arrangement-active #workspace-stage {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 38%);
  }
  body.arrangement-active #workspace-stage > .constraint-left {
    position: sticky;
    top: 12px;
    align-self: start;
  }
  body.arrangement-active #workspace-stage .viewport {
    height: min(65vh, 680px);
  }
  body.arrangement-active .setup-arrangement {
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scroll-margin-top: 12px;
  }
  body.arrangement-active .setup-arrangement > .arrangement-control-scroll {
    min-height: 0;
    overflow-y: auto;
    padding-right: .4rem;
  }
  body.arrangement-active .setup-arrangement > h3 {
    margin: 0 0 .3rem;
  }
  body.arrangement-active .setup-arrangement > p {
    font-size: .8rem;
    margin: .25rem 0;
  }
  body.arrangement-active .setup-arrangement > .arrangement-actions {
    flex-shrink: 0;
  }
}
@media (max-width: 540px) {
  .arrangement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* workspace-style-entry.css */
