html,
body {
  margin: 0;
  min-height: 100%;
  background: #f4efe6;
}

body {
  font-family: system-ui, sans-serif;
  color: #111111;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 24px;
  padding: 24px;
}

.chart-panel,
.bridge-panel {
  background: #ffffff;
  border: 1px solid #dfd8cd;
  overflow: hidden;
}

.chart-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 48px);
  border: 0;
  background: #ffffff;
}

.bridge-panel {
  min-height: calc(100vh - 48px);
}

.widget-root {
  width: 100%;
  min-height: calc(100vh - 48px);
}

.widget-root:not(.widget-ready) {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .chart-frame,
  .bridge-panel,
  .widget-root {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .chart-frame,
  .bridge-panel,
  .widget-root {
    min-height: 540px;
  }
}
