:root { color-scheme: light; }
.agency-account-shell { width:min(760px,calc(100% - 32px)); margin:0 auto; padding:56px 0 72px; }
.agency-account-card { background:#fff; border:1px solid #d8e0dd; border-radius:16px; padding:28px; box-shadow:0 10px 28px rgba(13,27,42,.07); }
.agency-account-card h1,.agency-account-card h2 { margin-top:0; }
.agency-account-eyebrow { margin:0 0 8px; color:#39779b; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.agency-account-card label { display:block; margin:16px 0 6px; font-weight:700; }
.agency-account-card input { width:100%; min-height:46px; border:1px solid #b9c9ce; border-radius:8px; padding:10px 12px; font:inherit; background:#fff; }
.agency-account-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:20px; }
.agency-account-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:0; border-radius:8px; padding:10px 16px; background:#39779b; color:#fff !important; font-weight:800; text-decoration:none; cursor:pointer; }
.agency-account-button:hover { background:#2f6687; }
.agency-account-link { color:#2f6687; font-weight:700; }
.agency-account-note,.agency-account-muted { color:#5f6d70; line-height:1.55; }
.agency-account-alert { margin:16px 0; border-radius:9px; padding:12px 14px; line-height:1.45; }
.agency-account-alert.error { background:#fff0ec; border:1px solid #e7b5aa; }
.agency-account-alert.success { background:#edf8ef; border:1px solid #b7d8bf; }
.agency-account-alert.info { background:#eef6fa; border:1px solid #bfd5df; }
.agency-account-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
.agency-account-summary > div { border:1px solid #d8e0dd; border-radius:10px; padding:14px; background:#fbfcfb; }
.agency-account-summary strong { display:block; margin-bottom:5px; }
.agency-status { display:inline-block; padding:5px 9px; border-radius:999px; background:#eef4f6; font-size:12px; font-weight:800; }
@media (max-width:640px){ .agency-account-shell{padding-top:32px}.agency-account-card{padding:20px}.agency-account-summary{grid-template-columns:1fr} }

/* Step 47n — structured agency profile management */
.agency-account-shell-wide { width:min(1120px,calc(100% - 32px)); }
.agency-profile-page-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:22px; }
.agency-profile-page-header h1 { margin-bottom:8px; }
.agency-profile-dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:22px 0; }
.agency-profile-dashboard-card { display:flex; flex-direction:column; gap:7px; min-height:150px; padding:18px; border:1px solid #cbd9dd; border-radius:12px; background:#fbfdfd; color:#163345 !important; text-decoration:none; }
.agency-profile-dashboard-card:hover { border-color:#39779b; box-shadow:0 5px 16px rgba(13,27,42,.07); }
.agency-profile-dashboard-card strong { font-size:17px; color:#17394d; }
.agency-profile-dashboard-card span { color:#5f6d70; line-height:1.45; }
.agency-profile-dashboard-card em { margin-top:auto; color:#2f6687; font-style:normal; font-size:13px; font-weight:800; }
.agency-account-button-secondary { background:#eef4f6; color:#25495e !important; border:1px solid #c4d3d8; }
.agency-account-button-secondary:hover { background:#e2edf1; }
.agency-account-button-compact { min-height:36px; padding:7px 11px; font-size:13px; }
.agency-account-card textarea,
.agency-account-card select { width:100%; border:1px solid #b9c9ce; border-radius:8px; padding:10px 12px; font:inherit; background:#fff; }
.agency-account-card textarea { resize:vertical; min-height:120px; }
.agency-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
.agency-field-help { margin:7px 0 0; color:#68777a; font-size:13px; line-height:1.45; }
.agency-field-optional { margin-left:6px; color:#718083; font-weight:500; font-size:12px; }
.agency-profile-section { margin-top:28px; padding-top:22px; border-top:1px solid #e2e9e7; }
.agency-profile-section h2 { margin-bottom:14px; }
.agency-capability-group { margin-top:24px; }
.agency-capability-group h2 { margin-bottom:10px; padding-bottom:8px; border-bottom:1px solid #dce6e4; font-size:19px; }
.agency-capability-table { border:1px solid #d8e0dd; border-radius:10px; overflow:hidden; }
.agency-capability-row { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:18px; align-items:center; padding:12px 14px; border-bottom:1px solid #e6ecea; }
.agency-capability-row:last-child { border-bottom:0; }
.agency-capability-row:nth-child(even) { background:#fbfcfb; }
.agency-capability-row small,
.agency-service-area-row small,
.agency-policy-row small { display:block; margin-top:4px; color:#68777a; line-height:1.35; }
.agency-service-area-list { border:1px solid #d8e0dd; border-radius:10px; overflow:hidden; }
.agency-service-area-row { display:grid; grid-template-columns:minmax(0,1fr) 190px auto auto; gap:10px; align-items:center; padding:11px 12px; border-bottom:1px solid #e6ecea; background:#fff; }
.agency-service-area-row:last-child { border-bottom:0; }
.agency-service-area-row:nth-child(even) { background:#fbfcfb; }
.agency-service-area-search-results .agency-service-area-row { grid-template-columns:minmax(0,1fr) 190px auto; }
.agency-inline-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; }
.agency-area-search { max-width:720px; margin-bottom:14px; }
.agency-policy-list { border:1px solid #d8e0dd; border-radius:10px; overflow:hidden; }
.agency-policy-row { display:grid; grid-template-columns:minmax(0,1fr) 190px 220px; gap:16px; align-items:end; padding:14px; border-bottom:1px solid #e6ecea; }
.agency-policy-row:last-child { border-bottom:0; }
.agency-policy-row:nth-child(even) { background:#fbfcfb; }
.agency-policy-row label { margin:0; }
.agency-policy-row select,.agency-policy-row input { margin-top:6px; }
.agency-account-card code { background:#f2f6f5; padding:2px 5px; border-radius:4px; }
@media (max-width:800px){
  .agency-profile-page-header{flex-direction:column}
  .agency-profile-dashboard-grid,.agency-form-grid{grid-template-columns:1fr}
  .agency-capability-row{grid-template-columns:1fr}
  .agency-service-area-row,.agency-service-area-search-results .agency-service-area-row{grid-template-columns:1fr}
  .agency-policy-row{grid-template-columns:1fr}
  .agency-inline-form{grid-template-columns:1fr}
}

/* Participation and tracked-call commercial state */
.agency-participation-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
.agency-participation-summary-grid > div { border:1px solid #d8e0dd; border-radius:10px; padding:14px; background:#fbfcfb; }
.agency-participation-summary-grid strong { display:block; margin-bottom:6px; color:#17394d; }
.agency-participation-summary-grid span { color:#4d6065; line-height:1.4; }
.agency-participation-flow { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.agency-participation-flow > div { border:1px solid #dce6e4; border-radius:10px; padding:15px; background:#fbfdfd; }
.agency-participation-flow strong { display:block; margin-bottom:6px; color:#17394d; }
.agency-participation-flow span { display:block; color:#5f6d70; line-height:1.45; }
.agency-participation-history { border:1px solid #d8e0dd; border-radius:10px; overflow:hidden; }
.agency-participation-history > div { padding:12px 14px; border-bottom:1px solid #e6ecea; background:#fff; }
.agency-participation-history > div:last-child { border-bottom:0; }
.agency-participation-history span { margin-left:8px; color:#718083; font-size:12px; }
.agency-participation-history small { display:block; margin-top:5px; color:#68777a; line-height:1.4; }
@media (max-width:800px){ .agency-participation-summary-grid,.agency-participation-flow{grid-template-columns:1fr} }
