:root {
  color-scheme: light dark;
  --bg: var(--tg-theme-bg-color, #f3f6f4);
  --surface: var(--tg-theme-secondary-bg-color, #ffffff);
  --surface-strong: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #111814);
  --muted: var(--tg-theme-hint-color, #69766f);
  --line: rgba(17, 24, 20, 0.1);
  --brand: var(--tg-theme-button-color, #173d2b);
  --brand-text: var(--tg-theme-button-text-color, #ffffff);
  --lime: #c9f36a;
  --orange: #ff7a45;
  --red: var(--tg-theme-destructive-text-color, #c1372c);
  --shadow: 0 16px 42px rgba(19, 38, 28, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100svh);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.app-shell {
  width: min(100%, 760px);
  min-height: var(--tg-viewport-stable-height, 100svh);
  margin: 0 auto;
  padding-right: var(--tg-content-safe-area-inset-right, 0px);
  padding-left: var(--tg-content-safe-area-inset-left, 0px);
}

.app-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(72px + var(--tg-content-safe-area-inset-top, 0px));
  padding: calc(12px + var(--tg-content-safe-area-inset-top, 0px)) 18px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 244, 0.88);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark,
.auth-logo {
  display: grid;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--lime);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 8px 20px rgba(23, 61, 43, 0.22);
}

.brand-copy,
.user-chip-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-copy small,
.user-chip-copy small {
  color: var(--muted);
  font-size: 10px;
}

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

.user-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px var(--line);
}

.user-chip-copy {
  max-width: 120px;
  text-align: right;
}

.user-chip-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  padding: 22px 16px calc(104px + var(--tg-content-safe-area-inset-bottom, 0px));
}

.view {
  animation: view-in 180ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 2px 20px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 22px;
  cursor: pointer;
}

.icon-button.rotating {
  animation: rotate 600ms linear infinite;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
}

.stat-card {
  display: grid;
  min-height: 90px;
  align-content: space-between;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card-accent {
  border-color: transparent;
  background: var(--brand);
  color: var(--brand-text);
}

.stat-card-accent span {
  color: color-mix(in srgb, var(--brand-text) 68%, transparent);
}

.stat-card-accent strong {
  color: var(--lime);
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 69, 0.26);
  border-radius: var(--radius-md);
  background: rgba(255, 122, 69, 0.1);
  font-size: 12px;
  line-height: 1.4;
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.filter-row {
  display: flex;
  gap: 7px;
  margin: 18px 0 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.orders-list {
  display: grid;
  gap: 11px;
}

.order-card {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 28px rgba(19, 38, 28, 0.045);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.order-card:active {
  transform: scale(0.985);
  box-shadow: none;
}

.order-card-top,
.order-card-footer,
.cargo-row {
  display: flex;
  align-items: center;
}

.order-card-top {
  gap: 7px;
  margin-bottom: 15px;
}

.order-number {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.urgent-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.12);
  color: #d94e17;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(105, 118, 111, 0.12);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-new { background: rgba(255, 122, 69, 0.12); color: #d94e17; }
.status-accepted,
.status-picking_up { background: rgba(34, 110, 226, 0.11); color: #1e63bd; }
.status-picked_up,
.status-delivering { background: rgba(160, 117, 0, 0.12); color: #8a6500; }
.status-delivered { background: rgba(32, 139, 78, 0.12); color: #16723d; }
.status-cancelled { background: rgba(193, 55, 44, 0.1); color: var(--red); }

.order-route {
  display: grid;
  grid-template-columns: 1fr;
}

.order-route-row,
.sheet-route-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.order-route-row div,
.sheet-route-row div {
  display: grid;
  gap: 2px;
}

.order-route-row small,
.sheet-route-row small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.order-route-row strong,
.sheet-route-row strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  margin: 5px 0 0 2px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: var(--surface);
}

.route-dot.dropoff {
  border-color: var(--orange);
  border-radius: 2px;
}

.order-route-connector,
.sheet-route-line {
  display: block;
  width: 1px;
  height: 18px;
  margin: 2px 0 2px 6px;
  background: var(--line);
}

.cargo-row {
  gap: 8px;
  margin: 14px 0 12px;
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--bg);
}

.cargo-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cargo-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: var(--lime);
  color: #173d2b;
  font-size: 12px;
  font-weight: 900;
}

.order-card-footer {
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
}

.driver-warning {
  color: var(--red);
  font-weight: 800;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 44px 20px;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 22px;
  background: var(--surface);
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.empty-state p {
  max-width: 280px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-card,
.profile-card,
.settings-card,
.about-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(19, 38, 28, 0.05);
}

.form-card {
  padding: 17px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field > span,
.field > label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.address-control {
  position: relative;
}

.address-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(300px, 42vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(19, 38, 28, 0.18);
  overscroll-behavior: contain;
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestion {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  width: 100%;
  gap: 8px;
  align-items: start;
  padding: 10px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.address-suggestion + .address-suggestion {
  border-top: 1px solid var(--line);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.address-suggestion.active,
.address-suggestion:active {
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
}

.address-suggestion-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--bg);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.address-suggestion-value {
  padding-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea,
.mini-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

.route-form-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
}

.route-form-line .route-dot {
  margin-top: 34px;
}

.route-form-connector {
  width: 1px;
  height: 16px;
  margin: 3px 0 3px 6px;
  background: var(--line);
}

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

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.form-card > .field {
  margin-top: 13px;
}

.primary-button,
.secondary-button,
.danger-button,
.status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 13px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: var(--brand);
  color: var(--brand-text);
  box-shadow: 0 10px 22px rgba(23, 61, 43, 0.18);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.danger-button {
  background: rgba(193, 55, 44, 0.09);
  color: var(--red);
}

.submit-button {
  width: 100%;
  margin-top: 18px;
  justify-content: space-between;
  min-height: 52px;
  padding-inline: 18px;
}

.cancel-edit-button {
  width: 100%;
  margin-top: 10px;
}

.compact-form {
  display: grid;
  gap: 13px;
  margin-bottom: 24px;
}

.compact-form > .field,
.compact-form .field-grid {
  margin-top: 0;
}

.section-caption {
  display: grid;
  gap: 4px;
  margin-bottom: 2px;
}

.section-caption strong { font-size: 14px; }
.section-caption span { color: var(--muted); font-size: 10px; line-height: 1.45; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 12px;
}

.section-heading span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.users-list {
  display: grid;
  gap: 9px;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.user-card.inactive { opacity: 0.55; }

.user-card-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.user-card-identity div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-card-identity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-identity small { color: var(--muted); font-size: 9px; }

.user-card-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-select {
  min-height: 34px;
  width: auto;
  max-width: 125px;
  padding: 6px 8px;
  font-size: 10px;
}

.status-toggle {
  min-height: 34px;
  padding: 7px 9px;
  background: rgba(105, 118, 111, 0.1);
  color: var(--muted);
  font-size: 9px;
}

.status-toggle.active {
  background: rgba(32, 139, 78, 0.11);
  color: #16723d;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  margin-bottom: 12px;
}

.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: var(--brand);
  color: var(--lime);
  font-size: 23px;
  font-weight: 900;
}

.profile-card div { display: grid; gap: 3px; }
.profile-card p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-card small { color: var(--muted); font-size: 9px; }

.settings-card {
  padding: 4px 16px;
  margin-bottom: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child { border-bottom: 0; }
.setting-row > div { display: grid; gap: 3px; }
.setting-row strong { font-size: 12px; }
.setting-row span { color: var(--muted); font-size: 9px; }
.setting-row button { flex: 0 0 auto; min-height: 36px; padding: 7px 11px; font-size: 10px; }

.about-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.about-card > div { display: grid; gap: 3px; }
.about-card strong { font-size: 13px; }
.about-card span { color: var(--muted); font-size: 9px; }

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: max(10px, calc((100vw - 740px) / 2));
  bottom: calc(8px + var(--tg-content-safe-area-inset-bottom, 0px));
  left: max(10px, calc((100vw - 740px) / 2));
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 18px 50px rgba(15, 29, 21, 0.2);
  backdrop-filter: blur(22px);
}

.nav-button {
  display: grid;
  flex: 1 1 0;
  max-width: 150px;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 5px 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.nav-button.active {
  background: var(--text);
  color: var(--bg);
}

.nav-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-button-create:not(.active) .nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: var(--lime);
  color: #173d2b;
}

.sheet-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(5, 12, 8, 0.44);
  backdrop-filter: blur(3px);
}

.order-sheet {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 760px);
  max-height: calc(var(--tg-viewport-stable-height, 100svh) - 18px);
  margin: 0 auto;
  padding: 8px 18px calc(20px + var(--tg-content-safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background: var(--surface-strong);
  box-shadow: 0 -20px 60px rgba(5, 12, 8, 0.28);
  transform: translateY(102%);
  transition: transform 180ms ease-out;
}

.order-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 1px auto 12px;
  border-radius: 999px;
  background: var(--line);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-content > .status-pill { margin-bottom: 17px; }
.sheet-route { padding: 15px; border-radius: var(--radius-lg); background: var(--bg); }
.sheet-route-row strong { white-space: normal; }
.sheet-route-line { height: 23px; }

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

.details-grid div { display: grid; min-width: 0; gap: 4px; }
.details-grid dt { color: var(--muted); font-size: 9px; font-weight: 700; }
.details-grid dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.details-wide { grid-column: 1 / -1; }

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

.sheet-actions .danger-button { grid-column: 1 / -1; }

.toast {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: calc(86px + var(--tg-content-safe-area-inset-bottom, 0px));
  left: 18px;
  width: fit-content;
  max-width: min(420px, calc(100vw - 36px));
  margin: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow);
}

.toast.error { background: var(--red); color: white; }

.auth-page,
.landing-page {
  display: grid;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100svh);
  place-items: center;
  padding: max(24px, var(--tg-content-safe-area-inset-top, 0px)) 20px max(24px, var(--tg-content-safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 80% 12%, rgba(201, 243, 106, 0.28), transparent 28%),
    linear-gradient(155deg, #eef3ef, #f7f8f7 58%, #e8eee9);
  color: #111814;
}

.auth-card,
.landing-card {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid rgba(17, 24, 20, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(19, 38, 28, 0.13);
  backdrop-filter: blur(18px);
}

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

.auth-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border-radius: 23px;
  font-size: 23px;
}

.auth-card h1,
.landing-card h1 {
  margin: 9px 0 12px;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.auth-card p,
.landing-card p {
  margin: 0;
  color: #69766f;
  font-size: 13px;
  line-height: 1.55;
}

.auth-loader {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 24px 0 10px;
}

.auth-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #173d2b;
  animation: pulse 900ms ease-in-out infinite alternate;
}

.auth-loader span:nth-child(2) { animation-delay: 150ms; }
.auth-loader span:nth-child(3) { animation-delay: 300ms; }
@keyframes pulse { to { opacity: 0.25; transform: translateY(-4px); } }

.auth-status {
  color: #69766f;
  font-size: 12px;
}

.auth-status.error {
  margin: 18px 0 10px;
  color: #c1372c;
}

.auth-card .primary-button { width: 100%; margin-top: 12px; }

.landing-card { padding: clamp(28px, 7vw, 50px); }

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}

.landing-brand .auth-logo { width: 52px; height: 52px; margin: 0; border-radius: 17px; font-size: 17px; }
.landing-brand > span:last-child { display: grid; gap: 1px; }
.landing-brand strong { font-size: 18px; letter-spacing: 0.08em; }
.landing-brand small { color: #69766f; font-size: 10px; }
.landing-button { width: 100%; margin-top: 25px; justify-content: space-between; min-height: 54px; padding-inline: 19px; }
.landing-note { display: block; margin-top: 14px; color: #69766f; font-size: 9px; text-align: center; }

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .user-card { align-items: flex-start; flex-direction: column; }
  .user-card-controls { width: 100%; }
  .mini-select { flex: 1 1 auto; max-width: none; }
  .status-toggle { flex: 0 0 auto; }
  .auth-card,
  .landing-card { padding: 24px; border-radius: 26px; }
}

@media (min-width: 761px) {
  body:not(.auth-page):not(.landing-page) {
    background: #e9eeea;
  }

  .app-shell {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 0 60px rgba(19, 38, 28, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
