@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg-top: #0b3b3d;
  --bg-bottom: #b6f2ee;
  --panel: #0f1f22;
  --panel-edge: #1d3f44;
  --accent: #7fdad2;
  --accent-strong: #31bdb4;
  --accent-dark: #11857e;
  --accent-rgb: 127, 218, 210;
  --text: #f2fffd;
  --muted: #b9e1dc;
  --danger: #ff6b6b;
  --ok: #4ed39c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(7, 105, 104, 0.35), transparent 55%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  display: flex;
  align-items: stretch;
}

body.login-page,
body.lightsnow-page {
  --bg-top: #f7f9fb;
  --bg-bottom: #eef2f7;
  --panel: #ffffff;
  --panel-edge: #d9e2ec;
  --accent: #1d4ed8;
  --accent-strong: #153ea6;
  --accent-dark: #1d4ed8;
  --accent-rgb: 29, 78, 216;
  --text: #0f172a;
  --muted: #5b6477;
  --danger: #ef4444;
  --ok: #16a34a;
  --surface-alt: #edf2f7;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-top);
  display: block;
}

body.lightsnow-page {
  overflow-y: scroll;
}

body.login-page.theme-dark,
body.lightsnow-page.theme-dark {
  --bg-top: #0b3b3d;
  --bg-bottom: #0a2224;
  --panel: #0f1f22;
  --panel-edge: #1d3f44;
  --accent: #7fdad2;
  --accent-strong: #31bdb4;
  --accent-dark: #11857e;
  --accent-rgb: 127, 218, 210;
  --text: #f2fffd;
  --muted: #b9e1dc;
  --danger: #ff6b6b;
  --ok: #4ed39c;
  --surface-alt: #102a2e;
  --shadow: 0 24px 60px rgba(4, 8, 9, 0.45);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-top), #0a2224 72%, #0f1f22);
}

.shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 72px 0 60px;
  display: grid;
  gap: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(4, 8, 9, 0.35);
  animation: float-in 0.6s ease-out both;
}

.login-page .panel,
.lightsnow-page .panel {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

body.login-page.theme-dark .panel,
body.lightsnow-page.theme-dark .panel {
  box-shadow: 0 24px 60px rgba(4, 8, 9, 0.55);
}

.login-page .shell {
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
}

.login-panel {
  padding: 32px;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid var(--panel-edge);
  backdrop-filter: blur(10px);
}

body.login-page.theme-dark .public-nav,
body.lightsnow-page.theme-dark .public-nav {
  background: rgba(11, 18, 32, 0.9);
}

.public-nav-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 500px;
  align-items: center;
  gap: 18px;
  width: min(100% - 32px, 1160px);
  min-height: 92px;
  margin: 0 auto;
  padding: 10px 0;
}

.public-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.public-brand-mark {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.public-brand-mark-dark {
  display: none;
}

body.login-page.theme-dark .public-brand-mark-regular,
body.lightsnow-page.theme-dark .public-brand-mark-regular {
  display: none;
}

body.login-page.theme-dark .public-brand-mark-dark,
body.lightsnow-page.theme-dark .public-brand-mark-dark {
  display: block;
}

.public-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 16px;
  width: 100%;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
}

.public-nav-links a[aria-current="page"] {
  color: var(--text);
}

.public-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  width: 100%;
}

.public-nav-link,
.public-nav-actions .theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-nav-link.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.22);
}

.public-nav-link.outline {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}

body.login-page.theme-dark .public-nav-link.primary,
body.lightsnow-page.theme-dark .public-nav-link.primary {
  background: #1a857f;
}

body.login-page.theme-dark .public-nav-link.outline,
body.lightsnow-page.theme-dark .public-nav-link.outline {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 92px;
  margin: -24px -24px 20px;
  padding: 10px 16px;
  background: rgba(247, 249, 251, 0.94);
  border-bottom: 1px solid var(--panel-edge);
  border-radius: 12px 12px 0 0;
  backdrop-filter: blur(10px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

body.login-page .theme-button,
body.lightsnow-page .theme-button {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: #ffffff;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  box-shadow: none;
}

body.login-page .theme-button:hover,
body.lightsnow-page .theme-button:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

body.login-page.theme-dark .theme-button,
body.lightsnow-page.theme-dark .theme-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

body.login-page.theme-dark .theme-button:hover,
body.lightsnow-page.theme-dark .theme-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.public-nav-actions .theme-button {
  width: 152px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.brand {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--muted);
}

.login-page .brand,
.lightsnow-page .brand {
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
}

.ui-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.ui-brand-mark {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.ui-brand-mark-dark {
  display: none;
}

body.login-page.theme-dark .ui-brand-mark-regular,
body.lightsnow-page.theme-dark .ui-brand-mark-regular {
  display: none;
}

body.login-page.theme-dark .ui-brand-mark-dark,
body.lightsnow-page.theme-dark .ui-brand-mark-dark {
  display: block;
}

h1 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 32px;
  margin: 8px 0 16px;
}

h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 22px;
  margin: 0 0 12px;
}

body.login-page h1,
body.login-page h2,
body.lightsnow-page h1,
body.lightsnow-page h2 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 6px;
  color: var(--muted);
}

body.login-page label,
body.lightsnow-page label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

body.login-page p,
body.lightsnow-page p {
  color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2b5055;
  background: #0e2023;
  color: var(--text);
  font-size: 16px;
}

body.login-page input[type="text"],
body.login-page input[type="password"],
body.login-page input[type="email"],
body.login-page input[type="tel"],
body.login-page select,
body.login-page textarea,
body.lightsnow-page input[type="text"],
body.lightsnow-page input[type="password"],
body.lightsnow-page input[type="email"],
body.lightsnow-page input[type="tel"],
body.lightsnow-page select,
body.lightsnow-page textarea {
  border-radius: 12px;
  border-width: 2px;
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.015);
  color: var(--text);
}

body.login-page input[type="text"]:required,
body.login-page input[type="password"]:required,
body.login-page input[type="email"]:required,
body.login-page input[type="tel"]:required,
body.login-page select:required,
body.login-page textarea:required,
body.lightsnow-page input[type="text"]:required,
body.lightsnow-page input[type="password"]:required,
body.lightsnow-page input[type="email"]:required,
body.lightsnow-page input[type="tel"]:required,
body.lightsnow-page select:required,
body.lightsnow-page textarea:required {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.025);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.1) inset;
}

body.login-page.theme-dark input[type="text"],
body.login-page.theme-dark input[type="password"],
body.login-page.theme-dark input[type="email"],
body.login-page.theme-dark input[type="tel"],
body.login-page.theme-dark select,
body.login-page.theme-dark textarea,
body.lightsnow-page.theme-dark input[type="text"],
body.lightsnow-page.theme-dark input[type="password"],
body.lightsnow-page.theme-dark input[type="email"],
body.lightsnow-page.theme-dark input[type="tel"],
body.lightsnow-page.theme-dark select,
body.lightsnow-page.theme-dark textarea {
  background: #0e2023;
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.5);
}

body.login-page.theme-dark input:-webkit-autofill,
body.login-page.theme-dark input:-webkit-autofill:hover,
body.login-page.theme-dark input:-webkit-autofill:focus,
body.login-page.theme-dark textarea:-webkit-autofill,
body.login-page.theme-dark textarea:-webkit-autofill:hover,
body.login-page.theme-dark textarea:-webkit-autofill:focus,
body.lightsnow-page.theme-dark input:-webkit-autofill,
body.lightsnow-page.theme-dark input:-webkit-autofill:hover,
body.lightsnow-page.theme-dark input:-webkit-autofill:focus,
body.lightsnow-page.theme-dark textarea:-webkit-autofill,
body.lightsnow-page.theme-dark textarea:-webkit-autofill:hover,
body.lightsnow-page.theme-dark textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0e2023 inset;
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #0e2023 inset;
  transition: background-color 9999s ease-in-out 0s;
}

body.login-page.theme-dark input::placeholder,
body.login-page.theme-dark textarea::placeholder,
body.lightsnow-page.theme-dark input::placeholder,
body.lightsnow-page.theme-dark textarea::placeholder {
  color: rgba(185, 225, 220, 0.7);
}

body.login-page.theme-dark input[type="text"]:required,
body.login-page.theme-dark input[type="password"]:required,
body.login-page.theme-dark input[type="email"]:required,
body.login-page.theme-dark input[type="tel"]:required,
body.login-page.theme-dark select:required,
body.login-page.theme-dark textarea:required,
body.lightsnow-page.theme-dark input[type="text"]:required,
body.lightsnow-page.theme-dark input[type="password"]:required,
body.lightsnow-page.theme-dark input[type="email"]:required,
body.lightsnow-page.theme-dark input[type="tel"]:required,
body.lightsnow-page.theme-dark select:required,
body.lightsnow-page.theme-dark textarea:required {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.18) inset;
}

body.login-page input::placeholder,
body.login-page textarea::placeholder,
body.lightsnow-page input::placeholder,
body.lightsnow-page textarea::placeholder {
  color: #94a3b8;
}

body.login-page input[type="radio"],
body.login-page input[type="checkbox"],
body.lightsnow-page input[type="radio"],
body.lightsnow-page input[type="checkbox"] {
  accent-color: var(--accent);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

body.login-page input[type="text"]:focus,
body.login-page input[type="password"]:focus,
body.login-page input[type="email"]:focus,
body.login-page input[type="tel"]:focus,
body.login-page select:focus,
body.login-page textarea:focus,
body.lightsnow-page input[type="text"]:focus,
body.lightsnow-page input[type="password"]:focus,
body.lightsnow-page input[type="email"]:focus,
body.lightsnow-page input[type="tel"]:focus,
body.lightsnow-page select:focus,
body.lightsnow-page textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input[type="password"],
.password-field input[type="text"][data-password-input] {
  padding-right: 54px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button-row.compact {
  margin-top: 0;
}

.config-show-button {
  margin-top: 16px;
}

body.login-page .button-row,
body.lightsnow-page .button-row {
  gap: 14px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.option-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
}

.button-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--accent);
  color: #042f31;
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  box-shadow: none;
}

body.login-page button,
body.lightsnow-page button {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.25);
}

body.login-page button:not(.secondary),
body.lightsnow-page button:not(.secondary) {
  border: 1px solid rgba(var(--accent-rgb), 0.55);
}

body.login-page.theme-dark button:not(.secondary),
body.lightsnow-page.theme-dark button:not(.secondary) {
  background: #156d68;
}

body.login-page.theme-dark button:not(.secondary):hover,
body.lightsnow-page.theme-dark button:not(.secondary):hover {
  background: #1a857f;
}

body.login-page button.secondary,
body.lightsnow-page button.secondary {
  color: var(--accent);
  background: #ffffff;
  border-color: var(--accent);
}

body.login-page.theme-dark button.secondary,
body.lightsnow-page.theme-dark button.secondary {
  color: var(--text);
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.lightsnow-page.theme-dark .tab-button.tab-analyzer {
  background: #156d68;
  color: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.lightsnow-page.theme-dark .tab-button.tab-analyzer.is-active {
  background: #156d68;
  color: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.lightsnow-page.theme-dark .tab-button.tab-analyzer:hover,
body.lightsnow-page.theme-dark .tab-button.tab-analyzer:active {
  background: #1a857f;
}

body.lightsnow-page.theme-dark .tab-button.tab-configuration {
  color: var(--text);
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.lightsnow-page.theme-dark .tab-button.tab-configuration.is-active {
  color: var(--text);
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.lightsnow-page.theme-dark .tab-button.tab-configuration:hover,
body.lightsnow-page.theme-dark .tab-button.tab-configuration:active {
  background: rgba(var(--accent-rgb), 0.15);
}

button:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.35);
}

button.secondary:hover {
  background: rgba(var(--accent-rgb), 0.15);
  box-shadow: none;
}

body.login-page button.secondary:hover,
body.lightsnow-page button.secondary:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

button:active {
  transform: translateY(2px);
}

.status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 43, 46, 0.65);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--muted);
  line-height: 1.35;
  min-height: calc(24px + 2.7em);
  white-space: pre-line;
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.status.is-running {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: inset 3px 0 0 rgba(var(--accent-rgb), 0.75);
}

.status.is-running::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.12), transparent);
  transform: translateX(-100%);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.status.is-running::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
  pointer-events: none;
  animation: statusDotPulse 1.1s ease-in-out infinite;
}

@keyframes statusPulse {
  0% {
    transform: translateX(-100%);
  }
  55%, 100% {
    transform: translateX(100%);
  }
}

@keyframes statusDotPulse {
  0%, 100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status.is-running::after,
  .status.is-running::before {
    animation: none;
  }
}

body.login-page .status,
body.lightsnow-page .status {
  background: #f8fafc;
  border-color: var(--panel-edge);
  color: var(--muted);
}

body.login-page.theme-dark .status,
body.lightsnow-page.theme-dark .status {
  background: rgba(10, 43, 46, 0.65);
  border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--muted);
}

.status-with-spinner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.report-spinner-row {
  margin-top: 12px;
  min-height: 32px;
  align-items: flex-start;
}

.background-peer-status-notice {
  margin-top: 12px;
  min-height: 0;
  font-size: 14px;
}

.background-peer-status-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.background-peer-status-links a {
  color: var(--accent);
  font-weight: 700;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb), 0.25);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  visibility: hidden;
}

.spinner.is-active {
  visibility: visible;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-text {
  display: block;
  flex: 1 1 240px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  overflow: visible;
  padding: 1px 0 4px;
  opacity: 0;
}

.spinner-text.is-active {
  animation: text-pulse 1.2s ease-in-out infinite;
}

.csv-spinner-row {
  margin-top: 12px;
  min-height: 22px;
}

.competitors-spinner-row {
  margin-top: 10px;
  min-height: 22px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes text-pulse {
  0%, 100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.report-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.login-page .report-link,
body.lightsnow-page .report-link {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--accent);
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.55);
}

body.login-page.theme-dark .report-link,
body.lightsnow-page.theme-dark .report-link {
  color: var(--text);
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.6);
}

.report-link.hidden {
  display: none;
}

button.hidden {
  display: none;
}

.report-history {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.report-history a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.report-history a:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.status.ok {
  border-color: rgba(126, 217, 87, 0.5);
  color: #c9f7b0;
}

.status.error {
  border-color: rgba(255, 107, 107, 0.6);
  color: #ffd6d6;
}

body.login-page .status.ok,
body.lightsnow-page .status.ok {
  border-color: rgba(34, 197, 94, 0.4);
  color: #166534;
}

body.login-page .status.error,
body.lightsnow-page .status.error {
  border-color: rgba(239, 68, 68, 0.4);
  color: #b91c1c;
}

body.login-page.theme-dark .status.ok,
body.lightsnow-page.theme-dark .status.ok {
  border-color: rgba(126, 217, 87, 0.5);
  color: #c9f7b0;
}

body.login-page.theme-dark .status.error,
body.lightsnow-page.theme-dark .status.error {
  border-color: rgba(255, 107, 107, 0.6);
  color: #ffd6d6;
}

.password-toggle,
body.login-page .password-toggle,
body.lightsnow-page .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
}

body.login-page button.password-toggle:not(.secondary),
body.lightsnow-page button.password-toggle:not(.secondary),
body.login-page.theme-dark button.password-toggle:not(.secondary),
body.lightsnow-page.theme-dark button.password-toggle:not(.secondary) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.password-toggle:hover,
.password-toggle:focus-visible,
body.login-page .password-toggle:hover,
body.login-page .password-toggle:focus-visible,
body.lightsnow-page .password-toggle:hover,
body.lightsnow-page .password-toggle:focus-visible {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-toggle:active,
body.login-page .password-toggle:active,
body.lightsnow-page .password-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

body.login-page.theme-dark .password-toggle,
body.lightsnow-page.theme-dark .password-toggle {
  color: rgba(185, 225, 220, 0.78);
}

.password-toggle-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.password-toggle-icon[hidden] {
  display: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 10px 16px;
  background: rgba(247, 249, 251, 0.94);
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 18px 44px rgba(15, 23, 42, 0.1));
  backdrop-filter: blur(10px);
}

body.login-page.theme-dark .panel-top,
body.lightsnow-page.theme-dark .panel-top,
body.login-page.theme-dark .topbar,
body.lightsnow-page.theme-dark .topbar {
  background: rgba(11, 18, 32, 0.9);
}

.topbar .user {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
  min-height: 48px;
}

body.report-page .report-company-switch {
  display: grid;
  grid-template-columns: minmax(220px, 380px) auto minmax(210px, 320px);
  grid-template-areas: "status label select";
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  justify-content: end;
  min-height: 46px;
}

body.report-page .report-company-switch label {
  grid-area: label;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

body.report-page .report-company-switch select {
  grid-area: select;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

body.report-page .report-company-status {
  grid-area: status;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

body.report-page .report-switch-spinner-row {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  margin-left: 0;
  min-height: 22px;
  justify-content: flex-end;
  text-align: right;
  width: max-content;
  max-width: 100%;
}

body.report-page .report-switch-spinner-row .spinner-text {
  width: auto;
  max-width: none;
  text-align: right;
}

body.report-page .report-switch-spinner-row .spinner-text.is-active {
  animation: none;
  opacity: 1;
}

body.report-page .report-peer-refresh-notice {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.report-page .report-peer-refresh-notice[hidden] {
  display: block;
  visibility: hidden;
}

body.report-page .report-peer-refresh-notice.is-running {
  color: var(--accent-dark);
  border-color: rgba(59, 130, 246, 0.28);
}

body.report-page .report-peer-refresh-notice.is-ok {
  color: var(--ok);
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.1);
}

body.report-page .report-peer-refresh-notice.is-error {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}

body.report-page .report-title-inline {
  margin: 6px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

body.report-page .report-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

body.report-page {
  overflow-anchor: none;
}

body.report-page .panel {
  animation: none;
}

.user-meta {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.report-page #runReportCount {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}

.logout {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logout:hover {
  background: rgba(var(--accent-rgb), 0.15);
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

body.login-page .logout,
body.login-page .nav-link,
body.lightsnow-page .logout,
body.lightsnow-page .nav-link {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--accent);
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.55);
}

body.login-page .logout:hover,
body.login-page .nav-link:hover,
body.lightsnow-page .logout:hover,
body.lightsnow-page .nav-link:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

body.login-page.theme-dark .logout,
body.login-page.theme-dark .nav-link,
body.lightsnow-page.theme-dark .logout,
body.lightsnow-page.theme-dark .nav-link {
  color: var(--text);
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.login-page.theme-dark .logout:hover,
body.login-page.theme-dark .nav-link:hover,
body.lightsnow-page.theme-dark .logout:hover,
body.lightsnow-page.theme-dark .nav-link:hover {
  background: rgba(var(--accent-rgb), 0.15);
}

body.login-page .panel-top .theme-button,
body.lightsnow-page .topbar .nav-link,
body.lightsnow-page .topbar .logout,
body.lightsnow-page .topbar .theme-button,
body.lightsnow-page .topbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

body.login-page .panel-top .theme-button,
body.lightsnow-page .topbar .nav-link,
body.lightsnow-page .topbar .logout,
body.lightsnow-page .topbar .theme-button,
body.lightsnow-page .topbar button.secondary {
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--accent);
  box-shadow: none;
}

body.lightsnow-page .topbar button:not(.secondary):not(.theme-button) {
  color: #ffffff;
  background: var(--accent);
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.22);
}

body.login-page .panel-top .theme-button:hover,
body.lightsnow-page .topbar .nav-link:hover,
body.lightsnow-page .topbar .logout:hover,
body.lightsnow-page .topbar .theme-button:hover,
body.lightsnow-page .topbar button.secondary:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

body.login-page.theme-dark .panel-top .theme-button,
body.lightsnow-page.theme-dark .topbar .nav-link,
body.lightsnow-page.theme-dark .topbar .logout,
body.lightsnow-page.theme-dark .topbar .theme-button,
body.lightsnow-page.theme-dark .topbar button.secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--accent);
}

body.lightsnow-page.theme-dark .topbar button:not(.secondary):not(.theme-button) {
  background: #1a857f;
}

body.login-page.theme-dark .panel-top .theme-button:hover,
body.lightsnow-page.theme-dark .topbar .nav-link:hover,
body.lightsnow-page.theme-dark .topbar .logout:hover,
body.lightsnow-page.theme-dark .topbar .theme-button:hover,
body.lightsnow-page.theme-dark .topbar button.secondary:hover {
  background: rgba(var(--accent-rgb), 0.15);
}

body.login-page .pill,
body.lightsnow-page .pill {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-weight: 600;
}

body.login-page.theme-dark .pill,
body.lightsnow-page.theme-dark .pill {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.analyzer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-areas:
    "label label"
    "input status";
  gap: 16px;
  align-items: start;
}

.analyzer-row label {
  grid-area: label;
  margin-bottom: 0;
}

.analyzer-row input {
  grid-area: input;
}

.analyzer-row .status {
  grid-area: status;
  margin-top: 0;
  align-self: center;
}

@media (max-width: 900px) {
  .analyzer-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "input"
      "status";
  }
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.lightsnow-page .tab-button,
body.lightsnow-page.theme-dark .tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 26px;
  padding: 0 10px;
  line-height: 1;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
}

body.lightsnow-page .tab-button:hover,
body.lightsnow-page.theme-dark .tab-button:hover,
body.lightsnow-page .tab-button:active,
body.lightsnow-page.theme-dark .tab-button:active {
  box-shadow: none;
  transform: none;
  background: rgba(var(--accent-rgb), 0.16);
}

body.lightsnow-page .tab-button.is-active,
body.lightsnow-page.theme-dark .tab-button.is-active {
  background: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.6);
  color: #ffffff;
}

body.report-page.theme-dark .tab-button {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: #d8fffb;
}

body.report-page.theme-dark .tab-button:hover,
body.report-page.theme-dark .tab-button:active {
  background: rgba(var(--accent-rgb), 0.3);
  color: #f2fffd;
}

body.report-page.theme-dark .tab-button.is-active {
  background: #31bdb4;
  border-color: #62dbd3;
  color: #062326;
}

body.lightsnow-page .tab-button:focus-visible,
body.lightsnow-page.theme-dark .tab-button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 2px;
}

.tab-panels {
  display: grid;
  gap: 24px;
  align-content: start;
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  gap: 24px;
  align-content: start;
}

.tab-panel.is-measuring {
  display: grid;
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

body.lightsnow-page .tab-panel .panel {
  animation: none;
}

.section-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

body.report-page details.panel-card-collapsible > summary.collapsible-kicker {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

body.report-page details.panel-card-collapsible > summary.collapsible-kicker::-webkit-details-marker {
  display: none;
}

body.report-page details.panel-card-collapsible > summary.collapsible-kicker::after {
  content: "Open";
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.report-page details.panel-card-collapsible[open] > summary.collapsible-kicker {
  margin-bottom: 8px;
}

body.report-page details.panel-card-collapsible[open] > summary.collapsible-kicker::after {
  content: "Close";
}

body.report-page details.config-submenu {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

body.report-page details.config-submenu:last-child {
  padding-bottom: 0;
}

body.report-page details.config-submenu > summary.collapsible-kicker {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

body.report-page details.config-submenu > summary.collapsible-kicker::-webkit-details-marker {
  display: none;
}

body.report-page details.config-submenu > summary.collapsible-kicker::after {
  content: "Open";
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.report-page details.config-submenu[open] > summary.collapsible-kicker {
  margin-bottom: 8px;
}

body.report-page details.config-submenu[open] > summary.collapsible-kicker::after {
  content: "Close";
}


.table-wrap {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-panel {
  display: grid;
  gap: 16px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chat-context {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chat-history {
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding-right: 6px;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 28, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.4;
}

.chat-bubble.user {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.4);
  justify-self: end;
}

.chat-bubble.assistant {
  background: rgba(15, 36, 41, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
  justify-self: start;
}

body.lightsnow-page .chat-bubble {
  background: #f1f5f9;
  border-color: var(--panel-edge);
  color: var(--text);
}

body.lightsnow-page .chat-bubble.user {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
}

body.lightsnow-page .chat-bubble.assistant {
  background: #ffffff;
  border-color: var(--panel-edge);
}

body.lightsnow-page.theme-dark .chat-bubble {
  background: rgba(16, 28, 32, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.lightsnow-page.theme-dark .chat-bubble.user {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.4);
}

body.lightsnow-page.theme-dark .chat-bubble.assistant {
  background: rgba(15, 36, 41, 0.7);
  border-color: rgba(255, 255, 255, 0.12);
}

.chat-sources {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.22);
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

body.login-page table,
body.lightsnow-page table {
  background: #ffffff;
}

body.login-page tbody tr:nth-child(even) td,
body.lightsnow-page tbody tr:nth-child(even) td {
  background: #f8fafc;
}

body.login-page th,
body.lightsnow-page th {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

body.login-page.theme-dark table,
body.lightsnow-page.theme-dark table {
  background: transparent;
}

body.login-page.theme-dark tbody tr:nth-child(even) td,
body.lightsnow-page.theme-dark tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.08);
}

body.login-page th,
body.login-page td,
body.lightsnow-page th,
body.lightsnow-page td {
  border-bottom-color: var(--panel-edge);
}

body.lightsnow-page .competitor-select-cell {
  width: 76px;
  text-align: center;
}

body.lightsnow-page .competitor-select-cell input[type="checkbox"] {
  accent-color: var(--accent);
}

body.lightsnow-page .select-all-competitors {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.login-page .helper-link,
body.lightsnow-page .helper-link {
  color: var(--muted);
}

body.login-page .helper-link:hover,
body.lightsnow-page .helper-link:hover {
  color: var(--accent);
}

body.login-page .radio-group,
body.lightsnow-page .radio-group {
  gap: 12px;
}

body.login-page .radio-option,
body.lightsnow-page .radio-option {
  border-color: var(--panel-edge);
  background: #ffffff;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

body.login-page .radio-option:hover,
body.lightsnow-page .radio-option:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
}

body.login-page.theme-dark .radio-option,
body.lightsnow-page.theme-dark .radio-option {
  background: rgba(16, 28, 32, 0.9);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text);
}

body.login-page.theme-dark .radio-option:hover,
body.lightsnow-page.theme-dark .radio-option:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.login-page .error-list,
body.lightsnow-page .error-list {
  color: var(--muted);
}

body.login-page .error-hint,
body.lightsnow-page .error-hint {
  color: var(--danger);
}

body.login-page .privacy-note,
body.lightsnow-page .privacy-note {
  color: var(--muted);
}

body.report-page .report-shell {
  width: 98vw;
  max-width: none;
  gap: 28px;
  opacity: 0;
  animation: report-shell-fade-in 50ms ease-out forwards;
}

body.report-page .report-hero {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 5;
}

body.report-page .report-hero[hidden] {
  display: none !important;
}

body.report-page .report-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

body.report-page .report-identity h2 {
  margin: 6px 0 4px;
}

body.report-page .report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.report-page .report-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.report-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

body.report-page .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

body.report-page .badge-ok {
  background: rgba(22, 163, 74, 0.12);
  color: var(--ok);
  border-color: rgba(22, 163, 74, 0.35);
}

body.report-page .report-status {
  font-size: 13px;
  color: var(--muted);
}

body.report-page .report-status.ok {
  color: var(--ok);
}

body.report-page .report-status.error {
  color: var(--danger);
}

body.report-page .report-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

body.report-page .report-side-nav {
  position: sticky;
  top: 20px;
  padding: 10px;
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

body.report-page.theme-dark .report-side-nav {
  background: rgba(16, 28, 32, 0.85);
}

body.report-page .report-side-nav .tabs {
  display: grid;
  gap: 8px;
}

body.report-page .report-side-nav .tab-button,
body.report-page.theme-dark .report-side-nav .tab-button {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 38px;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
}

body.report-page .report-side-nav .tab-button.is-active,
body.report-page.theme-dark .report-side-nav .tab-button.is-active {
  border-left: 4px solid rgba(var(--accent-rgb), 0.85);
  padding-left: 10px;
}

body.report-page .report-content {
  min-width: 0;
}

body.report-page.theme-dark .report-content a {
  color: #9eeeff;
}

body.report-page.theme-dark .report-content a:hover {
  color: #c6f7ff;
}

body.report-page .overview-grid,
body.report-page .sec-grid,
body.report-page .financial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.report-page .panel-card {
  border-radius: 18px;
  border: 1px solid var(--panel-edge);
  padding: 20px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 12px;
  min-width: 0;
}

body.report-page.theme-dark .panel-card {
  background: rgba(16, 28, 32, 0.85);
  box-shadow: 0 16px 36px rgba(4, 8, 9, 0.4);
}

body.report-page .panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.report-page .meta-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

body.report-page .pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.report-page .table-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

body.report-page .table-toolbar input {
  min-width: 220px;
}

body.report-page table.dataframe {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.report-page table.dataframe th,
body.report-page table.dataframe td {
  border: 1px solid var(--panel-edge);
  padding: 6px 8px;
  text-align: right;
}

body.report-page table.dataframe th:first-child,
body.report-page table.dataframe td:first-child {
  text-align: left;
}

body.report-page .coverage-weighting-wrap,
body.report-page .global-metric-level-wrap,
body.report-page .global-metric-explainability-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

body.report-page .metric-thresholds-kicker {
  margin-top: 14px;
}

body.report-page table.dataframe.coverage-weighting-table th,
body.report-page table.dataframe.coverage-weighting-table td {
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

body.report-page table.dataframe tbody tr:nth-child(odd) td,
body.report-page table.dataframe tbody tr:nth-child(odd) th {
  background: rgba(148, 163, 184, 0.15);
}

body.report-page table.dataframe tbody tr.global-metric-level-section-row td,
body.report-page table.dataframe tbody tr.global-metric-level-section-row th {
  border: 0;
  padding: 12px 8px 6px;
  background: transparent;
}

body.report-page .global-metric-level-section-cell {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  border-top: 2px solid rgba(15, 118, 110, 0.45) !important;
  box-shadow: inset 0 10px 0 rgba(15, 118, 110, 0.06);
}

body.report-page .financial-data-table {
  font-size: 13px;
  table-layout: fixed;
}

body.report-page .financial-data-table th,
body.report-page .financial-data-table td {
  padding: 9px 10px;
  white-space: nowrap;
  vertical-align: top;
}

body.report-page .financial-data-table td.financial-data-value-bar-cell {
  position: relative;
  overflow: hidden;
}

body.report-page .financial-data-table td.financial-data-value-bar-cell::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: calc(100% - 10px);
  width: var(--financial-data-bar-width, 0%);
  border-radius: 8px;
  background: rgba(15, 118, 110, var(--financial-data-bar-opacity, 0.18));
  pointer-events: none;
}

body.report-page .financial-data-table td.financial-data-value-bar-cell.is-negative::before {
  background: rgba(220, 38, 38, var(--financial-data-bar-opacity, 0.24));
}

body.report-page .financial-data-table td.financial-data-value-bar-cell .financial-data-value-bar-text {
  position: relative;
  z-index: 1;
}

body.report-page .financial-data-table thead th {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.report-page .sec-reports-table {
  table-layout: auto;
}

body.report-page .sec-reports-table thead th {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  vertical-align: bottom;
  min-width: 7.5rem;
}

body.report-page .sec-reports-table thead th:first-child {
  min-width: 12rem;
}

body.report-page .sec-reports-table tbody td,
body.report-page .sec-reports-table tbody th {
  white-space: nowrap;
}

body.report-page .column-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
  cursor: pointer;
}

body.report-page .column-sort-indicator {
  color: var(--muted);
  font-size: 0.85em;
}

body.report-page .financial-data-table tbody td:first-child,
body.report-page .financial-data-table tbody th:first-child {
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

body.report-page table.dataframe.metric-level-competitors-table th:first-child,
body.report-page table.dataframe.metric-level-competitors-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--panel);
  min-width: 180px;
}

body.report-page table.dataframe.metric-level-competitors-table th:nth-child(2),
body.report-page table.dataframe.metric-level-competitors-table td:nth-child(2) {
  position: sticky;
  left: 180px;
  z-index: 2;
  background: var(--panel);
  min-width: 260px;
  text-align: left;
}

body.report-page table.dataframe.metric-level-competitors-table thead th:first-child,
body.report-page table.dataframe.metric-level-competitors-table thead th:nth-child(2) {
  z-index: 4;
}

body.report-page table.dataframe.metric-level-competitors-table tbody tr:nth-child(odd) td:first-child,
body.report-page table.dataframe.metric-level-competitors-table tbody tr:nth-child(odd) td:nth-child(2) {
  background: rgba(148, 163, 184, 0.15);
}

body.report-page .source-cell-target {
  outline: 2px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.22) !important;
  transition: background 0.3s ease;
}

body.report-page.theme-dark .source-cell-target {
  outline: 2px solid #7dd3fc;
  background: rgba(125, 211, 252, 0.26) !important;
}

body.report-page .note {
  font-size: 13px;
  color: var(--muted);
}

body.report-page .health-summery-processing {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(14, 165, 233, 0.08);
}

body.report-page .health-summery-processing.is-running {
  color: var(--text);
  border-color: rgba(14, 165, 233, 0.35);
}

body.report-page .health-summery-processing.is-ok {
  color: var(--muted);
}

body.report-page .financial-sankey-metrics {
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
}

body.report-page .financial-sankey-metrics-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

body.report-page .financial-sankey-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

body.report-page .financial-sankey-metric {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

body.report-page.theme-dark .financial-sankey-metric {
  background: rgba(255, 255, 255, 0.04);
}

body.report-page .financial-sankey-metric-label {
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--muted);
}

body.report-page .financial-sankey-metric-value {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

body.report-page .financial-sankey-metric-status {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  white-space: pre-line;
}

body.report-page .financial-sankey-metric.is-zero,
body.report-page .financial-sankey-metric.is-not-drawn {
  opacity: 0.72;
}

body.report-page .financial-sankey-metric.is-negative .financial-sankey-metric-value {
  color: #dc2626;
}

body.report-page .global-revenue-chart-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.report-page .global-revenue-chart-host > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.report-page .financial-graphs-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: 4px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.08);
}

body.report-page .financial-graphs-loading[hidden] {
  display: none;
}

body.report-page .financial-graphs-loading .spinner-text {
  padding: 0;
}

body.report-page #financialGraphsSankey {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
}

body.report-page #financialGraphsSankey > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.report-page #financialGraphsSankey > .financial-sankey-chart-frame {
  min-width: 1040px;
}

body.report-page .financial-sankey-chart-frame {
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-sizing: border-box;
  padding: 16px;
  overflow: visible;
}

body.report-page.theme-dark .financial-sankey-chart-frame {
  background: rgba(10, 22, 26, 0.46);
}

body.report-page .financial-sankey-chart-header {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.report-page .financial-sankey-chart-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

body.report-page .financial-sankey-chart-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

body.report-page .financial-sankey-plot-host {
  height: 660px;
  margin-top: 18px;
  min-height: 660px;
  min-width: 100%;
  width: 100%;
}

body.report-page #financialGraphsSankeyDetails {
  overflow-wrap: anywhere;
}

body.report-page .financial-data-tab {
  gap: 20px;
}

body.report-page .financial-data-hero h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
}

body.report-page .financial-data-intro {
  font-size: 0.98rem;
}

body.report-page #yahooFinancialsAnnual,
body.report-page #yahooFinancialsQuarterly,
body.report-page #yahooAnalysis,
body.report-page #yahooHolders {
  display: grid;
  gap: 18px;
}

body.report-page .financial-data-section {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

body.report-page.theme-dark .financial-data-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.report-page .financial-data-section-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

body.report-page .financial-data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}

body.report-page .muted {
  color: var(--muted);
}

body.report-page .chart-section {
  margin-bottom: 28px;
  display: grid;
  gap: 16px;
}

body.report-page .chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.report-page #singleChartChangeSummary,
body.report-page #comparisonChartChangeSummary {
  min-height: 18px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(100%, 64ch);
}

body.report-page .chart-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.report-page .chart-tab {
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.report-page .chart-tab.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.6);
}

body.report-page.theme-dark .chart-tab {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.45);
  color: #d8fffb;
}

body.report-page.theme-dark .chart-tab:hover,
body.report-page.theme-dark .chart-tab:active {
  background: rgba(var(--accent-rgb), 0.3);
  color: #f2fffd;
}

body.report-page.theme-dark .chart-tab.is-active {
  background: #31bdb4;
  color: #062326;
  border-color: #62dbd3;
}

body.report-page .chart-panels {
  display: grid;
  gap: 16px;
}

body.report-page .chart-panel {
  display: none;
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  background: #ffffff;
  padding: 12px;
  overflow: hidden;
}

body.report-page #chartSectionSingle .chart-panel {
  min-height: 460px;
  height: 460px;
}

body.report-page #chartSectionComparison .chart-panel {
  min-height: 560px;
  height: 560px;
}

body.report-page.theme-dark .chart-panel {
  background: rgba(16, 28, 32, 0.85);
}

body.report-page .chart-panel.is-active {
  display: block;
}

body.report-page .chart-panel.chart-panel-comparison {
  min-height: 420px;
}

body.report-page {
  overflow-y: scroll;
}

body.report-page.theme-dark .js-plotly-plot .plotly .xtick text,
body.report-page.theme-dark .js-plotly-plot .plotly .ytick text,
body.report-page.theme-dark .js-plotly-plot .plotly .xaxislayer-above text,
body.report-page.theme-dark .js-plotly-plot .plotly .yaxislayer-above text,
body.report-page.theme-dark .js-plotly-plot .plotly .g-xtitle text,
body.report-page.theme-dark .js-plotly-plot .plotly .g-ytitle text,
body.report-page.theme-dark .js-plotly-plot .plotly .legendtext {
  fill: #e8fffc !important;
}

body.report-page.theme-dark .js-plotly-plot .plotly .hoverlayer text {
  fill: #e8fffc !important;
}

body.report-page.theme-dark .js-plotly-plot .plotly .hoverlayer .bg {
  fill: #0f1f22 !important;
  stroke: #62dbd3 !important;
  stroke-width: 1px !important;
}

body.report-page:not(.theme-dark) .js-plotly-plot .plotly .xtick text,
body.report-page:not(.theme-dark) .js-plotly-plot .plotly .ytick text,
body.report-page:not(.theme-dark) .js-plotly-plot .plotly .xaxislayer-above text,
body.report-page:not(.theme-dark) .js-plotly-plot .plotly .yaxislayer-above text,
body.report-page:not(.theme-dark) .js-plotly-plot .plotly .g-xtitle text,
body.report-page:not(.theme-dark) .js-plotly-plot .plotly .g-ytitle text,
body.report-page:not(.theme-dark) .js-plotly-plot .plotly .legendtext {
  fill: #0f172a !important;
}

body.report-page:not(.theme-dark) .js-plotly-plot .plotly .hoverlayer text {
  fill: #0f172a !important;
}

body.report-page:not(.theme-dark) .js-plotly-plot .plotly .hoverlayer .bg {
  fill: #ffffff !important;
  stroke: #cbd5e1 !important;
  stroke-width: 1px !important;
}

body.report-page .chart-empty {
  font-size: 13px;
  color: var(--muted);
}

body.report-page .trio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

body.report-page .trio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.report-page .trio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
}

body.report-page .trio-card {
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  padding: 8px;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 4px;
}

body.report-page .trio-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.report-page.theme-dark .trio-card {
  background: rgba(16, 28, 32, 0.85);
}

body.report-page .trio-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

body.report-page .trio-card table {
  font-size: 15px;
}

body.report-page .trio-card th,
body.report-page .trio-card td {
  padding: 2px 4px;
  line-height: 1.2;
}

body.report-page .cell-best {
  background: rgba(34, 197, 94, 0.16);
  color: #0f7a3d;
  font-weight: 700;
}

body.report-page .cell-worst {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
  font-weight: 700;
}

body.report-page.theme-dark .cell-best {
  color: #7ef5b9;
}

body.report-page.theme-dark .cell-worst {
  color: #ff9b9b;
}

body.report-page .score-band-green {
  color: #0f7a3d;
  font-weight: 700;
}

body.report-page .score-band-red {
  color: #b91c1c;
  font-weight: 700;
}

body.report-page .score-band-yellow {
  color: #ca8a04;
  font-weight: 700;
}

body.report-page .score-band-gray {
  color: var(--muted);
  font-weight: 700;
}

body.report-page.theme-dark .score-band-green {
  color: #7ef5b9;
}

body.report-page.theme-dark .score-band-red {
  color: #ff9b9b;
}

body.report-page.theme-dark .score-band-yellow {
  color: #fbbf24;
}

body.report-page .memo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

body.report-page .memo-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

body.report-page .memo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.report-page .configuration-actions {
  align-items: end;
  gap: 8px;
}

body.report-page .configuration-run-spinner-row {
  flex: 1 1 260px;
  min-height: 38px;
  align-items: center;
}

body.report-page .configuration-actions button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.2px;
}

body.report-page .configuration-actions .meta-list {
  gap: 4px;
  min-width: 190px;
}

body.report-page .configuration-actions select {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

body.report-page .configuration-peer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

body.report-page .configuration-peer-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

body.report-page.theme-dark .configuration-peer-option {
  background: rgba(15, 31, 34, 0.96);
  border-color: rgba(127, 218, 210, 0.48);
  color: var(--text);
}

body.report-page .configuration-peer-option input {
  margin-top: 2px;
  flex: 0 0 auto;
}

body.report-page.theme-dark .configuration-peer-option input {
  accent-color: var(--accent);
}

body.report-page .memo-content {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.85);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  line-height: 1.6;
}

body.report-page.theme-dark .memo-content {
  background: rgba(16, 28, 32, 0.85);
}

body.report-page.theme-dark .memo-content table {
  background: transparent !important;
  color: #f2fffd;
}

body.report-page.theme-dark .memo-content th,
body.report-page.theme-dark .memo-content td {
  border: 1px solid var(--panel-edge) !important;
  color: #f2fffd;
}

body.report-page.theme-dark .memo-content thead th {
  background: rgba(var(--accent-rgb), 0.14) !important;
  color: #d8fffb !important;
}

body.report-page.theme-dark .memo-content tbody tr:nth-child(even) td,
body.report-page.theme-dark .memo-content tbody tr:nth-child(even) th {
  background: rgba(148, 163, 184, 0.08) !important;
}

body.report-page.theme-dark .memo-content tbody tr:nth-child(odd) td,
body.report-page.theme-dark .memo-content tbody tr:nth-child(odd) th {
  background: rgba(148, 163, 184, 0.15) !important;
}

body.report-page.theme-dark .memo-content table.dataframe,
body.report-page.theme-dark .memo-content table.dataframe th,
body.report-page.theme-dark .memo-content table.dataframe td {
  color: #f2fffd;
}

body.report-page.theme-dark .memo-content table th *,
body.report-page.theme-dark .memo-content table td * {
  color: inherit !important;
}

body.report-page .memo-content .memo-cell-target {
  outline: 2px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.22) !important;
  transition: background 0.3s ease;
}

body.report-page.theme-dark .memo-content .memo-cell-target {
  outline: 2px solid #7dd3fc;
  background: rgba(125, 211, 252, 0.26) !important;
}

body.report-page .memo-content h1,
body.report-page .memo-content h2,
body.report-page .memo-content h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

body.report-page .memo-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.08);
}

body.report-page .memo-content details.memo-table-collapsible {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--panel-edge);
  background: rgba(var(--accent-rgb), 0.04);
}

body.report-page .memo-content details.memo-table-collapsible > summary.collapsible-kicker {
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}

body.report-page .memo-content details.memo-table-collapsible > summary.collapsible-kicker::-webkit-details-marker {
  display: none;
}

body.report-page .memo-content details.memo-table-collapsible > summary.collapsible-kicker::after {
  content: "Open";
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.report-page .memo-content details.memo-table-collapsible[open] > summary.collapsible-kicker {
  margin-bottom: 8px;
}

body.report-page .memo-content details.memo-table-collapsible[open] > summary.collapsible-kicker::after {
  content: "Close";
}

body.report-page .memo-content .memo-table-wrap {
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.report-page .memo-outline {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

body.report-page.theme-dark .memo-outline {
  background: rgba(16, 28, 32, 0.85);
}

body.report-page .memo-outline ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

body.report-page .memo-outline a {
  text-decoration: none;
  color: var(--accent);
}

body.report-page .sec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

body.report-page .sec-list li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.report-page.theme-dark .sec-list li {
  background: rgba(16, 28, 32, 0.85);
}

body.report-page .sec-list a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

body.report-page .sec-grid {
  align-items: start;
}

body.report-page .sec-grid .panel-card {
  align-content: start;
}

body.report-page .sec-grid .panel-card h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  body.report-page .report-hero-main {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  body.report-page .report-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.report-page .report-side-nav {
    position: static;
    padding: 8px;
  }

  body.report-page .report-side-nav .tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  body.report-page .report-side-nav .tab-button,
  body.report-page.theme-dark .report-side-nav .tab-button {
    width: auto;
    min-width: 140px;
    max-width: 220px;
    justify-content: center;
    border-radius: 999px;
    padding: 0 12px;
  }

  body.report-page .report-side-nav .tab-button.is-active,
  body.report-page.theme-dark .report-side-nav .tab-button.is-active {
    border-left: 1px solid rgba(var(--accent-rgb), 0.6);
    padding-left: 12px;
  }

  body.report-page .overview-grid,
  body.report-page .sec-grid,
  body.report-page .financial-grid {
    grid-template-columns: 1fr;
  }

  body.report-page .memo-layout {
    grid-template-columns: 1fr;
  }

  body.report-page .memo-outline {
    position: static;
  }

  body.report-page #chartSectionSingle .chart-panel {
    min-height: 390px;
    height: 390px;
  }

  body.report-page #chartSectionComparison .chart-panel {
    min-height: 460px;
    height: 460px;
  }

  body.report-page #singleChartChangeSummary,
  body.report-page #comparisonChartChangeSummary {
    white-space: normal;
    min-height: 0;
    line-height: 1.2;
  }

  body.report-page .report-company-switch {
    width: 100%;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    justify-content: end;
  }

  body.report-page .report-company-switch select {
    min-width: 0;
    max-width: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes report-shell-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.report-page .report-shell {
    animation: none;
    opacity: 1;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 12, 0.7);
}

.modal__content {
  position: relative;
  width: min(520px, 92vw);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(4, 8, 9, 0.5);
  animation: float-in 0.2s ease-out;
}

.modal__header h3 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 20px;
}

body.login-page .modal__content,
body.lightsnow-page .modal__content {
  box-shadow: var(--shadow);
}

body.login-page .modal__header h3,
body.lightsnow-page .modal__header h3 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal__body .hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal__footer {
  margin-top: 20px;
}

body.report-page .global-metric-level-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.report-page .global-metric-level-trigger:hover,
body.report-page .global-metric-level-trigger:focus-visible {
  opacity: 0.82;
}

body.report-page .global-metric-level-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.financial-disclaimer-footer {
  margin: 24px auto 0;
  width: min(1100px, 92vw);
  padding: 14px 16px 0;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.legal-info-panel {
  margin-bottom: 12px;
  color: var(--muted);
  white-space: normal;
}

.legal-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.legal-info-links a {
  color: inherit;
}

body.login-page.theme-dark .financial-disclaimer-footer,
body.lightsnow-page.theme-dark .financial-disclaimer-footer {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(242, 255, 253, 0.78);
}

@media (max-width: 720px) {
  body.login-page,
  body.lightsnow-page {
    overflow-x: hidden;
  }

  .public-nav-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    padding: 14px 0;
  }

  .public-brand-mark,
  .ui-brand-mark {
    width: 176px;
  }

  .public-nav-links,
  .public-nav-actions {
    justify-content: center;
  }

  .public-nav-links {
    font-size: 1rem;
  }

  .public-nav-actions {
    flex-wrap: wrap;
  }

  .shell {
    width: min(100% - 24px, 100%);
    padding: 36px 0;
    gap: 16px;
  }

  .panel {
    border-radius: 14px;
    padding: 16px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.18;
  }

  h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 0;
    padding: 14px 16px;
  }

  .panel-top {
    flex-wrap: wrap;
    min-height: 0;
    margin: -16px -16px 16px;
    padding: 14px 16px;
  }

  .topbar > div {
    min-width: 0;
  }

  .topbar .user {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    text-align: left;
    gap: 8px;
  }

  body.login-page .panel-top .theme-button,
  body.lightsnow-page .topbar .nav-link,
  body.lightsnow-page .topbar .logout,
  body.lightsnow-page .topbar .theme-button,
  body.lightsnow-page .topbar button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .user-meta {
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  .tabs {
    gap: 8px;
  }

  body.lightsnow-page .tab-button,
  body.lightsnow-page.theme-dark .tab-button {
    min-width: 124px;
    max-width: 100%;
  }

  .button-row,
  .button-grid,
  body.report-page .memo-actions,
  body.report-page .report-actions,
  body.report-page .table-toolbar,
  body.report-page .trio-controls {
    align-items: stretch;
    width: 100%;
  }

  .button-column,
  body.report-page .table-toolbar input,
  body.report-page .trio-controls select {
    width: 100%;
  }

  .button-row button,
  .button-grid button,
  body.report-page .memo-actions button,
  body.report-page .report-actions button,
  body.report-page .table-toolbar button,
  body.report-page .configuration-actions button {
    min-height: 40px;
  }

  .chat-input-row {
    grid-template-columns: 1fr;
  }

  .table-wrap,
  body.report-page .financial-data-table-wrap,
  body.report-page .memo-content .memo-table-wrap,
  body.report-page .coverage-weighting-wrap,
  body.report-page .global-metric-level-wrap,
  body.report-page .global-metric-explainability-wrap {
    margin-left: -4px;
    margin-right: -4px;
    padding: 0 4px 4px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 8px 6px;
  }

  body.report-page .report-shell {
    width: min(100% - 16px, 100%);
    gap: 16px;
  }

  body.report-page .report-title-inline {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }

  body.report-page .report-company-switch {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "select"
      "status";
    justify-content: stretch;
  }

  body.report-page .report-company-status {
    align-items: stretch;
  }

  body.report-page .report-peer-refresh-notice {
    justify-self: stretch;
    max-width: none;
    text-align: left;
    justify-content: flex-start;
  }

  body.report-page .report-workspace {
    padding: 10px;
    border-radius: 14px;
    gap: 12px;
  }

  body.report-page .report-side-nav {
    margin: 0 -2px;
    padding: 8px;
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
  }

  body.report-page .report-side-nav .tabs {
    scrollbar-gutter: stable;
    overscroll-behavior-x: contain;
  }

  body.report-page .report-side-nav .tab-button,
  body.report-page.theme-dark .report-side-nav .tab-button {
    min-width: 136px;
    max-width: 176px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  body.report-page .panel-card {
    border-radius: 14px;
    padding: 14px;
    gap: 10px;
  }

  body.report-page .panel-card-header {
    align-items: stretch;
  }

  body.report-page .panel-card-header > * {
    min-width: 0;
  }

  body.report-page .pill,
  body.report-page .badge,
  body.report-page .meta-list,
  body.report-page .note,
  body.report-page .financial-sankey-metric-label,
  body.report-page .financial-sankey-metric-value {
    overflow-wrap: anywhere;
  }

  body.report-page .financial-sankey-metrics-grid,
  body.report-page .configuration-peer-grid {
    grid-template-columns: 1fr;
  }

  body.report-page .global-revenue-chart-host,
  body.report-page #financialGraphsSankey {
    min-height: 300px;
  }

  body.report-page .global-revenue-chart-host > div,
  body.report-page #financialGraphsSankey > div {
    min-height: 300px;
  }

  body.report-page #financialGraphsRevenueTables {
    display: grid;
    gap: 12px;
    min-width: 0;
  }

  body.report-page #financialGraphsSankeyControls {
    align-items: stretch;
    width: 100%;
  }

  body.report-page #financialGraphsSankeyControls label,
  body.report-page #financialGraphsSankeyControls select {
    width: 100%;
  }

  body.report-page #financialGraphsSankeyDetails {
    line-height: 1.4;
  }

  body.report-page .financial-sankey-metrics {
    gap: 8px;
    margin: 4px 0 8px;
  }

  body.report-page .financial-sankey-metric {
    padding: 8px;
  }

  body.report-page .financial-data-section {
    padding: 12px;
    border-radius: 12px;
  }

  body.report-page .financial-data-hero h3 {
    font-size: 1.2rem;
  }

  body.report-page .financial-data-table tbody td:first-child,
  body.report-page .financial-data-table tbody th:first-child {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
  }

  body.report-page table.dataframe.metric-level-competitors-table th:first-child,
  body.report-page table.dataframe.metric-level-competitors-table td:first-child {
    min-width: 140px;
  }

  body.report-page table.dataframe.metric-level-competitors-table th:nth-child(2),
  body.report-page table.dataframe.metric-level-competitors-table td:nth-child(2) {
    left: 140px;
    min-width: 190px;
  }

  body.report-page .chart-section {
    gap: 12px;
    margin-bottom: 22px;
  }

  body.report-page .chart-header {
    align-items: stretch;
    gap: 10px;
  }

  body.report-page .chart-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  body.report-page .chart-tab {
    flex: 0 0 auto;
    min-height: 34px;
  }

  body.report-page .chart-panel {
    border-radius: 12px;
    padding: 8px;
  }

  body.report-page #chartSectionSingle .chart-panel,
  body.report-page #chartSectionComparison .chart-panel {
    min-height: 340px;
    height: 340px;
  }

  body.report-page .chart-panel.chart-panel-comparison {
    min-height: 340px;
  }

  body.report-page .trio-controls {
    flex-direction: column;
    align-items: stretch;
  }

  body.report-page .trio-header {
    align-items: stretch;
    gap: 12px;
  }

  body.report-page .trio-grid {
    gap: 12px;
  }

  body.report-page .trio-card {
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
  }

  body.report-page .trio-card h3 {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  body.report-page .trio-card .muted {
    overflow-wrap: anywhere;
  }

  body.report-page .trio-table-wrap {
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px 4px;
  }

  body.report-page .trio-card table {
    min-width: 520px;
    font-size: 13px;
  }

  body.report-page .trio-card th,
  body.report-page .trio-card td {
    padding: 5px 6px;
    line-height: 1.25;
    white-space: nowrap;
  }

  body.report-page .trio-card th:first-child,
  body.report-page .trio-card td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 120px;
  }

  body.report-page .memo-content {
    padding: 14px;
    border-radius: 14px;
  }

  body.report-page .configuration-actions {
    align-items: stretch;
  }

  body.report-page .configuration-actions .meta-list,
  body.report-page .configuration-run-spinner-row {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .modal {
    align-items: flex-start;
    padding: 16px 0;
    overflow-y: auto;
  }

  .modal__content {
    width: calc(100vw - 24px);
    max-height: none;
    padding: 18px;
    border-radius: 14px;
  }

  .financial-disclaimer-footer {
    width: min(100% - 24px, 100%);
    margin-top: 16px;
    padding: 12px 0 0;
    font-size: 12px;
  }
}
