.resource-workspace{max-width:none;min-width:0;overflow:hidden;font-size:13px;line-height:1.55;color:var(--ink)}
body:has(.resource-workspace:not([hidden])) .ai-drawer:not(.is-open){visibility:hidden}
.resource-workspace .workbench-frame-head{padding:22px 24px;align-items:center}
.resource-page-actions,.resource-detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.resource-workspace .resource-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:6px 12px;border:1px solid #dbe2ee;border-radius:6px;background:#fff;color:var(--brand);font:inherit;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;white-space:normal}
.resource-workspace .resource-button:hover{background:#f2f6ff;border-color:#afc0ec}
.resource-workspace .resource-button:focus-visible,.resource-title-link:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.resource-workspace .resource-button:disabled{color:#9aa4b5;background:#f8f9fb;cursor:default;border-color:var(--line)}
.resource-workspace [data-resource-action=upload]{background:var(--brand);border-color:var(--brand);color:#fff}
.resource-context{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 24px;background:#f8faff;color:var(--muted);font-size:11px;border-bottom:1px solid var(--line)}
.resource-tabs{display:flex;gap:22px;padding:0 24px;border-bottom:1px solid var(--line);overflow:auto}
.resource-tabs button{min-height:48px;padding:0 2px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.resource-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand);font-weight:700}
.resource-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:20px 24px 14px}
.resource-filters label{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:5px;min-width:130px;margin-bottom:0;color:var(--muted);font-size:11px;font-weight:600}
.resource-filters .resource-search{flex:1;max-width:380px;min-width:190px}
.resource-filters input,.resource-filters select{height:34px;min-width:0;width:100%;padding:6px 10px;border:1px solid #dbe2ee;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:12px}
.resource-list-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 24px 12px;color:var(--muted);font-size:11px}
.resource-list-meta strong{color:var(--ink)}
.resource-workspace .resource-table-scroll{margin:0 24px;border:1px solid var(--line);border-radius:8px;overflow:auto;background:#fff}
.resource-workspace .resource-table{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;font-size:12px}
.resource-table th{padding:12px 14px;background:#f7f9fc;color:#667085;font-size:11px;font-weight:600;text-align:left;border-bottom:1px solid var(--line)}
.resource-table th:nth-child(1){width:27%}.resource-table th:nth-child(2){width:27%}.resource-table th:nth-child(3){width:16%}.resource-table th:nth-child(4){width:18%}.resource-table th:nth-child(5){width:12%}
.resource-table td{padding:14px;vertical-align:middle;border-bottom:1px solid #edf0f5;overflow-wrap:anywhere;line-height:1.6}
.resource-table tr:last-child td{border-bottom:0}.resource-table tbody tr:hover{background:#fbfcff}
.resource-table small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.resource-table small.resource-path{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,monospace}
.resource-title-link{border:0;padding:0;background:transparent;color:var(--ink);font:inherit;font-weight:650;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.resource-title-link:hover{color:var(--brand)}.resource-time{color:var(--muted)}
.resource-version{display:block;margin-bottom:4px;font-size:11px;color:var(--muted)}
.resource-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;background:#f0f3f8;color:#637188;font-size:10px;font-weight:600;line-height:1.4}
.resource-status[data-tone=success]{background:#eaf7f1;color:#27866d}.resource-status[data-tone=danger]{background:#fff0ee;color:#bb504a}
.resource-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px 24px 20px;color:var(--muted);font-size:11px}.resource-pagination>span{margin-right:auto}
.resource-workspace .resource-empty{margin:10px 24px 20px;padding:44px 24px;border:1px dashed #dce3ef;border-radius:8px;text-align:center;background:#fbfcfe}
.resource-empty strong{font-size:14px}.resource-empty p{max-width:560px;margin:10px auto 18px;color:var(--muted);font-size:12px}
.resource-notice{margin:14px 24px 0;padding:10px 12px;background:#f1f6ff;color:#345ba8;border-radius:6px;font-size:12px}
.resource-detail{padding:20px 24px 28px}.resource-breadcrumb{display:flex;align-items:center;gap:12px;margin-bottom:20px;color:var(--muted);font-size:11px}
.resource-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.resource-detail-head h3{margin:0;font-size:19px;line-height:1.5}.resource-detail-head p{margin:6px 0 0;color:var(--muted);font-size:12px}
.resource-detail-actions{margin:18px 0}.resource-detail-content{padding:20px;border:1px solid var(--line);border-radius:8px;background:#fff}
.resource-detail-content h3{margin:0 0 14px;font-size:14px}.resource-detail .record-readable-body{font-size:13px}.resource-detail .record-readable-body h4{font-size:13px;margin:18px 0 8px}
.resource-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0}.resource-facts>div{min-width:0}.resource-facts dt{color:var(--muted);font-size:11px;margin-bottom:5px}.resource-facts dd{margin:0;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}
.resource-prose{max-height:520px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.resource-technical{margin-top:20px;padding:14px 16px;background:#f8faff;border-radius:8px;border:1px solid var(--line)}.resource-technical summary{cursor:pointer;color:var(--muted);font-size:12px}.resource-technical .resource-facts{margin-top:15px}
.resource-technical pre,.resource-source-code{max-height:460px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border-radius:7px;background:#f4f6f9;font:11px/1.7 ui-monospace,SFMono-Regular,monospace}
.resource-hint{font-size:11px;color:var(--muted);line-height:1.7}.resource-workspace>.resource-hint{padding:12px 24px;margin:0;background:#f8faff}.resource-detail>[data-resource-source-view] h3{font-size:14px;margin-top:24px}
.resource-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:20px 24px 0}.resource-form-grid>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fbfcff}.resource-form-grid strong{width:100%;font-size:13px}.resource-form-grid span{color:var(--muted);font-size:11px;margin-right:auto}
.resource-production{padding:18px 24px}.resource-production>.workbench-frame-card{background:#fff;border:0;padding:0}.resource-upload{margin:16px 24px;padding:18px;border:1px dashed #b7c7ec;border-radius:8px;background:#f8faff}.resource-upload p{font-size:12px;color:var(--muted)}.resource-upload input{max-width:100%;margin-right:15px}
.resource-production .records-index{max-height:480px;overflow:auto;padding:2px 4px 2px 0}.resource-production .records-index button{text-align:left;overflow-wrap:anywhere;flex-shrink:0;line-height:1.6}.resource-production .production-records>p{overflow-wrap:anywhere}
.manufacturing-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 24px;padding:8px;border-radius:14px;background:#e9edff}.manufacturing-metrics>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:16px;border-radius:10px;background:#fff}.manufacturing-metrics>div:nth-child(1){background:#d9f6ec}.manufacturing-metrics>div:nth-child(2){background:#ddd7ff}.manufacturing-metrics>div:nth-child(3){background:#d7edff}.manufacturing-metrics>div:nth-child(4){background:#ffe5db}.manufacturing-metrics span{color:#34415e;font-size:12px}.manufacturing-metrics strong{color:#14203c;font-size:27px;line-height:1.1}.manufacturing-metrics p{grid-column:1/-1;margin:2px 8px 4px;color:#53627f;font-size:11px;overflow-wrap:anywhere}.manufacturing-metrics-empty{margin:16px 24px;padding:16px;border:1px dashed #b9c5e8;border-radius:10px;color:#53627f;background:#f6f8ff}
@media(max-width:760px){.manufacturing-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px}.manufacturing-metrics-empty{margin:16px}}
@media(max-width:760px){.resource-workspace .workbench-frame-head{padding:16px;align-items:flex-start;flex-direction:column;gap:12px}.resource-context,.resource-tabs{padding-left:16px;padding-right:16px}.resource-filters{padding:16px;gap:10px}.resource-filters .resource-search{max-width:none;flex:1 0 100%}.resource-list-meta{padding:0 16px 12px}.resource-workspace .resource-table-scroll{margin:0 16px}.resource-detail{padding:16px}.resource-facts{grid-template-columns:minmax(0,1fr)}.resource-detail-content{padding:16px}.resource-detail-head h3{font-size:17px}.resource-form-grid{padding:16px 16px 0}.resource-production{padding:16px}.resource-pagination{padding:16px}.resource-workspace .resource-empty{margin:10px 16px}.resource-notice{margin:12px 16px}.resource-upload{margin:16px}.resource-page-actions{width:100%}}

.skill-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.skill-editor>label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#475569}.skill-editor textarea,.skill-editor input[type=number]{border:1px solid #dbe3ee;border-radius:8px;padding:10px;font:inherit;width:100%;box-sizing:border-box}.skill-editor textarea{min-height:78px;resize:vertical}.skill-editor fieldset{border:1px solid #dbe3ee;border-radius:8px;display:flex;flex-wrap:wrap;gap:12px;padding:12px;grid-column:1/-1}.skill-editor fieldset label{display:flex;align-items:center;gap:6px}@media(max-width:680px){.skill-editor{grid-template-columns:1fr}}
