:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --panel: #141720;
  --panel2: #191d28;
  --line: #272c3a;
  --text: #edf0f8;
  --muted: #8b93a8;
  --accent: #9a88ff;
  --green: #6bd5b1;
  --red: #ff8d9b;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 8px;
  padding: 10px 15px;
}
button:hover {
  border-color: #62577f;
  background: #242336;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
  text-decoration: none;
}
.shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #101219;
  border-right: 1px solid var(--line);
  padding: 30px 18px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 750;
  letter-spacing: 2px;
}
.brand {
  padding: 0 10px;
}
.brand small,
.login-brand small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2.6px;
  margin-top: 5px;
}
.brand-symbol {
  width: 36px;
  height: 40px;
  background: linear-gradient(145deg, #b9a9ff, #6753d7);
  color: #181329;
  display: grid;
  place-items: center;
  clip-path: polygon(
    25% 0,
    100% 0,
    75% 45%,
    100% 45%,
    65% 100%,
    0 100%,
    25% 55%,
    0 55%
  );
  font-size: 0;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 10px;
  margin: 34px 0 28px;
  font-size: 11px;
}
.workspace small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.workspace > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.workspace-dot {
  height: 8px;
  width: 8px;
  background: var(--green);
  border-radius: 50%;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #626c84;
  padding: 0 14px;
  margin-bottom: 13px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  gap: 13px;
  text-align: left;
  padding: 12px 14px;
  color: #939cb0;
  font-size: 12px;
}
nav button span {
  font-size: 19px;
  line-height: 16px;
  width: 18px;
  text-align: center;
}
nav button.active {
  background: #242035;
  color: #c0b5ff;
  border-color: #363046;
}
nav button:hover {
  background: #191d28;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.side-note {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 14px;
  background: radial-gradient(ellipse at 90% 0, #282239, transparent 85%);
}
.side-note > span {
  color: var(--accent);
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}
.side-note strong {
  font-size: 11px;
  line-height: 1.8;
  font-weight: 500;
}
.side-note p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 20px 5px 0;
  font-size: 11px;
}
.avatar {
  background: #363046;
  color: #c4baff;
  border: 1px solid #4c426b;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.account small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.account button {
  margin-left: auto;
  border: 0;
  padding: 4px;
  background: none;
  color: var(--muted);
}
.topbar {
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #4b5266;
}
.breadcrumb strong {
  color: #c6cbd8;
  font-weight: 500;
}
.top-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  background: #152822;
  color: var(--green);
  font-size: 10px;
  padding: 6px 9px;
}
.status-pill:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 100%;
}
.badge.waiting,
.badge.paused {
  background: #302a1d;
  color: #f1c879;
}
.badge.operator {
  background: #26233c;
  color: #b7a6ff;
}
.badge.failed,
.badge.uncertain {
  background: #35222b;
  color: var(--red);
}
.icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 20px;
  background: transparent;
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 36px 38px 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.date-badge {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px 12px;
  color: #aeb6c8;
  font-size: 11px;
  white-space: nowrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.stat-card.accent {
  background:
    radial-gradient(ellipse at 100% 0, #27213e, transparent 100%), var(--panel);
  border-color: #3d3458;
}
.stat-label {
  font-size: 11px;
  color: #a6aec1;
  display: flex;
  justify-content: space-between;
}
.stat-label span {
  color: var(--accent);
  font-size: 17px;
}
.stat-value {
  font-size: 30px;
  margin: 20px 0 13px;
  font-weight: 550;
  letter-spacing: -1px;
}
.stat-caption {
  font-size: 10px;
  color: var(--muted);
}
.stat-caption.positive {
  color: var(--green);
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  gap: 15px;
  border-bottom: 1px solid #222633;
}
.panel-head h2 {
  font-size: 13px;
  font-weight: 550;
  margin: 0;
}
.panel-head p {
  font-size: 10px;
  margin: 5px 0 0;
}
.panel-body {
  padding: 22px;
}
.subtle {
  font-size: 10px;
  color: var(--muted);
}
.chip {
  font-size: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}
.chart {
  width: 100%;
  height: 165px;
  margin-top: 20px;
}
.chart-grid {
  stroke: #272b38;
  stroke-dasharray: 3 5;
}
.chart-line {
  fill: none;
  stroke: #a18cff;
  stroke-width: 2;
}
.chart-dot {
  fill: #c8bbff;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #737e96;
  font-size: 9px;
}
.chart-summary {
  display: flex;
  gap: 30px;
}
.chart-summary strong {
  font-size: 23px;
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
}
.chart-summary span {
  font-size: 10px;
  color: var(--muted);
}
.budget-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 12px;
}
.budget-row span {
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  display: block;
  border-radius: 5px;
  background: #2d2d3e;
  margin-bottom: 10px;
}
progress::-webkit-progress-bar {
  background: #2d2d3e;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 5px;
}
.budget-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #2d3e36;
  border-radius: 7px;
  background: #15201e;
  font-size: 10px;
  line-height: 1.7;
  color: #9dc6b6;
  margin-top: 24px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-metrics strong {
  font-size: 19px;
  font-weight: 500;
  display: block;
}
.mini-metrics span {
  color: var(--muted);
  font-size: 9px;
  display: block;
  line-height: 1.6;
  margin-top: 7px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: left;
  padding: 13px 20px;
  color: #717d96;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: #12151d;
}
td {
  padding: 16px 20px;
  border-top: 1px solid #222633;
  color: #bdc4d4;
}
td button {
  padding: 5px 8px;
  font-size: 10px;
}
td.mono,
.mono {
  font-family: Consolas, monospace;
  font-size: 10px;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 320px;
}
.primary {
  background: #a18aff;
  color: #171323;
  border: 1px solid #b7a3ff;
  font-weight: 600;
}
.primary:hover {
  background: #b5a2ff;
}
.danger {
  color: var(--red);
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #aeb7cc;
}
input,
textarea,
select {
  background: #10131c;
  border: 1px solid #303647;
  border-radius: 7px;
  color: var(--text);
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}
textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.article-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.article-card h3 {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.article-card p {
  font-size: 11px;
  margin: 0;
  line-height: 1.8;
}
.article-card .article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.article-card button {
  margin-top: auto;
  font-size: 11px;
}
#notice {
  padding: 14px 18px;
  background: #252136;
  border: 1px solid #463967;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}
.error {
  color: var(--red);
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding: 20px 0 0;
  border-top: 1px solid #1e2230;
  font-size: 9px;
  color: #68738a;
  letter-spacing: 0.5px;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: radial-gradient(ellipse at 50% 20%, #242039 0, transparent 55%);
}
.login-card {
  max-width: 440px;
  width: calc(100% - 40px);
  padding: 35px;
  border: 1px solid #39314f;
  background: #141720;
  border-radius: 14px;
}
.login-card h1 {
  font-size: 25px;
  line-height: 1.3;
}
.login-card p {
  font-size: 12px;
}
.login-card label {
  margin-top: 20px;
}
.login-card button {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
}
.login-note {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  font-size: 10px;
  color: var(--muted);
}
dialog {
  width: min(850px, calc(100vw - 35px));
  max-height: 90vh;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #403651;
  border-radius: 13px;
  padding: 25px;
}
dialog::backdrop {
  background: #05060bbb;
  backdrop-filter: blur(5px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-header h2 {
  font-size: 17px;
  margin: 0;
}
.message {
  padding: 15px 18px;
  background: #1c2230;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 12px 0 12px 25px;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
}
.message.in {
  margin-left: 0;
  margin-right: 25px;
  background: #201d30;
}
.message small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 7px;
}
.wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .stat-card {
    padding: 26px;
  }
  .stat-value {
    font-size: 36px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .workspace {
    font-size: 10px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
  }
  .brand {
    padding: 0;
  }
  .workspace,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 20px;
    gap: 5px;
  }
  nav button {
    padding: 9px;
    white-space: nowrap;
    font-size: 11px;
  }
  nav button span {
    display: none;
  }
  .topbar {
    height: 56px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .date-badge {
    display: none;
  }
  h1 {
    font-size: 23px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 27px;
  }
  .form-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-body {
    padding: 17px;
  }
  .mini-metrics {
    gap: 8px;
  }
  .mini-metrics strong {
    font-size: 16px;
  }
  footer {
    gap: 20px;
    line-height: 1.8;
  }
  .top-right {
    gap: 8px;
  }
  .status-pill {
    font-size: 9px;
  }
  .login-card {
    padding: 26px;
  }
}
