[hidden] {
  display: none !important;
}
:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #e6eaf2;
  background: #11151f;
  font-size: 15px;
  font-synthesis: none;
  --bg: #11151f;
  --panel: #191f2c;
  --line: #30394a;
  --muted: #a0adc2;
  --accent: #ffbc62;
  --blue: #86aeff;
  --green: #8bdfb5;
  --danger: #ff9393;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: var(--blue);
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #242c3c;
  color: inherit;
  padding: 10px 16px;
  transition: background 0.15s;
}
button:hover:not(:disabled) {
  background: #344056;
}
.primary {
  background: var(--accent);
  color: #1c1c23;
  border-color: var(--accent);
  font-weight: 700;
}
.primary:hover:not(:disabled) {
  background: #ffd092;
}
.danger {
  color: var(--danger);
}
.quiet {
  background: transparent;
}
.small {
  padding: 7px 12px;
  font-size: 0.9rem;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.045em;
  margin-bottom: 7px;
}
h2 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h3 {
  font-size: 1rem;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}
.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #151a25;
  border-right: 1px solid var(--line);
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 12px 35px;
}
.brand b {
  letter-spacing: 0.09em;
  font-size: 1.05rem;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}
.monogram {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  background: var(--accent);
  color: #13151d;
  font-weight: 900;
  border-radius: 11px;
  transform: rotate(-4deg);
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--muted);
  padding: 13px 14px;
}
.nav button.active {
  background: #ffbc6215;
  color: var(--accent);
}
.nav-symbol {
  font-size: 1.12rem;
  width: 20px;
  text-align: center;
}
.side-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
}
.side-bottom strong {
  color: #dce3ef;
  display: block;
}
.main {
  padding: 28px 38px 34px;
  max-width: 1740px;
  width: 100%;
  margin: auto;
  align-self: start;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.breadcrumb {
  font-size: 0.87rem;
  color: var(--muted);
}
.account-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.account-bar select {
  max-width: 180px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
  font-size: 0.81rem;
  white-space: nowrap;
}
.chip.online {
  border-color: #8bdfb545;
  color: var(--green);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.page-head p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
}
.stat .label {
  color: var(--muted);
  font-size: 0.88rem;
}
.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 8px 0 0;
}
.stat small {
  color: var(--muted);
  font-size: 0.8rem;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 24px;
  min-width: 0;
}
.panel + .panel {
  margin-top: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-head h2 {
  margin: 0;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quick-action {
  text-align: left;
  padding: 22px;
  min-height: 130px;
  background: #1d2534;
}
.quick-action span {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.quick-action strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 1.02rem;
}
.quick-action p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
}
.welcome-note {
  border-left: 3px solid var(--accent);
  background: #ffbc6209;
  padding: 18px 20px;
  margin: 22px 0 0;
  line-height: 1.55;
  color: #d7dfed;
  font-size: 0.93rem;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 0.9rem;
}
.field > span {
  font-weight: 600;
}
.field small {
  color: var(--muted);
  line-height: 1.45;
}
input,
select,
textarea {
  padding: 11px 12px;
  color: inherit;
  background: #101722;
  border: 1px solid #3b475c;
  border-radius: 8px;
  min-width: 0;
  width: 100%;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tabs button {
  font-size: 0.88rem;
  padding: 8px 12px;
}
.tabs .selected {
  color: var(--accent);
  border-color: #ffbc6260;
  background: #ffbc6210;
}
.searchbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.searchbar input {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  max-height: 540px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 12px 10px;
  position: sticky;
  top: 0;
  background: var(--panel);
}
td {
  border-top: 1px solid #30394a90;
  padding: 14px 10px;
  vertical-align: middle;
}
td:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
td:nth-child(2) {
  font-weight: 550;
}
td:last-child {
  text-align: right;
}
tr.chosen {
  background: #ffbc6210;
}
.table-empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
  font-weight: 400 !important;
}
.subtext {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.task-state {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 18px;
}
.progress {
  height: 5px;
  background: #30394a;
  border-radius: 4px;
  overflow: hidden;
  margin: 14px 0;
}
.progress > div {
  height: 100%;
  background: var(--accent);
  width: 0;
}
.job-name {
  font-weight: 700;
  line-height: 1.5;
}
.job-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.83rem;
  margin: 12px 0 18px;
}
.job-controls {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.job-controls button {
  flex: 1;
}
.log {
  height: 255px;
  overflow: auto;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.log-line {
  margin: 0 0 8px;
}
.log-time {
  color: #74839a;
  margin-right: 8px;
}
.log-line.error {
  color: var(--danger);
}
.log-line.success {
  color: var(--green);
}
.log-line.warning {
  color: var(--accent);
}
.log-empty {
  color: var(--muted);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
}
.job-result {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.submit-row {
  margin-top: 20px;
}
.submit-row button {
  width: 100%;
  padding: 13px 16px;
}
.helper {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.notice {
  border: 1px solid #ffbc6240;
  background: #ffbc620a;
  color: #ffd095;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.87rem;
  line-height: 1.55;
  margin-bottom: 20px;
}
.error-notice {
  border-color: #ff939350;
  color: var(--danger);
}
.empty-box {
  text-align: center;
  padding: 35px 20px;
  color: var(--muted);
  line-height: 1.65;
}
.empty-box h3 {
  color: #e5e9f2;
}
.footer {
  color: #8997ad;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
  line-height: 1.5;
}
.login {
  max-width: 450px;
  margin: 12vh auto;
  padding: 36px;
}
.login .brand {
  padding: 0 0 30px;
}
.login h1 {
  font-size: 1.65rem;
}
.login p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}
.login button {
  width: 100%;
  margin-top: 20px;
}
.settings-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-sections .panel {
  margin: 0;
}
.profiles {
  display: grid;
  gap: 10px;
}
.profile {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.profile b {
  display: block;
}
.profile small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #e6edf7;
  color: #161c27;
  padding: 14px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 35px #0007;
  max-width: 90vw;
  display: none;
  font-size: 0.94rem;
}
#toast.error {
  background: #ffd1d1;
}
dialog {
  padding: 28px;
  width: min(580px, 92vw);
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #46536d;
  border-radius: 14px;
  background: var(--panel);
  color: inherit;
}
dialog::backdrop {
  background: #050910cc;
}
dialog p {
  color: var(--muted);
  line-height: 1.65;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.select-cards {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.select-cards label {
  padding: 10px;
  background: #101722;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.account-summary {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.account-summary b {
  font-size: 1.6rem;
  display: block;
}
.account-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}
.spacer {
  height: 20px;
}
.selection-summary {
  color: var(--accent);
  font-size: 0.88rem;
  line-height: 1.5;
}
.version-tag {
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .main {
    padding: 36px 50px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main {
    padding: 24px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .workspace > aside > .panel {
    margin: 0;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .settings-sections {
    grid-template-columns: 1fr;
  }
  .account-bar .chip {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0 0 18px;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-symbol,
  .side-bottom {
    display: none;
  }
  .main {
    padding: 20px 16px;
  }
  .topbar {
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .account-bar {
    width: 100%;
    flex-wrap: wrap;
  }
  .account-bar select {
    flex: 1;
    max-width: none;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 1.65rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 1.6rem;
  }
  .quick-actions,
  .form-grid,
  .workspace > aside {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .footer {
    display: block;
  }
  .footer span {
    display: block;
    margin-top: 6px;
  }
  .login {
    margin: 5vh 16px;
  }
  .settings-sections {
    display: block;
  }
  .settings-sections > .panel {
    margin-bottom: 18px;
  }
  .table-wrap {
    max-height: 420px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
