:root {
  --bg: #f2f6f4;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-2: #eef5f2;
  --surface-3: #f8fbfa;
  --text: #18211d;
  --muted: #6a7672;
  --primary: #11986d;
  --primary-dark: #087050;
  --primary-soft: rgba(17, 152, 109, 0.12);
  --border: rgba(20, 38, 31, 0.09);
  --success: #16a36f;
  --warning: #d98212;
  --danger: #d94444;
  --shadow: 0 18px 46px rgba(20, 47, 39, 0.13);
  --shadow-soft: 0 8px 24px rgba(24, 42, 36, 0.08);
  --radius: 20px;
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  background: #dfe9e5;
  height: 100%;
  overscroll-behavior: none;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(15, 159, 110, 0.18), transparent 28rem),
    linear-gradient(135deg, #e8f3ef 0%, #f8fbfa 56%, #eef3fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(17, 152, 109, 0.22);
  outline-offset: 2px;
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 680px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), transparent 170px),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(23, 32, 28, 0.05), 0 26px 90px rgba(28, 46, 42, 0.2);
}

.boot {
  display: grid;
  gap: 18px;
  align-items: center;
  justify-items: center;
  align-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.boot__poster {
  overflow: hidden;
  width: min(250px, 72vw);
  aspect-ratio: 887 / 1774;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 58px rgba(25, 42, 37, 0.18);
}

.boot__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boot__copy {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.boot strong {
  font-size: 20px;
}

.boot span {
  display: block;
  color: var(--muted);
  font-weight: 650;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
}

.screen {
  min-height: calc(100vh - var(--nav-height));
  animation: screen-in 180ms ease-out;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  color: var(--text);
  background: rgba(248, 251, 250, 0.86);
  border-bottom: 1px solid rgba(20, 38, 31, 0.07);
  backdrop-filter: blur(22px) saturate(1.22);
  box-shadow: 0 8px 28px rgba(24, 42, 36, 0.07);
}

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

.topbar h1,
.topbar h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0;
}

.topbar small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.topbar__actions,
.row-actions,
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button-row {
  flex-wrap: wrap;
}

.button-row .button {
  flex: 1 1 130px;
}

.icon-btn,
.back-btn {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.08);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

.icon-btn:active,
.back-btn:active,
.button:active,
.fab:active,
.nav-item:active,
.car-card:active {
  transform: scale(0.97);
}

.content {
  padding: 14px 14px 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

.panel,
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 13px;
}

.search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.search-input,
.field input,
.field select,
.field textarea,
.compact-input,
.zone-card select,
.zone-card textarea,
.zone-picker select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: border 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.search-input,
.compact-input,
.field input,
.field select,
.zone-card select,
.zone-picker select {
  padding: 0 12px;
}

.field textarea,
.zone-card textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

.search-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.compact-input:focus,
.zone-card select:focus,
.zone-card textarea:focus,
.zone-picker select:focus {
  border-color: rgba(15, 159, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 159, 110, 0.1);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 16px 2px 9px;
}

.section-title h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

.load-more-row {
  padding: 12px 0 4px;
}

.car-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 19px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.92)),
    var(--surface);
  box-shadow: 0 8px 20px rgba(31, 49, 43, 0.07);
  cursor: pointer;
  transition: transform 120ms ease, border 120ms ease, box-shadow 120ms ease;
}

.car-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), #44c0a7);
  opacity: 0.9;
}

.car-card:hover {
  border-color: rgba(15, 159, 110, 0.3);
  box-shadow: 0 14px 34px rgba(36, 55, 49, 0.11);
}

.car-card__head,
.metric-head,
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.car-title-wrap {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.vehicle-glyph {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-dark);
  background: linear-gradient(180deg, #e5f7ef, #f4fbf8);
  box-shadow: inset 0 0 0 1px rgba(17, 152, 109, 0.12);
}

.vehicle-glyph svg {
  width: 22px;
  height: 22px;
}

.car-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.car-title strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-card__side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.card-chevron {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #9aa6a1;
}

.card-chevron svg {
  width: 17px;
  height: 17px;
}

.plate {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #0776b8;
  font-weight: 750;
  font-size: 12px;
}

.plate::before {
  content: "AD";
  display: inline-grid;
  min-width: 17px;
  height: 12px;
  place-items: center;
  border-radius: 3px;
  color: #fff;
  background: #1598db;
  font-size: 8px;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.04);
}

.badge--new {
  color: #37617e;
  background: #e4f1fb;
}

.badge--in_work {
  color: #0c6f93;
  background: #dff3fb;
}

.badge--waiting,
.badge--warning {
  color: #9b5c00;
  background: #fff2d8;
}

.badge--ready,
.badge--success {
  color: #08734f;
  background: #dff8ee;
}

.badge--closed {
  color: #66736f;
  background: #edf0ef;
}

.badge--danger {
  color: #a92828;
  background: #ffe6e6;
}

.progress-block {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.progress-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e4ece8;
  box-shadow: inset 0 1px 2px rgba(20, 38, 31, 0.08);
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #44c0a7);
  transition: width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fab {
  position: fixed;
  right: max(18px, calc((100vw - 680px) / 2 + 18px));
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 20px);
  z-index: 25;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 34px rgba(8, 115, 79, 0.34);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.fab svg,
.icon-btn svg,
.back-btn svg,
.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.bottom-nav {
  position: fixed;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 30;
  max-width: 660px;
  height: 64px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(20, 38, 31, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 18px 48px rgba(23, 39, 34, 0.18);
}

.bottom-nav__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: grid;
  gap: 1px;
  place-items: center;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 700;
  transition: color 120ms ease, background 120ms ease, transform 120ms ease;
}

.nav-item.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 16px 14px 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 34, 29, 0.98), rgba(8, 112, 80, 0.94)),
    var(--primary-dark);
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -58px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.detail-hero .panel {
  color: var(--text);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.hero-title h2 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.quick-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.quick-stat {
  min-height: 62px;
  padding: 10px 10px 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.quick-stat strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0;
}

.quick-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.detail-hero .progress-block {
  position: relative;
  z-index: 1;
}

.detail-hero .progress {
  background: rgba(255, 255, 255, 0.18);
}

.detail-hero .progress__bar {
  background: linear-gradient(90deg, #fff, #b5f2dd);
}

.detail-hero .progress-caption {
  color: rgba(255, 255, 255, 0.78);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-cell {
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.05);
}

.info-cell span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.info-cell strong {
  font-size: 15px;
}

.zone-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border 180ms ease;
}

.zone-card.is-done {
  border-color: rgba(22, 163, 111, 0.28);
  background: linear-gradient(180deg, #fbfffd, #ffffff);
}

.zone-card.is-just-done {
  animation: done-pop 360ms ease-out;
}

@keyframes done-pop {
  0% {
    transform: scale(0.985);
  }
  45% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

.zone-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 13px 9px;
}

.zone-card__head h3 {
  margin: 0;
  font-size: 16px;
}

.zone-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zone-dot {
  display: none;
}

.zone-card--in_progress .zone-dot {
  display: none;
}

.zone-card--done .zone-dot {
  display: none;
}

.zone-card__body {
  display: grid;
  gap: 10px;
  padding: 0 13px 13px;
}

.zone-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.button {
  min-height: 41px;
  padding: 0 13px;
  border-radius: 13px;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 750;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.06);
}

.button[disabled] {
  cursor: default;
  opacity: 0.45;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

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

.button--ghost {
  color: var(--primary-dark);
  background: rgba(15, 159, 110, 0.09);
}

.button--wide {
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.95)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
  letter-spacing: 0;
}

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

.metric-card i {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.chart-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.chart-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.bar-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e4ece8;
}

.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #2f97cc);
  transition: width 300ms ease;
}

.funnel {
  display: grid;
  gap: 8px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 8px;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  background: #f7faf8;
  font-weight: 750;
}

tr:last-child td {
  border-bottom: 0;
}

.employee-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.employee-row:last-child {
  border-bottom: 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.switch-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.zone-picker {
  display: grid;
  gap: 8px;
}

.zone-picker__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.03);
}

.zone-picker__row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 8px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.04);
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
}

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

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd6d2;
  transition: background 140ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 140ms ease;
}

.switch input:checked + span {
  background: var(--primary);
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 10px 0;
  background: rgba(10, 20, 17, 0.36);
  backdrop-filter: blur(10px);
  animation: fade-in 160ms ease-out;
}

.sheet {
  width: min(680px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 9px 15px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid rgba(20, 38, 31, 0.08);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px) saturate(1.18);
  box-shadow: var(--shadow);
  animation: sheet-in 200ms ease-out;
}

.sheet__handle {
  width: 42px;
  height: 5px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: #d8e0dc;
}

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

.sheet__head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(24px);
  }
  to {
    transform: translateY(0);
  }
}

.toast-root {
  position: fixed;
  right: 0;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 18px);
  left: 0;
  z-index: 80;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 16px;
  color: #fff;
  background: rgba(20, 30, 27, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease-out;
}

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

.empty-state {
  padding: 34px 18px;
  border: 1px dashed rgba(20, 38, 31, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  text-align: center;
  font-weight: 650;
}

.empty-state::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(17, 152, 109, 0.18), rgba(47, 151, 204, 0.12)),
    #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 38, 31, 0.05);
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  border-radius: 20px;
  background: linear-gradient(180deg, #edf4f1, #f7faf8);
  box-shadow: var(--shadow-soft);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (min-width: 760px) {
  body {
    padding: 24px 0;
  }

  .app {
    min-height: calc(100vh - 48px);
    border-radius: 34px;
    overflow: hidden;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    padding-bottom: 112px;
  }

  .topbar {
    padding-top: 16px;
  }

  .bottom-nav {
    bottom: 32px;
  }
}

@media (max-width: 420px) {
  .content {
    padding: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .zone-controls {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 82px 1fr;
  }

  .bar-row strong {
    grid-column: 2;
  }

  .nav-item span {
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@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;
  }
}
