:root {
  --ink: #1d1b22;
  --muted: #6b6775;
  --line: #e4e1ea;
  --paper: #ffffff;
  --wash: #f7f5fa;
  --accent: #3a2150;
  --accent-soft: #b896d4;
  --free: #2e9d5b;
  --idle: #d9a514;
  --busy: #d0453d;
  --off: #b9b6c0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

h1 { font-size: 26px; margin: 0 0 4px; color: var(--accent); }

.muted { color: var(--muted); }

.top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead { font-size: 18px; margin: 0; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }

input[type=tel], input[type=text], input[type=time], select {
  font: inherit;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

input:focus-visible, button:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.55; cursor: default; }

button.primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
}

button.quiet {
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

button.link { background: none; border: 0; color: var(--accent); padding: 4px 0; text-decoration: underline; }

.notice { border-radius: 10px; padding: 10px 12px; background: #efe9f6; color: var(--accent); margin: 0 0 12px; }
.notice.bad { background: #fbeceb; color: #8e2b25; }

.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.actions { display: flex; align-items: center; gap: 10px; }
a.quiet { color: var(--accent); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; }
.small { font-size: 13px; }

.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--off); }
.dot.free { background: var(--free); }
.dot.idle { background: var(--idle); }
.dot.busy { background: var(--busy); }

.pair { display: flex; gap: 8px; }
.pair input { flex: 1; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.tick { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }

.row { align-items: center; }
.hours input[type=time] { padding: 6px 8px; }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend .dot { width: 9px; height: 9px; }

.card.ask { border-color: var(--accent-soft); background: #f6f0fb; }
button.wide { width: 100%; margin: 0 0 14px; }
