/* CDK workbench and account summary refinements. */
body:not(.admin-view):not(.agent-view) .top-account-group {
  flex: 0 1 auto;
  min-width: 0;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--soft-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 22px rgba(0, 0, 0, .12);
}

body:not(.admin-view):not(.agent-view) .top-account-group .account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 210px;
  padding: 4px 10px 4px 8px;
  overflow: hidden;
  text-align: left;
  white-space: normal;
}

body:not(.admin-view):not(.agent-view) .top-account-group button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

body:not(.admin-view):not(.agent-view) .top .actions .top-account-group .account-metric {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 104px;
  min-height: 36px;
  padding: 4px 10px 4px 8px;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, .18);
  border-radius: 11px;
  color: var(--soft);
  background: transparent;
  text-align: left;
  box-shadow: none;
}

body:not(.admin-view):not(.agent-view) .top .actions .top-account-group .account-metric.points-link {
  color: var(--soft);
  border-color: transparent transparent transparent rgba(148, 163, 184, .18);
  background: transparent;
}

body:not(.admin-view):not(.agent-view) .top .actions .top-account-group .account-metric:hover {
  background: rgba(255, 255, 255, .06);
}

body:not(.admin-view):not(.agent-view) .account-metric > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--blue);
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body:not(.admin-view):not(.agent-view) .account-metric > .metric-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(10, 132, 255, .12);
  border: 1px solid rgba(10, 132, 255, .18);
}

body:not(.admin-view):not(.agent-view) .account-metric > .metric-icon svg {
  width: 15px;
  height: 15px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(.admin-view):not(.agent-view) .account-metric.points-link > .metric-icon {
  color: #b77900;
  background: rgba(230, 180, 92, .16);
  border-color: rgba(230, 180, 92, .26);
}

body:not(.admin-view):not(.agent-view) .account-metric.balance-link > .metric-icon {
  color: #1684c7;
  background: rgba(84, 182, 255, .14);
  border-color: rgba(84, 182, 255, .24);
}

body:not(.admin-view):not(.agent-view) .account-pill > .account-icon {
  color: var(--soft);
  background: rgba(148, 163, 184, .13);
  border-color: rgba(148, 163, 184, .22);
}

body:not(.admin-view):not(.agent-view) .account-summary {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

body:not(.admin-view):not(.agent-view) .account-summary strong,
body:not(.admin-view):not(.agent-view) .account-summary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-view):not(.agent-view) .account-summary strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

body:not(.admin-view):not(.agent-view) .account-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

body:not(.admin-view):not(.agent-view) .account-metric.points-link > svg {
  color: #e6b45c;
}

body:not(.admin-view):not(.agent-view) .account-metric.balance-link > svg {
  color: #54b6ff;
}

body:not(.admin-view):not(.agent-view) .account-metric > span {
  display: grid;
  min-width: 0;
  line-height: 1;
}

body:not(.admin-view):not(.agent-view) .account-metric small,
body:not(.admin-view):not(.agent-view) .account-metric strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.admin-view):not(.agent-view) .account-metric small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

body:not(.admin-view):not(.agent-view) .account-metric strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body:not(.admin-view):not(.agent-view) .cdk-user-page,
body:not(.admin-view):not(.agent-view) .cdk-user-page * {
  min-width: 0;
}

body:not(.admin-view):not(.agent-view) .cdk-user-page .section-title,
body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-block-head {
  align-items: flex-start;
}

body:not(.admin-view):not(.agent-view) .cdk-user-page .section-title > div,
body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-block-head > * {
  min-width: 0;
}

body:not(.admin-view):not(.agent-view) .cdk-user-page .section-title p,
body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-block-head span,
body:not(.admin-view):not(.agent-view) .cdk-user-page .field > span,
body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-total small {
  overflow-wrap: anywhere;
  white-space: normal;
}

body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-block-head span {
  max-width: 52%;
  text-align: right;
}

body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-offer-card,
body:not(.admin-view):not(.agent-view) .cdk-user-page .btn {
  max-width: 100%;
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .top-account-group {
  border-color: rgba(148, 163, 184, .34);
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .top .actions .top-account-group .account-metric {
  border-left-color: rgba(148, 163, 184, .30);
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .top .actions .top-account-group .account-metric.points-link {
  color: var(--soft);
  background: transparent;
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .top .actions .top-account-group .account-metric:hover {
  background: rgba(255, 255, 255, .80);
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .account-metric > .metric-icon {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, .18);
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .account-metric.points-link > .metric-icon {
  color: #a16207;
  background: #fff7df;
  border-color: rgba(217, 119, 6, .22);
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .account-metric.balance-link > .metric-icon {
  color: #0369a1;
  background: #eaf6ff;
  border-color: rgba(14, 165, 233, .22);
}

html[data-theme="light"] body:not(.admin-view):not(.agent-view) .account-pill > .account-icon {
  color: #475569;
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, .28);
}

@media (max-width: 760px) {
  body:not(.admin-view):not(.agent-view) .top-account-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(88px, auto));
    width: 100%;
    max-width: none;
    overflow: visible;
  }

  body:not(.admin-view):not(.agent-view) .top-account-group .account-pill {
    max-width: none;
    width: 100%;
  }

  body:not(.admin-view):not(.agent-view) .top-account-group .account-metric {
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
  }

  body:not(.admin-view):not(.agent-view) .top-account-group .account-metric > span {
    min-width: 0;
  }

  body:not(.admin-view):not(.agent-view) .cdk-user-page .cdk-block-head span {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 420px) {
  body:not(.admin-view):not(.agent-view) .top-account-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-view):not(.agent-view) .top-account-group .account-pill {
    grid-column: 1 / -1;
  }
}
