/* Standardized utility background is now in util-base.css */


.schematic-content {
  display: grid;
  gap: var(--space-4);
  width: min(100%, 74rem);
  margin: 0 auto;
  padding-bottom: var(--space-7);
}

.schematic-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.schematic-content .glass-card,
.schematic-content .card {
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--card) 96%, transparent);
  border-color: color-mix(in srgb, var(--border) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.schematic-hero {
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.schematic-hero .util-page-hero-title {
  gap: var(--space-1);
}

.schematic-hero .util-page-hero-title p {
  max-width: 56ch;
  line-height: 1.6;
}

.schematic-hero .util-page-hero-actions {
  margin-left: auto;
  align-self: center;
  justify-content: flex-end;
}

.schematic-hero .util-page-hero-actions .btn {
  gap: var(--space-1-5, var(--space-2));
  min-height: var(--control-h-s);
  padding-inline: var(--control-px-s);
}

.schematic-hero .util-page-hero-actions .hz-icon,
.schematic-access-notice .alert-icon {
  font-size: 1rem;
  opacity: 0.72;
}

.admin-page .card-header.schematic-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.admin-page .card-header.schematic-list-header > div {
  min-width: 0;
}

.schematic-refresh-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 6.25rem;
  margin-left: auto;
}

.schematic-refresh-btn.is-loading {
  opacity: 0.78;
  cursor: wait;
}

.schematic-access-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  margin: 0;
  border-radius: var(--radius-xl);
}

.schematic-access-notice .alert-content {
  display: grid;
  gap: var(--space-1);
}

.schematic-upload-card .card-header,
.schematic-upload-card .card-content {
  display: grid;
  gap: var(--space-3);
}

.schematic-upload-card .card-description {
  max-width: 70ch;
  color: var(--muted-foreground);
}

.schematic-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.schematic-overview-item {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--muted) 42%, transparent);
}

.schematic-overview-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: var(--lh-xs);
  color: var(--muted-foreground);
}

.schematic-overview-value {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--foreground);
}

.schematic-upload-card .card-header {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.schematic-upload-form {
  display: grid;
  gap: var(--space-3);
  margin-top: 0;
}

.schematic-form-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.schematic-label-field {
  display: grid;
  gap: var(--space-1);
  flex: 1;
  min-width: 220px;
}

.schematic-label-input {
  width: 100%;
}

.schematic-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.schematic-dropzone:not(.schematic-dropzone-compact) {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-3);
  min-height: 13.5rem;
  padding: var(--space-6);
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--border-strong) 88%, transparent);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--muted) 56%, transparent);
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.schematic-dropzone:not(.schematic-dropzone-compact):hover,
.schematic-dropzone:not(.schematic-dropzone-compact):focus-within {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--muted) 68%, transparent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.schematic-dropzone:not(.schematic-dropzone-compact).is-dragover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--muted) 90%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent),
    var(--shadow-sm);
  transform: translateY(-1px);
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-icon .hz-icon {
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.82;
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-copy {
  display: grid;
  gap: var(--space-1);
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-description {
  max-width: 34ch;
  color: var(--muted-foreground);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h-s);
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-chip,
.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h-s);
  padding: 0 var(--control-px-s);
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  background: color-mix(in srgb, var(--background) 30%, transparent);
  color: var(--muted-foreground);
  font-size: var(--fs-xs);
  line-height: 1;
}

.schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-selected {
  color: var(--foreground);
  font-weight: 600;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}


.dropzone-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
}

.dropzone-meta {
  line-height: 1.15;
}

.schematic-dropzone-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-4);
  min-height: 96px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  text-align: center;
  gap: var(--space-1);
}

.schematic-dropzone-compact:hover,
.schematic-file-input:focus-visible + .schematic-dropzone-compact,
.schematic-dropzone-compact.is-dragover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--background) 93%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent),
    var(--shadow-sm);
  transform: translateY(-1px);
}

.schematic-dropzone-compact .hz-icon {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.86;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.schematic-dropzone-compact:hover .hz-icon,
.schematic-file-input:focus-visible + .schematic-dropzone-compact .hz-icon,
.schematic-dropzone-compact.is-dragover .hz-icon {
  transform: translateY(-2px);
  opacity: 1;
}

.schematic-dropzone-compact.has-file {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.schematic-dropzone-compact [data-schematic-file-name] {
  color: var(--foreground);
  font-weight: 600;
}

.schematic-dropzone-compact [data-schematic-file-name][hidden] {
  display: none !important;
}

.schematic-dropzone-compact.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--border);
  transform: none;
}

.infra-slope-panel {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(var(--muted-rgb), 0.2);
}

.infra-slope-toggle {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(var(--background-rgb), 0.48);
}

.infra-slope-toggle-copy {
  display: grid;
  gap: 2px;
}

.infra-slope-toggle-copy .switch-label {
  line-height: 1.2;
}

.infra-slope-toggle-hint {
  margin: 0;
  line-height: 1.2;
}

.slope-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-2);
}

.slope-mode-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
}

.slope-mode-option > .radio {
  margin-top: 2px;
}

.slope-mode-main {
  display: grid;
  gap: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(var(--background-rgb), 0.55);
  padding: var(--space-2) var(--space-3);
  min-height: 52px;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.slope-mode-main .radio-label {
  font-size: 0.8125rem;
  line-height: 1.2;
}

.slope-mode-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.2;
}

.slope-mode-option > .radio:checked + .slope-mode-main {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.09);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15) inset;
}

.slope-mode-option > .radio:checked + .slope-mode-main .radio-label {
  color: var(--primary);
}

.slope-mode-option > .radio:disabled + .slope-mode-main {
  opacity: 0.6;
}

.slope-y-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.schematic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 0;
}

.schematic-meta .text-xs {
  color: var(--muted-foreground);
  margin: 0;
}

.schematic-list {
  display: grid;
  gap: var(--space-3);
}

.schematic-list-skeleton {
  display: grid;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 98%, transparent);
}

.schematic-list-skeleton[hidden] {
  display: none !important;
}

.schematic-list-skeleton-row {
  display: grid;
  grid-template-columns: 42% 22% 22% 14%;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.schematic-list-skeleton-row + .schematic-list-skeleton-row {
  border-top: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.schematic-list-skeleton-row-head {
  background: color-mix(in srgb, var(--muted) 44%, transparent);
}

.schematic-list-skeleton-row-head .pattern-skeleton {
  height: 0.625rem;
  opacity: 0.42;
}

.schematic-list-skeleton-label,
.schematic-list-skeleton-actions {
  display: grid;
  align-items: center;
  gap: var(--space-2);
}

.schematic-list-skeleton-label {
  grid-template-columns: minmax(0, 1fr) auto;
}

.schematic-list-skeleton-actions {
  grid-template-columns: repeat(2, auto);
  justify-content: flex-end;
}

.schematic-skeleton-th-main {
  width: 44%;
}

.schematic-skeleton-th {
  width: 52%;
}

.schematic-skeleton-th-actions {
  justify-self: end;
  width: 5.75rem;
}

.schematic-skeleton-input {
  height: var(--control-h-s);
  border-radius: var(--radius-md);
}

.schematic-skeleton-text {
  width: 88%;
  height: 0.75rem;
}

.schematic-skeleton-text-short {
  width: 68%;
}

.schematic-skeleton-button {
  width: 4rem;
  height: var(--control-h-s);
  border-radius: var(--radius-md);
}

.schematic-skeleton-button-ghost {
  width: 5rem;
}

.schematic-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--card);
  display: grid;
  gap: var(--space-2);
}

.schematic-item-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.schematic-item-title {
  font-weight: 600;
  min-width: 0;
}

.schematic-item-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.schematic-item-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.schematic-command-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--muted);
  flex-wrap: wrap;
  word-break: break-all;
}

.schematic-command-inline .text-mono {
  font-size: 0.85rem;
}

.alert-actions {
  margin-top: var(--space-2);
}

.schematic-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  overflow: auto;
  background: color-mix(in srgb, var(--card) 98%, transparent);
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.schematic-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.schematic-table-wrap::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--muted) 34%, transparent);
}

.schematic-table-wrap::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--border-strong) 86%, transparent);
  border-radius: var(--radius-full);
}

.schematic-table-wrap::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--foreground) 28%, var(--border-strong) 72%);
}

@media (max-width: 1023px) {
  .schematic-content {
    width: min(100%, 64rem);
  }

  .schematic-hero {
    padding: var(--space-4);
  }
}

@media (max-width: 767px) {
  .schematic-content {
    gap: var(--space-3);
    width: 100%;
    padding-bottom: var(--space-5);
  }

  .schematic-hero {
    gap: var(--space-2);
    padding: var(--space-3);
    align-items: flex-start;
  }

  .schematic-hero .util-page-hero-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .schematic-overview {
    grid-template-columns: 1fr;
  }

  .schematic-access-notice {
    padding: var(--space-3) var(--space-4);
  }

  .schematic-dropzone:not(.schematic-dropzone-compact) {
    min-height: 12rem;
    padding: var(--space-5) var(--space-4);
  }

  .schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-title {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body-lg);
  }

  .schematic-dropzone:not(.schematic-dropzone-compact) .schematic-dropzone-description {
    font-size: var(--fs-xs);
  }
}

.schematic-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.schematic-modal.is-open {
  display: flex;
}

.schematic-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.55);
}

.schematic-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
}

.schematic-command {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--muted);
}

@media (max-width: 640px) {
  .schematic-command {
    flex-direction: column;
    align-items: flex-start;
  }

  .infra-slope-toggle {
    padding: var(--space-2);
  }
}

body.schematic-modal-open {
  overflow: hidden;
}

.schematic-table-wrap .table {
  width: 100%;
  font-size: var(--fs-xs);
  table-layout: fixed;
  min-width: 0;
}

.schematic-table-wrap .table thead th {
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--muted-foreground);
  letter-spacing: 0;
  white-space: nowrap;
  background: color-mix(in srgb, var(--muted) 44%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
}

.schematic-table-wrap .table tbody tr {
  transition: background-color 0.18s ease;
}

.schematic-table-wrap .table tbody tr:hover {
  background: color-mix(in srgb, var(--muted) 30%, transparent);
}

.schematic-table-wrap .table tbody tr:focus-within {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.schematic-table-wrap .table tbody td {
  vertical-align: middle;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.schematic-table-wrap .table tbody tr:last-child td {
  border-bottom: 0;
}

.schematic-table-wrap .table th:last-child,
.schematic-table-wrap .table td:last-child {
  text-align: right;
}

.schematic-table-wrap .table th:first-child,
.schematic-table-wrap .table td:first-child {
  width: 38%;
}

.schematic-table-wrap .table th:nth-child(2),
.schematic-table-wrap .table td:nth-child(2),
.schematic-table-wrap .table th:nth-child(3),
.schematic-table-wrap .table td:nth-child(3) {
  width: 17%;
}

.schematic-col-actions {
  width: 28%;
}

.schematic-row-cell-main,
.schematic-row-cell-actions {
  min-width: 0;
}

.schematic-row-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
}

.schematic-row-label .schematic-label-input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-h-s);
  padding: 0 var(--control-px-s);
  font-size: var(--fs-xs);
}

.schematic-row-label .btn {
  min-width: 3.75rem;
  flex-shrink: 0;
}

.schematic-row-date {
  white-space: nowrap;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.schematic-expire {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-1-5, var(--space-2));
  flex-wrap: wrap;
}

.schematic-remaining {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 0.45rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--muted) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  color: var(--foreground);
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1;
}

.schematic-remaining.is-danger {
  color: var(--destructive);
  background: color-mix(in srgb, var(--destructive) 12%, transparent);
  border-color: color-mix(in srgb, var(--destructive) 22%, transparent);
}

@media (max-width: 768px) {
  .schematic-row-label .schematic-label-input {
    font-size: 1rem;
  }
}

.schematic-row-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5, var(--space-2));
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.schematic-row-actions .btn {
  min-width: 0;
  min-height: var(--control-h-s);
  padding-inline: var(--space-3);
  justify-content: center;
  white-space: nowrap;
}

.schematic-action-delete {
  color: var(--destructive);
}

.schematic-action-delete:hover {
  background: color-mix(in srgb, var(--destructive) 10%, transparent);
}

@media (max-width: 900px) {
  .schematic-table-wrap .table {
    min-width: 52rem;
    table-layout: fixed;
  }

  .schematic-col-actions {
    width: auto;
  }

  .schematic-list-skeleton-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
  }

  .schematic-list-skeleton-row-head {
    display: none;
  }

  .schematic-list-skeleton-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .admin-page .card-header.schematic-list-header {
    align-items: flex-start;
  }

  .schematic-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .schematic-table-wrap .table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .schematic-table-wrap .table thead {
    display: none;
  }

  .schematic-table-wrap .table tbody {
    display: grid;
    gap: var(--space-3);
  }

  .schematic-table-wrap .table tbody tr {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--card) 98%, transparent);
  }

  .schematic-table-wrap .table tbody tr:hover,
  .schematic-table-wrap .table tbody tr:focus-within {
    background: color-mix(in srgb, var(--card) 98%, transparent);
  }

  .schematic-table-wrap .table tbody td {
    display: grid;
    grid-template-columns: minmax(4.75rem, max-content) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: 0;
    border-bottom: 0;
    text-align: left !important;
  }

  .schematic-table-wrap .table tbody td::before {
    content: attr(data-cell-label);
    color: var(--muted-foreground);
    font-size: var(--fs-2xs);
    font-weight: 700;
    line-height: 1.35;
  }

  .schematic-table-wrap .table tbody td.schematic-row-cell-main,
  .schematic-table-wrap .table tbody td.schematic-row-cell-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .schematic-table-wrap .table tbody td.schematic-row-cell-main::before,
  .schematic-table-wrap .table tbody td.schematic-row-cell-actions::before {
    margin-bottom: -0.125rem;
  }

  .schematic-table-wrap .table th:first-child,
  .schematic-table-wrap .table td:first-child,
  .schematic-table-wrap .table th:nth-child(2),
  .schematic-table-wrap .table td:nth-child(2),
  .schematic-table-wrap .table th:nth-child(3),
  .schematic-table-wrap .table td:nth-child(3) {
    width: auto;
  }

  .schematic-row-label {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .schematic-row-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(6.75rem, 1fr));
    justify-content: stretch;
    gap: var(--space-2);
  }

  .schematic-row-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
