/* Simple site skeleton styles */
:root {
  --bg: #000000;
  --text: #ffffff;
  --theme-btn-face-bg: #000000;
  --theme-btn-face-color: #ffffff;
  --theme-btn-face-border: #ffffff;
  --theme-offset-shadow: #ffffff;
  --theme-btn-shadow-border: transparent;
  --theme-btn-inverse-face-bg: #ffffff;
  --theme-btn-inverse-face-color: #000000;
  --theme-btn-inverse-face-border: #ffffff;
  --theme-btn-inverse-offset-shadow: #000000;
  --theme-btn-inverse-shadow-border: #ffffff;
  --theme-card-bg: #050505;
  --theme-card-border: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

nav#top-nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--text);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

a {
  color: var(--text);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  font-weight: 700;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.nav-link {
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-brand-mark {
  display: inline-flex;
  line-height: 0;
}

.nav-brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.theme-switcher-button:hover,
.theme-switcher-button:focus-visible {
  border-color: var(--text);
  outline: none;
}

.theme-switcher-icon {
  display: inline-flex;
  line-height: 0;
}

.theme-switcher-icon svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.theme-switcher-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 110;
  min-width: 10rem;
  border: 1px solid var(--text);
  background: var(--bg);
  padding: 0.35rem;
  text-align: left;
  display: none;
}

.theme-switcher:focus-within .theme-switcher-menu {
  display: block;
}

.theme-switcher-list {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.theme-switcher-list li {
  margin: 0;
}

.theme-link {
  display: block;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.1;
}

.theme-link:hover,
.theme-link:focus-visible {
  border-color: var(--text);
  opacity: 1;
  outline: none;
}

.theme-link.is-active {
  background: var(--text);
  color: var(--bg);
}

a:hover {
  opacity: 0.85;
}

.btn:hover {
  opacity: 1;
}

.btn {
  --btn-lift: 6px;
  --btn-shadow-x: 12px;
  --btn-shadow-y: 12px;
  --btn-shadow-border-width: 2px;
  --btn-face-bg: var(--theme-btn-face-bg);
  --btn-face-color: var(--theme-btn-face-color);
  --btn-face-border: var(--theme-btn-face-border);
  --offset-shadow: var(--theme-offset-shadow);
  --btn-shadow-border: var(--theme-btn-shadow-border);

  position: relative;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--offset-shadow);
  border: var(--btn-shadow-border-width) solid var(--btn-shadow-border);
  transform: translate3d(var(--btn-shadow-x), var(--btn-shadow-y), 0);
  pointer-events: none;
  z-index: 0;
}

.btn__face {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  padding: 16px 22px;
  border: 4px solid var(--btn-face-border);
  border-radius: 0;
  background: var(--btn-face-bg);
  color: var(--btn-face-color);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: translate3d(var(--btn-shadow-x), var(--btn-shadow-y), 0);
  transition: transform 0.12s ease;
  will-change: transform;
}

.btn:hover .btn__face,
.btn:focus-visible .btn__face {
  transform: translate3d(
    calc(var(--btn-shadow-x) - var(--btn-lift)),
    calc(var(--btn-shadow-y) - var(--btn-lift)),
    0
  );
}

.btn:active .btn__face {
  transform: translate3d(
    calc(var(--btn-shadow-x) - (var(--btn-lift) * 0.33)),
    calc(var(--btn-shadow-y) - (var(--btn-lift) * 0.33)),
    0
  );
}

.btn:focus-visible {
  outline: none;
}

.btn:focus-visible .btn__face {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--btn-face-border), transparent 35%);
}

.btn.primary {
  --btn-face-bg: var(--theme-btn-face-bg);
  --btn-face-color: var(--theme-btn-face-color);
  --btn-face-border: var(--theme-btn-face-border);
  --offset-shadow: var(--theme-offset-shadow);
  --btn-shadow-border: var(--theme-btn-shadow-border);
}

.btn.inverse {
  --btn-face-bg: var(--theme-btn-inverse-face-bg);
  --btn-face-color: var(--theme-btn-inverse-face-color);
  --btn-face-border: var(--theme-btn-inverse-face-border);
  --offset-shadow: var(--theme-btn-inverse-offset-shadow);
  --btn-shadow-border: var(--theme-btn-inverse-shadow-border);
}

.shopify-page {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1rem 3rem;
  min-width: 0;
}

.shopify-lead {
  max-width: 44rem;
  margin: 0;
}

.shopify-subtitle {
  margin: -0.5rem auto 0;
  max-width: 36rem;
}

.shopify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  min-width: 0;
}

.shopify-panel {
  border: 1px solid var(--text);
  padding: 1rem;
  background: var(--theme-card-bg);
  min-width: 0;
}

.shopify-form {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.shopify-form label,
.shopify-form input,
.shopify-form button {
  font: inherit;
}

.shopify-form input {
  width: 100%;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 0.75rem 0.85rem;
}

.shopify-form input::placeholder {
  color: color-mix(in oklab, var(--text), transparent 40%);
}

.shopify-form input:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--text), transparent 35%);
  outline-offset: 2px;
}

.shopify-notes,
.shopify-config-list,
.shopify-install-list {
  display: grid;
  gap: 0.55rem;
}

.shopify-muted {
  opacity: 0.8;
}

.shopify-status {
  margin: 0;
  border: 1px solid var(--text);
  padding: 0.85rem 1rem;
  overflow-wrap: anywhere;
}

.shopify-status.success {
  background: color-mix(in oklab, #2ecc71 18%, transparent);
}

.shopify-status.error {
  background: color-mix(in oklab, #ff4d4f 18%, transparent);
}

.shopify-install-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shopify-install-item {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid color-mix(in oklab, var(--text), transparent 70%);
  min-width: 0;
}

.shopify-install-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.shopify-install-meta {
  font-size: 0.92rem;
  opacity: 0.8;
  overflow-wrap: anywhere;
}

.shopify-install-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shopify-install-item > div {
  min-width: 0;
}

.shopify-install-item > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.shopify-install-item > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.privacy-grid {
  align-items: stretch;
}

.privacy-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.privacy-list {
  list-style-position: outside;
  padding-left: 1.25rem;
}

.holmes-page {
  text-align: left;
  --holmes-content-width: min(100%, 920px);
}

.holmes-header {
  display: grid;
  gap: 0.55rem;
  text-align: center;
}

.holmes-header h1 {
  margin-bottom: 0;
}

.holmes-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

.holmes-actions {
  width: var(--holmes-content-width);
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
}

.holmes-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--theme-card-border);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.holmes-action-button:hover,
.holmes-action-button:focus-visible {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.holmes-grid {
  width: var(--holmes-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.holmes-panel {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  max-width: 100%;
}

.holmes-panel h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.holmes-kv {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in oklab, var(--text), transparent 82%);
}

.holmes-kv:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.holmes-kv span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.holmes-kv strong {
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.holmes-run-details-panel,
.holmes-item-metadata-panel,
.holmes-run-images-panel,
.holmes-run-errors-panel {
  width: var(--holmes-content-width);
  margin: 0 auto;
}

.holmes-kv-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.holmes-kv-row .holmes-kv {
  padding-top: 0;
  border-top: 0;
}

.holmes-intake {
  grid-column: 1 / -1;
}

.holmes-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.holmes-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.holmes-field-full {
  grid-column: 1 / -1;
}

.holmes-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.holmes-photo-slot {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.holmes-intake-form textarea,
.holmes-intake-form input:not([type="file"]),
.holmes-intake-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.holmes-intake-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.holmes-sources {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.holmes-stored-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 128px));
  gap: 0.75rem;
  justify-content: start;
}

.holmes-stored-image-card {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}

.holmes-stored-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--text);
  background: var(--theme-card-bg);
}

.holmes-stored-image-card figcaption {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.holmes-source {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.holmes-source span,
.holmes-draft span {
  opacity: 0.82;
}

.holmes-draft {
  display: grid;
  gap: 0.65rem;
}

.holmes-draft p {
  margin: 0;
}

.holmes-runs-panel {
  width: var(--holmes-content-width);
  margin: 0 auto;
}

.holmes-empty {
  margin: 0;
}

.holmes-run-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.holmes-run-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid color-mix(in oklab, var(--text), transparent 35%);
}

.holmes-run-link {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  padding: 0.9rem 1rem;
  text-decoration: none;
  min-width: 0;
}

.holmes-run-link:hover,
.holmes-run-link:focus-visible {
  opacity: 1;
  background: color-mix(in oklab, var(--text), transparent 92%);
  outline: none;
}

.holmes-run-item:has(.holmes-run-link:hover),
.holmes-run-item:has(.holmes-run-link:focus-visible) {
  border-color: var(--text);
}

.holmes-run-delete-form {
  display: flex;
  align-items: stretch;
  margin: 0;
  border-left: 1px solid color-mix(in oklab, var(--text), transparent 72%);
}

.holmes-run-delete-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.85rem;
}

.holmes-run-delete-button:hover,
.holmes-run-delete-button:focus-visible {
  background: color-mix(in oklab, #b42318, transparent 88%);
  color: #b42318;
  outline: none;
}

.holmes-run-title,
.holmes-run-meta,
.holmes-run-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  min-width: 0;
}

.holmes-run-title {
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 1rem;
}

.holmes-run-title strong,
.holmes-run-title span,
.holmes-run-snippet {
  overflow-wrap: anywhere;
}

.holmes-run-meta,
.holmes-run-times {
  font-size: 0.82rem;
  opacity: 0.74;
}

.holmes-run-snippet {
  margin: 0;
  opacity: 0.9;
}

.holmes-report {
  width: var(--holmes-content-width);
  max-width: 100%;
  margin: 0 auto;
  gap: 1.15rem;
}

.holmes-report > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.holmes-report-heading {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}

.holmes-report-heading h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.holmes-report-label,
.holmes-report-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.64;
  overflow-wrap: anywhere;
}

.holmes-report-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid color-mix(in oklab, var(--text), transparent 52%);
  background: color-mix(in oklab, var(--text), transparent 96%);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.holmes-finding,
.holmes-confidence,
.holmes-caveats {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.holmes-finding p,
.holmes-confidence p,
.holmes-caveats p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: left;
}

.holmes-confidence {
  max-width: 100%;
}

.holmes-caveats {
  max-width: 100%;
}

.holmes-report-section {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.holmes-report-section h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.holmes-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.holmes-insight-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.holmes-insight-card,
.holmes-copy-block,
.holmes-evidence-row,
.holmes-title-option,
.holmes-followup-row {
  border: 1px solid color-mix(in oklab, var(--text), transparent 70%);
  background: color-mix(in oklab, var(--theme-card-bg), var(--text) 4%);
  min-width: 0;
  max-width: 100%;
}

.holmes-insight-card {
  min-height: 5.25rem;
  padding: 0.85rem;
}

.holmes-comparable-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.holmes-comparable-card a,
.holmes-comparable-card strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.holmes-insight-card p,
.holmes-copy-block p,
.holmes-evidence-detail,
.holmes-title-option p,
.holmes-followup-row p {
  margin: 0;
  overflow-wrap: anywhere;
}

.holmes-evidence-list,
.holmes-copy-list,
.holmes-title-options,
.holmes-followup-list {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.holmes-evidence-row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.45fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
}

.holmes-evidence-title {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  min-width: 0;
}

.holmes-evidence-title a,
.holmes-evidence-title strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.holmes-evidence-detail {
  opacity: 0.86;
}

.holmes-source {
  overflow-wrap: anywhere;
}

.holmes-title-option,
.holmes-followup-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
}

.holmes-title-option span,
.holmes-followup-row span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.58;
}

.holmes-copy-block {
  padding: 0.95rem;
}

.holmes-claim-block {
  display: grid;
  gap: 0.45rem;
}

.holmes-claim-block h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.holmes-claim-block h4 a {
  font-weight: inherit;
  overflow-wrap: anywhere;
}

.holmes-copy-block p {
  max-width: 54rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .btn__face {
    transition: none;
  }
}

section {
  text-align: center;
  padding: 2rem 0;
  min-width: 0;
}

h1,
h2 {
  color: var(--text);
  margin-top: 0;
}

ul {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.echart {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

.chart-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-card {
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 0.75rem;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.chart-card .echart {
  max-width: none;
}

.chat-page {
  display: grid;
  min-height: calc(100vh - 56px);
  justify-items: center;
  align-content: start;
  padding: 2rem 1rem 3rem;
}

.indlaw-building-shell {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.indlaw-building-icon {
  display: inline-flex;
  line-height: 0;
}

.indlaw-building-icon svg {
  display: block;
  width: clamp(4.5rem, 10vw, 6.5rem);
  height: clamp(4.5rem, 10vw, 6.5rem);
  animation: indlaw-gear-spin 3.2s linear infinite;
}

.indlaw-building-copy {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

@keyframes indlaw-gear-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.report-page {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1rem 3rem;
  min-width: 0;
}

.ind-report-content {
  display: contents;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--text) 14%, transparent),
    transparent
  );
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}

.report-title-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.report-title-row h1,
.report-title-row h2 {
  margin-bottom: 0;
}

.report-channel-title-row {
  margin: 0.25rem auto 0;
}

.report-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.report-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: var(--theme-card-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.report-switcher-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 0;
}

.report-switcher-chevron svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  transition: transform 160ms ease;
}

.report-switcher:focus-within .report-switcher-chevron svg {
  transform: rotate(180deg);
}

.report-switcher-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  min-width: min(28rem, 80vw);
  max-width: calc(100vw - 2rem);
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 0.35rem;
  text-align: left;
  display: none;
}

.report-switcher:focus-within .report-switcher-menu {
  display: block;
}

.report-switcher-list {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.report-switcher-list li {
  margin: 0;
}

.report-switcher-link {
  display: block;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
  overflow-wrap: anywhere;
}

.report-switcher-link:hover,
.report-switcher-link:focus-visible {
  opacity: 1;
  border-color: var(--theme-card-border);
  outline: none;
}

.report-switcher-link.is-current {
  background: var(--text);
  color: var(--bg);
}

.report-period-toolbar {
  width: min(100%, 920px);
  margin: -0.6rem auto -0.5rem;
  display: flex;
  justify-content: flex-end;
}

.report-period-control {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.report-period-button {
  width: auto;
  min-width: 11rem;
  height: 2.25rem;
  gap: 0.45rem;
  justify-content: space-between;
  border: 1px solid var(--theme-card-border);
  padding: 0 0.65rem 0 0.75rem;
}

.report-period-current {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-hint {
  max-width: 44rem;
  margin: 0 auto;
  opacity: 0.82;
}

.report-filters {
  width: min(100%, 920px);
  margin: 0 auto;
  min-width: 0;
}

.report-fieldset {
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 1rem;
  text-align: left;
}

.report-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 700;
}

.report-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  align-items: end;
}

.report-filter {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.report-filter-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-filter select,
.report-filter input,
.report-submit {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--theme-card-border);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.tenant-dashboard-filters {
  margin-top: -0.1rem;
}

.tenant-dashboard-filters-grid {
  grid-template-columns: minmax(10rem, 1.2fr) repeat(2, minmax(9rem, 1fr)) minmax(8rem, 0.8fr);
}

.tenant-dashboard-loading-charts {
  display: none;
  width: min(100%, 920px);
  margin: 0 auto;
  gap: 1.25rem;
}

.tenant-dashboard-filters.htmx-request .report-submit {
  background: var(--text);
  color: transparent;
  border-color: var(--text);
  cursor: progress;
}

.tenant-dashboard-filters.htmx-request .report-submit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid var(--bg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: report-submit-spin 0.7s linear infinite;
}

.tenant-dashboard-filters.htmx-request + .tenant-dashboard-loading-charts {
  display: grid;
}

.tenant-dashboard-filters.htmx-request + .tenant-dashboard-loading-charts ~ [id^="tenant-dashboard-chart-"] {
  display: none;
}

.report-submit {
  cursor: pointer;
  position: relative;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.report-submit:hover,
.report-submit:focus-visible {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.report-submit.is-loading {
  background: var(--text);
  color: transparent;
  border-color: var(--text);
  cursor: progress;
}

.report-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid var(--bg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: report-submit-spin 0.7s linear infinite;
}

.report-submit:disabled {
  pointer-events: none;
}

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

.report-summary {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
  min-width: 0;
}

.report-featured-summary {
  margin-top: -0.25rem;
}

.report-stat {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 4;
  min-width: 0;
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  min-height: 9rem;
  container-type: inline-size;
}

.report-stat-link {
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.report-stat-link:hover,
.report-stat-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--text);
  outline: none;
}

.report-stat-body {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  padding: 1rem 0.9rem;
  text-align: center;
}

.report-stat-title,
.report-stat-value,
.report-stat-detail {
  margin: 0;
  max-width: 100%;
}

.report-stat-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.report-stat-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.2rem, 9.25cqi, 2.1rem);
  font-weight: 800;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.report-experiment-meta .report-stat-value {
  font-size: clamp(1rem, 7.5cqi, 1.75rem);
}

.report-experiment-meta .report-stat-value-multiline {
  font-size: clamp(1rem, 5.8cqi, 1.45rem);
  line-height: 1.18;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-wrap: balance;
}

.report-stat-detail {
  font-size: 0.78rem;
  opacity: 0.78;
  overflow-wrap: anywhere;
}

.report-stat-meta {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-stat-detail-strong {
  opacity: 1;
  font-weight: 700;
}

.report-chart-card {
  width: min(100%, 920px);
  margin: 0 auto;
}

.report-data-table {
  width: min(100%, 920px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  text-align: left;
}

.report-data-table-header {
  margin-bottom: 0.75rem;
}

.report-data-table-header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.report-raw-rows-panel {
  display: grid;
  gap: 1rem;
}

.report-raw-rows-panel > * {
  min-width: 0;
}

.report-raw-rows-panel > h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.report-raw-fieldset {
  width: 100%;
  padding: 0.85rem;
}

.report-raw-filters {
  width: 100%;
  margin: 0;
}

.report-raw-filters-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-raw-rows-count {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  opacity: 0.78;
}

.report-raw-rows-loading .report-raw-rows-count {
  margin-bottom: 0;
}

.report-raw-rows-unavailable {
  text-align: left;
}

.report-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.report-data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.report-data-table th,
.report-data-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--theme-card-border);
  white-space: nowrap;
}

.report-data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.78;
}

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

.report-data-table th:nth-child(n + 2),
.report-data-table td:nth-child(n + 2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-raw-rows-panel th,
.report-raw-rows-panel td {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-raw-rows-panel th:nth-child(n + 2),
.report-raw-rows-panel td:nth-child(n + 2) {
  text-align: left;
}

.report-raw-rows-panel th:last-child,
.report-raw-rows-panel td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.report-page-count {
  font-size: 0.84rem;
  opacity: 0.78;
}

.report-page-button {
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--theme-card-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.report-page-button:hover,
.report-page-button:focus-visible {
  border-color: var(--text);
  outline: none;
}

.report-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.report-empty {
  margin: 0;
  text-align: center;
}

.report-skeleton-featured,
.report-skeleton-summary,
.report-skeleton-filters,
.report-skeleton-chart-card,
.report-skeleton-table {
  pointer-events: none;
}

.skeleton-legend {
  width: 5rem;
  height: 0.85rem;
  margin: 0 0 0.9rem 0.5rem;
}

.skeleton-label {
  width: 42%;
  height: 0.72rem;
}

.skeleton-input,
.skeleton-submit {
  width: 100%;
  min-height: 2.75rem;
}

.report-skeleton-stat .report-stat-body {
  justify-items: center;
}

.skeleton-stat-line {
  height: 0.78rem;
}

.skeleton-stat-line-1 {
  width: 48%;
}

.skeleton-stat-line-2 {
  width: 72%;
  height: 1.7rem;
}

.skeleton-stat-line-3 {
  width: 58%;
}

.skeleton-stat-line-4 {
  width: 36%;
}

.skeleton-stat-line-5 {
  width: 68%;
}

.report-skeleton-chart-card {
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 1rem;
}

.skeleton-chart {
  width: 100%;
  height: 360px;
}

.skeleton-table-title {
  width: 10rem;
  height: 1rem;
  margin-bottom: 1rem;
}

.skeleton-table {
  display: grid;
  gap: 0.7rem;
}

.skeleton-table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1fr;
  gap: 0.8rem;
}

.skeleton-table-cell {
  height: 0.9rem;
}

@media (max-width: 700px) {
  nav#top-nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
  }

  .nav-actions {
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.65rem;
  }

  .theme-switcher-menu {
    max-width: calc(100vw - 1.5rem);
  }

  .btn {
    --btn-lift: 4px;
    --btn-shadow-x: 8px;
    --btn-shadow-y: 8px;
  }

  .btn__face {
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.08;
  }

  .hero-actions {
    gap: 0.85rem;
    padding: 0 0.5rem 0.6rem 0;
  }

  section {
    padding: 1.5rem 0;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
    line-height: 1.15;
  }

  .shopify-page,
  .report-page {
    gap: 1rem;
    padding: 1.35rem 0.75rem 2rem;
  }

  .shopify-panel,
  .report-fieldset,
  .chart-card {
    padding: 0.85rem;
  }

  .shopify-subtitle {
    margin-top: -0.25rem;
  }

  .shopify-install-item > div:last-child {
    grid-template-columns: 1fr;
  }

  .holmes-grid,
  .holmes-form-grid,
  .holmes-kv-row {
    grid-template-columns: 1fr;
  }

  .holmes-run-item {
    grid-template-columns: 1fr;
  }

  .holmes-run-delete-form {
    border-top: 1px solid color-mix(in oklab, var(--text), transparent 72%);
    border-left: 0;
  }

  .holmes-run-delete-button {
    width: 100%;
    min-height: 2.75rem;
  }

  .holmes-photo-grid {
    grid-template-columns: 1fr;
  }

  .holmes-report-hero,
  .holmes-insight-grid,
  .holmes-evidence-row {
    grid-template-columns: 1fr;
  }

  .holmes-confidence {
    justify-self: start;
  }

  .report-submit {
    min-height: 2.85rem;
  }

  .report-title-row {
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
  }

  .report-switcher-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(22rem, calc(100vw - 1.5rem));
    min-width: min(22rem, calc(100vw - 2rem));
  }

  .report-period-toolbar {
    justify-content: center;
    margin-top: -0.35rem;
  }

  .report-filters-grid,
  .report-summary {
    grid-template-columns: 1fr;
  }

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

  .report-pagination {
    justify-content: center;
  }

  .report-stat,
  .report-stat-body {
    grid-column: 1;
  }

  .report-stat {
    min-height: 7.25rem;
  }

  .report-stat-value {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.08;
  }

  .report-chart-card .echart {
    min-height: 300px;
  }
}

@media (max-width: 420px) {
  .nav-link {
    font-size: 0.72rem;
  }

  .shopify-page,
  .report-page {
    padding-inline: 0.6rem;
  }

  .shopify-panel,
  .report-fieldset,
  .chart-card {
    padding: 0.75rem;
  }

  .report-switcher-menu {
    width: calc(100vw - 1.2rem);
    min-width: 0;
  }
}
