/* The layout of a playground scenario page: one scenario per chart, at most 600 pixels wide. */
body { max-width: 1240px; }
.scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 600px)); gap: 24px; }
.scenario { max-width: 600px; }
.scenario h2 { margin: 0 0 4px; }
.scenario p { margin: 0 0 8px; font-size: 13px; color: #6b7280; }
.scenario .chart { max-width: 600px; }
.scenario pre { font: 12px ui-monospace, monospace; color: #475569; min-height: 1.4em; margin: 6px 0 0; white-space: pre-wrap; }

/* the popup form: the popup carries the chart's theme variables, so the form follows the theme (dark too) */
.plotissimo-popup.edit-popup { max-width: 300px; border-radius: 12px; }
.edit-form { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--pl-text); }
.edit-form label { color: var(--pl-muted); }
.edit-form input { font: inherit; padding: 3px 6px; width: 100px; box-sizing: border-box; color: var(--pl-text);
	background: var(--pl-bg); border: 1px solid var(--pl-plot-border); border-radius: 6px; }
.edit-form input[type="text"] { width: 180px; }
.edit-form textarea { font: inherit; padding: 3px 6px; width: 180px; box-sizing: border-box; resize: vertical; color: var(--pl-text);
	background: var(--pl-bg); border: 1px solid var(--pl-plot-border); border-radius: 6px; }
.edit-form textarea:focus { outline: 2px solid var(--pl-color-0); outline-offset: 1px; }
.edit-form input:focus { outline: 2px solid var(--pl-color-0); outline-offset: 1px; }
.edit-form .warning { grid-column: 1 / -1; margin: 2px 0 0; max-width: 260px; font-size: 12px; line-height: 1.4;
	color: var(--pl-text); background: color-mix(in srgb, #f59e0b 22%, var(--pl-bg)); border-left: 3px solid #f59e0b;
	padding: 5px 8px; border-radius: 4px; }
.edit-form .buttons { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.edit-form button { font: inherit; font-size: 12px; padding: 4px 12px; border-radius: 6px; cursor: pointer;
	color: var(--pl-text); background: transparent; border: 1px solid var(--pl-plot-border); }
.edit-form button[type="submit"] { color: #fff; background: var(--pl-color-0); border-color: var(--pl-color-0); }

.tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.tile { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; font: 13px system-ui, sans-serif; }
