:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --surface-soft: #f8faf6;
  --ink: #18251f;
  --muted: #6f7c75;
  --muted-light: #98a39d;
  --line: #e5ebe5;
  --green: #176b50;
  --green-deep: #0b4635;
  --green-soft: #e7f4ed;
  --lime: #c9f176;
  --orange: #f28a4b;
  --orange-soft: #fff0e7;
  --blue: #4978e8;
  --blue-soft: #edf2ff;
  --red: #d74e4a;
  --red-soft: #fff0ef;
  --shadow: 0 18px 52px rgba(27, 50, 38, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #dfe7df;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(201, 241, 118, 0.54), transparent 23rem),
    radial-gradient(circle at 85% 88%, rgba(23, 107, 80, 0.2), transparent 27rem),
    #e9eee7;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(73, 120, 232, 0.26);
  outline-offset: 2px;
}

[v-cloak] {
  display: none !important;
}

.prototype-stage {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.device-shell {
  position: relative;
  width: min(430px, 100%);
  height: min(920px, calc(100vh - 44px));
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: 38px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.app-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
  background: var(--bg);
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.view {
  min-height: 100%;
  padding: 22px 18px 28px;
}

.view.with-tabbar {
  padding-bottom: 100px;
}

.view-flow {
  padding-bottom: 26px;
}

.fake-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.status-dots i:nth-child(2) {
  width: 10px;
  height: 5px;
  border-radius: 4px;
}

.status-dots i:nth-child(3) {
  width: 16px;
  height: 7px;
  border: 1.5px solid var(--ink);
  background: transparent;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(var(--tab-count, 4), 1fr);
  padding: 10px 12px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(229, 235, 229, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.tab {
  display: flex;
  min-height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 11px;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.tab:active {
  transform: scale(0.95);
}

.tab.active {
  color: var(--green);
  font-weight: 700;
}

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

.tab.active .icon {
  filter: drop-shadow(0 3px 6px rgba(23, 107, 80, 0.16));
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 26px;
  height: 26px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  margin-bottom: 18px;
}

.page-head.stacked {
  align-items: flex-start;
}

.page-head h1,
.page-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.icon-button.dark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.back-button {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: linear-gradient(145deg, #f2c999, #d28354);
  color: white;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(25, 52, 39, 0.12);
}

.avatar.green {
  background: linear-gradient(145deg, #4e9278, #135c45);
}

.avatar.blue {
  background: linear-gradient(145deg, #638ef2, #315bbb);
}

.avatar.orange {
  background: linear-gradient(145deg, #f6b374, #d76e32);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--green-deep);
  color: white;
  box-shadow: 0 18px 34px rgba(11, 70, 53, 0.18);
}

.hero::before {
  position: absolute;
  top: -54px;
  right: -32px;
  width: 164px;
  height: 164px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.025), 0 0 0 62px rgba(255, 255, 255, 0.022);
  content: "";
}

.hero::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(201, 241, 118, 0.11);
  transform: rotate(12deg);
  content: "";
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.hero p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.balance {
  margin-top: 24px;
}

.balance-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.balance-number {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.balance-number small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.hero-note {
  max-width: 150px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.btn-lime {
  background: var(--lime);
  color: var(--green-deep);
  box-shadow: 0 8px 22px rgba(201, 241, 118, 0.2);
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 9px 20px rgba(23, 107, 80, 0.16);
}

.btn-dark {
  background: var(--ink);
  color: white;
}

.btn-soft {
  border: 1px solid var(--green-soft);
  background: var(--green-soft);
  color: var(--green);
  box-shadow: none;
}

.btn-outline {
  border: 1px solid var(--line);
  background: white;
  box-shadow: none;
}

.btn-danger-soft {
  background: var(--red-soft);
  color: var(--red);
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
}

.button-row > .btn {
  flex: 1;
}

.section {
  margin-top: 22px;
}

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

.section-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.card {
  border: 1px solid rgba(229, 235, 229, 0.92);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(24, 37, 31, 0.035);
}

.card-pad {
  padding: 17px;
}

.card-stack {
  display: grid;
  gap: 11px;
}

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

.stat-card {
  min-height: 92px;
  padding: 15px;
}

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

.stat-card.accent .stat-label,
.stat-card.accent .stat-note {
  color: rgba(255, 255, 255, 0.66);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 7px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.stat-value small {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.stat-note {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 10px;
}

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

.quick-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}

.quick-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  transition: transform 180ms ease;
}

.quick-action:active .quick-icon {
  transform: scale(0.94);
}

.quick-action:nth-child(2) .quick-icon {
  background: var(--orange-soft);
  color: #ca6832;
}

.quick-action:nth-child(3) .quick-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.quick-action:nth-child(4) .quick-icon {
  background: #f1f1ee;
  color: #5f6963;
}

.list-card {
  overflow: hidden;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: white;
}

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

.list-row.clickable {
  cursor: pointer;
}

.list-row.clickable:active {
  background: var(--surface-soft);
}

.row-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
}

.row-icon.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.row-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.row-icon.gray {
  background: #f1f3f0;
  color: #79827d;
}

.row-main {
  min-width: 0;
  flex: 1;
}

.row-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

.row-title span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.row-side {
  flex: 0 0 auto;
  text-align: right;
}

.row-side strong {
  display: block;
  color: var(--green);
  font-size: 16px;
}

.row-side small {
  display: block;
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 10px;
}

.chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #aeb7b1;
}

.tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f2ef;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.green {
  background: var(--green-soft);
  color: var(--green);
}

.tag.orange {
  background: var(--orange-soft);
  color: #bd622d;
}

.tag.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag.red {
  background: var(--red-soft);
  color: var(--red);
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #e9ede8;
}

.segmented button {
  min-height: 36px;
  flex: 1;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(24, 37, 31, 0.07);
}

.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

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

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

.filter-chip.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--green-soft);
  color: #376956;
  font-size: 11px;
  line-height: 1.55;
}

.info-banner.warn {
  background: var(--orange-soft);
  color: #8e572f;
}

.info-banner.blue {
  background: var(--blue-soft);
  color: #4261a0;
}

.progress-track {
  display: flex;
  align-items: center;
  margin: 6px 1px 24px;
}

.progress-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted-light);
  font-size: 10px;
}

.progress-step::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd2cd;
  content: "";
}

.progress-step.active {
  color: var(--green);
  font-weight: 700;
}

.progress-step.active::before {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.workflow-title {
  margin: 2px 0 4px;
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.workflow-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
}

.detail-hero .row-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
}

.detail-hero h3 {
  margin: 0;
  font-size: 16px;
}

.detail-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.field:first-child {
  margin-top: 0;
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  outline: none;
}

.field textarea {
  min-height: 86px;
  padding-top: 12px;
  resize: vertical;
}

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

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 48px;
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th {
  padding: 10px 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.table th:last-child,
.table td:last-child {
  text-align: right;
}

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

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.summary-total span {
  color: var(--muted);
  font-size: 12px;
}

.summary-total strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.metric-line:last-child {
  border-bottom: 0;
}

.metric-line span {
  color: var(--muted);
}

.metric-line strong {
  text-align: right;
}

.metric-line strong.positive {
  color: var(--green);
}

.metric-line strong.negative {
  color: var(--red);
}

.photo-box {
  display: flex;
  min-height: 122px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed #cbd5ce;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(231, 244, 237, 0.7), rgba(248, 250, 246, 0.8));
  color: var(--muted);
  cursor: pointer;
}

.photo-box strong {
  color: var(--ink);
  font-size: 12px;
}

.photo-box small {
  font-size: 10px;
}

.photo-box.has-photo {
  border-style: solid;
  background: #e9eee9;
  color: var(--green);
}

.weight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.weight-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.category-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.category-dot.plastic {
  background: #6d9cea;
}

.category-dot.metal {
  background: #e3a24b;
}

.category-dot.other {
  background: #a89b8b;
}

.weight-input-wrap {
  display: flex;
  align-items: center;
}

.weight-input-wrap input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.weight-input-unit {
  position: relative;
  width: 100%;
}

.weight-input-unit span {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--muted);
  font-size: 10px;
  transform: translateY(-50%);
}

.empty-state {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.empty-state .row-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
}

.bottom-action {
  position: sticky;
  bottom: -1px;
  z-index: 10;
  margin: 24px -18px -28px;
  padding: 13px 18px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(244, 246, 241, 0.94);
  backdrop-filter: blur(16px);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  background: rgba(9, 24, 17, 0.4);
  backdrop-filter: blur(2px);
}

.sheet {
  width: 100%;
  max-height: 88%;
  overflow: auto;
  padding: 21px 19px max(22px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--bg);
  box-shadow: 0 -20px 50px rgba(8, 25, 18, 0.14);
  animation: sheet-in 220ms ease both;
}

@keyframes sheet-in {
  from {
    transform: translateY(18px);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: -8px auto 18px;
  border-radius: 4px;
  background: #ccd3cd;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.sheet-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.sheet-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.scanner {
  position: relative;
  overflow: hidden;
  height: 310px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 241, 118, 0.16), transparent 10rem),
    #10251d;
}

.scanner::before,
.scanner::after {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  content: "";
}

.scanner::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.scanner::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.scan-frame {
  position: absolute;
  top: 62px;
  right: 55px;
  bottom: 62px;
  left: 55px;
  border: 2px solid rgba(201, 241, 118, 0.7);
  border-radius: 18px;
  box-shadow: 0 0 0 200px rgba(0, 0, 0, 0.08);
}

.scan-frame::after {
  position: absolute;
  top: 50%;
  left: 8%;
  width: 84%;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  content: "";
  animation: scan-line 2s ease-in-out infinite;
}

@keyframes scan-line {
  0%,
  100% {
    transform: translateY(-72px);
    opacity: 0.55;
  }
  50% {
    transform: translateY(72px);
    opacity: 1;
  }
}

.scan-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-align: center;
}

.loading-ring {
  width: 42px;
  height: 42px;
  border: 3px solid var(--green-soft);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.success-mark {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-deep);
}

.success-mark .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.5;
}

.toast {
  position: absolute;
  bottom: 92px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(22, 35, 28, 0.92);
  color: white;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from {
    transform: translate(-50%, 7px);
    opacity: 0;
  }
}

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

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.5;
}

.check-item .icon {
  margin-top: 1px;
  color: var(--green);
}

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

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

.fake-checkbox {
  display: flex;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd4cd;
  border-radius: 7px;
  background: white;
  color: white;
}

.fake-checkbox.checked {
  border-color: var(--green);
  background: var(--green);
}

.bar-chart {
  display: grid;
  gap: 15px;
  padding: 18px 17px;
}

.bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 63px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

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

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.bar-row:nth-child(2) .bar-fill {
  background: #6b9ff1;
}

.bar-row:nth-child(3) .bar-fill {
  background: #e6aa56;
}

.bar-row:nth-child(4) .bar-fill {
  background: #9c9186;
}

.bar-row strong {
  text-align: right;
}

.fab {
  position: absolute;
  right: 20px;
  bottom: 92px;
  z-index: 18;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  background: var(--green);
  color: white;
  box-shadow: 0 12px 24px rgba(23, 107, 80, 0.28);
  cursor: pointer;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(23, 107, 80, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.hide-desktop-only {
  display: none;
}

@media (max-width: 560px) {
  body {
    background: var(--bg);
  }

  .prototype-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .device-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .fake-status {
    padding-top: max(11px, env(safe-area-inset-top));
  }
}

@media (max-height: 740px) and (min-width: 561px) {
  .device-shell {
    height: calc(100vh - 18px);
    min-height: 620px;
  }

  .prototype-stage {
    padding: 9px;
  }
}

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