.kits-shell {
  gap: 28px;
}

.kits-planes-lanes-page .panel {
  overflow: hidden;
}

.model-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.model-sidebar,
.model-main,
.board-grid,
.focus-meta-grid,
.definition-cards,
.repo-selector,
.board-strip,
.chip-row,
.lifecycle-cards,
.overlay-grid,
.verb-map-grid,
.sequence-steps,
.repo-tree-grid {
  display: grid;
  gap: 14px;
}

.definition-cards,
.repo-selector,
.lifecycle-cards,
.sequence-steps {
  grid-template-columns: 1fr;
}

.overlay-grid,
.repo-tree-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.verb-map-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.export-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.focus-panel {
  background:
    radial-gradient(circle at top left, rgba(223, 175, 97, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(13, 21, 31, 0.98), rgba(8, 13, 21, 1));
}

.focus-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-label {
  margin: 0 0 6px;
  color: rgba(208, 223, 233, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-card h3,
.focus-panel h3,
.definition-card h3,
.lifecycle-card h3,
.repo-button strong {
  margin: 0;
}

.definition-card,
.lane-card,
.plane-card,
.repo-button,
.lifecycle-card,
.overlay-card,
.verb-map-card,
.sequence-card,
.repo-tree-card {
  border: 1px solid rgba(159, 212, 226, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.definition-card,
.lane-card,
.plane-card,
.lifecycle-card,
.overlay-card,
.verb-map-card,
.sequence-card,
.repo-tree-card {
  padding: 16px;
}

.export-card {
  min-height: 100%;
}

.definition-card p,
.lane-card p,
.plane-card p,
.lifecycle-card p,
.overlay-card p,
.verb-map-card p,
.sequence-card p,
.repo-tree-card p,
.repo-button p,
.repo-button span {
  margin: 0;
}

.repo-button {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.repo-button:hover,
.repo-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(239, 179, 109, 0.52);
  background: rgba(239, 179, 109, 0.1);
  outline: none;
}

.repo-button.is-active,
.plane-card.is-active,
.lane-card.is-active {
  border-color: rgba(239, 179, 109, 0.76);
  background:
    linear-gradient(180deg, rgba(239, 179, 109, 0.18), rgba(22, 30, 39, 0.94)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(239, 179, 109, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.24);
}

.repo-button strong,
.definition-card h3,
.plane-card h3,
.lane-card h3,
.lifecycle-card h3,
.overlay-card h3,
.verb-map-card h3,
.sequence-card h3,
.repo-tree-card h3 {
  display: block;
  margin-bottom: 6px;
}

.repo-button span {
  display: block;
  color: rgba(208, 223, 233, 0.72);
  font-size: 0.92rem;
}

.plane-card .kind,
.lane-card .kind,
.definition-card .kind,
.lifecycle-card .kind,
.overlay-card .kind,
.verb-map-card .kind,
.sequence-card .kind,
.repo-tree-card .kind {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(208, 223, 233, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chip-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(159, 212, 226, 0.12);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.table-shell {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.matrix-table th,
.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(159, 212, 226, 0.16);
  vertical-align: top;
  text-align: left;
}

.matrix-table th {
  color: rgba(208, 223, 233, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-table td {
  color: var(--text);
  font-size: 0.94rem;
}

.lifecycle-cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.overlay-card {
  background:
    radial-gradient(circle at top right, rgba(239, 179, 109, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(14, 24, 35, 0.96), rgba(9, 15, 24, 1));
}

.overlay-meta,
.sequence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.overlay-pill,
.sequence-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d8e8ef;
  font-size: 0.78rem;
  font-weight: 700;
}

.overlay-root-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(159, 212, 226, 0.12);
}

.verb-map-card {
  background:
    linear-gradient(180deg, rgba(20, 28, 41, 0.98), rgba(10, 15, 23, 1));
}

.verb-band {
  margin-top: 12px;
}

.verb-band + .verb-band {
  margin-top: 14px;
}

.verb-band-label {
  margin: 0 0 8px;
  color: rgba(208, 223, 233, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence-steps {
  position: relative;
}

.sequence-card {
  position: relative;
  padding-left: 52px;
  background:
    linear-gradient(180deg, rgba(18, 27, 38, 0.98), rgba(8, 13, 21, 1));
}

.sequence-card::before {
  content: attr(data-step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(239, 179, 109, 0.2);
  color: #ffd7a0;
  font-size: 0.78rem;
  font-weight: 800;
}

.sequence-card::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 46px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(239, 179, 109, 0.5), rgba(159, 212, 226, 0));
}

.sequence-card:last-child::after {
  display: none;
}

.repo-tree-card pre {
  margin: 12px 0 0;
  overflow-x: auto;
  color: #dff0f6;
  font-size: 0.85rem;
  line-height: 1.5;
}

.verb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.verb-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.verb-pill.required {
  background: rgba(239, 179, 109, 0.18);
  color: #ffd7a0;
}

.verb-pill.optional {
  background: rgba(159, 212, 226, 0.12);
  color: #cfeaf3;
}

@media (max-width: 980px) {
  .model-layout,
  .board-grid,
  .focus-meta-grid {
    grid-template-columns: 1fr;
  }

  .overlay-grid,
  .verb-map-grid,
  .repo-tree-grid,
  .export-grid {
    grid-template-columns: 1fr;
  }
}
