/* Account controls and billing share the workspace's typography and blue accent. */
.retell-dashboard .workspace-account { position: relative; flex: none; margin: 0 0 18px; z-index: 25; }
.retell-dashboard .workspace-account .workspace-switch { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px 12px; text-align: left; border: 1px solid #dce2ef; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.retell-dashboard .workspace-account .workspace-switch:hover,
.retell-dashboard .workspace-account .workspace-switch[aria-expanded="true"] { border-color: #a5b7ff; box-shadow: 0 4px 14px #254fe00a; }
.retell-dashboard .workspace-account .workspace-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #3159f5; font-size: 14px; font-weight: 600; }
.retell-dashboard .workspace-identity { display: grid; gap: 4px; min-width: 0; flex: 1; }
.retell-dashboard .workspace-identity strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retell-dashboard .workspace-identity small { font-size: 11px; color: #778096; }
.retell-dashboard .workspace-chevron { flex: 0 0 7px; height: 7px; margin-right: 3px; border-right: 1.5px solid #778096; border-bottom: 1.5px solid #778096; transform: rotate(45deg); transition: transform .2s; }
.retell-dashboard [aria-expanded="true"] .workspace-chevron { transform: rotate(225deg); }
.retell-dashboard .workspace-account-menu { position: absolute; top: calc(100% + 7px); inset-inline: 0; padding: 8px; border: 1px solid #dfe4ef; border-radius: 12px; background: #fff; box-shadow: 0 12px 35px #233c6926; animation: account-reveal .18s ease-out; }
.retell-dashboard .workspace-user { display: flex; align-items: center; gap: 9px; padding: 8px 5px 12px; border-bottom: 1px solid #edf0f5; }
.retell-dashboard .workspace-user .profile-avatar { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #edf2ff; color: #3159f5; }
.retell-dashboard .workspace-user #userLabel { min-width: 0; font-size: 11px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #536078; }
.retell-dashboard .workspace-account-menu .account { margin: 0; padding: 0; border: 0; }
.retell-dashboard .workspace-account-menu #tenantLabel { display: none; }
.retell-dashboard .workspace-account-menu #tenantSwitcher { width: 100%; margin: 8px 0; }
.retell-dashboard .workspace-account-menu .help-link,
.retell-dashboard .workspace-account-menu .account-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 8px; margin: 4px 0 0; border: 0; border-radius: 7px; background: transparent; font-size: 12px; text-align: left; text-decoration: none; box-shadow: none; }
.retell-dashboard .workspace-account-menu .help-link { color: #526078; }
.retell-dashboard .workspace-account-menu .help-link:hover { background: #f3f5fa; }
.retell-dashboard .workspace-account-menu .account-logout { color: #bd3546; }
.retell-dashboard .workspace-account-menu .account-logout:hover { background: #fff1f2; }
.retell-dashboard .account-logout svg { width: 16px; height: 16px; }
.retell-dashboard .header-language { position: relative; }
.retell-dashboard .header-language .language-button { width: 38px; min-width: 38px; height: 36px; min-height: 0; padding: 0; border-radius: 8px; background: #f4f6fa; color: #536078; font-size: 12px; }
.retell-dashboard .header-language .app-language-menu { position: absolute; top: calc(100% + 8px); bottom: auto; right: 0; left: auto; width: 170px; padding: 6px; z-index: 30; border-radius: 10px; box-shadow: 0 12px 32px #233c6920; animation: account-reveal .18s ease-out; }
.retell-dashboard .header-workmode { font-size: 11px; white-space: nowrap; padding: 7px 9px; border-radius: 7px; background: #eef3ff; color: #4163ad; }
.retell-dashboard .workspace-account [hidden],
.retell-dashboard .header-language [hidden],
.retell-dashboard #planPage [hidden] { display: none !important; }
.retell-dashboard #planPage.billing-page { width: 100%; max-width: 1020px; margin-inline: auto; }
.retell-dashboard #planPage .billing-summary { position: relative; padding: 26px 24px; border: 0; border-radius: 14px; background: linear-gradient(105deg, #f0f5ff 0%, #fafcff 65%, #f4f7ff 100%); }
.retell-dashboard #planPage .billing-summary-main { display: grid; grid-template-columns: 116px minmax(0, 1fr) 235px; align-items: center; gap: 24px; }
.retell-dashboard #planPage .billing-summary:not([data-status="trialing"]):not([data-status="expired"]) .billing-summary-main { grid-template-columns: minmax(0, 1fr) 235px; }
.retell-dashboard #planPage .trial-visual { position: relative; width: 116px; height: 116px; isolation: isolate; }
.trial-visual svg { display: block; width: 100%; height: 100%; }
.trial-visual img { position: absolute; width: 36px; height: 36px; top: 40px; left: 40px; border-radius: 10px; box-shadow: 0 5px 14px #315aff26; }
.trial-ring-track { stroke: #dce6fb; stroke-width: 4; }
.trial-ring-value { stroke: #3a61f2; stroke-width: 4; stroke-linecap: round; }
.trial-tick { stroke: #d1dbef; stroke-width: 2; stroke-linecap: round; }
.trial-tick.active { stroke: #5a7af1; }
.trial-visual::before { content: ''; position: absolute; inset: 25px; z-index: -1; border-radius: 50%; background: #c9d8ff; opacity: .22; animation: trial-glow 1.4s cubic-bezier(.77,0,.175,1) 3; }
@keyframes trial-glow { 0%, 100% { transform: scale(.9); opacity: .15; } 50% { transform: scale(1.2); opacity: .42; } }
.retell-dashboard #planPage .billing-summary-status { padding-left: 26px; border-left: 1px solid #e4eaf4; }
.retell-dashboard #planPage .billing-kicker { margin: 0 0 10px; color: #4667b4; font-size: 12px; font-weight: 600; }
.retell-dashboard #planPage #currentPlanName { margin: 0; font-size: clamp(24px, 2.3vw, 30px); font-weight: 650; letter-spacing: -.8px; color: #1f2c4b; }
.retell-dashboard #planPage #currentPlanDescription { max-width: 490px; margin: 12px 0 0; font-size: 13px; line-height: 1.65; color: #64718d; }
.retell-dashboard #planPage .billing-current-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.retell-dashboard #planPage .billing-current-price strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.retell-dashboard #planPage .billing-current-price span { font-size: 12px; color: #64718d; }
.retell-dashboard #planPage .billing-trial { max-width: 490px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.retell-dashboard #planPage .billing-trial-label { display: grid; gap: 8px; }
.retell-dashboard #planPage #trialCountdown { font-size: 19px; font-weight: 600; letter-spacing: -.4px; color: #3159d9; }
.retell-dashboard #planPage #trialDeadline { font-size: 11px; color: #64718d; }
.retell-dashboard #planPage #trialMeter { display: block; width: 100%; height: 5px; margin-top: 12px; appearance: none; border: 0; border-radius: 9px; background: #dce5fb; overflow: hidden; }
.retell-dashboard #trialMeter::-webkit-progress-bar { background: #dce5fb; }
.retell-dashboard #trialMeter::-webkit-progress-value { background: #4165f4; border-radius: 9px; }
.retell-dashboard #trialMeter::-moz-progress-bar { background: #4165f4; border-radius: 9px; }
.retell-dashboard #planPage [data-status="expired"] { background: #faf7f2; border-color: #eadfce; }
.retell-dashboard #planPage [data-status="expired"] #trialCountdown { color: #a06429; }
.retell-dashboard #planPage .billing-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 28px; padding: 0 0 24px; border-bottom: 1px solid #e9edf4; }
.retell-dashboard #planPage .billing-usage article { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; row-gap: 7px; padding: 0 24px; min-width: 0; border-right: 1px solid #e9edf4; }
.retell-dashboard #planPage .billing-usage article:first-child { padding-left: 0; }
.retell-dashboard #planPage .billing-usage article:last-child { border: 0; }
.retell-dashboard #planPage .billing-usage .billing-usage-icon { display: grid; place-items: center; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 9px; background: #eef3ff; color: #5676cf; }
.retell-dashboard #planPage .billing-usage-icon svg { width: 18px; height: 18px; }
.retell-dashboard #planPage .billing-usage span { color: #78839a; font-size: 12px; }
.retell-dashboard #planPage .billing-usage strong { font-size: 19px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.retell-dashboard #planPage .billing-section-heading { margin-bottom: 20px; }
.retell-dashboard #planPage .billing-section-heading h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.4px; }
.retell-dashboard #planPage .billing-section-heading p { max-width: 650px; margin: 0; color: #78839a; font-size: 13px; line-height: 1.6; }
.retell-dashboard #planPage #planOptions { display: block; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.comparison-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes account-reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .retell-dashboard #planPage .billing-usage strong { font-size: 16px; }
  .retell-dashboard #planPage .billing-summary-main { grid-template-columns: 96px minmax(0,1fr); gap: 18px; }
  .retell-dashboard #planPage .billing-summary-status { grid-column: 2; padding: 0; border: 0; }
  .retell-dashboard #planPage .trial-visual { width: 96px; height: 96px; grid-row: 1 / 3; }
  .retell-dashboard #planPage .trial-visual img { width: 32px; height: 32px; top: 32px; left: 32px; }
}
@media (max-width: 600px) {
  .retell-dashboard .header-workmode { padding: 5px 7px; font-size: 10px; }
  .retell-dashboard #planPage .billing-summary { display: block; padding: 20px 16px; }
  .retell-dashboard #planPage .billing-summary-main { grid-template-columns: 68px minmax(0,1fr); gap: 12px; }
  .retell-dashboard #planPage .billing-summary:not([data-status="trialing"]):not([data-status="expired"]) .billing-summary-main { grid-template-columns: 1fr; }
  .retell-dashboard #planPage .trial-visual { width: 68px; height: 68px; grid-row: auto; }
  .retell-dashboard #planPage .trial-visual img { width: 24px; height: 24px; top: 22px; left: 22px; }
  .retell-dashboard #planPage #currentPlanName { font-size: 21px; }
  .retell-dashboard #planPage #currentPlanDescription { font-size: 12px; }
  .retell-dashboard #planPage .billing-summary-status { grid-column: 1 / -1; padding-top: 8px; }
  .retell-dashboard #planPage .billing-summary-status { border: 0; padding: 0; }
  .retell-dashboard #planPage #trialCountdown { font-size: 16px; }
  .retell-dashboard #planPage .billing-trial-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
  .retell-dashboard #planPage .billing-usage { gap: 18px; grid-template-columns: 1fr; padding: 0 0 22px; }
  .retell-dashboard #planPage .billing-usage article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 0; padding: 0; }
  .retell-dashboard #planPage .billing-usage .billing-usage-icon { grid-row: auto; width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .retell-dashboard .workspace-account *, .retell-dashboard .header-language *, .retell-dashboard #planPage * { animation: none !important; transition: none !important; }
}

.retell-dashboard #planCheckoutBackdrop [hidden] { display: none !important; }
.retell-dashboard #planCheckoutBackdrop .plan-checkout-modal { width: min(460px, calc(100vw - 32px)); padding: 28px; border-radius: 14px; }
.retell-dashboard #planCheckoutBackdrop .checkout-unavailable { padding-top: 8px; }
.retell-dashboard #planCheckoutBackdrop .checkout-unavailable p { margin: 0 0 22px; color: #6b7890; font-size: 13px; line-height: 1.65; }
.retell-dashboard #planCheckoutBackdrop .checkout-unavailable button { width: 100%; min-height: 38px; background: #f2f5fb; border: 1px solid #dee5f2; border-radius: 8px; }

/* Pricing responds to the available workspace width, including a docked sidebar. */
.retell-dashboard #planOptions { container-type: inline-size; }
.retell-dashboard #planPage #planOptions .billing-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.retell-dashboard #planPage #planOptions .billing-plan-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid #dce4f3; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px #17243d05; }
.retell-dashboard #planPage #planOptions .billing-plan-featured { border-color: #3159ff; box-shadow: 0 0 0 1px #3159ff; }
.retell-dashboard #planPage #planOptions .billing-plan-card.selected { background: #f7f9ff; }
.retell-dashboard #planPage #planOptions .billing-plan-audience { margin: 0 0 6px; color: #69768e; font-size: 12px; line-height: 1.5; }
.retell-dashboard #planPage #planOptions .billing-plan-featured .billing-plan-audience { color: #3159ed; }
.retell-dashboard #planPage #planOptions .billing-plan-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.retell-dashboard #planPage #planOptions .billing-plan-title h3 { margin: 0; color: #202c43; font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.retell-dashboard #planPage #planOptions .billing-plan-current { padding: 4px 8px; border-radius: 6px; background: #e9efff; color: #3159d9; font-size: 11px; }
.retell-dashboard #planPage #planOptions .billing-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.retell-dashboard #planPage #planOptions .billing-plan-price strong { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.7px; color: #202c43; white-space: nowrap; font-variant-numeric: tabular-nums; }
.retell-dashboard #planPage #planOptions .billing-plan-price > span { font-size: 12px; color: #69768e; }
.retell-dashboard #planPage #planOptions .billing-plan-capacity { padding: 12px; background: #f3f6ff; border-radius: 10px; }
.retell-dashboard #planPage #planOptions .billing-plan-daily { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.retell-dashboard #planPage #planOptions .billing-plan-daily strong { font-size: 20px; color: #3159ed; font-weight: 600; font-variant-numeric: tabular-nums; }
.retell-dashboard #planPage #planOptions .billing-plan-daily > span { color: #52627d; font-size: 12px; }
.retell-dashboard #planPage #planOptions .billing-plan-capacity dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #dfe7f8; }
.retell-dashboard #planPage #planOptions .billing-plan-capacity dl > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; }
.retell-dashboard #planPage #planOptions .billing-plan-capacity dt { color: #69768e; font-size: 11px; }
.retell-dashboard #planPage #planOptions .billing-plan-capacity dd { margin: 0; color: #273955; font-weight: 600; font-size: 14px; }
.retell-dashboard #planPage #planOptions .billing-plan-features { margin: 14px 0 16px; }
.retell-dashboard #planPage #planOptions .billing-plan-features h4 { margin: 0 0 8px; color: #273955; font-size: 12px; font-weight: 600; }
.retell-dashboard #planPage #planOptions .billing-plan-features ul { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.retell-dashboard #planPage #planOptions .billing-plan-features li { display: flex; gap: 9px; margin: 0; color: #5b6981; font-size: 13px; line-height: 1.45; overflow-wrap: normal; }
.retell-dashboard #planPage #planOptions .billing-plan-features li > span { color: #3159ed; flex-shrink: 0; }
.retell-dashboard #planPage #planOptions .billing-plan-features li.billing-plan-extra { color: #273955; font-weight: 500; }
.retell-dashboard #planPage #planOptions .billing-plan-select { width: 100%; min-height: 44px; margin: auto 0 0; padding: 10px 14px; border: 1px solid #c5d3fc; border-radius: 9px; background: #eef3ff; color: #3159ed; font-size: 14px; font-weight: 550; line-height: 1.4; white-space: normal; overflow-wrap: normal; word-break: normal; box-shadow: none; }
.retell-dashboard #planPage #planOptions .billing-plan-select.primary { background: #3159ff; color: #fff; border-color: #3159ff; }
.retell-dashboard #planPage #planOptions .billing-plan-select:disabled { background: #f0f2f7; color: #738098; border-color: #e0e5ee; cursor: default; opacity: 1; }
.retell-dashboard #planPage #planOptions .billing-plan-access { margin: 16px 0 0; color: #69768e; font-size: 13px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .retell-dashboard #planPage #planOptions .billing-plan-select { transition: background .18s, border-color .18s; }
  .retell-dashboard #planPage #planOptions .billing-plan-select:not(:disabled):hover { background: #e1eaff; border-color: #8ea8ff; }
  .retell-dashboard #planPage #planOptions .billing-plan-select.primary:not(:disabled):hover { background: #2145d8; }
}
@container (max-width: 560px) {
  .retell-dashboard #planPage #planOptions .billing-plan-grid { grid-template-columns: 1fr; gap: 14px; }
  .retell-dashboard #planPage #planOptions .billing-plan-card { padding: 16px; }
  .retell-dashboard #planPage #planOptions .billing-plan-price strong { font-size: 22px; }
}

.retell-dashboard #planPage #planOptions .billing-plan-heading { display: block; position: static; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; }
@container (min-width: 960px) {
  .retell-dashboard #planPage #planOptions .billing-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .retell-dashboard #planPage #planOptions .billing-plan-card { padding: 16px; }
  .retell-dashboard #planPage #planOptions .billing-plan-audience { min-height: 36px; }
  .retell-dashboard #planPage #planOptions .billing-plan-capacity dl > div { flex-direction: column; gap: 3px; }
}
