/* The field screens: the in-app camera, photo strips, Report to Remy, Import old records, write-offs. Prime tokens only. */
.fd-page {
  display: grid;
  gap: 14px;
  padding: 4px 16px 32px;
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink);
}
.fd-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow1);
  border: 1px solid var(--cardBorder);
}
.fd-head {
  display: grid;
  gap: 2px;
}
.fd-head b,
.fd-card > b,
.fd-sub {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.fd-fine,
.fd-card small,
.fd-fine {
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.35;
}
.fd-note {
  margin: 0;
  color: var(--ink2);
  font-size: 14px;
  line-height: 1.4;
}
.fd-sum {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.fd-heard {
  margin: 0;
  color: var(--ink2);
  font-size: 14px;
  font-style: italic;
}
.fd-warn {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.fd-warn::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 1px;
}
.fd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fd-btn,
.fd-send,
.fd-talk,
.fd-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.fd-btn {
  background: var(--holdBg);
  color: var(--holdInk);
}
.fd-btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.fd-send {
  background: var(--holdBg);
  color: var(--holdInk);
}
.fd-send:disabled,
.fd-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.fd-sample {
  min-height: 38px;
  padding: 0 14px;
  font-weight: 500;
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2);
  text-align: left;
}
.fd-sample:disabled {
  opacity: 0.5;
}
.fd-talk {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.fd-talk[data-on] {
  background: var(--holdBg);
  color: var(--holdInk);
}
.fd-samples,
.fd-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fd-text,
.fd-field input,
.fd-field select,
.fd-more input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.fd-text {
  resize: vertical;
  min-height: 84px;
  line-height: 1.4;
}
.fd-field {
  display: grid;
  gap: 6px;
}
.fd-field > span {
  color: var(--ink2);
  font-size: 13px;
}
.fd-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fd-more {
  display: flex;
  gap: 8px;
}
.fd-more input {
  flex: 1;
  min-width: 0;
}
.fd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line2);
  font-size: 14px;
}
.fd-pill button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink2);
}
.fd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.fd-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.fd-chip[data-proof]::before {
  background: var(--forest);
}
.fd-chip[data-proof] {
  color: var(--ink);
}

/* photo strip */
.fd-strip {
  display: grid;
  gap: 10px;
}
.fd-thumbs {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}
.fd-thumb {
  position: relative;
  display: grid;
  gap: 4px;
  flex: 0 0 132px;
}
.fd-thumb img {
  width: 132px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg2);
}
.fd-thumb small {
  font-size: 12px;
}
.fd-thumb .fd-chip {
  justify-self: start;
}
.fd-x {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}


/* reports */
.fd-list {
  display: grid;
  gap: 12px;
}
.fd-rhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fd-rhead b {
  font-size: 16px;
}
.fd-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}
.fd-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.fd-facts dt {
  color: var(--ink2);
}
.fd-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.fd-plist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.fd-plist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fd-ask {
  display: grid;
  gap: 10px;
}
.fd-q {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.fd-edit,
.fd-form {
  display: grid;
  gap: 12px;
}
.fd-form {
  padding: 4px 16px 24px;
}
.fd-form h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

/* import */
.fd-files {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fd-files li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.fd-files li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fd-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.4;
}
.fd-piles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fd-pile {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg);
}
.fd-pile b {
  font-size: 20px;
}
.fd-pile span {
  color: var(--ink2);
  font-size: 12px;
}
.fd-low {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

/* THE CAMERA, FULL SCREEN (founder, 25 Oct 2026): drawn into <body> over everything, dark, edge to edge, safe areas kept */
.fdf {
  position: fixed;
  inset: 0;
  z-index: 4000;
  height: 100dvh;
  background: #000;
  color: #fff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.fdf [hidden] {
  display: none;
}
.fdf-view {
  position: absolute;
  inset: 0;
  background: #0b0f0d;
}
.fdf-view[data-sim] {
  background: linear-gradient(135deg, #4b6a5a, #c9d6a8);
}
.fdf-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fdf-view[data-front] video {
  transform: scaleX(-1);
}
.fdf-sim {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.fdf-preview {
  position: absolute;
  inset: 0;
  background: #000;
  display: grid;
  place-items: center;
}
.fdf-preview img,
.fdf-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fdf-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}
.fdf[data-rec] .fdf-top {
  justify-content: center;
}
.fdf-top-r {
  display: flex;
  gap: 10px;
}
.fdf-round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  padding: 0;
  cursor: pointer;
}
.fdf-round[data-on] {
  background: #dcef4e;
  color: #0b3d2e;
}
.fdf-round .ico,
.fdf-gl {
  width: 22px;
  height: 22px;
}
.fdf-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-weight: 650;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.fdf-rec i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4a3a;
  animation: fdf-blink 1s steps(2, start) infinite;
}
@keyframes fdf-blink {
  to {
    opacity: 0.25;
  }
}
.fdf-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px max(16px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 20px) max(16px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
}
.fdf-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fdf-place .ico {
  width: 14px;
  height: 14px;
  flex: none;
}
.fdf-warn {
  margin: 0;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.fdf-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.fdf-row .fdf-vid {
  justify-self: end;
}
.fdf-shutter {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  background: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.fdf-shutter::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
  transition: inset 0.18s ease, border-radius 0.18s ease, background 0.18s ease;
}
.fdf-shutter:active::after {
  inset: 7px;
}
.fdf-shutter:disabled {
  opacity: 0.4;
}
.fdf-shutter[data-rec] {
  transform: scale(1.18);
  border-color: #ff4a3a;
  animation: fdf-ring 1.1s ease-in-out infinite;
}
.fdf-shutter[data-rec]::after {
  inset: 20px;
  border-radius: 7px;
  background: #ff4a3a;
}
@keyframes fdf-ring {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 74, 58, 0.3);
  }
}
.fdf-hint {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.fdf-acts {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.fdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #dcef4e;
  color: #0b3d2e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fdf-btn .ico {
  width: 18px;
  height: 18px;
}
.fdf-btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.fdf-explain {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 0 24px;
  background: #0b0f0d;
}
.fdf-explain .ico {
  width: 28px;
  height: 28px;
}
.fdf-explain p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.fdf-explain small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.fdf .vh {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .fdf-shutter[data-rec],
  .fdf-rec i {
    animation: none;
  }
}
