.db-bar{display:flex;align-items:center;gap:10px;padding:7px 16px;background:#edf6f2;border-bottom:1px solid #cfe0d8;font-size:12px;color:#286b5e}.db-bar>span{flex:1}.db-bar button{padding:4px 9px;font-size:12px}.db-bar.db-error{color:#9c3d25;background:#fff0e8}.db-bar [hidden]{display:none}footer button[data-action="reset"]{display:none}@media(max-width:850px){.sidebar{width:52px;padding:6px}.sidebar nav button{min-width:0;width:40px;padding:11px 0;display:block;font-size:18px}.sidebar nav button span,.sidebar nav button i{display:none}.workspace{margin-left:52px;width:calc(100% - 52px)}.inspection-table{min-width:0}.inspection-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:9px 0;border-bottom:1px solid #ddd}.inspection-table thead{display:none}.inspection-table td{min-width:0;padding:4px;border:0}.inspection-table td:first-child{font-weight:700}.inspection-table td:nth-child(5){grid-column:1/-1}.inspection-table input,.inspection-table select{width:100%;max-width:100%}.db-bar{flex-wrap:wrap;padding:6px}.db-bar>span{min-width:100%}.bottom-actions{flex-wrap:wrap}.header-actions{flex-wrap:wrap}.role-label select{max-width:145px}}

.drill-target{cursor:pointer}.drill-target:hover{outline:1px solid #58a99a;outline-offset:2px}.drill-target:focus-visible{outline:3px solid #58a99a}.drill-hint{font-size:12px;color:#397b6e;margin:-4px 0 12px}.drill-modal{width:min(1280px,96vw);max-width:96vw}.drill-context{font-size:12px;color:#54716e;background:#eef7f4;padding:9px}.drill-toolbar,.drill-tabs,.drill-footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.drill-toolbar input{flex:1;min-width:180px;padding:7px;border:1px solid #ccd9dc;border-radius:5px}.drill-table{overflow:auto;max-height:48vh}.drill-table th{position:sticky;top:0;background:#f2f6f8}.drill-table td{font-size:12px;max-width:210px;white-space:normal;overflow-wrap:anywhere}.drill-table td small{display:block;color:#758892}.drill-footer span{margin-right:auto}.drill-tabs button{font-size:12px}svg .drill-target:hover{opacity:.7;outline:none}.compact-kpis>.drill-target{border-bottom:2px solid #7fbcad}
/* Task drawers remain beside the list; long workflows occupy the workspace. */
#modal.surface-drawer{position:fixed;inset:48px 0 0 auto;margin:0;width:min(720px,88vw);max-width:96vw;height:calc(100dvh - 48px);max-height:none;border-radius:12px 0 0 0;z-index:40;box-shadow:-10px 0 40px #132c3b26}#modal.surface-drawer.drill-modal{width:min(1240px,94vw)}#modal.surface-drawer .modal-body{max-height:calc(100dvh - 145px)}#modal.surface-page{position:fixed;right:0;bottom:0;margin:0;width:auto;max-width:none;max-height:none;border-radius:0;box-shadow:none;z-index:35;background:#f6f8fa}#modal.surface-page .modal-body{background:white;max-width:1100px;margin:16px auto;max-height:calc(100dvh - 250px)}#modal.surface-popconfirm{position:fixed;margin:0;width:360px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);z-index:45;border:1px solid #d6e0e4;border-radius:8px;box-shadow:0 8px 28px #132c3b30}#modal.surface-popconfirm .modal-head,#modal.surface-popconfirm .modal-body{padding:12px 16px}#modal .modal-head small{font-size:11px;color:#778e98}#modal .modal-head h2{margin-top:4px}#modal .modal-actions{position:sticky;bottom:-1px;background:white;padding:12px 0;border-top:1px solid #e4ecef}.surface-draft-bar{padding:8px 10px;background:#eff7f4;color:#3f796b;font-size:12px;display:flex;align-items:center;gap:12px;margin-bottom:16px}.surface-draft-bar span{flex:1}.surface-draft-bar button{font-size:11px;padding:4px 8px}#toast.show{pointer-events:auto;z-index:100}#toast button{margin-left:12px;padding:4px 9px;color:white;background:transparent;border:1px solid #ffffff66;font-size:12px}#modal.surface-page .edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){#modal.surface-drawer{width:96vw}#modal.surface-page .edit-grid{grid-template-columns:1fr}.surface-draft-bar{flex-wrap:wrap}#toast{left:50%;max-width:94vw;width:max-content}}
/* Compact workflow handoffs and field-level validation. */
.flow-owner{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;margin:0 0 12px;background:#edf5f8;border-left:3px solid #267780;font-size:13px}
.entry-error-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:5px}
[aria-invalid="true"]{border-color:#bd3f3f!important;outline:1px solid #bd3f3f}
.flow-evidence{margin:10px 0 14px;border:1px solid #dce5e9;border-radius:6px;padding:8px}
.flow-evidence summary{cursor:pointer;font-size:13px;font-weight:600;margin-bottom:6px}
.flow-evidence table td,.flow-evidence table th{padding:6px 10px;font-size:12px}
.flow-evidence th small{display:block;font-weight:400;color:#627985}

.operations-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:9px 12px;border:1px solid #d9e6e6;background:#eef6f4;border-radius:6px;margin:10px 0;font-size:12px}.operations-bar button{font-size:12px;padding:5px 9px}.mapping-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}.mapping-tools p{flex-basis:100%;margin:0;font-size:12px}.mapping-tools>input{max-width:320px}.mapping-tools input[type=checkbox]{min-height:0}.output-selection{margin:7px 0 0}.preview-toolbar select{max-width:240px}
