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

  :root {
    --brand: #058B41;
    --brand-dark: #046C33;
    --brand-light: #EFF7F3;
    --ink: #2E2E2E;
    --ink-2: #555555;
    --ink-3: #909090;
    --surface: #FFFFFF;
    --surface-2: #F5F5F5;
    --surface-3: #EBEBEB;
    --border: #E3E3E3;
    --border-strong: #C0C0C0;
    --s-grey: #9CA3AF;
    --s-grey-bg: #F3F4F6;
    --s-grey-text: #6B7280;
    --s-red: #DC2626;
    --s-red-bg: #FFF5F5;
    --s-red-text: #B91C1C;
    --s-amber: #D97706;
    --s-amber-bg: #FFFBEB;
    --s-amber-text: #92400E;
    --s-green: #058B41;
    --s-green-bg: #F0FDF9;
    --s-green-text: #058B41;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  }

  html, body { height: 100%; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; background: var(--surface-2); color: var(--ink); font-size: 14px; line-height: 1.5; }
  /* Softer marketing type for the homepage (Poppins — rounded geometric,
     friendlier than DM Sans, less bubbly than Nunito). The dashboard/
     assessment app keeps Inter for dense data legibility. */
  #landing.home-page,
  #landing.home-page button,
  #landing.home-page input,
  #landing.home-page select,
  #landing.home-page textarea,
  #emailCapture,
  #emailCapture button,
  #emailCapture input { font-family: 'Poppins','Inter','Helvetica Neue',Arial,sans-serif; }

  /* ── LANDING ─────────────────────────────────────────── */
  #landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
  }
  .landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border);
  }
  .brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-cross {
    width: 36px; height: 36px;
    background: var(--brand);
    border-radius: 4px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .brand-cross svg { width: 20px; height: 20px; fill: white; }
  .brand-name {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 700;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
  }
  .brand-name span { color: var(--brand); }

  .landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 65px 48px 74px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
  }
  .landing-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 20px;
  }
  .landing-hero h1 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 700;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin-bottom: 24px;
  }
  .landing-hero h1 em { font-style: normal; color: var(--brand); font-weight: 700; }
  .landing-hero p {
    font-size: 17px;
    font-weight: 300;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
  }
  .landing-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
  }
  .btn-primary { background: var(--brand); color: white; }
  .btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
  .btn-secondary:hover { border-color: var(--ink); background: var(--surface-2); }
  .btn-ghost { background: transparent; color: var(--ink-2); border: none; padding: 8px 16px; }
  .btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
  .btn-sm { padding: 7px 14px; font-size: 13px; }
  .btn-xs { padding: 5px 10px; font-size: 12px; }
  .btn-danger { background: var(--s-red-bg); color: var(--s-red-text); border: 1.5px solid #FCA5A5; }
  .btn-danger:hover { background: #FEE2E2; }
  .btn-success { background: var(--s-green-bg); color: var(--s-green-text); border: 1.5px solid #6EE7B7; }
  .btn-success:hover { background: #D1FAE5; }
  .btn-amber { background: var(--s-amber-bg); color: var(--s-amber-text); border: 1.5px solid #FCD34D; }

  .landing-footer {
    text-align: center;
    padding: 24px;
    color: var(--ink-3);
    font-size: 12px;
    border-top: 1px solid var(--border);
  }

  /* ── ASSESSMENT ───────────────────────────────────────── */
  #assessment {
    display: none;
    min-height: 100vh;
    background: var(--surface);
    flex-direction: column;
  }
  .assess-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    border-bottom: 1px solid var(--border);
  }
  .assess-progress {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }
  .progress-label {
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 8px;
  }
  .progress-bar {
    height: 3px;
    background: var(--surface-3);
    border-radius: 99px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 99px;
    transition: width 0.4s ease;
  }
  .assess-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px;
    overflow-y: auto;
  }
  .assess-card {
    width: 100%;
    max-width: 560px;
  }
  .assess-step-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
  }
  .assess-card h2 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 700;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
  }
  .assess-card .sub { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }

  .option-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
  }
  .option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  }
  .option-btn:hover { border-color: var(--brand); background: var(--brand-light); }
  .option-btn.selected { border-color: var(--brand); background: var(--brand-light); }
  .option-btn.selected .option-radio { background: var(--brand); border-color: var(--brand); }
  .option-btn.selected .option-radio::after { opacity: 1; }
  .option-radio {
    width: 18px; height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
  }
  .option-radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 7px; height: 7px;
    background: white;
    border-radius: 50%;
    opacity: 0;
  }
  .option-text strong { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
  .option-text span { font-size: 12px; color: var(--ink-3); }

  .checkbox-btn .option-check {
    width: 18px; height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: all 0.15s;
  }
  .checkbox-btn.selected .option-check { background: var(--brand); border-color: var(--brand); }
  .checkbox-btn.selected .option-check::after {
    content: '';
    display: block;
    width: 10px; height: 7px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translate(1px, -1px);
  }

  .assess-nav { display: flex; justify-content: space-between; align-items: center; }

  /* ── HELP SYSTEM ─────────────────────────────────────── */
  .help-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #FDECEE;
    border: 1px solid #E9B8BF;
    border-radius: 99px;
    color: #C8102E;
    font-size: 12px;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px 5px 7px;
    margin-bottom: 24px;
    transition: all 0.15s;
    letter-spacing: 0;
  }
  .help-trigger:hover { color: #A00C24; border-color: #E0A3AC; background: #FBDDE1; }
  .help-trigger.active { color: #A00C24; border-color: #E0A3AC; background: #FBDDE1; }
  .help-trigger-icon {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #C8102E;
    color: white;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .help-trigger-icon::after { content: 'i'; color: white; }
  .help-trigger:hover .help-trigger-icon,
  .help-trigger.active .help-trigger-icon { background: #A00C24; }

  .help-panel {
    background: var(--brand-light);
    border: 1px solid #C5DDD3;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.2s ease;
  }
  .help-panel.open {
    max-height: 400px;
    padding: 0;
  }
  .help-panel-inner {
    padding: 16px 18px;
  }
  .help-panel-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .help-panel-title::before {
    content: '';
    display: inline-block;
    width: 12px; height: 2px;
    background: var(--brand);
    border-radius: 99px;
  }
  .help-panel p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-2);
    margin-bottom: 8px;
  }
  .help-panel p:last-child { margin-bottom: 0; }
  .help-panel strong { color: var(--ink); font-weight: 600; }
  .help-panel ul {
    list-style: none;
    margin: 6px 0 8px;
    padding: 0;
    display: grid;
    gap: 4px;
  }
  .help-panel ul li {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
  }
  .help-panel ul li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: var(--brand);
    font-weight: 700;
  }

  /* Assessment result screen */
  .assess-result { text-align: center; }
  .result-badge {
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
  }
  .result-badge.high { background: #FEF2F2; color: #B91C1C; }
  .result-badge.medium { background: var(--s-amber-bg); color: var(--s-amber-text); }
  .result-badge.low { background: var(--s-green-bg); color: var(--s-green-text); }
  .result-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

  .result-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
    text-align: left;
  }
  .req-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .req-card-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
  .req-card-value { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
  .req-card-desc { font-size: 12px; color: var(--ink-2); line-height: 1.4; }

  /* ── APP SHELL ─────────────────────────────────────────── */
  #app {
    display: none;
    height: 100vh;
    overflow: hidden;
  }
  .app-layout {
    display: flex;
    height: 100%;
  }

  /* ── SIDEBAR ─────────────────────────────────────────── */
  .sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sidebar-logo .brand-name { font-size: 16px; }

  .sidebar-org {
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-org-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
  .sidebar-org-name { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
  .sidebar-org-site { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

  .sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--ink-2);
    user-select: none;
    position: relative;
  }
  .nav-item:hover { background: var(--surface-2); color: var(--ink); }
  .nav-item.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 500; }
  .nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
  .nav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--s-red);
    color: white;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 12px 12px 6px;
  }

  .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
  }

  /* ── MORE SORTS BUTTON ───────────────────────────────── */
  @keyframes moreSortsEntry {
    0%   { opacity: 0; transform: translateX(-24px); }
    60%  { opacity: 1; transform: translateX(6px); }
    80%  { transform: translateX(-3px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  @keyframes badgePop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.4); opacity: 1; }
    80%  { transform: scale(0.9); }
    100% { transform: scale(1); }
  }
  @keyframes badgeShake {
    0%   { transform: rotate(0deg) scale(1); }
    15%  { transform: rotate(-18deg) scale(1.1); }
    30%  { transform: rotate(18deg) scale(1.1); }
    45%  { transform: rotate(-12deg); }
    60%  { transform: rotate(12deg); }
    75%  { transform: rotate(-6deg); }
    90%  { transform: rotate(6deg); }
    100% { transform: rotate(0deg) scale(1); }
  }
  .nav-more-sorts {
    background: #FFFBEB;
    color: #78350F !important;
    font-weight: 700 !important;
    border: 1.5px solid #FCD34D;
    border-radius: 8px;
    padding: 4px 6px !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0px !important;
    min-height: 44px;
  }
  .nav-more-sorts:hover { background: #FEF3C7 !important; border-color: #F59E0B !important; }
  #navBadgeMoreSorts {
    display: flex;
  }
  .master-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
  }
  .master-status:hover { border-color: var(--border-strong); }
  .master-dot-lg {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.4s;
  }
  .ms-text { flex: 1; }
  .ms-label { font-size: 11px; color: var(--ink-3); }
  .ms-value { font-size: 13px; font-weight: 600; color: var(--ink); }

  /* ── MAIN CONTENT ────────────────────────────────────── */
  .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-2);
  }
  .main-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 57px;
    flex-shrink: 0;
  }
  .main-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
  }
  .main-actions { display: flex; align-items: center; gap: 10px; }
  .last-assessed {
    font-size: 12px;
    color: var(--ink-3);
    padding: 6px 12px;
    background: var(--surface-2);
    border-radius: 99px;
    border: 1px solid var(--border);
  }

  .main-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
  }

  /* ── OVERVIEW ─────────────────────────────────────────── */
  .overview-status-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
  .status-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.15s;
    cursor: pointer;
  }
  .status-card:hover { box-shadow: var(--shadow-md); }
  .status-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .status-icon-wrap svg { width: 22px; height: 22px; }
  .sc-label { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
  .sc-fraction { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 24px; font-weight: 700; line-height: 1; color: var(--ink); margin-bottom: 3px; }
  .sc-status { font-size: 12px; font-weight: 500; }

  /* Status light pill */
  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
  }
  .status-dot { width: 7px; height: 7px; border-radius: 50%; }
  .pill-grey { background: var(--s-grey-bg); color: var(--s-grey-text); }
  .pill-grey .status-dot { background: var(--s-grey); }
  .pill-red { background: var(--s-red-bg); color: var(--s-red-text); }
  .pill-red .status-dot { background: var(--s-red); }
  .pill-amber { background: var(--s-amber-bg); color: var(--s-amber-text); }
  .pill-amber .status-dot { background: var(--s-amber); }
  .pill-green { background: var(--s-green-bg); color: var(--s-green-text); }
  .pill-green .status-dot { background: var(--s-green); }

  /* Big overview cards */
  .overview-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .overview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.15s;
  }
  .overview-card:hover { box-shadow: var(--shadow-md); }
  .oc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
  .oc-status-bar {
    width: 4px;
    height: 44px;
    border-radius: 99px;
    flex-shrink: 0;
  }
  .oc-title { flex: 1; }
  .oc-title h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
  .oc-title p { font-size: 12px; color: var(--ink-2); }
  .oc-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 16px;
  }
  .oc-message { font-size: 13px; color: var(--ink-2); flex: 1; line-height: 1.5; }
  .oc-actions { display: flex; gap: 8px; flex-shrink: 0; }

  /* ── FIRST AIDERS ─────────────────────────────────────── */
  .section-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .summary-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
  }
  .summary-chip-num {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
  }
  .summary-chip-red { border-color: #FCA5A5; background: var(--s-red-bg); color: var(--s-red-text); }
  .summary-chip-red .summary-chip-num { color: var(--s-red); }
  .summary-chip-amber { border-color: #FCD34D; background: var(--s-amber-bg); color: var(--s-amber-text); }
  .summary-chip-amber .summary-chip-num { color: var(--s-amber); }
  .summary-chip-green { border-color: #6EE7B7; background: var(--s-green-bg); color: var(--s-green-text); }
  .summary-chip-green .summary-chip-num { color: var(--s-green); }

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
  }

  .fa-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
  }
  .fa-table-head {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1.2fr;
    padding: 10px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-3);
    gap: 12px;
  }
  .fa-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1.2fr;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 12px;
    transition: background 0.1s;
  }
  .fa-row:last-child { border-bottom: none; }
  .fa-row:hover { background: var(--surface-2); }
  .fa-name { font-weight: 500; font-size: 13.5px; color: var(--ink); }
  .fa-role { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
  .fa-cell { font-size: 13px; color: var(--ink-2); }
  .fa-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

  .empty-slot {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--s-red-bg);
    border-bottom: 1px solid #FECACA;
  }
  .empty-slot-icon {
    width: 38px; height: 38px;
    border: 1.5px dashed #FCA5A5;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #FCA5A5;
    flex-shrink: 0;
    font-size: 20px;
  }
  .empty-slot-text { flex: 1; }
  .empty-slot-text strong { font-size: 13px; font-weight: 500; color: var(--s-red-text); display: block; }
  .empty-slot-text span { font-size: 12px; color: #B91C1C; opacity: 0.7; }

  /* ── KITS ────────────────────────────────────────────── */
  .kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .kit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.15s;
  }
  .kit-card:hover { box-shadow: var(--shadow); }
  .kit-card-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  .kit-type-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 4px;
  }
  .kit-name { font-size: 14px; font-weight: 600; color: var(--ink); }
  .kit-location { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
  .kit-body { padding: 14px 20px 16px; }
  .kit-info-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .kit-info-label { font-size: 12px; color: var(--ink-3); }
  .kit-info-value { font-size: 12px; font-weight: 500; color: var(--ink); }
  .kit-actions { display: flex; gap: 8px; margin-top: 14px; }

  /* Smart Kit connect animation */
  .connect-spinner {
    display: none;
    width: 14px; height: 14px;
    border: 2px solid rgba(200,16,46,0.3);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── AED ─────────────────────────────────────────────── */
  .aed-main-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
  }
  .aed-status-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .aed-big-dot {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 24px;
    transition: all 0.5s;
  }
  .aed-info h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
  .aed-info p { font-size: 13px; color: var(--ink-2); }
  .aed-details { padding: 20px 24px; }
  .aed-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  .aed-detail-item label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-3); display: block; margin-bottom: 4px; }
  .aed-detail-item span { font-size: 13px; color: var(--ink); }
  .aed-actions { display: flex; gap: 10px; flex-wrap: wrap; }

  /* ── NOTIFICATIONS ──────────────────────────────────── */
  .notif-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
  }
  .notif-section-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
  }
  .notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .notif-row:last-child { border-bottom: none; }
  .notif-row-label { font-size: 13.5px; color: var(--ink); font-weight: 400; }
  .notif-row-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
  .notif-select {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 7px 12px;
    background: var(--surface);
    cursor: pointer;
    min-width: 180px;
  }
  .toggle-wrap { display: flex; align-items: center; gap: 10px; }
  .toggle {
    position: relative;
    width: 36px; height: 20px;
    cursor: pointer;
  }
  .toggle input { opacity: 0; width: 0; height: 0; }
  .toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--surface-3);
    border-radius: 99px;
    transition: 0.3s;
    border: 1.5px solid var(--border);
  }
  .toggle-slider::before {
    content: '';
    position: absolute;
    height: 14px; width: 14px;
    left: 2px; top: 1px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: var(--shadow);
  }
  .toggle input:checked + .toggle-slider { background: var(--brand); border-color: var(--brand); }
  .toggle input:checked + .toggle-slider::before { transform: translateX(16px); }
  .toggle-label { font-size: 13px; color: var(--ink-2); }

  /* ── SHARE ───────────────────────────────────────────── */
  .share-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .share-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.15s;
  }
  .share-card:hover { box-shadow: var(--shadow-md); }
  .share-card h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
  .share-card p { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.5; }
  .integration-list { display: grid; gap: 10px; }
  .integration-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s;
    cursor: pointer;
  }
  .integration-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
  .integration-logo {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
  }
  .integration-name { font-size: 13px; font-weight: 500; color: var(--ink); }
  .integration-desc { font-size: 12px; color: var(--ink-3); }
  .integration-action { margin-left: auto; }

  /* ── MODAL ───────────────────────────────────────────── */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,20,22,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
  }
  @keyframes modalIn { from { opacity:0; transform: translateY(8px) scale(0.98); } }
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
  .modal-header h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
  .modal-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9) !important;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--brand) !important;
    font-size: 16px !important;
    transition: all 0.15s;
  }
  .modal-close:hover { background: #E8F5EE !important; color: #046C33 !important; }
  .modal-body { padding: 24px; }
  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
  }

  /* ─── Tier-select popup (ASSESS → choose tier, mirrors pricing) ─── */
  .tier-pick-lead {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 16px;
    line-height: 1.5;
  }
  .tier-pick-list { display: flex; flex-direction: column; gap: 12px; }
  .tier-pick {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  }
  .tier-pick:hover { border-color: var(--brand); transform: translateY(-1px); }
  .tier-pick.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(5, 139, 65, 0.14);
  }
  .tier-pick-icon {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--brand-light, #EFF7F3);
    color: var(--brand);
  }
  .tier-pick-icon svg { width: 30px; height: 30px; }
  .tier-pick-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .tier-pick-name { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: 0.2px; }
  .tier-pick-crit { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
  .tier-pick-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
  .tier-pick-amt { font-size: 22px; font-weight: 800; color: var(--ink); }
  .tier-pick-gst { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
  .tier-pick-tick {
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--border);
    color: transparent;
    font-size: 13px; font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .tier-pick.is-selected .tier-pick-tick { background: var(--brand); color: #fff; }
  .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

  .form-group { margin-bottom: 18px; }
  .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
  .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.15s;
    outline: none;
  }
  .form-input:focus { border-color: var(--brand); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
    outline: none;
  }
  .form-select:focus { border-color: var(--brand); }

  /* ── TOAST ───────────────────────────────────────────── */
  #toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
  }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  #toast.success { background: var(--s-green); }
  #toast.warning { background: #B45309; }

  /* ── SCROLL POPUP ──────────────────────────────────── */
  #scrollPopupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(20,20,22,0.45);
    z-index: 899;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
  }
  #scrollPopupOverlay.show { opacity: 1; pointer-events: all; }

  #scrollPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%) scale(0.96);
    background: var(--surface);
    border: 2px solid var(--brand);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 460px;
    width: 90%;
    text-align: center;
  }
  #scrollPopup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
  }
  #scrollPopup .popup-text {
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
  }
  #scrollPopup .popup-sub {
    font-size: 13px;
    color: var(--ink-3);
    margin-top: -8px;
  }
  #scrollPopup .popup-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-3);
    font-size: 18px;
    line-height: 1;
  }
  #scrollPopup .popup-close:hover { color: var(--ink); }


  /* ── DASHBOARD REVEAL BOX ──────────────────────────── */
  @keyframes dashBoxReveal {
    0%   { opacity: 0; transform: translateY(24px) scale(0.97); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.005); }
    80%  { transform: translateY(2px) scale(0.998); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  .dash-reveal-box {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 34px 0 8px;
    background: transparent;
    box-shadow: none;
  }
  .dash-reveal-box.revealed {
    animation: dashBoxReveal 0.6s cubic-bezier(0.22,0.61,0.36,1) forwards;
  }

  /* ── RESULT SECTION ANIMATIONS ──────────────────────── */
  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes stampPop {
    0%   { opacity: 0; transform: scale(0.55); }
    65%  { opacity: 1; transform: scale(1.08); }
    82%  { transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
  }
  .result-card-anim {
    opacity: 0;
    transform: translateX(32px);
  }
  .result-card-anim.visible {
    animation: slideInRight 0.45s cubic-bezier(0.22,0.61,0.36,1) forwards;
  }
  .stamp-anim {
    opacity: 0;
  }
  .stamp-anim.pop {
    animation: stampPop 0.5s cubic-bezier(0.22,0.61,0.36,1) forwards;
  }

  /* ── TAB HERO ICONS ─────────────────────────────────── */
  .tab-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }
  .tab-hero-icon {
    width: 56px; height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
  }
  .tab-hero-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
  }
  .tab-hero-text p {
    font-size: 13px;
    color: var(--ink-3);
    margin: 0;
  }
  /* ── REQUIRE BADGE ──────────────────────────────────── */
  .requirement-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  .req-mandatory { background: #FEF2F2; color: #B91C1C; }
  .req-recommended { background: #FFFBEB; color: #92400E; }
  .req-notreq { background: var(--s-grey-bg); color: var(--s-grey-text); }

  /* Misc */
  .divider { height: 1px; background: var(--border); margin: 20px 0; }
  .text-muted { color: var(--ink-3); }
  .text-sm { font-size: 12px; }
  .flex { display: flex; }
  .flex-between { display: flex; align-items: center; justify-content: space-between; }
  .gap-8 { gap: 8px; }
  .mb-16 { margin-bottom: 16px; }
  .mb-20 { margin-bottom: 20px; }

  /* Info banner */
  .info-banner {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.5;
    align-items: flex-start;
  }
  .info-banner.amber { background: var(--s-amber-bg); color: var(--s-amber-text); border: 1px solid #FCD34D; }
  .info-banner.green { background: var(--s-green-bg); color: var(--s-green-text); border: 1px solid #6EE7B7; }
  .info-banner.red { background: var(--s-red-bg); color: var(--s-red-text); border: 1px solid #FCA5A5; }
  .info-banner.blue { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

  /* Compliance score bar */
  .compliance-bar-wrap { margin-bottom: 24px; }
  .compliance-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
  .compliance-bar-track {
    height: 6px;
    background: var(--surface-3);
    border-radius: 99px;
    overflow: hidden;
  }
  .compliance-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s ease, background 0.5s;
  }

  /* ── ASSESSMENT LOADER ──────────────────────────────── */
  .tick-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .tick-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface-3);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background 0.4s ease;
  }
  .tick-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
  }
  .assess-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    min-height: 320px;
  }
  .loader-spinner {
    width: 48px; height: 48px;
    border: 3px solid #D0E8DC;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 28px;
    transition: all 0.4s;
  }
  .loader-spinner.done {
    border-color: var(--brand);
    border-top-color: var(--brand);
    animation: none;
    background: var(--brand);
  }
  .loader-spinner.done::after {
    content: '✓';
    display: block;
    color: white;
    font-size: 22px;
    line-height: 42px;
    text-align: center;
  }
  .loader-msg {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
  }
  .loader-sub {
    font-size: 13px;
    color: var(--ink-3);
    margin-bottom: 32px;
    transition: opacity 0.2s ease;
  }

  /* ── STAMP BADGE ────────────────────────────────────── */
  .stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border: 2.5px solid currentColor;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    line-height: 1.2;
  }
  .stamp-required    { color: #B91C1C; background: #FFF5F5; }
  .stamp-recommended { color: #6B7785; background: #F1F3F5; }
  .stamp-strong      { color: #B45309; background: #FFFBEB; }
  .stamp-optional    { color: #374151; background: #F9FAFB; }
  /* Stamp + Hide control stacked at the top-right of a card header */
  .rcv-stampwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
  .ap-hide-row { display: flex; align-items: center; gap: 8px; }
  .ap-hide-label { font-size: 12px; color: var(--ink-3, #8A97A4); white-space: nowrap; }
  .ap-hide-btn {
    appearance: none; border: 1px solid #000; background: #000; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.3px; padding: 4px 14px;
    border-radius: 999px; cursor: pointer; line-height: 1.3; transition: opacity 0.15s;
  }
  .ap-hide-btn:hover { background: #000; border-color: #000; opacity: 0.85; }
  /* Restore stub shown once an item is hidden */
  .ap-hidden-stub {
    display: flex; align-items: center; gap: 12px; margin: 0 0 32px;
    padding: 12px 16px; border: 1px dashed var(--border, #D6DBE0); border-radius: 10px;
    background: var(--surface-2, #F4F6F8); color: var(--ink-2, #51606E); font-size: 14px;
  }
  .ap-hidden-ic { flex: none; width: 18px; height: 18px; color: var(--ink-3, #8A97A4); }
  .ap-hidden-ic svg { width: 100%; height: 100%; }
  .ap-hidden-text { flex: 1; }
  .ap-hidden-text strong { color: var(--ink, #2A3540); font-weight: 700; }
  .ap-show-btn {
    appearance: none; border: 1px solid var(--brand, #058B41); background: #fff; color: var(--brand-dark, #046C33);
    font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; cursor: pointer;
    flex: none; transition: background 0.15s;
  }
  .ap-show-btn:hover { background: var(--brand-light, #EFF7F3); }
  .stamp-consider    { color: #374151; background: #F9FAFB; }

  /* ── VERTICAL RESULT CARDS ──────────────────────────── */
  .result-card-v {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
  }
  .result-card-v-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
  }
  .result-card-v-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 6px;
  }
  .result-card-v-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
  }
  .result-card-v-body {
    padding: 20px 24px 24px;
  }
  .result-card-v-desc {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .result-course-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--brand-light);
    border: 1px solid #C5DDD3;
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: background 0.15s, box-shadow 0.15s;
  }
  .result-course-box:hover {
    background: #DCF0E8;
    box-shadow: 0 2px 8px rgba(5, 139, 65,0.12);
  }
  .result-course-icon {
    width: 36px; height: 36px;
    background: var(--brand);
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: white;
    font-size: 16px;
  }
  .result-course-name { font-size: 13px; font-weight: 600; color: var(--ink); }
  .result-course-sub  { font-size: 12px; color: var(--ink-2); }
  .result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   SITE TABS — multi-site org dashboard selector
════════════════════════════════════════════════════════════ */
.site-tabs-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-tabs-wrap::-webkit-scrollbar { display: none; }
.site-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: max-content;
}
.site-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.site-tab:hover { background: var(--surface); color: var(--ink); }
.site-tab.active {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(5, 139, 65,0.25);
}
.site-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.site-tab.active .site-tab-dot { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   FIRST AIDER PHOTO — profile picture in FA rows
════════════════════════════════════════════════════════════ */
.fa-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.fa-photo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-light);
  border: 2px solid #C5DDD3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}
.fa-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.fa-contact span {
  font-size: 11px;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIRST AID CHECK — HOMEPAGE (replaces legacy landing)
   ─────────────────────────────────────────────────────────────────────────── */
.home-page {
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  /* IMPORTANT: keep visible so hover-preview popups can extend beyond the card row. */
  overflow: visible;
  font-family: 'Poppins','Inter','Helvetica Neue',Arial,sans-serif;
}

/* ─── Topbar (full-width green rule under menu, matches stats row rules) ─── */
.home-topbar {
  position: relative;
  width: 100%;
  border-bottom: 3px solid #058B41;
  background: var(--surface);
  z-index: 5;
  animation: sfaFadeDown 0.55s ease 0.05s both;
}
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  max-width: 1380px;
  margin: 0 auto;
}
.home-topbar-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.18s ease;
}
.home-topbar-logo:hover { transform: translateY(-1px); opacity: 0.92; }
.home-topbar-logo img {
  /* New 2-line logo (FIRST AID / NEW ZEALAND) is ~3.18:1 instead of the
     old 6.28:1, so we bump the height to keep similar wordmark size. */
  height: 61px; /* -15% from 72 */
  width: auto;
  display: block;
}
.home-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
/* All three menu buttons share the same rounded SaaS shape as the CTA pair
   below, just sized down for the nav. Equal min-width for a tidy row. */
.home-nav-link,
.home-nav-login,
.home-nav-assess {
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  padding: 11px 22px;
  min-width: 120px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

/* CONTACT — outlined white */
.home-nav-link {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.home-nav-link:hover {
  border-color: var(--ink);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* LOGIN — slightly grey outlined (differentiates from CONTACT) */
.home-nav-login {
  background: var(--surface-2);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.home-nav-login:hover {
  background: var(--surface-3);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ASSESS — red filled (matches "Begin Assessment" CTA style) */
.home-nav-assess {
  background: #C8102E;
  color: #FFFFFF;
  border: 1.5px solid #C8102E;
  box-shadow: 0 4px 14px rgba(200,16,46,0.22);
  margin-left: 3.5px; /* 25% more spacing after PRICING (14px gap + 3.5px) */
}
.home-nav-assess:hover {
  background: #A00C24;
  border-color: #A00C24;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(200,16,46,0.30);
}

/* ─── Hero text ─── */
.home-intro {
  text-align: center;
  padding: 80px 24px 43px; /* +20% space below the headline (36 → 43) */
  max-width: 1280px;
  margin: 0 auto;
}
.home-hero-eyebrow {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  animation: sfaFadeUp 0.6s ease 0.15s forwards;
}
.home-hero-eyebrow-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  color: var(--brand);
  transform: scale(0);
  transform-origin: center;
  animation: sfaEyebrowPop 0.55s cubic-bezier(.34,1.7,.5,1) 0.4s forwards;
}
@keyframes sfaEyebrowPop {
  0%   { opacity: 0; transform: scale(0) rotate(-45deg); }
  60%  { opacity: 1; transform: scale(1.18) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.home-hero-main {
  font-family: inherit;
  font-size: 85px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 40px;
  opacity: 0;
  transform: translateY(14px);
  animation: sfaFadeUp 0.8s cubic-bezier(.2,.85,.3,1.1) 0.28s forwards;
}
.home-hero-main .hero-check { color: #1A1A1A; letter-spacing: 0.5px; } /* very dark gray */
.home-hero-main .hero-light { color: var(--ink-3); } /* light gray */
.home-hero-main .hero-fa { color: var(--brand); } /* first aid — green */

.home-hero-lead {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink-3);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 820px;
  opacity: 0;
  transform: translateY(12px);
  animation: sfaFadeUp 0.7s ease 0.55s forwards;
}
.home-hero-lead strong {
  font-weight: 700;
  color: var(--ink-2);
}
.home-hero-headline {
  font-family: inherit;
  font-size: 19px; /* -25% from 25px */
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
  line-height: 1.3;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.home-hero-phrase {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  animation: sfaHeadlinePop 0.55s cubic-bezier(.34,1.6,.5,1) forwards;
  animation-delay: calc(0.8s + var(--w) * 0.22s);
}
/* "Right-size your first aid." — dark grey, matching the other phrases. */
.home-hero-phrase--red { color: var(--ink); }

/* ─── Cards row ─── */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 0 24px;
  overflow: visible;
}
.home-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  animation: sfaCardIn 0.8s cubic-bezier(.2,.85,.3,1.05) both;
  animation-delay: calc(1.4s + var(--i) * 0.14s);
  z-index: 1;
}
.home-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(5, 139, 65,0.12), 0 2px 6px rgba(0,0,0,0.05);
  transform: translateY(-4px);
  z-index: 60; /* lift hovered card so its preview overlaps neighbours */
}
.home-card-num {
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  line-height: 1;
}
.home-card-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #BFBFBF;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08);
}
.home-card-title {
  font-family: inherit;
  font-size: 26px;
  font-weight: 700; /* reduced weight */
  color: var(--ink);
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin: 0 0 11px; /* -50% — was 22px */
  opacity: 0;
  transform: translateY(10px);
  animation: sfaFadeUp 0.6s ease forwards;
  animation-delay: calc(1.6s + var(--i) * 0.14s);
}
.home-card-title .t-top { color: #8C8C8C; }   /* slightly lighter grey for first line */
.home-card-title .t-bot { color: var(--ink); }
.home-card-iconwrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3px 0 12px; /* -50% — was 6 / 24 */
  pointer-events: none; /* whole card handles hover now */
}
.home-card-icon {
  width: 132px;
  height: 132px;
  transition: transform 0.3s cubic-bezier(.2,.85,.3,1.1), filter 0.25s ease;
}
.home-card:hover .home-card-icon {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 6px 14px rgba(5, 139, 65,0.25));
}
/* Card 2 (Tailored Options) — sized in line with the other cards. */
.home-cards .home-card:nth-child(2) .home-card-icon { transform: scale(1.0); }
/* Tiles are subtly clickable — they scroll to the About section. No extra
   styling beyond the pointer cursor so they don't read as buttons. */
.home-card--link { cursor: pointer; }
/* Featured tile icon is red to match its red box outline (CSS overrides the
   green fill presentation attribute; white detail cutouts are left untouched). */
.home-card--featured .home-card-icon path[fill="#058B41"] { fill: #C8102E; transition: fill 2.1s ease; }
.home-card--featured .t-top { color: #C8102E; transition: color 2.1s ease; }

/* ── "Right-sized" red→green reveal sequence ─────────────────────────── */
/* Coin / clock badges that pop in before everything turns green. */
.hc-pop { position: absolute; top: calc(50% - 34px); width: 68px; height: 68px; color: #C8102E; opacity: 0; transition: color 2.1s ease; pointer-events: none; }
.hc-pop svg { width: 100%; height: 100%; display: block; }
.hc-pop--coin { left: -74px; }
.hc-pop--clock { right: -74px; }
@keyframes hcPop { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }
.home-card--featured.seq-go .hc-pop--coin  { animation: hcPop 0.6s cubic-bezier(.2,.8,.3,1.3) both; }
.home-card--featured.seq-go .hc-pop--clock { animation: hcPop 0.6s cubic-bezier(.2,.8,.3,1.3) 0.45s both; }
/* Everything turns green together once the badges are in… */
.home-card--featured.seq-green { border-color: #058B41; box-shadow: 0 16px 40px rgba(5,139,65,0.16); transition: border-color 2.1s ease, box-shadow 2.1s ease; }
.home-card--featured.seq-green .home-card-icon path[fill="#058B41"] { fill: #058B41; }
.home-card--featured.seq-green .t-top { color: #058B41; }
.home-card--featured.seq-green .hc-pop { color: #058B41; }
/* …then the red bullet turns green LAST (transition-delay makes it the last). */
.home-card--featured .home-card-list li.hl,
.home-card--featured .home-card-list li.hl .hl-text { transition: color 1.6s ease 2.2s; }
.home-card--featured .home-card-list li.hl::before { transition: background 1.6s ease 2.2s; }
.home-card--featured.seq-green .home-card-list li.hl,
.home-card--featured.seq-green .home-card-list li.hl .hl-text { color: #058B41; }
.home-card--featured.seq-green .home-card-list li.hl::before { background: #058B41; }
.home-card--featured:hover .home-card-icon {
  filter: drop-shadow(0 6px 14px rgba(200, 16, 46, 0.25));
}
.home-cards .home-card:nth-child(2):hover .home-card-icon {
  transform: scale(1.07) rotate(-2deg);
}
.home-card-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 12px;
  text-align: left;       /* body copy left-aligned in cards */
  align-self: stretch;
}
.home-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  align-self: stretch;
}
.home-card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 6px;
}
.home-card-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-2);
}
.home-card-list li.hl { color: #C8102E; }   /* red */
.home-card-list li.hl::before { background: #C8102E; }
/* Bold highlighted bullet. */
.home-card-list li.hl .hl-text { font-weight: 700; }

/* ─── Hover preview (disabled — no hover pop-ups) ─── */
.home-card-preview {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 460px;
  max-width: 92vw;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(0,0,0,0.22), 0 6px 14px rgba(0,0,0,0.10);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.88);
  transform-origin: 50% 50%;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.2,.85,.3,1.1);
  z-index: 200; /* always in front of every card */
}
.home-card-preview svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
/* Whole-card hover triggers the preview */
.home-card:hover .home-card-preview,
.home-card:focus-within .home-card-preview {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Edge cards: nudge preview inward so it doesn't clip the viewport */
.home-cards .home-card:first-child .home-card-preview {
  left: 0;
  transform: translate(-8%, -50%) scale(0.88);
}
.home-cards .home-card:first-child:hover .home-card-preview,
.home-cards .home-card:first-child:focus-within .home-card-preview {
  transform: translate(-8%, -50%) scale(1);
}
.home-cards .home-card:last-child .home-card-preview {
  left: auto;
  right: 0;
  transform: translate(8%, -50%) scale(0.88);
}
.home-cards .home-card:last-child:hover .home-card-preview,
.home-cards .home-card:last-child:focus-within .home-card-preview {
  transform: translate(8%, -50%) scale(1);
}

/* ─── CTA ─── */
.home-cta {
  text-align: center;
  /* top -33% (128 → 86); bottom +25% (96 → 120) */
  padding: 86px 24px 120px;
  animation: sfaFadeUp 0.75s ease 1.55s both;
}
.home-cta-question {
  font-family: inherit;
  font-size: 20px;
  color: var(--ink-2);
  margin: 0 0 34px; /* +20% gap above the buttons */
}
.home-cta-question em { font-style: italic; color: var(--ink); font-weight: 600; }
.home-cta-question .cta-light { color: var(--ink-3); font-weight: 400; } /* light gray, unbolded */
.home-cta-question .cta-fa { color: var(--brand); font-weight: 700; } /* first aid — green */
/* "check" — dark gray */
.home-cta-check {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.home-cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.home-cta-primary,
.home-cta-secondary,
.home-cta-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.4px;
  padding: 18px 34px;
  min-width: 280px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.home-cta-primary {
  background: #C8102E;
  color: #FFFFFF;
  border: 1.5px solid #C8102E;
  box-shadow: 0 6px 18px rgba(200,16,46,0.24);
}
.home-cta-primary:hover {
  background: #A00C24;
  border-color: #A00C24;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(200,16,46,0.32);
}
.home-cta-secondary {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.home-cta-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-2);
  transform: translateY(-1px);
}
/* Black PRICING button — equal sizing, sits to the right of START ASSESSMENT */
.home-cta-black {
  background: #1A1A1A;
  color: #FFFFFF;
  border: 1.5px solid #1A1A1A;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.home-cta-black:hover {
  background: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}

/* Stagger the legacy stats + integrations rows in */
#landing.home-page > div[style*="grid-template-columns:1fr 1fr 1fr"] {
  animation: sfaFadeUp 0.75s ease 1.75s both;
}
#landing.home-page > div[style*="border-top:1px solid var(--border)"] {
  animation: sfaFadeUp 0.75s ease 1.9s both;
}

.home-footer {
  text-align: center;
  padding: 26px 24px 36px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.6;
}
.home-footer-links {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.home-footer-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.home-footer-links a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

/* ─── Animations ─── */
@keyframes sfaFadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sfaFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sfaLogoIn {
  0%   { opacity: 0; transform: translateY(-30px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sfaHeadlineIn {
  0%   { opacity: 0; transform: scale(0.85); letter-spacing: 12px; }
  100% { opacity: 1; transform: scale(1); letter-spacing: 0.5px; }
}
@keyframes sfaHeadlinePop {
  0%   { opacity: 0; transform: translateY(20px) scale(0.6); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.12); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sfaCardIn {
  0%   { opacity: 0; transform: translateY(28px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Responsive ─── */
@media (max-width: 1080px) {
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-card-preview { width: 360px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   END-OF-FLOW — "Creating dashboard" loader, dashboard preview blur,
   and registration-confirm modal
   ─────────────────────────────────────────────────────────────────────────── */
#dashLoader {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 1500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#dashLoader.show { display: flex !important; opacity: 1; }
.dl-spinner {
  width: 54px;
  height: 54px;
  border: 3px solid #D0E8DC;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 26px;
}
.dl-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.dl-sub {
  font-size: 13.5px;
  color: var(--ink-3);
}

#app.blurred {
  filter: blur(6px);
  pointer-events: none;
  transition: filter 0.4s ease;
  user-select: none;
}

#endFlowOverlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,22,0.55);
  backdrop-filter: blur(2px);
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.28s ease;
}
#endFlowOverlay.show { display: flex !important; opacity: 1; }
#endFlowModal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 34px 32px 30px;
  text-align: center;
  animation: modalIn 0.28s ease;
}
.ef-icon, .ef-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.ef-icon { background: var(--brand-light); color: var(--brand); }
.ef-icon svg { width: 30px; height: 30px; }
.ef-check { background: var(--brand); color: #fff; }
.ef-check svg { width: 32px; height: 32px; }
.ef-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.ef-sub {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 22px;
}
.ef-confirm-btn {
  width: 100%;
  padding: 15px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.3px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(5, 139, 65,0.22);
}
.ef-confirm-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(5, 139, 65,0.30);
}
@media (max-width: 480px) {
  #endFlowModal { padding: 28px 22px 24px; }
  .ef-title { font-size: 18px; }
  .ef-sub { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE & TABLET — global overflow safety + dashboard drawer
   ─────────────────────────────────────────────────────────────────────────── */
.sidebar-backdrop { display: none; }
.mobile-nav-btn { display: none; }

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }

  /* ─── DASHBOARD: slide-out sidebar drawer ─── */
  #app { height: 100vh; overflow: hidden; }
  .app-layout { position: relative; height: 100%; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 84vw;
    max-width: 320px;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.2,.85,.3,1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 18px 0 40px rgba(0,0,0,0.18);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20,20,22,0.45);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }

  .main {
    width: 100%;
    height: 100vh;
  }
  .main-header {
    padding: 0 14px;
    height: 54px;
    gap: 10px;
  }
  .mobile-nav-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-right: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    flex-shrink: 0;
  }
  .mobile-nav-btn span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
  }
  .main-title { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main-actions { gap: 6px; }
  .last-assessed { display: none; }
  .main-actions .btn-sm { padding: 7px 10px; font-size: 12px; }
  .main-actions .btn-sm svg { margin-right: 3px !important; }
  /* Hide reassess label on phones to save room — keep the icon */
  .main-actions .btn-secondary.btn-sm { font-size: 0; padding: 7px 9px; }
  .main-actions .btn-secondary.btn-sm svg { margin-right: 0 !important; }
  .main-content { padding: 16px; }
}

@media (max-width: 640px) {
  /* ─── HOMEPAGE ─── */
  .home-nav { padding: 12px 16px; gap: 10px; }
  .home-nav-actions { gap: 8px; }
  .home-nav-link, .home-nav-login, .home-nav-assess {
    font-size: 12px;
    padding: 8px 14px;
    letter-spacing: 1px;
    min-width: 0;
  }
  .home-topbar-logo img { height: 36px; }

  .home-intro { padding: 54px 18px 24px; }
  .home-hero-eyebrow { font-size: 10.5px; letter-spacing: 2px; margin-bottom: 14px; }
  .home-hero-main { font-size: 40px; letter-spacing: 0; margin-bottom: 22px; }
  .home-hero-lead {
    font-size: 14px;
    margin-bottom: 18px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }
  .home-hero-headline {
    font-size: 19px;
    flex-direction: column;
    align-items: center;
    gap: 10px 0;
  }
  .home-hero-headline .home-hero-phrase { display: block; }

  /* Cards: stack, lift gap from hero, redesign tile header so the title sits
     on the left and the icon on the right (no number circle on mobile). */
  .home-cards { grid-template-columns: 1fr; gap: 18px; padding: 0 16px; margin-top: 38px; }
  .home-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title icon"
      "desc  desc"
      "list  list";
    align-items: center;
    text-align: left;
    column-gap: 14px;
    row-gap: 14px;
    padding: 22px 20px 24px;
  }
  .home-card-num { display: none; }
  .home-card-title {
    grid-area: title;
    text-align: left;
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
  }
  .home-card-iconwrap {
    grid-area: icon;
    width: 86px;
    height: 86px;
    margin: 0;
  }
  .home-card-icon { width: 82px; height: 82px; }
  .home-card-desc { grid-area: desc; margin: 0; }
  .home-card-list { grid-area: list; }
  .home-card-preview { width: 260px; max-width: 88vw; }

  .home-cta { padding: 48px 16px 80px; }
  .home-cta-question {
    font-size: 14px;
    margin-bottom: 26px;
  }
  .home-cta-actions { display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .home-cta-primary,
  .home-cta-secondary {
    font-size: 14px;
    padding: 14px 18px;
    min-width: 0;
    width: 100%;
    letter-spacing: 1.2px;
  }

  /* Stats row — stack vertically so "Always checked" doesn't overflow */
  .home-stats {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .home-stats > div {
    padding: 20px 18px !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .home-stats > div:last-child { border-bottom: none !important; }
  .home-stats > div > div:first-child { font-size: 28px !important; }
  .home-stats > div > div:nth-child(2) { font-size: 12.5px !important; }

  /* Workflow logos strip */
  .home-workflows { padding: 48px 14px 30px !important; }
  .home-workflows-inner { gap: 24px !important; }
  .home-workflows-inner > span {
    white-space: normal !important;
    text-align: center;
    width: 100%;
    font-size: 11.5px !important;
    line-height: 1.45;
  }
  .home-workflows-inner img {
    max-height: 42px !important;   /* +50% from 28px */
    width: auto !important;
    object-fit: contain;
  }

  .home-footer { padding: 22px 18px 30px; font-size: 11px; }
  .home-footer-links { gap: 14px; }

  /* ─── ASSESSMENT FLOW ─── */
  #assessment { min-height: 100dvh; }
  .assess-header {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .assess-header .brand-logo img { height: 30px !important; }
  .assess-progress { max-width: none; margin: 0; padding: 0 4px; }
  .progress-label { font-size: 11px; margin-bottom: 5px; }
  .assess-header .btn-ghost {
    padding: 6px 8px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .assess-body { padding: 28px 16px 40px; }
  .assess-card { max-width: 100%; }
  .assess-card h2 { font-size: 22px; line-height: 1.25; }
  .assess-card .sub { font-size: 13px; }
  .assess-step-num { font-size: 10.5px; margin-bottom: 10px; }
  .option-btn { padding: 14px 16px; gap: 12px; }
  .option-text strong { font-size: 13.5px; }
  .option-text span { font-size: 11.5px; }
  .option-grid.cols-2 { grid-template-columns: 1fr; }
  .assess-nav { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
  .assess-nav .btn { width: 100%; justify-content: center; }
  .help-trigger { font-size: 11.5px; padding: 5px 11px; margin-bottom: 18px; }
  .help-panel-inner { padding: 14px 14px; }

  /* Form rows in assessment / modals — stack */
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* Result screen */
  .assess-result .result-badge { font-size: 12px; height: 32px; padding: 6px 12px; }
  .result-card-v { margin-bottom: 22px; }
  .result-card-v-header { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 16px 12px; }
  .result-card-v-body { padding: 14px 16px 18px; }
  .result-card-v-title { font-size: 15px; }
  .result-course-box { padding: 10px 12px; gap: 10px; }
  .result-actions { gap: 8px; }
  .result-actions .btn { flex: 1; min-width: 0; justify-content: center; font-size: 13px; }
  .stamp { font-size: 11px; padding: 5px 12px; letter-spacing: 1px; }
  .compliance-bar-wrap { margin-bottom: 18px; }
  .info-banner { padding: 10px 12px; font-size: 12px; }

  /* Loader screen */
  .assess-loader { padding: 40px 18px; min-height: 280px; }
  .tick-row { padding: 12px 14px; gap: 12px; }
  .tick-label { font-size: 14px; }

  /* ─── EMAIL CAPTURE ─── */
  #emailCapture { padding: 32px 18px; }
  .ec-logo { height: 72px; margin-bottom: 20px; }
  .ec-title { font-size: 24px; line-height: 1.25; }
  .ec-sub { font-size: 14px; }
  .ec-form { max-width: 100%; }
  .ec-form input, .ec-form button { font-size: 14.5px; padding: 13px 14px; }
  .ec-fine { font-size: 11.5px; padding: 0 8px; }

  /* ─── DASHBOARD CONTENT ─── */
  .tab-hero { gap: 12px; padding-bottom: 14px; margin-bottom: 16px; }
  .tab-hero-icon { width: 44px; height: 38px; }
  .tab-hero-text h2 { font-size: 16px; }
  .tab-hero-text p { font-size: 12px; }

  .overview-status-bar { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  .status-card { padding: 14px 16px; gap: 12px; }
  .status-icon-wrap { width: 38px; height: 38px; }
  .status-icon-wrap svg { width: 18px; height: 18px; }
  .sc-fraction { font-size: 20px; }

  .overview-cards { gap: 12px; }
  .oc-header { padding: 14px 16px; gap: 10px; }
  .oc-title h3 { font-size: 14px; }
  .oc-body { flex-direction: column; align-items: stretch; padding: 12px 16px 14px; gap: 12px; }
  .oc-actions { width: 100%; }
  .oc-actions .btn { flex: 1; justify-content: center; }

  /* First aiders table → card list */
  .fa-table-head { display: none; }
  .fa-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .fa-actions { justify-content: flex-start; margin-top: 6px; flex-wrap: wrap; }
  .fa-cell { font-size: 12.5px; }
  .empty-slot { padding: 14px 16px; gap: 12px; }

  /* Kits grid → single column */
  .kit-grid { grid-template-columns: 1fr; gap: 12px; }
  .kit-card-header { padding: 14px 16px 10px; }
  .kit-body { padding: 12px 16px 14px; }
  .kit-actions { flex-wrap: wrap; }
  .kit-actions .btn { flex: 1; min-width: 0; justify-content: center; }

  .section-summary { gap: 5px; }
  .summary-chip { padding: 5px 10px; font-size: 11.5px; }
  .summary-chip-num { font-size: 13px; }
  .section-header { flex-wrap: wrap; gap: 8px; }

  /* Site tabs already scroll horizontally — just trim padding */
  .site-tabs-wrap { margin: 0 -16px 14px; padding: 0 16px; }

  /* ─── MODALS ─── */
  .modal-overlay { padding: 0; }
  .modal {
    max-width: 100%;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .modal-header { padding: 16px 18px; }
  .modal-header h3 { font-size: 15px; }
  .modal-body { padding: 18px; }
  .modal-footer { padding: 14px 18px; flex-wrap: wrap; gap: 8px; }
  .modal-footer .btn { flex: 1; min-width: 0; justify-content: center; }

  /* Scroll popup */
  #scrollPopup {
    padding: 22px 20px;
    width: calc(100% - 32px);
    max-width: 100%;
    gap: 14px;
  }
  #scrollPopup .popup-text { font-size: 16px; }
  #scrollPopup .popup-sub { font-size: 12px; }

  /* Toast — allow wrap on tiny screens */
  #toast {
    max-width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
    font-size: 12.5px;
    padding: 10px 16px;
  }
}

/* Extra-tight screens (older phones / small Android) */
@media (max-width: 360px) {
  .home-hero-main { font-size: 34px; }
  .home-nav-link, .home-nav-login, .home-nav-assess { font-size: 11px; padding: 7px 11px; letter-spacing: 0.8px; }
  .home-topbar-logo img { height: 32px; }
  .ec-title { font-size: 21px; }
  .assess-card h2 { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT / LOGIN modal tweaks + EMAIL CAPTURE screen
   ─────────────────────────────────────────────────────────────────────────── */
#emailCapture {
  display: none;
  min-height: 100vh;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
#emailCapture.show { display: flex; animation: sfaFadeUp 0.55s ease both; }
.ec-logo { height: 96px; width: auto; margin-bottom: 28px; }
.ec-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}
.ec-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.4px;
  max-width: 620px;
  line-height: 1.2;
}
.ec-sub {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 auto 28px;
}
.ec-form {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-form input {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}
.ec-form input:focus { border-color: var(--brand); }
.ec-form button {
  background: #111111;
  color: #fff;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 15px;
  padding: 16px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}
.ec-form button:hover { background: var(--brand); transform: translateY(-1px); }
.ec-fine {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 18px;
  max-width: 460px;
}
.ec-success {
  background: var(--s-green-bg);
  border: 1px solid #6EE7B7;
  color: var(--s-green-text);
  padding: 18px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.ec-success.show { display: block; }

/* ─── Pricing section (vertical stack) ─── */
.home-pricing {
  max-width: 1100px;
  margin: 12px auto 56px;
  padding: 55px 24px 8px;
  text-align: center;
  scroll-margin-top: 24px;
}
.home-pricing-title {
  font-size: 51px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 14px;
}
.home-pricing-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 auto 14px;
}
.home-pricing-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 660px;
  margin: 0 auto 36px;
}
.home-pricing-note .note-red { color: #C8102E; font-weight: 700; }

.home-pricing-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 30px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}
.price-row:hover {
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(5,139,65,0.12);
  transform: translateY(-2px);
}
.price-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--brand-light, #EFF7F3);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-icon svg { width: 34px; height: 34px; display: block; }
.price-info { flex: 1; min-width: 0; }
.price-tier {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 10px;
}
.price-criteria {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.price-criteria > div {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}
.price-criteria > div::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--brand);
  font-weight: 700;
}
.price-criteria .price-orsep {
  padding-left: 20px;
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 1px 0;
}
.price-criteria .price-orsep::before { content: none; }
.price-includes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 540px;
}
.price-action {
  flex-shrink: 0;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  text-align: center;
}
.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--ink);
}
.price-currency {
  font-size: 22px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 4px;
  margin-right: 1px;
}
.price-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 4px;
}
.price-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
}
.price-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 6px 16px rgba(5,139,65,0.25); }
.price-btn:active { transform: translateY(1px); }
.home-pricing-foot {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 28px 0 0;
}

@media (max-width: 720px) {
  .price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .price-action {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .price-amount { justify-content: flex-start; }
  .price-btn { width: auto; flex: 1; max-width: 230px; }
  .home-pricing-title { font-size: 27px; }
}

/* ─── Nav: Pricing as a plain text link ─── */
.home-nav-text {
  background: none;
  border: none;
  padding: 11px 10px;
  min-width: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease;
}
.home-nav-text:hover { color: var(--brand); }

/* ─── Progressively larger tier icons ─── */
.price-icon--md { width: 66px; height: 66px; }
.price-icon--md svg { width: 42px; height: 42px; }
.price-icon--lg { width: 74px; height: 74px; }
.price-icon--lg svg { width: 50px; height: 50px; }
/* Red icon variant — matches the red featured-tile outline */
.price-icon--red { background: #FDECEE; color: #C8102E; }

/* ─── Featured (centre) tile — red bordered, slightly larger ─── */
@keyframes sfaCardInFeatured {
  0%   { opacity: 0; transform: translateY(28px) scale(1.0); }
  100% { opacity: 1; transform: translateY(0) scale(1.05); }
}
.home-card--featured {
  border: 2px solid #C8102E;
  box-shadow: 0 16px 40px rgba(200,16,46,0.16);
  z-index: 2;
  animation-name: sfaCardInFeatured;
}
.home-card--featured:hover {
  border-color: #C8102E;
  box-shadow: 0 20px 48px rgba(200,16,46,0.22);
  transform: translateY(-4px) scale(1.05);
}

/* ─── About section (light grey, 50/50 text + image) ─── */
.home-about {
  background: #F4F6F8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 68px 24px 100px; /* top (66→76→68); bottom (66→79→87→100) */
  scroll-margin-top: 24px;
}
.home-about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-about-title {
  font-size: 51px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 18px;
}
.home-about-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2, #475569);
  margin: 0 0 14px;
}
.home-about-text p:last-child { margin-bottom: 0; }
/* Single red button inside About — left-aligned, same size as the CTA button. */
.home-about-actions { display: flex; justify-content: flex-start; margin-top: 28px; }
.home-about-imgph {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #E8EDF1, #D7DFE6);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-3);
}
/* (old placeholder icon/text styles removed — the box now hosts the demo loop,
   and a blanket `svg { width:56px }` here was inflating the loop's icons.) */

@media (max-width: 820px) {
  .home-about-inner { grid-template-columns: 1fr; gap: 28px; }
  .home-about-title { font-size: 34px; }
}

/* ─── Pricing rows: staggered reveal on scroll into view ─── */
.home-pricing-stack .price-row {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.2,.85,.3,1.05),
              transform .55s cubic-bezier(.2,.85,.3,1.05),
              box-shadow .2s ease,
              border-color .2s ease;
}
.home-pricing-stack.in-view .price-row { opacity: 1; transform: none; }
.home-pricing-stack.in-view .price-row:nth-child(2) { transition-delay: 0.13s; }
.home-pricing-stack.in-view .price-row:nth-child(3) { transition-delay: 0.26s; }
.home-pricing-stack.in-view .price-row:nth-child(4) { transition-delay: 0.39s; }
@media (prefers-reduced-motion: reduce) {
  .home-pricing-stack .price-row { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   REPORT ACTIONS · PRIVATE LINK · ACTION PLAN
   ═══════════════════════════════════════════════════════════ */
.report-link-banner {
  border: 1px solid #C5DDD3;
  background: var(--brand-light, #EFF7F3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.report-link-icon { font-size: 16px; }
.report-link-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-dark, #046C33); margin-bottom: 6px; }
.report-link-url {
  font-size: 13px; color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; margin-bottom: 12px;
}
.report-link-copy { display: inline-flex; white-space: nowrap; }
.report-link-note { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); margin: 12px 0 0; }

.report-actions { display: flex; flex-direction: column; gap: 12px; }
.report-action {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 16px 22px; border-radius: 10px;
  border: 1.5px solid var(--border-strong, #D5DBE2);
  background: var(--surface, #fff); color: var(--ink);
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.3;
  text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.report-action:hover { border-color: var(--brand); transform: translateY(-1px); }
.report-action-ic { display: inline-flex; flex: none; }
.report-action-ic svg { width: 22px; height: 22px; display: block; }
.report-action--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 5px 16px rgba(5,139,65,0.22); }
.report-action--primary:hover { background: var(--brand-dark, #046C33); border-color: var(--brand-dark, #046C33); }
.report-action-note { margin: 2px 0 0; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.45; color: #C8102E; }
.report-data-notice { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); margin: 16px 0 0; text-align: center; }

/* On-screen recommendation list (three options, ranked by price) */
.rec-block { margin-top: 6px; }
/* 50% more space above the recommendations so it's not a wall of text */
.result-card-v-body .rec-block { margin-top: 24px; }
/* Recommendation slots — styled as clean, third-party listings (Google-like),
   deliberately distinct from the green site chrome: blue provider titles,
   lighter weights, generous spacing. */
.rec-block-head { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.rec-block-head span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.rec-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; margin-bottom: 10px;
  border: 1px solid #E5E9EF; border-radius: 12px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rec-block-head + .rec-opt { border-color: #C7D6EC; background: #F7FAFF; }
.rec-opt:hover { border-color: #9AB4DD; box-shadow: 0 3px 14px rgba(37,99,235,0.09); }
.rec-opt-logo { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid #E5E9EF; padding: 5px; }
.rec-opt-logo--ph { background: var(--surface-2, #F4F6F8); }
.rec-opt-main { flex: 1; min-width: 0; }
.rec-opt-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.rec-opt-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rec-opt-provider { font-size: 16px; font-weight: 600; letter-spacing: -0.1px; color: #2563EB; }
.rec-opt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.rec-opt-name { font-size: 13px; font-weight: 400; color: var(--ink-2); line-height: 1.4; }
.rec-opt-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.rec-opt-price { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.rec-opt-link {
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: #2563EB; background: #fff; border: 1px solid #C7D6EC; border-radius: 8px; padding: 7px 15px;
  transition: background 0.15s, border-color 0.15s;
}
.rec-opt-link:hover { background: #EFF4FE; border-color: #2563EB; }
.rec-tag { font-size: 9.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.rec-tag--cheap   { background: #E7F4EC; color: #15803D; }
.rec-tag--near    { background: #E1F1EF; color: #0F766E; }
.rec-tag--time    { background: #F3E8FE; color: #7C3AED; }
.rec-tag--online  { background: #E1F1EF; color: #0F766E; }
.rec-tag--big     { background: #FEF4E6; color: #B45309; }
.rec-tag--neutral { background: #EEF1F4; color: #555; }
.rec-block-note { font-size: 11px; color: var(--ink-3); font-style: italic; margin: 10px 0 0; }
@media (max-width: 560px) {
  .rec-opt { flex-direction: column; align-items: stretch; }
  .rec-opt-right { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Additional-product sub-section within the kit card */
/* Additional-product sub-section — clearly separated & larger so it's obvious
   the kit recommendations have ended and a new product section begins. */
.rec-subsection { margin-top: 30px; padding-top: 22px; border-top: 3px solid var(--border); }
.rec-subsection--report { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.rec-subsection-title { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.2px; margin-bottom: 4px; }
.rec-subsection--report .rec-subsection-title { font-size: 14px; font-weight: 700; }
.req-need--sm { font-size: 14px; margin-bottom: 4px; }

/* Recommendations accordion (action plan) */
.rec-accordion { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface, #fff); overflow: hidden; }
.rec-accordion > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface-2, #F4F6F8);
}
.rec-accordion > summary::-webkit-details-marker { display: none; }
.rec-accordion-q { color: var(--ink); }
.rec-accordion-hint { flex: none; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.rec-accordion[open] > summary { border-bottom: 1px solid var(--border); }
.rec-accordion[open] > summary .rec-accordion-hint::after { content: ''; }
.rec-accordion-body { padding: 12px 16px 4px; }
.rec-accordion-body .rec-block { margin-top: 0; }

/* Enlarged, centred overall risk badge — the key takeaway. Half the previous
   font weight (was 800). */
.assess-result .result-badge--xl {
  height: auto;
  font-size: 22px;
  font-weight: 500;
  padding: 14px 30px;
  gap: 12px;
  margin-bottom: 0;
  letter-spacing: -0.2px;
}
.assess-result .result-badge--xl .result-dot { width: 12px; height: 12px; }

/* ── Per-site sections (multi-site assessments) ── */
.site-section { margin-bottom: 8px; text-align: left; }
.site-section + .site-section { margin-top: 30px; padding-top: 30px; border-top: 2px solid var(--border); }
.site-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-align: left; margin-bottom: 16px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2, #F4F6F8); border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
}
.site-section-titles { text-align: left; }
.site-section-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }
.site-section-name { font-size: 21px; font-weight: 650; color: var(--ink); letter-spacing: -0.4px; line-height: 1.15; }
.site-section-addr { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.assess-result .result-badge--site { height: auto; font-size: 13px; font-weight: 600; padding: 7px 14px; margin-bottom: 0; }

/* Card header icon + the highlighted "what's required" line */
.rcv-titlewrap { display: flex; align-items: center; gap: 10px; }
.rcv-ic { flex: none; width: 26px; height: 26px; color: var(--brand); }
.rcv-ic svg { width: 26px; height: 26px; display: block; }
/* Card bodies are left-aligned (the report header is centred, so override). */
.assess-result .result-card-v-body { text-align: left; }
.req-need { font-size: 16px; color: var(--ink); margin-bottom: 6px; text-align: left; }
.req-need-label { font-weight: 500; color: var(--ink-2); }
.req-need-val { font-weight: 700; color: var(--ink); }
.req-need-num { color: #C8102E; font-weight: 800; }
.req-detail { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 2px; }
/* Soft, non-bold prompt above the options ("Need a first aid kit?") */
.req-prompt { font-size: 13.5px; font-weight: 400; color: var(--ink-2); margin: 18px 0 8px; }
.req-prompt + .rec-block { margin-top: 0; }

/* Summary box under the overall risk badge */
.report-summary { background: var(--surface-2, #F4F6F8); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 0 0 26px; text-align: left; }
.report-summary-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.report-summary p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.report-summary strong { color: var(--ink); font-weight: 700; }

/* Report note banner — red, with a circled "i" */
.info-banner.info-banner--note {
  background: #FDECEE;
  color: #8A1020;
  border: 1px solid #E9B8BF;
}
.info-banner-i {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #C8102E;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  margin-top: 1px;
}

/* Private link box moved to the bottom — generous spacing under the red note */
.report-link-bottom { margin-top: 40px; }
.report-link-bottom .report-link-note { margin-top: 24px; }

/* Doc recommendation tag chips (print) */

/* Convert-to-plan spinner */
.ap-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 80px 20px; }
.ap-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand); animation: apSpin 0.8s linear infinite; }
@keyframes apSpin { to { transform: rotate(360deg); } }
.ap-loading-text { font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* Action plan */
.ap-doc-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 8px; }
.ap-doc-actions--bottom { margin: 26px 0 0; }
.ap-doc-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 14px; border-radius: 10px;
  border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 5px 16px rgba(5,139,65,0.2);
  transition: background 0.15s, transform 0.15s;
}
.ap-doc-btn:hover { background: var(--brand-dark, #046C33); transform: translateY(-1px); }
.ap-doc-btn--outline { background: #fff; color: var(--brand); border-color: var(--brand); box-shadow: none; }
.ap-doc-btn--outline:hover { background: var(--brand-light, #EFF7F3); color: var(--brand-dark, #046C33); }
.ap-doc-ic { display: inline-flex; }
.ap-doc-ic svg { width: 20px; height: 20px; display: block; }

/* Action plan title — big & clear, echoing the assessment report */
.ap-titlebar { text-align: center; margin-bottom: 22px; }
.ap-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.ap-title { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); margin: 0 0 14px; }
.ap-prep { margin: 0 0 16px; }
.ap-prep-label { font-size: 12px; color: var(--ink-3); letter-spacing: 0.3px; margin-bottom: 4px; }
.ap-prep-name { font-size: 30px; font-weight: 700; color: var(--brand); letter-spacing: -0.5px; line-height: 1.1; }
.ap-prep-date { font-size: 12px; color: var(--ink-3); letter-spacing: 0.3px; margin-top: 4px; }
.ap-sub { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 auto; max-width: 560px; }

.ap-head { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.ap-field { text-align: left; }
.ap-field--full { grid-column: 1 / -1; }
.ap-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.ap-field input:disabled { background: var(--surface-2, #F4F6F8); color: var(--ink-3); cursor: not-allowed; }
.ap-pcbu { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); font-style: italic; margin: 22px 0 0; text-align: center; }

.ap-overall {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 10px; margin-bottom: 33px;
  background: var(--surface-2, #F4F6F8); border: 1px solid var(--border);
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px; color: var(--ink-2);
}
.ap-overall.st-red { background: #FDECEE; border-color: #E9B8BF; color: #8A1020; }
.ap-overall.st-orange { background: #FEF3E2; border-color: #F2D49B; color: #92400E; }
.ap-overall.st-green,
.ap-overall.is-complete { background: var(--brand-light, #EFF7F3); border-color: #C5DDD3; color: var(--brand-dark, #046C33); }

.ap-light { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #D6DBE0; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.04); transition: background 0.2s, box-shadow 0.2s; }
/* Red (empty) → orange (partly filled) → green (complete) */
.ap-light.s-red { background: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,0.16); }
.ap-light.s-orange { background: #E68A00; box-shadow: 0 0 0 3px rgba(230,138,0,0.18); }
.ap-light.s-green { background: var(--brand); box-shadow: 0 0 0 3px rgba(5,139,65,0.18); }

.ap-site-head { text-align: left; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; margin: 58px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.ap-site-head .ap-site-addr { font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
/* Action-plan blocks reuse the report card (.result-card-v) for matching style */
.ap-block { margin-bottom: 32px; text-align: left; }
/* Action-plan body sits inside the centred .assess-result — keep its content left-aligned */
.assess-result.ap .report-summary, .assess-result.ap .ap-head, .assess-result.ap .ap-overall { text-align: left; }
.ap-opt { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ap-row { padding: 14px 16px; border-radius: 10px; background: var(--surface-2, #F8FAFB); margin-top: 28px; }
.ap-row:first-of-type { margin-top: 16px; }
.ap-row.is-complete { background: var(--brand-light, #EFF7F3); }
.ap-row-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.ap-row .ap-light { margin: 0; }
/* Stacked fields — one per line for more space */
.ap-row-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ap-input { min-width: 0; }
.ap-input label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ap-input input { width: 100%; }
.ap-block-note { font-size: 12px; font-style: italic; color: var(--ink-3); margin: 12px 0 0; }

@media (max-width: 640px) {
  .report-actions { grid-template-columns: 1fr; }
  .ap-doc-actions { grid-template-columns: 1fr; }
  .ap-head { grid-template-columns: 1fr; }
  .ap-title { font-size: 30px; }
}

/* Over-the-limit (wrong-tier) workforce option + warning */
.option-btn--over { border-color: #E9B8BF; }
.option-btn--over .option-text strong { color: #C8102E; }
.option-btn--over .option-radio { border-color: #C8102E; }
.option-btn--over.selected { border-color: #C8102E; background: #FDECEE; box-shadow: 0 0 0 3px rgba(200,16,46,0.14); }
.option-btn--over.selected .option-radio { border-color: #C8102E; }
.option-btn--over.selected .option-radio::after { background: #C8102E; }
.assess-overwarn {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 16px; padding: 14px 16px;
  background: #FDECEE; border: 1px solid #E9B8BF; border-radius: 10px;
  text-align: left;
}
.assess-overwarn-ic { flex: none; font-size: 17px; line-height: 1.4; color: #C8102E; }
.assess-overwarn p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: #8A1020; font-weight: 600; }
.assess-overwarn-btn { background: #C8102E; color: #fff; border: 1.5px solid #C8102E; }
.assess-overwarn-btn:hover { background: #A00C24; border-color: #A00C24; }

/* Printable documentation (download) — premium styled */
#printRoot { display: none; }
@media print {
  body.printing > :not(#printRoot) { display: none !important; }
  body.printing #printRoot { display: block; }
  #printRoot, #printRoot * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  #printRoot .doc { font-family: Inter, system-ui, -apple-system, sans-serif; color: #1f2421; padding: 6px 26px 26px; }

  /* Cover */
  #printRoot .doc-cover { text-align: center; padding: 30px 28px 26px; margin-bottom: 30px; background: linear-gradient(180deg,#F2F8F4 0%,#FFFFFF 100%); border: 1px solid #D9E7DF; border-radius: 14px; }
  #printRoot .doc-logo { height: 44px; margin-bottom: 10px; }
  #printRoot .doc-kicker { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: #058B41; margin-bottom: 6px; }
  #printRoot .doc-cover h1 { font-size: 27px; line-height: 1.15; margin: 0 0 20px; color: #1f2421; font-weight: 800; letter-spacing: -0.5px; }
  #printRoot .doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 440px; margin: 0 auto; text-align: left; border: 1px solid #D9E7DF; border-radius: 10px; overflow: hidden; background: #fff; }
  #printRoot .doc-meta-row { padding: 10px 14px; border-bottom: 1px solid #EDF2EF; }
  #printRoot .doc-meta-row:nth-child(odd) { border-right: 1px solid #EDF2EF; }
  #printRoot .doc-meta-row:nth-last-child(-n+2) { border-bottom: none; }
  #printRoot .doc-meta-row span { display: block; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8A968F; font-weight: 700; margin-bottom: 2px; }
  #printRoot .doc-meta-row strong { font-size: 13px; color: #1f2421; }

  /* Section heads */
  #printRoot h2 { font-size: 18px; color: #1f2421; font-weight: 800; margin: 26px 0 4px; padding-bottom: 8px; border-bottom: 2px solid #058B41; }
  #printRoot .doc-lede { font-size: 12.5px; color: #555; line-height: 1.55; margin: 0 0 18px; }
  #printRoot .doc-prep { text-align: center; margin: 0 0 18px; }
  #printRoot .doc-prep-label { font-size: 11px; color: #8A968F; letter-spacing: 0.3px; margin-bottom: 3px; }
  #printRoot .doc-prep-name { font-size: 22px; font-weight: 800; color: #058B41; letter-spacing: -0.4px; }
  #printRoot .doc-risk-wrap { text-align: center; margin: 4px 0 18px; }
  #printRoot .doc-risk-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; padding: 7px 18px; border-radius: 999px; }
  #printRoot .doc-risk-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
  #printRoot .doc-risk--high { background: #FBE0E4; color: #C8102E; }
  #printRoot .doc-risk--medium { background: #FBF1DD; color: #B45309; }
  #printRoot .doc-risk--low { background: #E7F4EC; color: #046C33; }
  #printRoot .doc-summary { background: #F4F6F8; border-radius: 8px; padding: 12px 14px; font-size: 11.5px; line-height: 1.55; color: #444; margin: 0 0 18px; }
  #printRoot .doc-summary strong { color: #1f2421; }

  /* Requirement cards */
  #printRoot .doc-req { border: 1px solid #E2E8E4; border-radius: 12px; padding: 0; margin-bottom: 16px; overflow: hidden; page-break-inside: avoid; }
  #printRoot .doc-req-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #F6FAF7; border-bottom: 1px solid #E2E8E4; }
  #printRoot .doc-req-no { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #058B41; color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  #printRoot .doc-req-titles { flex: 1; }
  #printRoot .doc-req-title { font-size: 14.5px; font-weight: 800; color: #1f2421; }
  #printRoot .doc-req-opt { font-size: 10px; font-weight: 700; color: #8A968F; text-transform: uppercase; letter-spacing: 0.05em; }
  #printRoot .doc-req-detail { font-size: 11.5px; color: #5a655e; line-height: 1.5; margin-top: 2px; }
  #printRoot .doc-req-need { flex: none; align-self: center; font-size: 11px; font-weight: 800; color: #046C33; background: #E7F4EC; border: 1px solid #C5DDD3; border-radius: 999px; padding: 5px 11px; white-space: nowrap; }

  #printRoot .doc-rec-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8A968F; padding: 12px 16px 6px; }
  #printRoot .doc-recs { padding: 0 16px 14px; }
  #printRoot .doc-rec { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #E9EDEA; border-radius: 9px; margin-top: 8px; background: #fff; }
  #printRoot .doc-rec:first-child { border-color: #C5DDD3; background: #FBFDFC; }
  #printRoot .doc-rec-rank { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #C5DDD3; color: #046C33; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  #printRoot .doc-rec-main { flex: 1; min-width: 0; }
  #printRoot .doc-rec-provider { font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #058B41; }
  #printRoot .doc-rec-tag { display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: #046C33; background: #E7F4EC; border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
  #printRoot .doc-rec-name { font-size: 12.5px; font-weight: 600; color: #1f2421; }
  #printRoot .doc-rec-cost { flex: none; font-size: 12.5px; font-weight: 800; color: #1f2421; white-space: nowrap; }
  #printRoot .doc-rec-cta { flex: none; }
  #printRoot .doc-rec-cta a { font-size: 11.5px; font-weight: 700; color: #fff; background: #058B41; border-radius: 7px; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
  #printRoot .doc-rec-note { font-size: 11px; color: #6a756e; font-style: italic; line-height: 1.5; margin: 10px 2px 0; }

  /* Action-plan tables */
  #printRoot h3 { font-size: 13px; margin: 16px 0 5px; color: #1f2421; }
  #printRoot .doc-site { font-size: 15px; color: #046C33; border-bottom: 1.5px solid #C5DDD3; padding-bottom: 5px; margin: 20px 0 12px; }
  #printRoot .doc-site--break { page-break-before: always; break-before: page; padding-top: 8px; }
  #printRoot .doc-site-sub { display: block; font-size: 11px; font-weight: 400; color: #8A968F; margin-top: 3px; }
  #printRoot .doc-plan-req { font-size: 12px; margin: 18px 0 4px; }
  #printRoot .doc-plan-tbl { margin-bottom: 6px; }
  #printRoot .doc-plan-status { display: inline-block; font-size: 13px; font-weight: 800; color: #92400E; background: #FEF3E2; border-radius: 6px; padding: 6px 12px; margin: 0 0 28px; }
  #printRoot .doc-plan-status.is-complete { color: #046C33; background: #E8F3EE; }
  #printRoot .doc-pagebreak { page-break-before: always; break-before: page; }
  #printRoot .doc-plan-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
  #printRoot .doc-plan-tbl th, #printRoot .doc-plan-tbl td { border: 1px solid #E2E8E4; padding: 7px 9px; text-align: left; vertical-align: top; }
  #printRoot .doc-plan-tbl th { background: #F6FAF7; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: #5a655e; }

  #printRoot .doc-note { margin-top: 24px; padding-top: 14px; border-top: 1px solid #E2E8E4; font-size: 10.5px; color: #8A968F; font-style: italic; line-height: 1.5; }
  #printRoot .doc-link { margin-top: 14px; padding-top: 12px; border-top: 1px solid #E2E8E4; font-size: 11px; }
  #printRoot .doc-link-label { display: block; font-weight: 700; color: #1f2421; margin-bottom: 2px; }
  #printRoot .doc-link a { color: #046C33; word-break: break-all; }
  #printRoot .doc-integrity { margin-top: 10px; font-size: 9.5px; color: #8A968F; line-height: 1.45; }
  #printRoot .doc-integrity code { font-size: 9px; word-break: break-all; color: #5a655e; }
  #printRoot .doc-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 10px; color: #8A968F; }
  #printRoot .doc-foot img { height: 16px; opacity: 0.8; }
}

/* ── Audit reference line (report / action plan) ─────────────────────── */
.report-ref { font-size: 11px; color: var(--ink-3); margin-top: 8px; letter-spacing: 0.2px; }
.report-ref strong { color: var(--ink-2); font-weight: 700; }

/* ── Admin / audit console ───────────────────────────────────────────── */
#adminRoot { position: fixed; inset: 0; background: #F4F6F8; z-index: 4000; overflow-y: auto; }
.adm-shell { min-height: 100%; display: flex; flex-direction: column; }
.adm-login { max-width: 380px; margin: 12vh auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.adm-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.adm-logo { height: 30px; width: auto; display: block; }
.adm-brand span { color: #C8102E; font-weight: 600; }
.adm-brand--login { justify-content: center; margin-bottom: 6px; }
.adm-brand--login .adm-logo { height: 36px; }
.adm-login-sub { font-size: 13px; color: var(--ink-3); margin: 6px 0 18px; }
.adm-login-err { color: #C8102E; font-size: 13px; margin-top: 8px; }
.adm-login-note { font-size: 11px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.adm-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.adm-tabs { display: flex; gap: 6px; flex: 1; margin-left: 48px; }
.adm-tab { appearance: none; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.adm-tab:hover { background: var(--surface-2, #F4F6F8); }
.adm-tab.is-on { background: var(--brand-light, #EFF7F3); color: var(--brand-dark, #046C33); border-color: #C5DDD3; }
.adm-body { padding: 22px; max-width: 1100px; width: 100%; margin: 0 auto; }
.adm-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.adm-toolbar .form-input { max-width: 280px; }
.adm-filter { font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; }
.adm-filter .form-input { max-width: 160px; }
.adm-count { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.adm-list { display: flex; flex-direction: column; gap: 12px; }
.adm-empty { padding: 30px; text-align: center; color: var(--ink-3); background: #fff; border: 1px dashed var(--border); border-radius: 12px; }
.adm-rec { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.adm-rec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.adm-no { font-weight: 800; color: var(--ink); font-size: 15px; }
.adm-date { color: var(--ink-3); font-size: 12px; margin-left: 10px; }
.adm-risk { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.adm-risk.high { background: #FBE0E4; color: #C8102E; }
.adm-risk.medium { background: #FBF1DD; color: #B45309; }
.adm-risk.low { background: #E7F4EC; color: #046C33; }
.adm-rec-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.adm-rec-sum { font-size: 13.5px; color: var(--ink); margin-top: 8px; }
.adm-integrity { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.adm-integrity code { font-size: 10.5px; color: var(--ink-2); word-break: break-all; }
.adm-rec details { margin-top: 10px; }
.adm-rec summary { cursor: pointer; font-size: 12.5px; color: var(--brand-dark, #046C33); font-weight: 600; }
.adm-json { background: #0F172A; color: #D7E3EE; padding: 14px; border-radius: 8px; font-size: 11px; line-height: 1.5; overflow-x: auto; margin-top: 10px; white-space: pre; }
.adm-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.adm-quarter { background: var(--brand-light, #EFF7F3); border: 1px solid #C5DDD3; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--ink); margin-bottom: 18px; }
.adm-quarter-note { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.adm-h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 18px 0 8px; }
.adm-ul { margin: 0 0 6px; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.adm-tablewrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.adm-table th, .adm-table td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.adm-table th { background: #F6FAF7; font-weight: 700; color: var(--ink-2); }

/* Admin — live data swap toolbar */
.adm-datatools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.adm-override { font-size: 12px; font-weight: 700; color: #B45309; }
.adm-live { font-size: 12px; font-weight: 700; color: #046C33; }

/* ── Recommended (optional) requirements: quiet, desaturated, never "missing" ── */
.result-card-v.is-rec { background: #FCFCFD; border-color: #E6E9ED; }
.result-card-v.is-rec .result-card-v-header { background: #F6F7F9; }
.result-card-v.is-rec .rcv-ic { color: #9AA5B0; }
.result-card-v.is-rec .result-card-v-title { color: #5A6571; }
.result-card-v.is-rec .req-need-num { color: #5A6571; font-weight: 700; }
.result-card-v.is-rec .req-need-label { color: #8A97A4; }
.result-card-v.is-rec .req-detail { color: #8A97A4; }

/* Coachmark pointing to the Hide button on the first recommendation */
.rec-coach { position: absolute; z-index: 3000; max-width: 250px; background: #1A1A1A; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; box-shadow: 0 8px 26px rgba(0,0,0,0.24); opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.rec-coach.is-on { opacity: 1; transform: translateY(0); }
.rec-coach-arrow { position: absolute; top: -5px; right: 18px; width: 11px; height: 11px; background: #1A1A1A; transform: rotate(45deg); }

/* Mobile: keep the middle tile simple — green by default, no coin/clock badges,
   and none of the red→green reveal animation. */
@media (max-width: 640px) {
  .home-card--featured .hc-pop { display: none; }
  .home-card--featured .home-card-icon path[fill="#058B41"] { fill: #058B41; }
  .home-card--featured .t-top { color: #058B41; }
  .home-card--featured { border-color: #058B41; box-shadow: 0 16px 40px rgba(5,139,65,0.16); }
  .home-card--featured .home-card-list li.hl,
  .home-card--featured .home-card-list li.hl .hl-text { color: #058B41; transition: none; }
  .home-card--featured .home-card-list li.hl::before { background: #058B41; transition: none; }
}

/* ════════════════════════════════════════════════════════════════════ */
/* Looping demo "video" (?demo=loop) — screen-record this.               */
/* ════════════════════════════════════════════════════════════════════ */
#loopRoot { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% -10%, #EAF6EF 0%, #F4F7F6 55%, #EEF2F0 100%); overflow: hidden; }
.loop-exit { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: none; background: rgba(255,255,255,.7); border-radius: 50%; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.loop-frame { width: min(640px, 92vw); }
.loop-head { display: flex; justify-content: center; margin-bottom: 14px; }
/* multiply blends the logo's white background away on the light backdrop */
.loop-head img { height: 34px; width: auto; mix-blend-mode: multiply; }
.loop-caption { text-align: center; margin-bottom: 18px; }
.loop-caption.in { animation: loopCapIn .5s ease both; }
@keyframes loopCapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loop-step { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.loop-caption h2 { font-size: 27px; font-weight: 650; letter-spacing: -0.5px; color: var(--ink); margin: 5px 0 0; }
.loop-stage { position: relative; height: 380px; }
.loop-scene { position: absolute; inset: 0; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.loop-scene.is-active { opacity: 1; transform: none; }
.loop-card { height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.10); padding: 24px 26px; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.loop-progress { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.loop-dot { width: 40px; height: 5px; border-radius: 3px; background: #D6E0DB; position: relative; overflow: hidden; }
.loop-dot.is-done { background: var(--brand); }
.loop-dot.is-active::after { content: ''; position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: loopFill 3.2s linear forwards; }
@keyframes loopFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scene 1 — assess */
.loop-mini-kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.loop-mini-title { font-size: 21px; font-weight: 650; color: var(--ink); margin: 8px 0 4px; letter-spacing: -0.3px; }
.loop-mini-sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.loop-optgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loop-opt { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.loop-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C4CCD4; flex: none; }
.loop-scene.is-active .loop-opt--pick { animation: loopPick .5s .5s both; }
.loop-scene.is-active .loop-opt--pick .loop-radio { animation: loopRadio .5s .5s both; }
@keyframes loopPick { to { border-color: var(--brand); background: var(--brand-light, #EFF7F3); color: var(--brand-dark, #046C33); } }
@keyframes loopRadio { to { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--brand); } }
.loop-continue { margin-top: 22px; display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 10px; }

/* Scene 2 — report */
.loop-center { display: flex; justify-content: center; }
.loop-summary { margin: 16px 0 16px; }
.loop-reqrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; }
.loop-reqicon { width: 22px; height: 22px; color: var(--brand); flex: none; }
.loop-reqicon svg { width: 22px; height: 22px; }
.loop-reqname { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); }

/* Scene 3 — recommendations (reuses .rec-* classes) */
.loop-rec-head { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.loop-card .rec-opt { margin-bottom: 12px; }

/* Scene 4 — confirm / action plan; status fades red→green while active */
.loop-status { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 16px; font-weight: 650;
  background: #FDECEE; border: 1px solid #E9B8BF; color: #8A1020; }
.loop-status-light { width: 18px; height: 18px; border-radius: 50%; background: #C8102E; flex: none; }
.loop-scene.is-active .loop-status { animation: loopStatusBox .7s 1.4s both; }
.loop-scene.is-active .loop-status-light { animation: loopStatusDot .7s 1.4s both; }
@keyframes loopStatusBox { to { background: #E8F3EE; border-color: #C5DDD3; color: var(--brand-dark, #046C33); } }
@keyframes loopStatusDot { to { background: var(--brand); } }
/* Status text swaps 0/2 → 2/2 exactly as the box turns green */
.loop-status-text { position: relative; display: inline-block; white-space: nowrap; }
.loop-status-after { position: absolute; left: 0; top: 0; opacity: 0; }
.loop-scene.is-active .loop-status-before { animation: loopFadeOut .4s 1.4s both; }
.loop-scene.is-active .loop-status-after { animation: loopFade .4s 1.55s both; }
.loop-entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-top: 10px; background: var(--surface-2, #F8FAFB); }
.loop-entry-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.loop-tick { width: 16px; height: 16px; border-radius: 50%; background: #D6DBE0; flex: none; }
.loop-scene.is-active .loop-tick { animation: loopTick .5s .8s both; }
@keyframes loopTick { to { background: var(--brand); box-shadow: 0 0 0 3px rgba(5,139,65,.18); } }
.loop-entry-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.loop-entry-fields span { font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; }

/* Scene 5 — download */
.loop-dlcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.loop-doc { width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,.10); padding: 20px 18px; text-align: center; }
.loop-scene.is-active .loop-doc { animation: loopDocIn .5s .2s both; }
@keyframes loopDocIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.loop-doc-logoname { font-size: 15px; font-weight: 650; color: var(--ink); }
.loop-doc-prep { font-size: 10px; color: var(--ink-3); margin-top: 8px; }
.loop-doc-biz { font-size: 17px; font-weight: 650; color: var(--brand); }
.loop-doc-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; font-weight: 800; color: #B45309; background: #FBF1DD; padding: 4px 12px; border-radius: 999px; }
.loop-doc-dot { width: 7px; height: 7px; border-radius: 50%; background: #B45309; }
.loop-doc-lines { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.loop-doc-lines span { height: 6px; border-radius: 3px; background: #EDF1F4; }
.loop-doc-lines span:nth-child(2) { width: 80%; margin: 0 auto; }
.loop-doc-lines span:nth-child(4) { width: 60%; margin: 0 auto; }
.loop-dl { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.06); font-size: 13px; color: var(--ink-2); }
.loop-dl-ic { color: var(--brand); font-weight: 800; flex: none; }
.loop-dl-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* bar and "Downloaded ✓" share one fixed slot and cross-fade — no collision */
.loop-dl-slot { position: relative; flex: none; width: 120px; height: 20px; }
.loop-dl-bar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 120px; height: 6px; border-radius: 3px; background: #E5EAE7; overflow: hidden; }
.loop-dl-fill { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.loop-scene.is-active .loop-dl-fill { animation: loopFill 1.3s .5s ease forwards; }
.loop-dl-done { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--brand-dark, #046C33); font-weight: 600; font-size: 1.25em; opacity: 0; }
.loop-dl-check { width: 16px; height: 16px; flex: none; color: var(--brand); }
@keyframes loopFade { to { opacity: 1; } }
@keyframes loopFadeOut { to { opacity: 0; } }
.loop-scene.is-active .loop-dl-bar { animation: loopFadeOut .35s 1.9s both; }
.loop-scene.is-active .loop-dl-done { animation: loopFade .4s 1.95s both; }

/* ── Embedded walkthrough (inside the About-section box) ──────────────── */
.home-about-imgph.loop--embed {
  aspect-ratio: auto; height: auto; background: #fff;
  display: block; padding: 18px 18px 14px; overflow: hidden; color: inherit;
}
.loop--embed .loop-frame { width: 100%; }
.loop--embed .loop-head { margin-bottom: 6px; }
.loop--embed .loop-head img { height: 26px; }
.loop--embed .loop-caption { margin-bottom: 12px; }
.loop--embed .loop-caption h2 { font-size: 19px; }
.loop--embed .loop-step { font-size: 10px; }
.loop--embed .loop-stage { height: 322px; }
.loop--embed .loop-card { padding: 14px 16px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.loop--embed .loop-progress { margin-top: 12px; }
.loop--embed .loop-dot { width: 26px; height: 4px; }
/* compact scene internals so a full scene fits the box */
.loop--embed .loop-mini-kicker { font-size: 10px; }
.loop--embed .loop-mini-title { font-size: 15px; margin: 5px 0 3px; }
.loop--embed .loop-mini-sub { font-size: 11px; margin-bottom: 10px; }
.loop--embed .loop-optgrid { gap: 8px; }
.loop--embed .loop-opt { padding: 8px 10px; font-size: 12px; gap: 8px; }
.loop--embed .loop-radio { width: 15px; height: 15px; }
.loop--embed .loop-continue { margin-top: 14px; padding: 9px 18px; font-size: 12px; }
.loop--embed .result-badge--xl { font-size: 13px; padding: 6px 14px; }
.loop--embed .report-summary { padding: 10px 12px; margin: 12px 0 12px; }
.loop--embed .loop-summary p { font-size: 11px; line-height: 1.5; }
.loop--embed .report-summary-label { font-size: 9px; }
.loop--embed .loop-reqrow { padding: 9px 12px; margin-top: 8px; }
.loop--embed .loop-reqname { font-size: 12.5px; }
.loop--embed .loop-reqicon, .loop--embed .loop-reqicon svg { width: 18px; height: 18px; }
.loop--embed .stamp { font-size: 9px; padding: 3px 8px; }
.loop--embed .loop-rec-head { font-size: 10px; margin-bottom: 10px; }
.loop--embed .rec-opt { padding: 9px 11px; margin-bottom: 9px; gap: 10px; }
.loop--embed .rec-opt-logo { width: 30px; height: 30px; }
.loop--embed .rec-opt-provider { font-size: 13px; }
.loop--embed .rec-opt-name { font-size: 11px; }
.loop--embed .rec-tag { font-size: 8.5px; padding: 2px 7px; }
.loop--embed .rec-opt-price { font-size: 12px; }
.loop--embed .rec-opt-link { font-size: 11px; padding: 5px 11px; }
.loop--embed .loop-status { padding: 11px 14px; font-size: 13px; margin-bottom: 12px; }
.loop--embed .loop-status-light { width: 15px; height: 15px; }
.loop--embed .loop-entry { padding: 9px 12px; margin-top: 8px; }
.loop--embed .loop-entry-label { font-size: 11px; margin-bottom: 6px; }
.loop--embed .loop-entry-fields span { font-size: 11px; padding: 4px 8px; }
.loop--embed .loop-dlcard { gap: 14px; }
.loop--embed .loop-doc { width: 160px; padding: 14px 14px; }
.loop--embed .loop-doc-logoname { font-size: 13px; }
.loop--embed .loop-doc-biz { font-size: 15px; }
.loop--embed .loop-dl { padding: 9px 13px; font-size: 12px; }
