:root {
  --green: #063f2b;
  --green-2: #075b3c;
  --orange: #ff6a1a;
  --ink: #0b1637;
  --muted: #64708a;
  --line: #dce4df;
  --soft: #f6f8f6;
  --ok: #0b8f55;
  --warn: #b46b00;
  --bad: #c93838;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--green);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--green), #032719);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: 100%;
  min-height: 100vh;
  max-width: 520px;
  overflow-x: hidden;
  margin: 0 auto;
  background: var(--soft);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.28);
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(16px + env(safe-area-inset-top)) 18px 16px;
  background: radial-gradient(circle at top right, #0d6947, var(--green));
  color: #fff8ed;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

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

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.title {
  margin: 22px 0 0;
  font-size: clamp(34px, 9vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.content {
  padding: 16px;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(6, 63, 43, 0.06);
}

.search svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 4px;
  scrollbar-width: none;
}

.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(6, 63, 43, 0.06);
}

.metric {
  min-height: 104px;
}

.metric b {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  color: var(--green);
}

.metric span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 2px 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 23px;
}

.offer,
.row-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.offer > div,
.row-card > div,
.item-head > * {
  min-width: 0;
}

.thumb {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #eef5ef;
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.item-head h3 {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 800;
  font-size: 12px;
  color: var(--ok);
  background: #dff5e8;
}

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

.badge.bad {
  color: var(--bad);
  background: #ffe3e3;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 13px;
  color: var(--green);
  background: #fff;
  font-weight: 900;
}

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

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

.btn.danger {
  border-color: var(--bad);
  color: var(--bad);
}

.spark {
  width: 100%;
  height: 54px;
  margin-top: 10px;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 36px 40px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stepper button {
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.stepper span {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 900;
}

.list-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.approval {
  border-color: #ffd6bf;
  background: linear-gradient(180deg, #fff8ef, #fff);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: var(--line);
}

.dot.done {
  background: var(--ok);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 520px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.nav-btn {
  display: grid;
  gap: 2px;
  place-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #46506a;
  font-size: 12px;
  font-weight: 800;
}

.nav-btn svg {
  width: 24px;
  height: 24px;
}

.nav-btn span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn.active {
  color: var(--orange);
}

.empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
}

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

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