[data-vk-preview] :is(.driver-profile[data-driver-profile], #app :is(#ov-acc, #ov-online) > .panel) {
  --profile-ink: #f7fbff;
  --profile-muted: #c6daf0;
  --profile-edge: #688ab3;
  --profile-tile: linear-gradient(160deg, #2b4566, #1e324e);
  color: var(--profile-ink);
  font-family: var(--vkui--font_family_base, system-ui, sans-serif);
  background: linear-gradient(155deg, #27476d, #142942 70%) !important;
  background-blend-mode: normal !important;
  border: 3px solid var(--profile-edge) !important;
  border-image: none !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 32px #09172a91 !important;
}

[data-vk-preview] .driver-profile[data-driver-profile] {
  width: min(820px, calc(var(--vk-area-w, 100dvw) - 16px));
  height: min(408px, calc(var(--vk-area-h, 100dvh) - 16px));
  padding: 8px 10px;
  container: vk-driver / size;
}

[data-vk-preview] .driver-profile[data-driver-profile][open] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "head" "tabs" "content";
  gap: 6px;
}

[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic {
  width: min(440px, calc(var(--vk-area-w, 100dvw) - 16px));
  height: min(146px, calc(var(--vk-area-h, 100dvh) - 16px));
  container-type: inline-size;
}

[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic[open] {
  grid-template-areas: "head" "content";
  grid-template-rows: auto minmax(0, 1fr);
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-tabs[hidden] { display: none; }
[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic .dp-avatar { width: 38px; height: 38px; }
[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic .dp-head h2 { font-size: .74rem; }
[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic .dp-name { font-size: .94rem; }
[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic .dp-badge { font-size: .72rem; }
[data-vk-preview] .driver-profile[data-driver-profile].dp-public-basic .dp-content { font-size: .8rem; }

[data-vk-preview] .driver-profile[data-driver-profile] .dp-basic-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  padding: 6px 1px;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-basic-body .dp-empty { margin: 0; padding: 0; }

[data-vk-preview] .driver-profile[data-driver-profile] .dp-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  align-items: center;
  min-width: 0;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-head h2 {
  grid-column: 1;
  color: var(--profile-muted);
  font: 700 clamp(.64rem, 3cqh, .78rem)/1.1 var(--vkui--font_family_base, system-ui, sans-serif);
  text-shadow: none;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-name {
  grid-column: 1;
  font-size: clamp(.82rem, 4cqh, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-badge {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--profile-muted);
  font-size: clamp(.625rem, 2.9cqh, .77rem);
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}

[data-vk-preview] :is(.driver-profile[data-driver-profile] .dp-avatar, #app #ov-acc .acc-ava) {
  border: 2px solid #9bbce6;
  border-radius: 50%;
  background: #203e61;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-avatar {
  width: clamp(32px, 11cqh, 44px);
  height: clamp(32px, 11cqh, 44px);
}

[data-vk-preview] .driver-profile[data-driver-profile] :where(.dp-tabs button, .dp-retry, .dp-close),
[data-vk-preview] #app #ov-acc :where(.acc-body .btn, .x-close),
[data-vk-preview] #app #ov-online .x-close {
  --button-fill: linear-gradient(180deg, #3c5879, #263e5b);
  --button-edge: #7899bf;
  border: 2px solid var(--button-edge) !important;
  border-image: none !important;
  border-radius: 999px !important;
  background: var(--button-fill) !important;
  background-blend-mode: normal !important;
  box-shadow: inset 0 1px 0 #ffffff38, 0 2px 4px #09162b63 !important;
  color: #f7fbff !important;
  font-family: inherit;
  text-shadow: none !important;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-tabs button {
  min-height: clamp(31px, 9cqh, 37px);
  padding: 3px 6px;
  font-size: clamp(.65rem, 3.3cqh, .8rem);
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-tabs [aria-selected="true"],
[data-vk-preview] .driver-profile[data-driver-profile] .dp-stats-footer .dp-retry,
[data-vk-preview] #app #ov-acc .acc-body .btn {
  --button-fill: linear-gradient(180deg, #286cc9, #164899);
  --button-edge: #7ab4ff;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-tabs [data-tab="ach"][aria-selected="true"] {
  --button-fill: linear-gradient(180deg, #6d45cf, #472799);
  --button-edge: #bd9fff;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-tabs [data-tab="records"][aria-selected="true"] {
  --button-fill: linear-gradient(180deg, #0b776c, #07534f);
  --button-edge: #64daca;
}

[data-vk-preview] :is(.driver-profile[data-driver-profile] .dp-close, #app :is(#ov-acc, #ov-online) .x-close) {
  --button-fill: linear-gradient(180deg, #a93757, #771e43);
  --button-edge: #ff9da9;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50% !important;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-close { position: relative; }

[data-vk-preview] :is(.driver-profile[data-driver-profile] .dp-close, #app :is(#ov-acc, #ov-online) .x-close)::before,
[data-vk-preview] :is(.driver-profile[data-driver-profile] .dp-close, #app :is(#ov-acc, #ov-online) .x-close)::after {
  content: "";
  position: absolute;
  display: block;
  inset: 50% auto auto 50%;
  width: 16px;
  height: 2px;
  margin: -1px 0 0 -8px;
  border-radius: 2px;
  background: #f7fbff;
  transform: rotate(45deg);
}

[data-vk-preview] :is(.driver-profile[data-driver-profile] .dp-close, #app :is(#ov-acc, #ov-online) .x-close)::after { transform: rotate(-45deg); }

[data-vk-preview] :is(.driver-profile[data-driver-profile], #app #ov-acc) button:focus-visible {
  outline: 2px solid #fff2b7;
  outline-offset: -2px;
}

[data-vk-preview] :is(.driver-profile[data-driver-profile], #app #ov-acc) button:active { filter: brightness(.94); }

[data-vk-preview] #app #ov-acc .panel-title {
  color: #f7fbff !important;
  font-family: inherit;
  text-shadow: none !important;
}

[data-vk-preview] #app #ov-acc .acc-body .btn { min-height: 40px; padding-inline: 12px; }

[data-vk-preview] #app #ov-online > .online-panel {
  width: min(660px, calc(100% - 20px));
  height: min(380px, calc(100% - 16px));
  padding: 10px;
  gap: 6px;
  scrollbar-width: none;
}

[data-vk-preview] #app #ov-online .vk-online-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

[data-vk-preview] #app #ov-online .vk-online-header h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.75vw, 1.3rem);
  line-height: 1.15;
  color: var(--profile-ink);
}

[data-vk-preview] #app #ov-online .vk-online-header .x-close {
  position: relative;
  inset: auto;
  flex: 0 0 36px;
}

[data-vk-preview] #app #ov-online #online-status {
  margin: 0;
  color: var(--profile-muted);
  font-size: .8rem;
  line-height: 1.2;
}

[data-vk-preview] #app #ov-online #online-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  grid-auto-rows: max-content;
  scrollbar-width: none;
}

[data-vk-preview] #app #ov-online :is(.online-panel, #online-grid)::-webkit-scrollbar { display: none; }

[data-vk-preview] #app #ov-online #online-grid .vk-online-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: .82rem;
  line-height: 1.15;
  cursor: pointer;
  color: var(--profile-ink) !important;
  background: var(--profile-tile) !important;
  background-blend-mode: normal !important;
  border: 2px solid var(--profile-edge) !important;
  border-image: none !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 #ffffff24 !important;
}

[data-vk-preview] #app #ov-online #online-grid .vk-online-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid #9bbce6;
}

[data-vk-preview] #app #ov-online .vk-online-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-vk-preview] #app #ov-online .vk-online-level { color: var(--profile-muted); font-variant-numeric: tabular-nums; }
[data-vk-preview] #app #ov-online #online-grid .vk-online-row:focus-visible { outline: 2px solid #fff2b7; outline-offset: -2px; }
[data-vk-preview] #app #ov-online #online-grid .vk-online-row:active { filter: brightness(.94); }

@media (hover: hover) {
  [data-vk-preview] #app #ov-online #online-grid .vk-online-row:hover { filter: brightness(1.12); }
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-content {
  display: block;
  overflow: auto;
  scrollbar-width: none;
  padding: 0 2px 1px;
  font-size: clamp(.69rem, min(3.25cqh, 2.65cqw), .84rem);
  line-height: 1.18;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-content::-webkit-scrollbar { display: none; }

[data-vk-preview] .driver-profile[data-driver-profile] .dp-view-stats {
  --stat-gap: 5px;
  --stat-padding: 4px;
  --detail-padding: 3px;
  --account-height: 34px;
  display: grid;
  align-content: start;
  gap: var(--stat-gap);
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-view-stats[data-density="tight"] {
  --stat-gap: 4px;
  --stat-padding: 3px;
  --detail-padding: 2px;
  --account-height: 31px;
  font-size: .6875rem;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-view-stats[data-density="small"] {
  --stat-gap: 3px;
  --stat-padding: 2px;
  --detail-padding: 1px;
  --account-height: 29px;
  font-size: .625rem;
}

[data-vk-preview] .driver-profile[data-driver-profile] :is(.dp-stat, .dp-ach, .dp-track) {
  min-height: 0;
  background: var(--profile-tile);
  border: 1px solid var(--profile-edge);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff24;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-stats { gap: var(--stat-gap); }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-stat { gap: 1px; padding: var(--stat-padding); }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-stat strong { font-size: 1.45em; line-height: 1.07; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-stat.dp-gold strong { color: #ffda83; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-stat span { color: var(--profile-muted); font-size: 1em; overflow-wrap: anywhere; }

[data-vk-preview] .driver-profile[data-driver-profile] .dp-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 .7em;
  margin: 0;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .4em;
  padding-block: var(--detail-padding);
  border-bottom: 1px solid #7795bd52;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-detail :is(dt, dd) {
  padding: 0;
  border: 0;
  font-size: 1em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-detail dt { color: var(--profile-muted); }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-detail dd { font-variant-numeric: tabular-nums; max-width: 9em; }

[data-vk-preview] .driver-profile[data-driver-profile] .dp-stats-footer {
  display: flex;
  align-items: center;
  gap: .6em;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-stats-footer .dp-retry {
  min-height: var(--account-height);
  padding: 2px 10px;
  font-size: 1em;
  line-height: 1.15;
  flex-shrink: 0;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-stats-footer .dp-note {
  margin: 0;
  color: var(--profile-muted);
  font-size: .9em;
  line-height: 1.15;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-card-grid {
  --card-width: 178px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-width)), 1fr));
  align-items: start;
  gap: 5px;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-view-ach .dp-card-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-view-ach .dp-ach {
  min-block-size: 3.25em;
  justify-content: center;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-view-records .dp-card-grid { --card-width: 145px; }
[data-vk-preview] .driver-profile[data-driver-profile] :is(.dp-ach, .dp-track) { padding: .45em .6em; gap: .28em; overflow: visible; }
[data-vk-preview] .driver-profile[data-driver-profile] :is(.dp-ach, .dp-track).is-done {
  background: linear-gradient(160deg, #168347, #0d6138);
  border-color: #72da9c;
}

[data-vk-preview] .driver-profile[data-driver-profile] .is-done :is(.dp-ach-state, small) { color: #f3fff6; }

[data-vk-preview] .driver-profile[data-driver-profile] .dp-track-check {
  color: #e3ffe9;
  font-size: 1.1em;
  font-weight: 800;
  line-height: 1;
}

[data-vk-preview] .driver-profile[data-driver-profile] .dp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .35em; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-card-head b { font-size: 1em; line-height: 1.15; overflow-wrap: anywhere; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-ach-state { font-size: .85em; white-space: nowrap; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-ach-progress { display: grid; grid-template-columns: minmax(20px, 1fr) auto; align-items: center; gap: .5em; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-ach-progress progress { height: 5px; min-height: 5px; margin: 0; }
[data-vk-preview] .driver-profile[data-driver-profile] :is(.dp-ach, .dp-track) small { font-size: .9em; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-track-stars { color: #ffd983; font-size: .92em; letter-spacing: 0; white-space: nowrap; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-track.is-done .dp-track-stars { color: #fff9df; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-track-values { display: flex; flex-wrap: wrap; gap: .15em .5em; }
[data-vk-preview] .driver-profile[data-driver-profile] .dp-intro { margin-bottom: 4px; color: var(--profile-muted); font-size: 1em; }

@container vk-driver (max-width: 500px) {
  [data-vk-preview] .driver-profile[data-driver-profile] .dp-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container vk-driver (max-height: 270px) {
  [data-vk-preview] .driver-profile[data-driver-profile] .dp-stat {
    flex-direction: row;
    align-items: baseline;
    gap: .35em;
  }
}

@container vk-driver (max-height: 270px) and (min-width: 395px) {
  [data-vk-preview] .driver-profile[data-driver-profile] .dp-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container vk-driver (max-height: 225px) {
  [data-vk-preview] .driver-profile[data-driver-profile] .dp-view-stats[data-density="small"] {
    --stat-gap: 2px;
    --stat-padding: 1px;
    --account-height: 28px;
  }
}

@container vk-driver (max-width: 350px) {
  [data-vk-preview] .driver-profile[data-driver-profile] .dp-badge { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  [data-vk-preview] .driver-profile[data-driver-profile] .dp-stats-footer { flex-wrap: wrap; }
}
