:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #1b2622;
  background: #f5f6f1;
  font-synthesis: none;
  --green: #c4f778;
  --ink: #19251f;
  --muted: #5b685f;
  --line: #d9dfd5;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: #295c26;
}
button,
.button {
  border: 1px solid #cbd4ca;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
button:hover,
.button:hover {
  background: #edf1e8;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary {
  background: var(--green);
  border-color: #a8cf70;
  color: #1d3011;
}
button.primary:hover {
  background: #b3ec66;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #75944e;
  outline-offset: 2px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
}
aside {
  background: #18251f;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 32px 16px;
  gap: 48px;
}
aside .brand {
  margin-left: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.055em;
  font-size: 29px;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 2px;
}
.mark i {
  background: var(--green);
  border-radius: 2px;
}
.mark i:nth-child(3),
.mark i:nth-child(8) {
  opacity: 0.3;
}
.mark i:nth-child(6) {
  opacity: 0.6;
}
nav {
  display: grid;
  gap: 6px;
}
nav a,
.asidefoot a {
  color: #d8e0d9;
  text-decoration: none;
}
nav a {
  padding: 12px 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  font-weight: 550;
}
nav a span {
  width: 22px;
  font: 23px/1 monospace;
  text-align: center;
}
nav a:hover {
  background: #2c3932;
}
nav a.active {
  color: #e0ffb1;
  background: #344334;
}
.asidefoot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 19px 12px 0;
  border-top: 1px solid #3b4940;
}
.asidefoot a,
.asidefoot button {
  font-size: 13px;
}
.asidefoot button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  color: #ced7d0;
  background: transparent;
  font-weight: 400;
}
.workspace {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(25px, 4.5vw, 76px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 2px 0 32px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.12;
  margin-bottom: 10px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin-bottom: 20px;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
header p,
p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}
header p,
.empty p {
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 23px;
}
.metrics > div,
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.metrics > div {
  padding: 21px;
}
.metrics small,
.line small,
td small,
.asset small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metrics strong {
  display: block;
  font-size: 38px;
  font-weight: 580;
  letter-spacing: -0.065em;
  margin-top: 12px;
}
.panel {
  padding: 22px;
  min-width: 0;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 48px 12px 54px;
}
.emptyIcon {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  background: #e9f1df;
  border-radius: 12px;
  font-size: 25px;
  margin-bottom: 16px;
  color: #415238;
}
.empty p {
  max-width: 380px;
  font-size: 14px;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 14px;
}
td,
th {
  padding: 14px 9px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
td small,
.line small {
  margin-top: 6px;
}
td:last-child:has(button) {
  text-align: right;
}
tbody tr:last-child td {
  border: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
}
.status:before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #90998f;
}
.online:before {
  background: #428041;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}
.asset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.asset img,
.vid {
  height: 120px;
  width: 100%;
  object-fit: contain;
  background: #25332c;
}
.vid {
  color: #c4f778;
  display: grid;
  place-content: center;
  font-size: 24px;
}
.asset strong,
.asset small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 12px 0;
}
.asset small {
  padding: 5px 12px 12px;
}
.line,
.dialoghead,
.items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.line {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.line:last-child {
  border: 0;
}
.notice {
  padding: 10px 15px;
  border-radius: 8px;
  background: #eaf2e1;
}
.error {
  color: #9b272e !important;
}
.error.notice {
  background: #fff0ef;
}
.preview {
  display: block;
  max-height: 63vh;
  max-width: 100%;
  margin: auto;
}
dialog {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  width: min(490px, calc(100vw - 32px));
  max-height: 90dvh;
  box-shadow: 0 18px 65px #10221731;
}
dialog::backdrop {
  background: #14201975;
}
.dialoghead {
  margin-bottom: 18px;
}
.dialoghead h2 {
  margin: 0;
}
.close {
  border: 0;
  background: #f1f3ef;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  font-weight: 400;
}
form label {
  font-size: 13px;
  font-weight: 600;
  display: grid;
  gap: 7px;
  margin: 13px 0;
}
input,
select {
  display: block;
  width: 100%;
  border: 1px solid #bbc7bb;
  padding: 11px 12px;
  border-radius: 7px;
  color: var(--ink);
  background: white;
  min-width: 0;
}
input[type='file'] {
  padding: 15px 10px;
  font-size: 12px;
}
footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.pair-code {
  font:
    650 clamp(23px, 4vw, 35px)/1.4 ui-monospace,
    monospace;
  padding: 14px;
  background: #f0f4e8;
  text-align: center;
  border-radius: 9px;
  letter-spacing: 0.13em;
}
.times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.items {
  padding: 0;
  list-style: none;
}
.items li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.items strong {
  font-size: 14px;
  word-break: break-word;
}
.items small {
  display: block;
  margin: 4px 0;
  color: var(--muted);
}
.duration {
  display: flex;
  align-items: center;
  margin: 5px 0;
}
.duration input {
  width: 65px;
  padding: 4px 6px;
}
.itemtools {
  display: flex;
  gap: 4px;
}
.itemtools button {
  padding: 5px 8px;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  padding: 22px;
  background: #ecf0e7;
}
.loginpanel {
  width: min(420px, calc(100vw - 44px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 32px;
}
.loginpanel .brand {
  font-size: 23px;
  margin-bottom: 38px;
}
.loginpanel .mark {
  background: #1e3026;
  border-radius: 6px;
  padding: 5px;
}
.loginpanel h1 {
  font-size: 35px;
}
.loginpanel small {
  color: var(--muted);
  display: block;
}
.loginpanel .primary {
  margin-top: 15px;
  width: 100%;
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 13px 18px;
    gap: 11px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .brand {
    font-size: 22px;
  }
  aside .brand {
    margin: 0;
  }
  .mark {
    width: 26px;
    height: 26px;
  }
  nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    overflow-x: auto;
  }
  nav a {
    padding: 8px 10px;
    gap: 4px;
    font-size: 13px;
  }
  nav a span {
    display: none;
  }
  .asidefoot {
    flex-direction: row;
    align-items: center;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .workspace {
    padding: 24px 16px;
  }
  header {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .metrics {
    gap: 7px;
  }
  .metrics > div,
  .panel {
    padding: 13px;
  }
  .metrics strong {
    font-size: 28px;
  }
  .empty {
    padding: 30px 4px;
  }
  .times {
    grid-template-columns: 1fr;
  }
  .line {
    flex-wrap: wrap;
  }
}
