:root{--surface:#fff;--surface-muted:#f6f7f4;--text:#39423f;--text-strong:#17211e;--text-muted:#66736f;--border:#dfe5df;--border-strong:#c8d2ca;--brand:#17a08d;--brand-strong:#116b62;--brand-soft:#e1f5ef;--accent:#d98532;--risk:#d34c3d;--warning:#d79b19;--success:#1f9d69;color:var(--text);background:var(--surface-muted);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:var(--surface-muted);min-width:320px}body{min-width:320px;min-height:100dvh;margin:0}body,button,input,select,textarea{letter-spacing:0;font-size:16px;line-height:1.5}button,input,select,textarea{font-family:inherit}button{touch-action:manipulation}svg{flex:none}#root{min-height:100dvh}.app-shell{background:linear-gradient(90deg, #116b620d, transparent 34%), var(--surface-muted);grid-template-columns:280px minmax(0,1fr);min-height:100dvh;display:grid}.login-shell{background:linear-gradient(120deg, #116b621f, transparent 42%), linear-gradient(300deg, #d9853221, transparent 38%), var(--surface-muted);place-items:center;min-height:100dvh;padding:28px;display:grid}.login-panel{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:24px;width:min(100%,440px);padding:28px;display:grid;box-shadow:0 18px 48px #17211e1a}.login-brand{align-items:center;gap:12px;min-height:52px;display:flex}.login-brand strong{color:var(--text-strong);display:block}.login-copy h1{color:var(--text-strong);margin:4px 0 8px;font-size:1.8rem;line-height:1.15}.login-copy p{color:var(--text-muted);margin:0}.login-form{gap:14px;display:grid}.login-form label{color:var(--text);gap:6px;font-size:.9rem;font-weight:700;display:grid}.login-form input{border:1px solid var(--border);width:100%;min-height:44px;color:var(--text-strong);background:var(--surface);font:inherit;border-radius:8px;padding:0 12px}.login-error{color:#8d1b1b;background:#fff0ed;border:1px solid #f0bbb4;border-radius:8px;margin:0;padding:10px 12px;font-size:.9rem;font-weight:700}.sidebar{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;gap:28px;height:100dvh;padding:24px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;min-height:52px;display:flex}.brand-mark{width:44px;height:44px;color:var(--brand-strong);background:var(--brand-soft);border-radius:8px;place-items:center;display:grid}.brand strong,.sidebar-footer strong{color:var(--text-strong);font-size:1rem;display:block}.eyebrow{color:var(--text-muted);text-transform:uppercase;font-size:.72rem;font-weight:700;line-height:1.2;display:inline-block}.nav-list{gap:6px;display:grid}.nav-item{width:100%;min-height:44px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-weight:700;display:flex}.nav-item:hover,.nav-item:focus-visible{color:var(--brand-strong);background:var(--brand-soft)}.nav-item.active{color:var(--brand-strong);background:var(--brand-soft);box-shadow:inset 3px 0 0 var(--brand)}.sidebar-footer{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;margin-top:auto;padding:16px}.sidebar-footer p{color:var(--text-muted);margin:8px 0 0;font-size:.88rem}.workspace{min-width:0;padding:28px}.topbar{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.topbar h1{color:var(--text-strong);margin:4px 0 0;font-size:1.75rem;line-height:1.15}.topbar-actions{align-items:center;gap:10px;display:flex}.search-field{border:1px solid var(--border);width:min(420px,42vw);min-height:44px;color:var(--text-muted);background:var(--surface);border-radius:8px;align-items:center;gap:10px;padding:0 14px;display:flex}.search-field input{width:100%;min-width:0;color:var(--text-strong);font:inherit;background:0 0;border:0;outline:0}.icon-button,.ghost-icon{border:1px solid var(--border);color:var(--text);background:var(--surface);cursor:pointer;border-radius:8px;place-items:center;display:inline-grid}.icon-button{width:44px;height:44px}.ghost-icon{width:34px;height:34px}.icon-button:hover,.ghost-icon:hover,.icon-button:focus-visible,.ghost-icon:focus-visible{color:var(--brand-strong);border-color:var(--brand)}.logout-button{border:1px solid var(--border);min-height:44px;color:var(--text);background:var(--surface);font:inherit;cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:0 14px;font-weight:800;display:inline-flex}.logout-button:hover,.logout-button:focus-visible{color:var(--brand-strong);border-color:var(--brand)}.quick-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.metric-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:14px;min-height:112px;padding:18px;display:flex}.metric-icon{width:38px;height:38px;color:var(--brand-strong);background:var(--brand-soft);border-radius:8px;flex:none;place-items:center;display:grid}.metric-card span,.finance-card span{color:var(--text-muted);font-size:.82rem;font-weight:700;display:block}.metric-card strong,.finance-card strong{color:var(--text-strong);margin-top:5px;font-size:1.55rem;line-height:1.1;display:block}.metric-card p,.finance-card p{color:var(--text-muted);margin:8px 0 0;font-size:.86rem}.content-grid{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:18px;display:grid}.primary-flow,.intake-panel,.agenda-panel,.activity-panel{border:1px solid var(--border);background:var(--surface);border-radius:8px}.primary-flow{min-width:0;padding:18px}.side-stack{gap:14px;display:grid}.intake-panel,.agenda-panel,.activity-panel{padding:16px}.panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.panel-heading.compact{margin-bottom:12px}.panel-heading h2{color:var(--text-strong);margin:3px 0 0;font-size:1.1rem}.filter-row{border:1px solid var(--border);min-height:40px;color:var(--text-muted);background:var(--surface-muted);border-radius:8px;align-items:center;gap:8px;padding:0 10px;display:flex}.filter-row select,.intake-form select,.intake-form input{border:1px solid var(--border);width:100%;min-height:42px;color:var(--text-strong);background:var(--surface);font:inherit;border-radius:8px}.filter-row select{background:0 0;border:0;min-height:34px;font-weight:700}.pipeline-board{grid-template-columns:repeat(5,minmax(180px,1fr));gap:12px;padding-bottom:4px;display:grid;overflow-x:auto}.pipeline-column{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;flex-direction:column;gap:12px;min-height:480px;padding:12px;display:flex}.pipeline-column header{justify-content:space-between;align-items:center;display:flex}.pipeline-column h3{color:var(--text-strong);margin:0;font-size:.92rem}.pipeline-column header span{min-width:26px;height:26px;color:var(--brand-strong);background:var(--brand-soft);border-radius:999px;place-items:center;font-size:.8rem;font-weight:800;display:inline-grid}.case-stack{gap:10px;display:grid}.case-card{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:10px;padding:12px;display:grid}.case-card-top,.case-meta,.case-card footer{justify-content:space-between;align-items:center;gap:10px;display:flex}.case-id{color:var(--brand-strong);font-size:.8rem;font-weight:800}.case-card h3{color:var(--text-strong);margin:0;font-size:.98rem}.case-card p{color:var(--text-muted);margin:0;font-size:.84rem;line-height:1.45}.case-meta span:not(.badge),.case-card footer span,.case-card footer strong{color:var(--text-muted);font-size:.78rem}.case-card footer strong{color:var(--text-strong)}.badge{border-radius:999px;align-items:center;min-height:26px;padding:0 9px;font-size:.74rem;font-weight:800;display:inline-flex}.badge.alta{color:#8d1b1b;background:#ffe4df}.badge.media{color:#725111;background:#fff0bf}.badge.baixa{color:#12664f;background:#dff7ed}.progress-track{background:#e8ece8;border-radius:999px;height:8px;overflow:hidden}.progress-track span{border-radius:inherit;background:linear-gradient(90deg, var(--brand), var(--accent));height:100%;display:block}.empty-state{border:1px dashed var(--border-strong);min-height:78px;color:var(--text-muted);border-radius:8px;place-items:center;margin:0;font-size:.86rem;display:grid}.intake-form{gap:12px;display:grid}.intake-form label{color:var(--text);gap:6px;font-size:.84rem;font-weight:700;display:grid}.intake-form input,.intake-form select{padding:0 12px}.form-pair{grid-template-columns:1fr 1fr;gap:10px;display:grid}.primary-button{color:#fff;background:var(--brand-strong);width:100%;min-height:44px;font:inherit;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;font-weight:800;display:inline-flex}.primary-button:hover,.primary-button:focus-visible{background:#0a6259}.task-list,.tasks-view{gap:10px;display:grid}.task-item,.task-row{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;display:grid}.task-item strong,.task-row strong{color:var(--text-strong);font-size:.9rem;line-height:1.35;display:block}.task-item p,.task-row p{color:var(--text-muted);margin:4px 0 0;font-size:.82rem}.task-row{border:1px solid var(--border);border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;padding:12px}.task-row button{border:1px solid var(--border);min-height:38px;color:var(--brand-strong);background:var(--surface);font:inherit;cursor:pointer;border-radius:8px;align-items:center;gap:4px;font-weight:800;display:inline-flex}.status-dot{background:var(--text-muted);border-radius:999px;width:10px;height:10px;margin-top:5px}.status-dot.risk{background:var(--risk)}.status-dot.warning{background:var(--warning)}.status-dot.success{background:var(--success)}.status-dot.neutral{background:var(--brand)}.activity-list{color:var(--text);gap:10px;margin:0;padding-left:22px;display:grid}.activity-list li{padding-left:2px;font-size:.88rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:820px}th,td{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;padding:14px 12px}th{color:var(--text-muted);text-transform:uppercase;font-size:.78rem}td{color:var(--text);font-size:.9rem}td:first-child,td:nth-child(2){color:var(--text-strong);font-weight:800}.finance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.finance-card,.chart-panel{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;padding:16px}.finance-card svg{color:var(--brand-strong)}.chart-panel{grid-column:1/-1}.chart-panel h3{color:var(--text-strong);margin:0 0 14px;font-size:1rem}.bar-row{color:var(--text);grid-template-columns:110px minmax(0,1fr) 52px;align-items:center;gap:12px;margin-top:10px;font-size:.88rem;display:grid}.bar-row div{background:#e8ece8;border-radius:999px;height:10px;overflow:hidden}.bar-row i{border-radius:inherit;background:var(--accent);height:100%;display:block}.bar-row strong{color:var(--text-strong);font-size:.84rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #116b6238}@media (width<=1180px){.app-shell{grid-template-columns:88px minmax(0,1fr)}.sidebar{align-items:center;padding:18px 14px}.brand div:last-child,.nav-item span,.sidebar-footer{display:none}.nav-item{justify-content:center;width:50px;height:50px;padding:0}.content-grid{grid-template-columns:1fr}.side-stack{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.workspace{padding:18px}.topbar{flex-direction:column;align-items:stretch}.topbar-actions,.search-field{width:100%}.topbar-actions{flex-wrap:wrap}.logout-button{flex:128px;justify-content:center}.quick-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.side-stack,.finance-grid{grid-template-columns:1fr}}@media (width<=640px){.login-shell{padding:14px}.login-panel{padding:20px}.app-shell{grid-template-columns:1fr}.sidebar{align-items:stretch;gap:14px;height:auto;padding:14px;position:static}.brand div:last-child,.nav-item span{display:block}.nav-list{grid-template-columns:repeat(5,minmax(52px,1fr))}.nav-item{flex-direction:column;justify-content:center;gap:4px;width:auto;height:auto;padding:8px 4px;font-size:.74rem}.workspace{padding:14px}.quick-stats{grid-template-columns:1fr}.panel-heading{flex-direction:column;align-items:stretch}.filter-row{box-sizing:border-box;width:100%}.form-pair{grid-template-columns:1fr}.pipeline-board{grid-template-columns:repeat(5,78vw)}.bar-row{grid-template-columns:1fr;gap:6px}}
