/* GENERATED by brand-kit app=refund-photo-check v=2 - do not edit, chair runs brand-kit bump lock-sha256:2c2c3598bd3f94787ead717f9353cf7ca11b2f6ddc246b7765861885ccd861ff body-sha256:78b584a9ac633891385309e0d454de80c0b17e2603f81b917a912d87a9744875  */
:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #5A606B;
  --line: #E6E1D8;
  --border: #8A857B;
  --success: #1E6B3A;
  --warn: #7A5200;
  --error: #8F201A;
  --error-bg: #FCEBEA;
  --pass: #17592F;
  --pass-bg: #E6F3EA;
  --retake: #5E3F00;
  --retake-bg: #F0DEB0;
  --review: #26334F;
  --review-bg: #C3CFE6;
  --accent: #741138;
  --tint: #F8ECEF;
  --highlight: #F0B8D8;
  --on-accent: #FFFFFF;
  --chart-1: #741138;
  --chart-2: #1F7F86;
  --chart-3: #8A6A1E;
  --chart-4: #4C5A8C;
  --chart-5: #5A606B;
}
[data-theme="dark"] {
  --bg: #13110E;
  --surface: #1A1814;
  --ink: #F1EDE4;
  --muted: #C9C5BC;
  --line: #2D2A24;
  --border: #6E6A62;
  --success: #9BD6A8;
  --warn: #E8C27A;
  --error: #FFC4BA;
  --error-bg: #3A1F1C;
  --pass: #9BD6A8;
  --pass-bg: #1B2E21;
  --retake: #E8C27A;
  --retake-bg: #3A2E12;
  --review: #B9CBEE;
  --review-bg: #212B42;
  --accent: #F4C8E0;
  --tint: #2A1C20;
  --highlight: #F0B8D8;
  --on-accent: #13110E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13110E;
    --surface: #1A1814;
    --ink: #F1EDE4;
    --muted: #C9C5BC;
    --line: #2D2A24;
    --border: #6E6A62;
    --success: #9BD6A8;
    --warn: #E8C27A;
    --error: #FFC4BA;
    --error-bg: #3A1F1C;
    --pass: #9BD6A8;
    --pass-bg: #1B2E21;
    --retake: #E8C27A;
    --retake-bg: #3A2E12;
    --review: #B9CBEE;
    --review-bg: #212B42;
    --accent: #F4C8E0;
    --tint: #2A1C20;
    --highlight: #F0B8D8;
    --on-accent: #13110E;
  }
}

/* Capture page. Colours come only from brand-tokens/tokens.css (var(--...)); no literals here. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#app {
  min-height: 100%;
}

/* Card screens: S0, S1, S4, S5a/b/c, errors */
.card-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  background: var(--bg);
  color: var(--ink);
}
.card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px 22px;
}
h1 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.sub {
  color: var(--muted);
  margin: 0 0 20px;
}
.privacy {
  margin: 4px 0 20px;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.privacy li {
  margin: 0 0 6px;
}
a {
  color: var(--accent);
}
.warn {
  background: var(--error-bg);
  color: var(--error);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 15px;
}
.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 12px 0 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.6;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn:focus-visible,
.shutter:focus-visible,
.link:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}
.link {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.3 ui-monospace, Menlo, monospace;
}
.progress {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin: 18px 0 4px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--highlight);
  transition: width 0.3s;
}
.secured {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 16px 0 calc(8px + env(safe-area-inset-bottom));
}

/* Camera screens: S2, S3. Dark chrome, one instruction line, big shutter. */
.cam {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}
.instr {
  margin: 0;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  min-height: 64px;
}
[data-screen='S3'] .instr {
  color: var(--highlight);
  font-size: 24px;
}
.view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}
.view video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Guide brackets: rose stroke with a thin dark outline so they read on bright and dim scenes. */
.brackets {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  pointer-events: none;
}
.brackets path {
  fill: none;
  stroke-linecap: square;
}
.br-out {
  stroke: var(--bg);
  stroke-width: 6px;
}
.br-in {
  stroke: var(--highlight);
  stroke-width: 4px;
}
.count {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 52px;
  height: 52px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--highlight);
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.controls {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 12px 0 0;
}
.shutter {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 6px solid var(--ink);
  background: var(--highlight);
  box-shadow: 0 0 0 3px var(--bg);
  cursor: pointer;
  padding: 0;
}
.shutter:active {
  transform: scale(0.94);
}
.shutter:disabled {
  opacity: 0.45;
}
.hold {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.cam .secured {
  padding-top: 6px;
}
