:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --fg: #121820;
  --panel: #fff;
  --muted: #56616d;
  --line: #dce0e3;
  --accent: #c6ff00;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121820;
  --fg: #f5f6f7;
  --panel: #1b242e;
  --muted: #a7b1bb;
  --line: #38434e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font:
    16px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
header,
nav,
main {
  padding-inline: max(5vw, calc((100vw - 1100px) / 2));
}
header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121820;
  color: white;
  border-bottom: 1px solid #353d45;
}
.brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1.8px;
}
.brand span {
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid #58616a;
  letter-spacing: -0.5px;
  color: white;
  font-weight: 550;
  font-size: 19px;
}
a {
  color: inherit;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
nav a {
  padding: 13px 0;
  font-size: 14px;
  color: var(--muted);
}
nav a.active {
  color: var(--fg);
  box-shadow: inset 0 -3px #98c300;
  font-weight: 650;
}
main {
  padding-top: 36px;
  padding-bottom: 70px;
}
h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.07;
  letter-spacing: -0.055em;
  margin: 8px 0 28px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
  margin: 22px 0 14px;
}
p {
  margin: 8px 0;
}
.muted,
small {
  color: var(--muted);
}
.mode {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 8px;
}
.grid,
.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr));
}
.card,
form,
.row,
.stat,
.empty,
details {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  background: #20262b;
}
.card strong {
  display: block;
  font-size: 18px;
  margin: 8px 0 4px;
}
.row,
.empty {
  margin-bottom: 8px;
}
.stat b {
  display: block;
  font-size: 36px;
  letter-spacing: -0.06em;
}
.stat:first-child {
  background: var(--accent);
  color: #121820;
}
.stat:first-child small {
  color: #354119;
}
button,
.btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--accent);
  color: #121820;
  cursor: pointer;
  display: inline-block;
}
button.quiet,
.btn.quiet {
  background: var(--panel);
  color: var(--fg);
  border: 1px solid var(--line);
}
button:disabled {
  opacity: 0.5;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--fg);
}
textarea {
  min-height: 86px;
}
label {
  display: block;
  margin: 0 0 12px;
}
input[type="checkbox"] {
  width: auto;
}
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.bar input,
.bar select {
  width: auto;
  max-width: 100%;
}
.detail {
  display: grid;
  grid-template-columns: minmax(170px, 300px) 1fr;
  gap: 24px;
}
video {
  width: 100%;
  border-radius: 14px;
  max-height: 65vh;
  background: #121820;
}
form,
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
#notice {
  position: fixed;
  bottom: 75px;
  left: 5vw;
  right: 5vw;
  padding: 13px;
  background: #293545;
  color: white;
  border-radius: 8px;
  z-index: 4;
}
table {
  border-collapse: collapse;
  width: 100%;
}
td,
th {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.scroll {
  overflow: auto;
}
.login {
  max-width: 430px;
  margin: 8vh auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.trend {
  width: 100%;
  height: 110px;
}
.line {
  fill: none;
  stroke: #81a600;
  stroke-width: 3;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    gap: 0;
    justify-content: space-around;
    padding: 0 4px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
  }
  nav a {
    font-size: 12px;
    padding: 16px 2px;
  }
  main {
    padding-top: 22px;
    padding-bottom: 100px;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .detail video {
    max-height: 45vh;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .bar input,
  .bar select {
    width: 100%;
  }
  header {
    height: 60px;
  }
}
