:root {
  color-scheme: light;
  --ink: #102c3a;
  --muted: #526774;
  --border: #d4e1e3;
  --accent: #146c75;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f2f6f3;
  color: var(--ink);
  font:
    16px/1.65 "DM Sans",
    system-ui,
    sans-serif;
}
header {
  padding: 22px max(5vw, 20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #fbfdfb;
}
header > a {
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
}
nav,
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
a {
  color: var(--accent);
}
main {
  max-width: 1280px;
  padding: 48px 24px;
  margin: auto;
}
h1,
h2,
h3 {
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.045em;
  max-width: 850px;
  margin: 14px 0;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 18px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent);
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 32px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px #10304005;
}
.login {
  max-width: 500px;
  margin: 24px auto;
}
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  margin-top: 30px;
}
.toolbar {
  margin: 24px 0;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 18px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0;
}
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #b7cbd0;
  background: #fbfdfc;
  padding: 12px;
  border-radius: 9px;
  margin-top: 6px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 10px;
  accent-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #27aabd;
  outline-offset: 4px;
}
.episode {
  width: 100%;
  text-align: left;
  display: block;
  background: transparent;
  color: var(--ink);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.episode.active {
  background: #e0eeea;
  border-color: var(--accent);
}
small,
.muted {
  color: var(--muted);
}
small {
  display: block;
}
.badge {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: #e1f2eb;
  padding: 3px 10px;
  border-radius: 30px;
}
.entity {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.entity h3 {
  margin: 0 0 8px;
}
.entity p {
  margin: 6px 0;
}
.entity blockquote {
  margin: 10px 0;
  background: #f3f7f6;
  padding: 10px 14px;
  border-left: 3px solid #9fcbc3;
  overflow-wrap: anywhere;
}
.entity a {
  overflow-wrap: anywhere;
}
.raw {
  white-space: pre-wrap;
  max-height: 400px;
  overflow: auto;
  font-size: 13px;
  background: #f4f7f6;
  padding: 18px;
  border-radius: 8px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.danger {
  color: #923c28;
}
details {
  margin: 24px 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
#notice:empty {
  display: none;
}
#notice {
  background: #e0ede8;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
}
#notice.error {
  background: #fff0e8;
  border-color: #b95531;
}
.steps {
  color: var(--muted);
  padding-left: 22px;
}
code {
  overflow-wrap: anywhere;
}
footer {
  max-width: 1280px;
  padding: 24px;
  margin: auto;
  color: var(--muted);
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header {
    padding: 16px;
    gap: 16px;
    align-items: flex-start;
  }
  header > a {
    font-size: 12px;
  }
  nav {
    gap: 12px;
    font-size: 13px;
  }
  main {
    padding: 28px 16px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar button,
  .toolbar a {
    font-size: 13px;
    padding: 10px;
  }
  .episode {
    margin-bottom: 8px;
  }
  #episodes {
    max-height: 230px;
    overflow: auto;
  }
  .lead {
    font-size: 16px;
  }
}
@media print {
  header,
  nav,
  .toolbar,
  button,
  .actions {
    display: none;
  }
  body {
    background: white;
  }
  .panel {
    border: 0;
    box-shadow: none;
  }
  .layout {
    display: block;
  }
  aside {
    display: none;
  }
}
