:root {
  --bg: #050607;
  --bg-2: #0a0d0f;
  --panel: rgba(18, 21, 23, 0.9);
  --panel-strong: rgba(24, 28, 31, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --ink: #f7f7f2;
  --muted: #b9bbb7;
  --quiet: #858984;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #d8d1bd;
  --accent-2: #92b6a4;
  --accent-dark: #101412;
  --accent-soft: rgba(216, 209, 189, 0.12);
  --danger: #ff8c7f;
  --success: #a9d9bf;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, rgba(216, 209, 189, 0.2), transparent 34rem),
    linear-gradient(180deg, #101214 0%, var(--bg) 48%, #030404 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--ink);
}

a {
  color: inherit;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 12%, rgba(146, 182, 164, 0.14), transparent 18rem),
    radial-gradient(circle at 90% 8%, rgba(216, 209, 189, 0.12), transparent 20rem);
  opacity: 0.8;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1020px);
  margin: 0 auto;
  padding: 28px 14px 64px;
  overflow-x: clip;
}

.form-view,
.history-view,
.details-view,
.summary-view {
  min-width: 0;
}

.brand-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}

.brand-header.compact {
  margin-bottom: 18px;
}

.print-document-header {
  display: none;
}

.top-bar {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
  min-width: 0;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

a.nav-link,
a.link-button,
a.logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  text-underline-offset: 0;
  white-space: nowrap;
  line-height: 1.15;
}

a.nav-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

a.nav-link:visited,
a.logout-link:visited,
a.link-button:visited {
  color: var(--muted);
}

a.secondary-button:visited {
  color: var(--accent);
}

a.ghost-button:visited {
  color: var(--muted);
}

a.nav-link:hover,
a.nav-link:focus-visible,
a.nav-link.active {
  color: var(--ink);
  border-color: rgba(216, 209, 189, 0.58);
  background: rgba(216, 209, 189, 0.1);
  text-decoration: none;
}

a.logout-link {
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.045);
}

a.logout-link:hover,
a.logout-link:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
  text-decoration: none;
}

.logo {
  width: clamp(92px, 24vw, 134px);
  height: clamp(92px, 24vw, 134px);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38), 0 0 0 8px rgba(255, 255, 255, 0.025);
}

.small-logo {
  width: 82px;
  height: 82px;
  display: block;
  margin: 0 auto 14px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-copy {
  max-width: 620px;
  margin: 2px auto 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  line-height: 1.55;
}

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

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-title {
  display: grid;
  gap: 2px;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 4vw, 1.55rem);
}

h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1rem;
}

.panel {
  background: linear-gradient(180deg, var(--panel), rgba(14, 17, 19, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel,
.form-panel,
.summary-panel {
  padding: clamp(18px, 4vw, 34px);
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  margin: 0 auto;
}

.form-panel {
  display: grid;
  gap: 24px;
}

.grid {
  display: grid;
  gap: 14px;
}

.two-columns,
.three-columns {
  grid-template-columns: 1fr;
}

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

label,
legend {
  color: #ecece6;
  font-size: 0.92rem;
  font-weight: 850;
}

label span {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

select option {
  color: #111;
  background: #fff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--quiet);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 209, 189, 0.9);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(216, 209, 189, 0.13);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: rgba(255, 140, 127, 0.9);
  background: rgba(255, 140, 127, 0.08);
}

.helper {
  margin: -1px 0 0;
  color: var(--quiet);
  font-size: 0.84rem;
  line-height: 1.45;
}

.error-message,
.login-error {
  min-height: 1.15rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 800;
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 10px;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 62px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  padding: 16px 16px 16px 54px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:hover {
  border-color: rgba(216, 209, 189, 0.72);
  transform: translateY(-1px);
}

.choice-card input {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  transform: translateY(-50%);
  accent-color: var(--accent);
}

.choice-card span {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.18;
}

.choice-card:has(input:checked) {
  border-color: rgba(216, 209, 189, 0.92);
  background: linear-gradient(180deg, rgba(216, 209, 189, 0.18), rgba(146, 182, 164, 0.1));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.large-choice .choice-card {
  min-height: 82px;
}

.large-choice .choice-card span {
  font-size: clamp(1.05rem, 5vw, 1.42rem);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 14px;
}

.items-list {
  display: grid;
  gap: 14px;
}

.item-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
  background: linear-gradient(180deg, #f3eee0, #cfc5ac);
  color: #121211;
  box-shadow: 0 16px 34px rgba(216, 209, 189, 0.16);
}

.primary-button:hover {
  background: linear-gradient(180deg, #fff8e9, #dacfb6);
  transform: translateY(-1px);
}

.secondary-button {
  border-color: rgba(216, 209, 189, 0.5);
  background: rgba(216, 209, 189, 0.08);
  color: var(--accent);
}

.secondary-button:hover {
  background: rgba(216, 209, 189, 0.13);
  border-color: rgba(216, 209, 189, 0.85);
}

.ghost-button {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.ghost-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.danger-button {
  border-color: rgba(255, 140, 127, 0.45);
  background: rgba(255, 140, 127, 0.09);
  color: var(--danger);
}

.danger-button:hover {
  background: rgba(255, 140, 127, 0.16);
  border-color: rgba(255, 140, 127, 0.75);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border-color: rgba(255, 140, 127, 0.35);
  background: rgba(255, 140, 127, 0.08);
  color: var(--danger);
  font-size: 1.45rem;
  line-height: 1;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.danger-button:active,
.icon-button:active {
  transform: translateY(1px);
}

.summary-panel {
  max-width: 840px;
  margin: 0 auto;
}

.wide-shell {
  width: min(100%, 1180px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.filters-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-actions {
  display: grid;
  gap: 10px;
  align-items: end;
}

.history-section {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.history-section h2 {
  font-size: 1.18rem;
}

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

.submission-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel), rgba(14, 17, 19, 0.94));
  box-shadow: var(--shadow);
}

.submission-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-width: 0;
}

.submission-card-main,
.detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.submission-number {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: none;
}

.submission-number:hover {
  color: var(--accent);
}

.submission-meta {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 950;
}

.status-badge.sent {
  color: #f4f0e6;
  background: rgba(255, 255, 255, 0.075);
}

.status-badge.in-progress {
  color: #f1dfb5;
  border-color: rgba(241, 223, 181, 0.38);
  background: rgba(241, 223, 181, 0.11);
}

.status-badge.done {
  color: #a9d9bf;
  border-color: rgba(169, 217, 191, 0.36);
  background: rgba(169, 217, 191, 0.1);
}

.status-badge.cancelled {
  color: #ffb4aa;
  border-color: rgba(255, 140, 127, 0.36);
  background: rgba(255, 140, 127, 0.1);
}

.parts-return-badge {
  justify-self: start;
  font-size: 0.72rem;
}

.parts-return-badge.waiting_for_return {
  color: #f1dfb5;
  border-color: rgba(241, 223, 181, 0.34);
  background: rgba(241, 223, 181, 0.09);
}

.parts-return-badge.returned {
  color: #a9d9bf;
  border-color: rgba(169, 217, 191, 0.34);
  background: rgba(169, 217, 191, 0.09);
}

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

.submission-data div {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.submission-data dt {
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.submission-data dd {
  margin: 4px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.compact-button {
  min-height: 42px;
  padding: 9px 13px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 34px);
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.attachment-card {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.attachment-preview-link {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  text-decoration: none;
  overflow: hidden;
}

.attachment-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.attachment-fallback {
  padding: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.file-link {
  display: inline-flex;
  max-width: 100%;
  color: var(--accent);
  border: 1px solid rgba(216, 209, 189, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.file-link:hover {
  border-color: rgba(216, 209, 189, 0.75);
  background: rgba(216, 209, 189, 0.09);
}

.status-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.status-timeline li::marker {
  color: var(--accent);
}

.status-timeline strong,
.status-timeline span {
  display: block;
}

.status-timeline span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-timeline p {
  margin: 8px 0 0;
  color: var(--ink);
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.summary-note {
  margin: 10px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.summary-content {
  display: grid;
  gap: 14px;
}

.summary-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.summary-block h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-row:first-of-type {
  border-top: 0;
}

.summary-label {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.summary-value {
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.summary-actions:not(.completion-actions) > a,
.summary-actions:not(.completion-actions) > button {
  flex: 1 1 150px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.detail-actions > .detail-action {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 56px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

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

.completion-actions > .summary-action {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 56px;
  padding: 12px 10px;
  text-align: center;
  line-height: 1.15;
}

.download-message,
.form-message {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.download-message {
  margin: 12px 0 0;
}

.form-message {
  margin: -6px 0 0;
}

.form-message.success,
.download-message.success {
  color: var(--success);
}

.form-message.error,
.download-message.error {
  color: var(--danger);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.photo-preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-preview figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 660px) {
  .app-shell {
    padding-top: 38px;
  }

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

  .three-columns {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }

  .choice-group:not(.large-choice) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .large-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-group legend,
  .choice-group .error-message {
    grid-column: 1 / -1;
  }

  .section-heading,
  .actions {
    flex-direction: row;
    align-items: center;
  }

  .actions > button,
  .actions > a {
    min-width: 156px;
  }

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

  .completion-actions > .summary-action {
    min-width: 0;
    min-height: 54px;
    padding: 12px 14px;
  }

  .detail-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-actions > .detail-action {
    min-height: 54px;
  }

  .summary-row {
    grid-template-columns: 210px 1fr;
    gap: 18px;
  }

  .top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logout-link {
    align-self: center;
  }

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

  .filters-panel {
    grid-template-columns: 1.4fr 1fr 1fr 0.95fr 0.95fr auto;
    align-items: end;
  }

  .filter-actions {
    grid-template-columns: auto auto auto;
    grid-column: 1 / -1;
    justify-content: end;
  }

  .submission-card-main,
  .detail-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .submission-data {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-inline: 12px;
  }

  .login-panel,
  .form-panel,
  .summary-panel {
    padding: 16px;
  }

  .choice-card {
    padding-right: 12px;
  }

  .item-card {
    padding: 14px;
  }

  h1 {
    font-size: clamp(1.85rem, 10.2vw, 2.48rem);
  }

  .login-title {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .nav-link,
  .logout-link {
    min-height: 42px;
    padding-inline: 12px;
  }
}

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

  :root {
    color-scheme: light;
  }

  html,
  body {
    width: auto;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .top-bar,
  .no-print,
  .download-message,
  .summary-panel > .logo,
  .summary-panel > .eyebrow,
  .summary-panel > #summaryTitle,
  .summary-note,
  .detail-header {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    overflow: visible;
    margin: 0;
  }

  .login-view,
  .form-view,
  .history-view,
  .app-nav,
  .logout-link,
  .admin-panel,
  .danger-panel,
  .summary-actions,
  .detail-actions {
    display: none !important;
  }

  .summary-view,
  .details-view {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .summary-panel,
  .detail-panel {
    color: #111;
    background: #fff;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: block;
    max-width: none;
    min-height: 0 !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-document-header {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 0 0 12px;
    text-align: center;
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-document-header .print-logo {
    display: block;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50%;
    object-fit: cover;
  }

  .print-document-header p {
    margin: 4px 0 0;
    color: #154b47 !important;
    font-size: 8.5px;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .print-document-header h1 {
    margin: 4px 0 0;
    color: #111 !important;
    font-size: 25px !important;
    line-height: 1.12;
  }

  .brand-header,
  .brand-header.compact {
    gap: 3px;
    margin-bottom: 8px;
  }

  .small-logo,
  .logo {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 4px !important;
    box-shadow: none;
  }

  .eyebrow {
    margin-bottom: 2px;
    color: #154b47 !important;
    font-size: 7px;
    letter-spacing: 0;
  }

  h1 {
    color: #111 !important;
    font-size: 24px !important;
    line-height: 1.12;
  }

  h2 {
    color: #111 !important;
    font-size: 12px !important;
  }

  .summary-note,
  .header-copy {
    margin: 4px 0 8px;
    color: #333 !important;
    font-size: 8px;
    line-height: 1.25;
  }

  .summary-block,
  .submission-card {
    color: #111;
    background: #fff;
    border-color: #ddd;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 6px;
    padding: 9px;
  }

  .summary-content {
    gap: 6px;
  }

  .summary-block h2 {
    margin-bottom: 5px;
    font-size: 12px !important;
  }

  .summary-row {
    grid-template-columns: 125px 1fr;
    gap: 8px;
    padding: 3px 0;
  }

  .summary-label {
    font-size: 6.8px;
  }

  .summary-value {
    font-size: 9.3px;
    line-height: 1.24;
  }

  .photo-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    margin-top: 6px;
  }

  .photo-preview {
    break-inside: avoid;
  }

  .photo-preview img {
    max-height: 70px;
  }

  .photo-preview figcaption {
    padding: 3px;
    font-size: 5.8px;
  }

  .file-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .attachment-preview-link,
  .attachment-card img {
    max-height: 70px;
  }

  .attachment-fallback {
    color: #111 !important;
    font-size: 6px;
  }

  .file-link {
    border: 0;
    padding: 0;
    color: #111 !important;
    font-size: 6px;
  }

  .summary-label,
  .summary-note,
  .summary-value,
  h1,
  h2,
  h3 {
    color: #111;
  }
}
