.model-exchange-root {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  grid-template-rows: 1fr 220px;
  gap: 10px;
  height: 100%;
  min-height: 760px;
  color: #dbe5ef;
}
.model-exchange-panel {
  background: #0f1724;
  border: 1px solid #2c3a4f;
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.model-exchange-center { grid-column: 2 / 3; grid-row: 1 / 2; }
.model-exchange-left { grid-column: 1 / 2; grid-row: 1 / 2; }
.model-exchange-right { grid-column: 3 / 4; grid-row: 1 / 2; }
.model-exchange-bottom { grid-column: 1 / 4; grid-row: 2 / 3; }
.model-exchange-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.model-exchange-button,
.model-exchange-select,
.model-exchange-input {
  background: #182334;
  color: #e6edf5;
  border: 1px solid #31455f;
  border-radius: 8px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.model-exchange-button:hover { background: #1e2d41; }
.model-exchange-code {
  background: #09111a;
  border: 1px solid #243247;
  border-radius: 8px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
.model-exchange-section-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #9cc5ff;
}
.mx-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.mx-card, .mx-panel-card {
  padding: 1rem;
  border: 1px solid #243247;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.mx-card-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e90ff;
}
.mx-green { color: #32cd32; }
.mx-amber { color: #ff8c00; }
.mx-purple { color: #8a2be2; }
.mx-empty { margin-top: 1rem; color: #9aa8ba; }
.mx-section-spacer { margin-top: 1rem; }
.mx-hidden-input { display: none; }
.mx-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: currentColor;
}
.mx-icon svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 1200px) {
  .model-exchange-root {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .model-exchange-left,
  .model-exchange-center,
  .model-exchange-right,
  .model-exchange-bottom {
    grid-column: auto;
    grid-row: auto;
  }
}
