/* ==========================================================================
   KRQ-53 Resilience Test App - CSS & Design System
   Mobile Optimized & High-Definition Print Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark & Light system */
  --bg-main: #0B0F19;
  --bg-card: rgba(22, 30, 49, 0.75);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --bg-input: rgba(15, 23, 42, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(99, 102, 241, 0.4);

  /* Primary Colors */
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --secondary: #10B981;
  --accent-gold: #F59E0B;
  --accent-rose: #EC4899;

  /* Domain Colors */
  --self-control-color: #818CF8;
  --interpersonal-color: #34D399;
  --positivity-color: #FBBF24;

  /* Typography */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Glassmorphism & Radii */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-radius: 20px;
  --btn-radius: 14px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-input: #FFFFFF;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.5);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  overscroll-behavior: contain;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 60px;
  position: relative;
}

/* Header Navbar */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366F1 0%, #10B981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-img-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px var(--primary-glow);
  border: 1px solid var(--border-color);
}

/* Footer Section - 보람감성교육연구소 */
.app-footer {
  margin-top: 40px;
  padding: 24px 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo {
  height: 48px;
  width: auto;
  max-width: 170px;
  border-radius: 10px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.footer-brand-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: left;
}

.footer-brand-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: left;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-subcopy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .brand-text h1 {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.icon-btn:hover, .icon-btn:active {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

/* Views Management */
.view-section {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- INTRO VIEW --- */
.hero-banner {
  text-align: center;
  padding: 20px 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818CF8;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 24px;
  word-break: keep-all;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.domain-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  transition: var(--transition-fast);
}

.domain-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.domain-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: inline-block;
}

.domain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.domain-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.meta-info-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 28px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item strong {
  color: var(--text-main);
}

/* Main Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: none;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--btn-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition-fast);
  width: 100%;
  max-width: 380px;
  min-height: 52px;
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  min-height: 48px;
}

.btn-secondary:hover, .btn-secondary:active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

/* --- TEST VIEW --- */
.test-header {
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0 10px;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.progress-text strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366F1 0%, #10B981 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Questions Stack / Items */
.question-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.question-card:last-child {
  border-bottom: none;
}

.question-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.question-text {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
  word-break: keep-all;
}

/* 5-Point Likert Radio Group (Mobile Touch Optimized) */
.likert-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.likert-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  min-height: 48px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  user-select: none;
}

.likert-full-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  word-break: keep-all;
  letter-spacing: -0.02em;
}

.likert-score {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.likert-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.2;
}

.likert-option:hover .likert-label, .likert-option:active .likert-label {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.likert-option input[type="radio"]:checked + .likert-label {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.likert-option input[type="radio"]:checked + .likert-label .likert-full-label {
  color: #FFFFFF;
  font-weight: 800;
}

/* Pagination Control Bar */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

/* --- RESULT VIEW --- */
.result-header {
  text-align: center;
  padding: 16px 0 28px;
}

.result-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.score-main-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--primary-glow);
  margin-bottom: 12px;
}

.score-val {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

.score-max {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.score-summary-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.score-summary-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  word-break: keep-all;
}

/* Benchmark pill */
.benchmark-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 0.82rem;
  margin-top: 10px;
  color: var(--text-muted);
}

.benchmark-pill strong {
  color: var(--accent-gold);
}

/* Radar Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px;
  height: 340px;
}

#radarCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Detailed Domain Breakdown Grid */
.domain-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

.domain-result-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

.domain-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 6px;
}

.domain-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.domain-result-score {
  font-size: 1rem;
  font-weight: 800;
}

.subfactor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.subfactor-item {
  background: var(--bg-input);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.subfactor-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.subfactor-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.subfactor-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Advice & Solutions Section */
.solution-section {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.solution-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #A5B4FC;
  display: flex;
  align-items: center;
  gap: 8px;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.solution-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.solution-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.solution-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.solution-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Action Buttons Footer */
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1E293B;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MOBILE RESPONSIVE ADAPTATION (<640px)
   ========================================================================== */
@media (max-width: 640px) {
  .container {
    padding: 12px 10px 40px;
  }

  .app-header {
    padding: 8px 0;
    margin-bottom: 14px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .glass-card {
    padding: 18px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .meta-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .question-text {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .likert-group {
    gap: 4px;
  }

  .likert-label {
    padding: 6px 2px;
    min-height: 44px;
    border-radius: 8px;
  }

  .likert-full-label {
    font-size: 0.68rem;
    line-height: 1.2;
    letter-spacing: -0.04em;
  }

  .chart-container {
    height: 290px;
  }

  .score-circle {
    width: 130px;
    height: 130px;
  }

  .score-val {
    font-size: 2.5rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions button {
    width: 100%;
    max-width: 100%;
  }

  .pagination-bar button {
    flex: 1;
  }
}

/* Extra small mobile (<380px) */
@media (max-width: 380px) {
  .likert-text {
    display: none; /* Show numbers only on ultra narrow screens */
  }
  .likert-score {
    font-size: 1.1rem;
    margin-bottom: 0;
  }
}

/* QR Code Modal Styles */
.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

.qr-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--card-radius);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-modal-overlay.show .qr-modal-card {
  transform: scale(1);
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.qr-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.qr-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.qr-close-btn:hover {
  color: var(--text-main);
}

.qr-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qr-display-box {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.qr-display-box img {
  display: block;
  width: 200px;
  height: 200px;
}

.qr-url-box {
  text-align: left;
  margin-bottom: 16px;
}

.qr-url-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.qr-url-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.88rem;
}

.qr-action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ==========================================================================
   HIGH-DEFINITION A4 PRINT STYLESHEET (FIXES LINE & PAGE CUTOFFS)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }

  html, body {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Hide Non-Print Elements */
  .app-header, 
  .header-actions, 
  .result-actions, 
  .toast-notice, 
  .pagination-bar, 
  .test-header,
  #themeToggleBtn {
    display: none !important;
  }

  /* Container & Glass Cards Reset for Print */
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .glass-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 14px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Prevent elements breaking awkwardly across pages */
  .domain-result-card, 
  .solution-card, 
  .solution-section, 
  .chart-container,
  .result-header,
  .score-main-display {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .result-header {
    padding: 10px 0 16px !important;
  }

  .score-circle {
    width: 110px !important;
    height: 110px !important;
    border: 3px solid #4F46E5 !important;
    background: #F8FAFC !important;
    box-shadow: none !important;
    margin-bottom: 8px !important;
  }

  .score-val {
    font-size: 2.2rem !important;
    color: #0F172A !important;
  }

  .score-summary-desc {
    color: #334155 !important;
    font-size: 8.5pt !important;
  }

  .chart-container {
    height: 270px !important;
    max-width: 440px !important;
    margin: 0 auto 10px !important;
  }

  #radarCanvas {
    max-height: 270px !important;
  }

  .domain-results-grid {
    gap: 10px !important;
    margin: 14px 0 !important;
  }

  .domain-result-card {
    padding: 12px 14px !important;
    border: 1px solid #E2E8F0 !important;
  }

  .subfactor-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 6px 10px !important;
  }

  .solution-section {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 14px 18px !important;
  }

  .solution-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    padding: 10px !important;
  }

  .solution-content p {
    color: #334155 !important;
  }
}
