:root {
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #22282b;
  background: #fbfaf7;
  --line: #d6d8d2;
  --muted: #59636a;
  --accent: #963f29;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.wrap {
  max-width: 1110px;
  width: calc(100% - 80px);
  margin: 0 auto;
}
.mast {
  background: #1d2a31;
  color: #f7f7f1;
}
.mast-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.mast strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}
.mast-label {
  font-size: 12px;
  color: #c4cfd0;
  border-left: 1px solid #536066;
  padding-left: 18px;
}
.mast button {
  margin-left: auto;
  color: #e6edeb;
  background: transparent;
  border: 1px solid #637077;
  padding: 4px 11px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  line-height: 1.5;
  color: inherit;
  border: 1px solid #b9bfbc;
  border-radius: 5px;
  background: white;
  padding: 7px 13px;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #9c5b3e;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
h3 {
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 42px 0 25px;
  gap: 10px;
}
#refreshed,
.meta,
.roles,
.device small,
.summary-label {
  font-size: 12px;
  color: var(--muted);
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 38px;
  align-items: start;
}
.feed {
  min-width: 0;
}
aside {
  padding: 16px 18px 7px;
  background: #efeee8;
  border: 1px solid #d3d5cd;
  border-radius: 6px;
}
aside h2 {
  margin-bottom: 8px;
}
.device {
  display: grid;
  gap: 1px;
  border-top: 1px solid #d1d3cb;
  padding: 11px 0;
}
.device strong {
  overflow-wrap: anywhere;
}
.device .online:before,
.device .offline:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #317451;
  border-radius: 50%;
  margin-right: 8px;
}
.device .offline:before {
  background: #848887;
}
#filters {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1px;
  padding: 0 0 12px;
}
#filters button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 12px;
}
#filters button[aria-pressed='true'] {
  background: #35454c;
  color: #fff;
}
.task {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.state {
  font-size: 12px;
  color: #43575c;
  font-weight: 650;
  background: #eceeeb;
  border-radius: 4px;
  padding: 3px 8px;
  flex: none;
}
.state-decision,
.state-gate,
.state-failed {
  background: #f4e4db;
  color: #813d25;
}
.state-running,
.state-adopting {
  background: #e3ede5;
  color: #315d43;
}
.meta {
  margin: 3px 0 11px;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}
.roles b {
  color: #34434b;
  font-weight: 620;
}
.task-summary {
  color: #38444b;
  margin: 9px 0 0;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
}
.login-panel {
  max-width: 410px;
  margin: clamp(48px, 13vh, 130px) auto;
}
.login-panel p {
  margin: 10px 0 26px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 8px;
}
label {
  font-weight: 600;
}
input {
  background: white;
  border: 1px solid #abb4b3;
  border-radius: 5px;
  width: 100%;
  padding: 10px 12px;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  margin-top: 5px;
}
#note {
  color: #923e2a;
  margin: 16px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast-inner {
    height: 52px;
    gap: 10px;
  }
  .mast-label {
    padding-left: 10px;
  }
  .page-heading {
    margin: 27px 0 18px;
    display: block;
  }
  #refreshed {
    display: block;
    margin-top: 5px;
  }
  .board {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .board > * {
    width: 100%;
  }
  aside {
    order: -1;
    padding: 10px 14px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
  }
  aside h2 {
    font-size: 14px;
    margin: 0;
  }
  #devices {
    flex: 1;
  }
  .device {
    border: 0;
    padding: 2px 0;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 4px;
  }
  .task {
    padding: 16px 0;
  }
  .roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .login-panel {
    margin: 55px auto;
  }
  .page-heading h1,
  h1 {
    font-size: 28px;
  }
}
