:root {
  --ink: #172e41;
  --muted: #4e6371;
  --blue: #165b81;
  --line: #cbd5d8;
  --paper: #f7f8f5;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font:
    16px/1.45 "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font: normal clamp(38px, 5vw, 68px)/1.05 var(--serif);
  letter-spacing: -0.045em;
}
h3 {
  font: normal 26px/1.2 var(--serif);
}
p {
  color: var(--muted);
}
button,
input,
select,
textarea,
summary {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  border-radius: 5px;
  padding: 10px 16px;
  font-weight: 550;
  font-size: 14px;
}
button:hover {
  filter: brightness(1.13);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.secondary,
.pager button,
.reader-top button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
:focus-visible {
  outline: 3px solid #2a87af;
  outline-offset: 3px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  display: block;
  color: var(--ink);
  background: white;
  border: 1px solid #aebfc4;
  border-radius: 4px;
  padding: 12px;
  margin: 7px 0 18px;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
small,
.meta,
.kicker {
  font-size: 13px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.brand {
  width: 174px;
  height: auto;
}
.access {
  padding: clamp(32px, 5vw, 90px);
  display: flex;
  flex-direction: column;
}
.access form {
  margin: auto;
  max-width: 410px;
  width: 100%;
  padding: 60px 0;
}
.access form p {
  margin: 13px 0 30px;
}
.access form h1 {
  font-size: clamp(39px, 4.4vw, 68px);
}
.access button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}
#login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.landscape {
  margin: 14px 14px 14px 0;
  background:
    linear-gradient(0deg, #102435d9, transparent 65%),
    url("/alpine.jpg") center center/cover;
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 5vw, 90px);
  background-color: #283e4b;
  color: white;
  border-radius: 6px;
}
.landscape h2 {
  font-size: clamp(58px, 7vw, 110px);
}
.landscape p {
  color: white;
  margin-top: 18px;
}
header,
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(5vw, calc((100vw - 1350px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header {
  min-height: 84px;
}
.switcher {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 0;
}
.switcher label {
  font-size: 11px;
  color: var(--muted);
}
.switcher select {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 2px 16px 2px 0;
  max-width: 260px;
}
.account {
  margin-left: auto;
  position: relative;
}
.account summary {
  font-size: 14px;
}
.account div {
  position: absolute;
  z-index: 2;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  padding: 15px;
  display: grid;
  gap: 12px;
}
.account small {
  white-space: nowrap;
}
nav {
  gap: 26px;
}
nav button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  padding: 13px 0;
}
nav button.active {
  color: var(--blue);
  border-color: var(--blue);
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: clamp(26px, 4vw, 65px) 5vw;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.bar p,
.intro {
  margin-top: 10px;
}
.register {
  border-top: 2px solid var(--ink);
}
.group {
  padding: 13px 4px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  width: 100%;
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) minmax(130px, 20%) 22px;
  text-align: left;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
}
.row:hover {
  background: #eaf0ef;
}
.row time,
.duration {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
}
.row strong {
  font-size: 16px;
}
.row p {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}
.row .badge {
  font-size: 12px;
  justify-self: start;
  background: #e6edec;
  padding: 4px 8px;
  border-radius: 3px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.empty,
.editor,
.inviteform {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.empty p,
.editor p,
.inviteform p {
  margin: 8px 0 18px;
}
.editor {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(0, 2.4fr);
  gap: 28px;
}
.editbody {
  max-width: 840px;
}
.editbody button {
  margin-right: 7px;
  margin-bottom: 8px;
}
.inviteform {
  max-width: 560px;
}
.segment {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.segment button {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.segment button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.scriptline {
  border-left: 3px solid var(--line);
  padding-left: 14px;
  margin: 16px 0;
}
.scriptline select {
  width: auto;
}
.scriptline textarea {
  margin-bottom: 7px;
}
dialog {
  margin: 0 0 0 auto;
  max-height: 100svh;
  height: 100svh;
  width: min(670px, 100%);
  max-width: 100%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0 34px 34px;
}
dialog::backdrop {
  background: #112b3c73;
}
.reader-top {
  position: sticky;
  top: 0;
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.reader-top button {
  padding: 7px 13px;
}
#detailbody h2 {
  font-size: 38px;
  margin: 32px 0 5px;
  overflow-wrap: anywhere;
}
#detailbody h3 {
  margin: 30px 0 12px;
}
.turn {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.turn b {
  font-size: 13px;
  color: var(--blue);
}
.turn p,
.summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.turn p {
  margin-top: 5px;
}
.linkresult {
  margin-top: 20px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#status:not(:empty) {
  position: sticky;
  bottom: 12px;
  width: fit-content;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 4px;
  box-shadow: 0 3px 14px #0002;
  margin-top: 16px;
}
@media (max-width: 720px) {
  #login {
    display: flex;
    flex-direction: column;
  }
  .access {
    padding: 28px;
  }
  .access form {
    padding: 45px 0 20px;
  }
  .landscape {
    min-height: 220px;
    margin: 0 16px 16px;
    padding: 22px;
    background-position: center 42%;
  }
  .landscape h2 {
    font-size: 42px;
  }
  .landscape br {
    display: none;
  }
  .landscape p {
    margin-top: 5px;
  }
  header {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 16px 5vw;
  }
  .brand {
    width: 145px;
  }
  .switcher {
    order: 3;
    width: 100%;
    padding: 8px 0 0;
    border: 0;
  }
  .switcher select {
    max-width: 100%;
  }
  nav {
    gap: 18px;
    overflow-x: auto;
  }
  nav button {
    white-space: nowrap;
    font-size: 13px;
  }
  .bar {
    align-items: start;
  }
  .bar button {
    white-space: nowrap;
  }
  .row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }
  .row time {
    grid-column: 1;
  }
  .row .who {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .row .badge {
    grid-column: 2;
    grid-row: 1;
  }
  .row .arrow {
    display: none;
  }
  .editor {
    display: block;
  }
  .editor h3 {
    margin-bottom: 12px;
  }
  dialog {
    padding: 0 20px 24px;
  }
  .pager {
    justify-content: space-between;
  }
  .content {
    padding-top: 26px;
  }
}
