/* Local interface: no CDN, fonts or external assets. */
:root {
  --ds-color-primary: #ffffff;
  --ds-color-on-primary: #000000;
  --ds-color-accent-blue: #0099ff;
  --ds-color-ink: #ffffff;
  --ds-color-ink-muted: #999999;
  --ds-color-canvas: #090909;
  --ds-color-surface-1: #141414;
  --ds-color-surface-2: #1c1c1c;
  --ds-color-hairline: #262626;
  --ds-color-hairline-soft: #1a1a1a;
  --ds-color-inverse-canvas: #ffffff;
  --ds-color-inverse-ink: #000000;
  --ds-color-gradient-magenta: #d44df0;
  --ds-color-gradient-violet: #6a4cf5;
  --ds-color-gradient-orange: #ff7a3d;
  --ds-color-gradient-coral: #ff5577;
  --ds-color-semantic-success: #22c55e;

  --ds-type-display-xxl-family: "GT Walsheim Framer Medium";
  --ds-type-display-xxl-size: 110px;
  --ds-type-display-xxl-weight: 500;
  --ds-type-display-xxl-line-height: 0.85;
  --ds-type-display-xxl-tracking: -5.5px;
  --ds-type-display-xl-family: "GT Walsheim Medium";
  --ds-type-display-xl-size: 85px;
  --ds-type-display-xl-weight: 500;
  --ds-type-display-xl-line-height: 0.95;
  --ds-type-display-xl-tracking: -4.25px;
  --ds-type-display-xl-feature: "ss02" 1;
  --ds-type-display-lg-family: "GT Walsheim Medium";
  --ds-type-display-lg-size: 62px;
  --ds-type-display-lg-weight: 500;
  --ds-type-display-lg-line-height: 1;
  --ds-type-display-lg-tracking: -3.1px;
  --ds-type-display-lg-feature: "ss02" 1;
  --ds-type-display-md-family: "GT Walsheim Medium";
  --ds-type-display-md-size: 32px;
  --ds-type-display-md-weight: 500;
  --ds-type-display-md-line-height: 1.13;
  --ds-type-display-md-tracking: -1px;
  --ds-type-headline-family: "Inter";
  --ds-type-headline-size: 22px;
  --ds-type-headline-weight: 700;
  --ds-type-headline-line-height: 1.2;
  --ds-type-headline-tracking: -0.8px;
  --ds-type-headline-feature: "cv05" 1;
  --ds-type-subhead-family: "Inter Variable";
  --ds-type-subhead-size: 24px;
  --ds-type-subhead-weight: 400;
  --ds-type-subhead-line-height: 1.3;
  --ds-type-subhead-tracking: -0.01px;
  --ds-type-subhead-feature: "cv11" 1;
  --ds-type-body-lg-family: "Inter Variable";
  --ds-type-body-lg-size: 18px;
  --ds-type-body-lg-weight: 400;
  --ds-type-body-lg-line-height: 1.3;
  --ds-type-body-lg-tracking: -0.18px;
  --ds-type-body-lg-feature: "cv11" 1;
  --ds-type-body-family: "Inter Variable";
  --ds-type-body-size: 15px;
  --ds-type-body-weight: 400;
  --ds-type-body-line-height: 1.3;
  --ds-type-body-tracking: -0.15px;
  --ds-type-body-feature: "cv11" 1;
  --ds-type-body-sm-family: "Inter Variable";
  --ds-type-body-sm-size: 14px;
  --ds-type-body-sm-weight: 500;
  --ds-type-body-sm-line-height: 1.4;
  --ds-type-body-sm-tracking: -0.14px;
  --ds-type-body-sm-feature: "cv11" 1;
  --ds-type-caption-family: "Inter Variable";
  --ds-type-caption-size: 13px;
  --ds-type-caption-weight: 500;
  --ds-type-caption-line-height: 1.2;
  --ds-type-caption-tracking: -0.13px;
  --ds-type-caption-feature: "cv11" 1;
  --ds-type-micro-family: "Inter Variable";
  --ds-type-micro-size: 12px;
  --ds-type-micro-weight: 400;
  --ds-type-micro-line-height: 1.2;
  --ds-type-micro-tracking: -0.12px;
  --ds-type-micro-feature: "cv11" 1;
  --ds-type-button-family: "Inter Variable";
  --ds-type-button-size: 14px;
  --ds-type-button-weight: 500;
  --ds-type-button-line-height: 1;
  --ds-type-button-tracking: -0.14px;
  --ds-type-button-feature: "cv11" 1;

  --ds-spacing-hair: 1px;
  --ds-spacing-xxs: 4px;
  --ds-spacing-xs: 8px;
  --ds-spacing-sm: 12px;
  --ds-spacing-md: 15px;
  --ds-spacing-lg: 20px;
  --ds-spacing-xl: 30px;
  --ds-spacing-xxl: 40px;
  --ds-spacing-section: 96px;

  --ds-radius-xs: 4px;
  --ds-radius-sm: 6px;
  --ds-radius-md: 10px;
  --ds-radius-lg: 15px;
  --ds-radius-xl: 20px;
  --ds-radius-xxl: 30px;
  --ds-radius-pill: 100px;
  --ds-radius-full: 9999px;
}

@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.bg-slate-50 {
  background: #edf0f2;
  color: #263b43;
  font-family: "Inter Variable", "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line-height);
  letter-spacing: var(--ds-type-body-tracking);
  font-feature-settings: "cv01" 1, "cv05" 1, "cv09" 1, "cv11" 1, "ss03" 1, "ss07" 1, "dlig" 1, "tnum" 1;
}

body .bg-white,
body .preview-sheet {
  color: var(--ds-color-inverse-ink);
}

body .workspace-intro h1 {
  color: #163f43;
}

body .workspace-intro p {
  color: #61747b;
}

/* {components.button-primary} */
body button.bg-blue-600,
body button.bg-green-600,
body a.bg-blue-600 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px !important;
  border-radius: var(--ds-radius-pill) !important;
  background: var(--ds-color-accent-blue) !important;
  color: var(--ds-color-primary) !important;
  font-family: var(--ds-type-button-family), "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-button-size);
  font-weight: var(--ds-type-button-weight);
  line-height: var(--ds-type-button-line-height);
  letter-spacing: var(--ds-type-button-tracking);
  box-shadow: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

body button.bg-blue-600:hover,
body button.bg-green-600:hover,
body a.bg-blue-600:hover {
  background: var(--ds-color-accent-blue) !important;
  color: var(--ds-color-primary) !important;
  opacity: 0.9;
  text-decoration: none;
}

body button.bg-blue-600:active,
body button.bg-green-600:active,
body a.bg-blue-600:active {
  transform: scale(0.98);
}

body button.bg-blue-600:focus-visible,
body button.bg-green-600:focus-visible,
body a.bg-blue-600:focus-visible {
  outline: 2px solid var(--ds-color-accent-blue);
  outline-offset: 3px;
}

/* {components.button-secondary} */
body button.bg-slate-800,
body button.admin-btn {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #cbdce6;
  border-radius: var(--ds-radius-pill);
  background: #f8fafb;
  color: #174662;
  font-family: var(--ds-type-button-family), "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-button-size);
  font-weight: var(--ds-type-button-weight);
  line-height: var(--ds-type-button-line-height);
  letter-spacing: var(--ds-type-button-tracking);
  transition: background-color 150ms ease, transform 150ms ease;
}

body button.bg-slate-800:hover,
body button.admin-btn:hover {
  background: #eaf5ff;
  color: #0b5686;
}

body button.bg-slate-800:active,
body button.admin-btn:active {
  transform: scale(0.98);
}

body button.bg-slate-800:focus-visible,
body button.admin-btn:focus-visible {
  outline: 2px solid var(--ds-color-accent-blue);
  outline-offset: 3px;
}

/* {components.text-input} and {components.text-input-focused} */
body input:not([type=checkbox]):not([type=file]):not([type=hidden]),
body select,
body textarea {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5da;
  border-radius: var(--ds-radius-md);
  background: #f8fafb;
  color: #263b43;
  font-family: var(--ds-type-body-family), "Segoe UI", Arial, sans-serif;
  font-size: var(--ds-type-body-size);
  line-height: var(--ds-type-body-line-height);
  color-scheme: light;
}

body input::placeholder,
body textarea::placeholder {
  color: #61747b;
}

body input:not([type=checkbox]):not([type=file]):focus,
body select:focus,
body textarea:focus {
  border-color: var(--ds-color-accent-blue);
  outline: 2px solid var(--ds-color-accent-blue);
  outline-offset: 2px;
}

/* Login and registration cards stay light against a soft gray canvas. */
body.bg-slate-50:has(.max-w-sm.bg-white) {
  background: #edf0f2;
}

body .max-w-sm.bg-white {
  border: 1px solid #dce4e8;
  border-radius: var(--ds-radius-xl);
  background: #fff;
  color: #263b43;
  box-shadow: 0 18px 54px #182c3610;
}

body .max-w-sm.bg-white .text-slate-500,
body .max-w-sm.bg-white .text-slate-600,
body .max-w-sm.bg-white .text-slate-700 {
  color: #61747b;
}

body .max-w-sm.bg-white a.text-blue-600 {
  color: var(--ds-color-accent-blue);
}

body.bg-slate-50:has(.max-w-sm.bg-white) main {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 56px);
}

body.bg-slate-50:has(.max-w-sm.bg-white) main::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("../img/declaration-illustration.png") no-repeat right center;
  background-size: min(65vw, 830px) auto;
  pointer-events: none;
}

body.bg-slate-50:has(.max-w-sm.bg-white) .max-w-sm.bg-white {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-right: auto;
  margin-left: clamp(0px, 5vw, 90px);
}

@media (max-width: 900px) {
  body.bg-slate-50:has(.max-w-sm.bg-white) main::before {
    opacity: 0.22;
    background-position: center bottom;
    background-size: 700px auto;
  }

  body.bg-slate-50:has(.max-w-sm.bg-white) .max-w-sm.bg-white {
    margin-right: auto;
    margin-left: auto;
  }
}

/* {components.top-nav} */
body header.bg-white {
  border-bottom-color: #dce4e8;
  background: #fff;
  color: #263b43;
}

body header > div {
  min-height: 56px !important;
}

body header .brand {
  color: #183e43;
}

body header .brand-icon {
  border-radius: var(--ds-radius-md);
  background: var(--ds-color-accent-blue);
  color: #fff;
}

body header .local-badge {
  border-color: #dce4e8;
  background: #f8fafb;
  color: #61747b;
}

body header .lang-switch a {
  color: #61747b;
}

body header .lang-switch a.is-active {
  background: #eaf5ff;
  color: #006fb9;
}

body header a.text-blue-700 {
  color: var(--ds-color-accent-blue);
}

body header button.text-slate-600,
body header .text-slate-500 {
  color: #61747b;
}

/* Dashboard cards adapt {components.pricing-card} to the customs workspace. */
body:has(.workspace-intro) .workspace-intro {
  position: relative;
  isolation: isolate;
  min-height: 170px;
  padding: 22px 0 30px;
}

body:has(.workspace-intro) .workspace-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  right: 0;
  width: 350px;
  height: 220px;
  background: url("../img/declaration-illustration.png") no-repeat right center / contain;
  opacity: 0.25;
  pointer-events: none;
}

body:has(.workspace-intro) section.bg-white,
body:has(.workspace-intro) aside.bg-white {
  border: 1px solid #dce4e8;
  border-radius: var(--ds-radius-xl);
  background: #fff;
  box-shadow: 0 18px 54px #182c360b;
}

body:has(.workspace-intro) .local-notice {
  border-color: #c5e4fa;
  border-radius: var(--ds-radius-md);
  background: #eaf5ff;
  color: #315d78;
}

/* {components.product-mockup-tile}: document upload zones. */
body:has(.workspace-intro) #upload-form > div {
  border: 1px solid #dce4e8;
  border-radius: var(--ds-radius-lg);
  background: #f8fafb;
}

body:has(.workspace-intro) #upload-form > div:focus-within {
  border-color: var(--ds-color-accent-blue);
  background: #f3f9ff;
}

body:has(.workspace-intro) #upload-form input[type=file]::file-selector-button {
  min-height: 40px;
  border: 1px solid #c5e4fa;
  border-radius: var(--ds-radius-pill);
  background: #fff;
  color: #006fb9;
}

body:has(.workspace-intro) #upload-form input[type=file]::file-selector-button:hover {
  background: #eaf5ff;
}

body:has(.workspace-intro) a.text-blue-600,
body:has(.workspace-intro) a.text-blue-700 {
  color: #0078c9;
}

/* Work cards: the review, OCR, and source-document pages share the light style. */
body #review-root .bg-white.rounded-xl,
body main .max-w-3xl > .bg-white.rounded-xl,
body main .max-w-5xl > section.bg-white.rounded-xl {
  border-color: #dce4e8;
  border-radius: var(--ds-radius-xl);
  box-shadow: 0 18px 54px #182c360b;
}

body #review-root .preview-entry {
  border-color: #c5e4fa;
  border-radius: var(--ds-radius-lg);
  background: #eaf5ff;
}

body #review-root .preview-entry strong {
  color: #174662;
}

body #review-root .preview-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-accent-blue);
  color: #fff;
}

body #review-root .preview-entry-button:hover {
  background: #0078cf;
}

/* Declaration preview: preserve the paper form and meaning-coded marks. */
body .preview-sheet {
  border-color: #dce4e8;
  border-radius: var(--ds-radius-xl);
  box-shadow: 0 18px 54px #182c3610;
}

body .preview-heading {
  border-bottom-color: #2f91e8 !important;
}

body .preview-heading h1,
body .preview-section h2,
body .preview-section h3 {
  color: #174662;
}

body .preview-eyebrow,
body .preview-toolbar a,
body .preview-sources a {
  color: #0078c9 !important;
}

body .preview-toolbar button {
  min-height: 44px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-accent-blue);
  color: #fff;
  box-shadow: none;
}

body .preview-toolbar button:hover {
  background: #0078cf;
}

body .preview-legend,
body .preview-evidence {
  border-color: #dce4e8;
  background: #f8fafb;
}

body .preview-field,
body .preview-item {
  border-radius: var(--ds-radius-md);
}

@media print {
  body .preview-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Administrative cards and navigation use the same quiet work surface. */
body .admin-panel,
body .admin-card {
  border-color: #dce4e8;
  border-radius: var(--ds-radius-xl);
  box-shadow: 0 18px 54px #182c360b;
}

body .admin-tabs a {
  border-radius: var(--ds-radius-pill);
  color: #315d78;
}

body .admin-tabs a:hover {
  background: #eaf5ff;
}

body .admin-tabs a.is-active {
  background: var(--ds-color-accent-blue);
  color: #fff;
}

body .admin-table th {
  background: #f3f8fb;
}

@media (max-width: 900px) {
  body:has(.workspace-intro) .workspace-intro::after {
    display: none;
  }
}

@media print {
  body.bg-slate-50 {
    background: #fff;
    color: #111;
  }
}
.review-help-note{margin-top:12px!important;font-size:13px;color:#61747b;max-width:900px}
.field-help{display:inline-block;margin-left:7px;font-weight:400}
.field-help-button{display:inline-grid;place-items:center;width:24px;height:24px;min-height:24px!important;padding:0!important;border:1px solid #bed3d3!important;border-radius:50%!important;background:#f0f8f7;color:#256660;font-size:13px;font-weight:700}
.field-help-button:hover,.field-help-button:focus{background:#dcefeb;border-color:#24877d!important}
.field-help-panel{position:fixed;z-index:100;width:380px;max-width:calc(100vw - 16px);max-height:70vh;overflow-y:auto;padding:18px;background:#fff;border:1px solid #c6dad8;border-radius:14px;box-shadow:0 12px 36px #173d4430;color:#30494d;font-size:13px;line-height:1.55;white-space:normal;text-align:left;font-weight:400}
.field-help-panel[hidden]{display:none}
.help-title,.help-paragraph,.help-footnote,.help-quote,.help-link{display:block}
.help-title{font-size:15px;color:#184d50;margin-bottom:10px}
.help-paragraph{margin:9px 0}
.help-quote{border-left:3px solid #9bc6c0;padding:6px 10px;background:#f3f8f7;overflow-wrap:anywhere}
.help-footnote{border-top:1px solid #e0e9e8;padding-top:10px;margin-top:12px;font-size:12px;color:#677b7e}
.help-link{margin-top:8px}
.help-details{margin-top:12px;border-top:1px solid #e0e9e8;padding-top:10px}
.help-details summary{cursor:pointer;color:#087c79;font-weight:600}
.field-finding{display:block;width:fit-content;margin-top:7px;border-radius:5px;padding:2px 7px;font-size:11px;font-weight:600}
.field-finding-error{background:#fff0f0;color:#a82e38;border:1px solid #e9bdc1}
.field-finding-warning{background:#fff6e5;color:#855214;border:1px solid #e9d4a9}
.preview-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 22px;margin-bottom:16px;background:#edf8f6;border:1px solid #b9ded8;border-radius:14px}.preview-entry p{font-size:13px;color:#527473;margin-top:3px}.preview-entry-button,.preview-toolbar button{background:#087c79;color:#fff;padding:9px 15px;border-radius:8px;font-size:13px}.preview-entry-button:hover{background:#066562;color:#fff;text-decoration:none}
.preview-sources{display:flex;gap:8px 14px;align-items:center;flex-wrap:wrap;margin-bottom:18px;font-size:12px}.preview-sources a{border-bottom:1px solid #9bc6c0;overflow-wrap:anywhere}
.preview-legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:20px;padding:13px 15px;border:1px solid #dae8e7;border-radius:10px;background:#f8fbfb;font-size:12px}.preview-legend strong{margin-right:8px}.preview-legend p{flex-basis:100%;color:#60777a;font-size:11px;margin-top:3px}.preview-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.preview-badge{display:inline-block;padding:2px 6px;border-radius:5px;border:1px solid transparent;font-size:10px;font-weight:700;line-height:1.35;cursor:help}.preview-badge-error{background:#fde9e9;border-color:#e6aaae;color:#a3313b}.preview-badge-warning,.preview-badge-missing,.preview-badge-unverified{background:#fff2d9;border-color:#ebcf95;color:#835b14}.preview-badge-ocr_match,.preview-badge-total_match{background:#e6f5ed;border-color:#9bcdb1;color:#176d45}.preview-badge-replaced,.preview-badge-new,.preview-badge-manual{background:#e9f0ff;border-color:#b4c8ed;color:#335e9c}.preview-badge-retained{background:#edf0f1;border-color:#cbd6d8;color:#55686c}.preview-old{font-size:11px;color:#667d81;margin-top:6px;overflow-wrap:anywhere}.preview-field-ocr_match,.preview-field-total_match{border-color:#a9d5b8;background:#f6fcf8}.preview-field-replaced,.preview-field-new,.preview-field-manual{border-color:#b9caec;background:#f7f9ff}.preview-field-unverified,.preview-field-missing{border-color:#ebd29c;background:#fffaf0}.preview-field-retained{background:#f9fbfb}
.preview-badge-wrap{position:relative;display:inline-block;z-index:1}.preview-badge-wrap[open],.preview-badge-wrap:hover{z-index:4}.preview-badge-wrap summary{list-style:none;cursor:help}.preview-badge-wrap summary::-webkit-details-marker{display:none}.preview-badge-tip{display:none;position:absolute;top:calc(100% + 6px);left:0;z-index:5;width:min(300px,80vw);padding:10px 12px;background:#153e43;color:#fff;border-radius:8px;box-shadow:0 8px 26px #173d4430;font-size:12px;font-weight:400;line-height:1.45;white-space:normal}.preview-badge-wrap[open] .preview-badge-tip,.preview-badge-wrap:hover .preview-badge-tip,.preview-badge-wrap:focus-within .preview-badge-tip{display:block}
.preview-change-replaced{border-left:4px solid #5b7fc3}.preview-change-retained{border-left:4px solid #a5b5b8}.preview-field-error{border-left-color:#c7454d}.preview-field-warning{border-left-color:#c79437}.preview-field-ocr_match,.preview-field-total_match{border-left-color:#279363}
.preview-sheet{max-width:1000px;margin:0 auto;background:#fff;border:1px solid #d8e2e4;border-radius:16px;box-shadow:0 10px 38px #173d4410;padding:42px}.preview-toolbar{display:flex;gap:18px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-bottom:26px;font-size:13px}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:3px solid #164d50!important;background:none!important}.preview-heading h1{font-size:30px;color:#163f43;line-height:1.2;margin:6px 0}.preview-heading p{color:#60777a;font-size:13px}.preview-eyebrow{color:#087c79!important;font-weight:700;letter-spacing:.07em;text-transform:uppercase;font-size:11px!important}.preview-stamp{border:1px solid #dbac64;color:#8b5c19;background:#fff9eb;padding:9px 13px;border-radius:8px;text-align:center;font-size:12px;font-weight:700}.preview-notice{background:#fff9ed;border-left:4px solid #dfa84c;padding:14px 17px;margin:22px 0;color:#6a551f;font-size:13px}.preview-section{padding:22px 0;border-top:1px solid #e2e9e9;break-inside:avoid-page}.preview-section h2{font-size:19px;color:#164d50;margin-bottom:15px}.preview-section h3{font-size:15px;color:#285458;margin:20px 0 10px}.preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.preview-field{border:1px solid #e0e8e9;border-radius:8px;padding:10px 12px;min-width:0;overflow-wrap:anywhere;break-inside:avoid-page}.preview-field dt{color:#64787d;font-size:11px;margin-bottom:5px}.preview-field dd{margin:0;font-size:14px;font-weight:600;color:#213d41}.preview-field-error{border-color:#e5aeb1;background:#fff6f6}.preview-field-warning{border-color:#ebd29c;background:#fffaf0}.preview-empty{color:#9a6f39!important;font-weight:400!important;font-style:italic}.preview-finding{font-size:11px;margin-top:6px;line-height:1.4}.preview-finding-error,.preview-list-error{color:#a3313b}.preview-finding-warning,.preview-list-warning{color:#8c641b}.preview-item{border:1px solid #d9e5e5;border-radius:12px;padding:18px;margin:15px 0;break-inside:avoid-page}.preview-item h3{margin:0 0 12px}.preview-evidence{margin-top:15px;padding:13px;background:#f4f8f8;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.preview-evidence strong{margin-right:6px}.preview-evidence blockquote{border-left:3px solid #7eaaa6;padding-left:10px;margin:10px 0;white-space:pre-wrap}.preview-evidence-note{font-size:11px;color:#687e82;margin-top:7px}.preview-list-finding{border-left:3px solid #cddcdb;padding:8px 11px;margin:7px 0;background:#f9fbfb;overflow-wrap:anywhere;font-size:13px}.preview-list-error{border-color:#c7454d;background:#fff6f6}.preview-list-warning{border-color:#c79437;background:#fffaf0}.preview-footer{border-top:1px solid #dce6e6;padding-top:15px;margin-top:18px;color:#71878b;font-size:11px}
@media(max-width:700px){.preview-sheet{padding:20px}.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.preview-heading{align-items:flex-start;flex-direction:column}}@media(max-width:420px){.preview-grid{grid-template-columns:1fr}}
@media print{@page{size:A4;margin:13mm}html,body,main{background:#fff!important;color:#111!important}.preview-sheet{max-width:none;padding:0;border:0;box-shadow:none}.preview-toolbar,body>header{display:none!important}main{padding:0!important}.preview-heading{padding-bottom:12px}.preview-section{padding:14px 0}.preview-field,.preview-item{break-inside:avoid}.preview-notice{margin:13px 0}.preview-footer{margin-top:12px}}

/* Numbered working overview above the editable comparison. */
.sad-review{background:#fff;border:1px solid #d5e1e3;border-radius:16px;padding:28px;margin-bottom:20px;box-shadow:0 10px 32px #173d4410}
.sad-review-top{display:flex;align-items:start;justify-content:space-between;gap:20px;flex-wrap:wrap;border-bottom:3px solid #164d50;padding-bottom:18px}
.sad-review-kicker{font-size:11px;font-weight:800;letter-spacing:.09em;color:#087c79}
.sad-review h2{font-size:27px;color:#183e43;margin:4px 0}
.sad-review-top p:not(.sad-review-kicker){font-size:13px;color:#657980}
.sad-review-actions{display:flex;gap:9px;flex-wrap:wrap}
.sad-review-actions a{display:inline-block;border:1px solid #aecacb;border-radius:7px;padding:9px 12px;font-size:12px;font-weight:700;color:#18575b;background:#f5fbfa}
.sad-review-actions a:hover{background:#e8f5f3;text-decoration:none}
.sad-review-notice{margin:16px 0;padding:11px 14px;border-left:4px solid #d69a37;background:#fff9ec;color:#6b5525;font-size:12px}
.sad-review-legend{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}
.sad-group{border-top:1px solid #dce6e7;padding:19px 0 5px}
.sad-group h3{font-size:17px;font-weight:700;color:#19494d;margin-bottom:12px}
.sad-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.sad-cell{min-width:0;border:1px solid #dce6e7;border-radius:6px;padding:9px 10px;overflow-wrap:anywhere;background:#fff}
.sad-cell-title{display:flex;align-items:flex-start;gap:6px;color:#667b80;font-size:11px;line-height:1.3}
.sad-box-number{flex:none;background:#e6efef;color:#23555a;border-radius:3px;padding:0 4px;font-weight:800}
.sad-cell-value{font-size:14px;font-weight:650;color:#213d41;white-space:pre-wrap;margin-top:6px}
.sad-cell-empty{color:#9b7a48;font-style:italic;font-weight:400}
.sad-change{display:inline-block;font-size:10px;font-weight:800;border-radius:4px;padding:2px 6px;margin-top:7px}
.sad-cell-changed{border-color:#deb95f;background:#fffae7}.sad-change-changed{background:#f7df92;color:#674a0d}
.sad-cell-added{border-color:#82c6a0;background:#f0fbf4}.sad-change-added{background:#bdeacc;color:#18583a}
.sad-cell-removed{border-color:#df9fa3;background:#fff1f1}.sad-change-removed{background:#f5c5c7;color:#8f252c}
.sad-cell-unexpected{border:2px solid #b91c1c;background:#fff0f0;box-shadow:inset 5px 0 0 #b91c1c}
.sad-cell-unexpected .sad-cell-value,.sad-cell-unexpected .sad-cell-title{color:#7f1d1d}
.sad-change-unexpected{background:#b91c1c;color:white}
.sad-cell-old{font-size:11px;color:#6d7779;margin-top:5px}
.sad-item{border:1px solid #dce6e7;border-radius:8px;padding:12px;margin:11px 0}
.sad-item h4{font-size:13px;color:#23555a;margin-bottom:10px}
.sad-item-removed{border-color:#dc969b;background:#fff8f8}
@media(max-width:900px){.sad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.sad-review{padding:16px}.sad-grid{grid-template-columns:1fr}}

/* Form layout follows the supplied blank SAD sheet; only mapped fields have values. */
#sad-form{overflow-x:auto;padding:4px 1px 14px}
.sad-paper{min-width:850px;border:2px solid #374449;background:#fff;color:#27353a;margin:0 0 20px;font-family:Arial,Helvetica,sans-serif}
.sad-paper-brand{font-size:11px;font-weight:800;letter-spacing:.06em;padding:7px 10px;border-bottom:2px solid #374449}
.sad-paper-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:stretch}
.sad-paper-box{min-width:0;border-right:1px solid #536166;border-bottom:1px solid #536166;padding:6px 8px;min-height:66px;background:#fff}
.sad-paper-box:last-child{border-right:0}
.sad-span-1{grid-column:span 1}.sad-span-2{grid-column:span 2}.sad-span-3{grid-column:span 3}.sad-span-4{grid-column:span 4}.sad-span-5{grid-column:span 5}.sad-span-6{grid-column:span 6}.sad-span-7{grid-column:span 7}.sad-span-8{grid-column:span 8}.sad-span-12{grid-column:span 12}
.sad-paper-box-title{display:flex;align-items:baseline;gap:7px;color:#39494e;font-size:11px;font-weight:700;border-bottom:1px solid #c6d0d2;padding-bottom:3px;margin-bottom:5px}
.sad-paper-number{font-size:14px;color:#111e23}
.sad-paper-entry{padding:4px 6px;margin:2px -2px;min-width:0;border-left:3px solid transparent}
.sad-paper-label{display:block;color:#68777a;font-size:10px;font-weight:600;line-height:1.25}
.sad-paper-line{min-height:22px;display:flex;align-items:center;min-width:0}
body #review-root .sad-paper input.sad-paper-input,body #review-root .sad-paper textarea.sad-paper-input{width:100%;max-width:none;min-width:0;min-height:24px;border:0;border-bottom:1px solid #a8b8bb;border-radius:0;background:transparent;padding:2px 0;color:#1e363c;font-size:13px;font-weight:650;line-height:1.4}
body #review-root .sad-source-panel input.sad-paper-input{width:100%;max-width:none;min-width:0;min-height:24px;border:0;border-bottom:1px solid #a8b8bb;border-radius:0;background:transparent;padding:2px 0;color:#1e363c;font-size:13px;font-weight:650;line-height:1.4}
body #review-root .sad-paper textarea.sad-paper-input{min-height:39px;resize:vertical}
.sad-paper-box-single .sad-paper-label{display:none}
body .sad-paper .sad-paper-input:focus{outline:2px solid #087c79;outline-offset:1px;background:#f4fbfa}
body .sad-paper .sad-paper-input.diff-invalid{border-bottom:2px solid #b91c1c;background:#fff0f0}
.sad-paper-value{font-size:13px;font-weight:650;white-space:pre-wrap;overflow-wrap:anywhere}
.sad-paper-unmodeled{font-size:10px;color:#8b979b;font-style:italic}
.sad-paper-box-unmodeled{background:#f4f6f6}
.sad-paper-note{margin:5px 0 0;font-size:10px;color:#8e651c;line-height:1.3}
.sad-paper-derived{font-size:17px;font-weight:700;margin-top:9px}
.sad-paper-entry.sad-cell-changed{background:#fff6d9;border-color:#bd8721}
.sad-paper-entry.sad-cell-added{background:#e8f8ef;border-color:#26865d}
.sad-paper-entry.sad-cell-removed{background:#ffe9e9;border-color:#bd424c}
.sad-paper-entry.sad-cell-unexpected{background:#ffe0e0;border-left:5px solid #b91c1c;box-shadow:none}
.sad-paper-entry.sad-cell-unexpected .sad-paper-label{color:#8c1d1d}
.sad-paper-entry .sad-change{margin:3px 0 0;font-size:9px}
.sad-paper-entry .sad-change[hidden]{display:none}
.sad-paper-entry .sad-cell-old{display:block;margin-top:3px;font-size:10px}
.sad-paper.sad-item{padding:0;border:2px solid #374449;border-radius:0;margin:14px 0 22px;background:#fff}
.sad-paper.sad-item-removed{border-color:#b91c1c;background:#fff7f7}
.sad-items>h3{font-size:18px;color:#19494d;margin:24px 0 9px}
.sad-source-panel{min-width:850px;border:1px solid #809096;margin:22px 0 5px;background:#fff}
@media print{.sad-source-panel{min-width:0}}
.sad-source-panel>h3{font-size:15px;color:#19494d;padding:10px;border-bottom:1px solid #809096}
.sad-review-actions button{border:1px solid #aecacb;border-radius:7px;padding:9px 12px;font-size:12px;font-weight:700;color:#18575b;background:#f5fbfa}
.sad-review-actions button:hover{background:#e8f5f3}
.sad-form-controls{align-items:center;margin-top:14px}
.sad-form-controls button{background:#f3faf9}
.sad-form-controls #save-draft-btn{background:#087c79;color:white}
.sad-form-controls button:disabled{opacity:.5;cursor:not-allowed}
#save-draft-status{font-size:12px;color:#176347}
.review-technical-details{margin:12px 0;padding:14px;border:1px solid #d5e1e3;border-radius:10px;background:#fff}
.review-technical-details>summary{cursor:pointer;color:#18575b;font-weight:700}
.review-technical-details[open]>summary{margin-bottom:15px}
.sad-source-details{margin:12px 0;border:1px solid #d5e1e3;border-radius:9px;padding:10px 14px}
.sad-source-details>summary{cursor:pointer;font-size:13px;font-weight:700;color:#18575b}
.sad-source-details .sad-source-panel{margin:12px 0 0}
.sad-paper-entry{position:relative}
.sad-paper-entry.sad-cell-changed:after,.sad-paper-entry.sad-cell-added:after,.sad-paper-entry.sad-cell-removed:after,.sad-paper-entry.sad-cell-unexpected:after{content:"";position:absolute;right:2px;top:3px;width:6px;height:6px;border-radius:50%;background:#bd8721}
.sad-paper-entry.sad-cell-added:after{background:#26865d}
.sad-paper-entry.sad-cell-removed:after,.sad-paper-entry.sad-cell-unexpected:after{background:#b91c1c}
.sad-paper-entry.sad-field-error{background:#ffe8e8;border-left-color:#b91c1c}
.sad-paper-entry.sad-field-warning{background:#fff5db;border-left-color:#bd8721}
.sad-paper-box-unmodeled{background:#fff}
.sad-paper-note,.sad-paper-unmodeled,.sad-paper-entry .sad-change,.sad-paper-entry .sad-cell-old{display:none}
@media print{@page{size:A4 landscape;margin:10mm}body>header,#review-root>div:first-child,#state-review>.preview-entry,#state-review>.bg-white,#diff-container,#state-review>.sticky,#state-approved,.sad-review-actions,.sad-review-legend,.sad-review-notice{display:none!important}main{max-width:none!important;padding:0!important}.sad-review{padding:0;border:0;box-shadow:none}#sad-form{overflow:visible}.sad-paper{min-width:0;break-inside:avoid-page;margin-top:12px}body .sad-paper input.sad-paper-input,body .sad-paper textarea.sad-paper-input{font-size:10px}body .sad-paper textarea.sad-paper-input{min-height:27px}.sad-review-top{border-bottom:0;padding:0 0 5px}}
*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:#f3f5f7;color:#263b43;line-height:1.55;font-size:15px}h1,h2,h3,p{margin:0}a{color:#087c79;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}input:not([type=checkbox]):not([type=file]),select,textarea{border:1px solid #cbd5da;border-radius:8px;padding:10px 12px;background:white;max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #239b94}input[type=checkbox]{accent-color:#087c79;width:17px;height:17px}ul{list-style:none;padding:0;margin:0}table{border-collapse:collapse;width:100%}th,td{padding:10px;text-align:left}th{color:#63767c;font-weight:600}code{font-size:.85em}header{background:#fff;border-bottom:1px solid #e2e8ec}header>div{min-height:78px!important}.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:21px;letter-spacing:-.6px;color:#183e43}.brand:hover{text-decoration:none}.brand-icon{background:#143e45;color:#fff;border-radius:11px;width:38px;height:38px;display:grid;place-items:center;font-size:19px;letter-spacing:-1px}.local-badge{font-size:9px;letter-spacing:1.2px;color:#14816e;border:1px solid #b8dbd0;background:#f0faf5;padding:3px 6px;border-radius:4px;margin-left:6px}main{padding-bottom:70px!important}.workspace-intro{padding:15px 0 24px}.eyebrow{color:#758a91;font-size:11px;font-weight:700;letter-spacing:2px;margin-bottom:10px}.workspace-intro h1{font-size:34px;line-height:1.2;letter-spacing:-1.2px;font-weight:650;color:#153d43}.workspace-intro p{color:#708187;margin-top:12px;max-width:720px}.local-notice{border:1px solid #d4e7e5;background:#eaf4f3;border-radius:10px;padding:12px 18px;font-size:13px;color:#47716f;margin-bottom:25px}section.bg-white,aside.bg-white,.max-w-sm.bg-white{border:1px solid #e0e7eb;border-radius:16px;box-shadow:0 5px 22px #173d4410}aside{align-self:start}#upload-form>div{padding:18px;border:1px solid #e0e7ec;border-radius:10px;background:#fafcfc}#upload-form>div:focus-within{border-color:#399a93;background:#f5fbfa}#upload-form input[type=file]{margin-top:12px;color:#74848b}input[type=file]::file-selector-button{border:1px solid #c7d7d9;border-radius:7px;padding:9px 13px;background:white;color:#26595c;margin-right:12px;cursor:pointer}#submit-btn{min-height:46px}#upload-form>div p{margin-top:5px}.bg-blue-600,.bg-green-600{background:#087c79!important;color:white}.bg-blue-600:hover,.bg-green-600:hover{background:#066562!important}.bg-slate-800{background:#25444b;color:white}.text-blue-600,.text-blue-700{color:#087c79}.diff-section{border-radius:12px;padding:20px;box-shadow:0 2px 8px #153d4305}.diff-section-title{color:#1c464b}.diff-table th{background:#f0f5f5}.diff-table td{padding:9px 10px}.diff-table input,.diff-table textarea{min-height:35px}.status-badge{padding:5px 10px;border-radius:6px;font-size:11px;font-weight:650}aside li{padding:15px 0!important;border-bottom:1px solid #edf1f3}.lang-switch a{border-radius:5px}.lang-switch a.is-active{background:#e9f3f1;color:#087c79}.sticky{z-index:5}.max-w-sm{margin-top:7vh;padding:34px!important}.max-w-sm h1{font-size:27px;letter-spacing:-.7px}.max-w-sm button{min-height:44px}
.hidden{display:none!important}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-8{gap:28px}.mx-auto{margin-left:auto;margin-right:auto}.max-w-7xl{max-width:1280px}.max-w-3xl{max-width:768px}.max-w-sm{max-width:410px}.w-full{width:100%}.w-48{width:192px}.min-h-screen{min-height:100vh}.text-xs{font-size:12px}.text-sm{font-size:13px}.text-xl{font-size:22px}.text-2xl{font-size:28px}.text-center{text-align:center}.font-semibold{font-weight:600}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-white{color:white}.text-slate-500{color:#76878e}.text-slate-600{color:#61747b}.text-slate-700{color:#455c63}.text-slate-900{color:#1c3e46}.text-red-700{color:#ad3939}.text-green-700{color:#14715a}.bg-white{background:#fff}.bg-slate-50{background:#f3f5f7}.bg-slate-100{background:#edf2f4}.bg-red-50{background:#fff1f1}.bg-green-50{background:#edfaf3}.border{border:1px solid #dce4e8}.border-b{border-bottom:1px solid #dce4e8}.border-t{border-top:1px solid #dce4e8}.border-red-200{border-color:#f2cccc}.border-green-200{border-color:#b9dfcf}.rounded,.rounded-md{border-radius:8px}.rounded-xl{border-radius:14px}.rounded-full{border-radius:999px}.p-4{padding:16px}.p-6{padding:26px}.p-8{padding:32px}.p-10{padding:40px}.px-1{padding-left:4px;padding-right:4px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:24px;padding-right:24px}.px-5{padding-left:20px;padding-right:20px}.py-2{padding-top:9px;padding-bottom:9px}.py-4{padding-top:16px;padding-bottom:16px}.py-8{padding-top:32px;padding-bottom:32px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mr-3{margin-right:12px}.space-y-4>*+*{margin-top:16px}.space-y-6>*+*{margin-top:22px}.sticky{position:sticky;background:#f3f5f7ed;backdrop-filter:blur(10px)}.bottom-0{bottom:0}.underline{text-decoration:underline}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.font-mono{font-family:Consolas,monospace}
@media(min-width:640px){.sm\:inline{display:inline!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:col-span-2{grid-column:span 2}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.workspace-intro h1{font-size:27px}.px-4{padding-left:16px;padding-right:16px}.p-6{padding:19px}.brand{font-size:18px}header>div{gap:12px}.local-badge{display:none}.workspace-intro{padding-top:0}.max-w-sm{margin-top:3vh}.diff-section{padding:12px}}
