.ops-workbench .ops-panel + .ops-panel, .ops-workbench .ops-help { margin-top: 16px; }
.ops-panel > h2 + p, .ops-panel form > h2 + p { margin-top: 8px; }
.ops-workbench .ops-links { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.ops-workbench .ops-links a { font-weight: 650; text-underline-offset: .17em; }
.ops-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 17px; align-items: start; }
.ops-workbench .ops-report-split > .ops-panel { margin: 0; }
.ops-top-controls { display: flex; flex-wrap: wrap; gap: 11px; align-items: end; margin-block: 14px; }
.ops-top-controls > label { min-width: 124px; max-width: 100%; flex: 0 1 auto; }
.ops-top-controls:has([data-ops-baseline]) > label { flex: 1 1 230px; }
.ops-inputs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); margin-top: 9px; }
.ops-inputs .input-unit, .ops-material-inputs .input-unit { min-height: 40px; }
.ops-control { margin-top: 14px; }
.ops-workbench .packing-select select { width: 100%; }
.ops-workbench .packing-select > :is(input:not([type="file"]),textarea) { width: 100%; min-height: 41px; background: white; color: var(--ink); padding: 8px 10px; border: 1px solid #cbd3e5; border-radius: 7px; font: inherit; }
.ops-textarea { resize: vertical; }
.ops-workbench textarea.ops-code { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; line-height: 1.45; }
.ops-note { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ops-note code { overflow-wrap: anywhere; }
.ops-file-row { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: end; margin: 12px 0; }
.ops-file-row .form-actions { margin: 0; }
.ops-upload { position: relative; display: inline-flex; cursor: pointer; }
.ops-upload:focus-within .button { outline: 3px solid #7154df; outline-offset: 4px; }
.ops-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.ops-material-card, .ops-material-detail { min-width: 0; min-inline-size: 0; padding: 11px 13px 14px; border: 1px solid var(--line); border-radius: 9px; }
.ops-material-card legend { padding: 0 4px; font-weight: 750; color: var(--ink); }
.ops-panel .ops-tag { margin-top: 0; color: var(--blue-dark); font-size: .86rem; font-weight: 650; }
.ops-material-inputs { display: grid; gap: 9px; margin-top: 9px; }
.ops-material-inputs > label, .ops-top-controls > label:has(.input-unit) { display: grid; gap: 4px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.ops-workbench .ops-material-detail h3 { margin: 0; font-size: 1rem; }
.ops-workbench .ops-material-detail p { margin-top: 7px; font-size: .91rem; line-height: 1.45; }
.ops-library .ops-note { margin-top: 0; }
.ops-notice { margin-block: 9px 12px; color: var(--muted); overflow-wrap: anywhere; }
.ops-workbench .ops-error { color: #932442; font-weight: 650; }
.ops-table { border: 1px solid var(--line); border-radius: 8px; max-height: 480px; overflow: auto; }
.ops-table table { border-collapse: separate; border-spacing: 0; min-width: 100%; width: max-content; max-width: 1200px; font-size: .89rem; }
.ops-table :is(th, td) { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: start; vertical-align: top; max-width: 320px; overflow-wrap: anywhere; }
.ops-table thead th { position: sticky; z-index: 1; top: 0; background: #eff3ff; color: #233e93; font-weight: 700; }
.ops-table tbody th { font-weight: 650; color: var(--ink); }
.ops-table tbody tr:nth-child(even) { background: #f9fbff; }
.ops-table tbody tr:last-child > * { border-bottom: 0; }
.ops-table .ops-links { flex-wrap: nowrap; white-space: nowrap; }
.ops-table .button { min-height: 31px; padding: 4px 8px; font-size: .8rem; }
.ops-issues { margin-top: 13px; }
.ops-issues summary { cursor: pointer; font-size: .94rem; font-weight: 700; color: #932442; }
.ops-issues ul { color: var(--muted); max-height: 250px; overflow: auto; font-size: .9rem; padding-left: 24px; }
.ops-report-notes { white-space: pre-line; overflow-wrap: anywhere; }
.ops-workbench .ops-secondary-heading { margin-block: 20px 10px; }
.ops-cost-bars { display: grid; gap: 8px; margin-block: 10px 16px; padding: 12px; border-radius: 8px; background: #f4f6ff; }
.ops-cost-bars > div { display: grid; align-items: center; gap: 10px; grid-template-columns: 6.2rem minmax(0, 1fr) max-content; color: var(--muted); font-size: .88rem; }
.ops-bar-track { background: #e0e7fb; height: 12px; border-radius: 20px; overflow: hidden; }
.ops-bar-track > span { display: block; height: 100%; border-radius: inherit; background: #5773de; }
.ops-cost-bars > div:last-child .ops-bar-track > span { background: #2746c6; }
.ops-cost-bars strong { color: var(--ink); }
.ops-workbench button:disabled { opacity: .55; cursor: default; }
@media (max-width: 910px) { .ops-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 730px) { .ops-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .ops-card-grid { grid-template-columns: 1fr; }
  .ops-table :is(th, td) { padding-inline: 8px; max-width: 245px; }
  .ops-cost-bars > div { grid-template-columns: 5.4rem minmax(0,1fr) max-content; gap: 6px; }
}
