/* Estrutura compartilhada. A identidade visual e os tamanhos ficam em theme.css. */
*{box-sizing:border-box}
body{margin:0;font:400 15px/1.6 var(--font);-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0}
button:disabled{cursor:default;opacity:.45}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid;outline-offset:3px}
[hidden]{display:none!important}
svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{display:grid;min-height:100svh}
.sidebar{position:sticky;top:0;height:100svh;display:flex;flex-direction:column}
.brand,.brand img{display:block}
.workspace-label{display:flex;align-items:center;border-bottom:1px solid}
.workspace-dot{border-radius:50%}
.nav-item{display:flex;align-items:center;text-align:left;background:transparent}
.nav-count{display:grid;place-items:center}
.sidebar-bottom{margin-top:auto}
.user-row{display:flex;align-items:center;border-top:1px solid;padding-right:4px;padding-bottom:0;padding-left:4px}
.user-avatar,.top-user{border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.user-info{min-width:0;flex:1}
.user-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.user-info>span{display:block}
.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:transparent;border-radius:8px;height:33px;width:33px}
.sidebar .icon-button:hover{background:#313131;color:#fff}
.icon-button svg{width:17px;height:17px}
.topbar{display:flex;justify-content:space-between;align-items:center}
.breadcrumb{display:flex;align-items:center}
.top-actions{display:flex;align-items:center;gap:22px}
.content{max-width:1440px;margin:0 auto}
.mobile-pages{display:none}
.page-heading{display:flex;justify-content:space-between}
.eyebrow{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:700}
.page-heading h1{margin:8px 0 7px}
.primary,.secondary,.text-icon{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;line-height:1.4}
.primary{border-radius:10px;min-height:41px;padding:10px 15px;font-size:13px;font-weight:600}
.primary svg{width:17px;height:17px}
.text-icon{background:transparent;padding:6px 0;min-height:30px;border-radius:10px}
.text-icon:hover{color:var(--ink)}
.stats{display:grid;grid-template-columns:repeat(3,1fr)}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:500}
.stat-icon{display:grid;place-items:center}
.list-heading{display:flex;justify-content:space-between}
.list-heading h2{display:flex;align-items:center;gap:9px;margin:0 0 4px}
.status-tabs{display:flex;border-radius:8px}
.status-tabs button{line-height:1.5}
.status-tabs button.active{border-width:1px;border-style:solid}
.status-tabs button>span{margin-left:4px}
.search{margin-left:auto;display:flex;align-items:center;max-width:100%}
.search input{border:0;outline:0;width:100%;background:transparent}
.list-tools select{max-width:145px;background-image:none;outline:0}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left}
th{white-space:nowrap}
th:last-child{width:42px}
td{border-bottom:1px solid;font-size:12px;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr{cursor:pointer}
.company-cell{display:flex;align-items:center}
.company-avatar{display:grid;place-items:center}
.company-cell strong{display:block;white-space:nowrap}
.company-cell small,.responsible small{display:block;line-height:1.6}
.responsible small{margin-top:3px;overflow:hidden;text-overflow:ellipsis}
.responsible strong{white-space:nowrap}
.status-pill{line-height:1.5}
.list-footer{display:flex;align-items:center;justify-content:space-between;gap:15px}
.pagination{display:flex;align-items:center}
.pagination>span{min-width:23px;text-align:center}
.content-footnote{display:flex;align-items:center;justify-content:center}
.list-state{text-align:center;min-height:240px}
.list-state svg{width:34px;height:34px;margin:0 auto 15px}
.list-state strong{display:block;font-weight:600;margin-bottom:6px}
.list-state p{max-width:360px;margin:0 auto 15px;color:var(--muted)}
.skeleton{height:12px;border-radius:6px;width:75%;display:block}
.loading-row td{height:82px}
.detail-dialog{max-width:none;padding:0;overflow:hidden}
.detail-dialog[open]{display:flex;flex-direction:column}
.detail-header{display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0}
.detail-heading{display:flex;align-items:center}
.detail-eyebrow{display:flex;align-items:center;gap:10px;line-height:1.5}
.detail-body{flex:1}
.detail-contact>strong,.detail-contact>span:not(.eyebrow){display:block}
.detail-contact>span:not(.eyebrow){margin-bottom:17px}
.contact-button{display:flex;align-items:center;background:transparent;width:100%;text-align:left;margin-bottom:12px}
.contact-button>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis}
.contact-button>span:last-child{opacity:.55}
.contact-button:hover{color:var(--ink)}
.material-icon,.material-card>strong{display:block}
.detail-download{border-radius:9px;color:var(--ink)}
.review-note{display:flex;gap:7px;line-height:1.7}
.review-note svg{width:14px;height:14px;flex-shrink:0;margin-top:3px}
.review-note p{margin:0}
.detail-content{scroll-behavior:smooth}
.detail-tabs{display:flex;padding-top:19px}
.detail-tabs button{position:relative;display:flex;align-items:center;gap:7px;line-height:1.5}
.detail-tabs button.active::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--orange);border-radius:2px}
.answers-grid{display:grid;margin:0}
.answer-field dd{margin:0;white-space:pre-wrap}
.choice-values{display:flex;flex-wrap:wrap}
.detail-footer{display:flex;align-items:center;justify-content:space-between}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;padding:13px 20px;border-radius:12px;font-size:13px;z-index:30;line-height:1.6}
.login-brand img{object-fit:contain}
.login-card input{display:block;width:100%;outline:0}
.password-wrap{position:relative}
.password-wrap button{position:absolute;right:10px;top:10px;height:28px;width:28px;background:transparent;display:grid;place-items:center;border-radius:6px}
.password-wrap button svg{height:17px;width:17px}
.login-card .login-footnote{text-align:center}
.diagnostic-nested{margin:0;display:grid}
.diagnostic-nested>div{border-left:2px solid var(--line)}
.diagnostic-nested dt{font-size:12px;margin-bottom:3px}
.diagnostic-nested dd{margin:0}
.diagnostic-values{margin:0;padding-left:20px;display:grid;gap:8px}
.diagnostics-dialog dd{white-space:pre-wrap;overflow-wrap:anywhere}
.diagnostics-dialog .detail-footer{flex-wrap:wrap}
#diagnostics-state p{max-width:560px}
.loading-detail{padding:35px 0;color:var(--muted);font-size:14px}
@media(max-width:800px){
 .brand img{object-position:left center}
 .nav-item{flex-shrink:0}
 .top-actions{gap:10px}
 .page-heading>.secondary{font-size:0;padding:10px;min-height:37px;gap:0}
 .page-heading>.secondary svg{width:17px;height:17px}
 .stat-top{align-items:flex-start;gap:5px}
 .search{margin:0}
 .detail-tabs{overflow-x:auto}
}
@media(max-width:560px){
 .sidebar{justify-content:space-between;align-items:center}
 .workspace-label,.nav-label,.user-info{display:none}
 .sidebar .icon-button{height:28px;width:28px}
 .page-heading p{max-width:275px}
 .eyebrow{font-size:9px}
 .status-tabs{justify-content:space-between}
 .list-tools select{max-width:120px}
 .company-cell strong{white-space:normal}
 td:last-child{padding-left:0;padding-right:9px}
 .content-footnote{align-items:flex-start;text-align:left;line-height:1.6;padding:0 7px}
 .content-footnote svg{flex-shrink:0;margin-top:2px}
 .detail-heading{align-items:flex-start}
 .detail-header .company-avatar{margin-top:4px}
 .detail-eyebrow{gap:6px;flex-wrap:wrap}
 .detail-header p{line-height:1.6}
 .detail-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}
 .detail-contact{min-width:0}
 .detail-contact>span:not(.eyebrow){margin-bottom:12px}
 .contact-button{margin-bottom:10px}
 .contact-button>span:last-child{display:none}
 .material-card{margin-right:0;margin-bottom:0;margin-left:0}
 .material-card .text-icon{white-space:normal;text-align:left}
 .detail-download,.review-note{margin-right:0;margin-bottom:0;margin-left:0}
 .review-note{line-height:1.6}
 .detail-tabs{padding-top:11px}
 .detail-tabs button{align-items:flex-start;text-align:left;line-height:1.5;min-width:0}
 .detail-footer>span{max-width:125px;line-height:1.5}
 .detail-footer .primary{white-space:normal;text-align:left;gap:7px}
 .detail-footer .primary svg{flex-shrink:0}
 .toast{font-size:12px;width:max-content;max-width:92vw;bottom:18px;padding:12px 16px}
 #diagnostics-rows .company-cell strong{white-space:normal;overflow-wrap:anywhere}
}
@media print{
 .app-shell,.login-view,.toast{display:none!important}
 .detail-dialog{position:static;margin:0;overflow:visible;display:block!important}
 .detail-dialog::backdrop{display:none}
 .detail-sidebar,.detail-tabs,.detail-footer,.detail-header>.icon-button{display:none}
 .answer-group{break-inside:avoid}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
