:root{--ink:#242620;--muted:#777971;--red:#a81016;--paper:#f5f3ed;--line:#e7e4dc;--surface:#fffefa}*{box-sizing:border-box}html{font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper)}body{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.shell{min-height:100vh;display:flex}.sidebar{width:266px;flex:none;background:var(--surface);border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;font-family:Manrope,Arial,sans-serif;font-weight:800;letter-spacing:.09em;font-size:16px;line-height:1.05}.brand small{display:block;font-size:9px;letter-spacing:.17em;margin-top:6px;font-weight:700;color:var(--muted)}.brand-mark{width:37px;height:37px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:22px;font-family:Georgia,serif;letter-spacing:0}.side-label,.eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;color:var(--red)}.side-label{color:#9c9e96;margin:70px 12px 16px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:13px 14px;color:#62645d;border-radius:4px;font-weight:600;font-size:13px}.sidebar nav a:hover,.sidebar nav a.active{background:#f3eee9;color:var(--red)}.side-bottom{border-top:1px solid var(--line);padding-top:20px;margin-top:auto;display:flex;align-items:center;gap:10px}.side-bottom strong,.side-bottom small{display:block;font-size:12px}.side-bottom small{font-size:11px;color:var(--muted);margin-top:2px}.avatar{width:34px;height:34px;border-radius:50%;background:#e8ddd8;color:var(--red);display:grid;place-items:center;font-weight:800}.side-bottom form{margin-left:auto}.logout{border:0;background:none;font-size:20px;cursor:pointer;color:var(--muted)}.main{width:100%;min-width:0;padding:0 48px 60px}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:800;letter-spacing:.13em;color:#92948d}.top-right{display:flex;align-items:center;gap:12px}.top-right i{width:7px;height:7px;border-radius:50%;background:#78aa73}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin:48px 0 35px;gap:20px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,Arial,sans-serif}h1{font-size:36px;letter-spacing:-.05em;margin:8px 0 11px}h2{font-size:21px;letter-spacing:-.035em;margin:7px 0 0}h3{font-size:15px;letter-spacing:-.025em;margin:0 0 7px}.muted{color:var(--muted);font-size:13px;line-height:1.6}.date{font-size:12px;color:var(--muted);text-transform:capitalize}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stats>a,.stats>div{background:var(--surface);border:1px solid var(--line);min-height:128px;padding:21px 24px;display:flex;flex-direction:column}.stats small{font-size:10px;letter-spacing:.16em;color:var(--muted);font-weight:800}.stats strong{font-family:Manrope;font-size:35px;letter-spacing:-.06em;margin:5px 0}.stats span{font-size:11px;color:var(--red);font-weight:700}.section-head{display:flex;align-items:end;justify-content:space-between;margin:48px 0 20px}.section-head .eyebrow{margin:0}.section-head.lower{margin-top:50px}.systems{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.system{background:var(--surface);border:1px solid var(--line);min-height:136px;padding:23px;display:flex;gap:18px;align-items:flex-start}.system-num{color:var(--red);font-family:Manrope;font-size:12px;font-weight:800}.system p{color:var(--muted);font-size:12px;line-height:1.5;margin:0}.system>a{margin-left:auto;border:1px solid var(--line);width:30px;height:30px;flex:none;display:grid;place-items:center;color:var(--red);font-size:17px}.system>a:hover{background:var(--red);color:white}.pending{margin-left:auto;color:#aaa;font-size:10px;white-space:nowrap}.panel{background:var(--surface);border:1px solid var(--line)}.row{min-height:68px;padding:15px 21px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);font-size:12px}.row:last-child{border:0}.row:hover{background:#fbf9f5}.row>span:first-child{flex:1}.row strong,.row small{display:block}.row strong{font-size:13px}.row small{color:var(--muted);margin-top:5px}.badge{border:1px solid #dedbd3;background:#f7f5f0;padding:6px 10px;border-radius:40px;color:#777;font-size:10px;white-space:nowrap}.empty{padding:24px;margin:0;color:var(--muted);font-size:13px}.text-link,.back{color:var(--red);font-size:12px;font-weight:700}.back{display:inline-block;margin-top:35px}.search{display:flex;gap:8px;margin-bottom:18px}.search input{flex:1}.search input,.editor input,.editor select,.auth-card input{border:1px solid #dedbd3;background:white;padding:12px 13px;outline:none;border-radius:2px}.search input:focus,.editor input:focus,.editor select:focus,.auth-card input:focus{border-color:var(--red)}.search button{background:var(--ink);color:white;border:0;padding:0 24px;cursor:pointer}.editor{background:var(--surface);border:1px solid var(--line);margin:0 0 18px}.editor summary{padding:16px 20px;cursor:pointer;color:var(--red);font-weight:700;font-size:13px}.editor form{padding:0 20px 20px;display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.editor label,.auth-card label{display:grid;gap:7px;color:#5f6159;font-size:11px;font-weight:700}.editor button{justify-self:start}.primary{background:var(--red);color:white;border:0;padding:13px 20px;cursor:pointer;font-weight:700;font-size:12px}.primary:hover{background:#8d0e13}.primary.wide{width:100%;display:flex;justify-content:space-between}.pagination{font-size:12px;margin-top:20px}.notice,.error{padding:13px 17px;margin-top:20px;font-size:12px;background:#ecf5e9;color:#315b35}.error{background:#f9e9e8;color:#8c1e20}.guest{display:grid;place-items:center;min-height:100vh;padding:30px;background:linear-gradient(120deg,#f3f0e8,#fffefa)}.auth-card{background:var(--surface);border:1px solid var(--line);padding:48px;width:min(100%,440px);box-shadow:0 20px 50px #28231e0c}.auth-brand{margin-bottom:60px}.auth-card h1{font-size:28px}.auth-card .muted{margin-bottom:26px}.auth-card form{display:grid;gap:18px}.auth-card input{width:100%;font-size:14px}.hint{color:#999a93;font-size:11px;line-height:1.5;margin:23px 0 0}.secret{font-family:monospace;letter-spacing:.1em;background:#f5f3ed;padding:15px;margin:20px 0;overflow-wrap:anywhere}.auth-card .eyebrow{margin:0}.auth-card .primary{margin-top:7px}@media(max-width:850px){.sidebar{width:190px}.main{padding:0 25px 50px}.systems{grid-template-columns:1fr}}@media(max-width:620px){.shell{display:block}.sidebar{position:relative;height:auto;width:auto;padding:15px}.sidebar .side-label,.sidebar .side-bottom{display:none}.sidebar nav{display:flex;margin-top:15px}.sidebar nav a{padding:8px}.main{padding:0 18px 40px}.topbar{height:45px}.top-right{display:none}.page-head{margin-top:30px}.page-head h1{font-size:29px}.date{display:none}.stats{gap:6px}.stats>a,.stats>div{padding:13px;min-height:100px}.stats strong{font-size:25px}.stats span{font-size:9px}.system{padding:18px}.editor form{grid-template-columns:1fr}}

.team-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.team-create .editor{margin:0}.team-create .editor form{grid-template-columns:1fr}.form-help{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.5;margin:0}.team-person{padding:18px 21px;border-bottom:1px solid var(--line)}.team-person:last-child{border-bottom:0}.team-person-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.team-person-head strong,.team-person-head small{display:block}.team-person-head strong{font-size:13px}.team-person-head small{color:var(--muted);font-size:11px;margin-top:5px}.team-actions{display:flex;align-items:flex-start;gap:22px;margin-top:12px}.team-actions form{margin:0}.team-actions details{font-size:11px;color:var(--red)}.team-actions summary{cursor:pointer;font-weight:700}.text-button{padding:0;border:0;background:none;color:var(--red);font-size:11px;font-weight:700;cursor:pointer}.reset-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.reset-form label{display:grid;gap:6px;color:var(--muted)}.reset-form input{border:1px solid #dedbd3;background:white;padding:10px;min-width:0}.reset-form button{justify-self:start;grid-column:1/-1}.password-panel{max-width:650px}.password-panel form{padding-top:20px}.password-panel input{min-width:0}@media(max-width:850px){.team-create{grid-template-columns:1fr}}@media(max-width:620px){.team-actions{display:grid;gap:12px}.reset-form{grid-template-columns:1fr}}
/* Identidade Coutinho, atualização 1.3 */
:root{--ink:#20211f;--muted:#686b68;--red:#a82630;--red-dark:#791c25;--paper:#f4f1e9;--line:#dedbd2;--surface:#fffefa}
html{font-family:Arial,Helvetica,sans-serif;background:var(--paper)}
.brand{gap:11px;letter-spacing:.04em;min-width:0}.brand-logo{width:78px;height:78px;object-fit:contain;flex:none}.brand-caption{font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:800;letter-spacing:.12em}.brand-caption small{font-size:8px;letter-spacing:.12em;line-height:1.3;white-space:nowrap}.sidebar{padding-top:20px}.side-label{margin-top:43px}.sidebar nav a{border-radius:0}.sidebar nav a:hover,.sidebar nav a.active{background:#f4eee9;border-left:3px solid var(--red);padding-left:11px}
h1,h2,h3{font-family:Arial,Helvetica,sans-serif;letter-spacing:-.035em}.page-head h1{font-weight:800}.eyebrow,.side-label{letter-spacing:.2em}.primary{background:var(--red)}.primary:hover{background:var(--red-dark)}.system>a:hover{background:var(--red)}
.dashboard-hero{background:var(--red);color:#fff;min-height:350px;margin:34px 0 30px;padding:44px 48px;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.dashboard-hero:before{content:"";position:absolute;width:370px;height:370px;border-radius:50%;background:var(--red-dark);top:-245px;right:-85px;opacity:.8}.dashboard-hero-content{position:relative;z-index:1}.dashboard-hero .eyebrow{color:#fff;font-size:10px;margin:0 0 22px}.dashboard-hero h1{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-stretch:condensed;font-weight:900;line-height:.97;letter-spacing:.015em;font-size:clamp(44px,5.2vw,76px);margin:0 0 20px}.dashboard-hero h1 span{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}.dashboard-hero-content>p:not(.eyebrow){font-size:14px;line-height:1.5;max-width:530px;margin-bottom:22px}.dashboard-hero a{display:inline-flex;align-items:center;gap:40px;background:#fff;color:var(--ink);padding:13px 18px;font-size:12px;font-weight:700}.dashboard-hero a:hover{background:var(--paper)}.dashboard-hero-date{position:relative;z-index:1;font-size:11px;text-transform:capitalize;white-space:nowrap;opacity:.85}
.guest{background:var(--paper)}.auth-brand{margin-bottom:38px}.auth-card{padding:34px 44px 42px}.auth-card:before{content:"";display:block;width:45px;height:4px;background:var(--red);margin-bottom:18px}
.client-editor form{gap:16px 20px}.form-group-title{grid-column:1/-1;display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);padding-top:18px;margin-top:4px}.form-group-title:first-child{border-top:0;padding-top:0;margin-top:0}.form-group-title>span{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:22px;color:var(--red)}.form-group-title strong,.form-group-title small{display:block}.form-group-title strong{font-size:13px;color:var(--ink)}.form-group-title small{font-size:11px;color:var(--muted);font-weight:400;margin-top:3px}.client-editor .full-field{grid-column:1/-1}.client-editor .form-help{grid-column:1/-1}.editor textarea{border:1px solid #dedbd3;background:#fff;padding:12px 13px;outline:none;border-radius:2px;font:inherit;resize:vertical;min-height:80px}.editor textarea:focus{border-color:var(--red)}.client-editor input,.client-editor textarea{min-width:0;width:100%}.client-editor button{margin-top:4px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 18px}.info-grid>div{background:var(--surface);border:1px solid var(--line);padding:20px}.info-grid span,.info-grid strong{display:block}.info-grid span{font-size:10px;font-weight:800;letter-spacing:.15em;color:var(--red);margin-bottom:10px}.info-grid strong{font-size:14px;overflow-wrap:anywhere}.client-extras{background:var(--surface);border:1px solid var(--line);padding:20px;margin-bottom:18px}.client-extras .eyebrow{margin-bottom:9px}.client-extras p:last-child{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap}.row-link{font-size:11px;color:var(--red);font-weight:700;white-space:nowrap}
@media(max-width:850px){.brand-logo{width:55px;height:55px}.brand-caption{font-size:15px}.brand-caption small{font-size:7px}.dashboard-hero{padding:35px}}
@media(max-width:620px){.sidebar{padding:10px 15px}.brand-logo{width:48px;height:48px}.sidebar nav{overflow-x:auto;white-space:nowrap}.sidebar nav a:hover,.sidebar nav a.active{border-left:0;border-bottom:2px solid var(--red);padding-left:8px}.dashboard-hero{margin:24px -18px 24px;min-height:315px;padding:30px 24px}.dashboard-hero h1{font-size:48px}.dashboard-hero-date{display:none}.info-grid{grid-template-columns:1fr}.client-editor form{grid-template-columns:1fr}.form-group-title,.client-editor .full-field{grid-column:1}.row-link{display:none}}
/* Ajustes de tipografia, busca e sugestões 1.4 */
.dashboard-hero h1{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-weight:400;font-size:clamp(42px,4.7vw,68px);letter-spacing:.005em;line-height:1.01}
.stats strong{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-weight:400;font-size:42px;letter-spacing:.01em;line-height:1.05;margin:9px 0 7px}.system-num,.form-group-title>span{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-weight:400;letter-spacing:.01em}
.client-suggestions{grid-column:1/-1;background:#f8f3ef;border-left:3px solid var(--red);padding:14px 16px;display:grid;gap:8px}.client-suggestions[hidden]{display:none}.client-suggestions strong{font-size:11px;color:var(--red)}.client-suggestions a{font-size:12px;font-weight:700;line-height:1.4}.client-suggestions a:hover{text-decoration:underline}
@media(max-width:620px){.dashboard-hero h1{font-size:46px}.stats strong{font-size:32px}.client-suggestions{grid-column:1}}
/* Vínculo revisado com Programa Arquitetônico */
.program-link-editor{margin-top:18px}.program-link-editor .full-field,.program-link-editor .form-help,.program-link-editor .integration-actions{grid-column:1/-1}.program-link-editor .form-help{font-size:12px;line-height:1.6;padding:2px 0 3px}.program-link-editor .full-field input[type=url]{width:100%;min-width:0}.program-link-editor .link-confirm{display:flex;align-items:flex-start;gap:10px;color:var(--ink);font-size:12px;line-height:1.5}.program-link-editor .link-confirm input{width:16px;height:16px;flex:none;padding:0;margin:1px 0 0;accent-color:var(--red)}.integration-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.unlink-form{margin:0 0 18px;text-align:right}.unlink-form button{padding:8px 0}.program-link-editor .primary{margin:0}
@media(max-width:620px){.program-link-editor .full-field,.program-link-editor .form-help,.program-link-editor .integration-actions{grid-column:1}.integration-actions{align-items:flex-start;flex-direction:column;gap:12px}.program-link-editor .primary{width:100%}}
