.report-body {
  --wash-a: rgba(56, 189, 248, 0.22);
  --wash-b: rgba(37, 99, 235, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(720px 380px at 88% -8%, var(--wash-a), transparent 58%),
    radial-gradient(640px 420px at 6% 12%, var(--wash-b), transparent 52%),
    var(--bg);
}

.report-body > .header,
.report-body > .footer {
  flex-shrink: 0;
}

.report-body > .report {
  flex: 1 0 auto;
}

.report {
  padding: 40px 0 72px;
}

.report-doc,
.report-missing {
  max-width: 920px;
}

body.is-ready {
  --max: 1280px;
}

body.is-ready .report > .wrap {
  width: min(var(--max), calc(100% - 28px));
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 32px;
  align-items: start;
}

.report-layout .report-doc {
  max-width: none;
}

.report-hero,
.report-kpis,
.report-section {
  scroll-margin-top: calc(var(--header-h) + var(--report-toc-h, 0px) + 18px);
}

.report-toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 16px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.report-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 10px;
}

.report-toc-title {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.report-view-switch button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.report-view-switch button:hover {
  color: var(--text);
}

.report-view-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

body.report-view-tabs {
  --report-toc-h: 54px;
  overflow-x: hidden;
}

body.report-view-tabs .report {
  padding-top: 0;
}

body.report-view-tabs .report-layout {
  grid-template-columns: 1fr;
  padding-top: 0;
  row-gap: 0;
}

body.report-view-tabs .report-doc {
  padding-top: 28px;
}

body.is-ready:has(.report-toc.is-bar) .header {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

body.report-view-tabs .report-note {
  display: none;
}

.report-toc-bar {
  display: contents;
}

.report-toc.is-bar {
  --report-toc-h: 54px;
  order: -1;
  position: sticky;
  top: var(--header-h);
  z-index: 9;
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.report-toc.is-bar .report-toc-bar {
  display: flex;
  align-items: stretch;
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.report-toc.is-bar .report-toc-head {
  order: 2;
  flex-shrink: 0;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  display: flex;
  align-items: center;
}

.report-toc.is-bar .report-toc-title {
  display: none;
}

.report-toc.is-bar .report-toc-track {
  order: 1;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.report-toc-arrow {
  display: none;
}

.report-toc.is-bar .report-toc-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, #fff 88%, transparent);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.report-toc.is-bar .report-toc-arrow.is-start {
  left: 0;
}

.report-toc.is-bar .report-toc-arrow.is-end {
  right: 0;
}

.report-toc.is-bar .report-toc-arrow.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.report-toc.is-bar .report-toc-arrow:hover {
  color: var(--blue-deep);
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background: #fff;
}

.report-toc.is-bar .report-toc-scroller {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 100%);
  transition: -webkit-mask-image 0.25s ease, mask-image 0.25s ease;
}

.report-toc.is-bar .report-toc-scroller::-webkit-scrollbar {
  display: none;
}

.report-toc.is-bar .report-toc-scroller.is-fade-end {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
}

.report-toc.is-bar .report-toc-scroller.is-fade-start {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 100%);
}

.report-toc.is-bar .report-toc-scroller.is-fade-start.is-fade-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.report-toc.is-bar ol {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  gap: 8px;
  padding: 0;
  overflow: visible;
}

.report-toc.is-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.report-toc.is-bar li:first-child a {
  padding-left: 0;
}

.report-toc.is-bar a svg {
  flex: 0 0 15px;
  opacity: 0.72;
}

.report-toc.is-bar a.is-on svg {
  opacity: 1;
}

.report-toc.is-bar a:hover {
  color: var(--text);
  background: transparent;
}

.report-toc.is-bar a.is-on {
  color: var(--text);
  background: transparent;
  border-left-color: transparent;
  border-bottom-color: var(--text);
}

.report-toc-scroller {
  min-width: 0;
}

.report-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.report-toc a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.report-toc a svg {
  flex: 0 0 15px;
  opacity: 0.7;
}

.report-toc a.is-on svg {
  opacity: 1;
}

.report-toc a.is-on {
  color: var(--blue-deep);
  background: color-mix(in srgb, var(--blue) 8%, white);
  border-left-color: var(--blue);
}

.report-hero h1,
.report-missing h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.report-hero-top {
  display: grid;
  gap: 12px;
}

.report-hero.has-logo .report-hero-top {
  grid-template-columns: minmax(148px, 210px) minmax(0, 1fr);
  align-items: stretch;
}

.report-hero-logo,
.report-hero-copy {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.report-hero-logo {
  display: grid;
  place-items: center;
  padding: 28px 32px;
}

.report-brand-logo {
  display: block;
  width: auto;
  max-width: 160px;
  height: 64px;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.report-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 22px 20px;
}

.report-hero-copy .eyebrow {
  margin-bottom: 8px;
  align-self: flex-start;
}

.report-hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.report-hero-copy .lead {
  margin: 8px 0 0;
}

.report-hero .report-meta {
  margin: 12px 0 0;
  padding: 0;
}

.report-hero .report-kpis {
  margin: 18px 0 0;
}

.report-visual {
  margin: 22px calc(50% - 50vw) -8px;
  width: 100vw;
  max-width: 100vw;
  height: min(38vw, 380px);
  overflow: hidden;
  pointer-events: none;
  background: #f8fafc;
}

.report-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.report-review-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.report-review-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.report-review-card strong {
  font-size: 16px;
}

.report-review-card .pill {
  justify-self: start;
}

.report-review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-review-compare th:nth-child(2),
.report-review-compare td:nth-child(2),
.report-review-compare th:nth-child(3),
.report-review-compare td:nth-child(3) {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .report-review-sources {
    grid-template-columns: 1fr;
  }
}

.report-sov {
  margin: 22px 0 4px;
}

.report-sov-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.report-sov-kpis.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-sov-kpis .report-kpi.has-bar,
.report-kpis .report-kpi.has-bar {
  padding-bottom: 16px;
}

.report-sov-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, #fff);
  overflow: hidden;
}

.report-sov-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-sov-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
}

.report-sov-table-card {
  min-width: 0;
  padding: 16px 16px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.report-sov-table-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.report-sov-table-card .report-table-wrap {
  margin: 0 -4px;
}

.report-sov-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.report-sov-num {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--panel-2, #f8fafc);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.report-sov-table tr.is-gold .report-sov-num {
  background: #fef3c7;
  color: #92400e;
}

.report-sov-table tr.is-silver .report-sov-num {
  background: #e2e8f0;
  color: #334155;
}

.report-sov-table tr.is-bronze .report-sov-num {
  background: #ffedd5;
  color: #9a3412;
}

.report-sov-you {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 14%, #fff);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}

.report-sov-table tr.is-you td {
  background: color-mix(in srgb, var(--blue) 6%, #fff);
}

.report-sov-table tr.is-rest td {
  color: var(--muted);
}

.report-sov-share {
  display: grid;
  grid-template-columns: minmax(52px, 1fr) auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.report-sov-share .report-sov-bar {
  margin-top: 0;
}

.report-cite-tools {
  display: grid;
  gap: 10px;
  margin: 14px 0 12px;
}

.report-cite-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.report-cite-q {
  width: min(360px, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.report-cite-drop {
  position: relative;
}

.report-cite-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  max-width: min(360px, 100%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.report-cite-drop-btn[aria-expanded="true"],
.report-cite-drop-btn.is-on {
  border-color: var(--blue);
  color: var(--blue);
}

.report-cite-drop-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-cite-drop-btn .ico {
  margin-left: auto;
  flex: 0 0 auto;
}

.report-cite-drop-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 2px;
  width: min(320px, 92vw);
  max-height: 340px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.report-cite-drop-menu[hidden] {
  display: none;
}

.report-cite-drop-q {
  width: 100%;
  height: 36px;
  margin-bottom: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.report-cite-drop-kicker {
  margin: 8px 4px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-cite-drop-opt {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.report-cite-drop-opt:hover,
.report-cite-drop-opt:has(input:checked) {
  background: color-mix(in srgb, var(--blue) 8%, #fff);
}

.report-cite-drop-opt input {
  margin: 0;
  accent-color: var(--blue);
}

.report-cite-drop-opt span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-cite-drop-opt small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.report-cite-drop-clear {
  margin-top: 6px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.report-cite-drop-clear[hidden] {
  display: none;
}

.report-cite-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-cite-filter {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.report-cite-filter.is-on {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, #fff);
  color: var(--blue);
}

.report-cite-board {
  display: grid;
  gap: 10px;
}

.report-cite-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.report-cite-card[hidden] {
  display: none;
}

.report-cite-letter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel-2, #f8fafc);
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.report-cite-title {
  display: inline-block;
  color: var(--ink, var(--text));
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

a.report-cite-title:hover {
  color: var(--blue);
}

.report-cite-url {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.report-cite-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.report-cite-prompts {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.report-cite-prompts p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.report-cite-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.report-check-preview {
  margin: 18px 0 0;
}

.report-check-preview h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.report-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-check-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  color: var(--ink, var(--text));
  text-decoration: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-check-card strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.report-check-card .pill {
  justify-self: start;
}

.report-check-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.report-check-card:hover,
.report-check-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}

.report-check-card.is-more {
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--panel-2, #f8fafc);
}

.report-check-card.is-more p {
  color: var(--muted);
}

body.theme-navy {
  --bg: #f4f7fb;
  --panel-2: #e8eef7;
  --line: #cdd8e8;
  --blue: #1e3a8a;
  --blue-deep: #1e3a8a;
  --sky: #60a5fa;
  --indigo: #1d4ed8;
  --grad: linear-gradient(135deg, #1e3a8a 0%, #60a5fa 52%, #1d4ed8 100%);
  --grad-btn: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  --wash-a: rgba(37, 99, 235, 0.18);
  --wash-b: rgba(30, 58, 138, 0.12);
}

body.theme-blue {
  --bg: #f5f8fc;
  --panel-2: #eaf2fb;
  --line: #d3e2f3;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --sky: #38bdf8;
  --indigo: #4f46e5;
  --grad: linear-gradient(135deg, #2563eb 0%, #38bdf8 52%, #6366f1 100%);
  --grad-btn: linear-gradient(135deg, #2563eb, #4f46e5);
  --wash-a: rgba(56, 189, 248, 0.22);
  --wash-b: rgba(37, 99, 235, 0.12);
}

body.theme-teal {
  --bg: #f3faf8;
  --panel-2: #e4f4f0;
  --line: #cfe3de;
  --blue: #0f766e;
  --blue-deep: #115e59;
  --sky: #2dd4bf;
  --indigo: #0d9488;
  --grad: linear-gradient(135deg, #0f766e 0%, #5eead4 52%, #0d9488 100%);
  --grad-btn: linear-gradient(135deg, #0f766e, #0d9488);
  --wash-a: rgba(45, 212, 191, 0.22);
  --wash-b: rgba(15, 118, 110, 0.12);
}

body.theme-green {
  --bg: #f5faf4;
  --panel-2: #e8f4e6;
  --line: #d2e4ce;
  --blue: #15803d;
  --blue-deep: #166534;
  --sky: #4ade80;
  --indigo: #16a34a;
  --grad: linear-gradient(135deg, #15803d 0%, #86efac 52%, #16a34a 100%);
  --grad-btn: linear-gradient(135deg, #15803d, #16a34a);
  --wash-a: rgba(74, 222, 128, 0.2);
  --wash-b: rgba(21, 128, 61, 0.12);
}

body.theme-purple {
  --bg: #f7f5fb;
  --panel-2: #eee8f7;
  --line: #ddd4ec;
  --blue: #7c3aed;
  --blue-deep: #6d28d9;
  --sky: #c4b5fd;
  --indigo: #6d28d9;
  --grad: linear-gradient(135deg, #6d28d9 0%, #c4b5fd 52%, #7c3aed 100%);
  --grad-btn: linear-gradient(135deg, #6d28d9, #7c3aed);
  --wash-a: rgba(196, 181, 253, 0.28);
  --wash-b: rgba(109, 40, 217, 0.12);
}

body.theme-burgundy {
  --bg: #faf5f6;
  --panel-2: #f4e8eb;
  --line: #e6d3d8;
  --blue: #9f1239;
  --blue-deep: #881337;
  --sky: #fb7185;
  --indigo: #be123c;
  --grad: linear-gradient(135deg, #9f1239 0%, #fb7185 52%, #be123c 100%);
  --grad-btn: linear-gradient(135deg, #9f1239, #be123c);
  --wash-a: rgba(251, 113, 133, 0.2);
  --wash-b: rgba(159, 18, 57, 0.1);
}

body.theme-orange {
  --bg: #fbf6f2;
  --panel-2: #f6ece4;
  --line: #ead9cc;
  --blue: #c2410c;
  --blue-deep: #9a3412;
  --sky: #fb923c;
  --indigo: #ea580c;
  --grad: linear-gradient(135deg, #c2410c 0%, #fdba74 52%, #ea580c 100%);
  --grad-btn: linear-gradient(135deg, #c2410c, #ea580c);
  --wash-a: rgba(251, 146, 60, 0.22);
  --wash-b: rgba(194, 65, 12, 0.1);
}

body.theme-warm-gray {
  --bg: #f6f5f3;
  --panel-2: #eceae6;
  --line: #ddd9d2;
  --blue: #57534e;
  --blue-deep: #44403c;
  --sky: #a8a29e;
  --indigo: #78716c;
  --grad: linear-gradient(135deg, #57534e 0%, #d6d3d1 52%, #78716c 100%);
  --grad-btn: linear-gradient(135deg, #57534e, #78716c);
  --wash-a: rgba(168, 162, 158, 0.22);
  --wash-b: rgba(87, 83, 78, 0.1);
}

.report-hero h1 em,
.report-missing h1 em,
.report-section h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.report-hero .lead,
.report-missing .lead,
.report-section > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.report-hero-copy .lead {
  margin-top: 8px;
}

.report-hero-copy .lead + .lead {
  margin-top: 6px;
}

.report-prose {
  margin: 14px 0 0;
}

.report-prose p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.report-prose p + p {
  margin-top: 10px;
}

.report-prose p.is-indent {
  padding-left: 1.4em;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.report-meta li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
}

.report-kpis.is-thin {
  grid-template-columns: minmax(180px, 280px);
}

.report-kpi-primary b {
  font-size: 30px;
}

.report-dindex-empty {
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 70%, white);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.report-retry {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.report-retry.is-busy {
  border-color: color-mix(in srgb, #2563eb 18%, var(--line));
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.05)) border-box;
}

.report-retry-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.report-retry-spin {
  display: none;
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #eff6ff;
}

.report-retry.is-busy .report-retry-spin {
  display: block;
}

.report-retry-spin::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 55%, #2563eb 78%, #7c3aed 100%);
  animation: report-spin 1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.report-retry-spin::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #2563eb;
}

.report-retry-copy {
  min-width: 0;
  flex: 1;
}

.report-retry-status {
  margin: 0;
  font-weight: 600;
}

.report-retry-hint {
  display: none;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-retry.is-busy .report-retry-hint {
  display: block;
}

.report-retry-meter {
  display: none;
  height: 6px;
  margin: 14px 0 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 80%, white);
  overflow: hidden;
}

.report-retry.is-busy .report-retry-meter {
  display: block;
}

.report-retry-meter > span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  animation: report-retry-bar 1.4s ease-in-out infinite;
}

.report-retry-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-retry-steps:not(:empty) {
  margin-top: 12px;
}

.report-retry-steps li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.report-retry-steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.report-retry-steps small {
  color: var(--muted);
  font-size: 12px;
}

.report-retry-steps li.is-running strong {
  color: var(--blue);
}

@keyframes report-retry-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(280%);
  }
}

.report-kpi {
  padding: 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.report-kpi small,
.report-kpi span {
  display: block;
  color: var(--muted);
}

.report-kpi small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-kpi b {
  display: block;
  margin: 6px 0 4px;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.report-kpi span {
  font-size: 12px;
}

.report-section {
  margin-top: 40px;
}

.report-section h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.report-section h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.report-section h3:first-of-type {
  margin-top: 12px;
}

.report-brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.report-brand-cloud li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.report-brand-cloud strong {
  font-weight: 600;
}

.report-brand-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.report-table-wrap {
  margin-top: 16px;
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.report-pages-table {
  table-layout: fixed;
}

.report-pages-table th:last-child,
.report-pages-table td:last-child {
  width: 42%;
}

.report-page-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-page-excerpt.is-open {
  display: block;
  -webkit-line-clamp: unset;
}

.report-page-excerpt.is-clamped {
  cursor: pointer;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-table th,
.report-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.report-table th,
.report-table thead tr:first-child th {
  position: static;
  top: auto;
  z-index: auto;
  height: auto;
  box-shadow: none;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.report-table code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

@media (max-width: 820px) {
  .report-body > .report,
  .report-layout,
  .report-layout .report-doc,
  #patikrinimai {
    min-width: 0;
    max-width: 100%;
  }

  .report-body > .report {
    flex-shrink: 1;
  }

  #patikrinimai .report-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #patikrinimai .report-table {
    width: max-content;
    min-width: 640px;
  }

  #patikrinimai .report-table th,
  #patikrinimai .report-table td {
    white-space: nowrap;
  }
}

.report-comp-tools {
  margin: 14px 0 0;
}

.report-comp-wrap {
  overflow: auto;
}

.report-comp-table {
  min-width: 860px;
}

.report-comp-table th:nth-child(n + 3),
.report-comp-table td:nth-child(n + 3) {
  white-space: nowrap;
}

.report-comp-row {
  cursor: pointer;
}

.report-comp-row[data-comp-empty="1"] {
  cursor: default;
}

.report-comp-row:focus-visible td {
  outline: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--blue) 35%, transparent);
}

.report-comp-row[aria-expanded="true"] td {
  background: #f4f8ff;
  border-bottom-color: transparent;
}

.report-comp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.report-comp-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #eef3f9;
  color: var(--muted);
  flex: 0 0 auto;
}

.report-comp-chevron svg {
  transition: transform 0.2s ease;
}

.report-comp-chevron.is-ghost {
  background: transparent;
}

.report-comp-row[aria-expanded="true"] .report-comp-chevron {
  background: color-mix(in srgb, var(--blue) 12%, white);
  color: var(--blue);
}

.report-comp-row[aria-expanded="true"] .report-comp-chevron svg {
  transform: rotate(90deg);
}

.report-comp-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-variant-numeric: tabular-nums;
}

.report-comp-stat b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.report-comp-stat small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.report-comp-stat .is-above,
.report-comp-stat small .is-above {
  color: #dc2626;
}

.report-comp-stat .is-below,
.report-comp-stat small .is-below {
  color: #16a34a;
}

.report-comp-sub td {
  padding-top: 11px;
  padding-bottom: 11px;
  background: #f6f9fd;
  font-size: 13px;
  border-bottom-color: #e4edf6;
}

.report-comp-sub td:first-child {
  position: relative;
}

.report-comp-rail {
  display: block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-left: 2px solid #c7d7ea;
  border-bottom: 2px solid #c7d7ea;
  border-bottom-left-radius: 8px;
}

.report-comp-prompt {
  display: block;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.report-comp-bots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.report-comp-botrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-comp-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eef1f5;
  flex: 0 0 auto;
}

.report-comp-bot.is-gemini {
  background: #e8f1ff;
}

.report-comp-bot.is-chatgpt {
  background: #ecfdf3;
}

.report-comp-bot img {
  width: 12px;
  height: 12px;
}

.report-comp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8eef7;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.report-comp-chip.is-empty {
  background: #eef1f5;
  color: var(--muted);
  font-weight: 600;
}

.report-comp-chip.is-cite {
  background: #e8f5ef;
  color: #0d6b4a;
}

.report-comp-cite {
  display: inline-flex;
  text-decoration: none;
}

.report-comp-cite:hover .report-comp-chip,
.report-comp-cite:focus-visible .report-comp-chip {
  background: #d8eee4;
}

.report-comp-rel {
  display: inline-block;
  max-width: 220px;
  white-space: normal;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.report-comp-rel.is-above {
  color: #dc2626;
}

.report-comp-rel.is-below {
  color: #16a34a;
}

.report-comp-rel.is-miss,
.report-comp-rel.is-tie {
  color: var(--muted);
}

.report-comp-sub[data-comp-last="1"] td {
  box-shadow: inset 0 -1px 0 var(--line);
}

.report-comp-table tbody tr.report-comp-sub:hover td {
  background: #eef4fb;
}

.report-comp-empty td {
  color: var(--muted);
}

.report-stack,
.report-tasks {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}

.report-box-list,
.report-vs-insights {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.report-box-list li,
.report-vs-insights li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.report-card,
.report-task {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.report-card-head,
.report-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-prompt,
.report-task-head strong {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.report-why,
.report-card p,
.report-task p,
.report-answer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.report-answer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.report-answer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-answer-meta small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.report-answer-meta strong {
  font-size: 13px;
  letter-spacing: -0.02em;
}

.report-research-legend {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.report-answer-grid {
  display: grid;
  gap: 0;
}

.report-answer-grid .report-answer {
  padding: 12px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

@media (min-width: 760px) {
  .report-answer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .report-answer-grid .report-answer {
    margin-top: 0;
  }
}

.report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-ok {
  background: #dcfce7;
  color: #166534;
}

.pill-bad,
.pill-fail {
  background: #fee2e2;
  color: #991b1b;
}

.pill-warn {
  background: #ffedd5;
  color: #9a3412;
}

.pill-pass {
  background: #dcfce7;
  color: #166534;
}

.pill-skipped {
  background: #e2e8f0;
  color: #475569;
}

.pill-high {
  background: #fee2e2;
  color: #991b1b;
}

.pill-medium {
  background: #ffedd5;
  color: #9a3412;
}

.pill-low {
  background: #e2e8f0;
  color: #475569;
}

.report-tasks {
  list-style: none;
}

.report-task {
  position: relative;
  padding-left: 52px;
}

.report-task-ico {
  position: absolute;
  top: 18px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.report-task-ico svg {
  display: block;
}

.report-tasks.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.report-tasks.is-grid .report-task-head {
  flex-direction: column;
  align-items: flex-start;
}

.report-tasks.is-grid .report-task-head strong {
  overflow-wrap: anywhere;
}

.report-task-acc-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 0 12px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.report-task-acc-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

#report-task-acc-modal:not([hidden]),
#report-task-acc-modal.is-open {
  display: grid;
  z-index: 40;
}

.report-task-acc-card {
  width: min(640px, 100%);
}

.report-task-acc-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 36px 0 0;
}

.report-task-acc-head .report-task-ico {
  position: static;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.report-task-acc-head .report-task-ico svg {
  width: 16px;
  height: 16px;
}

.report-task-acc-card h2,
.report-task-acc-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.report-task-acc-kicker {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-task-acc-card > p,
#report-task-acc-body > p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.report-task-acc-list {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.report-task-acc-list li + li {
  margin-top: 8px;
}

.report-task-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.report-task-select {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.report-task-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.report-task-select-btn .is-placeholder {
  color: var(--muted);
}

.report-task-select.is-open .report-task-select-btn {
  border-color: #cbd5e1;
}

.report-task-select-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.report-task-select.is-open .report-task-select-menu {
  display: grid;
}

.report-task-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.report-task-select-option:hover {
  background: #f8fafc;
}

.report-task-select-option input {
  margin: 0;
  accent-color: #334155;
}

.report-task-opt-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.report-task-select-option.is-high {
  color: #991b1b;
}

.report-task-select-option.is-high .report-task-opt-ico {
  background: #fee2e2;
  color: #991b1b;
}

.report-task-select-option.is-high input {
  accent-color: #b91c1c;
}

.report-task-select-option.is-medium {
  color: #9a3412;
}

.report-task-select-option.is-medium .report-task-opt-ico {
  background: #ffedd5;
  color: #9a3412;
}

.report-task-select-option.is-medium input {
  accent-color: #c2410c;
}

.report-task-select-option.is-low {
  color: #475569;
}

.report-task-select-option.is-low .report-task-opt-ico {
  background: #e2e8f0;
  color: #475569;
}

.report-task-empty {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.report-links {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.report-links li {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-links span {
  flex-shrink: 0;
  min-width: 68px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.report-reddit-note {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, #ff4500 20%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, #ff4500 5%, #fff);
}

.report-reddit-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 16px;
}

.report-reddit-logo {
  display: block;
  margin-top: 2px;
}

.report-reddit-head strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.report-reddit-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-reddit-open {
  display: grid;
  align-self: center;
  justify-items: end;
  gap: 2px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.report-reddit-open small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.report-reddit-open:hover {
  text-decoration: underline;
}

.report-reddit-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-reddit-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 12px 12px 12px;
  border: 1px solid color-mix(in srgb, #ff4500 16%, var(--line));
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-reddit-card:hover {
  border-color: color-mix(in srgb, #ff4500 40%, var(--line));
  box-shadow: 0 10px 24px rgba(255, 69, 0, 0.08);
}

.report-reddit-card-ico {
  align-self: start;
  margin-top: 2px;
}

.report-reddit-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-reddit-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.report-reddit-card-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-reddit-card-go {
  color: #ff4500;
}

.report-reddit-card.is-static {
  pointer-events: none;
}

@media (max-width: 860px) {
  .report-reddit-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .report-reddit-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .report-reddit-open {
    grid-column: 2;
    justify-self: start;
  }
}

.report-watch-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 6%, #fff);
}

.report-watch-cta strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.report-watch-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-watch-cta .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .report-watch-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.report-note {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.report-sample-banner {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, #e2e8f0);
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 8%, #fff);
}

.report-sample-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.report-chat.is-readonly .report-chat-form {
  opacity: 0.72;
}

.report-chat.is-readonly .report-chat-form textarea {
  cursor: not-allowed;
}

.report-chat.is-readonly .report-chat-form:focus-within {
  border-color: #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

.report-missing {
  padding: 24px 0 40px;
}

@media (max-width: 980px) {
  .report-hero.has-logo .report-hero-top {
    grid-template-columns: 1fr;
  }

  .report-hero-logo {
    justify-self: start;
    width: fit-content;
  }

  .report-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.is-ready {
    --report-toc-h: 54px;
    overflow-x: hidden;
  }

  body.is-ready .report {
    padding-top: 0;
  }

  body.report-view-sheet .report-doc {
    padding-top: 28px;
  }

  .report-visual {
    height: 240px;
  }

  .report-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-tasks.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .report-sov-kpis,
  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-cite-drop,
  .report-cite-drop-btn {
    width: 100%;
  }

  .report-sov-split {
    grid-template-columns: 1fr;
  }

  .report-check-grid {
    grid-template-columns: 1fr;
  }

  .report-kpis.is-thin {
    grid-template-columns: 1fr;
  }

  .report-card-head,
  .report-task-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .report-tasks.is-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 14mm 12mm;
  }

  body.report-chat-open {
    padding-right: 0;
  }

  html,
  body.report-body {
    display: block;
    min-height: 0;
    background: #fff;
  }

  .report-sov-split,
  .report-sov-kpis {
    grid-template-columns: 1fr;
  }

  .no-print,
  .header-nav,
  .footer,
  .report-shot-modal,
  .report-shot-cta,
  .report-chat {
    display: none !important;
  }

  .report-comp-sub {
    display: table-row !important;
  }

  .report-visual {
    width: 100%;
    max-width: none;
    height: 200px;
    margin: 16px 0 0;
    border-radius: 12px;
  }

  .header {
    position: static;
    border: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .report {
    padding: 0 0 12px;
  }

  .report-shot-print {
    display: block;
    margin-top: 12px;
    padding-left: 18px;
  }

  .report-kpi,
  .report-card,
  .report-task,
  .report-check-card,
  .report-vs-insights li,
  .report-box-list li,
  .report-table-wrap,
  .report-meta li {
    box-shadow: none;
    break-inside: avoid;
  }

  .report-section {
    break-inside: avoid;
  }

  .pill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .report-task-filters,
  .report-task-empty,
  .report-task-acc-btn,
  #report-task-acc-modal {
    display: none !important;
  }

  .report-tasks.is-grid .report-task {
    display: block !important;
  }
}

.admin-page-head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
}

body.admin-shell {
  flex-direction: row;
  align-items: stretch;
}

body.admin-shell > .admin-sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 232px;
  width: 232px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 14px;
  overflow: auto;
  border-right: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(16px);
  z-index: 12;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  text-decoration: none;
}

.admin-sidebar-brand .brand-logo {
  height: 28px;
  width: auto;
}

.admin-mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 0 10px;
}

.admin-mode-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-mode-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.admin-mode-switch button {
  flex: 1;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-mode-switch button.is-on {
  background: var(--grad-btn);
  color: #fff;
}

.admin-mode-switch button.is-test {
  background: #b45309;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.admin-sidebar-nav a .ico {
  flex-shrink: 0;
}

.admin-sidebar-nav a:hover {
  background: color-mix(in srgb, var(--blue) 7%, white);
  color: var(--blue-deep);
}

.admin-sidebar-nav a.is-on {
  background: color-mix(in srgb, var(--blue) 10%, white);
  color: var(--blue-deep);
}

body.admin-shell > .admin-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: #fff;
}

.admin-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink, var(--text));
}

.admin-topbar-title .ico {
  flex-shrink: 0;
  color: var(--blue-deep);
}

.admin-topbar .btn,
.admin-topbar .admin-logout {
  margin-left: auto;
}

.admin-topbar .btn ~ .admin-logout {
  margin-left: 8px;
}

.admin-logout {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.admin-logout:hover {
  color: var(--text);
}

body.admin-shell .admin-page,
body.admin-shell .report {
  padding: 0;
}

body.admin-shell .admin-page > .wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 20px;
  box-sizing: border-box;
}

body.admin-shell .admin-page > .wrap > :first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  body.admin-shell > .admin-sidebar {
    flex-basis: 72px;
    width: 72px;
    padding: 16px 8px;
  }

  .admin-sidebar-brand {
    justify-content: center;
    padding: 0;
  }

  .admin-mode {
    padding: 0 2px;
  }

  .admin-mode-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .admin-mode-switch {
    flex-direction: column;
    border-radius: 12px;
  }

  .admin-mode-switch button {
    font-size: 10px;
    border-radius: 9px;
  }

  .admin-sidebar-nav a {
    justify-content: center;
    padding: 0;
  }

  .admin-sidebar-nav a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media print {
  body.admin-shell > .admin-sidebar {
    display: none !important;
  }

  body.admin-shell > .admin-main {
    margin: 0;
  }
}

.admin-form-card {
  width: min(640px, 100%);
  margin: 28px 0 0;
}

.admin-form-card h2 {
  margin: 0;
  font-size: 28px;
}

.admin-form-card h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-page .report-table-wrap {
  overflow: visible;
}

.admin-table td small {
  color: var(--muted);
}

.admin-table th,
.admin-table td {
  vertical-align: middle;
}

.admin-table th:last-child,
.admin-table td.admin-actions {
  width: 1%;
  min-width: 0;
  padding: 12px 10px;
  text-align: right;
  height: auto;
  white-space: nowrap;
}

.admin-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-actions .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-menu {
  position: relative;
  z-index: 1;
  align-content: space-evenly;
}

.admin-menu.is-open {
  z-index: 40;
}

.admin-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 40px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.admin-menu-btn:hover,
.admin-menu.is-open .admin-menu-btn {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 6%, white);
  color: var(--blue-deep);
}

.admin-menu-chevron {
  transition: transform 0.16s ease;
}

.admin-menu.is-open .admin-menu-chevron {
  transform: rotate(180deg);
}

.admin-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.admin-menu-list[hidden] {
  display: none;
}

.admin-menu-list a,
.admin-menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-menu-list a:hover,
.admin-menu-list button:hover {
  background: color-mix(in srgb, var(--blue) 8%, white);
}

.admin-menu-list .ico {
  flex-shrink: 0;
  color: var(--muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.admin-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.admin-tabs a.is-on {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, white);
  color: var(--blue-deep);
}

.admin-overview {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 0;
}

.admin-overview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink, var(--text));
}

.admin-overview-head .ico {
  flex-shrink: 0;
  color: var(--blue-deep);
}

.admin-overview .admin-stats {
  margin: 0;
}

.admin-overview .report-kpis {
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  justify-content: start;
}

.admin-revenue-product {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.admin-cost-kpi small {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.admin-cost-kpi .admin-cost-spent {
  color: var(--ink, var(--text));
  font-weight: 600;
  font-size: 13px;
}

.admin-cost-kpi.is-low,
.admin-warn-kpi {
  position: relative;
  border-color: color-mix(in srgb, #dc2626 38%, var(--line));
  background: color-mix(in srgb, #dc2626 7%, white);
  cursor: help;
}

.admin-cost-kpi.is-low b,
.admin-warn-kpi b {
  color: #b91c1c;
}

.report-kpi .admin-cost-tip {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 8px);
  z-index: 6;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, #dc2626 22%, var(--line));
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  color: #991b1b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.admin-cost-kpi.is-low:hover .admin-cost-tip,
.admin-cost-kpi.is-low:focus-within .admin-cost-tip,
.admin-warn-kpi:hover .admin-cost-tip,
.admin-warn-kpi:focus-within .admin-cost-tip {
  display: block;
}

.admin-kpi-when b {
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-tip-kpi {
  position: relative;
  cursor: help;
}

.admin-tip-kpi small {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-tip-mark {
  flex-shrink: 0;
  color: var(--muted);
}

.admin-tip-box {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 8px);
  z-index: 8;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  color: var(--ink, var(--text));
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.admin-tip-kpi:hover .admin-tip-box,
.admin-tip-kpi:focus-within .admin-tip-box {
  display: block;
}

.admin-tip-box p {
  margin: 0 0 6px;
  color: var(--ink, var(--text));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.admin-tip-box p + ul {
  margin-top: 0;
}

.admin-tip-box p:not(:first-child) {
  margin-top: 10px;
}

.admin-tip-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-tip-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.admin-overview-head-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue-deep);
  cursor: pointer;
}

.admin-overview-head-action:hover {
  background: color-mix(in srgb, var(--blue) 8%, white);
}

.admin-credit-card {
  max-width: 560px;
  max-height: min(88vh, 860px);
  overflow: auto;
}

.admin-credit-fields {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.admin-credit-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-credit-log {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-credit-log h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.admin-credit-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.admin-credit-log-list > li strong {
  display: block;
}

.admin-credit-log-list > li small {
  color: var(--muted);
}

.admin-credit-log-list ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
}

.admin-credit-log-list ul span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-stats {
  margin: 0 0 22px;
}

.admin-stats .report-kpi b {
  font-size: 24px;
  word-break: break-word;
}

.admin-confirm-card {
  max-width: 440px;
}

.admin-user-edit-card {
  max-width: 520px;
}

.admin-scan-settings-card {
  max-width: 560px;
  max-height: min(88vh, 860px);
  overflow: auto;
}

.admin-scan-block {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
}

.admin-scan-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.admin-scan-block .admin-backlinks-facts {
  margin: 0 0 12px;
}

.admin-scan-block .field {
  margin-bottom: 0;
}

.admin-scan-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-backlinks-facts-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.admin-cost-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-cost-link:hover {
  color: var(--blue-deep);
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.admin-icon-btn:hover {
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  background: color-mix(in srgb, var(--blue) 6%, white);
  color: var(--blue-deep);
}

.admin-icon-btn.is-danger:hover,
.admin-icon-btn.is-danger:focus-visible {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b42318;
}

.admin-icon-btn .ico {
  display: block;
  flex-shrink: 0;
}

.admin-backlinks-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}

.admin-backlinks-facts div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.admin-backlinks-facts small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-backlinks-facts b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.admin-backlinks-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 560px) {
  .admin-backlinks-facts,
  .admin-backlinks-facts-3 {
    grid-template-columns: 1fr;
  }
}

.admin-ai-cost-card {
  max-width: 560px;
}

.admin-ai-cost-user {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-ai-cost-body {
  max-height: min(60vh, 480px);
  overflow: auto;
  margin: 12px 0 16px;
}

.admin-ai-cost-empty,
.admin-ai-cost-loading,
.admin-ai-cost-error {
  margin: 0;
  color: var(--muted);
}

.admin-ai-cost-error {
  color: #b42318;
}

.admin-ai-cost-group {
  margin: 0 0 16px;
}

.admin-ai-cost-group header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-ai-cost-group header strong {
  font-size: 15px;
}

.admin-ai-cost-group header span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
}

.admin-ai-cost-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-ai-cost-group li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.admin-ai-cost-group li small {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.admin-ai-cost-group li b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.admin-ai-cost-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.admin-ai-cost-total b {
  font-variant-numeric: tabular-nums;
}

.admin-user-edit-card .field,
.admin-scan-settings-card .field {
  margin-bottom: 14px;
}

.admin-menu-list button.is-danger {
  color: #b42318;
}

.admin-menu-list button.is-danger:hover {
  background: #fef2f2;
}

.admin-menu-list button.is-danger .ico {
  color: #b42318;
}

.btn.btn-danger {
  background: #dc2626;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.22);
}

.btn-danger:hover {
  filter: brightness(1.05);
}

.admin-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.admin-toolbar,
.admin-code-form,
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 16px;
}

.admin-toolbar .field,
.admin-code-form .field {
  margin: 0;
}

.admin-toolbar .field input,
.admin-toolbar .field select,
.admin-code-form .field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.admin-search {
  flex: 1 1 220px;
}

.admin-sort {
  flex: 0 1 180px;
}

.admin-pager {
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 0;
}

.admin-pager p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-pipeline-card {
  width: min(640px, 100%);
}

.admin-pipeline-meta {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.admin-pipeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.admin-pipeline-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-pipeline-list li.is-running {
  border-color: color-mix(in srgb, #2563eb 28%, var(--line));
  background: #eff6ff;
}

.admin-pipeline-list li.is-error {
  border-color: color-mix(in srgb, #dc2626 22%, var(--line));
  background: #fef2f2;
}

.admin-pipeline-step {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-pipeline-step strong {
  font-size: 13px;
}

.admin-pipeline-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-pipeline-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

.admin-pipeline-time em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
}

.admin-pipeline-call-list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.admin-pipeline-costs {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-pipeline-costs h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.admin-pipeline-costs p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-pipeline-cost-sub {
  margin: 10px 0 4px !important;
  font-weight: 600;
  color: var(--text) !important;
}

.report-generating {
  --step-h: 58px;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 32px 28px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 50px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

body.is-generating {
  height: 100dvh;
  overflow: hidden;
}

body.is-generating .header {
  flex: 0 0 auto;
  position: static;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

body.is-generating .header .wrap {
  height: 56px;
}

body.is-generating .report {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0 28px;
  overflow: auto;
}

body.is-generating .report > .wrap {
  display: flex;
  justify-content: center;
  width: min(560px, calc(100% - 28px));
}

body.is-generating.report-body {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(720px 380px at 88% -8%, rgba(56, 189, 248, 0.28), transparent 58%),
    radial-gradient(640px 420px at 6% 12%, rgba(37, 99, 235, 0.16), transparent 52%),
    radial-gradient(520px 280px at 70% 38%, rgba(99, 102, 241, 0.1), transparent 60%),
    var(--bg);
}

.report-gen-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 18px;
  min-height: 108px;
}

.report-gen-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
}

.report-gen-beam,
.report-gen-orb-brand {
  display: none;
}

.report-gen-scan.has-brand .report-gen-beam {
  display: block;
  position: relative;
  width: 88px;
  height: 18px;
  flex: 0 0 88px;
  transform-origin: left center;
  animation: report-beam-in 0.55s ease both;
}

.report-gen-beam-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.55) 42%, rgba(124, 58, 237, 0.7), rgba(124, 58, 237, 0.12));
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.28);
}

.report-gen-beam-track::before,
.report-gen-beam-track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  transform: translate(-50%, -50%);
}

.report-gen-beam-track::before {
  left: 0;
}

.report-gen-beam-track::after {
  left: 100%;
  background: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.report-gen-beam-sweep {
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), #60a5fa, #a78bfa);
  box-shadow: 0 0 16px 3px rgba(99, 102, 241, 0.45);
  animation: report-scan-sweep 1.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.report-gen-scan.has-brand .report-gen-orb-brand {
  display: grid;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 54%, transparent 72%);
  animation: report-brand-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.report-gen-orb-brand .report-gen-logo {
  width: auto;
  max-width: 54px;
  max-height: 36px;
  object-fit: contain;
}

.report-gen-orb-brand::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.55) 48%, transparent 68%);
  animation: report-logo-scan 1.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.report-gen-ring,
.report-gen-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.report-gen-ring {
  background: conic-gradient(from 200deg, transparent 0 58%, #2563eb 72%, #7c3aed 88%, transparent 100%);
  animation: report-spin 2.2s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.report-gen-glow {
  inset: 10px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
  animation: report-breathe 2.4s ease-in-out infinite;
}

.report-gen-logo {
  position: relative;
  z-index: 1;
  width: 58px;
  height: auto;
  margin: 0;
  animation: report-breathe 2.4s ease-in-out infinite;
}

.report-gen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, #2563eb 10%, white);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-gen-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
  animation: report-blink 1.3s ease-in-out infinite;
}

.report-generating h1 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 28px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.report-gen-kicker {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.report-gen-meter {
  margin: 18px 0 0;
}

.report-gen-bar {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 80%, white);
  overflow: hidden;
}

.report-gen-bar > span {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.4s ease;
}

.report-gen-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.report-steps-viewport {
  position: relative;
  height: calc(var(--step-h) * 3.55);
  margin: 18px -8px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--line) 80%, #94a3b8) transparent;
}

.report-generating.is-waiting .report-steps-viewport {
  height: calc(var(--step-h) * 2.35);
}

.report-steps {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  text-align: left;
}

.report-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: var(--step-h);
  padding: 10px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: var(--muted);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.report-step:last-child {
  border-bottom: 0;
}

.report-step strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.report-step small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.report-step-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.report-step.is-running,
.report-step.is-waiting,
.report-step.is-current {
  color: var(--text);
}

.report-step.is-running .report-step-mark,
.report-step.is-waiting .report-step-mark,
.report-step.is-current:not(.is-done):not(.is-skipped):not(.is-error) .report-step-mark {
  position: relative;
  overflow: visible;
  border-color: color-mix(in srgb, #2563eb 22%, white);
  background: #eff6ff;
  color: transparent;
}

.report-step.is-running .report-step-mark::before,
.report-step.is-waiting .report-step-mark::before,
.report-step.is-current:not(.is-done):not(.is-skipped):not(.is-error) .report-step-mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 55%, #2563eb 78%, #7c3aed 100%);
  animation: report-spin 1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.report-step.is-running .report-step-mark::after,
.report-step.is-waiting .report-step-mark::after,
.report-step.is-current:not(.is-done):not(.is-skipped):not(.is-error) .report-step-mark::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.report-step.is-done .report-step-mark {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.report-step.is-skipped .report-step-mark {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

.report-step.is-error .report-step-mark {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.report-step.is-peek {
  filter: blur(2.4px);
  opacity: 0.42;
}

.report-step.is-ahead {
  filter: blur(3.5px);
  opacity: 0.22;
}

.report-wait {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, #2563eb 18%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.05)) border-box;
  text-align: left;
  animation: report-wait-in 0.35s ease;
}

.report-wait p {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
}

.report-wait-field {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.report-wait-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #64748b;
  display: grid;
  place-items: center;
}

.report-wait input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  font: inherit;
}

.report-wait input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.report-wait-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-wait-actions .btn {
  min-height: 40px;
}

@keyframes report-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.92; }
}

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

@keyframes report-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes report-wait-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes report-brand-in {
  from { opacity: 0; transform: scale(0.72); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes report-beam-in {
  from { opacity: 0; transform: scaleX(0.15); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes report-scan-sweep {
  0% { left: 0; transform: translateX(-100%); opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { left: 100%; transform: translateX(0); opacity: 0; }
}

@keyframes report-logo-scan {
  0% { transform: translateX(-70%); opacity: 0; }
  18% { opacity: 0.85; }
  100% { transform: translateX(70%); opacity: 0; }
}

@media (max-height: 760px) {
  .report-generating {
    padding: 22px 22px 16px;
  }

  .report-gen-scan {
    min-height: 88px;
    margin-bottom: 12px;
  }

  .report-gen-orb {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .report-gen-scan.has-brand .report-gen-beam {
    width: 64px;
    flex-basis: 64px;
  }

  .report-gen-logo {
    width: 46px;
    margin: 0;
  }

  .report-gen-kicker {
    display: none;
  }

  .report-generating {
    --step-h: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-gen-logo,
  .report-gen-ring,
  .report-gen-glow,
  .report-gen-badge i,
  .report-gen-beam-sweep,
  .report-gen-orb-brand,
  .report-gen-orb-brand::after,
  .report-gen-scan.has-brand .report-gen-beam,
  .report-step.is-running .report-step-mark::before,
  .report-step.is-waiting .report-step-mark::before,
  .report-retry-spin::before,
  .report-retry-meter > span {
    animation: none;
  }
}

.report-shot-open {
  position: relative;
  display: block;
  width: 100%;
  margin: 16px 0 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.report-shot-open:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.report-shot-thumb {
  display: block;
  height: 260px;
  overflow: hidden;
  position: relative;
}

.report-shot-stage,
.report-shot-full {
  position: relative;
  display: block;
}

.report-shot-map {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

.report-shot-thumb img,
.report-shot-full img,
.report-shot-map img {
  display: block;
  width: 100%;
  height: auto;
}

.report-shot-thumb .report-shot-pin {
  pointer-events: none;
}

.report-shot-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  cursor: pointer;
}

.report-shot-pin.is-active {
  background: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.3);
}

.report-shot-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 120px;
  padding: 20px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88) 72%);
  color: #fff;
  pointer-events: none;
}

.report-shot-cta-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-shot-cta-label strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.report-shot-cta-label small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.report-shot-cta-pins {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 46%;
}

.report-shot-cta-pins span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.report-shot-print {
  display: none;
}

.report-shot-modal {
  top: var(--header-h);
  z-index: 40;
  padding: 16px 18px;
  place-items: center;
}

.report-shot-modal.is-open,
.report-shot-modal:not([hidden]) {
  display: grid !important;
}

.report-shot-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(var(--max), 100%);
  height: min(820px, 100%);
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.report-shot-dialog .modal-close {
  z-index: 3;
}

.report-shot-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 340px);
  flex: 1;
  min-height: 0;
  height: 100%;
}

.report-shot-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #0f172a;
}

.report-shot-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px 20px 20px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.report-shot-panel h2 {
  font-size: 22px;
  padding-right: 36px;
  letter-spacing: -0.03em;
}

.report-shot-panel > p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.report-shot-wait {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.report-shot-wait .report-retry-spin {
  display: block;
}

.report-shot-wait-status {
  margin: 0;
  font-weight: 600;
}

.report-shot-wait-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.report-shot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.report-shot-item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.report-shot-item:hover,
.report-shot-item.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
}

.report-shot-item-n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.report-shot-item.is-active .report-shot-item-n {
  background: #c2410c;
}

.report-shot-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.report-shot-item-body strong {
  font-size: 13px;
  line-height: 1.35;
}

.report-shot-item-body span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

body.is-shot-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .report-shot-modal {
    top: 0;
    padding: 10px;
  }

  .report-shot-dialog {
    height: 100%;
  }

  .report-shot-modal-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 46%) minmax(0, 1fr);
  }

  .report-shot-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.report-psi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

@media (max-width: 720px) {
  .report-psi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.report-chat-open {
  --report-chat-w: min(400px, 42vw);
  padding-right: var(--report-chat-w);
}

@media (max-width: 720px) {
  body.report-chat-open {
    --report-chat-w: min(100vw, 100%);
  }

  .report-chat.is-float .report-chat-panel {
    width: min(100vw - 24px, 360px);
    height: min(70dvh, calc(100dvh - 24px));
  }

  .report-chat.is-dock {
    width: 100%;
  }
}

.report-chat {
  position: fixed;
  z-index: 24;
  font-size: 14px;
}

.report-chat:not(.is-open),
.report-chat.is-float {
  right: 20px;
  bottom: 20px;
}

.report-chat.is-dock {
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--report-chat-w, 400px);
  display: flex;
  flex-direction: column;
}

.report-chat-launch {
  position: relative;
  isolation: isolate;
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #f7f9fc;
  color: #5b6b82;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.report-chat:not(.is-open) .report-chat-launch {
  display: inline-flex;
}

.report-chat-launch:hover {
  color: #3f4f66;
  border-color: #c9d5e4;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.report-chat-launch-glow {
  display: none;
}

.report-chat-launch-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.report-chat.is-low .report-chat-meter > span {
  background: #c2410c;
}

.report-chat-panel {
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.report-chat.is-open .report-chat-panel {
  display: flex;
}

.report-chat.is-float .report-chat-panel {
  width: min(360px, calc(100vw - 28px));
  height: min(520px, calc(100dvh - 40px));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.report-chat.is-dock .report-chat-panel {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.08);
}

.report-chat-panel[hidden] {
  display: none !important;
}

.report-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.report-chat-head .ico-undock {
  display: none;
}

.report-chat.is-dock .ico-dock {
  display: none;
}

.report-chat.is-dock .ico-undock {
  display: block;
}

.report-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.report-chat-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.report-chat-head-logo {
  display: block;
  height: 20px;
  width: auto;
}

.report-chat-head strong {
  font-size: 14px;
}

.report-chat-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.report-chat-head button:hover {
  background: color-mix(in srgb, var(--blue) 8%, #fff);
  color: var(--text);
}

.report-chat-head button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--blue) 12%, #fff);
  color: var(--blue);
}

.report-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-chat-msg {
  max-width: 92%;
  padding: 8px 12px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 13px;
}

.report-chat-msg.is-assistant {
  align-self: flex-start;
  background: #f1f5f9;
}

.report-chat-msg.is-user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--blue) 12%, #fff);
}

.report-chat-msg a,
.report-chat-msg strong {
  font-weight: 600;
}

.report-chat-jump {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.report-chat-msg.is-wait {
  background: transparent;
  padding: 6px 2px;
}

.report-chat-wait {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.01em;
  background-image: linear-gradient(
    90deg,
    #94a3b8 0%,
    #94a3b8 38%,
    #2563eb 47%,
    #7c3aed 50%,
    #2563eb 53%,
    #94a3b8 62%,
    #94a3b8 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: report-chat-shimmer 1.8s linear infinite;
}

.report-chat-wait-text {
  display: inline-block;
}

@keyframes report-chat-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.report-chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-chat-starters button {
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, #fff);
  color: var(--blue-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.report-chat-quota {
  padding: 8px 14px 0;
}

.report-chat-meter {
  height: 5px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.report-chat-meter > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.25s ease;
}

.report-chat-quota p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.report-chat.is-empty .report-chat-quota p {
  color: #c2410c;
}

.report-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin: 10px 12px 14px;
  padding: 12px 12px 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.report-chat-form:focus-within {
  border-color: color-mix(in srgb, var(--blue) 32%, #e2e8f0);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 10%, transparent);
}

.report-chat-form textarea {
  min-height: 76px;
  max-height: 140px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  resize: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.report-chat-form textarea::placeholder {
  color: #94a3b8;
}

.report-chat-form button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.report-chat-form button:disabled,
.report-chat-form textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-premium-group {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.admin-premium-group h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.admin-premium-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.admin-premium-item:last-child {
  margin-bottom: 0;
}

.admin-premium-item input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.admin-premium-item strong {
  display: block;
  font-size: 15px;
}

.admin-premium-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-premium-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-mail-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-mail-templates {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-mail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.admin-mail-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.admin-mail-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-mail-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 600;
}

.admin-mail-preview {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-email-view-card {
  max-width: min(720px, 96vw);
}

.admin-email-view-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-error-note-clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36ch;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-error-note-clip:hover {
  color: var(--blue-deep);
}

.admin-error-view-card {
  max-width: min(640px, 96vw);
}

.admin-error-view-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.admin-error-view-note {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink, var(--text));
}

.admin-mail-preview-log {
  min-height: 420px;
  margin-bottom: 16px;
}

.admin-sub-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.admin-sub-cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.admin-sub-cell.is-latest .pill {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 40%, transparent);
}

.admin-sub-companies {
  max-width: 28ch;
  white-space: normal;
}
