:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #fff;
  --ink: #202332;
  --soft: #626778;
  --line: #e1e3e9;
  --field: #fafbfc;
  --accent: #5844b4;
  --accentBg: #eeeafd;
  --good: #167052;
  --goodBg: #e6f5ee;
  --danger: #a33640;
  --dangerBg: #fff1f2;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14151c;
  --panel: #1c1e28;
  --ink: #edeef4;
  --soft: #adb1c3;
  --line: #343644;
  --field: #242632;
  --accent: #b9aafa;
  --accentBg: #332b51;
  --good: #88dcba;
  --goodBg: #203930;
  --danger: #ffadad;
  --dangerBg: #47292d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
select,
input {
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  min-height: 36px;
}
button,
select {
  cursor: pointer;
}
button {
  padding: 7px 13px;
  font-weight: 550;
}
button:hover:enabled,
select:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button.primary {
  color: #fff;
  background: #6350bd;
  border: 1px solid #6350bd;
}
button.primary:hover:enabled {
  background: #503da8;
}
input,
select {
  padding: 8px 11px;
}
input {
  min-width: 0;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a999fa;
  outline-offset: 2px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.025em;
}
code,
.numeric,
.records td:first-child {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
small {
  color: var(--soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 25px;
  letter-spacing: -1.2px;
}
.mark {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #8975e2;
  transform: rotate(-2deg);
}
.mark i {
  width: 4px;
  background: #fff;
  border-radius: 2px;
  height: 12px;
}
.mark i:nth-child(2) {
  height: 22px;
}
.mark i:last-child {
  height: 16px;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
}
aside {
  background: #1c1d29;
  color: #f3f2fc;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
aside .brand {
  margin-left: 10px;
}
.project {
  display: block;
  color: #b7b8c8;
  margin: 42px 8px 25px;
  font-size: 12px;
  font-weight: 600;
}
.project select {
  display: block;
  width: 100%;
  margin-top: 7px;
  color: #f3f2fc;
  border-color: #444553;
  background: #292a39;
}
.sideTop nav { display: grid; gap: 4px; }
.sideTop nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7d6e5;
  font-weight: 600;
  border-left: 3px solid transparent;
  border-radius: 5px;
  padding: 10px 12px;
}
.sideTop nav a.navActive { background: #383047; color: #e8e3ff; border-left-color: #ac98fc; }
.management { display: grid; gap: 16px; min-width: 0; }
.management .titleRow { margin-bottom: 0; }
.management .tools label { display: grid; gap: 5px; min-width: 0; }
.keyActions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.navActive b,
.sideEnd button b {
  font-size: 17px;
}
.sideEnd button {
  background: none;
  color: #d7d6e5;
  border-color: transparent;
  text-align: left;
}
.sideEnd button:hover {
  background: #323342;
}
.sideEnd b {
  margin-right: 9px;
}
.user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  border-top: 1px solid #3a3b49;
  margin-top: 12px;
  padding: 12px 6px 0;
}
.user small {
  color: #babbc9;
  overflow-wrap: anywhere;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 61px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px clamp(18px, 3vw, 48px);
  color: var(--soft);
  font-size: 13px;
}
.topbar a {
  color: var(--ink);
}
.topbar div span {
  margin: 0 10px;
  color: var(--soft);
}
.linkState,
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.linkState i,
.status i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: currentColor;
}
.linkState.connected,
.on {
  color: var(--good);
}
.content {
  padding: 36px clamp(18px, 3vw, 48px) 56px;
  max-width: 1680px;
  margin: auto;
}
.titleRow,
.sectionHead,
.panelHeading,
.tabs,
.tools,
.pager,
.subline,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.titleRow {
  margin-bottom: 24px;
}
.count,
.meta summary small {
  color: var(--soft);
  padding: 3px 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 7px #17172606;
  overflow: hidden;
}
.tools,
.panelHeading {
  padding: 17px 20px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  min-width: 180px;
  max-width: 460px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  padding: 0 10px;
  gap: 7px;
}
.search:focus-within {
  border-color: var(--accent);
}
.search i {
  font: 24px/1 Arial;
  color: var(--soft);
}
.search input {
  border: 0;
  flex: 1;
  background: transparent;
  color: var(--ink);
  width: 100%;
  outline-offset: -2px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  background: var(--field);
  white-space: nowrap;
}
th,
td {
  padding: 13px 17px;
  border-top: 1px solid var(--line);
}
td {
  font-size: 13px;
  vertical-align: top;
}
tbody tr:hover {
  background: var(--field);
}
.sourceName {
  color: var(--ink);
  font-weight: 650;
  display: inline-block;
  overflow-wrap: anywhere;
}
.secondary {
  display: block;
  color: var(--soft);
  font-size: 11px;
  margin-top: 4px;
}
.status,
.level,
.taskState {
  font-size: 12px;
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--field);
  color: var(--soft);
}
.status.on,
.Completed,
.level.info {
  background: var(--goodBg);
  color: var(--good);
}
.pager {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  flex-wrap: wrap;
}
.pager span {
  margin-right: auto;
  color: var(--soft);
  font-size: 12px;
}
.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--soft);
}
.alert {
  padding: 12px 15px;
  background: var(--dangerBg);
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 12px;
}
.back {
  display: inline-block;
  margin-bottom: 16px;
}
.subline {
  margin: -12px 0 16px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 12px;
}
.meta {
  margin: 12px 0 20px;
  color: var(--soft);
}
.meta summary {
  cursor: pointer;
}
.meta dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 7px 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--line);
  font-size: 13px;
}
.meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tabs {
  margin: 24px 0 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.tabs > div {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.tabs > div button {
  border: 0;
  background: transparent;
  color: var(--soft);
}
.tabs > div .active {
  background: var(--accentBg);
  color: var(--accent);
}
.sectionHead {
  margin: 16px 0;
}
.records {
  min-width: 590px;
}
.records th:first-child {
  width: 155px;
}
.records th:nth-child(2) {
  width: 85px;
}
.records th:nth-child(3) {
  width: 140px;
}
.records td {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}
.records small {
  font-size: 10px;
}
.message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.level {
  font:
    11px Consolas,
    monospace;
  white-space: nowrap;
}
.level.warning {
  color: #854d00;
  background: #fff2ce;
}
.level.error,
.level.critical,
.Failed,
.TimedOut {
  color: var(--danger);
  background: var(--dangerBg);
}
.Running,
.ReportingResult,
.Dispatched {
  color: var(--accent);
  background: var(--accentBg);
}
.requestForm {
  padding: 18px 20px;
  margin-bottom: 14px;
}
.requestForm .tools {
  padding: 14px 0 0;
  align-items: flex-end;
}
.requestForm label,
.loginCard label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 13px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 30% 10%, #38354c 0, transparent 55%), #1c1d29;
}
.loginWrap {
  width: min(404px, 92vw);
}
.login .brand {
  color: #fff;
  margin: 0 0 22px;
}
.loginCard {
  display: grid;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.loginCard h1 {
  font-size: 28px;
  margin-bottom: 4px;
}
.loginCard label.remember { display: flex; align-items: center; gap: 8px; }
.loginCard .remember input { min-height: 0; margin: 0; accent-color: var(--accent); }
.loginCard button.primary {
  display: flex;
  justify-content: space-between;
}
.simple {
  max-width: 520px;
  margin: 12vh auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 10px 16px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .sideTop,
  .sideEnd {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sideTop { display: contents; }
  .sideTop nav { display: flex; flex-wrap: wrap; grid-row: 2; grid-column: 1/-1; }
  .sideEnd { grid-row: 1; grid-column: 3; }
  .project,
  .user small {
    display: none;
  }
  .sideTop .project {
    display: block;
    margin: 0;
    font-size: 0;
  }
  .project select {
    margin: 0;
    font-size: 13px;
    max-width: 125px;
  }
  .sideEnd .user {
    border: 0;
    margin: 0;
    padding: 0;
  }
  .sideEnd,
  .user {
    gap: 0;
  }
  .brand {
    font-size: 20px;
  }
  .content {
    padding-top: 22px;
  }
  .topbar {
    min-height: 44px;
  }
  .tools {
    padding: 12px;
  }
  .titleRow {
    margin-bottom: 16px;
  }
  .subline {
    margin-top: -5px;
  }
  .requestForm .tools {
    align-items: center;
  }
  .tabs {
    gap: 7px;
  }
  .records td {
    padding: 10px;
  }
  .search {
    min-width: 150px;
  }
}
@media (max-width: 500px) {
  .sideEnd > button {
    font-size: 0;
  }
  .sideEnd button b {
    margin: 0;
  }
  .content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .project select {
    max-width: 100px;
  }
  .tools .search {
    flex-basis: 100%;
    max-width: none;
  }
  .sideTop {
    gap: 6px;
  }
  aside .brand {
    margin: 0;
  }
  th,
  td {
    padding: 9px;
  }
  .sourceName {
    min-width: 125px;
  }
  .secondary {
    max-width: 175px;
    overflow-wrap: anywhere;
  }
  .pager {
    gap: 7px;
  }
  .record .message {
    min-width: 170px;
  }
}
.columnPicker:has(.columnOptions) { flex-basis: 100%; }
.columnOptions {
  margin-top: 10px;
  padding: 14px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.columnOptions label, .columnActions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.columnOptions input[type="checkbox"] { min-height: 0; accent-color: var(--accent); }
.standardColumns, .metadataColumns {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 6px 0 12px;
}
.metadataColumns { max-height: 180px; overflow-y: auto; margin-top: 8px; }
.columnOptions label { overflow-wrap: anywhere; }
.columnActions { justify-content: flex-end; }
.logSettings { padding: 20px; }
.settingsHeader, .settingsActions, .settingInputs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.settingsHeader { justify-content: space-between; }
.settingsHeader [role="status"] { background: var(--accentBg); color: var(--accent); border-radius: 5px; padding: 5px 9px; }
.logSettings fieldset { border: 0; border-top: 1px solid var(--line); margin: 22px 0 0; padding: 6px 0; min-width: 0; }
.logSettings legend { color: var(--soft); font-weight: 600; padding-right: 10px; }
.logSettings p { margin-top: 10px; }
.settingRow { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(270px, 1.4fr); gap: 12px; padding: 9px 0; }
.settingRow small { display: block; margin-top: 4px; }
.settingInputs input { width: 155px; }
.settingsActions { justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
@media(max-width:700px) { .settingRow { grid-template-columns: 1fr; gap: 6px; } }
