:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", sans-serif;
  color: #17202a;
  background: #0a342d;
  --background: #0a342d;
  --highlight: #00eb73;
  --highlight-hover: #00cf66;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: var(--background); }
main { max-width: 1280px; margin: 0 auto; padding: 28px; }
header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 18px; min-height: 108px; }
.brand-mark {
  display: block;
  flex: 0 0 87px;
  width: 87px;
  height: 108px;
  background: var(--highlight);
  -webkit-mask: url("/assets/jvm-horse.png") center / contain no-repeat;
  mask: url("/assets/jvm-horse.png") center / contain no-repeat;
}
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; }
h1 { margin: 0; color: #fff; font-size: clamp(25px, 4vw, 38px); line-height: 1; letter-spacing: -.03em; }
h2 { margin: 0 0 18px; font-size: 18px; }
p { margin: 0; color: #d6e5e1; }
.eyebrow { color: var(--highlight); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.card { background: #fff; border: 1px solid #e1e6eb; border-radius: 12px; box-shadow: 0 3px 12px rgb(27 43 65 / 5%); }
label { display: flex; flex-direction: column; gap: 6px; color: #41505f; font-size: 12px; font-weight: 700; }
input, select, button { min-height: 38px; border: 1px solid #cbd3dc; border-radius: 7px; background: #fff; color: inherit; font: inherit; }
input, select { padding: 7px 10px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgb(0 235 115 / 35%); outline-offset: 1px; border-color: var(--highlight); }
button { padding: 8px 15px; font-weight: 700; cursor: pointer; }
button:hover { background: #f0f4f7; }
button:disabled { cursor: wait; opacity: .55; }
button.primary { background: var(--highlight); border-color: var(--highlight); color: #06261f; }
button.primary:hover { background: var(--highlight-hover); border-color: var(--highlight-hover); }
.actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.status { flex: none; padding: 7px 11px; border-radius: 99px; background: var(--highlight); color: #06261f; font-size: 12px; font-weight: 750; }
.status.error { color: #a12a2a; background: #fce9e9; }
.table-wrap { max-height: calc(100vh - 245px); overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { position: sticky; top: 0; z-index: 1; background: #eef2f5; color: #4a5764; text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
th, td { padding: 9px 12px; border-bottom: 1px solid #e9edf1; }
.filter-row th { top: 36px; padding: 7px 8px; background: #f7f9fb; }
.filter-row input, .filter-row select { width: 100%; min-width: 120px; min-height: 32px; padding: 5px 8px; border-color: #d8dee5; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
td.job-cell { font-weight: 700; }
td input { width: 100%; min-width: 120px; text-align: right; }
tr.hidden-row { display: none; }
.empty { padding: 35px; color: #5c6773; text-align: center; }
.summary { margin-top: 9px; font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(440px, calc(100vw - 48px)); padding: 13px 16px; border-radius: 9px; background: #17202a; color: white; box-shadow: 0 8px 30px rgb(0 0 0 / 20%); }
.toast.error { background: #a12a2a; }
dialog { width: min(620px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 18px 70px rgb(0 0 0 / 30%); }
dialog::backdrop { background: rgb(3 24 20 / 72%); }
dialog form { padding: 22px; }
dialog p { color: #5c6773; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.dialog-heading h2 { margin: 4px 0 0; }
.icon-button { min-height: 34px; width: 34px; padding: 0; border: 0; font-size: 25px; color: #65717d; }
.hint { margin: 14px 0 18px; font-size: 13px; line-height: 1.45; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid .wide { grid-column: 1 / -1; }
textarea { resize: vertical; border: 1px solid #cbd3dc; border-radius: 7px; padding: 9px 10px; font: inherit; }
.settings-state { margin-top: 14px; padding: 10px 12px; border-radius: 7px; background: #f0f4f7; font-size: 12px; }
.settings-state.ready { color: #063f30; background: #bfffdc; }
.hidden { display: none !important; }
@media (max-width: 540px) { main { padding: 16px; } header { display: block; } .header-actions { justify-content: flex-start; margin-top: 12px; } .settings-grid { grid-template-columns: 1fr; } .settings-grid .wide { grid-column: auto; } }
