:root {
  --primary: #1f6feb;
  --primary-dark: #1558c0;
  --primary-soft: #e6f0ff;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #1b1f24;
  --muted: #6b7280;
  --border: #dfe3ea;
  --danger: #d1242f;
  --danger-soft: #fdecee;
  --warn: #b26a00;
  --warn-soft: #fff4de;
  --ok: #1a7f37;
  --ok-soft: #e4f6ea;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overscroll-behavior-y: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
  margin: 0;
}

b {
  color: var(--danger);
}

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

.auth-body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth__card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.auth__logo {
  display: flex;
  justify-content: center;
}

.auth__logo img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(18, 73, 168, 0.25);
}

.auth__title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.auth__subtitle {
  margin-top: 4px;
  margin-bottom: 22px;
  color: var(--muted);
  text-align: center;
}

.auth__link {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}

.app-body {
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--primary);
  color: #fff;
}

.topbar__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.topbar__text {
  min-width: 0;
}

.topbar__title {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__sub {
  font-size: 13px;
  opacity: 0.85;
}

.content {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

.tab[hidden] {
  display: none;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.field__input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.field__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}

.field__input[readonly] {
  background: #f5f7fa;
  color: var(--muted);
}

.field__input--plate {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.field__input--secret {
  -webkit-text-security: disc;
  text-security: disc;
}

textarea.field__input {
  resize: vertical;
  min-height: 60px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chip.is-active {
  background: var(--primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

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

.btn--primary:not(:disabled):active {
  background: var(--primary-dark);
}

.btn--ghost {
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn--small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 48px;
  font-size: 16px;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  background: var(--ok-soft);
  color: var(--ok);
}

.notice--new {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.searchbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.searchbar .field__input {
  flex: 1;
}

.searchbar .btn {
  flex: 0 0 auto;
}

.segment {
  display: flex;
  background: #e5e8ee;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}

.segment__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.segment__btn.is-active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

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

.list__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.car-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

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

.car-card__plate {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
}

.car-card__name {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text);
}

.car-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.car-card__meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.car-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.car-card__actions .btn {
  flex: 1;
}

.car-card__history {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.status {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

.status--overdue {
  background: var(--danger-soft);
  color: var(--danger);
}

.status--soon {
  background: var(--warn-soft);
  color: var(--warn);
}

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

.history-item {
  padding: 10px 12px;
  background: #f7f8fb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.history-item + .history-item {
  margin-top: 8px;
}

.history-item__date {
  font-weight: 700;
  color: var(--text);
}

.history-item__note {
  color: var(--muted);
  font-style: italic;
}

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  border-top: 1px solid var(--border);
}

.bottomnav__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bottomnav__item.is-active {
  color: var(--primary);
}

.bottomnav__icon {
  display: flex;
  line-height: 1;
}

.bottomnav__icon .icon {
  width: 24px;
  height: 24px;
}

.bottomnav__item.is-active .icon {
  fill: currentColor;
  fill-opacity: 0.15;
}

.bottomnav__badge {
  position: absolute;
  top: 8px;
  left: calc(50% + 8px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
}

.toast {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 8px;
  left: 50%;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);
  z-index: 100;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1f2937;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.auth-body .toast {
  bottom: 24px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--success {
  background: var(--ok);
}

.toast--error {
  background: var(--danger);
}

@media (min-width: 640px) {
  .content {
    padding: 24px 16px;
  }
}

.topbar__pill {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.stats {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stat.is-active {
  border-color: var(--primary);
}

.stat__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.stat__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.stat--warn .stat__value {
  color: var(--warn);
}

.stat--danger .stat__value {
  color: var(--danger);
}

.stat--warn.is-active {
  border-color: var(--warn);
}

.stat--danger.is-active {
  border-color: var(--danger);
}

.car-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f0f2f6;
  border-radius: 999px;
}

.tag--tg {
  color: #0f7fc2;
  background: #e3f3fc;
}

.notify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notify__head .card__title {
  margin-bottom: 2px;
}

.notify__status {
  font-size: 13px;
  color: var(--muted);
}

.notify__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.notify__hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.notify__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.notify__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.notify__actions .btn {
  flex: 1;
}

.notify__log {
  margin-top: 12px;
}

.notice--warn {
  margin-top: 12px;
  background: var(--warn-soft);
  color: var(--warn);
}

.notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.linkbox {
  display: flex;
  gap: 6px;
}

.linkbox__input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}

.linkbox .btn {
  flex: 0 0 auto;
  min-height: 38px;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__track {
  position: absolute;
  inset: 0;
  background: #cfd5df;
  border-radius: 999px;
  transition: background 0.2s;
}

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

.switch input:checked + .switch__track {
  background: var(--ok);
}

.switch input:checked + .switch__track::after {
  transform: translateX(22px);
}

.switch input:disabled + .switch__track {
  opacity: 0.5;
}

.log-item {
  padding: 8px 10px;
  background: #f7f8fb;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.log-item__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.log-item__time {
  color: var(--muted);
  font-weight: 500;
}

.log-item__error {
  color: var(--danger);
}

.bottomnav__badge--info {
  background: var(--primary);
}

.doc-body {
  background: var(--bg);
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.doc__card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.doc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.doc__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.doc__brand {
  font-size: 18px;
  font-weight: 700;
}

.doc__brand a {
  color: var(--text);
  text-decoration: none;
}

.doc__lang {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.doc__lang-btn {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.doc__lang-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.doc__body h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc__body h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}

.doc__body p,
.doc__body li {
  font-size: 15px;
  margin-bottom: 8px;
}

.doc__body ul {
  padding-left: 20px;
  margin: 0 0 8px;
}

.doc__body code {
  background: var(--primary-soft);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 14px;
}

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

.doc__contact {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 12px 14px;
}

.doc__contact p:last-child {
  margin-bottom: 0;
}

.doc__footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 20px;
}

.offline .btn {
  margin-top: 18px;
  text-decoration: none;
}

.sidebar,
.auth__panel,
.desk-only {
  display: none;
}

.auth__side {
  width: 100%;
  display: flex;
  justify-content: center;
}

.layout__side,
.layout__main {
  min-width: 0;
}

.layout--profile .mobile-only {
  margin-top: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:not(:disabled):hover {
    background: var(--primary-dark);
  }

  .btn--ghost:not(:disabled):hover {
    background: var(--primary-soft);
    border-color: var(--primary);
  }

  .btn--danger:not(:disabled):hover {
    filter: brightness(0.92);
  }

  .chip:not(.is-active):hover {
    background: #d6e5ff;
  }

  .car-card {
    transition: box-shadow 0.15s, transform 0.15s;
  }

  .car-card:hover {
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
  }

  .stat:not(.is-active):hover {
    border-color: var(--border);
  }

  .bottomnav__item:hover,
  .segment__btn:not(.is-active):hover {
    color: var(--primary);
  }

  .topbar__pill:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

@media (min-width: 1024px) {
  :root {
    --sidebar-width: 268px;
  }

  .app-body {
    padding-bottom: 0;
  }

  .topbar,
  .bottomnav,
  .mobile-only {
    display: none;
  }

  .desk-only {
    display: block;
  }

  .shell {
    display: flex;
    min-height: 100vh;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    padding: 22px 14px 18px;
    background: var(--card);
    border-right: 1px solid var(--border);
  }

  .sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 8px 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }

  .sidebar__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .sidebar__text {
    min-width: 0;
  }

  .sidebar__title {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__sub {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .sidebar__item:hover {
    background: var(--bg);
  }

  .sidebar__item.is-active {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .sidebar__icon {
    width: 26px;
    font-size: 20px;
    line-height: 1;
    text-align: center;
  }

  .sidebar__label {
    flex: 1;
  }

  .sidebar__badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: #fff;
    background: var(--danger);
    border-radius: 999px;
  }

  .sidebar__badge--info {
    background: var(--primary);
  }

  .sidebar__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .shell__main {
    flex: 1;
    min-width: 0;
  }

  .content {
    max-width: 1200px;
    margin: 0;
    padding: 32px 36px 48px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .section-subtitle {
    margin-top: 0;
  }

  .card {
    padding: 18px;
  }

  .layout {
    display: grid;
    gap: 20px;
    align-items: start;
  }

  .layout--new {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .layout--reminders {
    grid-template-columns: 380px minmax(0, 1fr);
  }

  .layout--profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout__side {
    position: sticky;
    top: 24px;
  }

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

  .form--oil > * {
    order: 20;
  }

  .form--oil > :nth-child(1) {
    order: 1;
  }

  .form--oil > :nth-child(3) {
    order: 2;
  }

  .form--oil > :nth-child(2) {
    order: 3;
    grid-column: 1 / -1;
  }

  .form--oil > :nth-child(4) {
    order: 4;
  }

  .form--oil > :nth-child(5) {
    order: 5;
  }

  .form--oil > :nth-child(6) {
    order: 6;
  }

  .form--oil > :nth-child(10) {
    order: 7;
  }

  .form--oil > :nth-child(7) {
    order: 8;
  }

  .form--oil > :nth-child(9) {
    order: 9;
  }

  .form--oil > :nth-child(8) {
    order: 10;
  }

  .form--oil > :nth-child(11) {
    order: 11;
  }

  .form--oil > :nth-child(12) {
    order: 12;
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
    min-width: 240px;
  }

  .hint {
    margin-bottom: 16px;
  }

  .hint__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--muted);
  }

  .stats {
    gap: 14px;
    margin-bottom: 18px;
  }

  .stat {
    padding: 16px 10px;
  }

  .stat__value {
    font-size: 30px;
  }

  .stat__label {
    font-size: 13px;
  }

  .searchbar {
    max-width: 560px;
    margin-bottom: 18px;
  }

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

  .list--grid .list__empty {
    grid-column: 1 / -1;
  }

  .car-card {
    padding: 16px;
  }

  .btn--more {
    max-width: 320px;
    margin: 18px auto 0;
  }

  .auth {
    padding: 0;
    align-items: stretch;
  }

  .auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 64px;
    color: #fff;
    background: linear-gradient(135deg, #3d8bff 0%, #1249a8 100%);
  }

  .auth__panel-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(7, 32, 79, 0.35);
  }

  .auth__panel-title {
    margin-top: 26px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
  }

  .auth__panel-text {
    margin-top: 12px;
    max-width: 460px;
    font-size: 17px;
    opacity: 0.92;
  }

  .auth__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
  }

  .auth__features li::before {
    content: "✓";
    margin-right: 10px;
    font-weight: 700;
  }

  .auth__side {
    flex: 1;
    align-items: center;
    padding: 48px;
  }

  .auth__card {
    max-width: 440px;
    padding: 36px 32px;
  }
}

@media (min-width: 1440px) {
  .content {
    max-width: 1320px;
  }

  .list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout--new {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

.ptr {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--card);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.2);
  transform: translate(-50%, -56px);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.ptr.is-visible {
  opacity: 1;
}

.ptr__arrow {
  width: 14px;
  height: 14px;
  border: 3px solid var(--primary);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

.ptr.is-ready .ptr__arrow {
  transform: translateY(3px) rotate(225deg);
}

.ptr.is-loading .ptr__arrow {
  width: 20px;
  height: 20px;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  transform: none;
  animation: ptr-spin 0.7s linear infinite;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: -0.3em;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--small .icon {
  width: 16px;
  height: 16px;
}

.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__pill .icon {
  width: 16px;
  height: 16px;
}

.card__title .icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  color: var(--primary);
}

.car-card__phone .icon,
.tag .icon {
  width: 15px;
  height: 15px;
}

.tag .icon {
  width: 13px;
  height: 13px;
}

.list__empty .icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  opacity: 0.7;
}

.log-item__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.log-item__status .icon {
  width: 14px;
  height: 14px;
}

.log-item__status--ok {
  color: var(--ok);
}

.log-item__status--err {
  color: var(--danger);
}

.toast .icon {
  width: 20px;
  height: 20px;
}

.offline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.offline__icon .icon {
  width: 36px;
  height: 36px;
}

.sidebar__icon .icon {
  width: 22px;
  height: 22px;
}

.sidebar__item.is-active .icon {
  fill: currentColor;
  fill-opacity: 0.15;
}

.icon--spin {
  animation: ptr-spin 0.8s linear infinite;
}

.notice--prefill {
  color: var(--text);
  background: var(--primary-soft);
  border: 1.5px solid #c5d9ff;
}

.prefill__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary);
}

.prefill__title .icon {
  width: 18px;
  height: 18px;
}

.prefill__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.prefill__row {
  display: flex;
  gap: 8px;
}

.prefill__key {
  flex: 0 0 104px;
  color: var(--muted);
}

.prefill__val {
  min-width: 0;
  font-weight: 600;
}

.prefill__question {
  margin-top: 10px;
  font-weight: 600;
}

.prefill__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.prefill__actions .btn {
  flex: 1;
}
