/* Agent directions reuse the existing navy palette and native liquid-glass surfaces. */
.agent-hub {
  --hub-glass-fill: rgb(16 26 43 / 82%);
  --hub-glass-line: rgb(143 199 255 / 27%);
  --hub-glass-sheen: linear-gradient(135deg, rgb(164 178 202 / 10%), transparent 42%, rgb(143 199 255 / 5%));
  position: relative;
  isolation: isolate;
  max-width: 1320px;
  margin-inline: auto;
  color: var(--ink);
}
.agent-hub::before {
  content: '';
  position: absolute;
  inset: 60px 0 30%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 12% 25%, rgb(36 100 231 / 13%), transparent 52%), radial-gradient(ellipse at 90% 70%, rgb(22 69 116 / 24%), transparent 46%);
}
.agent-hub *, .agent-hub *::before, .agent-hub *::after { box-sizing: border-box; }
.agent-hub [hidden] { display: none !important; }
.agent-hub h1, .agent-hub h2, .agent-hub h3 { font-family: Manrope, Arial, sans-serif; color: var(--ink); letter-spacing: -.025em; }
.agent-hub p { overflow-wrap: anywhere; }
.agent-hub .hub-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.agent-hub .hub-heading > div { min-width: 0; }
.agent-hub .hub-kicker { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--acid); }
.agent-hub h1 { font-size: clamp(26px, 2.7vw, 36px); font-weight: 650; line-height: 1.25; margin: 0 0 12px; text-wrap: balance; }
.agent-hub .hub-heading > div > p:last-child { margin: 0; max-width: 67ch; font-size: 14px; line-height: 1.75; color: var(--muted); }
.agent-hub .hub-heading > .button { flex-shrink: 0; margin-top: 24px; }
.agent-hub .hub-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.agent-hub .hub-card { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--hub-glass-line); border-radius: var(--radius); background: var(--hub-glass-sheen), var(--surface); box-shadow: inset 0 1px rgb(210 231 255 / 16%), 0 12px 30px -22px rgb(0 0 0 / 65%); }
.agent-hub .hub-card:nth-child(n+4) { grid-column: span 3; }
.agent-hub .hub-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.agent-hub .hub-symbol { display: inline-grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; color: var(--acid); border: 1px solid var(--hub-glass-line); border-radius: 14px; background: var(--raised); }
.agent-hub .hub-new { padding: 5px 9px; border: 1px solid var(--hub-glass-line); border-radius: 6px; background: var(--soft); color: var(--acid); font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .25px; white-space: nowrap; }
.agent-hub .hub-card h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; font-weight: 700; text-wrap: balance; }
.agent-hub .hub-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.agent-hub .hub-example { margin: 16px 0 24px; border-left: 2px solid var(--hub-glass-line); padding-left: 12px; font-size: 13px; line-height: 1.65; color: var(--ink); }
.agent-hub .hub-card-bottom { margin-top: auto; }
.agent-hub .hub-capability { display: inline-block; color: var(--warning); background: var(--warning-bg); padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 650; line-height: 1.6; }
.agent-hub .hub-capability-available { color: var(--acid); background: var(--raised); }
.agent-hub .hub-limit { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 10px 0 16px; }
.agent-hub .hub-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-hub .button { white-space: normal; overflow-wrap: anywhere; min-height: 44px; text-align: center; }
.agent-hub .hub-card-actions .button { width: 100%; justify-content: space-between; font-size: 12px; padding-inline: 12px; }
.agent-hub .button:disabled, .agent-hub .hub-text-button:disabled { cursor: not-allowed; opacity: .55; }
.agent-hub .hub-voice-picker { margin-top: 20px; padding: 24px; border: 1px solid var(--hub-glass-line); border-radius: var(--radius); background: var(--surface); }
.agent-hub .hub-voice-picker h2 { font-size: 20px; margin: 0 0 8px; }
.agent-hub .hub-voice-picker p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 16px; }
.agent-hub .hub-voice-controls { display: flex; align-items: stretch; gap: 12px; }
.agent-hub .hub-voice-controls select { flex: 1; min-width: 0; margin: 0; }
.agent-hub .hub-voice-controls .button { flex-shrink: 0; }
.agent-hub .hub-connections { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.agent-hub .hub-section-heading { display: flex; align-items: center; gap: 16px; }
.agent-hub .hub-section-heading > div { min-width: 0; }
.agent-hub .hub-section-heading h2 { font-size: 23px; line-height: 1.4; margin: 0 0 6px; }
.agent-hub .hub-section-heading p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.agent-hub .hub-storage-note { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 8px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.75; color: var(--muted); }
.agent-hub .hub-storage-note svg { margin-top: 2px; color: var(--acid); }
.agent-hub .hub-loading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; margin-bottom: 12px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.agent-hub .hub-provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.agent-hub .hub-provider { min-width: 0; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.agent-hub .hub-provider-heading { display: flex; align-items: center; gap: 10px; }
.agent-hub .hub-provider-icon { display: inline-flex; color: var(--acid); }
.agent-hub .hub-provider h3 { font-size: 18px; margin: 0; }
.agent-hub .hub-provider-description { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 10px 0 16px; }
.agent-hub .hub-provider-state { font-size: 12px; line-height: 1.6; padding: 8px 10px; margin: 0 0 20px; color: var(--muted); background: var(--soft); border-radius: 6px; }
.agent-hub .hub-provider-state.is-saved { color: var(--warning); background: var(--warning-bg); }
.agent-hub fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.agent-hub label { font-size: 12px; font-weight: 650; line-height: 1.6; margin: 16px 0 6px; color: var(--ink); }
.agent-hub fieldset > label:first-child { margin-top: 0; }
.agent-hub input, .agent-hub select { width: 100%; min-height: 46px; margin: 0; padding: 11px 12px; background: var(--soft); color: var(--ink); font-size: 14px; }
.agent-hub input::placeholder { font-size: 12px; }
.agent-hub input[aria-invalid="true"] { border-color: var(--danger); }
.agent-hub input:disabled, .agent-hub fieldset:disabled input { opacity: .6; cursor: not-allowed; }
.agent-hub .hub-field-hint { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 8px 0 0; }
.agent-hub .hub-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 16px; font-size: 11px; font-weight: 500; line-height: 1.7; color: var(--muted); cursor: pointer; }
.agent-hub .hub-consent input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 1px 0 0; }
.agent-hub .hub-provider-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.agent-hub .hub-provider-actions .button { font-size: 12px; }
.agent-hub .hub-text-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 10px 0; min-height: 44px; border: 0; background: transparent; color: var(--acid); font: 600 12px/1.6 Manrope, Arial, sans-serif; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; transition: color 160ms ease; }
.agent-hub .hub-text-button:hover { color: var(--ink); }
.agent-hub .hub-text-button:active { color: var(--focus); }
.agent-hub .hub-remove-key { color: var(--danger); }
.agent-hub .hub-form-feedback { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 12px 0 0; }
.agent-hub .hub-form-feedback:empty { margin: 0; }
.agent-hub .is-error { color: var(--danger); }
.agent-hub .hub-extra-connections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.agent-hub .hub-extra-connections p { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.agent-hub .hub-extra-connections b { color: var(--ink); font-size: 13px; }
.agent-hub .hub-guidance { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.agent-hub .hub-guidance h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.agent-hub .hub-guidance p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.agent-hub .hub-guidance .button { flex-shrink: 0; }
.agent-hub :is(button, input, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .agent-hub .hub-card { background: var(--hub-glass-sheen), var(--hub-glass-fill); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
@media (max-width: 1150px) {
  .agent-hub .hub-heading { flex-direction: column; gap: 16px; }
  .agent-hub .hub-heading > .button { margin-top: 0; }
  .agent-hub .hub-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-hub .hub-card, .agent-hub .hub-card:nth-child(n+4) { grid-column: auto; }
  .agent-hub .hub-card:last-child { grid-column: 1 / -1; }
  .agent-hub .hub-card:last-child .hub-card-actions .button { width: auto; }
  .agent-hub .hub-provider-grid { grid-template-columns: 1fr; }
  .agent-hub .hub-provider { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 24px; align-items: start; }
  .agent-hub .hub-provider-heading, .agent-hub .hub-provider-description, .agent-hub .hub-provider-state { grid-column: 1; }
  .agent-hub .hub-provider fieldset { grid-column: 2; grid-row: 1 / span 4; }
  .agent-hub .hub-form-feedback { grid-column: 2; }
  .agent-hub .hub-voice-controls { flex-direction: column; }
  .agent-hub .hub-voice-controls .button { align-self: flex-start; }
}
@media (max-width: 700px) {
  .agent-hub .hub-card-grid { grid-template-columns: 1fr; }
  .agent-hub .hub-card, .agent-hub .hub-card:nth-child(n+4) { grid-column: 1; padding: 20px; }
  .agent-hub .hub-heading { margin-bottom: 24px; }
  .agent-hub .hub-card-top { margin-bottom: 16px; }
  .agent-hub .hub-card h2 { font-size: 20px; }
  .agent-hub .hub-description, .agent-hub .hub-heading > div > p:last-child { font-size: 16px; }
  .agent-hub .hub-limit, .agent-hub .hub-example { font-size: 13px; }
  .agent-hub .hub-card-actions .button, .agent-hub .hub-card:last-child .hub-card-actions .button { width: 100%; }
  .agent-hub .hub-connections { margin-top: 32px; padding-top: 24px; }
  .agent-hub .hub-section-heading { align-items: flex-start; gap: 12px; }
  .agent-hub .hub-section-heading h2 { font-size: 20px; }
  .agent-hub .hub-symbol { flex-basis: 44px; width: 44px; height: 44px; }
  .agent-hub .hub-provider { display: block; padding: 20px; }
  .agent-hub input, .agent-hub select { font-size: 16px; }
  .agent-hub .hub-consent, .agent-hub .hub-field-hint { font-size: 12px; }
  .agent-hub .hub-extra-connections { grid-template-columns: 1fr; gap: 16px; }
  .agent-hub .hub-voice-picker { padding: 20px; }
  .agent-hub .hub-guidance { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 380px) {
  .agent-hub .hub-card, .agent-hub .hub-provider, .agent-hub .hub-voice-picker { padding: 16px; }
  .agent-hub .hub-section-heading > .hub-symbol { display: none; }
  .agent-hub .hub-provider-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .agent-hub *, .agent-hub *::before, .agent-hub *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .agent-hub::before { display: none; }
  .agent-hub .hub-card { background: var(--surface); border-color: #536784; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
