[hidden] {
  display: none !important;
}
:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #172c40;
  background: #f4f6f9;
  font-synthesis: none;
  --blue: #1d62a6;
  --ink: #142a40;
  --muted: #64748b;
  --line: #dce3eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  border-color: var(--blue);
  background: #f1f7fd;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #75b9f4;
  outline-offset: 2px;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #174e85;
  color: white;
}
.danger {
  color: #9d2929;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: white;
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin: 15px 0 6px;
}
label.check {
  display: flex;
  align-items: start;
  gap: 9px;
  line-height: 1.5;
  font-weight: 400;
}
input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 7px 0 10px;
}
h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: var(--muted);
}
small {
  line-height: 1.6;
  display: block;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #132a40;
  color: #dce7f2;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 800;
  color: white;
}
.brand span {
  color: #79baf1;
}
.sidebar .muted {
  color: #9fb2c6;
  font-size: 12px;
}
.sidebar nav {
  margin-top: 40px;
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  text-align: left;
  color: #bacdde;
  background: transparent;
  border-color: transparent;
  font-weight: 500;
  padding: 12px;
}
.sidebar nav button.active {
  color: white;
  background: #25435e;
}
.sidebar .bottom {
  margin-top: auto;
  padding-top: 50px;
}
.sidebar .bottom button {
  color: #dce7f2;
}
.main {
  min-width: 0;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 20px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar select {
  max-width: 290px;
}
.topbar small {
  font-size: 12px;
}
.content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 36px 38px;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.heading p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.stat .number {
  font-size: 29px;
  font-weight: 700;
  display: block;
  margin-top: 8px;
}
.stat small {
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar select {
  width: auto;
  max-width: 250px;
}
.pill {
  font-size: 11px;
  line-height: 1.3;
  display: inline-block;
  border-radius: 30px;
  padding: 6px 10px;
  background: #edf2f7;
  color: #4d6178;
  font-weight: 650;
}
.pill.reviewed,
.pill.approved,
.pill.accepted {
  background: #e5f4ed;
  color: #27634c;
}
.pill.scheduled,
.pill.running {
  background: #e8f1ff;
  color: #245999;
}
.pill.paused,
.pill.unknown {
  background: #fff0da;
  color: #855516;
}
.pill.canceled,
.pill.blocked {
  background: #fceaea;
  color: #943b3b;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: #65768a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  margin-bottom: 3px;
}
.table-wrap {
  overflow-x: auto;
}
.empty {
  text-align: center;
  padding: 50px 24px;
}
.empty p {
  color: var(--muted);
  max-width: 470px;
  margin: 10px auto 24px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.scenario {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scenario p {
  font-size: 14px;
  margin: 0;
  color: #53657a;
}
.scenario .toolbar {
  margin-top: auto;
}
.scenario small {
  font-size: 12px;
}
.sectionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 18px;
}
.sectionbar h2 {
  margin: 0;
}
.note {
  font-size: 13px;
  color: #5c6e80;
  line-height: 1.6;
  margin: 14px 0;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #132a40;
  color: white;
  padding: 12vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story h1 {
  font-size: 43px;
  line-height: 1.2;
  margin-top: 50px;
}
.login-story p {
  color: #adbed0;
}
.login-form {
  padding: 12vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form form {
  max-width: 390px;
}
.login-form button {
  margin-top: 24px;
  width: 100%;
}
dialog {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 30px 90px #10243840;
  padding: 0;
  width: min(920px, 95vw);
  max-height: 92vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #10243880;
}
.modal {
  padding: 28px 32px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.modal-head h2 {
  margin: 0;
}
.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
}
.modal-body {
  margin-top: 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.steps {
  display: flex;
  gap: 7px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.steps span {
  font-size: 12px;
  background: #eef2f6;
  padding: 8px 12px;
  border-radius: 20px;
  color: #68798c;
}
.steps span.current {
  background: #e2eeff;
  color: #174f8c;
  font-weight: 700;
}
.preview {
  background: #f7f9fb;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 7px;
  white-space: pre-wrap;
  font: 14px/1.7 inherit;
  max-height: 280px;
  overflow: auto;
}
.back {
  margin-bottom: 20px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.kv {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 12px;
  font-size: 13px;
  margin: 12px 0;
}
.kv strong {
  font-weight: 500;
  color: #62748a;
}
.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.banner {
  background: #ecf4ff;
  border: 1px solid #cfdef3;
  padding: 13px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #355779;
}
#notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  max-width: 560px;
  background: #142e46;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 35px #132a4030;
  display: none;
}
.error {
  color: #a33131;
  font-size: 13px;
}
.domain-record {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  background: #f5f7fa;
  padding: 12px;
  border-radius: 5px;
}
.field-group[hidden] {
  display: none;
}
.link {
  background: none;
  border: 0;
  color: var(--blue);
  padding: 0;
  font-weight: 600;
}
.spaced {
  margin-top: 24px;
}
@media (max-width: 1000px) {
  .sidebar {
    padding: 24px 14px;
  }
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar {
    padding: 18px 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .library-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px;
  }
  .sidebar nav {
    display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar nav button {
    padding: 9px;
  }
  .sidebar .bottom {
    display: none;
  }
  .topbar {
    padding: 15px;
    flex-wrap: wrap;
  }
  .content {
    padding: 25px 16px;
  }
  .heading {
    align-items: start;
  }
  .heading h1 {
    font-size: 25px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 22px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px;
  }
  .login-story h1 {
    font-size: 30px;
    margin-top: 25px;
  }
  .login-form {
    padding: 35px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
}
