:root {
  --bg: #f1f3f7;
  --topbar: #e1e4e9;
  --surface: #ffffff;
  --hero-surface: #f4f5f5;
  --pill-bg: #f4f5f5;
  --text: #1a1a1a;
  --muted: #9a9a9a;
  --primary: #eaa30a;
  --primary-on: #ffffff;
  --link: #2329a6;
  --headline-blue: #2329a6;
  --error: #fe1100;
  --radius: 16px;
  --shell-pad: clamp(16px, 5vw, 120px);
  /* Checkout / shipment wizard: wider content than generic .shell (1200px) */
  --checkout-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
    color: var(--link);
}

.search-widget__combo .search-widget__field--error:first-child {
    border-radius: 16px 0 0 16px;
}
.search-widget__combo .search-widget__field--error:last-child {
    border-radius: 0;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page--login {
  background: var(--bg);
  gap: 43px;
}

.topbar {
  background: var(--topbar);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 120px;
}

.topbar--mobile {
  display: none;
  height: auto;
  min-height: 60px;
  padding: 12px 27px;
  justify-content: center;
  box-sizing: border-box;
}

.topbar-mobile__inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.mob-logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mob-logo-wrap a {
  pointer-events: auto;
}

.mob-logo-wrap__logo {
  display: block;
  height: 22px;
  width: auto;
}

.mob-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  flex-shrink: 0;
}

/* —— Login (1334:46310) —— */
.login-main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 var(--shell-pad);
}

.login-card {
  width: 505px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.login-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.login-form, .reset-password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login2-body .login-form .acct-otp__box {
    background: #fff;
}

.login-actions {
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.login-submit {
  width: 100%;
}

.login-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.login-footnote {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 16px;
}

.login2-card {
  gap: 24px;
}

.login2-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login2-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.login2-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.login2-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.login2-rules {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.login2-rules p {
  margin: 0 0 6px;
}

.login2-rules ul {
  margin: 0;
  padding-left: 24px;
}

.login2-rules li {
  margin: 0;
}

.login2-resend {
  margin: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: 16px;
}

.login2-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
}

.login2-back img {
  width: 24px;
  height: 24px;
  display: block;
}

.login-bottombar {
  margin-top: auto;
  padding: 32px 0;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
}

.login-bottombar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  height: 119px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.login-bottombar__copy {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.login-bottombar__nav {
  display: flex;
  gap: 16px;
}

.login-bottombar__link {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.login-bottombar__link:hover {
  color: var(--link);
}

.mob-icon-btn--link {
  text-decoration: none;
}

.mob-menu-icon {
  display: block;
}

/* Mobile bottom sheet menu (762:802) */
.mobmenu[hidden] {
  display: none !important;
}

.mobmenu {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobmenu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(1px);
}

.mobmenu__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  background: var(--surface);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  padding: 8px 0 32px;
  box-shadow: -1px -0.5px 2px rgba(0, 0, 0, 0.1), 1px 1.5px 1px rgba(0, 0, 0, 0.1);
}

.mobmenu__handle {
  width: 74px;
  height: 4px;
  border-radius: 16px;
  background: #eeeeee;
  margin: 0 auto 19px;
}

.mobmenu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 27px 6px;
}

.mobmenu__close {
  width: 24px;
  height: 24px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 26, 26, 0.55);
}

.mobmenu__close img {
  width: 24px;
  height: 24px;
  display: block;
}

.mobmenu__list {
  list-style: none;
  margin: 0;
  padding: 0 27px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobmenu__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
}

.mobmenu__link:hover {
  background: rgba(238, 238, 238, 0.7);
}

.mobmenu__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.topbar__inner {
  width: 1198px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand__homelink {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 158.715px;
  height: 32.006px;
  display: block;
}

.brand__divider {
  width: 1px;
  height: 31.177px;
  display: block;
}

.brand__tagline {
  margin: 0;
  font-weight: 600;
  font-size: 12.666px;
  letter-spacing: -0.1267px;
  line-height: 0.95;
  white-space: normal;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav__link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.content {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 43px;
}

.card {
  width: 505px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.title {
  margin: 0;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fineprint {
  margin: 0;
  text-align: center;
  color: rgba(20, 20, 20, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}

.fineprint__link {
  color: var(--primary);
  text-decoration: none;
}

.signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signin__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
}

.signin__link {
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--link);
  text-decoration: none;
}

.bottombar {
  flex: 0 0 auto;
  padding: 32px 120px;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  overflow: hidden;
}

.bottombar__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bottombar__copyright {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.bottomnav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.bottomnav__link {
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Home landing (619:1317) ——— */

.page--home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar--home {
  height: auto;
  min-height: 62px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-flag {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 38px;
  padding: 8px 24px 8px 20px;
  border: none;
  border-radius: 10px;
  background: var(--pill-bg);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.pill-btn--link {
  text-decoration: none;
  color: inherit;
}

.pill-btn__icon {
  flex-shrink: 0;
}

.home-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--hero-surface) 100%);
  overflow: hidden;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero__decor {
  position: absolute;
  left: 50%;
  top: 120px;
  transform: translate(-50%, -50%);
  width: min(1464px, 100%);
  max-width: 1464px;
  height: auto;
  opacity: 0.45;
  object-fit: contain;
}

.hero__line {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  width: min(1438px, 100%);
  max-width: 1438px;
  height: auto;
  object-fit: contain;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 0;
}

.shell--narrow {
  max-width: 640px;
}

.hero__title {
  margin: 0 auto 52px;
  max-width: 1200px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.08;
  color: var(--headline-blue);
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero__title-line {
  display: block;
}

.hero__title-highlight {
  color: var(--primary);
}

.hero__rest {
  color: var(--headline-blue);
}

.search-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.search-widget__combo {
  flex: 1 1 min(620px, 100%);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 72px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  max-width: 100%;
}

.search-widget__field {
  flex: 1 1 140px;
  position: relative;
  padding: 0 18px;
  border-right: 1px solid var(--primary);
  margin: 0;
  min-width: 0;
  align-self: stretch;
}

.search-widget__field:last-of-type {
  /*border-right: none;*/
}

.search-widget__field--select {
  padding-right: 44px;
}

.search-widget__input,
.search-widget__select {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text);
  outline: none;
  padding: 22px 0 6px;
  box-sizing: border-box;
}

.search-widget__field--select .search-widget__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.search-widget__float {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 36px);
  transition:
    top 0.15s ease,
    transform 0.15s ease,
    font-size 0.15s ease,
    line-height 0.15s ease;
}

.search-widget__input:focus + .search-widget__float,
.search-widget__input:not(:placeholder-shown) + .search-widget__float,
.search-widget__select:focus + .search-widget__float,
.search-widget__select:valid + .search-widget__float {
  top: 12px;
  transform: translateY(0);
  font-size: 14px;
  line-height: 19px;
}

.search-widget__chev {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.search-widget__chev img {
  width: 12px;
  height: 8px;
  display: block;
}

/* layout-only override when ui-swap-btn lives inside the search combo */
.search-widget__swap {
  margin: 0 -16px;
  align-self: center;
}

.search-widget > .ui-btn {
  flex: 0 0 200px;
  align-self: stretch;
}

.band {
  padding: 56px 0;
}

.band--muted {
  background: #f4f5f5;
}

.section-title {
  margin: 0 0 36px;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  color: var(--headline-blue);
}

.section-title--center {
  text-align: center;
}

.deal-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.deal-grid::-webkit-scrollbar {
  height: 6px;
}

.deal-grid::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.18);
  border-radius: 999px;
}

.deal-card {
  flex: 0 0 384px;
  max-width: 90vw;
  background: #f4f5f5;
  border-radius: 32px;
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.deal-card__route {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text);
}

.deal-card__text {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 23px;
  color: #404040;
}

.deal-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.deal-card__price {
  font-size: 28px;
  font-weight: 800;
  line-height: 32px;
  color: var(--text);
}

.deal-chip {
  background: var(--primary);
  color: var(--primary-on);
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  padding: 2px 4px;
  border-radius: 6px;
}

.deal-card__time {
  margin: auto 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  color: var(--muted);
}

.features {
  background: var(--bg);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
}

.feature-card__circle {
  width: 124px;
  height: 124px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.feature-card__text {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: var(--text);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 22px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(234, 163, 10, 0.25);
}

.step-card--soft {
  background: linear-gradient(180deg, #fdf8ec 0%, #fff 56%);
}

.step-card__badge {
  margin: 0 0 12px;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.step-card__title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: var(--text);
  min-height: 3em;
}

.step-demo {
  border-radius: 12px;
  background: var(--bg);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}

.step-demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  background: var(--surface);
  border-radius: 10px;
  margin-bottom: 8px;
}

.step-demo-row:last-child {
  margin-bottom: 0;
}

.step-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(234, 163, 10, 0.2);
  flex-shrink: 0;
}

.step-preview {
  text-align: center;
  padding: 24px 12px;
  background: rgba(35, 41, 166, 0.06);
  border-radius: 12px;
}

.step-preview__price {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.step-preview__btn {
  display: inline-block;
  padding: 8px 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.step-track-h {
  margin: 0 0 8px;
  font-weight: 700;
}

.step-track-rule {
  border: none;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  margin: 12px 0;
}

.step-track-ok {
  margin-top: 16px;
  color: #1a8f4a;
}

.audience-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.audience-block {
  display: grid;
  grid-template-columns: 1fr 544px;
  gap: 32px;
  align-items: start;
  background: #f4f5f5;
  border-radius: 32px;
  padding: 32px;
}

.audience-block--flip .audience-block__visual {
  order: 1;
}

.audience-block--flip .audience-block__body {
  order: 2;
}

.audience-block__visual {
  align-self: stretch;
  min-height: 336px;
  border-radius: 32px;
  background: url('./assets/audience-private.png') center / cover no-repeat;
}

.audience-block__visual--alt {
  background: url('./assets/audience-shop.png') center / cover no-repeat;
}

.audience-block__visual--biz {
  background: url('./assets/audience-biz.png') center / cover no-repeat;
}

.audience-block__body {
  padding: 0;
}

.audience-block__ttl {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 800;
  line-height: 32px;
  color: var(--text);
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text);
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

.bullet-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface);
}

.api-band {
  background: linear-gradient(90deg, #f9fafb 0%, #eef2fb 70%);
}

.api-band__shell {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 420px);
  gap: 32px;
  align-items: center;
}

.api-band__title {
  margin: 0 0 28px;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  color: var(--text);
}

.api-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.api-band__illus {
  aspect-ratio: 1;
  border-radius: 28px;
  background: url('./assets/api-illus.png') center / contain no-repeat,
    radial-gradient(circle at 30% 30%, rgba(234, 163, 10, 0.35), transparent 50%),
    linear-gradient(160deg, #2329a6 0%, #4a53c9 90%);
}

.lead-intro {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 600px;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: #404040;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq {
  margin: 0;
}

.faq__item {
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface);
}

.faq__toggle {
  width: 100%;
  text-align: left;
  padding: 14px 40px 14px 16px;
  border: none;
  background: var(--pill-bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.faq__toggle::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item--open .faq__toggle::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq__item dd {
  margin: 0;
  padding: 12px 16px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.75);
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.site-footer {
  flex-shrink: 0;
  padding: 40px 0 32px;
  background: var(--surface);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 32px;
  align-items: start;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col__ttl {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.footer-col__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col__links a {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(26, 26, 26, 0.7);
  text-decoration: none;
}

.footer-col__links a:hover {
  color: var(--link);
}

.footer-email {
  font-size: 16px;
  font-weight: 600;
  color: var(--link);
}

.footer-hours {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.65);
}

.site-footer__copy {
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 14px;
  color: rgba(26, 26, 26, 0.55);
}

@media (max-width: 980px) {
  .topbar--desktop {
    display: none;
  }

  .topbar--mobile {
    display: flex;
  }

  .topbar--mobile.topbar {
    padding: 12px 27px;
    height: auto;
    min-height: 60px;
  }

  .topbar__inner {
    width: 100%;
  }

  .topnav {
    display: none;
  }

  .btn-muted {
      background: var(--muted);
  }

  .btn--surface {
    padding: 8px 20px;
  }

  .bottombar {
    display: none;
  }

  .content {
    flex: 1 0 auto;
    padding: 64px 27px 48px;
    align-items: stretch;
  }

  .card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 36px;
  }

  .title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    max-width: 20rem;
  }

  .signin {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .signin__text,
  .signin__link {
    line-height: 1.3;
  }

  .page--home .hero {
    padding: 56px 0 40px;
  }

  .page--home .hero__line {
    display: none;
  }

  .page--home .hero__decor {
    opacity: 0.22;
    top: 96px;
  }

  .search-widget__combo {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    flex-basis: auto;
    width: 100%;
  }

  .search-widget__field {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(234, 163, 10, 0.45);
    min-height: 64px;
  }

  .search-widget__field:last-of-type {
    border-bottom: none;
  }

  .search-widget__swap {
    margin: -16px auto;
    align-self: center;
  }

  .search-widget .btn--search {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .audience-block,
  .audience-block.audience-block--flip {
    grid-template-columns: 1fr;
  }

  .audience-block--flip .audience-block__visual,
  .audience-block--flip .audience-block__body {
    order: unset;
  }

  .audience-block__visual {
    min-height: 180px;
  }

  .audience-block__body {
    padding: 22px;
  }

  .api-band__shell {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .login-title {
    font-size: 28px;
  }

  .login-bottombar__inner {
    padding: 0 27px;
    height: auto;
    min-height: 90px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .login-bottombar {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
  }
}

@media (min-width: 981px) {
  .topbar--mobile {
    display: none;
  }

  .topbar--desktop {
    display: flex;
  }
}

/* —— Tariff / rates page (619:1965) —— */
.page--tariff {
  background: var(--bg);
}
.tariff-context.delivery-form-from-to,
.tariff-context.dash-context {
    background: var(--topbar);
    padding: 0;
}
.tariff-context {
  background: var(--hero-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tariff-context__shell {
    margin: 0 auto;
    max-width: 1200px;
    padding: 12px 0 16px;
}

.tariff-searchline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.tariff-searchline__combo {
  flex: 1 1 min(520px, 100%);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 56px;
}

.tariff-sl {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
  padding: 7px 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  cursor: text;
}

.tariff-sl:last-of-type {
  border-right: none;
}

.tariff-sl--dim {
  flex: 1 1 200px;
  cursor: pointer;
}

.tariff-sl--select {
  cursor: pointer;
}

.tariff-sl__lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tariff-sl__val {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  padding: 0;
  min-width: 0;
}

.tariff-sl__val:focus {
  outline: none;
}

.tariff-sl:focus-within {
  box-shadow: inset 0 0 0 2px rgba(234, 163, 10, 0.35);
}

.tariff-sl__val--noborder {
  display: inline;
}

.tariff-sl__dimrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tariff-sl--select .tariff-sl__dimrow {
  position: relative;
}

.tariff-sl__sel {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  padding: 0 30px 0 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

.tariff-sl__chev {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.tariff-sl__sel:focus {
  outline: none;
}

.tariff-sl--select:focus-within {
  box-shadow: inset 0 0 0 2px rgba(234, 163, 10, 0.35);
}

.tariff-searchline__swap {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 -4px;
}

.tariff-find {
  flex: 0 0 auto;
  min-width: 120px;
}

.tariff-main {
  flex: 1;
  padding: 20px var(--shell-pad) 48px;
}

.tariff-main__shell {
  max-width: 1198px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.tariff-filters {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 14px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.filter-panel + .filter-panel {
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 12px;
}

.filter-panel__hdr {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.filter-panel__caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  transform-origin: 50% 35%;
}

.filter-panel__hdr[aria-expanded='false'] .filter-panel__caret {
  transform: rotate(-90deg);
}

.filter-panel__body[hidden] {
  display: none !important;
}

.filter-panel__body {
  padding: 4px 0 8px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.filter-row input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
}

.filter-row__hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.chk {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #c5c8ce;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  pointer-events: none;
}

.filter-row input:focus-visible + .chk {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.filter-row input:checked + .chk {
  border-color: var(--link);
  background: var(--link);
}

.chk__mark {
  display: block;
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.filter-row input:checked + .chk .chk__mark {
  opacity: 1;
}

.filter-expand {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
  color: var(--link);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.filter-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-switch__input {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
}

.filter-switch__ui {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #d0d3d8;
  position: relative;
  transition: background 0.15s;
  pointer-events: none;
}

.filter-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.filter-switch:has(.filter-switch__input:focus-visible) .filter-switch__ui {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.filter-switch:has(.filter-switch__input:checked) .filter-switch__ui {
  background: var(--link);
}

.filter-switch:has(.filter-switch__input:checked) .filter-switch__ui::after {
  transform: translateX(20px);
}

.tariff-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tariff-toolchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tariff-toolchip--date {
  position: relative;
  overflow: hidden;
}

.tariff-toolchip--date .tariff-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 16px;
}

.tariff-toolchip--date img {
  pointer-events: none;
}

.tariff-toolchip__text {
  font-weight: 600;
  pointer-events: none;
}

.tariff-sort__field {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tariff-sort__control {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: min(248px, 100%);
}

.tariff-sort__sel {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
  margin: 0;
}

.tariff-sort__sel:focus {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 1px;
}

.tariff-sort__chev {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.tariff-sort__lbl {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-end;
}

.tariff-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rate-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rate-card--best {
  border-color: #eaa30a;
  box-shadow: 0 0 0 1px rgba(234, 163, 10, 0.25);
}

.rate-card--fast {
  border-color: #0097c4;
  box-shadow: 0 0 0 1px rgba(0, 151, 196, 0.2);
}

.rate-card--cheap {
  border-color: #d4bb83;
  box-shadow: 0 0 0 1px rgba(212, 187, 131, 0.35);
}

.rate-card__ribbon {
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-card__ribbon--best {
  background: linear-gradient(90deg, #f5a623 0%, #eaa30a 100%);
  color: var(--primary-on);
}

.rate-card__ribbon--fast {
  background: linear-gradient(90deg, #00a8d8 0%, #0097c4 100%);
  color: #fff;
}

.rate-card__ribbon--cheap {
  background: linear-gradient(90deg, #e8d5a0 0%, #d4bb83 100%);
  color: #3d3318;
}

.rate-card__body {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.2fr) auto;
  grid-template-areas:
    'brand mid right'
    'tags tags right'
    'more more more';
  gap: 12px 20px;
  align-items: start;
  padding: 16px 18px 14px;
}

.rate-card__brand {
  grid-area: brand;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rate-card__logo {
  display: block;
  flex-shrink: 0;
}

.rate-card__titles {
  min-width: 0;
}

.rate-card__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rate-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pill-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.rate-card__lead {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.rate-card__mid {
  grid-area: mid;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 18px;
  min-width: 0;
}

.rate-line {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.rate-line:last-of-type {
  margin-bottom: 0;
}

.rate-line a {
  color: var(--link);
  font-weight: 600;
}

.rate-ico {
  display: inline-block;
  width: 1.25em;
  margin-right: 4px;
  opacity: 0.75;
}

.rate-expand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: var(--text);
}

.rate-expand[hidden] {
  display: none !important;
}

.rate-expand p {
  margin: 0 0 6px;
}

.rate-card__right {
  grid-area: right;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.rate-card__price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.rate-book {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-on);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rate-book:hover {
  filter: brightness(1.03);
}

.rate-card__tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rate-card__tags span {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--pill-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.rate-card__tags .badge-more {
  border-style: dashed;
  color: var(--muted);
}

.rate-more {
  grid-area: more;
  margin-top: 4px;
  padding: 8px 0 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--link);
  cursor: pointer;
  text-align: left;
}

.rate-more:hover,
.rate-more--active {
  text-decoration: underline;
}

.rate-card--details-open .rate-expand:not([hidden]) {
  display: block;
}

@media (max-width: 980px) {
  .tariff-main__shell {
    grid-template-columns: 1fr;
  }

  .tariff-filters {
    order: 0;
  }

  .tariff-results {
    order: 1;
  }

  .rate-card__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'mid'
      'right'
      'tags'
      'more';
  }

  .rate-card__mid {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
  }

  .rate-card__right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .tariff-searchline {
    flex-direction: column;
    align-items: stretch;
  }

  .tariff-searchline__combo {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .tariff-sl {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .tariff-sl:last-of-type {
    border-bottom: none;
  }

  .tariff-searchline__swap {
    margin: -22px auto 4px;
  }

  .tariff-find {
    width: 100%;
    min-height: 52px;
  }

  .tariff-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tariff-sort__field {
    align-items: stretch;
    width: 100%;
  }

  .tariff-sort__control {
    width: 100%;
    min-width: 0;
  }

  .tariff-sort__lbl {
    align-self: flex-start;
  }
}

/* —— Fields showcase (655:1487) —— */
.page--fields {
  background: #d9d9d9;
}

.fields-main {
  flex: 1;
  padding: 40px var(--shell-pad) 64px;
}

.fields-shell {
  max-width: 980px;
  margin: 0 auto;
}

.fields-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ui-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.ui-field__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.ui-field__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
}

.ui-field__control {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

.ui-field__input,
.ui-field__select {
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  color: var(--text);
  outline: none;
  padding: 4px 0;
  box-sizing: border-box;
}

.ui-field--select .ui-field__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Float-label layout: reserve 18px on top of the value for the label */
.ui-field__inner--float .ui-field__input,
.ui-field__inner--float .ui-field__select {
  padding: 22px 0 4px;
}

.ui-field__float {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition:
    top 0.15s ease,
    transform 0.15s ease,
    font-size 0.15s ease,
    line-height 0.15s ease;
}

/* Float up on focus, when value typed (input), or when a real option is picked (select) */
.ui-field__inner--float .ui-field__input:focus + .ui-field__float,
.ui-field__inner--float .ui-field__input:not(:placeholder-shown) + .ui-field__float,
.ui-field__inner--float .ui-field__select:focus + .ui-field__float,
.ui-field__inner--float .ui-field__select:valid + .ui-field__float {
  top: 5px;
  transform: translateY(0);
  font-size: 14px;
  line-height: 19px;
}

.ui-field__chev {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ui-field__chev img {
  width: 12px;
  height: 8px;
  display: block;
}

/* Suffix next to value (units: lb, in) */
.ui-field__suffix {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  padding-right: 2px;
}

a.ui-btn {
  text-decoration: none;
}

a.ui-btn--primary {
  color: var(--primary-on);
}

a.ui-btn--secondary {
  color: var(--text);
}

.ui-field__action {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}

.ui-field__action:hover {
  color: var(--text);
}

.ui-field__action:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 6px;
}

.ui-field__action img {
  display: block;
  max-width: 20px;
  max-height: 20px;
}

.ui-field__support {
  font-size: 14px;
  color: var(--text);
}

.ui-field__support p,
.ui-field__support .ui-field__support-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.ui-field__support ul,
.ui-field__support .ui-field__support-list {
  margin: 0;
  padding-left: 18px;
}

.ui-field__support--error {
  color: var(--error);
}

.ui-field--error .ui-field__inner {
  border-color: var(--error);
}

.ui-field__inner:focus-within {
  box-shadow: 0 0 0 2px rgba(35, 41, 166, 0.25);
}

/* —— Checkbox (655:1634) / Radio (657:141) —— */
.ui-check,
.ui-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.ui-check .chk {
  border-width: 1px;
  border-color: #d9d9d9;
}

.ui-check__input:checked + .chk {
  background: var(--link);
  border-color: var(--link);
}

.ui-check__input:checked + .chk .chk__mark {
  opacity: 1;
}

.ui-check__input:focus-visible + .chk {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.rdo {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rdo__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  opacity: 0;
}

.ui-radio__input:checked + .rdo {
  background: var(--link);
  border-color: var(--link);
}

.ui-radio__input:checked + .rdo .rdo__dot {
  opacity: 1;
}

.ui-radio__input:focus-visible + .rdo {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

@media (max-width: 740px) {
  .fields-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Pagination (932:12839) —— */
.page--pagination {
  background: var(--bg);
}

.pagination-main {
  flex: 1;
  padding: 40px var(--shell-pad) 64px;
}

.pagination-shell {
  max-width: 980px;
  margin: 0 auto;
}

.pagination-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pagination__btn {
  width: 45px;
  height: 45px;
  padding: 8px 15px;
  border-radius: var(--radius);
  background: #eeeeee;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}

.pagination__btn--active {
  background: var(--primary);
  color: var(--primary-on);
  font-weight: 600;
}

.pagination__btn:focus-visible {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 2px;
}

.pagination__btn--dots {
  cursor: default;
}

/* —— Buttons (652:1353) —— */
.page--buttons {
  background: #d9d9d9;
}

.buttons-main {
  flex: 1;
  padding: 40px var(--shell-pad) 64px;
}

.buttons-shell {
  max-width: 980px;
  margin: 0 auto;
}

.buttons-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.buttons-card {
  padding: 18px 20px;
  border: 2px dashed rgba(125, 85, 255, 0.5);
  border-radius: 18px;
}

.btn-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 16px 22px;
  align-items: center;
  justify-content: start;
}

.ui-btn {
  border: none;
  border-radius: var(--radius);
  padding: 8px 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.ui-btn--primary {
  background: var(--primary);
  color: var(--primary-on);
  font-weight: 700;
}

.ui-btn--secondary {
  background: #eeeeee;
  color: var(--text);
  font-weight: 600;
}

.ui-btn--l {
  height: 72px;
  font-size: 18px;
  padding-inline: 60px;
}

.ui-btn--m {
  height: 58px;
  font-size: 16px;
  padding-inline: 60px;
}

.ui-btn--s {
  height: 45px;
  font-size: 16px;
  padding-inline: 60px;
}

.ui-btn--icon {
  padding-inline: 15px;
  width: 45px;
  justify-content: center;
}

.ui-btn--m.ui-btn--icon {
  width: 58px;
  padding-inline: 20px;
}

.ui-btn--l.ui-btn--icon {
  width: 72px;
  padding-inline: 25px;
}

.ui-btn--full {
  width: 100%;
  justify-content: center;
}

/* Reusable swap (toggle two adjacent fields) */
.ui-swap-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid #929595;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.15s ease,
    transform 0.2s ease;
}

.ui-swap-btn:hover {
  background: #f5f5f5;
}

.ui-swap-btn:active {
  transform: scale(0.94);
}

.ui-swap-btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ui-swap-btn img,
.ui-swap-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ui-btn__ico {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.ui-btn__ico--dark {
  filter: none;
}

.ui-btn:focus-visible {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 2px;
}

.btn-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.ui-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  text-decoration: none;
  font-family: inherit;
  user-select: none;
}

.ui-link-btn--m {
  font-size: 16px;
  font-weight: 600;
}

.ui-link-btn--s {
  font-size: 14px;
  font-weight: 600;
}

.ui-link-btn__ico img,
.ui-link-btn--icon img {
  width: 8px;
  display: block;
  object-fit: contain;
}

.ui-link-btn--icon {
  padding: 0;
}

@media (max-width: 740px) {
  .btn-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

/* —— Dashboard (934:22791) —— */
.page--dashboard {
  background: var(--bg);
}

.topbar--dash {
  padding-inline: var(--shell-pad);
}

.dash-topicons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dash-topicons__btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--link);
}

a.dash-topicons__btn {
  text-decoration: none;
}

.dash-topicons__btn img {
  width: 20px;
  height: 20px;
  display: block;
}
.dash-context {
  /*margin-top: -12px;*/
}

.dash-search__btn {
  height: 58px;
  padding-inline: 60px;
  font-weight: 700;
}

.dash-main {
  flex: 1 0 auto;
  padding: 24px 0 40px;
}

.dash-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.dash-sidebar {
  width: 224px;
  flex: 0 0 224px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav {
  background: var(--surface);
  padding: 16px 8px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-nav--bottom {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.dash-nav:not(.dash-nav--bottom) {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.dash-nav__item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  min-width: 0;
}

.dash-nav__item--active {
  background: #dce6fb;
}

.dash-nav__ico {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.dash-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}

.dash-topcards {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.dash-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  padding: 25px 16px;
}

.dash-track {
  width: min(433px, 100%);
}

.dash-track__row {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dash-track__field {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-track__input {
  width: 100%;
  height: 58px;
  border: none;
  outline: none;
  border-radius: 16px;
  background: #eeeeee;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
}

.dash-track__input::placeholder {
  color: var(--muted);
}

.dash-track__btn {
  width: 58px;
  height: 58px;
  padding-inline: 20px;
}

.dash-balance {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-balance__txt {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
}

.dash-balance__lbl {
  color: var(--text);
  white-space: nowrap;
}

.dash-balance__val {
  color: var(--muted);
  white-space: nowrap;
}

.dash-balance__btn {
  width: 58px;
  height: 58px;
  padding-inline: 20px;
  flex-shrink: 0;
}

.dash-h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.dash-parcels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-parcels__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-parcels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.parcel-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-radius: 16px;;
}

.parcel-card__top,
.parcel-card__bottom {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

.parcel-card__top {
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parcel-card__bottom {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.parcel-card__tophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.parcel-card__top .parcel-card__open {
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.parcel-card__top .parcel-card__tophead .parcel-chip {
  max-width: 100%;
}

.parcel-card__id {
  background: #fff;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.parcel-card__carrier {
  width: 38px;
  height: 32px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.parcel-card__carrier--narrow {
  width: 27px;
}

.parcel-card__track {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.parcel-card__route {
  background: #fff;
  padding: 0 16px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.parcel-card__routeico {
  width: 19px;
  height: 19px;
  display: block;
}

.parcel-card__meta {
  display: flex;
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
}

.parcel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.parcel-chip--orange {
  background: #ffdc8f;
}

.parcel-chip--green {
  background: #bff3b5;
}

.parcel-chip--blue {
  background: #b9cefd;
  color: var(--link);
  font-weight: 600;
}

.dash-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dash-mini {
  background: var(--surface);
  border-radius: 16px;
  padding: 25px 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.dash-mini__ttl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.dash-mini__ttl img {
  width: 24px;
  height: 24px;
  display: block;
}

.dash-mini__sub {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
}

.dash-mini__arr {
  width: 10px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
    align-self: center;
}

@media (max-width: 980px) {
    .delivery-form-from-to {
        display: none;
    }
  .dash-context {
    margin-top: 0;
  }

  .dash-shell {
    flex-direction: column;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-topcards {
    flex-direction: column;
  }

  .dash-parcels__grid {
    grid-template-columns: 1fr;
  }

  .dash-links {
    grid-template-columns: 1fr;
  }
}

/* —— Settings (ЛКА 1170:35002 … 1170:35960) —— */
.page--settings .dash-title {
  overflow-wrap: break-word;
}

.settings-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.settings-subnav {
  flex: 0 0 232px;
  width: 232px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-subnav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
}

.settings-subnav__link:hover {
  background: var(--pill-bg);
}

.settings-subnav__link--active {
  background: #dce6fb;
}

.settings-subnav__link--active:hover {
  background: #dce6fb;
}

.settings-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.settings-card__head {
  margin-bottom: 20px;
}

.settings-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.settings-card__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
  max-width: 62ch;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-form-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.settings-form-grid .settings-form-grid__full {
  grid-column: 1 / -1;
}

.settings-form .ui-field {
  min-width: 0;
}

.settings-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.settings-checkline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eeeeee;
}

.settings-checkline:first-of-type {
  padding-top: 4px;
}

.settings-checkline:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.settings-checkline__txt {
  min-width: 0;
}

.settings-checkline__txt strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.settings-checkline__txt span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.settings-checkline .ui-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.settings-keyblock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-keyrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
  min-width: 0;
}

.settings-keyrow .settings-checkline__txt {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-keyrow__val {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.settings-table-wrap--after-form {
  margin-top: 16px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.settings-table th,
.settings-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
  vertical-align: middle;
}

.settings-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-table tr:last-child td {
  border-bottom: none;
}

.settings-table__role {
  color: var(--muted);
  font-size: 14px;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #bff3b5;
  color: var(--text);
}

.settings-pill--muted {
  background: #eeeeee;
  font-weight: 500;
}

.settings-danger {
  border: 1px solid rgba(254, 17, 0, 0.35);
  background: #fff8f7;
}

.settings-danger .settings-card__title {
  color: var(--error);
}

.settings-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 440px;
  width: calc(100vw - 32px);
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(26, 26, 26, 0.12);
}

.settings-dialog::backdrop {
  background: rgba(26, 26, 26, 0.45);
}

.settings-dialog__inner {
  padding: 24px;
}

.settings-dialog__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.settings-dialog__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.settings-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.settings-dialog__actions--stretch {
  justify-content: stretch;
}

.settings-dialog__actions--stretch > .ui-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.settings-mobtabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
  min-width: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.settings-mobtabs__link {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.settings-mobtabs__link--active {
  background: #dce6fb;
  border-color: #c5d6f5;
}

@media (max-width: 980px) {
  .settings-wrap {
    flex-direction: column;
  }

  .settings-subnav {
    display: none;
  }

  .settings-mobtabs {
    display: flex;
  }
}

/* —— Account (1170:34960 · 1170:35410 · 1170:35720 · 1170:35732 · 1261:52857 · 1261:52967 · 1261:53094) —— */
.page--account {
  background: var(--bg);
}

.acct-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 952px;
  min-width: 0;
}

.acct-page-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.acct-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.acct-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 25px;
  background: var(--surface);
  border-radius: 16px 16px 2px 2px;
  box-sizing: border-box;
}

.acct-card-head__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.acct-card-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 25px;
  background: var(--surface);
  border-radius: 2px 2px 16px 16px;
  box-sizing: border-box;
}

.acct-headbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 8px 30px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.acct-headbtn:hover {
  filter: brightness(1.03);
}

.acct-headbtn__ico {
  flex-shrink: 0;
  display: block;
}

.acct-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.acct-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.acct-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  background: #e1e4e9;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.acct-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.acct-info-ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.acct-info-txt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  min-width: 0;
}

.acct-signout-row {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.acct-sec-note {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.acct-2fa-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-2fa-lbl {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.acct-switch {
  position: relative;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cfd3dc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.acct-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.acct-switch--on,
.acct-switch[aria-checked="true"] {
  background: var(--primary);
}

.acct-switch--on::after,
.acct-switch[aria-checked="true"]::after {
  transform: translateX(24px);
}

.acct-2fa-intro {
  margin-top: 0;
}

.ui-field.input-gr .ui-field__inner {
    background: #eee;
}

.acct-dlg-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.acct-dlg-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.acct-2fa-phone-row {
  display: flex;
  gap: 2px;
  align-items: stretch;
  width: 100%;
}

.acct-2fa-phone-field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: 16px 2px 2px 16px;
  background: #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
}

.acct-2fa-phone-field__lbl {
  font-size: 14px;
  color: var(--muted);
}

.acct-2fa-phone-field__val {
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-2fa-phone-edit {
  flex-shrink: 0;
  width: 58px;
  min-height: 58px;
  border: none;
  border-radius: 2px 16px 16px 2px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.acct-2fa-phone-edit:hover {
  filter: brightness(1.03);
}

.acct-2fa-code-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.acct-2fa-code-lbl {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.acct-otp {
  display: flex;
  gap: 2px;
  width: 100%;
}

.acct-otp__box {
  flex: 1 1 0;
  min-width: 0;
  height: 58px;
  border: none;
  border-radius: 2px;
  background: #eee;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  box-sizing: border-box;
}

.acct-otp__box:first-child {
  border-radius: 16px 2px 2px 16px;
}

.acct-otp__box:last-child {
  border-radius: 2px 16px 16px 2px;
}

.acct-otp__box:focus {
  outline: 2px solid var(--link);
  outline-offset: 1px;
  z-index: 1;
}

.acct-2fa-resend {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.acct-2fa-resend__btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}

.acct-2fa-resend__btn:hover {
  text-decoration: underline;
}

.acct-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .acct-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .acct-dialog .ab-dialog__handle {
    display: block;
  }

  .acct-page-title {
    font-size: 24px;
    font-weight: 700;
  }

  .acct-card-head__title {
    font-size: 18px;
  }

  .acct-headbtn {
    min-width: 45px;
    padding: 8px 15px;
  }

  .acct-headbtn__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .acct-headbtn {
    position: relative;
  }
}

.settings-panel--account {
  gap: 16px;
}

.settings-card__head--account {
  margin-bottom: 16px;
}

.settings-account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.settings-account-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dce6fb;
  color: var(--link);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.settings-account-hero__text {
  min-width: 0;
}

.settings-account-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: break-word;
}

.settings-account-email {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.settings-account-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-pill--verified {
  background: #bff3b5;
}

.settings-account-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.settings-account-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.settings-account-actions--split {
  justify-content: space-between;
}

.settings-account-signout {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--error);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.settings-account-signout:hover {
  color: var(--text);
}

.settings-account-signout:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.settings-account-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-account-rows > li {
  margin: 0;
}

.settings-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 4px 0;
  border: none;
  border-bottom: 1px solid #eeeeee;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  box-sizing: border-box;
}

a.settings-account-row {
  text-decoration: none;
  color: inherit;
}

.settings-account-row:last-child {
  border-bottom: none;
}

.settings-account-row:hover {
  color: var(--link);
}

.settings-account-row:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 8px;
}

.settings-account-row__main {
  min-width: 0;
}

.settings-account-row__main strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.settings-account-row__main span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.settings-account-row:hover .settings-account-row__main span {
  color: inherit;
  opacity: 0.85;
}

.settings-account-row__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.settings-account-row__ico img {
  width: 19px;
  height: 19px;
  display: block;
}

@media (max-width: 980px) {
  .settings-account-hero {
    flex-direction: column;
    text-align: center;
  }

  .settings-account-meta {
    justify-content: center;
  }

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

  .settings-account-signout {
    text-align: center;
    order: 2;
  }

  .settings-account-actions--split .ui-btn {
    order: 1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .settings-panel--account .settings-form-grid {
    grid-template-columns: 1fr;
  }
    .topbar-mobile__inner {
        max-width: 520px;
    }
}

/* —— Send parcel / оформление посылки (934:22920 · 934:22527 · 934:22692 · navbar 934:22639) —— */
.page--shipment {
  background: var(--bg);
}

.topbar__inner--shipment {
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.topbar--shipment .shipment-steps {
  order: 3;
  width: 100%;
  justify-content: center;
}

@media (min-width: 981px) {
  .topbar__inner--shipment {
    flex-wrap: nowrap;
  }

  .topbar--shipment .shipment-steps {
    order: 0;
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 16px;
  }
}

.shipment-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.shipment-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--pill-bg);
}

.shipment-step + .shipment-step {
  position: relative;
  margin-left: 10px;
}

.shipment-step + .shipment-step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 8px;
  height: 2px;
  margin-top: -1px;
  background: #cfd3d8;
  border-radius: 1px;
}

.shipment-step--current {
  background: #dce6fb;
  color: var(--link);
}

.shipment-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: rgba(35, 41, 166, 0.12);
  color: var(--link);
}

.shipment-step--current .shipment-step__num {
  background: var(--link);
  color: var(--primary-on);
}

.shipment-step__lbl {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .shipment-step__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .shipment-step {
    padding: 8px 10px;
  }
}

.shipment-lead {
  margin: -8px 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 70ch;
}

.shipment-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.shipment-card__head {
  margin-bottom: 20px;
}

.shipment-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.shipment-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 75ch;
}

.shipment-addr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.shipment-addr-col__ttl {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.shipment-addr-col .ui-field {
  margin-bottom: 12px;
}

.shipment-inline2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shipment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shipment-form-grid .ui-field {
  min-width: 0;
}

.shipment-form-grid__full {
  grid-column: 1 / -1;
}

.shipment-extras {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .shipment-addr-grid {
    grid-template-columns: 1fr;
  }

  .shipment-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .shipment-actions .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .shipment-form-grid {
    grid-template-columns: 1fr;
  }

  .shipment-inline2 {
    grid-template-columns: 1fr;
  }
}

/* Shipment wizard Figma modals (934:23356 … 934:20964 · 998:13924 · 999:5001 · 999:5102) */
.sp-figma-demos {
  margin: 16px 0 8px;
  padding: 12px 14px;
  background: var(--pill-bg);
  border: 1px dashed #cfd3d8;
  border-radius: 12px;
}

.sp-figma-demos > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.sp-devmodals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sp-devmodals__btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d8dce3;
  background: var(--surface);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.sp-devmodals__btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.sp-step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sp-step-tabs__btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d8dce3;
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.sp-step-tabs__btn--active {
  background: #dce6fb;
  border-color: #b8c9f0;
  color: var(--link);
}

.sp-step-panel:not(.sp-step-panel--active) {
  display: none;
}

.shipment-dlg-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 16px;
}

.shipment-dlg-banner--warn {
  background: #fff8e6;
  border: 1px solid #f5d48a;
  color: #6a5200;
}

.shipment-dlg-banner--info {
  background: #eef4ff;
  border: 1px solid #c5d6f5;
  color: var(--text);
}

.shipment-dlg-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.shipment-ab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipment-ab-row {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #eceef2;
  border-radius: 12px;
  cursor: pointer;
}

.shipment-ab-row:hover {
  border-color: #d0d7e2;
  background: #fafbff;
}

.shipment-ab-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.shipment-ab-row span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.settings-dialog.shipment-dlg--book {
  max-width: 520px;
}

.shipment-dlg--book .shipment-ab-row.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.shipment-dlg--book .shipment-ab-row input[type="radio"] + .chk {
  border-radius: 50%;
  margin-top: 4px;
}

.shipment-dlg--book .shipment-ab-row input[type="radio"]:checked + .chk .chk__mark {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  opacity: 1;
  transform: none;
}

.shipment-dlg--book .shipment-ab-row > span:last-of-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sp-dlg-errlist {
  margin: 0 0 16px;
  padding-left: 1.25em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.shipment-extras--split .shipment-extra-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* —— Partner matching / подбор партнёров (1324:45000 … 1324:45816) —— */
.page--partner-match {
  background: var(--bg);
}

.shipment-step--done {
  color: var(--text);
  background: #e8f4e8;
}

.shipment-step--done .shipment-step__num {
  background: #bff3b5;
  color: #1a5c1a;
  font-size: 13px;
}

.shipment-step--done .shipment-step__lbl {
  color: var(--text);
}

.pm-routebar .tariff-searchline__combo {
  flex: 1 1 auto;
}

.pm-routebar__arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  opacity: 0.75;
}

.tariff-sl__val--readonly {
  display: block;
  padding: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: default;
}

.pm-layout {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.pm-header {
  margin-bottom: 20px;
  text-align: center;
}

.pm-title {
  margin-bottom: 8px;
}

.pm-sub {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.pm-sub a {
  color: var(--link);
  font-weight: 600;
}

.pm-devtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.pm-devtabs__btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d8dce3;
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.pm-devtabs__btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.pm-devtabs__btn--active {
  background: #dce6fb;
  border-color: #b8c9f0;
  color: var(--link);
}

.pm-devtabs__btn:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.pm-panel:not(.pm-panel--active) {
  display: none;
}

.pm-panel--active {
  display: block;
}

.pm-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
}

.pm-card--flush {
  padding: 24px 20px;
}

.pm-card--success {
  border: 1px solid rgba(191, 243, 181, 0.8);
}

.pm-card--error {
  border: 1px solid rgba(254, 17, 0, 0.35);
  background: linear-gradient(180deg, #fff8f7 0%, var(--surface) 48%);
}

.pm-hero {
  text-align: center;
  margin-bottom: 28px;
}

.pm-hero--static {
  margin-bottom: 24px;
}

.pm-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.pm-ring-wrap--sm {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
}

.pm-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pm-ring--sm {
  transform: rotate(-90deg) scale(0.92);
}

.pm-ring__track {
  stroke: #e8eaef;
}

.pm-ring__arc {
  stroke: var(--primary);
  stroke-dasharray: 0 327;
  transition: stroke-dasharray 0.6s ease;
}

.pm-ring__arc--indeterminate {
  stroke-dasharray: 72 327;
  transform-origin: 60px 60px;
  animation: pm-ring-spin 1.35s ease-in-out infinite;
}

@keyframes pm-ring-spin {
  0% {
    stroke-dashoffset: 0;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: -80;
    transform: rotate(90deg);
  }

  100% {
    stroke-dashoffset: -160;
    transform: rotate(270deg);
  }
}

.pm-ring__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-ring-wrap--sm .pm-ring__icon {
  width: 40px;
  height: 40px;
}

.pm-card__h {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.pm-card__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.pm-pipeline {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pm-pipeline--compact {
  margin-bottom: 20px;
}

.pm-pipeline__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #eeeeee;
}

.pm-pipeline__row:last-child {
  border-bottom: none;
}

.pm-pipeline__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cfd3d8;
  margin-top: 2px;
  background: var(--surface);
}

.pm-pipeline__row--done .pm-pipeline__mark {
  border-color: #7ccf7c;
  background: #bff3b5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%231a5c1a' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pm-pipeline__row--active .pm-pipeline__mark {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 163, 10, 0.25);
}

.pm-pipeline__mark--pulse {
  animation: pm-pulse 1.4s ease-in-out infinite;
}

@keyframes pm-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(234, 163, 10, 0.35);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(234, 163, 10, 0);
  }
}

.pm-pipeline__txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.pm-pipeline__txt strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.pm-pipeline__txt span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.pm-pipeline--compact .pm-pipeline__txt span {
  display: none;
}

.pm-pipeline--compact .pm-pipeline__row {
  padding: 12px 0;
}

.pm-skel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-skel--dense {
  gap: 10px;
}

.pm-skel--compact {
  gap: 10px;
}

.pm-skel__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pm-skel__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(110deg, #eeeeee 0%, #f6f6f6 40%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s ease-in-out infinite;
}

.pm-skel__line {
  flex: 1 1 auto;
  height: 14px;
  border-radius: 8px;
  min-width: 0;
  background: linear-gradient(110deg, #eeeeee 0%, #f6f6f6 40%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s ease-in-out infinite;
}

.pm-skel__line--lg {
  max-width: 100%;
}

.pm-skel__line--md {
  max-width: 70%;
}

.pm-skel__line--sm {
  max-width: 45%;
}

.pm-skel__chip {
  flex-shrink: 0;
  width: 72px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(110deg, #eeeeee 0%, #f6f6f6 40%, #eeeeee 80%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s ease-in-out infinite;
}

@keyframes pm-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.pm-success-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
}

.pm-error-ico {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254, 17, 0, 0.12);
  color: var(--error);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-preview {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pm-preview__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
}

.pm-preview__badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffdc8f;
  color: var(--text);
}

.pm-preview__badge--muted {
  background: #e8eaef;
  font-weight: 600;
}

.pm-preview__name {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}

.pm-preview__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.pm-mobile-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}

.pm-mobile-frame {
  max-width: 390px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, #e4e6ea 0%, #d4d7dd 100%);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
}

/* Partner selection list + modals (934:20154 · 934:23707 · 934:23765 · 934:21647) */
.pm-layout--results {
  max-width: 920px;
}

.pm-header--page {
  text-align: left;
  margin-bottom: 24px;
}

.pm-sub--page {
  margin: 0;
  max-width: 62ch;
}

.pm-results-surface {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e8eaef;
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
  padding: 18px 22px 22px;
  margin-bottom: 4px;
}

.pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #eeeeee;
}

.pm-toolbar .ui-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pm-toolbar__svg {
  flex-shrink: 0;
  opacity: 0.88;
}

.pm-toolbar__back {
  flex-direction: row-reverse;
  gap: 8px;
}

.pm-toolbar__ico--flip {
  transform: scaleX(-1);
}

.pm-toolbar__grow {
  flex: 1 1 120px;
}

.pm-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 12px 16px;
  background: #f0faf0;
  border: 1px solid #d0ead2;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pm-live__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
  animation: pm-live-pulse 2s ease-out infinite;
}

@keyframes pm-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
}

.pm-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-offer {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid #e4e6ea;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: stretch;
  padding: 16px 18px;
}

.pm-offer--best {
  border-color: rgba(255, 193, 94, 0.85);
  box-shadow: 0 4px 20px rgba(255, 183, 77, 0.18);
}

.pm-offer--fast {
  border-color: rgba(180, 210, 255, 0.95);
}

.pm-offer__pick {
  display: flex;
  align-items: flex-start;
  padding-top: 6px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.pm-offer__pick input {
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
}

.pm-offer__pick input:focus-visible + .chk {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.pm-offer__pick input:checked + .chk {
  border-color: var(--link);
  background: var(--link);
}

.pm-offer__pick input:checked + .chk .chk__mark {
  opacity: 1;
}

.pm-offer__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.pm-offer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 240px;
}

.pm-offer__logo {
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.pm-offer__titles {
  min-width: 0;
}

.pm-offer__badge {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b06b00;
}

.pm-offer__badge--muted {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.pm-offer--fast .pm-offer__badge:not(.pm-offer__badge--muted) {
  color: var(--link);
}

.pm-offer__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.pm-offer__meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.pm-offer__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.pm-offer__price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.pm-results-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 20px;
}

.pm-dialog {
  border-radius: 16px;
}

.pm-dialog .pm-dlg-fieldset .filter-row input[type="radio"] + .chk {
  border-radius: 50%;
}

.pm-dialog .pm-dlg-fieldset .filter-row input[type="radio"]:checked + .chk .chk__mark {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  opacity: 1;
  transform: none;
}

.pm-results-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  max-width: 44ch;
}

.pm-results-hint__link {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

.pm-results-hint__link a {
  color: var(--link);
}

.pm-dlg-lead {
  margin-top: -4px;
}

.pm-dialog--filters .settings-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 580px);
  padding-bottom: 16px;
}

.pm-dlg-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -6px;
  padding: 0 6px 8px;
}

.pm-dlg-section-ttl {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pm-dlg-section-ttl:first-child {
  margin-top: 0;
}

.pm-dlg-fieldset {
  display: flex;
  flex-direction: column;
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 4px 14px;
  margin-bottom: 4px;
}

.pm-dlg-fieldset .filter-row {
  border-bottom: 1px solid #f0f1f4;
}

.pm-dlg-fieldset .filter-row:last-child {
  border-bottom: none;
}

.pm-dlg-switch {
  margin-top: 12px;
}

.pm-dlg-footer {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  margin-top: 8px;
}

.pm-dlg-footer__spacer {
  flex: 1 1 24px;
}

/* Partner selection mobile (934:21510) */
.page--pm-mobile {
  background: var(--bg);
}

.page--pm-mobile .topbar--desktop {
  display: none !important;
}

.page--pm-mobile .topbar--mobile {
  display: flex !important;
}

.page--pm-mobile .dash-main.pm-mob-main {
  padding-top: 8px;
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.page--pm-mobile .pm-mob-content.dash-content {
  gap: 0;
}

.pm-mob-shell {
  max-width: 432px;
  margin: 0 auto;
  width: 100%;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.pm-mob-steps {
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
  background: var(--topbar);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.pm-mob-steps__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 432px;
}

.pm-mob-steps__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
}

.pm-mob-steps__item--done {
  color: #1a5c1a;
  background: #e8f4e8;
  border-color: #c5e6c5;
}

.pm-mob-steps__item--current {
  color: var(--text);
  background: var(--surface);
  border-color: #e0e4ea;
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.06);
}

.pm-mob-steps__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.08);
}

.pm-mob-steps__item--done .pm-mob-steps__mark {
  background: #bff3b5;
  font-size: 10px;
}

.pm-mob-steps__item--current .pm-mob-steps__mark {
  background: var(--primary);
  color: var(--text);
}

.pm-mob-steps__lbl {
  white-space: nowrap;
}

.pm-mob-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  max-width: 432px;
  padding: 12px max(16px, env(safe-area-inset-left, 0px)) 14px max(16px, env(safe-area-inset-right, 0px));
  background: var(--bg);
}

.pm-mob-route__body {
  min-width: 0;
}

.pm-mob-route__line {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.pm-mob-route__city {
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-mob-route__arr {
  display: flex;
  opacity: 0.65;
}

.pm-mob-route__meta {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.pm-mob-route__edit {
  flex-shrink: 0;
}

.pm-layout--mob {
  max-width: 100%;
}

.page--pm-mobile .pm-header--mob {
  margin-bottom: 14px;
}

.page--pm-mobile .pm-title {
  font-size: 22px;
  line-height: 1.2;
}

.page--pm-mobile .pm-sub--mob {
  font-size: 14px;
  max-width: none;
}

.page--pm-mobile .pm-results-surface {
  padding: 12px 12px 14px;
  border-radius: 14px;
}

.pm-mob-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.pm-mob-toolbar .ui-btn {
  justify-content: center;
}

.pm-mob-toolbar__wide {
  grid-column: 1 / -1;
}

.pm-mob-toolbar__back {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2px;
}

.pm-live--mob {
  margin: 12px 0 14px;
  font-size: 13px;
  padding: 10px 12px;
}

.pm-offers--mob {
  gap: 10px;
}

.pm-offer--mob {
  padding: 12px 12px;
  gap: 0 10px;
}

.pm-offer--mob .pm-offer__name {
  font-size: 16px;
}

.pm-offer--mob .pm-offer__price {
  font-size: 20px;
}

.pm-mob-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.pm-mob-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface);
  border-top: 1px solid #e8eaef;
  box-shadow: 0 -10px 36px rgba(26, 26, 26, 0.1);
}

.site-footer--pm-mob {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.site-footer--pm-mob .site-footer__grid {
  padding-top: 24px;
}

.site-footer--pm-mob .site-footer__cols {
  gap: 20px;
}

@media (max-width: 640px) {
  .pm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-toolbar__grow {
    display: none;
  }

  .pm-offer__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-offer__side {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .pm-dlg-footer__spacer {
    display: none;
  }

  .pm-dlg-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pm-dlg-footer .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .pm-devtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .pm-devtabs__btn {
    flex: 0 0 auto;
  }

  .pm-card {
    padding: 24px 18px;
  }
}

/* —— Account modals (1170:35720 · 1170:35741 · 1261:52982 · 1261:53139 · 1261:53596 · 1261:53605) —— */
.account-dialog.account-dialog--wide {
  max-width: 520px;
}

.dialog-width {
    max-width: 520px;
}
.dialog-width.dialog--wide {
    max-width: 640px;
}

.account-dialog.account-dialog--compact {
  max-width: 400px;
}

.account-dialog__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.account-dialog__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
}

.account-dialog__x {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-dialog__x:hover {
  color: var(--text);
  background: var(--pill-bg);
}

.account-dialog__x:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.account-dlg-2fa-panel,
.acct-2fa-panel {
  min-width: 0;
}

.acct-dialog .account-dialog__title {
  font-size: 24px;
  font-weight: 700;
}

.account-dialog__hint {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.account-dialog__linklike {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-dialog__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--pill-bg);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
}

.account-sessions {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-sessions__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pill-bg);
  border-radius: 12px;
  min-width: 0;
}

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

.account-sessions__meta strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.account-sessions__meta span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* —— Checkout wizard: Parcel details & Payment (934:20523 · 934:21818 · 934:21297 · 934:22295) —— */
.sp-pd-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.sp-pd-page > .sp-pd-layout,
.sp-pd-page > .sp-pay-page {
  flex: 1 0 auto;
}

.sp-pd-page > .topbar--mobile {
  background: var(--surface);
}

@media (max-width: 980px) {
  .sp-pd-page .sp-pd-topbar--desk {
    display: none;
  }
}

.sp-pd-topbar {
  background: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 12px 2px;
  flex-shrink: 0;
}

.sp-pd-topbar__inner {
  width: 100%;
  max-width: var(--checkout-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.sp-pd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-pd-brand__homelink {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sp-pd-brand__logo {
  height: 32px;
  width: auto;
  display: block;
}

.sp-pd-brand__divider {
  height: 32px;
  width: auto;
}

.sp-pd-brand__tag {
  margin: 0;
  font-size: 12.7px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sp-pd-topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1100px) {
  .sp-pd-topnav {
    display: none;
  }
}

.sp-pd-topnav__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.sp-pd-topnav__link:hover {
  color: var(--link);
}

.sp-pd-topbar__tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.sp-pd-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: var(--radius);
  border: none;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.sp-pd-iconbtn:hover {
  background: var(--pill-bg);
}

.sp-pd-iconbtn__txt {
  font-size: 18px;
  font-weight: 700;
}

.sp-pd-stepper {
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 20px 0 10px;
  flex-shrink: 0;
}

.sp-pd-stepper__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--checkout-max);
  display: flex;
  gap: 2px;
  min-width: 0;
}

.sp-pd-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.sp-pd-step--done {
  background: #b9cefd;
  color: var(--link);
}

.sp-pd-step--current {
  background: #8eb7fc;
  color: var(--link);
}

.sp-pd-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(35, 41, 166, 0.15);
}

.sp-pd-step--current .sp-pd-step__num {
  background: var(--link);
  color: #fff;
}

.sp-pd-step--done .sp-pd-step__num {
  background: var(--link);
  color: #fff;
}

.sp-pd-step__lbl {
  line-height: 1.2;
}

.sp-pd-layout {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(300px, 26%);
  gap: 32px;
  align-items: start;
}

@media (max-width: 980px) {
  .sp-pd-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 16px;
  }
}

.sp-pd-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.sp-pd-main .ui-field {
  width: 100%;
  min-width: 0;
}

.sp-pd-grid2--fields {
  gap: 14px 18px;
}

.sp-pd-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.sp-pd-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-pd-seg {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pd-seg:first-child {
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pd-seg:last-child {
  border-radius: 2px 2px var(--radius) var(--radius);
}

.sp-pd-seg:only-child {
  border-radius: var(--radius);
}

.sp-pd-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-pd-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.sp-pd-card__title--solo {
  margin-bottom: 0;
}

.sp-pd-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sp-pd-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  cursor: pointer;
}

.sp-pd-linkbtn__ico {
  font-size: 18px;
  line-height: 1;
}

.sp-pd-meas-weight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sp-pd-meas-weight .ui-field {
  flex: 1 1 220px;
  min-width: 0;
}

.sp-pd-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  flex: 0 1 280px;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}

.sp-pd-hint-row img {
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-pd-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.sp-pd-dims .ui-field {
  flex: 1 1 140px;
  min-width: 0;
}

.sp-pd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-pd-field__lbl {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.sp-pd-field__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  background: #eee;
  border-radius: var(--radius);
}

.sp-pd-input,
.sp-pd-select {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.sp-pd-input::placeholder {
  color: var(--muted);
}

.sp-pd-field__unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  flex-shrink: 0;
}

.sp-pd-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.sp-pd-hint--muted {
  color: var(--muted);
}

.sp-pd-hint__ico {
  flex-shrink: 0;
}

.sp-pd-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .sp-pd-grid2 {
    grid-template-columns: 1fr;
  }
}

.sp-pd-field--block .sp-pd-field__row {
  width: 100%;
}

.sp-pd-field--mt {
  margin-top: 4px;
}

.sp-pd-manual {
  margin: 0;
}

.sp-pd-manual a {
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  text-decoration: none;
}

.sp-pd-manual a:hover {
  text-decoration: underline;
}

.sp-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 8px 24px;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.sp-pd-btn--ghost {
  background: #eee;
  color: var(--text);
}

.sp-pd-btn--accent {
  background: var(--primary);
  color: var(--primary-on);
}

.sp-pd-btn__star {
  font-size: 18px;
  line-height: 1;
}

.sp-pd-prose {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.sp-pd-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-pd-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #cfd3d8;
  border: none;
  padding: 0;
  cursor: pointer;
}

.sp-pd-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.sp-pd-toggle[aria-checked="true"] {
  background: var(--link);
}

.sp-pd-toggle[aria-checked="true"]::after {
  transform: translateX(24px);
}

.sp-pd-proceed {
  align-self: flex-start;
  margin-top: 4px;
}

.sp-pd-aside {
  position: sticky;
  top: 12px;
  min-width: 0;
}

@media (max-width: 980px) {
  .sp-pd-aside {
    position: static;
    order: 3;
  }
}

.sp-pd-sum {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-pd-sum__block {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pd-sum__block:first-child {
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pd-sum__block:last-child {
  border-radius: 2px 2px var(--radius) var(--radius);
}

.sp-pd-sum__route,
.sp-pd-sum__dims {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sp-pd-sum__carrier {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-pd-sum__logo {
  display: block;
  flex-shrink: 0;
}

.sp-pd-sum__svc {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
}

.sp-pd-sum__info {
  display: inline-flex;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.sp-pd-sum__rows {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-pd-sum__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.sp-pd-sum__row dt {
  margin: 0;
  font-weight: 400;
}

.sp-pd-sum__row dd {
  margin: 0;
  font-weight: 600;
}

.sp-pd-sum__row--total {
  font-weight: 700;
}

.sp-pd-sum__row--total dt {
  font-weight: 700;
}

.sp-pd-sum__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.sp-pd-map {
  display: none;
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, #dfe6ee, #c5d0e0);
}

@media (max-width: 980px) {
  .sp-pd-map {
    display: block;
  }
}

.sp-pd-map__cap {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sp-pd-map__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sp-pd-map__fake {
  margin: 52px 12px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.sp-pd-devtabs {
  margin-bottom: 8px;
}

.sp-pd-footlink {
  text-align: center;
  padding: 16px var(--shell-pad) 32px;
  font-size: 14px;
  color: var(--muted);
}

.sp-pd-footlink--inline {
  text-align: left;
  padding: 0;
  margin: 8px 0 0;
}

.sp-pd-navback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 12px;
  font-size: 14px;
}

.sp-pd-navback__sep {
  color: var(--muted);
  font-weight: 600;
}

.sp-pd-footlink a {
  color: var(--link);
  font-weight: 600;
}

/* Payment step (934:21297) */
.sp-pay-page {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
@media (max-width: 1220px) {
    .sp-pd-layout, .sp-pd-stepper,
    .sp-pay-page, .sp-pd-topbar,
    .tariff-context.delivery-form-from-to,
    .tariff-context.dash-context {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.sp-pay-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: stretch;
}

.sp-pay-seg--grow {
  flex: 1 1 auto;
}

@media (max-width: 900px) {
  .sp-pay-top {
    grid-template-columns: 1fr;
  }
}

.sp-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-height: 0;
}

.sp-pay-top .sp-pay-stack {
  height: 100%;
}

.sp-pay-seg {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pay-seg:first-child {
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pay-seg:last-child {
  border-radius: 2px 2px var(--radius) var(--radius);
}

.sp-pay-seg:only-child {
  border-radius: var(--radius);
}

.sp-pay-h {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.sp-pay-ab {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sp-pay-ab__badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eee;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-top: 2px;
}
.from-to-white {
    color: #fff;
    background: var(--muted);
}

.sp-pay-ab__txt {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.sp-pay-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--link);
  cursor: pointer;
}

.sp-pay-carrier {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-pay-carrier img {
  height: 32px;
  width: auto;
}

.sp-pay-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.sp-pay-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sp-pay-tags__add {
  font-weight: 800;
  color: var(--link);
}

.sp-pay-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: #b9cefd;
  font-size: 16px;
  color: var(--text);
}

.sp-pay-svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

@media (max-width: 720px) {
  .sp-pay-svc-cols {
    grid-template-columns: 1fr;
  }
}

.sp-pay-svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.sp-pay-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-pay-bottom__head {
  background: var(--surface);
  padding: 20px 25px;
  border-radius: var(--radius) var(--radius) 2px 2px;
}

.sp-pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

@media (max-width: 900px) {
  .sp-pay-split {
    grid-template-columns: 1fr;
  }
}

.sp-pay-split__col {
  background: var(--surface);
  padding: 20px 25px;
}

.sp-pay-split__col:first-child {
  border-radius: 0 0 0 var(--radius);
}

.sp-pay-split__col:last-child {
  border-radius: 0 0 var(--radius) 0;
}

@media (max-width: 900px) {
  .sp-pay-split__col:first-child {
    border-radius: 0;
  }

  .sp-pay-split__col:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

.sp-pay-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.sp-pay-row--total {
  font-weight: 700;
}

.sp-pay-promo-field {
  width: 100%;
  margin: 0;
}

.sp-pay-split__col--form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-pay-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.sp-pay-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-pay-radio .ui-radio {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.sp-pay-radio__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.sp-pay-svc-row .ui-check {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.sp-pay-terms {
  margin-top: 4px;
  align-items: flex-start;
  line-height: 1.35;
}

.sp-pay-terms .ui-check__label a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.sp-pay-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .sp-pay-actions {
    justify-content: stretch;
  }
}

/* —— Checkout step 1: carrier selection (934:20154 · 934:21510) —— */
.cw-searchwrap {
  background: var(--topbar);
  padding-bottom: 4px;
}

.cw-carrier-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 8px 0 40px;
}

.cw-searchrow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: var(--checkout-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 16px;
}

.cw-searchrow__fields {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.cw-field-pill {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.cw-field-pill__lbl {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.cw-field-pill__val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-searchrow__swap {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cw-searchrow__go {
  flex-shrink: 0;
  align-self: stretch;
  min-height: 48px;
  padding: 8px 28px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-on);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cw-searchrow__go {
    flex: 1 1 100%;
  }
}

.cw-carrier-desk {
  display: block;
}

.cw-carrier-mob {
  display: none;
  padding-bottom: 24px;
}

@media (max-width: 980px) {
  .cw-carrier-mob {
    display: block;
  }

  .cw-searchrow {
    padding-bottom: 12px;
  }
}

.cw-carrier-grid {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 1100px) {
  .cw-carrier-grid {
    grid-template-columns: min(260px, 32vw) minmax(0, 1fr);
    gap: 20px;
  }
}

.cw-filters-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
}

.cw-filters-block {
  background: var(--surface);
  padding: 15px 12px;
}

.cw-filters-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cw-filters-block__ttl {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.cw-filters-block .filter-row {
  margin-bottom: 10px;
}

.cw-filters-block .filter-row:last-child {
  margin-bottom: 0;
}

.cw-expand {
  margin: 4px 0 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.cw-filter-search {
  width: 100%;
  margin-top: 8px;
}

.cw-results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cw-results-head__grow {
  flex: 1 1 120px;
}

.cw-carrier-grid .pm-layout--results {
  max-width: none;
  margin: 0;
}

.cw-mob-sortbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) 12px max(16px, env(safe-area-inset-right, 0px));
  max-width: 520px;
  margin: 0 auto;
}

.cw-mob-sortbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.cw-mob-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
}

.cw-mob-shell .pm-results-surface {
  margin-top: 8px;
}

.cw-carrier-mob .pm-offer--mob {
  grid-template-columns: 1fr;
  padding: 14px 14px 16px;
}

.cw-carrier-mob .pm-offer--mob .pm-offer__body {
  width: 100%;
}

.cw-carrier-mob .pm-offer__mob-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.cw-carrier-mob .pm-offer__mob-actions .ui-btn {
  flex: 1 1 auto;
}

.cw-mob-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Address book extended (998:13924) */
.abbook-search-field {
  display: block;
  width: 100%;
  margin: 0 0 16px;
}

.abbook-grid {
  /*display: flex;*/
  /*flex-wrap: wrap;*/
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.abbook-card {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.abbook-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.abbook-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.abbook-card__row {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.abbook-card__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* —— Shipments list & parcel detail (Figma 963:16352 · 963:17069 · 963:16736 · 963:17328 · 963:16947 · 963:17513) —— */
.parcels-content {
  min-width: 0;
}

.ship-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 8px;
}

.ship-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ship-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.ship-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
}

.ship-tab:hover {
  filter: brightness(0.98);
}

.ship-tab--active {
  background: #b9cefd;
}

.ship-tab__ico {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text);
}

.ship-tab__badge {
  position: absolute;
  top: 6px;
  left: 22px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: #eaa30a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.ship-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

.ship-filter {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  border: none;
}

.ship-filter--grow {
  flex: 2 1 220px;
}

.ship-filter__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.ship-filter__input::placeholder {
  color: #9a9a9a;
}

.ship-filter__sel {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #9a9a9a;
  cursor: pointer;
  appearance: none;
  padding-right: 8px;
}

.ship-filter__ico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  opacity: 0.75;
}

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.ship-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ship-card__notice {
  margin: 0 0 2px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffdc8f;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}

.ship-card__top {
  background: #fff;
  border-radius: 16px 16px 2px 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ship-card__row1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ship-card__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 200px;
}

.ship-card__logo {
  width: 38px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.ship-card__track {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-card__track a {
  color: inherit;
  text-decoration: none;
}

.ship-card__track a:hover {
  color: var(--link);
  text-decoration: underline;
}

.ship-card__to {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
}

.ship-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.ship-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  flex-shrink: 0;
}

.ship-card__chip {
  max-width: min(100%, 420px);
}

.ship-card__chip--wide {
  max-width: 100%;
  flex: 1 1 200px;
}

.ship-card__route {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.ship-card__route-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.ship-card__bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border-radius: 2px 2px 16px 16px;
}

.ship-card__eta {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.ship-card__eta strong {
  font-weight: 600;
}

.ship-card__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ship-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
  text-decoration: none;
}

.ship-act:hover {
  text-decoration: underline;
}

.ship-act__ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ship-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ship-pager__btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ship-pager__btn--active {
  background: #eaa30a;
  color: #fff;
  font-weight: 600;
}

.ship-pager__btn--idle {
  background: #e1e4e9;
  color: var(--text);
  font-weight: 400;
}

/* Parcel detail (layout from 963:16736) */
.prd-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.prd-bc {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.prd-bc__link {
  color: var(--link);
  text-decoration: none;
}

.prd-bc__link:hover {
  text-decoration: underline;
}

.prd-bc__sep {
  margin: 0 6px;
  color: var(--muted);
}

.prd-bc__current {
  color: var(--text);
}

.prd-toprow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prd-trackline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prd-tracknum {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prd-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.prd-iconbtn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.prd-topacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.prd-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .prd-pair {
    grid-template-columns: 1fr;
  }
}

.prd-panel {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prd-panel__hd {
  padding: 20px 25px 12px;
}

.prd-panel__hd--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prd-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.prd-chip-soft {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 16px;
  background: #e1e4e9;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-panel__bd {
  padding: 0 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prd-ov-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.prd-ov-line__ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.prd-carrier-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.prd-carrier-inline__logo {
  width: 27px;
  height: 32px;
  object-fit: contain;
}

.prd-svc-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.prd-svc-inline:hover {
  color: var(--link);
  text-decoration: underline;
}

.prd-svc-inline__info {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.prd-th-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  padding-left: 20px;
}

.prd-th-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 28px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #b9cefd 0%, #dce6fb 100%);
}

.prd-th-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  position: relative;
  padding-left: 8px;
}

.prd-th-row::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8fabf5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #b9cefd;
}

.prd-th-dt {
  display: flex;
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-th-status {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.prd-th-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
}

.prd-th-more:hover {
  text-decoration: underline;
}

.prd-th-more__ico {
  width: 24px;
  height: 24px;
}

.prd-details {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.prd-details__hd {
  padding: 20px 25px 8px;
}

.prd-details__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.prd-details__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-details__cols {
    grid-template-columns: 1fr;
  }
}

.prd-details__col {
  padding: 20px 25px 24px;
}

.prd-details__col + .prd-details__col {
  border-left: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-details__col + .prd-details__col {
    border-left: none;
    border-top: 1px solid #f1f3f7;
  }
}

.prd-details__lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-details__lbl-ico {
  width: 24px;
  height: 24px;
}

.prd-details__stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prd-details__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.prd-details__row-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.prd-details__rule {
  padding: 16px 25px;
  border-top: 1px solid #f1f3f7;
}

.prd-details__shipped {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
}

.prd-details__svcrow {
  padding: 16px 25px;
  border-top: 1px solid #f1f3f7;
}

.prd-details__tags {
  padding: 12px 25px 16px;
  border-top: 1px solid #f1f3f7;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.prd-details__tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 16px;
  background: #e1e4e9;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.prd-details__parcel {
  padding: 16px 25px;
  border-top: 1px solid #f1f3f7;
}

.prd-details__parcel-t {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
}

.prd-details__parcel-ln {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.prd-paygrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-paygrid {
    grid-template-columns: 1fr;
  }
}

.prd-paycol {
  padding: 20px 25px 24px;
}

.prd-paycol + .prd-paycol {
  border-left: 1px solid #f1f3f7;
}

@media (max-width: 720px) {
  .prd-paycol + .prd-paycol {
    border-left: none;
    border-top: 1px solid #f1f3f7;
  }
}

.prd-payline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  padding: 6px 0;
}

.prd-payline__lbl {
  color: var(--muted);
  font-weight: 500;
}

.prd-payline__val {
  font-weight: 600;
  color: var(--text);
}

.prd-payline--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
  font-weight: 700;
}

.prd-paypal {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.prd-paypal-sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--text);
}

.prd-helpfoot {
  padding: 4px 0 8px;
}

.prd-helplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
  text-decoration: none;
}

.prd-helplink:hover {
  text-decoration: underline;
}

.account-dialog--parcel-svc {
  max-width: 560px;
}

.prd-dlg-svc__brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.prd-dlg-svc__sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

.prd-dlg-svc__list {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.prd-dlg-svc__tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-bottom: 8px;
}

.prd-dlg-svc__tbl th,
.prd-dlg-svc__tbl td {
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.prd-dlg-svc__tbl th {
  font-weight: 500;
  color: var(--muted);
  width: 55%;
}

.prd-dlg-svc__tbl td {
  font-weight: 700;
  text-align: right;
}

.prd-dlg-svc__tbl tr:last-child th,
.prd-dlg-svc__tbl tr:last-child td {
  border-bottom: none;
}

.prd-dlg-svc__note {
  margin-top: 4px !important;
  font-size: 13px !important;
}

.prd-kv {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prd-kv__row {
  display: grid;
  grid-template-columns: minmax(0, 160px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
}

.prd-kv__row:last-child {
  border-bottom: none;
}

.prd-kv__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.prd-kv__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.prd-banner {
  margin: 0;
  border-radius: var(--radius);
}

.prd-more {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 22px 16px;
}

.prd-more__sum {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--link);
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prd-more__sum::-webkit-details-marker {
  display: none;
}

.prd-more__sum::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
}

.prd-more[open] .prd-more__sum::after {
  content: "▴";
}

.prd-more__body {
  padding-bottom: 6px;
}

/* —— Help center (Figma 963:16615 · 963:17209) —— */
.page--help .dash-main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.hel-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hel-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.hel-tab:hover {
  filter: brightness(0.98);
}

.hel-tab--active {
  background: #b9cefd;
}

.hel-tab__ico {
  flex-shrink: 0;
  display: block;
}

.hel-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.hel-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.hel-search__input::placeholder {
  color: #9a9a9a;
}

.hel-search__ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.hel-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hel-panel--hidden {
  display: none;
}

.hel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hel-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 100%;
  max-width: 100%;
  filter: drop-shadow(1px 1px 15px rgba(0, 0, 0, 0.03));
}

@media (min-width: 981px) {
  .hel-card {
    flex: 1 1 calc(50% - 8px);
    max-width: 468px;
  }
}

.hel-card__hd {
  background: #fff;
  border-radius: 16px 16px 2px 2px;
  padding: 20px 25px;
}

.hel-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hel-card__bd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 2px 2px 16px 16px;
  padding: 20px 25px;
  flex: 1 1 auto;
}

.hel-linkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.hel-linkrow:hover .hel-linkrow__txt {
  color: var(--link);
}

.hel-linkrow__txt {
  flex: 1 1 auto;
  min-width: 0;
}

.hel-linkrow__chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.hel-vmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
}

.hel-vmore:hover {
  text-decoration: underline;
}

.hel-vmore__ico {
  width: 24px;
  height: 24px;
}

.hel-guides {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hel-guides__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hel-guides__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hel-guide {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 25px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.03);
}

.hel-guide:hover {
  filter: brightness(0.99);
}

.hel-guide__chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 16px;
  border-radius: 16px;
  background: #b9cefd;
  text-decoration: none;
  color: var(--text);
}

.hel-cta:hover {
  filter: brightness(0.97);
}

.hel-cta__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hel-cta__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.hel-cta__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.hel-cta__chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hel-tickets-lead {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 36rem;
}

.hel-footer {
  background: #e1e4e9;
  border-radius: 100px 100px 0 0;
  margin-top: 32px;
  padding: 32px clamp(16px, 5vw, 120px) 40px;
}

.hel-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hel-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 48px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .hel-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hel-footer__cols {
    grid-template-columns: 1fr;
  }
}

.hel-footer__ttl {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.hel-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hel-footer__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.hel-footer__link:hover {
  text-decoration: underline;
}

.hel-footer__line {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.hel-footer__block + .hel-footer__block {
  margin-top: 20px;
}

.hel-footer__copy {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}

@media (max-width: 980px) {
  .hel-head__title {
    font-size: 24px;
    font-weight: 700;
  }

  .hel-card__hd {
    padding: 16px;
  }

  .hel-card__title {
    font-size: 18px;
  }

  .hel-card__bd {
    padding: 16px;
  }
}

/* —— Address book (Figma 1028:14801 · 1028:14931 · 1028:17330 · 1028:17540 · 1028:15784 · 1028:15959 · 1034:13927 · 1028:18266) —— */
.page--addrbook .dash-main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.ab-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.ab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.ab-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.ab-tab:hover {
  filter: brightness(0.98);
}

.ab-tab--active {
  background: #b9cefd;
}

.ab-tab__ico {
  flex-shrink: 0;
  display: block;
}

.ab-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ab-toolbar__filter {
  display: none;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.ab-toolbar__filter:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ab-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-height: 58px;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.ab-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.ab-search__input::placeholder {
  color: #9a9a9a;
}

.ab-search__ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.ab-sort {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 1 260px;
  min-width: 0;
}

.ab-sort__lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding-left: 4px;
}

.ab-sort__field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 12px 8px 16px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.ab-sort__sel {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  appearance: none;
}

.ab-sort__chev {
  flex-shrink: 0;
  display: flex;
  opacity: 0.75;
  transform: rotate(90deg);
}

.ab-add {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  background: #eaa30a;
  cursor: pointer;
}

.ab-add:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.ab-add img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .ab-toolbar {
    /*display: grid;*/
    /*grid-template-columns: 58px 1fr 58px;*/
    /*grid-template-rows: auto auto;*/
    gap: 12px;
    align-items: stretch;
  }

  .ab-toolbar__filter {
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }

  .ab-search {
    grid-column: 2 / -1;
    grid-row: 1;
    flex: none;
  }

  .ab-sort {
    grid-column: 1 / 3;
    grid-row: 2;
    flex: none;
  }

  .ab-add {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: stretch;
  }
}

.ab-panels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ab-panel--hidden {
  display: none;
}

.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
}

.ab-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}

.ab-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ab-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.ab-fav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.ab-card__menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.ab-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ab-more:hover {
  color: var(--text);
  background: var(--pill-bg);
}

.ab-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 20;
  min-width: 200px;
  padding: 6px;
  border-radius: 16px;
  background: #eee;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ab-menu[hidden] {
  display: none !important;
}

.ab-menu__item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}

.ab-menu__item:hover {
  background: rgba(255, 255, 255, 0.6);
}

.ab-menu__item--danger {
  color: #fe1100;
}

.ab-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ab-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}

.ab-row__ico {
  flex-shrink: 0;
  margin-top: 2px;
}

.ab-row--multiline .ab-row__ico {
  margin-top: 3px;
}

.ab-ship-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.ab-ship-meta__dot {
  color: var(--muted);
}

.ab-ship-meta__carr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}

.ab-ship-meta__carr img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ab-link-act {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 16px;
  font-weight: 600;
  color: #eaa30a;
  text-decoration: none;
}

.ab-link-act:hover {
  text-decoration: underline;
}

.ab-link-act__ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #eaa30a;
  color: #eaa30a;
  flex-shrink: 0;
}

.ab-pager {
  margin-top: 8px;
}

.ab-dialog.account-dialog--wide {
  max-width: 560px;
}

.ab-dialog__handle {
  display: none;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #c9cdd4;
}

.ab-dlg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 16px;
}

.ab-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: 16px;
  background: #eee;
  box-sizing: border-box;
}

.ab-field--full {
  grid-column: 1 / -1;
}

.ab-field__lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.ab-field__inp {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  padding: 0;
  min-height: 22px;
}

.ab-field__inp:focus {
  outline: none;
}

.ab-field:focus-within {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.ab-dialog__actions {
  margin-top: 24px;
}

.ab-seg {
  display: flex;
  margin-top: 8px;
  padding: 0;
  border-radius: 16px;
  background: #eee;
  gap: 4px;
}

.ab-seg__btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.ab-seg__btn--active {
  background: #b9cefd;
}

@media (max-width: 520px) {
  .ab-dlg-grid {
    grid-template-columns: 1fr;
  }

  .ab-field--full {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .ab-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 900px);
    overflow: auto;
    box-sizing: border-box;
  }

  .ab-dialog__handle {
    display: block;
  }

  .ab-head__title {
    font-size: 24px;
    font-weight: 700;
  }
}

/* —— Shipping templates (Figma 1058:23972 · 1058:24112 · 1058:24348 · 1058:24072 · 1103:40422 · 1103:40501 · 1058:24260 · 1058:24395) —— */
.page--tmpl .dash-main {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.tpl-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.tpl-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tpl-page-head__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tpl-add-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  max-width: 228px;
  width: 100%;
  padding: 8px 20px;
  border: none;
  border-radius: 16px;
  background: #eaa30a;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tpl-add-new:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.tpl-add-new__lbl {
  display: none;
}

@media (min-width: 701px) {
  .tpl-add-new {
    padding-inline: 24px;
  }

  .tpl-add-new__lbl {
    display: inline;
  }
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 468px), 1fr));
  gap: 16px;
}

.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 25px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.03);
  min-width: 0;
}

.tpl-card--simple {
  min-height: 200px;
}

.tpl-card__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.tpl-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tpl-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.tpl-card__menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.tpl-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 20;
  min-width: 174px;
  padding: 16px;
  border-radius: 16px;
  background: #eee;
  box-shadow: -1px -0.5px 2px rgba(0, 0, 0, 0.1), 1px 1.5px 1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tpl-menu[hidden] {
  display: none !important;
}

.tpl-menu__item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.tpl-menu__item--ico {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpl-menu__item:hover {
  opacity: 0.88;
}

.tpl-menu__item--danger {
  color: #fe1100;
}

.tpl-menu__trash {
  flex-shrink: 0;
}

.tpl-card__svc {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpl-card__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tpl-card__svcname {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tpl-card__line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.tpl-card__wico {
  flex-shrink: 0;
  color: var(--muted);
}

.tpl-addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.tpl-addr p {
  margin: 0;
}

.tpl-abico {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9a9a9a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tpl-chip {
  padding: 3px 10px;
  border-radius: 30px;
  background: #eee;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.tpl-card__cta--full {
  width: 100%;
  justify-content: center;
}

.tpl-card__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: left;
}

.tpl-partial {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #2329a6;
  cursor: pointer;
}

.tpl-partial:hover {
  text-decoration: underline;
}

.tpl-pager {
  margin-top: 8px;
}

.tpl-dialog.tpl-dialog--pick.account-dialog--wide {
  max-width: 560px;
}

.tpl-dialog.tpl-dialog--editor {
  max-width: min(920px, calc(100vw - 32px));
  width: calc(100vw - 32px);
}

.tpl-dialog__inner--scroll {
  max-height: min(88dvh, 920px);
  overflow: auto;
}

.tpl-pick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 20px;
}

.tpl-pick-row {
  width: 100%;
  align-items: flex-start;
}

.tpl-pick-row .chk {
  margin-top: 2px;
}

.tpl-pick-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.tpl-pick-row__lbl {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

.tpl-pick-row__val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.tpl-pick-submit {
  width: 100%;
}

.tpl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.tpl-form__full {
  width: 100%;
}

.tpl-form-grid .tpl-form__span2 {
  grid-column: 1 / -1;
}

.tpl-meas-dims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

@media (max-width: 720px) {
  .tpl-meas-dims {
    grid-template-columns: 1fr;
  }
}

.tpl-sec {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpl-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpl-sec__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.tpl-sec__title--solo {
  margin-bottom: 0;
}

.tpl-sec__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tpl-sec__actions--mob {
  display: none;
}

@media (max-width: 700px) {
  .tpl-sec__actions--desk {
    display: none;
  }

  .tpl-sec__actions--mob {
    display: flex;
  }
}

.tpl-linkico {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.tpl-linkico:hover {
  text-decoration: underline;
}

.tpl-icobtn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 16px;
  background: #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tpl-icobtn:hover {
  filter: brightness(0.97);
}

.tpl-star {
  font-size: 18px;
  line-height: 1;
  color: var(--link);
}

.tpl-prot-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tpl-info-ico {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.85;
}

.tpl-svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

@media (max-width: 640px) {
  .tpl-svc-cols {
    grid-template-columns: 1fr;
  }
}

.tpl-svc-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tpl-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.tpl-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .tpl-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .tpl-dialog .ab-dialog__handle {
    display: block;
  }

  .tpl-page-head__title {
    font-size: 24px;
    font-weight: 700;
  }
}

/* —— Bulk shipping (1068:24634 …) —— */
.bulk-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bulk-card-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 100%;
}

.bulk-card {
  background: var(--surface);
  padding: 24px 28px 28px;
  box-sizing: border-box;
}

.bulk-card--hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bulk-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.bulk-page-title--wizard {
  margin-bottom: 4px;
}

.bulk-subtitle {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.bulk-recent-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.bulk-rcard {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 260px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(35, 41, 166, 0.12);
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
  background: #fafbff;
}

.bulk-rcard:hover {
  border-color: var(--link);
}

.bulk-rcard__id {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.bulk-rcard__go {
  font-size: 18px;
  color: var(--link);
}

.bulk-rcard__date {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
}

.bulk-viewall {
  font-weight: 600;
  font-size: 15px;
  color: var(--link);
  text-decoration: none;
}

.bulk-viewall:hover {
  text-decoration: underline;
}

.bulk-wizard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.bulk-backlink {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}

.bulk-backlink:hover {
  text-decoration: underline;
}

.bulk-stepper {
  margin: 8px 0 16px;
}

.bulk-stepper__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  gap: 2px;
  background: #eceff8;
  border-radius: 18px;
  min-width: 0;
}

.bulk-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.bulk-tab__ico {
  flex-shrink: 0;
  opacity: 0.75;
}

.bulk-tab__lbl {
  line-height: 1.15;
  text-align: center;
}

.bulk-tab--done {
  background: #dce6fb;
  color: var(--link);
}

.bulk-tab--done .bulk-tab__ico {
  opacity: 1;
}

.bulk-tab--current {
  background: #b9cefd;
  color: var(--link);
}

.bulk-tab--current .bulk-tab__ico {
  opacity: 1;
}

@media (max-width: 720px) {
  .bulk-tab {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
  }

  .bulk-tab__ico {
    width: 18px;
    height: 18px;
  }
}

.bulk-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-panel__card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 28px 28px;
  box-sizing: border-box;
}

.bulk-panel__card--table {
  padding-top: 20px;
}

.bulk-panel__card--pay .sp-pay-rows {
  margin-bottom: 16px;
}

.bulk-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bulk-sec-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.bulk-sec-title--solo {
  margin-bottom: 20px;
}

.bulk-sec-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-addr-h {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.bulk-addr-hint {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}

.bulk-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
}

a.bulk-link {
  text-decoration: underline;
}

.bulk-foot-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bulk-foot-actions--end {
  justify-content: flex-end;
}

.bulk-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .bulk-add-grid {
    grid-template-columns: 1fr;
  }
}

.bulk-add-col {
  background: #f5f7fc;
  padding: 20px 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-add-ttl {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.bulk-add-txt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.bulk-table-wrap {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.bulk-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.bulk-table th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(35, 41, 166, 0.1);
}

.bulk-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(35, 41, 166, 0.06);
  vertical-align: middle;
}

.bulk-table__act {
  white-space: nowrap;
  text-align: right;
}

.bulk-table__narrow {
  width: 110px;
}

.bulk-iconact {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #eee;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin-left: 4px;
}

.bulk-iconact:hover {
  filter: brightness(0.97);
}

.bulk-q-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.bulk-q-field {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 320px;
}

.bulk-q-field--date {
  max-width: 260px;
}

.bulk-ms {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}

.bulk-ms-lbl {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.bulk-ms-trigger {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 41, 166, 0.12);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.bulk-ms-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(35, 41, 166, 0.1);
}

.bulk-ms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.bulk-svc-cell {
  position: relative;
  vertical-align: top;
}

.bulk-svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(35, 41, 166, 0.12);
  background: #f5f7fc;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.bulk-row-open .bulk-svc-btn {
  border-color: var(--link);
  background: #e8f0ff;
}

.bulk-svc-dd {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 4px);
  z-index: 25;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(35, 41, 166, 0.12);
}

.bulk-svc-opt {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.bulk-svc-opt:hover {
  background: #f0f4ff;
}

.bulk-svc-opt--active {
  background: #dce6fb;
  font-weight: 600;
}

.bulk-co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 960px) {
  .bulk-co-grid {
    grid-template-columns: 1fr;
  }
}

.bulk-co-svc-row td {
  padding-top: 0;
  border-bottom: none;
}

.bulk-co-svcs {
  padding: 8px 0 16px 12px;
  border-left: 3px solid #b9cefd;
  margin-left: 4px;
}

.bulk-dlg-h {
  margin: 20px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.bulk-dlg-form .bulk-dlg-h:first-child {
  margin-top: 0;
}

.bulk-detail-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bulk-detail-dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 15px;
}

.bulk-detail-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.bulk-detail-dl dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 520px) {
  .bulk-detail-dl div {
    grid-template-columns: 1fr;
  }
}

.bulk-svc-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bulk-svc-pick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-radius: 10px;
}

.bulk-svc-pick__price {
  margin-left: auto;
  font-weight: 600;
  font-size: 15px;
}

.bulk-wrap .sp-pd-grid2__full {
  grid-column: 1 / -1;
}

.bulk-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .bulk-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .bulk-dialog .ab-dialog__handle {
    display: block;
  }

  .bulk-page-title {
    font-size: 22px;
  }

  .bulk-card {
    padding: 18px 16px 20px;
  }
}

/* —— Settings · Users / Team (ЛКА 1170:35048, 35180, 35295, modals) —— */
.page--settings-team .dash-content {
  max-width: 100%;
}

.st-lk-head {
  margin-bottom: 20px;
}

.st-lk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.st-lk-tabs__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--pill-bg);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.st-lk-tabs__pill:hover {
  border-color: rgba(35, 41, 166, 0.12);
}

.st-lk-tabs__pill--active {
  background: #dce6fb;
  color: var(--link);
  border-color: rgba(35, 41, 166, 0.18);
}

.st-team-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(35, 41, 166, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.st-team-card__intro {
  margin-bottom: 20px;
}

.st-team-card__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.st-team-card__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 72ch;
}

.st-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.st-team-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.st-team-split__main.ui-btn {
  border-radius: 12px 0 0 12px;
  padding-left: 16px;
  padding-right: 14px;
  gap: 8px;
}

.st-team-split__chev.ui-btn {
  border-radius: 0 12px 12px 0;
  min-width: 44px;
  padding: 0 10px;
  margin-left: -1px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.st-team-split__ico {
  display: block;
  flex-shrink: 0;
}

.st-team-add-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 160px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(35, 41, 166, 0.1);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
}

.st-team-add-pop__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.st-team-add-pop__item:hover {
  background: var(--pill-bg);
}

.st-team-table-scroll {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px 4px;
}

.st-team-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.st-team-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px 12px;
  border-bottom: 1px solid #eceef4;
  vertical-align: middle;
  white-space: nowrap;
}

.st-team-th--check {
  width: 44px;
}

.st-team-th--perm {
  text-align: center;
}

.st-team-th--act {
  width: 52px;
}

.st-team-th__row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.st-team-th__tools {
  display: inline-flex;
  gap: 4px;
}

.st-team-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.st-team-ico-btn:hover {
  background: var(--pill-bg);
  color: var(--text);
}

.st-team-table tbody td {
  padding: 14px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f7;
}

.st-team-table tbody tr:nth-child(even) td {
  background: #f9fafc;
}

.st-team-usercell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.st-team-usercell__name {
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-team-usercell__name--group {
  font-weight: 700;
}

.st-team-usercell__tag {
  flex-shrink: 0;
}

.st-team-usercell__em {
  font-size: 13px;
  color: var(--muted);
}

.st-team-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef2fb;
  font-size: 13px;
  font-weight: 600;
  color: #3d4a8f;
}

.st-team-td-center {
  text-align: center;
}

.st-team-tick {
  display: inline-block;
  vertical-align: middle;
}

.st-team-empty-tick {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d5d8e0;
  background: var(--surface);
  vertical-align: middle;
}

.st-team-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.st-team-check__box {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #c5c8ce;
  background: var(--surface);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.st-team-check__input:checked + .st-team-check__box {
  border-color: transparent;
  background: transparent url("./assets/figma-team-check.svg") center / 16px 16px no-repeat;
}

.st-team-check__input:focus-visible + .st-team-check__box {
  outline: 2px solid rgba(35, 41, 166, 0.35);
  outline-offset: 2px;
}

.st-team-th--check .st-team-check__box {
  margin-top: 2px;
}

.st-team-td-actions {
  text-align: right;
  width: 52px;
}

.st-team-act {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.st-team-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.st-team-more:hover {
  background: #eef1f8;
  color: var(--text);
}

.st-team-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 35;
  min-width: 200px;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(35, 41, 166, 0.1);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.st-team-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.st-team-menu__item img {
  flex-shrink: 0;
  opacity: 0.85;
}

.st-team-menu__item:hover {
  background: var(--pill-bg);
}

.st-team-menu__item--danger {
  color: #c62828;
}

.st-team-menu__item--danger:hover {
  background: #ffebee;
}

.st-dlg-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.st-dlg-fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: none;
}

.st-dlg-legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-dlg-form .settings-form-grid {
  margin-top: 4px;
}

.st-team-ms {
  margin-top: 20px;
}

.st-dlg-info {
  padding: 8px 0 16px;
}

.st-dlg-info__line {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.st-dlg-info__line strong {
  display: inline-block;
  min-width: 88px;
  font-weight: 600;
  color: var(--muted);
}

.team-dialog .ab-dialog__handle {
  display: none;
}

@media (max-width: 640px) {
  .st-lk-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .st-lk-tabs__pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .st-team-card {
    padding: 18px 16px 16px;
  }

  .st-team-toolbar {
    justify-content: stretch;
  }

  .st-team-split {
    width: 100%;
  }

  .st-team-split__main.ui-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .team-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(92dvh, 960px);
    overflow: auto;
    box-sizing: border-box;
  }

  .team-dialog .ab-dialog__handle {
    display: block;
  }
}

.pm-results-surface {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}
@media (max-width: 980px) {
    .cw-carrier-desk {
        display: block;
        padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
    }
    .cw-carrier-grid {
        display: block;
    }
    .cw-filters-stack {
        display: none;
    }


    .pm-offer__body {
        flex-direction: row;
    }
}

@media (max-width: 740px) {
    .pm-offer__body > div {
        flex: 1 1;
    }
    .ab-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .shell.dash-shell {
        padding:0 16px;
    }
}
@media (max-width: 640px) {
    .tariff-context.dash-context {
        display: none;
    }
    .pm-offer__body {
        flex-direction: column;
        align-items: flex-start;
    }
    .pm-offers .pm-offer_badges {
        left: auto;
        right: 22px;
    }
}
