/* Account cards: neutral surfaces, clear hierarchy and concentrated color. */
.pool-route {
  --accent: #6b36ef;
  --pool-text: #202025;
  --pool-muted: #73737e;
  --pool-border: #e7e7eb;
  --pool-canvas: #fbfbfc;
}
.pool-route .app-content { background: var(--pool-canvas); }
.pool-route .workspace-header { background: white; border-bottom-color: #eeeeef; }
.pool-route .sidebar { background: #f7f7f8; border-color: #eaeaed; }
.pool-route .sidebar .symbol { color: #202025; }
.pool-route .sidebar>.brand { color: #18181b; }
.pool-route .nav-group>a { color: #6c6c76; }
.pool-route .nav-group>a[aria-current] { color: #202025; background: #eaeaec; font-weight: 570; }
.pool-route .nav-group>a[aria-current] svg { stroke-width: 1.8px; }
.pool-route .workspace-main { max-width: none; padding: 28px 24px 40px; }
.pool-route .page-heading { margin-bottom: 23px; }
.pool-route .page-heading h1 { font-size: 1.75rem; color: #1a1a20; font-weight: 530; letter-spacing: -.055em; }
.pool-route .page-heading .primary { color: white; background: #25252c; border-color: #25252c; border-radius: 8px; padding-inline: 14px; min-height: 38px; font-size: .81rem; }
.pool-route .page-heading .primary:hover { background: #45414e; box-shadow: 0 3px 10px #22222218; }
.pool-route :focus-visible { outline: 2px solid #7946f4; outline-offset: 3px; }
.pool-command { margin-bottom: 0; }
.pool-state-tabs { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #e6e6ea; margin-bottom: 20px; }
.pool-state-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 0 14px; border: 0; background: transparent; font-size: .81rem; color: #777780; white-space: nowrap; transition: color .18s; }
.pool-state-tabs button:hover { color: #202025; }
.pool-state-tabs button::after { content: ''; position: absolute; height: 2px; border-radius: 2px; bottom: -1px; left: 0; right: 0; background: transparent; transition: background .18s; }
.pool-state-tabs button[aria-pressed=true] { color: #232329; font-weight: 580; }
.pool-state-tabs button[aria-pressed=true]::after { background: #27272f; }
.pool-state-tabs button>span { display: grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 5px; font-size: .67rem; line-height: 1; background: #ededf0; color: #71717c; font-weight: 500; }
.pool-state-tabs button[aria-pressed=true]>span { color: #5c30ca; background: #ebe3ff; }
.pool-state-tabs [data-action='pool-status:attention']>span { color: #bc5600; background: #fff0d9; }
.pool-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.pool-search { position: relative; display: inline-flex; align-items: center; flex: 1 1 200px; min-width: 0; color: #777783; }
.pool-search>svg { position: absolute; left: 11px; pointer-events: none; width: 14px; }
.pool-route .pool-search input { min-height: 36px; width: 100%; background: white; border: 1px solid #e1e1e7; border-radius: 7px; padding: 7px 10px 7px 33px; font-size: .76rem; color: #34343e; transition: border-color .18s; }
.pool-route .pool-search input:hover { border-color: #bfbfc9; }
.pool-route input::placeholder { color: #777783; }
.pool-filter-row .select-wrap select { min-height: 36px; border-color: #e1e1e7; border-radius: 7px; background: white; color: #64646f; font-size: .74rem; padding-left: 10px; }
.pool-filter-row .select-wrap select:hover { border-color: #bfbfc9; }
.pool-provider-filters { display: flex; gap: 2px; padding: 3px; border: 1px solid #e5e5ea; border-radius: 7px; background: #f0f0f3; }
.pool-provider-filters button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border: 0; border-radius: 4px; min-height: 28px; background: transparent; color: #777781; font-size: .72rem; transition: color .16s,background .16s,box-shadow .16s; }
.pool-provider-filters button[aria-pressed=true] { background: white; color: #2f2f37; box-shadow: 0 1px 3px #22222212; }
.pool-provider-filters button:hover { color: #1e1e25; }
.pool-provider-filters .provider-logo { width: 13px; height: 13px; }
.pool-resultbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 17px 1px 13px; min-height: 48px; }
.pool-select-all { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: #6c6c77; cursor: pointer; }
.pool-select-all>span { color: #767682; margin-left: 2px; font-size: .7rem; }
.pool-select-all input,.pool-select input { appearance: none; flex: none; display: grid; place-items: center; width: 15px; height: 15px; padding: 0; margin: 0; border: 1px solid #d3d3db; border-radius: 4px; background: white; cursor: pointer; transition: border-color .15s,background .15s; }
.pool-select-all input:hover,.pool-select input:hover { border-color: #9c88cb; }
.pool-select-all input:checked,.pool-select-all input:indeterminate,.pool-select input:checked { background: #6b36ef; border-color: #6b36ef; }
.pool-select-all input:checked::after,.pool-select input:checked::after { content: ''; width: 5px; height: 8px; border: solid white; border-width: 0 1.8px 1.8px 0; transform: translateY(-1px) rotate(45deg); }
.pool-select-all input:indeterminate::after { content: ''; width: 8px; border-top: 2px solid white; }
.pool-selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pool-selection-actions>b { font-size: .73rem; color: #6031cb; }
.pool-selection-actions .btn.quiet { font-size: .72rem; min-height: 26px; padding: 3px 6px; }
.pool-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .67rem; color: #767682; }
.legend-marker { height: 9px; border-left: 1px solid #777785; }
.account-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; align-items: start; }
.pool-card { --meter-color: #7441f5; color: #26262e; border: 1px solid #e3e3e9; border-radius: 14px; background: white; min-width: 0; overflow: hidden; box-shadow: 0 2px 3px #1c173003; transition: border-color .2s,box-shadow .2s; animation: pool-enter .3s var(--ease) both; }
.pool-card:hover { border-color: #d2d2dc; box-shadow: 0 5px 20px #29203c07; }
.pool-card.is-selected { border-color: #8355ef; box-shadow: 0 0 0 1px #8355ef; }
.pool-card-header { display: flex; align-items: center; gap: 8px; padding: 14px 13px 11px; }
.pool-provider-icon { width: 30px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 8px; background: #fafafa; border: 1px solid #ececf0; }
.provider-claude .pool-provider-icon { background: #fff6f0; border-color: #fae9de; }
.pool-provider-icon .provider-logo { width: 22px; height: 22px; }
.pool-identity { min-width: 0; }
.pool-identity h2 { color: #202027; font-size: .875rem; line-height: 1.35; font-weight: 570; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-provider-line { display: flex; align-items: center; gap: 7px; color: #797985; font-size: .7rem; line-height: 1.3; margin-top: 5px; }
.pool-plan { display: inline-flex; align-items: center; color: #fff; border: 0; border-radius: 4px; background: #6d32f5; padding: 2px 6px; font-size: .6875rem; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.pool-plan[data-plan^="max" i] { background: #d91c60; }
.pool-plan[data-plan^="plus" i] { background: #1460f3; }
.pool-plan[data-plan^="team" i] { background: #00875b; }
.pool-header-end { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.pool-select { display: grid; place-items: center; padding: 4px; margin-right: -4px; }
.pool-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; line-height: 1.2; font-size: .6875rem; font-weight: 530; white-space: nowrap; color: var(--tone); background: var(--tone-bg); }
.pool-status>i { width: 5px; height: 5px; flex: none; background: currentColor; border-radius: 50%; }
.tone-green { --tone: #008852; --tone-bg: #e6faf0; --tone-edge: #bbead0; }
.tone-amber { --tone: #bc5c00; --tone-bg: #fff2df; --tone-edge: #f2d39f; }
.tone-red { --tone: #de2856; --tone-bg: #fff0f3; --tone-edge: #f4bdcb; }
.tone-blue { --tone: #6631d1; --tone-bg: #f2edff; --tone-edge: #ddd0ff; }
.tone-gray { --tone: #83838e; --tone-bg: #f2f2f5; --tone-edge: #e1e1e8; }
.pool-model-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 13px 10px; min-height: 31px; }
.pool-models { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.pool-models>span { padding: 2px 5px; background: #f5f5f7; border-radius: 4px; color: #686873; font-size: .6875rem; line-height: 1.4; white-space: nowrap; }
.pool-activity { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: .68rem; color: #9a9aa5; font-variant-numeric: tabular-nums; }
.pool-activity b { color: #595965; font-weight: 500; }
.pool-slots { display: flex; align-items: center; gap: 2px; margin-right: 5px; }
.pool-slots i { width: 3px; height: 11px; background: #e9e9ee; border-radius: 2px; }
.pool-slots i.working { background: #20bd7a; }
.pool-windows { display: grid; gap: 9px; margin: 0 13px; padding: 12px 10px; background: #f8f8fa; border-radius: 8px; }
.pool-window { min-width: 0; display: grid; grid-template-columns: 39px minmax(0,1fr) 38px; grid-template-rows: 17px auto; align-items: center; gap: 2px 7px; }
.window-label { grid-column: 1; grid-row: 1; color: #71717e; font-size: .6875rem; font-weight: 430; }
.window-value { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; font-size: .875rem; line-height: 1.2; font-weight: 570; letter-spacing: -.02em; color: #26262f; font-variant-numeric: tabular-nums; white-space: nowrap; }
.window-value small { color: #9898a2; font-weight: 430; font-size: .625rem; margin-left: 2px; letter-spacing: 0; }
.pool-meter { grid-column: 2; grid-row: 1; position: relative; height: 4px; width: 100%; border-radius: 4px; background: #e8e8ef; align-self: center; }
.pool-meter i { display: block; height: 4px; border-radius: 4px; background: var(--meter-color); transform-origin: left; animation: pool-meter-in .5s var(--ease) both; }
.pool-meter b { position: absolute; top: -2px; bottom: -2px; border-left: 1px solid #b1aec3; }
.quota-amber .pool-meter i { background: #ff990a; }
.quota-red .pool-meter i { background: #fc3867; }
.quota-gray .pool-meter i { background: #b5b3c5; }
.quota-amber .window-value { color: #be6304; }
.quota-red .window-value { color: #de2856; }
.quota-blue .window-value,.quota-amber:has(.window-value:not(:has(small))) .window-value { font-size: .6875rem; letter-spacing: 0; }
.no-window .window-value { font-size: .6875rem; color: #82828f; letter-spacing: 0; font-weight: 430; }
.no-window .pool-meter { background: #eaeaf0; opacity: .65; }
.window-reset { grid-column: 2 / 4; grid-row: 2; color: #757581; font-size: .6875rem; line-height: 1.4; min-height: 15px; overflow-wrap: anywhere; }
.pool-health-note { display: flex; align-items: center; gap: 5px; min-height: 41px; margin: 0 14px; padding: 7px 0 0; color: var(--tone); font-size: .6875rem; line-height: 1.45; }
.pool-health-note>svg { flex: none; width: 12px; height: 12px; }
.state-ready .pool-health-note { color: #767682; }
.state-ready .pool-health-note>svg { color: #14b16c; }
.pool-card-meta { display: flex; justify-content: space-between; align-items: end; gap: 8px; padding: 9px 14px 0; }
.pool-card-meta>div { min-width: 0; display: grid; gap: 4px; }
.pool-card-meta>div:last-child { text-align: right; }
.pool-card-meta span { color: #777783; font-size: .6875rem; }
.pool-card-meta code { color: #676774; font-size: .6875rem; overflow-wrap: anywhere; letter-spacing: -.025em; }
.pool-card-meta b { color: #454551; font-size: .86rem; font-weight: 500; line-height: 1.4; }
.pool-card-meta .pool-revenue { font-size: 1.15rem; color: #292932; letter-spacing: -.04em; font-weight: 530; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pool-connection-row { display: flex; justify-content: flex-end; padding: 3px 14px 10px; }
.pool-connection-row.has-network { justify-content: space-between; align-items: flex-end; gap: 8px; padding-top: 9px; }
.pool-connection-row .pool-network { display: grid; gap: 3px; min-width: 0; }
.pool-connection-row .pool-network span { color: #777783; font-size: .6875rem; }
.pool-connection-row .pool-network code { color: #676774; font-size: .6875rem; overflow-wrap: anywhere; }
.pool-expand { display: flex; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #747480; font-size: .72rem; line-height: 1.5; transition: color .16s; }
.pool-expand:hover { color: #6b36ef; }
.pool-expand svg { width: 12px; height: 12px; transition: transform .2s; }
.pool-expand[aria-expanded=true] svg { transform: rotate(180deg); }
.pool-expanded { margin: 0 13px 12px; border-radius: 8px; background: #f8f8fa; padding: 8px 13px 10px; animation: pool-enter .18s var(--ease) both; }
.pool-expanded[hidden] { display: none; }
.pool-expanded .pair { padding: 7px 0; font-size: .73rem; gap: 12px; }
.pool-expanded .pair>span { color: #777784; }
.pool-expanded .pair b { color: #666673; font-size: .73rem; }
.pool-expanded .pair code { font-size: .73rem; }
.pool-expanded .pair b>small { display: block; color: #9d9da7; font-size: .67rem; margin-top: 2px; font-weight: 450; }
.pool-freshness { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 5px; }
.pool-freshness>span { color: #8b8b96; font-size: .65rem; }
.pool-freshness .btn.quiet { font-size: .66rem; color: #6b36ef; padding: 3px 4px; min-height: 27px; }
.pool-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #efeff3; padding: 8px 9px; background: #fff; }
.pool-card-actions>div { display: flex; align-items: center; gap: 2px; }
.pool-card-actions .btn { gap: 4px; min-height: 29px; border-radius: 5px; padding: 4px 6px; font-size: .6875rem; font-weight: 480; }
.pool-card-actions .btn svg { width: 14px; height: 14px; }
.pool-card-actions .pool-test { color: #6a36da; background: #f1eaff; border-color: transparent; }
.pool-card-actions .pool-test:hover:not(:disabled) { background: #e7dcff; color: #5723bf; }
.pool-card.state-auth .pool-test,.pool-card.state-pending .pool-test { background: #713ce7; color: white; }
.pool-card.state-auth .pool-test:hover,.pool-card.state-pending .pool-test:hover { background: #5e2dc9; }
.pool-card-actions .pool-test:disabled { background: #f4f4f6; border-color: transparent; color: #b1b1bb; opacity: 1; }
.pool-card-actions .pool-pause { color: #797984; border-color: transparent; background: transparent; }
.pool-card-actions .pool-pause:hover { color: #34343e; background: #f3f3f6; }
.pool-card-actions .pool-settings { border-color: #e5e5eb; color: #62626e; background: white; }
.pool-card-actions .pool-settings:hover { background: #f7f7fa; border-color: #ceced8; }
.pool-empty { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; padding: 60px 25px; border: 1px dashed #dedee6; border-radius: 12px; color: #a1a1ad; background: white; }
.pool-empty h2 { font-size: 1.1rem; font-weight: 500; color: #555563; margin-top: 13px; }
.pool-empty p { font-size: .8rem; color: #93939f; margin: 8px 0 18px; }
@keyframes pool-spin { to { transform: rotate(1turn); } }
@keyframes pool-enter { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pool-meter-in { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
@media(min-width:1700px) { .account-card-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(max-width:1279px) { .account-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) {
  .account-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pool-route .workspace-main { padding: 25px 18px 40px; }
  .pool-filter-row { gap: 8px; }
  .pool-search { flex-basis: 100%; }
  .pool-provider-filters { margin-right: auto; }
  .pool-filter-row .select-wrap { flex: 1; }
  .pool-filter-row .select-wrap select { width: 100%; }
}
@media(max-width:719px) {
  .account-card-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:600px) {
  .pool-route .workspace-main { padding: 23px 14px 35px; }
  .pool-route .page-heading { margin-bottom: 23px; }
  .pool-route .page-heading h1 { font-size: 1.45rem; }
  .pool-route .page-heading .primary { padding-inline: 11px; min-height: 35px; font-size: .74rem; }
  .pool-state-tabs { gap: 0; justify-content: space-between; margin-bottom: 16px; }
  .pool-state-tabs button { font-size: .73rem; gap: 5px; padding-bottom: 12px; }
  .pool-state-tabs button>span { font-size: .63rem; min-width: 17px; height: 17px; }
  .pool-provider-filters { width: 100%; margin: 0; }
  .pool-provider-filters button { flex: 1; }
  .pool-filter-row .select-wrap { width: calc(50% - 4px); }
  .pool-filter-row .select-wrap select { font-size: .7rem; }
  .pool-legend { font-size: .58rem; gap: 4px; }
  .pool-select-all { font-size: .67rem; }
  .pool-select-all>span { font-size: .64rem; }
  .pool-card-actions .btn { min-height: 34px; font-size: .75rem; }
}
@media(max-width:350px) {
  .pool-route .workspace-main { padding-inline: 11px; }
  .pool-state-tabs button { font-size: .67rem; gap: 3px; }
  .pool-legend { display: none; }
}
@media(prefers-reduced-motion:reduce) { .pool-page *,.pool-test-result * { animation: none!important; transition: none!important; } }

.pool-dialog-account { display: flex; align-items: center; gap: 10px; padding: 2px 0 19px; border-bottom: 1px solid #e3eaf3; margin-bottom: 18px; }
.pool-dialog-account>.provider-logo { width: 27px; height: 27px; }
.pool-dialog-account>div { display: grid; gap: 2px; }
.pool-dialog-account b { font-size: .95rem; font-weight: 550; color: #2a4267; }
.pool-dialog-account small { font-size: .75rem; color: #778cab; }
.pool-demo { font-size: .68rem; color: #4469b5; background: #edf3ff; border: 1px solid #d3e1ff; border-radius: 4px; padding: 3px 6px; margin-left: auto; white-space: nowrap; }
.pool-test-caption { color: #6e84a3; font-size: .77rem; line-height: 1.7; }
.pool-test-result { margin-top: 17px; padding: 13px 14px; background: #f5f8fc; border: 1px solid #dce6f2; border-radius: 8px; color: #426085; font-size: .84rem; }
.pool-test-result:empty { display: none; }
.pool-test-result.success { border-color: #bfe7d0; background: #f1fcf5; color: #236a47; }
.pool-test-result.failed { background: #fff1f3; border-color: #f3bcc6; color: #b72540; }
.pool-test-result p { font-size: .875rem; margin: 10px 0; line-height: 1.75; }
.pool-test-result>small { font-size: .74rem; color: #5b836a; overflow-wrap: anywhere; }
.pool-test-success { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .8rem; }
.pool-test-success>small { margin-left: auto; font-family: var(--mono); font-size: .66rem; font-weight: 400; color: #70a182; }
.pool-spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #c5d4f2; border-top-color: #244ce5; border-radius: 50%; animation: pool-spin .7s linear infinite; vertical-align: -2px; margin-right: 7px; }

