/* Workflow surfaces: one spacing system, restrained motion and readable records. */
body.workspace-theme { --ux-gap:16px; }
body.workspace-theme .ux-button { padding:10px 14px; border:1px solid #514b44; border-radius:9px; background:#25292e; color:#e8ddd2; font:600 12px/1.3 'Inter',sans-serif; cursor:pointer; min-height:38px; }
body.workspace-theme .ux-button:hover { background:#352b23; border-color:#d79057; }
body.workspace-theme .ux-primary { background:#f29b58; color:#17191c; border-color:#f29b58; }
body.workspace-theme :is(.ux-filters,.wizard-step,.command-dialog) :is(input,select,textarea) { border:1px solid #42474e; border-radius:9px; background:#11161b; color:#eee8e0; padding:11px 12px; font:400 13px/1.5 'Inter',sans-serif; box-sizing:border-box; }
body.workspace-theme :is(.ux-button,.wizard-step-button,.command-result):focus-visible { outline:2px solid #ffb980; outline-offset:3px; }
body.workspace-theme .ux-muted { color:#aab2bd; font:400 12px/1.65 'Inter',sans-serif; }
body.workspace-theme .ux-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin:18px 0 12px; }
body.workspace-theme .ux-filter-label { display:flex; flex:1 1 135px; min-width:0; flex-direction:column; gap:6px; font-size:11px; color:#b9c0c9; }
body.workspace-theme .ux-filter-label select { width:100%; }
body.workspace-theme #searchAuditInput { margin:0 !important; max-width:none !important; width:100%; flex:1 1 100%; }
body.workspace-theme #auditModal > .modal-content { width:min(1100px,100%) !important; max-width:1100px !important; display:flex; flex-direction:column; overflow:auto; }
body.workspace-theme #auditModal .table-wrapper-internal { width:100%; overflow:auto; max-height:none !important; min-height:0; flex:1; }
body.workspace-theme #auditModal table { width:100% !important; min-width:0 !important; table-layout:fixed; }
body.workspace-theme #auditModal th:nth-child(1) { width:155px; }
body.workspace-theme #auditModal th:nth-child(2) { width:140px; }
body.workspace-theme #auditModal th:nth-child(4) { width:130px; }
body.workspace-theme #auditModal td { padding:15px 12px !important; vertical-align:top; min-width:0 !important; overflow-wrap:anywhere; white-space:normal; }
body.workspace-theme #auditModal .audit-date { color:#9da7b3; font-size:11px !important; }
body.workspace-theme #auditModal .audit-staff { color:#efb689; font-weight:600; }
body.workspace-theme #auditModal .audit-action { color:#e9e5de; }
body.workspace-theme .audit-diff { padding:14px; background:#11161b; border:1px solid #353c45; border-radius:12px; }
body.workspace-theme .audit-change { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(0,1fr) minmax(0,1fr); gap:14px; padding:14px 0; border-bottom:1px solid #ffffff0c; }
body.workspace-theme .audit-change:last-child { border:0; }
body.workspace-theme .audit-change strong { font-size:12px; color:#dab89c; overflow-wrap:anywhere; }
body.workspace-theme .audit-change small { color:#929eac; font-size:10px; text-transform:uppercase; }
body.workspace-theme :is(.audit-change,.audit-technical) pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:220px; overflow:auto; margin:7px 0 0; font:400 12px/1.6 'Inter',sans-serif; color:#d1d7df; }
body.workspace-theme .audit-technical { margin:14px 0; font-size:12px; }
body.workspace-theme .audit-technical summary { color:#c5a58a; cursor:pointer; }
body.workspace-theme .audit-description { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
body.workspace-theme .wizard-nav { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 22px; order:-1; }
body.workspace-theme .wizard-step-button { flex:1 1 100px; padding:12px 8px; background:#151b21; color:#aeb7c2; border:1px solid #353d47; border-radius:10px; font-size:11px; cursor:pointer; }
body.workspace-theme .wizard-step-button[aria-current=step] { background:#3c2c20; color:#ffc08c; border-color:#bb7c49; }
body.workspace-theme .wizard-step { animation:ux-appear .16s ease; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
body.workspace-theme .wizard-step > :is(h3,dl,button,p,#avisoHistorial) { grid-column:1/-1; }
body.workspace-theme .wizard-step .form-group { margin:0; min-width:0; }
body.workspace-theme .wizard-step .form-group :is(input,select,textarea) { width:100%; }
body.workspace-theme .wizard-step .input-group-flex { flex-wrap:wrap; }
body.workspace-theme .wizard-step .input-group-flex > :is(input,select) { width:auto !important; flex:1 1 0; min-width:0; }
body.workspace-theme .wizard-step .form-group:has(#reason),body.workspace-theme .wizard-step .form-group:has(#evidenceImg) { grid-column:1/-1; }
body.workspace-theme .wizard-step #reason { min-height:120px; resize:vertical; }
body.workspace-theme .wizard-step .field-error { flex:1 1 100%; display:block; font-size:12px; color:#efb1a3; margin-top:7px; }
body.workspace-theme .wizard-step [aria-invalid=true] { border-color:#dd8d78 !important; }
body.workspace-theme .wizard-footer { display:flex; justify-content:space-between; gap:12px; margin-top:24px; padding-top:18px; border-top:1px solid #343b44; }
body.workspace-theme .wizard-footer > :last-child { margin-left:auto; }
body.workspace-theme .wizard-status { color:#d4ba9f; font-size:12px; line-height:1.6; }
body.workspace-theme .wizard-review { display:grid; grid-template-columns:110px minmax(0,1fr); gap:14px; background:#11161b; border:1px solid #353c45; border-radius:12px; padding:20px; margin:0 0 8px; }
body.workspace-theme .wizard-review dt { color:#9ca7b5; font-size:12px; }
body.workspace-theme .wizard-review dd { margin:0; color:#eee2d6; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
body.workspace-theme .player-quick-actions,.saved-view-buttons { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 18px; }
body.workspace-theme .saved-view-buttons .ux-button { padding:7px 12px; min-height:32px; background:transparent; font-size:11px; }
body.workspace-theme .pending-work { padding:18px 20px; border:1px solid #393c40; background:#1a2026c9; border-radius:14px; margin:20px 0; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
body.workspace-theme .pending-work h3 { font-size:13px; color:#c8b6a5; margin:0 8px 0 0; }
body.workspace-theme .pending-work p { margin:0; }
body.workspace-theme .pending-item { background:#282c30; border:1px solid #4c463f; border-radius:8px; color:#edc4a2; padding:10px 12px; font:500 12px/1.4 'Inter',sans-serif; cursor:pointer; }
body.workspace-theme .command-dialog { width:min(620px,calc(100vw - 32px)); padding:24px; max-height:80dvh; background:#191f26; color:#eee5db; border:1px solid #66513f; border-radius:18px; box-shadow:0 25px 100px #000b; }
body.workspace-theme .command-dialog::backdrop { background:#080c12ba; backdrop-filter:blur(5px); }
body.workspace-theme .command-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
body.workspace-theme .command-heading h2 { font-size:22px; margin:0; }
body.workspace-theme .command-query { width:100%; }
body.workspace-theme .command-results { margin-top:14px; max-height:50dvh; overflow:auto; }
body.workspace-theme .command-result { display:block; width:100%; text-align:left; padding:14px 12px; border:1px solid transparent; border-radius:10px; background:transparent; color:#e9e3da; cursor:pointer; }
body.workspace-theme .command-result:hover,body.workspace-theme .command-result:focus { background:#332b24; border-color:#66513f; }
body.workspace-theme .command-result strong { display:block; font:600 13px 'Inter',sans-serif; overflow-wrap:anywhere; }
body.workspace-theme .command-result small { display:block; margin-top:5px; color:#a9b0bb; font-size:11px; }
@keyframes ux-appear { from { opacity:.5; transform:translateY(5px); } to {opacity:1;transform:none;} }
@media(max-width:600px) {
 body.workspace-theme #auditModal thead { display:none; }
 body.workspace-theme #auditModal :is(table,tbody) { display:block; }
 body.workspace-theme #auditModal .audit-record { display:grid; grid-template-columns:1fr auto; padding:10px 0; border-bottom:1px solid #3a3e43; }
 body.workspace-theme #auditModal .audit-record td { padding:6px 8px !important; }
 body.workspace-theme #auditModal .audit-expanded,body.workspace-theme #auditModal .audit-expanded td { display:block; width:100%; box-sizing:border-box; }
 body.workspace-theme .audit-change { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 body.workspace-theme .audit-change > strong { grid-column:1/-1; }
 body.workspace-theme .wizard-step { grid-template-columns:minmax(0,1fr); }
 body.workspace-theme .wizard-review { grid-template-columns:1fr; gap:8px; }
 body.workspace-theme .wizard-review dd { margin-bottom:10px; }
 body.workspace-theme .command-dialog { padding:18px; }
}
@media(prefers-reduced-motion:reduce) { body.workspace-theme .wizard-step { animation:none; } }
