: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 {
  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;
}

.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);
}

.mobile-nav {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.mobile-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  white-space: nowrap;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary:hover,
.mobile-nav[open] summary {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-hover);
}

.mobile-nav summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.mobile-nav-chevron {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.mobile-nav[open] .mobile-nav-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.mobile-nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 228px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.mobile-nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

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

.language-code {
  display: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.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-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: nowrap;
    padding: 12px 0 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 7px;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

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

  .language-menu summary {
    min-width: 0;
    padding-inline: 9px;
  }

  .language-current {
    display: none;
  }

  .language-code {
    display: inline;
  }

  .primary-nav a {
    min-height: 42px;
    padding-inline: 10px;
  }

  .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) {
  .brand-copy {
    font-size: 1rem;
  }

  .brand-copy small {
    font-size: 0.56rem;
  }

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

  .primary-nav {
    gap: 2px;
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 2px;
  }

  .primary-nav a {
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .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 (max-width: 400px) {
  .mobile-nav summary {
    width: 44px;
    justify-content: center;
    padding-inline: 0;
  }

  .mobile-nav summary > span:not(.mobile-nav-chevron) {
    display: none;
  }

  .mobile-nav-chevron {
    display: none;
  }
}

@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;
  }
}

/* HeightLab homepage components */
.height-hero {
  padding: 20px 0 8px;
}

.height-hero-inner {
  max-width: 1120px;
}

.height-hero h1 {
  max-width: 1120px;
  margin: 10px 0 9px;
  color: var(--ink);
  font-size: clamp(2.55rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.height-hero-lead {
  max-width: 1000px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.55;
}

.height-hero .trust-list {
  justify-content: flex-start;
  gap: 7px;
  margin-top: 13px;
}

.height-hero .trust-list li {
  min-height: 34px;
  padding: 5px 10px;
}

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

.height-section-intro {
  max-width: 820px;
  margin: 0 0 26px;
}

.height-section-intro-left {
  margin-right: auto;
}

.height-section-intro h2,
.height-prose h2 {
  margin: 8px 0 11px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

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

.height-section-intro p + p,
.height-prose p + p {
  margin-top: 13px;
}

.height-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.height-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.height-mode-tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.height-tab-index {
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.height-mode-tab.is-active .height-tab-index {
  color: #bfdbfe;
}

.height-tool-card {
  display: grid;
  max-width: 1120px;
  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);
}

.height-tool-panel {
  min-width: 0;
  padding: clamp(17px, 2.2vw, 23px) clamp(20px, 2.6vw, 28px);
}

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

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

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

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

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

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

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

.height-panel-intro,
.height-result-heading > p:last-child {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.height-form {
  display: grid;
  gap: 12px;
}

.height-form-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.height-form-toolbar > label,
.height-field-group > label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.height-form-toolbar > label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.height-parent-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.height-field-group {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.height-sex-group {
  max-width: 100%;
}

.height-input,
.height-select,
.height-input-with-unit input,
.height-imperial-row input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}

.height-input:hover,
.height-select:hover,
.height-input-with-unit input:hover,
.height-imperial-row input:hover {
  border-color: var(--primary);
}

.height-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 34px;
}

.height-select-compact {
  width: auto;
  min-width: 180px;
}

.height-input-with-unit {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.height-input-with-unit input {
  min-width: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.height-unit-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.height-imperial-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
}

.height-imperial-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.height-field-help,
.height-example-note,
.height-form-status,
.height-copy-status {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.76rem;
  line-height: 1.5;
}

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

.height-input[aria-invalid="true"],
.height-imperial-row input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

.height-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 2px;
}

.height-primary-action,
.height-secondary-action {
  flex: 1 1 170px;
}

.height-local-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.height-local-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.height-result-view {
  min-height: 100%;
}

.height-result-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.height-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted-light);
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.12);
}

.height-status-dot.is-example,
.height-status-dot.is-ready {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.height-status-dot.is-success {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}

.height-status-dot.is-error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.height-status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.height-status-badge.is-success {
  border-color: #bbf7d0;
  background: var(--accent-soft);
  color: var(--accent);
}

.height-status-badge.is-error {
  border-color: #fecaca;
  background: var(--danger-soft);
  color: var(--danger);
}

.height-result-heading {
  margin-bottom: 12px;
}

.height-result-heading > p:last-child {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 0.83rem;
  line-height: 1.48;
}

.height-primary-result {
  display: grid;
  gap: 2px;
  padding: 19px 20px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: var(--surface-blue);
}

.height-primary-result > span {
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.height-primary-result > strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.height-primary-result > small {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.height-range-block {
  margin-top: 22px;
}

.height-range-heading,
.height-range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.height-range-heading {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.height-range-heading strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.height-range-track {
  position: relative;
  height: 11px;
  margin: 11px 5px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
}

.height-range-fill {
  position: absolute;
  top: 0;
  left: 13%;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: #93c5fd;
}

.height-range-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary-hover);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -50%);
}

.height-range-labels {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.height-range-labels span:nth-child(2) {
  color: var(--primary-hover);
}

.height-metric-list,
.height-conversion-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.height-metric-list > div,
.height-conversion-list > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
}

.height-metric-list dt,
.height-conversion-list dt {
  color: var(--muted-light);
  font-size: 0.68rem;
  line-height: 1.35;
}

.height-metric-list dd,
.height-conversion-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.35;
}

.height-formula-note {
  margin-top: 17px;
  padding: 14px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface-muted);
}

.height-formula-note strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
}

.height-formula-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
}

.height-result-disclaimer {
  margin: 15px 0 0;
  color: var(--muted-light);
  font-size: 0.75rem;
  line-height: 1.55;
}

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

.height-result-actions .secondary-button {
  min-height: 42px;
  padding: 8px 13px;
  font-size: 0.8rem;
}

.height-empty-result {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 260px;
}

.height-empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 14px;
  background: var(--warning-soft);
  color: var(--warning);
}

.height-empty-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

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

.height-steps-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

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

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

.height-two-column {
  display: grid;
  align-items: start;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.height-callout-card {
  background: var(--surface-blue);
  border-color: #bfdbfe;
}

.height-callout-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.height-callout-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.height-callout-card ul {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

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

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

.height-formula-layout {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
}

.height-equation-card {
  background: var(--surface-blue);
  border-color: #bfdbfe;
}

.height-equation-label,
.height-notice-label {
  display: inline-flex;
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.height-equation {
  margin: 14px 0 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 800;
  line-height: 1.45;
}

.height-equation-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

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

.height-data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.height-data-table caption {
  padding: 13px 15px 0;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  text-align: left;
}

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

.height-data-table thead th {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.height-data-table tbody th {
  min-width: 130px;
  color: var(--ink);
  font-weight: 800;
}

.height-prose {
  max-width: 900px;
}

.height-prose-wide {
  max-width: 980px;
  margin-top: 24px;
}

.height-example-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 610px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.height-example-strip > div {
  display: grid;
  gap: 3px;
}

.height-example-strip span:not(.height-example-arrow) {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.height-example-strip strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.height-example-arrow {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
}

.height-accuracy-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.height-source-note {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.height-source-note strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.height-source-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.height-source-note ul {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.height-source-note li {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.height-source-note a {
  color: var(--primary-hover);
  font-weight: 800;
}

.height-source-note li span {
  color: var(--muted-light);
}

.height-notice-card {
  background: var(--surface-blue);
  border-color: #bfdbfe;
}

.height-notice-card .height-notice-label {
  color: var(--accent);
}

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

.height-notice-card .secondary-button {
  width: 100%;
  margin-top: 17px;
}

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

.height-converter-primary {
  margin-top: 5px;
}

.height-converter-primary > strong {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.05em;
}

.height-closing-section {
  padding-top: 32px;
}

.height-closing-card {
  border-color: #bfdbfe;
  background: var(--surface-blue);
}

@media (max-width: 1000px) {
  .height-tool-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .height-hero {
    padding-top: 34px;
  }

  .height-hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.9rem);
  }

  .height-tool-section {
    padding-bottom: 42px;
  }

  .height-tool-panel {
    padding: 20px 16px;
  }

  .height-parent-grid,
  .height-two-column,
  .height-formula-layout {
    grid-template-columns: 1fr;
  }

  .height-two-column {
    gap: 24px;
  }

  .height-form-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .height-select-compact {
    width: 100%;
  }

  .height-action-row {
    flex-direction: column;
  }

  .height-primary-action,
  .height-secondary-action {
    width: 100%;
    flex-basis: auto;
  }

  .height-metric-list,
  .height-conversion-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .height-example-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .height-example-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .height-mode-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  html[lang="de"] .height-hero h1 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
  }

  .height-mode-tab {
    width: 100%;
  }

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

  .height-imperial-row {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  }

  .height-imperial-row input {
    padding-inline: 8px;
  }

  .height-range-labels {
    font-size: 0.6rem;
  }
}
