:root {
  --bg: #dfe9d5;
  --panel: #f4f4f1;
  --panel-2: #edf3e6;
  --ink: #20261d;
  --muted: #5f6758;
  --green: #14ff00;
  --green-dark: #067a00;
  --blue: #2563eb;
  --yellow: #f4ec00;
  --red: #cd2323;
  --border: #111;
  --shadow: 4px 4px 0 #000;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #bcc8b1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-bg {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
}

.phone-shell {
  width: 390px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.screen {
  min-height: 100vh;
  padding-bottom: 96px;
}

.soft-green {
  background: #dfe9d5;
}

.light {
  background: #efefef;
}

.olive {
  background: #d7e1ca;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 4px solid #000;
  background: #f6f6f4;
  position: sticky;
  top: 0;
  z-index: 20;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  font-size: 1.4rem;
  font-weight: 700;
}

.brand {
  margin: 10px auto 8px;
  width: fit-content;
  padding: 12px 18px;
  font-size: 2rem;
  font-weight: 900;
  border: 4px solid #000;
  background: #eef4e7;
  box-shadow: var(--shadow);
}

.brand-small {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0d7a0d;
}

.logo-wrap {
  padding-top: 12px;
}

.status-line {
  font-size: 0.85rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.15;
}

p {
  margin: 0 0 8px;
  line-height: 1.45;
}

hr {
  border: 0;
  border-top: 3px solid #222;
  margin: 14px 0;
}

.pad {
  padding: 16px;
}

.pad-xl {
  padding: 24px 20px;
}

.card {
  background: var(--panel);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  margin: 16px;
  padding: 16px;
}

.card.soft {
  background: #d9e4d1;
}

.card.soft-blue {
  background: #e9f1fd;
}

.card.inset {
  box-shadow: none;
  margin: 16px 0 0;
}

.row {
  display: flex;
  align-items: center;
}

.between {
  justify-content: space-between;
}

.right {
  align-items: flex-end;
}

.center {
  text-align: center;
  justify-content: center;
}

.grow {
  flex: 1;
}

.gap,
.gap-sm {
  gap: 10px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 10px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.badge,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border: 2px solid #222;
  background: #e0e7d6;
  font-size: 0.82rem;
  line-height: 1.1;
}

.pill.success,
.tab.active,
.highlight {
  background: var(--green);
}

.pill.warning {
  background: var(--yellow);
}

.pill.danger {
  background: var(--red);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 3px solid #000;
  box-shadow: var(--shadow);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
}

.btn-secondary {
  background: #f6f6f4;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-danger {
  background: #fff;
  color: var(--red);
}

.wide {
  width: 100%;
}

.mt {
  margin-top: 12px;
}

.mt-sm {
  margin-top: 8px;
}

.mt-xs {
  margin-top: 4px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.tiny {
  font-size: 0.8rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #555;
}

.green {
  color: #0c7c0c;
}

.link-green,
.success-text {
  color: #0b7f0b;
}

.danger-text {
  color: var(--red);
}

.banner {
  padding: 12px 16px;
  border-bottom: 3px solid #000;
  background: #dfe6cd;
  font-size: 0.92rem;
}

.banner-warn {
  background: #fff100;
}

.tabs {
  display: flex;
  gap: 10px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs-links {
  padding-top: 12px;
}

.tab {
  white-space: nowrap;
  padding: 10px 14px;
  border: 2px solid #222;
  background: #f6f6f4;
  min-width: fit-content;
}

.compact .tab {
  padding: 8px 12px;
}

.search,
input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 3px solid #222;
  background: #f6f6f4;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 390px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f7f7f4;
  border-top: 4px solid #000;
  z-index: 50;
}

.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-right: 2px solid #222;
  font-weight: 700;
  background: #f7f7f4;
}

.bottom-nav a:last-child {
  border-right: 0;
}

.bottom-nav a.active {
  background: var(--green);
}

.job-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f3;
  border: 3px solid #111;
  box-shadow: var(--shadow);
  padding: 12px;
  margin: 12px 0;
}

.time-box {
  min-width: 64px;
  text-align: center;
  font-weight: 800;
  padding: 10px 8px;
  border: 3px solid #222;
  background: #dfe6d1;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.active-job {
  border-left: 6px solid var(--green-dark);
}

.quote {
  padding: 14px;
  background: #e5eddc;
  border-left: 5px solid var(--green-dark);
  font-size: 1.05rem;
  line-height: 1.45;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  background: #e8efde;
  border: 3px solid #111;
  font-weight: 700;
}

.map-box {
  width: 100%;
  height: 128px;
  background: linear-gradient(90deg, #c6d1d8 0 84%, #d7e3cf 84% 100%);
  border-bottom: 3px solid #111;
  margin-top: 12px;
}

.small-map {
  height: 120px;
  border: 2px dashed #444;
  background: repeating-linear-gradient(
    135deg,
    #e8e8e8,
    #e8e8e8 12px,
    #f3f3f3 12px,
    #f3f3f3 24px
  );
}

.eta {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dark);
}

.section {
  margin-top: 24px;
}

.meta {
  margin-top: 18px;
}

.sticky-cta {
  position: sticky;
  bottom: 72px;
  background: inherit;
  padding: 16px;
  border-top: 3px solid #111;
}

.timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 3px solid #1f1f1f;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 14px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 7px;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 3px solid #111;
}

.timeline-item.active::before {
  background: var(--green);
}

.timeline .time {
  font-weight: 800;
  color: #4f4f4f;
  margin-bottom: 8px;
}

.selected {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}

.progress {
  width: 100%;
  height: 18px;
  margin-top: 12px;
  border: 3px solid #111;
  background: #dce5d3;
}

.progress .bar {
  height: 100%;
  background: var(--green-dark);
}

.check-card {
  background: #dfe9d5;
  border: 3px solid #111;
  box-shadow: var(--shadow);
  margin: 16px 0;
  padding: 16px;
}

.check-card.done .check-title {
  text-decoration: line-through;
  color: #4f5b4e;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  accent-color: var(--green-dark);
}

.check-title {
  font-size: 1rem;
  font-weight: 800;
}

.note-box {
  background: #f1f1f1;
  border: 2px solid #666;
  padding: 12px;
}

.photo-thumb {
  border: 3px solid #111;
  background: #f6f6f4;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fake-photo {
  width: 100%;
  height: 156px;
  background: radial-gradient(
    circle at 50% 40%,
    #4a4a4a 0,
    #222 30%,
    #111 65%,
    #000 100%
  );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.fake-photo.dim {
  opacity: 0.7;
}

.photo-large {
  position: relative;
  border: 4px solid #111;
  box-shadow: var(--shadow);
  background: #ddd;
  min-height: 270px;
  overflow: hidden;
}

.photo-fill {
  width: 100%;
  height: 100%;
  min-height: 270px;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 50% 35%, #8a8a8a 0, #3a3a3a 38%, #181818 70%);
}

.photo-label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 8px 10px;
  background: #f6f6f4;
  border: 3px solid #111;
  font-weight: 800;
}

.caption-stamp {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 8px 10px;
  background: #f6f6f4;
  border: 2px solid #444;
  font-size: 0.9rem;
}

.meta-grid strong {
  display: block;
  margin-top: 4px;
}

.menu-list {
  padding: 0;
}

.menu-item {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #333;
  background: transparent;
  padding: 18px 16px;
  text-align: left;
}

.menu-item:last-child {
  border-bottom: 0;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 900;
}

.price {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.small-price {
  font-size: 1.25rem;
}

.item-price {
  font-size: 1.8rem;
}

.steps {
  margin: 10px 0 16px 20px;
  padding: 0;
}

.steps li {
  margin-bottom: 10px;
  font-weight: 600;
}

.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b7e9c4;
  color: #0b7f0b;
  font-size: 2rem;
  font-weight: 900;
}

.icon-box {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #111;
  box-shadow: var(--shadow);
  font-size: 2rem;
  background: #fff;
}

.icon-box.amber {
  background: #f3b228;
}

.signature-card {
  background: #f8f8f7;
  border: 3px solid #111;
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
}

#signature-pad {
  display: block;
  width: 100%;
  height: 240px;
  background: #fbfbfb;
  touch-action: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--green-dark);
}

.pay-method {
  min-height: 100px;
  padding: 14px;
  border: 3px solid #111;
  box-shadow: var(--shadow);
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.pay-method span {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.pay-method.active {
  background: #eef4e7;
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.success-box {
  width: 96px;
  height: 96px;
  margin: 12px auto 18px;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  border: 4px solid #111;
  box-shadow: var(--shadow);
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tick-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #777;
}

.tick-list li::before {
  content: "✓";
  color: #0b7f0b;
  font-weight: 900;
  margin-right: 10px;
}

.tick-list li:last-child {
  border-bottom: 0;
}

.message-card h2 {
  margin-top: 6px;
}

.stats > div {
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 2rem;
}

.stats span {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-top: 4px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid #222;
  overflow: hidden;
}

.qty-control button,
.qty-control span {
  width: 40px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid #222;
  background: #eef3e6;
}

.qty-control button:last-child,
.qty-control span:last-child {
  border-right: 0;
}

.avatar {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border: 4px solid #111;
  font-size: 2rem;
  font-weight: 900;
}

.corner-tag {
  width: 34px;
  height: 34px;
  background: var(--green);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.stat-box,
.stat-card {
  background: #f6f6f4;
  border: 3px solid #111;
  padding: 12px;
  min-height: 80px;
}

.stat-box span,
.stat-card span {
  display: block;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 8px;
}

.stat-box strong,
.stat-card strong {
  font-size: 2rem;
  font-weight: 900;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #bbb;
}

.list-row:last-child {
  border-bottom: 0;
}

.active-job .btn,
.card .btn {
  text-align: center;
}

@media (max-width: 420px) {
  .phone-shell {
    width: 100%;
  }

  .bottom-nav {
    width: 100%;
  }
}
