.agencies-body{background:var(--paper,#f5f7f3);color:var(--ink,#103D30)}.agencies-wrap{width:min(1160px,calc(100% - 64px));margin:auto}.agencies-header{background:white;border-bottom:1px solid var(--line)}.agencies-header>.agencies-wrap{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 0}.agencies-header img{display:block;width:210px;height:auto}.agencies-header nav{display:flex;gap:10px}.agencies-body main{padding:46px 0 60px}.agencies-body h1{font-size:clamp(32px,4vw,48px);line-height:1.15;letter-spacing:-1px;margin:14px 0}.agency-lead{font-size:17px;line-height:1.8;color:var(--muted);max-width:780px}.agency-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:30px 0 22px}.agency-toolbar>div{display:flex;gap:10px;flex-wrap:wrap}.agencies-body label{display:grid;gap:8px;font-size:13px;line-height:1.6}.agencies-body input,.agencies-body select,.agencies-body textarea{width:100%;min-height:46px;border:1px solid var(--line);background:white;color:var(--ink);font:inherit;font-size:16px;padding:11px 13px;border-radius:0}.agency-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.agency-metric{padding:23px;background:white;border:1px solid var(--line)}.agency-metric>span{font-size:12px;line-height:1.7;color:var(--muted)}.agency-metric strong{display:block;font-size:26px;line-height:1.35;margin:10px 0;overflow-wrap:anywhere}.agency-metric small{display:block;font-size:11px;line-height:1.6;color:var(--muted)}.agency-scope-note{padding:21px 0;font-size:12px;line-height:1.9;color:var(--muted);max-width:950px}.agency-scope-note strong{color:var(--ink)}.agency-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.agency-card{padding:27px;background:white;border:1px solid var(--line);min-width:0}.agency-card-title{display:flex;justify-content:space-between;align-items:start;gap:15px}.agency-card-title h2{font-size:25px;margin:8px 0;line-height:1.3;overflow-wrap:anywhere}.agency-badge{font-size:11px;line-height:1.6;padding:7px 9px;color:var(--green);background:#f6f5f2;flex-shrink:0}.agency-warning{background:#faf0d9;color:#805b20}.agency-card-sub{display:grid;gap:5px;font-size:12px;line-height:1.7;margin:20px 0;color:var(--muted)}.agency-card-sub strong{font-size:14px;color:var(--green)}.agency-finances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin:22px 0;border-block:1px solid var(--line);padding:20px 0}.agency-finances dt{font-size:11px;color:var(--muted);line-height:1.7}.agency-finances dd{font-size:17px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.agency-card-actions{display:grid;grid-template-columns:1fr;gap:9px}.agencies-body .btn{border-radius:0;min-height:46px;white-space:normal;text-align:center;justify-content:center;line-height:1.6}.agency-panel{padding:28px;margin-top:26px;border:1px solid var(--line);background:white}.agency-panel h2{font-size:24px;line-height:1.4}.agency-panel p{font-size:14px;line-height:1.8;margin:15px 0}.agency-onboarding{max-width:800px}.agency-onboarding form,.agency-dialog form:not(.agency-dialog-close){display:grid;gap:20px;margin-top:24px}.agency-checkbox{display:flex!important;align-items:flex-start;gap:12px!important}.agencies-body .agency-checkbox input{width:20px;min-width:20px;height:20px;min-height:20px;margin-top:3px;accent-color:var(--green)}.agency-help{font-size:12px!important;line-height:1.8;color:var(--muted)}.agency-dialog{width:min(620px,calc(100% - 32px));max-height:90dvh;overflow:auto;margin:auto;border:1px solid var(--line);padding:30px;color:var(--ink);background:white}.agency-dialog::backdrop{background:#00000080}.agency-dialog h2{font-size:25px;line-height:1.4;padding-right:35px}.agency-dialog p{font-size:13px;line-height:1.8}.agency-dialog-close{position:absolute;top:18px;right:18px}.agency-dialog-close .icon-button{font-size:26px;min-width:44px;min-height:44px}.agency-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.agency-price{padding:16px;background:#f6f5f2;color:var(--green);font-size:14px;line-height:1.7}.agencies-footer{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;gap:20px;font-size:12px;line-height:1.8}.agencies-footer a{color:var(--green)}#agency-modal-error{color:#9b2f25;border-left:3px solid currentColor;padding-left:12px}.agency-contextbar{display:flex;gap:20px;justify-content:space-between;align-items:center;background:#f6f5f2;border-bottom:1px solid var(--line);padding:12px 36px}.agency-contextbar label{display:flex;gap:12px;align-items:center;font-size:12px;line-height:1.5;color:var(--muted)}.agency-contextbar select{font:inherit;font-size:14px;color:var(--green);border:1px solid var(--line);border-radius:0;padding:10px 12px;max-width:350px;min-height:44px;background:white}.agency-global-link{color:var(--green);font-size:12px;font-weight:500;line-height:1.8;text-underline-offset:4px}.agency-contextbar [role=alert]{font-size:12px;color:#9b2f25}.agencies-body :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:900px){.agency-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.agency-card-title{display:block}.agency-badge{display:inline-block;margin-top:6px}.agency-contextbar{padding-inline:24px}}
@media(max-width:760px){.agencies-wrap{width:calc(100% - 36px)}.agencies-header>.agencies-wrap{flex-wrap:wrap;padding:18px 0;gap:16px}.agencies-header img{width:172px}.agencies-header nav{flex-wrap:wrap;width:100%}.agencies-header nav .btn{flex:1;font-size:12px;padding:10px}.agencies-body main{padding-top:30px}.agency-lead{font-size:15px}.agency-toolbar{display:grid;gap:16px}.agency-toolbar>div{display:grid;grid-template-columns:1fr;gap:9px}.agency-metrics{gap:9px}.agency-metric{padding:15px}.agency-metric strong{font-size:22px}.agency-grid{grid-template-columns:1fr;gap:16px}.agency-card{padding:20px}.agency-card-title h2{font-size:23px}.agency-finances{gap:15px}.agency-finances dd{font-size:16px}.agency-panel{padding:20px}.agency-panel h2{font-size:21px}.agency-panel p{font-size:14px}.agency-panel .btn{width:100%}.agency-dialog{padding:24px 20px}.agency-dialog h2{font-size:23px}.agency-form-grid{grid-template-columns:1fr}.agencies-footer{display:grid;gap:8px}.agency-contextbar{padding:12px 18px;display:grid;gap:8px}.agency-contextbar label{display:grid;gap:5px}.agency-contextbar select{max-width:100%;width:100%;font-size:16px}.agency-global-link{min-height:30px;display:inline-flex;align-items:center}}
@media(max-width:350px){.agency-metrics{grid-template-columns:1fr}.agency-finances{grid-template-columns:1fr}}
