/* Agent Service page — content-only styles (page-scoped under .eb-agent-service).
   Header, footer, and global nav come from the real production shell
   (includes/home_v3_shell.php + assets/ui/home-v3 + assets/css/ebarter-ui.css).
   Visual tokens match design/ui/pages/15_agent_service/prototype/style.css,
   the approved baseline in design/ui/pages/15_agent_service/screenshots/review/. */

.eb-agent-service {
  --as-ink: #171b26;
  --as-muted: #667085;
  --as-line: #e8eaef;
  --as-soft: #f7f8fa;
  --as-amber: #f5b82e;
  --as-amber-soft: #fff8e8;
  --as-green: #20a464;
  --as-green-soft: #eefaf4;
  --as-blue: #2d67e8;
  --as-radius: 14px;
  --as-radius-lg: 22px;
  --as-shadow: 0 7px 24px rgba(23, 27, 38, .06);
  color: var(--as-ink);
  font-size: 14px;
  line-height: 1.45;
}
.eb-agent-service button, .eb-agent-service select { font: inherit; }
.eb-agent-service button, .eb-agent-service a { -webkit-tap-highlight-color: transparent; }
.eb-agent-service button { color: inherit; }
.eb-agent-service a { color: inherit; text-decoration: none; }
.eb-agent-service svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.eb-agent-service .page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.eb-agent-service .intro-copy { max-width: 760px; }
.eb-agent-service .title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.eb-agent-service .title-row h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; }
.eb-agent-service .title-row > span { display: inline-flex; min-height: 28px; align-items: center; padding: 0 11px; border: 1px solid #8bd2ac; border-radius: 999px; color: #12874d; background: #f4fcf7; font-size: 12px; font-weight: 600; }
.eb-agent-service .intro-copy p { margin: 10px 0 5px; color: var(--as-muted); font-size: 15px; line-height: 1.55; }
.eb-agent-service .intro-copy small { color: #98a2b3; font-size: 11px; }
.eb-agent-service .summary-pills { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.eb-agent-service .summary-pills > div { min-height: 52px; display: grid; grid-template-columns: 22px auto; align-items: center; column-gap: 8px; padding: 8px 15px; border: 1px solid var(--as-line); border-radius: 14px; background: #fff; }
.eb-agent-service .summary-pills svg { grid-row: span 2; color: var(--as-green); }
.eb-agent-service .summary-pills b { line-height: 1; font-size: 16px; font-weight: 600; }
.eb-agent-service .summary-pills span { color: var(--as-muted); font-size: 11px; }

.eb-agent-service .service-toolbar { min-height: 72px; margin-top: 24px; padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid #eadfbf; border-radius: var(--as-radius); background: linear-gradient(100deg, #fffaf0, #fff); }
.eb-agent-service .toolbar-copy { min-width: 0; display: flex; align-items: center; gap: 12px; margin-right: auto; }
.eb-agent-service .toolbar-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #9b6a06; background: #ffefbd; }
.eb-agent-service .toolbar-copy div { display: grid; }
.eb-agent-service .toolbar-copy b { font-weight: 600; }
.eb-agent-service .toolbar-copy span { color: var(--as-muted); font-size: 12px; }

.eb-agent-service .as-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 0 18px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.eb-agent-service .as-btn-primary { border-color: var(--as-amber); background: var(--as-amber); }
.eb-agent-service .as-btn-primary:hover { background: #e9a91f; border-color: #e9a91f; }
.eb-agent-service .as-btn-secondary { border-color: #dfe3e9; background: #fff; }
.eb-agent-service .as-btn-secondary:hover, .eb-agent-service .as-btn-outline:hover { border-color: var(--as-amber); color: #8a5b00; background: var(--as-amber-soft); }
.eb-agent-service .as-btn-outline { width: 100%; border-color: var(--as-line); background: #fff; }
.eb-agent-service .full { width: 100%; }

.eb-agent-service .workspace { margin-top: 20px; display: grid; grid-template-columns: 300px minmax(440px, 1fr) 390px; gap: 18px; align-items: start; }
.eb-agent-service .workspace > * { min-width: 0; }
.eb-agent-service .filter-column { display: grid; gap: 16px; }
.eb-agent-service .panel, .eb-agent-service .agent-card, .eb-agent-service .results-note, .eb-agent-service .process-grid article { border: 1px solid var(--as-line); border-radius: var(--as-radius); background: #fff; }
.eb-agent-service .panel { padding: 18px; }
.eb-agent-service .panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.eb-agent-service .panel h2, .eb-agent-service .results-heading h2, .eb-agent-service .detail-heading h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.eb-agent-service .panel p, .eb-agent-service .results-heading p, .eb-agent-service .detail-heading p { margin: 3px 0 0; color: var(--as-muted); font-size: 12px; }
.eb-agent-service .panel-heading > svg { color: var(--as-muted); }
.eb-agent-service .source-card { position: relative; width: 100%; min-height: 70px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 10px; align-items: center; margin-bottom: 9px; padding: 8px; text-align: left; border: 1px solid var(--as-line); border-radius: 12px; background: #fff; cursor: pointer; }
.eb-agent-service .source-card.is-selected { border-color: var(--as-amber); background: var(--as-amber-soft); }
.eb-agent-service .source-thumb { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 600; }
.eb-agent-service .source-thumb.building { background: linear-gradient(145deg, #bb8b34, #6b4d18); }
.eb-agent-service .source-thumb.car { background: linear-gradient(145deg, #456f98, #283f58); }
.eb-agent-service .source-thumb.generic { background: linear-gradient(145deg, #7a8699, #48505c); }
.eb-agent-service .source-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.eb-agent-service .source-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.eb-agent-service .source-card small { color: var(--as-muted); }
.eb-agent-service .source-card i { width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; color: #fff; background: var(--as-blue); }
.eb-agent-service .source-card.is-selected i { display: grid; }
.eb-agent-service .source-card i svg { width: 14px; height: 14px; }
.eb-agent-service .source-panel .as-btn-outline { margin-top: 2px; }
.eb-agent-service .source-empty { padding: 14px; border: 1px dashed var(--as-line); border-radius: 12px; color: var(--as-muted); font-size: 12px; text-align: center; }
.eb-agent-service .source-empty a { color: #8a5b00; font-weight: 600; }
.eb-agent-service .chip-list { display: grid; gap: 7px; }
.eb-agent-service .filter-chip { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.eb-agent-service .filter-chip:hover { background: var(--as-soft); }
.eb-agent-service .filter-chip.is-active { color: #865800; border-color: #efcf76; background: var(--as-amber-soft); }
.eb-agent-service .filter-chip span { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: var(--as-muted); background: #f2f4f7; font-size: 11px; }
.eb-agent-service .preference-panel { display: grid; gap: 11px; }
.eb-agent-service .preference-panel h2 { margin-bottom: 3px; }
.eb-agent-service .preference-panel label { display: flex; align-items: center; gap: 9px; color: #344054; font-size: 13px; cursor: pointer; }
.eb-agent-service .preference-panel input { width: 16px; height: 16px; accent-color: var(--as-amber); }

.eb-agent-service .results-column { min-width: 0; }
.eb-agent-service .results-heading { min-height: 50px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.eb-agent-service .results-heading h2 span { display: inline-flex; margin-left: 7px; padding: 4px 8px; border-radius: 999px; color: var(--as-muted); background: #f3f4f6; font-size: 11px; font-weight: 500; vertical-align: middle; }
.eb-agent-service .results-heading label { display: flex; align-items: center; gap: 8px; color: var(--as-muted); font-size: 12px; }
.eb-agent-service .results-heading select { min-width: 130px; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--as-line); border-radius: 12px; background: #fff; color: var(--as-ink); }
.eb-agent-service .agent-list { display: grid; gap: 12px; }
.eb-agent-service .agent-card { position: relative; width: 100%; min-height: 142px; display: grid; grid-template-columns: 68px minmax(0, 1fr) 62px 18px; gap: 14px; align-items: center; padding: 16px; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.eb-agent-service .agent-card:hover { transform: translateY(-1px); border-color: #cfd4dc; box-shadow: var(--as-shadow); }
.eb-agent-service .agent-card.is-selected { border-color: var(--as-amber); box-shadow: 0 0 0 1px rgba(245, 184, 46, .16); }
.eb-agent-service .agent-card.is-selected::before { content: ""; position: absolute; top: -1px; right: 14px; left: 14px; height: 3px; border-radius: 0 0 5px 5px; background: var(--as-amber); }
.eb-agent-service .agent-card[hidden] { display: none; }
.eb-agent-service .agent-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: #fff; font-size: 18px; font-weight: 600; }
.eb-agent-service .avatar-green { background: linear-gradient(145deg, #2c9f6c, #18744b); }
.eb-agent-service .avatar-blue { background: linear-gradient(145deg, #5287d6, #2e5da2); }
.eb-agent-service .avatar-amber { background: linear-gradient(145deg, #e7aa3c, #a96c0c); }
.eb-agent-service .avatar-violet { background: linear-gradient(145deg, #856ed4, #5943a8); }
.eb-agent-service .agent-content { min-width: 0; display: grid; gap: 5px; }
.eb-agent-service .agent-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.eb-agent-service .agent-title b { font-size: 16px; font-weight: 600; }
.eb-agent-service .agent-title i { display: inline-flex; align-items: center; gap: 4px; color: var(--as-green); font-size: 11px; font-style: normal; font-weight: 500; }
.eb-agent-service .agent-title i svg { width: 14px; height: 14px; }
.eb-agent-service .agent-company { color: #475467; font-size: 12px; }
.eb-agent-service .agent-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--as-muted); font-size: 11px; }
.eb-agent-service .agent-meta em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; }
.eb-agent-service .agent-meta svg { width: 14px; height: 14px; }
.eb-agent-service .agent-meta em:first-child { color: #9c6800; }
.eb-agent-service .badge-row { display: flex; flex-wrap: wrap; gap: 5px; }
.eb-agent-service .badge-row i { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 999px; color: #147a49; background: var(--as-green-soft); font-size: 10px; font-style: normal; font-weight: 500; }
.eb-agent-service .match-score { display: grid; justify-items: center; align-content: center; width: 58px; height: 58px; border-radius: 50%; color: var(--as-green); background: conic-gradient(var(--as-green) 0 92%, #e9edf2 92% 100%); position: relative; }
.eb-agent-service .match-score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.eb-agent-service .match-score b, .eb-agent-service .match-score small { position: relative; z-index: 1; line-height: 1.1; }
.eb-agent-service .match-score b { font-size: 13px; font-weight: 600; }
.eb-agent-service .match-score small { color: var(--as-muted); font-size: 8px; }
.eb-agent-service .card-arrow { width: 17px; height: 17px; color: var(--as-muted); }
.eb-agent-service .results-note { display: flex; gap: 10px; margin-top: 12px; padding: 13px 15px; background: #f8fafc; }
.eb-agent-service .results-note > svg { flex: 0 0 auto; color: var(--as-green); }
.eb-agent-service .results-note p { min-width: 0; margin: 0; color: var(--as-muted); font-size: 11px; }
.eb-agent-service .results-note b { color: #344054; font-weight: 600; }

.eb-agent-service .detail-column { position: sticky; top: 90px; }
.eb-agent-service .detail-panel { border: 1px solid var(--as-line); border-radius: var(--as-radius-lg); background: #fff; box-shadow: var(--as-shadow); padding: 18px; }
.eb-agent-service .detail-heading { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--as-line); }
.eb-agent-service .detail-heading > span { align-self: flex-start; padding: 4px 7px; border-radius: 999px; color: #7c6840; background: #fff7df; font-size: 9px; font-weight: 600; }
.eb-agent-service .selected-agent { display: flex; gap: 13px; align-items: center; padding: 18px 0 14px; }
.eb-agent-service .selected-agent .agent-avatar { flex: 0 0 auto; }
.eb-agent-service .selected-agent h3 { margin: 0; font-size: 19px; font-weight: 600; }
.eb-agent-service .selected-agent p { margin: 2px 0 5px; color: var(--as-muted); font-size: 12px; }
.eb-agent-service .selected-agent div > span { display: inline-flex; align-items: center; gap: 4px; color: var(--as-green); font-size: 11px; }
.eb-agent-service .selected-agent div > span svg { width: 14px; height: 14px; }
.eb-agent-service .detail-rating { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--as-green-soft); }
.eb-agent-service .detail-rating > b { font-size: 28px; line-height: 1; color: var(--as-green); font-weight: 600; }
.eb-agent-service .detail-rating > span { display: grid; }
.eb-agent-service .detail-rating strong { color: #dfa90f; letter-spacing: 1px; font-size: 12px; }
.eb-agent-service .detail-rating small { margin-top: 2px; color: var(--as-muted); font-size: 10px; }
.eb-agent-service .detail-list { margin: 16px 0 0; }
.eb-agent-service .detail-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; }
.eb-agent-service .detail-list dt { color: var(--as-muted); font-size: 11px; }
.eb-agent-service .detail-list dd { margin: 0; text-align: right; font-size: 11px; font-weight: 600; }
.eb-agent-service .permission-box { display: flex; gap: 10px; margin-top: 14px; padding: 13px; border: 1px solid #bee5d1; border-radius: 12px; background: #f4fcf7; }
.eb-agent-service .permission-box > svg { flex: 0 0 auto; color: var(--as-green); }
.eb-agent-service .permission-box b { font-size: 12px; font-weight: 600; }
.eb-agent-service .permission-box p { margin: 3px 0 0; color: var(--as-muted); font-size: 10px; line-height: 1.45; }
.eb-agent-service .detail-actions { display: grid; gap: 8px; margin-top: 16px; }
.eb-agent-service .owner-note { display: flex; gap: 8px; margin: 14px 0 0; color: var(--as-muted); font-size: 10px; line-height: 1.5; }
.eb-agent-service .owner-note svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--as-green); }
.eb-agent-service .owner-note span { min-width: 0; }

.eb-agent-service .process-section { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--as-line); }
.eb-agent-service .section-title { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.eb-agent-service .section-title span { color: #a36d00; font-size: 12px; font-weight: 600; }
.eb-agent-service .section-title h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.2; font-weight: 600; }
.eb-agent-service .section-title > p { max-width: 480px; margin: 0; color: var(--as-muted); font-size: 13px; }
.eb-agent-service .process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.eb-agent-service .process-grid article { position: relative; min-height: 180px; padding: 22px; }
.eb-agent-service .process-grid article > span { position: absolute; top: 14px; right: 16px; color: #d0d5dd; font-size: 30px; font-weight: 600; }
.eb-agent-service .process-grid article > svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #8f6106; background: var(--as-amber-soft); }
.eb-agent-service .process-grid h3 { margin: 16px 0 7px; font-size: 16px; font-weight: 600; }
.eb-agent-service .process-grid p { margin: 0; color: var(--as-muted); font-size: 12px; }

/* Agent Request V1 — real (non-mock) request form + owner status list. */
.eb-agent-service .agent-request-panel, .eb-agent-service .my-requests-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--as-line); border-radius: var(--as-radius); background: #fff; }
.eb-agent-service .real-data-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 0 10px; border: 1px solid #8bd2ac; border-radius: 999px; color: #12874d; background: #f4fcf7; font-size: 11px; font-weight: 600; white-space: nowrap; }
.eb-agent-service .agent-request-form { display: grid; gap: 14px; margin-top: 14px; }
.eb-agent-service .agent-request-form > * { min-width: 0; }
.eb-agent-service .agent-request-form label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 600; }
.eb-agent-service .agent-request-form label > span { color: var(--as-muted); font-weight: 400; }
.eb-agent-service .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eb-agent-service .agent-request-form select, .eb-agent-service .agent-request-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--as-line); border-radius: 10px; background: #fff; color: var(--as-ink); font: inherit; font-weight: 400; resize: vertical; }
.eb-agent-service .agent-request-form select:focus, .eb-agent-service .agent-request-form textarea:focus { outline: 2px solid var(--as-amber); outline-offset: 1px; }
.eb-agent-service .checkbox-row { display: flex !important; flex-direction: row; align-items: center; gap: 9px; font-weight: 400 !important; }
.eb-agent-service .checkbox-row input { width: 16px; height: 16px; accent-color: var(--as-amber); }
.eb-agent-service .fee-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--as-soft); color: var(--as-muted); font-size: 12px; line-height: 1.5; }
.eb-agent-service .request-flash { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.eb-agent-service .request-flash-error { border: 1px solid #f3a3a3; background: #fff3f3; color: #a52121; }
.eb-agent-service .request-flash-success { border: 1px solid #8bd2ac; background: #f4fcf7; color: #12874d; }
.eb-agent-service .my-requests-list { display: grid; gap: 8px; margin-top: 12px; }
.eb-agent-service .my-request-row { display: grid; gap: 6px; padding: 11px 14px; border: 1px solid var(--as-line); border-radius: 10px; font-size: 13px; }
.eb-agent-service .my-request-summary { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 12px; align-items: center; }
.eb-agent-service .my-request-listing { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-agent-service .my-request-agent { color: var(--as-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-agent-service .my-request-status { display: inline-flex; min-height: 26px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #f2f4f7; color: var(--as-muted); }
.eb-agent-service .my-request-status.status-pending { background: var(--as-amber-soft); color: #8a5b00; }
.eb-agent-service .my-request-status.status-accepted, .eb-agent-service .my-request-status.status-completed { background: var(--as-green-soft); color: #12874d; }
.eb-agent-service .my-request-status.status-declined, .eb-agent-service .my-request-status.status-cancelled, .eb-agent-service .my-request-status.status-expired { background: #fff3f3; color: #a52121; }
.eb-agent-service .my-request-date { color: var(--as-muted); font-size: 12px; white-space: nowrap; }
.eb-agent-service .my-request-response { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding-top: 6px; border-top: 1px solid #eceef1; }
.eb-agent-service .my-request-note { color: #344054; font-size: 12px; line-height: 1.5; }
.eb-agent-service .my-request-cancel-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid #eceef1; }
.eb-agent-service .my-request-cancel-form input[type="text"] { flex: 1; min-width: 160px; height: 34px; padding: 0 10px; border: 1px solid var(--as-line); border-radius: 8px; font: inherit; font-size: 12px; }
.eb-agent-service .my-request-cancel-form input[type="text"]:focus { outline: 2px solid var(--as-amber); outline-offset: 1px; }
.eb-agent-service .my-request-cancel-form .as-btn { min-height: 34px; padding: 0 14px; font-size: 12px; }

@media (max-width: 700px) {
  .eb-agent-service .field-grid { grid-template-columns: 1fr; }
  .eb-agent-service .my-request-summary { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .eb-agent-service .workspace { grid-template-columns: 270px minmax(420px, 1fr); }
  .eb-agent-service .detail-column { position: static; grid-column: 1 / -1; }
  .eb-agent-service .detail-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .eb-agent-service .detail-heading { grid-column: 1 / -1; }
  .eb-agent-service .selected-agent, .eb-agent-service .detail-rating, .eb-agent-service .detail-list { grid-column: 1; }
  .eb-agent-service .permission-box, .eb-agent-service .detail-actions, .eb-agent-service .owner-note { grid-column: 2; }
  .eb-agent-service .permission-box { align-self: end; }
}

@media (max-width: 960px) {
  .eb-agent-service .page-intro { display: grid; }
  .eb-agent-service .summary-pills { justify-content: flex-start; }
  .eb-agent-service .workspace { grid-template-columns: 1fr; }
  .eb-agent-service .filter-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eb-agent-service .preference-panel { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); align-items: center; }
  .eb-agent-service .preference-panel h2 { grid-column: 1 / -1; }
  .eb-agent-service .detail-column { grid-column: auto; }
}

@media (max-width: 700px) {
  .eb-agent-service .title-row h1 { font-size: 27px; }
  .eb-agent-service .summary-pills { display: grid; grid-template-columns: repeat(3, 1fr); }
  .eb-agent-service .summary-pills > div { min-width: 0; padding: 8px; grid-template-columns: 18px auto; }
  .eb-agent-service .summary-pills span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .eb-agent-service .service-toolbar { align-items: stretch; flex-wrap: wrap; }
  .eb-agent-service .toolbar-copy { width: 100%; }
  .eb-agent-service .service-toolbar > .as-btn { flex: 1 1 150px; }
  .eb-agent-service .filter-column { grid-template-columns: 1fr; }
  .eb-agent-service .preference-panel { grid-column: auto; grid-template-columns: 1fr; }
  .eb-agent-service .preference-panel h2 { grid-column: auto; }
  .eb-agent-service .results-heading { align-items: flex-end; }
  .eb-agent-service .results-heading label { display: grid; gap: 3px; }
  .eb-agent-service .agent-card { grid-template-columns: 52px minmax(0, 1fr) 18px; min-height: 0; padding: 14px; }
  .eb-agent-service .agent-avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 15px; }
  .eb-agent-service .match-score { position: absolute; top: 12px; right: 38px; width: 46px; height: 46px; }
  .eb-agent-service .agent-content { padding-top: 38px; margin-left: -64px; }
  .eb-agent-service .agent-title { padding-right: 54px; }
  .eb-agent-service .card-arrow { align-self: start; margin-top: 4px; }
  .eb-agent-service .detail-panel { display: block; }
  .eb-agent-service .section-title { display: grid; gap: 10px; }
  .eb-agent-service .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .eb-agent-service .summary-pills { grid-template-columns: 1fr; }
  .eb-agent-service .summary-pills > div { grid-template-columns: 22px auto 1fr; }
  .eb-agent-service .summary-pills svg { grid-row: auto; }
  .eb-agent-service .summary-pills b { margin-right: 2px; }
  .eb-agent-service .service-toolbar { padding: 12px; }
  .eb-agent-service .toolbar-copy span { display: none; }
  .eb-agent-service .results-heading { display: grid; }
  .eb-agent-service .results-heading label { grid-template-columns: auto 1fr; align-items: center; }
  .eb-agent-service .results-heading select { width: 100%; }
  .eb-agent-service .agent-card { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px 12px; }
  .eb-agent-service .agent-avatar { width: 46px; height: 46px; }
  .eb-agent-service .agent-content { margin-left: 0; padding-top: 0; }
  .eb-agent-service .agent-title { min-height: 46px; align-content: flex-start; padding-right: 52px; }
  .eb-agent-service .agent-title b { font-size: 15px; }
  .eb-agent-service .match-score { top: 12px; right: 12px; }
  .eb-agent-service .card-arrow { display: none; }
  .eb-agent-service .badge-row i:nth-child(n+3) { display: none; }
}

/* Agent Public Discovery / Real Agent Directory V1 — real directory card +
   filter panel + detail page layout. Additive only; nothing above this
   point was modified. The old .agent-card rules assumed a clickable
   <button> with a match-score circle and JS-driven detail-panel switching,
   which no longer applies — real cards use this .real-agent-card modifier
   instead, on an <article>, with two real action links. */
.eb-agent-service .real-agent-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; min-height: 0; padding: 16px; cursor: default; }
.eb-agent-service .real-agent-card .agent-content { display: flex; flex-direction: column; gap: 6px; }
.eb-agent-service .agent-bio-excerpt { margin: 2px 0 0; color: var(--as-muted); font-size: 12px; line-height: 1.5; }
.eb-agent-service .agent-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.eb-agent-service .agent-card-actions .as-btn { flex: 1 1 auto; min-width: 130px; }

.eb-agent-service .directory-filter-panel { display: grid; gap: 12px; }
.eb-agent-service .directory-filter-panel .field { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 600; }
.eb-agent-service .directory-filter-panel input, .eb-agent-service .directory-filter-panel select { width: 100%; padding: 10px 12px; border: 1px solid var(--as-line); border-radius: 10px; background: #fff; color: var(--as-ink); font: inherit; font-weight: 400; }
.eb-agent-service .directory-filter-panel input:focus, .eb-agent-service .directory-filter-panel select:focus { outline: 2px solid var(--as-amber); outline-offset: 1px; }

.eb-agent-service .directory-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.eb-agent-service .directory-pagination .as-btn { min-width: 40px; padding: 8px 12px; text-align: center; }

.eb-agent-service .agent-not-found-panel { max-width: 560px; margin: 48px auto; padding: 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.eb-agent-service .agent-profile-detail { max-width: 640px; margin: 0 auto; }
.eb-agent-service .agent-bio-full { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--as-line); }
.eb-agent-service .agent-bio-full h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.eb-agent-service .agent-bio-full p { margin: 0; color: var(--as-ink); font-size: 13px; line-height: 1.6; white-space: pre-line; }

/* Agent Public Profile Quality / Availability V1 — availability badge +
   disabled request action. Additive only. */
.eb-agent-service .badge-row i.availability-badge-on { color: #147a49; background: var(--as-green-soft); }
.eb-agent-service .badge-row i.availability-badge-off { color: #8a5200; background: #fff1da; }
.eb-agent-service .agent-card-actions .as-btn.is-disabled,
.eb-agent-service .detail-actions .as-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.eb-agent-service .availability-note { margin: 4px 0 0; color: var(--as-muted); font-size: 12px; }
.eb-agent-service .unavailable-message { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff1da; color: #8a5200; font-size: 13px; }
.eb-agent-service .unavailable-message svg { flex: 0 0 auto; width: 18px; height: 18px; }

@media (max-width: 720px) {
  .eb-agent-service .real-agent-card { flex-direction: column; }
  .eb-agent-service .agent-card-actions .as-btn { min-width: 0; }
}
