/* Private agent dashboard — desktop + mobile. No commercial styling. */
.dash{margin:0;background:#090911;color:#eeeef6;font-family:Arial,sans-serif}
/* Gate is a temporary, out-of-flow overlay: it can never push the app down,
   and [hidden] must win over the author display rule so it truly disappears. */
.dash-gate{position:fixed;inset:0;display:grid;place-items:center;padding:24px;background:#090911;z-index:50}
.dash-gate[hidden]{display:none}
.dash-gate-msg{color:#b8b8cc;font-size:.95rem;text-align:center}
.dash-app{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}
.dash-app[hidden]{display:none}
.dash-side{display:flex;flex-direction:column;gap:18px;padding:22px 16px;background:#0c0c15;border-right:1px solid #ffffff18;position:sticky;top:0;height:100vh;box-sizing:border-box}
.dash-brand{color:#f0c060;font-weight:800;letter-spacing:.04em;font-size:1.05rem}
.dash-brand span{color:#eeeef6}
.dash-nav{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0}
.dash-link{text-align:left;background:transparent;border:1px solid transparent;color:#c4c4d7;padding:11px 12px;border-radius:10px;cursor:pointer;font:inherit;min-height:44px}
.dash-link:hover{background:#ffffff0a;color:#eeeef6}
.dash-link[aria-current="page"]{background:#1a1726;border-color:#675134;color:#f0c060}
.dash-logout{background:transparent;border:1px solid #504c61;color:#c4c4d7;padding:11px 12px;border-radius:10px;cursor:pointer;font:inherit;min-height:44px}
.dash-main{min-width:0;display:flex;flex-direction:column}
.dash-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #ffffff18;position:sticky;top:0;background:#090911ee;backdrop-filter:blur(6px);z-index:5}
.dash-head-title{font-weight:800;letter-spacing:.03em}
.dash-head-meta{margin-left:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.dash-tenant,.dash-account{color:#b8b8cc;font-size:.8rem;overflow-wrap:anywhere}
.dash-badge{color:#f0c060;border:1px solid #675134;border-radius:30px;padding:5px 10px;font-size:.72rem}
.dash-burger{display:none;background:transparent;border:1px solid #504c61;color:#eeeef6;border-radius:8px;width:44px;height:44px;cursor:pointer;font-size:1.1rem}
.dash-views{padding:28px 28px 72px;max-width:1080px;width:100%;margin:0 auto;box-sizing:border-box}
.dash-view h1{font-size:clamp(1.5rem,3vw,2rem);margin:0 0 14px}
.dash-view h2{font-size:1rem;margin:22px 0 10px;color:#f0c060}
.dash-lead,.dash-note,.dash-sub{color:#b8b8cc;line-height:1.65;font-size:.88rem}
.dash-value{font-size:1.15rem;font-weight:700;margin:0 0 6px;overflow-wrap:anywhere}
.dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dash-card{border:1px solid #ffffff18;border-radius:16px;padding:20px;background:#12121de8;min-width:0}
.dash-card h2{margin:0 0 10px;font-size:.8rem;color:#f0c060}
.dash-result,.dash-block{border:1px solid #ffffff18;border-radius:16px;padding:18px 20px;background:#12121de8;margin-top:16px}
.dash-result h2,.dash-block h2{margin:0 0 10px}
.dash-block-error{border-color:#a04b4b}
.dash-cards{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}
.dash-cards .dash-block{flex:1 1 320px;margin-top:0}
.dash-form{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.dash-form label{font-size:.9rem}
.dash textarea,.dash input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #504c61;border-radius:8px;background:#090911;color:#eeeef6;font:inherit}
.dash-form-inline{flex-direction:row;align-items:center;gap:10px;flex-wrap:wrap}
.dash-form-inline input{flex:1;min-width:200px}
.dash-run{align-self:flex-start;background:#f0c060;color:#111018;border:0;border-radius:10px;padding:12px 20px;font-weight:750;cursor:pointer;font:inherit;min-height:44px}
.dash-run:disabled{opacity:.5;cursor:not-allowed}
.dash-danger{background:transparent;border:1px solid #a04b4b;color:#ffb3b3}
.dash-status{color:#f0c060;font-size:.85rem;min-height:1.2em}
.dash-pre{white-space:pre-wrap;background:#0c0c15;border:1px solid #ffffff18;border-radius:12px;padding:16px;margin:0;color:#dedee9;font-size:.88rem;overflow-wrap:anywhere}
.dash-steps,.dash-docs,.dash-execs,.dash-audit{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.dash-steps li,.dash-docs li,.dash-exec,.dash-audit-row{border:1px solid #ffffff14;border-radius:10px;padding:10px 12px;background:#0f0f18;font-size:.85rem;overflow-wrap:anywhere}
.dash-exec{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dash-exec-task{flex:1;min-width:0}
.dash-exec-meta{color:#b8b8cc;font-size:.78rem}
.dash-mini{background:transparent;border:1px solid #504c61;color:#eeeef6;border-radius:8px;padding:6px 12px;cursor:pointer;font:inherit;min-height:36px}
.dash-empty{color:#b8b8cc;font-size:.85rem}
.dash-error{color:#ffb3b3;overflow-wrap:anywhere}
.dash-audit-event{display:block;color:#f0c060}
.dash-audit-meta{color:#b8b8cc;font-size:.78rem}
.dash-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.dash-scrim{display:none}
.dash a,.dash button{outline-offset:2px}
.dash :focus-visible{outline:3px solid #87e8d3;outline-offset:2px}
.dash-doc-bar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:16px 0 12px}
.dash-doc-field{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:#b8b8cc}
.dash-doc-field select{box-sizing:border-box;padding:10px 12px;border:1px solid #504c61;border-radius:8px;background:#090911;color:#eeeef6;font:inherit;min-height:44px}
.dash-drop{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;text-align:center;border:1px dashed #504c61;border-radius:14px;padding:22px 16px;background:#0f0f18;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.dash-drop.over{border-color:#f0c060;background:#1a1726}
.dash-drop-title{font-weight:700;font-size:.9rem}
.dash-drop-hint{color:#b8b8cc;font-size:.78rem}
.dash-doc-filters{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 12px}
.dash-doc-filters input{flex:1;min-width:200px}
.dash-doc{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between}
.dash-doc-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.dash-doc-name{font-weight:700;overflow-wrap:anywhere}
.dash-doc-meta{color:#b8b8cc;font-size:.78rem}
.dash-doc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-doc-ask{color:#f0c060;font-size:.8rem}
@media(max-width:860px){
  .dash-app{grid-template-columns:1fr}
  .dash-side{position:fixed;top:0;left:0;bottom:0;width:260px;height:100%;transform:translateX(-100%);transition:transform .2s ease;z-index:30;box-shadow:0 0 40px #000a}
  .dash-side.open{transform:translateX(0)}
  .dash-burger{display:block}
  .dash-grid{grid-template-columns:1fr}
  .dash-head{padding:12px 14px}
  .dash-head-meta{gap:8px}
  .dash-views{padding:18px 14px 60px}
  .dash-scrim{display:block;position:fixed;inset:0;background:#0009;z-index:20}
  .dash-scrim[hidden]{display:none}
}
