/* ─────────────────────────────────────────────────────────
   ClinkoIQ — Cement Process Intelligence Platform
   Global Stylesheet

   Sections:
   1.  CSS Custom Properties (Design Tokens)
   2.  Accessibility Utilities (.skip-link, .visually-hidden)
   3.  Reset
   4.  Layout Helpers (.container, .section, .section-header)
   5.  Header / Navigation
   6.  Hero Section
   7.  Buttons
   8.  Feature Cards
   9.  Troubleshooting Panel
   10. Result Display
   11. News Cards
   12. Page Hero (inner pages)
   13. Knowledge Page
   14. Troubleshooting Page Layout
   15. Chat UI
   16. Loading Dots animation
   17. Status Tags
   18. Footer
   19. CTA Strip
   20. Responsive Breakpoints
───────────────────────────────────────────────────────── */

:root {
  --primary:        #1e3a8a;
  --primary-dark:   #152d6e;
  --primary-light:  #2d54c4;
  --accent:         #f59e0b;
  --accent-light:   #fbbf24;
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;

  --grey-50:  #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  --white:    #ffffff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --transition: all 0.22s ease;
  --max-width: 1200px;
}

/* ── ACCESSIBILITY UTILITIES ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  background: var(--primary); color: var(--white);
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999; text-decoration: none;
}
.skip-link:focus {
  left: 24px; top: 0; width: auto; height: auto; overflow: visible;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── LAYOUT HELPERS ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section       { padding: 80px 24px; }
.section-alt   { background: var(--grey-50); }
.section-dark  { background: var(--grey-900); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-label  {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--grey-900); margin-bottom: 12px;
}
.section-header p  { font-size: 18px; color: var(--grey-500); max-width: 560px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light .section-label { color: #93c5fd; }
.section-header.light p  { color: var(--grey-400); }

/* ── HEADER / NAV ── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 900; color: var(--primary);
  letter-spacing: -0.5px; white-space: nowrap;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 15px; font-weight: 900;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-link {
  padding: 6px 13px; border-radius: var(--radius);
  color: var(--grey-600); font-size: 14px; font-weight: 500;
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover  { background: var(--grey-100); color: var(--primary); }
.nav-link.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.nav-cta {
  margin-left: 8px; padding: 8px 18px;
  background: var(--primary); color: var(--white) !important;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: var(--transition);
  min-height: 36px; display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: var(--white) !important; }
/* Ensure hamburger meets 44px touch target */
.hamburger { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.hamburger {
  display: none; padding: 6px; color: var(--grey-700);
  border-radius: var(--radius);
}
.hamburger:hover { background: var(--grey-100); }
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 10px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  padding: 11px 6px; border-bottom: 1px solid var(--grey-100);
  font-size: 15px; border-radius: 0;
}
.mobile-nav .nav-cta { margin: 12px 0 0; text-align: center; border-radius: var(--radius); }

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, #060e1f 0%, #0f172a 25%, #1e3a8a 60%, #1d4ed8 85%, #3b82f6 100%);
  padding: 96px 24px 84px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.90); font-size: 12px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 900; color: var(--white);
  line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 22px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.72); margin-bottom: 44px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-search {
  display: flex; max-width: 640px; margin: 0 auto 40px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  overflow: hidden;
}
.hero-search input {
  flex: 1; padding: 17px 26px;
  border: none; outline: none;
  font-size: 16px; color: var(--grey-900); background: transparent;
}
.hero-search input::placeholder { color: var(--grey-400); }
.hero-search button {
  padding: 14px 30px;
  background: var(--primary); color: var(--white);
  font-size: 15px; font-weight: 700;
  transition: var(--transition); white-space: nowrap;
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stat { color: rgba(255,255,255,0.72); font-size: 13px; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--white); line-height: 1.2; }

/* ── BUTTON ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--primary-light); color: var(--white); }
.btn-primary:hover { background: var(--primary); }
.btn-accent  { background: var(--accent); color: var(--grey-900); }
.btn-accent:hover  { background: var(--accent-light); }
.btn-ghost  { background: rgba(255,255,255,0.10); color: var(--white); border: 1px solid rgba(255,255,255,0.20); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn:disabled, button:disabled {
  opacity: 0.6; cursor: not-allowed; pointer-events: none;
}

/* ── FEATURE CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  list-style: none; /* reset when used as <ul> */
  padding: 0;
  margin: 0;
}
.feature-card {
  display: block; /* normalise <a> to block */
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative; overflow: hidden;
  color: inherit; /* prevent blue link colour bleed */
  text-decoration: none;
}
.feature-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: transparent; }
.feature-card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.ci-blue   { background: #eff6ff; }
.ci-orange { background: #fff7ed; }
.ci-green  { background: #f0fdf4; }
.ci-purple { background: #faf5ff; }
.ci-red    { background: #fff1f2; }
.ci-teal   { background: #f0fdfa; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--grey-900); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--grey-500); line-height: 1.65; margin-bottom: 18px; }
.card-link {
  font-size: 13px; font-weight: 700; color: var(--primary-light);
  display: inline-flex; align-items: center; gap: 5px;
  transition: var(--transition);
}
.card-link:hover { color: var(--primary); gap: 8px; }

/* ── TROUBLESHOOTING PANEL ── */
.trouble-dark-wrap {
  background: var(--grey-900);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.07);
  max-width: 800px; margin: 0 auto;
}
.trouble-input-row { display: flex; gap: 12px; margin-bottom: 20px; }
.trouble-input-row input {
  flex: 1; padding: 14px 18px;
  background: var(--grey-800); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); color: var(--white); font-size: 15px;
  outline: none; transition: var(--transition); font-family: inherit;
}
.trouble-input-row input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,84,196,0.25); }
.trouble-input-row input::placeholder { color: var(--grey-500); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  padding: 5px 13px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; font-size: 12px; color: var(--grey-300);
  cursor: pointer; transition: var(--transition);
}
.chip:hover { background: rgba(45,84,196,0.3); border-color: var(--primary-light); color: var(--white); }
.trouble-result { display: none; animation: fadeUp 0.3s ease; }
.trouble-result.show { display: block; }

/* ── RESULT DISPLAY ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-bottom: 22px;
}
.result-title { font-size: 17px; font-weight: 700; color: var(--grey-100); margin-top: 6px; }
.badge-row   { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11px; font-weight: 700; padding: 4px 11px;
  border-radius: 100px; letter-spacing: 0.3px;
}
.badge-green  { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.badge-red    { background: rgba(239,68,68,0.2);  color: #fca5a5; }
.badge-blue   { background: rgba(59,130,246,0.2); color: #93c5fd; }
.badge-yellow { background: rgba(245,158,11,0.2); color: #fde68a; }
.result-section { margin-bottom: 20px; }
.result-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--grey-500); margin-bottom: 10px;
}
.result-list { display: flex; flex-direction: column; gap: 8px; }
.result-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04); border-radius: var(--radius);
  border-left: 3px solid var(--primary-light);
  font-size: 13.5px; color: var(--grey-200); line-height: 1.5;
}
.result-item.action { border-left-color: var(--success); }
.result-item.reference { border-left-color: var(--accent); }
.rdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-light);
  margin-top: 5px; flex-shrink: 0;
}
.rdot.action    { background: var(--success); }
.rdot.reference { background: var(--accent); }
.result-footer {
  font-size: 12px; color: var(--grey-600);
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.empty-state {
  text-align: center; padding: 40px 20px;
}
.empty-state .big-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--grey-200); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; color: var(--grey-500); }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200); transition: var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  position: relative; overflow: hidden;
}
.news-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.12);
}
.news-body { padding: 20px 22px 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--primary);
  background: #eff6ff; padding: 3px 9px; border-radius: 5px;
}
.news-date { font-size: 12px; color: var(--grey-400); }
.news-read { font-size: 12px; color: var(--grey-400); margin-left: auto; }
.news-card h3 { font-size: 15.5px; font-weight: 700; color: var(--grey-900); margin-bottom: 8px; line-height: 1.4; }
.news-card p  { font-size: 13.5px; color: var(--grey-500); line-height: 1.65; }
.news-card .read-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--primary-light);
  transition: var(--transition);
}
.news-card .read-more:hover { color: var(--primary); gap: 7px; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(140deg, #060e1f 0%, #0f172a 30%, #1e3a8a 100%);
  padding: 56px 24px 52px; color: var(--white);
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { margin: 0 8px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 10px; }
.page-hero p  { font-size: 17px; color: rgba(255,255,255,0.68); max-width: 600px; }
.page-search {
  display: flex; max-width: 500px; background: var(--white);
  border-radius: var(--radius); overflow: hidden; margin-top: 24px; box-shadow: var(--shadow-md);
}
.page-search input  { flex: 1; padding: 12px 16px; border: none; outline: none; font-size: 14px; color: var(--grey-900); }
.page-search button { padding: 12px 18px; background: var(--primary-light); color: var(--white); font-size: 14px; font-weight: 700; transition: var(--transition); }
.page-search button:hover { background: var(--primary); }

/* ── KNOWLEDGE PAGE ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 18px;
  border: 2px solid var(--grey-200); border-radius: 100px;
  background: var(--white); color: var(--grey-600);
  font-size: 13.5px; font-weight: 600; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary-light); color: var(--primary); background: #eff6ff;
}
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.k-card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.k-card:hover { box-shadow: var(--shadow-md); border-color: var(--grey-300); }
.k-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--primary); background: #eff6ff;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 12px;
}
.k-card h3 { font-size: 16.5px; font-weight: 700; color: var(--grey-900); margin-bottom: 9px; }
.k-card p  { font-size: 13.5px; color: var(--grey-500); line-height: 1.7; margin-bottom: 14px; }
.k-practices { display: flex; flex-direction: column; gap: 6px; }
.k-practices li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--grey-600); line-height: 1.5;
}
.k-practices li::before { content: '›'; color: var(--primary-light); font-weight: 700; flex-shrink: 0; }

/* ── TROUBLESHOOTING PAGE LAYOUT ── */
.trouble-page-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 36px; align-items: start;
}
.panel {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: var(--shadow-md);
}
.panel h2 { font-size: 20px; font-weight: 800; color: var(--grey-900); margin-bottom: 6px; }
.panel .sub { font-size: 14px; color: var(--grey-500); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--grey-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius);
  font-size: 14px; color: var(--grey-900); background: var(--white);
  outline: none; transition: var(--transition); font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,84,196,0.10);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.result-panel {
  background: var(--grey-50); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); padding: 36px; min-height: 420px;
}
.result-panel-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 300px; text-align: center;
}
.result-panel-empty .icon { font-size: 52px; margin-bottom: 18px; opacity: 0.5; }
.result-panel-empty h3 { font-size: 17px; font-weight: 600; color: var(--grey-600); margin-bottom: 8px; }
.result-panel-empty p  { font-size: 14px; color: var(--grey-400); }

/* ── CHAT UI ── */
.chat-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 20px; height: calc(100vh - 220px); min-height: 520px;
}
.chat-sidebar {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 20px;
  overflow-y: auto; box-shadow: var(--shadow-sm);
}
.sidebar-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--grey-400); margin-bottom: 12px;
}
.suggest-item {
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px; color: var(--grey-700); cursor: pointer;
  transition: var(--transition); border: 1px solid transparent; margin-bottom: 4px;
}
.suggest-item:hover { background: #eff6ff; border-color: var(--grey-200); color: var(--primary); }
.chat-main {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.chat-topbar {
  padding: 14px 20px; border-bottom: 1px solid var(--grey-200);
  display: flex; align-items: center; gap: 12px;
}
.ai-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 17px; flex-shrink: 0;
}
.chat-topbar h3 { font-size: 15px; font-weight: 700; color: var(--grey-900); }
.chat-topbar p  { font-size: 12px; color: var(--success); font-weight: 600; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 4px; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.msg { display: flex; gap: 10px; max-width: 85%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-av {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; margin-top: 2px;
}
.msg.ai   .msg-av { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.msg.user .msg-av { background: var(--grey-200); color: var(--grey-600); }
.msg-bubble {
  padding: 11px 15px; border-radius: 14px;
  font-size: 14px; line-height: 1.6;
}
.msg.ai   .msg-bubble { background: var(--grey-50); border: 1px solid var(--grey-200); color: var(--grey-800); border-radius: 14px 14px 14px 3px; }
.msg.user .msg-bubble { background: var(--primary); color: white; border-radius: 14px 14px 3px 14px; }
.msg-bubble strong { font-weight: 700; }
.msg-bubble code {
  background: rgba(0,0,0,0.08); padding: 1px 5px;
  border-radius: 4px; font-family: monospace; font-size: 12px;
}
.chat-inputbar {
  padding: 14px 16px; border-top: 1px solid var(--grey-200);
  display: flex; gap: 10px;
}
.chat-inputbar input {
  flex: 1; padding: 11px 15px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius);
  font-size: 14px; outline: none; transition: var(--transition); font-family: inherit;
}
.chat-inputbar input:focus { border-color: var(--primary-light); }

/* ── LOADING DOTS ── */
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grey-400); animation: dotBounce 1.3s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-7px); }
}

/* ── STATUS TAG ── */
.status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
}
.status-tag.analyzing { background: rgba(59,130,246,0.2); color: #93c5fd; }
.status-tag.done      { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.status-tag.error     { background: rgba(239,68,68,0.2);  color: #fca5a5; }

/* ── FOOTER ── */
.footer { background: var(--grey-900); color: var(--grey-400); padding: 52px 24px 32px; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 44px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--grey-500); line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--grey-200); margin-bottom: 16px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a  { font-size: 14px; color: var(--grey-500); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; }
.footer-tag {
  font-size: 12px; background: rgba(255,255,255,0.07);
  padding: 5px 14px; border-radius: 100px; color: var(--grey-400);
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--grey-200); margin: 24px 0; }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 24px; text-align: center;
}
.cta-strip h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: white; margin-bottom: 12px; }
.cta-strip p  { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trouble-page-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { display: none; }
  .chat-main { min-height: 480px; }
}

@media (max-width: 640px) {
  /* Navigation */
  .nav { display: none; }
  .hamburger { display: block; }

  /* Hero */
  .hero { padding: 56px 20px 44px; }
  .hero-search { flex-direction: column; border-radius: var(--radius-xl); }
  .hero-search input  { border-radius: var(--radius-xl) var(--radius-xl) 0 0; font-size: 16px; } /* 16px prevents iOS zoom */
  .hero-search button { border-radius: 0 0 var(--radius-xl) var(--radius-xl); min-height: 48px; } /* ≥44px touch target */
  .hero-stats { gap: 28px; }

  /* Layout */
  .section { padding: 48px 20px; }
  .cards-grid     { grid-template-columns: 1fr; }
  .news-grid      { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner  { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Troubleshooting */
  .trouble-input-row { flex-direction: column; }
  .trouble-input-row input  { font-size: 16px; } /* prevent iOS auto-zoom */
  .trouble-input-row button { min-height: 48px; } /* ≥44px touch target */
  .trouble-dark-wrap { padding: 20px; }
  .panel { padding: 20px; }

  /* CTA */
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { text-align: center; justify-content: center; }

  /* Touch-friendly nav links */
  .mobile-nav .nav-link { padding: 14px 8px; min-height: 44px; display: flex; align-items: center; }

  /* Chat */
  .chat-inputbar input  { font-size: 16px; }
  .chat-inputbar button { min-height: 44px; min-width: 72px; }
}

/* Fluid typography for intermediate breakpoints */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .section-header h2 { letter-spacing: -0.3px; }
  .feature-card { padding: 22px 18px; }
  .k-card { padding: 20px; }
  .news-body { padding: 16px 18px 18px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── DARK MODE ── */
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .header { background: rgba(15,23,42,0.97); border-bottom-color: #334155; }
[data-theme="dark"] .logo { color: #e2e8f0; }
[data-theme="dark"] .nav-link { color: #94a3b8; }
[data-theme="dark"] .nav-link:hover { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .nav-link.active { background: rgba(30,58,138,0.5); color: #93c5fd; }
[data-theme="dark"] .nav-cta { background: #1d4ed8 !important; }
[data-theme="dark"] .mobile-nav { background: #0f172a; border-top-color: #334155; }
[data-theme="dark"] .mobile-nav .nav-link { border-bottom-color: #1e293b; }
[data-theme="dark"] .section-alt { background: #1e293b; }
[data-theme="dark"] .section-header h2 { color: #f1f5f9; }
[data-theme="dark"] .section-header p { color: #94a3b8; }
[data-theme="dark"] .section-label { color: #93c5fd; }
[data-theme="dark"] .feature-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .feature-card h3 { color: #f1f5f9; }
[data-theme="dark"] .feature-card p { color: #94a3b8; }
[data-theme="dark"] .news-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .news-card h3 { color: #f1f5f9; }
[data-theme="dark"] .news-card p { color: #94a3b8; }
[data-theme="dark"] .k-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .k-card h3 { color: #f1f5f9; }
[data-theme="dark"] .k-card p { color: #94a3b8; }
[data-theme="dark"] .k-practices li { color: #94a3b8; }
[data-theme="dark"] .panel { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .panel h2 { color: #f1f5f9; }
[data-theme="dark"] .panel .sub { color: #94a3b8; }
[data-theme="dark"] .result-panel { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .result-panel-empty h3 { color: #94a3b8; }
[data-theme="dark"] .filter-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active { background: rgba(30,58,138,0.5); color: #93c5fd; border-color: #1e3a8a; }
[data-theme="dark"] .form-group label { color: #94a3b8; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .chat-sidebar { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .chat-main { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .chat-topbar { border-bottom-color: #334155; }
[data-theme="dark"] .chat-topbar h3 { color: #f1f5f9; }
[data-theme="dark"] .chat-inputbar { border-top-color: #334155; }
[data-theme="dark"] .chat-inputbar input { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .msg.ai .msg-bubble { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .suggest-item { color: #94a3b8; }
[data-theme="dark"] .suggest-item:hover { background: rgba(30,58,138,0.4); color: #93c5fd; }
[data-theme="dark"] .sidebar-label { color: #94a3b8; }
[data-theme="dark"] .how-card h3 { color: #f1f5f9; }
[data-theme="dark"] .how-card p { color: #94a3b8; }
[data-theme="dark"] .news-filter-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .news-filter-btn:hover,
[data-theme="dark"] .news-filter-btn.active { background: rgba(30,58,138,0.5); color: #93c5fd; border-color: #1e3a8a; }
[data-theme="dark"] .page-search { background: #1e293b; border: 1px solid #334155; }
[data-theme="dark"] .page-search input { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .dark-toggle { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* ── DARK MODE TOGGLE BUTTON ── */
.dark-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  background: var(--grey-100); border: 1px solid var(--grey-200);
  transition: var(--transition); flex-shrink: 0;
  line-height: 1;
}
.dark-toggle:hover { background: var(--grey-200); transform: scale(1.1); }

/* ── SCROLL ANIMATIONS ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TOOLS PAGE ── */
.tools-hero-strip {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 60px;
}
.tool-hero-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg); padding: 28px;
  color: white;
}
.tool-hero-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.tool-hero-card p  { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 0; }
.calc-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.calc-result-panel {
  background: var(--grey-50); border: 1px solid var(--grey-200);
  border-radius: var(--radius-xl); padding: 32px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center;
}
.calc-empty { text-align: center; color: var(--grey-400); }
.calc-empty .big-icon { font-size: 44px; margin-bottom: 12px; }
.calc-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-metric {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.calc-metric-value {
  font-size: 28px; font-weight: 900; color: var(--primary);
  line-height: 1.1; margin-bottom: 4px;
}
.calc-metric-label { font-size: 12px; color: var(--grey-500); font-weight: 600; }
.calc-metric-sub   { font-size: 11px; color: var(--success); margin-top: 4px; font-weight: 600; }
.calc-metric.full-width { grid-column: 1 / -1; }
.calc-metric.highlight .calc-metric-value { color: var(--success); }
.calc-note {
  margin-top: 16px; padding: 12px 16px;
  background: var(--grey-100); border-radius: var(--radius);
  font-size: 12.5px; color: var(--grey-500); line-height: 1.6;
}

/* Standards table */
.standards-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.standards-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; background: var(--white);
}
.standards-table thead th {
  background: var(--grey-900); color: var(--grey-200);
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.standards-table td { padding: 12px 16px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.standards-table tbody tr:last-child td { border-bottom: none; }
.standards-table tbody tr:hover { background: var(--grey-50); }
.std-region { font-weight: 700; color: var(--primary); white-space: nowrap; border-right: 2px solid var(--grey-100); }
.std-code { font-weight: 700; color: var(--grey-800); white-space: nowrap; }
.std-title { font-weight: 600; color: var(--grey-700); }
.std-desc  { color: var(--grey-500); }
[data-theme="dark"] .calc-result-panel { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .calc-metric { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .calc-note { background: #0f172a; color: #94a3b8; }
[data-theme="dark"] .standards-table { background: #1e293b; }
[data-theme="dark"] .standards-table thead th { background: #020617; color: #94a3b8; }
[data-theme="dark"] .standards-table td { border-bottom-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .standards-table tbody tr:hover { background: #0f172a; }
[data-theme="dark"] .std-title { color: #e2e8f0; }
[data-theme="dark"] .std-desc  { color: #94a3b8; }

/* ── SEARCH RESULTS PAGE ── */
.search-topbar {
  display: flex; max-width: 640px;
  background: var(--white); border: 1.5px solid var(--grey-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-top: 24px;
}
.search-topbar input {
  flex: 1; padding: 13px 18px; border: none; outline: none;
  font-size: 15px; color: var(--grey-900); background: transparent; font-family: inherit;
}
.search-topbar button {
  padding: 13px 20px; background: var(--primary-light); color: var(--white);
  font-size: 14px; font-weight: 700; transition: var(--transition);
}
.search-topbar button:hover { background: var(--primary); }
.search-count {
  font-size: 14px; color: var(--grey-500); margin-bottom: 32px; font-weight: 500;
}
.search-group { margin-bottom: 40px; }
.search-group-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--grey-500);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--grey-200);
}
.search-result-card {
  display: block; padding: 18px 22px;
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); margin-bottom: 10px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
}
.search-result-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateX(3px); }
.search-result-card h3 { font-size: 15px; font-weight: 700; color: var(--grey-900); margin: 6px 0 5px; }
.search-result-card p  { font-size: 13px; color: var(--grey-500); line-height: 1.6; }
.sr-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 2px 9px; border-radius: 100px;
}
.sr-badge-red    { background: rgba(239,68,68,0.12);  color: #dc2626; }
.sr-badge-blue   { background: #eff6ff; color: var(--primary); }
.sr-badge-green  { background: rgba(16,185,129,0.12); color: #059669; }
.sr-badge-yellow { background: rgba(245,158,11,0.12); color: #d97706; }
.search-empty { text-align: center; padding: 60px 20px; color: var(--grey-400); }
.search-empty h3 { font-size: 20px; font-weight: 700; color: var(--grey-600); margin: 14px 0 8px; }
.search-empty p  { font-size: 14px; }
[data-theme="dark"] .search-topbar { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .search-topbar input { color: #e2e8f0; }
[data-theme="dark"] .search-group-label { border-bottom-color: #334155; color: #94a3b8; }
[data-theme="dark"] .search-result-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .search-result-card h3 { color: #f1f5f9; }
[data-theme="dark"] .search-result-card p  { color: #94a3b8; }
[data-theme="dark"] .search-count { color: #94a3b8; }
[data-theme="dark"] .search-empty h3 { color: #e2e8f0; }
[data-theme="dark"] .sr-badge-red    { background: rgba(239,68,68,0.2);  color: #fca5a5; }
[data-theme="dark"] .sr-badge-blue   { background: rgba(30,58,138,0.4);  color: #93c5fd; }
[data-theme="dark"] .sr-badge-green  { background: rgba(16,185,129,0.2); color: #6ee7b7; }
[data-theme="dark"] .sr-badge-yellow { background: rgba(245,158,11,0.2); color: #fcd34d; }
[data-theme="dark"] .calc-metric-label { color: #94a3b8; }

@media (max-width: 640px) {
  .tools-hero-strip { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-metric-grid { grid-template-columns: 1fr; }
  /* Make standards table scrollable on mobile */
  .standards-table-wrap { border-radius: var(--radius); }
  .standards-table { display: block; overflow-x: auto; white-space: nowrap; }
  .standards-table thead, .standards-table tbody, .standards-table tr { display: table; width: 100%; table-layout: fixed; }
  .std-desc { white-space: normal; min-width: 180px; }
  /* Search results on small screens */
  .search-result-card { padding: 14px 16px; }
  .search-result-card h3 { font-size: 14px; }
  /* Tools calc buttons */
  #calc-btn, #tsr-calc-btn { min-height: 48px; font-size: 15px; }
  /* Calc result metrics */
  .calc-metric-value { font-size: 22px; }
}

/* ── Expert response blocks (shared: expert.html chat + troubleshooting result panel) ── */
.expert-response { font-size: 13.5px; color: var(--grey-800); }
.sev-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px; border-left: 4px solid;
  font-weight: 800; font-size: 12px; letter-spacing: 0.3px;
  margin-bottom: 10px; width: 100%; box-sizing: border-box;
}
.sev-critical { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.sev-high     { background: #fff7ed; border-color: #ea580c; color: #9a3412; }
.sev-medium   { background: #fffbeb; border-color: #d97706; color: #92400e; }
.sev-low      { background: #f0fdf4; border-color: #16a34a; color: #166534; }
.sev-reason   { font-size: 12.5px; color: var(--grey-500); margin: -4px 0 12px; font-style: italic; }

.top-action {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0 14px;
}
.top-action-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: #d97706; margin-bottom: 6px; display: block;
}
.top-action-text { font-size: 13.5px; font-weight: 700; color: var(--grey-900); line-height: 1.5; }

.resp-section { margin-bottom: 12px; }
.resp-heading {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--primary);
  margin: 12px 0 8px; padding-bottom: 4px;
  border-bottom: 1px solid var(--grey-100);
}
.resp-prose { font-size: 13.5px; color: var(--grey-700); margin-bottom: 8px; line-height: 1.6; }
.resp-step  { display: flex; align-items: flex-start; gap: 10px; margin: 7px 0; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.step-text { font-size: 13px; color: var(--grey-700); line-height: 1.55; }

/* Dark-theme overrides (expert.html chat bubbles in dark mode) */
[data-theme="dark"] .expert-response      { color: #e2e8f0; }
[data-theme="dark"] .resp-prose           { color: #94a3b8; }
[data-theme="dark"] .step-text            { color: #94a3b8; }
[data-theme="dark"] .sev-reason           { color: #94a3b8; }
[data-theme="dark"] .resp-heading         { color: #93c5fd; border-bottom-color: #334155; }
[data-theme="dark"] .top-action           { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); }
[data-theme="dark"] .top-action-text      { color: #f1f5f9; }

/* Dark-panel context overrides (troubleshooting.html .result-panel-dark) */
.result-panel-dark .expert-response { color: #e2e8f0; font-size: 13px; }
.result-panel-dark .sev-critical    { background: rgba(220,38,38,0.15);  border-color: #ef4444; color: #fca5a5; }
.result-panel-dark .sev-high        { background: rgba(234,88,12,0.15);  border-color: #f97316; color: #fdba74; }
.result-panel-dark .sev-medium      { background: rgba(217,119,6,0.15);  border-color: #eab308; color: #fde047; }
.result-panel-dark .sev-low         { background: rgba(22,163,74,0.15);  border-color: #22c55e; color: #86efac; }
.result-panel-dark .sev-reason      { color: #94a3b8; }
.result-panel-dark .top-action      { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); }
.result-panel-dark .top-action-text { color: #f1f5f9; }
.result-panel-dark .resp-heading    { color: #93c5fd; border-bottom-color: #334155; }
.result-panel-dark .resp-prose      { color: #94a3b8; }
.result-panel-dark .step-text       { color: #94a3b8; }
.result-panel-dark .step-num        { background: #1e3a8a; }
