/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  line-height: 1.5;
  min-height: 100vh;
}

/* ===== Site Header ===== */
.site-header {
  background: #0a0f1e;
  padding: 0.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header-logo img {
  height: 32px;
  width: auto;
}
.site-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.site-header-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}
.site-header-tabs a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.site-header-tabs a:hover { color: #fff; }
.site-header-tabs a.active {
  color: #fff;
  border-color: #3d4eac;
  box-shadow: 0 0 0 1px #3d4eac, 0 0 10px rgba(61, 78, 172, 0.5);
  background: rgba(61, 78, 172, 0.1);
}
/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  color: #fff;
  line-height: 0;
}

/* Mobile dropdown — hidden by default */
.nav-mobile-menu {
  display: none;
}

@media (max-width: 600px) {
  .site-header-tabs { display: none; }

  .site-header-right { grid-column: 3; }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0f1e;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 0.75rem 1.5rem 1rem;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 99;
  }

  .site-header.nav-open .nav-mobile-menu {
    display: flex;
  }

  .nav-mobile-menu a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color .15s, border-color .15s;
  }

  .nav-mobile-menu a:hover { color: #fff; }

  .nav-mobile-menu a.active {
    color: #fff;
    border-color: #3d4eac;
    box-shadow: 0 0 0 1px #3d4eac, 0 0 10px rgba(61, 78, 172, 0.5);
    background: rgba(61, 78, 172, 0.1);
  }
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background .2s;
}
.save-btn:hover { background: rgba(255,255,255,.22); }

/* ===== Main Two-Column Layout ===== */
.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 57px);
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
}

/* --- Left: Input Panel --- */
.input-panel {
  background: #fff;
  border-right: 1px solid #e0e3ea;
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(100vh - 52px);
  position: sticky;
  top: 52px;
}
@media (max-width: 900px) {
  .input-panel {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #e0e3ea;
  }
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b2a4a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1b2a4a;
}

.form-group { margin-bottom: 1rem; }
.form-group > label { display: block; font-weight: 600; font-size: 0.82rem; color: #333; margin-bottom: 0.25rem; }

select, input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c4c9d4;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}

.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem; }
.checkbox-group label {
  font-weight: 400;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

#submit-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  background: #1b2a4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
#submit-btn:hover { background: #2c4270; }
#submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Response Language Picker --- */
.response-language-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(27, 42, 74, 0.06);
  border: 1px dashed rgba(27, 42, 74, 0.18);
}
.rlp-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}
.rlp-label svg {
  flex-shrink: 0;
  opacity: 0.55;
}
.rlp-select {
  width: auto;
  flex: 0 0 auto;
  padding: 0.22rem 0.45rem;
  border: 1px solid #c4c9d4;
  border-radius: 5px;
  font-size: 0.78rem;
  background: #fff;
  cursor: pointer;
}

/* --- Right: Output Panel --- */
.output-panel {
  padding: 1.25rem;
  overflow-y: auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #999;
  padding: 4rem 2rem;
  gap: 1rem;
}
.empty-state p { max-width: 340px; font-size: 18px; line-height: 1.5; }

/* ===== Loading ===== */
.loading-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: #555;
  font-size: 18px;
}
.spinner {
  width: 40px; height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: #1b2a4a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cancel-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cancel-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ===== Dashboard Cards ===== */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.section-header {
  background: #1b2a4a;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
}

/* --- Section A: Executive Summary --- */
.exec-summary {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem;
  flex-wrap: wrap;
}

.gauge-wrap { text-align: center; flex-shrink: 0; width: 180px; }
.gauge { position: relative; }
.gauge-svg { width: 180px; height: 110px; }
.gauge-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.gauge-score { font-size: 1.8rem; font-weight: 800; }
.gauge-max { font-size: 0.8rem; color: #777; }
.gauge-caption { font-size: 0.78rem; color: #555; margin-top: 0.2rem; }

.insight-box { flex: 1; min-width: 220px; }
.insight-box h3 { margin-bottom: 0.35rem; font-size: 0.95rem; }
.insight-box p { font-size: 0.87rem; color: #444; line-height: 1.6; }

.score-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
  background: #888;
}
.score-badge.low    { background: #27ae60; }
.score-badge.medium { background: #f39c12; }
.score-badge.high   { background: #e74c3c; }

/* --- Section B: Visualizations --- */
.viz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
}
@media (max-width: 750px) { .viz-row { grid-template-columns: 1fr; } }

.viz-panel h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1b2a4a;
  text-align: center;
}

/* --- Radar Chart --- */
.radar-panel {
  background: #0a0b14;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
}

.radar-header {
  background: #2c1f72;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 0.7rem 1rem;
  letter-spacing: 0.01em;
}

.radar-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem 0.5rem 1rem;
  background: #0a0b14;
}

/* --- Timeline (vertical dark card) --- */
.timeline-outer {
  background: #141e33;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
}

.tl-item {
  display: flex;
  flex-direction: column;
}

.tl-year {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.tl-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* --- Section C: Table --- */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead { background: #eef1f6; }
th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}
td {
  padding: 0.55rem 0.9rem;
  border-top: 1px solid #e8eaef;
  color: #444;
}
tbody tr:hover { background: #f8f9fb; }

/* ===== Usage footer ===== */
.usage-footer {
  text-align: left;
  font-size: 0.72rem;
  color: #999;
  padding: 0.5rem 0;
}

/* ===== Utilities ===== */
.hidden { display: none !important; }

/* ===== Prompt Textareas ===== */
.prompt-textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c4c9d4;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
  resize: vertical;
  line-height: 1.5;
  color: #1a1a2e;
}
.prompt-textarea:focus {
  outline: none;
  border-color: #1b2a4a;
  box-shadow: 0 0 0 2px rgba(27,42,74,.12);
}
.prompt-textarea--mono {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.78rem;
}
.field-hint {
  font-weight: 400;
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.3rem;
}
.field-hint code {
  background: #f0f2f5;
  padding: 0 3px;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* ===== Form Divider ===== */
.form-divider {
  border: none;
  border-top: 1px dashed #d0d4dc;
  margin: 0.75rem 0 1rem;
}

/* ===== Inline field validation ===== */
.field-error {
  display: block;
  min-height: 0;
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 0.25rem;
}
.field-error:empty { display: none; }
body.company-page input.field-invalid,
body.company-page select.field-invalid {
  border-color: #e74c3c !important;
}

/* ===== Error toast ===== */
.error-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 200;
  animation: fadeInUp .3s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Company Page Dashboard Theme ===== */
body.company-page {
  background: #040E2F;
  color: #f5f8ff;
}

body.company-page .top-bar {
  display: none;
}

body.company-page .main-layout {
  min-height: 0;
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 0;
  padding: 0 1.25rem 1.25rem;
  background: transparent;
}

body.company-page .input-panel {
  background: #040E2F;
  border-right: none;
  padding: 1.2rem 1.15rem 1.4rem;
  max-height: none;
  overflow-y: visible;
  position: static;
}

body.company-page .panel-title {
  color: #ffffff;
  border-bottom: none;
  margin-bottom: 0.95rem;
  padding-bottom: 0;
  font-size: 20px;
}

body.company-page .form-group {
  margin-bottom: 0.95rem;
}

body.company-page .form-group > label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.38rem;
}

body.company-page select,
body.company-page input[type="text"] {
  border: 1px solid rgba(196, 214, 255, 0.7);
  border-radius: 6px;
  background: rgba(9, 20, 47, 0.96);
  color: #eef3ff;
  min-height: 40px;
  padding: 0.55rem 0.65rem;
  font-size: 18px;
  font-weight: 400;
}

body.company-page select:focus,
body.company-page input[type="text"]:focus {
  outline: none;
  border-color: #58a1ff;
  box-shadow: 0 0 0 2px rgba(88, 161, 255, 0.12);
}

body.company-page select option {
  color: #eef3ff;
  background: #0b1531;
}

body.company-page input::placeholder {
  color: rgba(220, 230, 255, 0.38);
}

body.company-page .checkbox-group {
  gap: 0.35rem 0.8rem;
}

body.company-page .checkbox-group label {
  color: rgba(244, 247, 255, 0.9);
  font-size: 18px;
  gap: 0.32rem;
}

body.company-page input[type="checkbox"] {
  accent-color: #ff675b;
}

body.company-page .response-language-picker {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(196, 214, 255, 0.2);
}
body.company-page .rlp-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
}
body.company-page .rlp-label svg {
  stroke: rgba(255, 255, 255, 0.45);
}
body.company-page .rlp-select {
  background: rgba(9, 20, 47, 0.96);
  color: #eef3ff;
  border-color: rgba(196, 214, 255, 0.35);
  font-size: 15px;
}
body.company-page .rlp-select option {
  background: #0b1531;
  color: #eef3ff;
}

body.company-page #submit-btn,
body.company-page .secondary-action {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.company-page #submit-btn {
  margin-top: 0.35rem;
  background: #ff6458;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 100, 88, 0.22);
}

body.company-page .secondary-action {
  margin-top: 0.7rem;
  background: #ff6458;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 100, 88, 0.18);
}

body.company-page #submit-btn:hover,
body.company-page .secondary-action:hover {
  transform: translateY(-1px);
}

body.company-page .output-panel {
  background: #040E2F;
  padding: 1rem 0 0 1rem;
  overflow-y: auto;
}

body.company-page .empty-state {
  min-height: 260px;
  background: none;
  border: none;
  color: rgba(226, 234, 255, 0.7);
}

body.company-page .loading-inline {
  min-height: 260px;
  background: none;
  border: none;
  color: rgba(226, 234, 255, 0.7);
}

body.company-page .company-empty-state,
body.company-page .company-loading-state {
  margin: 1rem;
}

body.company-page .empty-state svg {
  stroke: rgba(167, 184, 229, 0.55);
}

body.company-page .loading-inline {
  gap: 0.85rem;
}

body.company-page .spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #ff6458;
}

body.company-page .company-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

body.company-page .company-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(116, 89, 255, 0.24), transparent 18%),
    linear-gradient(180deg, rgba(4, 14, 47, 1) 0%, rgba(4, 14, 47, 1) 100%);
  margin-bottom: 0;
}

body.company-page .company-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), transparent 32%);
  pointer-events: none;
}

body.company-page .company-hero-kicker,
body.company-page .company-hero h1 {
  position: relative;
  z-index: 1;
}

body.company-page .company-hero-kicker {
  color: #806cff;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

body.company-page .company-hero h1 {
  max-width: 100%;
  color: #fffaf2;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: normal;
}

body.company-page .summary-grid,
body.company-page .analytics-grid {
  display: grid;
  gap: 1rem;
}

body.company-page .summary-grid {
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.6fr);
}

body.company-page .analytics-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

body.company-page .company-card {
  background: #04081d;
  border-radius: 16px;
  border: 1px solid rgba(89, 113, 171, 0.08);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

body.company-page .summary-card {
  min-height: 250px;
}

body.company-page .score-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem 1.35rem;
}

body.company-page .insight-card {
  padding: 1.25rem 1.2rem 1.2rem;
}

body.company-page .insight-card h3 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

body.company-page .insight-card p {
  color: rgba(235, 239, 251, 0.86);
  font-size: 18px;
  line-height: 1.55;
}

body.company-page .company-card-header {
  background: #332e81;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  padding: 0.95rem 1rem;
}

body.company-page .gauge-wrap {
  width: 100%;
  text-align: center;
}

body.company-page .gauge-svg {
  width: min(100%, 360px);
  height: auto;
}

body.company-page .gauge-label {
  bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.22rem;
}

body.company-page .gauge-score {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

body.company-page .gauge-max {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

body.company-page .gauge-caption {
  color: rgba(229, 235, 255, 0.92);
  margin-top: 0.45rem;
  font-size: 1.08rem;
}

body.company-page .score-badge {
  border-radius: 8px;
  padding: 0.42rem 0.9rem;
  font-size: 18px;
  margin-bottom: 1rem;
}

body.company-page .score-badge.high {
  background: #e74c3c;
}
body.company-page .score-badge.medium {
  background: #f39c12;
}
body.company-page .score-badge.low {
  background: #27ae60;
}

body.company-page .chart-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.company-page .radar-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  height: 800px;
  padding: 2.5rem 0.65rem 0.55rem;
  background: #04081d;
}

body.company-page .radar-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.company-page .radar-wrap.is-empty::after {
  content: "No impact score data available.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: rgba(242, 246, 255, 0.56);
  font-size: 0.84rem;
  text-align: center;
}

body.company-page .timeline-panel {
  min-width: 0;
}

body.company-page .timeline-outer {
  background: #04081d;
  height: 100%;
  padding: 1rem 1.1rem 1.15rem;
}

body.company-page .timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
}

body.company-page .tl-year {
  font-size: 2rem;
  line-height: 0.95;
  margin-bottom: 0;
  align-self: start;
}

body.company-page .tl-desc {
  color: rgba(242, 246, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
  max-width: none;
}

body.company-page .tl-item {
  display: grid;
  grid-template-columns: minmax(84px, 108px) minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 0.95rem 0.95rem 0.95rem 1rem;
  border-radius: 0;
  background: none;
  border: none;
}

body.company-page .actions-card {
  padding: 0;
}

body.company-page .table-wrap {
  overflow-x: auto;
}

body.company-page table {
  font-size: 18px;
  color: rgba(238, 243, 255, 0.92);
}

body.company-page thead {
  background: #332e81;
}

body.company-page th {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  padding: 0.95rem 1rem;
}

body.company-page td {
  border-top: none;
  padding: 0.8rem 1rem;
  color: rgba(236, 241, 255, 0.88);
  line-height: 1.5;
  vertical-align: top;
}

body.company-page tbody tr:nth-child(odd) {
  background: rgba(4, 8, 29, 0.96);
}

body.company-page tbody tr:nth-child(even) {
  background: rgba(8, 18, 48, 0.96);
}

body.company-page tbody tr:hover {
  background: rgba(18, 31, 77, 0.96);
}

body.company-page .usage-footer {
  color: rgba(200, 210, 235, 0.5);
  padding: 0.2rem 0.15rem 0.1rem;
}

@media (max-width: 1240px) {
  body.company-page .summary-grid,
  body.company-page .analytics-grid {
    grid-template-columns: 1fr;
  }

  body.company-page .company-hero {
    min-height: 280px;
  }

  body.company-page .timeline-items {
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  body.company-page .main-layout {
    grid-template-columns: 1fr;
    padding: 0 0.9rem 0.9rem;
  }

  body.company-page .input-panel {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: none;
    margin-top: 0.9rem;
  }

  body.company-page .company-hero {
    min-height: 240px;
    padding: 2.8rem 1rem 3rem;
  }

  body.company-page .output-panel {
    padding: 0.9rem 0 0;
  }
}


@media (max-width: 640px) {
  body.company-page .input-panel,
  body.company-page .company-card,
  body.company-page .empty-state,
  body.company-page .loading-inline {
    border-radius: 12px;
  }

  body.company-page .company-dashboard,
  body.company-page .company-empty-state,
  body.company-page .company-loading-state {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: 0;
    margin-right: 0;
  }

  body.company-page .company-hero h1 {
    font-size: 2rem;
  }

  body.company-page .main-layout {
    padding: 0 0.75rem 0.75rem;
  }

  body.company-page .gauge-caption {
    font-size: 0.92rem;
  }

  body.company-page .radar-wrap {
    height: 380px;
  }

  body.company-page .timeline-outer {
    padding: 0.9rem;
  }

  body.company-page .tl-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.9rem;
  }

  body.company-page .tl-year {
    font-size: 1.55rem;
  }

  body.company-page th,
  body.company-page td {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

}
