:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#18334e;background:#f5f8fc;--line:#e0e9f2;--blue:#1975b6;--mint:#06b2a9;--muted:#718599}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}[hidden]{display:none!important}a{color:var(--blue)}.auth-screen{min-height:100vh;display:grid;grid-template-columns:43% 57%}.auth-brand{background:linear-gradient(145deg,#0d2543,#164b71);color:white;padding:65px 9%;display:flex;flex-direction:column;justify-content:center}.auth-brand h1{font-size:46px;letter-spacing:-2px;margin:18px 0 2px}.auth-brand h2{font-size:21px;color:#4cdece;margin:0 0 30px}.auth-brand p{max-width:410px;color:#bfd4e4;font-size:20px;line-height:1.6}.auth-brand small{margin-top:50px;letter-spacing:2px;color:#83adc7}.logo{display:grid;place-items:center;background:linear-gradient(135deg,#06b6c8,#3875cf);width:60px;height:60px;border-radius:16px;font-size:23px;font-weight:900;box-shadow:0 8px 26px #041e3533}.auth-content{display:grid;place-items:center;padding:28px}.auth-card{width:min(430px,100%);background:white;border:1px solid var(--line);border-radius:18px;padding:36px;box-shadow:0 20px 50px #1b426014}.auth-card h2{font-size:27px;letter-spacing:-.8px;margin:8px 0}.auth-card>p{color:var(--muted);line-height:1.65}.auth-card small{display:block;font-size:11px;color:#9baaba;margin-top:22px;line-height:1.7}.eyebrow{letter-spacing:1.5px;font-size:10px;font-weight:850;color:#1c8bb2}.btn{padding:11px 16px;border:0;border-radius:10px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary{background:linear-gradient(110deg,#087abb,#2772c4);color:white}.secondary{background:#eef4f9;color:#416580}.mini{padding:9px 12px;font-size:12px}.block{width:100%;margin-top:22px}label{display:block;font-weight:680;color:#46617b;font-size:12px;margin-top:16px}input,select,textarea{margin-top:8px;display:block;width:100%;border:1px solid #d4e0ed;border-radius:9px;padding:12px;background:white;outline:none;color:#203750}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #0789cd1c}textarea{resize:vertical;min-height:85px}.qr{text-align:center;margin:18px auto}.qr img{width:205px;border:1px solid var(--line);border-radius:10px}.secret-code{font-size:12px;text-align:center;word-break:break-all;color:#647e94}.secret-code code{font-weight:800}.workspace{display:flex;min-height:100vh}.sidebar{width:257px;flex-shrink:0;background:#102945;color:#bad0e1;display:flex;flex-direction:column;padding:24px 14px;min-height:100vh}.side-brand{display:flex;align-items:center;gap:12px;margin:0 8px 31px}.side-brand .logo{width:44px;height:44px;font-size:17px;border-radius:12px}.side-brand strong{display:block;color:white;font-size:19px}.side-brand small{font-size:9px;letter-spacing:1.2px;color:#81aac6;display:block;margin-top:6px}.side-subtitle{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#759dbd;padding:14px 14px 11px;margin-top:12px}.nav{display:block;text-align:left;width:100%;border:0;background:transparent;color:#bdd3e4;padding:14px 15px;border-radius:10px;margin-bottom:3px;font-size:13px;font-weight:600}.nav:hover{color:white;background:#234b70}.nav.active{background:#206d9d;color:#fff;border-left:3px solid #58d9d4}.side-bottom{margin-top:auto;padding:20px 10px 0;border-top:1px solid #2c4965;font-size:12px;color:#e3edf5;display:flex;gap:13px;align-items:center}.side-bottom small{color:#779dbb}.dot{width:11px;height:11px;border-radius:50%;background:#12d8a2}.main{min-width:0;flex:1}.topbar{background:white;height:78px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 30px}.breadcrumb{font-size:11px;font-weight:800;color:#7990a6;letter-spacing:1.4px}.breadcrumb span{padding:0 10px;color:#becbd8}.top-right{display:flex;align-items:center;gap:11px;font-size:12px;color:#5f768b}.dev-badge{background:#e6f8f0;padding:9px 12px;border-radius:9px;color:#168263;font-size:10px;font-weight:850}.page{padding:34px;max-width:1500px;margin:auto}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:28px}.page-title h1{margin:5px 0 7px;font-size:30px;letter-spacing:-.8px}.page-title p{margin:0;color:var(--muted);line-height:1.5}.cards{display:grid;grid-template-columns:repeat(6,minmax(122px,1fr));gap:13px;margin-bottom:24px}.stat,.panel,.ticket{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 19px #14395d06}.stat{padding:18px}.stat .icon{color:#1689b8;font-size:20px}.stat strong{font-size:29px;display:block;margin:9px 0 4px}.stat small{font-size:12px;color:var(--muted)}.panel{padding:23px}.panel h3{margin:0 0 17px;font-size:16px}.split{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:18px 0}.banner{padding:16px 18px;border:1px solid #cbe7f6;background:#eaf6ff;border-radius:12px;color:#315f7d;font-size:12px;line-height:1.7;margin-bottom:24px}.banner strong{color:#136fa8}.banner.warn{background:#fff6e5;border-color:#f1dfbc}.row-between{display:flex;align-items:center;justify-content:space-between;gap:15px}.stack-bar,.progress{background:#e9eef5;border-radius:9px;overflow:hidden;display:flex;height:13px;margin:13px 0}.progress>span{height:100%;background:linear-gradient(90deg,#137fc1,#0dbeb6)}.stack-bar span{height:100%}.legend{padding:9px 0;border-bottom:1px solid #eef2f7;display:flex;justify-content:space-between;font-size:12px}.legend:last-child{border:0}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:8px}.ticket-grid{display:grid;grid-template-columns:repeat(2,minmax(290px,1fr));gap:14px}.ticket{padding:20px}.ticket h3{font-size:16px;margin:9px 0}.ticket p{font-size:12px;line-height:1.7;color:#687f95}.ticket .code{color:#167dab;font-size:10px;font-weight:850;letter-spacing:1px}.tiny{font-size:11px;color:#93a3b1}.tag{background:#eef3f6;color:#63778c;border-radius:7px;font-size:10px;font-weight:800;padding:6px 10px;display:inline-block}.tag.completed,.tag.accepted,.tag.approved{background:#e3f8ee;color:#147a5b}.tag.working{background:#e5f3fd;color:#1477ad}.tag.review{background:#fff0d4;color:#9b6b15}.tag.blocked,.tag.changes_requested{background:#ffeaed;color:#b13a53}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.kanban{display:flex;align-items:stretch;gap:12px;overflow:auto;padding-bottom:12px}.column{min-width:208px;flex:1;background:#eaf0f6;border-radius:12px;padding:12px}.column-title{font-size:12px;font-weight:800;padding:8px 3px 15px}.kanban-card{background:white;border-radius:10px;padding:14px;margin-bottom:9px}.kanban-card strong{display:block;font-size:12px;margin:8px 0}.kanban-card .btn{font-size:11px;padding:7px 10px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.pill{padding:10px 15px;border:1px solid #dae5ed;border-radius:9px;background:#fff;color:#618097;font-size:12px;font-weight:800}.pill.active{color:white;background:#1d6fa8;border-color:#1d6fa8}.empty{padding:20px;text-align:center;color:#93a4b3;border:1px dashed #d5e0ed;border-radius:11px;font-size:12px}.detail{padding:13px;background:#f6f8fb;border-radius:9px;font-size:12px;line-height:1.8;margin-top:13px}.detail b{color:#446783}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:650px;text-align:left}.table th{background:#f4f8fb;color:#7d95a7;letter-spacing:1.1px;font-size:10px;padding:13px}.table td{border-bottom:1px solid #edf1f6;padding:13px;font-size:12px;line-height:1.6;vertical-align:top}.alert{padding:12px 16px;border-radius:10px;margin:14px;background:#ebf9f0;color:#167659;font-size:12px}.alert.error{background:#fff0f1;color:#ad4451}.alert.info{background:#ebf7ff;color:#407092;margin:12px 0}.modal-cover{position:fixed;inset:0;z-index:100;background:#071c33aa;display:grid;place-items:center;padding:15px}.modal{background:white;border-radius:18px;width:min(700px,100%);max-height:93vh;overflow:auto;box-shadow:0 30px 100px #030f233e}.modal-head{padding:23px 26px 10px;display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:7px 0;font-size:24px}.close{border:0;background:#f1f5f8;color:#516d88;border-radius:9px;font-size:24px;width:38px;height:38px}.modal #modal-fields{padding:0 26px}.modal-bottom{padding:19px 26px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);margin-top:20px}.footer{color:#96a7b5;font-size:11px;padding:18px 34px}.timeline{border-left:2px solid #bbd9ea;padding-left:22px;margin-left:10px}.timeline .ticket{margin-bottom:13px}.mt{margin-top:18px}.search{max-width:390px;margin:0 0 20px}#mobile-menu{display:none}
@media(max-width:1270px){.cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:910px){.auth-screen{grid-template-columns:1fr}.auth-brand{display:none}.sidebar{width:210px}.split,.ticket-grid{grid-template-columns:1fr}.page{padding:22px}.topbar{padding:0 16px}}@media(max-width:650px){.sidebar{position:fixed;left:-260px;top:0;bottom:0;z-index:30;width:250px;transition:left .2s}.sidebar.open{left:0}.breadcrumb{display:none}#mobile-menu{display:block;border:0;background:transparent;font-size:20px}.page-title{flex-direction:column}.cards{grid-template-columns:repeat(2,1fr)}#account-label{display:none}.top-right{gap:5px}.page-title h1{font-size:24px}.footer{padding:16px}.auth-card{padding:25px}}
/* v2: platform-wide catalog while keeping the original AgileAgent ChatBot dashboard intact */
.project-strip{margin-bottom:18px;padding:12px 16px;border:1px solid #cbdfea;border-radius:12px;background:#eaf5fb;display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#235878}
.project-strip b{font-size:13px}.project-strip span{font-size:11px;color:#6d8aa1;margin-right:auto;font-family:ui-monospace,monospace}
.project-card{border-top:4px solid #1d8bad;min-height:300px;display:flex;flex-direction:column}
.project-card .actions{margin-top:auto;padding-top:16px}
.project-card .detail{word-break:break-word}
.import-preview{border-left:4px solid #17a9ad;margin:20px 0}
.import-preview .cards{grid-template-columns:repeat(4,1fr)}
#modal-fields textarea[name="manifest"]{min-height:240px;font:12px/1.6 ui-monospace,monospace}
.project-card h3{font-size:19px}
@media(max-width:800px){.import-preview .cards{grid-template-columns:repeat(2,1fr)}}

/* Guided project creation, API/storage fallback. Inherits approved AgileAgent Dev palette. */
.wizard-shell{max-width:1040px;margin:auto}
.wizard-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 22px}
.wizard-progress-item{border:1px solid #d9e7ef;border-radius:11px;padding:9px 7px;text-align:center;background:#f6fafc;color:#597285;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.wizard-progress-item b{background:#e1e9ed;border-radius:50%;display:grid;place-items:center;width:26px;height:26px;color:#426077;font-size:12px}
.wizard-progress-item.current{background:#e1f3f7;border-color:#44a2b8;color:#184766;font-weight:700}
.wizard-progress-item.current b{background:#2389a5;color:#fff}
.wizard-progress-item.done{border-color:#c4e4dc;background:#effaf7;color:#286959}
.wizard-progress-item.done b{background:#238e76;color:#fff}
.wizard-panel{padding:25px 30px}
.wizard-panel h2{font-size:23px;margin:8px 0 6px;color:#214c68}
.wizard-panel>p{color:#577188;font-size:14px;line-height:1.6;margin-bottom:22px}
.wizard-panel form{display:flex;flex-direction:column;gap:15px}
.wizard-panel input:not([type=checkbox]),.wizard-panel select,.wizard-panel textarea{max-width:100%}
.wizard-panel input[type=checkbox]{width:17px;height:17px;flex:none;accent-color:#167c99}
.wizard-multi{display:flex;flex-direction:column;gap:13px;margin-top:8px}
.wizard-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wizard-choice{display:flex!important;align-items:center;gap:11px;padding:14px!important;border:1px solid #d7e5ee;border-radius:10px;background:#f8fbfd;font-size:13px;color:#26495e;cursor:pointer}
.wizard-choice:has(input:checked){border-color:#70c3ca;background:#eff9f8;font-weight:600}
.wizard-note{padding:14px 17px;background:#f2f8fc;border-left:3px solid #3a9bb5;border-radius:5px;color:#46697f;line-height:1.5;font-size:13px}
.wizard-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;border-top:1px solid #e1ebf0;padding-top:22px;margin-top:20px}
.wizard-summary{border:1px solid #dce8f0;border-radius:12px;overflow:hidden;margin:10px 0 16px}
.wizard-summary-row{display:grid;grid-template-columns:170px minmax(0,1fr);border-bottom:1px solid #e4ecf2;font-size:13px}
.wizard-summary-row:last-child{border-bottom:0}
.wizard-summary-row b{background:#f2f7fa;padding:13px;color:#315d71}
.wizard-summary-row span{padding:13px;color:#374d5d;overflow-wrap:anywhere}
.wizard-api{font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;background:#f2f8fc;border:1px solid #d8e9f0;padding:15px;overflow-x:auto;white-space:pre-wrap;word-break:break-all;color:#254d66;border-radius:7px}
@media(max-width:860px){.wizard-progress{grid-template-columns:repeat(3,minmax(0,1fr))}.wizard-panel{padding:17px}.wizard-summary-row{grid-template-columns:135px minmax(0,1fr)}}
@media(max-width:540px){.wizard-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-options{grid-template-columns:1fr}.wizard-summary-row{grid-template-columns:1fr}.wizard-summary-row b{padding:8px 12px}.wizard-summary-row span{padding:9px 12px}.wizard-footer .btn{flex:1 1 auto}}

/* Manual do Usuário: didactic, accessible and responsive. */
.manual-intro{background:#eef8fb;border:1px solid #c6e4ee;padding:18px 22px;border-radius:13px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;color:#20526e;margin-bottom:19px;line-height:1.7}
.manual-intro strong{font-size:15px}.manual-intro small{color:#587385}
.manual-searchbar{background:#fff;border:1px solid #e0eaf0;border-radius:12px;padding:16px 20px;margin-bottom:20px}
.manual-searchbar label{font-size:13px;color:#35566a;font-weight:700;margin-bottom:8px;display:block}
.manual-search-controls{display:flex;gap:10px;flex-wrap:wrap}.manual-search-controls input{flex:1 1 260px;min-height:42px;border-radius:9px}
.manual-layout{display:grid;grid-template-columns:minmax(205px,270px) minmax(0,1fr);gap:21px;align-items:start}
.manual-nav{position:sticky;top:22px;max-height:calc(100vh - 45px);overflow:auto;background:#fff;border:1px solid #dce9ef;border-radius:14px;padding:15px 11px;scrollbar-width:thin}
.manual-nav-title{font-size:11px;font-weight:800;letter-spacing:.11em;color:#147b97;padding:8px 11px}
.manual-nav-group{font-size:11px;font-weight:800;color:#778e9c;text-transform:uppercase;letter-spacing:.06em;margin:14px 0 5px;padding:4px 10px;border-top:1px solid #eef3f7}
.manual-topic{display:block;text-align:left;width:100%;cursor:pointer;font-size:12px;line-height:1.45;color:#385568;background:none;border:1px solid transparent;border-radius:8px;padding:9px 10px}
.manual-topic:hover{background:#eef7fa;color:#167d9b}.manual-topic.selected{background:#e3f4f7;border-color:#a5d6df;color:#176d87;font-weight:700}
.manual-reader{min-width:0;display:flex;flex-direction:column;gap:22px}
.manual-chapter{background:#fff;border:1px solid #dce8ef;border-radius:14px;padding:24px 27px;overflow:hidden;box-shadow:0 2px 12px rgba(28,65,88,.035)}
.manual-chapter h2{font-size:22px;margin:8px 0 12px;line-height:1.25;color:#173c57}
.manual-chapter h3{font-size:15px;margin:22px 0 10px;color:#175e7b}
.manual-lead{font-size:14px;line-height:1.75;color:#4f6979;max-width:75ch}
.manual-figure{background:#f6fafc;border:1px solid #dbe8ef;border-radius:12px;margin:22px 0;padding:11px;text-align:center;page-break-inside:avoid}
.manual-figure img{width:100%;height:auto;max-height:720px;object-fit:contain;object-position:top;border-radius:7px;border:1px solid #e0e9ed;background:#fff}
.manual-figure a{display:block}.manual-figure figcaption{font-size:11px;text-align:center;color:#648094;line-height:1.6;margin-top:8px}
.manual-figure figcaption span{font-weight:800;color:#25809a}
.manual-steps{counter-reset:manual-step;list-style:none;padding:0;margin:15px 0;display:flex;flex-direction:column;gap:11px}
.manual-steps li{counter-increment:manual-step;position:relative;padding:13px 13px 13px 53px;border:1px solid #e5edf2;background:#fafcfd;border-radius:9px;font-size:13px;line-height:1.75;color:#364f60;break-inside:avoid}
.manual-steps li::before{content:counter(manual-step);position:absolute;left:14px;top:12px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#197f9f;color:#fff;font-weight:800;font-size:12px}
.manual-tips{background:#edf8f6;border-left:3px solid #269883;border-radius:7px;padding:15px 18px;color:#386b60;margin-top:18px}
.manual-tips strong{font-size:13px}.manual-tips ul{padding-left:19px;margin:8px 0 0;font-size:12px;line-height:1.65}
.manual-warning{padding:14px 18px;border-left:3px solid #cb8a33;background:#fff8eb;color:#6c5331;border-radius:7px;font-size:12px;line-height:1.65;margin-top:16px}
.manual-faq-item{border-bottom:1px solid #e2edf0;padding:14px 0;font-size:13px;line-height:1.6}.manual-faq-item strong{display:block;color:#255269}.manual-faq-item p{margin:7px 0;color:#4a6273}
.manual-glossary-item{display:grid;grid-template-columns:170px 1fr;gap:14px;line-height:1.6;font-size:13px;padding:11px 0;border-bottom:1px solid #e2edf0}.manual-glossary-item b{color:#255269}
@media(max-width:960px){.manual-layout{grid-template-columns:210px minmax(0,1fr)}.manual-chapter{padding:18px}.manual-nav{top:5px}}
@media(max-width:650px){.manual-layout{display:block}.manual-nav{position:static;max-height:265px;margin-bottom:17px}.manual-chapter{padding:15px 16px}.manual-chapter h2{font-size:19px}.manual-searchbar{padding:13px}.manual-intro{padding:12px 16px}.manual-search-controls .btn{flex:1 1 auto}.manual-glossary-item{grid-template-columns:1fr;gap:2px}.manual-steps li{padding:12px 10px 12px 44px;font-size:12px}.manual-steps li::before{left:9px;top:12px}.manual-figure{padding:5px}.manual-nav-title{position:sticky;top:0;background:#fff}}
@page{size:A4;margin:16mm 15mm}
@media print{
 html,body,.workspace,.main,.page{height:auto!important;overflow:visible!important;max-height:none!important;background:#fff!important;display:block!important}
 .sidebar,.topbar,.footer,#flash,.manual-searchbar,.manual-nav,.manual-intro .actions,.project-strip,#mobile-menu,#menu{display:none!important}
 .manual-layout{display:block!important}.manual-reader{display:block!important}
 .manual-intro{margin:0 0 15px!important;padding:10px!important}
 .manual-chapter{margin:0 0 13px;padding:10px 0;border:0;box-shadow:none;break-before:page}
 .manual-chapter:first-child{break-before:auto}
 .manual-chapter h2{font-size:18px}.manual-lead{font-size:12px}
 .manual-figure{padding:5px;margin:9px 0;break-inside:avoid}
 .manual-figure img{max-height:104mm;width:auto;max-width:100%}
 .manual-steps{gap:5px}.manual-steps li{background:#fff;border-color:#d6e1e7;padding-top:6px;padding-bottom:6px;font-size:10px;line-height:1.45;break-inside:avoid}
 .manual-steps li::before{top:4px}.manual-tips,.manual-warning{font-size:10px}
 .manual-faq-item,.manual-glossary-item{font-size:11px}
 .page-title{margin-bottom:8px}
 .manual-chapter *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

.auth-guide-link{margin:16px 0 0;font-size:13px;text-align:center}.auth-guide-link a{color:#147a9e;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* Project-level AI onboarding and public DNS */
.ai-wizard-shell{max-width:1180px}
.ai-wizard-shell .wizard-panel{background:#fff}
.ai-wizard-shell .wizard-panel>p{max-width:75ch}
.ai-wizard-shell .grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ai-wizard-shell .wizard-panel .panel{box-shadow:none;border-color:#e3edf3}
.ai-wizard-shell .manual-steps li{font-size:13px;line-height:1.6}
.ai-config-form{margin-bottom:18px}
.ai-config-form label{font-size:13px}
.ai-config-form .wizard-choice{margin:8px 0;font-weight:600}
.ai-wizard-shell .ticket{padding:16px;margin-top:12px}
.ai-wizard-shell details{margin:10px 0}
.ai-wizard-shell details[open]{background:#f5fafc;border:1px solid #dfeaf0;border-radius:8px;padding:11px}
.ai-wizard-shell details summary{cursor:pointer;color:#18789a;font-weight:700}
.ai-wizard-shell .row-between{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.ai-wizard-shell .actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
@media(max-width:680px){
 .ai-wizard-shell .grid-2{grid-template-columns:1fr}
 .ai-wizard-shell .wizard-progress{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ai-wizard-shell .wizard-panel{padding:16px}
 .ai-wizard-shell .manual-steps li{font-size:12px}
 .ai-wizard-shell .actions .btn{flex:1 1 150px}
}
@media(max-width:400px){.ai-wizard-shell .wizard-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== AgileAgent Dev 2.7: design system from approved portfolio reference ===== */
:root{
 --navy-950:#101f3c;--navy-900:#152a4b;--navy-800:#1b3560;
 --brand-blue:#1267d8;--brand-cyan:#16b9cb;--brand-teal:#22d3c4;
 --page-ink:#142849;--page-soft:#6e7d92;--panel-edge:#dce5f0;
 --shadow-soft:0 4px 18px rgba(17,37,68,.075);
}
body{background:#f6f8fc;color:var(--page-ink)}
.workspace{background:#f7f9fd}
.sidebar{width:294px;min-height:100vh;height:100vh;position:sticky;top:0;overflow-y:auto;
 padding:22px 13px 18px;background:linear-gradient(168deg,#142745 0%,#10213f 60%,#101c35 100%);
 color:#c3d4e9;box-shadow:3px 0 15px rgba(16,31,60,.08);scrollbar-width:thin;scrollbar-color:#37516d transparent}
.side-brand{padding:0 12px 21px;margin:0 0 17px;border-bottom:1px solid rgba(200,223,255,.15);gap:13px}
.side-brand .logo{width:52px;height:52px;flex:none;border-radius:12px;
 background:linear-gradient(145deg,#04becd,#2278d4);font-size:22px;box-shadow:0 7px 20px #07162f48}
.side-brand strong{font-size:19px;letter-spacing:-.5px;white-space:nowrap}
.side-brand strong em{font-style:normal;color:#53b7fb}
.side-brand small{font-size:10px;letter-spacing:1.55px;color:#9dacc6;white-space:nowrap;margin-top:6px}
#menu{display:flex;flex-direction:column;gap:4px}
#menu>.nav,.side-group>summary{width:100%;min-height:49px;padding:12px 15px;display:flex;align-items:center;gap:12px;
 color:#d7e3f4;border:1px solid transparent;border-radius:10px;background:transparent;
 font-size:14px;font-weight:650;text-align:left;cursor:pointer;margin:0;line-height:1.3}
#menu>.nav:hover,.side-group>summary:hover,.side-subnav .nav:hover{color:#fff;background:rgba(69,121,181,.23)}
#menu>.nav.active,.side-subnav .nav.active{color:#fff;background:linear-gradient(100deg,#1f628e,#2574a8);
 border:1px solid rgba(39,211,210,.7);box-shadow:inset 3px 0 #36e2d1,0 2px 8px rgba(0,0,0,.09)}
.nav-icon{width:22px;min-width:22px;display:inline-grid;place-items:center;font-size:24px;
 color:#d8e6f7;line-height:1}
.side-group{border-bottom:1px solid rgba(200,223,255,.13);padding-bottom:12px;margin-bottom:6px}
.side-group>summary{list-style:none;font-weight:700}
.side-group>summary::-webkit-details-marker{display:none}
.side-group>summary::marker{content:''}
.side-group[open]>summary{color:#fff}
.side-chevron{margin-left:auto;display:inline-block;font-size:23px;line-height:1;transform:rotate(-90deg);transition:transform .16s}
.side-group[open] .side-chevron{transform:rotate(0)}
.side-subnav{padding:0 5px 1px 39px;display:flex;flex-direction:column;gap:1px}
.side-subnav .nav{margin:0;padding:10px 12px;border:1px solid transparent;border-radius:9px;text-align:left;
 width:100%;background:none;color:#c7d5e8;font-size:12.5px;font-weight:550;line-height:1.4}
.side-subnav .nav::before{content:'›';margin-right:9px;color:#a6c4db;font-size:19px}
.side-subnav .nav.active{border-color:rgba(39,211,210,.2)}
.side-bottom{margin-top:20px;border-top:1px solid rgba(200,223,255,.14);padding:14px 11px 0}
.sidebar-backdrop{display:none}
.main{flex:1;min-width:0;background:#f9fbff}
.topbar{height:78px;min-height:78px;padding:0 31px;background:#fff;border-bottom:1px solid #e3eaf2;
 box-shadow:0 1px 3px rgba(21,50,85,.025)}
.topbar-left{display:flex;align-items:center;gap:12px}
.topbar .breadcrumb{font-size:12px;letter-spacing:.06em;color:#7a8da2;font-weight:700;display:flex;gap:9px;align-items:center}
.topbar .breadcrumb span{padding:0;color:inherit}
.top-breadcrumb-icon{font-size:18px;color:#2a9cab!important}
.top-right{gap:13px}
.top-icon{width:40px;height:40px;min-width:40px;display:grid;place-items:center;position:relative;
 border:0;background:transparent;color:#5d708c;border-radius:50%;font-size:19px;font-weight:700}
.top-icon:hover,.top-icon:focus-visible{background:#edf6fa;color:#1871b7;outline:none}
#help-button{font-size:20px;border:2px solid #8295ad;border-radius:50%;height:27px;min-width:27px;
 width:27px;margin:0 6px;font-weight:750}
#notifications-button svg{display:block}
.notify-dot{position:absolute;right:7px;top:4px;width:8px;height:8px;border-radius:50%;
 background:#ef7156;border:2px solid #fff;box-sizing:content-box}
.account-wrapper{position:relative}
.top-user{border:0;background:transparent;display:flex;align-items:center;gap:11px;color:#48617c;font-size:17px;
 border-radius:25px;padding:4px 7px;cursor:pointer}
.top-user:hover,.top-user:focus-visible{background:#f0f6fa}
.user-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;
 background:linear-gradient(145deg,#158be5,#1c66cf);font-size:17px;font-weight:800;color:white;box-shadow:0 2px 6px #1f65ba37}
.account-popover{position:absolute;right:0;top:calc(100% + 12px);z-index:55;background:#fff;width:255px;
 border:1px solid #dbe7f1;border-radius:12px;box-shadow:0 16px 45px #0e254b27;padding:15px}
.account-popover-title{font-weight:850;font-size:13px;color:#15324e;margin-bottom:5px}
.account-popover-email{font-size:11px;color:#687e90;overflow-wrap:anywhere;border-bottom:1px solid #e5edf3;padding-bottom:11px}
.account-action{display:block;width:100%;border:0;border-radius:8px;padding:12px;background:white;color:#294a64;text-align:left;font-weight:650}
.account-action:hover{background:#edf7fb}
.page{max-width:1540px;margin:0 auto;padding:32px 35px 35px}
.page-title h1,.portfolio-heading h1{color:#142b4d}
.btn.primary{background:linear-gradient(115deg,#1174e2,#125ecb);box-shadow:0 2px 5px rgba(16,94,203,.12)}
.btn.primary:hover{filter:brightness(1.05)}
/* Portfolio title, search and projects */
.portfolio-main-view{max-width:1320px;margin:0 auto}
.portfolio-header{border-bottom:1px solid #e1e6ed;padding:0 0 25px}
.portfolio-heading{display:flex;align-items:flex-start;gap:15px}
.portfolio-folder{color:#159da8;margin-top:3px;display:inline-flex}
.portfolio-heading h1{font-size:29px;line-height:1.2;letter-spacing:-.7px;margin:1px 0 11px;font-weight:850}
.portfolio-heading p{margin:0;color:#6d7b8c;font-size:14px;line-height:1.6}
.portfolio-toolbar{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:26px 0 6px}
.portfolio-search-label{margin:0!important;flex:1 1 460px;max-width:570px;position:relative;display:flex;
 align-items:center;min-width:0}
.portfolio-search-label>svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#7185a0;pointer-events:none}
.portfolio-search-label>input{margin:0;border:1px solid #cddae9;background:#fff;height:48px;border-radius:10px;
 padding:12px 17px 12px 47px;box-shadow:0 1px 4px rgba(17,35,62,.055);
 font-weight:500;color:#1a3554;font-size:14px}
.portfolio-search-label>input:focus{border-color:#27abb8;box-shadow:0 0 0 3px #19acc120}
.portfolio-new-project{height:48px;padding:0 21px;font-size:14px;white-space:nowrap;letter-spacing:.1px}
.portfolio-new-project span{font-size:23px;font-weight:400;line-height:1}
.portfolio-secondary-actions{display:flex;justify-content:flex-end;margin:4px 0 15px}
.portfolio-more-tools{display:inline-block;position:relative;color:#718498;font-size:12px}
.portfolio-more-tools>summary{cursor:pointer;list-style:none;padding:6px 8px}
.portfolio-more-tools>summary::-webkit-details-marker{display:none}
.portfolio-more-tools>summary:hover{color:#157bad}
.portfolio-more-tools-items{position:absolute;top:100%;right:0;display:flex;flex-direction:column;gap:5px;
 width:max-content;min-width:230px;max-width:calc(100vw - 50px);background:white;padding:10px;border-radius:10px;
 border:1px solid #dfe8f0;box-shadow:0 12px 28px #0e254b27;z-index:20}
.portfolio-more-tools-items .btn{text-align:left;justify-content:flex-start}
.portfolio-project-list{display:flex;flex-direction:column;gap:17px}
.portfolio-project-card{position:relative;display:grid;grid-template-columns:83px minmax(0,1fr) auto;
 gap:18px;align-items:center;background:#fff;border:1px solid #dbe3ee;border-radius:15px;
 padding:22px 26px;box-shadow:var(--shadow-soft);min-height:176px}
.portfolio-project-card:hover{border-color:#c2d9e9;box-shadow:0 7px 24px rgba(19,53,89,.11)}
.project-avatar{width:78px;height:78px;display:grid;place-items:center;border-radius:14px;
 background:linear-gradient(145deg,#b3f0f2,#7ed8d9);box-shadow:inset 0 0 0 1px #a6e7eb}
.project-avatar svg{max-width:62px;max-height:62px}
.portfolio-project-info{min-width:0}
.portfolio-project-info h2{font-size:19px;font-weight:800;line-height:1.3;color:#1d2d47;
 margin:0 0 6px;overflow-wrap:anywhere}
.portfolio-project-info>p{max-width:520px;font-size:13px;line-height:1.48;color:#677587;margin:0 0 11px}
.portfolio-project-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.portfolio-project-status{display:inline-flex;align-items:center;gap:6px;background:#e2f8e7;color:#246c3e;
 border-radius:7px;padding:7px 11px;font-size:11px;font-weight:750;white-space:nowrap}
.portfolio-project-status.pending{background:#f0f4fb;color:#5b728e}
.portfolio-project-status.completed{background:#def6e9;color:#157b55}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#21bb65}
.portfolio-project-status.pending .status-dot{background:#8aa0b3}
.portfolio-original-label{color:#74869a;font-size:10px}
.portfolio-project-id{font-family:ui-monospace,Consolas,monospace;color:#9aabba;font-size:10px;overflow-wrap:anywhere}
.portfolio-project-more{font-size:11px;color:#99a9b8;margin-top:11px;overflow-wrap:anywhere}
.portfolio-card-actions{display:flex;align-items:center;gap:10px;justify-self:end}
.portfolio-dashboard-button,.portfolio-ai-button{height:45px;border-radius:10px;
 padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 white-space:nowrap;font-size:13px;font-weight:780}
.portfolio-dashboard-button{border:1px solid #3dcbce;background:#f8fffe;color:#2666ad}
.portfolio-dashboard-button:hover{background:#e7f9fb}
.portfolio-dashboard-button span{font-size:18px}
.portfolio-ai-control{display:flex;position:relative;align-items:center;height:45px;border-radius:10px;
 background:linear-gradient(105deg,#1679df,#155acb);box-shadow:0 3px 8px #1766cb29}
.portfolio-ai-button{height:45px;background:transparent;border:0;color:#fff;padding:0 14px}
.portfolio-ai-button:hover{background:#ffffff13;border-radius:10px 0 0 10px}
.portfolio-ai-button span{font-size:19px}
.portfolio-ai-dropdown{height:45px;position:relative;display:flex;align-items:center}
.portfolio-ai-dropdown>summary{height:45px;padding:0 10px;display:flex;align-items:center;justify-content:center;
 cursor:pointer;color:#fff;font-size:21px;border-left:1px solid #ffffff42;list-style:none}
.portfolio-ai-dropdown>summary::-webkit-details-marker{display:none}
.portfolio-ai-dropdown>summary:hover{background:#ffffff1a}
.portfolio-ai-dropdown-items,.portfolio-project-ellipsis-items{position:absolute;right:0;top:calc(100% + 9px);
 min-width:205px;background:#fff;border-radius:10px;border:1px solid #deebf3;padding:7px;
 box-shadow:0 14px 35px #0f30553b;z-index:25;display:flex;flex-direction:column;gap:2px}
.portfolio-ai-dropdown-items button,.portfolio-project-ellipsis-items button{border:0;background:transparent;
 border-radius:7px;padding:11px 13px;text-align:left;font-size:12px;color:#3e5870;font-weight:650}
.portfolio-ai-dropdown-items button:hover,.portfolio-project-ellipsis-items button:hover{background:#edf7fc;color:#147ba6}
.portfolio-project-ellipsis{position:relative;align-self:flex-start;margin:-7px -10px 0 -2px}
.portfolio-project-ellipsis>summary{border:0;color:#718398;cursor:pointer;font-size:22px;
 list-style:none;padding:4px 8px;line-height:1}
.portfolio-project-ellipsis>summary::-webkit-details-marker{display:none}
.portfolio-project-ellipsis-items{top:32px}
.portfolio-empty-search{text-align:center;padding:30px 18px;border:1px dashed #c8d6e4;
 border-radius:12px;color:#6c7b8c;font-size:13px}
.portfolio-summary{margin-top:28px;border-top:1px solid #e1e7ee;padding:23px 0 15px}
.portfolio-summary h3{font-size:14px;color:#415976;margin:0 0 16px}
.portfolio-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.portfolio-summary-grid>div{background:#fff;border:1px solid #e1e8f1;border-radius:12px;
 padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.portfolio-summary-grid strong{font-size:25px;color:#1d6eab}
.portfolio-summary-grid span{font-size:11px;color:#79899c}
.portfolio-trust-note{color:#8a9aac;font-size:11px;line-height:1.7;margin-top:8px}
/* responsive layout */
@media(max-width:1180px){
 .sidebar{width:268px}
 .portfolio-project-card{grid-template-columns:76px minmax(0,1fr);gap:15px}
 .portfolio-card-actions{grid-column:2;justify-self:start;margin-top:0}
 .portfolio-project-ellipsis{align-self:center;margin:0}
}
@media(max-width:910px){
 .sidebar{position:fixed;left:-320px;top:0;bottom:0;height:100vh;min-height:0;width:294px;
  transition:left .23s ease;z-index:50;padding:20px 13px}
 .sidebar.open{left:0}
 .sidebar-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:49;border:0;
  background:rgba(8,22,41,.55);cursor:pointer}
 #mobile-menu{display:grid;border-radius:9px;width:40px;height:40px;font-size:22px}
 .topbar .breadcrumb{display:flex}
 .page{padding:25px 22px}
 .main{width:100%}
 .portfolio-summary-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
 .topbar{height:65px;min-height:65px;padding:0 14px}
 .topbar .breadcrumb{font-size:10px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .topbar .breadcrumb .top-breadcrumb-icon{display:none}
 .top-right{gap:5px}
 .topbar .dev-badge{display:none}
 .top-icon{width:35px;min-width:35px;height:35px}
 #help-button{margin:0 3px;width:24px;min-width:24px;height:24px;font-size:17px}
 .user-avatar{width:34px;height:34px}
 .top-user{padding:3px;gap:4px}
 .page{padding:22px 15px}
 .portfolio-header{padding-bottom:17px}
 .portfolio-heading{gap:10px}
 .portfolio-folder svg{width:26px;height:26px}
 .portfolio-heading h1{font-size:23px}
 .portfolio-heading p{font-size:12px}
 .portfolio-toolbar{padding-top:19px;gap:10px}
 .portfolio-new-project{height:44px;padding:0 12px;font-size:12px}
 .portfolio-search-label{flex-basis:auto}
 .portfolio-search-label input{height:44px;font-size:12px}
 .portfolio-project-card{grid-template-columns:62px minmax(0,1fr);padding:17px 14px;gap:13px;min-height:0}
 .project-avatar{width:61px;height:61px;border-radius:11px}
 .project-avatar svg{width:49px;height:49px}
 .portfolio-project-info h2{font-size:17px}
 .portfolio-project-info>p{font-size:12px}
 .portfolio-project-id{display:none}
 .portfolio-card-actions{grid-column:1/-1;justify-self:stretch;display:flex;gap:8px;flex-wrap:wrap}
 .portfolio-dashboard-button,.portfolio-ai-button{font-size:12px;height:42px;padding:0 13px}
 .portfolio-ai-control,.portfolio-ai-dropdown,.portfolio-ai-dropdown>summary{height:42px}
 .portfolio-project-ellipsis{margin-left:auto}
 .portfolio-summary-grid{grid-template-columns:repeat(2,1fr);gap:9px}
 .portfolio-summary-grid>div{padding:13px}
}
@media(max-width:380px){
 .portfolio-toolbar{flex-wrap:wrap}
 .portfolio-search-label{flex:1 1 100%;max-width:none}
 .portfolio-new-project{width:100%}
 .portfolio-card-actions{gap:6px}
 .portfolio-dashboard-button,.portfolio-ai-button{font-size:11px;padding:0 11px}
}
@media(prefers-reduced-motion:reduce){.sidebar,.side-chevron{transition:none}}

/* Enforce disclosure controls: no hidden submenu is accidentally displayed. */
.side-group:not([open])>.side-subnav,
.portfolio-ai-dropdown:not([open])>.portfolio-ai-dropdown-items,
.portfolio-project-ellipsis:not([open])>.portfolio-project-ellipsis-items,
.portfolio-more-tools:not([open])>.portfolio-more-tools-items{display:none!important}
.home-welcome-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.home-welcome-grid .panel{display:flex;flex-direction:column;justify-content:space-between;min-height:205px}
.home-welcome-grid .panel h3{font-size:19px;color:#163556}
.home-welcome-grid .panel p{font-size:13px;color:#73859a;line-height:1.6}
.home-welcome-grid .actions{gap:8px}
.home-feature{background:#ebf7fb;padding:21px;border:1px solid #c9e8ef;border-radius:11px;margin-top:22px;color:#27536d;line-height:1.7}
@media(max-width:1070px){.home-welcome-grid{grid-template-columns:1fr}}

/* === AgileAgent Dev: visual aprovado no tutorial ilustrado (2.7) === */
.side-brand .logo{width:42px;height:50px;min-width:42px;background:none;box-shadow:none;border-radius:0}
.side-brand .logo img{width:42px;height:48px;object-fit:contain;filter:drop-shadow(0 2px 3px #06162a25)}
.auth-brand .logo{background:none;box-shadow:none;border-radius:0}
.auth-brand .logo img{width:66px;height:66px}
.guide-toggle{border:1px solid #96e3df;background:#e8f9f6;color:#107c88;display:flex;align-items:center;
 justify-content:center;gap:5px;white-space:nowrap;border-radius:18px;font-size:11px;font-weight:850;
 padding:9px 12px;min-height:34px;transition:background .15s}
.guide-toggle[aria-pressed="false"]{background:#f4f6f9;color:#75879b;border-color:#dce5ee}
.guide-toggle:hover{background:#d6f3ee}
[data-guide-n]{position:relative!important;overflow:visible!important;z-index:2}
[data-guide-n]::after{content:attr(data-guide-n);position:absolute;right:-12px;top:-14px;z-index:8;
 width:25px;height:25px;border-radius:50%;display:grid;place-items:center;
 color:#fff;background:linear-gradient(135deg,#07cbbd,#02958a);font-size:12px;font-weight:900;
 border:2px solid #edfffe;box-shadow:0 3px 8px #007b7844;line-height:1}
[data-guide-n]::before{content:"";position:absolute;right:-2px;top:8px;width:2px;height:16px;
 background:#21c7b6;transform:rotate(42deg);transform-origin:top;z-index:6}
.portfolio-project-info h2[data-guide-n]::after{right:-28px;top:-18px}
.portfolio-ai-control[data-guide-n]::after{right:17px;top:-21px}
.portfolio-ai-control[data-guide-n]::before{right:28px;top:4px}
.portfolio-dashboard-button[data-guide-n]::after{right:8px;top:-21px}
.portfolio-dashboard-button[data-guide-n]::before{right:19px;top:4px}
#menu .nav[data-guide-n]::after{right:0;top:-8px}
.tutorial-guide-panel{background:linear-gradient(115deg,#f0fbf8,#ecf8ff);border:1px solid #a9e2df;
 border-left:5px solid #16bfae;border-radius:12px;padding:18px 20px;margin:22px 0 18px;box-shadow:0 2px 6px #236b7c0a}
.tutorial-guide-heading{display:flex;gap:11px;align-items:center;color:#156c7e}
.tutorial-guide-bulb{display:grid;place-items:center;width:35px;height:35px;border:1px solid #a9e3d7;
 border-radius:50%;font-size:20px;color:#02a88f;background:#fff}
.tutorial-guide-heading strong{font-size:15px;color:#144a68}
.tutorial-guide-heading p{font-size:12px;margin:4px 0 0;color:#557b87;line-height:1.5}
.tutorial-guide-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}
.tutorial-guide-step{display:flex;align-items:flex-start;gap:9px;background:#fff;border-radius:9px;
 padding:12px 10px;border:1px solid #dcf0f1;font-size:11px;line-height:1.5;color:#365d71;min-height:75px}
.guide-step-number{width:23px;height:23px;flex:none;border-radius:50%;background:#0db3a7;
 color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center}
.tutorial-project-banner{display:flex;align-items:center;gap:17px;background:#fff;padding:20px;
 border-radius:13px;border:1px solid #e1e9f1;box-shadow:var(--shadow-soft);margin-bottom:16px}
.tutorial-project-avatar{width:65px;height:65px;border-radius:12px;flex:none;background:#b4edee;
 display:grid;place-items:center}
.tutorial-project-avatar svg{width:55px;height:55px}
.tutorial-project-banner-details{flex:1;min-width:0}
.tutorial-project-banner-details .eyebrow{font-size:9px}
.tutorial-project-banner-details h2{font-size:20px;margin:4px 0;color:#172d4c}
.tutorial-project-banner-details p{font-size:12px;margin:0 0 9px;line-height:1.5;color:#667c92}
.tutorial-project-banner-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tutorial-content-tabs{display:flex;align-items:center;justify-content:space-evenly;gap:8px;overflow-x:auto;
 background:#fff;padding:0 9px;border-radius:11px;border:1px solid #e0e7f0;margin-bottom:22px;scrollbar-width:thin}
.tutorial-content-tabs button{flex:1 0 auto;border:0;border-bottom:3px solid transparent;background:none;
 padding:15px 12px 12px;color:#5a7395;font-size:12px;font-weight:750;white-space:nowrap;cursor:pointer}
.tutorial-content-tabs button.selected{color:#116bb6;border-bottom-color:#17b9c1;background:#effbfd}
.tutorial-content-tabs button:hover{background:#f2fafc;color:#147da4}
.tutorial-section-title{border-left:5px solid #14bdb2;padding:3px 0 3px 14px;margin:15px 0 22px}
.tutorial-section-title h2{color:#162c4f;font-size:23px;letter-spacing:-.35px;margin:0 0 7px}
.tutorial-section-title p{font-size:13px;line-height:1.6;color:#6d8199;margin:0}
.tutorial-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}
.tutorial-metric{display:flex;gap:14px;align-items:center;padding:17px 20px;border-radius:12px;
 min-height:96px;border:1px solid #d6e3f0;box-shadow:0 3px 12px #1c48620b}
.tutorial-metric.rose{background:#fff4f4;border-color:#f1dede}
.tutorial-metric.amber{background:#fff9ec;border-color:#f0e4cb}
.tutorial-metric.mint{background:#effaf5;border-color:#ccece0}
.tutorial-metric.sky{background:#eaf7ff;border-color:#c9e8fb}
.tutorial-metric-icon{display:grid;place-items:center;font-size:25px;min-width:43px;height:43px;
 border-radius:11px;background:#ffffffaf;color:#1578b2}
.tutorial-metric.rose .tutorial-metric-icon{color:#d55661}
.tutorial-metric.amber .tutorial-metric-icon{color:#d99b0d}
.tutorial-metric.mint .tutorial-metric-icon{color:#16a371}
.tutorial-metric div:last-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.tutorial-metric span{font-size:12px;color:#657b8d;font-weight:650}
.tutorial-metric strong{font-size:30px;color:#193852;line-height:1.05}
.tutorial-dashboard-panels{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.95fr);gap:17px;margin:0 0 20px}
.tutorial-panel-title{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #e2eaf2;margin:0 0 13px}
.tutorial-panel-title span{color:#1489b5;font-size:21px}
.tutorial-panel-title h3{margin:0;color:#234669;font-size:16px}
.tutorial-action-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eaf0f4;padding:11px 2px;font-size:12px}
.tutorial-action-row:last-child{border-bottom:0}
.tutorial-checkbox{font-size:21px;color:#7794ae}
.tutorial-action-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.tutorial-action-copy span{font-weight:650;color:#29475e;line-height:1.35}
.tutorial-action-copy small{font-size:10px;color:#8ba0ac}
.tutorial-action-row .btn{font-size:10px;padding:7px 9px}
.tutorial-reminder{display:flex;gap:8px;margin:10px 0;font-size:12px;color:#45627a;line-height:1.6}
.tutorial-reminder span{color:#1688d1}
.tutorial-reminder small{color:#8598a8}
.tutorial-next-reminders p{font-size:12px;line-height:1.6;color:#6a7c91}
.tutorial-next-reminders .actions{margin-top:22px}
.tutorial-tasks-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:17px}
.tutorial-tasks-badges{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:10px}
.tutorial-tasks-badges .tutorial-metric{min-height:74px;padding:11px 14px}
.tutorial-tasks-badges .tutorial-metric strong{font-size:22px}
.tutorial-tasks-badges .tutorial-metric-icon{min-width:32px;height:32px;font-size:20px}
.tutorial-tasks-table{min-width:690px}
.tutorial-tasks-table td{vertical-align:middle}
.tutorial-tasks-table td strong{color:#294a66}
.tutorial-tasks-table .actions{margin:0;flex-wrap:nowrap}
.tutorial-tasks-table .btn{font-size:10px;padding:8px 9px}
.tutorial-sprints-top{display:grid;grid-template-columns:1.05fr 1fr;gap:17px}
.tutorial-proposal-preview{margin-top:12px;padding:12px;border:1px solid #dfecf0;background:#f7fbfd;border-radius:10px}
.tutorial-proposal-preview p{font-size:12px;line-height:1.6;color:#5e758c}
.tutorial-sprint-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tutorial-sprint-overview .tutorial-metric{padding:9px;min-height:0;gap:7px}
.tutorial-sprint-overview .tutorial-metric-icon{font-size:16px;min-width:26px;height:26px}
.tutorial-sprint-overview .tutorial-metric strong{font-size:20px}
.tutorial-sprint-overview .tutorial-metric span{font-size:9px}
.tutorial-sprint-row{display:flex;align-items:center;gap:9px;padding:12px 3px;border-bottom:1px solid #e9eef3}
.tutorial-sprint-row>div:first-child{display:flex;flex-direction:column;min-width:0;flex:1;gap:5px}
.tutorial-sprint-row strong{font-size:12px;color:#29455f;line-height:1.5}
.tutorial-sprint-row small{color:#8294a3;font-size:10px}
.tutorial-sprint-row .btn{font-size:10px;padding:7px 9px;white-space:nowrap}
.tutorial-prompt-panel{background:#fff;border-left:3px solid #16aab8}
.tutorial-prompt-panel label{font-size:12px}
.tutorial-prompt-panel textarea{min-height:210px;font:12px/1.6 ui-monospace,Consolas,monospace;background:#f8fbff}
.tutorial-prompt-buttons{display:flex;align-items:center;gap:10px}
.tutorial-prompt-buttons>span{display:inline-flex}
.tutorial-prompt-buttons .btn{min-height:39px}
.tutorial-advanced-details{margin:24px 0;background:white;border:1px solid #dce9ef;border-radius:11px}
.tutorial-advanced-details>summary{padding:17px 21px;cursor:pointer;font-weight:750;font-size:13px;color:#376b89}
.tutorial-advanced-details[open]>summary{border-bottom:1px solid #e1edf4}
.tutorial-advanced-content{padding:22px 18px}
.tutorial-advanced-content .page-title{margin-top:16px}
.tutorial-advanced-content .split{margin-bottom:18px}
.tutorial-advanced-content .banner{background:#f1f8fc}
@media(max-width:1080px){
 .tutorial-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutorial-dashboard-panels,.tutorial-sprints-top{grid-template-columns:1fr}
 .tutorial-guide-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutorial-project-banner-actions{margin-left:auto}
}
@media(max-width:650px){
 .guide-toggle{font-size:10px;padding:7px 9px;min-height:30px}
 .topbar .top-right{gap:4px}
 .tutorial-project-banner{flex-wrap:wrap;padding:14px;gap:11px}
 .tutorial-project-avatar{width:54px;height:54px}
 .tutorial-project-avatar svg{width:45px;height:45px}
 .tutorial-project-banner-details{flex:1 1 calc(100% - 85px)}
 .tutorial-project-banner-details h2{font-size:18px}
 .tutorial-project-banner-actions{width:100%;justify-content:flex-start}
 .tutorial-project-banner-actions .btn{flex:1}
 .tutorial-content-tabs{justify-content:flex-start}
 .tutorial-content-tabs button{font-size:11px;padding:12px 9px}
 .tutorial-section-title h2{font-size:21px}
 .tutorial-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tutorial-metric{padding:12px;gap:8px;min-height:73px}
 .tutorial-metric strong{font-size:23px}
 .tutorial-metric span{font-size:11px}
 .tutorial-metric-icon{min-width:31px;height:31px;font-size:19px}
 .tutorial-guide-steps{grid-template-columns:1fr}
 .tutorial-guide-step{min-height:0}
 .tutorial-tasks-badges{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tutorial-tasks-toolbar .actions{width:100%}
 .tutorial-tasks-toolbar .actions .btn{flex:1}
 .tutorial-sprint-row{flex-wrap:wrap}
 .tutorial-sprint-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tutorial-sprint-overview .tutorial-metric-icon{display:none}
 .tutorial-sprint-overview .tutorial-metric strong{font-size:19px}
}
@media print{
 .guide-toggle,.tutorial-guide-panel,[data-guide-n]::after,[data-guide-n]::before{display:none!important}
}

/* Identidade visual APROVADA: marca AgileAgent Dev vetorizada fielmente da referência.
   Logotipo completo usa áreas claras para preservar o azul-marinho original. */
.auth-brand .auth-logo-approved{
 display:flex;align-items:center;justify-content:flex-start;
 padding:11px 14px;background:#fff;border:1px solid rgba(255,255,255,.65);
 border-radius:15px;max-width:480px;box-shadow:0 12px 30px rgba(2,16,39,.14);
}
.auth-brand .auth-logo-approved img{
 display:block;max-width:100%;height:auto;width:100%;max-height:92px;object-fit:contain;object-position:left center;
}
.auth-brand h2{font-size:20px;color:#84dff2;margin:21px 0 24px;letter-spacing:.3px}
.side-brand.side-brand-approved{display:flex;flex-direction:column;align-items:stretch;gap:7px;
 padding:0 7px 18px;margin:0 0 18px;border-bottom:1px solid rgba(200,223,255,.15)}
.side-brand .side-approved-logo{background:white;border-radius:9px;padding:8px 7px;display:grid;place-items:center;
 box-shadow:0 3px 12px rgba(0,0,0,.12);width:100%}
.side-brand .side-approved-logo img{width:100%;height:auto;max-height:53px;object-fit:contain;display:block}
.side-brand.side-brand-approved small{display:block;text-align:center;color:#9aafc9;font-size:10px;
 letter-spacing:1.45px;margin:4px 0 0}
.top-approved-logo{display:flex;align-items:center;margin-right:13px;min-width:0}
.top-approved-logo img{width:184px;height:auto;max-height:39px;display:block}
@media(max-width:1200px){.top-approved-logo{display:none}}
@media(max-width:910px){.side-brand.side-brand-approved{padding-top:4px}}
@media(max-width:640px){
 .auth-brand .auth-logo-approved{margin:0 auto;max-width:345px;padding:8px}
 .auth-brand .auth-logo-approved img{width:100%;max-height:72px}
 .auth-brand h2{text-align:center;font-size:17px}
 .side-brand .side-approved-logo{min-height:55px}
}


/* AgileAgent Dev v2.9: project terminal dock. Does not execute remote commands. */
.terminal-dock{position:fixed;bottom:0;right:0;left:257px;z-index:22;background:#fff;border-top:3px solid #1775a5;box-shadow:0 -10px 40px #10283b2c;height:min(48vh,460px);display:flex;flex-direction:column}
.terminal-dock.terminal-maximized{top:0;height:auto;left:0;z-index:70}
.terminal-dock-head{background:#102945;color:#e8f6fc;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 14px;font-size:12px}
.terminal-dock-head button{border:0;border-radius:6px;background:#2e5c7c;color:#fff;padding:7px 10px}
.terminal-dock-body{overflow:auto;flex:1;padding:12px 18px;font-size:12px}
.terminal-modebar{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}
.terminal-modebar button,.terminal-profile-list button{border:1px solid #d3e5f0;background:#f3f8fb;border-radius:7px;color:#376078;padding:7px 11px;cursor:pointer}
.terminal-modebar .active,.terminal-profile-list .active{background:#206f9a;color:#fff}
.terminal-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:28px}
.terminal-columns h4{margin:5px 0 12px;color:#194966}
.terminal-profile-list{display:flex;gap:6px;flex-wrap:wrap}
.terminal-dock .terminal-command{font-family:Consolas,monospace;min-height:75px;resize:vertical;font-size:12px;color:#102f46}
.terminal-dock label{margin-top:9px}.terminal-dock input,.terminal-dock select{padding:8px}
.terminal-dock p{line-height:1.5;color:#5e7282}
.terminal-port-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.terminal-unavailable{background:#f4f9fc;border:1px solid #d8eaf2;border-radius:10px;padding:24px}
.terminal-note{font-size:11px}
.terminal-information p{line-height:1.65}
@media(max-width:910px){.terminal-dock{left:210px}}
@media(max-width:650px){.terminal-dock{left:0;height:min(63vh,560px)}.terminal-columns{grid-template-columns:1fr}.terminal-dock-body{padding:10px}.terminal-dock-head{font-size:11px}.terminal-modebar button{font-size:11px}}

/* xterm.js browser SSH with mobile keyboard */
.term-live-tools,.term-live-tabs,.term-live-footer{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.term-live-tools{justify-content:space-between;margin-bottom:7px;font-size:12px}
.term-live-tools button,.term-live-tabs button,.term-mobile-keys button{border:1px solid #d2e3ed;border-radius:7px;background:#eef5fb;color:#25556f;padding:6px 9px;cursor:pointer}
.term-live-tabs{margin-bottom:5px}
.term-live-tabs button.active{background:#176fa2;color:white}
.term-live-tabs button span{margin-left:9px;font-size:17px}
.term-live-screens{min-height:150px;height:calc(100% - 115px);position:relative}
.term-live-screen{height:100%;background:#000!important;color:#fff!important;padding:4px}
.term-live-screen .xterm{height:100%}
.term-live-footer{justify-content:space-between;margin-top:8px;font-size:11px}
.term-mobile-keys{display:flex;gap:3px;flex-wrap:wrap}
#terminal-live-shell{height:100%;min-height:230px;padding:8px;overflow:hidden;background:#000!important;color:#fff!important}
.terminal-dock{height:min(60vh,540px)}
@media(max-width:650px){.terminal-dock{height:75vh}.term-live-tools{font-size:11px}.term-live-screens{height:calc(100% - 145px)}}

.terminal-preview-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#term-preview-frame{display:block;width:100%;min-height:260px;height:44vh;border:1px solid #c9deeb;border-radius:8px;background:#fff}
.terminal-dock.terminal-maximized #term-preview-frame{height:76vh}
@media(max-width:650px){#term-preview-frame{height:42vh}}

.terminal-agent-details{background:#f7fbfc;padding:15px;border:1px solid #d8e6f0;border-radius:9px}
.terminal-agent-details p{line-height:1.7}.terminal-agent-details code{word-break:break-all}
.terminal-agent-pair{margin:12px 0;padding:15px;border:1px dashed #43a4a4;border-radius:8px;background:#effbfa;color:#185f5a}
.terminal-agent-pair code{font-size:15px;font-weight:800;color:#094e55}

/* Traditional high-contrast terminal: black background, white text */
#terminal-live-shell .term-live-tools,
#terminal-live-shell .term-live-tabs,
#terminal-live-shell .term-live-footer{background:#000;color:#fff}
#terminal-live-shell .term-live-tools strong,
#terminal-live-shell [data-term-status]{color:#fff}
#terminal-live-shell .term-live-tools button,
#terminal-live-shell .term-live-tabs button,
#terminal-live-shell .term-mobile-keys button{background:#202020;border-color:#777;color:#fff}
#terminal-live-shell .term-live-tabs button.active{background:#353535;border-color:#eee;color:#fff}
#terminal-live-shell .xterm,
#terminal-live-shell .xterm .xterm-viewport,
#terminal-live-shell .xterm .xterm-screen{background-color:#000!important;color:#fff}
#terminal-live-shell .xterm .xterm-rows{color:#fff}

/* DNS public-access screen: keep four status values readable and prevent overflow.
   Scoped to the unique temporary DEV hostname banner; unrelated KPI grids stay unchanged. */
.page .page-title:has(+ .banner a[href*="agileagent-dev.187-127-13-210.sslip.io"]) {
  flex-wrap: wrap;
}
.page .page-title:has(+ .banner a[href*="agileagent-dev.187-127-13-210.sslip.io"]) > div:first-child {
  flex: 1 1 390px;
  min-width: 0;
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) {
  overflow-wrap: anywhere;
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards .stat {
  min-width: 0;
  overflow: hidden;
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards .stat strong {
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards + .panel .table {
  table-layout: fixed;
  min-width: 0;
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards + .panel .table th {
  width: 205px;
}
.page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards + .panel .table td {
  overflow-wrap: anywhere;
}
@media (max-width: 1380px) {
  .page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .page .banner:has(> a[href*="agileagent-dev.187-127-13-210.sslip.io"]) + .cards + .panel .table th {
    width: 125px;
    letter-spacing: .025em;
  }
}
