/* CAIO HUB · módulo de interface web · paleta/MIV oficiais. */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--hub-radius:12px;--hub-outline:#d9e3df}
body{background:#f6f7f5}
[hidden]{display:none!important}
.sidebar{position:sticky;top:0;height:100vh;gap:28px;min-width:0;padding:26px 15px 20px;background:#fff}
.sidebar .brand{padding:3px 8px 10px}
.sidebar nav{display:flex;flex-direction:column;gap:3px;overflow-y:auto;max-height:calc(100vh - 235px);scrollbar-width:thin}
.sidebar nav a{padding:11px 13px;min-height:44px;border-radius:8px;font-size:13px;font-weight:500;gap:11px;transition:background-color .15s,color .15s}
.sidebar nav a:not(.nav-current):hover{background:#f2f6f3;color:#132B35}
.sidebar nav .nav-marker{font-variant-numeric:tabular-nums;min-width:24px;font-size:11px;letter-spacing:.03em;font-weight:700;color:#84958f}
.sidebar nav a[aria-current="page"]{background:#e5f3ef;color:#07584f;font-weight:700}
.sidebar nav a[aria-current="page"] .nav-marker{color:#08756D}
.sidebar .side-foot{padding:16px 8px 0}
.topbar{height:66px;border-bottom:1px solid #e2e9e5;padding:0 clamp(20px,3vw,46px)}
.workspace{padding:30px clamp(18px,3vw,46px) 40px;max-width:1420px}
.hub-route{min-height:55vh}
.hub-route-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 0 23px;border-bottom:1px solid #e3eae6;margin-bottom:25px}
.hub-route-header h1{font-size:clamp(25px,2.5vw,34px);line-height:1.12;letter-spacing:-.045em;margin:7px 0 6px;font-weight:700}
.hub-route-eyebrow{color:#08756D;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;margin:0}
.hub-route-subtitle{color:#52646B;font-size:13px;line-height:1.5;margin:0}
.hub-route-empty{border:1px dashed #ccd8d5;border-radius:12px;padding:28px;background:#fff;color:#52646B;font-size:14px}
.intro{margin-bottom:24px}
.intro h1{font-size:30px}
.intro p{font-size:14px}
.panel,.results{border-radius:var(--hub-radius);box-shadow:0 2px 12px rgb(19 43 53 / 3%);border-color:#e0e7e3}
.hub-route>.results{margin-top:0}
.hub-route>.results+.results{margin-top:22px}
.hub-list-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.hub-list-toolbar label{font-size:12px;font-weight:700;color:#52646B;margin:0;flex:1 1 180px;max-width:350px}
.hub-list-toolbar input,.hub-list-toolbar select{display:block;margin-top:7px;width:100%;background:white;min-height:42px;height:42px;font-size:13px}
.hub-count{font-size:12px;color:#52646B;margin-left:auto;margin-bottom:11px}
.projects-section{background:transparent;padding:0}
.projects-list{overflow-x:auto;border:1px solid #dfe8e2;border-radius:12px;background:#fff}
.hub-data-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left;table-layout:auto}
.hub-data-table th{background:#f8faf8;color:#52646B;font-size:11px;text-transform:uppercase;letter-spacing:.045em;font-weight:700;padding:15px 16px;white-space:nowrap}
.hub-data-table td{padding:13px 16px;border-top:1px solid #e9eeeb;color:#132B35;vertical-align:middle}
.hub-data-table tbody tr:hover{background:#fbfdfa}
.hub-data-table td:first-child{font-weight:600}
.hub-data-table .secondary{margin:0;padding:9px 13px;min-width:96px;width:auto;font-size:12px}
.hub-status-pill{display:inline-flex;align-items:center;border-radius:7px;background:#eaf4f0;color:#08665e;padding:6px 9px;font-size:11px;font-weight:700;white-space:nowrap}
.hub-data-table .muted-cell{color:#52646B;font-weight:400}
.hub-retry-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0}
.hub-retry-bar .secondary{margin:0;width:auto;padding:11px 15px}
.hub-retry-bar span{font-size:12px;color:#52646B}
.feedback:not([hidden]){position:fixed;bottom:22px;right:22px;z-index:1000;display:flex;align-items:start;justify-content:space-between;gap:18px;width:min(420px,calc(100vw - 32px));max-width:none;padding:16px 18px;background:#fff;border:1px solid #a5c4b7;border-left:4px solid #08756D;border-radius:11px;box-shadow:0 12px 42px rgb(19 43 53 / 16%);font-size:13px;color:#132B35;line-height:1.45}
.feedback[data-kind="error"]{border-left-color:#a92332;border-color:#e4b9bd}
.feedback[data-kind="warning"]{border-left-color:#d96b4f}
.notification-dismiss{min-width:44px;min-height:36px;border:0;background:transparent;color:#52646B;padding:5px 8px;align-self:center;border-radius:6px}
.notification-dismiss:hover{background:#eef4f1}
.hub-confirm-dialog{border:1px solid #dce5df;border-radius:16px;max-width:430px;width:calc(100vw - 32px);padding:27px;color:#132B35;background:#fff;box-shadow:0 25px 90px rgb(19 43 53 / 22%)}
.hub-confirm-dialog::backdrop{background:rgb(12 30 39 / 45%)}
.hub-confirm-dialog h2{font-size:20px;letter-spacing:-.025em;margin:0 0 9px}
.hub-confirm-dialog p{font-size:13px;line-height:1.55;color:#52646B;margin:0}
.hub-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
.hub-dialog-actions .primary,.hub-dialog-actions .secondary{width:auto;min-width:108px;margin:0;padding:12px 16px;justify-content:center}
.dev-badge{background:#e8f2ed;color:#08756D;border-radius:8px}
@media(max-width:1023px){.sidebar{position:sticky;top:0;height:100vh}.hub-route-header{margin-bottom:18px}}
@media(max-width:767px){
 .sidebar{position:relative;height:auto;padding:10px 13px;gap:8px}
 .sidebar .brand{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0}
 .sidebar .brand img{width:124px;height:53px}
 .sidebar .brand span{font-size:9px;max-width:160px;text-align:right}
 .sidebar nav{flex-direction:row;overflow-x:auto;max-height:none;gap:4px;padding:0 0 5px;scrollbar-width:thin}
 .sidebar nav a{flex:0 0 auto;flex-direction:row;gap:7px;padding:8px 12px;font-size:12px;min-height:44px}
 .sidebar nav a>span{width:auto!important;text-align:left!important;font-size:12px}
 .sidebar nav a .nav-marker{font-size:10px}
 .sidebar .side-foot{display:none}
 .workspace{padding:18px 16px 30px}
 .hub-route-header h1{font-size:25px}
 .hub-list-toolbar label{flex:1 1 140px}
 .hub-data-table th:nth-child(2),.hub-data-table td:nth-child(2),.hub-data-table th:nth-child(4),.hub-data-table td:nth-child(4){display:none}
 .hub-data-table th,.hub-data-table td{padding:12px 9px}
 .hub-data-table .secondary{min-width:72px;font-size:11px}
 .feedback:not([hidden]){right:16px;bottom:16px}
 .hub-dialog-actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.sidebar nav a{transition:none}}

/* Agentes e criação por prompt: tabelas leves e sem visual decorativo de IA. */
.hub-agent-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:18px 0 24px}
.hub-agent-card{border:1px solid #dde6e1;border-radius:10px;background:#fff;padding:17px;display:flex;flex-direction:column;gap:6px}
.hub-agent-card h3{font-size:14px;margin:0;color:#132B35}
.hub-agent-card p{font-size:12px;line-height:1.5;color:#52646B;margin:0;flex:1}
.hub-agent-card small{font-size:10px;color:#08756D;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.hub-agent-form{margin-top:25px;border:1px solid #dae4df;padding:20px;border-radius:12px;background:#f9fbf9}
.hub-agent-form h3{font-size:17px;margin:0 0 10px}
.hub-agent-form textarea,.hub-estrada-builder textarea{width:100%;min-height:105px;padding:14px;border:1px solid #ccd8d5;border-radius:8px;resize:vertical;background:#fff}
.hub-agent-form-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:15px}
.hub-agent-form-actions .primary{width:auto;margin:0;padding:13px 18px}
.hub-agent-form-actions small{font-size:11px;line-height:1.5;color:#52646B}
.hub-agent-plan{margin-top:20px;border-top:1px solid #dce6df;padding-top:18px}
.hub-agent-plan h3{font-size:16px;margin:6px 0 12px}
.hub-agent-plan>p{color:#52646B;font-size:12px}
.hub-agent-task{background:white;border:1px solid #dee7e1;border-radius:9px;padding:15px;margin-top:10px}
.hub-agent-task h4{font-size:14px;margin:0 0 7px}
.hub-agent-task small{color:#52646B;font-size:11px}
.hub-agent-task ul{padding-left:20px;margin:10px 0 0;color:#52646B;font-size:12px;line-height:1.6}
.hub-estrada-builder{background:#f7f9f7;border:1px solid #dce8e2;border-radius:12px;padding:clamp(18px,3vw,25px);margin:20px 0}
.hub-estrada-builder-head{display:flex;align-items:start;justify-content:space-between;gap:16px}
.hub-estrada-builder h3{font-size:17px;margin:0 0 6px}
.hub-estrada-builder p{font-size:12px;line-height:1.6;color:#52646B}
.hub-estrada-builder label{margin:16px 0 8px}
.hub-project-context{font-size:12px;color:#52646B;margin:12px 0}
.hub-estrada-builder .primary{width:auto;margin:0;padding:13px 18px}
.hub-table-empty{padding:24px;color:#52646B;font-size:13px;margin:0}
@media(max-width:767px){.hub-agent-catalog{grid-template-columns:1fr}.hub-estrada-builder-head{flex-direction:column}.hub-agent-form-actions .primary,.hub-estrada-builder .primary{width:100%}}

.hub-integration-status{overflow-x:auto;margin:20px 0}.hub-integration-status .hub-data-table{background:#fff;border:1px solid #dce6e0;border-radius:10px}

.hub-agent-history{border-top:1px solid #dee7e1;margin-top:24px;padding:20px 0 0}.hub-agent-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.hub-agent-history-toolbar h3{font-size:17px;margin:0 0 6px}.hub-agent-history-toolbar p{font-size:12px;color:#52646B;line-height:1.5;margin:0}.hub-agent-history-actions{display:flex;gap:9px;flex-wrap:wrap}.hub-agent-history-actions .secondary{width:auto;margin:0;padding:10px 14px;min-height:42px}.hub-agent-history #agent-history{overflow-x:auto;margin-top:18px}.hub-agent-history #agent-history>p{margin:0;font-size:13px}.hub-agent-history .hub-data-table{background:white}


/* CAIO HUB — hierarquia operacional enxuta */
#hub-route-inicio>.hub-route-header{display:none}
.sidebar .nav-marker{display:none}
.sidebar nav a{gap:8px}
.topbar{height:56px;min-height:56px}
.workspace{padding-top:22px}
.hub-route-header{margin-bottom:18px}
.hub-route-header h1{font-size:clamp(24px,2.5vw,30px);margin:0 0 5px}
.hub-route-subtitle{font-size:13px;line-height:1.5}
.intro{margin-bottom:19px}
.intro .eyebrow{display:none}
.intro h1{font-size:clamp(25px,2.6vw,34px);letter-spacing:-.035em}
.intro>p{font-size:13px;line-height:1.5;margin-top:5px}
.panel-title{margin-bottom:17px}
.panel-title .panel-index{display:none}
.panel-title h2{font-size:17px}
.panel-title p{font-size:12px;line-height:1.4}
.journey .steps{gap:11px}
.journey .steps small{font-size:11px;line-height:1.4}
.field-meta,.privacy-note{font-size:11px;line-height:1.45}
.hub-route-empty{font-size:13px;line-height:1.5}
@media(max-width:767px){
 .topbar{height:48px;min-height:48px}
 .workspace{padding-top:14px}
 .intro{margin-bottom:14px}
 .sidebar nav a{min-height:44px}
}
