.site-embed,
.site-embed body {
  background: transparent;
}

.site-embed .topbar,
.site-embed .intro,
.site-embed .shell > .view-switch,
.site-embed .footer {
  display: none;
}

.site-embed .shell {
  padding: 12px 8px 16px;
}

.site-embed .table-panel .view-switch {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-embed .table-panel .view-switch-buttons {
  flex-wrap: wrap;
}

.site-embed .table-panel .view-btn {
  padding: 3px 7px;
}

@media (max-width: 600px) {
  .site-embed .shell {
    padding-inline: 4px;
  }
}

.site-embed .table-panel .site-embed-title {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.15;
  text-align: center;
}

html.site-embed {
  --panel: #181f1b;
}

/* Keep all tool panels inside the existing felt in the site embed. */
.site-embed #simulatorTableView > .simulator-panel {
  --tool-top: 58px;
  top: var(--tool-top);
  max-height: calc(100% - var(--tool-top) - 12px);
  overflow-y: auto;
}

.site-embed #simulatorTableView > #houseCalculatorPanel {
  --tool-top: 93px;
}

.site-embed #simulatorTableView > #standaloneAnalyserPanel {
  --tool-top: 77px;
}

.site-embed .simulator-panel-header,
.site-embed #simulatorFrame,
.site-embed .house-calculator {
  flex-shrink: 0;
}
html.site-embed {
  overflow-y: hidden;
}
.site-embed .shell .panel {
  border-color: var(--panel);
}


/* Cream site preview. The felt and its floating tools retain their dark palette. */
html.site-embed:not(.lab-dark) {
  --panel: #fffef0;
  --text: #142f29;
  --muted: #496057;
  --line: #a0aea4;
}

.site-embed:not(.lab-dark) .felt {
  --panel: #181f1b;
  --text: #f0f2eb;
  --muted: #9ba79d;
  --line: #2d3931;
  color: var(--text);
}

.site-embed:not(.lab-dark) .rules-panel select,
.site-embed:not(.lab-dark) .shoe-settings select,
.site-embed:not(.lab-dark) .strategy-workspace select {
  background: #fff;
  color: #172f29;
  border-color: #697d73;
}

.site-embed:not(.lab-dark) :is(.rules-panel, .shoe-settings, .strategy-workspace) select:disabled {
  background: #edf0ed;
  color: #53625d;
}

.site-embed:not(.lab-dark) .rules-intro,
.site-embed:not(.lab-dark) .shoe-label,
.site-embed:not(.lab-dark) .shoe-setting-label,
.site-embed:not(.lab-dark) .balance-display {
  color: var(--muted);
}

.site-embed:not(.lab-dark) .rules-house-edge .edge-mini-value,
.site-embed:not(.lab-dark) .shoe-setting-note {
  color: #71561f;
}

.site-embed:not(.lab-dark) .controls .restore-hand-button {
  background: #234539;
  color: #fffef0;
}

.site-embed:not(.lab-dark) .strategy-table caption { color: #142f29; }
.site-embed:not(.lab-dark) .strategy-table th { background: #dce9e3; color: #142f29; }
.site-embed:not(.lab-dark) .strategy-table th,
.site-embed:not(.lab-dark) .strategy-table td { border-color: #9daaa0; }
.site-embed:not(.lab-dark) .strategy-table td[data-action="S"] { background: #4cc552; color: #142f29; }
.site-embed:not(.lab-dark) .strategy-table td[data-action="H"] { background: #f88017; color: #142f29; }
.site-embed:not(.lab-dark) .strategy-table td[data-action="D"] { background: #52f3ff; color: #142f29; }
.site-embed:not(.lab-dark) .strategy-table td[data-action="P"] { background: #cda6e1; color: #142f29; }
.site-embed:not(.lab-dark) .strategy-table td:is([data-action="R"], [data-action="RH"]) { background: #f1f336; color: #142f29; }

/* Text on the cream surfaces. */
.site-embed:not(.lab-dark) .table-panel .view-btn,
.site-embed:not(.lab-dark) .table-panel .view-btn[aria-pressed="true"] {
  color: #081610;
}

.site-embed:not(.lab-dark) .shoe-label,
.site-embed:not(.lab-dark) .shoe-setting-label,
.site-embed:not(.lab-dark) .rules-panel .rules-intro,
.site-embed:not(.lab-dark) .rules-panel .field-label,
.site-embed:not(.lab-dark) .table-panel .warning-toggle-row,
.site-embed:not(.lab-dark) .controls .audio-option,
.site-embed:not(.lab-dark) .bet-control > label,
.site-embed:not(.lab-dark) .bet-control > .muted,
.site-embed:not(.lab-dark) .bet-control #balance,
.site-embed:not(.lab-dark) .strategy-quick-rules label,
.site-embed:not(.lab-dark) .strategy-workspace .strategy-legend,
.site-embed:not(.lab-dark) .strategy-workspace .strategy-legend b,
.site-embed:not(.lab-dark) .strategy-workspace .strategy-caution,
.site-embed:not(.lab-dark) .strategy-workspace .strategy-notice {
  color: #081610;
}

.site-embed:not(.lab-dark) .bet-control #betAmount {
  color: #fff;
}

/* Give dealer upcards equal space and cap the hand-label column. */
.site-embed .strategy-tables {
  grid-template-columns: minmax(0, 1fr);
}
.site-embed .strategy-tables .strategy-table {
  table-layout: fixed;
}
.site-embed .strategy-table thead th:first-child {
  width: 12%;
}
