:root {
  --navy-950: #040b16;
  --navy-900: #071525;
  --navy-800: #0c2138;
  --navy-700: #143049;
  --scarlet: #b91c1c;
  --scarlet-bright: #dc2626;
  --gold: #d4a84b;
  --gold-soft: #e8c878;
  --sand: #c4b59a;
  --text: #f2efe8;
  --text-muted: #9aa8b8;
  --line: rgba(212, 168, 75, 0.35);
  --danger: #f87171;
  --success: #4ade80;
  --warning: #fbbf24;
  --radius: 10px;
  --font-display: "Black Han Sans", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(185, 28, 28, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 168, 75, 0.08), transparent 50%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 45%, #0a1c30 100%);
  background-attachment: fixed;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.shell-narrow {
  width: min(460px, calc(100% - 2rem));
}

.shell-register {
  width: min(980px, calc(100% - 2rem));
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(212, 168, 75, 0.85),
    0 0 0 5px rgba(185, 28, 28, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

.emblem img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.emblem-lg {
  width: 88px;
  height: 88px;
}

.brand-text h1,
.brand-text .brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text);
}

.brand-text p {
  margin: 0.2rem 0 0;
  color: var(--sand);
  font-size: 0.82rem;
}

.card {
  background: linear-gradient(180deg, rgba(20, 48, 73, 0.88), rgba(7, 21, 37, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.2);
}

.card-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.card-header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.tab.active {
  background: linear-gradient(180deg, var(--scarlet-bright), var(--scarlet));
  color: #fff;
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.35);
}

.field {
  margin-bottom: 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  color: var(--sand);
  font-weight: 600;
}

.field .hint {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(154, 168, 184, 0.28);
  background: rgba(4, 11, 22, 0.72);
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.18);
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.radio-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-pill {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(154, 168, 184, 0.28);
  background: rgba(4, 11, 22, 0.55);
  cursor: pointer;
}

.radio-pill input {
  width: auto;
  accent-color: var(--scarlet);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, var(--scarlet-bright), #8f1515);
  color: #fff;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.35);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1205;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(154, 168, 184, 0.35);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.btn-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.link-row {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.alert {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
}

.alert-info {
  background: rgba(212, 168, 75, 0.1);
  border: 1px solid rgba(212, 168, 75, 0.28);
  color: var(--gold-soft);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.badge-approved {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.badge-disabled {
  background: rgba(154, 168, 184, 0.18);
  color: #cbd5e1;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(400px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .layout-split {
    grid-template-columns: minmax(360px, 0.45fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
}

.idea-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: calc(100vh - 280px);
  min-height: 320px;
  overflow: auto;
  padding-right: 0.2rem;
}

.submit-top {
  margin: 0 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.2);
}

.form-section {
  margin-bottom: 1.35rem;
  padding-bottom: 0.35rem;
}

.form-section-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.22);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

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

.form-grid .field {
  margin-bottom: 0;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

.register-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.register-actions .btn-primary {
  width: auto;
  min-width: 180px;
}

.idea-item {
  text-align: left;
  border: 1px solid rgba(154, 168, 184, 0.2);
  background: rgba(4, 11, 22, 0.55);
  color: var(--text);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.idea-item:hover,
.idea-item.active {
  border-color: var(--gold);
  background: rgba(212, 168, 75, 0.08);
}

.idea-item .title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.idea-item .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.idea-item .score-chip {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--gold-soft);
  font-weight: 700;
}

.score-total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-soft);
}

.score-total span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.criteria {
  border: 1px solid rgba(154, 168, 184, 0.18);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.criteria-compact {
  margin-bottom: 0;
  padding: 0.7rem 0.75rem;
}

.criteria-compact .criteria-head {
  margin-bottom: 0.45rem;
  align-items: center;
}

.criteria-compact .criteria-head h3 {
  font-size: 0.92rem;
}

.criteria-compact .criteria-head p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
}

.criteria-compact .score-value {
  min-width: 42px;
  font-size: 1.15rem;
  padding: 0.15rem 0.4rem;
}

.max-label {
  color: var(--sand);
  font-weight: 600;
  font-size: 0.85em;
}

.score-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.score-buttons button {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(154, 168, 184, 0.28);
  background: rgba(4, 11, 22, 0.65);
  color: var(--text);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  line-height: 1;
}

.score-buttons button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.score-buttons button.active {
  background: linear-gradient(180deg, var(--scarlet-bright), var(--scarlet));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
}

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

.criteria-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.criteria-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--gold-soft);
}

.criteria-head p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.score-value {
  min-width: 52px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  background: var(--scarlet);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

.eval-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.card-header-compact {
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
}

.card-header-compact h2 {
  font-size: 1.15rem;
}

.shell-eval {
  padding-top: 1.1rem;
  padding-bottom: 1.25rem;
}

.topbar-compact {
  margin-bottom: 0.75rem;
}

.file-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(154, 168, 184, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  color: var(--gold-soft);
  font-weight: 600;
}

.preview-box-compact {
  padding: 0.55rem;
  margin-bottom: 0.85rem;
}

.preview-box-compact .preview-frame {
  min-height: 520px;
  height: 58vh;
  max-height: none;
}

.preview-box-compact .preview-image {
  max-height: 58vh;
}

.preview-box-compact .preview-fallback {
  padding: 1.2rem 0.75rem;
  font-size: 0.9rem;
}

.comment-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.comment-row label {
  padding-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--sand);
  font-weight: 600;
  white-space: nowrap;
}

.comment-row textarea {
  min-height: 64px;
  margin: 0;
}

@media (max-width: 720px) {
  .comment-row {
    grid-template-columns: 1fr;
  }
}

.dropzone {
  border: 1.5px dashed rgba(212, 168, 75, 0.45);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(4, 11, 22, 0.45);
  color: var(--text-muted);
  transition: 0.15s ease;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: var(--gold);
  background: rgba(212, 168, 75, 0.1);
  color: var(--gold-soft);
}

.dropzone strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(154, 168, 184, 0.18);
  border-radius: 10px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}

table.data th,
table.data td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(154, 168, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

table.data th {
  background: rgba(0, 0, 0, 0.35);
  color: var(--sand);
  font-weight: 700;
  white-space: nowrap;
}

table.data tr:hover td {
  background: rgba(212, 168, 75, 0.04);
}

.rank {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--scarlet);
  color: #fff;
  font-weight: 800;
}

.rank.gold {
  background: linear-gradient(180deg, #f5d76e, #c9a227);
  color: #1a1205;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #12283f, #071525);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.modal h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

.modal p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.signature-pad {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  border: 1px solid rgba(154, 168, 184, 0.3);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.admin-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

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

.footer-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@media print {
  html,
  body {
    background: #fff !important;
    background-image: none !important;
    background-color: #fff !important;
    color: #000 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  html::before,
  html::after,
  body::before,
  body::after,
  .no-print {
    display: none !important;
    background: none !important;
  }

  .shell,
  .shell * {
    box-shadow: none !important;
  }

  .shell {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    background-image: none !important;
  }

  .card,
  .admin-panel,
  #panel-results,
  .results-view,
  #view-overall,
  #view-evaluator {
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #000 !important;
  }

  .print-only {
    display: block !important;
  }

  .print-title,
  .print-title h1,
  .print-title p,
  #print-date {
    color: #000 !important;
  }

  #results-summary,
  .alert,
  .alert-info,
  .print-summary-overall {
    background: transparent !important;
    border: 1px solid #999 !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .table-wrap {
    overflow: visible !important;
    border: none !important;
  }

  table.data,
  table.results-print-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    font-size: 10px !important;
    border-collapse: collapse !important;
  }

  table.data th,
  table.data td,
  table.results-print-table th,
  table.results-print-table td {
    color: #000 !important;
    background: transparent !important;
    border: 1px solid #999 !important;
    padding: 4px 3px !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
    font-size: 10px !important;
  }

  table.data th,
  table.results-print-table th {
    font-weight: 700 !important;
    text-align: center !important;
  }

  table.data strong,
  table.results-print-table strong {
    color: #000 !important;
    font-size: 10px !important;
  }

  .rank,
  .rank.gold {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    min-width: 1.4rem;
    height: 1.4rem;
    font-size: 10px !important;
    box-shadow: none !important;
  }

  .print-title h1 {
    font-size: 16px !important;
    color: #000 !important;
  }

  .print-title p,
  .print-date-overall {
    font-size: 11px !important;
    color: #000 !important;
  }

  .result-comment-title,
  #comments-wrap,
  #comments-wrap h3,
  #comments-wrap p,
  #comments-wrap strong,
  .criteria {
    color: #000 !important;
    background: transparent !important;
    border-color: #999 !important;
    font-size: 11px !important;
  }

  .card-header h2,
  .card-header p {
    color: #000 !important;
  }

  .evaluator-sheet {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .evaluator-sheet-head,
  .evaluator-sheet-head h3,
  .evaluator-sheet-head p,
  .score-total,
  .score-total span {
    color: #000 !important;
    border-color: #999 !important;
    background: transparent !important;
  }

  .score-total {
    border: 1px solid #999 !important;
    font-size: 12px !important;
  }

  body.print-overall #view-evaluator,
  body.print-overall .results-tabs,
  body.print-overall .no-print {
    display: none !important;
  }

  body.print-overall #view-overall {
    display: block !important;
  }

  body.print-evaluator #view-overall,
  body.print-evaluator .results-tabs,
  body.print-evaluator .no-print,
  body.print-evaluator .evaluator-print-controls {
    display: none !important;
  }

  body.print-evaluator #view-evaluator,
  body.print-evaluator #view-evaluator.results-view {
    display: block !important;
  }

  body.print-evaluator .evaluator-sheet.hidden-sheet {
    display: none !important;
  }

  body.print-evaluator-all #view-overall,
  body.print-evaluator-all .results-tabs,
  body.print-evaluator-all .no-print,
  body.print-evaluator-all .evaluator-print-controls {
    display: none !important;
  }

  body.print-evaluator-all #view-evaluator,
  body.print-evaluator-all #view-evaluator.results-view {
    display: block !important;
  }

  body.print-evaluator-all .evaluator-sheet {
    display: block !important;
    page-break-after: always;
    break-after: page;
  }

  body.print-evaluator-all .evaluator-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}

.print-only {
  display: none;
}

.result-comment-title {
  margin: 0 0 0.5rem;
  color: var(--gold-soft);
}

.results-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.results-tab.active {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.results-view {
  display: none;
}

.results-view.active {
  display: block;
}

.evaluator-sheet {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(154, 168, 184, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.evaluator-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(212, 168, 75, 0.2);
}

.evaluator-sheet-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.evaluator-sheet-head p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.evaluator-sheet.hidden-sheet {
  display: none;
}

.preview-box {
  border: 1px solid rgba(154, 168, 184, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.preview-box .preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.preview-box .preview-head strong {
  color: var(--gold-soft);
}

.preview-frame {
  width: 100%;
  min-height: 420px;
  height: 52vh;
  border: 0;
  border-radius: 8px;
  background: #0b1220;
}

.preview-image {
  display: block;
  max-width: 100%;
  max-height: 52vh;
  margin: 0 auto;
  border-radius: 8px;
}

.preview-fallback {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}

.modal-wide {
  width: min(960px, 100%);
}

.modal-wide .preview-frame {
  min-height: 70vh;
}

.print-title {
  text-align: center;
  margin-bottom: 1rem;
}

.print-title h1 {
  margin: 0;
  font-size: 1.4rem;
}
