:root {
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-blue: #eff6ff;
  --ink: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #15803d;
  --accent-soft: #dcfce7;
  --warning: #a16207;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.09);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  background: var(--primary-soft);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: var(--shadow-focus);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(203, 213, 225, 0.82);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--border-strong);
  background: var(--surface-blue);
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.menu-icon-line {
  transform-origin: 12px 12px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-line-top {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-line-middle {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-line-bottom {
  transform: translateY(-5px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.primary-nav a:hover {
  background: var(--surface-blue);
  color: var(--primary-hover);
}

.primary-nav .nav-privacy {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}

.primary-nav .nav-privacy:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.language-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 50;
}

.language-menu summary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.language-menu summary::marker {
  content: "";
  font-size: 0;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
  content: "";
  flex: 0 0 auto;
  opacity: 0.58;
  transition: transform 180ms ease;
}

.language-menu summary:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.language-menu[open] summary {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.language-menu[open] summary::after {
  transform: rotate(180deg);
}

.language-menu summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease, stroke 180ms ease;
}

.language-menu summary:hover svg,
.language-menu[open] summary svg {
  stroke: var(--primary-hover);
  transform: rotate(8deg);
}

.language-current {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.language-current-short {
  display: none;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 3px;
  min-width: 160px;
  max-width: calc(100vw - 28px);
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.language-option,
.language-options a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.language-option:hover,
.language-options a:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
  text-decoration: none;
}

.language-option.is-current {
  background: var(--primary-soft);
  color: var(--primary-hover);
  cursor: default;
}

.hero-section {
  padding: 38px 0 16px;
}

.hero-inner {
  max-width: 820px;
  text-align: center;
}

.eyebrow,
.section-label,
.panel-kicker {
  margin: 0;
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--surface-blue);
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
  content: "";
}

.hero-section h1 {
  max-width: 760px;
  margin: 12px auto 10px;
  color: var(--ink);
  font-size: clamp(2.8rem, 6.1vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.hero-lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.17rem);
  line-height: 1.65;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.tool-section {
  padding: 2px 0 44px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-intro-left {
  margin-left: 0;
  text-align: left;
}

.section-intro h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.7vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-intro p:not(.section-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.tool-card {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.tool-panel {
  min-width: 0;
  padding: clamp(16px, 2vw, 20px);
}

.input-panel {
  border-right: 1px solid var(--border);
}

.preview-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.step-index,
.detail-index,
.step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  font-family: var(--mono);
  font-weight: 800;
}

.step-index {
  width: 36px;
  height: 36px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.74rem;
}

.step-index-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.panel-kicker {
  margin-bottom: 3px;
  color: var(--muted-light);
  font-size: 0.64rem;
}

.panel-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.drop-zone {
  position: relative;
  display: flex;
  min-height: 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragover {
  border-color: var(--primary);
  background: var(--surface-blue);
}

.drop-zone.is-dragover {
  transform: translateY(-2px);
}

.drop-icon,
.archive-icon,
.output-icon {
  display: grid;
  place-items: center;
  color: var(--primary);
}

.drop-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.drop-icon svg {
  width: 32px;
  height: 32px;
}

.drop-title {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.drop-help {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.primary-button,
.secondary-button {
  padding: 10px 16px;
}

.primary-button svg,
.secondary-button svg,
.text-button svg,
.icon-button svg,
.local-processing-note svg,
.file-rules svg,
.footer-email svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.drop-zone .secondary-button {
  margin-top: 4px;
}

.selected-file {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
}

.file-type-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
}

.selected-file-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.selected-file-copy strong,
.selected-file-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.selected-file-copy span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.icon-button:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.file-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 10px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.file-rules span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.file-rules svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.convert-button {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

.processing-status,
.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
}

.processing-status {
  border: 1px solid #bfdbfe;
  background: var(--surface-blue);
  color: var(--primary-hover);
}

.processing-status > div,
.message > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.processing-status strong,
.message strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.processing-status span:not(.spinner),
.message p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.spinner {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.message {
  border: 1px solid #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.message > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.message p {
  color: #7f1d1d;
}

.text-button {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--primary-hover);
  font-size: 0.8rem;
}

.text-button:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.local-processing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.local-processing-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

.preview-state {
  min-height: 200px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.preview-status-row,
.preview-footer-line,
.metadata-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-status-row {
  min-height: 28px;
  color: var(--ink);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-dot-neutral {
  background: var(--border-strong);
}

.status-dot-success {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.status-badge,
.support-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.preview-status-row .status-badge {
  margin-left: auto;
}

.status-badge-success {
  background: var(--accent-soft);
  color: var(--accent);
}

.archive-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 8px;
}

.archive-icon,
.output-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--primary-soft);
}

.archive-icon-selected {
  background: var(--accent-soft);
  color: var(--accent);
}

.archive-icon svg,
.output-icon svg {
  width: 28px;
  height: 28px;
}

.archive-summary > div:last-child,
.success-heading > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.archive-summary strong,
.success-file strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-summary span,
.success-file span {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.69rem;
}

.entry-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 25px;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
}

.entry-list code {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-icon {
  width: 7px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid var(--primary);
  border-radius: 2px;
  background: var(--surface);
}

.preview-footer-line {
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.4;
}

.preview-footer-line > span:last-child {
  text-align: right;
}

.metadata-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 12px 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.metadata-count strong {
  color: var(--ink);
  font-size: 1.28rem;
}

.metadata-footer {
  justify-content: space-between;
  margin-top: 9px;
}

.metadata-footer .text-button {
  min-height: 36px;
}

.file-list-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 9px;
  margin-top: 14px;
}

.file-list-controls label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.file-list-controls input {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
}

.file-list-controls input:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: var(--shadow-focus);
}

.file-list-summary {
  grid-column: 2;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.file-list-viewport {
  height: 238px;
  margin-top: 9px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.file-list-inner {
  position: relative;
  min-height: 100%;
}

.file-list-row {
  position: absolute;
  right: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.58);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  white-space: nowrap;
}

.file-list-row::before {
  width: 6px;
  height: 8px;
  margin-right: 8px;
  border: 1px solid var(--primary);
  border-radius: 2px;
  background: var(--surface);
  content: "";
}

.preview-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.output-placeholder,
.success-output {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.output-placeholder {
  background: var(--surface-muted);
}

.output-placeholder strong,
.success-output h4 {
  display: block;
  margin: 1px 0 3px;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.35;
}

.output-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.output-icon {
  color: var(--muted-light);
}

.success-output {
  display: grid;
  gap: 12px;
  background: var(--accent-soft);
  border-color: #bbf7d0;
}

.success-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-icon,
.check-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.success-icon svg,
.check-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.success-output .panel-kicker {
  color: var(--accent);
}

.success-output h4 {
  margin: 0;
  font-size: 1rem;
}

.success-file {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(21, 128, 61, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.download-link,
.another-button {
  width: 100%;
}

.another-button {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.tool-disclaimer {
  max-width: 900px;
  margin: 10px auto 0;
  color: var(--muted-light);
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: center;
}

.content-section {
  padding: 72px 0;
  border-top: 1px solid rgba(203, 213, 225, 0.74);
}

.content-section-tinted {
  background: #f1f5f9;
}

.steps-grid,
.two-column-grid,
.comparison-grid,
.troubleshooting-grid {
  display: grid;
  gap: 14px;
}

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

.two-column-grid,
.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.step-card,
.detail-card,
.comparison-card,
.troubleshooting-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-card {
  position: relative;
  padding-top: 60px;
}

.step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.76rem;
}

.step-card h3,
.detail-card h3,
.comparison-card h3,
.troubleshooting-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.step-card p,
.detail-card p,
.comparison-card p,
.troubleshooting-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.detail-card {
  position: relative;
  padding-left: 68px;
}

.detail-index {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
}

.detail-card ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.detail-card li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.detail-card li::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.support-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.support-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.support-table th,
.support-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.support-table thead th {
  background: var(--surface-muted);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-table tbody tr:last-child th,
.support-table tbody tr:last-child td {
  border-bottom: 0;
}

.support-table tbody th {
  min-width: 180px;
  color: var(--ink);
  font-weight: 750;
}

.support-status-yes {
  background: var(--accent-soft);
  color: var(--accent);
}

.support-status-check {
  background: var(--warning-soft);
  color: var(--warning);
}

.support-status-no {
  background: var(--danger-soft);
  color: var(--danger);
}

.privacy-section {
  background: var(--surface-muted);
  color: var(--ink);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: start;
  gap: 56px;
}

.privacy-section .section-label {
  color: var(--primary-hover);
}

.privacy-section h2 {
  color: var(--ink);
}

.privacy-section .section-intro p:not(.section-label) {
  color: var(--muted);
}

.privacy-checklist {
  display: grid;
  gap: 11px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.check-icon {
  width: 30px;
  height: 30px;
  background: #22c55e;
}

.check-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.check-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.difference-section {
  background: var(--surface);
}

.comparison-card {
  padding-top: 18px;
}

.comparison-tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.comparison-card h3 {
  margin-top: 12px;
}

.troubleshooting-card {
  border-left: 3px solid var(--warning);
}

.fix-line {
  margin-top: 13px !important;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
}

.fix-line strong {
  color: var(--ink);
}

.faq-section {
  background: #f1f5f9;
}

.faq-list {
  display: grid;
  gap: 9px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 15px 17px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.faq-chevron::before,
.faq-chevron::after {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 8px;
  height: 1.5px;
  background: var(--muted);
  content: "";
  transition: transform 180ms ease;
}

.faq-chevron::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-chevron::after {
  transform: rotate(0);
}

.faq-item p {
  margin: 0;
  padding: 0 17px 17px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.closing-section {
  padding: 32px 0 72px;
  background: #f1f5f9;
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  background: var(--surface-blue);
}

.closing-card h2 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.closing-card p:not(.section-label) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.closing-button {
  flex: 0 0 auto;
  background: var(--surface);
}

.noscript-note {
  margin-bottom: 32px;
  padding: 14px 16px;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: #713f12;
  font-size: 0.88rem;
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
}

.footer-brand {
  max-width: 510px;
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.footer-brand > p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-email:hover {
  color: var(--primary-hover);
}

.footer-email svg {
  width: 16px;
  height: 16px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 36px;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-group p {
  margin: 0 0 3px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-group a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--primary-hover);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.6;
}

.legal-page {
  padding: 64px 0 84px;
}

.legal-hero {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.legal-hero h1 {
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.legal-hero p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.legal-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-meta {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.legal-panel h2 {
  margin: 28px 0 9px;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-panel a {
  color: var(--primary-hover);
  font-weight: 700;
}

.legal-panel ul {
  padding-left: 20px;
}

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

@media (max-width: 960px) {
  .header-inner {
    gap: 14px;
  }

  .header-actions {
    gap: 4px;
  }

  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.8rem;
  }

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

  .privacy-layout {
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 620px);
  }

  .header-inner {
    align-items: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 0;
    padding: 12px 0 10px;
  }

  .header-actions {
    order: 2;
    width: auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: auto;
  }

  .primary-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: none;
    gap: 4px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-mobile-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .primary-nav.is-mobile-open a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .language-menu {
    order: initial;
    margin-left: 0;
  }

  .hero-section {
    padding-top: 42px;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .privacy-layout,
  .two-column-grid,
  .comparison-grid,
  .troubleshooting-grid {
    grid-template-columns: 1fr;
  }

  .closing-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    column-gap: 6px;
  }

  .brand-copy {
    font-size: 0.96rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-menu summary {
    min-width: 0;
    padding-inline: 10px;
    gap: 6px;
    font-size: 0.8rem;
  }

  .language-menu summary svg {
    width: 15px;
    height: 15px;
  }

  .language-current-full {
    display: none;
  }

  .language-current-short {
    display: inline;
  }

  .primary-nav.is-mobile-open a {
    font-size: 0.92rem;
  }

  .hero-section h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .tool-panel {
    padding: 18px 14px;
  }

  .drop-zone {
    min-height: 190px;
    padding: 16px 12px;
  }

  .preview-state {
    padding: 13px;
  }

  .preview-footer-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-footer-line > span:last-child {
    text-align: left;
  }

  .file-list-controls {
    grid-template-columns: 1fr;
  }

  .file-list-summary {
    grid-column: 1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 56px 0;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 22px;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .hero-section {
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .hero-section h1 {
    margin: 8px auto;
    font-size: clamp(2.55rem, 5.4vw, 4.3rem);
  }

  .hero-lead {
    font-size: clamp(0.98rem, 1.55vw, 1.05rem);
    line-height: 1.5;
  }

  .trust-list {
    gap: 4px 8px;
    margin-top: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body.polling-page.legal-page-body .legal-page {
  padding: clamp(52px, 8vw, 86px) 0 90px;
}

body.polling-page.legal-page-body .legal-hero {
  max-width: 820px;
  margin-bottom: 30px;
}

body.polling-page.legal-page-body .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.polling-page.legal-page-body .section-kicker::before {
  width: 25px;
  height: 1px;
  background: var(--primary);
  content: "";
}

body.polling-page.legal-page-body .legal-hero h1 {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 820;
}

body.polling-page.legal-page-body .legal-hero p {
  color: var(--muted);
}

body.polling-page.legal-page-body .legal-panel {
  border-color: var(--border);
  background: rgba(13, 26, 45, 0.84);
  box-shadow: var(--shadow-md);
}

body.polling-page.legal-page-body .legal-meta {
  color: var(--muted-light);
}

body.polling-page.legal-page-body .legal-panel h2 {
  color: var(--ink);
}

body.polling-page.legal-page-body .legal-panel p,
body.polling-page.legal-page-body .legal-panel li {
  color: var(--muted);
}

body.polling-page.legal-page-body .legal-panel a {
  color: var(--primary);
}

/* CPM Calculator homepage */
.cpm-page .hero-section {
  padding-bottom: 20px;
}

.cpm-page .hero-lead {
  max-width: 760px;
}

.cpm-tool-section {
  padding-top: 2px;
}

.cpm-tool-card {
  display: grid;
  max-width: 1080px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.cpm-input-panel,
.cpm-result-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
}

.cpm-input-panel {
  border-right: 1px solid var(--border);
}

.cpm-result-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cpm-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 22px;
}

.cpm-panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.cpm-mode-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cpm-mode-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.cpm-field-label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.cpm-field-helper {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.76rem;
  line-height: 1.5;
}

.cpm-mode-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpm-mode-button {
  display: flex;
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.cpm-mode-button small {
  color: var(--muted-light);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.2;
}

.cpm-mode-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-blue);
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.cpm-mode-button.is-selected,
.cpm-mode-button[aria-selected="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.cpm-mode-button.is-selected small,
.cpm-mode-button[aria-selected="true"] small {
  color: var(--primary-hover);
}

.cpm-mode-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.cpm-form {
  margin-top: 20px;
}

.cpm-field-stack {
  display: grid;
  gap: 17px;
}

.cpm-field-group {
  min-width: 0;
}

.cpm-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.cpm-field-state {
  min-height: 1.2em;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.cpm-money-control,
.cpm-unit-control {
  display: grid;
  min-width: 0;
  align-items: stretch;
}

.cpm-money-control {
  grid-template-columns: minmax(126px, 0.47fr) minmax(0, 1fr);
}

.cpm-suffix-control {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cpm-currency-control {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.cpm-money-control select,
.cpm-money-control input,
.cpm-unit-control input,
.cpm-input-prefix,
.cpm-input-unit {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.94rem;
}

.cpm-money-control select,
.cpm-money-control input,
.cpm-unit-control input {
  width: 100%;
  padding: 10px 12px;
  outline: 0;
}

.cpm-money-control select {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.cpm-money-control input {
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cpm-unit-control input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cpm-currency-control input {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.cpm-input-prefix,
.cpm-input-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 11px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.cpm-input-prefix {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cpm-input-unit {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cpm-field-group.is-calculated input[readonly] {
  border-color: #93c5fd;
  background: var(--surface-blue);
  color: var(--primary-hover);
  font-weight: 800;
}

.cpm-field-group.is-calculated .cpm-input-prefix,
.cpm-field-group.is-calculated .cpm-input-unit {
  border-color: #93c5fd;
  background: var(--surface-blue);
  color: var(--primary-hover);
}

.cpm-field-group input:focus,
.cpm-field-group select:focus {
  position: relative;
  z-index: 1;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.cpm-field-group.has-error input,
.cpm-field-group.has-error select {
  border-color: var(--danger);
}

.cpm-field-group.has-error .cpm-input-prefix,
.cpm-field-group.has-error .cpm-input-unit {
  border-color: var(--danger);
}

.cpm-field-group .cpm-field-helper {
  margin-top: 6px;
}

.cpm-field-error {
  margin: 5px 0 0;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.cpm-action-stack {
  margin-top: 22px;
}

.cpm-calculate-button {
  width: 100%;
  min-height: 50px;
}

.cpm-calculate-button.is-busy {
  cursor: wait;
}

.cpm-calculate-button.is-busy svg {
  animation: cpm-pulse 900ms ease-in-out infinite;
}

.cpm-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cpm-secondary-actions .secondary-button,
.cpm-secondary-actions .text-button {
  min-height: 42px;
  font-size: 0.78rem;
}

.cpm-secondary-actions .secondary-button {
  padding-inline: 12px;
}

.cpm-secondary-actions .text-button {
  padding-inline: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.cpm-secondary-actions .text-button:hover {
  color: var(--primary-hover);
}

.cpm-required-note {
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: 0.7rem;
  line-height: 1.5;
}

.cpm-result-panel .cpm-panel-heading {
  margin-bottom: 19px;
}

.cpm-result-live {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: var(--surface-blue);
}

.cpm-result-live[data-state="error"] {
  border-color: #fecaca;
  background: var(--danger-soft);
}

.cpm-result-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cpm-result-live[data-state="error"] .cpm-result-status {
  color: var(--danger);
}

.cpm-status-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
}

.cpm-result-live[data-state="error"] .cpm-status-icon {
  background: var(--danger-soft);
}

.cpm-status-icon svg,
.cpm-result-note svg,
.cpm-empty-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cpm-result-number {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
  color: var(--ink);
}

.cpm-result-number strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.cpm-result-number span {
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cpm-result-summary {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.cpm-formula-box {
  display: grid;
  gap: 6px;
  margin-top: 21px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.62);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.cpm-formula-box span,
.cpm-formula-card-label {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cpm-formula-box code,
.cpm-mode-card code,
.cpm-formula-row code,
.cpm-comparison-table code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cpm-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.cpm-result-actions .secondary-button,
.cpm-result-actions .text-button {
  min-height: 43px;
  font-size: 0.78rem;
}

.cpm-result-actions .text-button {
  padding: 8px 5px;
  color: var(--primary-hover);
}

.cpm-copy-feedback {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.cpm-result-empty {
  display: grid;
  min-height: 270px;
  place-items: center;
  align-content: center;
  gap: 11px;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.cpm-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--primary);
}

.cpm-empty-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.6;
}

.cpm-result-empty strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.cpm-result-empty p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.cpm-result-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 20px;
  color: var(--muted-light);
  font-size: 0.74rem;
  line-height: 1.55;
}

.cpm-result-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

.cpm-formula-strip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 13px 15px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
}

.cpm-formula-strip-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
}

.cpm-formula-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.cpm-formula-strip strong {
  color: var(--ink);
}

.cpm-formula-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.cpm-formula-card,
.cpm-example-card,
.cpm-platform-note {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cpm-formula-card > p:not(.cpm-formula-card-label),
.cpm-example-card > p,
.cpm-platform-note > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.cpm-large-formula {
  display: block;
  margin-top: 13px;
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cpm-formula-rows {
  display: grid;
  gap: 8px;
  margin-top: 19px;
}

.cpm-formula-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.cpm-formula-row strong {
  color: var(--ink);
  font-size: 0.8rem;
  white-space: nowrap;
}

.cpm-formula-row code {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.cpm-example-card {
  background: var(--surface-blue);
}

.cpm-example-card h3 {
  margin: 13px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.3;
}

.cpm-example-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
}

.cpm-example-equation strong {
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid #bfdbfe;
  color: var(--ink);
  font-size: 0.84rem;
}

.cpm-example-note {
  color: var(--muted-light) !important;
  font-size: 0.78rem !important;
}

.cpm-mode-card {
  display: flex;
  flex-direction: column;
}

.cpm-mode-card p {
  flex: 1 1 auto;
}

.cpm-mode-card code {
  display: block;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--primary-hover);
  font-size: 0.72rem;
}

.cpm-table-wrap {
  box-shadow: var(--shadow-sm);
}

.cpm-comparison-table {
  min-width: 700px;
}

.cpm-comparison-table tbody th {
  color: var(--primary-hover);
}

.cpm-comparison-table code {
  color: var(--ink);
  font-size: 0.75rem;
}

.cpm-use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpm-use-case-card {
  padding-right: 20px;
}

.cpm-platform-note {
  display: grid;
  gap: 24px;
  margin-top: 14px;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  background: var(--surface-blue);
}

.cpm-platform-note h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.3;
}

.cpm-platform-note > p {
  margin: 0;
}

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

.cpm-limit-card {
  border-left-color: var(--primary);
}

@keyframes cpm-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .cpm-tool-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cpm-mode-button {
    font-size: 0.73rem;
  }

  .cpm-mode-button small {
    font-size: 0.62rem;
  }

  .cpm-use-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cpm-tool-card,
  .cpm-formula-layout,
  .cpm-platform-note {
    grid-template-columns: 1fr;
  }

  .cpm-input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .cpm-result-panel {
    min-height: 0;
  }

  .cpm-mode-button {
    min-height: 61px;
  }

  .cpm-formula-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cpm-formula-row code {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .cpm-input-panel,
  .cpm-result-panel {
    padding: 18px 14px;
  }

  .cpm-mode-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .cpm-mode-grid {
    gap: 6px;
  }

  .cpm-mode-button {
    min-height: 70px;
    padding: 8px 8px;
    font-size: 0.69rem;
  }

  .cpm-mode-button small {
    font-size: 0.58rem;
  }

  .cpm-money-control {
    grid-template-columns: minmax(104px, 0.52fr) minmax(0, 1fr);
  }

  .cpm-money-control select {
    padding-inline: 7px;
    font-size: 0.69rem;
  }

  .cpm-result-number {
    gap: 6px;
  }

  .cpm-result-number strong {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .cpm-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cpm-result-actions .secondary-button,
  .cpm-result-actions .text-button {
    width: 100%;
  }

  .cpm-formula-card,
  .cpm-example-card,
  .cpm-platform-note {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpm-calculate-button.is-busy svg {
    animation: none;
  }
}

/* image2kb.wiki-inspired visual theme: paper surfaces, playful accents, and bold ink outlines. */
:root {
  --page-bg: #fff7fb;
  --surface: #fffdf8;
  --surface-muted: #fff3e5;
  --surface-blue: #f5edff;
  --ink: #372733;
  --muted: #78626f;
  --muted-light: #967f8d;
  --border: rgba(55, 39, 51, 0.16);
  --border-strong: #372733;
  --primary: #9a80ff;
  --primary-hover: #6f55df;
  --primary-soft: #eadfff;
  --accent: #4edfa6;
  --accent-soft: #e9fff6;
  --warning: #b66b35;
  --warning-soft: #fff0b8;
  --danger: #b34767;
  --danger-soft: #ffe2eb;
  --shadow-sm: 3px 3px 0 rgba(55, 39, 51, 0.12);
  --shadow-md: 6px 6px 0 rgba(55, 39, 51, 0.13);
  --shadow-focus: 0 0 0 4px rgba(154, 128, 255, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --line: #372733;
  --paper: #fffdf8;
  --cream: #fff0b8;
  --lavender: #eadfff;
  --mint: #4edfa6;
  --sun: #ffd45f;
  --peach: #ff9f82;
  --sky: #79dfff;
  --pink: #ff8fca;
  --lime: #c8ef73;
  --wash: #fff3e5;
  --paper-tint: #f5edff;
  --bounce: cubic-bezier(.2, 1.65, .47, .76);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  background: var(--page-bg);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background:
    linear-gradient(135deg, rgba(255, 212, 95, 0.18) 0 12%, transparent 12% 100%),
    linear-gradient(45deg, transparent 0 48%, rgba(154, 128, 255, 0.16) 48% 52%, transparent 52% 100%),
    radial-gradient(var(--line) 0.8px, transparent 1px);
  background-size: 220px 220px, 54px 54px, 24px 24px;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.68;
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 143, 202, 0.08) 70px 72px),
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(78, 223, 166, 0.08) 80px 82px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

::selection {
  background: var(--cream);
  color: var(--ink);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
}

.skip-link {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.16);
}

.site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  padding: 16px 0 10px;
}

.header-inner::before {
  position: absolute;
  inset: 0 -18px 0;
  z-index: -1;
  border: 1px solid rgba(55, 39, 51, 0.08);
  border-right: 0;
  border-left: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(255, 253, 248, 0.46));
  box-shadow: 0 10px 24px rgba(55, 39, 51, 0.045);
  content: "";
}

.brand {
  font-weight: 950;
  letter-spacing: 0;
  transition: transform 0.35s var(--bounce);
}

.brand:hover {
  transform: rotate(-1.5deg) translateY(-1px);
}

.brand-mark {
  border-radius: 14px;
  box-shadow: none;
  filter: drop-shadow(4px 4px 0 var(--line));
  animation: cpm-theme-mark-bob 4.6s ease-in-out infinite;
}

.brand-copy {
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-weight: 850;
}

.primary-nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(55, 39, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(55, 39, 51, 0.04);
}

.primary-nav a {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 39, 51, 0.1);
  background: transparent;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(55, 39, 51, 0.08);
}

.primary-nav a:nth-child(1):hover {
  background: rgba(255, 212, 95, 0.56);
}

.primary-nav a:nth-child(2):hover {
  background: rgba(154, 128, 255, 0.18);
}

.primary-nav a:nth-child(3):hover {
  background: rgba(78, 223, 166, 0.22);
}

.primary-nav a:nth-child(4):hover {
  background: rgba(255, 143, 202, 0.22);
}

.primary-nav .nav-privacy {
  border-color: transparent;
  background: transparent;
}

.mobile-menu-toggle {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.12);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.14);
}

.language-menu summary {
  min-height: 42px;
  border: 1.5px solid rgba(55, 39, 51, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 20px rgba(55, 39, 51, 0.08);
  color: var(--ink);
  font-weight: 850;
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: rgba(55, 39, 51, 0.3);
  background: #fff;
  box-shadow: 0 12px 24px rgba(55, 39, 51, 0.12);
}

.language-menu summary svg {
  stroke: var(--primary-hover);
}

.language-options {
  border: 1px solid rgba(55, 39, 51, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(55, 39, 51, 0.16);
}

.language-option:hover,
.language-options a:hover {
  background: var(--wash);
  color: var(--ink);
}

.language-option.is-current {
  background: var(--cream);
  color: var(--ink);
}

.hero-section {
  padding: 66px 0 24px;
}

.hero-inner {
  max-width: 900px;
}

.eyebrow,
.section-label,
.panel-kicker {
  color: var(--ink);
  font-weight: 950;
}

.eyebrow {
  gap: 8px;
  padding: 7px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--line);
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--mint);
  box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--violet);
  margin-right: 27px;
}

.hero-section h1 {
  max-width: 900px;
  margin: 20px auto 17px;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-shadow: 4px 4px 0 #fff, 8px 8px 0 rgba(55, 39, 51, 0.1);
}

.hero-lead {
  max-width: 760px;
  font-weight: 650;
}

.trust-list {
  gap: 9px;
  margin-top: 20px;
}

.trust-list li {
  min-height: 36px;
  padding: 6px 11px;
  border: 1.5px solid rgba(55, 39, 51, 0.2);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.trust-list li:nth-child(1) {
  background: var(--sun);
  transform: rotate(-2deg);
}

.trust-list li:nth-child(2) {
  background: var(--mint);
  transform: rotate(1deg);
}

.trust-list li:nth-child(3) {
  background: var(--lavender);
  transform: rotate(-1deg);
}

.trust-dot {
  background: var(--ink);
}

.tool-section {
  padding: 8px 0 54px;
}

.cpm-tool-card,
.tool-card {
  border: 2px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 7px 8px 0 rgba(55, 39, 51, 0.12);
}

.cpm-input-panel {
  border-right: 2px solid rgba(55, 39, 51, 0.13);
  background: rgba(255, 253, 248, 0.74);
}

.cpm-result-panel {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(245, 237, 255, 0.98));
}

.cpm-panel-heading h2,
.panel-heading h3 {
  font-weight: 950;
  letter-spacing: -0.035em;
}

.step-index,
.detail-index,
.step-number {
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.12);
}

.step-index {
  background: var(--sun);
  color: var(--ink);
}

.step-index-accent,
.detail-index {
  background: var(--mint);
  color: #10281c;
}

.panel-kicker,
.section-label {
  color: var(--primary-hover);
}

.cpm-mode-button {
  border: 2px solid rgba(55, 39, 51, 0.22);
  border-radius: 13px;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.09);
  color: var(--muted);
  font-weight: 900;
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--bounce), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cpm-mode-button:hover {
  border-color: var(--line);
  background: var(--wash);
  color: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.12);
}

.cpm-mode-button.is-selected,
.cpm-mode-button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--sun);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.14);
}

.cpm-mode-button.is-selected small,
.cpm-mode-button[aria-selected="true"] small {
  color: var(--muted);
}

.cpm-money-control select,
.cpm-money-control input,
.cpm-unit-control input,
.cpm-input-prefix,
.cpm-input-unit {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.cpm-money-control select {
  border-width: 2px;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.cpm-money-control input {
  border-width: 2px;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.cpm-unit-control input {
  border-width: 2px;
  border-radius: 14px 0 0 14px;
}

.cpm-input-prefix,
.cpm-input-unit {
  border-width: 2px;
  background: var(--wash);
  color: var(--muted);
}

.cpm-input-prefix {
  border-radius: 14px 0 0 14px;
}

.cpm-input-unit {
  border-radius: 0 14px 14px 0;
}

.cpm-currency-control input {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.cpm-field-group.is-calculated input[readonly],
.cpm-field-group.is-calculated .cpm-input-prefix,
.cpm-field-group.is-calculated .cpm-input-unit {
  border-color: var(--line);
  background: var(--lavender);
  color: var(--primary-hover);
}

.cpm-field-group input:focus,
.cpm-field-group select:focus {
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-focus);
}

.cpm-field-group.has-error input,
.cpm-field-group.has-error select,
.cpm-field-group.has-error .cpm-input-prefix,
.cpm-field-group.has-error .cpm-input-unit {
  border-color: var(--danger);
}

.cpm-field-error {
  color: var(--danger);
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  border-width: 2px;
  border-radius: 18px;
  font-weight: 950;
  transition: transform 0.24s var(--bounce), box-shadow 0.24s var(--bounce), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.primary-button,
.cpm-calculate-button {
  border-color: var(--line);
  background: var(--mint);
  color: #10281c;
  box-shadow: 5px 6px 0 rgba(55, 39, 51, 0.14);
}

.primary-button:hover,
.cpm-calculate-button:hover {
  border-color: var(--line);
  background: var(--lime);
  color: #10281c;
  transform: translate(-2px, -3px) rotate(-1deg);
  box-shadow: 9px 10px 0 rgba(55, 39, 51, 0.16);
}

.secondary-button {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 5px 0 rgba(55, 39, 51, 0.11);
}

.secondary-button:hover {
  border-color: var(--line);
  background: var(--cream);
  color: var(--ink);
  transform: translate(-1px, -2px) rotate(1deg);
  box-shadow: 7px 8px 0 rgba(55, 39, 51, 0.14);
}

.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--primary-hover);
  box-shadow: none;
}

.text-button:hover {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.cpm-result-live {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--lavender);
  box-shadow: 5px 5px 0 rgba(55, 39, 51, 0.1);
}

.cpm-result-live[data-state="error"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.cpm-result-status {
  color: #187a55;
}

.cpm-result-live[data-state="error"] .cpm-result-status {
  color: var(--danger);
}

.cpm-status-icon {
  border: 2px solid var(--line);
  background: var(--mint);
  color: var(--ink);
}

.cpm-result-live[data-state="error"] .cpm-status-icon {
  background: var(--peach);
}

.cpm-result-number strong {
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.72);
}

.cpm-result-number span,
.cpm-large-formula,
.cpm-mode-card code {
  color: var(--primary-hover);
}

.cpm-formula-box,
.cpm-example-equation {
  border: 2px solid rgba(55, 39, 51, 0.18);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.cpm-formula-box code,
.cpm-mode-card code,
.cpm-formula-row code,
.cpm-comparison-table code {
  color: var(--ink);
}

.cpm-result-empty {
  border: 2px dashed rgba(55, 39, 51, 0.38);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.7);
}

.cpm-empty-icon {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.12);
}

.cpm-result-note svg {
  color: #187a55;
}

.cpm-formula-strip {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.1);
}

.cpm-formula-strip-icon {
  border: 2px solid var(--line);
  background: var(--violet);
  color: #fff;
}

.cpm-formula-layout,
.cpm-formula-card,
.cpm-example-card,
.cpm-platform-note {
  position: relative;
}

.cpm-formula-card,
.cpm-example-card,
.cpm-platform-note {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cpm-example-card {
  background: var(--cream);
}

.cpm-example-equation {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.78);
}

.cpm-example-equation strong {
  border-top-color: rgba(55, 39, 51, 0.22);
}

.cpm-platform-note {
  background: var(--mint);
}

.cpm-mode-card:nth-child(1) {
  background: var(--sun);
}

.cpm-mode-card:nth-child(2) {
  background: var(--lavender);
}

.cpm-mode-card:nth-child(3) {
  background: var(--mint);
}

.cpm-table-wrap,
.support-table-wrap {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.support-table th,
.support-table td {
  border-bottom-color: rgba(55, 39, 51, 0.16);
}

.support-table thead th {
  background: var(--cream);
  color: var(--ink);
}

.support-table tbody th,
.cpm-comparison-table tbody th {
  color: var(--primary-hover);
}

.content-section {
  padding: 78px 0;
  border-top: 2px dashed rgba(55, 39, 51, 0.13);
}

.content-section-tinted,
.faq-section,
.closing-section {
  background: rgba(255, 253, 248, 0.56);
}

.step-card,
.detail-card,
.comparison-card,
.troubleshooting-card {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--bounce), box-shadow 0.28s var(--bounce);
}

.step-card:hover,
.detail-card:hover,
.comparison-card:hover,
.troubleshooting-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 8px 8px 0 rgba(55, 39, 51, 0.13);
}

.step-card:nth-child(2),
.comparison-card:nth-child(2) {
  background: var(--lavender);
  transform: rotate(0.7deg);
}

.step-card:nth-child(3),
.comparison-card:nth-child(3) {
  background: var(--mint);
  transform: rotate(-0.7deg);
}

.step-card:nth-child(4) {
  background: var(--cream);
  transform: rotate(0.5deg);
}

.comparison-tag,
.legal-meta {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
  color: var(--ink);
}

.troubleshooting-card {
  border-left: 5px solid var(--violet);
}

.faq-item {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.1);
}

.faq-item summary {
  min-height: 62px;
  padding: 15px 17px;
  color: var(--ink);
  font-weight: 900;
}

.faq-chevron {
  border: 2px solid var(--line);
  background: var(--cream);
}

.faq-chevron::before,
.faq-chevron::after {
  background: var(--ink);
}

.closing-section {
  padding: 38px 0 78px;
}

.closing-card {
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--lavender);
  box-shadow: 7px 7px 0 rgba(55, 39, 51, 0.12);
}

.closing-button {
  background: var(--sun);
}

.noscript-note {
  border: 2px solid var(--warning);
  border-radius: 16px;
  background: var(--warning-soft);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.1);
}

.site-footer {
  margin-top: 18px;
  border-top: 4px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.footer-logo {
  color: var(--ink);
  font-weight: 950;
}

.footer-logo img {
  filter: drop-shadow(3px 3px 0 var(--line));
}

.footer-email,
.footer-nav a {
  color: var(--muted);
}

.footer-email:hover,
.footer-nav a:hover {
  color: var(--ink);
}

.info,
.legal-panel,
.card,
.api-keys-table-container,
.credits-table-container {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.info h2,
.info h3,
.legal-panel h2,
.legal-panel h3 {
  font-weight: 950;
}

.legal-panel a {
  color: var(--ink);
  text-decoration-color: var(--violet);
}

@keyframes cpm-theme-mark-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(-1.5deg);
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 0 10px;
  }

  .header-inner::before {
    inset: 0 -14px 0;
  }

  .primary-nav.is-mobile-open {
    border: 2px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 5px 5px 0 rgba(55, 39, 51, 0.12);
  }

  .primary-nav.is-mobile-open a {
    border-radius: 12px;
  }

  .hero-section {
    padding-top: 50px;
  }

  .hero-section h1 {
    font-size: clamp(3rem, 13vw, 5rem);
    letter-spacing: -0.07em;
  }

  .cpm-tool-card,
  .tool-card {
    border-radius: 24px;
    box-shadow: 5px 6px 0 rgba(55, 39, 51, 0.12);
  }

  .cpm-input-panel {
    border-right: 0;
    border-bottom: 2px solid rgba(55, 39, 51, 0.13);
  }

  .content-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy {
    font-size: 0.96rem;
  }

  .hero-section h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .trust-list li {
    font-size: 0.74rem;
  }

  .cpm-tool-card,
  .tool-card {
    border-radius: 20px;
  }

  .step-card:nth-child(n),
  .comparison-card:nth-child(n) {
    transform: none;
  }
}

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

/* Calmer refinement: keep the reference palette while restoring a clearer calculator-first hierarchy. */
:root {
  --violet: #9a80ff;
}

.cpm-formula-strip-icon {
  border-width: 1.5px;
  background: var(--violet);
  color: #fff;
}

body::before {
  opacity: 0.1;
  background:
    linear-gradient(135deg, rgba(255, 212, 95, 0.11) 0 12%, transparent 12% 100%),
    linear-gradient(45deg, transparent 0 49%, rgba(154, 128, 255, 0.08) 49% 51%, transparent 51%),
    radial-gradient(var(--line) 0.6px, transparent 0.9px);
  background-size: 260px 260px, 72px 72px, 28px 28px;
}

body::after {
  opacity: 0.2;
}

.hero-section {
  padding-top: 56px;
}

.hero-section h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: -0.055em;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.eyebrow {
  border-width: 1.5px;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.12);
}

.trust-list li,
.trust-list li:nth-child(1),
.trust-list li:nth-child(2),
.trust-list li:nth-child(3) {
  border-width: 1px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: none;
  transform: none;
}

.trust-list li:nth-child(1) .trust-dot {
  background: var(--sun);
}

.trust-list li:nth-child(2) .trust-dot {
  background: var(--mint);
}

.trust-list li:nth-child(3) .trust-dot {
  background: var(--violet);
}

.cpm-tool-card,
.tool-card {
  border-width: 1.5px;
  border-radius: 26px;
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.cpm-input-panel {
  border-right-width: 1.5px;
}

.cpm-mode-button {
  border-width: 1.5px;
  box-shadow: none;
}

.cpm-mode-button:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.cpm-mode-button.is-selected,
.cpm-mode-button[aria-selected="true"] {
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
}

.cpm-money-control select,
.cpm-money-control input,
.cpm-unit-control input,
.cpm-input-prefix,
.cpm-input-unit {
  border-width: 1.5px;
}

.primary-button,
.secondary-button,
.text-button,
.icon-button {
  box-shadow: 2px 3px 0 rgba(55, 39, 51, 0.1);
}

.primary-button:hover,
.cpm-calculate-button:hover {
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.12);
}

.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.11);
}

.cpm-result-live {
  border-width: 1.5px;
  background: rgba(234, 223, 255, 0.58);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.08);
}

.cpm-formula-box,
.cpm-example-equation {
  border-width: 1px;
  box-shadow: none;
}

.cpm-formula-strip {
  border-width: 1.5px;
  background: rgba(255, 240, 184, 0.72);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.cpm-formula-card,
.cpm-example-card,
.cpm-platform-note {
  border-width: 1.5px;
  border-radius: 22px;
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.cpm-example-card,
.cpm-platform-note,
.cpm-mode-card:nth-child(1),
.cpm-mode-card:nth-child(2),
.cpm-mode-card:nth-child(3) {
  background: var(--paper);
}

.cpm-mode-card:nth-child(1),
.cpm-mode-card:nth-child(2),
.cpm-mode-card:nth-child(3) {
  transform: none;
}

.cpm-table-wrap,
.support-table-wrap,
.step-card,
.detail-card,
.comparison-card,
.troubleshooting-card,
.info,
.legal-panel,
.card,
.api-keys-table-container,
.credits-table-container {
  border-width: 1.5px;
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
}

.step-card:nth-child(2),
.step-card:nth-child(3),
.step-card:nth-child(4),
.comparison-card:nth-child(2),
.comparison-card:nth-child(3) {
  background: var(--paper);
  transform: none;
}

.faq-item {
  border-width: 1.5px;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.closing-card {
  border-width: 1.5px;
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.site-footer {
  border-top-width: 2px;
}

@media (max-width: 760px) {
  .hero-section h1 {
    font-size: clamp(2.75rem, 12vw, 4.4rem);
  }

  .cpm-tool-card,
  .tool-card {
    border-radius: 22px;
    box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
  }
}

/* Polling Rate Test homepage */
body.polling-page {
  --page-bg: #07101e;
  --surface: #0d1a2d;
  --surface-muted: #0a1526;
  --surface-blue: #102640;
  --ink: #f4f8ff;
  --muted: #aabbd0;
  --muted-light: #71859f;
  --border: #203a5a;
  --border-strong: #345477;
  --primary: #5fe3ff;
  --primary-hover: #96eeff;
  --primary-soft: rgba(95, 227, 255, 0.12);
  --accent: #73e7a9;
  --accent-soft: rgba(115, 231, 169, 0.12);
  --warning: #ffd27b;
  --warning-soft: rgba(255, 210, 123, 0.12);
  --danger: #ff8d9d;
  --danger-soft: rgba(255, 141, 157, 0.12);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-focus: 0 0 0 4px rgba(95, 227, 255, 0.2);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --line: #1a3150;
  --paper: #0d1a2d;
  --cream: #122640;
  --lavender: #172348;
  --mint: #73e7a9;
  --sun: #ffd27b;
  --peach: #ff9d8c;
  --sky: #5fe3ff;
  --pink: #ec9dff;
  --lime: #b7ee83;
  --wash: #091625;
  --paper-tint: #101e35;
  background:
    radial-gradient(circle at 18% 0%, rgba(95, 227, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(116, 104, 255, 0.12), transparent 30rem),
    var(--page-bg);
  color: var(--ink);
}

body.polling-page::before,
body.polling-page::after {
  display: none;
  content: none;
}

body.polling-page ::selection {
  background: rgba(95, 227, 255, 0.28);
  color: var(--ink);
}

body.polling-page .wrap,
body.polling-page .polling-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

body.polling-page .site-header {
  border-bottom: 1px solid rgba(95, 227, 255, 0.12);
  background: rgba(7, 16, 30, 0.86);
  backdrop-filter: blur(18px);
}

body.polling-page .header-inner {
  min-height: 74px;
  padding: 12px 0;
}

body.polling-page .header-inner::before {
  display: none;
  content: none;
}

body.polling-page .brand,
body.polling-page .footer-logo {
  color: var(--ink);
}

body.polling-page .brand:hover {
  transform: translateY(-1px);
}

body.polling-page .brand-mark {
  border: 1px solid rgba(95, 227, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 0 0 5px rgba(95, 227, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.24);
  filter: none;
  animation: none;
}

body.polling-page .brand-copy {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.025em;
}

body.polling-page .brand-copy small {
  color: var(--muted-light);
  font-weight: 700;
}

body.polling-page .primary-nav {
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(95, 227, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 26, 45, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.16);
}

body.polling-page .primary-nav a {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

body.polling-page .primary-nav a:hover {
  border-color: rgba(95, 227, 255, 0.22);
  background: rgba(95, 227, 255, 0.1);
  color: var(--primary-hover);
  box-shadow: none;
}

body.polling-page .mobile-menu-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

body.polling-page .mobile-menu-toggle:hover,
body.polling-page .mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 82px) 0 42px;
  border-bottom: 1px solid rgba(95, 227, 255, 0.12);
}

body.polling-page .polling-hero::before {
  position: absolute;
  top: -10rem;
  right: -5rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(95, 227, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(95, 227, 255, 0.025), 0 0 0 56px rgba(95, 227, 255, 0.02);
  content: "";
  pointer-events: none;
}

body.polling-page .polling-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(260px, 0.66fr);
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
}

body.polling-page .polling-hero-copy {
  max-width: 780px;
}

body.polling-page .polling-eyebrow,
body.polling-page .polling-section-label,
body.polling-page .polling-panel-kicker,
body.polling-page .polling-card-label {
  margin: 0;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.polling-page .polling-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

body.polling-page .polling-eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--primary);
  content: "";
}

body.polling-page .polling-hero h1 {
  max-width: 740px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.3rem, 7vw, 6.65rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

body.polling-page .polling-hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.72;
}

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

body.polling-page .polling-trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(95, 227, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(13, 26, 45, 0.7);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

body.polling-page .polling-trust-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(115, 231, 169, 0.34);
  border-radius: 50%;
  background: rgba(115, 231, 169, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

body.polling-page .polling-trust-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.polling-page .polling-tool-section {
  padding: 26px 0 78px;
}

body.polling-page .polling-tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(13, 26, 45, 0.86);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(95, 227, 255, 0.04);
}

body.polling-page .polling-control-panel,
body.polling-page .polling-result-panel {
  min-width: 0;
  padding: clamp(22px, 3.2vw, 38px);
}

body.polling-page .polling-control-panel {
  border-right: 1px solid var(--border);
}

body.polling-page .polling-result-panel {
  background:
    linear-gradient(180deg, rgba(20, 37, 62, 0.8), rgba(9, 20, 36, 0.92)),
    var(--surface);
}

body.polling-page .polling-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}

body.polling-page .polling-step-index {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(95, 227, 255, 0.32);
  border-radius: 11px;
  background: rgba(95, 227, 255, 0.1);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

body.polling-page .polling-step-index-accent {
  border-color: rgba(115, 231, 169, 0.34);
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-panel-heading h2,
body.polling-page .polling-surface-heading h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

body.polling-page .polling-surface-heading h3 {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

body.polling-page .polling-controls {
  display: grid;
  gap: 17px;
}

body.polling-page .polling-duration-field {
  display: grid;
  gap: 8px;
}

body.polling-page .polling-label-row,
body.polling-page .polling-surface-heading,
body.polling-page .polling-stability-heading,
body.polling-page .polling-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.polling-page .polling-field-label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

body.polling-page .polling-field-help {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.4;
  text-align: right;
}

body.polling-page #pollingDuration {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: 0;
  background: var(--surface-muted);
  color: var(--ink);
  cursor: pointer;
}

body.polling-page #pollingDuration:hover,
body.polling-page #pollingDuration:focus {
  border-color: var(--primary);
  background: var(--surface-blue);
}

body.polling-page .polling-action-row,
body.polling-page .polling-secondary-actions,
body.polling-page .polling-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.polling-page .polling-primary-button,
body.polling-page .polling-secondary-button,
body.polling-page .polling-ghost-button,
body.polling-page .polling-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

body.polling-page .polling-primary-button,
body.polling-page .polling-secondary-button,
body.polling-page .polling-ghost-button {
  padding: 10px 15px;
}

body.polling-page .polling-primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #04121e;
  box-shadow: 0 8px 22px rgba(95, 227, 255, 0.16);
}

body.polling-page .polling-primary-button:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 12px 28px rgba(95, 227, 255, 0.22);
}

body.polling-page .polling-secondary-button {
  border: 1px solid var(--border-strong);
  background: rgba(18, 35, 58, 0.72);
  color: var(--ink);
}

body.polling-page .polling-secondary-button:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

body.polling-page .polling-ghost-button {
  border: 1px solid rgba(95, 227, 255, 0.24);
  background: transparent;
  color: var(--primary);
}

body.polling-page .polling-ghost-button:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: var(--primary-soft);
}

body.polling-page .polling-text-button {
  min-height: 40px;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

body.polling-page .polling-text-button:hover {
  color: var(--primary-hover);
}

body.polling-page .polling-primary-button:disabled,
body.polling-page .polling-secondary-button:disabled,
body.polling-page .polling-ghost-button:disabled,
body.polling-page .polling-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

body.polling-page .polling-primary-button svg,
body.polling-page .polling-secondary-button svg,
body.polling-page .polling-ghost-button svg,
body.polling-page .polling-browser-note svg,
body.polling-page .polling-status-icon svg,
body.polling-page .polling-check svg,
body.polling-page .polling-closing-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.polling-page .polling-focus-note,
body.polling-page .polling-surface-note,
body.polling-page .polling-status,
body.polling-page .polling-error {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.75rem;
  line-height: 1.55;
}

body.polling-page .polling-focus-note {
  max-width: 470px;
  margin-top: -4px;
}

body.polling-page .polling-surface-heading {
  align-items: center;
  margin: 34px 0 12px;
}

body.polling-page .polling-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.polling-page .polling-live-dot > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-light);
  box-shadow: 0 0 0 4px rgba(113, 133, 159, 0.1);
}

body.polling-page .polling-live-dot.is-active {
  color: var(--accent);
}

body.polling-page .polling-live-dot.is-active > span {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(115, 231, 169, 0.13), 0 0 16px rgba(115, 231, 169, 0.55);
}

body.polling-page .polling-test-surface {
  position: relative;
  display: grid;
  min-height: 292px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  outline: 0;
  background-color: #091525;
  background-image:
    linear-gradient(rgba(95, 227, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 227, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(95, 227, 255, 0.12), transparent 55%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  cursor: crosshair;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body.polling-page .polling-test-surface:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

body.polling-page .polling-test-surface.is-running {
  border-color: rgba(95, 227, 255, 0.8);
  background-color: #0a1c2d;
  box-shadow: inset 0 0 44px rgba(95, 227, 255, 0.08), 0 0 0 4px rgba(95, 227, 255, 0.05);
}

body.polling-page .polling-test-surface.is-outside {
  border-color: var(--warning);
  background-color: #191b23;
}

body.polling-page .polling-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: repeating-linear-gradient(135deg, transparent 0 31px, rgba(95, 227, 255, 0.04) 31px 32px);
  pointer-events: none;
}

body.polling-page .polling-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(95, 227, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

body.polling-page .polling-crosshair::before,
body.polling-page .polling-crosshair::after {
  position: absolute;
  background: rgba(95, 227, 255, 0.16);
  content: "";
}

body.polling-page .polling-crosshair::before {
  top: 50%;
  right: -26px;
  left: -26px;
  height: 1px;
}

body.polling-page .polling-crosshair::after {
  top: -26px;
  bottom: -26px;
  left: 50%;
  width: 1px;
}

body.polling-page .polling-crosshair span {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(95, 227, 255, 0.7);
}

body.polling-page .polling-crosshair span:first-child {
  top: -3px;
  left: calc(50% - 2px);
}

body.polling-page .polling-crosshair span:last-child {
  bottom: -3px;
  left: calc(50% - 2px);
}

body.polling-page .polling-surface-copy {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 280px;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

body.polling-page .polling-mouse-glyph {
  display: grid;
  width: 54px;
  height: 68px;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(95, 227, 255, 0.35);
  border-radius: 26px;
  background: rgba(95, 227, 255, 0.08);
  color: var(--primary);
  box-shadow: 0 0 26px rgba(95, 227, 255, 0.08);
}

body.polling-page .polling-mouse-glyph svg {
  width: 31px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

body.polling-page .polling-surface-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

body.polling-page .polling-surface-copy > span:last-of-type {
  color: var(--muted-light);
  font-size: 0.76rem;
  line-height: 1.55;
}

body.polling-page .polling-cursor-ping {
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border: 2px solid #07101e;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(115, 231, 169, 0.16), 0 0 20px rgba(115, 231, 169, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

body.polling-page .polling-test-surface.is-running .polling-cursor-ping {
  opacity: 1;
}

body.polling-page .polling-surface-note {
  margin-top: 9px;
}

body.polling-page .polling-status {
  min-height: 23px;
  margin-top: 14px;
  color: var(--primary);
}

body.polling-page .polling-error {
  margin-top: 8px;
  color: var(--danger);
}

body.polling-page .polling-result-live {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 21, 38, 0.82);
  transition: border-color 180ms ease, background-color 180ms ease;
}

body.polling-page .polling-result-live[data-state="example"] {
  border-color: rgba(95, 227, 255, 0.26);
  background: linear-gradient(145deg, rgba(16, 38, 64, 0.82), rgba(10, 21, 38, 0.88));
}

body.polling-page .polling-result-live[data-state="success"] {
  border-color: rgba(115, 231, 169, 0.34);
  background: linear-gradient(145deg, rgba(18, 53, 53, 0.72), rgba(10, 28, 39, 0.9));
}

body.polling-page .polling-result-live[data-state="warning"] {
  border-color: rgba(255, 210, 123, 0.34);
  background: linear-gradient(145deg, rgba(55, 44, 29, 0.68), rgba(25, 25, 31, 0.9));
}

body.polling-page .polling-result-live[data-state="error"] {
  border-color: rgba(255, 141, 157, 0.34);
  background: linear-gradient(145deg, rgba(61, 31, 47, 0.65), rgba(28, 21, 35, 0.9));
}

body.polling-page .polling-result-live[data-state="running"] {
  border-color: rgba(95, 227, 255, 0.38);
  background: linear-gradient(145deg, rgba(17, 43, 63, 0.74), rgba(10, 21, 38, 0.9));
}

body.polling-page .polling-result-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.polling-page .polling-status-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(115, 231, 169, 0.34);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-result-live[data-state="warning"] .polling-status-icon {
  border-color: rgba(255, 210, 123, 0.38);
  background: var(--warning-soft);
  color: var(--warning);
}

body.polling-page .polling-result-live[data-state="error"] .polling-status-icon {
  border-color: rgba(255, 141, 157, 0.38);
  background: var(--danger-soft);
  color: var(--danger);
}

body.polling-page .polling-result-live[data-state="running"] .polling-status-icon {
  border-color: rgba(95, 227, 255, 0.38);
  background: var(--primary-soft);
  color: var(--primary);
}

body.polling-page .polling-result-number {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 19px;
}

body.polling-page .polling-result-number strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(3.2rem, 6vw, 5.35rem);
  font-weight: 850;
  letter-spacing: -0.09em;
  line-height: 0.95;
}

body.polling-page .polling-result-number span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
}

body.polling-page .polling-result-summary {
  min-height: 47px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

body.polling-page .polling-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 19px;
}

body.polling-page .polling-metric {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid rgba(95, 227, 255, 0.13);
  border-radius: 12px;
  background: rgba(13, 26, 45, 0.75);
}

body.polling-page .polling-metric span,
body.polling-page .polling-stability-heading span,
body.polling-page .polling-chart-heading span {
  display: block;
  overflow: hidden;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.polling-page .polling-metric strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.polling-page .polling-stability-block {
  margin-top: 21px;
}

body.polling-page .polling-stability-heading {
  align-items: center;
}

body.polling-page .polling-stability-heading strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
}

body.polling-page .polling-progress {
  height: 7px;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(113, 133, 159, 0.16);
}

body.polling-page .polling-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(115, 231, 169, 0.3);
  transition: width 300ms ease;
}

body.polling-page .polling-stability-label {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

body.polling-page .polling-chart-card {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgba(95, 227, 255, 0.13);
  border-radius: 15px;
  background: rgba(7, 16, 30, 0.54);
}

body.polling-page .polling-chart-heading {
  align-items: center;
}

body.polling-page .polling-chart-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

body.polling-page .polling-chart-heading span {
  max-width: 55%;
  color: var(--primary);
  text-align: right;
  text-transform: none;
}

body.polling-page .polling-chart {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  height: 132px;
  gap: 8px;
  margin-top: 13px;
}

body.polling-page .polling-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 2px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1;
  text-align: right;
}

body.polling-page .polling-chart-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  min-width: 0;
  padding: 0 3px 2px;
  border-bottom: 1px solid rgba(95, 227, 255, 0.18);
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(95, 227, 255, 0.07) 31px 32px);
}

body.polling-page .polling-chart-bar {
  display: block;
  min-width: 5px;
  height: var(--bar-height, 0%);
  flex: 1 1 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), #6b75ff);
  box-shadow: 0 0 13px rgba(95, 227, 255, 0.15);
  transition: height 220ms ease;
}

body.polling-page .polling-chart-summary {
  min-height: 34px;
  margin: 10px 0 0;
  color: var(--muted-light);
  font-size: 0.68rem;
  line-height: 1.5;
}

body.polling-page .polling-result-actions {
  margin-top: 17px;
}

body.polling-page .polling-copy-feedback {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
}

body.polling-page .polling-browser-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 210, 123, 0.18);
  border-radius: 13px;
  background: rgba(255, 210, 123, 0.06);
  color: var(--warning);
}

body.polling-page .polling-browser-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

body.polling-page .polling-browser-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.58;
}

body.polling-page .polling-content-section {
  padding: clamp(62px, 8vw, 96px) 0;
  border-top: 1px solid rgba(95, 227, 255, 0.1);
}

body.polling-page .polling-reference-section {
  background: linear-gradient(180deg, rgba(13, 26, 45, 0.55), rgba(7, 16, 30, 0.2));
}

body.polling-page .polling-section-intro {
  max-width: 770px;
  margin-bottom: 28px;
}

body.polling-page .polling-section-intro-left {
  margin-left: 0;
  text-align: left;
}

body.polling-page .polling-section-intro h2,
body.polling-page .polling-narrow-copy h2,
body.polling-page .polling-privacy-layout h2,
body.polling-page .polling-closing-card h2 {
  margin: 9px 0 13px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

body.polling-page .polling-section-intro p:not(.polling-section-label),
body.polling-page .polling-narrow-copy > p,
body.polling-page .polling-privacy-layout > div > p,
body.polling-page .polling-closing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

body.polling-page .polling-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13, 26, 45, 0.72);
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-rate-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  text-align: left;
}

body.polling-page .polling-rate-table th,
body.polling-page .polling-rate-table td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(95, 227, 255, 0.1);
  vertical-align: middle;
}

body.polling-page .polling-rate-table thead th {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.polling-page .polling-rate-table tbody tr:last-child th,
body.polling-page .polling-rate-table tbody tr:last-child td {
  border-bottom: 0;
}

body.polling-page .polling-rate-table tbody th {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 750;
}

body.polling-page .polling-rate-table td {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

body.polling-page .polling-rate-table code {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.78rem;
}

body.polling-page .polling-rate-chip {
  display: inline-flex;
  min-width: 78px;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid rgba(95, 227, 255, 0.2);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.72rem;
}

body.polling-page .polling-reference-note {
  margin: 13px 0 0;
  color: var(--muted-light);
  font-size: 0.72rem;
  line-height: 1.6;
}

body.polling-page .polling-steps-grid,
body.polling-page .polling-interpretation-grid,
body.polling-page .polling-limit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.polling-page .polling-step-card,
body.polling-page .polling-info-card,
body.polling-page .polling-limit-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13, 26, 45, 0.72);
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-step-number,
body.polling-page .polling-card-index,
body.polling-page .polling-limit-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(95, 227, 255, 0.26);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
}

body.polling-page .polling-step-card h3,
body.polling-page .polling-info-card h3,
body.polling-page .polling-limit-card h3,
body.polling-page .polling-method-list h3,
body.polling-page .polling-tip-panel h3 {
  margin: 17px 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body.polling-page .polling-step-card p,
body.polling-page .polling-info-card p,
body.polling-page .polling-limit-card p,
body.polling-page .polling-method-card p,
body.polling-page .polling-method-list p,
body.polling-page .polling-tip-panel li {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.68;
}

body.polling-page .polling-narrow-copy {
  max-width: 820px;
}

body.polling-page .polling-narrow-copy > p + p {
  margin-top: 14px;
}

body.polling-page .polling-method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
}

body.polling-page .polling-method-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(95, 227, 255, 0.26);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 38, 64, 0.8), rgba(11, 24, 42, 0.86));
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-formula {
  display: block;
  margin: 19px 0 18px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.5;
}

body.polling-page .polling-method-list {
  display: grid;
  gap: 10px;
}

body.polling-page .polling-method-list article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(13, 26, 45, 0.64);
}

body.polling-page .polling-method-list h3 {
  margin: 0 0 5px;
}

body.polling-page .polling-mini-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(115, 231, 169, 0.25);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
}

body.polling-page .polling-interpretation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.polling-page .polling-card-index {
  border-color: rgba(236, 157, 255, 0.27);
  background: rgba(236, 157, 255, 0.1);
  color: var(--pink);
}

body.polling-page .polling-tip-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 26px;
  margin-top: 15px;
  padding: 22px;
  border: 1px solid rgba(115, 231, 169, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, rgba(115, 231, 169, 0.09), rgba(13, 26, 45, 0.7));
}

body.polling-page .polling-tip-panel h3 {
  margin-top: 9px;
}

body.polling-page .polling-tip-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.polling-page .polling-tip-panel li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

body.polling-page .polling-tip-panel li > span {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 900;
}

body.polling-page .polling-limit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.polling-page .polling-limit-mark {
  border-color: rgba(255, 210, 123, 0.28);
  background: var(--warning-soft);
  color: var(--warning);
}

body.polling-page .polling-source-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--primary);
  background: rgba(95, 227, 255, 0.05);
}

body.polling-page .polling-source-note p {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.73rem;
  line-height: 1.65;
}

body.polling-page .polling-source-note a,
body.polling-page .polling-content-section a {
  color: var(--primary);
  font-weight: 750;
}

body.polling-page .polling-privacy-section {
  background: linear-gradient(100deg, rgba(16, 38, 64, 0.7), rgba(7, 16, 30, 0.35));
}

body.polling-page .polling-privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}

body.polling-page .polling-privacy-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.polling-page .polling-privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

body.polling-page .polling-check {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border: 1px solid rgba(115, 231, 169, 0.32);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-check svg {
  width: 14px;
  height: 14px;
}

body.polling-page .polling-faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.67fr) minmax(0, 1.33fr);
  align-items: start;
  gap: 54px;
}

body.polling-page .polling-faq-list {
  display: grid;
  gap: 9px;
}

body.polling-page .polling-faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 26, 45, 0.7);
}

body.polling-page .polling-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 17px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  list-style: none;
}

body.polling-page .polling-faq-item summary::-webkit-details-marker {
  display: none;
}

body.polling-page .polling-faq-item summary::marker {
  content: "";
}

body.polling-page .polling-faq-item summary:hover {
  color: var(--primary-hover);
}

body.polling-page .polling-faq-item[open] {
  border-color: rgba(95, 227, 255, 0.35);
  background: rgba(16, 38, 64, 0.74);
}

body.polling-page .polling-faq-item p {
  margin: -2px 17px 17px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

body.polling-page .polling-faq-chevron {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid rgba(95, 227, 255, 0.25);
  border-radius: 50%;
}

body.polling-page .polling-faq-chevron::before,
body.polling-page .polling-faq-chevron::after {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 6px;
  height: 1px;
  background: var(--primary);
  content: "";
  transition: transform 180ms ease;
}

body.polling-page .polling-faq-chevron::after {
  transform: rotate(90deg);
}

body.polling-page .polling-faq-item[open] .polling-faq-chevron::after {
  transform: rotate(0);
}

body.polling-page .polling-closing-section {
  padding: 25px 0 86px;
}

body.polling-page .polling-closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(23px, 4vw, 38px);
  border: 1px solid rgba(95, 227, 255, 0.28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(95, 227, 255, 0.14), transparent 25rem),
    linear-gradient(120deg, rgba(16, 38, 64, 0.92), rgba(11, 24, 42, 0.92));
  box-shadow: var(--shadow-md);
}

body.polling-page .polling-closing-card h2 {
  margin-bottom: 9px;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
}

body.polling-page .polling-closing-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.polling-page .polling-noscript-note {
  margin-bottom: 50px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 210, 123, 0.26);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

body.polling-page .site-footer {
  border-top: 1px solid rgba(95, 227, 255, 0.14);
  background: #050c17;
  color: var(--muted);
}

body.polling-page .footer-inner {
  padding-top: 42px;
}

body.polling-page .footer-logo {
  font-weight: 800;
}

body.polling-page .footer-logo img {
  border-radius: 10px;
}

body.polling-page .footer-brand > p,
body.polling-page .footer-email,
body.polling-page .footer-group a,
body.polling-page .footer-bottom p {
  color: var(--muted-light);
}

body.polling-page .footer-email:hover,
body.polling-page .footer-group a:hover {
  color: var(--primary);
}

body.polling-page .footer-group p {
  color: var(--ink);
}

body.polling-page .footer-bottom {
  border-top-color: rgba(95, 227, 255, 0.12);
}

body.polling-page:fullscreen {
  overflow: auto;
  background: var(--page-bg);
}

body.polling-page .polling-tool-card:fullscreen {
  width: min(1240px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  border-color: rgba(95, 227, 255, 0.36);
  background: var(--surface);
}

@media (max-width: 980px) {
  body.polling-page .polling-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.7fr);
    gap: 28px;
  }

  body.polling-page .polling-tool-card {
    grid-template-columns: 1fr;
  }

  body.polling-page .polling-control-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  body.polling-page .polling-steps-grid,
  body.polling-page .polling-limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.polling-page .polling-faq-layout,
  body.polling-page .polling-privacy-layout {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  body.polling-page .wrap,
  body.polling-page .polling-wrap {
    width: min(100% - 28px, 620px);
  }

  body.polling-page .header-inner {
    padding: 12px 0 10px;
  }

  body.polling-page .primary-nav {
    display: none;
    border-color: var(--border);
    border-radius: var(--radius-md);
    background: rgba(13, 26, 45, 0.98);
    box-shadow: var(--shadow-md);
  }

  body.polling-page .primary-nav.is-mobile-open {
    display: grid;
  }

  body.polling-page .primary-nav.is-mobile-open a {
    justify-content: flex-start;
    min-height: 46px;
    border-radius: 10px;
    color: var(--muted);
  }

  body.polling-page .primary-nav.is-mobile-open a:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
  }

  body.polling-page .polling-hero {
    padding-top: 48px;
  }

  body.polling-page .polling-hero-inner,
  body.polling-page .polling-method-layout,
  body.polling-page .polling-privacy-layout,
  body.polling-page .polling-faq-layout {
    grid-template-columns: 1fr;
  }

  body.polling-page .polling-hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  body.polling-page .polling-trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.polling-page .polling-trust-list li {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.72rem;
  }

  body.polling-page .polling-trust-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 0.68rem;
  }

  body.polling-page .polling-control-panel,
  body.polling-page .polling-result-panel {
    padding: 22px 18px;
  }

  body.polling-page .polling-test-surface {
    min-height: 270px;
  }

  body.polling-page .polling-steps-grid,
  body.polling-page .polling-interpretation-grid,
  body.polling-page .polling-limit-grid {
    grid-template-columns: 1fr;
  }

  body.polling-page .polling-tip-panel {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  body.polling-page .polling-closing-card {
    align-items: flex-start;
    flex-direction: column;
  }

  body.polling-page .polling-closing-button {
    width: 100%;
  }

  body.polling-page .polling-tool-card:fullscreen {
    width: 100vw;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }
}

@media (max-width: 420px) {
  body.polling-page .polling-label-row,
  body.polling-page .polling-surface-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body.polling-page .polling-field-help {
    text-align: left;
  }

  body.polling-page .polling-action-row > button {
    flex: 1 1 0;
  }

  body.polling-page .polling-metrics {
    gap: 5px;
  }

  body.polling-page .polling-metric {
    padding: 10px 7px;
  }

  body.polling-page .polling-metric span {
    font-size: 0.56rem;
  }

  body.polling-page .polling-result-live {
    padding: 16px;
  }

  body.polling-page .polling-result-number strong {
    font-size: clamp(2.75rem, 17vw, 4.3rem);
  }

  body.polling-page .polling-chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  body.polling-page .polling-chart-heading span {
    max-width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.polling-page *,
  body.polling-page *::before,
  body.polling-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Polling Rate Test light visual theme
   Align the complete site with the reference calculator's light blue system. */
body.polling-page {
  color-scheme: light;
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-blue: #eff6ff;
  --ink: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #15803d;
  --accent-soft: #dcfce7;
  --warning: #a16207;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.09);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
  --line: #e2e8f0;
  --paper: #ffffff;
  --cream: #eff6ff;
  --lavender: #f1f5f9;
  --mint: #15803d;
  --sun: #a16207;
  --peach: #c2410c;
  --sky: #2563eb;
  --pink: #7c3aed;
  --lime: #4d7c0f;
  --wash: #f8fafc;
  --paper-tint: #f8fafc;
  background: var(--page-bg);
}

body.polling-page::selection {
  background: var(--primary-soft);
  color: var(--ink);
}

body.polling-page .site-header {
  border-bottom-color: rgba(203, 213, 225, 0.92);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

body.polling-page .header-inner::before {
  display: none;
  content: none;
}

body.polling-page .brand,
body.polling-page .footer-logo {
  color: var(--ink);
}

body.polling-page .brand-mark {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  filter: none;
}

body.polling-page .brand-copy,
body.polling-page .footer-logo {
  color: var(--ink);
}

body.polling-page .brand-copy small {
  color: var(--muted-light);
}

body.polling-page .primary-nav {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

body.polling-page .primary-nav a {
  color: var(--muted);
}

body.polling-page .primary-nav a:hover {
  border-color: var(--primary-soft);
  background: var(--surface-blue);
  color: var(--primary-hover);
}

body.polling-page .mobile-menu-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

body.polling-page .mobile-menu-toggle:hover,
body.polling-page .mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-hero {
  border-bottom-color: var(--line);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(248, 250, 252, 0));
}

body.polling-page .polling-hero::before {
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 0 28px rgba(37, 99, 235, 0.035), 0 0 0 56px rgba(37, 99, 235, 0.02);
}

body.polling-page .polling-eyebrow,
body.polling-page .polling-section-label,
body.polling-page .polling-panel-kicker,
body.polling-page .polling-card-label {
  color: var(--primary);
}

body.polling-page .polling-eyebrow::before {
  background: var(--primary);
}

body.polling-page .polling-hero h1,
body.polling-page .polling-section-intro h2,
body.polling-page .polling-narrow-copy h2,
body.polling-page .polling-privacy-layout h2,
body.polling-page .polling-closing-card h2 {
  color: var(--ink);
}

body.polling-page .polling-hero-lead,
body.polling-page .polling-section-intro p:not(.polling-section-label),
body.polling-page .polling-narrow-copy > p,
body.polling-page .polling-privacy-layout > div > p,
body.polling-page .polling-closing-card p {
  color: var(--muted);
}

body.polling-page .polling-trust-list li {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-trust-icon {
  border-color: #86efac;
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-tool-card {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

body.polling-page .polling-control-panel {
  border-right-color: var(--border);
  background: var(--surface);
}

body.polling-page .polling-result-panel {
  background: linear-gradient(180deg, var(--surface-blue), var(--surface));
}

body.polling-page .polling-step-index {
  border-color: #93c5fd;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

body.polling-page .polling-step-index-accent {
  border-color: #86efac;
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-panel-heading h2,
body.polling-page .polling-surface-heading h3,
body.polling-page .polling-field-label,
body.polling-page .polling-surface-copy strong,
body.polling-page .polling-chart-heading h3 {
  color: var(--ink);
}

body.polling-page .polling-field-help,
body.polling-page .polling-focus-note,
body.polling-page .polling-surface-note,
body.polling-page .polling-status,
body.polling-page .polling-error,
body.polling-page .polling-surface-copy > span:last-of-type {
  color: var(--muted-light);
}

body.polling-page #pollingDuration {
  border-color: var(--border-strong);
  background: var(--surface-muted);
  color: var(--ink);
}

body.polling-page #pollingDuration:hover,
body.polling-page #pollingDuration:focus {
  border-color: var(--primary);
  background: var(--surface-blue);
}

body.polling-page .polling-primary-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.18);
}

body.polling-page .polling-primary-button:hover {
  background: var(--primary-hover);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

body.polling-page .polling-secondary-button {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

body.polling-page .polling-secondary-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

body.polling-page .polling-ghost-button {
  border-color: #93c5fd;
  background: var(--surface-blue);
  color: var(--primary-hover);
}

body.polling-page .polling-ghost-button:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

body.polling-page .polling-text-button {
  color: var(--muted);
}

body.polling-page .polling-text-button:hover {
  color: var(--primary-hover);
}

body.polling-page .polling-status {
  color: var(--primary-hover);
}

body.polling-page .polling-live-dot {
  color: var(--muted-light);
}

body.polling-page .polling-live-dot > span {
  background: var(--muted-light);
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.12);
}

body.polling-page .polling-live-dot.is-active {
  color: var(--accent);
}

body.polling-page .polling-live-dot.is-active > span {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.13);
}

body.polling-page .polling-test-surface {
  border-color: var(--border-strong);
  background-color: var(--surface-blue);
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.11), transparent 55%);
}

body.polling-page .polling-test-surface:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

body.polling-page .polling-test-surface.is-running {
  border-color: rgba(37, 99, 235, 0.72);
  background-color: var(--primary-soft);
  box-shadow: inset 0 0 44px rgba(37, 99, 235, 0.08), 0 0 0 4px rgba(37, 99, 235, 0.06);
}

body.polling-page .polling-test-surface.is-outside {
  border-color: #d97706;
  background-color: #fffbeb;
}

body.polling-page .polling-grid-lines {
  background: repeating-linear-gradient(135deg, transparent 0 31px, rgba(37, 99, 235, 0.07) 31px 32px);
}

body.polling-page .polling-crosshair {
  border-color: rgba(37, 99, 235, 0.24);
}

body.polling-page .polling-crosshair::before,
body.polling-page .polling-crosshair::after {
  background: rgba(37, 99, 235, 0.18);
}

body.polling-page .polling-crosshair span {
  background: var(--primary);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.35);
}

body.polling-page .polling-mouse-glyph {
  border-color: #93c5fd;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 26px rgba(37, 99, 235, 0.1);
}

body.polling-page .polling-cursor-ping {
  border-color: #ffffff;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(21, 128, 61, 0.16), 0 0 20px rgba(21, 128, 61, 0.28);
}

body.polling-page .polling-result-live {
  border-color: var(--border);
  background: var(--surface);
}

body.polling-page .polling-result-live[data-state="example"] {
  border-color: #93c5fd;
  background: linear-gradient(145deg, var(--surface-blue), var(--surface));
}

body.polling-page .polling-result-live[data-state="success"] {
  border-color: #86efac;
  background: linear-gradient(145deg, #f0fdf4, var(--surface));
}

body.polling-page .polling-result-live[data-state="warning"] {
  border-color: #fcd34d;
  background: linear-gradient(145deg, #fffbeb, var(--surface));
}

body.polling-page .polling-result-live[data-state="error"] {
  border-color: #fca5a5;
  background: linear-gradient(145deg, #fff1f2, var(--surface));
}

body.polling-page .polling-result-live[data-state="running"] {
  border-color: #93c5fd;
  background: linear-gradient(145deg, var(--surface-blue), var(--surface));
}

body.polling-page .polling-result-status {
  color: var(--muted);
}

body.polling-page .polling-status-icon {
  border-color: #86efac;
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-result-live[data-state="warning"] .polling-status-icon {
  border-color: #fcd34d;
  background: var(--warning-soft);
  color: var(--warning);
}

body.polling-page .polling-result-live[data-state="error"] .polling-status-icon {
  border-color: #fca5a5;
  background: var(--danger-soft);
  color: var(--danger);
}

body.polling-page .polling-result-live[data-state="running"] .polling-status-icon {
  border-color: #93c5fd;
  background: var(--primary-soft);
  color: var(--primary);
}

body.polling-page .polling-result-number strong,
body.polling-page .polling-metric strong {
  color: var(--ink);
}

body.polling-page .polling-result-number span,
body.polling-page .polling-chart-heading span {
  color: var(--primary-hover);
}

body.polling-page .polling-result-summary,
body.polling-page .polling-stability-label,
body.polling-page .polling-chart-summary,
body.polling-page .polling-browser-note p {
  color: var(--muted);
}

body.polling-page .polling-metric {
  border-color: var(--line);
  background: var(--surface-muted);
}

body.polling-page .polling-metric span,
body.polling-page .polling-stability-heading span,
body.polling-page .polling-chart-heading span {
  color: var(--muted-light);
}

body.polling-page .polling-stability-heading strong,
body.polling-page .polling-copy-feedback {
  color: var(--accent);
}

body.polling-page .polling-progress {
  background: var(--line);
}

body.polling-page .polling-progress span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: none;
}

body.polling-page .polling-chart-card {
  border-color: var(--line);
  background: var(--surface);
}

body.polling-page .polling-chart-y-axis {
  color: var(--muted-light);
}

body.polling-page .polling-chart-bars {
  border-bottom-color: var(--border);
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(148, 163, 184, 0.18) 31px 32px);
}

body.polling-page .polling-chart-bar {
  background: linear-gradient(180deg, #2563eb, #60a5fa);
  box-shadow: none;
}

body.polling-page .polling-browser-note {
  border-color: #fcd34d;
  background: #fffbeb;
  color: var(--warning);
}

body.polling-page .polling-content-section {
  border-top-color: var(--line);
}

body.polling-page .polling-reference-section {
  background: linear-gradient(180deg, var(--surface-muted), var(--page-bg));
}

body.polling-page .polling-table-wrap,
body.polling-page .polling-step-card,
body.polling-page .polling-info-card,
body.polling-page .polling-limit-card,
body.polling-page .polling-method-list article,
body.polling-page .polling-faq-item {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-rate-table th,
body.polling-page .polling-rate-table td {
  border-bottom-color: var(--line);
}

body.polling-page .polling-rate-table thead th,
body.polling-page .polling-reference-note,
body.polling-page .polling-source-note p {
  color: var(--muted-light);
}

body.polling-page .polling-rate-table tbody th,
body.polling-page .polling-step-card h3,
body.polling-page .polling-info-card h3,
body.polling-page .polling-limit-card h3,
body.polling-page .polling-method-list h3,
body.polling-page .polling-tip-panel h3 {
  color: var(--ink);
}

body.polling-page .polling-rate-table td,
body.polling-page .polling-step-card p,
body.polling-page .polling-info-card p,
body.polling-page .polling-limit-card p,
body.polling-page .polling-method-card p,
body.polling-page .polling-method-list p,
body.polling-page .polling-tip-panel li,
body.polling-page .polling-privacy-list li,
body.polling-page .polling-faq-item p {
  color: var(--muted);
}

body.polling-page .polling-rate-table code,
body.polling-page .polling-source-note a,
body.polling-page .polling-content-section a {
  color: var(--primary-hover);
}

body.polling-page .polling-rate-chip,
body.polling-page .polling-step-number,
body.polling-page .polling-card-index {
  border-color: #93c5fd;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

body.polling-page .polling-method-card {
  border-color: #93c5fd;
  background: linear-gradient(145deg, var(--surface-blue), var(--surface));
  box-shadow: var(--shadow-sm);
}

body.polling-page .polling-formula {
  color: var(--primary-hover);
}

body.polling-page .polling-mini-icon,
body.polling-page .polling-check {
  border-color: #86efac;
  background: var(--accent-soft);
  color: var(--accent);
}

body.polling-page .polling-tip-panel {
  border-color: #86efac;
  background: linear-gradient(100deg, #f0fdf4, var(--surface));
}

body.polling-page .polling-tip-panel li > span {
  color: var(--accent);
}

body.polling-page .polling-limit-mark {
  border-color: #fcd34d;
  background: var(--warning-soft);
  color: var(--warning);
}

body.polling-page .polling-source-note {
  border-left-color: var(--primary);
  background: var(--surface-blue);
}

body.polling-page .polling-privacy-section {
  background: linear-gradient(100deg, var(--surface-blue), var(--page-bg));
}

body.polling-page .polling-faq-item summary {
  color: var(--ink);
}

body.polling-page .polling-faq-item summary:hover {
  color: var(--primary-hover);
}

body.polling-page .polling-faq-item[open] {
  border-color: #93c5fd;
  background: var(--surface-blue);
}

body.polling-page .polling-faq-chevron {
  border-color: #93c5fd;
}

body.polling-page .polling-faq-chevron::before,
body.polling-page .polling-faq-chevron::after {
  background: var(--primary);
}

body.polling-page .polling-closing-card {
  border-color: #93c5fd;
  background: linear-gradient(120deg, var(--surface-blue), var(--surface));
  box-shadow: var(--shadow-md);
}

body.polling-page .polling-noscript-note {
  border-color: #fcd34d;
  background: var(--warning-soft);
  color: var(--muted);
}

body.polling-page .site-footer {
  border-top-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

body.polling-page .footer-brand > p,
body.polling-page .footer-email,
body.polling-page .footer-group a,
body.polling-page .footer-bottom p {
  color: var(--muted-light);
}

body.polling-page .footer-email:hover,
body.polling-page .footer-group a:hover {
  color: var(--primary-hover);
}

body.polling-page .footer-group p {
  color: var(--ink);
}

body.polling-page .footer-bottom {
  border-top-color: var(--line);
}

body.polling-page:fullscreen {
  background: var(--page-bg);
}

body.polling-page .polling-tool-card:fullscreen {
  border-color: var(--border);
  background: var(--surface);
}

body.polling-page.legal-page-body .legal-panel {
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

body.polling-page.legal-page-body .legal-meta {
  color: var(--muted-light);
}

body.polling-page.legal-page-body .legal-panel h2 {
  color: var(--ink);
}

body.polling-page.legal-page-body .legal-panel p,
body.polling-page.legal-page-body .legal-panel li {
  color: var(--muted);
}

body.polling-page.legal-page-body .legal-panel a {
  color: var(--primary-hover);
}

@media (max-width: 760px) {
  body.polling-page .primary-nav {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  body.polling-page .primary-nav.is-mobile-open a {
    color: var(--muted);
  }

  body.polling-page .primary-nav.is-mobile-open a:hover {
    background: var(--surface-blue);
    color: var(--primary-hover);
  }
}
