/* Recharge selection stays separate from the provider workspaces. */
.wb .wb-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}
.wb .wb-header-actions > .wb-button { flex-shrink: 0; }
.rq-picker {
  --rq-accent: #0071e3;
  --rq-tint: #edf5ff;
  --rq-accent-line: #d4e6fc;
  container-type: inline-size;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  padding-top: 26px;
  overflow: hidden;
  border: 1px solid #e7e7e2;
  border-radius: 22px;
  background: #fcfcfb;
  color: #262624;
}
.rq-picker[data-model="claude"] { --rq-accent: #a95032; --rq-tint: #fbf0e9; --rq-accent-line: #eedbd0; }
.rq-picker[data-model="gpt"] { --rq-accent: #292927; --rq-tint: #efefeb; --rq-accent-line: #ddddd5; }
.rq-picker[data-model="gemini"] { --rq-accent: #3864bd; --rq-tint: #eef3ff; --rq-accent-line: #dbe4fc; }
.rq-picker[data-model="deepseek"] { --rq-accent: #4265c3; --rq-tint: #edf2ff; --rq-accent-line: #d9e2fc; }
.rq-picker[data-model="qwen"] { --rq-accent: #6d53b5; --rq-tint: #f3effb; --rq-accent-line: #e3daf3; }
.rq-dialog .rq-picker {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.rq-picker .rq-balance { margin-bottom: 16px; }
.rq-model-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 13px 0; padding: 5px 9px; border: 1px solid var(--rq-accent-line); border-radius: 7px; background: var(--rq-tint); color: var(--rq-accent); font-size: 11px; font-weight: 500; line-height: 1.4; }
.rq-model-tag img,
.rq-model-tag svg { width: 15px; height: 15px; flex-shrink: 0; object-fit: contain; }
.rq-model-select { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin: 0 0 18px; color: #777770; font-size: 12px; line-height: 1.5; }
select.rq-model-select,
.rq-model-select select { min-height: 34px; max-width: 100%; margin: 0; padding: 6px 29px 6px 10px; border: 1px solid #e1e1db; border-radius: 8px; background: #fff; color: #41413b; font: inherit; font-size: 12px; }
.rq-model-select select:focus-visible,
select.rq-model-select:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.rq-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #e5e5e8;
  border-radius: 9px;
  background: #fff;
  color: #30302e;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.rq-entry:hover:enabled { border-color: #ccccd1; background: #f5f5f4; }
.rq-entry:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.rq-entry svg,
.rq-entry img { width: 17px; height: 17px; flex-shrink: 0; object-fit: contain; }
.wb.wb-claude .rq-entry { font-size: 13px !important; }
.wb.wb-claude .cl-sidebar-nav .rq-entry { margin-top: 9px; }
.rq-dialog {
  width: min(780px, 94vw);
  max-width: 780px;
  max-height: min(90dvh, 880px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e7e7e5;
  border-radius: 22px;
  background: #fcfcfb;
  color: #262624;
  box-shadow: 0 24px 100px #19191824;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  scrollbar-width: thin;
}
.rq-dialog::backdrop { background: #19191845; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
body:has(.rq-dialog[open]) { overflow: hidden; }
.rq-dialog button,
.rq-dialog input,
.rq-dialog select { font-family: inherit; }
.rq-dialog h2,
.rq-dialog h3,
.rq-dialog p { margin-top: 0; }
.rq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px 20px;
}
.rq-header h2 { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.35; letter-spacing: -.6px; }
.rq-header p { margin: 8px 0 0; color: #73736e; font-size: 13px; line-height: 1.6; }
.rq-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: #efefed;
  color: #6e6e69;
  font-size: 21px;
  line-height: 1;
}
.rq-close:hover:enabled { background: #e6e6e3; color: #30302d; }
.rq-close img,
.rq-close svg { width: 17px; height: 17px; object-fit: contain; }
.rq-body { padding: 0 30px 24px; }
.rq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}
.rq-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rq-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rq-grid > legend { margin-bottom: 14px; padding: 0; color: #73736e; font-size: 12px; line-height: 1.5; }
.rq-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 184px;
  padding: 18px;
  border: 1px solid #e3e3df;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  line-height: 1.5;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.rq-option:hover { border-color: #b9b9b3; }
.rq-option:has(input:checked) { border-color: #0071e3; background: #f8fbff; box-shadow: inset 0 0 0 1px #0071e3; }
.rq-option:focus-within { outline: 2px solid #0071e3; outline-offset: 3px; }
.rq-option:has(input:disabled) { cursor: not-allowed; color: #85857f; background: #f4f4f1; }
.rq-option input[type="radio"] {
  position: absolute;
  top: 19px;
  right: 17px;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: #0071e3;
  cursor: inherit;
}
.rq-name { display: block; max-width: calc(100% - 22px); color: #494943; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.rq-tier:not(.rq-option) { display: block; max-width: calc(100% - 22px); margin: 0; color: #34342f; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.35px; overflow-wrap: anywhere; }
.rq-option.rq-tier { min-height: 170px; padding: 16px; }
.rq-option.rq-tier input[type="radio"] { top: 17px; right: 15px; }
.rq-multiplier { display: block; max-width: 100%; margin: 17px 0 9px; color: var(--rq-accent); font-size: 29px; font-weight: 600; line-height: 1.15; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rq-multiplier small { margin-left: 4px; color: #7a7a73; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.rq-detail { display: block; max-width: 100%; margin: 0; color: #73736c; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.rq-detail + .rq-detail { margin-top: 3px; }
.rq-amount { display: block; max-width: 100%; margin: 18px 0 8px; color: #242420; font-size: 31px; font-weight: 600; line-height: 1.15; letter-spacing: -.9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rq-amount small { margin-left: 4px; color: #73736e; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.rq-credit { display: block; color: #585851; font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rq-option .rq-note { margin-top: auto; padding-top: 12px; }
.rq-note { display: block; margin: 0; color: #85857e; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.rq-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e7e7e2;
  border-radius: 14px;
  background: #f5f5f2;
  font-size: 12px;
  line-height: 1.6;
}
.rq-summary p { margin: 0; font-size: inherit; line-height: inherit; }
.rq-summary strong { font-weight: 600; }
.rq-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rq-summary-row > span { color: #73736e; }
.rq-summary-row > strong { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rq-empty { padding: 30px 24px; border: 1px solid #e8e8e2; border-radius: 14px; background: #fff; text-align: center; color: #74746e; font-size: 13px; line-height: 1.7; }
.rq-empty strong { display: block; margin-bottom: 7px; color: #41413c; font-weight: 500; }
.rq-empty p { margin: 0; font-size: inherit; line-height: inherit; }
.rq-error { margin: 16px 0 0; padding: 12px 15px; border-radius: 10px; background: #fff0ee; color: #a2372b; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.rq-error:empty { display: none; }
.rq-plan-status { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 16px; padding: 5px 9px; border-radius: 6px; color: #7b7466; background: #f1eee7; font-size: 11px; line-height: 1.4; }
.rq-footer { display: flex; flex-direction: column; gap: 9px; margin: 17px 0 0; color: #85857e; font-size: 11px; line-height: 1.7; }
.rq-footer p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.rq-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 30px 23px; border-top: 1px solid #e8e8e3; background: #fafaf8; }
.rq-actions .rq-note { flex: 1; }
.rq-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 9px 17px; border: 1px solid #dfdfda; border-radius: 9px; background: #fff; color: #464640; font-size: 13px; line-height: 1.4; white-space: nowrap; text-decoration: none; }
.rq-action:hover:enabled { border-color: #c4c4bc; background: #f2f2ed; }
.rq-action-primary { border-color: #0071e3; background: #0071e3; color: #fff; }
.rq-action-primary:hover:enabled { border-color: #0077ed; background: #0077ed; }
.rq-action:disabled { opacity: .42; cursor: not-allowed; }
.rq-dialog button:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
@container (min-width: 820px) {
  .rq-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
}
@media (min-width: 601px) and (max-width: 720px) {
  .rq-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wb .wb-header:has(.wb-header-actions) { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .wb .wb-header:has(.wb-header-actions) > .wb-model-wrap { min-width: 0; flex: 1 1 160px; }
  .wb .wb-header-actions { flex-wrap: wrap; flex: 0 1 auto; margin-left: auto; gap: 5px; }
  .wb .wb-header-actions > .wb-button { min-height: 32px; padding: 6px 9px; font-size: 11px !important; }
  .rq-picker { padding-top: 22px; border-radius: 18px; }
  .rq-dialog .rq-picker { padding-top: 0; border-radius: 0; }
  .rq-dialog { width: 94vw; max-height: 92dvh; border-radius: 18px; }
  .rq-header { padding: 23px 21px 18px; }
  .rq-header h2 { font-size: 21px; }
  .rq-body { padding: 0 21px 21px; }
  .rq-grid,
  .rq-grid[data-count] { grid-template-columns: 1fr; gap: 10px; margin-bottom: 17px; }
  .rq-option { min-height: 0; padding: 16px 18px; }
  .rq-option.rq-tier { min-height: 0; padding: 16px 18px; }
  .rq-option input[type="radio"] { top: 17px; }
  .rq-model-select { width: 100%; flex-wrap: wrap; margin-bottom: 16px; }
  .rq-tier:not(.rq-option) { font-size: 16px; }
  .rq-multiplier { margin-top: 12px; font-size: 26px; }
  .rq-amount { margin-top: 13px; font-size: 28px; }
  .rq-option .rq-note { padding-top: 9px; }
  .rq-summary { padding: 15px; }
  .rq-empty { padding: 26px 18px; }
  .rq-actions { flex-wrap: wrap; padding: 16px 21px 20px; }
  .rq-actions .rq-note { flex-basis: 100%; }
  .rq-actions .rq-action { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .rq-option { transition: none; } }
