:root {
  color-scheme: dark;
  --ink: #e6edf5;
  --ink-muted: #9aabba;
  --ink-faint: #91a4b6;
  --navy-950: #07101c;
  --navy-900: #0b1726;
  --navy-850: #101f31;
  --navy-800: #15283b;
  --metal: #b9c4ce;
  --line: rgba(178, 197, 214, 0.2);
  --line-strong: rgba(178, 197, 214, 0.4);
  --blue: #58b8ff;
  --blue-bright: #8bd0ff;
  --blue-deep: #1f79bc;
  --warning: #ffbf72;
  --danger: #ff9c9c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 22px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 114, 171, 0.19), transparent 34rem),
    linear-gradient(135deg, #091422 0%, #0c1825 48%, #101b28 100%);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 76%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  color: var(--navy-950);
  background: var(--blue-bright);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid rgba(184, 207, 226, 0.12);
  background: rgba(7, 16, 28, 0.8);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #071322;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(88, 184, 255, 0.22);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-tagline,
.section-index,
.eyebrow,
.hero-facts,
.figcaption,
.info-number,
.table-footnote {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 0.25rem;
  color: var(--ink-faint);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.8rem);
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.site-nav a {
  padding: 0.55rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--blue);
}

main {
  padding: 3.5rem 0 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  min-height: 450px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.eyebrow span {
  color: var(--blue-bright);
  font-size: 0.5rem;
  text-shadow: 0 0 16px var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  font-weight: 720;
}

h1 em {
  color: var(--blue-bright);
  font-style: normal;
  text-shadow: 0 0 32px rgba(88, 184, 255, 0.18);
}

.hero-lede {
  max-width: 40rem;
  margin-bottom: 1.7rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
}

.hero-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  color: var(--ink-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  background: rgba(21, 40, 59, 0.66);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero-facts strong {
  color: var(--blue-bright);
  font-size: 0.73rem;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, rgba(6, 18, 32, 0.55), transparent 50%, rgba(6, 18, 32, 0.16));
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(230, 237, 245, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  margin-top: 4rem;
  scroll-margin-top: 2rem;
}

.panel {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  background: linear-gradient(145deg, rgba(20, 38, 56, 0.9), rgba(10, 24, 39, 0.93));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-index {
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-size: 0.65rem;
}

.section-heading h2,
.details-heading h2 {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-heading p:last-child,
.details-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

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

.field-group + .field-group {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

legend {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

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

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

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.unit {
  color: var(--blue-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.field-hint {
  min-height: 1.3em;
  color: var(--ink-faint);
  font-size: 0.72rem;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  font-size: 1rem;
  background: rgba(5, 15, 26, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

input:hover {
  border-color: rgba(139, 208, 255, 0.7);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(255, 156, 156, 0.12);
}

.field-error {
  min-height: 1.35rem;
  color: var(--danger);
  font-size: 0.76rem;
  line-height: 1.4;
}

.configuration-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.8rem;
}

.configuration-intro p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.76rem;
}

.configuration-intro p:first-child {
  color: var(--blue-bright);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.configuration-list {
  display: grid;
  gap: 0.75rem;
}

.configuration-card {
  position: relative;
  min-width: 0;
  padding: 0.9rem;
  background: rgba(7, 17, 29, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.configuration-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.configuration-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.configuration-number::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(88, 184, 255, 0.8);
}

.remove-configuration {
  min-width: 44px;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.remove-configuration:hover:not(:disabled) {
  color: var(--danger);
  border-color: rgba(255, 156, 156, 0.6);
}

.remove-configuration:disabled {
  color: var(--ink-faint);
  opacity: 0.62;
}

.configuration-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.75fr));
  gap: 0.65rem;
}

.configuration-fields .field-label {
  font-size: 0.74rem;
}

.configuration-fields input {
  min-height: 46px;
}

.limit-note {
  min-height: 1.4rem;
  margin: 0.65rem 0 0;
  color: var(--warning);
  font-size: 0.76rem;
}

.add-button {
  width: 100%;
  margin-top: 0.2rem;
}

.form-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button-primary {
  color: #061321;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 8px 24px rgba(39, 137, 198, 0.24);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #a3dcff, #6bc3ff);
}

.button-secondary {
  color: var(--blue-bright);
  background: rgba(21, 45, 66, 0.78);
  border-color: var(--line-strong);
}

.button-secondary:hover:not(:disabled) {
  background: rgba(35, 72, 101, 0.88);
  border-color: var(--blue);
}

.button-quiet {
  color: var(--ink-muted);
  background: transparent;
  border-color: transparent;
}

.button-quiet:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.button:disabled {
  color: var(--ink-faint);
  background: rgba(17, 31, 45, 0.7);
  border-color: var(--line);
  opacity: 0.68;
}

.result-heading {
  margin-bottom: 1.25rem;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.status-message {
  min-width: 0;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.status-message.is-error {
  color: var(--danger);
}

.status-message.is-success {
  color: var(--blue-bright);
}

.toolbar-actions {
  flex-shrink: 0;
}

.toolbar-actions .button {
  min-height: 44px;
  padding-inline: 0.7rem;
  font-size: 0.74rem;
}

.empty-result {
  display: grid;
  min-height: 300px;
  place-content: center;
  justify-items: center;
  padding: 2rem 1rem;
  color: var(--ink-muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--blue);
  font-size: 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(88, 184, 255, 0.09), 0 0 28px rgba(88, 184, 255, 0.08);
}

.empty-result p {
  max-width: 26rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.empty-result .empty-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.table-wrap {
  min-width: 0;
  padding-top: 1rem;
}

.results-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.results-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.results-table th,
.results-table td {
  padding: 0.8rem 0.55rem;
  overflow-wrap: anywhere;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.results-table th:first-child,
.results-table td:first-child {
  width: 24%;
  text-align: left;
}

.results-table thead th {
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.results-table thead th span {
  display: block;
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 500;
}

.results-table tbody th {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.results-table tbody td {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.results-table tbody td:nth-child(4) {
  color: var(--blue-bright);
  font-weight: 800;
}

.results-table tbody td:last-child {
  color: var(--ink);
  font-weight: 700;
}

.table-footnote {
  margin: 0.9rem 0 0;
  color: var(--ink-faint);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.formula-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(5, 15, 26, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.formula-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.formula-copy {
  margin-bottom: 0;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.formula-lines {
  display: grid;
  gap: 0.45rem;
  align-content: center;
}

.formula-lines div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(178, 197, 214, 0.11);
}

.formula-lines div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.formula-lines strong {
  color: var(--blue-bright);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
}

.information-section {
  margin-top: 5rem;
  scroll-margin-top: 2rem;
}

.compact-heading {
  margin-bottom: 1.2rem;
}

.info-grid,
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.info-card,
.details-grid article {
  min-width: 0;
  padding: 1.15rem;
  background: rgba(16, 31, 47, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.info-number {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--blue);
}

.info-card h3,
.details-grid h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1rem;
}

.info-card p,
.details-grid p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.details-section {
  margin-top: 4rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: rgba(6, 15, 26, 0.52);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: 2rem;
}

.details-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.details-heading .section-index {
  margin-bottom: 0;
}

.details-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 12, 21, 0.7);
}

.footer-inner {
  min-height: 84px;
  color: var(--ink-faint);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.footer-inner span:last-child {
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }

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

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

@media (max-width: 700px) {
  main {
    padding-top: 2.25rem;
  }

  .header-inner {
    min-height: 66px;
  }

  .site-nav {
    gap: 0.65rem;
    font-size: 0.72rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

  .hero-visual {
    order: -1;
  }

  .workspace-grid {
    margin-top: 2.75rem;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .button {
    flex: 1;
  }

  .formula-card,
  .info-grid,
  .details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .details-heading {
    display: block;
  }

  .details-heading h2 {
    margin-top: 0.45rem;
  }

  .information-section {
    margin-top: 3.5rem;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 1.5rem, 1240px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding-block: 0.7rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts span {
    display: grid;
    gap: 0.12rem;
    font-size: 0.5rem;
  }

  .hero-facts strong {
    font-size: 0.65rem;
  }

  .field-grid,
  .configuration-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .configuration-fields .form-field:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
    column-gap: 0.65rem;
  }

  .configuration-fields .form-field:not(:first-child) .field-hint {
    display: none;
  }

  .configuration-fields .form-field:not(:first-child) .field-error {
    grid-column: 1 / -1;
  }

  .form-actions .button {
    width: 100%;
  }

  .results-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table th,
  .results-table td {
    display: block;
    width: 100% !important;
  }

  .results-table tr {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .results-table th,
  .results-table td {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 0.55rem;
    padding: 0.28rem 0;
    text-align: right;
    border-bottom: 0;
  }

  .results-table tbody th {
    display: block;
    padding-bottom: 0.45rem;
    text-align: left;
  }

  .results-table td::before {
    color: var(--ink-faint);
    font-size: 0.67rem;
    font-weight: 700;
    text-align: left;
  }

  .results-table td:nth-child(2)::before {
    content: "ギア比";
  }

  .results-table td:nth-child(3)::before {
    content: "進行距離 (m)";
  }

  .results-table td:nth-child(4)::before {
    content: "速度 (km/h)";
  }

  .results-table td:nth-child(5)::before {
    content: "先頭との差 (km/h)";
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    min-width: 0;
    color: #111827;
    background: #fff;
  }

  body::before,
  .skip-link,
  .site-header,
  .hero,
  .section-heading .section-index,
  .configuration-card-header,
  .limit-note,
  .add-button,
  .form-actions,
  .result-toolbar,
  .empty-result,
  .formula-card,
  .information-section,
  .details-section,
  .site-footer {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .shell {
    width: 100%;
  }

  .workspace-grid {
    display: block;
    margin: 0;
  }

  .panel {
    padding: 0;
    color: #111827;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .input-panel {
    margin-bottom: 1.5rem;
  }

  .section-heading {
    margin-bottom: 0.75rem;
  }

  .section-heading h2,
  .field-label,
  .results-table tbody th {
    color: #111827;
  }

  .section-heading p,
  .field-hint,
  .configuration-intro p,
  .results-table tbody td,
  .table-footnote {
    color: #374151;
  }

  .field-group + .field-group {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-color: #d1d5db;
  }

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

  .configuration-card {
    break-inside: avoid;
    padding: 0.5rem;
    background: transparent;
    border-color: #d1d5db;
  }

  input {
    min-height: 0;
    padding: 0.25rem 0.35rem;
    color: #111827;
    background: #fff;
    border-color: #9ca3af;
  }

  .field-error {
    display: none;
  }

  #result-table-wrap[hidden] {
    display: none !important;
  }

  .results-table {
    table-layout: auto;
  }

  .results-table th,
  .results-table td {
    display: table-cell;
    width: auto !important;
    padding: 0.45rem;
    color: #111827 !important;
    border-color: #d1d5db;
  }

  .results-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    clip-path: none;
  }

  .results-table td::before {
    content: none !important;
  }
}
