:root {
  --ink: #202936;
  --muted: #66758a;
  --brand-primary: #2563eb;
  --line: #e2e7ee;
  --surface: #f6f8fb;
  --brand-tint: #dbeafe;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  transition: background 0.15s;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #56677e;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #56677e;
  outline-offset: 1px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input::placeholder,
textarea::placeholder {
  color: #69798e;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.sidebar {
  width: 238px;
  background: #172b25;
  color: #e2e8f0;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 35px 22px;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: 0;
  padding: 0 9px;
}
.brand-dot {
  color: var(--brand-tint);
}
.brand-mark {
  background: var(--brand-tint);
  width: 33px;
  height: 34px;
  border-radius: 8px;
  color: #172b25;
  margin-right: 10px;
  text-align: center;
  line-height: 35px;
  font-style: normal;
  font-size: 30px;
  position: relative;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 37px 0 31px;
  border: 1px solid #263c59;
  border-radius: 8px;
  padding: 12px 10px;
  font-size: 11px;
}
.workspace small,
.country small {
  display: block;
  color: #69798e;
  font-size: 10px;
  margin-top: 2px;
}
.avatar {
  background: #263c59;
  border-radius: 7px;
  padding: 7px;
  font-weight: 600;
  color: var(--brand-tint);
  font-size: 12px;
}
.nav-label {
  font-size: 9px;
  color: #56677e;
  letter-spacing: 0;
  margin: 0 10px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px;
  color: #69798e;
  margin: 3px 0;
}
.nav-item > span:first-child {
  font-size: 21px;
  line-height: 20px;
}
.nav-item.active {
  background: #263c59;
  color: #c4cedb;
}
.nav-item:hover {
  background: #263c59;
}
.count {
  font-size: 10px;
  background: #263c59;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.country {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 5px;
  border-bottom: 1px solid #263c59;
  font-size: 12px;
}
.country > span:first-child {
  font-size: 22px;
}
.country .local-dot {
  margin-left: auto;
}
.sidebar-bottom > p {
  color: #56677e;
  font-size: 9px;
  line-height: 1.9;
  padding: 18px 5px 0;
}
.sidebar-bottom a:hover {
  text-decoration: underline;
}
.page {
  margin-left: 238px;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: #fafbfd;
  font-size: 11px;
}
.breadcrumb {
  color: #56677e;
}
.slash {
  padding: 0 13px;
  color: #c4cedb;
}
.connection {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 10px;
  background: white;
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #56677e;
}
.connection.offline .local-dot {
  background: #cc7a65;
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 38px 44px 20px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0;
  font-weight: 650;
  color: #56677e;
}
.intro h1 {
  font-size: 31px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
  margin: 10px 0;
}
.intro p {
  color: var(--muted);
  font-size: 12px;
}
.region-tag {
  font-size: 10px;
  background: #f3f6fa;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 7px 11px;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 27px;
}
.stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 17px 22px;
  display: flex;
  flex-direction: column;
}
.stats article > span {
  font-size: 11px;
  color: #56677e;
}
.stats strong {
  font-size: 29px;
  line-height: 1.2;
  margin: 7px 0;
  font-weight: 600;
  letter-spacing: 0;
}
.stats small {
  font-size: 10px;
  color: #56677e;
}
.stats small .local-dot {
  margin-right: 5px;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-number {
  font-size: 10px;
  color: #56677e;
  border: 1px solid #e2e8f0;
  background: #f3f6fa;
  padding: 3px 6px;
  border-radius: 5px;
}
.subtle {
  font-size: 10px;
  color: #56677e;
}
form {
  padding: 23px 25px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 7px;
}
label .required {
  color: #56677e;
}
label .optional {
  font-weight: 400;
  color: #56677e;
  font-size: 10px;
  margin-left: 5px;
}
.field-help {
  font-size: 10px;
  color: #56677e;
  margin-top: 6px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0 23px;
}
.suggestions button {
  font-size: 10px;
  border: 1px solid #e2e8f0;
  background: #fafbfd;
  border-radius: 5px;
  color: #56677e;
  padding: 5px 9px;
}
.suggestions button:hover {
  background: #f3f6fa;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 18px 0;
}
.toggle-box {
  margin: 22px 0 8px;
  padding: 15px 12px;
  background: #fafbfd;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  position: relative;
}
.email-icon {
  font-size: 21px;
  color: #56677e;
}
.toggle-box strong {
  font-size: 11px;
  font-weight: 600;
}
.toggle-box small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #56677e;
  margin-top: 3px;
}
.toggle-box input {
  position: absolute;
  opacity: 0;
  width: 30px;
  height: 25px;
  right: 13px;
  min-height: 0;
}
.switch {
  margin-left: auto;
  background: #c4cedb;
  width: 31px;
  height: 18px;
  border-radius: 20px;
  position: relative;
  flex-shrink: 0;
  pointer-events: none;
}
.switch:after {
  content: "";
  background: white;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
}
.toggle-box input:checked + .switch {
  background: #3c506c;
}
.toggle-box input:checked + .switch:after {
  left: 16px;
}
.toggle-box input:focus-visible + .switch {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}
.advanced {
  margin: 14px 0 18px;
}
.advanced summary {
  font-size: 10px;
  color: #56677e;
  padding: 7px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.advanced[open] summary span {
  transform: rotate(180deg);
}
.advanced label {
  font-size: 10px;
}
.primary {
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.primary:hover {
  background: #1d4ed8;
}
form > .primary {
  width: 100%;
}
.primary > span {
  margin-left: auto;
  font-size: 18px;
}
.form-footnote {
  text-align: center;
  font-size: 9px;
  color: #56677e;
  line-height: 1.8;
  margin-top: 10px;
}
.guide {
  border: 1px solid #e2e8f0;
  background: #f3f6fa;
  border-radius: 8px;
  overflow: hidden;
}
.guide-art {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}
.map-grid {
  position: absolute;
  inset: -70px;
  background:
    repeating-linear-gradient(
      25deg,
      transparent 0 48px,
      #c4cedb 49px 50px,
      transparent 51px 90px
    ),
    repeating-linear-gradient(
      115deg,
      transparent 0 65px,
      #c4cedb 66px 69px,
      transparent 70px 110px
    );
  transform: rotate(-8deg);
  opacity: 0.7;
}
.guide-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #e2e8f0, transparent 70%);
}
.map-pin {
  position: absolute;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #3c506c;
  color: #e2e8f0;
  padding: 7px 13px;
  font-size: 17px;
  box-shadow: -7px 8px 0 #3c506c20;
}
.p1 {
  left: 26%;
  top: 46px;
}
.p2 {
  left: 65%;
  top: 34px;
  background: #56677e;
  color: #f3f6fa;
  transform: rotate(-45deg) scale(0.75);
}
.p3 {
  left: 49%;
  top: 95px;
  background: #56677e;
  transform: rotate(-45deg) scale(0.8);
}
.map-label {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 25px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  color: #56677e;
}
.guide-content {
  padding: 21px 25px 25px;
}
.guide h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 10px 0;
}
.guide-content > p {
  font-size: 11px;
  color: #56677e;
  line-height: 1.8;
}
.guide ul {
  list-style: none;
  padding: 12px 0 15px;
  margin: 0;
}
.guide li {
  font-size: 11px;
  margin: 12px 0;
  color: #3c506c;
  display: flex;
  gap: 10px;
  align-items: center;
}
.guide li span {
  border-radius: 50%;
  background: #e2e8f0;
  padding: 0 5px;
  font-size: 10px;
}
.guide-note {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
}
.guide-note strong {
  font-size: 10px;
  color: #3c506c;
}
.guide-note p {
  font-size: 10px;
  color: #56677e;
  line-height: 1.8;
  margin-top: 5px;
}
.history {
  margin-top: 0;
  scroll-margin-top: 20px;
}
.mobile-nav {
  display: none;
}
.mobile-nav a {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
  border-radius: 6px;
  font-size: 12px;
  color: #56677e;
}
.mobile-nav a.active {
  background: #2563eb;
  color: #fff;
}
.pill {
  font-size: 9px;
  background: #f3f6fa;
  border-radius: 20px;
  padding: 2px 8px;
  color: #56677e;
}
.text-button {
  border: 1px solid #e2e8f0;
  background: white;
  color: #56677e;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
}
.text-button:hover {
  background: #f3f6fa;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0;
  color: #56677e;
  background: #fafbfd;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 16px 24px;
  border-bottom: 1px solid #f3f6fa;
  color: #3c506c;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 30px;
}
.empty-icon {
  font-size: 29px;
  background: #f3f6fa;
  color: #56677e;
  border: 1px solid #e2e8f0;
  width: 44px;
  height: 44px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 12px;
}
.empty strong {
  font-size: 12px;
  font-weight: 500;
  color: #3c506c;
}
.empty p {
  font-size: 10px;
  color: #56677e;
  margin-top: 4px;
}
.actions-heading {
  text-align: right;
}
.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.job-name {
  font-weight: 600;
  color: #263c59;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-keywords {
  font-size: 9px;
  color: #56677e;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.badge {
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  white-space: nowrap;
  background: #f3f6fa;
  color: #56677e;
}
.badge.ok {
  background: #e2e8f0;
  color: #3c506c;
}
.badge.working {
  background: #fff3d8;
  color: #97732c;
}
.badge.failed {
  background: #faeae4;
  color: #a76147;
}
.delete-button {
  border: 0;
  background: transparent;
  color: #ab8073;
  font-size: 17px;
  padding: 0 5px;
}
.message {
  border-radius: 7px;
  font-size: 11px;
  padding: 10px 12px;
  margin: 10px 0;
  line-height: 1.7;
}
.error {
  color: #a24330;
  background: #fff0ec;
}
.success {
  color: #3c506c;
  background: #f3f6fa;
}
.history > .message {
  margin: 12px 24px;
}
.compact {
  padding: 7px 11px;
  font-size: 10px;
  display: inline-flex;
}
.secondary {
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  color: #3c506c;
  padding: 7px 11px;
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #69798e;
  padding: 24px 0 4px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  width: min(1200px, 95vw);
  max-height: 85vh;
  color: var(--ink);
  box-shadow: 0 20px 100px #263c5933;
}
dialog::backdrop {
  background: #263c5977;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
  margin: 6px 0;
}
.dialog-heading p {
  font-size: 11px;
  color: var(--muted);
}
.close-button {
  border: 0;
  background: #f3f6fa;
  border-radius: 6px;
  font-size: 24px;
  line-height: 28px;
  width: 30px;
  color: #56677e;
}
.results-scroll {
  max-height: 48vh;
}
.results-scroll table {
  min-width: 900px;
}
.results-scroll th,
.results-scroll td {
  padding: 11px 12px;
}
.results-scroll td {
  max-width: 250px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.results-scroll a {
  color: #3c506c;
  text-decoration: underline;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 10px;
  color: #56677e;
}
#delete-dialog {
  max-width: 430px;
}
#delete-dialog p {
  font-size: 12px;
  margin-bottom: 10px;
  color: #56677e;
}
.delete-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 24px;
}
.danger {
  background: #a44d36;
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .intro h1 {
    font-size: 36px;
  }
  .guide-art {
    height: 205px;
  }
  .guide-content {
    padding: 26px 30px;
  }
  .guide h2 {
    font-size: 28px;
  }
  .guide li {
    margin: 15px 0;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding: 30px 16px;
  }
  .page {
    margin-left: 200px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 28px 26px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
    gap: 18px;
  }
  .card-heading {
    padding: 18px;
  }
  .card-heading h2 {
    font-size: 15px;
  }
  .subtle {
    display: none;
  }
  form {
    padding: 20px;
  }
  .intro h1 {
    font-size: 27px;
  }
  .region-tag {
    display: none;
  }
  .guide-content {
    padding: 20px;
  }
  .toggle-box small {
    max-width: 210px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 75px;
    padding: 25px 12px;
  }
  .brand {
    font-size: 0;
    padding: 0 8px;
  }
  .brand-mark {
    margin: 0;
  }
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    font-size: 0;
    padding: 14px 12px;
    margin-top: 15px;
    gap: 0;
  }
  .nav-item > span:first-child {
    font-size: 22px;
  }
  .count {
    display: none;
  }
  .page {
    margin-left: 75px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .guide {
    display: none;
  }
  .intro h1 {
    font-size: 29px;
  }
  .stats {
    gap: 10px;
  }
  .stats article {
    padding: 14px 16px;
  }
  .history .card-heading > div {
    gap: 7px;
  }
  th,
  td {
    padding: 12px 16px;
  }
}
@media (max-width: 580px) {
  .mobile-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    background: #e2e8f0;
    border-radius: 8px;
  }
  .sidebar {
    display: none;
  }
  .page {
    margin: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
    font-size: 10px;
  }
  .connection {
    font-size: 9px;
    padding: 5px 8px;
  }
  .breadcrumb,
  .slash {
    display: none;
  }
  main {
    padding: 27px 16px 16px;
  }
  .intro {
    margin-bottom: 23px;
  }
  .intro h1 {
    font-size: 26px;
    letter-spacing: 0;
    max-width: 280px;
  }
  .intro p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .stats {
    gap: 7px;
    margin-bottom: 20px;
  }
  .stats article {
    padding: 12px 11px;
  }
  .stats article > span {
    font-size: 9px;
  }
  .stats strong {
    font-size: 25px;
  }
  .stats small {
    font-size: 8px;
  }
  .stats article:first-child small {
    max-width: 80px;
  }
  .card-heading {
    padding: 17px;
  }
  .card-heading h2 {
    font-size: 14px;
  }
  form {
    padding: 18px;
  }
  .two-col {
    gap: 10px;
  }
  .toggle-box {
    gap: 8px;
  }
  .toggle-box strong {
    font-size: 10px;
  }
  .toggle-box small {
    font-size: 8px;
    max-width: 180px;
  }
  .pill {
    display: none;
  }
  footer {
    flex-direction: column;
    font-size: 8px;
  }
  dialog {
    padding: 17px;
  }
  .dialog-footer {
    flex-direction: column;
    align-items: start;
  }
  .row-actions {
    gap: 5px;
  }
  .row-actions a,
  .row-actions button {
    font-size: 9px;
  }
  #history table {
    min-width: 600px;
  }
}
