:root {
  --bg: #f3f4f2;
  --surface: #ffffff;
  --surface-muted: #f7f8f6;
  --border: #d7dcd8;
  --border-strong: #b8c0bb;
  --text: #1d2823;
  --text-muted: #627069;
  --accent: #126b61;
  --accent-dark: #0b5048;
  --focus: #2457a6;
  --supported: #1c7a50;
  --partial: #a66300;
  --external: #315f9e;
  --missing: #b42318;
  --critical-bg: #fff3f1;
  --amber-bg: #fff8e8;
  --blue-bg: #eef4ff;
  --shadow: 0 8px 24px rgba(28, 39, 34, 0.08);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(36, 87, 166, 0.32);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 22px;
  color: #f8fbf9;
  background: #17241f;
  border-bottom: 1px solid #314139;
}

.brand-block,
.commandbar,
.local-status,
.workflow-tab,
.summary-heading-row,
.section-heading,
.view-header,
.evidence-toolbar,
.passport-header,
.dialog-actions {
  display: flex;
  align-items: center;
}

.brand-block {
  min-width: 265px;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  color: #17241f;
  background: #c8e0d6;
  border: 1px solid #e5f1ec;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.brand-cn {
  color: #b8c8c0;
  font-size: 0.64em;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.local-status {
  gap: 7px;
  margin: 3px 0 0;
  color: #b8c8c0;
  font-size: 12px;
}

.local-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #7fd6a8;
  border-radius: 50%;
}

.commandbar {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 680;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: #2c887d;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.topbar .button.primary {
  color: #16221d;
  background: #c8e0d6;
  border-color: #dae9e3;
}

.topbar .button.secondary,
.topbar .button.quiet {
  color: #e4ece8;
  background: #24342d;
  border-color: #42564c;
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.button.quiet {
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}

.button.danger {
  color: #ffffff;
  background: var(--missing);
  border-color: #8e1c14;
}

.topbar .danger-command {
  color: #ffc8c3;
}

.file-button {
  cursor: pointer;
}

.app-alert {
  min-height: 0;
  padding: 0 22px;
  color: #173e35;
  background: #dff3ea;
  font-size: 13px;
  overflow: hidden;
  transition: padding 160ms ease;
}

.app-alert.has-message {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b5d9ca;
}

.app-alert.is-error {
  color: #781912;
  background: #ffdfdc;
  border-bottom-color: #efb2ac;
}

.app-main {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
}

.workflow-rail {
  min-width: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  padding: 20px 16px;
  background: #e9ece9;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.workflow-nav {
  display: grid;
  gap: 7px;
}

.workflow-tab {
  min-height: 58px;
  width: 100%;
  gap: 10px;
  padding: 8px 9px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}

.workflow-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
}

.workflow-tab.is-active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 2px 8px rgba(31, 42, 36, 0.06);
}

.workflow-tab > span:last-child {
  min-width: 0;
  display: grid;
}

.workflow-tab strong {
  overflow-wrap: anywhere;
}

.workflow-tab small {
  color: var(--text-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.step-index {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  background: #dfe4e0;
  border: 1px solid #c6cdc8;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 760;
}

.workflow-tab.is-active .step-index {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.rail-summary {
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid #ccd2ce;
}

.summary-heading-row {
  justify-content: space-between;
  gap: 10px;
}

.summary-heading-row h2,
.status-key h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 760;
}

.summary-heading-row strong {
  font-size: 18px;
}

.score-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  background: #ccd3ce;
  border-radius: 4px;
}

.score-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: inherit;
  transition: width 180ms ease;
}

.rail-summary p {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.rail-metrics {
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
}

.rail-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.rail-metrics dt {
  color: var(--text-muted);
  font-size: 12px;
}

.rail-metrics dd {
  margin: 0;
  font-size: 12px;
  font-weight: 720;
  text-align: right;
  overflow-wrap: anywhere;
}

.status-key {
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid #ccd2ce;
}

.status-key h2 {
  grid-column: 1 / -1;
  margin-bottom: 3px;
}

.status-key span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  display: inline-block;
  border-radius: 50%;
}

.status-dot.supported {
  background: var(--supported);
}

.status-dot.partial {
  background: var(--partial);
}

.status-dot.external {
  background: var(--external);
}

.status-dot.missing {
  background: var(--missing);
}

.workspace {
  min-width: 0;
  padding: 28px 32px 44px;
}

.workspace-view {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.view-header {
  min-height: 72px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.view-header h2 {
  margin: 2px 0 4px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 740;
  overflow-wrap: anywhere;
}

.view-header p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
}

.eyebrow,
.passport-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.mode-badge {
  max-width: 240px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #295440;
  background: #e1f1e9;
  border: 1px solid #bddaca;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}

.product-form,
.form-section {
  min-width: 0;
}

.form-section + .form-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.section-heading h3 {
  margin: 0;
  font-size: 16px;
}

.section-heading span {
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.field,
.checkbox-field {
  min-width: 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span,
.evidence-toolbar label span {
  font-size: 12px;
  font-weight: 690;
}

.field small,
.checkbox-field small {
  color: var(--text-muted);
  font-size: 11px;
}

.field input,
.field textarea,
.field select,
.evidence-toolbar select,
.evidence-control input,
.evidence-control select,
.evidence-control textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

.field textarea,
.evidence-control textarea {
  min-height: 78px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover,
.evidence-toolbar select:hover,
.evidence-control input:hover,
.evidence-control select:hover,
.evidence-control textarea:hover {
  border-color: #87948c;
}

.span-2 {
  grid-column: span 2;
}

.checkbox-field {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.checkbox-field span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.checkbox-field strong {
  font-size: 12px;
}

.sample-context {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.sample-context img {
  width: 100%;
  height: auto;
  aspect-ratio: 1586 / 992;
  object-fit: contain;
  background: #d8ded9;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.sample-context-copy {
  padding-top: 17px;
}

.sample-context-copy h3 {
  margin: 4px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.sample-context-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
}

.sample-context-copy ul {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.sample-context-copy li {
  padding-left: 16px;
  position: relative;
  font-size: 12px;
}

.sample-context-copy li::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: 7px;
  left: 0;
  background: var(--accent);
  border-radius: 50%;
}

.view-stat {
  min-width: 170px;
  display: grid;
  text-align: right;
}

.view-stat strong {
  font-size: 14px;
}

.view-stat span {
  color: var(--text-muted);
  font-size: 11px;
}

.evidence-toolbar {
  min-height: 66px;
  gap: 12px;
  margin-bottom: 15px;
  padding: 9px 12px;
  background: #e7ebe8;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.evidence-toolbar label {
  min-width: 175px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.evidence-toolbar select {
  min-width: 0;
}

.filter-result {
  margin: 0 0 0 auto;
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

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

.evidence-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(155px, 0.65fr) minmax(250px, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 6px;
}

.evidence-row[data-status="supported"] {
  border-left-color: var(--supported);
}

.evidence-row[data-status="partial"] {
  border-left-color: var(--partial);
}

.evidence-row[data-status="external"] {
  border-left-color: var(--external);
}

.evidence-row[data-status="missing"] {
  border-left-color: var(--missing);
}

.evidence-summary,
.evidence-controls {
  min-width: 0;
}

.evidence-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.evidence-title-row h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.weight-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.evidence-summary p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.category-label {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.evidence-controls {
  display: grid;
  gap: 9px;
}

.evidence-control {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.evidence-control span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.passport-screen-header {
  align-items: center;
}

.passport-document {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 34px 42px 38px;
  background: var(--surface);
  border: 1px solid #cfd5d1;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.passport-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 3px solid #1b342b;
}

.passport-header h2 {
  margin: 4px 0 6px;
  font-size: 27px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.passport-header p:not(.passport-kicker) {
  margin: 0;
  color: var(--text-muted);
}

.passport-score {
  min-width: 130px;
  display: grid;
  text-align: right;
}

.passport-score strong {
  font-size: 32px;
  line-height: 1;
}

.passport-score span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

.passport-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.passport-section h3 {
  margin: 0 0 13px;
  font-size: 15px;
}

.passport-section p {
  overflow-wrap: anywhere;
}

.identity-grid,
.category-score-grid,
.passport-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.identity-grid div,
.passport-stat-grid div {
  min-width: 0;
}

.identity-grid dt,
.passport-stat-grid dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.identity-grid dd,
.passport-stat-grid dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 640;
  overflow-wrap: anywhere;
}

.category-score-item {
  min-width: 0;
  padding: 11px;
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
}

.category-score-item strong {
  display: block;
  font-size: 17px;
}

.category-score-item span {
  color: var(--text-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.passport-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.passport-table th,
.passport-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.passport-table th {
  color: var(--text-muted);
  background: var(--surface-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.severity-label,
.passport-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 720;
  text-transform: capitalize;
}

.severity-label.critical,
.passport-status.missing {
  color: #831d16;
  background: var(--critical-bg);
  border-color: #e9b7b2;
}

.severity-label.high,
.passport-status.partial {
  color: #734600;
  background: var(--amber-bg);
  border-color: #e2c88f;
}

.severity-label.medium,
.passport-status.external {
  color: #244e88;
  background: var(--blue-bg);
  border-color: #b7c9e6;
}

.severity-label.low,
.passport-status.supported {
  color: #145a3b;
  background: #eef8f2;
  border-color: #b7d8c5;
}

.warning-list,
.empty-note {
  margin: 0;
}

.warning-list {
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.warning-list li {
  padding: 10px 12px;
  color: #721e17;
  background: var(--critical-bg);
  border-left: 3px solid var(--missing);
  font-size: 12px;
}

.empty-note {
  color: var(--text-muted);
  font-size: 12px;
}

.passport-boundary {
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 10px;
}

.passport-boundary strong {
  color: var(--text);
  font-size: 11px;
}

.passport-boundary p {
  margin: 6px 0 0;
}

.app-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  color: var(--text-muted);
  background: #e4e8e4;
  border-top: 1px solid var(--border);
  font-size: 11px;
  text-align: center;
}

.confirm-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(20, 31, 26, 0.56);
}

.confirm-dialog h2 {
  margin: 0;
  font-size: 19px;
}

.confirm-dialog p {
  margin: 9px 0 20px;
  color: var(--text-muted);
}

.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
}

@media (max-width: 1040px) {
  .topbar {
    align-items: flex-start;
  }

  .commandbar {
    max-width: 520px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .sample-context {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .sample-context-copy {
    padding-top: 0;
  }

  .evidence-row {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  }

  .evidence-row > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 0;
    display: grid;
    gap: 13px;
    padding: 13px 14px;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-cn {
    display: block;
    margin-top: 2px;
  }

  .commandbar {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .commandbar .button {
    min-width: 0;
    padding-right: 7px;
    padding-left: 7px;
    white-space: normal;
  }

  #printButton {
    grid-column: span 2;
  }

  .app-main {
    display: block;
  }

  .workflow-rail {
    position: static;
    height: auto;
    padding: 12px 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-y: visible;
  }

  .workflow-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .workflow-tab {
    min-height: 66px;
    justify-content: center;
    padding: 7px 5px;
    text-align: center;
  }

  .workflow-tab .step-index {
    display: none;
  }

  .workflow-tab small {
    display: none;
  }

  .rail-summary {
    margin-top: 13px;
    padding-top: 12px;
  }

  .rail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
  }

  .rail-metrics div {
    min-width: 0;
    display: grid;
    gap: 1px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.54);
    text-align: center;
  }

  .rail-metrics dd {
    text-align: center;
  }

  .status-key {
    display: none;
  }

  .workspace {
    padding: 20px 14px 34px;
  }

  .view-header {
    min-height: 0;
    display: grid;
    gap: 12px;
    margin-bottom: 19px;
    padding-bottom: 16px;
  }

  .view-header h2 {
    font-size: 21px;
  }

  .mode-badge,
  .view-stat {
    max-width: none;
    justify-self: start;
    text-align: left;
  }

  .form-grid,
  .sample-context,
  .evidence-row,
  .identity-grid,
  .category-score-grid,
  .passport-stat-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .evidence-row > :last-child {
    grid-column: auto;
  }

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

  .section-heading span {
    max-width: 130px;
  }

  .sample-context {
    gap: 15px;
  }

  .evidence-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .evidence-toolbar label {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .filter-result {
    grid-column: 1 / -1;
    margin: 0;
    text-align: left;
  }

  .evidence-row {
    gap: 13px;
    padding: 14px;
  }

  .passport-screen-header .button {
    width: 100%;
  }

  .passport-document {
    padding: 22px 17px 26px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .passport-header {
    display: grid;
    gap: 14px;
  }

  .passport-header h2 {
    font-size: 22px;
  }

  .passport-score {
    text-align: left;
  }

  .passport-table {
    display: block;
    overflow-x: auto;
  }

  .passport-table th,
  .passport-table td {
    min-width: 120px;
  }

  .app-footer {
    display: grid;
    gap: 1px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  :root,
  html,
  body {
    color: #000000;
    background: #ffffff;
  }

  .topbar,
  .app-alert,
  .workflow-rail,
  .app-footer,
  #productView,
  #evidenceView,
  .passport-screen-header,
  .confirm-dialog {
    display: none !important;
  }

  .app-main,
  .workspace,
  #passportView {
    display: block !important;
    margin: 0;
    padding: 0;
  }

  .passport-document {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .passport-section,
  .passport-table tr,
  .category-score-item,
  .warning-list li {
    break-inside: avoid;
  }

  .passport-table {
    font-size: 9pt;
  }
}
