:root {
  color-scheme: light;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  color: #172b4d;
  background: #f7f9fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - 1440px) / 2));
  background: white;
  border-bottom: 1px solid #dce2ea;
}
.brand {
  font-weight: 750;
  font-size: 24px;
  color: #086c8d;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 32px 24px;
}
h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  margin-top: 0;
}
p {
  line-height: 1.6;
}
.intro,
.muted {
  color: #526278;
}
#access,
article {
  background: white;
  border: 1px solid #dce2ea;
  border-radius: 12px;
  padding: 24px;
}
#access {
  max-width: 480px;
  margin-top: 32px;
}
form {
  display: grid;
  gap: 12px;
}
input,
button {
  font: inherit;
  border-radius: 6px;
  padding: 12px 16px;
  min-height: 44px;
}
input {
  border: 1px solid #8594a6;
  min-width: 0;
}
button {
  cursor: pointer;
  border: 0;
  background: #086c8d;
  color: white;
  font-weight: 600;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.secondary {
  background: white;
  color: #086c8d;
  border: 1px solid #b5c6d2;
}
:focus-visible {
  outline: 3px solid #137ac1;
  outline-offset: 3px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.toolbar input {
  flex: 1;
}
.layout {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
li button {
  width: 100%;
  text-align: left;
  background: white;
  color: #172b4d;
  border: 1px solid #dce2ea;
  font-weight: 500;
  line-height: 1.5;
}
li button[aria-current='true'] {
  background: #e8f4f8;
  border-color: #086c8d;
}
li small {
  display: block;
  color: #526278;
  margin-top: 4px;
}
article {
  min-width: 0;
}
video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101820;
  border-radius: 6px;
}
a {
  color: #086c8d;
}
#message {
  color: #9d3422;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .toolbar label {
    grid-column: 1 / -1;
  }
  .layout {
    display: flex;
    flex-direction: column-reverse;
  }
  article,
  nav {
    width: 100%;
  }
  main {
    padding: 24px 16px;
  }
  article {
    padding: 16px;
  }
}

/* The embedded route has a player and recovery controls only. */
.embedded {
  background: transparent;
}
.embedded header,
.embedded main > h1,
.embedded .intro,
.embedded .toolbar,
.embedded nav,
.embedded .muted {
  display: none;
}
.embedded main {
  padding: 0;
}
.embedded .layout {
  display: block;
}
.embedded article {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.embedded #title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.embedded article > p {
  margin: 10px 0 0;
  font-size: 14px;
}
.embedded #message:empty {
  display: none;
}
.embedded #access {
  margin: 0;
  max-width: none;
}

.embedded article {
  background: transparent;
}
.embedded.dark {
  color-scheme: dark;
  color: #e2e8f0;
}
.embedded.dark a {
  color: #90caf9;
}
.embedded.dark #access {
  background: #1e293b;
  border-color: #334155;
}
