body {
  margin: 0;
}
#app {
  min-height: 100vh;
}
.live-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.live-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px;
  background: var(--sidebar, #f5f6f3);
  border-right: 1px solid var(--line, #e0e4da);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  padding: 0 10px;
}
.brand img {
  width: 30px;
  height: 30px;
}
.live-sidebar nav {
  display: grid;
  gap: 4px;
}
.live-sidebar nav a {
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 7px;
  font-size: 13px;
}
.live-sidebar nav a.active,
.live-sidebar nav a:hover {
  background: var(--tint, #eaf0e5);
  color: var(--accent, #223318);
}
.live-sidebar footer {
  margin-top: auto;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.live-main {
  min-width: 0;
  padding: 26px 38px;
}
.live-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 24px;
}
.live-top select {
  max-width: 340px;
}
.live-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 20px 0;
}
.live-filter label,
.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.live-filter input,
.live-filter select,
.field input,
.field select,
.field textarea {
  min-height: 38px;
  border: 1px solid var(--line, #d8ded0);
  border-radius: 7px;
  background: var(--panel, #fff);
  color: inherit;
  padding: 8px 10px;
  font: inherit;
}
.field textarea {
  min-height: 85px;
}
.field {
  margin-bottom: 16px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--accent, #304724);
}
.live-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  padding: 24px 0;
  border-block: 1px solid var(--line, #e0e4da);
  margin: 24px 0;
}
.live-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.live-stats span,
.muted {
  font-size: 12px;
  color: var(--muted, #63705d);
}
.live-table {
  overflow: auto;
  border: 1px solid var(--line, #e0e4da);
  border-radius: 12px;
  margin-top: 20px;
}
.live-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.live-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--sidebar, #f5f6f3);
  font-weight: 500;
  white-space: nowrap;
}
.live-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line, #e0e4da);
  max-width: 360px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.live-table .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.live-table small {
  display: block;
  max-width: 280px;
  overflow-wrap: anywhere;
  color: var(--muted, #63705d);
  font-size: 11px;
}
.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  margin: 25px 0;
}
.chart-box {
  border: 1px solid var(--line, #e0e4da);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.real-bars {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid var(--line, #ddd);
  padding: 10px 4px 0;
}
.real-bars > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.real-bars span {
  width: 75%;
  background: #526e40;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}
.real-bars small {
  font-size: 10px;
  height: 22px;
  white-space: nowrap;
  transform: translateY(26px);
  margin-top: -22px;
}
.resource-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line, #ddd);
}
.error {
  padding: 16px;
  border: 1px solid #bf7064;
  border-radius: 8px;
  color: #963b2f;
  margin: 15px 0;
}
.live-note {
  padding: 15px 18px;
  background: var(--sidebar, #f5f6f3);
  border: 1px solid var(--line, #ddd);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0;
}
.login-wrap {
  max-width: 420px;
  margin: 12vh auto;
  padding: 35px;
  border: 1px solid var(--line, #ddd);
  border-radius: 12px;
}
.login-wrap h1 {
  font-size: 26px;
}
.login-wrap p {
  color: var(--muted, #63705d);
  line-height: 1.6;
}
.login-wrap input {
  width: 100%;
}
.login-wrap .btn {
  width: 100%;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
dialog {
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line, #ddd);
  border-radius: 12px;
  padding: 0;
  color: inherit;
  background: var(--panel, #fff);
}
dialog::backdrop {
  background: #1118;
}
.dialog-header,
.dialog-body,
.dialog-footer {
  padding: 20px 24px;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line, #ddd);
}
.dialog-header h2 {
  font-size: 19px;
  margin: 0;
}
.dialog-footer {
  border-top: 1px solid var(--line, #ddd);
  display: flex;
  justify-content: end;
  gap: 10px;
}
.live-page-footer {
  font-size: 11px;
  color: var(--muted, #63705d);
  margin-top: 30px;
}
.pill {
  font-size: 11px;
  border: 1px solid var(--line, #d9dfd2);
  border-radius: 50px;
  padding: 3px 7px;
  display: inline-block;
}
.bad {
  color: #ad4935;
}
.pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted, #63705d);
}
.menu-toggle {
  display: none;
}
code,
pre {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 28px;
  line-height: 1.3;
}
h2 {
  font-size: 17px;
}
p {
  line-height: 1.6;
}
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid #66874f;
  outline-offset: 3px;
}
::selection {
  background: #d3e0c6;
  color: #18230f;
}
html {
  accent-color: #304724;
  color-scheme: light;
}
body[data-theme="dark"] {
  --sidebar: #151a12;
  --panel: #1b2117;
  --line: #343e2c;
  --muted: #b0b9a8;
  --accent: #b2cf9e;
  --tint: #2c3c22;
  background: #10150c;
  color: #e8ede4;
  color-scheme: dark;
}
@media (max-width: 850px) {
  .live-shell {
    grid-template-columns: 1fr;
  }
  .live-sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 236px;
    z-index: 20;
  }
  .live-sidebar.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .live-main {
    padding: 18px;
  }
  .live-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .live-filter input,
  .live-filter select {
    font-size: 16px;
    max-width: 100%;
  }
  .live-filter label {
    max-width: 100%;
  }
  .live-top select {
    max-width: 210px;
  }
  h1 {
    font-size: 24px;
  }
  .live-table td {
    min-width: 110px;
  }
}
.real-bars span {
  max-width: 56px;
}
body[data-theme="dark"] {
  --bg: #10150c;
  --fg: #e8ede4;
  --surface: #1b2117;
  --side: #151a12;
  --forest: #2b4020;
  --forest-ink: #b2cf9e;
}
.live-sidebar footer {
  padding-top: 16px;
}
.task-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 360px;
  min-width: 200px;
}
.alert-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 800px;
}
.alert-form label {
  display: grid;
  gap: 8px;
}
.alert-form input,
.alert-form select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
}
.alert-form p,
.alert-form [role="alert"] {
  grid-column: 1 / -1;
}
.alert-form .check-field {
  display: flex;
  align-items: center;
}
.alert-form input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
.chart-box + .chart-box {
  margin-top: 24px;
}
@media (max-width: 850px) {
  .alert-form {
    grid-template-columns: 1fr;
  }
  .btn,
  .live-sidebar nav a {
    min-height: 44px;
  }
  .live-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .live-sidebar {
    overflow-y: auto;
  }
}
