:root {
  --paper: #f4f1e8;
  --paper-deep: #e9e5da;
  --surface: #fffdf7;
  --surface-raised: #ffffff;
  --ink: #171a1f;
  --muted: #59615f;
  --faint: #7a817e;
  --line: #cbc8bd;
  --line-strong: #94988f;
  --violet: #4b31cf;
  --violet-dark: #301a9f;
  --violet-soft: #e8e2ff;
  --acid: #d8ff55;
  --acid-dark: #b4df28;
  --coral: #ea5a47;
  --coral-soft: #ffe2da;
  --success: #176b4d;
  --success-soft: #d8f3e7;
  --warning: #8b5200;
  --warning-soft: #fff1c7;
  --danger: #a12828;
  --danger-soft: #ffe1df;
  --shadow-sm: 0 2px 0 rgba(23, 26, 31, 0.08);
  --shadow-lg: 0 28px 70px rgba(36, 31, 21, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --page: 1180px;
  --font-display: "Arial Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(75, 49, 207, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 49, 207, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label,
select,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  min-height: 44px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  border-bottom: 1px solid rgba(148, 152, 143, 0.55);
  background: rgba(244, 241, 232, 0.9);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 40px), var(--page));
  min-height: 76px;
  margin-inline: auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--violet);
  place-items: center;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beta-badge {
  align-self: flex-start;
  margin: 4px 0 0 10px;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  min-height: 76px;
  margin-left: auto;
  gap: 8px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: var(--violet);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.credit-pill,
.beta-badge,
.status-dot,
.secure-label,
.success-pill,
.recommended {
  white-space: nowrap;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 800;
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  margin-right: 8px;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  border: 1.5px solid var(--violet-dark);
  background: var(--violet);
  color: #fff;
  box-shadow: 3px 3px 0 var(--violet-dark);
}

.button-primary:hover:not(:disabled) {
  background: var(--violet-dark);
  box-shadow: 4px 5px 0 rgba(48, 26, 159, 0.35);
}

.button-secondary {
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-secondary:hover:not(:disabled) {
  background: var(--acid);
}

.button-quiet {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover:not(:disabled) {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.button-acid {
  border: 1.5px solid #fff;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 3px 3px 0 #fff;
}

.full-width {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  place-items: center;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--acid);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.menu-button {
  display: none;
}

.mobile-nav {
  padding: 8px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 780;
  text-align: left;
  text-decoration: none;
}

.global-status {
  position: fixed;
  z-index: 120;
  top: 88px;
  left: 50%;
  max-width: min(520px, calc(100% - 32px));
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.global-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lab-section {
  padding: 76px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 52px;
}

.eyebrow,
.step-label {
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.eyebrow > span {
  width: 28px;
  height: 3px;
  background: currentColor;
}

.hero-copy h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 7.4vw, 6.7rem);
  font-weight: 950;
  letter-spacing: -0.072em;
  line-height: 0.86;
}

.hero-copy h1 em {
  position: relative;
  color: var(--violet);
  font-style: normal;
  white-space: nowrap;
}

.hero-copy h1 em::after {
  position: absolute;
  right: -4px;
  bottom: -5px;
  left: 0;
  height: 11px;
  background: var(--acid);
  content: "";
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 22px;
  color: #3d4543;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
}

.truth-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.truth-list > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.truth-list svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  color: var(--success);
}

.honesty-card {
  position: relative;
  padding: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 4px 26px 4px 26px;
  background: var(--acid);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.2deg);
}

.honesty-card > svg {
  width: 38px;
  height: 38px;
  margin: 22px 0 14px;
}

.honesty-card p {
  margin-bottom: 0;
  color: #292c27;
  font-size: 0.93rem;
}

.honesty-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.card-index {
  position: absolute;
  top: 15px;
  right: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  margin-top: 64px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 10px 12px 0 rgba(23, 26, 31, 0.11);
  overflow: hidden;
}

.upload-card,
.preflight-card {
  padding: 34px;
}

.preflight-card {
  border-left: 1.5px solid var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(216, 255, 85, 0.45), transparent 32%),
    #efecff;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-heading h2,
.result-heading h2,
.job-panel h2,
.recovery-error h2,
.workflow-section h2,
.pricing-section h2,
.history-section h2,
.privacy-section h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.step-label {
  margin-bottom: 7px;
}

.secure-label,
.success-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.secure-label {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.secure-label svg,
.success-pill svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.drop-zone {
  display: flex;
  min-height: 390px;
  padding: 40px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(75, 49, 207, 0.035) 25%, transparent 25%) 0 0 / 16px 16px,
    var(--surface-raised);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--violet);
  background-color: var(--violet-soft);
  transform: translateY(-2px);
}

.drop-zone:focus-within {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.upload-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: var(--acid);
  color: var(--ink);
  place-items: center;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-3deg);
}

.upload-icon svg {
  width: 34px;
  height: 34px;
}

.drop-title {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.drop-help {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.fake-button {
  pointer-events: none;
}

.inline-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--danger);
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
}

.inline-message svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.inline-message p {
  margin: 2px 0 0;
  font-size: 0.88rem;
}

.selected-file {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr);
  min-height: 390px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: #22252a;
  overflow: hidden;
}

.source-preview-wrap {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.source-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-badge,
.image-label {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 22, 25, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.file-summary {
  display: flex;
  padding: 26px;
  background: var(--surface);
  flex-direction: column;
  justify-content: space-between;
}

.file-summary h3 {
  max-width: 100%;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.muted,
.privacy-inline,
.button-note,
.result-retention {
  color: var(--muted);
}

.privacy-inline {
  margin: 16px 2px 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.status-dot::before {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.status-dot.is-ready {
  color: var(--success);
}

.status-dot.is-ready::before {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.choice-group {
  display: grid;
  padding: 0;
  border: 0;
  gap: 9px;
}

.choice-group + .choice-group {
  margin-top: 20px;
}

.choice-group legend,
.print-calculator > label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.choice-card:hover {
  border-color: var(--violet);
}

.choice-card:has(input:focus-visible) {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.choice-card:has(input:checked) {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(75, 49, 207, 0.23);
}

.choice-card input {
  width: 19px;
  height: 19px;
  margin: 0 11px 0 0;
  accent-color: var(--violet);
}

.choice-card > span:not(.recommended) {
  display: grid;
}

.choice-card strong {
  font-size: 0.88rem;
}

.choice-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.recommended {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-group {
  grid-template-columns: 1fr 1fr;
}

.mode-group legend {
  grid-column: 1 / -1;
}

.mode-group .choice-card {
  align-items: flex-start;
}

.metric-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.metric-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-row strong {
  font-size: 0.82rem;
  text-align: right;
}

.print-calculator {
  display: grid;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.print-calculator select {
  width: 100%;
  min-height: 44px;
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
}

.print-calculator output {
  margin: 12px 0 4px;
  color: var(--violet-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.print-calculator small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.checkout-summary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
}

.checkout-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}

.checkout-summary span {
  color: var(--muted);
  font-size: 0.8rem;
}

.checkout-summary strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 950;
}

.checkout-summary > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.74rem;
}

.checkout-summary .button-note {
  margin: 9px 0 0;
  text-align: center;
}

.job-panel,
.result-panel,
.recovery-error {
  margin-top: 48px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 8px 9px 0 rgba(23, 26, 31, 0.11);
}

.job-panel {
  position: relative;
  padding: 58px clamp(22px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
}

.job-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--violet) 0 45%, var(--acid) 45% 68%, var(--coral) 68%);
  content: "";
}

.job-orbit {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--violet-soft);
}

.job-orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--acid);
  animation: orbit 2.8s linear infinite;
}

.job-orbit span:nth-child(1) { top: 6px; left: 29px; }
.job-orbit span:nth-child(2) { right: 7px; bottom: 12px; animation-delay: -0.9s; }
.job-orbit span:nth-child(3) { bottom: 11px; left: 8px; animation-delay: -1.8s; }

@keyframes orbit {
  50% { transform: rotate(45deg) scale(0.78); }
}

.job-description {
  max-width: 610px;
  margin: 12px auto 26px;
  color: var(--muted);
}

.job-steps {
  display: grid;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.job-steps li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.job-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.job-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 850;
  place-items: center;
}

.job-steps div {
  display: grid;
}

.job-steps small {
  color: var(--muted);
}

.job-steps b {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 0.68rem;
}

.job-steps li.is-done > span {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.job-steps li.is-done b {
  background: var(--success-soft);
  color: var(--success);
}

.job-steps li.is-active > span {
  border-color: var(--violet);
  background: var(--violet);
  color: #fff;
  box-shadow: 0 0 0 5px var(--violet-soft);
}

.job-steps li.is-active b {
  background: var(--violet-soft);
  color: var(--violet-dark);
}

.job-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  gap: 10px;
}

.result-panel {
  padding: clamp(20px, 4vw, 42px);
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.result-heading p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
}

.success-pill {
  background: var(--success-soft);
  color: var(--success);
}

.text-review-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #c49b37;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning);
}

.text-review-notice[data-state="passed"] {
  border-color: #5e9e82;
  background: var(--success-soft);
  color: var(--success);
}

.text-review-notice[data-state="manual"] {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--muted);
}

.text-review-notice svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.text-review-notice p {
  margin: 2px 0 0;
  font-size: 0.84rem;
}

.comparison-shell {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: #22252a;
  overflow: hidden;
}

.comparison-viewport {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.comparison-viewport.is-zoomed {
  max-height: 70vh;
  overflow: auto;
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.comparison-viewport.is-zoomed .comparison-image {
  width: auto;
  min-width: 100%;
  max-width: none;
  height: auto;
  min-height: 100%;
  object-fit: none;
  object-position: top left;
}

.original-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
  overflow: hidden;
}

.comparison-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateX(-1px);
}

.comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.comparison-divider span::before,
.comparison-divider span::after {
  position: absolute;
  top: 14px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #fff;
  content: "";
}

.comparison-divider span::before {
  left: 8px;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
}

.comparison-divider span::after {
  right: 8px;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
}

.label-result {
  right: 14px;
  left: auto;
}

.compare-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 8px 16px;
  gap: 13px;
  border-top: 1px solid #42464c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.compare-control input {
  width: 100%;
  height: 44px;
  margin: 0;
  cursor: ew-resize;
  accent-color: var(--acid);
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
  gap: 10px;
}

.danger-text {
  margin-left: auto;
  color: var(--danger);
}

.result-retention {
  margin: 14px 0 0;
  font-size: 0.77rem;
  text-align: right;
}

.recovery-error {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 26px;
  gap: 18px;
  border-color: var(--danger);
  background: var(--danger-soft);
  box-shadow: 8px 9px 0 rgba(161, 40, 40, 0.14);
}

.recovery-error > svg {
  width: 36px;
  height: 36px;
  color: var(--danger);
}

.recovery-error p:last-child {
  margin: 7px 0 0;
  color: #722929;
}

.workflow-section,
.history-section,
.privacy-section {
  padding: 92px 0;
}

.workflow-section {
  border-top: 1.5px solid var(--ink);
  background: var(--surface);
}

.split-heading > div {
  max-width: 680px;
}

.split-heading > p {
  max-width: 370px;
  margin-bottom: 0;
  color: var(--muted);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.workflow-grid article {
  position: relative;
  min-height: 330px;
  padding: 28px;
  background: var(--surface);
  overflow: hidden;
}

.workflow-grid article + article {
  border-left: 1.5px solid var(--ink);
}

.workflow-grid article > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  place-items: center;
}

.workflow-grid h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.workflow-grid p {
  max-width: 300px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-ruler,
.pixel-grid,
.review-lines {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  height: 64px;
  opacity: 0.85;
}

.mini-ruler {
  border-bottom: 8px solid var(--violet);
  background: repeating-linear-gradient(90deg, transparent 0 16px, var(--violet) 16px 18px);
}

.pixel-grid {
  height: 76px;
  background:
    linear-gradient(var(--coral) 2px, transparent 2px),
    linear-gradient(90deg, var(--coral) 2px, transparent 2px);
  background-size: 16px 16px;
  transform: perspective(100px) rotateX(12deg);
}

.review-lines {
  display: grid;
  align-content: end;
  gap: 8px;
}

.review-lines i {
  height: 8px;
  border-radius: 999px;
  background: var(--violet);
}

.review-lines i:nth-child(2) { width: 75%; }
.review-lines i:nth-child(3) { width: 42%; background: var(--coral); }

.pricing-section {
  padding: 88px 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(75, 49, 207, 0.5), transparent 31%),
    #171a1f;
  color: #fff;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 80px;
}

.pricing-section .eyebrow {
  color: var(--acid);
}

.pricing-section h2 {
  max-width: 650px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.pricing-section .pricing-layout > div > p:last-child {
  max-width: 570px;
  margin: 24px 0 0;
  color: #c6cbc8;
}

.price-card {
  padding: 32px;
  border: 1.5px solid #fff;
  border-radius: var(--radius-md);
  background: #252931;
  box-shadow: 9px 9px 0 var(--violet);
}

.price-card > p {
  margin-bottom: 6px;
  color: #c6cbc8;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1;
}

.price-card > strong small {
  font-size: 1.8rem;
}

.price-card > span {
  display: inline-block;
  margin: 10px 0 20px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.price-card ul {
  margin: 0 0 24px;
  padding: 18px 0 18px 20px;
  border-top: 1px solid #50545b;
  border-bottom: 1px solid #50545b;
  color: #e6e8e6;
  font-size: 0.86rem;
}

.price-card li + li {
  margin-top: 8px;
}

.history-section {
  border-bottom: 1px solid var(--line);
}

.history-list {
  margin-top: 36px;
}

.history-load-error {
  padding: 24px;
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: var(--danger);
}

.history-load-error p {
  margin: 4px 0 16px;
}

.empty-state {
  display: grid;
  min-height: 300px;
  padding: 38px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.78);
  text-align: center;
  place-items: center;
}

.empty-state > span {
  display: grid;
  width: 68px;
  height: 68px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 950;
  place-items: center;
}

.empty-state h3 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.empty-state p {
  max-width: 450px;
  margin-bottom: 16px;
  color: var(--muted);
}

.history-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  min-height: 92px;
  padding: 10px 16px;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.history-item:last-child {
  border-bottom: 1px solid var(--line);
}

.history-item-text {
  grid-template-columns: 1fr auto;
}

.history-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-deep);
  object-fit: cover;
}

.history-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.history-state {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 0.7rem;
  font-weight: 850;
}

.privacy-section {
  background: var(--paper-deep);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 74px;
}

.privacy-grid dl {
  margin: 0;
}

.privacy-grid dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 17px 0;
  border-top: 1px solid var(--line-strong);
  gap: 20px;
}

.privacy-grid dl > div:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.privacy-grid dt {
  font-weight: 850;
}

.privacy-grid dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-mark {
  border-color: #fff;
  background: #292d33;
  box-shadow: 3px 3px 0 var(--violet);
}

.footer-brand .brand-copy span {
  color: #b9bfbc;
}

.footer-inner > p {
  max-width: 560px;
  margin: 0;
  color: #b9bfbc;
  font-size: 0.76rem;
}

.footer-inner nav {
  display: flex;
  gap: 15px;
}

.footer-inner nav a,
.footer-support {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e8eae8;
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

dialog {
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgba(20, 22, 25, 0.64);
  backdrop-filter: blur(7px);
}

.payment-dialog {
  width: min(520px, calc(100% - 24px));
}

.account-dialog {
  width: min(440px, calc(100% - 24px));
}

.dialog-frame {
  display: flex;
  max-height: calc(100dvh - 24px);
  margin: 0;
  padding: 26px;
  overflow-y: auto;
  flex-direction: column;
  gap: 17px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-header h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
}

.dialog-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-line > div {
  display: grid;
  min-height: 62px;
  padding: 8px 0;
  align-content: center;
}

.order-line > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.order-line span,
.transfer-reference > span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-line strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.qr-panel {
  display: grid;
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  place-items: center;
}

.qr-panel img,
.qr-placeholder {
  width: 210px;
  height: 210px;
  margin-bottom: 12px;
  object-fit: contain;
}

.qr-placeholder {
  position: relative;
  display: grid;
  border: 12px solid var(--ink);
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px) 0 0 / 30px 30px,
    linear-gradient(var(--ink) 12px, transparent 12px) 0 0 / 30px 30px,
    #fff;
  overflow: hidden;
  place-items: center;
}

.qr-placeholder::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.77);
  content: "";
}

.qr-placeholder strong {
  z-index: 1;
  max-width: 140px;
  padding: 8px;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 0.72rem;
  text-align: center;
}

.qr-panel > div:last-child {
  display: grid;
  text-align: center;
}

.qr-panel > div:last-child span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.qr-panel > div:last-child strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.transfer-reference {
  padding: 13px;
  border-radius: 11px;
  background: var(--violet-soft);
}

.transfer-reference > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transfer-reference strong {
  color: var(--violet-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.16rem;
  letter-spacing: 0.06em;
}

.transfer-reference .icon-button {
  border-color: var(--violet);
  background: #fff;
  color: var(--violet);
}

.payment-state {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #c49b37;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning);
  gap: 12px;
}

.payment-state[data-state="paid"] {
  border-color: #5e9e82;
  background: var(--success-soft);
  color: var(--success);
}

.payment-state[data-state="review"] {
  border-color: var(--violet);
  background: var(--violet-soft);
  color: var(--violet-dark);
}

.payment-state[data-state="expired"],
.payment-state[data-state="error"] {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.payment-state-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
  place-items: center;
}

.payment-state-icon svg {
  width: 19px;
  height: 19px;
}

.payment-state p {
  margin: 2px 0 0;
  font-size: 0.78rem;
}

.dialog-actions {
  display: grid;
  gap: 9px;
}

.dialog-footnote {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.7rem;
  gap: 6px;
}

.dialog-footnote svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.account-summary {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  gap: 12px;
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--acid);
  font-family: var(--font-display);
  font-weight: 950;
  place-items: center;
}

.account-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.account-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  gap: 10px;
}

.account-metrics > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.account-metrics dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.account-metrics dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100% - 36px));
  gap: 8px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(75, 49, 207, 0.55);
  font-size: 0.84rem;
  font-weight: 720;
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1020px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero-grid {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .preflight-card {
    border-top: 1.5px solid var(--ink);
    border-left: 0;
  }

  .pricing-layout {
    grid-template-columns: 1fr 380px;
    gap: 44px;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .footer-inner nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  body {
    padding-bottom: 72px;
  }

  .page-shell,
  .header-inner {
    width: min(calc(100% - 28px), var(--page));
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-copy span,
  .beta-badge,
  .credit-pill,
  .account-button {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .lab-section {
    padding: 48px 0 68px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(3.2rem, 16vw, 5.1rem);
    line-height: 0.88;
  }

  .hero-copy h1 em {
    white-space: normal;
  }

  .honesty-card {
    max-width: 480px;
    padding: 23px;
    transform: rotate(0.5deg);
  }

  .workspace {
    margin-top: 46px;
    border-radius: 20px;
    box-shadow: 6px 7px 0 rgba(23, 26, 31, 0.1);
  }

  .upload-card,
  .preflight-card {
    padding: 22px;
  }

  .section-heading.compact {
    align-items: flex-start;
  }

  .drop-zone {
    min-height: 290px;
    padding: 30px 18px;
  }

  .selected-file {
    grid-template-columns: 1fr;
  }

  .source-preview-wrap {
    min-height: 260px;
  }

  .file-summary {
    min-height: 170px;
  }

  .mode-group {
    grid-template-columns: 1fr;
  }

  .mode-group legend {
    grid-column: auto;
  }

  .job-panel {
    padding: 44px 20px 28px;
  }

  .job-steps li {
    grid-template-columns: 38px 1fr;
    padding: 8px 0;
  }

  .job-steps b {
    grid-column: 2;
    width: max-content;
    margin-top: -6px;
  }

  .job-actions,
  .result-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .danger-text {
    margin-left: 0;
  }

  .comparison-viewport {
    min-height: 370px;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-retention {
    text-align: left;
  }

  .recovery-error {
    grid-template-columns: auto 1fr;
  }

  .recovery-error .button {
    grid-column: 1 / -1;
  }

  .workflow-section,
  .history-section,
  .privacy-section {
    padding: 66px 0;
  }

  .section-heading,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    min-height: 300px;
  }

  .workflow-grid article + article {
    border-top: 1.5px solid var(--ink);
    border-left: 0;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .price-card {
    max-width: 480px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .privacy-grid dl > div {
    grid-template-columns: 105px 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner nav {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 9px 14px;
    border-top: 1.5px solid var(--ink);
    background: rgba(255, 253, 247, 0.95);
    box-shadow: 0 -10px 30px rgba(23, 26, 31, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-action-bar > div {
    display: grid;
    line-height: 1.15;
  }

  .mobile-action-bar span {
    color: var(--muted);
    font-size: 0.67rem;
  }

  .mobile-action-bar strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
  }

  .mobile-action-bar .button {
    min-width: 132px;
  }

  .toast-region {
    right: 14px;
    bottom: 82px;
    width: calc(100% - 28px);
  }

  .dialog-frame {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 3.25rem;
  }

  .truth-list {
    display: grid;
  }

  .truth-list > span {
    width: 100%;
  }

  .upload-card,
  .preflight-card {
    padding: 18px;
  }

  .section-heading.compact {
    gap: 12px;
  }

  .secure-label {
    padding: 5px 8px;
  }

  .choice-card {
    padding: 11px;
  }

  .recommended {
    display: none;
  }

  .metric-row {
    align-items: flex-start;
    padding: 9px 0;
    flex-direction: column;
    gap: 2px;
  }

  .metric-row strong {
    text-align: left;
  }

  .comparison-viewport {
    min-height: 300px;
  }

  .compare-control {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compare-control span {
    display: none;
  }

  .privacy-grid dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .order-line {
    grid-template-columns: 1fr;
  }

  .order-line > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .qr-panel img,
  .qr-placeholder {
    width: min(190px, 62vw);
    height: min(190px, 62vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .drop-zone,
  .workspace,
  .choice-card,
  .comparison-shell,
  dialog {
    border: 2px solid CanvasText;
  }

  .button-primary,
  .button-acid,
  .upload-icon {
    forced-color-adjust: none;
  }
}

.owner-page { background: var(--paper); }
.owner-main { padding-block: clamp(2rem, 5vw, 5rem); }
.owner-intro { max-width: 850px; margin-bottom: 2rem; }
.owner-intro h1 { font-size: clamp(2rem, 6vw, 4.5rem); margin-block: .4rem 1rem; }
.owner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-block: 1.25rem; }
.owner-card { border: 1.5px solid var(--ink); border-radius: var(--radius-md); background: #fff; padding: 1.25rem; box-shadow: 4px 4px 0 var(--ink); }
.owner-card h2, .owner-card h3 { margin-top: 0; }
.owner-card dl > div, .owner-flag { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-block: .55rem; }
.owner-card dd { text-align: right; margin: 0; }
.owner-flag span[data-enabled="true"] { color: var(--success); font-weight: 800; }
.owner-flag span[data-enabled="false"] { color: var(--danger); font-weight: 800; }
.owner-section { margin-block: 2.5rem; }
.owner-list { display: grid; gap: 1rem; }
.owner-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.owner-form label { display: grid; gap: .35rem; font-weight: 700; }
.owner-form input, .owner-form select, .owner-form textarea { width: 100%; border: 1px solid var(--ink); border-radius: 8px; padding: .7rem; background: #fff; color: var(--ink); font: inherit; }
.owner-span { grid-column: 1 / -1; }
.owner-output { max-height: 24rem; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); padding: 1rem; }
.owner-audit { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.owner-audit p { margin: .25rem 0 0; }
@media (max-width: 760px) { .owner-grid, .owner-form { grid-template-columns: 1fr; } .owner-span { grid-column: auto; } }
