:root {
  --suite-bg: #f4f6f8;
  --suite-surface: #fff;
  --suite-ink: #20313e;
  --suite-muted: #596b78;
  --suite-line: #dce3e8;
  --suite-primary: #2563eb;
  --suite-accent: #087f79;
  --suite-focus: #b9d0ff;
  --bg: var(--suite-bg);
  --muted: var(--suite-muted);
  --primary: var(--suite-primary);
  color-scheme: light;
}

/* Shared across the application and public account/payment pages. */
button, input, select, textarea { font-family: inherit; letter-spacing: 0; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--suite-primary); outline-offset: 3px; }
:where(h1, h2, h3, strong, p, dd) { overflow-wrap: anywhere; }
:where(button, [role="button"]) { touch-action: manipulation; }
.suite-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.suite-page-head h2 { margin: 0 0 6px; font-size: 22px; }
.suite-page-head p { margin: 0; color: var(--suite-muted); }
.suite-feedback { padding: 12px 16px; margin: 0 0 16px; background: #eef4ff; border-left: 3px solid var(--suite-primary); color: #334f7a; font-size: 13px; }
.suite-feedback.is-error { background: #fff5ea; border-color: #b76813; color: #854a16; }
.suite-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 22px; border: 1px solid var(--suite-line); border-radius: 6px; background: #fff; }
.suite-tabs > button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 4px; color: #536773; background: transparent; font-size: 15px; font-weight: 600; }
.suite-tabs > button[aria-selected="true"] { color: #086963; background: #def2ed; box-shadow: inset 0 -3px #087f79; }
.suite-tabs > button:hover { background: #edf4f5; }
.suite-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--suite-line); background: #fff; margin-bottom: 20px; }
.suite-metric { display: grid; align-content: start; gap: 10px; padding: 18px 20px; min-width: 0; border-right: 1px solid var(--suite-line); }
.suite-metric:last-child { border-right: 0; }
.suite-metric > span { color: var(--suite-muted); font-size: 13px; }
.suite-metric > strong { color: var(--suite-ink); font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.suite-metric.is-risk > strong, .suite-action-list .is-risk { color: #b15b12; }
body.workbench-portal #reportCards { display: block; padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
.suite-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.suite-report-block { min-width: 0; border: 1px solid var(--suite-line); border-radius: 6px; background: #fff; padding: 20px; }
.suite-report-block h3 { font-size: 15px; margin: 0 0 18px; }
.suite-report-block .dashboard-column-chart { min-height: 200px; }
.suite-action-list { display: grid; }
.suite-action-list > button { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--suite-line); text-align: left; }
.suite-action-list > button > strong { margin-left: auto; font-size: 18px; }
.suite-action-list > button:last-child { border-bottom: 0; }
.suite-breakdown { display: grid; gap: 18px; margin: 0; }
.suite-breakdown > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; }
.suite-breakdown dt { color: var(--suite-muted); }
.suite-breakdown dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.suite-meter { display: block; height: 5px; background: #edf1f4; margin-top: 8px; }
.suite-meter i { display: block; height: 100%; max-width: 100%; background: var(--suite-accent); }
body.workbench-portal #reportPerformanceSection { padding: 20px 0 0; border: 0; border-top: 1px solid var(--suite-line); border-radius: 0; box-shadow: none; background: transparent; }
#reportPerformanceSection table { table-layout: fixed; }
#reportPerformanceSection th, #reportPerformanceSection td { overflow-wrap: anywhere; }
body.workbench-portal .dashboard-control-bar > div > .hint { display: block; margin: 6px 0 0; color: var(--suite-muted); }
body.workbench-portal .workbench-saas-summary { border: 1px solid var(--suite-line); }
body.workbench-portal .workbench-saas-summary strong { font-size: 26px; font-variant-numeric: tabular-nums; }
body.workbench-portal .workbench-saas-summary small { color: var(--suite-muted); }
body.workbench-portal .workbench-insights-grid { gap: 16px; }
body.workbench-portal .workbench-insight-card { padding: 18px; border-color: var(--suite-line); }
.suite-priority { order: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--suite-line); border-bottom: 1px solid var(--suite-line); }
.suite-priority > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.suite-priority > div > span { color: #b76813; font-size: 20px; }
.suite-priority strong { font-size: 14px; }
#todayFocus { display: grid; }
#todayFocus p { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin: 0; border-bottom: 1px solid var(--suite-line); color: var(--suite-muted); }
#todayFocus strong { margin-left: auto; color: var(--suite-ink); font-variant-numeric: tabular-nums; }
.suite-settings-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 22px; color: var(--suite-muted); }
.suite-settings-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--suite-line); }
.suite-settings-group h3 { margin: 12px 0; font-size: 15px; }
.suite-settings-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 16px; align-items: center; gap: 14px; min-height: 64px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--suite-line); border-radius: 0; color: var(--suite-ink); background: transparent; text-align: left; }
.suite-settings-row:last-child { border-bottom: 0; }
.suite-settings-row:hover { color: #086963; background: #f0f7f6; }
.suite-settings-row > span:first-child { font-size: 19px; color: var(--suite-accent); }
.suite-settings-row strong { font-size: 14px; font-weight: 600; }
.suite-settings-row > span:nth-child(3) { color: var(--suite-muted); font-size: 13px; }
body.platform-admin-portal .platform-module-summary { border: 1px solid var(--suite-line); }
body.platform-admin-portal .platform-module-chart-block { border: 1px solid var(--suite-line); box-shadow: none; }
body.platform-admin-portal .platform-module-head > div > .hint { color: var(--suite-muted); }

body.suite-auth { background: var(--suite-bg); color: var(--suite-ink); background-image: none; }
.suite-auth .login-page { padding: 32px 16px; align-items: start; }
.suite-auth .login-shell { display: block; width: min(464px, 100%); min-height: 0; margin: 24px auto; border: 1px solid var(--suite-line); border-radius: 8px; box-shadow: 0 4px 20px #20313e08; }
.suite-auth .login-context { display: block; padding: 28px 32px 24px; background: #fff; color: var(--suite-ink); border-bottom: 1px solid var(--suite-line); }
.suite-auth .brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.suite-auth .brand-mark { display: block; width: 144px; height: 44px; background-size: contain; mix-blend-mode: multiply; }
.suite-auth .brand-portal-label { display: block; flex: 0 0 auto; background: #edf6f5; border: 0; color: #086963; border-radius: 4px; padding: 6px 8px; font-weight: 600; }
.suite-auth .login-panel { padding: 28px 32px; }
.suite-auth .login-fields { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.suite-auth .login-fields:disabled .submit-button,
.suite-auth .login-mode-switch button:disabled { cursor: wait; opacity: .6; }
.suite-auth .login-heading { margin: 0 0 20px; }
.suite-auth .login-heading > .eyebrow { display: none; }
.suite-auth .login-heading h1 { margin: 0 0 8px; color: var(--suite-ink); font-size: 24px; line-height: 1.4; }
.suite-auth .login-heading p { margin: 0; color: var(--suite-muted); font-size: 13px; line-height: 1.6; }
.suite-auth .login-mode-switch { margin: 0 0 24px; background: #f1f4f6; border: 0; }
.suite-auth .login-mode-switch button { min-height: 44px; color: var(--suite-muted); font-size: 14px; }
.suite-auth .login-mode-switch button[aria-selected="true"] { color: #075f5a; box-shadow: 0 1px 3px #20313e12; }
.suite-auth .form-field { font-weight: 500; font-size: 14px; }
.suite-auth .form-field small { color: var(--suite-muted); font-size: 12px; }
.suite-auth .password-control { position: relative; display: block; }
.suite-auth .password-control input { border-radius: 6px; padding-right: 48px; }
.suite-auth .password-control button { position: absolute; inset: 1px 1px 1px auto; min-width: 42px; width: 42px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--suite-muted); font-size: 18px; }
.suite-auth .submit-button { background: var(--suite-primary); border-color: var(--suite-primary); font-weight: 600; }
.suite-auth .submit-button:hover { background: #1d4ed8; }
.suite-auth .login-footer { line-height: 1.8; }
.suite-auth .login-footer a, .suite-auth .footer-link-button { font-weight: 500; }
.suite-auth .signup-action { width: 100%; margin-bottom: 8px; }
.suite-auth .auth-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; }

body.suite-signup { background: var(--suite-bg); color: var(--suite-ink); }
.suite-signup .signup-shell { width: min(900px, calc(100% - 40px)); padding: 32px 0; }
.suite-signup .signup-head { padding-bottom: 24px; border-bottom: 1px solid var(--suite-line); }
.suite-signup .signup-logo { width: 144px; height: 44px; object-position: left center; mix-blend-mode: multiply; }
.suite-signup .signup-head h1 { font-size: 26px; line-height: 1.4; }
.suite-signup .signup-head p { font-size: 13px; color: var(--suite-muted); max-width: 600px; }
.suite-signup .signup-progress { gap: 0; background: #fff; border: 1px solid var(--suite-line); border-radius: 6px; overflow: hidden; }
.suite-signup .signup-progress-step { border: 0; border-right: 1px solid var(--suite-line); border-radius: 0; min-height: 72px; background: transparent; padding: 12px 20px; }
.suite-signup .signup-progress-step:last-child { border-right: 0; }
.suite-signup .signup-progress-step.current { background: #e9f5f1; box-shadow: inset 0 -3px var(--suite-accent); }
.suite-signup .signup-progress-step small { display: none; }
.suite-signup .signup-panel { border: 1px solid var(--suite-line); padding: 26px; border-radius: 6px; background: #fff; box-shadow: none; }
.suite-signup .signup-section { padding: 0; border: 0; background: transparent; gap: 20px; }
.suite-signup .signup-section h2 { font-size: 18px; margin: 0; }
.suite-signup .signup-section > .plan-note { margin: 0; }
.suite-signup .signup-grid { gap: 20px; }
.suite-signup .signup-grid label { color: #405662; font-weight: 500; }
.suite-signup .signup-grid input, .suite-signup .signup-grid select, .suite-signup .signup-grid textarea { border-color: #cad5dd; min-height: 44px; font-size: 14px; }
.suite-signup .signup-wizard-actions { display: flex; align-items: center; border-top: 1px solid var(--suite-line); padding-top: 22px; margin-top: 24px; }
.suite-signup .signup-wizard-actions .signup-message { flex: 1; }
.suite-signup .signup-wizard-actions button { min-height: 44px; }
.suite-signup .price-card { box-shadow: none; min-height: 0; }
.suite-signup .price-card.selected { box-shadow: inset 0 0 0 1px var(--suite-primary); }
.suite-signup .plan-alert { box-shadow: none; }
.suite-signup .signup-outcome { border: 1px solid #a9d4c5; border-radius: 6px; box-shadow: none; padding: 26px; }
@media (min-width: 761px) and (max-width: 980px) { .suite-signup .signup-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.suite-review { margin: 0 0 24px; }
.suite-review > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--suite-line); }
.suite-review dt { color: var(--suite-muted); }
.suite-review dd { margin: 0; color: var(--suite-ink); }

body.suite-pay { background: var(--suite-bg); color: var(--suite-ink); }
.suite-pay .pay-shell { width: min(520px, calc(100% - 32px)); padding: 40px 0; }
.suite-pay .pay-brand { width: 144px; height: 44px; }
.suite-pay .pay-panel { border-color: var(--suite-line); box-shadow: 0 4px 20px #20313e08; }
.suite-pay .pay-head { padding: 28px 32px 12px; }
.suite-pay .pay-head h1 { font-size: 21px; margin-bottom: 10px; color: var(--suite-ink); }
.suite-pay .pay-body { padding: 0 32px 28px; gap: 18px; }
.suite-pay .pay-amount { font-size: 38px; }
.suite-pay .pay-message { font-size: 13px; color: var(--suite-muted); }
.suite-pay .pay-message.is-error { color: #a12a28; }
.suite-pay .pay-message.is-success { color: #087044; }
.suite-pay .pay-icon-button { flex-basis: 44px; width: 44px; height: 44px; }
.suite-pay .pay-button.is-secondary { min-height: 44px; }
.suite-pay .pay-form input { font-size: 16px; }
.suite-pay .pay-meta > div { grid-template-columns: 90px minmax(0, 1fr); font-size: 13px; }
.suite-pay .pay-details summary, .suite-pay .pay-optional summary { color: var(--suite-muted); }
.suite-pay #onlinePayActions { flex-direction: column; }

@media (max-width: 1100px) {
  body.workbench-portal .workbench-insights-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :where(button, .button-link, .pay-button) { min-height: 44px; }
  :where(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { font-size: 16px; }
  .suite-page-head { align-items: start; margin-bottom: 16px; }
  .suite-page-head h2 { font-size: 20px; }
  .suite-page-head > button { flex: 0 0 auto; padding: 8px 10px; }
  .suite-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .suite-tabs > button { padding: 10px 4px; font-size: 14px; }
  .suite-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite-metric { padding: 16px 12px; border-bottom: 1px solid var(--suite-line); }
  .suite-metric:nth-child(2n) { border-right: 0; }
  .suite-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .suite-metric > strong { font-size: 22px; }
  .suite-report-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .suite-report-block { padding: 16px; }
  body.workbench-portal .workbench-insights-grid { grid-template-columns: minmax(0, 1fr); }
  body.workbench-portal .workbench-insight-card:last-child { grid-column: auto; }
  .suite-priority { align-items: start; }
  .suite-priority > button { flex: 0 0 auto; }
  .suite-settings-group { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .suite-settings-group h3 { margin: 8px 0; color: var(--suite-muted); }
  .suite-settings-row { grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 6px 12px; }
  .suite-settings-row > span:nth-child(3) { grid-column: 2; font-size: 12px; }
  .suite-settings-row > span:last-child { grid-column: 3; grid-row: 1 / 3; }
  #reportPerformanceSection { overflow-x: auto; }
  #reportPerformanceSection table { min-width: 540px; }
  .suite-auth .login-page { padding: 12px; }
  .suite-auth .login-shell { margin: 0 auto; min-height: 0; border: 1px solid var(--suite-line); border-radius: 6px; }
  .suite-auth .login-context { padding: 22px; }
  .suite-auth .login-panel { padding: 24px 22px; }
  .suite-auth .brand { gap: 12px; }
  .suite-auth .brand-mark { width: 132px; height: 40px; }
  .suite-auth .brand-portal-label { font-size: 11px; }
  .suite-auth .auth-dialog form { padding: 22px; }
  .suite-signup .signup-shell { width: calc(100% - 24px); padding: 20px 0; }
  .suite-signup .signup-head { flex-direction: column; gap: 16px; }
  .suite-signup .signup-head h1 { font-size: 24px; }
  .suite-signup .signup-head-actions { width: 100%; justify-content: space-between; }
  .suite-signup .signup-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .suite-signup .signup-progress-step { padding: 12px 4px; gap: 6px; min-height: 64px; flex-direction: column; text-align: center; }
  .suite-signup .signup-progress-step strong { font-size: 12px; }
  .suite-signup .signup-progress-step b { width: 22px; height: 22px; flex-basis: 22px; }
  .suite-signup .signup-panel, .suite-signup .signup-outcome { padding: 20px 16px; }
  .suite-signup .signup-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .suite-signup .signup-wizard-actions { flex-wrap: wrap; gap: 12px; }
  .suite-signup .signup-wizard-actions .signup-message { flex: 1 0 100%; order: -1; text-align: left; }
  .suite-signup .signup-wizard-actions > button { flex: 1; }
  .suite-signup .suite-review > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .suite-pay .pay-shell { padding: 20px 0; width: calc(100% - 24px); }
  .suite-pay .pay-head { padding: 24px 20px 10px; }
  .suite-pay .pay-body { padding: 0 20px 24px; }
  .suite-pay .pay-amount { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Account and company profile drawers. */
.topbar-user-avatar { overflow: hidden; flex-shrink: 0; }
.topbar-user-avatar img, .crm-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crm-profile-fields { align-content: start; }
.crm-profile-avatar-row { display: flex; align-items: center; gap: 20px; padding: 4px 0 16px; }
.crm-profile-avatar { display: grid; place-items: center; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; border-radius: 8px; color: #007d79; background: #def3ef; font-size: 28px; font-weight: 700; }
.crm-profile-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.crm-profile-avatar-actions small { flex-basis: 100%; color: #66758a; font-size: 12px; }
.crm-profile-account { margin: 0; padding: 0; }
.crm-profile-account > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e2e8ef; }
.crm-profile-account dt { color: #66758a; }
.crm-profile-account dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
/* Sales tools use the same drawer surface as customer and quote records. */
.sales-tools-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.sales-tools-toolbar input[type=search] { flex: 1 1 180px; min-width: 0; }
.sales-tools-toolbar select { flex: 0 1 120px; min-width: 0; }
.sales-tools-toolbar > strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sales-tools-list { list-style: none; padding: 0; margin: 16px 0 0; }
.sales-tools-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e2e8ef; }
.sales-tools-list > li > div { min-width: 0; }
.sales-tools-list strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.sales-tools-list small { display: block; margin-top: 6px; color: #66758a; font-size: 12px; overflow-wrap: anywhere; }
.sales-tools-list-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; max-width: 50%; }
.sales-tools-list-end strong { text-align: right; font-size: 13px; }
.sales-tools-list-end button:has(.icon-download), .sales-tools-list-end button:has(.icon-trash-2) { width: 36px; height: 36px; padding: 8px; }
.sales-tools-empty { display: grid; place-items: center; min-height: 180px; color: #66758a; border-bottom: 1px solid #e2e8ef; }
.sales-product-picker { min-width: 0; grid-column: 1 / -1; margin: 0; padding: 12px 0; border: 0; border-block: 1px solid #e2e8ef; display: grid; gap: 8px; }
.sales-product-picker legend { font-size: 13px; font-weight: 600; }
.sales-product-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.sales-product-picker-actions > label { width: 100px; }
.sales-product-picker small { min-height: 18px; font-size: 12px; color: #66758a; }
.sales-product-picker input, .sales-product-picker select { width: 100%; min-width: 0; }
.sales-routing-fields { display: flex; flex-direction: column; gap: 16px; }
.sales-routing-enabled, .sales-routing-rule-head label { display: flex; align-items: center; gap: 8px; }
.sales-routing-enabled input, .sales-routing-rule input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.sales-routing-rule { padding: 20px 0; border-block-start: 1px solid #e2e8ef; }
.sales-routing-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.sales-routing-rule-head > div { display: flex; gap: 4px; }
.sales-routing-rule-head button { width: 32px; height: 32px; padding: 6px; }
.sales-routing-target { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sales-routing-target label { min-width: 0; }
.sales-routing-target input, .sales-routing-target select { width: 100%; min-width: 0; }
.sales-routing-members { margin: 16px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.sales-routing-members legend { padding: 0 0 12px; color: #66758a; font-size: 12px; }
.sales-routing-members label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sales-routing-members label[hidden] { display: none; }
.sales-file-button { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 10px 12px; border: 1px solid #dfe6ed; border-radius: 6px; font-size: 13px; cursor: pointer; }
.sales-file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.sales-file-button:focus-within { outline: 2px solid #008680; outline-offset: 2px; }
body dialog.crm-drawer .crm-drawer-fields.sales-routing-fields { display: flex; }
body dialog.crm-drawer .crm-drawer-fields :is(.sales-routing-enabled,.sales-routing-rule-head label,.sales-routing-members label) { flex-direction: row; align-items: center; justify-content: flex-start; }
body dialog.crm-drawer .crm-drawer-fields .sales-routing-members { display: flex; flex-wrap: wrap; margin-top: 16px; padding: 0; border: 0; gap: 12px 20px; }
body dialog.crm-drawer .crm-drawer-fields .sales-routing-members legend { font-size: 12px; font-weight: 400; }
body dialog.crm-drawer .crm-drawer-fields .sales-routing-members label[hidden] { display: none; }
body dialog.crm-drawer .crm-drawer-fields .sales-product-picker { display: grid; grid-template-columns: minmax(0,1fr); padding: 12px 0; gap: 8px; }
body dialog.crm-drawer .crm-drawer-fields input[type=checkbox] { accent-color: #008680; }
@media (max-width: 480px) {
  .sales-tools-list > li { align-items: start; gap: 10px; }
  .sales-tools-list-end { max-width: 45%; }
  .sales-routing-target { grid-template-columns: minmax(0,1fr); }
  .sales-tools-toolbar > input[type=search] { flex-basis: 100%; }
  .sales-product-picker-actions { align-items: center; }
}
@media (max-width: 480px) { .crm-profile-avatar-row { gap: 12px; } .crm-profile-avatar { flex-basis: 64px; width: 64px; height: 64px; } }

body dialog#merchantPlanDrawer { width: 760px; }
.merchant-plan-body { display: flex; flex-direction: column; gap: 24px; }
.merchant-plan-current, .merchant-plan-pending { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #667085; }
.merchant-plan-current strong { margin-left: 8px; color: #243442; }
.merchant-plan-pending { padding: 12px; background: #eff8f6; border-left: 3px solid #008680; color: #25655f; }
.merchant-plan-pending a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.merchant-plan-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.merchant-plan-fieldset legend { padding: 0 0 12px; font-size: 14px; font-weight: 600; }
.merchant-plan-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.merchant-plan-option { min-width: 0; margin: 0; padding: 16px; border: 1px solid #dce4eb; border-radius: 6px; cursor: pointer; }
.merchant-plan-option:has(input:checked) { border-color: #008680; box-shadow: inset 0 0 0 1px #008680; background: #f6fbfa; }
.merchant-plan-option:focus-within { outline: 2px solid #008680; outline-offset: 2px; }
.merchant-plan-option.is-unavailable { background: #f7f8fa; cursor: not-allowed; }
.merchant-plan-option-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 24px; }
.merchant-plan-option-head > span { margin-left: auto; font-size: 11px; color: #667085; }
body .merchant-plan-option input, body .merchant-plan-methods input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: #008680; }
.merchant-plan-price { margin: 16px 0; font-size: 22px; line-height: 1.4; font-weight: 700; color: #243442; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.merchant-plan-price small { color: #667085; font-size: 12px; font-weight: 400; white-space: nowrap; }
.merchant-plan-option dl { display: grid; gap: 8px; margin: 0; font-size: 12px; }
.merchant-plan-option dl > div { display: flex; justify-content: space-between; gap: 12px; }
.merchant-plan-option dt { color: #667085; }
.merchant-plan-option dd { margin: 0; color: #344054; }
.merchant-plan-option p { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: #795427; }
.merchant-plan-methods { display: flex; flex-wrap: wrap; gap: 12px; }
.merchant-plan-methods label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #dce4eb; border-radius: 6px; cursor: pointer; }
.merchant-plan-methods label:has(input:checked) { border-color: #008680; background: #f6fbfa; }
.merchant-plan-terms { margin: 0; color: #667085; font-size: 12px; line-height: 1.7; }
.merchant-plan-footer { justify-content: space-between; }
.merchant-plan-footer > div { display: grid; gap: 2px; min-width: 0; }
.merchant-plan-footer small { color: #667085; font-size: 12px; }
.merchant-plan-footer strong { color: #243442; font-size: 22px; line-height: 1.4; }
@media (max-width: 540px) {
  .merchant-plan-options { grid-template-columns: minmax(0,1fr); }
  .merchant-plan-option { padding: 16px; }
  .merchant-plan-current { align-items: flex-start; flex-direction: column; gap: 6px; }
  .merchant-plan-footer strong { font-size: 20px; }
}
