/* Machines workspace: shared Flow navigation stays outside this scope. */
.machines-workspace {
  color-scheme: light;
  --ink: #203349;
  --muted: #718397;
  --teal: #087e70;
  --teal-dark: #05685d;
  --mint: #edf6f2;
  --canvas: #f5f8fa;
  --line: #e0e8ed;
  --line-light: #edf1f4;
  --amber: #986719;
  --amber-bg: #fff7e8;
  --radius: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}

.machines-workspace * { box-sizing: border-box; }
.machines-workspace { margin: 0; min-width: 1024px; font-size: 13px; line-height: 1.5; }
.machines-workspace button, .machines-workspace input, .machines-workspace select, .machines-workspace textarea { font: inherit; color: inherit; }
.machines-workspace button, .machines-workspace a, .machines-workspace input, .machines-workspace select, .machines-workspace textarea { -webkit-tap-highlight-color: transparent; }
.machines-workspace button { cursor: pointer; }
.machines-workspace button:disabled { cursor: not-allowed; opacity: .48; }
.machines-workspace button, .machines-workspace input, .machines-workspace select, .machines-workspace textarea { border-radius: 6px; }
.machines-workspace a { color: var(--teal); text-decoration: none; }
.machines-workspace a:hover { text-decoration: underline; text-underline-offset: 3px; }
.machines-workspace button:focus-visible, .machines-workspace a:focus-visible, .machines-workspace input:focus-visible, .machines-workspace select:focus-visible, .machines-workspace textarea:focus-visible, .machines-workspace [tabindex]:focus-visible { outline: 3px solid #67bcae; outline-offset: 3px; }
.machines-workspace button:focus:not(:focus-visible) { outline: none; }
.machines-workspace img { display: block; max-width: 100%; }
.machines-workspace svg { flex-shrink: 0; }
.machines-workspace h1, .machines-workspace h2, .machines-workspace h3, .machines-workspace p { margin-top: 0; }
.machines-workspace h1, .machines-workspace h2, .machines-workspace h3 { line-height: 1.25; }
.machines-workspace h1 { font-size: 28px; letter-spacing: -.7px; font-weight: 600; }
.machines-workspace h2 { font-size: 18px; letter-spacing: -.3px; font-weight: 600; }
.machines-workspace h3 { font-size: 14px; font-weight: 600; }
.machines-workspace button, .machines-workspace a, .machines-workspace input, .machines-workspace select { transition: background-color .14s, border-color .14s, color .14s, box-shadow .14s; }
.machines-workspace [hidden] { display: none !important; }
.machines-workspace .icon-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.machines-workspace .muted { color: var(--muted); }
.machines-workspace .nowrap { white-space: nowrap; }
.machines-workspace .subtle-link { color: var(--teal); font-size: 12px; font-weight: 500; }
.machines-workspace button.subtle-link { padding: 0; background: none; border: 0; text-align: left; }
.machines-workspace button.subtle-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.machines-workspace .demo-label { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; background: #f0f4f7; color: #697d8e; font-size: 10px; font-weight: 500; white-space: nowrap; }
.machines-workspace .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.machines-workspace .page-heading h1 { margin-bottom: 7px; }
.machines-workspace .eyebrow { display: block; color: #84919f; font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 8px; }
.machines-workspace .subtitle { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.5; }
.machines-workspace .heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.machines-workspace .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid #d9e4e9; border-radius: 7px; background: white; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.machines-workspace .btn:hover { background: #f8fafb; border-color: #b9cdc9; text-decoration: none; }
.machines-workspace .btn.primary { background: var(--teal); border-color: var(--teal); color: white; box-shadow: 0 1px 2px #07574d12; }
.machines-workspace .btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.machines-workspace .btn.quiet { background: transparent; border-color: transparent; color: #64788a; }
.machines-workspace .btn.quiet:hover { background: #edf2f5; color: var(--ink); }
.machines-workspace .btn.danger { color: #b64f52; border-color: #eed9dc; }
.machines-workspace .btn.danger:hover { background: #fff4f4; }
.machines-workspace .btn.icon { width: 36px; padding: 7px; }
.machines-workspace .btn.small { min-height: 34px; padding: 5px 10px; font-size: 11px; }
.machines-workspace .btn.small.icon { width: 34px; padding: 6px; }
.machines-workspace .btn .icon-svg { width: 16px; height: 16px; }
.machines-workspace .count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border: 1px solid #e1e9ed; border-radius: 5px; background: #f8fafb; color: #6c8192; font-size: 11px; font-weight: 400; line-height: 1; }
.machines-workspace .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.machines-workspace .search-box { position: relative; display: flex; align-items: center; gap: 9px; flex: 1 1 260px; max-width: 390px; min-width: 200px; min-height: 38px; padding: 0 12px; background: white; border: 1px solid #d9e4e9; border-radius: 7px; color: #8a9bac; }
.machines-workspace .search-box:focus-within { border-color: #7ab5a9; box-shadow: 0 0 0 3px #087e700b; }
.machines-workspace .search-box input { width: 100%; min-width: 0; height: 36px; padding: 0; background: transparent; border: 0; outline: none; font-size: 12px; }
.machines-workspace .search-box input:focus-visible { outline: none; }
.machines-workspace input::placeholder, .machines-workspace textarea::placeholder { color: #96a4b0; opacity: 1; }
.machines-workspace .filter-select { min-height: 38px; max-width: 240px; padding: 7px 32px 7px 11px; border: 1px solid #d9e4e9; border-radius: 7px; background-color: white; font-size: 12px; }
.machines-workspace .category-tabs { display: flex; align-items: center; gap: 21px; min-height: 43px; border-bottom: 1px solid var(--line); }
.machines-workspace .category-tab { display: flex; align-items: center; gap: 7px; min-height: 43px; margin-bottom: -1px; padding: 9px 0 12px; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: none; color: #718297; font-size: 12px; font-weight: 400; white-space: nowrap; }
.machines-workspace .category-tab:hover { color: var(--teal); }
.machines-workspace .category-tab.active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 500; }
.machines-workspace .tab-count { padding: 1px 5px; border-radius: 4px; background: #eaf0f3; color: #738693; font-size: 10px; line-height: 1.5; }
.machines-workspace .category-tab.active .tab-count { background: #e3f0e9; color: #427466; }
.machines-workspace .results-line { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; color: #7a8c9c; font-size: 11px; }
.machines-workspace .results-line strong { color: var(--ink); font-weight: 500; }
.machines-workspace .view-switch { display: flex; gap: 2px; padding: 3px; background: #eaf0f3; border: 1px solid #e2e9ee; border-radius: 7px; }
.machines-workspace .view-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 32px; min-height: 28px; padding: 4px 8px; border: 0; background: transparent; color: #8290a0; font-size: 11px; }
.machines-workspace .view-switch button.active, .machines-workspace .view-switch button[aria-pressed="true"] { background: white; color: var(--teal); box-shadow: 0 1px 3px #2033490d; }
.machines-workspace .view-switch .icon-svg { width: 15px; height: 15px; }
.machines-workspace .table-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 4px #20334902; }
.machines-workspace .machine-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.machines-workspace .machine-table th { height: 42px; padding: 11px 16px; background: #f9fbfc; border-bottom: 1px solid var(--line); color: #80909f; font-weight: 400; font-size: 11px; }
.machines-workspace .machine-table th:first-child { width: 40%; }
.machines-workspace .machine-table th:last-child { width: 44px; padding-left: 0; padding-right: 12px; }
.machines-workspace .machine-table td { height: 73px; padding: 9px 16px; border-bottom: 1px solid var(--line-light); color: #5e7487; font-size: 12px; overflow-wrap: anywhere; }
.machines-workspace .machine-table td:last-child { padding-left: 0; padding-right: 12px; }
.machines-workspace .machine-table tbody tr:last-child td { border-bottom: 0; }
.machines-workspace .machine-table tbody tr { transition: background-color .12s; }
.machines-workspace .machine-table tbody tr:hover { background: #fafcfb; }
.machines-workspace .machine-table tbody tr:focus-within { background: #f5faf7; }
.machines-workspace .machine-cell { display: flex; align-items: center; gap: 15px; min-width: 0; }
.machines-workspace .machine-thumb { width: 84px; height: 54px; flex: 0 0 84px; padding: 5px; border: 1px solid #eaf0f2; border-radius: 6px; background: white; display: grid; place-items: center; overflow: hidden; }
.machines-workspace .machine-thumb img { width: 100%; height: 100%; max-height: 42px; object-fit: contain; }
.machines-workspace .machine-copy { min-width: 0; }
.machines-workspace .machine-name { display: block; margin: 0 0 4px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.machines-workspace button.machine-name:hover, .machines-workspace a.machine-name:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.machines-workspace .machine-meta { color: #8493a0; font-size: 11px; line-height: 1.4; }
.machines-workspace .pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #f0f4f6; color: #677d8f; font-size: 10px; font-weight: 400; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
.machines-workspace .pill.mint { color: #477b69; background: #edf6f0; }
.machines-workspace .pill.amber { color: var(--amber); background: var(--amber-bg); }
.machines-workspace .pill.neutral { color: #657b91; background: #edf2f7; }
.machines-workspace .pill.muted { color: #8a98a5; background: #f3f5f7; }
.machines-workspace .status-dot { display: inline-block; width: 5px; height: 5px; flex: 0 0 5px; background: currentColor; border-radius: 50%; }
.machines-workspace .number-cell { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 500; color: var(--ink); }
.machines-workspace .number-cell small { color: var(--muted); font-weight: 400; font-size: 11px; }
.machines-workspace .table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 11px 17px; border-top: 1px solid var(--line-light); color: #8b9aa7; font-size: 11px; }
.machines-workspace .empty-state { padding: 58px 24px; text-align: center; color: var(--muted); }
.machines-workspace .empty-state .icon-svg { width: 28px; height: 28px; color: #a5b9bb; margin-bottom: 12px; }
.machines-workspace .empty-state h3 { color: var(--ink); margin-bottom: 7px; }
.machines-workspace .empty-state p { max-width: 370px; margin: 0 auto 18px; }
.machines-workspace .machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.machines-workspace .machine-tile { display: block; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; text-align: left; color: var(--ink); }
.machines-workspace .machine-tile:hover { border-color: #b8d2c9; box-shadow: 0 4px 14px #20334906; text-decoration: none; }
.machines-workspace .tile-image { position: relative; display: grid; place-items: center; height: 154px; padding: 22px 26px 15px; background: white; border-bottom: 1px solid var(--line-light); }
.machines-workspace .tile-image img { width: 100%; height: 116px; object-fit: contain; }
.machines-workspace .tile-image .pill { position: absolute; top: 10px; left: 12px; }
.machines-workspace .tile-body { padding: 15px 17px 17px; }
.machines-workspace .tile-body h3 { font-size: 14px; margin-bottom: 5px; }
.machines-workspace .tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; color: #778a9a; font-size: 11px; }

.machines-workspace .back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0; margin: -5px 0 15px; border: 0; background: transparent; color: #6d8394; font-size: 12px; }
.machines-workspace .back-link:hover { color: var(--teal); }
.machines-workspace .back-link .icon-svg { width: 15px; height: 15px; }
.machines-workspace .detail-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 29px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.machines-workspace .hero-photo { position: relative; display: grid; place-items: center; min-height: 192px; padding: 15px; border: 1px solid var(--line-light); border-radius: 7px; background: white; }
.machines-workspace button.hero-photo:hover { border-color: #b4d3c8; }
.machines-workspace .hero-photo img { width: 100%; height: 174px; object-fit: contain; }
.machines-workspace .hero-photo > .icon-svg { position: absolute; right: 10px; bottom: 10px; width: 16px; height: 16px; color: #8ea298; }
.machines-workspace .photo-credit { margin-top: 7px; color: #98a4af; font-size: 10px; line-height: 1.4; }
.machines-workspace .photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.machines-workspace .hero-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.machines-workspace .hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.machines-workspace .hero-topline .eyebrow { margin: 0; }
.machines-workspace .hero-topline > div { display: flex; align-items: center; gap: 7px; }
.machines-workspace .hero-title { font-size: 27px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 7px; }
.machines-workspace .hero-subtitle { color: var(--muted); margin-bottom: 22px; font-size: 13px; }
.machines-workspace .hero-attributes { display: flex; flex-wrap: wrap; gap: 16px 26px; padding-top: 17px; border-top: 1px solid var(--line-light); }
.machines-workspace .hero-attribute { min-width: 100px; }
.machines-workspace .hero-attribute span, .machines-workspace .hero-attribute small { display: block; color: #8394a3; font-size: 10px; margin-bottom: 4px; }
.machines-workspace .hero-attribute strong { display: block; font-size: 12px; font-weight: 500; }
.machines-workspace .detail-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 16px 0 23px; }
.machines-workspace .detail-tab { display: flex; align-items: center; gap: 7px; min-height: 45px; margin-bottom: -1px; padding: 12px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #73889a; font-size: 12px; font-weight: 400; white-space: nowrap; }
.machines-workspace .detail-tab:hover { color: var(--teal); }
.machines-workspace .detail-tab.active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 500; }
.machines-workspace .detail-tab .icon-svg { width: 15px; height: 15px; }
.machines-workspace .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.machines-workspace .section-heading h2 { margin: 0 0 4px; }
.machines-workspace .section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.machines-workspace .section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.machines-workspace .detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); align-items: start; gap: 20px; }
.machines-workspace .detail-layout > div { min-width: 0; }
.machines-workspace .panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.machines-workspace .panel + .panel { margin-top: 18px; }
.machines-workspace .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 19px; border-bottom: 1px solid var(--line-light); }
.machines-workspace .panel-heading h2, .machines-workspace .panel-heading h3 { margin: 0; font-size: 13px; font-weight: 500; }
.machines-workspace .panel-heading > .icon-svg { color: #91a59c; }
.machines-workspace .panel-body { padding: 20px; }
.machines-workspace .panel-body > :last-child { margin-bottom: 0; }
.machines-workspace .fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.machines-workspace .fact { min-width: 0; }
.machines-workspace .fact-label { display: block; margin-bottom: 5px; color: #8192a1; font-size: 11px; }
.machines-workspace .fact-value { display: block; color: var(--ink); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.machines-workspace .fact-value strong { font-weight: 500; }
.machines-workspace .info-note { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #e4ece9; background: #f5f9f7; padding: 12px 14px; border-radius: 7px; color: #627b72; font-size: 11px; line-height: 1.6; margin: 18px 0; }
.machines-workspace .info-note .icon-svg { width: 15px; height: 15px; margin-top: 2px; }
.machines-workspace .info-note p { margin: 0; }
.machines-workspace .linked-preview { padding: 3px 17px; }
.machines-workspace .linked-preview-row { display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.machines-workspace .linked-preview-row:last-child { border-bottom: 0; }
.machines-workspace .linked-preview-row > div:not(.mini-icon) { flex: 1; min-width: 0; }
.machines-workspace .linked-preview-row strong { display: block; font-size: 12px; font-weight: 500; }
.machines-workspace .linked-preview-row small { display: block; margin-top: 2px; color: #8798a4; font-size: 10px; }
.machines-workspace .mini-icon { display: inline-grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 7px; background: #f0f5f3; color: #709485; }
.machines-workspace .mini-icon .icon-svg { width: 15px; height: 15px; }
.machines-workspace .spec-group { padding: 0 20px; }
.machines-workspace .spec-group h3 { padding-top: 20px; margin-bottom: 7px; color: #758a9a; font-size: 11px; font-weight: 500; }
.machines-workspace .spec-group:last-child { padding-bottom: 12px; }
.machines-workspace .spec-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(100px, .7fr) 34px; align-items: center; gap: 14px; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.machines-workspace .spec-row:last-child { border-bottom: 0; }
.machines-workspace .spec-label { color: #6f8596; font-size: 12px; }
.machines-workspace .spec-value { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.machines-workspace .source-tag { display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: #7d9388; font-size: 10px; padding: 3px 6px; border-radius: 4px; background: #f1f6f3; white-space: nowrap; }
.machines-workspace .source-tag .icon-svg { width: 12px; height: 12px; }
.machines-workspace .source-tag.override { color: #997d48; background: #fbf6eb; }
.machines-workspace .linked-table { width: 100%; border-collapse: collapse; text-align: left; }
.machines-workspace .linked-table th { padding: 12px 17px; background: #f9fbfc; border-bottom: 1px solid var(--line); color: #8292a0; font-size: 11px; font-weight: 400; }
.machines-workspace .linked-table td { padding: 14px 17px; border-bottom: 1px solid var(--line-light); font-size: 12px; vertical-align: middle; }
.machines-workspace .linked-table tr:last-child td { border-bottom: 0; }
.machines-workspace .linked-table td:last-child { text-align: right; }
.machines-workspace .linked-table .machine-name { font-size: 12px; }
.machines-workspace .catalog-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 3px; background: #9bb5c7; }
.machines-workspace .catalog-name { color: #647d8e; font-size: 11px; }
.machines-workspace .document-list { padding: 0 20px; }
.machines-workspace .document-row { display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 13px 0; border-bottom: 1px solid var(--line-light); }
.machines-workspace .document-row:last-child { border-bottom: 0; }
.machines-workspace .document-icon { display: grid; place-items: center; width: 34px; height: 40px; flex: 0 0 34px; border: 1px solid #e0e7ed; border-radius: 5px; background: #f7f9fb; color: #7b92a4; }
.machines-workspace .document-icon .icon-svg { width: 18px; height: 18px; }
.machines-workspace .document-row > div:not(.document-icon) { flex: 1; min-width: 0; }
.machines-workspace .document-row strong { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.machines-workspace .document-row small { color: #8a99a6; font-size: 11px; }
.machines-workspace .timeline { padding: 4px 20px 14px; }
.machines-workspace .timeline-row { display: flex; gap: 12px; position: relative; padding: 17px 0; }
.machines-workspace .timeline-row:not(:last-child)::after { position: absolute; content: ""; width: 1px; top: 33px; left: 4px; bottom: -16px; background: #e2ebe6; }
.machines-workspace .timeline-dot { margin-top: 5px; height: 9px; width: 9px; flex: 0 0 9px; border: 2px solid #c4dbd1; border-radius: 50%; background: white; }
.machines-workspace .timeline-copy { min-width: 0; font-size: 12px; }
.machines-workspace .timeline-copy strong { font-weight: 500; }
.machines-workspace .timeline-copy p { margin: 4px 0; color: #8294a0; font-size: 11px; }
.machines-workspace .timeline-copy time, .machines-workspace .timeline-copy small { color: #97a5af; font-size: 10px; }
.machines-workspace .model-row { display: flex; align-items: center; gap: 18px; padding: 18px 21px; border-bottom: 1px solid var(--line-light); }
.machines-workspace .model-row:last-child { border-bottom: 0; }
.machines-workspace .model-image { display: grid; place-items: center; width: 105px; height: 66px; flex: 0 0 105px; padding: 6px; border: 1px solid var(--line-light); border-radius: 7px; background: white; }
.machines-workspace .model-image img { max-height: 54px; width: 100%; object-fit: contain; }
.machines-workspace .model-copy { flex: 1; min-width: 0; }
.machines-workspace .model-copy h3 { margin-bottom: 5px; font-size: 13px; font-weight: 500; }
.machines-workspace .model-copy p { margin: 0; color: #81929f; font-size: 11px; }
.machines-workspace .model-users { color: #6c8595; font-size: 11px; white-space: nowrap; }
.machines-workspace .model-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 20px; color: #8a9ca7; background: #fbfcfc; font-size: 11px; }
.machines-workspace .model-source { color: #829888; font-size: 11px; }
.machines-workspace .grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.machines-workspace .notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid #dfe9e7; border-radius: 7px; background: #f3f8f5; color: #567b6d; font-size: 12px; }
.machines-workspace .notice.amber { border-color: #f0e1bf; background: #fff9ed; color: #957637; }
.machines-workspace .notice .icon-svg { width: 16px; height: 16px; margin-top: 1px; }
.machines-workspace .notice p { margin: 0; }

.machines-workspace .dialog { width: min(860px, calc(100vw - 64px)); max-width: 860px; max-height: calc(100vh - 64px); padding: 0; border: 1px solid #dbe5e9; border-radius: 13px; background: white; color: var(--ink); box-shadow: 0 28px 90px #20334935, 0 3px 18px #20334912; overflow: hidden; }
.machines-workspace .dialog[open] { display: flex; flex-direction: column; }
.machines-workspace .dialog::backdrop { background: #20334950; backdrop-filter: blur(3px); }
.machines-workspace .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex: 0 0 auto; padding: 23px 26px 19px; border-bottom: 1px solid var(--line); }
.machines-workspace .dialog-head h2 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.4px; font-weight: 600; }
.machines-workspace .dialog-head .eyebrow { margin-bottom: 6px; }
.machines-workspace .dialog-head p { margin: 0; font-size: 12px; color: var(--muted); }
.machines-workspace .dialog-head .btn.icon { flex: 0 0 34px; margin: -4px -7px 0 0; }
.machines-workspace .dialog-body { min-height: 0; max-height: 65vh; overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px; scrollbar-width: thin; scrollbar-color: #c9d9d5 transparent; }
.machines-workspace .dialog-body > :last-child { margin-bottom: 0; }
.machines-workspace .dialog-foot { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; gap: 9px; min-height: 70px; padding: 15px 26px; border-top: 1px solid var(--line); background: #fbfcfc; }
.machines-workspace .dialog-foot > .muted, .machines-workspace .dialog-foot > .selection-count { margin-right: auto; font-size: 11px; }
.machines-workspace .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.machines-workspace .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.machines-workspace .field > label, .machines-workspace .field > span:first-child { color: #536e82; font-size: 12px; font-weight: 500; }
.machines-workspace .full { grid-column: 1 / -1; }
.machines-workspace .field-hint { margin: 0; color: #91a1ad; font-size: 11px; line-height: 1.45; }
.machines-workspace .input, .machines-workspace .field > input:not([type="checkbox"]):not([type="radio"]), .machines-workspace .field > select, .machines-workspace .field > textarea { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid #dbe5e9; border-radius: 6px; background: white; font-size: 12px; line-height: 1.5; }
.machines-workspace .input:hover, .machines-workspace .field > input:hover, .machines-workspace .field > select:hover, .machines-workspace .field > textarea:hover { border-color: #bdd1cc; }
.machines-workspace .input:focus, .machines-workspace .field > input:focus, .machines-workspace .field > select:focus, .machines-workspace .field > textarea:focus { border-color: #79b6a8; }
.machines-workspace textarea.input, .machines-workspace .field > textarea { min-height: 92px; resize: vertical; }
.machines-workspace .input:disabled { background: #f6f8fa; color: #92a0ab; }
.machines-workspace .checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #627d8e; cursor: pointer; }
.machines-workspace input[type="checkbox"], .machines-workspace input[type="radio"] { width: 15px; height: 15px; margin: 2px 0 0; flex: 0 0 15px; accent-color: var(--teal); cursor: pointer; }
.machines-workspace .switch-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6c8495; }
.machines-workspace .radio-card { display: flex; align-items: flex-start; gap: 10px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.machines-workspace .radio-card:has(input:checked) { border-color: #9ecaba; background: #f3f9f6; }
.machines-workspace .radio-card strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.machines-workspace .radio-card small { color: #8496a1; font-size: 11px; }
.machines-workspace .form-alert { margin: 0 0 17px; padding: 11px 13px; border: 1px solid #f0d6d4; border-radius: 7px; background: #fff5f3; color: #ad5952; font-size: 12px; }
.machines-workspace .picker-dialog { width: min(1000px, calc(100vw - 64px)); max-width: 1000px; }
.machines-workspace .picker-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 23px; align-items: start; }
.machines-workspace .picker-list { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.machines-workspace .picker-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border-bottom: 1px solid var(--line-light); background: white; cursor: pointer; }
.machines-workspace .picker-item:last-child { border-bottom: 0; }
.machines-workspace .picker-item:hover { background: #fafcfb; }
.machines-workspace .picker-item:has(input:checked), .machines-workspace .picker-item.selected { background: #f0f7f3; }
.machines-workspace .picker-item input { margin-top: 4px; }
.machines-workspace .picker-choice { flex: 1; min-width: 0; }
.machines-workspace .picker-choice strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.machines-workspace .picker-choice small, .machines-workspace .picker-choice p { display: block; margin: 0; color: #879aa7; font-size: 11px; }
.machines-workspace .picker-choice .pill { margin-top: 7px; }
.machines-workspace .picker-aside { position: sticky; top: 0; padding: 18px; border: 1px solid #e0ebe6; border-radius: 8px; background: #f6faf8; }
.machines-workspace .picker-aside h3 { margin-bottom: 12px; font-size: 12px; font-weight: 500; }
.machines-workspace .picker-target { padding-bottom: 17px; border-bottom: 1px solid #e0ebe5; margin-bottom: 16px; }
.machines-workspace .picker-target img { width: 100%; height: 85px; object-fit: contain; margin: 0 0 14px; }
.machines-workspace .picker-target strong { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; }
.machines-workspace .picker-target small { color: #8a9c99; font-size: 11px; }
.machines-workspace .picker-summary { color: #748e83; font-size: 11px; line-height: 1.6; }
.machines-workspace .picker-summary strong { color: #477665; font-size: 14px; font-weight: 500; }
.machines-workspace .selection-count { color: #67897b; font-size: 12px; }
.machines-workspace .impact-list { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.machines-workspace .impact-row { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px 15px; border-bottom: 1px solid var(--line-light); font-size: 12px; }
.machines-workspace .impact-row:last-child { border-bottom: 0; }
.machines-workspace .impact-row strong { font-weight: 500; }
.machines-workspace .impact-row small { color: #889ba7; font-size: 11px; }
.machines-workspace .material-hero { display: flex; align-items: center; gap: 17px; margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfc; }
.machines-workspace .material-hero .mini-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 10px; }
.machines-workspace .material-hero .mini-icon .icon-svg { width: 23px; height: 23px; }
.machines-workspace .material-hero h3 { font-size: 16px; margin-bottom: 5px; }
.machines-workspace .material-hero p { color: #7e94a1; font-size: 12px; margin: 0; }
.machines-workspace .linked-machines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.machines-workspace .machine-link { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); text-align: left; }
.machines-workspace .machine-link:hover { border-color: #9cc6b7; background: #f8fcf9; text-decoration: none; }
.machines-workspace .machine-link img { width: 70px; height: 47px; object-fit: contain; }
.machines-workspace .machine-link strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.machines-workspace .machine-link small { color: #8b9ba6; font-size: 11px; }
.machines-workspace .image-dialog { width: min(1000px, calc(100vw - 64px)); max-width: 1000px; }
.machines-workspace .image-dialog .dialog-body { display: flex; flex-direction: column; align-items: center; padding: 28px 40px; }
.machines-workspace .image-dialog .dialog-body > img { width: 100%; max-height: 53vh; min-height: 240px; object-fit: contain; }
.machines-workspace .image-dialog .photo-credit { align-self: flex-start; margin-top: 22px; }
.machines-workspace .document-dialog { width: min(1200px, calc(100vw - 64px)); max-width: 1200px; }
.machines-workspace .document-dialog .dialog-body { padding: 0; max-height: 68vh; background: #f1f5f7; }
.machines-workspace .document-frame { display: block; width: 100%; height: 68vh; border: 0; background: white; }
.machines-workspace .document-fallback { display: grid; align-content: center; justify-items: center; min-height: 300px; height: 55vh; padding: 40px; text-align: center; color: #7f93a1; }
.machines-workspace .document-fallback > .icon-svg { width: 38px; height: 38px; margin-bottom: 18px; color: #97afa6; }
.machines-workspace .document-fallback h3 { color: var(--ink); font-size: 17px; }
.machines-workspace .document-fallback p { max-width: 440px; margin-bottom: 22px; }
.machines-workspace .photo-missing { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 100%; height: 100%; min-height: 42px; color: #a0b1b9; font-size: 10px; background: #f9fbfc; border-radius: 5px; }
.machines-workspace .photo-missing .icon-svg { width: 24px; height: 24px; }
.machines-workspace .keyboard-key { display: inline-grid; place-items: center; min-width: 19px; height: 20px; padding: 0 4px; border: 1px solid #e1e8ed; border-radius: 4px; background: white; color: #a1b0bd; font-family: inherit; font-size: 11px; }

/* Component structure shared by the overview, details and native dialogs. */
.machines-workspace .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.machines-workspace .page-heading h1 .count-pill { vertical-align: middle; margin-left: 5px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.machines-workspace .category-tabs + .toolbar { margin-top: 19px; margin-bottom: 0; }
.machines-workspace .toolbar > .view-switch { margin-left: auto; }
.machines-workspace img.machine-thumb, .machines-workspace img.model-image { object-fit: contain; }
.machines-workspace .machine-table tbody tr { cursor: pointer; }
.machines-workspace .machine-table td:last-child > .icon-svg { width: 15px; height: 15px; color: #9db0b8; }
.machines-workspace .table-footer .icon-svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -3px; }
.machines-workspace .unconfirmed-dot { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: #c5a773; vertical-align: 1px; }
.machines-workspace .row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.machines-workspace .stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.machines-workspace .stack > .panel + .panel, .machines-workspace .grid-two > .panel + .panel { margin-top: 0; }
.machines-workspace .hero-photo { display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.machines-workspace .hero-photo > button { position: relative; display: grid; place-items: center; width: 100%; min-height: 174px; padding: 0; border: 0; background: white; border-radius: 5px; }
.machines-workspace .hero-photo > button:hover { background: #fcfdfc; }
.machines-workspace .hero-photo .photo-credit { text-align: center; margin-top: 12px; line-height: 1.5; }
.machines-workspace .photo-zoom { position: absolute; right: 2px; bottom: 1px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #e4ece8; border-radius: 5px; background: white; color: #90a99e; }
.machines-workspace .photo-zoom .icon-svg { width: 14px; height: 14px; }
.machines-workspace .linked-preview-row, .machines-workspace .document-row { width: 100%; border-width: 0 0 1px; border-style: solid; border-color: var(--line-light); border-radius: 0; background: white; text-align: left; color: var(--ink); }
.machines-workspace .linked-preview-row:hover, .machines-workspace .document-row:hover { background: #fbfdfc; }
.machines-workspace .linked-preview-row > span:not(.mini-icon), .machines-workspace .document-row > span:not(.document-icon) { flex: 1; min-width: 0; }
.machines-workspace .linked-preview-row > .icon-svg, .machines-workspace .document-row > .icon-svg { width: 13px; height: 13px; color: #98afa5; }
.machines-workspace .linked-preview-row strong { overflow-wrap: anywhere; }
.machines-workspace .linked-preview-row small { line-height: 1.45; }
.machines-workspace .compact-facts { margin: 0; }
.machines-workspace .compact-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.machines-workspace .compact-facts > div:last-child { margin-bottom: 0; }
.machines-workspace .compact-facts dt { color: #7f93a2; font-size: 11px; }
.machines-workspace .compact-facts dd { margin: 0; color: #566f82; font-size: 12px; overflow-wrap: anywhere; }
.machines-workspace .model-source { display: flex; align-items: flex-start; gap: 9px; padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--line-light); line-height: 1.55; }
.machines-workspace .model-source .icon-svg { width: 15px; height: 15px; margin-top: 1px; }
.machines-workspace .model-source strong { font-weight: 500; }
.machines-workspace .dialog-body > .model-source:first-child { padding-top: 0; margin-top: 0; border: 0; margin-bottom: 16px; }
.machines-workspace .source-tag.own { background: #fff6e8; color: #9b7a40; }
.machines-workspace .spec-value { font-weight: 500; }
.machines-workspace .catalog-dot { display: inline-grid; place-items: center; width: 31px; height: 34px; flex: 0 0 31px; margin: 0; border-radius: 6px; background: #f0f4f7; color: #839aab; }
.machines-workspace .catalog-dot .icon-svg { width: 16px; height: 16px; }
.machines-workspace .catalog-dot.supply { background: #f1f6f2; color: #83a28c; }
.machines-workspace .catalog-name { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); }
.machines-workspace .catalog-name:hover strong { color: var(--teal); }
.machines-workspace .catalog-name strong { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 500; }
.machines-workspace .catalog-name small { display: block; color: #8a9ba8; font-size: 10px; }
.machines-workspace .section-label { display: flex; align-items: center; gap: 8px; margin: 24px 0 13px; font-size: 12px; font-weight: 500; }
.machines-workspace .radio-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.machines-workspace .dialog-body > .subtitle { margin-bottom: 20px; }
.machines-workspace .dialog-body > .linked-machines { margin-bottom: 22px; }
.machines-workspace .dialog-body > .model-footer { margin: 20px -26px -24px; padding: 14px 26px; border-top: 1px solid var(--line-light); }
.machines-workspace #machines-editor > .field-hint { margin-top: 9px; }
.machines-workspace #machines-editor > .subtitle { margin-bottom: 20px; }
.machines-workspace .picker-layout .search-box { max-width: none; margin-bottom: 13px; }
.machines-workspace .picker-targets { margin-top: 14px; }
.machines-workspace .picker-targets .picker-target { display: flex; align-items: flex-start; gap: 9px; min-height: 36px; margin: 0; padding: 8px 0; border-bottom: 1px solid #e5ede8; font-size: 11px; cursor: pointer; }
.machines-workspace .picker-targets .picker-target:last-child { border-bottom: 0; }
.machines-workspace .picker-targets .picker-target small { display: block; color: #92a49a; font-size: 10px; margin-top: 1px; }
.machines-workspace .picker-target input { width: 14px; height: 14px; flex-basis: 14px; margin-top: 2px; }
.machines-workspace .picker-item > .catalog-dot { width: 29px; height: 31px; flex-basis: 29px; }
.machines-workspace .dialog-foot > .picker-summary { margin-right: auto; }
.machines-workspace .material-hero > .catalog-dot { width: 45px; height: 45px; flex-basis: 45px; }
.machines-workspace .material-hero > .catalog-dot .icon-svg { width: 23px; height: 23px; }
.machines-workspace .material-hero > .pill { margin-left: auto; }
.machines-workspace .machine-link > .icon-svg { width: 17px; height: 17px; color: #87a396; }
.machines-workspace .machine-link > .icon-svg:last-child { width: 13px; height: 13px; margin-left: auto; }
.machines-workspace .machine-link > span { min-width: 0; }
.machines-workspace .machine-link > span small { display: block; margin-top: 3px; }
.machines-workspace .timeline-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; flex-basis: 28px; margin-top: 0; border: 1px solid #e4ede8; border-radius: 8px; background: #f5f9f6; color: #8ca89a; }
.machines-workspace .timeline-dot .icon-svg { width: 14px; height: 14px; }
.machines-workspace .timeline-row:not(:last-child)::after { top: 46px; bottom: -16px; left: 13px; }
.machines-workspace .timeline-copy h3 { font-size: 12px; font-weight: 500; margin: 3px 0 5px; }
.machines-workspace .subtle-link .icon-svg { width: 12px; height: 12px; margin-left: 4px; vertical-align: -2px; }
.machines-workspace .expanded-photo { width: 100%; max-height: 53vh; object-fit: contain; }

@media (max-width: 1250px) {
  .machines-workspace .machine-table th, .machines-workspace .machine-table td { padding-left: 12px; padding-right: 12px; }
  .machines-workspace .machine-table th:first-child { width: 39%; }
  .machines-workspace .machine-cell { gap: 11px; }
  .machines-workspace .category-tabs { gap: 18px; }
  .machines-workspace .detail-hero { grid-template-columns: 265px minmax(0, 1fr); gap: 24px; padding: 21px; }
  .machines-workspace .hero-title { font-size: 25px; }
  .machines-workspace .hero-attributes { gap: 15px 19px; }
  .machines-workspace .spec-row { grid-template-columns: minmax(120px, 1fr) minmax(130px, 1.1fr) 105px 30px; gap: 10px; }
}

@media (max-width: 1100px) {
  .machines-workspace .page-heading { gap: 14px; }
  .machines-workspace .heading-actions { gap: 6px; }
  .machines-workspace .page-heading h1 { font-size: 26px; }
  .machines-workspace .machine-thumb { width: 72px; flex-basis: 72px; }
  .machines-workspace .machine-table th:first-child { width: 38%; }
  .machines-workspace .machine-table th, .machines-workspace .machine-table td { padding-left: 10px; padding-right: 10px; }
  .machines-workspace .machine-name { font-size: 12px; }
  .machines-workspace .machine-meta { font-size: 10px; }
  .machines-workspace .category-tabs { gap: 15px; }
  .machines-workspace .category-tab { font-size: 11px; gap: 5px; }
  .machines-workspace .detail-hero { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
  .machines-workspace .hero-title { font-size: 24px; }
  .machines-workspace .hero-attribute { min-width: 85px; }
  .machines-workspace .detail-layout { grid-template-columns: minmax(0, 1.8fr) minmax(235px, 1fr); gap: 15px; }
  .machines-workspace .detail-tabs { gap: 19px; }
  .machines-workspace .spec-group { padding-left: 16px; padding-right: 16px; }
  .machines-workspace .spec-row { grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) 95px 30px; gap: 8px; }
  .machines-workspace .spec-label, .machines-workspace .spec-value { font-size: 11px; }
  .machines-workspace .source-tag { font-size: 9px; padding-left: 4px; padding-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .machines-workspace *, .machines-workspace *::before, .machines-workspace *::after { transition: none !important; scroll-behavior: auto !important; }
}

.machines-workspace{min-width:0;line-height:1.5;margin:0;background:var(--canvas)}
.machines-workspace .machines-main{min-width:0;padding:20px 0 40px;max-width:1400px;margin:0 auto}
.machines-workspace .machines-modal-backdrop{position:fixed;inset:0;background:#20334950;backdrop-filter:blur(3px);z-index:1200}
.machines-workspace .machines-dialog{position:fixed;z-index:1201;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;margin:0}
.machines-workspace .machines-discard{display:inline-block;margin-top:18px;background:none;border:0;color:#ad5952;font-size:12px;padding:0;text-decoration:underline;text-underline-offset:3px}
.machines-workspace .machine-error{padding:12px 15px;margin-bottom:18px;background:#fff5f3;border:1px solid #f0d6d4;border-radius:7px;color:#a24f48;font-size:12px}
.machines-workspace .machine-loading{padding:36px;text-align:center;color:var(--muted)}
.machines-workspace .table-scroll{overflow-x:auto;max-width:100%}
.machines-workspace .machine-table{min-width:760px}
.machines-workspace .document-frame{background:white}
.machines-workspace .machine-image{width:100%;height:174px;object-fit:contain}
.machines-workspace .pagination{display:flex;align-items:center;gap:10px}
.machines-workspace .form-grid .field input[type=file]{padding:7px}
.machines-workspace .dialog .form-alert{margin-bottom:16px}
.machines-workspace .document-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:0;border:0;background:none;text-align:left}
.machines-workspace .document-open>span:not(.document-icon){flex:1;min-width:0}
.machines-workspace .document-open>.icon-svg{width:13px;height:13px;color:#98afa5}
.machines-workspace .machine-spec-edit{display:grid;grid-template-columns:minmax(150px,1fr) minmax(140px,1fr) 100px 34px;align-items:end;gap:10px;margin-bottom:12px}
.machines-workspace .spec-group .spec-value{overflow-wrap:anywhere}
.machines-workspace .dialog-body>form+.model-footer{margin-top:20px}
.machines-workspace .panel{padding:0}
.machines-workspace .btn{box-shadow:none}
.machines-workspace .impact-row>*{min-width:0;overflow-wrap:anywhere}
.machines-workspace .model-footer{flex-wrap:wrap}
.machines-workspace .picker-targets,.machines-workspace .picker-list{max-height:min(40vh,360px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.machines-workspace .document-dialog .dialog-body>.field-hint{margin:0;padding:10px 20px;font-size:12px;line-height:1.5;border-bottom:1px solid var(--line)}

/* Machine-owned ERP data is separate from shared manufacturer specifications. */
.machines-workspace .machine-erp{min-width:0}
.machines-workspace .machine-erp-tabs{display:flex;gap:6px;padding:5px;background:#edf2ef;border:1px solid var(--line);border-radius:9px;margin:20px 0 14px}
.machines-workspace .machine-erp-tabs button{background:transparent;border:0;border-radius:6px;padding:9px 16px;color:var(--muted);font-size:12px;font-weight:500;cursor:pointer}
.machines-workspace .machine-erp-tabs button.active{background:#fff;color:var(--teal);box-shadow:0 1px 3px #193c2420}
.machines-workspace .machine-erp-basis{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 0 18px}
.machines-workspace .machine-erp-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:20px;align-items:start}
.machines-workspace .machine-erp-gap{margin-top:20px}
.machines-workspace .machine-erp-fields{margin:0;padding:0}
.machines-workspace .machine-erp-fields>div{display:grid;grid-template-columns:minmax(140px,1fr) minmax(160px,1fr);gap:18px;border-bottom:1px solid var(--line);padding:12px 20px}
.machines-workspace .machine-erp-fields>div:last-child{border-bottom:0}
.machines-workspace .machine-erp-fields dt{color:var(--muted);font-size:12px}
.machines-workspace .machine-erp-fields dd{margin:0;font-size:13px;overflow-wrap:anywhere}
.machines-workspace .machine-erp-table{width:100%;min-width:0;border-collapse:collapse;text-align:left}
.machines-workspace .machine-erp-table th{padding:12px 15px;background:#f6f8f6;color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap;border-bottom:1px solid var(--line)}
.machines-workspace .machine-erp-table td{padding:14px 15px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}
.machines-workspace .machine-erp-table tr:last-child td{border-bottom:0}
.machines-workspace .machine-erp-table small,.machines-workspace .machine-erp-unit{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.5;margin-top:3px}
.machines-workspace .machine-erp-table td:first-child{min-width:180px}
.machines-workspace .machine-erp-table .machine-name{display:block;text-align:left;margin-bottom:4px}
.machines-workspace .machine-erp-table .btn{font-size:11px;padding:7px 10px;white-space:nowrap}
.machines-workspace .machine-erp-missing{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}
.machines-workspace .machine-erp-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.machines-workspace .machine-erp-sources strong{font-size:12px;overflow-wrap:anywhere}
.machines-workspace .machine-erp-config{max-width:500px}
.machines-workspace .machine-erp-dialog{width:min(1100px,calc(100vw - 64px));max-width:1100px}
.machines-workspace .machine-erp-dialog .dialog-body{padding:22px 26px}
.machines-workspace .machine-erp-dialog .machine-erp-layout{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:16px}
.machines-workspace .machine-erp-layout>.panel+.panel{margin-top:0}
.machines-workspace .machine-erp-sources>.panel+.panel{margin-top:0}
.machines-workspace .machine-erp-dialog .machine-erp-fields>div{padding:10px 15px}
.machines-workspace .machine-erp-dialog .machine-erp-fields dt{font-size:12px}
.machines-workspace .machine-erp-source-view img{display:block;width:100%;height:auto;object-fit:contain}
.machines-workspace .machine-erp-source-view .field-hint{padding:0 20px}
.machines-workspace .machine-erp-conflict{margin:14px 0;background:#fff;border:1px solid #e6dbc3;border-radius:6px}
.machines-workspace .machine-erp-conflict summary{cursor:pointer;padding:10px 14px;font-size:12px}
.machines-workspace .machine-erp .notice{font-size:12px;line-height:1.6}
.machines-workspace .machine-erp-dialog .form-grid .full{grid-column:1/-1}
.machines-workspace .machine-erp-history summary{cursor:pointer;font-size:12px;padding:14px 20px}
.machines-workspace .machine-erp-history p{font-size:12px;margin:0;padding:10px 20px;border-top:1px solid var(--line)}
.machines-workspace .machine-erp-archived summary{cursor:pointer;font-size:12px;padding:14px 20px;color:var(--muted)}
.machines-workspace .machine-erp-archived[open] summary{border-bottom:1px solid var(--line)}
/* Service overview: per physical machine, with the existing tabs and permissions. */
.machines-workspace .detail-hero { grid-template-columns: minmax(0, 1fr) 235px; gap: 24px; padding: 24px 27px; }
.machines-workspace .hero-photo { grid-column: 2; grid-row: 1; min-height: 0; padding: 6px 0 6px 23px; border: 0; border-left: 1px solid var(--line-light); border-radius: 0; }
.machines-workspace .hero-photo > button { min-height: 112px; }
.machines-workspace .hero-photo img { height: 112px; }
.machines-workspace .hero-photo .photo-credit { font-size: 10px; }
.machines-workspace .hero-content { grid-column: 1; grid-row: 1; }
.machines-workspace .hero-title { font-size: 29px; margin-top: 13px; }
.machines-workspace .machine-service-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 15px; }
.machines-workspace .machine-service-intro h2 { font-size: 17px; margin: 0; }
.machines-workspace .machine-service-intro p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.machines-workspace .machine-service-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 18px; }
.machines-workspace .machine-service-card { display: flex; flex-direction: column; min-width: 0; }
.machines-workspace .machine-service-grid > .machine-service-card { margin: 0; }
.machines-workspace .machine-service-head { padding: 20px 20px 0; }
.machines-workspace .machine-service-head h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 0; }
.machines-workspace .machine-service-head h2 .icon-svg { color: var(--teal); width: 17px; height: 17px; }
.machines-workspace .machine-service-head p { color: var(--muted); font-size: 11px; line-height: 1.45; margin: 8px 0 0; }
.machines-workspace .machine-service-body { padding: 20px; flex: 1; min-height: 190px; }
.machines-workspace .machine-service-facts { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.machines-workspace .machine-service-fact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; font-size: 12px; }
.machines-workspace .machine-service-fact > span { color: #64798b; flex-shrink: 0; }
.machines-workspace .machine-service-fact > div { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.machines-workspace .machine-service-fact strong { font-size: 14px; font-weight: 600; }
.machines-workspace .machine-service-fact small { display: block; font-size: 10px; margin-top: 2px; color: var(--teal); }
.machines-workspace .machine-service-fact small.expired { color: var(--amber); }
.machines-workspace .machine-service-fact .icon-svg { width: 14px; height: 14px; }
.machines-workspace .machine-service-fact .muted { display: inline-flex; align-items: center; gap: 4px; }
.machines-workspace .machine-service-fact .subtle-link { font-size: 12px; }
.machines-workspace .machine-service-contacts { display: flex; flex-direction: column; justify-content: space-between; gap: 17px; }
.machines-workspace .machine-service-field { min-width: 0; }
.machines-workspace .machine-service-field > span { display: block; color: #64798b; font-size: 11px; margin-bottom: 4px; }
.machines-workspace .machine-service-field > div { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.machines-workspace .machine-service-field a { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; overflow-wrap: anywhere; }
.machines-workspace .machine-service-field .icon-svg { width: 13px; height: 13px; opacity: .7; }
.machines-workspace .machine-service-empty { font-size: 13px; font-weight: 400; color: #728496; line-height: 1.5; }
.machines-workspace .machine-service-foot { display: flex; align-items: center; justify-content: flex-end; padding: 12px 20px; min-height: 59px; border-top: 1px solid var(--line-light); }
.machines-workspace .machine-service-edit { background: #f8fbfa; border-color: #dbe8e3; color: var(--teal); font-size: 12px; padding: 7px 10px; min-height: 33px; }
.machines-workspace .machine-service-edit:hover { background: var(--mint); border-color: #9accc0; }
.machines-workspace .machine-service-edit .icon-svg { width: 14px; height: 14px; }
.machines-workspace .machine-service-foot > .muted { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.machines-workspace .machine-service-foot > .muted .icon-svg { width: 13px; height: 13px; }
.machines-workspace .machine-service-lower { margin-top: 20px; grid-template-columns: 1.65fr 1fr; align-items: start; }
.machines-workspace .machine-core-facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px 18px; }
.machines-workspace .machine-service-lower .panel-heading h2 { display: flex; align-items: center; gap: 9px; }
.machines-workspace .machine-service-lower .panel-heading h2 .icon-svg { width: 17px; height: 17px; color: var(--teal); }
.machines-workspace .machine-overview-shortcut { width: 100%; display: flex; align-items: center; gap: 13px; padding: 15px 20px; border: 0; border-top: 1px solid var(--line-light); background: white; text-align: left; border-radius: 0; }
.machines-workspace .machine-overview-shortcut:hover { background: #f9fcfb; }
.machines-workspace .machine-overview-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.machines-workspace .machine-overview-shortcut strong { display: block; font-weight: 500; }
.machines-workspace .machine-overview-shortcut small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.machines-workspace .machine-overview-shortcut > .icon-svg { width: 14px; height: 14px; color: var(--muted); }
.machines-workspace .machine-service-summary { display: grid; gap: 3px; margin-top: 7px; font-size: 10px; color: var(--muted); line-height: 1.4; white-space: normal; }
.machines-workspace .machine-table th:first-child { width: 33%; }
.machines-workspace .machine-table th:nth-last-child(2) { width: 175px; }
.machines-workspace .machine-editor-sections { display: flex; align-items: center; gap: 5px; padding: 12px 26px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.machines-workspace .machine-editor-sections button { border: 0; background: transparent; color: var(--muted); padding: 8px 11px; font-size: 12px; }
.machines-workspace .machine-editor-sections button.active { color: var(--teal); background: var(--mint); }
.machines-workspace .machine-section-hint { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.machines-workspace .machine-contract-form { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 16px; }
.machines-workspace .machine-contract-form h3 { margin: 0; font-size: 14px; }
.machines-workspace .machine-contract-current { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; background: #f6faf8; border: 1px solid #dbe8e2; border-radius: 8px; font-size: 12px; }
.machines-workspace .machine-contract-current > span { display: flex; gap: 7px; align-items: center; color: var(--muted); white-space: nowrap; }
.machines-workspace .machine-contract-current strong { font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.machines-workspace .machine-contract-form .field-hint { margin: 0; }
.machines-workspace .machine-erp-conversion { display: block; color: var(--teal); font-size: 12px; margin-top: 4px; font-weight: 400; }
.machines-workspace .machine-erp-input-preview { font-size: 12px; color: var(--teal); margin-top: 5px; }
.machines-workspace .machine-erp-width { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: #f0f8f5; border: 1px solid #d8e8e0; border-radius: 9px; margin: 16px 0; }
.machines-workspace .machine-erp-width .field-hint { display: block; }
@media (min-width: 1600px) {
  .machines-workspace .machine-service-grid { gap: 20px; }
  .machines-workspace .machine-service-head { padding: 22px 24px 0; }
  .machines-workspace .machine-service-body { padding: 22px 24px; }
  .machines-workspace .machine-service-foot { padding: 13px 24px; }
}

/* The same authorized logbook is shared by desktop and Flow Mobiel. */
.machine-logbook-frame{display:block;width:100%;height:calc(100dvh - 120px);min-height:480px;scroll-margin-top:100px;border:0;border-radius:14px;background:#f5f8fa}
.machines-workspace .machine-logbook-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; width: fit-content; min-height: 26px; margin-top: 6px; padding: 3px 7px; border: 1px solid #cfe6df; border-radius: 5px; background: #e9f6f1; color: #007e70; font-size: 11px; line-height: 1.4; }
.machines-workspace .machine-logbook-badge .icon-svg { width: 13px; height: 13px; }
.machines-workspace .machine-logbook-badge:hover { background: #dbefe6; border-color: #87c2b5; }
.machines-workspace .machine-logbook-tile-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; }
.machines-workspace .machine-logbook-tile-foot { padding: 0 17px 15px; }
.machines-workspace .machine-logbook-tile-foot .machine-logbook-badge { margin: 0; }
.machines-workspace .machine-logbook-recent { margin: 24px 0; border-color: #d5e5de; background: #f8fbfa; box-shadow: 0 3px 15px #17362c03; }
.machines-workspace .machine-logbook-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 24px; }
.machines-workspace .machine-logbook-heading .eyebrow { display: block; margin-bottom: 10px; color: #65847e; font-size: 10px; }
.machines-workspace .machine-logbook-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; font-weight: 600; }
.machines-workspace .machine-logbook-heading h2 .icon-svg { width: 24px; height: 24px; color: var(--teal); }
.machines-workspace .machine-logbook-heading p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.machines-workspace .machine-logbook-actions { display: flex; align-items: center; gap: 12px; }
.machines-workspace .machine-logbook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 24px 24px; }
.machines-workspace .machine-logbook-card { --logbook-type: #378d76; --logbook-tint: #eef8f3; display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce5e8; border-radius: 11px; background: #fff; overflow: hidden; box-shadow: 0 3px 10px #20334903; }
.machines-workspace .machine-logbook-card[data-type="Onderhoud"] { --logbook-type: #557fa7; --logbook-tint: #eef4f9; }
.machines-workspace .machine-logbook-card[data-type="Reparatie"] { --logbook-type: #8a77a9; --logbook-tint: #f2eff8; }
.machines-workspace .machine-logbook-card[data-type="Storing"] { --logbook-type: #b98a43; --logbook-tint: #fcf6eb; }
.machines-workspace .machine-logbook-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 55px; padding: 16px; }
.machines-workspace .machine-logbook-type { display: inline-flex; align-items: center; gap: 9px; color: var(--logbook-type); font-size: 13px; font-weight: 600; }
.machines-workspace .machine-logbook-type .icon-svg { width: 18px; height: 18px; }
.machines-workspace .machine-logbook-new { padding: 3px 6px; border-radius: 4px; background: #e6f5ef; color: #007e70; font-size: 10px; font-weight: 500; }
.machines-workspace .machine-logbook-media { height: 142px; margin: 0 16px; border: 1px solid #e6eceb; border-radius: 8px; overflow: hidden; background: var(--logbook-tint); }
.machines-workspace .machine-logbook-photo { position: relative; display: block; width: 100%; height: 100%; padding: 8px; border: 0; border-radius: 0; background: transparent; }
.machines-workspace .machine-logbook-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.machines-workspace .machine-logbook-photo-hint { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; background: #fffffff2; color: #426d68; font-size: 10px; box-shadow: 0 1px 4px #254d3e0a; }
.machines-workspace .machine-logbook-photo-hint .icon-svg { width: 13px; height: 13px; }
.machines-workspace .machine-logbook-text-only { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; height: 100%; color: var(--logbook-type); font-size: 11px; }
.machines-workspace .machine-logbook-text-only .icon-svg { width: 38px; height: 38px; }
.machines-workspace .machine-logbook-card-body { display: flex; flex-direction: column; gap: 18px; min-height: 137px; flex: 1; padding: 16px; }
.machines-workspace .machine-logbook-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 14px; line-height: 1.6; text-align: left; white-space: pre-line; overflow-wrap: anywhere; }
.machines-workspace .machine-logbook-text:hover { color: var(--teal); }
.machines-workspace .machine-logbook-entry-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: none; color: var(--teal); font-size: 12px; font-weight: 500; }
.machines-workspace .machine-logbook-entry-link .icon-svg { width: 13px; height: 13px; }
.machines-workspace .machine-logbook-card-foot { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 13px 16px; border-top: 1px solid #edf1f3; background: #fcfdfd; }
.machines-workspace .machine-logbook-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #edf3f4; color: #6b8792; font-size: 11px; font-weight: 600; }
.machines-workspace .machine-logbook-author { flex: 1; min-width: 0; }
.machines-workspace .machine-logbook-author strong { display: block; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.machines-workspace .machine-logbook-author small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.machines-workspace .machine-logbook-comments { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.machines-workspace .machine-logbook-comments .icon-svg { width: 15px; height: 15px; }
.machines-workspace .machine-logbook-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 24px; border-top: 1px solid #dfebe5; background: #f1f7f4; color: #718b85; font-size: 11px; }
.machines-workspace .machine-logbook-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.machines-workspace .machine-logbook-foot .icon-svg { width: 14px; height: 14px; }
.machines-workspace .machine-logbook-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px 40px; text-align: center; }
.machines-workspace .machine-logbook-state > .icon-svg { width: 30px; height: 30px; color: #7a9b92; }
.machines-workspace .machine-logbook-state h3 { margin: 0; font-size: 17px; }
.machines-workspace .machine-logbook-state p { max-width: 480px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.machines-workspace .machine-logbook-recent button:focus-visible, .machines-workspace .machine-logbook-badge:focus-visible, .machines-workspace .machine-logbook-tile-open:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.machines-workspace .machine-logbook-photo:focus-visible, .machines-workspace .machine-logbook-tile-open:focus-visible { outline-offset: -3px; }
.machines-workspace .machine-logbook-hero { padding: 17px 23px; grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; }
.machines-workspace .machine-logbook-hero .hero-title { font-size: 23px; }
.machines-workspace .machine-logbook-hero .hero-subtitle { margin-bottom: 12px; }
.machines-workspace .machine-logbook-hero .hero-attributes { padding-top: 12px; gap: 12px 22px; }
.machines-workspace .machine-logbook-hero .hero-photo > button { min-height: 80px; }
.machines-workspace .machine-logbook-hero .hero-photo img { height: 80px; }
.machines-workspace .machine-logbook-hero .photo-credit { margin-top: 7px; font-size: 9px; }
.machines-workspace .machine-logbook-photo-viewer { display: grid; place-items: center; width: 100%; height: 53vh; min-height: 240px; padding: 0; overflow: auto; border: 1px solid #e0e9e5; border-radius: 8px; background: #f5f8f6; cursor: zoom-in; overscroll-behavior: contain; }
.machines-workspace .machine-logbook-photo-viewer > button { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: inherit; }
.machines-workspace .machine-logbook-photo-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: 53vh; object-fit: contain; margin: auto; }
.machines-workspace .machine-logbook-photo-viewer.is-zoomed { display: block; cursor: zoom-out; }
.machines-workspace .machine-logbook-photo-viewer.is-zoomed > button { display: block; width: max-content; min-width: 100%; height: auto; min-height: 100%; }
.machines-workspace .machine-logbook-photo-viewer.is-zoomed img { width: auto; height: auto; max-width: none; max-height: none; margin: 0; }
.machines-workspace .machine-logbook-photo-viewer > button:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.machines-workspace .machine-logbook-photo-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 16px; }
