.account-page-body,
.account-main {
  background: var(--color-bg);
}

.account-page-body {
  min-width: 0;
}

.account-main {
  min-height: 720px;
  padding-top: var(--space-6);
}

.account-demo-state-dropdown {
  display: none;
}

.account-page-container {
  max-width: 1280px;
}

.account-breadcrumbs {
  margin-bottom: var(--space-4);
}

.account-icon {
  width: var(--icon-md);
  height: var(--icon-md);
}

.account-main select.ds-field-control {
  padding-inline-start: var(--space-4);
  padding-inline-end: calc(var(--space-8) + var(--space-2));
  color: var(--color-text);
  background-color: var(--color-surface);
  background-image: url("./assets/icons/ui/chevron-down-grey.svg");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: var(--icon-md);
  font-size: var(--font-size-16);
  line-height: 1.25;
  appearance: none;
}

.account-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-8);
}

.account-mobile-nav {
  display: none;
}

.account-sidebar {
  position: sticky;
  top: 104px;
  padding: var(--space-2);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-sidebar nav {
  display: grid;
  gap: var(--space-5);
}

.account-nav-group {
  display: grid;
  gap: var(--space-1);
}

.account-nav-group a,
.account-logout {
  min-height: var(--control-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: transparent;
  font-size: var(--type-label-size);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}

.account-nav-group a:hover {
  color: var(--color-accent);
  background: transparent;
}

.account-logout:hover {
  color: var(--color-accent);
  background: transparent;
}

.account-nav-group a:hover .ds-icon,
.account-logout:hover .ds-icon {
  color: var(--color-accent);
  background-color: currentColor;
}

.account-nav-group a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  font-weight: var(--weight-bold);
}

.account-logout {
  width: 100%;
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  border-top: var(--border-width) solid var(--color-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.account-workspace {
  min-width: 0;
}

.account-mobile-screen,
.account-mobile-screen-content {
  min-width: 0;
}

.account-mobile-internal-header,
.account-mobile-heading-count {
  display: none;
}

.account-home {
  display: grid;
  gap: var(--space-6);
}

.account-home-heading p {
  margin: 0 0 var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-home-heading h1 {
  margin: 0;
  font-size: var(--type-page-title-size);
}

.account-home-buyer {
  max-width: 560px;
}

.account-home-buyer-heading.ds-field {
  gap: 0;
}

.account-home-buyer-heading .ds-dropdown-trigger {
  min-height: var(--control-lg);
  padding: 0;
  gap: var(--space-2);
  border: 0;
  background: transparent;
  font-size: var(--type-page-title-size);
  font-weight: var(--weight-bold);
}

@media (hover: hover) {
  .account-home-buyer-heading .ds-dropdown-trigger:hover {
    color: var(--color-accent);
    background: transparent;
  }
}

.account-home-buyer-heading .ds-dropdown-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-home-buyer-heading .ds-dropdown-trigger .ds-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-home-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.account-home-quick-card {
  min-width: 0;
  min-height: 136px;
  padding: var(--space-4);
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}

.account-home-quick-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.account-home-quick-card > strong {
  font-size: var(--type-title-size);
  line-height: 1;
}

.account-home-quick-card > .account-home-quick-label {
  min-width: 0;
  font-size: var(--type-label-size);
  font-weight: var(--weight-regular);
  overflow-wrap: anywhere;
}

.account-home-menu {
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-home-menu > :is(a, button) {
  width: 100%;
  min-height: var(--control-xl);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 0;
  border-bottom: var(--border-width) solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-home-menu > :last-child {
  border-bottom: 0;
}

.account-home-menu > :is(a, button):hover {
  color: var(--color-accent);
  background: var(--color-surface-muted);
}

.account-home-menu > :is(a, button) > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.account-home-menu b {
  font-size: var(--type-label-size);
}

.account-home-menu > :is(a, button) > .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-view-heading {
  margin-bottom: var(--space-6);
}

.account-view-heading h1 {
  max-width: 22ch;
  margin: var(--space-1) 0 var(--space-3);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--type-page-title-size);
}

.account-heading-count {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
  font-weight: var(--weight-regular);
  line-height: 1;
}

.account-view-heading p {
  max-width: 68ch;
  margin: 0;
  color: var(--color-text-secondary);
}

.account-text-link,
.account-back-link {
  min-height: var(--control-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-active);
  font-size: var(--type-label-size);
  font-weight: var(--weight-bold);
}

.account-text-link:hover,
.account-back-link:hover {
  color: var(--color-accent-active);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

.account-section-heading {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.account-section-heading h2 {
  margin-bottom: var(--space-1);
  font-size: var(--type-section-title-size);
}

.account-section-heading p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-label-size);
}

.account-active-order {
  margin-top: var(--space-8);
}

.account-active-order {
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.account-order-heading {
  align-items: flex-start;
}

.account-order-heading h2 {
  margin-top: var(--space-1);
  font-size: var(--type-title-size);
}

.account-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.account-status {
  color: var(--color-info);
  background: var(--color-info-soft);
}

.account-status[data-tone="success"] {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.account-status[data-tone="warning"] {
  color: var(--color-warning);
  background: var(--color-warning-soft);
}

.account-status[data-tone="danger"] {
  color: var(--color-danger);
  background: var(--color-danger-soft);
}

.account-order-facts {
  margin-top: var(--space-5);
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  gap: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
  border-bottom: var(--border-width) solid var(--color-border);
}

.account-order-facts > div {
  display: grid;
  gap: var(--space-1);
}

.account-order-facts span {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-timeline {
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.account-timeline li {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: var(--icon-md) minmax(0, 1fr);
  gap: var(--space-2);
}

.account-timeline li::before {
  content: "";
  height: var(--border-width);
  position: absolute;
  top: 10px;
  left: var(--icon-md);
  right: 0;
  background: var(--color-border-strong);
}

.account-timeline li:last-child::before {
  display: none;
}

.account-timeline-marker {
  width: var(--icon-md);
  height: var(--icon-md);
  z-index: 1;
  display: block;
  border: 5px solid var(--color-surface);
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  outline: var(--border-width) solid var(--color-border-strong);
}

.account-timeline li[data-state="complete"] .account-timeline-marker {
  background: var(--color-success);
  outline-color: var(--color-success);
}

.account-timeline li[data-state="current"] .account-timeline-marker {
  background: var(--color-accent);
  outline: 2px solid var(--color-accent);
}

.account-timeline li > span:last-child {
  min-width: 0;
  padding-right: var(--space-3);
  display: grid;
  gap: var(--space-1);
}

.account-timeline small {
  color: var(--color-text-secondary);
  font-size: var(--type-caption-size);
}

.account-timeline strong {
  font-size: var(--type-label-size);
  line-height: 1.35;
}

.account-order-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-order-list,
.account-address-list {
  display: grid;
  gap: var(--space-3);
}

.account-order-filters {
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-4);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-order-filter-primary {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.28fr);
  gap: var(--space-3);
}

.account-order-filters:not(.has-buyer) .account-order-filter-primary {
  grid-template-columns: minmax(0, 1fr);
}

.account-order-filter-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-order-filter-scroll {
  display: contents;
}

.account-order-activity-toggle {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-1);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
}

.account-order-activity-choice {
  position: relative;
  min-height: 32px;
  padding: 0 var(--space-5);
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  font-weight: var(--weight-semibold);
}

.account-order-activity-choice:has(input:checked) {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
}

.account-order-activity-choice > input {
  width: 1px;
  height: 1px;
  position: absolute;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.account-order-activity-choice:has(input:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.account-order-buyer strong {
  color: var(--color-text);
}

.account-order-reset {
  min-height: 40px;
  position: relative;
  padding: 0 var(--space-2);
  border: 0;
  color: var(--color-text-secondary);
  background: transparent;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  cursor: pointer;
}

.account-order-reset:hover {
  color: var(--color-accent);
}

.account-filter-chip {
  position: relative;
}

.account-filter-chip[open] {
  z-index: 22;
}

.account-filter-chip > summary {
  min-height: 40px;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: var(--color-surface-muted);
  font-size: var(--type-label-size);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  cursor: pointer;
}

.account-filter-chip > summary::-webkit-details-marker {
  display: none;
}

.account-filter-chip > summary .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  flex: 0 0 auto;
  transition: transform var(--duration-fast) var(--ease);
}

.account-filter-chip[open] > summary .account-icon {
  transform: rotate(180deg);
}

.account-filter-chip.is-active > summary {
  color: var(--color-text-inverse);
  background: var(--color-surface-inverse);
}

.account-filter-chip-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 280px;
  padding: var(--space-2);
  display: grid;
  gap: var(--space-1);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-floating);
  animation: ds-dropdown-enter 160ms var(--ease) both;
}

.account-filter-chip-option {
  min-height: 40px;
  padding: var(--space-2);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--type-label-size);
  cursor: pointer;
}

.account-filter-chip-option:hover {
  background: var(--color-surface-muted);
}

.account-filter-sheet-trigger {
  display: none;
}

.account-filter-sheet-options {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 0;
}

.account-filter-empty {
  min-height: 320px;
}

.account-icon-wrap {
  display: inline-grid;
}

.account-order-row {
  position: relative;
  isolation: isolate;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-4) var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}

.account-order-row:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-subtle);
}

.account-order-card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.account-order-card-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.account-order-card-copy,
.account-info-card,
.account-documents > div {
  min-width: 0;
}

.account-order-card-copy h2 {
  width: fit-content;
  margin: 0 0 var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--type-section-title-size);
}

.account-order-card-copy h2 .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-order-card-copy p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-order-card-copy .account-order-buyer {
  margin-top: var(--space-2);
}

.account-order-row-meta {
  min-width: 170px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.account-order-row-meta > strong {
  font-size: var(--type-subtitle-size);
  white-space: nowrap;
}

.account-order-payment-status {
  color: var(--color-text-secondary);
  font-size: var(--type-label-size);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.account-order-payment-status[data-tone="success"] { color: var(--color-success); }
.account-order-payment-status[data-tone="warning"] { color: var(--color-warning); }
.account-order-payment-status[data-tone="danger"] { color: var(--color-danger); }
.account-order-payment-status[data-tone="info"] { color: var(--color-info); }

.account-order-products {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.account-order-product {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.account-order-product img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.account-order-more {
  color: var(--color-text);
  font-size: var(--type-label-size);
  font-weight: var(--weight-bold);
  background: var(--color-surface-muted);
}

.account-order-card-actions {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-order-card-actions .ds-button {
  min-height: var(--control-md);
}

/* Отмена заказа необратима: стоит последней и выглядит иначе, чем переход к заказу. */
.ds-button.account-order-cancel {
  border-color: transparent;
  background: transparent;
  color: var(--color-danger);
}

@media (hover: hover) {
  .ds-button.account-order-cancel:hover {
    border-color: transparent;
    background: var(--color-danger-soft);
    color: var(--color-danger);
  }
}

.account-order-comment {
  white-space: pre-line;
}

.account-order-card-actions .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-back-link {
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.account-order-back-link {
  margin-bottom: 0;
}

.account-back-link .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-detail-heading-row,
.account-heading-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
}

.account-detail-heading-row {
  align-items: flex-start;
}

.account-heading-actions {
  align-items: center;
}

.account-detail-heading-row .account-statuses {
  padding-top: var(--space-5);
}

.account-action-note {
  margin: var(--space-2) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-detail-heading .account-form-status {
  margin-top: var(--space-2);
}

.account-order-detail {
  margin-top: 0;
}

.account-order-detail > .account-statuses {
  justify-content: flex-start;
}

.account-order-items {
  margin-top: var(--space-6);
  border-top: var(--border-width) solid var(--color-border);
}

.account-detail-section {
  padding: 0 var(--space-6) var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.account-order-items summary {
  min-height: var(--control-xl);
  display: flex;
  align-items: center;
  font-weight: var(--weight-bold);
  cursor: pointer;
}

.account-order-items ul {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.account-order-items li {
  min-width: 0;
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
}

.account-order-items img {
  width: 64px;
  height: 64px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  object-fit: contain;
}

.account-order-items li > span {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.account-order-items small {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-order-info-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.account-info-card,
.account-documents {
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.account-info-card h2,
.account-documents h2 {
  margin: var(--space-1) 0 var(--space-4);
  font-size: var(--type-section-title-size);
}

.account-info-card dl {
  margin: 0;
  display: grid;
}

.account-info-card dl > div {
  padding: var(--space-3) 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
}

.account-info-card dt,
.account-info-card p,
.account-documents p,
.account-document-placeholder {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-info-card dd {
  margin: 0;
  max-width: 58%;
  font-weight: var(--weight-bold);
  text-align: right;
}

.account-info-card .account-info-total {
  font-size: var(--type-subtitle-size);
}

.account-info-card p {
  margin: var(--space-4) 0 0;
}

.account-documents {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.account-documents h2,
.account-documents p {
  margin-bottom: 0;
}

.account-document-placeholder {
  max-width: 36ch;
  text-align: right;
}

.account-order-detail-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-order-detail-header h1 {
  margin: 0;
  font-size: var(--type-page-title-size);
  line-height: 1.1;
}

.account-order-detail-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-label-size);
}

.account-order-summary,
.account-order-detail-products {
  margin-top: var(--space-4);
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.account-order-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.account-order-summary-heading > .account-status {
  height: var(--space-8);
  padding-inline: var(--space-3);
  font-size: var(--font-size-14);
}

.account-order-summary-heading > div {
  display: grid;
  gap: var(--space-1);
}

.account-order-summary-heading > div > span {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-order-summary-heading h2,
.account-order-section-heading h2 {
  margin: 0;
  font-size: var(--type-section-title-size);
}

.account-order-brief {
  margin: var(--space-5) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.account-order-brief > div {
  min-width: 0;
  padding: var(--space-4);
  display: grid;
  align-content: start;
  gap: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
}

.account-order-brief dt,
.account-order-brief dd {
  min-width: 0;
  margin: 0;
}

.account-order-brief dt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--type-label-size);
  font-weight: var(--weight-medium);
}

.account-order-brief dt .account-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--color-accent);
}

.account-order-brief dd {
  display: grid;
  gap: var(--space-1);
}

.account-order-brief dd strong {
  font-size: var(--type-label-size);
}

.account-order-brief dd span {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-order-brief dd .account-status {
  width: fit-content;
  color: var(--color-success);
}

.account-order-track {
  min-height: var(--control-sm);
  justify-self: start;
  gap: var(--space-1);
  padding-inline: var(--space-3);
}

.account-order-track .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-order-summary-actions {
  margin-top: var(--space-4);
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-order-summary-actions .account-icon,
.account-order-item-actions .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-order-section-heading {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.account-order-section-heading > span {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-order-detail-products ul {
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.account-order-detail-item {
  min-width: 0;
  padding: var(--space-4) 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
}

.account-order-item-image {
  width: 88px;
  height: 88px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-order-item-image img {
  width: 100%;
  height: 100%;
  padding: var(--space-2);
  object-fit: contain;
}

.account-order-item-copy {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.account-order-item-name {
  color: var(--color-text);
  font-size: var(--type-label-size);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.account-order-item-total {
  font-size: var(--type-subtitle-size);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.account-order-item-name:hover {
  color: var(--color-accent-active);
}

.account-order-item-copy p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-order-item-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.account-order-item-actions .ds-button {
  min-height: var(--control-md);
}

.account-order-favorite[aria-pressed="true"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.account-order-item-request {
  color: var(--color-text-secondary);
  font-size: var(--type-label-size);
  font-weight: var(--weight-bold);
}

.account-tracking-dialog {
  width: min(560px, calc(100% - 32px));
}

.account-tracking-body {
  min-height: 0;
  display: grid;
}

.account-tracking-estimate {
  margin: 0 0 var(--space-2);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
}

.account-tracking-estimate span {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-tracking-timeline {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.account-tracking-timeline li {
  min-width: 0;
  min-height: var(--space-18);
  position: relative;
  display: grid;
  grid-template-columns: var(--icon-sm) minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
}

.account-tracking-timeline li::before {
  content: "";
  width: var(--border-width);
  position: absolute;
  top: var(--icon-sm);
  bottom: 0;
  left: 7px;
  background: var(--color-border-strong);
}

.account-tracking-timeline li:last-child::before {
  display: none;
}

.account-tracking-timeline li:last-child {
  min-height: 0;
}

.account-tracking-marker {
  width: var(--icon-sm);
  height: var(--icon-sm);
  z-index: 1;
  display: block;
  border: 4px solid var(--color-surface);
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  outline: var(--border-width) solid var(--color-border-strong);
}

.account-tracking-timeline li[data-state="complete"] .account-tracking-marker {
  background: var(--color-text);
  outline-color: var(--color-text);
}

.account-tracking-timeline li[data-state="current"] .account-tracking-marker {
  background: var(--color-accent);
  outline-color: var(--color-accent);
}

.account-tracking-timeline li > div {
  display: grid;
  gap: var(--space-1);
}

.account-tracking-timeline p,
.account-tracking-timeline time {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-tracking-timeline time {
  white-space: nowrap;
}

.account-profile-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}

.account-profile-form .account-profile-card,
.account-organization-form-grid {
  padding: var(--space-5);
  gap: var(--space-4);
  overflow: visible;
}

.account-profile-form {
  width: min(100%, 620px);
}

.account-profile-form .account-profile-card {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-6);
}

.account-profile-form .account-profile-card > label {
  min-width: 0;
}

.account-profile-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-3);
}

.account-profile-phone > label {
  min-width: 0;
}

.account-profile-phone .ds-field-control[readonly] {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.account-phone-change {
  min-height: var(--control-lg);
}

.account-phone-verified {
  grid-column: 1 / -1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-success);
  font-size: var(--type-meta-size);
  font-weight: var(--weight-semibold);
}

.account-phone-verified .account-phone-verified-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  color: var(--color-text-inverse);
  background: var(--color-success);
  border-radius: 50%;
}

.account-phone-verified-icon .ds-icon {
  width: 12px;
  height: 12px;
  color: inherit;
}

.account-form-actions,
.account-organization-detail-actions,
.account-organization-actions {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.account-organization-detail-actions {
  margin-top: var(--space-8);
}

.account-organization-list {
  display: grid;
  gap: var(--space-3);
}

.account-organization-card,
.account-organization-detail,
.account-auth-page {
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}

.account-organization-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.account-organization-card:hover {
  color: var(--color-accent-active);
  border-color: var(--color-accent);
}

.account-organization-card h3,
.account-organization-card p {
  margin: 0;
}

.account-organization-card p {
  color: var(--color-text-secondary);
  font-size: var(--type-body-size);
}

.account-organization-title {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-organization-title h3 {
  margin: 0;
}

.account-organization-card p + p {
  margin-top: var(--space-1);
}

.account-current-badge {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.account-organization-detail-heading h1 {
  margin-bottom: var(--space-2);
}

.account-organization-detail-heading .account-current-badge {
  display: inline-flex;
  background: var(--color-surface);
}

.ds-button.ds-button-secondary.account-button-white {
  background: var(--color-surface);
}

.ds-button.ds-button-secondary.account-button-white:hover {
  background: var(--color-surface-muted);
}

.ds-button.ds-button-secondary.account-button-white.account-order-track:hover {
  color: var(--color-accent);
  background: var(--color-surface);
}

.account-organization-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-8);
}

.account-organization-facts > div {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.account-organization-facts span {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-organization-facts strong {
  overflow-wrap: anywhere;
}

.account-organization-actions {
  position: relative;
  z-index: 2;
  min-width: max-content;
  margin-top: 0;
  justify-content: flex-end;
}

.account-organization-open {
  flex: 0 0 auto;
}

.account-organization-open .account-icon,
.account-organization-delete .account-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.account-organization-delete {
  flex: 0 0 auto;
  background: var(--color-surface-muted);
  border-color: var(--color-surface-muted);
}

.account-plain-action {
  position: relative;
  z-index: 2;
  min-height: var(--control-md);
  padding: 0;
  border: 0;
  color: var(--color-text);
  background: transparent;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

.account-plain-action:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

.account-organization-card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
}

.account-organization-card-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -3px;
}

.account-organization-card:focus-within {
  border-color: var(--color-accent);
}

.account-organization-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-organization-form {
  display: grid;
  gap: var(--space-4);
}

.account-organization-field-wide {
  grid-column: 1 / -1;
}

.account-organization-inn-field {
  position: relative;
  display: grid;
  gap: var(--space-2);
}

.account-organization-inn-hint {
  color: var(--color-text-secondary);
  font-size: var(--type-caption-size);
  line-height: var(--type-body-line);
}

.account-organization-suggestions {
  position: absolute;
  z-index: 3;
  inset: calc(100% - var(--space-1)) 0 auto;
  display: grid;
  padding: var(--space-2);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-floating);
}

.account-organization-suggestion {
  width: 100%;
  padding: var(--space-3);
  display: grid;
  gap: var(--space-1);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-organization-suggestion:hover,
.account-organization-suggestion:focus-visible {
  color: var(--color-accent-active);
  background: var(--color-accent-soft);
  outline: none;
}

.account-organization-suggestion span,
.account-organization-suggestion-empty {
  color: var(--color-text-secondary);
  font-size: var(--type-caption-size);
}

.account-organization-suggestion-empty {
  margin: 0;
  padding: var(--space-3);
}

.account-organization-address-match {
  width: fit-content;
}

.account-organization-form-section-title {
  margin: var(--space-2) 0 0;
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-border);
  font-size: var(--type-subtitle-size);
  line-height: var(--type-subtitle-line);
  font-weight: var(--weight-bold);
}

.account-organization-form-grid input[readonly] {
  color: var(--color-text-secondary);
  background: var(--color-surface-subtle);
}

.account-auth-page {
  max-width: 520px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-profile-card > div {
  min-height: 104px;
  padding: var(--space-5);
  display: grid;
  align-content: center;
  gap: var(--space-1);
  border-right: var(--border-width) solid var(--color-border);
  border-bottom: var(--border-width) solid var(--color-border);
}

.account-profile-card > div:nth-child(2n) {
  border-right: 0;
}

.account-profile-card > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.account-profile-form .account-profile-card > .account-profile-phone {
  min-height: 0;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
}

.account-profile-card span,
.account-address-list small {
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-profile-card small {
  color: var(--color-text-secondary);
  font-size: var(--type-caption-size);
}

.account-local-status:empty {
  display: none;
}

.account-address-list article {
  position: relative;
  min-height: 96px;
  padding: var(--space-4);
  display: grid;
  grid-template-columns: var(--control-lg) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}

.account-address-list article:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-subtle);
}

.account-address-card-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.account-address-card-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -3px;
}

.account-address-list article > div {
  width: var(--control-lg);
  height: var(--control-lg);
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.account-address-list article > span {
  display: grid;
  gap: var(--space-1);
}

.account-address-list .ds-badge {
  color: var(--color-success);
  background: var(--color-success-soft);
}

.account-state {
  min-height: 420px;
  align-content: center;
  justify-items: center;
  grid-auto-rows: max-content;
  gap: var(--space-4);
}

.account-state-loading {
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.account-skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.account-skeleton i {
  min-height: 132px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
  animation: account-pulse 900ms var(--ease) infinite alternate;
}

.account-skeleton i:first-child {
  min-height: 180px;
  grid-column: 1 / -1;
}

@keyframes account-pulse {
  to { opacity: .56; }
}

.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  overflow: hidden;
}

.account-auth-card,
.account-auth-aside {
  min-height: 600px;
  padding: var(--space-10);
}

.account-auth-card h1 {
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--type-page-title-size);
}

.account-auth-card > p {
  max-width: 56ch;
  color: var(--color-text-secondary);
}

.account-auth-form {
  max-width: 520px;
  margin-top: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.account-field-error {
  min-height: 18px;
  color: var(--color-danger);
  font-size: var(--type-caption-size);
}

.account-field-error:empty {
  display: none;
  min-height: 0;
}

.account-phone-dialog {
  width: min(480px, calc(100% - 32px));
}

.account-phone-step {
  display: grid;
  gap: var(--space-4);
}

.account-phone-step[hidden] {
  display: none;
}

.account-phone-code-copy {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-phone-code {
  max-width: 180px;
  font-size: var(--type-subtitle-size);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.account-phone-step[data-phone-step="code"] {
  gap: var(--space-3);
}

.account-phone-resend {
  margin-top: calc(-1 * var(--space-1));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-13);
}

.account-phone-resend-button {
  min-height: 44px;
  font-size: inherit;
}

.account-phone-resend-button:disabled {
  color: var(--color-disabled-text);
  cursor: default;
}

.account-phone-resend-button:disabled:hover {
  color: var(--color-disabled-text);
  text-decoration: none;
}

.account-auth-submit {
  justify-self: start;
}

.account-form-status {
  min-height: 22px;
  margin: 0;
  color: var(--color-success);
  font-size: var(--type-meta-size);
  font-weight: var(--weight-bold);
}

.account-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  background: var(--color-surface);
}

.account-dialog::backdrop {
  background: var(--color-overlay);
}

.account-dialog-form {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.account-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.account-dialog-heading h2 {
  margin: var(--space-1) 0 var(--space-2);
  font-size: var(--type-title-size);
}

.account-dialog-heading p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
}

.account-logout-sheet-copy {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
  line-height: 1.45;
}

.account-dialog-close {
  width: var(--control-md);
  height: var(--control-md);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
}

.account-dialog-close:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.account-dialog textarea {
  min-height: 96px;
  resize: vertical;
}

.account-dialog .ds-field-label small {
  color: var(--color-text-secondary);
  font-size: var(--type-caption-size);
  font-weight: var(--weight-regular);
}

.account-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.account-auth-footer {
  margin-top: var(--space-4);
}

.account-auth-footer a {
  min-height: var(--control-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-active);
  font-size: var(--type-label-size);
  font-weight: var(--weight-bold);
}

.account-auth-footer a:hover {
  color: var(--color-accent-active);
  text-decoration: underline;
  text-underline-offset: var(--space-1);
}

.account-auth-aside {
  color: var(--color-text-inverse);
  background: var(--color-surface-inverse);
}

.account-auth-aside h2 {
  max-width: 14ch;
  margin-top: 0;
  color: var(--color-text-inverse);
}

.account-auth-aside ul {
  margin: var(--space-8) 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  list-style: none;
}

.account-auth-aside li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--type-label-size);
  font-weight: var(--weight-bold);
}

.account-auth-aside li .ds-icon {
  color: var(--color-accent-bright);
}

.account-auth-aside p {
  color: var(--color-text-inverse);
  font-size: var(--type-label-size);
}

@media (max-width: 1024px) {
  .account-tracking-dialog.ds-bottom-sheet {
    width: 100%;
  }

  .account-filter-chip {
    display: none;
  }

  .account-filter-sheet-trigger {
    width: max-content;
    min-width: max-content;
    height: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    border: var(--border-width) solid transparent;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    background: var(--color-surface-muted);
    font: inherit;
    font-size: var(--font-size-12);
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    cursor: pointer;
  }

  .account-filter-sheet-trigger > span:first-child {
    min-width: max-content;
    white-space: nowrap;
  }

  .account-filter-sheet-trigger .account-icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
    flex: 0 0 auto;
  }

  .account-filter-sheet-trigger.is-active {
    color: var(--color-text-inverse);
    background: var(--color-surface-inverse);
  }

  .account-order-filter-secondary {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .account-order-filter-scroll {
    width: calc(100% + (2 * var(--space-4)));
    min-width: 0;
    height: 44px;
    margin-block: -2px;
    margin-inline: calc(-1 * var(--space-4));
    padding-block: 2px;
    padding-inline: var(--space-4);
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: var(--space-2);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--space-4);
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
  }

  .account-order-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .account-order-filter-scroll > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .account-order-filter-scroll.is-mouse-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .account-order-activity-toggle {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-order-reset {
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
  }

  .account-order-filter-primary {
    min-width: 0;
  }

  .account-filter-sheet.ds-bottom-sheet {
    width: 100%;
    max-width: none;
  }

  .account-filter-sheet-body {
    gap: var(--space-4);
  }

  body.account-page-body {
    min-width: 0;
  }

  .account-page-body.account-mobile-shell .site-header,
  .account-page-body.account-mobile-shell .account-breadcrumbs,
  .account-page-body.account-mobile-shell .account-mobile-nav {
    display: none;
  }

  .account-page-body.account-mobile-shell .account-main {
    min-height: 0;
    padding-top: var(--space-5);
    padding-bottom: calc(var(--space-10) + env(safe-area-inset-bottom));
  }

  .account-page-body.account-mobile-shell.account-recovery-page,
  .account-page-body.account-mobile-shell.account-recovery-page .account-main,
  .account-page-body.account-mobile-shell.account-recovery-page .account-mobile-screen,
  .account-page-body.account-mobile-shell.account-recovery-page .account-mobile-internal-header {
    background: var(--color-surface);
  }

  .account-page-body.account-mobile-shell.account-recovery-page .account-recovery-shell {
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding: var(--space-5) var(--space-4);
    border: 0;
    border-radius: 0;
  }

  .account-page-body.account-mobile-shell .account-page-container {
    width: min(calc(100% - 32px), 760px);
  }

  .account-page-body.account-mobile-shell .account-workspace {
    width: 100%;
    overflow: visible;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen {
    min-height: calc(100dvh - 148px - env(safe-area-inset-bottom));
    overflow: visible;
  }

  .account-page-body.account-mobile-shell .account-mobile-internal-header {
    position: static;
    z-index: 10;
    min-height: var(--control-xl);
    margin-bottom: 0;
    padding: var(--space-2) 0;
    display: grid;
    grid-template-columns: var(--control-md) minmax(0, 1fr) var(--control-md);
    align-items: center;
    gap: var(--space-3);
    background: var(--color-bg);
  }

  .account-page-body.account-mobile-shell .account-mobile-internal-header h1 {
    min-width: 0;
    margin: 0;
    font-size: var(--font-size-20);
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .account-page-body.account-mobile-shell .account-mobile-back {
    width: var(--control-md);
    min-height: var(--control-md);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    border: 0;
    color: var(--color-text-secondary);
    background: transparent;
    font: inherit;
    font-size: var(--font-size-14);
    cursor: pointer;
  }

  .account-page-body.account-mobile-shell .account-mobile-back:hover {
    color: var(--color-accent);
  }

  .account-page-body.account-mobile-shell .account-mobile-back:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: var(--space-1);
    border-radius: var(--radius-sm);
  }

  .account-page-body.account-mobile-shell .account-mobile-back .account-icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
  }

  .account-page-body.account-mobile-shell :is(.account-mobile-header-action, .account-mobile-header-action-placeholder) {
    width: var(--control-md);
    height: var(--control-md);
  }

  .account-page-body.account-mobile-shell .account-mobile-header-action {
    width: var(--control-sm);
    height: var(--control-sm);
    min-height: var(--control-sm);
    position: relative;
    justify-self: end;
    padding: 0;
  }

  .account-page-body.account-mobile-shell .account-mobile-header-action::before {
    content: "";
    position: absolute;
    width: 44px;
    height: 44px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .account-page-body.account-mobile-shell .account-mobile-header-action .account-icon {
    width: var(--icon-md);
    height: var(--icon-md);
  }

  .account-page-body.account-mobile-shell .account-mobile-screen-content .account-desktop-view-title,
  .account-page-body.account-mobile-shell .account-mobile-screen-content > .account-back-link {
    display: none;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen-content .account-view-heading[data-account-heading-meta="false"] {
    display: none;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen-content .account-view-heading {
    margin-bottom: var(--space-4);
  }

  .account-page-body.account-mobile-shell .account-mobile-screen:is([data-account-screen="addresses"], [data-account-screen="organizations"]) .account-mobile-screen-content > .account-view-heading {
    display: none;
  }

  .account-page-body.account-mobile-shell .account-mobile-heading-count {
    margin: 0;
    display: block;
    color: var(--color-text-secondary);
    font-size: var(--font-size-14);
  }

  .account-page-body.account-mobile-shell .account-orders-heading .account-mobile-heading-count {
    display: none;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen[data-account-screen="orders"] .account-orders-heading {
    display: none;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen[data-account-screen="order"] .account-mobile-screen-content {
    display: grid;
    gap: var(--space-2);
  }

  .account-page-body.account-mobile-shell .account-mobile-screen[data-account-screen="order"] :is(.account-order-summary, .account-order-detail-products) {
    margin-top: 0;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen[data-account-screen="recovery"] .account-recovery-back {
    display: none;
  }

  .account-page-body .service-bar,
  .account-page-body .quick-nav {
    display: none;
  }

  .account-page-body .main-header-inner {
    min-height: 136px;
    padding: var(--space-2) 0;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: var(--space-2);
  }

  .account-page-body .brand-logo {
    width: 52px;
    height: 52px;
  }

  .account-page-body .catalog-button {
    min-width: 52px;
    padding: 0;
  }

  .account-page-body .catalog-button > span:last-child {
    display: none;
  }

  .account-page-body .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .account-page-body .header-actions > :first-child {
    display: none;
  }

  .account-page-body .catalog-menu {
    height: calc(100vh - 136px);
    padding: var(--space-2);
  }

  .account-page-body .catalog-menu-shell {
    height: calc(100vh - 156px);
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .account-sidebar {
    display: none;
  }

  .account-mobile-nav {
    display: block;
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
  }

  .account-mobile-nav > summary {
    min-height: var(--control-xl);
    padding: var(--space-2) var(--space-4);
    display: grid;
    grid-template-columns: var(--icon-md) minmax(0, 1fr) var(--icon-sm);
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    list-style: none;
  }

  .account-mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .account-mobile-chevron {
    transition: transform var(--duration-fast) var(--ease);
  }

  .account-mobile-nav[open] .account-mobile-chevron {
    transform: rotate(180deg);
  }

  .account-mobile-nav nav {
    padding: var(--space-3);
    border-top: var(--border-width) solid var(--color-border);
  }

  .account-mobile-nav .account-logout {
    width: calc(100% - 24px);
    margin: 0 var(--space-3) var(--space-3);
  }

  .account-auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-filter-primary {
    grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr);
  }

  .account-order-reset {
    justify-self: start;
  }

  .account-auth-card,
  .account-auth-aside {
    min-height: 0;
    padding: var(--space-8);
  }

  .account-auth-aside {
    order: -1;
  }
}

@media (max-width: 360px) {
  .account-page-body.account-mobile-shell .account-home-quick-card {
    padding-inline: var(--space-2);
  }

  .account-page-body.account-mobile-shell .account-home-quick-card > .account-home-quick-label {
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .account-page-body.account-mobile-shell .account-home-quick-card > .account-home-quick-label {
    font-size: var(--font-size-12);
  }
}

@media (min-width: 1025px) {
  .account-orders-heading .account-heading-actions {
    margin-bottom: -16px;
  }
}

@media (max-width: 1024px) {
  .account-page-body .demo-state-toolbar-inner {
    min-height: 0;
    padding-block: var(--space-2);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: var(--space-2);
  }

  .account-page-body .demo-state-toolbar-copy {
    min-width: 0;
  }

  .account-page-body .demo-state-toolbar-controls {
    display: none;
  }

  .account-demo-state-dropdown {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .account-demo-state-dropdown .ds-dropdown-field,
  .account-demo-state-dropdown .ds-dropdown-trigger {
    width: 100%;
  }

  .account-demo-state-dropdown .ds-dropdown-trigger {
    min-height: var(--control-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-14);
  }
}

@media (max-width: 640px) {
  .account-page-body .header-actions :is(button, a) {
    min-width: 52px;
  }

  .account-page-body .header-actions span:not(.ds-icon) {
    display: none;
  }

  .account-page-body .catalog-menu-shell {
    grid-template-columns: 1fr;
  }

  .account-page-body .catalog-detail {
    display: none;
  }

  .account-main {
    padding-top: var(--space-4);
    padding-bottom: var(--space-12);
  }

  .account-page-body.account-mobile-shell .account-main {
    padding-bottom: calc(var(--space-10) + env(safe-area-inset-bottom));
  }

  .account-home {
    gap: var(--space-5);
  }

  .account-home-heading h1 {
    font-size: var(--type-title-size);
  }

  .account-home-buyer-heading .ds-dropdown-trigger {
    font-size: var(--type-title-size);
  }

  .account-home-quick {
    gap: var(--space-2);
    margin-top: -8px;
    margin-bottom: -8px;
  }

  .account-home-quick-card {
    min-height: 104px;
    padding: var(--space-3);
  }

  .account-view-heading h1,
  .account-auth-card h1 {
    font-size: var(--type-title-size);
  }

  .account-order-row {
    padding: var(--space-5);
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-card,
  .account-skeleton,
  .account-organization-form-grid,
  .account-organization-facts,
  .account-order-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-filter-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-filter-secondary {
    align-items: stretch;
    gap: var(--space-2);
  }

  .account-order-activity-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-1);
  }

  .account-order-activity-choice {
    padding-inline: var(--space-2);
    justify-content: center;
  }

  .account-filter-chip {
    width: auto;
    min-width: 0;
  }

  .account-filter-chip > summary {
    width: 100%;
    min-height: var(--control-md);
    justify-content: space-between;
    padding-inline: var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-12);
  }

  .account-filter-chip-menu {
    position: absolute;
    width: min(280px, calc(100vw - 32px));
    min-width: 0;
    margin-top: var(--space-2);
    box-shadow: var(--shadow-floating);
  }

  .account-filter-chip:last-of-type .account-filter-chip-menu {
    right: calc(-1 * (var(--control-md) + var(--space-2)));
    left: auto;
  }

  .account-order-reset {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    position: relative;
    justify-self: stretch;
    padding: 0;
    border-radius: var(--radius-lg);
    background: var(--color-surface-muted);
  }

  .account-order-reset > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .account-order-reset::before,
  .account-order-reset::after {
    content: "";
    width: 12px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: var(--radius-pill);
    background: currentColor;
  }

  .account-order-reset::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .account-order-reset::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .account-page-body.account-mobile-shell .account-mobile-screen:not([data-account-screen="home"]) :is(
    .account-order-filters,
    .account-order-row,
    .account-profile-card,
    .account-organization-card,
    .account-organization-detail,
    .account-organization-form-grid,
    .account-address-list article,
    .account-order-summary,
    .account-order-detail-products,
    .account-info-card,
    .account-detail-section,
    .account-state,
    .account-state-loading
  ) {
    margin-inline: -16px;
    border-right: 0;
    border-left: 0;
  }

  .account-page-body.account-mobile-shell .account-mobile-screen:not([data-account-screen="home"]) .account-state.account-empty-state {
    margin-inline: 0;
    border-right: var(--border-width) solid var(--color-border);
    border-left: var(--border-width) solid var(--color-border);
  }

  .account-profile-form .account-profile-card {
    padding: var(--space-4);
  }

  .account-profile-phone {
    grid-template-columns: minmax(0, 1fr) var(--control-lg);
    align-items: end;
  }

  .account-profile-phone.has-phone .account-phone-change {
    width: var(--control-lg);
    min-width: var(--control-lg);
    padding: 0;
  }

  .account-profile-phone.has-phone .account-phone-change-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .account-profile-phone.has-phone .account-phone-change .account-icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
  }

  .account-profile-phone:not(.has-phone) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .account-profile-phone:not(.has-phone) .account-phone-change {
    width: auto;
    min-width: 116px;
  }

  .account-phone-dialog.ds-bottom-sheet {
    width: 100%;
    max-width: none;
  }

  .account-phone-dialog.ds-bottom-sheet .ds-bottom-sheet-heading > div {
    min-width: 0;
  }

  .account-phone-dialog.ds-bottom-sheet .ds-bottom-sheet-heading p {
    margin: var(--space-1) 0 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-13);
    line-height: 1.4;
  }

  .account-phone-dialog.ds-bottom-sheet .account-phone-dialog-body {
    gap: var(--space-4);
  }

  .account-phone-dialog.ds-bottom-sheet .account-phone-step[data-phone-step="number"] > .ds-button {
    width: 100%;
  }

  .account-profile-form .account-form-actions > [data-profile-save] {
    width: 100%;
    flex-basis: 100%;
  }

  .account-organization-form .account-form-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .account-organization-form .account-form-actions > :is(.ds-button, a) {
    width: 100%;
  }

  .account-organization-card {
    flex-direction: column;
  }

  .account-organization-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .account-organization-field-wide {
    grid-column: 1;
  }

  .account-order-search {
    grid-column: auto;
  }

  .account-heading-actions,
  .account-detail-heading-row,
  .account-documents {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-detail-heading-row .account-statuses {
    padding-top: 0;
  }

  .account-document-placeholder {
    text-align: left;
  }

  .account-order-heading,
  .account-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-statuses {
    justify-content: flex-start;
  }

  .account-order-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .account-timeline li::before {
    width: var(--border-width);
    height: calc(100% + 12px);
    top: var(--icon-md);
    left: 10px;
    right: auto;
  }

  .account-order-row-meta {
    min-width: 0;
    grid-template-columns: auto auto;
    grid-column: 1;
    justify-content: start;
  }

  .account-order-row-meta > strong {
    order: -1;
  }

  .account-order-products,
  .account-order-card-actions {
    grid-column: 1;
  }

  .account-order-products {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(var(--account-order-product-columns, 5), minmax(0, 60px));
    overflow: visible;
  }

  .account-order-product {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    flex-basis: auto;
  }

  .account-order-card-actions .ds-button {
    flex: 1 1 auto;
  }

  .account-order-card-actions [data-order-open] {
    order: -1;
    flex-basis: 100%;
  }

  .account-order-summary-heading {
    align-items: center;
  }

  .account-order-summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-order-summary-actions > .ds-button {
    width: 100%;
  }

  .account-order-summary-actions > [data-order-pay] {
    order: 1;
  }

  .account-order-summary-actions > [data-order-cancel] {
    order: 2;
  }

  .account-order-summary-actions > :only-child {
    grid-column: 1 / -1;
  }

  .account-order-items li {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .account-order-items img {
    width: 56px;
    height: 56px;
  }

  .account-order-items li > b {
    grid-column: 2;
  }

  .account-info-card dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }

  .account-info-card dd {
    max-width: none;
    text-align: left;
  }

  .account-profile-card > div,
  .account-profile-card > div:nth-child(2n) {
    border-right: 0;
  }

  .account-address-list article {
    grid-template-columns: var(--control-lg) minmax(0, 1fr) auto;
  }

  .account-address-list .ds-badge {
    grid-column: 3;
    justify-self: end;
  }

  .account-order-list,
  .account-address-list,
  .account-organization-list,
  .account-order-brief,
  .account-order-info-grid,
  .account-organization-facts {
    gap: var(--space-2);
  }

  .account-auth-card,
  .account-auth-aside {
    padding: var(--space-5);
  }

  .account-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .account-dialog-form {
    padding: var(--space-5);
  }

  .account-dialog-actions .ds-button {
    width: 100%;
  }

  .account-auth-aside ul {
    margin: var(--space-5) 0;
  }
}

.account-address-dialog {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.account-address-dialog-shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
}

.account-address-form {
  min-width: 0;
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface);
}

.account-address-dialog-nav {
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.account-address-back {
  min-height: var(--control-md);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  color: var(--color-text-secondary);
  background: transparent;
  font: inherit;
  font-size: var(--type-label-size);
  cursor: pointer;
}

.account-address-back .account-icon {
  width: 18px;
  height: 18px;
}

.account-address-back:hover {
  color: var(--color-accent);
}

.account-address-dialog-heading {
  margin-bottom: var(--space-6);
}

.account-address-dialog-heading h2,
.account-address-view h3 {
  margin: 0;
}

.account-address-dialog-heading h2 {
  font-size: var(--font-size-24);
  line-height: 1.08;
}

.account-address-dialog-heading p {
  max-width: 44ch;
  margin: var(--space-2) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--type-meta-size);
  line-height: 1.45;
}

.account-address-view {
  display: grid;
  gap: var(--space-4);
}

.account-address-view-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
}

.account-address-view-heading h3,
.account-address-view-heading p {
  margin: 0;
}

.account-address-view-heading h3 {
  font-size: var(--type-subtitle-size);
}

.account-address-view-heading p {
  max-width: 48ch;
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-13);
  line-height: 1.45;
}

.account-address-map-toggle,
.account-map-confirmation {
  display: none;
}

.account-address-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.account-address-field-wide {
  grid-column: 1 / -1;
}

.account-address-default {
  width: fit-content;
  margin-top: var(--space-1);
}

.account-address-actions {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.account-address-submit {
  margin-top: 0;
}

.account-address-map {
  --account-map-pin-x: 52%;
  --account-map-pin-y: 43%;
  position: relative;
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 0;
  color: var(--color-text);
  background:
    linear-gradient(24deg, transparent 0 43%, rgba(255, 255, 255, 0.92) 43.2% 48%, transparent 48.2%),
    linear-gradient(102deg, transparent 0 64%, rgba(255, 255, 255, 0.92) 64.2% 69%, transparent 69.2%),
    #e8eef0;
  cursor: crosshair;
}

.account-address-map:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: -3px;
}

.account-address-map::after {
  content: "Нажмите на схему, чтобы выбрать точку";
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 5;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-secondary);
  font-size: var(--type-caption-size);
}

.account-address-map.has-selected-point::after {
  content: "Точка выбрана · нажмите, чтобы изменить";
}

.account-map-district,
.account-map-road,
.account-map-label,
.account-map-pin,
.account-map-address {
  position: absolute;
  pointer-events: none;
}

.account-map-district {
  border: var(--border-width) solid #c5d3d7;
  border-radius: var(--radius-lg);
  background: #d7e2e5;
}

.account-map-district-a {
  top: 10%;
  left: 8%;
  width: 18%;
  height: 15%;
  transform: rotate(-7deg);
}

.account-map-district-b {
  top: 12%;
  right: 9%;
  width: 17%;
  height: 14%;
  transform: rotate(6deg);
}

.account-map-district-c {
  right: 8%;
  bottom: 10%;
  width: 22%;
  height: 17%;
  transform: rotate(8deg);
}

.account-map-road {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(207, 216, 220, 0.5);
}

.account-map-road-main {
  top: 46%;
  left: -8%;
  width: 120%;
  height: 34px;
  transform: rotate(-8deg);
}

.account-map-road-cross {
  top: 35%;
  left: -8%;
  width: 120%;
  height: 26px;
  transform: rotate(27deg);
}

.account-map-road-ring {
  top: -18%;
  right: -12%;
  width: 34%;
  aspect-ratio: 1;
  border: 28px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.account-map-label {
  z-index: 2;
  color: #52666d;
  font-size: var(--type-caption-size);
  font-weight: var(--weight-bold);
}

.account-map-label-city {
  top: 8%;
  left: 8%;
  color: var(--color-text);
  font-size: var(--type-subtitle-size);
}

.account-map-label-panel {
  top: 30%;
  right: 14%;
}

.account-map-label-center {
  bottom: 18%;
  left: 18%;
}

.account-map-pin {
  top: var(--account-map-pin-y);
  left: var(--account-map-pin-x);
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-text-inverse);
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-control);
}

.account-map-pin .ds-icon {
  width: 28px;
  height: 28px;
}

.account-map-address {
  top: calc(var(--account-map-pin-y) + 42px);
  left: var(--account-map-pin-x);
  z-index: 4;
  max-width: min(320px, 62%);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-secondary);
  font-size: var(--type-caption-size);
  font-weight: var(--weight-bold);
  line-height: 1.35;
  transform: translateX(-50%);
}

@media (max-width: 1024px) {
  .account-address-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    overflow: hidden;
  }

  .account-address-dialog-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .account-address-form {
    height: 100dvh;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .account-address-form::-webkit-scrollbar {
    display: none;
  }

  .account-address-dialog-heading {
    display: none;
  }

  .account-address-view-heading {
    align-items: center;
  }

  .account-address-map-toggle {
    min-width: 0;
    min-height: var(--control-sm);
    display: inline-flex;
    padding-inline: var(--space-3);
    font-size: var(--font-size-12);
  }

  .account-address-map {
    display: none;
  }

  .account-address-dialog.is-adaptive-map-open .account-address-form {
    overflow: hidden;
  }

  .account-address-dialog.is-adaptive-map-open .account-address-view {
    display: none;
  }

  .account-address-dialog.is-adaptive-map-open .account-address-dialog-nav {
    position: relative;
    z-index: 3;
    margin-bottom: 0;
    background: var(--color-surface);
  }

  .account-address-dialog.is-adaptive-map-open .account-address-map {
    width: 100vw;
    height: calc(100dvh - 72px);
    min-height: 0;
    display: block;
    position: fixed;
    inset: 72px 0 0;
    z-index: 2;
    border-radius: 0;
  }

  .account-address-dialog.is-adaptive-map-open .account-map-confirmation:not([hidden]) {
    width: 100%;
    position: fixed;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4) max(var(--space-5), env(safe-area-inset-bottom));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--color-surface);
    box-shadow: 0 -12px 32px rgb(43 53 58 / 18%);
  }

  .account-map-confirmation > div {
    display: grid;
    gap: var(--space-1);
  }

  .account-map-confirmation span {
    color: var(--color-text-secondary);
    font-size: var(--font-size-12);
    font-weight: var(--weight-medium);
  }

  .account-map-confirmation strong {
    font-size: var(--font-size-16);
    line-height: 1.4;
  }

  .account-map-confirmation .ds-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .account-order-summary,
  .account-order-detail-products {
    padding: var(--space-4);
  }

  .account-order-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-brief > div {
    padding: var(--space-3);
  }

  .account-order-track {
    justify-self: start;
  }

  .account-order-detail-item {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
  }

  .account-order-item-image {
    width: 72px;
    height: 72px;
  }

  .account-order-item-actions {
    grid-column: 2;
    width: 100%;
    margin-top: -4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--control-sm);
    gap: var(--space-2);
  }

  .account-order-item-actions .ds-button {
    width: 100%;
    min-height: var(--control-sm);
    position: relative;
    padding-inline: var(--space-3);
  }

  .account-order-item-actions .ds-icon-button {
    width: var(--control-sm);
    height: var(--control-sm);
    position: relative;
  }

  .account-order-item-actions :is(.ds-button, .ds-icon-button)::before {
    content: "";
    position: absolute;
    width: max(100%, 44px);
    height: max(100%, 44px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .account-tracking-estimate {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }

  .account-tracking-timeline li {
    grid-template-columns: var(--icon-sm) minmax(0, 1fr);
  }

  .account-tracking-timeline time {
    grid-column: 2;
  }

  .account-address-form {
    padding: var(--space-4);
  }

  .account-address-dialog-heading h2 {
    font-size: var(--font-size-24);
  }

  .account-address-fields {
    grid-template-columns: 1fr;
  }

  .account-address-field-wide {
    grid-column: auto;
  }

  .account-address-actions,
  .account-address-actions .ds-button {
    width: 100%;
  }

  .account-address-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-address-map {
    min-height: 300px;
  }
}
