:root {
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #5e5e5e;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #5b4bff;
  --chip: #f1f3f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23262b; --fg: #ececec; --muted: #a8a8a8;
    --line: rgba(255, 255, 255, 0.12); --accent: #8e82ff; --chip: #32363d;
  }
}
* { box-sizing: border-box; }
body {
  width: 268px; margin: 0; padding: 12px 14px 10px;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--fg);
}
header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
h1 { font-size: 14px; margin: 0; font-weight: 650; }
.row {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-top: 1px solid var(--line); cursor: pointer;
}
.row .label { flex: 1 1 auto; }
.row b { font-weight: 650; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track {
  width: 34px; height: 19px; border-radius: 10px; background: #c9ccd2;
  position: relative; transition: background 120ms ease; flex: 0 0 auto;
}
.track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: transform 120ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(15px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.status {
  margin: 10px 0 8px; padding: 7px 9px; border-radius: 7px; background: var(--chip);
  color: var(--muted); font-size: 12px;
}
.hint { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-bottom: 10px; }
.hint b { color: var(--fg); font-weight: 600; }
footer { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 9px; }
button {
  font: inherit; padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--chip); color: var(--fg); cursor: pointer; flex: 1 1 auto;
}
button.primary { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }
button:hover { filter: brightness(1.06); }
