:root{--brand-primary:#0877d1;--brand-accent:#25a9e8;--navy:#071426;--navy-2:#0b1c33;--ink:#11233d;--muted:#617086;--line:#dce5ef;--surface:#fff;--canvas:#f4f7fb;--blue:var(--brand-primary);--blue-light:color-mix(in srgb,var(--brand-primary) 10%,white);--cyan:var(--brand-accent);--green:#13a879;--red:#e24b5b;--violet:#7257d9;--shadow:0 18px 50px rgba(12,35,65,.10);--radius:18px}
*{box-sizing:border-box}html{font-size:16px;scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,"SF Pro Display","Segoe UI",system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}.app-container{max-width:1240px}a{text-decoration:none}.skip-link{position:fixed;left:1rem;top:-4rem;z-index:9999;background:#fff;padding:.8rem 1.2rem;border-radius:8px;color:var(--navy)}.skip-link:focus{top:1rem}.app-header{height:76px;background:rgba(7,20,38,.97);border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;z-index:1000;backdrop-filter:blur(18px)}.app-header .navbar{height:100%;padding:0}.brand{display:flex;align-items:center;gap:11px;color:#fff}.brand:hover{color:#fff}.brand-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:linear-gradient(145deg,#24a9ed,#0874d0);box-shadow:0 8px 20px rgba(0,132,214,.3)}.brand-mark svg{width:26px;fill:#fff}.brand>span:last-child{display:flex;flex-direction:column;line-height:1.1}.brand strong{font-size:.94rem;letter-spacing:-.01em}.brand small{font-size:.62rem;letter-spacing:.13em;text-transform:uppercase;color:#8ea2b9;margin-top:4px}.app-nav{gap:6px}.app-nav .nav-link{color:#9cafc5!important;font-weight:600;font-size:.86rem;padding:.65rem .85rem!important;border-radius:8px}.app-nav .nav-link:hover,.app-nav .nav-link:focus{color:#fff!important;background:rgba(255,255,255,.06)}.account-nav{display:flex;align-items:center;gap:8px}.account-chip{display:flex;align-items:center;gap:9px;color:#fff;padding:5px 7px;border-radius:10px}.account-chip:hover{background:rgba(255,255,255,.06);color:#fff}.account-avatar{display:grid;place-items:center;width:32px;height:32px;background:#17314f;border:1px solid #284766;border-radius:9px;font-size:.75rem}.account-copy{display:flex;flex-direction:column;max-width:135px}.account-copy small{font-size:.58rem;color:#8298b1;text-transform:uppercase;letter-spacing:.1em}.account-copy strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-button{width:34px;height:34px;border:0;background:transparent;color:#8195aa;border-radius:8px;display:grid;place-items:center}.icon-button:hover{background:rgba(255,255,255,.07);color:#fff}.icon-button svg{width:18px;fill:none;stroke:currentColor;stroke-width:1.8}.app-toggler{border:0;padding:8px}.app-toggler span{display:block;width:22px;height:2px;background:#fff;margin:4px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;padding:.72rem 1.05rem;font-size:.83rem;font-weight:700;border:1px solid transparent;transition:.2s ease}.button:hover{transform:translateY(-1px)}.button-primary{background:linear-gradient(135deg,#118bd8,#0872c8);color:#fff;box-shadow:0 9px 22px rgba(4,115,196,.22)}.button-primary:hover{color:#fff;box-shadow:0 12px 26px rgba(4,115,196,.3)}.button-secondary{background:#fff;border-color:#d6e1ed;color:var(--ink)}.button-secondary:hover{color:var(--blue);border-color:#9ec9e9}.button-ghost{color:#a8b7c8}.button-ghost:hover{color:#fff;background:rgba(255,255,255,.05)}.button-sm{padding:.58rem .9rem}.button-lg{padding:.9rem 1.25rem;border-radius:11px}.app-main{min-height:calc(100vh - 146px)}
.hero-section{position:relative;overflow:hidden;background:linear-gradient(125deg,#071426 0%,#0b1f39 60%,#0b263f 100%);color:#fff;padding:96px 0 88px}.hero-section:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to right,transparent,black)}.hero-glow{position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}.hero-glow-one{width:650px;height:650px;right:-220px;top:-260px;background:radial-gradient(circle,rgba(9,128,209,.18),transparent 68%)}.hero-glow-two{width:420px;height:420px;left:-210px;bottom:-260px;background:radial-gradient(circle,rgba(83,73,194,.15),transparent 68%)}.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.03fr .97fr;gap:78px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:9px;color:#6fc7f4;text-transform:uppercase;letter-spacing:.14em;font-size:.68rem;font-weight:800}.status-dot{width:7px;height:7px;border-radius:50%;background:#25d49a;box-shadow:0 0 0 4px rgba(37,212,154,.11);display:inline-block}.hero-copy h1{font-size:clamp(3.2rem,5.5vw,5.2rem);line-height:.98;letter-spacing:-.055em;font-weight:750;margin:25px 0 25px;max-width:680px}.hero-copy h1 span{display:block;background:linear-gradient(90deg,#39b5f2,#79d8ff);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-lead{font-size:1.08rem;line-height:1.75;color:#a9b9ca;max-width:620px}.hero-actions{display:flex;gap:12px;margin:35px 0 30px}.trust-row{display:flex;flex-wrap:wrap;gap:18px;color:#7f94aa;font-size:.72rem}.trust-row span{display:flex;align-items:center;gap:5px}.hero-console{border:1px solid rgba(137,181,215,.2);border-radius:17px;background:rgba(5,17,31,.72);box-shadow:0 35px 90px rgba(0,0,0,.4),inset 0 1px rgba(255,255,255,.04);overflow:hidden;transform:perspective(1200px) rotateY(-2deg)}.console-top{height:45px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;padding:0 17px;color:#6e849b}.console-top>span{display:flex;gap:5px}.console-top i{width:7px;height:7px;border-radius:50%;background:#2b3e52}.console-top small{font-size:.57rem;letter-spacing:.15em}.console-top strong{font-size:.55rem;color:#3bd3a2;letter-spacing:.1em}.console-body{padding:20px}.case-heading{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.08)}.sf-cloud{display:grid;place-items:center;width:39px;height:32px;background:#168bd1;border-radius:16px;color:#fff;font-size:.6rem;font-weight:800}.case-heading div{display:flex;flex-direction:column}.case-heading small{font-size:.55rem;color:#6e849b;letter-spacing:.12em}.case-heading strong{font-size:.78rem;margin-top:4px}.severity{font-size:.52rem;letter-spacing:.1em;font-weight:800;color:#ff8491;background:rgba(226,75,91,.12);border:1px solid rgba(226,75,91,.2);border-radius:5px;padding:4px 6px}.agent-step{display:grid;grid-template-columns:28px 1fr auto;gap:11px;padding:15px 4px;border-bottom:1px solid rgba(255,255,255,.055);align-items:start;color:#62778e}.agent-step>span{font:600 .58rem ui-monospace,monospace;padding-top:2px}.agent-step>div{display:flex;flex-direction:column}.agent-step strong{font-size:.72rem;color:#8295aa}.agent-step small{font-size:.6rem;margin-top:4px}.agent-step b{font-size:.6rem;color:#3bd3a2}.agent-step.done strong{color:#c1ccda}.agent-step.active{background:linear-gradient(90deg,rgba(22,139,209,.08),transparent);margin:0 -8px;padding-left:12px;padding-right:12px}.agent-step.active>span,.agent-step.active b{color:#4bbcf6}.agent-step.active strong{color:#fff}.progress-track{height:3px;background:#1b344a;border-radius:2px;margin-top:10px;width:100%}.progress-track i{display:block;height:100%;width:68%;background:linear-gradient(90deg,#1388d0,#44c4f7);box-shadow:0 0 9px #159ee5}.capabilities-section{background:#fff;padding:92px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:42px}.section-heading>div{max-width:700px}.section-kicker{display:block;color:var(--blue);font-size:.65rem;letter-spacing:.15em;font-weight:800;margin-bottom:11px}.section-heading h2{font-size:2.35rem;line-height:1.14;letter-spacing:-.035em;margin:0;font-weight:730}.section-heading>p{max-width:390px;color:var(--muted);font-size:.9rem;line-height:1.7;margin:0}.capability-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.capability-card{border:1px solid var(--line);border-radius:var(--radius);padding:30px;min-height:295px;display:flex;flex-direction:column;transition:.25s;background:#fff}.capability-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#bfd9ee}.capability-card.featured{background:linear-gradient(145deg,#f9fbff,#f7f5ff);border-color:#ddd8f4}.card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;font-size:1.2rem;margin-bottom:25px}.icon-blue{background:#e9f5ff;color:#0877d1}.icon-violet{background:#eeeafb;color:#7257d9}.icon-green{background:#e8f8f3;color:#13a879}.capability-card>small{font-size:.57rem;letter-spacing:.13em;color:#8492a3;font-weight:800}.capability-card h3{font-size:1.25rem;letter-spacing:-.02em;margin:10px 0}.capability-card p{color:var(--muted);font-size:.82rem;line-height:1.7}.text-link{margin-top:auto;color:var(--blue);font-size:.75rem;font-weight:700}.text-link b{margin-left:4px}.system-strip{background:#eef4f9;border-top:1px solid #dce7ef;padding:29px 0}.system-grid{display:grid;grid-template-columns:1.5fr 1fr 1.25fr 1fr;align-items:center}.system-grid>div,.system-grid>a{min-height:48px;padding:0 28px;border-right:1px solid #d4e0ea;display:flex;flex-direction:column;justify-content:center;color:var(--ink)}.system-grid>div:first-child{padding-left:0;flex-direction:row;align-items:center;justify-content:flex-start;gap:13px}.system-grid>*:last-child{border:0}.system-grid small{font-size:.55rem;letter-spacing:.13em;color:#8494a7;font-weight:800}.system-grid strong{font-size:.76rem;margin-top:4px}.system-grid a:hover strong{color:var(--blue)}.pulse-ring{width:34px;height:34px;border:1px solid #a9ded0;background:#e4f8f2;border-radius:50%;display:grid;place-items:center}.pulse-ring i{width:8px;height:8px;background:#1abb87;border-radius:50%;box-shadow:0 0 0 5px rgba(26,187,135,.12)}
.admin-shell{padding:55px 0 80px;background:linear-gradient(180deg,#f2f6fa,#f7f9fc)}.page-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:35px}.page-header h1{font-size:2.55rem;letter-spacing:-.045em;margin:12px 0 7px}.page-header p{color:var(--muted);margin:0}.page-actions{display:flex;gap:9px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.metric-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:21px 23px;box-shadow:0 4px 14px rgba(14,38,68,.035)}.metric-card.accent{background:linear-gradient(145deg,#fff,#f8f6ff);border-color:#ddd8f2}.metric-card>div{display:flex;align-items:center;gap:9px}.metric-card small{font-size:.58rem;letter-spacing:.12em;color:#748398;font-weight:800}.metric-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;font-size:.75rem;font-weight:800}.metric-icon.blue{background:#e8f4fd;color:var(--blue)}.metric-icon.green{background:#e7f8f2;color:var(--green)}.metric-icon.red{background:#feedef;color:var(--red)}.metric-icon.violet{background:#efebfb;color:var(--violet)}.metric-card>strong{display:block;font-size:2.2rem;letter-spacing:-.05em;margin:16px 0 5px}.metric-card p{margin:0;color:#8492a4;font-size:.67rem}.metric-card p .status-dot{width:5px;height:5px;margin-right:3px}.operations-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 6px 22px rgba(14,38,68,.04)}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 26px;border-bottom:1px solid #e6edf4}.panel-heading .section-kicker{margin-bottom:5px}.panel-heading h2{font-size:1.2rem;margin:0;letter-spacing:-.02em}.live-badge{font-size:.52rem;letter-spacing:.12em;color:#168b68;background:#e8f8f2;border:1px solid #cef0e4;border-radius:15px;padding:6px 9px}.live-badge i{display:inline-block;width:5px;height:5px;background:#1cc28c;border-radius:50%;margin-right:4px}.empty-state{text-align:center;padding:48px 30px 53px}.empty-state>span{display:grid;place-items:center;margin:0 auto 15px;width:48px;height:48px;border-radius:14px;background:#edf6fd;color:var(--blue);font-size:1.4rem}.empty-state h3{font-size:1rem;margin:0 0 7px}.empty-state p{font-size:.74rem;color:#8492a4;margin:0 auto 16px;max-width:370px}.empty-state code{font-size:.65rem;color:#45627e;background:#f1f5f9;border-radius:6px;padding:6px 9px}.execution-list{padding:5px 25px}.execution-row{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:13px;padding:15px 2px;border-bottom:1px solid #edf1f5}.execution-row:last-child{border:0}.execution-status{width:8px;height:8px;border-radius:50%}.execution-status.success{background:var(--green)}.execution-status.danger{background:var(--red)}.execution-status.running{background:var(--blue);box-shadow:0 0 0 4px #e5f3fc}.execution-main{display:flex;flex-direction:column}.execution-main strong{font-size:.78rem}.execution-main span,.execution-meta small{font-size:.62rem;color:#8997a8}.execution-meta{text-align:right;display:flex;align-items:flex-end;flex-direction:column;gap:4px}.status-pill{font-size:.52rem;text-transform:uppercase;font-weight:800;padding:3px 6px;border-radius:9px}.status-pill.success{color:#13805f;background:#e5f6f0}.status-pill.danger{color:#c53c4a;background:#fdecf0}.status-pill.running{color:#0872c8;background:#e8f4fd}.readiness-panel{padding-bottom:10px}.readiness-item{padding:22px 25px;border-bottom:1px solid #edf1f5}.readiness-item:last-child{border:0}.readiness-title{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}.integration-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-size:.65rem;font-weight:800}.integration-icon.sf{background:#e5f4fd;color:#0877d1}.integration-icon.git{background:#edf0f4;color:#3f5062;font-size:1.1rem}.integration-icon.ai{background:#efebfb;color:#7257d9;font-size:1rem}.readiness-title>div{display:flex;flex-direction:column}.readiness-title strong{font-size:.76rem}.readiness-title small{font-size:.6rem;color:#8996a7;margin-top:3px}.readiness-title>b{font-size:.72rem}.health-track{height:4px;background:#eaf0f5;border-radius:3px;margin:13px 0 0 50px;overflow:hidden}.health-track i{display:block;height:100%;background:linear-gradient(90deg,#13a879,#25c89a);border-radius:3px}.healthy-text{color:var(--green)}.muted-text{color:#8a98a8}.configuration-section{margin-top:54px}.section-heading.compact{margin-bottom:24px}.section-heading.compact h2{font-size:1.7rem}.config-flow{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.config-flow article{position:relative;padding:27px 24px;display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:center;border-right:1px solid #e6edf4}.config-flow article:last-child{border:0}.config-number{position:absolute;right:13px;top:10px;color:#d8e1ea;font:700 .58rem ui-monospace,monospace}.config-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:10px;background:#edf5fb;color:#0877d1;font-size:1.05rem}.config-flow small{font-size:.51rem;color:#8998aa;letter-spacing:.12em;font-weight:800}.config-flow h3{font-size:.82rem;margin:3px 0}.config-flow p{font-size:.64rem;color:#8492a4;margin:0}.config-arrow{position:absolute;right:-9px;z-index:2;width:18px;height:18px;background:#fff;border:1px solid #dbe5ed;border-radius:50%;display:grid;place-items:center;font-size:.55rem;color:#7f91a4}.security-note{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin-top:14px;background:#eaf5fd;border:1px solid #cfe6f5;border-radius:12px;padding:16px 19px;color:#174b70}.security-note>span{font-size:1.1rem}.security-note strong{font-size:.73rem}.security-note p{font-size:.64rem;margin:3px 0 0;color:#54758c}.security-note a{font-size:.67rem;font-weight:700;color:#0877d1}.app-footer{background:#071426;color:#71869d;min-height:70px;display:flex;align-items:center}.footer-content{display:flex;align-items:center;justify-content:space-between;font-size:.67rem}.footer-brand{display:flex;gap:8px;align-items:center;color:#9dafc1}.app-footer nav{display:flex;gap:20px}.app-footer a{color:#8195aa}.app-footer a:hover{color:#fff}
/* Identity UI and standard Razor forms */
.app-main>.container,.app-main>div.container{padding-top:55px;padding-bottom:70px}/* Havia aqui um teto global de 560px em todo form dentro de .app-main, com uma lista de exceções
   (.account-nav, .premium-modal) e mais três overrides !important espalhados (.setup-body form,
   .password-card form, .profile-form). Todo form novo de largura cheia precisava lembrar de entrar
   nessa lista - e as telas de Edit nunca entraram, então o formulário ficava em 560px dentro de um
   .detail-card de 1240px, deixando metade do card vazia. Não sobrou nenhum form que queira o teto:
   quem define a medida agora é o container (.detail-card / .modal-body) e o ritmo de colunas do
   .form-grid. Se algum form solto precisar de medida menor, o limite vai nele, não aqui. */.app-main .form-control{border:1px solid #cedae6;border-radius:10px;padding:.75rem .85rem}.app-main .form-control:focus{border-color:#168bd1;box-shadow:0 0 0 4px rgba(22,139,209,.1)}.app-main .btn-primary{background:#0877d1;border-color:#0877d1;border-radius:10px;padding:.72rem 1rem;font-weight:700}.app-main h1,.app-main h2,.app-main h3{color:var(--ink)}
.app-main>h1{max-width:920px;margin:58px auto 22px;padding:0 24px;font-size:2.35rem;letter-spacing:-.04em}.app-main>.row{max-width:920px;margin:0 auto 70px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:32px 24px}.app-main>.row>.col-md-4{width:58%;padding:0 30px 0 10px}.app-main>.row>.col-md-6{width:42%;padding:0 10px 0 30px;border-left:1px solid var(--line)}.app-main>.row section>h2,.app-main>.row section>h3{font-size:1.05rem;letter-spacing:-.02em}.app-main>.row section p{font-size:.72rem;color:var(--muted)}.app-main>.row section a{color:var(--blue);font-weight:600}.app-main>.row hr{border-color:var(--line);margin:18px 0 24px}
@media(max-width:991px){.app-header{height:auto;min-height:70px}.navbar-collapse{padding:16px 0 20px}.app-nav{margin:12px 0!important}.account-nav{border-top:1px solid rgba(255,255,255,.08);padding-top:14px}.hero-section{padding:70px 0}.hero-grid{grid-template-columns:1fr;gap:50px}.hero-copy{max-width:720px}.hero-console{max-width:650px}.capability-grid{grid-template-columns:1fr}.capability-card{min-height:230px}.system-grid{grid-template-columns:1fr 1fr;gap:20px}.system-grid>*{border:0!important;padding:0!important}.metric-grid{grid-template-columns:1fr 1fr}.operations-grid{grid-template-columns:1fr}.config-flow{grid-template-columns:1fr 1fr}.config-flow article:nth-child(2){border-right:0}.config-flow article{border-bottom:1px solid #e6edf4}.config-arrow{display:none}.page-header{align-items:flex-start;gap:22px}}
@media(max-width:767px){.hero-section{padding:55px 0}.hero-copy h1{font-size:3.05rem}.hero-actions,.trust-row,.page-header,.section-heading,.footer-content{align-items:stretch;flex-direction:column}.hero-actions .button{width:100%}.hero-console{transform:none}.capabilities-section{padding:65px 0}.section-heading{gap:14px}.section-heading h2{font-size:1.8rem}.system-grid,.metric-grid,.config-flow{grid-template-columns:1fr}.system-grid{gap:17px}.system-grid>*{min-height:auto!important}.page-header{display:flex}.page-actions{width:100%}.page-actions .button{flex:1}.admin-shell{padding:38px 0 55px}.page-header h1{font-size:2rem}.config-flow article{border-right:0}.security-note{grid-template-columns:auto 1fr}.security-note a{grid-column:2}.footer-content{gap:10px;padding-top:18px;padding-bottom:18px}.app-footer nav{flex-wrap:wrap}.account-copy{display:none}.app-main>.row{margin-left:15px;margin-right:15px;padding:24px 16px}.app-main>.row>.col-md-4,.app-main>.row>.col-md-6{width:100%;padding:10px;border:0}.app-main>.row>.col-md-6{margin-top:25px;padding-top:25px;border-top:1px solid var(--line)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Application shell */
:root{--sidebar-width:272px;--sidebar-bg:#f7f9fc;--sidebar-hover:#edf2f7;--sidebar-active:color-mix(in srgb,var(--brand-primary) 12%,white)}
body{background:#fff}
body.sidebar-open{overflow:hidden}
.app-shell{display:flex;min-height:100vh}
.app-sidebar{position:fixed;inset:0 auto 0 0;z-index:1100;width:var(--sidebar-width);display:flex;flex-direction:column;background:var(--sidebar-bg);color:var(--ink);border-right:1px solid #dfe6ee;padding:14px 12px}
.sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:3px 4px 18px}
.app-sidebar .brand{min-width:0;padding:5px;color:var(--ink)}.app-sidebar .brand:hover{color:var(--brand-primary)}.app-sidebar .brand-mark,.mobile-brand .brand-mark{width:34px;height:34px;border-radius:10px;box-shadow:none}.app-sidebar .brand-mark svg,.mobile-brand .brand-mark svg{width:22px}.app-sidebar .brand strong{font-size:.88rem}.app-sidebar .brand small{color:#7b8796;font-size:.55rem}
.sidebar-close{display:none;width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#7b8796;font-size:1.65rem;line-height:1}.sidebar-close:hover{background:var(--sidebar-hover);color:var(--ink)}
.sidebar-nav{flex:1;min-height:0;overflow-y:auto;padding:4px 0 12px;scrollbar-width:thin;scrollbar-color:#c9d3df transparent}
.sidebar-label{display:block;padding:14px 11px 7px;color:#8492a4;font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.13em}.sidebar-nav>.sidebar-label:first-child{padding-top:0}
.sidebar-link{display:flex;align-items:center;gap:11px;min-height:42px;margin:2px 0;padding:9px 11px;border-radius:9px;color:#435268;font-size:.81rem;font-weight:600;transition:background .16s,color .16s}
.sidebar-link>span{display:grid;place-items:center;width:19px;flex:0 0 19px;color:#75849a;font-size:1rem}.sidebar-link:hover,.sidebar-link:focus{background:var(--sidebar-hover);color:var(--ink)}.sidebar-link-primary{margin-bottom:7px;background:var(--sidebar-active);color:var(--brand-primary)}.sidebar-link-primary>span{color:var(--brand-primary)}.sidebar-separator{height:1px;background:#dfe6ee;margin:10px 8px 2px}
.sidebar-footer{flex:0 0 auto;border-top:1px solid #dfe6ee;padding-top:10px}
.account-nav{display:flex;align-items:center;width:100%;gap:5px}.account-chip{flex:1;min-width:0;padding:7px 9px;color:var(--ink)}.account-chip:hover{background:var(--sidebar-hover);color:var(--ink)}.account-avatar{width:35px;height:35px;flex:0 0 35px;border:1px solid color-mix(in srgb,var(--brand-primary) 28%,#dfe6ee);border-radius:50%;background:linear-gradient(145deg,var(--brand-accent),var(--brand-primary));color:#fff}.account-copy{max-width:155px}.account-copy small{color:#8492a4}.account-copy strong{font-size:.68rem}.account-nav .icon-button{flex:0 0 34px;color:#75849a}.account-nav .icon-button:hover{background:var(--sidebar-hover);color:var(--ink)}.sidebar-login{width:100%}
.account-menu{position:relative;width:100%}.account-menu>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.account-menu>summary::-webkit-details-marker{display:none}.account-caret{margin-left:auto;color:#8492a4;font-size:.67rem;transition:transform .18s}.account-menu[open] .account-caret{transform:rotate(180deg)}.account-menu-panel{position:absolute;left:0;right:0;bottom:calc(100% + 9px);z-index:20;padding:6px;border:1px solid #dfe6ee;border-radius:12px;background:#fff;box-shadow:0 18px 45px rgba(22,42,68,.16)}.account-menu-panel a,.account-menu-panel button{display:flex;align-items:center;gap:10px;width:100%;padding:9px;border:0;border-radius:8px;background:transparent;color:#435268;text-align:left}.account-menu-panel a:hover,.account-menu-panel button:hover{background:var(--sidebar-hover);color:var(--ink)}.account-menu-panel>a>span:first-child,.account-menu-panel button>span:first-child{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--sidebar-active);color:var(--brand-primary)}.account-menu-panel button>span:first-child{background:#fff0f2;color:#d04456}.account-menu-panel a>span:last-child,.account-menu-panel button>span:last-child{display:flex;flex-direction:column}.account-menu-panel strong{font-size:.67rem}.account-menu-panel small{margin-top:2px;color:#8492a4;font-size:.54rem}.account-menu-panel form{margin:2px 0 0;border-top:1px solid #e6ebf1;padding-top:2px}
.app-workspace{display:flex;flex-direction:column;width:calc(100% - var(--sidebar-width));min-width:0;min-height:100vh;margin-left:var(--sidebar-width);background:var(--canvas)}
.app-main{flex:1;min-height:0}.mobile-header{display:none}.sidebar-backdrop{display:none}.app-footer{min-height:52px;padding:0 28px;background:#fff;border-top:1px solid var(--line);color:#8692a0;justify-content:space-between;font-size:.62rem}.app-footer nav{display:flex;gap:18px}.app-footer a{color:#68788b}

@media(max-width:991px){
 .app-sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:20px 0 60px rgba(0,0,0,.28)}
 body.sidebar-open .app-sidebar{transform:translateX(0)}
 .sidebar-close{display:block}.app-workspace{width:100%;margin-left:0}
 .mobile-header{position:sticky;top:0;z-index:1000;height:62px;display:flex;align-items:center;gap:13px;padding:0 18px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(16px)}
 .mobile-menu-button{display:flex;flex-direction:column;gap:4px;justify-content:center;width:38px;height:38px;padding:9px;border:0;border-radius:9px;background:transparent}.mobile-menu-button:hover{background:#edf1f5}.mobile-menu-button span{display:block;width:19px;height:1.5px;background:var(--ink)}
 .mobile-brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:.84rem}.mobile-brand:hover{color:var(--ink)}.mobile-brand .brand-mark{width:30px;height:30px}.mobile-brand .brand-mark svg{width:20px}
 .sidebar-backdrop{position:fixed;inset:0;z-index:1050;border:0;background:rgba(0,0,0,.48)}body.sidebar-open .sidebar-backdrop{display:block}
 .app-footer{padding:0 18px}
}
@media(max-width:600px){.app-footer{align-items:flex-start;flex-direction:column;justify-content:center;gap:4px}.app-footer nav{gap:12px}}

/* Canonical Agent identity */
.agent-icon-image{display:block;width:100%;height:100%;border-radius:0;object-fit:contain}.agent-icon-frame{overflow:hidden;padding:0!important;border:0;background:transparent!important;box-shadow:none}.brand-mark{overflow:hidden;background:transparent;box-shadow:none}.brand-mark svg{display:none}.sidebar-link .agent-icon-image{width:19px;height:19px;border-radius:0}

/* Tenant white-label identity */
.brand-mark{background:transparent;box-shadow:none}
.button-primary,.app-main .btn-primary{background:linear-gradient(135deg,var(--brand-accent),var(--brand-primary));border-color:var(--brand-primary);box-shadow:0 9px 22px color-mix(in srgb,var(--brand-primary) 24%,transparent)}
.button-primary:hover{box-shadow:0 12px 26px color-mix(in srgb,var(--brand-primary) 32%,transparent)}
.sidebar-link-primary>span,.account-menu-panel>a>span:first-child{color:var(--brand-accent)}
.tenant-branding-section{margin-top:32px;padding-top:28px;border-top:1px solid var(--line)}.tenant-branding-section h2{margin:5px 0 4px;font-size:1.25rem}.tenant-branding-section>div:first-child>p{margin:0;color:var(--muted);font-size:.78rem}.tenant-branding-editor{display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px;margin-top:24px}.tenant-icon-editor{display:flex;flex-direction:column;gap:14px}.tenant-icon-preview{display:grid;width:112px;height:112px;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--preview-primary,var(--brand-primary)) 30%,#dce5ef);border-radius:24px;background:linear-gradient(145deg,var(--preview-accent,var(--brand-accent)),var(--preview-primary,var(--brand-primary)));color:#fff;font-size:2.2rem;font-weight:800;box-shadow:0 16px 34px color-mix(in srgb,var(--preview-primary,var(--brand-primary)) 20%,transparent)}.tenant-icon-preview:has(img){border:0;background:transparent;box-shadow:none}.tenant-icon-preview img{width:100%;height:100%;object-fit:contain}.tenant-icon-editor .field input[type=file]{padding:.58rem;font-size:.68rem}.check-field.compact{padding:0;border:0}.tenant-theme-fields{align-content:start}.color-field>span:nth-child(2){display:flex;gap:9px}.color-field input[type=color]{width:48px;min-width:48px;height:43px;padding:3px;cursor:pointer}.color-field .color-hex{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase}.tenant-branding-summary{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:20px;padding:24px}.tenant-branding-preview{display:flex;align-items:center;gap:16px}.tenant-branding-preview>.tenant-icon-preview{width:64px;height:64px;border-radius:16px;font-size:1.3rem}.tenant-branding-preview>span:last-child{display:flex;flex-direction:column}.tenant-branding-preview small,.tenant-color-list small{color:var(--muted);font-size:.62rem}.tenant-branding-preview strong{font-size:1rem}.tenant-color-list{display:flex;gap:28px}.tenant-color-list>span{display:grid;grid-template-columns:22px auto;column-gap:8px;align-items:center}.tenant-color-list i{grid-row:1/3;width:22px;height:22px;border:1px solid rgba(0,0,0,.08);border-radius:7px}.tenant-color-list strong{font-size:.72rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:720px){.tenant-branding-editor{grid-template-columns:1fr}.tenant-branding-summary{align-items:flex-start;flex-direction:column}.tenant-color-list{flex-wrap:wrap}}
/* Rótulo de botão nunca quebra em duas linhas: como .button é inline-flex, ao ser espremido por
   um irmão flexível (busca, campo, outro botão) ele encolhia e quebrava o texto no meio. */
.button{white-space:nowrap}

/* Transição entre telas: barra fina no topo + esmaecida do conteúdo. Não bloqueia a página antiga,
   que segue utilizável até a próxima pintura. Exibida por site.js só após 180ms de navegação. */
.navigation-progress{position:fixed;inset:0 0 auto;z-index:2300;height:3px;opacity:0;pointer-events:none;transition:opacity .15s ease}
.navigation-progress.is-active{opacity:1}
.navigation-progress i{display:block;width:100%;height:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--brand-accent),var(--brand-primary));box-shadow:0 0 12px color-mix(in srgb,var(--brand-primary) 45%,transparent)}
.navigation-progress.is-active i{animation:navigation-progress 1.4s cubic-bezier(.32,.78,.4,1) infinite}
/* Progresso indeterminado: acelera no início e desacelera perto do fim, nunca "completa" sozinho —
   a barra só some quando a próxima página realmente pinta. */
@keyframes navigation-progress{0%{transform:scaleX(0)}60%{transform:scaleX(.72)}100%{transform:scaleX(.94);opacity:.4}}
body.navigating{cursor:progress}
body.navigating #main-content{opacity:.6;transition:opacity .2s ease}
@media(prefers-reduced-motion:reduce){.navigation-progress.is-active i{animation:none;transform:scaleX(.45)}body.navigating #main-content{opacity:1}}

/* Superfície branca única em todo o app: o canvas cinza dava um degrau de cor entre o fundo e os
   cards. Sem ele, os cards se apoiam só na borda de 1px — as sombras abaixo foram calibradas para
   elevar sobre cinza e sobre branco leem como borrão, não como elevação. */
.app-workspace,.admin-shell,.record-page{background:#fff}
.metric-card,.panel,.provider-usage-card,.execution-facts,.execution-metrics{box-shadow:none}

.account-avatar img,.profile-avatar-preview img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.profile-form{padding:28px}.profile-avatar-preview{display:grid;place-items:center;width:96px;height:96px;margin-bottom:24px;overflow:hidden;border:3px solid #fff;border-radius:50%;background:linear-gradient(145deg,var(--brand-accent),var(--brand-primary));color:#fff;font-size:2rem;font-weight:800;box-shadow:0 8px 24px rgba(22,42,68,.16)}.profile-page .field input[readonly]{background:#f3f6f9;color:#657386;cursor:not-allowed}

/* Provider subscription limits */
.provider-usage-section{margin-top:42px}.provider-usage-section.is-primary{margin-top:0;margin-bottom:26px}
/* Semáforo do saldo restante (regra única em AiProviderUsageWindow.Severity): <20% crítico, <40% atenção. */
.provider-window.severity-critical b{color:#c8362b}.provider-window.severity-warning b{color:#a5751a}.provider-window.severity-healthy b{color:#168b68}
.provider-window.severity-critical progress{accent-color:#d4402f}.provider-window.severity-warning progress{accent-color:#d69a1c}.provider-window.severity-healthy progress{accent-color:var(--green)}
.provider-window.severity-critical progress::-webkit-progress-value{background:linear-gradient(90deg,#b52f24,#e0503d)}
.provider-window.severity-warning progress::-webkit-progress-value{background:linear-gradient(90deg,#c88711,#efb032)}
.provider-window.severity-healthy progress::-webkit-progress-value{background:linear-gradient(90deg,#13a879,#25c89a)}
.provider-window.severity-critical progress::-moz-progress-bar{background:linear-gradient(90deg,#b52f24,#e0503d)}
.provider-window.severity-warning progress::-moz-progress-bar{background:linear-gradient(90deg,#c88711,#efb032)}
.provider-window.severity-healthy progress::-moz-progress-bar{background:linear-gradient(90deg,#13a879,#25c89a)}.provider-usage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.provider-usage-card{padding:22px 24px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 6px 22px rgba(14,38,68,.04)}.provider-usage-card>header{display:flex;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #edf1f5}.provider-usage-card h3{margin:0;font-size:.88rem}.provider-usage-card header p{margin:3px 0 0;color:#8996a7;font-size:.62rem}.provider-mark{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:11px;font-size:.58rem;font-weight:850}.provider-mark.codex{background:#e8f4fd;color:#0872c8}.provider-mark.claude{background:#fff0e8;color:#b7562e}.provider-window-list{display:grid;gap:18px;padding-top:18px}.provider-window>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.provider-window strong{font-size:.7rem}.provider-window b{color:#168b68;font-size:.68rem}.provider-window progress{display:block;width:100%;height:7px;margin:9px 0 6px;border:0;border-radius:8px;overflow:hidden;background:#eaf0f5;accent-color:var(--green)}.provider-window progress::-webkit-progress-bar{background:#eaf0f5;border-radius:8px}.provider-window progress::-webkit-progress-value{background:linear-gradient(90deg,#13a879,#25c89a);border-radius:8px}.provider-window progress::-moz-progress-bar{background:linear-gradient(90deg,#13a879,#25c89a);border-radius:8px}.provider-window small{display:block;color:#8996a7;font-size:.58rem}.provider-usage-unavailable{padding-top:18px}.provider-usage-unavailable strong{color:#7d8998;font-size:.7rem}.provider-usage-unavailable p{margin:5px 0 0;color:#8996a7;font-size:.62rem;line-height:1.5}.provider-usage-empty{display:flex;flex-direction:column;gap:5px;padding:26px;border:1px dashed #cfdbe7;border-radius:14px;background:#f9fbfd}.provider-usage-empty strong{font-size:.78rem}.provider-usage-empty span{color:#8492a4;font-size:.67rem}@media(max-width:760px){.provider-usage-grid{grid-template-columns:1fr}}
