:root {
  color-scheme: light;
  --ink: #18312a;
  --sub: #526861;
  --pine: #155445;
  --deep: #163c34;
  --line: #d5dfd8;
  --paper: #fff;
  --wash: #eff4ee;
  --red: #a13735;
  font:
    15px/1.55 Inter,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: var(--ink);
  background: #f2f4ef;
}
* {
  box-sizing: border-box;
}
body,
p,
h1,
h2,
ul,
ol {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: var(--pine);
  border: 1px solid #b9cdc0;
  background: #fff;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 570;
}
button:hover:enabled {
  background: #eff6ec;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a4b85c;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.mast {
  height: 64px;
  background: var(--deep);
  color: #f8f8ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1170px) / 2));
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.045em;
  font-weight: 680;
}
.wordmark span {
  color: #c8dcd1;
  font-size: 15px;
  font-weight: 480;
  letter-spacing: 0;
  border-left: 1px solid #557268;
  padding-left: 12px;
}
.signal {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding-right: 2px;
}
.signal b {
  width: 4px;
  background: #d0e783;
  border-radius: 4px;
  height: 11px;
}
.signal b:nth-child(2) {
  height: 23px;
}
.signal b:last-child {
  height: 16px;
}
.inverse {
  color: #eef5e9;
  background: transparent;
  border-color: #678278;
}
.inverse:hover:enabled {
  color: var(--pine);
}
.workspace {
  max-width: 1210px;
  margin: auto;
  padding: 36px 20px 64px;
}
.heading,
.sectionhead,
.room-controls,
.summary-actions,
#bind-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading {
  margin-bottom: 25px;
}
h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.24;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}
.muted,
.feedback {
  color: var(--sub);
  font-size: 13px;
}
.heading .muted,
.authbox > .muted {
  margin-top: 8px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr);
  gap: 20px;
  align-items: start;
}
.card,
.authbox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.card {
  padding: 21px 23px;
  margin-bottom: 15px;
}
.card h2 {
  margin-bottom: 14px;
}
.sectionhead h2 {
  margin: 0;
}
.sectionhead {
  margin-bottom: 14px;
}
.fieldgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 17px;
}
fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: var(--sub);
}
input,
textarea,
select {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #becfc4;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
textarea {
  resize: vertical;
  min-height: 56px;
}
.room-controls {
  align-items: flex-end;
}
.room-controls label,
#bind-form label {
  flex: 1;
}
#bind-form {
  align-items: flex-end;
  margin-top: 14px;
}
.items,
#history {
  list-style: none;
  padding: 0;
}
.items li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 5px 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0 5px;
}
.row-time {
  font-size: 13px;
  font-weight: 550;
  color: var(--pine);
}
.custom {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.minute {
  padding: 5px;
}
.row-actions {
  grid-column: 2;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.row-actions button,
.link {
  border: 0;
  background: transparent;
  padding: 3px 6px;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-block: 1px solid var(--line);
  padding: 15px 0;
  margin: 15px 0;
}
.stats div {
  display: grid;
  gap: 2px;
}
.stats div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.stats strong {
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 590;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-size: 12px;
  color: var(--sub);
}
.summary-actions {
  justify-content: flex-start;
}
.summary-actions button {
  flex: 1;
}
.primary {
  background: var(--pine);
  border-color: var(--pine);
  color: white;
}
.primary:hover:enabled {
  background: #103c33;
}
.danger {
  border-color: #cfaaa6;
  color: var(--red);
}
.pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8eee9;
  color: #455b51;
}
.pill.live {
  background: #deefb6;
  color: #284711;
}
.preview {
  background: #e8efe2;
  border-color: #cedbc6;
}
.preview .muted {
  margin-bottom: 8px;
}
.planrow {
  font-size: 13px;
  margin-top: 6px;
  color: var(--pine);
}
.planrow b {
  margin-right: 10px;
}
#history li {
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
time {
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
.authbox {
  max-width: 430px;
  margin: clamp(48px, 14vh, 160px) auto 32px;
  padding: 34px;
}
.authbox h1 {
  font-size: 30px;
}
.authbox form {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.authbox .primary {
  margin-top: 12px;
  min-height: 41px;
}
.authbox label {
  margin: 4px 0;
}
.feedback {
  margin-top: 14px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90vw;
  padding: 11px 17px;
  background: var(--deep);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 16px #1233;
  font-size: 14px;
}
.problem {
  color: var(--red);
}
@media (max-width: 780px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace {
    padding: 22px 14px 45px;
  }
  .mast {
    height: 55px;
  }
  .card {
    padding: 16px;
  }
  .columns {
    gap: 0;
  }
  .heading {
    align-items: flex-start;
  }
  .authbox {
    margin-inline: 16px;
  }
  .summary-actions button,
  .room-controls button {
    min-height: 42px;
  }
}
@media (max-width: 440px) {
  .items li {
    grid-template-columns: 65px minmax(0, 1fr);
  }
  .fieldgrid {
    gap: 10px;
  }
  .authbox {
    padding: 24px;
  }
  #bind-form {
    flex-wrap: wrap;
  }
  #bind-form label {
    flex-basis: 100%;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
}
