:root {
  color-scheme: light;
  --ink: #252c2a;
  --muted: #66706b;
  --green: #25644e;
  --line: #dfe5e1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f7f5;
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.07em;
}
.pilot {
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 24px;
}
nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
button {
  font: inherit;
  background: white;
  border: 1px solid #bbc8bf;
  border-radius: 7px;
  padding: 10px 15px;
  cursor: pointer;
  min-height: 44px;
}
button:hover {
  background: #eef4ef;
}
button:focus-visible,
canvas:focus-visible {
  outline: 3px solid #dc9b28;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.selected,
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 16px;
}
p {
  color: var(--muted);
}
#status {
  padding: 12px 15px;
  background: #eaf1eb;
  border-radius: 6px;
  min-height: 46px;
}
#tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
}
#tools [aria-pressed="true"] {
  background: #e2ece5;
  border-color: var(--green);
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  border: 1px solid var(--line);
  background: white;
}
.hint {
  font-size: 13px;
}
.person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.person .identity {
  flex: 1;
}
.name {
  font-weight: 600;
  word-break: break-word;
}
.sub {
  font-size: 13px;
  color: var(--muted);
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.switch input {
  width: 44px;
  height: 24px;
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  header {
    padding: 16px;
    gap: 12px;
  }
  .pilot {
    font-size: 11px;
  }
  main {
    padding: 18px 14px;
  }
  h1 {
    font-size: 23px;
  }
  .person {
    gap: 10px;
  }
  .switch {
    font-size: 13px;
  }
}
