
/* Final CTA styles */
.final-cta {
  text-align: center;
  margin: var(--space-lg) 0 var(--space-sm) 0;
}
/* Restore url-input label styles */
url-input label {
  display: block;
  position: absolute;
  opacity: 0;
  left: 0;
  top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  padding: 0;
}
/* Restore privacy section styles */
.report__privacy {
  background: var(--color-bg-primary);
  color: var(--color-text-btn-primary);
  padding: var(--space-lg) 0 var(--space-md) 0;
  margin-top: var(--space-lg);
  border-radius: var(--radius-card);
}
.privacy-title {
  color: var(--color-text-btn-primary);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.privacy-desc {
  color: var(--color-text-btn-primary);
  padding: var(--space-md) var(--space-btn-y);
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
/* Restore key metrics styles for home.liquid */
.report__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}
.report__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  text-align: center;
  padding: 0 var(--space-sm);
}
.report__stat-value {
  font-size: 2.25rem;
  color: var(--color-bg-primary);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.report__stat-label {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.3;
}
.report__stat-label span {
  display: block;
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  margin-top: 0.15rem;
}
/* Highlight runtime with primary color */
.report__runtime {
  font-weight: 600;
  color: var(--color-text-primary);
}
/* Restore footer alignment */
.report__footer {
  text-align: center;
  padding: 0 0 2rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}
.report__footer-text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
/* Combined and cleaned CSS from report-exp.css and main-alt.css */

:root {
  --color-bg-main: #f7f8fa;
  --color-bg-card: #fff;
  --color-bg-feature: #f6f9fd;
  --color-bg-primary: #2563eb;
  --color-bg-primary-dark: #1746a2;
  --color-bg-secondary: #e0e7ff;
  --color-bg-secondary-hover: #e0e7ff;
  --color-bg-tertiary: #f2f2f2;
  --color-bg-score: #e0e7ff;
  --color-bg-success: #e6f4ea;
  --color-bg-error: #fbeaea;
  --color-text-main: #222;
  --color-text-secondary: #444;
  --color-text-primary: #2563eb;
  --color-text-btn-primary: #fff;
  --color-text-muted: #aaa;
  --color-success: #218838;
  --color-error: #e15759;
  --color-border-main: #f2f2f2;
  --color-border-blue: #2563eb12;
  --color-border-dashed: #bfc8d0;
  --color-priority-high-bg: var(--color-error);
  --color-priority-medium-bg: #f28e2b;
  --color-priority-low-bg: #edc949;
  --color-priority-border: #fbeaea;
  --radius-btn: 6px;
  --radius-main: 12px;
  --radius-card: 16px;
  --shadow-card: 0 1px 6px rgba(0, 0, 0, 0.025);
  --shadow-card-dark: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.03);
  --space-lg: 2.5rem;
  --space-md: 2rem;
  --space-sm: 1.5rem;
  --space-btn-y: 0.8rem;
  --space-btn-x: 1.5rem;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
}
/* Restore missing heading styles */
.report__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}
.report__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.report__main-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  padding: 1rem;
}
.report__features {
  margin: var(--space-lg) auto var(--space-md) auto;
  padding: var(--space-md);
  background: var(--color-bg-card);
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-main);
  box-shadow: var(--shadow-card-dark);
}
.report__feature {
  background: var(--color-bg-feature);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card-dark);
  border: 1px solid var(--color-border-blue);
  padding: var(--space-md) var(--space-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.report__feature h3 {
  color: var(--color-bg-primary);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}
/* Restore missing grid and card styles */
.report__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 18px;
}
@media only screen and (max-width: 600px) {
  .report__grid {
    grid-template-columns: 1fr;
  }
}
.report__card {
  background: var(--color-bg-feature);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-border-blue);
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
  background: var(--color-bg-main);
}
/* Restore .report__header alignment and background */
.report__header {
  background: var(--color-bg-card);
  text-align: center;
  padding: var(--space-lg) 0 var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-main);
}

/* Button styles */
.report__btn,
a.report__btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  padding: var(--space-btn-y) var(--space-btn-x);
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.report__btn--primary,
a.report__btn--primary {
  background: var(--color-bg-primary);
  color: var(--color-text-btn-primary);
}
.report__btn--primary:hover,
a.report__btn--primary:hover {
  background: var(--color-bg-primary-dark);
  color: var(--color-text-btn-primary);
}
.report__btn--secondary,
a.report__btn--secondary {
  background: var(--color-bg-secondary);
  color: var(--color-bg-primary);
}
.report__btn--secondary:hover,
a.report__btn--secondary:hover {
  background: var(--color-bg-secondary-hover);
  color: var(--color-bg-primary-dark);
}
.report__btn--tertiary,
a.report__btn--tertiary {
  background: var(--color-bg-tertiary);
  color: var(--color-bg-primary);
}
.report__btn--tertiary:hover,
a.report__btn--tertiary:hover {
  background: var(--color-bg-secondary-hover);
  color: var(--color-bg-primary-dark);
}
.report__btn.report__btn--small,
a.report__btn.report__btn--small {
  font-size: 0.85rem;
  padding: 0.3em 0.9em;
}

/* Card styles */
.report__card {
  background: var(--color-bg-feature);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-border-blue);
}
.report__card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
  gap: 0.5em;
}
.report__card-title {
  font-size: 1.1rem;
  color: var(--color-bg-primary);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.report__card-metric {
  color: var(--color-text-feature);
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.report__card-metric-value {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--color-bg-primary);
  margin-right: 0.3em;
  line-height: 1.1;
  position: relative;
}
.report__card-metric-value--plus {
  background: var(--color-bg-success);
  color: var(--color-success);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}
.report__card-metric-value--minus {
  background: var(--color-bg-error);
  color: var(--color-error);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}
.report__card-metric-label {
  display: block;
  margin-top: 2px;
}
.report__card-pages-total {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-left: 0.5em;
}
.report__card-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.report__card-pages {
  width: 100%;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}
.report__card-page-info { 
  display: block;
  text-align: left;
}
.report__card-pages-title {
  margin: 0;
  font-size: 1rem;
  text-align: left;
  color: var(--color-text-secondary);
}
.report__card-pages-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.report__card-pages-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report__card-page-name {
  font-weight: 500;
}
.report__card-page-issues {
  color: var(--color-text-muted);
  margin-left: 0.5em;
}
.error-fix-btn {
  min-width: 90px; 
}
.report__card-no-issues-label {
  background: rgba(180, 200, 220, 0.18);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
  font-weight: 500;
  margin-left: 0.5em;
}
.report__card-pass {
  opacity: 0.3;
  filter: grayscale(1);
  border: 2px dashed var(--color-border-dashed);
  position: relative;
  cursor: default;
}
.report__card-priority-indicator {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  vertical-align: middle;
}

.report__card-priority-label {
  text-transform: capitalize;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  color: var(--color-text-main);
  padding: 5px;
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: middle;
  border: none;
}
.report__card-priority--high {
  background: var(--color-priority-high-bg);
}
.report__card-priority--medium {
  background: var(--color-priority-medium-bg);
}
.report__card-priority--low {
  background: var(--color-priority-low-bg);
}
.report__card-priority-percent {
  margin-right: -1rem;
  padding: 3px; 
  color: var(--color-text-main);
}
.report__type-view__left .report__card-priority-percent {
  margin-right:0;
}
.report__card-priority-value--plus {
  background: var(--color-bg-success);
  color: var(--color-success);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}
.report__card-priority-value--minus {
  background: var(--color-bg-error);
  color: var(--color-error);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 700;
}
.report__card-change,
.report__summary-metric-diff {
  font-size: 0.9rem;
  font-weight: 700;
  vertical-align: super;
  border-radius: var(--radius-btn);
  padding: 0 5px;
  box-shadow: var(--shadow-btn);
}
.report__card-change--plus,
.report__summary-metric-diff--red {
  color: var(--color-error);
  background: var(--color-bg-error);
}
.report__card-change--minus,
.report__summary-metric-diff--green {
  color: var(--color-success);
  background: var(--color-bg-success);
}

/* Summary score card */
.report__summary-score {
  border-radius: 12px;
  padding: 1.2em 2em;
  font-weight: 700;
  font-size: 1.3em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  background: var(--color-bg-card);
}

.report__summary-score--low {
  background: var(--color-bg-secondary);
  color: #222;
}
.report__summary-score .label {
  color: var(--color-bg-primary);
}
/* Summary metrics */
.report__summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 -1rem 0;
}
.report__summary-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
}
.report__summary-metrics-container {
  display: flex;
  gap: 2.5rem;
  flex-direction: column;
}
.report__summary-metrics {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.report__summary-metric-value {
  font-family: var(--font-primary);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-bg-primary);
  margin-right: 0.3em;
}

/* Chart styles */
.report__chart-card {
  width: 100%;
  display: block;
  min-width: 0;
  padding: 2rem;
  box-sizing: border-box;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
}
.report__chart-card chart-bar,
chart-bar {
  width: 100% !important;
  display: block;
  min-width: 0;
}

/* Grid styles */
.report__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 18px;
}
@media only screen and (max-width: 600px) {
  .report__grid {
    grid-template-columns: 1fr;
  }
}

/* Type view styles */
.report__type-view {
  margin: 2rem 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  display: none;
}
.report__type-view.active {
  display: block;
}
.report__type-view__columns {
  display: flex;
  gap: 2rem;
}
.report__type-view__left {
  flex: 2;
}
.report__type-view__right {
  flex: 1;
  border-radius: 18px;
  min-width: 260px;
  padding: 0;
  position: sticky;
  top: 10px;
}
.report__type-view__right-wrapper {
  padding: 2rem;
  box-sizing: border-box;
  background: var(--color-bg-feature);
  border-radius: 18px;
  box-shadow: none;
}
.return-to-summary {
  display:block;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem; 
}
.report__type-view__right .report__section-title {
  margin-top: 0;
}
.report__type-view__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--color-bg-card);
}
.report__type-view__table th,
.report__type-view__table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.report__type-view__table th {
  background: var(--color-bg-score);
  font-weight: 600;
  color: var(--color-bg-primary);
}
.report__type-view__table th:nth-child(2), 
.report__type-view__row td:nth-child(2) {
  text-align: right;
}
.report__type-view__row {
  cursor: pointer;
  transition: background 0.15s;
}
.report__type-view__row:hover {
  background: var(--color-bg-feature);
}
.report__type-view__issues {
  background: var(--color-bg-feature);
  font-size: 0.97em;
  display: none;
}
.report__type-view__issues.active {
  display: table-row;
}
.report__type-view__issues ul {
  margin: 0;
  padding: 0;
  list-style: disc inside;
}
.report__type-view__issues li {
  margin-bottom: 0.25rem;
  color: var(--color-text-feature);
}
.report__type-view__totals {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.report__type-view__totals li {
  margin-bottom: 0.5rem;
  font-size: 1.05em;
  color: var(--color-text-main);
}
.report__type-view__section {
  margin-bottom: 1.5rem;
}
.report__section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-bg-primary);
}
.report__category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.text-right {
  text-align: right;
}

.report__section--dashboard-summary {
  display: none;
}
.report__section--dashboard-summary.active {
  display: block;
}



@keyframes dashboardFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.dashboard-animate-in {
  animation: dashboardFadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Overlay styles */
.report__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
}
.report__overlay.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.report__overlay-message {
  background: var(--color-bg-card);
  border-radius: var(--radius-main);
  border: var(--color-border-main);
  box-shadow: var(--shadow-card-dark);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  width: 40%; 
  height: 30%; 
}
.report__overlay-facts {
  position: relative;
  min-height: 2.5em;
  margin-top: 1.5em;
}
.report__overlay-fact {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s;
  font-size: 1.1em;
  color: var(--color-text-main, #222);
  font-weight: 500;
  padding: 0.5em 1em;
  pointer-events: none;
}
/* Misc */
.report__header input {
  border: 1px solid var(--color-border-blue);
}
.report__nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  align-items: center;
  justify-content: center;
}
.report__nav input[type="url"],
.report__nav input[type="email"] {
  border: 1px solid var(--color-border-main);
  border-radius: var(--radius-btn);
  padding: var(--space-btn-y) 1rem;
  font-size: 1rem;
  margin-right: 0.5rem;
  font-family: var(--font-primary);
}
.report__nav label {
  font-weight: 500;
  color: var(--color-bg-primary);
  margin-right: 0.5rem;
}
.report__nav-container { 
  position: relative;
}
.report__view-link {
  color: var(--color-bg-primary);
  font-weight: 500;
  text-decoration: underline;
  margin-left: 0.5rem;
  position: absolute;
  top: calc(var(--space-md)*1.8);
  left: 50%;
  transform: translateX(-50%);
  display: none;
}
.report__view-link.active {
  display: block;
}
.download-button,
.copy-link {
  background: var(--color-bg-tertiary);
  color: var(--color-bg-primary);
  border-radius: var(--radius-btn);
  padding: 0.5rem 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}
.download-button:hover,
.copy-link:hover {
  background: var(--color-bg-secondary-hover);
}

/* ToggleInput Custom Element Styles */
toggle-input {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto 0;
}
.toggle {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}
.toggle label {
  font-weight: 500;
  cursor: pointer;
}
.toggle input[type="radio"] {
  margin-right: 0.5em;
}
