/* Digital Pandas Web Design System - Gradient Identity (Flyer Theme)
 * Headline Gradient: linear-gradient(90deg, #636AAF 0%, #4C3C90 100%)
 * Header Background Gradient: linear-gradient(135deg, #636AAF 0%, #4C3C90 100%)
 * Page Background: Blurry Background Image (bg-blurry.jpg)
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Brand Gradient Definitions with Flyer Purple (#636AAF to #4C3C90) */
  --grad-headline: linear-gradient(90deg, #636AAF 0%, #4C3C90 100%);
  --grad-section: linear-gradient(135deg, #636AAF 0%, #4C3C90 100%);
  --grad-purple-hero: linear-gradient(135deg, #636AAF 0%, #4C3C90 100%);
  --grad-section-subtle: linear-gradient(135deg, rgba(99, 106, 175, 0.08) 0%, rgba(76, 60, 144, 0.08) 100%);
  --grad-button: linear-gradient(90deg, #636AAF 0%, #4C3C90 100%);
  --grad-button-hover: linear-gradient(90deg, #747bc0 0%, #5b4aa2 100%);
  --grad-accent-border: linear-gradient(90deg, #636AAF, #4C3C90);

  /* Gradient Stop Reference Colors */
  --c-purple: #4C3C90;
  --c-purple-light: #636AAF;
  --c-indigo: #4C3C90;
  --c-violet: #636AAF;
  --c-red: #F01C1C;
  --c-gold: #FFCC22;
  --c-deep-red: #F01D1D;
  --c-red-orange: #F55433;
  --c-peach: #FEB35B;

  /* Surfaces & Base Palette */
  --bg-page: #f6f4fa;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-subtle: #F5F2F9;
  --text-main: #141416;
  --text-muted: #5E6068;
  --text-light: #8E919B;
  --border-color: #E4DFEC;
  --border-focus: #4C3C90;

  /* Status Colors */
  --ok-main: #059669;
  --ok-bg: #ECFDF5;
  --ok-border: #A7F3D0;
  --no-main: #DC2626;
  --no-bg: #FEF2F2;
  --no-border: #FECACA;
  --warn-main: #D97706;
  --warn-bg: #FFFBEB;
  --warn-border: #FDE68A;

  /* Geometry */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-glow: none;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Scroll Padding for Sticky Header */
  --header-height: 110px;
}

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

html {
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f6f4fa;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Blurred background layer */
body::before {
  content: '';
  position: fixed;
  top: -60px;
  left: -60px;
  right: -60px;
  bottom: -60px;
  background-image: url('../images/bg-blurry.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(40px) saturate(135%);
  -webkit-filter: blur(40px) saturate(135%);
  z-index: -1;
  pointer-events: none;
  transform: scale(1.08);
}

/* Safe area support for modern phones */
@supports (padding: env(safe-area-inset-top)) {
  header {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  @media (max-width: 600px) {
    header {
      padding-top: calc(16px + env(safe-area-inset-top));
      padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
  }
}

/* Typography - All Headlines: Poppins Black (900) & Versal (ALL CAPS) */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display,
.section-head h2,
.welcome-card h2,
.decision-header h2,
.process-step-title,
.notice-header strong {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
}

.gradient-text,
.verlauf {
  background: linear-gradient(90deg, #636AAF 0%, #4C3C90 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-purple);
}

/* Global Top Header Banner - Subtle Purple Gradient (#636AAF to #4C3C90) */
header {
  background: linear-gradient(135deg, #636AAF 0%, #4C3C90 100%);
  color: #ffffff;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  height: auto;
  box-shadow: 0 4px 20px rgba(76, 60, 144, 0.15);
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Square Pendant Flag / Logo Plate attached to browser top edge */
.brand-logo-plate {
  background: #ffffff;
  padding: 12px 22px 14px 22px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -20px;
  right: 0;
  left: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-top: none;
  z-index: 55;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
  display: block;
}

.header-title-block {
  text-align: left;
  margin-right: auto;
}

.header-title-block h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #ffffff;
}

.header-title-block p {
  margin: 2px 0 0;
  font-size: clamp(0.7rem, 2.4vw, 0.88rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Main Layout */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  min-height: calc(100vh - var(--header-height) - 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#appShell,
.login-card,
.welcome-card {
  width: 100%;
}

/* Card Surfaces - Glassmorphism on Blurry Background */
.card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(99, 106, 175, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(76, 60, 144, 0.06);
  transition: var(--transition-normal);
  overflow: hidden;
}

/* Icon Badge for Section Headings */
.header-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(76, 60, 144, 0.18);
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}

.header-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Section Headings */
.section-head {
  padding: 24px 30px;
  border-bottom: 1.5px solid var(--border-color);
  background: #ffffff;
}

.section-head h2 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 22px;
  background: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  min-height: 44px;
  /* WCAG touch target minimum */
}

@media (hover: none) {
  .btn:hover:not(:disabled) {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-main);
    transform: none;
  }
}

.btn:hover:not(:disabled) {
  background: #FAF8FE;
  border-color: var(--c-purple);
  color: var(--c-purple);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Primary Button with Prominent Purple Gradient */
.btn.primary {
  background: var(--c-purple);
  border: none;
  color: #ffffff;
  font-weight: 800;
}

.btn.primary:hover:not(:disabled) {
  background: #5811b5;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn.danger {
  color: var(--no-main);
  background: #ffffff;
  border-color: var(--no-border);
}

.btn.danger:hover:not(:disabled) {
  background: var(--no-bg);
  border-color: var(--no-main);
}

.btn:disabled {
  background: #E4DFEC !important;
  border-color: #D4CDDF !important;
  color: #9C95A8 !important;
  cursor: not-allowed;
  transform: none !important;
}

/* Floating Toolbar */
#appShell {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.toolbar {
  background: rgba(251, 250, 246, 0.85);
  border: 1.5px solid rgba(109, 22, 217, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 26px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  position: sticky;
  top: 20px;
  z-index: 45;
  margin: 0 auto 26px;
  max-width: 100%;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.toolbar label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-purple);
  display: block;
  margin-bottom: 4px;
}

.toolbar input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-purple);
  background: #ffffff;
  transition: var(--transition-fast);
}

.toolbar input:focus {
  outline: none;
  border-color: var(--c-purple);
}

/* Main Content Grid Layout */
.main-content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  margin: 12px 0 24px;
}

/* Notice Column & Form Column */
.notice-column {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
  z-index: 10;
}

.form-column {
  min-width: 0;
}

/* Enhanced Glassmorphic Notice Card */
.notice {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(99, 106, 175, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(76, 60, 144, 0.06);
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
}

.notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent-border);
  opacity: 0.95;
}

.notice-content {
  padding: 24px;
  box-sizing: border-box;
}

.notice-header {
  margin-bottom: 14px;
  position: relative;
}

.notice-toggle-icon {
  display: none;
  position: absolute;
  right: 0;
  top: 2px;
  color: var(--c-purple);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.notice-badge {
  display: inline-block;
  background: rgba(99, 106, 175, 0.12);
  color: var(--c-purple);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 106, 175, 0.2);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.notice-header strong {
  display: block;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.05rem;
  color: var(--text-main);
  text-transform: uppercase !important;
  line-height: 1.35;
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  position: relative;
  padding-left: 18px;
}

.notice-body p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--c-purple);
  border-radius: 50%;
  opacity: 0.6;
}

.status {
  min-height: 24px;
  margin: 10px 0;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status:empty {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Customer Login Card */
.login-card {
  max-width: 900px;
  margin: 20px auto;
}

.customer-form {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.customer-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.customer-form input[type="text"],
.customer-form input[type="email"],
.customer-form input[type="tel"],
.customer-form input:not([type]) {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.96rem;
  background: #ffffff;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.customer-form input:focus {
  outline: none;
  border-color: var(--c-purple);
}

.customer-form input.invalid,
.customer-form input.invalid:focus {
  border-color: var(--no-main);
  background: var(--no-bg);
}

.customer-form small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.customer-form small svg {
  flex-shrink: 0;
}

.customer-form input {
  padding: 12px 16px;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .customer-form input {
    padding: 14px 16px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.consent:hover {
  background: #ffffff;
  border-color: var(--c-purple);
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c-purple);
  cursor: pointer;
}

.consent span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 500 !important;
}

.login-actions {
  margin-top: 26px;
}

.login-actions .btn {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.toolbar {
  display: none !important;
}

/* Main Application Layout Details */
#interviewCard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.completion-note {
  padding: 38px 30px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.completion-note h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--c-purple);
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.completion-note p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

.decision-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 992px) {
  .main-content-grid {
    grid-template-columns: 1fr;
  }
  .notice-column {
    position: relative;
    top: 0;
  }
}

.form-message {
  min-height: 28px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  display: none;
}

.form-message:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-message.error {
  background: var(--no-bg);
  border: 1.5px solid var(--no-border);
  color: var(--no-main);
}

.form-message.success {
  background: var(--ok-bg);
  border: 1.5px solid var(--ok-border);
  color: var(--ok-main);
}

/* Welcome Card */
.welcome-card {
  max-width: 900px;
  margin: 20px auto;
  padding: 38px;
}

.welcome-card h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.welcome-card p {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.process-step-item {
  background: #F5F2F9;
  border: 1.5px solid rgba(109, 22, 217, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.process-step-number {
  width: 38px;
  height: 38px;
  background: var(--c-purple);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.process-step-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--c-purple);
  margin-bottom: 4px;
}

.process-step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Question Option Cards */
.questions {
  padding: 8px 28px 28px;
}

.question {
  padding: 26px 0;
  border-bottom: 1.5px solid var(--border-color);
}

.question:last-child {
  border-bottom: 0;
}

.qtext {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.qnum {
  color: var(--c-purple);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding-top: 6px;
  margin-top: -6px;
  align-items: stretch;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option label {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  min-height: 52px;
  /* Better touch target */
}

@media (hover: none) {
  .option label:hover {
    border-color: var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    transform: none;
  }
}

.option label:hover {
  border-color: var(--c-purple);
  background: var(--bg-subtle);
  color: var(--c-purple);
  transform: translateY(-1px);
}

.option input:checked+label {
  border: 2px solid var(--c-purple);
  background: #F5F2F9;
  color: var(--c-purple);
  font-weight: 800;
  transform: translateY(-1px);
}

.option.wni input:checked+label {
  border-color: var(--warn-main);
  background: var(--warn-bg);
  color: var(--warn-main);
}

/* Progress Wrap */
.progress-wrap {
  padding: 26px 30px;
  border-bottom: 1.5px solid var(--border-color);
  background: #ffffff;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--c-purple);
}

.progress {
  height: 14px;
  background: #E4DFEC;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress>div {
  height: 100%;
  width: 0;
  background: var(--c-purple);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Single Question View */
.single-question {
  padding: 36px 30px;
}

.single-question .qtext {
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 26px;
  font-weight: 700;
}

.single-question .options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  overflow-x: visible;
  padding: 6px 4px 12px 4px;
  margin-top: -6px;
  align-items: stretch;
}

.single-question .option {
  flex: 1 1 auto;
  min-width: 0;
}

.single-question .option label {
  min-height: 80px;
  font-size: 0.82rem;
  padding: 12px 8px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-actions {
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c0-completion {
  font-weight: 800;
  font-size: 0.92rem;
}

.c0-completion.complete {
  color: var(--ok-main);
}

.locked-note {
  color: var(--text-light);
  font-size: 0.86rem;
}

.completion-note {
  padding: 44px 30px;
  text-align: center;
}

.completion-note h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

/* Automated Decision Card */
.decision {
  margin-top: 28px;
  padding: 36px 30px;
  text-align: center;
  background: #ffffff;
}

.decision-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.decision h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.decision-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-normal);
  margin-top: 8px;
}

.decision-value.yes {
  color: var(--ok-main);
  background: var(--ok-bg);
  border: 2px solid var(--ok-border);
}

.decision-value.no {
  color: var(--no-main);
  background: var(--no-bg);
  border: 2px solid var(--no-border);
}

.decision-value.pending {
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
}

.decision .disclaimer {
  margin: 18px auto 0;
  max-width: 800px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.decision-actions {
  margin-top: 22px;
}

/* Extended Results */
.extended {
  margin-top: 22px;
  padding: 32px;
  background: #ffffff;
}

.extended h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.score-big {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  padding: 24px;
  background: var(--grad-section-subtle);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(109, 22, 217, 0.25);
}

.score-big strong {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.score-big span {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.15rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.metric {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg-page);
  transition: var(--transition-fast);
}

.metric:hover {
  border-color: var(--c-purple);
  transform: translateY(-1px);
}

.metric b {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-purple);
  margin-bottom: 3px;
}

.metric small {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.print-columns-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

.print-col-left,
.print-col-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.print-col-right .trace {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  margin-top: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-color);
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

th {
  background: var(--grad-section-subtle);
  color: var(--c-purple);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.right {
  text-align: right;
}

.trace {
  margin-top: 22px;
  padding: 20px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
}

.trace ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--text-main);
}

.trace li {
  margin-bottom: 8px;
}

.muted {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Saved Runs List */
.saved {
  margin-top: 28px;
  padding: 32px;
  background: #ffffff;
}

.saved h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

.saved-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  transition: var(--transition-fast);
}

.saved-item:hover {
  border-color: var(--c-purple);
  background: #ffffff;
}

.saved-item b {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: var(--c-purple);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {

  /* Tablet improvements */
  :root {
    --header-height: 120px;
  }

  .main-content-grid,
  .print-columns-split {
    grid-template-columns: 1fr;
  }

  .notice-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .toolbar {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  header {
    padding: 20px 24px;
  }

  .header-title-block h1 {
    font-size: 1.3rem;
  }

  .header-title-block p {
    font-size: 0.85rem;
  }

  .notice {
    font-size: 0.92rem;
  }

  .notice strong {
    font-size: 0.98rem;
  }
}

@media (max-width: 992px) {
  .notice-header {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    padding-right: 32px;
  }

  .notice-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .notice-column.collapsed .notice-body {
    display: none !important;
  }

  .notice-column.collapsed .notice-toggle-icon {
    transform: rotate(-90deg);
  }

  .notice-column:not(.collapsed) .notice-header {
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  main {
    display: block;
    min-height: auto;
    margin: 8px auto 30px;
    padding: 0 14px;
  }

  header {
    padding: 16px 20px 20px;
    position: relative;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center;
    position: relative;
  }

  .header-brand {
    order: 1;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand-logo-plate {
    position: absolute;
    top: -20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 14px 28px 16px 28px;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 55;
  }

  .brand-logo-img {
    height: 46px;
    width: auto;
    max-width: 220px;
    display: block;
  }

  .header-title-block {
    order: 2;
    width: 100%;
    text-align: center;
    margin: 54px auto 0;
  }

  .header-title-block h1 {
    font-size: 1.68rem;
    line-height: 1.25;
    word-break: break-word;
    text-align: center;
    margin: 0;
    color: #ffffff;
  }

  .header-title-block p {
    font-size: clamp(0.65rem, 3.4vw, 1.08rem);
    text-align: center;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
  }

  .process-steps-grid {
    grid-template-columns: 1fr;
  }

  .process-step-item {
    text-align: left;
  }

  .welcome-card {
    padding: 24px;
  }

  .login-card {
    margin: 30px 16px;
  }

  .customer-form {
    padding: 24px;
  }

  .section-head h2 {
    font-size: 1.3rem;
  }

  .process-step-item {
    padding: 18px;
  }

  .options {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .question {
    padding: 20px 0;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .decision-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .decision-actions .btn {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
    min-height: 42px;
  }

  .status {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .customer-form input[type="text"],
  .customer-form input[type="email"],
  .customer-form input[type="tel"],
  .customer-form input:not([type]),
  .toolbar input {
    font-size: 16px !important;
    padding: 13px 14px;
    min-height: 44px;
  }

  .customer-form small {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
  }
}



@media (max-width: 600px) {

  /* Mobile enhancements */
  html {
    scroll-padding-top: 0;
  }

  .header-blur-overlay {
    display: none;
  }

  main {
    margin: 8px auto 30px;
    padding: 0 14px;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }

  header {
    padding: 14px 14px 18px;
    padding-top: max(14px, env(safe-area-inset-top));
    position: relative;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    position: relative;
  }

  .header-brand {
    order: 1;
    margin: 0 auto;
  }

  .brand-logo-plate {
    position: absolute;
    top: -16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 12px 24px 14px 24px;
    border-radius: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    background: #ffffff;
  }

  .brand-logo-img {
    height: 42px;
    max-width: 200px;
  }

  .header-title-block {
    order: 2;
    text-align: center;
    margin-top: 48px;
  }

  .header-title-block h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    word-break: break-word;
    text-align: center;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .header-title-block p {
    font-size: clamp(0.6rem, 3.5vw, 1.0rem);
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
  }

  .toolbar {
    grid-template-columns: 1fr;
    position: static;
    padding: 14px 18px;
    gap: 12px;
  }

  .toolbar label {
    font-size: 0.75rem;
  }

  .toolbar input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.92rem;
    min-height: 46px;
  }

  .login-card,
  .welcome-card,
  .decision,
  .extended,
  .notice,
  .trace {
    margin: 8px 0;
  }

  .customer-form,
  .welcome-card,
  .notice,
  .trace {
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .form-grid>div {
    margin-bottom: 0;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Automatically place 2-option choices (e.g. Ja / Nein) side-by-side on mobile */
  .options:has(> .option:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .single-question {
    padding: 20px 16px;
  }

  .single-question .qtext {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 18px;
    font-weight: 700;
  }

  .single-question .options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .single-question .option {
    flex: 1 1 auto;
  }

  .single-question .option label {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .single-question .option label:active {
    transform: scale(0.98);
  }

  .progress-wrap {
    padding: 16px 18px;
  }

  .progress-row {
    font-size: 0.86rem;
    margin-bottom: 8px;
  }

  .progress {
    height: 10px;
  }

  .qtext {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .qnum {
    font-size: 0.9rem;
  }

  /* Compact 2x2 grid for metrics on mobile */
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .saved-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .saved-item button {
    width: 100%;
  }

  .decision-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .decision-actions .btn {
    width: auto;
    flex: 1 1 auto;
    max-width: 100%;
    padding: 9px 14px;
    font-size: 0.85rem;
    min-height: 40px;
  }

  .decision-actions .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .note {
    font-size: 0.85rem;
  }

  .status {
    display: none !important;
  }

  .notice {
    font-size: 0.9rem;
  }

  .notice strong {
    font-size: 0.95rem;
  }

  .notice p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .section-head {
    padding: 18px 20px;
  }

  .section-head h2 {
    font-size: 1.15rem;
  }

  .section-head p {
    font-size: 0.85rem;
  }

  .card {
    border-radius: var(--radius-md);
  }

  /* Improve touch targets */
  .option label {
    padding: 12px 14px;
    min-height: 48px;
  }

  .consent {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 14px 16px;
  }

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

  .login-actions .btn {
    width: 100%;
  }

  /* Process steps on mobile */
  .process-step-item {
    padding: 16px;
  }

  .process-step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .process-step-title {
    font-size: 0.95rem;
  }

  .process-step-desc {
    font-size: 0.85rem;
  }

  /* Extended Results & Table improvements for mobile */
  .extended {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .print-columns-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .print-col-left,
  .print-col-right {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    margin-top: 4px;
  }

  table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  th {
    padding: 8px 6px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }

  td {
    padding: 9px 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  td strong {
    font-weight: 700;
    color: var(--c-purple);
    word-break: break-word;
  }

  td.right {
    white-space: nowrap;
    font-weight: 700;
  }

  .trace {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 14px 16px;
    margin-top: 0;
    border-radius: var(--radius-md);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .trace b {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .trace ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
  }

  .trace li {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .screen-only-note {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Score display mobile */
  .score-big {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
  }

  .score-big strong {
    font-size: 2.2rem;
  }

  .score-big span {
    font-size: 0.85rem;
  }

  /* Metric mobile */
  .metric {
    padding: 12px 10px;
  }

  .metric b {
    font-size: 1.1rem;
  }

  .metric small {
    font-size: 0.74rem;
    line-height: 1.2;
  }
}

/* Screen sizes <= 480px (Smartphones) */
@media (max-width: 480px) {
  .decision {
    padding: 22px 16px;
  }

  .decision-value {
    font-size: 1.25rem;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
  }

  .decision-value svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .header-icon-badge {
    width: 30px;
    height: 30px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  header {
    padding: 14px 12px 12px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .header-brand {
    order: 1;
    margin: 0 auto;
  }

  .brand-logo-plate {
    padding: 10px 20px 12px 20px;
    margin: 0 auto;
  }

  .brand-logo-img {
    height: 36px;
    max-width: 170px;
  }

  .header-title-block {
    order: 2;
    text-align: center;
    margin-top: 44px;
  }

  .header-title-block h1 {
    font-size: 1.35rem;
    text-align: center;
  }

  .header-title-block p {
    font-size: clamp(0.55rem, 3.6vw, 0.94rem);
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
  }

  main {
    padding: 0 10px;
  }

  .toolbar {
    padding: 12px 14px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .notice-content {
    padding: 14px 16px;
  }

  .section-head {
    padding: 14px 16px;
  }

  .customer-form,
  .welcome-card,
  .notice {
    padding: 14px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* Fixed Vertical Contact Rail Widget - Uniform across Desktop, Tablet & Mobile */
.contact-rail {
  position: fixed;
  right: 0;
  top: 30%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.contact-item {
  display: flex;
  justify-content: flex-end;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 50px;
  width: 50px;
  text-decoration: none;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, filter 0.2s, box-shadow 0.2s;
  cursor: pointer;
  overflow: hidden;
  border: none;
  padding: 0;
  outline: none;
  background: #ffffff;
}

.contact-btn.email-btn,
.contact-btn.phone-btn,
.contact-btn.web-btn {
  background: #ffffff;
}

.contact-btn .contact-icon {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.contact-label,
.contact-label:hover,
.contact-label:focus,
.contact-label:active {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #16213e !important;
  text-decoration: none !important;
  border-bottom: none !important;
  outline: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding: 0 14px 0 10px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  pointer-events: none;
}

/* Expanded Open State */
.contact-btn.expanded {
  width: auto;
  max-width: min(320px, calc(100vw - 20px));
  filter: brightness(0.97);
  box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 1001;
}

.contact-btn.expanded .contact-label {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: inline-block !important;
}

.contact-btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .contact-rail {
    top: 25%;
  }

  .contact-btn {
    height: 46px;
    width: 46px;
  }

  .contact-btn .contact-icon {
    width: 46px;
    height: 46px;
  }

  .contact-label {
    font-size: 0.8rem;
    padding: 0 12px 0 8px;
  }
}

/* Print Helper Containers (Hidden on web UI) */
.print-header-container,
.print-footer,
.print-subhead {
  display: none;
}

/* Print Overrides - STRICT 1-PAGE A4 PDF REPORT LAYOUT */
@media print {
  @page {
    size: A4 portrait;
    margin: 4mm 6mm;
  }

  html,
  body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 8pt !important;
    line-height: 1.25 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    overflow: hidden !important;
  }

  /* Prevent page breaks across all print containers */
  html, body, #appShell, .card, .extended, .decision, .print-header-container, .print-columns-split, .trace, table {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-before: avoid !important;
    break-before: avoid !important;
  }

  /* Hide Web Application Interface Elements */
  header,
  .toolbar,
  .saved,
  .notice-column,
  .notice,
  .status,
  .login-card,
  .welcome-card,
  .form-message,
  .customer-form,
  .login-actions,
  .consent,
  .process-steps-grid,
  .question,
  .questions,
  .options,
  .saved-item button,
  .decision-actions,
  .contact-rail,
  .form-column,
  .screen-only-note,
  #form {
    display: none !important;
  }

  #appShell {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Cards reset for print */
  .card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Print Header Container */
  .print-header-container {
    display: block !important;
    margin-bottom: 5pt !important;
    padding-bottom: 4pt !important;
    border-bottom: 1.5px solid #0f172a !important;
  }

  .print-header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4pt !important;
  }

  .print-main-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
  }

  .print-sub-title {
    font-size: 7.5pt !important;
    color: #475569 !important;
    margin: 1px 0 0 0 !important;
  }

  .print-logo-img {
    height: 28px !important;
    max-width: 120px !important;
    object-fit: contain !important;
  }

  .print-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3pt 12pt !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 5pt 9pt !important;
    font-size: 7.5pt !important;
  }

  .print-meta-item {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
    word-break: break-word !important;
  }

  .print-meta-label {
    color: #64748b !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  .print-meta-item strong {
    color: #0f172a !important;
    font-weight: 700 !important;
    word-break: break-word !important;
  }

  /* Decision Card (Hero Result Banner in Print) */
  .decision {
    display: block !important;
    margin-bottom: 5pt !important;
    padding: 5pt 9pt !important;
    border-radius: 4px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
  }

  .decision-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .decision h2 {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #0f172a !important;
  }

  .decision-value {
    font-size: 10pt !important;
    font-weight: 800 !important;
    padding: 4pt 10pt !important;
    border-radius: 4px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .decision-value svg {
    width: 15px !important;
    height: 15px !important;
  }

  .decision-value.yes {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
  }

  .decision-value.no {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
  }

  .decision .disclaimer {
    display: none !important;
  }

  /* Extended Results Card in Print */
  .extended {
    display: block !important;
    margin: 0 !important;
  }

  .extended h2 {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    margin: 0 0 4pt 0 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 3pt !important;
  }

  /* Top Metric Cards Row */
  .print-metric-bar {
    display: grid !important;
    grid-template-columns: 1.2fr repeat(4, 1fr) !important;
    gap: 5pt !important;
    margin-bottom: 5pt !important;
  }

  .score-big {
    margin: 0 !important;
    padding: 4pt 6pt !important;
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 4px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .score-big strong {
    font-size: 13pt !important;
    color: #4338ca !important;
    line-height: 1.05 !important;
    display: block !important;
  }

  .score-big span {
    font-size: 6.5pt !important;
    color: #6366f1 !important;
    font-weight: 600 !important;
  }

  .result-grid {
    display: contents !important;
  }

  .metric {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 4pt 6pt !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .metric b {
    font-size: 9pt !important;
    color: #0f172a !important;
    display: block !important;
    line-height: 1.1 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .metric small {
    font-size: 6.5pt !important;
    color: #64748b !important;
    line-height: 1.05 !important;
    margin-top: 1px !important;
  }

  /* 2-Column Split for Table and Reasons */
  .print-columns-split {
    display: grid !important;
    grid-template-columns: 1.15fr 1fr !important;
    gap: 8pt !important;
    align-items: start !important;
  }

  .print-subhead {
    display: block !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin: 0 0 3pt 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }

  /* Table styling for print */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-size: 7.5pt !important;
  }

  th,
  td {
    border: 1px solid #cbd5e1 !important;
    padding: 3.5pt 5pt !important;
    text-align: left !important;
    color: #0f172a !important;
    font-size: 7.5pt !important;
  }

  th {
    background: #f1f5f9 !important;
    font-size: 7pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #475569 !important;
    padding: 3.5pt 5pt !important;
  }

  /* Trace / Reason List styling */
  .trace {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 5pt 7pt !important;
    margin: 0 !important;
    font-size: 7.5pt !important;
    height: auto !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .trace b {
    display: block !important;
    margin-bottom: 3pt !important;
    font-size: 7.5pt !important;
    color: #0f172a !important;
  }

  .trace ul {
    margin: 0 0 3pt 12pt !important;
    padding: 0 !important;
  }

  .trace li {
    margin-bottom: 2pt !important;
    font-size: 7.5pt !important;
    line-height: 1.25 !important;
    color: #334155 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  #warningBox {
    margin-top: 4pt !important;
  }

  #warningBox > div {
    padding: 4pt 6pt !important;
    font-size: 7pt !important;
    border-radius: 3px !important;
    margin-top: 3pt !important;
  }

  /* Footer for Print */
  .print-footer {
    display: block !important;
    margin-top: 6pt !important;
    padding-top: 4pt !important;
    border-top: 1px solid #cbd5e1 !important;
    text-align: center !important;
    font-size: 6.5pt !important;
    color: #64748b !important;
    line-height: 1.2 !important;
  }
}