.agent-nav-hidden{display:none!important}
.agent-domain-intro{line-height:1.7;margin:0 0 16px;color:var(--muted)}
.agent-dns-records{display:grid;gap:12px}.agent-dns-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.agent-dns-pair{grid-template-columns:1fr}}
.agent-dns-record{border:1px solid var(--border);border-radius:8px;padding:14px;margin:0;background:var(--field-bg);min-width:0}
.agent-dns-record>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.agent-dns-record>header span{font-size:12px;color:var(--muted)}
.agent-dns-record label,.agent-admin-dialog .agent-dns-record label{display:block;margin:12px 0 0;font-size:12px;color:var(--muted)}
.agent-dns-value{display:flex;align-items:center;gap:8px;margin-top:6px;min-width:0}
.agent-dns-value input,.agent-admin-dialog .agent-domain-config input{box-sizing:border-box;min-width:0;width:100%;padding:10px;border:1px solid var(--border);border-radius:6px;background:var(--solid-surface);color:var(--text);font:inherit}
.agent-dns-value input{font-family:ui-monospace,monospace;font-size:13px}
.agent-dns-value button{flex:none;padding:8px 12px!important;font-size:12px;white-space:nowrap}
.agent-domain-hint{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.agent-domain-check{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:18px}
.agent-domain-check span,.agent-dns-feedback{font-size:12px;color:var(--muted)}
.agent-dns-feedback:empty{display:none}
.agent-domain-config{border:1px solid var(--border);border-radius:8px;padding:16px;margin-top:22px}
.agent-domain-config summary{cursor:pointer;font-size:14px;font-weight:500}.agent-domain-config summary span{font-weight:400;color:var(--muted);font-size:12px;margin-left:8px}
.agent-admin-dialog .agent-domain-config label{display:block;margin:18px 0 12px;font-size:13px}.agent-domain-config input{display:block;margin-top:8px}
.agent-domain-config p,.agent-domain-config small{color:var(--muted);font-size:12px;line-height:1.7}
.agent-admin-dialog .agent-domain-config footer{margin-top:14px;justify-content:space-between;flex-wrap:wrap}
.agent-admin-dialog .agent-domain>header{align-items:flex-start;margin-bottom:16px}.agent-admin-dialog .agent-domain>header strong{overflow-wrap:anywhere}.agent-admin-dialog .agent-domain>header>div{min-width:0}
.agent-admin-dialog .agent-domain>header p{color:var(--muted);font-size:12px;margin:6px 0 0}
.agent-domain-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:18px}
.agent-nav-label{padding:8px 10px;color:var(--muted);font-size:12px}
#agentSectionNav .agent-nav-back{margin-top:18px;border-top:1px solid var(--border);border-radius:0;padding-top:18px}
.agent-page .team-heading{margin-bottom:28px}.agent-page .team-heading h1{font-size:25px;font-weight:600}.agent-page .team-heading p{margin:0 0 6px}
.agent-page .team-card{margin-bottom:20px}.agent-page .team-card>header{gap:16px}.agent-page .team-card>header p{margin:5px 0 0;color:var(--muted);font-size:12px}
.agent-page .team-table-wrap{max-width:100%}.agent-page .team-form{max-width:680px}.agent-page .team-paging{align-items:center}
.agent-page .team-table-wrap td:last-child .team-text-action+.team-text-action{margin-left:12px}
.agent-page .agent-button{background:var(--field-bg);border:1px solid var(--border);color:var(--text);box-shadow:none}.agent-page .agent-button:hover{background:var(--hover-bg)}
.agent-page .agent-task-summary{display:flex;align-items:center;gap:48px;padding:24px}.agent-task-summary span{display:block;font-size:13px;color:var(--muted)}.agent-task-summary strong{display:block;font-size:26px;font-weight:600;margin-top:10px}.agent-task-summary .team-actions{margin-left:auto}
.agent-page .agent-select-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.agent-select-row input[type=search]{flex:1;min-width:160px;max-width:340px}
.agent-balance-line{display:flex;flex-wrap:wrap;gap:24px;margin:0 0 24px;font-size:13px;color:var(--muted)}.agent-balance-line strong{font-size:16px;font-weight:600;color:var(--text);margin-left:8px}
.agent-badge{font-size:12px;background:var(--field-bg);border:1px solid var(--border);border-radius:5px;padding:4px 9px;white-space:nowrap;color:var(--muted)}
.agent-domain h2{overflow-wrap:anywhere}.agent-domain-content{padding:20px 24px;font-size:13px}.agent-domain-content>p{margin:0}.agent-domain footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding:16px 24px}.agent-domain footer>span{font-size:12px;color:var(--muted)}
.agent-domain-proof{margin-top:0}.agent-domain-proof summary{cursor:pointer;font-weight:500;margin-bottom:16px}
.agent-domain-empty{padding:36px 24px}.agent-domain-empty h2{margin:0;font-size:16px;font-weight:500}.agent-domain-empty p{margin:10px 0 22px;color:var(--muted);font-size:13px}
.agent-steps ol{list-style:none;counter-reset:steps;margin:0;padding:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.agent-steps li{counter-increment:steps;position:relative;padding-left:36px}.agent-steps li:before{content:counter(steps);position:absolute;left:0;top:0;width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--border);border-radius:50%;color:var(--muted);font-size:12px}.agent-steps strong{display:block;font-size:13px;font-weight:500;line-height:24px}.agent-steps li span{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:6px}
.agent-brand-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:28px}.agent-brand-row img{width:64px;height:64px;object-fit:contain;border:1px solid var(--border);border-radius:10px;background:var(--solid-surface)}.agent-brand-row>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.agent-brand-row small{flex-basis:100%;color:var(--muted)}
.agent-dialog{width:min(660px,calc(100% - 28px))}.agent-dialog textarea{box-sizing:border-box;width:100%;min-height:140px;background:var(--field-bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:12px;resize:vertical}.agent-dialog .agent-media{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.agent-dialog .agent-media img,.agent-dialog .agent-media video{width:100%;max-height:160px;object-fit:contain}.agent-dialog .agent-media audio{width:100%}
.agent-brand-active .recharge-columns{grid-template-columns:1fr}.agent-brand-active .sidebar-brand strong{overflow-wrap:anywhere}
.agent-admin-dialog{--text:var(--admin-text,#242832);--muted:var(--admin-muted,#6b7280);--border:var(--admin-border,#e3e8f0);--field-bg:var(--admin-soft,#f5f6f8);--solid-surface:var(--admin-surface,#fff);color:var(--text);background:var(--solid-surface);border:1px solid var(--border);border-radius:12px;width:min(680px,calc(100% - 32px));padding:24px;max-height:85dvh;overflow:auto}
.agent-admin-dialog::backdrop{background:#0006}.agent-admin-dialog header,.agent-admin-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.agent-admin-dialog footer{justify-content:flex-end;margin-top:24px}.agent-admin-dialog h2{margin:0;font-size:20px}.agent-admin-dialog button{padding:9px 13px;border:1px solid var(--border);background:var(--field-bg);color:var(--text);border-radius:7px}.agent-admin-dialog label{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0}.agent-admin-dialog input[type=checkbox]{appearance:none;flex-shrink:0;width:38px;height:22px;border:1px solid var(--border);border-radius:14px;background:var(--admin-muted,#999);cursor:pointer;position:relative;transition:background .18s}.agent-admin-dialog input[type=checkbox]:checked{background:#6656b5}.agent-admin-dialog input[type=checkbox]::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:white;transition:transform .18s}.agent-admin-dialog input[type=checkbox]:checked::after{transform:translateX(16px)}.agent-admin-dialog input[type=checkbox]:focus-visible{outline:2px solid #8874dc;outline-offset:3px}.agent-admin-dialog .agent-domain{border-bottom:1px solid var(--border);padding:16px 0}.agent-admin-dialog .agent-domain code{background:var(--field-bg);overflow-wrap:anywhere}.agent-admin-dialog [role=alert]{color:#b24949}.agent-admin-domains-button{margin-left:10px}

@media(max-width:700px){.agent-page .team-heading h1{font-size:23px}.agent-page .team-heading{gap:16px}.agent-page .agent-task-summary{flex-wrap:wrap;gap:24px}.agent-task-summary .team-actions{margin-left:0;width:100%}.agent-page .agent-domain footer{align-items:flex-start;flex-direction:column}.agent-steps ol{grid-template-columns:1fr;gap:20px}.agent-page input:not([type=checkbox]),.agent-page select,.agent-dialog input{font-size:16px}.agent-dialog .agent-media{grid-template-columns:1fr 1fr}}

.agent-model-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.agent-page .agent-switch-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px;font-size:13px}
.agent-page input.agent-switch{appearance:none;flex:none;width:36px;height:21px;min-height:0;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--muted);position:relative;cursor:pointer;transition:background .16s}
.agent-page input.agent-switch:after{content:"";position:absolute;top:2px;left:2px;width:15px;height:15px;background:#fff;border-radius:50%;transition:transform .16s}
.agent-page input.agent-switch:checked{background:var(--accent,#6656b5)}.agent-page input.agent-switch:checked:after{transform:translateX(15px)}
.agent-page input.agent-switch:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.agent-page input.agent-switch:disabled{opacity:.5;cursor:wait}
.agent-model-hint{font-size:12px;color:var(--muted);margin:9px 0 20px;line-height:1.6}.agent-page .agent-model-name{min-width:200px;max-width:340px;white-space:normal;overflow-wrap:anywhere}
.agent-listed{color:var(--text);background:var(--hover-bg)}.agent-form-feedback{margin-left:12px;color:var(--muted);font-size:12px}
#agentAnnouncement textarea{width:100%;resize:vertical;min-height:140px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--field-bg);color:var(--text);line-height:1.7}
.agent-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.agent-price-heading{font-size:13px;font-weight:600;margin:6px 0 14px}.agent-price-grid label{min-width:0}@media(max-width:480px){.agent-price-grid{grid-template-columns:1fr;gap:0}}
