/* The settings page of a site (src/settings/page.js, sections/settings-site.js). Dark by default like the panel; [data-theme] (the cookie duxels-theme) or the device's choice decides. */
:root { --bg: #0b1020; --fg: #e8ecf8; --muted: #a4adc8; --card: #121a33; --line: #26304f; --accent: #2a86ff; color-scheme: dark; }
:root[data-theme="light"] { --bg: #f4f6fb; --fg: #11182f; --muted: #4b5675; --card: #fff; --line: #d4daea; color-scheme: light; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --bg: #f4f6fb; --fg: #11182f; --muted: #4b5675; --card: #fff; --line: #d4daea; color-scheme: light; }
}
html { background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
/* header 2 leaves its room in the body's margins (header2.css): the page is 100vh minus the header, so it does not scroll for nothing */
body.st-body { margin: 0; min-height: calc(100vh - var(--dxh-h, 0px)); }
.st { max-width: 760px; margin: 0 auto; padding: 16px; }
.st h1 { font-size: 1.5rem; margin: 8px 0 16px; }
.st h2 { font-size: 1.15rem; margin: 0 0 8px; }
.st a { color: var(--accent); }
.st-back { margin: 0; font-size: .9rem; }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.st-card[hidden] { display: none; }
.st-muted { color: var(--muted); margin: 0 0 8px; font-size: .92rem; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.st-card > .st-row:first-of-type { border-top: 0; }
.st-row > div:first-child { flex: 1 1 220px; min-width: 0; }
.st-row label { font-weight: 600; }
.st-control { display: flex; gap: 8px; align-items: center; }
.st select, .st input[type="text"], .st input[type="number"], .st button, .st-button {
  min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 12px; font: inherit;
}
.st input[type="checkbox"] { width: 24px; height: 24px; }
.st button, .st-button { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.st-msg { flex-basis: 100%; color: var(--muted); font-size: .85rem; min-height: 0; }
@media (max-width: 480px) { .st { padding: 12px; } }
