:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: #14171d;
  background: #f3f5f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --primary: #2557e5;
  --primary-soft: #eaf0ff;
  --text: #14171d;
  --muted: #7b8390;
  --line: #e9edf2;
  --surface: #ffffff;
  --page: #f3f5f8;
}

* { box-sizing: border-box; }
html, body { background: var(--page); }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { border: 0; }
#root { min-height: 100vh; }

.app-shell { width: 100%; min-height: 100vh; background: var(--page); }
.app { width: 100%; max-width: 560px; min-height: 100vh; margin: 0 auto; padding: 24px 18px 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 24px; }
.eyebrow { margin-bottom: 5px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .115em; }
.topbar h1 { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 720; letter-spacing: -.035em; }
.notification-button { position: relative; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: #313844; cursor: pointer; }
.notification-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #ef4444; }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.section-heading h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }

.garage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.garage-card { min-height: 180px; padding: 16px; border: 1px solid rgba(17,24,39,.055); border-radius: 20px; background: #fff; box-shadow: 0 6px 26px rgba(24,39,75,.055); color: var(--text); text-align: left; cursor: pointer; }
.garage-card-top { display: flex; align-items: flex-start; justify-content: space-between; color: #a3a9b2; }
.garage-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; }
.garage-icon.car { background: #eaf0ff; color: #2557e5; }
.garage-icon.plate { background: #eef7f4; color: #177e63; }
.garage-card-content { display: flex; flex-direction: column; margin-top: 18px; }
.garage-card-content strong { font-size: 16px; line-height: 1.25; font-weight: 690; letter-spacing: -.02em; }
.garage-card-content span { min-height: 34px; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.garage-add { margin-top: 12px; color: var(--primary); font-size: 13px; font-weight: 650; }

.info-banner { display: grid; width: 100%; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding: 15px; border: 1px solid rgba(37,87,229,.08); border-radius: 18px; background: #edf2ff; color: var(--primary); text-align: left; cursor: pointer; }
.info-banner-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #fff; }
.info-banner div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.info-banner strong { color: #1f3f9d; font-size: 13.5px; font-weight: 700; }
.info-banner span { margin-top: 3px; color: #6174ac; font-size: 12px; line-height: 1.35; }

.services-section { margin-top: 28px; }
.services-list { overflow: hidden; border: 1px solid rgba(17,24,39,.055); border-radius: 21px; background: #fff; box-shadow: 0 6px 26px rgba(24,39,75,.045); }
.service-row { position: relative; display: grid; width: 100%; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 14px 15px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.service-row:not(:last-child)::after { position: absolute; right: 15px; bottom: 0; left: 68px; height: 1px; background: var(--line); content: ""; }
.service-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; }
.service-icon.blue { background: #eaf0ff; color: #2557e5; }
.service-icon.violet { background: #f0ebff; color: #7250dc; }
.service-icon.green { background: #eaf8f2; color: #188862; }
.service-icon.orange { background: #fff2e8; color: #d56a1f; }
.service-icon.cyan { background: #e8f7f8; color: #17808a; }
.service-icon.graphite { background: #eff1f3; color: #4e5966; }
.service-copy { display: flex; min-width: 0; flex-direction: column; }
.service-copy strong { font-size: 15px; font-weight: 670; letter-spacing: -.015em; }
.service-copy span { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: #adb3bc; }

.safe-bottom-space { height: 132px; }
.bottom-nav { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: grid; width: 100%; max-width: 560px; grid-template-columns: repeat(4,1fr); margin: 0 auto; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(17,24,39,.08); background: #fff; box-shadow: 0 -10px 28px rgba(24,39,75,.06); }
.nav-item { position: relative; display: flex; min-width: 0; flex-direction: column; gap: 4px; align-items: center; justify-content: center; padding: 5px 3px; background: transparent; color: #9299a4; cursor: pointer; }
.nav-label { overflow: hidden; width: 100%; font-size: 10.5px; font-weight: 580; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.active { color: var(--primary); }

.inner-header { display: flex; gap: 13px; align-items: center; padding: 9px 0 22px; }
.back-button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #313844; cursor: pointer; }
.inner-header h1 { margin: 2px 0 0; font-size: 24px; line-height: 1.15; font-weight: 730; letter-spacing: -.035em; }
.inner-eyebrow { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .12em; }

.storage-summary, .cars-summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border: 1px solid rgba(17,24,39,.055); border-radius: 18px; background: #fff; }
.storage-summary > div:first-child, .cars-summary > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.storage-summary span, .cars-summary span { color: var(--muted); font-size: 12px; }
.storage-summary strong, .cars-summary strong { font-size: 15px; }
.storage-counter { display: flex; align-items: baseline; gap: 5px; color: var(--primary); }
.storage-counter strong { font-size: 18px; }

.plate-storage-card, .vehicle-card { margin-top: 14px; padding: 18px; border: 1px solid rgba(17,24,39,.055); border-radius: 24px; background: #fff; box-shadow: 0 8px 30px rgba(24,39,75,.055); }
.plate-card-header, .vehicle-card-top { display: flex; align-items: center; justify-content: space-between; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.status-pill.warning { background: #fff3e7; color: #cf661e; }
.more-button { padding: 4px 5px 10px; background: transparent; color: #9299a4; font-size: 20px; cursor: pointer; }

.russian-plate { display: flex; width: min(100%,340px); height: 92px; margin: 24px auto 22px; overflow: hidden; border: 3px solid #181b20; border-radius: 10px; background: #fff; color: #111; }
.plate-main { display: flex; flex: 1; align-items: center; justify-content: center; gap: 9px; padding: 0 8px; font-family: Arial,Helvetica,sans-serif; font-weight: 700; }
.plate-letter { font-size: 35px; }
.plate-number { font-size: 49px; letter-spacing: -.04em; }
.plate-region { display: flex; width: 83px; flex-direction: column; align-items: center; justify-content: center; border-left: 3px solid #181b20; }
.plate-region strong { font-size: 29px; }
.plate-region small { margin-top: 1px; font-size: 10px; font-weight: 700; }

.storage-date-block { display: flex; flex-direction: column; gap: 4px; }
.storage-date-block span { color: var(--muted); font-size: 12px; }
.storage-date-block strong { font-size: 17px; letter-spacing: -.02em; }
.storage-progress { height: 7px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: #edf0f4; }
.storage-progress-fill { width: 24%; height: 100%; border-radius: inherit; background: #f08b3e; }
.storage-warning-text { margin-top: 7px; color: var(--muted); font-size: 11.5px; }

.primary-action { display: flex; width: 100%; height: 51px; gap: 9px; align-items: center; justify-content: center; margin-top: 20px; border-radius: 15px; background: var(--primary); color: #fff; font-weight: 680; cursor: pointer; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.secondary-actions button { display: flex; height: 49px; gap: 8px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: #f8f9fb; color: #323944; font-size: 13px; font-weight: 650; cursor: pointer; }

.add-number-button { display: grid; width: 100%; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding: 15px; border: 1px solid rgba(17,24,39,.055); border-radius: 18px; background: #fff; color: var(--text); text-align: left; cursor: pointer; }
.add-number-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary); }
.add-number-button > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.add-number-button strong { font-size: 14px; }
.add-number-button span { margin-top: 3px; color: var(--muted); font-size: 11.5px; }

.storage-benefits { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.storage-benefit, .cars-hint, .form-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: flex-start; }
.storage-benefit { align-items: center; padding: 2px 4px; }
.benefit-icon, .cars-summary-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #eaf0ff; color: var(--primary); }
.cars-summary-icon { width: 42px; height: 42px; }
.storage-benefit > div:last-child, .cars-hint > div:last-child, .form-note > div:last-child { display: flex; flex-direction: column; }
.storage-benefit strong, .cars-hint strong, .form-note strong { font-size: 13.5px; }
.storage-benefit span, .cars-hint span, .form-note span { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.vehicle-brand-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--primary-soft); color: var(--primary); }
.vehicle-status { padding: 7px 10px; border-radius: 999px; background: #eef7f4; color: #177e63; font-size: 11.5px; font-weight: 650; }
.vehicle-title { margin-top: 17px; }
.vehicle-title h2 { margin: 0; font-size: 23px; font-weight: 720; letter-spacing: -.035em; }
.vehicle-plate { display: inline-flex; margin-top: 6px; padding: 5px 9px; border: 1.5px solid #25282d; border-radius: 5px; background: #fff; color: #17191d; font-size: 13px; font-weight: 750; letter-spacing: .04em; }
.vehicle-divider { height: 1px; margin: 18px 0; background: var(--line); }
.vehicle-data { display: flex; flex-direction: column; gap: 15px; }
.vehicle-data-row { display: flex; flex-direction: column; gap: 4px; }
.vehicle-data-row span { color: var(--muted); font-size: 11.5px; }
.vehicle-data-row strong { color: #2b313a; font-size: 14px; font-weight: 620; letter-spacing: .015em; }
.show-data-button { margin-top: 14px; padding: 0; background: transparent; color: var(--primary); font-size: 12.5px; font-weight: 650; cursor: pointer; }

.vehicle-actions { display: flex; flex-direction: column; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; }
.vehicle-actions > button { display: grid; width: 100%; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; background: #fff; color: var(--text); text-align: left; cursor: pointer; }
.vehicle-actions > button:not(:last-child) { border-bottom: 1px solid var(--line); }
.vehicle-actions > button > div:nth-child(2) { display: flex; flex-direction: column; }
.vehicle-actions strong { font-size: 13.5px; }
.vehicle-actions span { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.vehicle-action-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; }
.vehicle-action-icon.insurance { background: #e8f7f8; color: #17808a; }
.vehicle-action-icon.parts { background: #eff1f3; color: #4e5966; }
.edit-vehicle-button { width: 100%; height: 46px; margin-top: 11px; border-radius: 14px; background: #f5f7fa; color: #4a535f; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.cars-hint { margin-top: 23px; padding: 0 4px; }

.vehicle-form { display: flex; flex-direction: column; gap: 14px; }
.form-card { padding: 18px; border: 1px solid rgba(17,24,39,.055); border-radius: 22px; background: #fff; box-shadow: 0 6px 26px rgba(24,39,75,.04); }
.form-section-title { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-section-title strong { font-size: 16px; letter-spacing: -.02em; }
.form-section-title span { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.field { display: flex; flex-direction: column; }
.field + .field { margin-top: 15px; }
.field > span { margin-bottom: 7px; color: #555e69; font-size: 11.5px; font-weight: 630; }
.field input { width: 100%; height: 49px; padding: 0 14px; border: 1px solid #e1e5eb; border-radius: 14px; outline: none; background: #f8f9fb; color: var(--text); font-size: 14px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: #acb2ba; }
.field input:focus { border-color: rgba(37,87,229,.55); background: #fff; box-shadow: 0 0 0 3px rgba(37,87,229,.08); }
.field small { margin-top: 5px; color: #9aa1ab; font-size: 10.5px; }
.form-note { padding: 4px; }
.save-vehicle-button { width: 100%; height: 52px; margin-top: 3px; border-radius: 15px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 680; cursor: pointer; }
.save-vehicle-button:disabled { opacity: .35; cursor: default; }

@media (min-width: 561px) {
  .app-shell { padding-top: 24px; padding-bottom: 24px; }
  .app { overflow: hidden; min-height: calc(100vh - 48px); border: 1px solid rgba(17,24,39,.055); border-radius: 30px; background: var(--page); box-shadow: 0 22px 70px rgba(26,36,58,.08); }
  .bottom-nav {
    bottom: 24px;
    overflow: visible;
    border: 1px solid rgba(17,24,39,.07);
    border-top-color: rgba(17,24,39,.09);
    border-radius: 0 0 30px 30px;
    background: #fff;
    box-shadow: 0 -12px 30px rgba(24,39,75,.07);
  }
}

@media (max-width: 390px) {
  .app { padding-right: 14px; padding-left: 14px; }
  .garage-grid { gap: 9px; }
  .garage-card { min-height: 174px; padding: 14px; }
  .russian-plate { height: 84px; }
  .plate-letter { font-size: 31px; }
  .plate-number { font-size: 43px; }
  .plate-region { width: 76px; }
}

.make-primary-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #5a6573;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.make-primary-button:active {
  transform: scale(.98);
}

.empty-garage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  padding: 30px 22px;
  border: 1px solid rgba(17,24,39,.055);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 30px rgba(24,39,75,.045);
}

.empty-garage-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 17px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-garage-card strong {
  font-size: 16px;
  font-weight: 700;
}

.empty-garage-card span {
  max-width: 340px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.danger-zone {
  margin-top: 8px;
  padding-top: 2px;
}

.delete-vehicle-button {
  display: flex;
  width: 100%;
  height: 48px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3d3d3;
  border-radius: 14px;
  background: #fff7f7;
  color: #c23f3f;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.delete-confirmation {
  padding: 16px;
  border: 1px solid #f0cece;
  border-radius: 16px;
  background: #fff8f8;
}

.delete-confirmation > strong {
  display: block;
  color: #9f3434;
  font-size: 13.5px;
}

.delete-confirmation > span {
  display: block;
  margin-top: 4px;
  color: #9b6b6b;
  font-size: 11.5px;
  line-height: 1.4;
}

.delete-confirmation > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.cancel-delete-button,
.confirm-delete-button {
  height: 42px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}

.cancel-delete-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #59616c;
}

.confirm-delete-button {
  background: #d84b4b;
  color: #fff;
}


/* Storage management */
.status-pill.ok {
  background: #eaf8f2;
  color: #188862;
}

.status-pill.danger {
  background: #fff0f0;
  color: #cb4242;
}

.storage-progress-fill.ok {
  background: #32a47a;
}

.storage-progress-fill.warning {
  background: #f08b3e;
}

.storage-progress-fill.danger {
  background: #df5555;
}

.plate-storage-card {
  position: relative;
}

.number-card-menu {
  position: absolute;
  z-index: 10;
  top: 52px;
  right: 16px;
  overflow: hidden;
  min-width: 176px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 41, 59, .13);
}

.number-card-menu button {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  color: #3b4450;
  font-size: 12px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}

.number-card-menu button:active {
  background: #f5f7fa;
}

.simple-plate .plate-main {
  justify-content: center;
}

.plate-fallback {
  font-size: 31px;
  font-weight: 750;
  letter-spacing: .04em;
}

.storage-empty-card {
  margin-top: 14px;
}

.storage-empty-icon {
  background: #eef7f4;
  color: #177e63;
}

.field-error {
  color: #cb4242 !important;
}

.field input[type="date"] {
  color-scheme: light;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  text-align: left;
}

/* Let native iOS date controls shrink inside the form's flex layout. */
.vehicle-form > .form-card,
.vehicle-form .field {
  min-width: 0;
}

.field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.field input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

.subscription-card {
  padding: 22px;
  border: 1px solid rgba(37, 87, 229, .09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(24, 39, 75, .06);
}

.subscription-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.subscription-card h2 {
  margin: 17px 0 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.subscription-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.subscription-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 21px;
  padding: 16px;
  border-radius: 17px;
  background: #f7f9fc;
}

.subscription-features > div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #374151;
}

.subscription-features svg {
  flex: 0 0 auto;
  color: var(--primary);
}

.subscription-features span {
  font-size: 12.5px;
  font-weight: 620;
}

.prototype-note {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px dashed #ccd6ee;
  border-radius: 13px;
  background: #f8faff;
  color: #7180a1;
  font-size: 11px;
  line-height: 1.45;
}

.subscription-card .save-vehicle-button {
  margin-top: 18px;
}

.calculated-storage-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(37, 87, 229, 0.10);
  border-radius: 15px;
  background: #f3f6ff;
}

.calculated-storage-date > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.calculated-storage-date span {
  color: #7080a9;
  font-size: 11.5px;
}

.calculated-storage-date strong {
  color: #223d88;
  font-size: 14.5px;
  font-weight: 690;
}

.calculated-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.reminder-plan-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid rgba(37, 87, 229, 0.08);
  border-radius: 18px;
  background: #eef3ff;
}

.reminder-plan-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--primary);
}

.reminder-plan-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.reminder-plan-copy > strong {
  color: #1f3f9d;
  font-size: 13.5px;
}

.reminder-plan-copy > span {
  margin-top: 4px;
  color: #6678ab;
  font-size: 11.5px;
  line-height: 1.4;
}

.reminder-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.reminder-channels span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #fff;
  color: #4d65a8;
  font-size: 10.5px;
  font-weight: 650;
}

.applications-header {
  padding-bottom: 18px;
}

.applications-count {
  display: flex;
  min-width: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid rgba(37, 87, 229, 0.08);
  border-radius: 15px;
  background: #edf2ff;
}

.applications-count strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

.applications-count span {
  margin-top: 3px;
  color: #7182b3;
  font-size: 9.5px;
  font-weight: 650;
}

.applications-summary-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 15px 10px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(24, 39, 75, 0.035);
}

.applications-summary-card > div:not(.applications-summary-divider) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.applications-summary-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.applications-summary-card strong {
  font-size: 17px;
}

.applications-summary-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.applications-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 14px;
  background: #e9edf3;
}

.applications-filter button {
  height: 36px;
  border-radius: 11px;
  background: transparent;
  color: #77808c;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}

.applications-filter button.active {
  background: #fff;
  color: #27313e;
  box-shadow: 0 2px 8px rgba(24, 39, 75, 0.08);
}

.applications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.application-card {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 5px 20px rgba(24, 39, 75, 0.035);
  cursor: default;
}

.application-kind-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
}

.application-kind-icon.blue {
  background: #eaf0ff;
  color: #2557e5;
}

.application-kind-icon.violet {
  background: #f0ebff;
  color: #7250dc;
}

.application-kind-icon.green {
  background: #eaf8f2;
  color: #188862;
}

.application-kind-icon.orange {
  background: #fff2e8;
  color: #d56a1f;
}

.application-kind-icon.cyan {
  background: #e8f7f8;
  color: #17808a;
}

.application-kind-icon.graphite {
  background: #eff1f3;
  color: #4e5966;
}

.application-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.application-card-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.application-card-title > strong {
  padding-top: 2px;
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.015em;
}

.application-status {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 720;
  white-space: nowrap;
}

.application-status.new {
  background: #edf2ff;
  color: #315cd3;
}

.application-status.progress {
  background: #f0ebff;
  color: #6a4bc8;
}

.application-status.attention {
  background: #fff2e8;
  color: #c96520;
}

.application-status.ready {
  background: #eaf8f2;
  color: #177b59;
}

.application-status.completed {
  background: #eef1f4;
  color: #66717e;
}

.application-status.cancelled {
  background: #fff0f0;
  color: #bd4d4d;
}

.application-summary {
  margin-top: 5px;
  color: #555f6c;
  font-size: 12px;
  line-height: 1.35;
}

.application-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.application-date {
  margin-top: 8px;
  color: #a0a6af;
  font-size: 10px;
}

.application-chevron {
  align-self: center;
  color: #adb3bc;
}

.applications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.applications-empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.applications-empty strong {
  font-size: 14.5px;
}

.applications-empty span {
  max-width: 300px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.applications-help {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding: 0 4px;
  color: #86909c;
}

.applications-help svg {
  flex: 0 0 auto;
  color: #6483df;
}

.applications-help span {
  font-size: 10.5px;
  line-height: 1.4;
}

.renewal-number-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.renewal-number-option {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.renewal-number-option > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.renewal-number-option strong {
  font-size: 14px;
}

.renewal-number-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.renewal-number-option.active {
  border-color: rgba(37, 87, 229, 0.34);
  background: #f2f5ff;
}

.renewal-radio {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #d3d9e3;
  border-radius: 50%;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800;
}

.renewal-number-option.active .renewal-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.renewal-main-card {
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(24, 39, 75, 0.05);
}

.form-card + .renewal-main-card {
  margin-top: 14px;
}

.renewal-card-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 620;
}

.renewal-main-card .russian-plate {
  margin-top: 17px;
  margin-bottom: 20px;
}

.renewal-dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #f6f7f9;
}

.renewal-dates > div:not(.renewal-date-arrow) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.renewal-dates span {
  color: var(--muted);
  font-size: 10.5px;
}

.renewal-dates strong {
  font-size: 12.5px;
  line-height: 1.3;
}

.renewal-dates .future strong {
  color: var(--primary);
}

.renewal-date-arrow {
  color: #a5adb7;
  font-size: 18px;
}

.renewal-year-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 13px;
  background: #edf2ff;
  color: #3158c2;
  font-size: 12px;
  font-weight: 680;
}

.renewal-dates .future small {
  margin-top: 1px;
  color: #8b95a3;
  font-size: 9.5px;
  line-height: 1.3;
}

.renewal-process-card {
  margin-top: 14px;
  padding: 17px 15px 16px;
  border: 1px solid rgba(37, 87, 229, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(24, 39, 75, 0.035);
}

.renewal-process-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.renewal-process-heading strong {
  font-size: 14px;
}

.renewal-process-heading span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.renewal-process-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  margin-top: 15px;
}

.renewal-process-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  color: #46505d;
  text-align: center;
}

.renewal-process-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #edf2ff;
  color: var(--primary);
}

.renewal-process-icon.car {
  background: #eef8f5;
  color: #178665;
}

.renewal-process-step.final .renewal-process-icon {
  background: #edf2ff;
  color: #3158c2;
}

.renewal-process-step span {
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.25;
}

.renewal-process-step.final span {
  color: #3158c2;
}

.renewal-process-arrow {
  padding-top: 11px;
  color: #aab2bd;
  font-size: 17px;
}

@media (max-width: 360px) {
  .renewal-process-flow {
    gap: 3px;
  }

  .renewal-process-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .renewal-process-step span {
    font-size: 9px;
  }
}

.renewal-info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(37, 87, 229, 0.07);
  border-radius: 18px;
  background: #f5f7fc;
}

.renewal-info-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
}

.renewal-info-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.renewal-info-card strong {
  font-size: 13px;
}

.renewal-info-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.renewal-submit {
  margin-top: 14px;
}

.renewal-footnote {
  margin-top: 8px;
  color: #9aa1aa;
  font-size: 10.5px;
  text-align: center;
}

.sale-source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 13px;
  background: #e9edf3;
}

.sale-source-tabs button {
  height: 36px;
  border-radius: 10px;
  background: transparent;
  color: #77808c;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}

.sale-source-tabs button.active {
  background: #fff;
  color: #27313e;
  box-shadow: 0 2px 8px rgba(24, 39, 75, 0.08);
}

.sale-number-list + .russian-plate,
.sale-other-field + .russian-plate {
  margin-bottom: 0;
}

.sale-other-field {
  margin-top: 2px;
}

.sale-speed-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sale-speed-option {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.sale-speed-option.active {
  border-color: rgba(37, 87, 229, 0.32);
  background: #f2f5ff;
}

.sale-speed-option.urgent.active {
  border-color: rgba(208, 73, 73, 0.30);
  background: #fff5f5;
}

.sale-speed-radio {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #d3d9e3;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.sale-speed-option.active .sale-speed-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.sale-speed-option.urgent.active .sale-speed-radio {
  border-color: #d04a4a;
  background: #d04a4a;
}

.sale-speed-option > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sale-speed-option strong {
  font-size: 13px;
}

.sale-speed-option > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.urgent-buy-badge {
  padding: 5px 7px;
  border-radius: 999px;
  background: #ffe8e8;
  color: #c44343;
  font-size: 9.5px;
  font-weight: 720;
}

.urgent-buy-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(208, 73, 73, 0.12);
  border-radius: 18px;
  background: #fff5f5;
}

.urgent-buy-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: #c94444;
}

.urgent-buy-info > div:last-child {
  display: flex;
  flex-direction: column;
}

.urgent-buy-info strong {
  color: #9f3636;
  font-size: 13px;
}

.urgent-buy-info span {
  margin-top: 4px;
  color: #936969;
  font-size: 11px;
  line-height: 1.45;
}

.price-input-wrap {
  position: relative;
}

.price-input-wrap input {
  padding-right: 42px;
}

.price-input-wrap > span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #808894;
  font-size: 14px;
  font-weight: 650;
  transform: translateY(-50%);
}

.field textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid #e1e5eb;
  border-radius: 14px;
  outline: none;
  background: #f8f9fb;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.field textarea::placeholder {
  color: #acb2ba;
}

.field textarea:focus {
  border-color: rgba(37, 87, 229, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 87, 229, 0.08);
}

.sale-contact-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 2px 4px;
}

.sale-contact-note > div:last-child {
  display: flex;
  flex-direction: column;
}

.sale-contact-note strong {
  font-size: 13px;
}

.sale-contact-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.sale-submit {
  margin-top: 2px;
}

.contact-card {
  border-color: rgba(37, 87, 229, 0.08);
}

.contact-card .form-section-title span {
  max-width: 430px;
  line-height: 1.45;
}

.contact-saved-hint {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  color: #5571bd;
}

.contact-saved-hint svg {
  flex: 0 0 auto;
}

.contact-saved-hint span {
  font-size: 10.5px;
  line-height: 1.35;
}

.profile-header {
  padding-bottom: 18px;
}

.profile-identity-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(24, 39, 75, 0.035);
}

.profile-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--primary-soft);
  color: var(--primary);
}

.profile-identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-identity-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.profile-identity-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.4;
}

.profile-contact-card {
  margin-top: 14px;
}

.profile-telegram-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
}

.profile-field-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
}

.profile-field-icon.telegram {
  background: #eaf3ff;
  color: #2381d7;
}

.profile-field-icon.telegram span {
  font-size: 17px;
  transform: rotate(-10deg);
}

.profile-telegram-row > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-telegram-row > div:nth-child(2) > span {
  color: var(--muted);
  font-size: 10.5px;
}

.profile-telegram-row > div:nth-child(2) > strong {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 650;
}

.profile-auto-badge {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eaf8f2;
  color: #177b59;
  font-size: 9.5px;
  font-weight: 720;
}

.profile-divider {
  height: 1px;
  margin: 15px 0;
  background: var(--line);
}

.profile-phone-field {
  margin-top: 0 !important;
}

.profile-save-button {
  width: 100%;
  height: 44px;
  margin-top: 13px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 680;
  cursor: pointer;
}

.profile-save-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.profile-save-button.saved {
  background: #238763;
}

.profile-info-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(37, 87, 229, 0.07);
  border-radius: 18px;
  background: #f5f7fc;
}

.profile-info-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
}

.profile-info-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.profile-info-card strong {
  font-size: 13px;
}

.profile-info-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.45;
}

.profile-settings-list {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 18px;
  background: #fff;
}

.profile-settings-list > button {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-settings-list > button:not(:last-child)::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 64px;
  height: 1px;
  background: var(--line);
  content: "";
}

.profile-setting-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #f0f3f8;
  color: #56616e;
}

.profile-settings-list > button > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile-settings-list strong {
  font-size: 12.8px;
}

.profile-settings-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.profile-settings-list > button > svg {
  color: #adb3bc;
}

.transfer-locked-state {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(37, 87, 229, 0.09);
  border-radius: 15px;
  background: #f3f6ff;
}

.transfer-state-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
}

.transfer-locked-state > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.transfer-locked-state > div:nth-child(2) span {
  color: var(--muted);
  font-size: 10.5px;
}

.transfer-locked-state > div:nth-child(2) strong {
  margin-top: 2px;
  font-size: 13px;
}

.transfer-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.transfer-choice-grid button {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: #68717d;
  cursor: pointer;
}

.transfer-choice-grid button strong {
  font-size: 11.5px;
  font-weight: 660;
}

.transfer-choice-grid button.active {
  border-color: rgba(37, 87, 229, 0.34);
  background: #f2f5ff;
  color: var(--primary);
}

.transfer-subsection {
  margin-top: 17px;
}

.transfer-subtitle {
  display: block;
  margin-bottom: 8px;
  color: #555e69;
  font-size: 11.5px;
  font-weight: 630;
}

.transfer-owner-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.transfer-owner-options button {
  display: flex;
  height: 44px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8f9fb;
  color: #69727d;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}

.transfer-owner-options button.active {
  border-color: rgba(37, 87, 229, 0.34);
  background: #f2f5ff;
  color: var(--primary);
}

.company-glyph {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  height: 49px;
  padding: 0 40px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e1e5eb;
  border-radius: 14px;
  outline: none;
  background: #f8f9fb;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.select-wrap select:focus {
  border-color: rgba(37, 87, 229, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 87, 229, 0.08);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 15px;
  pointer-events: none;
  color: #8d95a0;
  font-size: 18px;
  transform: translateY(-55%);
}

.transfer-summary-card {
  padding: 16px;
  border: 1px solid rgba(213, 106, 31, 0.12);
  border-radius: 19px;
  background: #fff8f2;
}

.transfer-summary-title {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #b85e20;
}

.transfer-summary-title strong {
  font-size: 13px;
}

.transfer-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.transfer-route > div:not(.transfer-route-arrow) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.transfer-route span {
  color: var(--muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.transfer-route strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.transfer-route small {
  margin-top: 3px;
  color: #8b6b56;
  font-size: 10px;
  line-height: 1.3;
}

.transfer-route-arrow {
  color: #c4875d;
  font-size: 19px;
}

.transfer-submit {
  margin-top: 0;
}

.selection-intro-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(114, 80, 220, 0.10);
  border-radius: 18px;
  background: #f7f4ff;
}

.selection-intro-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: #7250dc;
}

.selection-intro-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.selection-intro-card strong {
  color: #583fae;
  font-size: 13px;
}

.selection-intro-card span {
  margin-top: 4px;
  color: #756a96;
  font-size: 11px;
  line-height: 1.45;
}

.selection-priority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.selection-priority-grid button {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.selection-priority-grid button strong {
  font-size: 12px;
}

.selection-priority-grid button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.selection-priority-grid button.active {
  border-color: rgba(114, 80, 220, 0.34);
  background: #f5f2ff;
}

.selection-priority-grid button.active strong {
  color: #6848cc;
}

.selection-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}

.selection-flex-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.selection-flex-option {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.selection-radio {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  margin-top: 1px;
  border: 1px solid #d3d9e3;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.selection-flex-option.active {
  border-color: rgba(114, 80, 220, 0.34);
  background: #f5f2ff;
}

.selection-flex-option.active .selection-radio {
  border-color: #7250dc;
  background: #7250dc;
}

.selection-flex-option > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.selection-flex-option strong {
  font-size: 12.5px;
}

.selection-flex-option > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.selection-summary-card {
  padding: 16px;
  border: 1px solid rgba(114, 80, 220, 0.11);
  border-radius: 19px;
  background: #f7f4ff;
}

.selection-summary-head {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #6548c1;
}

.selection-summary-head strong {
  font-size: 13px;
}

.selection-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}

.selection-summary-lines > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: baseline;
}

.selection-summary-lines span {
  color: #877fa0;
  font-size: 10.5px;
}

.selection-summary-lines strong {
  color: #4e4567;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.selection-submit {
  margin-top: 0;
}

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

.insurance-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.insurance-product-grid button {
  display: flex;
  min-height: 105px;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.insurance-product-grid button.active {
  border-color: rgba(23, 128, 138, 0.32);
  background: #f0f9fa;
}

.insurance-product-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 12px;
  background: #fff;
  color: #17808a;
}

.insurance-product-grid strong {
  font-size: 13px;
}

.insurance-product-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.insurance-mode-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.insurance-mode-option {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.insurance-mode-option.active {
  border-color: rgba(23, 128, 138, 0.32);
  background: #f0f9fa;
}

.insurance-mode-option.active .selection-radio {
  border-color: #17808a;
  background: #17808a;
}

.insurance-mode-option > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insurance-mode-option strong {
  font-size: 12.5px;
}

.insurance-mode-option > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.insurance-self-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid rgba(23, 128, 138, 0.12);
  border-radius: 19px;
  background: #f0f9fa;
}

.insurance-self-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #17808a;
}

.insurance-self-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.insurance-self-card strong {
  color: #166b73;
  font-size: 13.5px;
}

.insurance-self-card span {
  margin-top: 5px;
  color: #657f82;
  font-size: 11px;
  line-height: 1.45;
}

.insurance-referral-button {
  margin-top: 14px;
}

.insurance-dev-note {
  margin-top: 8px;
  color: #9aa1aa;
  font-size: 10.5px;
  text-align: center;
}

.insurance-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insurance-vehicle-option {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.insurance-vehicle-option.active {
  border-color: rgba(23, 128, 138, 0.32);
  background: #f0f9fa;
}

.insurance-vehicle-option.active .renewal-radio {
  border-color: #17808a;
  background: #17808a;
}

.insurance-vehicle-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #17808a;
}

.insurance-vehicle-option > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insurance-vehicle-option strong {
  font-size: 12.5px;
}

.insurance-vehicle-option > div:nth-child(2) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.insurance-manual-fields {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.insurance-upload-box {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1.5px dashed #cdd5df;
  border-radius: 17px;
  background: #f8f9fb;
  text-align: center;
  cursor: pointer;
}

.insurance-upload-box input {
  display: none;
}

.insurance-upload-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #e9f5f6;
  color: #17808a;
}

.insurance-upload-box strong {
  font-size: 12.5px;
}

.insurance-upload-box > span {
  max-width: 300px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.insurance-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.insurance-file-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f3f5f7;
}

.insurance-file-list > div > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: #17808a;
  font-size: 9px;
  font-weight: 750;
}

.insurance-file-list strong {
  overflow: hidden;
  color: #5e6671;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insurance-security-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff4e8;
  color: #9b632c;
}

.insurance-security-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.insurance-security-note span {
  font-size: 10px;
  line-height: 1.45;
}

.insurance-process-card {
  padding: 16px;
  border: 1px solid rgba(23, 128, 138, 0.10);
  border-radius: 19px;
  background: #f1f9fa;
}

.insurance-process-head {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #176f77;
}

.insurance-process-head strong {
  font-size: 13px;
}

.insurance-process-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}

.insurance-process-steps > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
}

.insurance-process-steps > div > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #17808a;
  font-size: 10px;
  font-weight: 750;
}

.insurance-process-steps p {
  margin: 0;
  color: #657a7d;
  font-size: 10.8px;
}

.insurance-submit {
  margin-top: 0;
}

.insurance-other-car-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(23, 128, 138, 0.10);
  border-radius: 16px;
  background: #f1f9fa;
}

.insurance-other-car-icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: #17808a;
}

.insurance-other-car-note > div:last-child {
  display: flex;
  flex-direction: column;
}

.insurance-other-car-note strong {
  color: #176f77;
  font-size: 12.8px;
}

.insurance-other-car-note span {
  margin-top: 4px;
  color: #667d80;
  font-size: 10.7px;
  line-height: 1.45;
}

.insurance-documents-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insurance-document-item {
  padding: 13px;
  border: 1px solid #e5e8ed;
  border-radius: 16px;
  background: #fafbfc;
}

.insurance-document-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: flex-start;
}

.insurance-document-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #e8f5f6;
  color: #17808a;
  font-size: 10.5px;
  font-weight: 750;
}

.insurance-document-head > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insurance-document-head strong {
  font-size: 12.5px;
}

.insurance-document-head > div:nth-child(2) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.insurance-required-badge,
.insurance-optional-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 8.8px;
  font-weight: 720;
  white-space: nowrap;
}

.insurance-required-badge {
  background: #edf4ff;
  color: #4062be;
}

.insurance-optional-badge {
  background: #f0f2f4;
  color: #77818c;
}

.insurance-document-upload {
  display: flex;
  height: 40px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 11px;
  border: 1px dashed #cbd3dd;
  border-radius: 12px;
  background: #fff;
  color: #65717d;
  font-size: 10.8px;
  font-weight: 650;
  cursor: pointer;
}

.insurance-document-upload input {
  display: none;
}

.insurance-document-upload svg {
  color: #17808a;
}

.insurance-required-note {
  margin-top: 8px;
  color: #b16b24;
  font-size: 10.5px;
  text-align: center;
}

.insurance-owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.insurance-owner-grid button {
  display: flex;
  height: 58px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: #68717d;
  cursor: pointer;
}

.insurance-owner-grid button strong {
  font-size: 12px;
}

.insurance-owner-grid button.active {
  border-color: rgba(23, 128, 138, 0.32);
  background: #f0f9fa;
  color: #17808a;
}

.insurance-driver-mode {
  margin-top: 17px;
}

.insurance-driver-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insurance-driver-options button {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.insurance-driver-options button.active {
  border-color: rgba(23, 128, 138, 0.32);
  background: #f0f9fa;
}

.insurance-driver-options button.active .selection-radio {
  border-color: #17808a;
  background: #17808a;
}

.insurance-driver-options button > div {
  display: flex;
  flex-direction: column;
}

.insurance-driver-options strong {
  font-size: 12px;
}

.insurance-driver-options button > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.3px;
  line-height: 1.35;
}

.insurance-company-unlimited {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #f0f9fa;
  color: #176f77;
}

.insurance-company-unlimited svg {
  margin-top: 1px;
}

.insurance-company-unlimited > div {
  display: flex;
  flex-direction: column;
}

.insurance-company-unlimited strong {
  font-size: 11.8px;
}

.insurance-company-unlimited span {
  margin-top: 3px;
  color: #667d80;
  font-size: 10.2px;
  line-height: 1.35;
}

.insurance-document-skipped {
  opacity: 0.9;
}

.insurance-not-needed-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  background: #eaf8f2;
  color: #177b59;
  font-size: 8.8px;
  font-weight: 720;
  white-space: nowrap;
}

.parts-intro-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(78, 89, 102, 0.10);
  border-radius: 18px;
  background: #f4f6f8;
}

.parts-intro-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: #4e5966;
}

.parts-intro-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.parts-intro-card strong {
  color: #404954;
  font-size: 13px;
}

.parts-intro-card span {
  margin-top: 4px;
  color: #737d88;
  font-size: 11px;
  line-height: 1.45;
}

.parts-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parts-vehicle-option {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.parts-vehicle-option.active {
  border-color: rgba(78, 89, 102, 0.30);
  background: #f1f3f5;
}

.parts-vehicle-option.active .renewal-radio {
  border-color: #4e5966;
  background: #4e5966;
}

.parts-vehicle-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #4e5966;
}

.parts-vehicle-option > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.parts-vehicle-option strong {
  font-size: 12.5px;
}

.parts-vehicle-option > div:nth-child(2) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.parts-manual-fields {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.parts-brand-model {
  margin-top: 0;
}

.parts-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  padding: 13px 14px;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: #fafbfc;
}

.parts-quantity-row > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.parts-quantity-row > div:first-child strong {
  font-size: 12px;
}

.parts-quantity-row > div:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.parts-counter {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  background: #fff;
}

.parts-counter button {
  height: 34px;
  background: #fff;
  color: #4e5966;
  font-size: 18px;
  cursor: pointer;
}

.parts-counter button:disabled {
  color: #c8cdd3;
  cursor: default;
}

.parts-counter strong {
  text-align: center;
  font-size: 12px;
}

.parts-preference-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parts-preference-list button {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fb;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.parts-preference-list button.active {
  border-color: rgba(78, 89, 102, 0.30);
  background: #f1f3f5;
}

.parts-preference-list button.active .selection-radio {
  border-color: #4e5966;
  background: #4e5966;
}

.parts-preference-list button > div {
  display: flex;
  flex-direction: column;
}

.parts-preference-list strong {
  font-size: 12px;
}

.parts-preference-list button > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.3px;
  line-height: 1.4;
}

.parts-summary-card {
  padding: 16px;
  border: 1px solid rgba(78, 89, 102, 0.10);
  border-radius: 19px;
  background: #f4f6f8;
}

.parts-summary-head {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #4e5966;
}

.parts-summary-head strong {
  font-size: 13px;
}

.parts-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}

.parts-summary-lines > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: baseline;
}

.parts-summary-lines span {
  color: #858e98;
  font-size: 10.5px;
}

.parts-summary-lines strong {
  overflow-wrap: anywhere;
  color: #4a535e;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.parts-submit {
  margin-top: 0;
}

/* Parts form: keep Brand and Model perfectly aligned */
.parts-brand-model > .field + .field {
  margin-top: 0;
}

.parts-brand-model {
  align-items: start;
}

.parts-manager-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(78, 89, 102, 0.10);
  border-radius: 18px;
  background: #f4f6f8;
}

.parts-manager-note-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: #4e5966;
}

.parts-manager-note > div:last-child {
  display: flex;
  flex-direction: column;
}

.parts-manager-note strong {
  color: #404954;
  font-size: 13px;
}

.parts-manager-note span {
  margin-top: 4px;
  color: #737d88;
  font-size: 10.8px;
  line-height: 1.45;
}

.nav-icon-wrap {
  position: relative;
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
}

.nav-notification-badge {
  position: absolute;
  z-index: 2;
  top: -5px;
  right: -8px;
  display: inline-grid;
  width: auto;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  overflow: visible;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e5484d;
  color: #fff !important;
  font-size: 8px !important;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.notifications-header {
  padding-bottom: 17px;
}

.notifications-read-all {
  align-self: center;
  padding: 8px 10px;
  border-radius: 11px;
  background: #edf2ff;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 680;
  cursor: pointer;
}

.notifications-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(37, 87, 229, 0.08);
  border-radius: 18px;
  background: #f3f6ff;
}

.notifications-summary-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
}

.notifications-summary > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.notifications-summary strong {
  color: #294ba9;
  font-size: 13px;
}

.notifications-summary span {
  margin-top: 3px;
  color: #7281aa;
  font-size: 10.5px;
  line-height: 1.4;
}

.notifications-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 14px;
  background: #e9edf3;
}

.notifications-filter button {
  display: flex;
  height: 36px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: transparent;
  color: #77808c;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}

.notifications-filter button.active {
  background: #fff;
  color: #27313e;
  box-shadow: 0 2px 8px rgba(24, 39, 75, 0.08);
}

.notifications-filter button > span {
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.notification-card {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 17px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 4px 18px rgba(24, 39, 75, 0.025);
  cursor: pointer;
}

.notification-card.unread {
  border-color: rgba(37, 87, 229, 0.10);
  background: #fbfcff;
}

.notification-kind-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
}

.notification-kind-icon.storage {
  background: #edf2ff;
  color: #315bd2;
}

.notification-kind-icon.application {
  background: #f0ebff;
  color: #6c4dcc;
}

.notification-kind-icon.attention {
  background: #fff1e7;
  color: #ce6721;
}

.notification-kind-icon.success {
  background: #eaf8f2;
  color: #17805d;
}

.notification-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.notification-card-title {
  display: flex;
  gap: 7px;
  align-items: center;
}

.notification-card-title strong {
  font-size: 12.7px;
  font-weight: 690;
}

.notification-unread-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.notification-card-text {
  margin-top: 4px;
  color: #69727d;
  font-size: 10.7px;
  line-height: 1.4;
}

.notification-card-date {
  margin-top: 7px;
  color: #a0a6af;
  font-size: 9.5px;
}

.notification-card-chevron {
  align-self: center;
  color: #adb3bc;
}

.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.notifications-empty-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.notifications-empty strong {
  font-size: 14px;
}

.notifications-empty span {
  max-width: 300px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.notifications-info {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 17px;
  padding: 0 4px;
  color: #89919c;
}

.notifications-info svg {
  flex: 0 0 auto;
  color: #6483df;
}

.notifications-info span {
  font-size: 10.2px;
  line-height: 1.4;
}

/* Keep scrolling content visually separated from the fixed navigation. */
.app {
  scroll-padding-bottom: 132px;
}

.bottom-nav::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,.92), rgba(255,255,255,0));
  content: "";
}

@media (min-width: 561px) {
  .bottom-nav::before {
    right: 1px;
    left: 1px;
  }
}

/* Telegram Fullscreen safe area.
   Outside Telegram these variables are undefined and fall back to 0px. */
.app {
  padding-top: calc(24px + var(--tg-content-safe-area-inset-top, 0px));
}

.bottom-nav {
  padding-bottom: calc(
    10px +
    env(safe-area-inset-bottom) +
    var(--tg-content-safe-area-inset-bottom, 0px)
  );
}



/* Application submit feedback */
.selection-submit-error {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(203, 66, 66, 0.16);
  border-radius: 14px;
  background: rgba(203, 66, 66, 0.06);
  color: #b63838;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.selection-submit:not(.ready) {
  opacity: 0.78;
}

.selection-submit:not(.ready):active {
  opacity: 1;
}


/* Telegram profile / real notification state */
.profile-auto-badge {
  white-space: nowrap;
}

.profile-identity-copy strong,
.profile-identity-copy span {
  overflow-wrap: anywhere;
}


/* Appointment / REO stage */
.application-status.appointed {
  background: #e9f2ff;
  color: #245edb;
}

.application-appointment {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
  padding: 10px 11px;
  border: 1px solid #dbe7ff;
  border-radius: 13px;
  background: #f6f9ff;
}

.application-appointment-head,
.application-appointment-place {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.application-appointment-head span {
  color: #6f7d91;
  font-size: 9.5px;
  font-weight: 650;
}

.application-appointment-head strong {
  color: #2259d5;
  font-size: 11.5px;
  line-height: 1.35;
}

.application-appointment-place strong {
  color: #303946;
  font-size: 10.5px;
}

.application-appointment-place span {
  color: #6f7885;
  font-size: 10px;
  line-height: 1.35;
}

.application-appointment-docs {
  padding-top: 6px;
  border-top: 1px solid #e1e9f8;
  color: #5b6573;
  font-size: 9.7px;
  line-height: 1.4;
}


/* Insurance: live protected document upload */
.insurance-file-list.real-files > div {
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
}

.insurance-file-list.real-files strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insurance-file-list.real-files button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #f1f4f8;
  color: #7a8594;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.insurance-security-note.secure-live {
  background: #eef9f5;
  border-color: #d7eee5;
  color: #397663;
}

.insurance-garage-data-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #f5f8ff;
  color: #60708b;
  font-size: 13px;
  line-height: 1.45;
}

.insurance-garage-data-note svg {
  flex: 0 0 auto;
  color: #2d5eea;
  margin-top: 1px;
}


/* Insurance quotes inside My Applications */
.application-insurance-offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #d9eeee;
  border-radius: 14px;
  background: #f6fbfb;
}

.application-insurance-offers-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.application-insurance-offers-head strong {
  color: #246f76;
  font-size: 10.5px;
}

.application-insurance-offers-head span {
  color: #7b8e91;
  font-size: 9px;
}

.application-insurance-offer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.application-insurance-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 9px 9px 10px;
  border: 1px solid #e1e8ea;
  border-radius: 11px;
  background: #fff;
}

.application-insurance-offer.selected {
  border-color: #8fd0d4;
  background: #edf9f9;
}

.application-insurance-offer > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.application-insurance-offer > div strong {
  overflow: hidden;
  color: #29343d;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-insurance-offer > div span {
  color: #167881;
  font-size: 11.5px;
  font-weight: 760;
}

.application-insurance-offer button {
  min-width: 62px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #e7f6f7;
  color: #137780;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.application-insurance-offer.selected button {
  background: #16858e;
  color: #fff;
}

.application-insurance-offer button:disabled {
  cursor: default;
  opacity: 1;
}

.application-insurance-payment-wait {
  display: flex;
  gap: 7px;
  align-items: center;
  padding-top: 2px;
  color: #68767b;
  font-size: 9.5px;
  line-height: 1.35;
}

.application-insurance-payment-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 9px 9px 10px;
  border-radius: 11px;
  background: #eaf8f2;
}

.application-insurance-payment-ready > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.application-insurance-payment-ready span {
  color: #667a72;
  font-size: 8.8px;
}

.application-insurance-payment-ready strong {
  overflow: hidden;
  color: #17664d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-insurance-payment-ready button {
  padding: 8px 10px;
  border-radius: 9px;
  background: #19815f;
  color: #fff;
  font-size: 9.5px;
  font-weight: 760;
  cursor: pointer;
}

/* Temporarily unavailable services */
.service-row-development,
.vehicle-actions button.vehicle-action-development {
  cursor: default;
}

.service-row-development:disabled,
.vehicle-actions button.vehicle-action-development:disabled {
  opacity: 1;
}

.service-row-development .service-icon,
.vehicle-action-development .vehicle-action-icon {
  opacity: 0.72;
}

.service-row-development .service-copy span,
.vehicle-action-development > div:nth-child(2) span {
  color: #8c96a8;
}

.development-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: #7a8494;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.development-badge.compact {
  padding: 4px 8px;
  font-size: 10px;
}


/* Storage subscription / tariffs */
.storage-summary-button {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.storage-summary-button > div:first-child strong {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.storage-summary-button > div:first-child small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 560;
}

.storage-summary-button .storage-counter {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 5px;
  align-items: center;
}

.storage-summary-button .storage-counter svg {
  margin-left: 3px;
  color: #a6afbb;
}

.profile-setting-icon.subscription {
  background: #edf3ff;
  color: var(--primary);
}

.subscription-page {
  padding-bottom: 28px;
}

.subscription-limit-card,
.subscription-current-card {
  display: grid;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(37, 87, 229, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(24, 39, 75, 0.045);
}

.subscription-limit-card {
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 16px;
}

.subscription-limit-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #eef3ff;
  color: var(--primary);
}

.subscription-limit-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.subscription-limit-card span,
.subscription-current-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.subscription-limit-card strong {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.3;
}

.subscription-limit-card small,
.subscription-current-card small {
  margin-top: 4px;
  color: #7c8797;
  font-size: 10.5px;
  line-height: 1.35;
}

.subscription-current-card {
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 17px;
}

.subscription-current-card > div:first-child {
  display: flex;
  flex-direction: column;
}

.subscription-current-card > div:first-child strong {
  margin-top: 2px;
  font-size: 17px;
}

.subscription-current-count {
  display: flex;
  min-width: 74px;
  flex-direction: column;
  align-items: flex-end;
}

.subscription-current-count strong {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.subscription-current-count span {
  margin-top: 4px;
  font-size: 9.5px;
}

.extra-slot-card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(24, 39, 75, 0.04);
}

.extra-slot-card.recommended {
  border-color: rgba(37, 87, 229, 0.24);
  box-shadow: 0 10px 30px rgba(37, 87, 229, 0.08);
}

.extra-slot-top,
.tariff-card-head,
.tariff-list-heading,
.tariff-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subscription-kicker {
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
}

.extra-slot-top h2 {
  margin: 3px 0 0;
  font-size: 19px;
  letter-spacing: -.025em;
}

.subscription-recommended-badge,
.tariff-current-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 760;
}

.subscription-recommended-badge {
  background: #edf3ff;
  color: var(--primary);
}

.tariff-current-badge {
  background: #eaf8f2;
  color: #177b59;
}

.extra-slot-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 17px;
}

.extra-slot-price strong {
  font-size: 25px;
  letter-spacing: -.04em;
}

.extra-slot-price span {
  color: var(--muted);
  font-size: 11px;
}

.extra-slot-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.tariff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tariff-list-heading {
  padding: 6px 2px 2px;
}

.tariff-list-heading strong {
  font-size: 14px;
}

.tariff-list-heading span {
  color: var(--muted);
  font-size: 10.5px;
}

.tariff-card {
  padding: 17px;
  border: 1px solid rgba(17, 24, 39, 0.065);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(24, 39, 75, 0.035);
}

.tariff-card.recommended {
  border-color: rgba(37, 87, 229, 0.25);
  box-shadow: 0 9px 26px rgba(37, 87, 229, 0.075);
}

.tariff-card.current {
  background: #fbfcfe;
}

.tariff-card-head > div {
  display: flex;
  flex-direction: column;
}

.tariff-card-head span:first-child {
  color: var(--muted);
  font-size: 10.5px;
}

.tariff-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  letter-spacing: -.02em;
}

.tariff-price-row {
  justify-content: flex-start;
  margin-top: 14px;
}

.tariff-price-row strong {
  font-size: 22px;
  letter-spacing: -.035em;
}

.tariff-price-row span {
  color: var(--muted);
  font-size: 11px;
}

.tariff-card > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.2px;
  line-height: 1.45;
}

.subscription-primary-button,
.subscription-secondary-button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.subscription-primary-button {
  background: var(--primary);
  color: #fff;
}

.subscription-secondary-button {
  border: 1px solid rgba(37, 87, 229, 0.14);
  background: #f4f7ff;
  color: var(--primary);
}

.subscription-rules-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f3f5f8;
}

.subscription-rules-card > div {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--primary);
}

.subscription-rules-card p {
  margin: 0;
  color: #6d7785;
  font-size: 10.8px;
  line-height: 1.5;
}

/* Storage subscription payment methods */
.storage-payment-page {
  padding-bottom: 28px;
}

.payment-summary-card {
  margin: 14px 16px 12px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(31, 45, 71, 0.07);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.payment-summary-card > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b8495;
}

.payment-summary-card > strong {
  font-size: 30px;
  line-height: 1.05;
  color: #171a21;
}

.payment-summary-card p,
.payment-summary-card small {
  margin: 0;
  color: #747d8d;
  line-height: 1.45;
}

.payment-method-list {
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method-heading {
  padding: 8px 2px 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-method-heading strong {
  font-size: 16px;
}

.payment-method-heading span {
  font-size: 12px;
  color: #7d8696;
}

.payment-method-card {
  width: 100%;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 8px 26px rgba(31, 45, 71, 0.06);
}

.payment-method-card:not(:disabled) {
  cursor: pointer;
}

.payment-method-card:disabled {
  opacity: 0.64;
}

.payment-method-card.stars {
  outline: 1px solid rgba(37, 87, 229, 0.10);
}

.payment-method-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #f3f5f8;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.payment-method-card.stars .payment-method-icon {
  background: #fff6d9;
}

.payment-method-card.yookassa .payment-method-icon {
  background: #f2eaff;
  color: #6d36d8;
}

.payment-method-copy,
.payment-method-price {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-method-copy strong,
.payment-method-price strong {
  color: #171a21;
}

.payment-method-copy span,
.payment-method-price span {
  font-size: 12px;
  color: #7d8696;
}

.payment-method-price {
  align-items: flex-end;
  text-align: right;
}

.payment-method-card.stars .payment-method-price span,
.payment-method-card.yookassa .payment-method-price span {
  color: #2557e5;
  font-weight: 700;
}

.payment-note-card {
  margin-top: 14px;
}

/* Payment history + confirmation */
.profile-setting-icon.payment-history {
  background: #f2eaff;
  color: #6d36d8;
  font-size: 18px;
  font-weight: 850;
}

.payment-history-page,
.payment-result-page {
  padding-bottom: 28px;
}

.payment-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 16px 0;
}

.payment-history-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(17, 24, 39, 0.055);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(31, 45, 71, 0.05);
}

.payment-history-provider {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 850;
}

.payment-history-provider.stars {
  background: #fff6d9;
}

.payment-history-provider.yookassa {
  background: #f2eaff;
  color: #6d36d8;
}

.payment-history-copy,
.payment-history-amount {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.payment-history-copy strong {
  font-size: 13px;
}

.payment-history-copy span,
.payment-history-copy small {
  color: #7d8696;
  font-size: 10.5px;
}

.payment-history-amount {
  align-items: flex-end;
  text-align: right;
}

.payment-history-amount strong {
  font-size: 13px;
}

.payment-history-amount span {
  color: #17845f;
  font-size: 10px;
  font-weight: 750;
}

.payment-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 16px 0;
  padding: 34px 20px;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 26px rgba(31, 45, 71, 0.05);
}

.payment-history-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 17px;
  background: #f2eaff;
  color: #6d36d8;
  font-size: 23px;
  font-weight: 850;
}

.payment-history-empty strong {
  font-size: 16px;
}

.payment-history-empty span {
  max-width: 270px;
  margin-top: 6px;
  color: #7d8696;
  font-size: 11.5px;
  line-height: 1.45;
}

.payment-history-empty button {
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f2f5fb;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
}

.payment-history-loader {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border: 3px solid rgba(37, 87, 229, 0.14);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: payment-spin .8s linear infinite;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

.payment-history-note {
  margin: 14px 16px 0;
}

.payment-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px 16px 0;
  padding: 30px 20px 22px;
  border-radius: 26px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 32px rgba(31, 45, 71, 0.07);
}

.payment-result-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 21px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}

.payment-result-card.succeeded .payment-result-icon {
  background: #eaf8f2;
  color: #177b59;
}

.payment-result-card.error .payment-result-icon {
  background: #fff1ec;
  color: #c65730;
}

.payment-result-icon .payment-history-loader {
  margin: 0;
}

.payment-result-kicker {
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .09em;
}

.payment-result-card.succeeded .payment-result-kicker {
  color: #177b59;
}

.payment-result-card h1 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -.035em;
}

.payment-result-card > p {
  max-width: 300px;
  margin: 9px 0 0;
  color: #747d8d;
  font-size: 12px;
  line-height: 1.5;
}

.payment-result-summary {
  width: 100%;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 16px;
  background: #f6f7f9;
}

.payment-result-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
}

.payment-result-summary > div + div {
  border-top: 1px solid rgba(17, 24, 39, 0.055);
}

.payment-result-summary span {
  color: #7d8696;
  font-size: 11px;
}

.payment-result-summary strong {
  max-width: 62%;
  text-align: right;
  font-size: 11.5px;
}

.payment-result-primary,
.payment-result-secondary {
  width: calc(100% - 32px);
  margin-left: 16px;
  margin-right: 16px;
}

.payment-result-primary {
  margin-top: 14px;
}

.payment-result-secondary {
  margin-top: 8px;
}

/* YooKassa browser return page */
.external-payment-shell {
  min-height: 100vh;
  padding: 28px 18px;
  background: #f3f5f8;
  display: grid;
  place-items: center;
}

.external-payment-card {
  width: min(100%, 430px);
  padding: 32px 24px 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(31, 45, 71, 0.10);
  text-align: center;
}

.external-payment-brand {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.external-payment-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 20px auto 14px;
  place-items: center;
  border-radius: 22px;
  background: #eaf8f2;
  color: #177b59;
  font-size: 31px;
  font-weight: 900;
}

.external-payment-card h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.035em;
}

.external-payment-card > p {
  margin: 10px auto 0;
  color: #747d8d;
  font-size: 13px;
  line-height: 1.55;
}

.external-payment-tip {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f5f7fa;
  color: #667080;
  font-size: 11.5px;
  line-height: 1.45;
}

.external-payment-button {
  display: flex;
  min-height: 48px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.external-payment-icon.checking {
  background: #edf3ff;
  color: var(--primary);
}

.external-payment-icon.error {
  background: #fff1ec;
  color: #c65730;
}

.external-payment-icon .payment-history-loader {
  margin: 0;
}

.external-payment-summary {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f7fa;
}

.external-payment-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  text-align: left;
}

.external-payment-summary > div + div {
  border-top: 1px solid rgba(17, 24, 39, 0.055);
}

.external-payment-summary span {
  color: #7d8696;
  font-size: 11px;
}

.external-payment-summary strong {
  text-align: right;
  font-size: 11.5px;
}

/* External ruble checkout — YooKassa */
.external-checkout-shell {
  min-height: 100vh;
  padding: 28px 16px 44px;
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.10), transparent 35%),
    #f3f5f8;
  display: grid;
  place-items: start center;
}

.external-checkout-card {
  width: min(100%, 470px);
  padding: 28px 20px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(31, 45, 71, 0.11);
}

.external-checkout-header {
  text-align: center;
}

.external-checkout-brand {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}

.external-checkout-secure {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef8f4;
  color: #24765b;
  font-size: 10px;
  font-weight: 750;
}

.external-checkout-header h1 {
  margin: 13px 0 0;
  font-size: 27px;
  letter-spacing: -.04em;
}

.external-checkout-header p {
  max-width: 360px;
  margin: 9px auto 0;
  color: #747d8d;
  font-size: 13px;
  line-height: 1.5;
}

.external-checkout-plans {
  display: grid;
  gap: 9px;
  margin-top: 23px;
}

.external-checkout-plan {
  width: 100%;
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid #e6eaf0;
  border-radius: 17px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.external-checkout-plan.selected {
  border-color: rgba(37, 99, 235, 0.55);
  background: #f7faff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.external-checkout-plan-copy {
  min-width: 0;
}

.external-checkout-plan-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.external-checkout-plan-title-row strong {
  color: #1e2735;
  font-size: 14px;
}

.external-checkout-plan-title-row span {
  padding: 4px 6px;
  border-radius: 7px;
  background: #eaf1ff;
  color: var(--primary);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .02em;
}

.external-checkout-plan-copy small,
.external-checkout-plan-price small {
  display: block;
  margin-top: 4px;
  color: #8991a0;
  font-size: 10.5px;
}

.external-checkout-plan-price {
  flex: 0 0 auto;
  text-align: right;
}

.external-checkout-plan-price strong {
  color: #1d2633;
  font-size: 14px;
}

.external-checkout-form {
  margin-top: 20px;
}

.external-checkout-form > label {
  display: block;
  margin-bottom: 7px;
  color: #343d4a;
  font-size: 11.5px;
  font-weight: 720;
}

.external-checkout-form > input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid #dde3eb;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #1e2735;
  font: inherit;
  font-size: 14px;
}

.external-checkout-form > input:focus {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.external-checkout-form > small {
  display: block;
  margin-top: 7px;
  color: #8a93a2;
  font-size: 10px;
  line-height: 1.4;
}

.external-checkout-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1ee;
  color: #a5482e;
  font-size: 10.5px;
  line-height: 1.4;
}

.external-checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f5f7fa;
}

.external-checkout-total span,
.external-checkout-total small {
  display: block;
}

.external-checkout-total span {
  color: #596273;
  font-size: 10.5px;
  font-weight: 700;
}

.external-checkout-total small {
  margin-top: 3px;
  color: #8a93a2;
  font-size: 9.5px;
}

.external-checkout-total > strong {
  flex: 0 0 auto;
  color: #1d2633;
  font-size: 17px;
}

.external-checkout-pay {
  width: 100%;
  min-height: 51px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.external-checkout-pay:disabled {
  opacity: .62;
  cursor: wait;
}

.external-checkout-note {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f7f8fa;
  color: #7c8493;
  font-size: 9.8px;
  line-height: 1.45;
}

.external-checkout-methods {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #edf0f4;
  color: #8a93a2;
  font-size: 10px;
}

.external-checkout-methods strong {
  color: #4d5665;
  font-size: 10.5px;
}

.external-checkout-telegram {
  display: block;
  margin-top: 15px;
  color: var(--primary);
  text-align: center;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .external-checkout-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .external-checkout-plan {
    padding-left: 12px;
    padding-right: 12px;
  }

  .external-checkout-plan-title-row span {
    display: none;
  }
}

/* External checkout polish v2 */
.external-checkout-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.external-checkout-brand-lockup > div:last-child {
  display: grid;
  gap: 2px;
}

.external-checkout-brand-lockup strong {
  color: #172033;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.external-checkout-brand-lockup > div:last-child > small {
  color: #8a93a2;
  font-size: 9px;
  font-weight: 650;
}

.external-checkout-logo {
  position: relative;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border: 2px solid #172033;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(31, 45, 71, .08);
}

.external-checkout-logo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  background: var(--primary);
}

.external-checkout-logo span {
  transform: translateX(-4px);
  color: #172033;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.05em;
}

.external-checkout-logo small {
  position: absolute;
  z-index: 1;
  right: 1px;
  bottom: 5px;
  width: 10px;
  color: #fff;
  font-size: 6.5px;
  font-weight: 850;
  text-align: center;
  transform: rotate(90deg);
}

.external-checkout-trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.external-checkout-secure,
.external-checkout-no-renew {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  box-sizing: border-box;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 750;
}

.external-checkout-secure {
  margin-top: 0;
  background: #eef8f4;
  color: #24765b;
}

.external-checkout-no-renew {
  background: #f2f5ff;
  color: #5268a8;
}

.external-checkout-form > small.phone-ready {
  color: #24765b;
  font-weight: 650;
}

.external-checkout-pay:disabled {
  opacity: .46;
  cursor: not-allowed;
}

.external-checkout-agreement {
  margin: 9px 5px 0;
  color: #959dac;
  font-size: 8.8px;
  line-height: 1.45;
  text-align: center;
}

.external-checkout-agreement a,
.external-checkout-footer-links a {
  color: #61739c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.external-checkout-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
  color: #a0a7b3;
  font-size: 9px;
}

/* External legal pages used from checkout */
.external-legal-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 28px 16px 48px;
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.09), transparent 34%),
    #f3f5f8;
  display: grid;
  place-items: start center;
}

.external-legal-card {
  width: min(100%, 620px);
  box-sizing: border-box;
  padding: 28px 28px 30px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(31, 45, 71, 0.10);
}

.external-legal-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #60708d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.external-checkout-brand-lockup.compact {
  display: flex;
  margin-bottom: 23px;
}

.external-checkout-brand-lockup.compact .external-checkout-logo {
  width: 38px;
  height: 38px;
}

.external-legal-card h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.external-legal-updated {
  margin: 8px 0 23px;
  color: #9aa2af;
  font-size: 10px;
}

.external-legal-content {
  color: #5c6676;
  font-size: 12px;
  line-height: 1.6;
}

.external-legal-content h2 {
  margin: 22px 0 7px;
  color: #283242;
  font-size: 13px;
}

.external-legal-content p {
  margin: 0;
}

.external-legal-support {
  margin-top: 26px;
}

@media (max-width: 520px) {
  .external-legal-card {
    padding: 22px 18px 24px;
    border-radius: 23px;
  }
}


/* Autonomer Service brand logo v1 */
.app-brand-logo {
  display: block;
  width: 118px;
  max-width: 44vw;
  height: auto;
  margin: -4px 0 2px;
  object-fit: contain;
  object-position: left center;
}

.external-checkout-brand-image {
  display: block;
  width: 190px;
  max-width: 68%;
  height: auto;
  margin: -10px auto -2px;
  object-fit: contain;
}

.external-checkout-brand-image.compact {
  width: 155px;
  margin: -8px auto 2px;
}

.external-payment-brand-image {
  display: block;
  width: 175px;
  max-width: 70%;
  height: auto;
  margin: -10px auto 4px;
  object-fit: contain;
}

@media (max-width: 420px) {
  .app-brand-logo {
    width: 108px;
  }

  .external-checkout-brand-image {
    width: 174px;
  }
}


/* Subscription tariffs v3: Basic + START50 */
.subscription-promo-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 87, 229, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, #f8faff, #ffffff);
  box-shadow: 0 8px 26px rgba(37, 87, 229, 0.05);
}

.subscription-promo-card.available {
  border-color: rgba(37, 87, 229, 0.28);
}

.subscription-promo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.subscription-promo-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.subscription-promo-head span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}

.subscription-promo-head strong {
  font-size: 16px;
  letter-spacing: -.02em;
}

.subscription-promo-head small {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--primary);
  font-size: 9px;
  font-weight: 750;
}

.subscription-promo-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.45;
}

.subscription-promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.subscription-promo-input-row input {
  min-width: 0;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #1d2633;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.subscription-promo-input-row input:focus {
  border-color: rgba(37, 87, 229, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 87, 229, 0.07);
}

.subscription-promo-input-row > span {
  display: grid;
  min-width: 72px;
  place-items: center;
  padding: 0 10px;
  border-radius: 12px;
  background: #eef2f7;
  color: #687386;
  font-size: 10px;
  font-weight: 800;
}

.subscription-promo-input-row > span.applied {
  background: #eaf8f2;
  color: #177b59;
}

.subscription-promo-note {
  display: block;
  margin-top: 8px;
  color: #8a6670;
  font-size: 9.8px;
  line-height: 1.4;
}

.tariff-price-row.with-promo del {
  color: #9aa3b0;
  font-size: 12px;
}

.payment-promo-original {
  display: block;
  margin-top: 4px;
  color: #177b59;
  font-size: 10.5px;
  font-weight: 700;
}

.external-checkout-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: #f7faff;
}

.external-checkout-promo > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.external-checkout-promo strong {
  color: var(--primary);
  font-size: 12px;
}

.external-checkout-promo span,
.external-checkout-promo small {
  color: #7d8796;
  font-size: 9.5px;
}

.external-checkout-promo-label {
  margin-top: 14px;
}

.external-checkout-plan-price del {
  display: block;
  margin-bottom: 2px;
  color: #9aa3b0;
  font-size: 9.5px;
}


.storage-control-paused {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(203, 130, 32, 0.16);
  border-radius: 17px;
  background: #fff9ef;
}

.storage-control-paused > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.storage-control-paused strong {
  color: #704b16;
  font-size: 12px;
}

.storage-control-paused span {
  color: #8f7754;
  font-size: 9.8px;
  line-height: 1.4;
}

.storage-control-paused button {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  color: #8a5a13;
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}


.payment-method-external-note {
  margin: -2px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #748094);
}


/* Payment phone gate — shown only when profile phone is missing */
.payment-phone-card {
  margin: 0 16px 12px;
  padding: 16px;
  border: 1px solid rgba(37, 87, 229, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(31, 45, 71, 0.055);
}

.payment-phone-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.payment-phone-heading > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.payment-phone-heading strong {
  font-size: 15px;
}

.payment-phone-heading span {
  color: #7d8696;
  font-size: 11.5px;
  line-height: 1.4;
}

.payment-phone-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 13px;
  background: #edf3ff;
  color: #2557e5;
  font-size: 18px;
  font-weight: 800;
}

.payment-phone-field {
  margin: 0;
}

.payment-phone-field input {
  font-size: 16px;
}


/* Mobile input zoom fix v3.5 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}


/* Admin stats v1 */
.profile-setting-icon.admin{background:#edf3ff;color:#2557e5;font-weight:900}.admin-stats-page{padding-bottom:24px}.admin-stats-header{align-items:center}.admin-stats-header>div{flex:1}.admin-stats-header h1{margin-bottom:3px}.admin-stats-header span{color:#7b8494;font-size:12px}.admin-refresh-button{width:40px;height:40px;border:0;border-radius:14px;background:#edf3ff;color:#2557e5;font-size:22px;font-weight:800}.admin-kpi-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 16px 14px}.admin-kpi-card{min-width:0;padding:15px;border:1px solid rgba(31,45,71,.07);border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(31,45,71,.05)}.admin-kpi-card.primary{background:linear-gradient(145deg,#2557e5,#4778f3);color:#fff}.admin-kpi-card>span,.admin-kpi-card>small{display:block;color:#7a8495;font-size:11.5px;line-height:1.35}.admin-kpi-card.primary>span,.admin-kpi-card.primary>small{color:rgba(255,255,255,.78)}.admin-kpi-card strong{display:block;margin:7px 0 5px;font-size:23px;line-height:1;letter-spacing:-.5px}.admin-stats-section{margin:0 16px 12px;padding:16px;border:1px solid rgba(31,45,71,.07);border-radius:20px;background:#fff}.admin-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.admin-section-title strong{font-size:15px}.admin-section-title span{color:#8991a0;font-size:11.5px;text-align:right}.admin-tier-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-tier-list>div,.admin-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:14px;background:#f6f8fb}.admin-tier-list span,.admin-row span{color:#626d7e;font-size:12px}.admin-tier-list strong,.admin-row strong{font-size:13px}.admin-row+.admin-row{margin-top:7px}.admin-promo-progress{height:8px;margin-bottom:10px;overflow:hidden;border-radius:999px;background:#e9edf4}.admin-promo-progress>span{display:block;height:100%;border-radius:inherit;background:#2557e5}.admin-stats-loading{margin:20px 16px;padding:22px 16px;border-radius:18px;background:#fff;color:#7a8495;text-align:center}


/* Realistic Russian plate v1 */
.russian-plate.realistic-plate {
  position: relative;
  display: flex;
  width: min(100%, 356px);
  height: auto;
  aspect-ratio: 520 / 112;
  margin: 23px auto 22px;
  overflow: hidden;
  border: 2px solid #17191d;
  border-radius: 7px;
  background:
    linear-gradient(104deg, rgba(255,255,255,.96) 0%, rgba(246,247,246,.98) 43%, rgba(255,255,255,.99) 72%),
    #fafafa;
  color: #0e1013;
  box-shadow:
    0 2px 4px rgba(14, 18, 25, .10),
    inset 0 0 0 1px rgba(255,255,255,.95),
    inset 0 -2px 5px rgba(32, 38, 47, .045);
  isolation: isolate;
}

.russian-plate.realistic-plate::before,
.russian-plate.realistic-plate::after {
  content: '';
  position: absolute;
  z-index: 3;
  top: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d7d9dc;
  box-shadow:
    inset 0 0 0 1px rgba(68, 73, 80, .34),
    0 1px 1px rgba(255,255,255,.9);
}

.russian-plate.realistic-plate::before { left: 11px; }
.russian-plate.realistic-plate::after { right: 11px; }

.realistic-plate .plate-main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px 1px 11px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}

.realistic-plate .plate-main::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.48) 46%, transparent 57%),
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.9), transparent 32%);
  pointer-events: none;
}

.realistic-plate .plate-letter {
  display: inline-block;
  font-size: clamp(31px, 10.2vw, 43px);
  font-weight: 700;
  transform: scaleX(.86);
  transform-origin: center;
}

.realistic-plate .plate-letter-pair {
  margin-left: -3px;
  letter-spacing: -.10em;
}

.realistic-plate .plate-number {
  display: inline-block;
  margin: 0 -2px;
  font-size: clamp(43px, 13.6vw, 57px);
  font-weight: 700;
  letter-spacing: -.075em;
  transform: scaleX(.86);
  transform-origin: center;
}

.realistic-plate .plate-region {
  position: relative;
  display: flex;
  width: 21.5%;
  min-width: 70px;
  flex: 0 0 21.5%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #17191d;
  background: rgba(255,255,255,.28);
}

.realistic-plate .plate-region-code {
  display: block;
  margin: -2px 0 1px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 8.2vw, 35px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  transform: scaleX(.91);
  transform-origin: center;
}

.realistic-plate.three-digit-region .plate-region-code {
  font-size: clamp(23px, 7.6vw, 32px);
  letter-spacing: -.075em;
}

.realistic-plate .plate-country {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(8px, 2.6vw, 10px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .025em;
}

.realistic-plate .plate-russia-flag {
  display: inline-block;
  width: 17px;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(30, 34, 40, .28);
  border-radius: 1px;
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 33.333%,
      #1456b8 33.333%,
      #1456b8 66.666%,
      #d52b1e 66.666%,
      #d52b1e 100%
    );
  box-shadow: 0 0 0 .5px rgba(255,255,255,.8) inset;
}

.realistic-plate.simple-plate .plate-main { padding: 0 16px; }

.realistic-plate .plate-fallback {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  font-size: clamp(30px, 10vw, 42px);
  font-weight: 700;
  letter-spacing: .02em;
}

@media (max-width: 390px) {
  .russian-plate.realistic-plate { width: min(100%, 332px); }

  .realistic-plate .plate-main {
    gap: 2px;
    padding-left: 8px;
    padding-right: 5px;
  }

  .realistic-plate .plate-region { min-width: 66px; }
}


/* Migalki-like Russian plate v2 */
.russian-plate.realistic-plate {
  width: min(100%, 356px);
  aspect-ratio: 520 / 112;
  margin: 23px auto 22px;
  border: 3px solid #0b0c0f;
  border-radius: 9px;
  background: #f7f7f5;
  box-shadow:
    0 2px 0 rgba(0,0,0,.18),
    0 3px 7px rgba(0,0,0,.10),
    inset 0 0 0 1px rgba(255,255,255,.88);
}

.russian-plate.realistic-plate::before,
.russian-plate.realistic-plate::after {
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  background: #ededed;
  box-shadow:
    inset 0 0 0 1px rgba(75,75,75,.22),
    0 1px 1px rgba(255,255,255,.95);
}

.russian-plate.realistic-plate::before {
  left: 11px;
}

.russian-plate.realistic-plate::after {
  right: 9px;
}

.realistic-plate .plate-main {
  gap: 0;
  padding: 0 7px 0 12px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
  line-height: .9;
  letter-spacing: -.05em;
}

.realistic-plate .plate-main::after {
  display: none;
}

.realistic-plate .plate-letter {
  font-size: clamp(34px, 10.8vw, 46px);
  font-weight: 700;
  transform: scaleX(.77);
}

.realistic-plate .plate-letter-pair {
  margin-left: -8px;
  letter-spacing: -.14em;
}

.realistic-plate .plate-number {
  margin: 0 -7px 0 -5px;
  font-size: clamp(48px, 14.5vw, 62px);
  font-weight: 700;
  letter-spacing: -.095em;
  transform: scaleX(.78);
}

.realistic-plate .plate-region {
  width: 25.5%;
  min-width: 78px;
  flex: 0 0 25.5%;
  border-left: 3px solid #0b0c0f;
  background: #fafaf8;
}

.realistic-plate .plate-region-code {
  margin: -1px 0 2px;
  font-size: clamp(28px, 8.8vw, 38px);
  line-height: .88;
  letter-spacing: -.075em;
  transform: scaleX(.88);
}

.realistic-plate.three-digit-region .plate-region-code {
  font-size: clamp(27px, 8.6vw, 37px);
  letter-spacing: -.09em;
  transform: scaleX(.84);
}

.realistic-plate .plate-country {
  gap: 5px;
  margin-top: 4px;
  font-size: clamp(9px, 2.8vw, 11px);
  font-weight: 800;
  letter-spacing: .06em;
}

.realistic-plate .plate-russia-flag {
  width: 23px;
  height: 13px;
  border: 1px solid rgba(20,20,20,.36);
  border-radius: 0;
}

@media (max-width: 390px) {
  .russian-plate.realistic-plate {
    width: min(100%, 336px);
  }

  .realistic-plate .plate-main {
    padding-left: 9px;
    padding-right: 4px;
  }

  .realistic-plate .plate-region {
    min-width: 74px;
  }
}


/* Russian plate v3 — clean GOST-like layout */
.russian-plate.realistic-plate {
  width: min(100%, 356px);
  aspect-ratio: 520 / 112;
  margin: 23px auto 22px;
  overflow: hidden;
  border: 2px solid #111318;
  border-radius: 8px;
  background: #fbfbf9;
  color: #0b0d10;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}

.russian-plate.realistic-plate::before,
.russian-plate.realistic-plate::after {
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #f2f2f0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}

.russian-plate.realistic-plate::before {
  left: 11px;
}

.russian-plate.realistic-plate::after {
  right: 10px;
}

.realistic-plate .plate-main {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 2.22fr 1.45fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  min-width: 0;
  padding: 0 8px 0 17px;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  line-height: 1;
  letter-spacing: 0;
}

.realistic-plate .plate-main::after {
  display: none;
}

.realistic-plate .plate-letter,
.realistic-plate .plate-number,
.realistic-plate .plate-letter-pair {
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  transform-origin: center center;
  white-space: nowrap;
}

.realistic-plate .plate-letter {
  font-size: clamp(34px, 10.9vw, 46px);
  transform: scaleX(.86);
}

.realistic-plate .plate-letter-pair {
  font-size: clamp(34px, 10.9vw, 46px);
  transform: scaleX(.82);
}

.realistic-plate .plate-number {
  font-size: clamp(46px, 14.2vw, 60px);
  transform: scaleX(.86);
}

.realistic-plate .plate-region {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 25.8%;
  min-width: 79px;
  flex: 0 0 25.8%;
  align-items: center;
  justify-items: center;
  padding: 7px 7px 8px;
  border-left: 2px solid #111318;
  background: #fbfbf9;
  box-sizing: border-box;
}

.realistic-plate .plate-region-code {
  align-self: end;
  margin: 0 0 3px;
  padding: 0;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(27px, 8.8vw, 38px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: 0;
  transform: scaleX(.9);
  transform-origin: center;
  white-space: nowrap;
}

.realistic-plate.three-digit-region .plate-region-code {
  font-size: clamp(26px, 8.5vw, 36px);
  letter-spacing: 0;
  transform: scaleX(.88);
}

.realistic-plate .plate-country {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 2.7vw, 11px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .055em;
}

.realistic-plate .plate-russia-flag {
  display: inline-block;
  width: 22px;
  height: 11px;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 0;
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 33.333%,
      #1456b8 33.333%,
      #1456b8 66.666%,
      #d52b1e 66.666%,
      #d52b1e 100%
    );
  box-shadow: none;
}

.realistic-plate.simple-plate .plate-main {
  display: flex;
  padding: 0 16px;
}

.realistic-plate .plate-fallback {
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(31px, 10.2vw, 43px);
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 390px) {
  .russian-plate.realistic-plate {
    width: min(100%, 336px);
  }

  .realistic-plate .plate-main {
    grid-template-columns: 0.82fr 2.18fr 1.42fr;
    padding-left: 15px;
    padding-right: 6px;
  }

  .realistic-plate .plate-region {
    min-width: 75px;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Expired subscription UI v1 */
.storage-summary.storage-summary-button.expired {
  border-color: rgba(215, 91, 62, .18);
  background: linear-gradient(145deg, #fff8f5, #ffffff);
}

.storage-summary.storage-summary-button.expired > div:first-child > span {
  color: #a85e4a;
}

.storage-control-paused.expired {
  border-color: rgba(215, 91, 62, .14);
  background: #fff8f5;
}

.storage-control-paused.expired button {
  background: #2557e5;
  color: #fff;
}

.subscription-current-card.expired {
  border-color: rgba(215, 91, 62, .16);
  background: linear-gradient(145deg, #fff8f5, #ffffff);
}

.subscription-current-card.expired > div:first-child > span {
  color: #a85e4a;
}

/* Storage plate types */
.storage-type-picker { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.storage-type-picker legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.storage-type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.storage-type-options label { display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #dce3ed; border-radius: 12px; padding: 12px 4px; color: #475569; background: #f8fafc; cursor: pointer; font-size: 14px; }
.storage-type-options label.selected { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.storage-type-options input { accent-color: #2563eb; margin: 0; width: 14px; height: 14px; }
.stored-plate-type { color: #64748b; font-size: 13px; margin: 6px 0 10px; }
.storage-special-plate { display: grid; background: #fff; color: #111827; border: 3px solid #111827; border-radius: 9px; font-family: Arial, sans-serif; font-weight: 700; margin: 12px auto; max-width: 100%; box-sizing: border-box; }
.storage-special-region { border-left: 2px solid #111827; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 7px; }
.storage-special-region strong { font-size: 30px; line-height: 1.1; }
.storage-special-region small { display: flex; align-items: center; gap: 4px; font-size: 10px; }
.storage-special-main, .storage-special-secondary { text-align: center; align-self: center; padding: 2px 5px; font-size: 32px; letter-spacing: 1px; }
.storage-moto-plate { width: 190px; grid-template-columns: 1fr 65px; }
.storage-moto-plate .storage-special-main { grid-column: 1 / -1; font-size: 43px; border-bottom: 2px solid #111827; }
.storage-trailer-plate { width: 300px; grid-template-columns: auto 1fr 64px; }
@media (max-width: 360px) { .storage-trailer-plate .storage-special-main, .storage-trailer-plate .storage-special-secondary { font-size: 27px; } }

/* Optional lease and temporary-registration deadlines. */
.vehicle-deadline-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.vehicle-deadline-options legend { padding: 0; color: #697386; font-size: 12px; font-weight: 600; }
.vehicle-deadline-description { margin-bottom: 14px; padding: 13px; border-radius: 13px; background: #f2f6ff; }
.vehicle-deadline-description strong { color: #334b7a; font-size: 12px; line-height: 1.5; }
.vehicle-deadline-description p { margin: 7px 0 0; color: #69768c; font-size: 11.5px; line-height: 1.65; }
.vehicle-deadline-conflict { margin: 12px 0; padding: 13px; border-radius: 13px; background: #fff6ec; color: #97501e; font-size: 12px; line-height: 1.6; }
.vehicle-deadline-access { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; padding: 14px; border-radius: 14px; background: #f2f5fb; }
.vehicle-deadline-access.active { background: #eef8f3; }
.vehicle-deadline-access > strong { color: #394b70; font-size: 13px; }
.vehicle-deadline-access.active > strong { color: #237352; }
.vehicle-deadline-access > span { color: #657187; font-size: 12px; line-height: 1.55; }
.vehicle-deadline-access button { align-self: flex-start; margin-top: 3px; padding: 10px 13px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; }
.vehicle-deadline-option { display: flex; align-items: flex-start; gap: 11px; margin-top: 12px; padding: 14px 12px; border: 1px solid #e1e6ee; border-radius: 14px; cursor: pointer; }
.vehicle-deadline-option.selected { border-color: #b8cbf5; background: #f5f8ff; }
.vehicle-deadline-option > input { flex: 0 0 19px; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--primary); }
.vehicle-deadline-option > span { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.vehicle-deadline-option strong { color: var(--text); font-size: 13px; line-height: 1.4; }
.vehicle-deadline-option small { color: #7b8390; font-size: 11px; line-height: 1.5; }
.vehicle-deadline-option:has(input:disabled) { opacity: .65; cursor: default; }
.vehicle-deadline-fields { min-width: 0; padding: 12px 3px 3px; }
.vehicle-deadline-fields .field { min-width: 0; }
.vehicle-deadline-fields input { min-width: 0; max-width: 100%; }
.vehicle-deadline-fields input:disabled { color: #697386; opacity: .8; }
.vehicle-deadline-fields .field small { line-height: 1.55; }
.vehicle-deadline-note { margin: 15px 0 0; color: #7b8390; font-size: 11px; line-height: 1.6; }
.vehicle-deadlines { display: flex; flex-direction: column; gap: 9px; margin-top: 15px; padding: 13px; border: 1px solid #e3eaf7; border-radius: 14px; background: #f6f9ff; }
.vehicle-deadline-row { display: flex; flex-direction: column; gap: 5px; }
.vehicle-deadline-row + .vehicle-deadline-row { padding-top: 9px; border-top: 1px solid #e1e8f3; }
.vehicle-deadline-row > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; }
.vehicle-deadline-row span { color: #6b778e; font-size: 11px; }
.vehicle-deadline-row strong { color: #334565; font-size: 11px; }
.vehicle-deadline-row small { color: #2557a5; font-size: 10.5px; }
.vehicle-deadline-row.urgent small { color: #b55731; }
.vehicle-deadlines > p { margin: 3px 0 0; color: #7b8390; font-size: 11px; line-height: 1.5; }

/* Independent optional OSAGO and KASKO policies. */
.vehicle-insurance-settings, .vehicle-policy-settings { min-width: 0; }
.vehicle-policy-settings + .vehicle-policy-settings { margin-top: 15px; padding-top: 3px; border-top: 1px solid #edf0f5; }
.vehicle-policy-description { margin: 0 0 14px; color: #69768c; font-size: 12px; line-height: 1.6; }
.vehicle-policies .vehicle-policy-number { overflow-wrap: anywhere; line-height: 1.5; }
.vehicle-insurance-settings .field input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
