:root {
  --bg: #0f172a;
  --bg-2: #1e293b;
  --panel: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --border: #cbd5e1;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #0f172a 0%, #1a1510 40%, #1e293b 100%);
}

.app-header {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto minmax(8rem, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 4rem 0.75rem 1.5rem;
  color: #f1f5f9;
}

.app-header__center {
  text-align: center;
  justify-self: center;
  min-width: 0;
}

.app-header__center h1 {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.title-3d {
  color: #f8fafc;
  text-shadow:
    1px 1px 0 #cbd5e1,
    2px 2px 0 #94a3b8,
    3px 3px 0 #64748b,
    4px 4px 0 #475569,
    5px 5px 0 #334155,
    6px 6px 0 #1e293b,
    7px 8px 12px rgba(0, 0, 0, 0.55);
}

.title-missing {
  color: #ff3b3b;
  text-shadow:
    1px 1px 0 #dc2626,
    2px 2px 0 #b91c1c,
    3px 3px 0 #991b1b,
    4px 4px 0 #7f1d1d,
    5px 5px 0 #450a0a,
    6px 6px 0 #1c1917,
    7px 8px 12px rgba(0, 0, 0, 0.6);
}

.app-header__sub {
  margin: 0.3rem 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.back-link {
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.9rem;
  justify-self: start;
  align-self: center;
}

.back-link:hover { text-decoration: underline; }

.app-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  align-self: center;
}

.app-root {
  margin: 0.5rem 1.25rem 2rem;
  padding: 1.25rem;
  background: var(--panel);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  min-height: 60vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: #f1f5f9; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { filter: brightness(0.95); }

.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.85rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  column-gap: 1rem;
  row-gap: 1.35rem;
  align-items: start;
}

.card-shell,
a.card-shell,
a.card-shell:link,
a.card-shell:visited,
a.card-shell:hover,
a.card-shell:active,
a.card-shell:focus {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
  border-radius: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-shell:hover,
a.card-shell:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.card-shell--sample {
  margin-bottom: 0.15rem;
}

.card-shell .card__name,
.card-shell .card__place,
.card-shell .card__meta,
.card-shell .card__sample-bar,
a.card-shell .card__name,
a.card-shell .card__place,
a.card-shell .card__meta,
a.card-shell .card__sample-bar {
  text-decoration: none !important;
}

.card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.card-shell--sample .card {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.card__minor-stamp {
  position: absolute;
  right: 0.4rem;
  bottom: 0.78rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  border: 2px solid #dc2626;
  border-radius: 0.2rem;
  color: #dc2626;
  background: rgba(254, 242, 242, 0.92);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
  box-shadow: 1px 1px 0 rgba(127, 29, 29, 0.2);
  pointer-events: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.card__ncmec-stamp {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  z-index: 2;
  padding: 0.18rem 0.42rem;
  border-radius: 0.2rem;
  color: #fff;
  background: #1d4ed8;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.card__amber-stamp {
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  z-index: 2;
  padding: 0.18rem 0.42rem;
  border-radius: 0.2rem;
  color: #111;
  background: #fbbf24;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.field-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.field-check input {
  width: auto;
  margin: 0;
}

.field-check span {
  font-weight: 600;
}

.badge-ncmec {
  background: #dbeafe;
  color: #1d4ed8;
}

.card__photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}

.card__body {
  padding: 0.75rem 0.8rem 0.9rem;
}

.card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.card__place {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 650;
}

.card__meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.card__sample-bar {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: #dc2626 !important;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  border: 1px solid #b91c1c;
  border-top: none;
  border-radius: 0 0 0.75rem 0.75rem;
  user-select: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: flex-end;
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.9rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.filter-bar__heading {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.filter-bar__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a;
}

.filter-bar__title--sub {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.9rem;
}

.results-count {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 550;
  color: #475569;
}

.results-count strong {
  color: #0f172a;
  font-weight: 750;
}

.load-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0.5rem;
  padding: 1rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
}

.load-more__meta {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 8.5rem;
  flex: 1 1 8.5rem;
  font-size: 0.85rem;
}

.filter-field span {
  font-weight: 650;
  color: #334155;
}

.filter-field select {
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  background: #fff;
}

.filter-field--sort {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
}

.filter-field--sort select {
  width: 7.25rem;
  min-width: 7.25rem;
  max-width: 7.25rem;
  box-sizing: border-box;
}

.filter-bar__row--sort-search {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid #dbe3ee;
}

.filter-bar__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.filter-bar__sort .filter-bar__title--sub {
  flex: 1 0 100%;
  margin: 0;
  padding-top: 0;
  border-top: none;
}

.filter-bar__sort-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
}

.filter-bar__search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.65rem 0.75rem;
  margin-left: auto;
}

.filter-field--search-in {
  flex: 0 0 auto;
  min-width: 0;
}

.filter-field--search-in select {
  width: 7.5rem;
  min-width: 7.5rem;
  max-width: 7.5rem;
  box-sizing: border-box;
}

.filter-field--search-q {
  flex: 0 1 auto;
  min-width: 0;
}

.filter-bar__search-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}

.filter-field--search-q input {
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  background: #fff;
  width: 12rem;
  min-width: 9rem;
  max-width: 14rem;
  box-sizing: border-box;
  flex: 0 1 12rem;
}

.filter-bar__search-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  flex: 0 0 auto;
}

.entry-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.65);
}
.entry-modal-overlay.is-open { display: flex; }

.entry-modal {
  width: min(100%, 46rem);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #faf8f5;
  border-radius: 0.85rem;
  border: 1px solid #a8a29e;
  box-shadow: var(--shadow);
}

.entry-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e7e5e4;
  position: sticky;
  top: 0;
  background: #faf8f5;
  z-index: 1;
}

.entry-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.entry-modal__body {
  padding: 1rem 1.1rem 1.25rem;
}

.record-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.65);
}
.record-modal-overlay.is-open { display: flex; }

.record-modal {
  width: min(100%, 50.4rem);
  max-height: min(96vh, 1080px);
  overflow: auto;
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid #a8a29e;
  box-shadow: var(--shadow);
}

.record-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #e7e5e4;
  position: sticky;
  top: 0;
  background: #faf8f5;
  z-index: 1;
}

.record-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
  max-width: min(100%, 18rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-modal__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.record-modal__body {
  padding: 1rem 1.1rem 1.35rem;
}

.record-modal__body .poster {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.print-fit-wrap {
  width: 100%;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

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

.form-grid .full { grid-column: 1 / -1; }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.field span { font-weight: 600; color: #334155; }

.char-limit {
  font-weight: 500 !important;
  color: var(--muted) !important;
  font-size: 0.85em;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
}

.field textarea { min-height: 6rem; resize: vertical; }

.field-hint {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.88rem;
  line-height: 1.35;
}

.form-expiry-note {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.45rem;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.photo-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.photo-slot {
  border: 1px dashed #94a3b8;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
}

.photo-slot img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.detail-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.detail-photos img {
  width: auto;
  max-width: min(100%, 280px);
  max-height: 320px;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.25rem;
  margin: 0 0 1.15rem;
}

.demo-grid__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  padding: 0;
}

.demo-grid__label {
  font-size: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: #334155;
}

.demo-grid__value {
  font-size: inherit;
  font-weight: 400;
  color: #0f172a;
}

.detail-dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0;
}

.detail-dl dt {
  font-weight: 700;
  color: #334155;
}

.detail-dl dd {
  margin: 0;
}

.notes-block {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 0.75rem;
  white-space: pre-wrap;
}

.admin-lock {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.admin-lock svg { width: 1.15rem; height: 1.15rem; }

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.65);
}
.admin-modal-overlay.is-open { display: flex; }

.admin-modal {
  width: min(100%, 34rem);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #faf8f5;
  border-radius: 0.85rem;
  border: 1px solid #a8a29e;
  box-shadow: var(--shadow);
}

.admin-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e7e5e4;
}

.admin-modal__head h2 { margin: 0; font-size: 1.1rem; }
.admin-modal__head p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }

.admin-modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #57534e;
}

.admin-modal__body { padding: 1rem 1.1rem 1.25rem; }

.admin-section {
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7e5e4;
}
.admin-section h3 { margin: 0 0 0.4rem; font-size: 1rem; }

.admin-list { display: grid; gap: 0.55rem; }
.admin-list__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
}

.hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.msg { padding: 0.55rem 0.7rem; border-radius: 0.45rem; margin: 0 0 0.75rem; font-size: 0.9rem; }
.msg-err { background: var(--danger-soft); color: var(--danger); }
.msg-ok { background: #dcfce7; color: #166534; }
.hidden { display: none !important; }

.phone-notice {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.75);
}
.phone-notice--hidden { display: none !important; }
.phone-notice__panel {
  width: min(100%, 26rem);
  padding: 1.35rem;
  background: #faf8f5;
  border-radius: 0.85rem;
  text-align: center;
}
.phone-notice__panel p { text-align: left; color: #44403c; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.badge-perm { background: #dbeafe; color: #1d4ed8; }
.badge-sample { background: #fee2e2; color: #b91c1c; }

@media (max-width: 720px) {
  .app-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem 1rem 0.5rem;
  }
  .app-header__center {
    justify-self: stretch;
    order: 1;
  }
  .app-header__center h1 {
    font-size: 1.55rem;
  }
  .back-link {
    order: 0;
  }
  .app-header__actions {
    order: 2;
    justify-content: stretch;
  }
  .app-header__actions .btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }
  .app-root {
    margin: 0.35rem 0.65rem 1.25rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 1.15rem;
  }
  .filter-bar {
    padding: 0.75rem;
  }
  .filter-field:not(.filter-field--sort):not(.filter-field--search-in):not(.filter-field--search-q) {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .filter-field:not(.filter-field--sort):not(.filter-field--search-in) select {
    min-height: 2.6rem;
    font-size: 1rem;
  }
  .filter-field--sort {
    flex: 0 0 auto;
    min-width: 0;
  }
  .filter-bar__row--sort-search {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar__search {
    margin-left: 0;
    justify-content: flex-start;
    width: 100%;
  }
  .filter-field--search-q {
    flex: 1 1 auto;
  }
  .filter-field--search-q input {
    flex: 1 1 10rem;
    width: auto;
    max-width: none;
  }
  .form-grid,
  .photo-pick {
    grid-template-columns: 1fr;
  }
  .detail-dl {
    grid-template-columns: 1fr;
  }
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .poster {
    width: 100%;
    max-width: 100%;
  }
  .entry-modal,
  .record-modal,
  .admin-modal {
    width: min(100%, 100vw);
    max-height: 94dvh;
    margin: 0.35rem;
    border-radius: 0.75rem;
  }
  .entry-modal__body,
  .record-modal__body,
  .admin-modal__body {
    max-height: calc(94dvh - 4.5rem);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .field input,
  .field select,
  .field textarea {
    min-height: 2.6rem;
    font-size: 1rem;
  }
  .btn {
    min-height: 2.6rem;
  }
}

@media (max-width: 420px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-header__center h1 {
    font-size: 1.35rem;
  }
}

@page {
  size: letter portrait;
  margin: 0.45in;
}

@media print {
  html,
  body {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    overflow: hidden !important;
  }
  .no-print,
  .admin-lock,
  .admin-modal-overlay,
  .entry-modal-overlay,
  .phone-notice,
  .app-header,
  .app-root {
    display: none !important;
  }
  .record-modal-overlay.is-open {
    display: block !important;
    position: static !important;
    inset: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: 100% !important;
    height: auto !important;
  }
  .record-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .record-modal__body {
    padding: 0 !important;
    overflow: visible !important;
  }
  .print-fit-wrap {
    width: 7.6in;
    height: 10.1in;
    overflow: hidden;
    position: relative;
  }
  .poster {
    page-break-inside: avoid;
    page-break-after: avoid;
    width: 7.6in !important;
    max-width: 7.6in !important;
    margin: 0 !important;
    transform-origin: top left;
    box-sizing: border-box;
  }
  .poster.is-print-scaled {
    /* scale set inline by JS */
  }
  .poster__banner {
    background: #b91c1c !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 1.55rem;
    padding: 0.45rem;
    margin-bottom: 0.45rem;
  }
  .poster__name {
    font-size: 1.25rem;
    margin: 0 0 0.45rem;
  }
  .detail-photos {
    gap: 0.45rem;
    margin-bottom: 0.55rem;
  }
  .detail-photos img {
    max-width: 3.1in;
    max-height: 3.4in;
    object-fit: contain;
    background: #fff;
  }
  .demo-grid {
    gap: 0.25rem 0.75rem;
    margin: 0 0 0.55rem;
  }
  .demo-grid__item {
    grid-template-columns: 1.35in 1fr;
  }
  .demo-grid__label {
    font-size: 0.88rem;
  }
  .demo-grid__value {
    font-size: 0.88rem;
    font-weight: 400;
  }
  .detail-dl {
    grid-template-columns: 1.6in 1fr;
    gap: 0.2rem 0.45rem;
    font-size: 0.88rem;
  }
  .notes-block {
    margin-top: 0.55rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
    max-height: 1.6in;
    overflow: hidden;
  }
  .poster__contact {
    margin: 0.55rem 0 0;
    padding: 0.45rem 0.4rem;
    font-size: 0.9rem;
  }
}

.poster {
  width: 50%;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.poster__banner {
  background: #b91c1c;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.poster__name {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.poster__contact {
  margin: 1.35rem 0 0;
  padding: 0.85rem 0.75rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: #7f1d1d;
  background: #fef2f2;
  border: 2px solid #b91c1c;
  border-radius: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.error-banner {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
