/* src/tokens.gen.css */
:root {
  --ink: #16232E;
  --ink-soft: #5D6C78;
  --ink-faint: #95A0A8;
  --paper: #E6EAE1;
  --card: #FCFCF8;
  --rule: #CBD3C9;
  --carbon: #2B55A2;
  --seal: #37765F;
  --stamp: #B0392C;
  --amber: #A8761A;
  --line: #06C755;
}
:root {
  --disp:
    "Bai Jamjuree",
    "IBM Plex Sans Thai",
    system-ui,
    sans-serif;
  --sans:
    "IBM Plex Sans Thai",
    "IBM Plex Sans",
    system-ui,
    sans-serif;
  --mono:
    "IBM Plex Mono",
    ui-monospace,
    monospace;
}
:root {
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 26px;
  --sp-7: 34px;
  --sp-8: 48px;
}
.paper {
  background-image: linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 30px;
  background-position: 0 -1px;
}

/* src/app.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--carbon);
  outline-offset: 2px;
}
.mono {
  font-family: var(--mono);
}
.hidden {
  display: none !important;
}
.money {
  font-variant-numeric: tabular-nums;
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.money small {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: var(--sp-1);
}
.money-hero {
  font-size: 40px;
}
.money-hero small {
  font-size: 13px;
}
.money-lg {
  font-size: 33px;
}
.money-lg small {
  font-size: 12.5px;
}
.money-md {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.money-md small {
  font-size: 12px;
}
.money-sm {
  font-size: 14.5px;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0;
}
.money-sm small {
  font-size: 11px;
}
.money-neg {
  color: var(--stamp);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  border: 1px solid currentColor;
  padding: 2.5px 7px;
  white-space: nowrap;
}
.tag-seal {
  color: var(--seal);
}
.tag-amber {
  color: var(--amber);
}
.tag-stamp {
  color: var(--stamp);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow-n {
  background: var(--ink);
  color: var(--card);
  padding: 1px 6px;
  letter-spacing: 0;
}
.eyebrow i {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px var(--sp-4);
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  border: 1.5px solid transparent;
  line-height: 1.2;
}
.btn-full {
  width: 100%;
}
.btn-primary {
  background: var(--ink);
  color: var(--card);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-seal {
  background: var(--seal);
  color: #fff;
}
.btn-amber {
  background: var(--amber);
  color: #fff;
}
.btn-line {
  background: var(--line);
  color: #04331A;
}
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.btn-loading .btn-label {
  visibility: hidden;
}
.btn-loading .btn-spin {
  display: block;
  position: absolute;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.alert {
  border: 1.5px solid var(--ink);
  background: var(--card);
  padding: var(--sp-3) var(--sp-4);
  display: grid;
  gap: var(--sp-1);
}
.alert-title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
}
.alert-body {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.alert-info {
  border-color: var(--carbon);
}
.alert-info .alert-title {
  color: var(--carbon);
}
.alert-warn {
  border-color: var(--amber);
}
.alert-warn .alert-title {
  color: var(--amber);
}
.alert-danger {
  border-color: var(--stamp);
}
.alert-danger .alert-title {
  color: var(--stamp);
}
.alert-action {
  justify-self: start;
  margin-top: var(--sp-1);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-decoration: underline;
  min-height: 44px;
}
.meter {
  height: 8px;
  background: var(--card);
  border: 1px solid var(--rule);
}
.meter i {
  display: block;
  height: 100%;
  background: var(--carbon);
}
.meter-amber i {
  background: var(--amber);
}
.meter-stamp i {
  background: var(--stamp);
}
.empty {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
}
.empty-icon {
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink-faint);
  line-height: 1;
}
.empty-title {
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
}
.empty-body {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 32ch;
}
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
}
.cam {
  flex: 1;
  background: #0E1519;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #EDF1F4;
}
.cam video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, .028) 0 2px,
      transparent 2px 7px);
}
.cam-top {
  position: relative;
  z-index: 3;
  padding: calc(var(--sp-6) + env(safe-area-inset-top, 0px)) var(--sp-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: #EDF1F4;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 10px;
  border-radius: 2px;
  white-space: nowrap;
  min-height: 32px;
}
.chip-switch::after {
  content: " \25be";
  opacity: .6;
}
.chip-auto {
  background: rgba(143, 213, 184, .18);
  border-color: #8FD5B8;
  color: #B6E7D0;
}
.chip-auto b {
  color: #8FD5B8;
  font-weight: 600;
}
.chip-auto.off {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .35);
  color: #B9C7D0;
}
.chip-auto.off b {
  color: #EDF1F4;
}
.cam-frame {
  position: relative;
  z-index: 3;
  margin: auto;
  width: 242px;
  height: 290px;
}
.cam-frame i {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2.5px solid #EDF1F4;
}
.cam-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.cam-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}
.cam-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}
.cam-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}
.cam-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #8FD5B8,
      transparent);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% {
    top: 10%;
  }
  50% {
    top: 82%;
  }
}
.cam-qr {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 2px solid #8FD5B8;
  background: rgba(143, 213, 184, .14);
}
.cam-hint {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #DDE5E9;
  font-size: 13px;
  padding: 0 var(--sp-6) var(--sp-4);
  line-height: 1.45;
}
.cam-hint b {
  display: block;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.cam-found {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(55, 118, 95, .9);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: var(--sp-2);
}
.cam-found .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8FD5B8;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: .25;
  }
}
.cam-alert {
  position: relative;
  z-index: 3;
  margin: var(--sp-3) var(--sp-4) 0;
}
.dock {
  position: relative;
  z-index: 3;
  background: rgba(14, 21, 25, .94);
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: var(--sp-4) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-2);
}
.dock-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #EDF1F4;
  min-width: 44px;
}
.dock-side .ic {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, .34);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-style: normal;
}
.dock-side.on .ic {
  background: rgba(255, 255, 255, .18);
  border-color: #fff;
}
.dock-side small {
  font-size: 10.5px;
  color: #B9C7D0;
  font-family: var(--mono);
  letter-spacing: .03em;
}
.shutter {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, .35);
  background-clip: padding-box;
  position: relative;
  justify-self: center;
}
.shutter::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid #0E1519;
  opacity: .12;
}
.shutter.ring::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2.5px solid #8FD5B8;
  border-right-color: transparent;
  animation: spin 1.1s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cam-scan,
  .shutter.ring::before,
  .cam-found .dot,
  .btn-spin {
    animation: none;
  }
}
.frozen {
  flex: 0 0 172px;
  background: #0E1519;
  position: relative;
  overflow: hidden;
}
.frozen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frozen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, .03) 0 2px,
      transparent 2px 7px);
}
.frozen .retake {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: #EDF1F4;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: 6px 12px;
  border-radius: 2px;
  min-height: 32px;
}
.sheet {
  flex: 1;
  background: var(--card);
  padding: var(--sp-5) var(--sp-5) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet .money {
  margin: var(--sp-2) 0 2px;
}
.sheet .money-unknown {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: var(--sp-2) 0 2px;
}
.tape {
  position: relative;
  padding-bottom: 30px;
}
.tape-meta {
  border-top: 1px dashed var(--rule);
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  font-family: var(--mono);
  font-size: 12px;
}
.tape-meta div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 2px 0;
  opacity: 0;
  animation: rise .25s ease-out forwards;
}
.tape-meta .k {
  color: var(--ink-soft);
  white-space: nowrap;
}
.tape-meta .v {
  text-align: right;
  word-break: break-all;
}
.tape-meta .v.low {
  border-bottom: 1.5px dotted var(--stamp);
}
.tape-meta .v.mid {
  border-bottom: 1.5px dotted var(--amber);
}
@keyframes rise {
  to {
    opacity: 1;
  }
}
.tape.static .tape-meta div {
  animation: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .tape-meta div {
    animation: none;
    opacity: 1;
  }
}
.tape-warn {
  font-size: 12.5px;
  color: var(--amber);
  margin-top: var(--sp-2);
  line-height: 1.5;
}
.tape-edge {
  display: block;
  width: 100%;
  height: 8px;
  color: var(--card);
}
.stamp {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  transform: rotate(-11deg);
  opacity: .85;
  pointer-events: none;
  border: 2.5px solid currentColor;
  padding: 3px 9px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.stamp-seal {
  color: var(--seal);
}
.stamp-amber {
  color: var(--amber);
}
.stamp-stamp {
  color: var(--stamp);
}
.pick {
  margin-top: auto;
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
}
.pick label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin: var(--sp-3) 0 var(--sp-1);
}
.seg {
  display: flex;
  border: 1.5px solid var(--ink);
}
.seg button {
  flex: 1;
  text-align: center;
  padding: 10px 2px;
  font-size: 13px;
  border-right: 1px solid var(--rule);
  min-height: 44px;
}
.seg button:last-child {
  border-right: 0;
}
.seg button[aria-pressed=true] {
  background: var(--ink);
  color: var(--card);
  font-weight: 600;
}
.pick .btn {
  margin-top: var(--sp-3);
}
.note {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: var(--sp-2);
  line-height: 1.4;
}
.done {
  flex: 1;
  background: var(--seal);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
}
.done .tick {
  width: 84px;
  height: 84px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: var(--sp-5);
}
.done h3 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 700;
}
.done .money {
  color: #fff;
  margin: var(--sp-2) 0 2px;
}
.done .money small {
  color: rgba(255, 255, 255, .85);
}
.done .amt-unknown {
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 700;
  margin: var(--sp-2) 0 2px;
}
.done .sub {
  font-family: var(--mono);
  font-size: 12px;
  opacity: .88;
}
.done .show {
  margin-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, .32);
  padding-top: var(--sp-3);
  font-size: 13px;
  opacity: .92;
}
.next {
  flex: 0 0 auto;
  background: #fff;
  color: var(--seal);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
  padding: var(--sp-5) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  min-height: 56px;
  width: 100%;
}
.next.red {
  color: var(--stamp);
}
.reject {
  flex: 1;
  background: var(--stamp);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
}
.reject .mark {
  font-family: var(--disp);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}
.reject h3 {
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 700;
  margin: var(--sp-3) 0 var(--sp-2);
}
.reject p {
  font-size: 13.5px;
  opacity: .93;
  line-height: 1.5;
}
.reject .box {
  margin-top: var(--sp-5);
  border: 1.5px solid rgba(255, 255, 255, .45);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--mono);
  font-size: 12px;
  text-align: left;
  width: 100%;
  line-height: 1.7;
}
.demo {
  padding: var(--sp-5) var(--sp-4) var(--sp-8);
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-5);
}
.demo h1 {
  font-family: var(--disp);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.demo section {
  background: var(--card);
  border: 1.5px solid var(--ink);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
  box-shadow: 3px 4px 0 rgba(22, 35, 46, .13);
}
.demo .row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.demo .lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: .05em;
}
/*# sourceMappingURL=main.css.map */
