* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f6f7f4; color: #1a1f1a; min-height: 100vh;
  display: flex; flex-direction: column;
}
.top {
  background: #14532d; color: #fff; padding: max(14px, env(safe-area-inset-top)) 16px 0;
  position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.top h1 { font-size: 20px; font-weight: 700; }
.top .fact { font-size: 12.5px; opacity: .85; margin: 4px 0 10px; }
.tabs { display: flex; gap: 6px; }
.tabs a {
  flex: 1; text-align: center; color: #d7e8db; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 10px 4px 9px;
  border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent;
}
.tabs a.active { background: #f6f7f4; color: #14532d; border-bottom-color: #14532d; }
.view { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 14px 14px 28px; }
.card {
  background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.card h2 { font-size: 16px; margin-bottom: 4px; }
.card .kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #6b7a6d; margin-bottom: 2px; }
.cap { font-size: 12px; color: #6b7a6d; margin-top: 6px; }
p.p { font-size: 14px; line-height: 1.45; margin: 6px 0; }
.loading { text-align: center; padding: 48px 20px; color: #37413a; }
.bar { height: 8px; background: #dde3dc; border-radius: 99px; margin: 14px auto 6px; max-width: 300px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: #14532d; border-radius: 99px; transition: width .2s; }
input[type="text"], input[type="tel"], input[type="search"] {
  width: 100%; font-size: 16px; padding: 11px 12px; border: 1.5px solid #cfd8d0;
  border-radius: 10px; background: #fff; color: inherit; margin-top: 6px;
}
label.fld { display: block; font-size: 13px; font-weight: 600; color: #37413a; margin-top: 8px; }
.btn {
  display: inline-block; font-size: 14px; font-weight: 600; padding: 9px 14px;
  border-radius: 10px; border: 1.5px solid #14532d; cursor: pointer;
  background: #14532d; color: #fff;
}
.btn.sec { background: #fff; color: #14532d; }
.btn.on { background: #14532d; color: #fff; }
.btn.off { background: #fff; color: #14532d; }
.btn.ghost { background: none; border: none; color: #14532d; text-decoration: underline; padding: 6px 4px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hits { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.hit {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f2f5f1; border-radius: 10px; padding: 9px 12px;
}
.hit .t { min-width: 0; }
.hit .n { font-size: 14px; display: block; overflow-wrap: anywhere; }
.hit .d { font-size: 12px; color: #6b7a6d; }
.qty { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty button {
  width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid #14532d;
  background: #fff; color: #14532d; font-size: 18px; font-weight: 700; cursor: pointer;
}
.qty .q { min-width: 20px; text-align: center; font-weight: 700; }
.rows { margin-top: 8px; display: flex; flex-direction: column; }
.row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #e7ebe6;
}
.row:last-child { border-bottom: none; }
.row .who { min-width: 0; }
.row .rn { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.row .rd { font-size: 12px; color: #6b7a6d; }
.row .rv { font-size: 15px; font-weight: 700; white-space: nowrap; }
.row .num { color: #14532d; font-weight: 700; margin-right: 6px; }
.note {
  border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.45;
}
.note.warn { background: #fdf6e3; border: 1px solid #ecd9a0; }
.note.ok { background: #e9f4ec; border: 1px solid #b8d8c0; }
.note b { display: block; margin-bottom: 3px; }
video.cam { width: 100%; border-radius: 12px; margin-top: 10px; background: #000; max-height: 320px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.facts .f { background: #f2f5f1; border-radius: 10px; padding: 9px 12px; }
.facts .f .l { font-size: 11.5px; color: #6b7a6d; }
.facts .f .v { font-size: 16px; font-weight: 700; }
.foot { font-size: 11.5px; color: #6b7a6d; text-align: center; padding: 10px 16px max(14px, env(safe-area-inset-bottom)); }
a.link { color: #14532d; }
