/* ==========================================================================
   Variables y tokens de diseño corporativos Fijate Tools
   Herramienta: Generador de entrevistas STAR y rúbricas conductuales
   ========================================================================== */

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Tema oscuro por defecto */
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-card: #182234;
  --bg-card-hover: #1e293b;
  --bg-input: #0b1120;
  --border-color: #334155;
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-rgb: 59, 130, 246;

  --accent-purple: #a855f7;
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border-color: #cbd5e1;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #334155;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-rgb: 37, 99, 235;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  color: var(--text-dim);
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  width: 100%;
}

.tool-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1536px) {
  .tool-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.tool-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* Introducción y modo de uso */
.intro-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.intro-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.intro-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.intro-lead {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 900px;
}

/* Pestañas de cambio de modo */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Panel de configuración de la entrevista */
.config-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-header-title {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* Selectores y inputs canónicos */
.form-input,
.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 0.85rem;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-select option,
.form-select optgroup {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Pastillas de competencias */
.competency-selector-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pills-counter {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.competency-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}

.comp-pill:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.comp-pill.active {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: var(--primary);
  color: var(--text-main);
}

.comp-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background-color 0.2s;
}

.comp-pill.active .comp-indicator {
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.comp-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-blue   { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-emerald{ background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rose   { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-cyan   { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-teal   { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-slate  { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Barra de resumen de puntuación */
.score-summary-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .score-summary-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.summary-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.metric-val small {
  font-size: 1rem;
  color: var(--text-muted);
}

.metric-val.success { color: #34d399; }
.metric-val.good { color: #38bdf8; }
.metric-val.warning { color: #fbbf24; }
.metric-val.danger { color: #f87171; }

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-verdict {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.summary-verdict.neutral { background: var(--bg-surface); color: var(--text-dim); }
.summary-verdict.success { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.summary-verdict.good { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.summary-verdict.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.summary-verdict.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }

/* Tarjetas de preguntas en modo entrevistador */
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.question-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.question-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.question-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.question-title {
  font-size: 1.25rem;
  color: var(--text-main);
}

.star-prompt-box {
  background: var(--bg-surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
}

.star-lead-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Cuadrícula STAR */
.star-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .star-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .star-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.star-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
}

.star-letter {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.star-s .star-letter { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.star-t .star-letter { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.star-a .star-letter { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.star-r .star-letter { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.star-step-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.star-step-content strong {
  font-size: 0.85rem;
  color: var(--text-main);
}

.star-step-content p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-dim);
}

/* Repreguntas de sondeo */
.probing-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.probing-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.probing-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.probing-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Rúbricas objetivas 1-5 */
.rubric-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rubric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rubric-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.rubric-score-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--primary);
}

.rubric-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .rubric-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.rubric-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.rubric-option input[type="radio"] {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  accent-color: var(--primary);
}

.rubric-option:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.rubric-option.selected {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.score-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.score-desc {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-dim);
}

/* Notas del entrevistador */
.notes-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.notes-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.notes-textarea {
  width: 100%;
  min-height: 70px;
  padding: 0.75rem;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
  line-height: 1.4;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Barra de acciones inferiores */
.actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .actions-bar {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  min-height: 42px;
  width: 100%;
}

@media (min-width: 640px) {
  .btn {
    width: auto;
  }
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* Modo candidato (simulador) */
.candidate-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cand-timer-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.timer-digits.timer-warning {
  color: #f87171;
  animation: pulseWarning 1s infinite;
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.timer-btns {
  display: flex;
  gap: 0.5rem;
}

.timer-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s linear;
}

.cand-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cand-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cand-lead-prompt {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.cand-tips-accordion {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cand-tips-title {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.cand-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .cand-tips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cand-tip-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cand-letter {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}

.cand-letter.s { color: #c084fc; }
.cand-letter.t { color: #38bdf8; }
.cand-letter.a { color: #34d399; }
.cand-letter.r { color: #fbbf24; }

.cand-tip-col p {
  font-size: 0.78rem;
  line-height: 1.4;
}

.cand-checklist {
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cand-checklist h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cand-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  cursor: pointer;
}

.cand-chk {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Modales */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.custom-modal-overlay.active {
  display: flex;
}

.custom-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Estilos de impresión oficial A4 (@media print)
   ========================================================================== */

#print-sheet {
  display: none;
}

@media print {
  /* Ocultar toda la web */
  header.app-header,
  footer.fijate-footer,
  aside.tool-ad-sidebar,
  section.tools-ad-banner-section,
  .intro-hero,
  .tabs-nav,
  .config-panel,
  .score-summary-bar,
  .actions-bar,
  #interviewer-view,
  #candidate-view,
  .custom-modal-overlay {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
    line-height: 1.35;
    padding: 0;
    margin: 0;
  }

  .tool-layout {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #print-sheet {
    display: block !important;
    padding: 10mm;
  }

  .print-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 8mm;
    margin-bottom: 6mm;
  }

  .print-title {
    font-size: 15pt;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3mm;
  }

  .print-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2mm 6mm;
    font-size: 9pt;
  }

  .print-badge-score {
    text-align: right;
    border-left: 2px solid #e2e8f0;
    padding-left: 5mm;
  }

  .print-score-val {
    font-family: var(--font-mono);
    font-size: 20pt;
    font-weight: 800;
    color: #0f172a;
  }

  .print-score-lbl {
    font-size: 8pt;
    color: #64748b;
  }

  .print-questions-wrap {
    display: flex;
    flex-direction: column;
    gap: 5mm;
  }

  .print-question-block {
    page-break-inside: avoid;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3.5mm;
  }

  .print-q-header {
    display: flex;
    justify-content: space-between;
    font-size: 9pt;
    font-weight: 700;
    margin-bottom: 2mm;
    color: #0f172a;
  }

  .print-q-prompt {
    font-size: 9.5pt;
    font-style: italic;
    margin-bottom: 2.5mm;
  }

  .print-star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2mm;
    font-size: 8pt;
    background: #f8fafc;
    padding: 2mm;
    border: 1px solid #e2e8f0;
    margin-bottom: 2mm;
  }

  .print-rubric-summary {
    font-size: 8pt;
    margin-bottom: 2mm;
    color: #334155;
  }

  .print-notes-box {
    font-size: 8.5pt;
    border-top: 1px dashed #cbd5e1;
    padding-top: 2mm;
  }

  .print-footer-sign {
    page-break-inside: avoid;
    margin-top: 10mm;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 6mm;
  }

  .sign-box {
    width: 200px;
    text-align: center;
    font-size: 8pt;
  }

  .sign-line {
    border-bottom: 1px solid #000000;
    height: 15mm;
    margin-bottom: 2mm;
  }

  .sign-verdict {
    text-align: right;
    font-size: 10pt;
  }

  .sign-verdict span {
    font-weight: 800;
    display: block;
    font-size: 12pt;
  }
}
