.structural-operations {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--toolbox-border);
  border-radius: calc(var(--toolbox-radius) + 0.25rem);
  background: var(--toolbox-surface);
  color: var(--toolbox-text);
  box-shadow: 0 8px 25px rgb(24 34 68 / 5%);
}

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

.structural-operations h2,
.structural-operations h3,
.structural-operations h4,
.structural-operations p {
  margin-block-start: 0;
}

.structural-operations__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--toolbox-border);
}

.structural-operations__header h2 {
  margin-block-end: 0.28rem;
  font-size: 1.05rem;
}

.structural-operations__header p:not(.structural-operations__eyebrow) {
  max-width: 50rem;
  margin-block-end: 0;
  color: var(--toolbox-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.structural-operations__eyebrow {
  margin-block-end: 0.25rem;
  color: var(--toolbox-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.structural-operations__local {
  flex: none;
  padding: 0.45rem 0.65rem;
  border: 1px solid
    color-mix(
      in srgb,
      var(--toolbox-success, #2f8f5b) 34%,
      var(--toolbox-border)
    );
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--toolbox-success, #2f8f5b) 8%,
    var(--toolbox-surface)
  );
  color: var(--toolbox-success, #2f8f5b);
  font-size: 0.68rem;
  font-weight: 800;
}

.structural-operations__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  padding: 1rem;
}

.structural-operation-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--toolbox-border);
  border-radius: var(--toolbox-radius);
  background: color-mix(
    in srgb,
    var(--toolbox-surface) 94%,
    var(--toolbox-background)
  );
}

.structural-operation-card > header {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-block-end: 1rem;
}

.structural-operation-card > header h3 {
  margin: 0 0 0.2rem;
  font-size: 0.87rem;
}

.structural-operation-card > header p {
  margin-block-end: 0;
  color: var(--toolbox-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.structural-operation-card__step {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-grid;
  flex: none;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--toolbox-accent-soft);
  color: var(--toolbox-accent);
  font-size: 0.72rem;
  font-weight: 850;
}

.structural-range-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.structural-range-summary > div,
.structural-timeline-summary {
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid var(--toolbox-border);
  border-radius: calc(var(--toolbox-radius) - 0.14rem);
  background: var(--toolbox-surface-soft);
}

.structural-range-summary dt {
  margin-block-end: 0.22rem;
  color: var(--toolbox-muted);
  font-size: 0.61rem;
}

.structural-range-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.68rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.structural-timeline-summary {
  margin-block-end: 0.85rem;
}

.structural-timeline-summary p {
  margin-block-end: 0.18rem;
  color: var(--toolbox-muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.structural-timeline-summary p:last-child {
  margin-block-end: 0;
}

.structural-choice-cards,
.structural-policy {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}

.structural-choice-cards > legend,
.structural-policy > legend {
  margin-block-end: 0.35rem;
  font-size: 0.7rem;
  font-weight: 760;
}

.structural-choice-cards > label,
.structural-policy > div > label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.72rem;
  border: 1px solid var(--toolbox-border);
  border-radius: calc(var(--toolbox-radius) - 0.12rem);
  background: var(--toolbox-surface);
  cursor: pointer;
}

.structural-choice-cards > label:has(input:checked),
.structural-policy > div > label:has(input:checked) {
  border-color: color-mix(
    in srgb,
    var(--toolbox-accent) 48%,
    var(--toolbox-border)
  );
  background: var(--toolbox-accent-soft);
}

.structural-choice-cards input,
.structural-policy input {
  margin-block-start: 0.15rem;
  accent-color: var(--toolbox-accent);
}

.structural-choice-cards span,
.structural-choice-cards strong,
.structural-choice-cards small,
.structural-policy span,
.structural-policy strong,
.structural-policy small {
  display: block;
}

.structural-choice-cards strong,
.structural-policy strong {
  margin-block-end: 0.18rem;
  font-size: 0.74rem;
}

.structural-choice-cards small,
.structural-policy small {
  color: var(--toolbox-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.structural-field {
  min-width: 0;
  display: grid;
  gap: 0.34rem;
  margin-block-end: 0.85rem;
  font-size: 0.7rem;
  font-weight: 740;
}

.structural-field select,
.structural-field input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid var(--toolbox-border);
  border-radius: calc(var(--toolbox-radius) - 0.14rem);
  background: var(--toolbox-surface);
  color: var(--toolbox-text);
  font: inherit;
  font-weight: 620;
}

.structural-field small {
  color: var(--toolbox-muted);
  font-size: 0.64rem;
  font-weight: 580;
  line-height: 1.4;
}

.structural-policy > p {
  margin: -0.2rem 0 0;
  color: var(--toolbox-muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.structural-policy > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.structural-hint,
.structural-empty {
  margin-block-end: 0.85rem;
  padding: 0.58rem 0.68rem;
  border-radius: calc(var(--toolbox-radius) - 0.15rem);
  background: var(--toolbox-surface-soft);
  color: var(--toolbox-muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.structural-compatibility {
  margin-block-end: 0.85rem;
  padding: 0.68rem;
  border: 1px solid var(--toolbox-border);
  border-radius: calc(var(--toolbox-radius) - 0.15rem);
  background: var(--toolbox-surface-soft);
}

.structural-compatibility h4 {
  margin-block-end: 0.28rem;
  font-size: 0.7rem;
}

.structural-compatibility p,
.structural-compatibility li {
  margin-block-end: 0;
  color: var(--toolbox-muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.structural-compatibility ul {
  display: grid;
  gap: 0.42rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.structural-compatibility li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
}

.structural-compatibility li > span:first-child {
  align-self: start;
  padding: 0.12rem 0.3rem;
  border-radius: 999px;
  background: var(--toolbox-surface);
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.structural-compatibility li small {
  display: block;
  color: var(--toolbox-muted);
  font-size: 0.58rem;
}

.structural-compatibility--ok {
  border-color: color-mix(
    in srgb,
    var(--toolbox-success, #2f8f5b) 28%,
    var(--toolbox-border)
  );
}

.structural-compatibility--warning,
.structural-compatibility--error {
  border-color: color-mix(
    in srgb,
    var(--toolbox-warning, #a96700) 30%,
    var(--toolbox-border)
  );
}

.structural-compatibility--error {
  background: color-mix(
    in srgb,
    var(--toolbox-warning, #a96700) 8%,
    var(--toolbox-surface)
  );
}

.structural-action {
  display: grid;
  gap: 0.28rem;
}

.structural-action button {
  width: 100%;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--toolbox-accent);
  border-radius: var(--toolbox-radius);
  background: var(--toolbox-accent);
  color: var(--toolbox-accent-contrast);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 780;
}

.structural-action button:hover:not(:disabled) {
  border-color: var(--toolbox-accent-hover);
  background: var(--toolbox-accent-hover);
}

.structural-action button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.structural-action small {
  color: var(--toolbox-muted);
  font-size: 0.61rem;
  line-height: 1.35;
}

.structural-field select:focus-visible,
.structural-field input:focus-visible,
.structural-operations input:focus-visible,
.structural-operations button:focus-visible {
  outline: 3px solid var(--toolbox-focus);
  outline-offset: 2px;
}

.structural-operations__status {
  min-height: 1.25rem;
  margin: 0;
  padding: 0 1rem 0.7rem;
  color: var(--toolbox-muted);
  font-size: 0.68rem;
}

@media (max-width: 64rem) {
  .structural-operations__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .structural-operations__header {
    display: grid;
    gap: 0.75rem;
  }

  .structural-operations__local {
    justify-self: start;
  }

  .structural-operations__grid {
    padding: 0.7rem;
  }

  .structural-operation-card {
    padding: 0.8rem;
  }

  .structural-range-summary,
  .structural-policy > div {
    grid-template-columns: 1fr;
  }
}

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