[data-theme="dark"] .enterprise-workspace{--ent-error:#ffc0cc}
.enterprise-workspace{--ent-error:#a33042;max-width:1160px;margin-inline:auto;color:var(--ink)}
.enterprise-workspace .ent-toolbar,.enterprise-workspace .ent-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.enterprise-workspace .ent-toolbar{justify-content:space-between;margin-bottom:20px}
.enterprise-workspace .ent-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;padding:8px;scroll-padding-inline:8px;scrollbar-width:thin;scrollbar-color:var(--muted) var(--surface-subtle)}
.enterprise-workspace .ent-scroll-hint{font-size:13px;line-height:1.5;margin:8px 0;display:flex;align-items:baseline;gap:8px}
.enterprise-workspace .ent-scroll-hint[hidden]{display:none}
.enterprise-workspace .ent-tab{font:inherit;font-weight:600;font-size:14px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:8px;min-height:44px;padding:10px 14px;white-space:nowrap;cursor:pointer;scroll-margin-inline:8px}
.enterprise-workspace .ent-tab[aria-selected=true]{color:var(--ink);background:var(--surface-subtle);border-color:var(--line)}
.enterprise-workspace :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.enterprise-workspace .ent-panel{display:grid;gap:20px}
.enterprise-workspace .card{min-width:0;padding:24px}
.enterprise-workspace h2{font-size:19px;line-height:1.4;margin:0 0 10px}
.enterprise-workspace h3{font-size:15px;line-height:1.5;margin:0 0 4px;overflow-wrap:anywhere}
.enterprise-workspace p{font-size:14px;line-height:1.65;color:var(--muted);margin:8px 0 16px}
.enterprise-workspace .ent-feedback{min-height:24px;margin:14px 0}
.enterprise-workspace .ent-error{color:var(--ent-error)}
.enterprise-workspace .ent-recovery,.enterprise-workspace .ent-secret{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface-subtle);margin-bottom:20px}
.enterprise-workspace .ent-recovery[hidden]{display:none}
.enterprise-workspace .ent-recovery h2{font-size:17px}
.enterprise-workspace .ent-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.enterprise-workspace .ent-field{display:grid;align-content:start;gap:8px;min-width:0}
.enterprise-workspace .ent-wide{grid-column:1/-1}
.enterprise-workspace label{display:grid;gap:8px;font-size:14px;line-height:1.5;font-weight:600;min-width:0}
.enterprise-workspace :is(input:not([type=checkbox]),select,textarea){font:inherit;font-size:14px;line-height:1.5;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:8px;width:100%;min-height:44px;padding:10px 12px;box-sizing:border-box}
.enterprise-workspace textarea{resize:vertical}
.enterprise-workspace .ent-check{display:flex;align-items:flex-start;gap:10px;font-weight:500}
.enterprise-workspace .ent-check input{width:20px;height:20px;margin:2px 0;flex:0 0 20px;accent-color:var(--accent)}
.enterprise-workspace .ent-hint{font-size:13px;line-height:1.6;color:var(--muted);font-weight:400}
.enterprise-workspace .ent-form{margin-top:20px}
.enterprise-workspace .ent-actions{margin-top:20px}
.enterprise-workspace .ent-actions .btn{min-height:44px;max-width:100%;white-space:normal;text-align:center}
.enterprise-workspace .ent-state{font-weight:600;color:var(--ink)}
.enterprise-workspace .ent-copy{display:grid;gap:8px;padding:14px;background:var(--surface-subtle);border-radius:8px;margin:18px 0;font-size:14px}
.enterprise-workspace .ent-copy code,.enterprise-workspace .ent-integrity{overflow-wrap:anywhere}
.enterprise-workspace .ent-records{display:grid;gap:0;margin-top:20px}
.enterprise-workspace .ent-record{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-top:1px solid var(--line)}
.enterprise-workspace .ent-record>div{min-width:0}
.enterprise-workspace .ent-record p{margin:3px 0;overflow-wrap:anywhere;font-size:13px}
.enterprise-workspace .ent-record>.btn{flex-shrink:0;min-height:44px}
.enterprise-workspace .ent-pill{display:inline-block;font-size:13px;font-weight:500;background:var(--surface-subtle);border:1px solid var(--line);padding:2px 8px;border-radius:6px;margin-left:6px}
.enterprise-workspace .ent-audit-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px;align-items:end}
.enterprise-workspace .ent-audit-filters>.btn{justify-self:start;min-height:44px}
.enterprise-workspace .ent-table-wrap{overflow-x:auto;max-width:100%;margin-top:16px;border:1px solid var(--line);border-radius:8px;scrollbar-width:thin;scrollbar-color:var(--muted) var(--surface-subtle)}
.enterprise-workspace .ent-table{border-collapse:collapse;width:100%;min-width:720px;font-size:13px;line-height:1.5}
.enterprise-workspace .ent-table :is(th,td){padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);max-width:280px;overflow-wrap:anywhere}
.enterprise-workspace .ent-table th{font-size:13px;font-weight:600;background:var(--surface-subtle)}
.enterprise-workspace .ent-table pre{font-size:12px;max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere}
.enterprise-workspace .ent-table summary{cursor:pointer;min-height:24px}
.enterprise-workspace .ent-integrity{font-size:14px;line-height:1.6;margin-top:16px}
.enterprise-workspace .ent-empty{padding:24px 0}
.enterprise-workspace button:disabled{cursor:default;opacity:.55}
@media(max-width:700px){
  .enterprise-workspace .card{padding:16px}
  .enterprise-workspace .ent-fields,.enterprise-workspace .ent-audit-filters{grid-template-columns:minmax(0,1fr)}
  .enterprise-workspace .ent-wide{grid-column:auto}
  .enterprise-workspace .ent-record{flex-direction:column;align-items:stretch;gap:12px}
  .enterprise-workspace .ent-record>.btn{align-self:flex-start}
  .enterprise-workspace :is(input:not([type=checkbox]),select,textarea){font-size:16px}
  .enterprise-workspace .ent-actions{gap:10px}
}
