:root {
  color-scheme: light;
  --bg: #edf3f8;
  --bg-soft: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: #f8fafc;
  --text: #0f1720;
  --muted: #65717f;
  --line: #dce4ec;
  --accent: #f7cca0;
  --accent-2: #ff8a1d;
  --highlight: #f7cca0;
  --good: #f7cca0;
  --shadow: 0 22px 70px rgba(31, 56, 88, 0.12);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --bg-soft: #171d23;
  --panel: rgba(27, 33, 40, 0.86);
  --panel-2: #202832;
  --text: #f6f8fb;
  --muted: #a7b1bd;
  --line: #303b46;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(255, 173, 92, 0.58), transparent 28rem),
    radial-gradient(circle at 100% 0, rgba(71, 140, 190, 0.48), transparent 30rem),
    var(--bg);
  color: var(--text);
}

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

@keyframes accordionIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.route-loader {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.is-route-loading .route-loader {
  opacity: 1;
  transform: translateY(0);
}

.route-loader-mark {
  width: 18px;
  height: 18px;
  border: 3px solid color-mix(in srgb, var(--accent-2) 22%, transparent);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.app-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center start;
  width: clamp(230px, 28vw, 390px);
  height: 54px;
  border-radius: 16px;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

[data-theme="dark"] .brand-mark img {
  filter: invert(1) brightness(1.18);
}

.brand-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small,
.muted,
.meta,
.forum-description,
.company-card p,
.comment-card span {
  color: var(--muted);
}

.brand small {
  font-size: 12px;
}

.top-nav {
  display: flex;
  gap: 6px;
}

.top-nav a,
.icon-button,
.secondary-button {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
}

.top-nav a,
.secondary-button {
  padding: 10px 14px;
  border-color: var(--line);
  background: var(--bg-soft);
}

.top-nav a:hover,
.top-nav a.active,
.icon-button:hover,
.secondary-button:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--bg-soft);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  background: transparent;
  cursor: pointer;
}

.icon-button.nav-toggle {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 29;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-backdrop.visible {
  opacity: 1;
}

.nav-drawer-brand {
  display: none;
}

.toast-host {
  position: fixed;
  right: 18px;
  top: 108px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg) 6%);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

main {
  padding: 28px 0 68px;
}

main:focus {
  outline: none;
}

.home-layout,
.company-layout,
.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.company-social-layout {
  display: grid;
  gap: 16px;
}

.company-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 14px;
}

.panel,
.company-card,
.forum-card,
.thread-card,
.comment-card,
.composer {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: fadeUp 0.28s ease both;
}

.panel,
.composer {
  padding: 20px;
}

.welcome {
  padding: clamp(22px, 4vw, 34px);
}

.compact-welcome {
  padding: 28px;
}

.compact-welcome h1 {
  max-width: 820px;
  font-size: clamp(30px, 4vw, 48px);
}

.company-hero {
  padding: clamp(22px, 4vw, 34px);
}

.company-hero-main,
.company-profile-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.company-profile-card {
  display: grid;
  gap: 18px;
}

.company-logo {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  object-fit: contain;
}

.employee-rating-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.employee-rating-card h2 {
  margin: 0;
  font-size: 24px;
}

.rating-context {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-soft));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rating-context i {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-2);
}

.rating-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rating-score {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 64%, var(--line));
  border-radius: 8px;
  background: var(--panel-2);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rating-score:hover {
  transform: translateY(-2px);
}

.rating-score strong {
  font-size: 46px;
  line-height: 0.95;
}

.recommendation-block {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel-2) 82%, var(--accent) 18%), var(--bg-soft));
}

.recommendation-block.not-recommended {
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel-2) 86%, #ef4444 14%), var(--bg-soft));
}

.recommendation-icon {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--panel);
  color: #15803d;
  font-size: 24px;
}

.recommendation-block.not-recommended .recommendation-icon {
  color: #b91c1c;
}

.recommendation-block span,
.recommendation-block small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recommendation-block strong {
  display: block;
  margin: 3px 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.recommendation-block em {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-style: normal;
  font-weight: 900;
}

.company-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.company-summary-strip div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-2) 82%, var(--accent) 10%), var(--panel));
}

.company-summary-strip i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--accent-2);
}

.company-summary-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-summary-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 17px;
  line-height: 1.1;
}

.rating-score span {
  color: var(--muted);
}

.linkedin-unsynced-card {
  position: relative;
  overflow: hidden;
}

.linkedin-unsynced-card .company-thumb,
.linkedin-unsynced-card .card-rating {
  filter: grayscale(1);
}

.linkedin-unsynced-card .card-rating {
  background: transparent;
}

.unsynced-pill {
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--muted));
  background: color-mix(in srgb, var(--bg-soft) 82%, var(--line));
  color: var(--muted);
  font-weight: 800;
}

.linkedin-unsynced-profile .lead,
.obfuscated-summary strong {
  filter: blur(4px);
  user-select: none;
}

.linkedin-unsynced-notice {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--muted));
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--line) 28%, transparent) 0 8px, transparent 8px 16px),
    color-mix(in srgb, var(--panel-2) 86%, var(--bg));
}

.linkedin-unsynced-notice i {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
}

.linkedin-unsynced-notice strong,
.linkedin-unsynced-notice span {
  display: block;
}

.linkedin-unsynced-notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-summary {
  display: grid;
  gap: 8px;
}

.review-summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.review-summary-row span,
.empty-review-summary {
  color: var(--muted);
}

.review-summary-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.review-summary-row strong {
  color: var(--text);
}

.review-progress {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
}

.review-progress::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.review-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel-2) 76%, var(--accent) 16%), var(--bg-soft));
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 45%, transparent);
}

.review-form h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.12;
}

.review-heading {
  flex: 1 1 240px;
  min-width: min(100%, 240px);
}

.review-grid {
  display: grid;
  flex: 1 1 100%;
  grid-template-columns: 1fr;
  gap: 8px;
}

.review-field {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto 48px;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, white 8%);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 5%, transparent);
}

.review-field span,
.review-comment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-field > span:first-child,
.review-salary span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.review-field input {
  width: 100%;
}

.review-stepper {
  display: flex;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.review-stepper button {
  position: relative;
  min-height: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0;
  font-weight: 900;
}

.review-stepper button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.review-stepper button.selected,
.review-stepper button:hover {
  border-color: var(--accent-2);
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent-2) 34%, var(--accent)));
  color: var(--text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 16%, transparent);
}

.review-field strong {
  color: var(--accent-2);
  font-size: 13px;
  text-align: center;
}

.review-salary {
  display: grid;
  flex: 2 1 430px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 86%, var(--accent) 12%), var(--panel));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 5%, transparent);
}

.review-salary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.review-salary input {
  accent-color: var(--accent-2);
  width: 100%;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  appearance: none;
}

.review-salary input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-2) 32%, transparent);
  appearance: none;
}

.review-salary input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent-2) 32%, transparent);
}

.review-salary strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.review-comment {
  display: grid;
  flex: 1 1 100%;
  gap: 8px;
}

.review-comment textarea {
  min-height: 58px;
  background: color-mix(in srgb, var(--panel) 88%, white 8%);
}

.review-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.user-review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-review-summary span,
.user-review-summary p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.context-accordion {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.context-accordion[open] {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: 0 18px 48px rgba(31, 56, 88, 0.08);
}

.context-accordion summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 650;
  list-style: none;
  overflow-wrap: anywhere;
}

.context-accordion summary::-webkit-details-marker,
.reply-box summary::-webkit-details-marker {
  display: none;
}

.context-accordion summary::marker,
.reply-box summary::marker {
  content: "";
}

.context-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
  animation: accordionIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.context-body p {
  margin-bottom: 0;
}

.context-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.context-section h3 {
  color: var(--text);
  font-size: 16px;
}

.linkedin-metrics {
  display: grid;
  gap: 12px;
}

.evolution-panel {
  display: grid;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.evolution-hero,
.delta-grid,
.context-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.evolution-hero > div,
.delta-card,
.context-metric-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.evolution-hero span,
.delta-card span,
.context-metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.evolution-hero strong,
.context-metric-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 24px;
}

.evolution-hero small,
.delta-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.delta-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.delta-card i {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel);
}

.delta-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.delta-card.up i,
.delta-card.up strong {
  color: #15803d;
}

.delta-card.down i,
.delta-card.down strong {
  color: #b91c1c;
}

.evolution-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.evolution-range button {
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.evolution-range button.selected,
.evolution-range button:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.evolution-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.linear-evolution {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.line-chart-toolbar {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.line-chart-toolbar button {
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.line-chart-toolbar button.selected,
.line-chart-toolbar button:hover {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--text);
}

.line-chart {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 190px) auto;
  gap: 8px;
  min-height: 0;
}

.line-chart canvas {
  display: block;
  width: 100% !important;
  height: 190px !important;
  max-height: 190px;
}

.line-chart-caption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bar-item {
  display: grid;
  grid-template-rows: 110px auto auto;
  gap: 6px;
  align-items: end;
  text-align: center;
}

.bar-item span {
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.bar-item small {
  color: var(--muted);
  font-size: 11px;
}

.bar-item strong {
  color: var(--accent-2);
  font-size: 12px;
}

.section-title h2 {
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 14px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.search-panel {
  display: grid;
  gap: 12px;
}

.directory-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, minmax(150px, 190px));
  gap: 10px;
}

.home-rows {
  display: grid;
  gap: 14px;
  align-items: start;
}

.home-rail {
  min-width: 0;
}

.home-rail h2 {
  font-size: 24px;
}

.compact-company-list {
  grid-template-columns: 1fr;
}

.featured-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}

.featured-company h2 {
  margin-bottom: 8px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #151515;
  font-weight: 900;
  white-space: nowrap;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
button,
select,
textarea {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--bg);
  color: var(--text);
}

textarea {
  min-height: 118px;
  padding-block: 12px;
  resize: vertical;
}

button[type="submit"],
.primary-button {
  border: 0;
  padding: 0 18px;
  background: var(--highlight);
  color: #1f160d;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button[type="submit"]:hover,
.primary-button:hover {
  background: color-mix(in srgb, var(--highlight) 84%, white);
  box-shadow: 0 12px 28px rgba(247, 204, 160, 0.28);
  transform: translateY(-1px);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.company-list,
.forum-list,
.thread-list,
.comment-list,
.stat-grid,
.metric-grid,
.analysis-list {
  display: grid;
  gap: 12px;
}

.company-card,
.forum-card,
.thread-card,
.comment-card {
  padding: 16px;
  min-width: 0;
}

.company-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.company-card:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--panel) 78%, var(--accent) 4%);
  transform: translateY(-2px);
}

.company-card-body {
  min-width: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--accent-2);
  font-weight: 900;
}

.company-thumb {
  width: 58px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  object-fit: contain;
}

.card-ratings {
  display: grid;
  justify-self: end;
  grid-template-columns: auto;
  min-width: 48px;
}

.card-rating {
  display: grid;
  grid-template-columns: auto;
  justify-items: center;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.rating-orbit {
  display: grid;
  place-items: center;
  min-width: 44px;
  background: transparent;
}

.card-rating strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.data-rating {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, var(--panel-2));
}

.card-rating small,
.card-rating em {
  display: none;
  justify-self: start;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.card-rating em {
  color: var(--accent-2);
  font-size: 13px;
}

.company-card h3,
.forum-card h3,
.thread-card h3 {
  margin: 0 0 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
}

.linkedin-pill {
  gap: 6px;
  color: #0a66c2;
}

.source-url {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.forum-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
}

.forum-card:hover,
.thread-card:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--panel) 82%, white 12%);
}

.forum-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.forum-icon {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text);
}

.thread-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}

.forum-description,
.comment-card p {
  line-height: 1.55;
}

.meta {
  font-size: 13px;
}

.sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 86px;
}

.stat-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-profile-card .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
}

.stat span,
.stat strong,
.metric span,
.metric strong {
  display: block;
}

.stat span,
.metric span {
  color: var(--muted);
  font-size: 13px;
}

.stat strong,
.metric strong {
  margin-top: 5px;
  font-size: 22px;
}

.metric strong {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.rating-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}

.rating-dots i {
  width: 13px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
}

.rating-dots i.filled {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.opinion-box {
  border-left: 4px solid var(--accent);
}

.composer {
  display: grid;
  gap: 10px;
}

.composer-inline {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-bottom: 14px;
  box-shadow: none;
  background: var(--panel-2);
}

.composer-inline .form-message {
  grid-column: auto;
}

.composer-inline label {
  margin-bottom: -4px;
}

.composer label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.analysis-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.analysis-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.comment-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 10px;
}

.comment-card.source-author {
  border-left: 4px solid var(--accent-2);
}

.comment-card.review-comment-card {
  border-color: color-mix(in srgb, var(--accent-2) 52%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-2));
}

.review-pill {
  border-color: color-mix(in srgb, var(--accent-2) 50%, var(--line));
  color: var(--text);
}

.comment-review-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-review-metrics span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comments-panel {
  width: 100%;
}

.comment-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.comment-filters label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.comment-filters label i {
  color: var(--accent);
}

.comment-filters select {
  grid-column: 1 / -1;
  background: var(--bg);
}

.social-comment-list {
  gap: 10px;
}

.social-comment-list .comment-card {
  display: grid;
  grid-template-columns: 48px 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  box-shadow: none;
  background: color-mix(in srgb, var(--panel-2) 92%, var(--bg) 8%);
  border-color: color-mix(in srgb, var(--line) 74%, transparent);
}

.comment-avatar {
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
}

.image-skeleton {
  background:
    linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--panel) 68%, white 32%) 50%, transparent 65%),
    var(--bg-soft);
  background-size: 260% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.image-skeleton.loaded {
  animation: none;
  background: var(--bg-soft);
}

.vote-box {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.vote-box button {
  min-height: 0;
  width: 32px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.vote-box button:hover,
.vote-box button.voted,
.vote-box button.selected {
  background: var(--accent);
  color: var(--text);
  transform: scale(1.08);
}

.vote-box button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.vote-box strong {
  font-size: 18px;
}

.comment-content {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.comment-content p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.reply-target {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--panel-2));
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.pending-badge {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, var(--panel-2));
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.comment-head strong {
  color: var(--text);
}

.comment-head time {
  color: var(--muted);
  font-size: 13px;
}

.reply-box {
  margin-top: 12px;
}

.reply-box summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  cursor: pointer;
  color: var(--text);
  font-weight: 650;
  list-style: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.reply-box summary:hover {
  color: var(--accent-2);
  transform: translateX(2px);
}

.reply-box form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
  animation: fadeUp 0.2s ease both;
}

.reply-box .form-message {
  grid-column: auto;
}

.nested-replies {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 18px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  min-width: 0;
  overflow: hidden;
}

.social-comment-list .comment-card.nested-reply,
.nested-replies .comment-card {
  grid-template-columns: 40px 46px minmax(0, 1fr);
  background: color-mix(in srgb, var(--panel-2) 78%, var(--bg) 22%);
}

.nested-replies .forum-post {
  grid-template-columns: 40px minmax(0, 1fr);
}

.nested-replies .comment-avatar {
  width: 40px;
  border-radius: 14px;
}

.captcha-placeholder,
.captcha-widget {
  display: grid;
  min-height: 46px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.captcha-placeholder {
  place-items: center;
  padding: 0 10px;
}

.captcha-widget {
  grid-template-columns: auto 46px minmax(110px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}

.captcha-image {
  display: grid;
  place-items: center;
  min-height: 54px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-2);
}

.captcha-image img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 54px;
}

.captcha-refresh {
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #151515;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.source-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.source-panel dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}

.source-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.source-panel dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.page-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.centered-title {
  justify-content: center;
  text-align: center;
}

.thread-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.thread-card-with-votes {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: stretch;
}

.thread-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
}

.thread-detail-votes {
  float: right;
  margin: 0 0 14px 18px;
}

.thread-detail-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.thread-detail h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.thread-detail p {
  color: var(--text);
  line-height: 1.72;
}

.thread-author {
  margin-bottom: 18px;
}

.thread-author-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.thread-post-list {
  display: grid;
  gap: 12px;
}

.forum-post {
  grid-template-columns: 48px 54px minmax(0, 1fr);
}

.forum-reply-composer {
  margin-top: 16px;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer span {
  color: var(--accent-2);
  font-weight: 900;
}

@media (max-width: 880px) {
  .app-header {
    grid-template-columns: 1fr auto auto;
  }

  .top-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    display: none;
    align-content: start;
    width: min(320px, 86vw);
    height: 100vh;
    padding: 86px 18px 18px;
    border-left: 1px solid var(--line);
    background: var(--panel-2);
    box-shadow: -28px 0 70px rgba(31, 56, 88, 0.18);
  }

  .nav-drawer-brand {
    display: block;
    margin-bottom: 14px;
  }

  .nav-drawer-brand img {
    width: min(220px, 100%);
    height: auto;
    object-fit: contain;
  }

  [data-theme="dark"] .nav-drawer-brand img {
    filter: invert(1) brightness(1.18);
  }

  .top-nav.open {
    display: grid;
    animation: drawerIn 0.22s ease both;
  }

  .top-nav.closing {
    display: grid;
    animation: drawerOut 0.22s ease both;
  }

  .top-nav a {
    justify-content: flex-start;
  }

  .icon-button.nav-toggle {
    display: grid;
  }

  .home-layout,
  .company-layout,
  .forum-layout,
  .company-profile-grid,
  .home-rows,
  .forum-board {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .nested-replies .comment-card,
  .nested-replies .forum-post {
    grid-template-columns: 1fr;
  }

  .nested-replies .nested-replies {
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .brand small {
    display: none;
  }

  .input-row,
  .directory-filters,
  .comment-filters,
  .featured-company,
  .rating-stack,
  .company-summary-strip,
  .company-hero-main,
  .company-profile-head,
  .composer-inline,
  .reply-box form,
  .company-card,
  .forum-card,
  .thread-card,
  .stat-grid,
  .metric-grid,
  .company-profile-card .metric-grid {
    grid-template-columns: 1fr;
  }

  .home-rail .page-title,
  .home-rail .section-title,
  .home-rail h2 {
    justify-content: center;
    text-align: center;
  }

  .recommendation-block {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .recommendation-block em {
    grid-column: 1 / -1;
    text-align: center;
  }

  .social-comment-list .comment-card {
    grid-template-columns: 40px 58px minmax(0, 1fr);
    gap: 10px;
  }

  .social-comment-list .comment-card > .vote-box {
    grid-column: 2;
    width: 58px;
    min-width: 58px;
  }

  .social-comment-list .comment-card > .comment-content {
    display: contents;
    grid-column: 1 / -1;
  }

  .social-comment-list .comment-card > .comment-avatar {
    grid-column: 1;
  }

  .comment-head {
    grid-column: 3;
    align-self: center;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
  }

  .comment-meta-row,
  .reply-target,
  .comment-content p,
  .pending-badge,
  .reply-box,
  .nested-replies {
    grid-column: 1 / -1;
  }

  .company-card {
    align-items: start;
  }

  .card-ratings {
    justify-self: stretch;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card-rating {
    grid-template-columns: auto;
    justify-content: center;
  }

  .evolution-hero,
  .delta-grid,
  .context-metric-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-form,
  .review-done {
    grid-template-columns: 1fr;
  }

  .review-comment {
    grid-column: auto;
  }

  .compact-company-list {
    grid-template-columns: 1fr;
  }

  .social-comment-list .comment-card.nested-reply,
  .nested-replies .comment-card {
    grid-template-columns: 40px 58px minmax(0, 1fr);
  }

  .nested-replies .forum-post {
    grid-template-columns: 1fr;
  }

  .source-panel dl div {
    grid-template-columns: 1fr;
  }

  .nested-replies {
    padding-left: 10px;
  }

  .nested-replies .nested-replies {
    padding-left: 0;
  }
}

@keyframes shimmer {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -160% 0;
  }
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawerOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
