:root {
  --paper: #f7f2e8;
  --paper-2: #efe8da;
  --ink: #1d1d1f;
  --ink-soft: #4a4a52;
  --muted: #7a776f;
  --line: #d9d1c0;
  --green: #2fbf71;
  --red: #e5484d;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --purple: #a855f7;
  --radius: 14px;
  --font-hand: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}

h1, h2, h3 { font-family: var(--font-hand); font-weight: 700; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

button, .button {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
  user-select: none;
}
button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
button.primary { background: var(--green); color: #052e16; }
button.ghost { box-shadow: none; border-color: var(--line); background: transparent; }
button.ghost:hover { border-color: var(--ink); }
button:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--ink); }

input[type=text], input[type=password], select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
}
input[type=range] { accent-color: var(--ink); }

.card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px;
}

.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
}
.chip .dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); }
.chip.offline { opacity: 0.45; }

