:root {
  --bg: #f6f8fc; --card: #fff; --field: #f1f3f4; --border: #dadce0; --text: #202124;
  --muted: #5f6368; --blue: #1a73e8; --blue-dark: #1765cc; --red: #d93025; --green: #188038;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif; }
.bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding: 10px 24px; background: var(--card); border-bottom: 1px solid var(--border);
  border-top: 4px solid; border-image: linear-gradient(90deg, #4285f4 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75%) 1; }
.brand { font-size: 20px; font-weight: 700; margin-right: auto; }
.brand small { font-size: 12px; font-weight: 400; color: var(--muted); }
.b1 { color: #4285f4; } .b2 { color: #ea4335; } .b3 { color: #fbbc05; } .b4 { color: #34a853; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { color: var(--text); text-decoration: none; padding: 6px 14px; border-radius: 18px; }
nav a:hover { background: var(--field); }
nav a.on { background: #d3e3fd; font-weight: 600; }
.out { display: flex; align-items: center; gap: 8px; }
.who { color: var(--muted); font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; }
.card.narrow { max-width: 440px; margin: 40px auto; }
h1 { font-size: 22px; font-weight: 500; margin: 0 0 6px; }
h1 small { font-size: 14px; font-weight: 400; }
.muted { color: var(--muted); }
code { background: var(--field); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
input, textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid #80868b;
  border-radius: 8px; padding: 8px 10px; min-width: 0; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
textarea { resize: vertical; font-family: Consolas, Menlo, monospace; font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.row label { flex: 1 1 180px; }
button { font: inherit; font-weight: 600; color: #fff; background: var(--blue); border: 0; border-radius: 18px;
  padding: 8px 18px; cursor: pointer; }
button:hover { background: var(--blue-dark); }
button.ghost { color: var(--text); background: var(--field); border: 1px solid var(--border); }
button.ghost:hover { background: var(--border); }
button.danger, summary.danger { color: var(--red); }
button.danger { background: #fce8e6; }
button.danger:hover { background: #fad2cf; }
.note { border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.note.ok { background: #e6f4ea; color: #0d652d; }
.note.err { background: #fce8e6; color: #a50e0e; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
tr.off td { opacity: .65; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.pill.on { background: #e6f4ea; color: var(--green); }
.pill.off { background: #fce8e6; color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.actions form { margin: 0; }
details summary { cursor: pointer; color: var(--blue); padding: 8px 4px; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] { flex-basis: 100%; }
details .row input { flex: 1 1 160px; }
@media (max-width: 640px) {
  .bar { padding: 10px 16px; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}
