.agency-directory{--agency-muted:#756b80}.agency-directory *,.agency-profile-details *{min-width:0}.agency-directory-intro{display:flex;gap:32px;padding:18px 24px;margin-bottom:24px;border:1px solid var(--line,#e3dce9);border-radius:16px;background:#efebf4;color:#61516e;font-size:14px;font-weight:600;flex-wrap:wrap}.agency-directory-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}.agency-filter-panel{display:grid;gap:18px;padding:22px;background:#fff;border:1px solid var(--line,#e3dce9);border-radius:18px;box-shadow:var(--shadow-card,0 7px 24px #3420400d)}.agency-filter-panel h2{margin:0;font-size:17px}.agency-filter-panel .field{display:grid;gap:8px;font-size:13px}.agency-filter-panel input,.agency-filter-panel select{width:100%;max-width:100%;box-sizing:border-box}.agency-filter-panel .btn{width:100%;justify-content:center}.agency-filter-help{font-size:13px;line-height:1.6;color:var(--agency-muted);padding:0 8px}.agency-results-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 16px}.agency-results-heading h2{font-size:18px;margin:0}.agency-results-heading>span{font-size:12px;color:var(--agency-muted)}.agency-compare-bar,.agency-owner-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border:1px dashed #d7ccdf;border-radius:14px;margin-bottom:18px;background:#fcfaff}.agency-compare-bar strong,.agency-owner-strip strong{display:block;font-size:14px}.agency-compare-bar span,.agency-owner-strip span{display:block;font-size:12px;line-height:1.5;color:var(--agency-muted);margin-top:4px;overflow-wrap:anywhere}.agency-compare-bar .btn{font-size:12px;min-height:36px;padding:8px 12px}.agency-result{display:grid;grid-template-columns:minmax(0,1fr) 200px;background:white;border:1px solid #e6deed;border-radius:20px;box-shadow:var(--shadow-card,0 7px 24px #3420400d);margin-bottom:18px;overflow:hidden}.agency-result-main{padding:24px}.agency-result-heading{display:flex;align-items:center;gap:14px;margin-bottom:16px}.agency-result-heading .avatar{width:54px;height:54px;border-radius:14px}.agency-result-heading h2{font-size:20px;margin:0 0 5px}.agency-result-heading h2 a{text-decoration:none;color:#493b56}.agency-result-heading h2 a:hover{text-decoration:underline}.agency-result-heading p{margin:0 0 5px;font-size:13px;color:#665c72;overflow-wrap:anywhere}.agency-muted{font-size:12px;color:var(--agency-muted)}.agency-tags{display:flex;flex-wrap:wrap;gap:6px}.agency-tags span{display:inline-block;font-size:12px;background:#f1edf7;color:#62506f;padding:5px 9px;border-radius:7px;overflow-wrap:anywhere}.agency-summary{font-size:13px;line-height:1.6;color:#72677e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.agency-card-facts{display:grid;gap:10px;margin:16px 0 0;font-size:12px}.agency-card-facts div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px}.agency-card-facts dt{font-weight:600;color:#544861}.agency-card-facts dd{margin:0;color:#756b80;overflow-wrap:anywhere}.agency-result-next{display:flex;flex-direction:column;gap:12px;padding:24px 20px;background:#fcfafc;border-left:1px solid #f0eaf3}.agency-eyebrow{font-size:10px;font-weight:700;letter-spacing:.06em;color:#7c7087}.agency-result-next strong{font-size:16px;color:#544260;overflow-wrap:anywhere}.agency-result-next small{font-size:12px;line-height:1.6;color:var(--agency-muted);flex:1}.agency-result-next .btn{width:100%;max-width:100%;font-size:12px;min-height:40px;justify-content:center;white-space:normal;text-align:center;box-sizing:border-box;overflow-wrap:anywhere}.agency-result-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 24px;border-top:1px solid #f0eaf3;font-size:11px;color:var(--agency-muted)}.agency-result-footer label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:600;color:#5d4c68}.agency-result-footer input{width:17px;height:17px;accent-color:var(--brand,#655283)}.agency-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--agency-muted);padding:12px 0}.agency-pagination>div{display:flex;align-items:center;gap:10px}.agency-pagination .btn{font-size:12px;padding:8px 12px}.agency-directory .btn:disabled{opacity:.5;cursor:not-allowed}.agency-profile-details dl{display:grid;gap:18px}.agency-profile-details dt{font-size:13px;color:#756b80;margin-bottom:5px}.agency-profile-details dd{margin:0;overflow-wrap:anywhere}.agency-profile-details p{white-space:pre-wrap;overflow-wrap:anywhere}.agency-profile-details h3{font-size:15px;margin-top:24px}.agency-profile-details small{display:block;color:#756b80;line-height:1.6}.agency-comparison-scroll{overflow:auto}.agency-comparison table{width:100%;border-collapse:collapse;min-width:580px;table-layout:fixed}.agency-comparison th,.agency-comparison td{text-align:left;vertical-align:top;padding:16px;border:1px solid #e6deed;font-size:13px;overflow-wrap:anywhere;white-space:normal}.agency-comparison thead th{background:#f0ebf6;font-size:15px}.agency-comparison .btn{white-space:normal}#editor:has(.agency-comparison){width:min(1000px,calc(100vw - 32px));max-width:1000px}#agency-directory-profile fieldset{margin-bottom:24px}#agency-directory-profile small{display:block;color:#756b80;line-height:1.6}#agency-directory-profile [hidden]{display:none!important}#agency-directory-profile input{max-width:100%;min-width:0}
.agency-owner-strip .agency-tap-number{display:inline-flex;gap:6px;align-items:center;margin-top:9px;padding:6px 9px;border-radius:8px;background:#f0ebf6;color:#584568;font-size:12px}.agency-owner-strip .agency-tap-number strong{display:inline;font-size:12px;letter-spacing:.04em}.tap-agency-badge-dialog textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:1100px){.agency-directory-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.agency-result{grid-template-columns:minmax(0,1fr)}.agency-result-next{border-left:0;border-top:1px solid #f0eaf3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agency-result-next .agency-eyebrow,.agency-result-next strong,.agency-result-next small{grid-column:1/-1}.agency-compare-bar{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.agency-directory-layout{grid-template-columns:minmax(0,1fr)}.agency-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.agency-filter-panel h2,.agency-filter-panel .field:first-of-type{grid-column:1/-1}.agency-directory-intro{gap:12px;font-size:12px;padding:16px}.agency-results-heading,.agency-owner-strip,.agency-result-footer,.agency-pagination{align-items:flex-start;flex-direction:column}.agency-result-main{padding:18px}.agency-result-next{padding:18px}.agency-result-heading h2{font-size:18px}.agency-compare-bar .actions{flex-wrap:wrap}.agency-pagination>div{width:100%;justify-content:space-between}.agency-filter-help{margin-bottom:24px}}
.agency-result-heading .initials,.agency-result-heading .profile-avatar{width:54px;height:54px;border-radius:14px;font-size:17px;object-fit:cover;flex-shrink:0}.agency-result-footer .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.agency-result>.profile-directory-cover{grid-column:1/-1;height:112px;border-radius:19px 19px 0 0}
.agency-result:has(>.profile-directory-cover) .agency-result-main{padding-top:0}
.agency-result:has(>.profile-directory-cover) .agency-result-heading{position:relative;align-items:flex-start;margin-top:-26px;gap:18px}
.agency-result:has(>.profile-directory-cover) .agency-result-heading>div{padding-top:40px}
.agency-result:has(>.profile-directory-cover) .agency-result-heading .initials,.agency-result:has(>.profile-directory-cover) .agency-result-heading .profile-avatar{width:80px;height:80px;flex:none;border:5px solid white;box-sizing:border-box;border-radius:19px;font-size:24px;background:#f4eff9;box-shadow:0 6px 16px #39223f20;object-fit:contain}
.agency-result:has(>.profile-directory-cover) .agency-result-heading>a{flex-shrink:0;border-radius:19px;background:white}
@media(max-width:700px){.agency-result>.profile-directory-cover{height:88px}.agency-result:has(>.profile-directory-cover) .agency-result-heading{gap:12px;margin-top:-22px}.agency-result:has(>.profile-directory-cover) .agency-result-heading>div{padding-top:34px}.agency-result:has(>.profile-directory-cover) .agency-result-heading .initials,.agency-result:has(>.profile-directory-cover) .agency-result-heading .profile-avatar{width:66px;height:66px;font-size:20px;border-width:4px;border-radius:16px}}

.tap-agency-badge-preview{display:flex;justify-content:center;align-items:center;min-height:480px;margin:12px 0 20px;padding:18px;border:1px solid var(--line,#e3dce9);border-radius:16px;background:linear-gradient(135deg,#fbfaff,#f1edfa)}.tap-agency-badge-preview>a{transition:transform .18s ease,box-shadow .18s ease}.tap-agency-badge-preview>a:hover,.tap-agency-badge-preview>a:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px #30244224}.tap-agency-badge-preview svg{display:block;width:min(320px,100%);max-width:100%;height:auto}.tap-agency-badge-dialog textarea{min-height:132px;resize:vertical}
#agency-directory-profile .checkbox-field{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;font-size:14px;line-height:1.55;cursor:pointer;color:#493b56}#agency-directory-profile .checkbox-field:last-of-type{margin-bottom:0}#agency-directory-profile .checkbox-field input[type="checkbox"]{display:block;flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:#7961d4}#agency-directory-profile .checkbox-field span{flex:1;min-width:0}
.tap-agency-badge-preview{min-height:190px;padding:28px;background:#f4f1f8}.tap-agency-badge-preview.is-dark{background:#1c1823}.tap-agency-badge-preview svg{width:520px;max-width:100%;height:auto;filter:drop-shadow(0 10px 20px #21162d14)}.tap-agency-badge-dialog details{margin-top:20px}.tap-agency-badge-dialog summary{cursor:pointer;font-weight:600;margin-bottom:12px}.tap-agency-badge-dialog .actions{flex-wrap:wrap}.tap-agency-badge-dialog small{color:var(--muted,#786a88)}@media(max-width:540px){.tap-agency-badge-preview{min-height:130px;padding:18px 8px}.tap-agency-badge-dialog .actions .btn{flex:1}}
.tap-agency-badge-preview.is-profile svg{width:320px}.tap-agency-badge-dialog [aria-label="Badge colour"]{margin-top:12px}
