:root {
  color-scheme: light;
  --ink: #203b35;
  --muted: #5b7067;
  --green: #176753;
  --lime: #deede5;
  --paper: #fafbf8;
  --line: #dbe4dd;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--green);
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 17px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
}
button:hover,
.button:hover {
  border-color: var(--green);
  background: #edf3ee;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}
.primary:hover {
  background: #10513f;
  color: #fff;
}
.quiet {
  background: transparent;
}
.topbar {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
  white-space: nowrap;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--green);
}
.topbar nav {
  display: flex;
  gap: 8px;
}
.topbar nav button {
  font-size: 18px;
  min-height: 48px;
  background: transparent;
  border-color: transparent;
}
.topbar nav button[aria-current="page"] {
  background: #e6efe9;
  border-color: transparent;
  color: #235d45;
}
main {
  margin: auto;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
input,
select,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
input[type="checkbox"] {
  width: auto;
}
canvas,
video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #edf0e8;
}
video {
  margin: 20px 0;
}
footer {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
#message {
  padding: 18px;
  background: #faf0e8;
  border-left: 4px solid #ad623c;
  line-height: 1.6;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  color: var(--ink);
  max-width: 440px;
  font-size: 20px;
}
dialog::backdrop {
  background: #24393377;
}
dialog button {
  min-height: 56px;
}
dialog .actions {
  justify-content: flex-end;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #176a57;
  outline-offset: 4px;
}
h1[tabindex="-1"]:focus {
  outline: none;
}
@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 10px;
    padding: 12px 20px !important;
  }
  .topbar nav {
    justify-content: space-between;
    width: 100%;
  }
  .topbar nav button {
    font-size: 17px;
    padding: 10px 16px;
    flex: 1;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    font-size: 27px;
  }
}

.topbar nav button {
  white-space: nowrap;
}
