/* REH_AGENCY_ATTRIBUTION_V1 */
.agency-editor,.agency-attribution,.agency-directory-shell,.agency-edit-dialog{--ag-ink:var(--ink,#eaf0f5);--ag-muted:var(--muted,#a6b3c1);--ag-line:var(--line,#344356);--ag-paper:var(--panel,var(--paper,#182534));--ag-accent:var(--accent,#24b9a4);color:var(--ag-ink);font:inherit;box-sizing:border-box}
.reh-editor .agency-editor,.reh-editor .agency-edit-dialog{--ag-ink:#202522;--ag-muted:#63706a;--ag-line:#dce1dc;--ag-paper:#fff;--ag-accent:#226348}
.agency-editor{padding:22px 0;border-bottom:1px solid var(--ag-line);margin-bottom:24px}.agency-editor h3{margin:0 0 8px;font-size:20px}.agency-help{font-size:14px;line-height:1.55;color:var(--ag-muted);max-width:780px}.agency-controls{display:grid;gap:14px}.agency-controls label,.agency-edit-dialog label{display:grid;gap:7px;font-size:14px;font-weight:600}.agency-controls select,.agency-controls input,.agency-edit-dialog input,.agency-edit-dialog textarea{font:inherit;box-sizing:border-box;min-width:0;max-width:100%;width:100%;padding:10px 12px;min-height:44px;border:1px solid var(--ag-line);border-radius:8px;background:var(--ag-paper);color:var(--ag-ink)}.agency-controls input::placeholder{color:var(--ag-muted)}.agency-controls select:disabled{opacity:.6}.agency-controls button,.agency-edit-dialog button,.agency-directory-shell .agency-button{font:inherit;min-height:44px;padding:9px 13px;border:1px solid var(--ag-line);border-radius:8px;color:var(--ag-ink);background:var(--ag-paper);cursor:pointer}.agency-controls button:disabled,.agency-edit-dialog button:disabled{opacity:.5;cursor:wait}.agency-actions{display:flex;flex-wrap:wrap;gap:9px}.agency-controls [hidden],.agency-edit-dialog [hidden]{display:none!important}.agency-status-error{color:#df786b!important}.agency-editor [role=status]{font-size:14px}.agency-edit-dialog{max-width:min(620px,94vw);width:620px;padding:24px;border:1px solid var(--ag-line);border-radius:16px;background:var(--ag-paper);max-height:88dvh;overflow:auto}.agency-edit-dialog::backdrop{background:#071018b8}.agency-edit-dialog form{display:grid;gap:15px}.agency-edit-dialog h2{margin:0}.agency-edit-dialog small{font-weight:400;color:var(--ag-muted);font-size:12px}.agency-edit-dialog .agency-primary{background:var(--ag-accent);color:#fff;border-color:var(--ag-accent)}.agency-edit-dialog img{max-width:120px;max-height:80px;object-fit:contain}.agency-account-results{display:grid;gap:7px;max-height:180px;overflow:auto}.agency-controls :focus-visible,.agency-edit-dialog :focus-visible,.agency-attribution a:focus-visible{outline:3px solid var(--ag-accent);outline-offset:3px}.agency-attribution{display:flex;gap:16px;align-items:center;padding:17px 0;border-top:1px solid var(--ag-line);overflow-wrap:anywhere}.agency-attribution-visuals{display:flex;align-items:center;gap:12px;flex-shrink:0}.agency-logo{display:block;width:88px;height:48px;object-fit:contain;background:#fff;border-radius:5px;padding:5px;box-sizing:border-box}.agency-agent-photo{display:block;flex-shrink:0;width:46px;height:46px;object-fit:cover;border-radius:50%}.agency-attribution-copy{display:grid;gap:3px;min-width:0}.agency-attribution-copy>a{color:inherit;text-decoration:none}.agency-name{font-size:14px;font-weight:750}.agency-person{font-size:14px;font-weight:550}.agency-attribution-copy>span{font-size:12px;color:var(--ag-muted)}.agency-contacts{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px;margin-top:4px}.agency-contacts a,.agency-back{color:var(--ag-accent);text-decoration:none}.agency-attribution.reh-listing-identity{margin-top:10px;font-family:inherit}.agency-attribution.is-compact .agency-contacts{display:none}.agency-directory-page{margin:0;background:#101b29;color:#eaf0f5;font:16px/1.5 Inter,system-ui,sans-serif}.agency-directory-shell{max-width:920px;margin:0 auto;padding:30px 22px 70px}.agency-directory-shell h1{font-size:30px;line-height:1.2;letter-spacing:-.6px;margin:22px 0 14px}.agency-profile-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.agency-profile-list>a{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid var(--ag-line);border-radius:10px;color:inherit;text-decoration:none}
@media(prefers-color-scheme:light){.agency-directory-page{background:#f4f6f7;color:#202a34}.agency-directory-shell,.agency-directory-shell .agency-editor,.agency-directory-page .agency-edit-dialog{--ag-ink:#202a34;--ag-muted:#5e6d78;--ag-line:#d6dee5;--ag-paper:#fff;--ag-accent:#087b6b}}
@media(max-width:600px){.agency-attribution{gap:10px;align-items:flex-start}.agency-attribution-visuals{gap:7px}.agency-logo{width:70px;height:40px}.agency-agent-photo{width:38px;height:38px}.agency-contacts{flex-direction:column;gap:5px}.agency-edit-dialog{padding:18px}.agency-actions>button{flex:1 1 auto}.agency-directory-shell{padding:20px 16px 50px}}

.agency-edit-dialog.is-legacy{--ag-ink:#202522;--ag-muted:#63706a;--ag-line:#dce1dc;--ag-paper:#fff;--ag-accent:#226348}

.agency-brand{display:block;width:180px;max-width:65vw;height:auto;max-height:60px;object-fit:contain;margin-bottom:22px}html[data-reh-theme=light] .agency-directory-page{background:#f4f6f7;color:#202a34}html[data-reh-theme=light] .agency-directory-shell,html[data-reh-theme=light] .agency-directory-shell .agency-editor,html[data-reh-theme=light] .agency-directory-page .agency-edit-dialog{--ag-ink:#202a34;--ag-muted:#5e6d78;--ag-line:#d6dee5;--ag-paper:#fff;--ag-accent:#087b6b}html[data-reh-theme=dark] .agency-directory-page{background:#101b29;color:#eaf0f5}html[data-reh-theme=dark] .agency-directory-shell,html[data-reh-theme=dark] .agency-directory-shell .agency-editor,html[data-reh-theme=dark] .agency-directory-page .agency-edit-dialog{--ag-ink:#eaf0f5;--ag-muted:#a6b3c1;--ag-line:#344356;--ag-paper:#182534;--ag-accent:#24b9a4}
