:root {
  color-scheme: light;
  --bg: #f4f6f1;
  --panel: #ffffff;
  --ink: #17231f;
  --muted: #65706b;
  --line: #dce4dc;
  --brand: #17684a;
  --brand-strong: #0d4f38;
  --amber: #b56a10;
  --red: #b83d35;
  --blue: #296d9a;
  --surface-soft: #f8faf7;
  --surface-muted: #eef2ed;
  --line-strong: #cbd6cd;
  --shadow: 0 18px 45px rgba(21, 40, 33, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 140ms;
  --duration-standard: 200ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(23, 104, 74, 0.1), transparent 420px),
    var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 16px 36px;
}

.debug-only {
  display: none !important;
}

.debug-mode .debug-only {
  display: initial !important;
}

.debug-mode label.debug-only {
  display: grid !important;
}

.site-footer {
  margin: 18px 0 0;
  padding: 18px 12px 2px;
  text-align: center;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(23, 104, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(21, 40, 33, 0.08);
}

.site-footer a:focus-visible,
.site-footer a:hover {
  border-color: rgba(23, 104, 74, 0.38);
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 264px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px 30px;
  border-radius: 0 0 8px 8px;
  isolation: isolate;
  color: #f8fff4;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(1, 10, 8, 0.74) 0 16%, rgba(2, 15, 12, 0.4) 34%, transparent 64%),
    radial-gradient(ellipse at 8% -4%, rgba(255, 218, 132, 0.62) 0, rgba(198, 154, 67, 0.24) 17%, transparent 36%),
    radial-gradient(ellipse at 94% 14%, rgba(102, 235, 184, 0.28) 0, rgba(50, 154, 118, 0.1) 25%, transparent 48%),
    radial-gradient(ellipse at 52% 112%, rgba(42, 119, 135, 0.27) 0, rgba(24, 80, 83, 0.12) 32%, transparent 56%),
    linear-gradient(128deg, #031711 0%, #0a3628 48%, #020f0c 100%);
  box-shadow: 0 20px 48px rgba(6, 31, 24, 0.2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image:
    radial-gradient(circle, rgba(248, 220, 151, 0.52) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(137, 245, 204, 0.38) 0 0.8px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.3) 0 0.7px, transparent 1.3px),
    conic-gradient(from 212deg at 7% 18%, transparent 0 20%, rgba(247, 204, 103, 0.22) 29%, rgba(113, 225, 174, 0.1) 38%, transparent 47% 100%),
    conic-gradient(from 28deg at 96% 76%, transparent 0 18%, rgba(99, 231, 180, 0.2) 27%, rgba(65, 127, 146, 0.13) 36%, transparent 45% 100%);
  background-position:
    0 0,
    57px 71px,
    119px 31px,
    0 0,
    0 0;
  background-size:
    183px 163px,
    257px 211px,
    137px 149px,
    auto,
    auto;
  background-repeat: repeat, repeat, repeat, no-repeat, no-repeat;
  opacity: 0.65;
  pointer-events: none;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1.06);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -24%;
  height: 58%;
  background:
    linear-gradient(168deg, transparent 0 38%, rgba(244, 197, 95, 0.12) 43%, rgba(255, 222, 139, 0.76) 48%, rgba(105, 226, 174, 0.66) 52%, rgba(67, 148, 131, 0.16) 58%, transparent 65%),
    radial-gradient(ellipse at 58% 80%, rgba(31, 135, 96, 0.42) 0, rgba(17, 86, 68, 0.18) 40%, transparent 70%);
  border-radius: 52% 48% 0 0 / 38% 34% 0 0;
  opacity: 0.56;
  pointer-events: none;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1.035);
  transform-origin: 50% 100%;
  z-index: 0;
}

.hero-vapor-field {
  position: absolute;
  inset: -12% -10%;
  z-index: 0;
  width: 120%;
  height: 124%;
  overflow: visible;
  opacity: 0.84;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1.045);
  transform-origin: center;
}

.hero-vapor-ribbon {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-vapor-ribbon--far {
  opacity: 0.51;
  transform: translate3d(0.3%, 0.2%, 0);
}

.hero-vapor-ribbon--middle {
  opacity: 0.66;
}

.hero-vapor-ribbon--near {
  opacity: 0.74;
  transform: translate3d(0.1%, -0.2%, 0);
}

.hero-vapor-glow {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
  opacity: 0.16;
}

.hero-vapor-line {
  fill: none;
  stroke-width: 1.45;
  stroke-linecap: round;
  opacity: 0.78;
}

.hero-reveal-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(248, 207, 111, 0.28), transparent 38%),
    radial-gradient(ellipse at 90% 30%, rgba(95, 224, 172, 0.22), transparent 42%),
    radial-gradient(ellipse at 50% 55%, rgba(1, 17, 13, 0.94) 0 28%, rgba(3, 37, 27, 0.82) 56%, rgba(3, 28, 21, 0.62) 100%);
  opacity: 0;
  transform: scale(1);
  transform-origin: center;
}

.hero-arrival-wave {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-arrival-wave::before,
.hero-arrival-wave::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.hero-arrival-wave::before {
  inset: 14% -32% 4%;
  border-radius: 44% 56% 48% 52% / 38% 46% 54% 62%;
  background: linear-gradient(
    104deg,
    transparent 18%,
    rgba(255, 221, 134, 0.06) 32%,
    rgba(255, 232, 164, 0.72) 46%,
    rgba(105, 236, 183, 0.68) 52%,
    rgba(51, 157, 131, 0.12) 65%,
    transparent 80%
  );
  transform: translate3d(-44%, 12%, 0) rotate(-7deg) scaleX(0.82);
}

.hero-arrival-wave::after {
  inset: -18% -14% -10%;
  background:
    radial-gradient(ellipse at 48% 38%, rgba(255, 220, 128, 0.44), transparent 19%),
    radial-gradient(ellipse at 62% 56%, rgba(83, 231, 171, 0.36), transparent 34%),
    linear-gradient(142deg, transparent 32%, rgba(94, 222, 171, 0.12) 48%, transparent 66%);
  transform: translate3d(-2%, 4%, 0) rotate(-2deg) scale(0.94);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-logo {
  width: clamp(48px, 11vw, 68px);
  height: clamp(48px, 11vw, 68px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(245, 206, 117, 0.42))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.eyebrow {
  margin: 0 0 8px;
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.78;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 550px;
  margin-bottom: 0;
  color: rgba(248, 255, 242, 0.88);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.58;
}

.hero-notice {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.hero-notice span {
  display: block;
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(238, 190, 93, 0.38);
  border-radius: 999px;
  background: rgba(5, 25, 18, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-panel strong {
  display: block;
  color: rgba(255, 238, 184, 0.95);
  font-size: 13px;
}

.workflow,
.result-card,
.history-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(21, 40, 33, 0.07);
}

.workflow {
  position: relative;
}

.workflow-feedback {
  position: fixed;
  z-index: 90;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 24px), 520px);
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(181, 106, 16, 0.28);
  border-radius: 14px;
  background: rgba(255, 250, 238, 0.96);
  box-shadow:
    0 18px 48px rgba(21, 40, 33, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px) scale(0.98);
  transition:
    opacity 120ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.workflow-feedback[hidden] {
  display: none;
}

.workflow-feedback.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition-duration: 180ms;
}

.workflow-feedback[data-tone="danger"] {
  border-color: rgba(184, 61, 53, 0.32);
  background: rgba(255, 247, 245, 0.97);
}

.workflow-feedback-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(181, 106, 16, 0.14);
  color: var(--amber);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.workflow-feedback[data-tone="danger"] .workflow-feedback-symbol {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.workflow-feedback-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-top: 1px;
}

.workflow-feedback-copy strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.workflow-feedback-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workflow-feedback-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out);
}

.workflow-feedback-close span {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .workflow-feedback-close:hover {
    background: rgba(23, 104, 74, 0.08);
  }
}

.workflow-feedback-close:active {
  transform: scale(0.97);
}

.workflow::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 5%;
  left: 5%;
  height: 18px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0, rgba(28, 119, 86, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(6, 53, 39, 0.13), transparent);
}

.section-heading,
.result-topline,
.field-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.check-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-grid .field {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fbfdf9;
  color: var(--ink);
  outline: none;
}

input[type="file"] {
  padding: 11px 13px;
}

.context-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.context-toggle input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.context-toggle strong,
.context-toggle small {
  display: block;
}

.context-toggle strong {
  color: var(--brand-strong);
  font-size: 14px;
}

.context-toggle small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.privacy-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  border: 1px solid rgba(23, 104, 74, 0.22);
  border-radius: 8px;
  background: #f7faf5;
}

.privacy-consent:focus-within,
.privacy-consent.needs-consent {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 104, 74, 0.1);
}

.privacy-consent input {
  width: 19px;
  min-height: 19px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.privacy-consent label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.privacy-consent-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
}

.privacy-consent a {
  color: var(--brand-strong);
  text-underline-offset: 3px;
}

.privacy-consent p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-consent .privacy-consent-reminder {
  color: var(--amber);
  font-weight: 700;
}

.legal-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 16px 36px;
}

.legal-header {
  padding: 26px 24px;
  border-radius: 8px;
  background: #10231d;
  color: #f8fff4;
  box-shadow: var(--shadow);
}

.legal-header a {
  display: inline-flex;
  margin-bottom: 24px;
  color: #f4d58a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-header p,
.legal-header span {
  margin: 0;
  color: rgba(248, 255, 244, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.legal-header h1 {
  margin: 6px 0 10px;
  font-size: 34px;
}

.legal-content {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-lead {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.legal-section + .legal-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.legal-section p {
  margin-bottom: 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-notice {
  margin-top: 24px;
  padding: 14px;
  border-left: 4px solid #d2a447;
  background: #fff9e9;
  color: #6f5317;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.product-checklist {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
}

.product-checklist-intro {
  display: grid;
  gap: 2px;
}

.product-checklist strong {
  display: block;
  color: var(--brand-strong);
  font-size: 15px;
}

.product-checklist p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checklist-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.checklist-step {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.checklist-step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  transform-origin: center;
}

.checklist-step-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.checklist-step-copy strong,
.checklist-step-copy span {
  overflow-wrap: anywhere;
}

.checklist-step-copy strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.checklist-step-copy span {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  transform-origin: center;
}

.checklist-step.active {
  border-color: rgba(23, 104, 74, 0.52);
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(23, 104, 74, 0.08),
    0 8px 18px rgba(21, 40, 33, 0.06);
}

.checklist-step.active .checklist-step-number {
  background: var(--brand-strong);
  color: #ffffff;
}

.checklist-step.active .checklist-step-copy strong {
  color: var(--brand-strong);
}

.checklist-step.ready .checklist-step-number {
  background: var(--brand);
  color: #fff;
}

.checklist-step.ready .checklist-step-copy span {
  color: var(--brand-strong);
}

.checklist-step.warning .checklist-step-number {
  background: rgba(181, 106, 16, 0.14);
  color: var(--amber);
}

.checklist-step.warning .checklist-step-copy span {
  color: var(--amber);
}

.checklist-step.blocked .checklist-step-number {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.checklist-step.blocked .checklist-step-copy span {
  color: var(--red);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 104, 74, 0.12);
}

textarea {
  min-height: 88px;
  padding: 12px 13px;
  resize: vertical;
}

.capture-list {
  display: grid;
  gap: 12px;
}

.capture-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  scroll-margin-top: 16px;
}

.capture-card.active {
  border-color: rgba(23, 104, 74, 0.38);
  box-shadow:
    0 0 0 2px rgba(23, 104, 74, 0.06),
    0 10px 24px rgba(21, 40, 33, 0.06);
}

.capture-card.active::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.capture-card.ready:not(.active) {
  border-color: rgba(23, 104, 74, 0.24);
}

.capture-card.warning {
  border-color: rgba(181, 106, 16, 0.32);
  background: #fffdf6;
}

.capture-card.blocked {
  border-color: rgba(184, 61, 53, 0.34);
  background: #fffafa;
}

.capture-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.capture-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.capture-copy .capture-title {
  display: inline-block;
  font-size: 15px;
}

.capture-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf0ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  vertical-align: top;
}

.capture-details-toggle {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(23, 104, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.capture-details-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease-out);
}

.capture-details-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.capture-copy > small {
  display: block;
  margin-top: 7px;
}

.capture-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 104, 74, 0.12);
}

.capture-details:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.capture-details[hidden] {
  display: none;
}

.capture-status.ready {
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
}

.capture-status.warning {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.capture-status.blocked {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.capture-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.capture-annotation {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.shooting-criteria {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(23, 104, 74, 0.16);
  border-radius: 8px;
  background: #fbfdf9;
}

.shooting-criteria strong {
  color: var(--brand-strong);
  font-size: 12px;
}

.shooting-criteria ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shooting-tips {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-context-status {
  display: block;
  margin-top: 6px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.compare-pair,
.capture-visual {
  display: grid;
  gap: 10px;
}

.capture-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.capture-visual-column {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.capture-visual-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.reference-box,
.upload-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--image-ratio, 3 / 4);
  min-height: 0;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #eef5ef;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.capture-card .reference-box {
  width: 100%;
  aspect-ratio: var(--image-ratio, 3 / 4);
}

.reference-box {
  margin: 0;
  border-style: solid;
  background: #f7faf5;
}

.upload-row {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 8px;
}

.capture-card .upload-box {
  width: 100%;
  aspect-ratio: var(--image-ratio, 3 / 4);
  flex: 0 0 auto;
  cursor: pointer;
}

.upload-placeholder {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  line-height: 1.35;
  text-align: center;
}

.upload-placeholder::before {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 104, 74, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-strong);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.upload-box.has-image {
  border-style: solid;
  border-color: rgba(23, 104, 74, 0.24);
  background: #f7faf5;
}

.upload-box.has-image .upload-placeholder {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  max-width: calc(100% - 16px);
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(15, 35, 28, 0.78);
  box-shadow: 0 3px 10px rgba(15, 35, 28, 0.16);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.upload-box.has-image .upload-placeholder::before {
  content: "↻";
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.image-quality-hint {
  width: min(100%, 360px);
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.image-quality-hint.ok {
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
}

.image-quality-hint.warning {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.shooting-feedback {
  width: min(100%, 360px);
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.shooting-feedback.ok {
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
}

.shooting-feedback.warning {
  background: rgba(184, 61, 53, 0.1);
  color: var(--red);
}

.focus-compare-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
}

.focus-compare-panel[hidden] {
  display: none;
}

.focus-compare-panel > strong {
  color: var(--brand-strong);
  font-size: 13px;
}

.focus-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.focus-compare-grid figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.focus-compare-grid img {
  width: 100%;
  height: clamp(104px, 28vw, 150px);
  object-fit: contain;
  border: 1px solid #cdd9cf;
  border-radius: 8px;
  background: #fff;
}

.focus-compare-grid img:not([src]) {
  visibility: hidden;
}

.focus-compare-grid figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.submit-overview {
  padding: 10px 12px;
  border-radius: 8px;
  background: #edf0ec;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.submit-overview.ready {
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
}

.submit-overview.warning {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.submit-overview.blocked {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.preflight-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.preflight-panel.ready {
  border-color: rgba(23, 104, 74, 0.18);
}

.preflight-panel.warning {
  border-color: rgba(181, 106, 16, 0.28);
}

.preflight-panel.blocked {
  border-color: rgba(184, 61, 53, 0.28);
}

.preflight-head,
.preflight-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preflight-head strong {
  color: var(--brand-strong);
}

.preflight-head span,
.preflight-item-top span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.preflight-head span.warning,
.preflight-panel.warning .preflight-head span,
.preflight-item.warning .preflight-item-top span {
  background: rgba(181, 106, 16, 0.14);
  color: var(--amber);
}

.preflight-head span.blocked,
.preflight-panel.blocked .preflight-head span,
.preflight-item.blocked .preflight-item-top span,
.preflight-item.missing .preflight-item-top span {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.preflight-list {
  display: grid;
  gap: 8px;
}

.preflight-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.preflight-item.warning {
  border-color: rgba(181, 106, 16, 0.24);
}

.preflight-item.blocked,
.preflight-item.missing {
  border-color: rgba(184, 61, 53, 0.24);
}

.preflight-item-top strong {
  color: var(--brand-strong);
  line-height: 1.35;
}

.preflight-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.preflight-action {
  font-weight: 800;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.reference-box img,
.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7faf5;
}

.reference-box img[src=""] {
  display: none;
}

.reference-box figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(15, 35, 28, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.reference-placeholder {
  padding: 0 12px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.focus-area-box {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 2px solid #e7b94f;
  border-radius: 6px;
  box-shadow:
    0 0 0 999px rgba(15, 35, 28, 0.16),
    0 0 0 1px rgba(15, 35, 28, 0.34);
}

.upload-box .focus-area-box {
  border-style: dashed;
}

.capture-card .upload-box .focus-area-box:not(.is-visible) {
  display: none;
}

.editable-focus-area {
  cursor: move;
  pointer-events: auto;
  touch-action: none;
}

.focus-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #173128;
  border-radius: 50%;
  background: #fff8dc;
  box-shadow: 0 2px 8px rgba(15, 35, 28, 0.22);
}

.focus-handle.nw {
  left: -8px;
  top: -8px;
  cursor: nwse-resize;
}

.focus-handle.n {
  left: calc(50% - 7px);
  top: -8px;
  cursor: ns-resize;
}

.focus-handle.ne {
  right: -8px;
  top: -8px;
  cursor: nesw-resize;
}

.focus-handle.e {
  right: -8px;
  top: calc(50% - 7px);
  cursor: ew-resize;
}

.focus-handle.se {
  right: -8px;
  bottom: -8px;
  cursor: nwse-resize;
}

.focus-handle.s {
  left: calc(50% - 7px);
  bottom: -8px;
  cursor: ns-resize;
}

.focus-handle.sw {
  left: -8px;
  bottom: -8px;
  cursor: nesw-resize;
}

.focus-handle.w {
  left: -8px;
  top: calc(50% - 7px);
  cursor: ew-resize;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.mobile-submit-bar {
  display: none;
}

button:focus-visible,
.upload-box:focus-visible,
.upload-box:focus-within {
  outline: 3px solid rgba(23, 104, 74, 0.28);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:not(:disabled):hover {
    background: var(--brand-strong);
  }

  .ghost-button:not(:disabled):hover,
  .capture-details-toggle:hover {
    border-color: rgba(23, 104, 74, 0.34);
    background: #eef5ef;
  }

  .checklist-step:hover,
  .upload-box:hover {
    border-color: rgba(23, 104, 74, 0.38);
  }

  .upload-box.has-image:hover .upload-placeholder {
    background: rgba(15, 35, 28, 0.9);
  }
}

.primary-button:not(:disabled):active,
.ghost-button:not(:disabled):active,
.capture-details-toggle:active,
.checklist-step:active,
.upload-box:active {
  transform: scale(0.97);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.primary-button[aria-busy="true"],
.mobile-submit-bar[aria-busy="true"] {
  cursor: progress;
}

.primary-button[aria-busy="true"] {
  opacity: 0.86;
}

.primary-button[aria-busy="true"]::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: submit-busy-spin 720ms linear infinite;
}

@keyframes submit-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  isolation: isolate;
}

.primary-button > :not(.motion-preview-submit-ready-sheen) {
  position: relative;
  z-index: 1;
}

.primary-button.is-retake {
  border: 1px solid rgba(23, 104, 74, 0.28);
  background: #f5f8f5;
  color: var(--brand-strong);
  box-shadow: none;
}

.primary-button.is-retake svg {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .primary-button.is-retake:not(:disabled):hover {
    border-color: rgba(23, 104, 74, 0.46);
    background: #eaf2ec;
  }
}

.compact-button {
  width: auto;
  min-height: 46px;
  padding: 0 14px;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(23, 104, 74, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 243, 0.96)),
    #f8fbf7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 28px rgba(18, 67, 49, 0.07);
}

.progress-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.progress-panel[hidden] {
  display: none;
}

.progress-status {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.progress-status > div {
  min-width: 0;
}

.progress-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.progress-value {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.progress-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(13, 79, 56, 0.12);
  background: linear-gradient(180deg, #d9e2dc, #e7ede8);
  box-shadow:
    inset 0 1px 2px rgba(15, 52, 39, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.88);
}

.progress-bar span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8e96f 0%, #8ce39a 42%, #56d8b3 72%, #2eaa86 100%);
  box-shadow:
    0 0 10px rgba(80, 213, 170, 0.5),
    0 0 18px rgba(154, 224, 118, 0.26);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms linear;
  will-change: transform;
}

.progress-bar span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 56%);
  pointer-events: none;
}

.progress-bar span::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -38%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  filter: blur(1px);
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
}

.progress-panel.is-running .progress-bar span::after {
  opacity: 0.86;
  animation: progress-light-sweep 1800ms linear infinite;
}

.progress-panel.is-complete .progress-bar span {
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

@keyframes progress-light-sweep {
  to {
    transform: translateX(420%);
  }
}

.progress-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-status p {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-steps li {
  position: relative;
  min-height: 34px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transform: translateY(0);
  transition: transform 160ms var(--ease-out);
}

.progress-steps li.done {
  border-color: rgba(23, 104, 74, 0.2);
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
}

.progress-steps li.active {
  border-color: rgba(212, 174, 91, 0.55);
  background: #fff8df;
  color: var(--amber);
  transform: translateY(-1px);
}

.progress-steps li.done::after {
  content: "✓";
  display: inline-block;
  margin-left: 4px;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
  animation: progress-step-check-in 140ms var(--ease-out) both;
}

@keyframes progress-step-check-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.progress-hint {
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(21, 92, 70, 0.07);
  line-height: 1.5;
}

.ghost-button {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #f7faf5;
  color: var(--brand-strong);
  font-weight: 800;
}

html.quality-review-open,
body.quality-review-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.quality-review-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.quality-review-dialog[open] {
  display: grid;
  place-items: center;
}

.quality-review-dialog::backdrop {
  background: rgba(7, 18, 14, 0.56);
  backdrop-filter: blur(10px) saturate(80%);
  -webkit-backdrop-filter: blur(10px) saturate(80%);
  animation: quality-review-backdrop-in 220ms var(--ease-out) both;
}

.quality-review-dialog.is-closing::backdrop {
  animation: quality-review-backdrop-out 160ms var(--ease-out) both;
}

.quality-review-sheet {
  width: min(100%, 540px);
  max-height: min(720px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: max-content minmax(0, 1fr) max-content;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(250, 252, 249, 0.92);
  box-shadow:
    0 34px 80px rgba(4, 22, 16, 0.28),
    0 10px 28px rgba(4, 22, 16, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  font-optical-sizing: auto;
  animation: quality-review-sheet-in 280ms var(--ease-out) both;
}

.quality-review-dialog.is-closing .quality-review-sheet {
  animation: quality-review-sheet-out 160ms var(--ease-out) both;
}

.quality-review-handle {
  display: none;
}

.quality-review-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 24px 24px 16px;
}

.quality-review-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(181, 106, 16, 0.13);
  color: #99600f;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(181, 106, 16, 0.12);
}

.quality-review-kicker {
  margin: 1px 0 3px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.4;
}

.quality-review-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.24;
}

.quality-review-header p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.quality-review-body {
  min-height: 0;
  padding: 0 24px 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.quality-review-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.quality-review-list {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.quality-review-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 15px 0;
  border-top: 1px solid rgba(101, 112, 107, 0.16);
}

.quality-review-marker {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #ffffff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(13, 79, 56, 0.18);
}

.quality-review-item-content {
  min-width: 0;
}

.quality-review-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quality-review-item-heading strong {
  min-width: 0;
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quality-review-item-heading span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(181, 106, 16, 0.12);
  color: #99600f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.quality-review-issues {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.quality-review-issues li {
  position: relative;
  padding-left: 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.quality-review-issues li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.quality-review-suggestion {
  margin: 9px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(23, 104, 74, 0.24);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.quality-review-guidance {
  margin: 3px 0 16px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(23, 104, 74, 0.065);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quality-review-guidance strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-strong);
  font-weight: 850;
}

.quality-review-actions {
  display: grid;
  grid-template-columns: 1fr 1.14fr;
  gap: 10px;
  padding: 15px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(101, 112, 107, 0.14);
  background: rgba(248, 250, 247, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.quality-review-button {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  transition:
    transform 100ms var(--ease-out),
    background-color 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out);
}

.quality-review-button.secondary {
  border: 1px solid rgba(23, 104, 74, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quality-review-button.primary {
  border: 1px solid var(--brand-strong);
  background: var(--brand-strong);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 79, 56, 0.2);
}

.quality-review-button:active {
  transform: scale(0.97);
  transition-duration: 60ms;
}

@media (hover: hover) and (pointer: fine) {
  .quality-review-button.secondary:hover {
    border-color: rgba(23, 104, 74, 0.34);
    background: #ffffff;
  }

  .quality-review-button.primary:hover {
    background: #093d2b;
  }
}

@keyframes quality-review-backdrop-in {
  from {
    background: rgba(7, 18, 14, 0);
  }
}

@keyframes quality-review-backdrop-out {
  to {
    background: rgba(7, 18, 14, 0);
  }
}

@keyframes quality-review-sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes quality-review-sheet-out {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

@keyframes quality-review-sheet-mobile-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
}

@keyframes quality-review-sheet-mobile-out {
  to {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
}

.ghost-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.danger-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(184, 61, 53, 0.28);
  border-radius: 8px;
  background: rgba(184, 61, 53, 0.08);
  color: var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.danger-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 20px;
  border-radius: 0 0 8px 8px;
  background: #10231d;
  color: #f8fff9;
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  margin-bottom: 10px;
}

.admin-hero p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(248, 255, 249, 0.78);
  line-height: 1.7;
}

.admin-back {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-hero-actions {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100% - 24px, 460px);
}

.auth-card h1 {
  margin-bottom: 10px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin: 18px 0 12px;
}

.admin-workspace-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1.05fr;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(21, 40, 33, 0.08);
  backdrop-filter: blur(10px);
}

.admin-nav-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(23, 104, 74, 0.1);
  border-radius: 8px;
  background: rgba(246, 250, 246, 0.82);
}

.admin-nav-group-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.admin-nav-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-nav-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.admin-nav-button.active {
  border-color: rgba(23, 104, 74, 0.22);
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-product-list,
.admin-point-list,
.check-record-list,
.prompt-editor-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.prompt-product-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.prompt-selector-bar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prompt-selector-bar .empty-state {
  margin: 0;
  align-self: center;
}

.prompt-version-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prompt-version-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prompt-version-heading div {
  display: grid;
  gap: 4px;
}

.prompt-version-heading span,
.prompt-version-heading b {
  color: var(--brand-strong);
  font-weight: 900;
}

.prompt-version-heading small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.prompt-version-heading b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(21, 92, 70, 0.18);
  border-radius: 999px;
  background: rgba(21, 92, 70, 0.07);
  font-size: 12px;
}

.prompt-version-conclusion {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(21, 92, 70, 0.18);
  border-radius: 8px;
  background: rgba(21, 92, 70, 0.06);
}

.prompt-version-conclusion.warning {
  border-color: rgba(181, 106, 16, 0.28);
  background: rgba(181, 106, 16, 0.08);
}

.prompt-version-conclusion strong {
  color: var(--brand-strong);
  font-size: 15px;
}

.prompt-version-conclusion.warning strong {
  color: var(--amber);
}

.prompt-version-conclusion p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.prompt-version-conclusion-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-version-conclusion-metrics span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.prompt-product-head {
  display: grid;
  gap: 10px;
}

.prompt-array-grid,
.prompt-point-grid {
  display: grid;
  gap: 10px;
}

.prompt-point-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.prompt-point-card > strong {
  color: var(--brand-strong);
}

.prompt-json-field {
  margin-top: 14px;
}

.admin-product-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.admin-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-product-actions button {
  min-height: 40px;
}

.admin-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-product-top small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.product-wizard-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid rgba(23, 104, 74, 0.2);
  border-radius: 8px;
  background: #fbfdf9;
}

.product-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-wizard-head strong {
  color: var(--brand-strong);
  font-size: 16px;
}

.product-wizard-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.product-wizard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.product-wizard-grid .primary-button {
  min-height: 46px;
}

.product-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wizard-step;
}

.product-wizard-steps li {
  counter-increment: wizard-step;
  display: grid;
  gap: 5px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.product-wizard-steps li::before {
  content: counter(wizard-step);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.product-readiness-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-readiness-panel strong {
  color: var(--brand-strong);
}

.product-template-hint {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.product-template-hint p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-readiness-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--amber);
  font-size: 13px;
  line-height: 1.5;
}

.product-readiness-list .ready {
  color: var(--muted);
}

.product-next-step-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--brand-strong);
  font-size: 13px;
  line-height: 1.5;
}

.reference-file-status {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.reference-file-status.warning {
  background: rgba(181, 106, 16, 0.1);
  color: var(--amber);
}

.admin-point-card {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-reference {
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: var(--image-ratio, 3 / 4);
}

.admin-point-copy strong {
  display: block;
  margin-bottom: 7px;
}

.admin-point-copy p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-point-copy dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-point-copy dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
}

.admin-point-copy dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-point-copy dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.focus-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.focus-fieldset legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quality-gate-fieldset {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quality-gate-fieldset legend {
  padding: 0 5px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.quality-gate-fieldset p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quality-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quality-rule-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.quality-rule-option input {
  width: 16px;
  min-height: 16px;
}

.quality-rule-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.focus-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.focus-preview-button {
  min-height: 38px;
  width: fit-content;
  padding: 0 12px;
}

.focus-preview-panel {
  margin-top: 12px;
}

.focus-drag-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.focus-preview-reference {
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: var(--image-ratio, 3 / 4);
  justify-self: center;
  min-height: 460px;
}

.point-edit-grid {
  margin-top: 0;
}

.wide-field {
  grid-column: 1 / -1;
}

.admin-note {
  margin: 14px 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.json-output {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.check-record-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.check-record-card.review-conflict {
  border-color: rgba(184, 61, 53, 0.42);
  background: #fffafa;
}

.check-record-card.priority-review:not(.review-conflict) {
  border-color: rgba(181, 106, 16, 0.32);
  background: #fffdf6;
}

.check-record-card.sample-target-record {
  border-color: rgba(181, 106, 16, 0.48);
  box-shadow: 0 0 0 2px rgba(181, 106, 16, 0.1);
}

.check-record-card.record-search-highlight {
  border-color: rgba(23, 104, 74, 0.72);
  box-shadow: 0 0 0 3px rgba(23, 104, 74, 0.16);
  animation: record-search-pulse 1.2s ease-in-out 3;
}

@keyframes record-search-pulse {
  0%,
  100% {
    background: #fbfdf9;
  }

  50% {
    background: #eef8ef;
  }
}

.check-record-card .point-result-top {
  align-items: center;
}

.config-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.health-check-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.health-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.health-check-head div {
  display: grid;
  gap: 4px;
}

.health-check-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-check-head strong {
  color: var(--brand-strong);
  font-size: 22px;
}

.health-check-head.warning strong {
  color: var(--amber);
}

.health-check-head.danger strong {
  color: var(--red);
}

.health-check-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-metric {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.health-metric.warning {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.health-metric.danger {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.health-issue-list {
  display: grid;
  gap: 8px;
}

.health-issue {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.1);
}

.health-issue.blocker {
  background: rgba(184, 61, 53, 0.1);
}

.health-issue b {
  color: var(--brand-strong);
  font-size: 13px;
}

.health-issue span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ops-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ops-status-card,
.ops-issue-card,
.ops-command-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.ops-status-card.danger {
  border-color: rgba(184, 61, 53, 0.34);
  background: #fffafa;
}

.ops-status-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
  background: #fffdf6;
}

.ops-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-card-head strong,
.ops-issue-card strong,
.ops-command-panel strong {
  color: var(--brand-strong);
}

.ops-monitor-overview.warning,
.ops-monitor-alerts.warning {
  border-color: rgba(181, 106, 16, 0.34);
  background: #fffdf6;
}

.ops-monitor-overview.danger,
.ops-monitor-alerts.danger {
  border-color: rgba(184, 61, 53, 0.34);
  background: #fffafa;
}

.ops-monitor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-monitor-head div {
  display: grid;
  gap: 3px;
}

.ops-monitor-head span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-monitor-metric {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(23, 104, 74, 0.16);
  border-radius: 8px;
  background: #fff;
}

.ops-monitor-metric.warning {
  border-color: rgba(181, 106, 16, 0.32);
  background: rgba(181, 106, 16, 0.06);
}

.ops-monitor-metric.danger {
  border-color: rgba(184, 61, 53, 0.32);
  background: rgba(184, 61, 53, 0.06);
}

.ops-monitor-metric span,
.ops-monitor-metric small,
.ops-monitor-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-monitor-metric strong {
  color: var(--brand-strong);
  font-size: 20px;
}

.ops-monitor-metric.warning strong {
  color: var(--amber);
}

.ops-monitor-metric.danger strong {
  color: var(--red);
}

.ops-status-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ops-status-card dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.ops-status-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-status-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-issue-card {
  grid-column: 1 / -1;
}

.retention-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.retention-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.retention-panel-heading > div:first-child {
  display: grid;
  gap: 4px;
}

.retention-panel-heading strong {
  color: var(--brand-strong);
  font-size: 16px;
}

.retention-panel-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.retention-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.retention-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.retention-summary b {
  color: var(--ink);
  font-size: 16px;
}

.retention-record-list {
  display: grid;
  gap: 7px;
}

.retention-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #ffffff;
}

.retention-record-row b,
.retention-record-row span {
  overflow-wrap: anywhere;
}

.retention-record-row b {
  color: var(--brand-strong);
  font-size: 12px;
}

.retention-record-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.retention-warning {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.ops-check-list,
.ops-command-list,
.ops-backup-list,
.ops-security-list {
  display: grid;
  gap: 7px;
}

.ops-check-list span,
.ops-command-list code {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
}

.ops-backup-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ops-backup-row b {
  overflow-wrap: anywhere;
  color: var(--brand-strong);
  font-size: 13px;
}

.ops-backup-row span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ops-backup-actions .compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.ops-security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
}

.ops-security-row.danger {
  background: rgba(184, 61, 53, 0.08);
}

.ops-security-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ops-security-row b {
  color: var(--brand-strong);
  font-size: 13px;
}

.ops-security-row code {
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ops-security-row span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-check-list span.danger {
  background: rgba(184, 61, 53, 0.1);
  color: var(--red);
}

.ops-command-panel {
  margin-top: 12px;
}

.ops-command-list code {
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.monitor-summary-panel {
  margin-top: 14px;
}

.monitor-range-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.monitor-range-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f4;
}

.monitor-range-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.monitor-range-button:hover {
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
}

.monitor-range-button.active {
  background: var(--brand-strong);
  color: #fff;
}

.monitor-range-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
}

.monitor-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 104, 74, 0.22);
  border-radius: 8px;
  background: #fbfdf9;
}

.monitor-summary-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
  background: rgba(181, 106, 16, 0.06);
}

.monitor-summary-card.danger {
  border-color: rgba(184, 61, 53, 0.34);
  background: rgba(184, 61, 53, 0.06);
}

.monitor-summary-card div {
  display: grid;
  gap: 4px;
}

.monitor-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.monitor-summary-card strong {
  color: var(--brand-strong);
  font-size: 22px;
}

.monitor-summary-card.warning strong {
  color: var(--amber);
}

.monitor-summary-card.danger strong {
  color: var(--red);
}

.monitor-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.monitor-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.monitor-metric-card {
  display: grid;
  gap: 6px;
  min-height: 100px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.monitor-metric-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
  background: #fffdf6;
}

.monitor-metric-card.danger {
  border-color: rgba(184, 61, 53, 0.34);
  background: #fffafa;
}

.monitor-metric-card span,
.monitor-metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.monitor-metric-card strong {
  color: var(--brand-strong);
  font-size: 22px;
}

.monitor-metric-card.warning strong {
  color: var(--amber);
}

.monitor-metric-card.danger strong {
  color: var(--red);
}

.guided-camera-monitor-panel {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 104, 74, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(214, 177, 93, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(15, 81, 61, 0.06), rgba(255, 255, 255, 0.92) 48%);
}

.guided-camera-monitor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guided-camera-monitor-heading > div {
  display: grid;
  gap: 4px;
}

.guided-camera-monitor-heading strong {
  color: var(--brand-strong);
  font-size: 17px;
}

.guided-camera-monitor-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.guided-camera-privacy-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(23, 104, 74, 0.24);
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.guided-camera-metric-grid {
  margin-top: 10px;
}

.monitor-trend-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.monitor-trend-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.monitor-trend-heading strong {
  color: var(--brand-strong);
  font-size: 17px;
}

.monitor-trend-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.monitor-trend-list {
  display: grid;
}

.monitor-trend-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.monitor-trend-row:last-child {
  border-bottom: 0;
}

.monitor-trend-date {
  display: grid;
  gap: 2px;
}

.monitor-trend-date strong {
  color: var(--ink);
  font-size: 13px;
}

.monitor-trend-date span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.monitor-trend-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.monitor-trend-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  min-width: 0;
}

.monitor-trend-metric > span,
.monitor-trend-metric > b {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.monitor-trend-metric > span {
  color: var(--muted);
  font-weight: 800;
}

.monitor-trend-metric > b {
  color: var(--ink);
}

.monitor-trend-meter {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(92, 109, 99, 0.14);
}

.monitor-trend-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.monitor-trend-metric.fallback .monitor-trend-meter span {
  background: var(--amber);
}

.monitor-trend-metric.unknown .monitor-trend-meter span {
  background: var(--red);
}

.monitor-trend-metric.retake .monitor-trend-meter span {
  background: #75611f;
}

.monitor-alert-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.monitor-alert-panel > strong {
  color: var(--brand-strong);
}

.monitor-alert-list {
  display: grid;
  gap: 8px;
}

.monitor-alert {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.1);
}

.monitor-alert.danger {
  background: rgba(184, 61, 53, 0.1);
}

.monitor-alert div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.monitor-alert b {
  color: var(--ink);
  font-size: 13px;
}

.monitor-alert span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.monitor-alert.danger span {
  color: var(--red);
}

.monitor-alert p,
.monitor-alert small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.monitor-alert small {
  color: var(--brand-strong);
  font-weight: 800;
}

.monitor-config-panel {
  margin-top: 12px;
}

.monitor-config-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.monitor-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.monitor-config-head div {
  display: grid;
  gap: 4px;
}

.monitor-config-head strong {
  color: var(--brand-strong);
  font-size: 17px;
}

.monitor-config-head p,
.monitor-config-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.monitor-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.monitor-config-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.monitor-config-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.monitor-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acceptance-summary-panel {
  margin-top: 14px;
}

.acceptance-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(23, 104, 74, 0.22);
  border-radius: 8px;
  background: #fbfdf9;
}

.acceptance-summary-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
  background: rgba(181, 106, 16, 0.06);
}

.acceptance-summary-card.danger {
  border-color: rgba(184, 61, 53, 0.34);
  background: rgba(184, 61, 53, 0.06);
}

.acceptance-summary-card > div:first-child {
  display: grid;
  gap: 4px;
}

.acceptance-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.acceptance-summary-card strong {
  color: var(--brand-strong);
  font-size: 22px;
}

.acceptance-summary-card.warning strong {
  color: var(--amber);
}

.acceptance-summary-card.danger strong {
  color: var(--red);
}

.acceptance-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.acceptance-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.acceptance-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.acceptance-group-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.acceptance-group-head,
.acceptance-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acceptance-group-head strong {
  color: var(--brand-strong);
  font-size: 15px;
}

.acceptance-item-list {
  display: grid;
  gap: 8px;
}

.acceptance-item {
  display: grid;
  gap: 5px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
}

.acceptance-item.warning {
  background: rgba(181, 106, 16, 0.1);
}

.acceptance-item.blocker {
  background: rgba(184, 61, 53, 0.1);
}

.acceptance-item b {
  color: var(--ink);
  font-size: 13px;
}

.acceptance-item-top span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.acceptance-item.warning .acceptance-item-top span {
  color: var(--amber);
}

.acceptance-item.blocker .acceptance-item-top span {
  color: var(--red);
}

.acceptance-item p,
.acceptance-item small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.acceptance-item small {
  color: var(--brand-strong);
  font-weight: 800;
}

.acceptance-fix-button {
  width: fit-content;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

.launch-confirmation-panel {
  margin-top: 12px;
}

.launch-confirmation-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.launch-confirmation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.launch-confirmation-head div {
  display: grid;
  gap: 4px;
}

.launch-confirmation-head strong {
  color: var(--brand-strong);
  font-size: 17px;
}

.launch-confirmation-head p,
.launch-confirmation-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.launch-confirmation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.launch-confirmation-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(181, 106, 16, 0.24);
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.06);
}

.launch-confirmation-item.confirmed {
  border-color: rgba(23, 104, 74, 0.22);
  background: rgba(23, 104, 74, 0.07);
}

.launch-confirmation-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.launch-confirmation-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.launch-confirmation-category {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

.launch-confirmation-item p,
.launch-confirmation-item small,
.launch-confirmation-item em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.launch-confirmation-item small {
  color: var(--brand-strong);
  font-weight: 800;
}

.launch-confirmation-item textarea {
  min-height: 68px;
  resize: vertical;
}

.launch-confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.config-status-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.config-status-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
}

.config-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.config-status-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.config-status-card dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.config-status-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.config-status-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.record-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.record-filter-reset {
  min-height: 48px;
  padding: 0 14px;
}

.check-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.check-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-list-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.load-more-records {
  width: 100%;
  margin-top: 12px;
}

.check-stat-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.check-stat-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
}

.check-stat-card.danger {
  border-color: rgba(184, 61, 53, 0.34);
}

.check-stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-stat-card strong {
  color: var(--brand-strong);
  font-size: 24px;
  line-height: 1.1;
}

.check-stat-card.warning strong {
  color: var(--amber);
}

.check-stat-card.danger strong {
  color: var(--red);
}

.check-stat-card small {
  align-self: end;
  color: var(--muted);
  line-height: 1.45;
}

.batch-review-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(23, 104, 74, 0.18);
  border-radius: 8px;
  background: #f7faf5;
}

.batch-review-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-review-panel strong {
  color: var(--brand-strong);
}

.batch-review-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.batch-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-review-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(181, 106, 16, 0.24);
  border-radius: 8px;
  background: #fffdf6;
}

.priority-review-heading,
.priority-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.priority-review-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.priority-queue-summary,
.priority-review-actions,
.priority-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-summary-chip {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.priority-summary-chip.high {
  background: rgba(184, 61, 53, 0.1);
  color: var(--red);
}

.priority-summary-chip.medium {
  background: rgba(181, 106, 16, 0.1);
  color: var(--amber);
}

.priority-review-list {
  display: grid;
  gap: 10px;
}

.priority-review-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.priority-review-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.priority-item-actions {
  justify-content: flex-end;
}

.priority-reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.priority-reason-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(181, 106, 16, 0.1);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.record-priority-reasons {
  margin-top: 8px;
}

.record-issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.record-issue-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.record-issue-tags span.warning {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.record-issue-tags span.danger {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.context-comparison-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
}

.context-comparison-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.context-comparison-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.context-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.context-comparison-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.context-comparison-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.context-comparison-card dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
}

.context-comparison-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.context-comparison-card dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.review-analysis-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-analysis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-analysis-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.analysis-metric-card {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.analysis-metric-card.warning {
  border-color: rgba(181, 106, 16, 0.34);
}

.analysis-metric-card.danger {
  border-color: rgba(184, 61, 53, 0.34);
}

.analysis-metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analysis-metric-card strong {
  color: var(--brand-strong);
  font-size: 22px;
  line-height: 1.1;
}

.analysis-metric-card.warning strong {
  color: var(--amber);
}

.analysis-metric-card.danger strong {
  color: var(--red);
}

.analysis-metric-card small {
  color: var(--muted);
  line-height: 1.45;
}

.analysis-list-section,
.analysis-advice-section,
.tuning-task-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.tuning-task-head,
.tuning-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tuning-task-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tuning-task-list {
  display: grid;
  gap: 8px;
}

.tuning-task-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tuning-task-item.high {
  border-color: rgba(184, 61, 53, 0.28);
}

.tuning-task-item.medium {
  border-color: rgba(181, 106, 16, 0.28);
}

.tuning-task-top strong {
  color: var(--brand-strong);
}

.tuning-task-top span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.tuning-task-item.high .tuning-task-top span {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.tuning-task-item.medium .tuning-task-top span {
  background: rgba(181, 106, 16, 0.14);
  color: var(--amber);
}

.tuning-task-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tuning-task-action {
  font-weight: 800;
}

.analysis-list {
  display: grid;
  gap: 8px;
}

.analysis-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.analysis-list-row.warning {
  border-color: rgba(181, 106, 16, 0.28);
}

.analysis-list-row span {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

.analysis-list-row b {
  color: var(--brand-strong);
}

.analysis-list-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.analysis-row-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.analysis-advice-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.check-record-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.record-review-meta {
  font-size: 12px;
  font-weight: 800;
}

.record-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.manual-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.manual-status-button.danger {
  border-color: rgba(184, 61, 53, 0.32);
  color: var(--red);
}

.manual-status-button.warning {
  border-color: rgba(181, 106, 16, 0.32);
  color: var(--amber);
}

.manual-status-button.ready {
  border-color: rgba(23, 104, 74, 0.24);
  color: var(--brand-strong);
}

.manual-status-button:disabled {
  opacity: 0.62;
}

.quick-meta-item {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.quick-meta-item.warning {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.quick-meta-item.danger {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.record-point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.record-point-list span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.compact-record-button {
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 12px;
}

.check-record-detail {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.check-record-detail[hidden] {
  display: none;
}

.record-detail-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.record-detail-list li.warning {
  color: var(--amber);
}

.record-detail-list li.danger {
  color: var(--red);
}

.record-focus-issues {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(181, 106, 16, 0.22);
  border-radius: 8px;
  background: #fffdf6;
}

.record-focus-issues p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-image-summary {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(23, 104, 74, 0.18);
  border-radius: 8px;
  background: #f7faf5;
}

.review-image-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.review-image-summary-heading strong {
  color: var(--brand-strong);
}

.review-image-summary-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-image-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-image-summary-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-image-summary-card b {
  color: var(--brand-strong);
  font-size: 13px;
  line-height: 1.45;
}

.review-image-summary-card p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.review-image-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.review-image-compare-grid {
  gap: 8px;
  margin-bottom: 0;
}

.review-image-summary .record-compare-media {
  height: clamp(116px, 15vw, 168px);
}

.focus-issue-list {
  display: grid;
  gap: 8px;
}

.focus-issue-item {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.1);
}

.focus-issue-item.danger {
  background: rgba(184, 61, 53, 0.1);
}

.focus-issue-item b {
  color: var(--brand-strong);
  font-size: 13px;
}

.focus-issue-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.run-diagnostics-summary {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(23, 104, 74, 0.16);
  border-radius: 8px;
  background: #f8fbf7;
}

.run-diagnostics-summary > strong {
  color: var(--brand-strong);
}

.run-diagnostics-summary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0;
}

.run-diagnostics-summary dl div {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.run-diagnostics-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.run-diagnostics-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.run-diagnostics-issues {
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.run-diagnostics-issues.warning {
  background: rgba(181, 106, 16, 0.1);
  color: var(--amber);
}

.prompt-snapshot-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(23, 104, 74, 0.16);
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.06);
}

.prompt-snapshot-summary.missing {
  border-color: rgba(181, 106, 16, 0.22);
  background: rgba(181, 106, 16, 0.08);
}

.prompt-snapshot-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.prompt-snapshot-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-snapshot-points span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.record-conflict-note {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(184, 61, 53, 0.28);
  border-radius: 8px;
  background: rgba(184, 61, 53, 0.08);
  color: var(--red);
  font-weight: 800;
  line-height: 1.55;
}

.timing-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
}

.timing-summary dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.timing-summary dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.timing-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timing-summary dd {
  margin: 0;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.record-review-editor {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.record-review-editor.needs-review {
  border-color: rgba(184, 61, 53, 0.28);
  background: #fffafa;
}

.record-review-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.36fr) 1fr;
  gap: 10px;
}

.record-review-wide {
  grid-column: 1 / -1;
}

.manual-note-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-note-templates .compact-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.record-review-form textarea {
  min-height: 84px;
  padding-top: 12px;
  resize: vertical;
}

.record-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.record-review-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-add-actions {
  display: grid;
  grid-template-columns: minmax(150px, 220px) auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sample-add-actions select {
  min-height: 38px;
}

.sample-add-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-supplement-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(181, 106, 16, 0.28);
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.08);
}

.sample-supplement-notice p {
  margin: 0;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.sample-supplement-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sample-library-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sample-capacity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sample-capacity-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sample-capacity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sample-capacity-list button {
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sample-capacity-list button:hover {
  box-shadow: 0 0 0 2px rgba(23, 104, 74, 0.16);
}

.sample-capacity-list button.missing {
  background: rgba(184, 61, 53, 0.1);
  color: var(--red);
}

.sample-capacity-list button.full {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.sample-context-heading {
  margin: 14px 0 0;
}

.sample-duplicate-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(184, 61, 53, 0.28);
  border-radius: 8px;
  background: rgba(184, 61, 53, 0.07);
}

.sample-duplicate-panel[hidden] {
  display: none;
}

.sample-duplicate-head {
  display: grid;
  gap: 4px;
}

.sample-duplicate-head strong {
  color: var(--red);
}

.sample-duplicate-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sample-duplicate-list {
  display: grid;
  gap: 8px;
}

.sample-duplicate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.sample-duplicate-info {
  display: grid;
  gap: 3px;
}

.sample-duplicate-info span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.sample-duplicate-info small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sample-duplicate-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sample-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.sample-context-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.sample-context-point-list {
  display: grid;
  gap: 8px;
}

.sample-context-point {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #eef5ef;
}

.sample-context-point b {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.sample-context-point span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.sample-card.duplicate-sample {
  border-color: rgba(184, 61, 53, 0.36);
  background: #fffafa;
}

.sample-empty-action {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(23, 104, 74, 0.34);
  border-radius: 8px;
  background: #fbfdf9;
}

.sample-empty-action .empty-state {
  margin: 0;
}

.sample-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sample-card-top strong {
  flex: 1 1 auto;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sample-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sample-card-detail {
  display: grid;
  gap: 6px;
}

.sample-card-detail strong {
  color: var(--brand-strong);
}

.sample-compare-grid {
  margin-bottom: 0;
}

.sample-quality-editor {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sample-capacity-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sample-capacity-note.full {
  color: var(--red);
  font-weight: 800;
}

.sample-enabled-control,
.sample-quality-tags label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sample-enabled-control input,
.sample-quality-tags input {
  width: auto;
  min-height: 0;
}

.sample-quality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.sample-quality-editor textarea {
  min-height: 70px;
  padding-top: 12px;
  resize: vertical;
}

.sample-quality-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-quality-actions .sample-add-status {
  flex: 1 1 220px;
}

.sample-quality-actions button {
  flex: 0 0 auto;
}

.audit-log-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.audit-log-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.audit-log-card.warning {
  border-color: rgba(181, 106, 16, 0.28);
  background: #fffdf6;
}

.audit-log-card.danger {
  border-color: rgba(184, 61, 53, 0.32);
  background: #fffafa;
}

.audit-log-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.audit-log-top strong {
  flex: 1 1 auto;
}

.audit-log-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.audit-log-card pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f7faf5;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-payload-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
}

.ai-error-summary {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(181, 106, 16, 0.28);
  border-radius: 8px;
  background: #fffdf6;
}

.ai-error-summary strong {
  color: var(--amber);
}

.ai-error-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ai-error-summary ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-attempt-summary {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(23, 104, 74, 0.18);
  border-radius: 8px;
  background: #f7faf5;
}

.ai-attempt-summary strong {
  color: var(--brand-strong);
}

.ai-attempt-summary ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-json-preview {
  display: grid;
  gap: 8px;
}

.ai-json-preview + .ai-json-preview {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ai-payload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-payload-json {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: #10231d;
  color: #f5fff7;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-payload-json[hidden] {
  display: none;
}

.record-detail-points {
  display: grid;
  gap: 8px;
}

.record-detail-point {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.record-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.record-compare-figure {
  margin: 0;
}

.record-compare-media {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(260px, 42vw, 430px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf5;
}

.record-compare-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.record-compare-figure figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.record-focus-area {
  z-index: 3;
}

.record-compare-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.record-detail-point.medium {
  border-color: rgba(181, 106, 16, 0.34);
}

.record-detail-point.high {
  border-color: rgba(184, 61, 53, 0.34);
}

.record-detail-point.sample-target-point {
  border-color: rgba(181, 106, 16, 0.5);
  background: rgba(181, 106, 16, 0.08);
  box-shadow: 0 0 0 2px rgba(181, 106, 16, 0.1);
}

.record-detail-point b {
  display: block;
  line-height: 1.45;
}

.sample-target-tip {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.record-image-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.record-detail-point p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.record-detail-point .record-annotation {
  color: var(--brand-strong);
  font-size: 13px;
}

.record-detail-point .point-prompt-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.record-detail-point .prompt-hit-meta {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.record-detail-point .prompt-hit-meta.medium {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.record-detail-point .prompt-hit-meta.high {
  background: rgba(184, 61, 53, 0.1);
  color: var(--red);
}

.result-card {
  --result-risk-color: #56665f;
  --result-risk-line: rgba(86, 102, 95, 0.22);
  --result-risk-tint: rgba(86, 102, 95, 0.08);
}

.result-card[data-risk="low"] {
  --result-risk-color: var(--brand-strong);
  --result-risk-line: rgba(23, 104, 74, 0.22);
  --result-risk-tint: rgba(23, 104, 74, 0.08);
}

.result-card[data-risk="medium"] {
  --result-risk-color: var(--amber);
  --result-risk-line: rgba(181, 106, 16, 0.26);
  --result-risk-tint: rgba(181, 106, 16, 0.09);
}

.result-card[data-risk="high"] {
  --result-risk-color: var(--red);
  --result-risk-line: rgba(184, 61, 53, 0.25);
  --result-risk-tint: rgba(184, 61, 53, 0.08);
}

.result-topline {
  align-items: flex-start;
}

.result-heading-copy {
  min-width: 0;
}

.result-risk-anchor {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
  transform-origin: left center;
}

.result-risk-anchor > :not(.motion-preview-risk-sweep) {
  position: relative;
  z-index: 1;
}

.result-risk-anchor h2 {
  color: var(--result-risk-color);
  font-size: clamp(22px, 4vw, 27px);
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.result-risk-signal {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--result-risk-color);
  box-shadow:
    0 0 0 1px var(--result-risk-line),
    0 0 0 5px var(--result-risk-tint);
}

.score-reference {
  min-width: 98px;
  display: grid;
  justify-items: end;
  gap: 2px;
  flex: 0 0 auto;
  padding: 9px 10px;
  border: 1px solid rgba(86, 102, 95, 0.16);
  border-radius: 8px;
  background: rgba(246, 249, 246, 0.78);
  color: var(--muted);
}

.score-reference strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.score-reference span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.result-interpretation {
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid var(--result-risk-line);
  border-radius: 8px;
  background: var(--result-risk-tint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.risk-summary {
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.7;
}

.result-evidence-summary {
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid var(--result-risk-line);
  border-left-width: 3px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--result-risk-tint), rgba(255, 255, 255, 0.88));
}

.result-evidence-label {
  color: var(--result-risk-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.result-evidence-summary .risk-summary {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.action-advice {
  margin: -4px 0 14px;
  padding: 11px 12px;
  border: 1px solid var(--result-risk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--result-risk-color);
  font-weight: 800;
  line-height: 1.6;
}

.result-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.result-export-actions[hidden] {
  display: none;
}

.result-report-button {
  width: 100%;
}

.manual-review-card {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(181, 106, 16, 0.22);
  border-radius: 8px;
  background: rgba(181, 106, 16, 0.08);
  color: var(--ink);
}

.manual-review-card[hidden] {
  display: none;
}

.manual-review-card strong {
  color: var(--amber);
  font-size: 14px;
}

.manual-review-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(181, 106, 16, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.manual-review-code span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.manual-review-card p,
.manual-review-card small {
  margin: 0;
  line-height: 1.55;
}

.manual-review-card small {
  color: var(--muted);
  font-weight: 700;
}

.review-voucher-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(23, 104, 74, 0.18);
  border-radius: 8px;
  background: #f7faf5;
}

.review-voucher-card[hidden] {
  display: none;
}

.review-voucher-copy {
  display: grid;
  gap: 7px;
}

.review-voucher-copy strong {
  color: var(--brand-strong);
  font-size: 15px;
}

.review-voucher-copy span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.review-voucher-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.review-voucher-qr {
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(23, 104, 74, 0.14);
  border-radius: 8px;
  background: #fffef8;
}

.review-voucher-qr canvas {
  display: block;
  width: 148px;
  height: 148px;
  image-rendering: pixelated;
}

.result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.result-meta:empty {
  display: none;
}

.result-meta-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.12);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.result-meta-pill.medium {
  background: rgba(181, 106, 16, 0.14);
  color: var(--amber);
}

.result-meta-pill.high {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.result-warning {
  width: 100%;
}

.confidence-note {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(23, 104, 74, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.confidence-note.medium {
  background: rgba(181, 106, 16, 0.12);
  color: var(--amber);
}

.confidence-note.high {
  background: rgba(184, 61, 53, 0.1);
  color: var(--red);
}

.service-status-card {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.55;
}

.service-status-card.ready {
  border: 1px solid rgba(23, 104, 74, 0.18);
  background: rgba(23, 104, 74, 0.07);
}

.service-status-card.warning {
  border: 1px solid rgba(181, 106, 16, 0.28);
  background: rgba(181, 106, 16, 0.1);
}

.service-status-card strong {
  color: var(--brand-strong);
  font-size: 13px;
}

.service-status-card.warning strong,
.service-status-action {
  color: var(--amber);
}

.service-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.service-status-action {
  font-weight: 900;
}

.finding-list {
  display: grid;
  gap: 9px;
}

.point-result-list {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.point-result {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.point-result.medium {
  border-color: rgba(181, 106, 16, 0.34);
}

.point-result.high {
  border-color: rgba(184, 61, 53, 0.34);
}

.point-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.point-result-top strong {
  line-height: 1.35;
}

.point-result p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.public-point-evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.public-evidence-group {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-evidence-group strong {
  color: var(--brand-strong);
  font-size: 13px;
}

.public-evidence-group.warning strong {
  color: var(--amber);
}

.public-evidence-group.danger strong {
  color: var(--red);
}

.public-evidence-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.core-check-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.core-check-results > strong {
  color: var(--brand-strong);
  font-size: 13px;
}

.core-check-results ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-check-item {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  gap: 4px 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.core-check-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.core-check-status {
  justify-self: end;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.core-check-item.warning .core-check-status {
  color: var(--amber);
}

.core-check-item.danger .core-check-status {
  color: var(--red);
}

.core-check-item.unknown .core-check-status {
  color: var(--muted);
}

.core-check-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ai-point-detail {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ai-detail-group {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ai-detail-group strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-strong);
  font-size: 13px;
}

.ai-detail-group.warning strong {
  color: var(--amber);
}

.ai-detail-group.danger strong {
  color: var(--red);
}

.ai-detail-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.prototype-score-note {
  font-size: 12px;
}

.finding {
  padding: 11px 12px;
  border-radius: 8px;
  background: #f7faf5;
  border-left: 4px solid var(--brand);
  line-height: 1.55;
}

.finding.warning {
  border-left-color: var(--amber);
}

.finding.danger {
  border-left-color: var(--red);
}

.disclaimer {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.history-heading {
  min-height: 34px;
}

.history-title,
.history-heading-actions {
  display: flex;
  align-items: center;
}

.history-title {
  min-width: 0;
  gap: 8px;
}

.history-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.history-heading-actions {
  gap: 8px;
}

.history-action-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.history-toggle-button {
  min-width: 58px;
}

.history-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.history-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-item strong,
.history-item small {
  display: block;
}

.history-item small {
  margin-top: 4px;
  color: var(--muted);
}

.history-detail {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.history-detail:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.history-detail[hidden] {
  display: none;
}

.history-detail .risk-summary {
  margin: 0;
}

.result-card:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

@starting-style {
  .capture-details:not([hidden]),
  .history-detail:not([hidden]),
  .progress-panel:not([hidden]) {
    opacity: 0;
    transform: translateY(-4px);
  }

  .result-card:not([hidden]) {
    opacity: 0;
    transform: translateY(8px);
  }
}

.history-point-list {
  margin-bottom: 0;
}

.badge {
  height: 28px;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(23, 104, 74, 0.12);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.badge.medium {
  background: rgba(181, 106, 16, 0.14);
  color: var(--amber);
}

.badge.high,
.badge.unknown {
  background: rgba(184, 61, 53, 0.12);
  color: var(--red);
}

.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.point-empty {
  margin: 0 0 14px;
}

@media (max-width: 560px) {
  .app-shell {
    padding: 0 0 calc(112px + env(safe-area-inset-bottom));
  }

  .quality-review-dialog {
    padding: max(10px, env(safe-area-inset-top)) 0 0;
  }

  .quality-review-dialog[open] {
    align-items: end;
    justify-items: stretch;
  }

  .quality-review-sheet {
    width: 100%;
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
    grid-template-rows: max-content max-content minmax(0, 1fr) max-content;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    animation-name: quality-review-sheet-mobile-in;
  }

  .quality-review-dialog.is-closing .quality-review-sheet {
    animation-name: quality-review-sheet-mobile-out;
  }

  .quality-review-handle {
    width: 38px;
    height: 5px;
    display: block;
    justify-self: center;
    margin: 8px 0 0;
    border-radius: 999px;
    background: rgba(101, 112, 107, 0.25);
  }

  .quality-review-header {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 20px 14px;
  }

  .quality-review-symbol {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .quality-review-header h2 {
    font-size: 21px;
  }

  .quality-review-header p:last-child {
    margin-top: 5px;
    font-size: 13px;
  }

  .quality-review-body {
    padding: 0 20px 2px;
  }

  .quality-review-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
  }

  .quality-review-marker {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .quality-review-item-heading strong {
    font-size: 15px;
  }

  .quality-review-actions {
    gap: 8px;
    padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
  }

  .quality-review-button {
    min-height: 50px;
    padding: 0 10px;
    font-size: 14px;
  }

  .checklist-step-list {
    gap: 6px;
  }

  .checklist-step {
    min-height: 66px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 7px 6px;
  }

  .checklist-step-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .checklist-step-copy strong {
    font-size: 11px;
  }

  .capture-heading-row {
    align-items: flex-start;
  }

  .capture-details-toggle {
    min-height: 34px;
    padding: 0 8px;
  }

  #submitCheckButton {
    display: none;
  }

  .mobile-submit-bar {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 0;
    width: min(100%, 760px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(23, 104, 74, 0.16);
    background: rgba(250, 252, 248, 0.92);
    box-shadow: 0 -12px 30px rgba(21, 40, 33, 0.12);
    backdrop-filter: blur(18px) saturate(150%);
    opacity: 1;
    transform: translateX(-50%);
    transition:
      opacity var(--duration-standard) var(--ease-out),
      transform var(--duration-standard) var(--ease-out);
  }

  @starting-style {
    .mobile-submit-bar:not([hidden]) {
      opacity: 0;
      transform: translate(-50%, 8px);
    }
  }

  .mobile-submit-bar[hidden] {
    display: none;
  }

  .mobile-submit-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    transform-origin: left center;
  }

  .mobile-submit-copy strong,
  .mobile-submit-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-submit-copy strong {
    color: var(--brand-strong);
    font-size: 14px;
  }

  .mobile-submit-copy span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-submit-bar.warning .mobile-submit-copy strong {
    color: var(--amber);
  }

  .mobile-submit-bar.blocked .mobile-submit-copy strong {
    color: var(--red);
  }

  .mobile-submit-button {
    flex: 0 0 min(48%, 180px);
    width: auto;
    min-height: 46px;
    padding: 0 12px;
    font-size: 13px;
    transform-origin: center;
  }

  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer-links {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .site-footer a {
    width: 100%;
  }

  .legal-shell {
    padding: 0 0 28px;
  }

  .legal-header {
    border-radius: 0;
    padding: 24px 18px;
  }

  .legal-content {
    margin: 14px 12px 0;
    padding: 20px 18px;
  }

  .workflow,
  .result-card,
  .history-section {
    margin: 14px 12px 0;
  }

  .history-section .history-heading {
    align-items: center;
    flex-direction: row;
  }

  .history-heading-actions {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 236px;
    border-radius: 0;
    padding: 28px 18px 26px;
  }

  .hero-brand {
    gap: 8px;
    margin-bottom: 12px;
  }

  .hero-logo {
    width: 50px;
    height: 50px;
  }

  h1 {
    font-size: 33px;
  }

  .field-grid,
  .result-topline,
  .admin-hero,
  .admin-product-top {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-workspace-nav {
    display: grid;
    grid-auto-columns: minmax(238px, 78vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    margin: 12px 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav-group {
    min-width: 0;
  }

  .admin-nav-button {
    min-width: 0;
    flex: 0 0 auto;
  }

  .heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .heading-actions > * {
    width: 100%;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-steps {
    grid-template-columns: 1fr 1fr;
  }

  .preflight-head,
  .preflight-item-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-selector-bar {
    grid-template-columns: 1fr;
  }

  .prompt-version-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-version-heading b {
    width: fit-content;
  }

  .monitor-summary-card {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-range-toolbar,
  .monitor-trend-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-range-control {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monitor-range-toolbar p,
  .monitor-trend-heading span {
    text-align: left;
  }

  .retention-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .retention-summary {
    grid-template-columns: 1fr 1fr;
  }

  .retention-record-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .retention-record-row span {
    text-align: left;
  }

  .monitor-metric-grid {
    grid-template-columns: 1fr;
  }

  .guided-camera-monitor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .guided-camera-privacy-badge {
    width: fit-content;
  }

  .monitor-trend-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .monitor-trend-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .ops-monitor-grid {
    grid-template-columns: 1fr;
  }

  .monitor-config-head,
  .monitor-config-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-config-grid {
    grid-template-columns: 1fr;
  }

  .analysis-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .analysis-row-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .tuning-task-head,
  .tuning-task-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .launch-confirmation-head,
  .launch-confirmation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .launch-confirmation-list {
    grid-template-columns: 1fr;
  }

  .result-topline {
    gap: 16px;
  }

  .score-reference {
    align-self: flex-start;
    min-width: 88px;
  }

  .public-point-evidence {
    grid-template-columns: 1fr;
  }

  .compare-pair {
    grid-template-columns: 1fr;
  }

  .review-voucher-card {
    grid-template-columns: 1fr;
  }

  .review-voucher-qr {
    justify-self: start;
  }

  .reference-box,
  .upload-box {
    height: auto;
  }

  .capture-card .reference-box {
    width: 100%;
    aspect-ratio: var(--image-ratio, 3 / 4);
  }

  .capture-card .upload-box {
    height: auto;
  }

  .admin-point-card {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .product-wizard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-wizard-grid {
    grid-template-columns: 1fr;
  }

  .product-wizard-steps {
    grid-template-columns: 1fr;
  }

  .quality-rule-list {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .record-filter-bar {
    grid-template-columns: 1fr;
  }

  .record-filter-reset {
    width: 100%;
  }

  .config-status-grid {
    grid-template-columns: 1fr;
  }

  .health-check-head {
    align-items: stretch;
    flex-direction: column;
  }

  .acceptance-summary-card {
    align-items: stretch;
    flex-direction: column;
  }

  .acceptance-summary-metrics {
    justify-content: flex-start;
  }

  .acceptance-checklist-grid {
    grid-template-columns: 1fr;
  }

  .ops-status-grid {
    grid-template-columns: 1fr;
  }

  .ops-monitor-grid {
    grid-template-columns: 1fr;
  }

  .check-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .context-comparison-grid {
    grid-template-columns: 1fr;
  }

  .sample-capacity-grid,
  .sample-context-grid {
    grid-template-columns: 1fr;
  }

  .context-comparison-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-image-summary-grid {
    grid-template-columns: 1fr;
  }

  .review-image-summary .record-compare-media {
    height: clamp(132px, 36vw, 190px);
  }

  .record-compare-grid {
    grid-template-columns: 1fr;
  }

  .record-review-form {
    grid-template-columns: 1fr;
  }

  .record-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-supplement-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-supplement-actions {
    justify-content: stretch;
  }

  .sample-supplement-actions button {
    flex: 1 1 150px;
  }

  .sample-duplicate-item {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-duplicate-actions {
    justify-content: stretch;
  }

  .sample-duplicate-actions button {
    flex: 1 1 130px;
  }

  .sample-add-actions {
    grid-template-columns: 1fr;
  }

  .sample-context-grid {
    grid-template-columns: 1fr;
  }

  .sample-card-top {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-quality-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .record-compare-media {
    height: clamp(320px, 110vw, 620px);
  }

  .admin-reference {
    height: auto;
    aspect-ratio: var(--image-ratio, 3 / 4);
  }

  .focus-preview-reference {
    min-height: 0;
    height: auto;
    width: min(100%, 560px);
    aspect-ratio: var(--image-ratio, 3 / 4);
  }

  .check-record-card .point-result-top {
    align-items: stretch;
    flex-direction: column;
  }

  .history-item-top {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-record-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .heading-actions {
    grid-template-columns: 1fr;
  }

  .check-stats-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 27px;
  }

  .mobile-submit-bar {
    gap: 8px;
  }

  .mobile-submit-button {
    flex-basis: 52%;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-feedback {
    transform: translateX(-50%);
    transition: opacity 120ms var(--ease-out);
  }

  .workflow-feedback.is-visible {
    transform: translateX(-50%);
    transition-duration: 120ms;
  }

  .workflow-feedback-close:active {
    transform: none;
  }

  .primary-button,
  .ghost-button,
  .capture-details-toggle,
  .capture-details-toggle::after,
  .capture-details:not([hidden]),
  .checklist-step,
  .upload-box,
  .progress-panel:not([hidden]),
  .history-detail:not([hidden]),
  .result-card:not([hidden]),
  .progress-bar span,
  .progress-steps li,
  .mobile-submit-bar {
    transition-duration: 1ms;
  }

  .progress-panel.is-running .progress-bar span::after {
    animation: none;
    opacity: 0;
  }

  .progress-steps li,
  .progress-steps li.active {
    transform: none;
  }

  .progress-steps li.done::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .primary-button[aria-busy="true"]::before {
    animation: none;
  }

  .primary-button:not(:disabled):active,
  .ghost-button:not(:disabled):active,
  .capture-details-toggle:active,
  .checklist-step:active,
  .upload-box:active {
    transform: none;
  }

  .capture-details:not([hidden]),
  .progress-panel:not([hidden]),
  .history-detail:not([hidden]),
  .result-card:not([hidden]) {
    transform: none;
  }

  .mobile-submit-bar {
    transform: translateX(-50%);
  }

  .quality-review-dialog::backdrop,
  .quality-review-dialog.is-closing::backdrop,
  .quality-review-sheet,
  .quality-review-dialog.is-closing .quality-review-sheet {
    animation: none;
    transform: none;
  }

  .quality-review-button {
    transition-duration: 1ms;
  }

  .quality-review-button:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .workflow-feedback,
  .workflow-feedback[data-tone="danger"] {
    background: #fffaf0;
  }

  .mobile-submit-bar {
    background: #fafcf8;
    backdrop-filter: none;
  }

  .quality-review-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .quality-review-sheet,
  .quality-review-actions {
    background: #fafcf8;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .workflow-feedback {
    border-color: currentColor;
  }

  .quality-review-sheet {
    border-color: var(--ink);
    background: #ffffff;
  }

  .quality-review-item,
  .quality-review-actions {
    border-color: rgba(23, 35, 31, 0.42);
  }

  .quality-review-button.secondary {
    border-color: var(--brand-strong);
    background: #ffffff;
  }
}

/* Guided camera experiment: point 1 only. */
.capture-camera-actions {
  width: 100%;
  display: grid;
  gap: 7px;
}

.capture-camera-actions[hidden] {
  display: none;
}

.system-camera-trigger {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(23, 104, 74, 0.24);
  border-radius: 8px;
  background: #f7faf5;
  color: var(--brand-strong);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.system-camera-trigger:active {
  transform: scale(0.97);
}

.upload-box.guided-camera-entry {
  border-style: solid;
  border-color: rgba(23, 104, 74, 0.42);
  background:
    radial-gradient(circle at 50% 42%, rgba(231, 185, 79, 0.13), transparent 42%),
    linear-gradient(145deg, #f8fbf6 0%, #eaf4ec 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.64),
    0 8px 20px rgba(15, 60, 45, 0.08);
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.upload-box.guided-camera-entry input {
  pointer-events: none;
}

.upload-box.guided-camera-entry .upload-placeholder {
  color: #155c46;
}

.upload-box.guided-camera-entry .upload-placeholder::before {
  border-color: rgba(231, 185, 79, 0.58);
  background: rgba(255, 250, 231, 0.88);
  color: #9a6415;
  box-shadow: 0 5px 14px rgba(154, 100, 21, 0.1);
}

.upload-box.guided-camera-entry.has-image .upload-placeholder {
  color: #fff;
}

.upload-box.guided-camera-entry[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.66;
}

@media (hover: hover) and (pointer: fine) {
  .upload-box.guided-camera-entry:not([aria-disabled="true"]):hover {
    border-color: rgba(23, 104, 74, 0.62);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.72),
      0 10px 24px rgba(15, 60, 45, 0.12);
  }
}

.upload-box.guided-camera-entry:not([aria-disabled="true"]):active {
  transform: scale(0.985);
}

.capture-card.is-processing-image .upload-box::after {
  content: "正在检查图片…";
  position: absolute;
  z-index: 5;
  inset: auto 8px 8px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(9, 35, 27, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

html.guided-camera-open,
body.guided-camera-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.guided-camera-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  color: #f7fbf8;
  overflow: hidden;
}

.guided-camera-dialog[open] {
  display: grid;
  place-items: center;
}

.guided-camera-dialog::backdrop {
  background: rgba(2, 10, 7, 0.82);
  backdrop-filter: blur(14px) saturate(82%);
  -webkit-backdrop-filter: blur(14px) saturate(82%);
}

.guided-camera-sheet {
  width: min(100%, 560px);
  height: min(100%, 880px);
  min-height: 0;
  display: grid;
  grid-template-rows: max-content max-content minmax(0, 1fr) max-content;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: #07150f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  animation: guided-camera-sheet-in 240ms var(--ease-out) both;
}

.guided-camera-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  background: #0a2118;
}

.guided-camera-heading {
  min-width: 0;
}

.guided-camera-heading p,
.guided-camera-heading h2,
.guided-camera-reference-strip p,
.guided-camera-state p,
.guided-camera-status {
  margin: 0;
}

.guided-camera-heading p {
  margin-bottom: 3px;
  color: #e3bd66;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.guided-camera-heading h2 {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guided-camera-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.guided-camera-reference-strip {
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1d16;
}

.guided-camera-reference-strip img {
  width: 52px;
  height: 56px;
  object-fit: contain;
  border: 1px solid rgba(231, 185, 79, 0.52);
  border-radius: 6px;
  background: #14241e;
}

.guided-camera-reference-strip strong {
  display: block;
  margin-bottom: 3px;
  color: #f8e3aa;
  font-size: 13px;
  line-height: 1.35;
}

.guided-camera-reference-strip p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(242, 248, 244, 0.7);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guided-camera-stage {
  position: relative;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  background: #020604;
}

.guided-camera-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020604;
}

.guided-camera-focus-box {
  position: absolute;
  z-index: 2;
  display: none;
  pointer-events: none;
  border: 3px solid #f3c54f;
  border-radius: 9px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(243, 197, 79, 0.48),
    inset 0 0 0 1px rgba(21, 38, 30, 0.48);
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.guided-camera-focus-box.is-visible {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.guided-camera-focus-box::before,
.guided-camera-focus-box::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.guided-camera-focus-box::before {
  inset: 8px;
  border: 1px solid rgba(255, 231, 153, 0.42);
  border-radius: 5px;
}

.guided-camera-focus-box::after {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 241, 194, 0.78);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.guided-camera-state {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px;
  background: rgba(3, 12, 8, 0.9);
  text-align: center;
}

.guided-camera-state[hidden],
.guided-camera-retry[hidden] {
  display: none;
}

.guided-camera-state strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.guided-camera-state p {
  max-width: 310px;
  color: rgba(242, 248, 244, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.guided-camera-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #e7b94f;
  border-radius: 50%;
  animation: guided-camera-spin 800ms linear infinite;
}

.guided-camera-dialog.has-error .guided-camera-spinner {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 185, 79, 0.34);
  background: rgba(231, 185, 79, 0.1);
  animation: none;
}

.guided-camera-dialog.has-error .guided-camera-spinner::before {
  content: "!";
  color: #f3c54f;
  font-size: 24px;
  font-weight: 800;
}

.guided-camera-footer {
  display: grid;
  gap: 10px;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a2118;
}

.guided-camera-status {
  min-height: 35px;
  color: rgba(242, 248, 244, 0.72);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.guided-camera-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.guided-camera-fallback,
.guided-camera-retry {
  min-width: 0;
  min-height: 48px;
  flex: 1 1 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbf8;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.guided-camera-retry {
  border-color: rgba(231, 185, 79, 0.38);
  color: #f8e3aa;
}

.guided-camera-shutter {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    opacity 160ms var(--ease-out);
}

.guided-camera-shutter span {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 50%;
  background: #f7faf8;
  box-shadow: inset 0 0 0 1px rgba(5, 22, 16, 0.14);
}

.guided-camera-shutter:not(:disabled):active {
  transform: scale(0.92);
}

.guided-camera-close:focus-visible,
.guided-camera-fallback:focus-visible,
.guided-camera-retry:focus-visible,
.guided-camera-shutter:focus-visible,
.system-camera-trigger:focus-visible {
  outline: 3px solid rgba(243, 197, 79, 0.62);
  outline-offset: 3px;
}

.guided-camera-shutter:disabled {
  opacity: 0.34;
}

@keyframes guided-camera-sheet-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes guided-camera-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .guided-camera-dialog {
    padding: 0;
  }

  .guided-camera-sheet {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .guided-camera-header {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .guided-camera-footer {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .guided-camera-sheet {
    grid-template-rows: max-content minmax(0, 1fr) max-content;
  }

  .guided-camera-reference-strip {
    display: none;
  }

  .guided-camera-header {
    min-height: 58px;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: 7px;
  }

  .guided-camera-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: 7px;
  }

  .guided-camera-status {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guided-camera-sheet,
  .guided-camera-spinner {
    animation: none;
  }

  .guided-camera-focus-box,
  .guided-camera-shutter,
  .upload-box.guided-camera-entry,
  .system-camera-trigger {
    transition-duration: 1ms;
  }

  .guided-camera-focus-box,
  .guided-camera-focus-box.is-visible,
  .guided-camera-shutter:not(:disabled):active,
  .upload-box.guided-camera-entry:not([aria-disabled="true"]):active,
  .system-camera-trigger:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .guided-camera-dialog::backdrop {
    background: #020805;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .guided-camera-state {
    background: #06120d;
  }
}

@media (prefers-contrast: more) {
  .guided-camera-focus-box {
    border-color: #ffe36e;
    box-shadow:
      0 0 0 999px rgba(0, 0, 0, 0.54),
      0 0 0 1px #000;
  }

  .guided-camera-fallback,
  .guided-camera-retry,
  .guided-camera-close {
    border-color: rgba(255, 255, 255, 0.66);
  }
}

/* Local opt-in motion preview */

.motion-preview .motion-preview-lab {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(181, 106, 16, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 235, 0.98), rgba(246, 250, 243, 0.98)),
    #fffdf5;
  box-shadow: 0 10px 30px rgba(75, 58, 21, 0.08);
}

.motion-preview .motion-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.motion-preview .motion-preview-heading h2,
.motion-preview .motion-preview-heading p {
  margin: 0;
}

.motion-preview .motion-preview-heading h2 {
  color: var(--ink);
  font-size: 18px;
}

.motion-preview .motion-preview-heading div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.motion-preview .motion-preview-kicker {
  margin-bottom: 5px !important;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.motion-preview .motion-preview-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 104, 74, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.motion-preview .motion-preview-toggle input {
  appearance: auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.motion-preview .motion-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.motion-preview .motion-preview-action {
  min-height: 44px;
  border: 1px solid rgba(23, 104, 74, 0.22);
  background: #ffffff;
  color: var(--brand-strong);
  font-weight: 800;
}

.motion-preview .motion-preview-status,
.motion-preview .motion-preview-safety {
  margin: 10px 0 0;
  line-height: 1.5;
}

.motion-preview .motion-preview-status {
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.motion-preview .motion-preview-safety {
  color: var(--muted);
  font-size: 12px;
}

.motion-preview .progress-value {
  backface-visibility: hidden;
  transform-origin: 50% 70%;
}

.motion-preview.motion-preview-active .progress-panel {
  transform-origin: center;
}

.motion-preview.motion-preview-active .result-card:not([hidden]) {
  transition: none;
}

.motion-preview .motion-preview-result-group {
  backface-visibility: hidden;
  transform-origin: center top;
}

.motion-preview .splash-screen {
  isolation: isolate;
}

.splash-vapor-field {
  position: absolute;
  inset: -8%;
  z-index: 1;
  width: 116%;
  height: 116%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1.045);
  transform-origin: center;
}

.splash-vapor-ribbon {
  transform-box: fill-box;
  transform-origin: center;
}

.splash-vapor-ribbon--far {
  opacity: 0.48;
}

.splash-vapor-ribbon--middle {
  opacity: 0.62;
}

.splash-vapor-ribbon--near {
  opacity: 0.7;
}

.splash-vapor-glow {
  fill: none;
  stroke-width: 34;
  stroke-linecap: round;
  opacity: 0.12;
}

.splash-vapor-line {
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0.72;
}

.splash-truth-guide {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.splash-truth-guide[hidden],
.splash-age-relay-spark[hidden] {
  display: none;
}

.splash-truth-guide svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.splash-truth-guide-glow,
.splash-truth-guide-line {
  fill: none;
  stroke-linecap: round;
}

.splash-truth-guide-glow {
  stroke-width: 15;
  opacity: 0.18;
}

.splash-truth-guide-line {
  stroke-width: 1.4;
  opacity: 0.9;
}

.splash-truth-guide-spark,
.splash-age-relay-spark {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0 10%, #ffe7a6 30%, #61edb6 68%, transparent 76%);
  box-shadow:
    0 0 8px rgba(255, 232, 166, 0.92),
    0 0 20px rgba(91, 237, 177, 0.68);
  opacity: 0;
  pointer-events: none;
}

.splash-truth-guide-spark {
  width: 10px;
  height: 10px;
}

.splash-age-relay-spark {
  z-index: 4;
  width: 8px;
  height: 8px;
  mix-blend-mode: screen;
}

.motion-preview .splash-layout {
  position: relative;
  z-index: 2;
}

.motion-preview.motion-preview-active .splash-screen::before,
.motion-preview.motion-preview-active .splash-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.motion-preview.motion-preview-active .splash-screen::before {
  inset: -8%;
  background:
    radial-gradient(circle at 18% 24%, rgba(239, 208, 135, 0.2), transparent 28%),
    radial-gradient(circle at 76% 68%, rgba(68, 181, 132, 0.16), transparent 32%);
  opacity: 0.72;
  transform: translate3d(-2%, -1%, 0) scale(1);
  animation: motion-preview-ambient-light 12000ms var(--ease-in-out) infinite alternate;
  will-change: transform;
}

.motion-preview.motion-preview-active .splash-screen::after {
  inset: -180px 0;
  background-image:
    radial-gradient(circle, rgba(248, 220, 151, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(207, 235, 207, 0.52) 0 0.8px, transparent 1.45px),
    radial-gradient(circle, rgba(248, 220, 151, 0.46) 0 0.7px, transparent 1.3px);
  background-position:
    0 0,
    52px 76px,
    121px 32px;
  background-size: 180px 180px;
  opacity: 0.15;
  transform: translate3d(0, 0, 0);
  animation: motion-preview-particle-drift 18000ms linear infinite;
  will-change: transform;
}

.motion-preview.motion-preview-active .splash-logo {
  opacity: 0.96;
  transform: scale(1);
  animation: motion-preview-logo-breathe 4800ms var(--ease-in-out) infinite;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .motion-preview-lab {
  border-color: rgba(238, 197, 105, 0.5);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 220, 130, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 249, 225, 0.99), rgba(233, 249, 240, 0.98));
  box-shadow:
    0 18px 46px rgba(52, 77, 58, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.motion-preview-showcase.motion-preview-active .splash-screen {
  background:
    radial-gradient(ellipse at 11% 7%, rgba(255, 211, 108, 0.34), transparent 32%),
    radial-gradient(ellipse at 94% 27%, rgba(85, 231, 174, 0.24), transparent 38%),
    radial-gradient(ellipse at 48% 43%, rgba(1, 19, 14, 0.46), transparent 48%),
    radial-gradient(ellipse at 54% 108%, rgba(42, 118, 138, 0.22), transparent 48%),
    linear-gradient(148deg, #021912 0%, #07513a 49%, #011b14 100%);
}

.motion-preview-showcase.motion-preview-active .splash-screen::before {
  inset: -24%;
  background:
    radial-gradient(ellipse at 22% 24%, rgba(255, 211, 103, 0.5), transparent 28%),
    radial-gradient(ellipse at 78% 62%, rgba(36, 231, 174, 0.38), transparent 31%),
    radial-gradient(ellipse at 48% 82%, rgba(71, 120, 255, 0.22), transparent 29%);
  opacity: 0.84;
  transform: translate3d(-4%, -2%, 0) rotate(-4deg) scale(1);
  animation: motion-preview-showcase-aurora 9000ms var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .splash-screen::after {
  inset: -140px -40px;
  background-image:
    radial-gradient(circle, rgba(255, 230, 161, 0.96) 0 1.2px, transparent 1.9px),
    radial-gradient(circle, rgba(127, 255, 212, 0.76) 0 0.9px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 0.7px, transparent 1.35px);
  background-position:
    0 0,
    58px 82px,
    126px 36px;
  background-size:
    168px 168px,
    214px 214px,
    132px 132px;
  opacity: 0.32;
  animation: motion-preview-showcase-particles 11000ms linear infinite;
}

.motion-preview-showcase.motion-preview-active .splash-vapor-field {
  opacity: 0.58;
  animation: motion-preview-showcase-vapor-field 14000ms var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::before {
  animation: motion-preview-hero-caustic-drift 18000ms var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-field {
  animation: motion-preview-hero-vapor-drift 15000ms var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--far {
  animation: motion-preview-hero-vapor-far 19000ms var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--near {
  animation: motion-preview-hero-vapor-near 13000ms var(--ease-in-out) infinite alternate-reverse;
  will-change: transform, opacity;
}

html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::after {
  animation: motion-preview-hero-prism-drift 17000ms var(--ease-in-out) infinite alternate;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .splash-hero {
  position: relative;
  isolation: isolate;
  animation: motion-preview-showcase-section-in 720ms var(--ease-out) both;
}

.motion-preview-showcase.motion-preview-active .splash-hero::before,
.motion-preview-showcase.motion-preview-active .splash-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .splash-hero::before {
  top: clamp(2px, 2.4vh, 24px);
  width: clamp(178px, 48vw, 208px);
  aspect-ratio: 1;
  background: conic-gradient(
    from 15deg,
    transparent 0 10%,
    rgba(255, 216, 117, 0.94) 16%,
    transparent 25% 48%,
    rgba(104, 255, 211, 0.78) 56%,
    transparent 66% 84%,
    rgba(255, 255, 255, 0.72) 91%,
    transparent 100%
  );
  opacity: 0.88;
  transform: translateX(-50%) rotate(0deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: motion-preview-showcase-orbit 6400ms linear infinite;
}

.motion-preview-showcase.motion-preview-active .splash-hero::after {
  top: clamp(-13px, 0.8vh, 8px);
  width: clamp(210px, 57vw, 244px);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 202, 111, 0.3);
  box-shadow:
    0 0 24px rgba(240, 196, 91, 0.16),
    inset 0 0 22px rgba(104, 255, 211, 0.08);
  opacity: 0.66;
  transform: translateX(-50%) rotate(0deg) scaleX(0.86);
  animation: motion-preview-showcase-orbit-reverse 9200ms linear infinite;
}

.motion-preview-showcase.motion-preview-active .splash-hero > * {
  position: relative;
  z-index: 1;
}

.motion-preview-showcase.motion-preview-active .splash-logo {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter:
    drop-shadow(0 0 16px rgba(255, 220, 127, 0.5))
    drop-shadow(0 0 38px rgba(42, 224, 161, 0.24))
    drop-shadow(0 12px 22px rgba(0, 18, 12, 0.3));
  animation: motion-preview-showcase-logo-float 3600ms var(--ease-in-out) infinite alternate;
}

.motion-preview-showcase.motion-preview-active .splash-hero h1 {
  color: transparent;
  background: linear-gradient(112deg, #ffffff 8%, #fff1bd 34%, #e0b653 58%, #ffffff 84%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 5px 15px rgba(0, 18, 12, 0.44));
}

.motion-preview-showcase.motion-preview-active .splash-divider {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(236, 191, 83, 0.95), transparent);
}

.motion-preview-showcase.motion-preview-active .splash-divider::after {
  content: "";
  position: absolute;
  inset: -3px auto -3px 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  opacity: 0.92;
  transform: translateX(-140%);
  animation: motion-preview-showcase-line-sweep 2200ms var(--ease-in-out) infinite;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .splash-tagline {
  color: #fff8df;
  text-shadow:
    0 0 14px rgba(247, 211, 120, 0.5),
    0 4px 18px rgba(0, 18, 12, 0.4);
}

.motion-preview-showcase.motion-preview-active .splash-ai-label {
  padding: 8px 15px 8px 10px;
  border: 1px solid rgba(246, 211, 126, 0.48);
  border-radius: 999px;
  background: rgba(1, 54, 38, 0.58);
  box-shadow:
    0 10px 30px rgba(0, 20, 13, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.motion-preview-showcase.motion-preview-active .splash-actions {
  animation: motion-preview-showcase-section-in 640ms 240ms var(--ease-out) both;
}

.motion-preview-showcase.motion-preview-active .splash-age-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(235, 198, 116, 0.28);
  background: transparent;
  box-shadow:
    0 14px 40px rgba(0, 19, 12, 0.28),
    0 0 24px rgba(237, 193, 89, 0.12);
}

.motion-preview-showcase.motion-preview-active .splash-age-option::before,
.motion-preview-showcase.motion-preview-active .splash-age-option::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.motion-preview-showcase.motion-preview-active .splash-age-option::before {
  inset: -340% -45%;
  z-index: 0;
  background: conic-gradient(
    rgba(229, 184, 82, 0.62) 0%,
    rgba(255, 222, 136, 0.92) 24%,
    rgba(94, 247, 192, 0.76) 48%,
    rgba(58, 181, 132, 0.58) 72%,
    rgba(255, 255, 255, 0.72) 88%,
    rgba(229, 184, 82, 0.62) 100%
  );
  opacity: 0.8;
  transform: rotate(0deg);
  animation: motion-preview-showcase-border-spin 5600ms linear infinite;
  will-change: transform;
}

.motion-preview-showcase.motion-preview-active .splash-age-option::after {
  inset: 1px;
  z-index: 1;
  border-radius: 13px;
  background:
    radial-gradient(circle at 15% 0, rgba(255, 255, 255, 0.09), transparent 34%),
    rgba(0, 44, 31, 0.78);
}

.motion-preview-showcase.motion-preview-active .splash-age-option > * {
  position: relative;
  z-index: 2;
}

.motion-preview-showcase.motion-preview-active .splash-age-option > .splash-age-guide-ring {
  position: absolute;
  inset: 2px;
  z-index: 3;
  border: 1px solid rgba(255, 232, 164, 0.96);
  border-radius: 12px;
  box-shadow:
    0 0 12px rgba(255, 220, 124, 0.62),
    0 0 26px rgba(91, 237, 177, 0.4),
    inset 0 0 16px rgba(111, 247, 194, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
}

.motion-preview-showcase.motion-preview-active .splash-age-option.is-checked::after {
  background:
    radial-gradient(circle at 15% 0, rgba(255, 255, 255, 0.14), transparent 36%),
    rgba(8, 92, 61, 0.88);
}

.motion-preview-showcase.motion-preview-active .splash-enter-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.motion-preview-showcase.motion-preview-active .splash-enter-button:not(:disabled) {
  border-color: rgba(255, 225, 143, 0.94);
  background: linear-gradient(110deg, #0d6d4a, #1b9a6a 48%, #a77c24 130%);
  box-shadow:
    0 16px 44px rgba(0, 26, 17, 0.34),
    0 0 30px rgba(49, 225, 158, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.motion-preview-showcase.motion-preview-active .splash-enter-button:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  pointer-events: none;
  transform: translateX(-180%) skewX(-18deg);
  animation: motion-preview-showcase-button-shine 2500ms 500ms var(--ease-in-out) infinite;
  will-change: transform, opacity;
}

html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-screen::before,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-screen::after,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-vapor-field,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-hero::before,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-hero::after,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-logo,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-divider::after,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-tagline,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-ai-label,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-age-option::before,
html.splash-flow-open.motion-preview-showcase.motion-preview-active .splash-enter-button::after {
  animation-play-state: paused;
}

html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-screen::before,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-screen::after,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-vapor-field,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-hero::before,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-hero::after,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-logo,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-divider::after,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-age-option::before,
html.motion-preview-page-paused.motion-preview-showcase.motion-preview-active .splash-enter-button::after,
html:not(.splash-open).motion-preview-page-paused.motion-preview-showcase.motion-preview-active .hero::before,
html:not(.splash-open).motion-preview-page-paused.motion-preview-showcase.motion-preview-active .hero-vapor-field,
html:not(.splash-open).motion-preview-page-paused.motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--far,
html:not(.splash-open).motion-preview-page-paused.motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--near,
html:not(.splash-open).motion-preview-page-paused.motion-preview-showcase.motion-preview-active .hero::after,
html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero.motion-preview-ambient-paused::before,
html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero.motion-preview-ambient-paused > .hero-vapor-field,
html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero.motion-preview-ambient-paused .hero-vapor-ribbon--far,
html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero.motion-preview-ambient-paused .hero-vapor-ribbon--near,
html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero.motion-preview-ambient-paused::after {
  animation-play-state: paused;
  will-change: auto;
}

.motion-preview-showcase.motion-preview-active .motion-preview-hero-revealing .hero-reveal-veil {
  animation: motion-preview-hero-veil-out 560ms var(--ease-out) both;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active
  .motion-preview-hero-revealing
  .hero-arrival-wave::before {
  animation: motion-preview-hero-arrival-slit 440ms 60ms var(--ease-in-out) both;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active
  .motion-preview-hero-revealing
  .hero-arrival-wave::after {
  animation: motion-preview-hero-arrival-plume 480ms 40ms var(--ease-out) both;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .progress-value {
  color: var(--brand-strong);
  text-shadow: 0 0 16px rgba(38, 183, 124, 0.34);
  transform-style: preserve-3d;
}

.motion-preview-showcase.motion-preview-active .motion-preview-result-group {
  transform-style: preserve-3d;
  perspective: 900px;
}

.motion-preview-showcase.motion-preview-active .motion-preview-logo-flight {
  position: fixed;
  z-index: 1100;
  display: block;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  transform-origin: left top;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .splash-logo.motion-preview-logo-source,
.motion-preview-showcase.motion-preview-active .hero-logo.motion-preview-logo-target {
  opacity: 0 !important;
}

.motion-preview-showcase.motion-preview-active .splash-age-option,
.motion-preview-showcase.motion-preview-active .splash-age-option input,
.motion-preview-showcase.motion-preview-active .splash-enter-button {
  transform-origin: center;
}

.motion-preview-showcase.motion-preview-active .upload-box > .motion-preview-upload-scan {
  position: absolute;
  top: 0;
  left: -8%;
  z-index: 2;
  width: 116%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(128, 255, 211, 0.5), rgba(255, 232, 163, 0.74), transparent);
  filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-130%);
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .upload-box img,
.motion-preview-showcase.motion-preview-active .upload-box .focus-area-box,
.motion-preview-showcase.motion-preview-active .focus-compare-panel {
  transform-origin: center;
}

.motion-preview-showcase.motion-preview-active .motion-preview-submit-ready-sheen {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  z-index: 0;
  width: 28%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 239, 177, 0.86), rgba(122, 238, 190, 0.68), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-170%) rotate(14deg);
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .motion-preview-result-energy {
  position: absolute;
  z-index: 95;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 240, 177, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle, #fff9d8 0 18%, #f2cc6b 34%, #55d7a5 66%, rgba(85, 215, 165, 0) 74%);
  box-shadow:
    0 0 10px rgba(255, 226, 143, 0.9),
    0 0 24px rgba(70, 220, 165, 0.72);
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .motion-preview-result-energy::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(99, 224, 172, 0.38), rgba(255, 231, 157, 0.86));
  transform: translateY(-50%) rotate(var(--motion-preview-result-energy-angle, 0rad));
  transform-origin: right center;
}

.motion-preview-showcase.motion-preview-active .motion-preview-risk-sweep {
  position: absolute;
  inset: -42% auto -42% 0;
  z-index: 0;
  width: 26%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 178, 0.82), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-170%) rotate(18deg);
  will-change: transform, opacity;
}

.motion-preview-showcase.motion-preview-active .quality-review-item {
  transform-origin: center top;
}

@keyframes motion-preview-logo-breathe {
  0%,
  100% {
    opacity: 0.96;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes motion-preview-ambient-light {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 3%, 0) scale(1.04);
  }
}

@keyframes motion-preview-hero-caustic-drift {
  from {
    opacity: 0.54;
    transform: translate3d(-2%, -1%, 0) rotate(-0.8deg) scale(1.04);
  }

  to {
    opacity: 0.76;
    transform: translate3d(2.5%, 1.4%, 0) rotate(0.9deg) scale(1.08);
  }
}

@keyframes motion-preview-hero-vapor-drift {
  from {
    opacity: 0.76;
    transform: translate3d(-1.6%, 1.8%, 0) rotate(-0.35deg) scale(1.03);
  }

  to {
    opacity: 0.94;
    transform: translate3d(1.8%, -2%, 0) rotate(0.45deg) scale(1.06);
  }
}

@keyframes motion-preview-hero-vapor-far {
  from {
    opacity: 0.38;
    transform: translate3d(-1.4%, 2%, 0);
  }

  to {
    opacity: 0.64;
    transform: translate3d(2%, -1.6%, 0);
  }
}

@keyframes motion-preview-hero-vapor-near {
  from {
    opacity: 0.58;
    transform: translate3d(1.4%, -1.8%, 0);
  }

  to {
    opacity: 0.9;
    transform: translate3d(-1.2%, 1.4%, 0);
  }
}

@keyframes motion-preview-hero-prism-drift {
  from {
    opacity: 0.42;
    transform: translate3d(-1.8%, 1.2%, 0) rotate(-0.4deg) scale(1.02);
  }

  to {
    opacity: 0.7;
    transform: translate3d(1.8%, -0.8%, 0) rotate(0.4deg) scale(1.05);
  }
}

@keyframes motion-preview-showcase-aurora {
  from {
    opacity: 0.7;
    transform: translate3d(-4%, -2%, 0) rotate(-4deg) scale(1);
  }

  to {
    opacity: 1;
    transform: translate3d(5%, 4%, 0) rotate(5deg) scale(1.12);
  }
}

@keyframes motion-preview-particle-drift {
  to {
    transform: translate3d(0, -180px, 0);
  }
}

@keyframes motion-preview-showcase-particles {
  to {
    transform: translate3d(24px, -168px, 0);
  }
}

@keyframes motion-preview-showcase-vapor-field {
  from {
    opacity: 0.48;
    transform: translate3d(-2%, 1.4%, 0) rotate(-0.35deg) scale(1.03);
  }

  to {
    opacity: 0.72;
    transform: translate3d(2%, -1.6%, 0) rotate(0.4deg) scale(1.06);
  }
}

@keyframes motion-preview-showcase-orbit {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes motion-preview-showcase-orbit-reverse {
  to {
    transform: translateX(-50%) rotate(-360deg) scaleX(0.86);
  }
}

@keyframes motion-preview-showcase-logo-float {
  from {
    opacity: 0.92;
    transform: translate3d(0, 3px, 0) scale(0.985) rotateZ(-0.6deg);
  }

  to {
    opacity: 1;
    transform: translate3d(0, -7px, 0) scale(1.045) rotateZ(0.8deg);
  }
}

@keyframes motion-preview-showcase-section-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes motion-preview-showcase-line-sweep {
  0%,
  20% {
    opacity: 0;
    transform: translateX(-140%);
  }

  48% {
    opacity: 1;
  }

  80%,
  100% {
    opacity: 0;
    transform: translateX(340%);
  }
}

@keyframes motion-preview-hero-veil-out {
  from {
    opacity: 0.86;
    transform: scale(1.035);
  }

  to {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes motion-preview-hero-veil-opacity-out {
  from {
    opacity: 0.72;
  }

  to {
    opacity: 0;
  }
}

@keyframes motion-preview-hero-arrival-slit {
  0% {
    opacity: 0;
    transform: translate3d(-44%, 12%, 0) rotate(-7deg) scaleX(0.82);
  }

  45% {
    opacity: 0.82;
    transform: translate3d(0, -1%, 0) rotate(-3deg) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(42%, -12%, 0) rotate(2deg) scaleX(1.12);
  }
}

@keyframes motion-preview-hero-arrival-plume {
  0% {
    opacity: 0;
    transform: translate3d(-2%, 4%, 0) rotate(-2deg) scale(0.94);
  }

  46% {
    opacity: 0.68;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.015);
  }

  100% {
    opacity: 0;
    transform: translate3d(2%, -2%, 0) rotate(1deg) scale(1.08);
  }
}

@keyframes motion-preview-hero-arrival-opacity {
  0%,
  100% {
    opacity: 0;
  }

  44% {
    opacity: 0.28;
  }
}

@keyframes motion-preview-showcase-border-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes motion-preview-showcase-button-shine {
  0%,
  34% {
    opacity: 0;
    transform: translateX(-180%) skewX(-18deg);
  }

  55% {
    opacity: 1;
  }

  76%,
  100% {
    opacity: 0;
    transform: translateX(390%) skewX(-18deg);
  }
}

@media (max-width: 560px) {
  .motion-preview .motion-preview-heading {
    display: grid;
  }

  .motion-preview .motion-preview-toggle {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--far,
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::after,
  .motion-preview-showcase.motion-preview-active .splash-screen::after,
  .motion-preview-showcase.motion-preview-active .splash-divider::after {
    animation: none;
    will-change: auto;
  }

  .motion-preview-showcase.motion-preview-active .splash-screen::after {
    opacity: 0.22;
    transform: translate3d(0, 0, 0);
  }

  .motion-preview-showcase.motion-preview-active .splash-divider::after {
    opacity: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::before,
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-field,
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--far,
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--near,
  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::after {
    animation: none;
    will-change: auto;
  }

  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::before {
    opacity: 0.65;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.06);
  }

  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-field {
    opacity: 0.84;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.045);
  }

  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--far {
    opacity: 0.51;
    transform: translate3d(0.3%, 0.2%, 0);
  }

  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero-vapor-ribbon--near {
    opacity: 0.74;
    transform: translate3d(0.1%, -0.2%, 0);
  }

  html:not(.splash-open).motion-preview-showcase.motion-preview-active .hero::after {
    opacity: 0.56;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.035);
  }

  .motion-preview.motion-preview-active .splash-screen::before,
  .motion-preview.motion-preview-active .splash-screen::after,
  .motion-preview.motion-preview-active .splash-vapor-field,
  .motion-preview.motion-preview-active .splash-logo,
  .motion-preview-showcase.motion-preview-active .splash-hero,
  .motion-preview-showcase.motion-preview-active .splash-actions,
  .motion-preview-showcase.motion-preview-active .splash-hero::before,
  .motion-preview-showcase.motion-preview-active .splash-hero::after,
  .motion-preview-showcase.motion-preview-active .splash-divider::after,
  .motion-preview-showcase.motion-preview-active .splash-tagline,
  .motion-preview-showcase.motion-preview-active .splash-ai-label,
  .motion-preview-showcase.motion-preview-active .splash-age-option::before,
  .motion-preview-showcase.motion-preview-active .splash-enter-button::after {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .motion-preview.motion-preview-active .splash-logo {
    opacity: 1;
  }

  .motion-preview.motion-preview-active .splash-screen::before {
    opacity: 0.14;
  }

  .motion-preview.motion-preview-active .splash-screen::after {
    opacity: 0.06;
  }

  .motion-preview-showcase.motion-preview-active .splash-vapor-field {
    opacity: 0.54;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.045);
  }

  .motion-preview-showcase.motion-preview-active .splash-hero::before {
    opacity: 0.42;
    transform: translateX(-50%);
  }

  .motion-preview-showcase.motion-preview-active .splash-hero::after {
    opacity: 0.28;
    transform: translateX(-50%) scaleX(0.86);
  }

  .motion-preview-showcase.motion-preview-active .splash-divider::after,
  .motion-preview-showcase.motion-preview-active .splash-enter-button::after {
    opacity: 0;
  }

  .motion-preview.motion-preview-active .result-card:not([hidden]) {
    transform: none;
    transition: opacity 120ms var(--ease-out);
  }

  .motion-preview .motion-preview-result-group,
  .motion-preview .progress-value,
  .motion-preview.motion-preview-active .progress-panel {
    transform: none;
  }

  .motion-preview-showcase.motion-preview-active .motion-preview-logo-flight,
  .motion-preview-showcase.motion-preview-active .motion-preview-upload-scan,
  .motion-preview-showcase.motion-preview-active .motion-preview-risk-sweep,
  .motion-preview-showcase.motion-preview-active .motion-preview-submit-ready-sheen,
  .motion-preview-showcase.motion-preview-active .motion-preview-result-energy {
    display: none;
  }

  .motion-preview-showcase.motion-preview-active .motion-preview-hero-revealing .hero-reveal-veil {
    animation: motion-preview-hero-veil-opacity-out 120ms var(--ease-out) both;
    transform: none;
    will-change: opacity;
  }

  .motion-preview-showcase.motion-preview-active
    .motion-preview-hero-revealing
    .hero-arrival-wave::before,
  .motion-preview-showcase.motion-preview-active
    .motion-preview-hero-revealing
    .hero-arrival-wave::after {
    animation: motion-preview-hero-arrival-opacity 120ms var(--ease-out) both;
    transform: none;
    will-change: opacity;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero-vapor-field {
    mix-blend-mode: normal;
    opacity: 0.68 !important;
  }

  .motion-preview-showcase.motion-preview-active .splash-vapor-field {
    mix-blend-mode: normal;
    opacity: 0.68 !important;
  }

  .motion-preview-showcase.motion-preview-active .splash-ai-label,
  .motion-preview-showcase.motion-preview-active .splash-age-option::after {
    background: #073f2d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Splash screen */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.splash-open,
body.splash-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #f8fbf5;
  background:
    radial-gradient(ellipse at 10% 8%, rgba(235, 193, 95, 0.22), transparent 34%),
    radial-gradient(ellipse at 92% 30%, rgba(73, 199, 149, 0.16), transparent 40%),
    radial-gradient(ellipse at 50% 46%, rgba(1, 20, 14, 0.36), transparent 50%),
    radial-gradient(ellipse at 52% 108%, rgba(38, 101, 117, 0.16), transparent 48%),
    linear-gradient(148deg, #021912 0%, #064732 50%, #011b14 100%);
  font-optical-sizing: auto;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}

.splash-screen[hidden] {
  display: none;
}

.splash-screen.is-leaving {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.012);
}

.splash-layout {
  width: min(100%, 440px);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  padding:
    max(52px, calc(env(safe-area-inset-top) + 34px))
    36px
    max(40px, calc(env(safe-area-inset-bottom) + 28px));
}

.splash-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(22px, 5.4vh, 52px);
  text-align: center;
}

.splash-logo {
  width: clamp(138px, 39vw, 166px);
  height: clamp(138px, 39vw, 166px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(235, 191, 94, 0.16))
    drop-shadow(0 8px 18px rgba(0, 18, 12, 0.24));
}

.splash-hero h1 {
  margin: -6px 0 0;
  color: #ffffff;
  font-size: clamp(3.25rem, 15vw, 3.9rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 14px rgba(0, 20, 13, 0.42);
}

.splash-divider {
  width: min(44vw, 176px);
  height: 1px;
  margin-top: 30px;
  background: rgba(222, 180, 91, 0.82);
  box-shadow:
    0 0 8px rgba(242, 199, 99, 0.34),
    0 0 20px rgba(242, 199, 99, 0.1);
}

.splash-tagline {
  margin: 24px 0 0;
  color: #f8fbf5;
  font-size: clamp(1.4rem, 6.2vw, 1.68rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 10px rgba(0, 20, 13, 0.38);
}

.splash-ai-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #efd087;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.splash-ai-label img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.splash-actions {
  width: 100%;
  display: grid;
  justify-items: stretch;
  gap: 18px;
}

.splash-age-option {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border: 1px solid rgba(235, 198, 116, 0.88);
  border-radius: 14px;
  background: rgba(0, 42, 30, 0.28);
  color: #f8fbf5;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  transition:
    transform 100ms var(--ease-out),
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.splash-age-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #ebca7d;
  border-radius: 50%;
  background: rgba(0, 35, 25, 0.42);
  box-shadow: inset 0 0 0 0 #063c2b;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.splash-age-option input:checked {
  background: #e3bd68;
  box-shadow: inset 0 0 0 5px #063c2b;
}

.splash-age-option span {
  color: #f8fbf5;
  font-size: 1rem;
  font-weight: 610;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.splash-age-option.is-checked {
  border-color: #f1ca72;
  background: rgba(10, 85, 58, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.splash-age-option:active {
  transform: scale(0.985);
}

.splash-age-option:has(input:focus-visible) {
  outline: 3px solid rgba(249, 222, 154, 0.58);
  outline-offset: 3px;
}

.splash-enter-button,
.splash-flow-close {
  min-height: 56px;
  border: 1px solid rgba(238, 203, 124, 0.88);
  border-radius: 16px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 100ms var(--ease-out),
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.splash-enter-button {
  background: #146747;
  color: #ffffff;
  box-shadow:
    0 12px 28px rgba(0, 22, 14, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.splash-enter-button:disabled {
  border-color: rgba(225, 209, 164, 0.34);
  background: rgba(151, 164, 151, 0.25);
  color: rgba(231, 237, 228, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: not-allowed;
}

.splash-enter-button[aria-busy="true"] {
  border-color: rgba(238, 203, 124, 0.72);
  background: linear-gradient(110deg, #0b5c40, #157653 58%, #81611f 140%);
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 28px rgba(0, 22, 14, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: progress;
}

.splash-enter-button:not(:disabled):active,
.splash-flow-close:active {
  transform: scale(0.98);
}

.splash-enter-button:focus-visible,
.splash-flow-trigger:focus-visible,
.splash-flow-close:focus-visible {
  outline: 3px solid rgba(249, 222, 154, 0.62);
  outline-offset: 3px;
}

.splash-flow-trigger {
  justify-self: center;
  min-height: 44px;
  padding: 7px 6px;
  border: 0;
  background: transparent;
  color: #e3bd68;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.splash-disclaimer {
  margin: 0;
  color: rgba(244, 247, 240, 0.78);
  font-size: 0.82rem;
  font-weight: 460;
  line-height: 1.55;
  letter-spacing: 0.015em;
  text-align: center;
}

.splash-flow-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: #f8fbf5;
  overflow: hidden;
}

.splash-flow-dialog[open] {
  display: grid;
  place-items: center;
}

.splash-flow-dialog::backdrop {
  background: rgba(0, 18, 12, 0.66);
  opacity: 1;
  backdrop-filter: blur(10px) saturate(80%);
  -webkit-backdrop-filter: blur(10px) saturate(80%);
  animation: splash-flow-backdrop-in 220ms var(--ease-out) both;
}

.splash-flow-dialog.is-closing::backdrop {
  animation: splash-flow-backdrop-out 160ms var(--ease-out) both;
}

.splash-flow-sheet {
  width: min(100%, 430px);
  max-height: calc(100dvh - 40px);
  padding: 28px;
  overflow: auto;
  border: 1px solid rgba(235, 198, 116, 0.72);
  border-radius: 24px;
  background: rgba(3, 54, 38, 0.94);
  box-shadow:
    0 32px 80px rgba(0, 18, 12, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(26px) saturate(130%);
  -webkit-backdrop-filter: blur(26px) saturate(130%);
  animation: splash-flow-sheet-in 220ms var(--ease-out) both;
}

.splash-flow-dialog.is-closing .splash-flow-sheet {
  animation: splash-flow-sheet-out 160ms var(--ease-out) both;
}

.splash-flow-sheet header {
  text-align: left;
}

.splash-flow-kicker {
  margin: 0 0 8px;
  color: #e3bd68;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.splash-flow-sheet h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.48rem;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.splash-flow-sheet header > p:last-child {
  margin: 10px 0 0;
  color: rgba(244, 247, 240, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.splash-flow-steps {
  margin: 24px 0;
  padding: 0;
  list-style-position: inside;
}

.splash-flow-steps li {
  padding: 16px 0;
  border-top: 1px solid rgba(235, 198, 116, 0.2);
  color: #e3bd68;
  font-weight: 760;
}

.splash-flow-dialog[open] .splash-flow-steps li {
  animation: splash-flow-step-in 220ms var(--ease-out) both;
}

.splash-flow-dialog[open] .splash-flow-steps li:nth-child(1) {
  animation-delay: 60ms;
}

.splash-flow-dialog[open] .splash-flow-steps li:nth-child(2) {
  animation-delay: 100ms;
}

.splash-flow-dialog[open] .splash-flow-steps li:nth-child(3) {
  animation-delay: 140ms;
}

.splash-flow-steps li:last-child {
  border-bottom: 1px solid rgba(235, 198, 116, 0.2);
}

.splash-flow-steps strong {
  color: #f8fbf5;
  font-size: 0.98rem;
}

.splash-flow-steps span {
  display: block;
  margin: 7px 0 0 24px;
  color: rgba(244, 247, 240, 0.72);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
}

.splash-flow-close {
  width: 100%;
  background: #146747;
  color: #ffffff;
  cursor: pointer;
}

@keyframes splash-flow-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes splash-flow-backdrop-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes splash-flow-sheet-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splash-flow-sheet-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

@keyframes splash-flow-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .splash-age-option:hover {
    border-color: #f1ca72;
    background: rgba(7, 72, 50, 0.46);
  }

  .splash-enter-button:not(:disabled):hover,
  .splash-flow-close:hover {
    border-color: #f2cf7d;
    background: #197553;
  }

  .splash-flow-trigger:hover {
    color: #f1d493;
  }
}

@media (max-width: 560px) {
  .splash-flow-dialog[open] {
    align-items: end;
    padding: 0;
  }

  .splash-flow-sheet {
    width: 100%;
    max-height: min(84dvh, 680px);
    padding:
      26px
      24px
      max(24px, calc(env(safe-area-inset-bottom) + 18px));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    animation-name: splash-flow-sheet-mobile-in;
  }

  .splash-flow-dialog.is-closing .splash-flow-sheet {
    animation-name: splash-flow-sheet-mobile-out;
  }
}

@media (max-width: 380px) {
  .splash-layout {
    padding-right: 24px;
    padding-left: 24px;
  }

  .splash-logo {
    width: 128px;
    height: 128px;
  }

  .splash-hero h1 {
    font-size: 3.2rem;
  }
}

@media (max-height: 720px) {
  .splash-layout {
    gap: 14px;
    padding-top: max(22px, calc(env(safe-area-inset-top) + 14px));
    padding-bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .splash-hero {
    padding-top: 0;
  }

  .splash-logo {
    width: 108px;
    height: 108px;
  }

  .splash-hero h1 {
    font-size: 2.9rem;
  }

  .splash-divider {
    margin-top: 17px;
  }

  .splash-tagline {
    margin-top: 16px;
    font-size: 1.25rem;
  }

  .splash-ai-label {
    margin-top: 12px;
  }

  .splash-actions {
    gap: 10px;
  }
}

@keyframes splash-flow-sheet-mobile-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splash-flow-sheet-mobile-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen,
  .splash-age-option,
  .splash-age-option input,
  .splash-enter-button,
  .splash-flow-close {
    transition-duration: 1ms;
  }

  .splash-screen.is-leaving,
  .splash-age-option:active,
  .splash-enter-button:not(:disabled):active,
  .splash-flow-close:active {
    transform: none;
  }

  .splash-flow-dialog::backdrop,
  .splash-flow-dialog.is-closing::backdrop,
  .splash-flow-sheet,
  .splash-flow-dialog.is-closing .splash-flow-sheet,
  .splash-flow-dialog[open] .splash-flow-steps li {
    animation: none;
  }

  .splash-flow-sheet,
  .splash-flow-dialog[open] .splash-flow-steps li {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .splash-age-option {
    background: #063d2c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .splash-flow-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .splash-flow-sheet {
    background: #073b2b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .splash-age-option,
  .splash-flow-sheet {
    border-color: #f7d98f;
  }

  .splash-enter-button:disabled {
    border-color: rgba(255, 255, 255, 0.58);
    color: rgba(255, 255, 255, 0.62);
  }

  .splash-disclaimer,
  .splash-flow-sheet header > p:last-child,
  .splash-flow-steps span {
    color: #ffffff;
  }
}
