:root {
  --accent: #6c4df6;
  --ink: #202339;
  --muted: #7d8093;
  --line: #e9eaf1;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f7f8fc;
  font-size: 14px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
.sidebar-wrapper {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  box-shadow: none;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.4px;
  color: #9294a5;
  margin-top: 2px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9a9cac;
  margin: 45px 15px 15px;
}
.sidebar-wrapper nav {
  display: grid;
  gap: 7px;
}
.sidebar-wrapper .nav-link {
  padding: 13px 15px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: #77798d;
  border-radius: 9px;
  font-weight: 550;
  font-size: 13px;
}
.sidebar-wrapper .nav-link span {
  font-size: 21px;
  width: 22px;
  line-height: 1;
}
.sidebar-wrapper .nav-link:hover,
.sidebar-wrapper .nav-link.active {
  background: #f0ecff;
  color: #6c4df6;
}
.sidebar-note {
  margin-top: auto;
  border: 1px solid var(--line);
  background: #fcfcfe;
  border-radius: 10px;
  padding: 15px;
  font-size: 10px;
  font-weight: 600;
}
.sidebar-note p {
  color: #9395a4;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  margin: 9px 0;
}
.sidebar-note small {
  color: #a1a4b3;
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  background: #18ac89;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
.builder-main {
  margin-left: 250px;
}
.topbar {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
}
.breadcrumb-sep {
  margin: 0 15px;
  color: #c7c8d1;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #efeafe;
  color: #7655dc;
  font-weight: 600;
}
.logout-btn {
  border: 0;
  background: none;
  color: #9699a7;
  margin-left: 8px;
}
.account form {
  margin: 0;
}
.workspace {
  padding: 36px 40px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 140px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin: 0 0 9px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 16px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}
p.subtext,
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.8;
}
.btn {
  border-radius: 7px;
  font-size: 12px;
  box-shadow: none !important;
  font-weight: 550;
  padding: 11px 17px;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #583dd4;
  border-color: #583dd4;
}
.btn-light,
.btn-outline-secondary {
  background: #fff;
  color: #606377;
  border: 1px solid #e1e3ec;
}
.btn-sm {
  padding: 7px 11px;
  font-size: 11px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.actions form {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.stat-icon {
  height: 46px;
  width: 46px;
  border-radius: 10px;
  background: #eeeaff;
  display: grid;
  place-items: center;
  font-size: 23px;
  color: var(--accent);
}
.stat:nth-child(2) .stat-icon {
  background: #e5f6f1;
  color: #1aaf8b;
}
.stat:nth-child(3) .stat-icon {
  background: #fff3e2;
  color: #eeab46;
}
.stat strong {
  font-size: 25px;
  font-weight: 650;
  display: block;
  line-height: 1.3;
}
.stat small {
  color: #9294a6;
  font-size: 11px;
}
.card-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 25px;
  margin-bottom: 24px;
  box-shadow: 0 3px 12px #20233902;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-heading h2 {
  margin: 0;
  font-size: 15px;
}
.badge-soft {
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 550;
  color: #7d6ca5;
  background: #f1edfa;
}
.badge-ready {
  color: #119a78;
  background: #e7f7f0;
}
.project-title {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-weight: 600;
}
.project-monogram {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  color: #7f6bc3;
  background: #f0ecfa;
  font-size: 12px;
}
.project-title small {
  display: block;
  color: #a0a1af;
  font-weight: 400;
  font-size: 10px;
  margin-top: 4px;
}
.table {
  font-size: 12px;
  --bs-table-bg: transparent;
}
.table th,
table.dataTable thead th {
  color: #9a9baa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  border-bottom: 1px solid var(--line) !important;
  padding: 14px 10px;
}
.table td,
table.dataTable tbody td {
  padding: 18px 10px;
  border-bottom: 1px solid #f0f1f6;
  vertical-align: middle;
  color: #77798b;
}
.table-wrap {
  overflow-x: auto;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  margin-bottom: 15px;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 11px;
  margin-top: 15px;
  color: #8f91a1;
}
.dataTables_wrapper .dataTables_length {
  font-size: 11px;
  color: #8f91a1;
}
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--line);
  border-radius: 5px;
}
.empty {
  text-align: center;
  padding: 55px 20px;
}
.empty-icon {
  font-size: 42px;
  color: #b6a9e6;
  margin-bottom: 18px;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 22px;
}
.builder-footer {
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  color: #a1a3b1;
  font-size: 10px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.tabs a {
  padding: 13px 18px;
  color: #9293a4;
  font-size: 12px;
}
.tabs a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 550;
  color: #64677c;
}
.field small {
  font-size: 11px;
  color: #989bab;
  line-height: 1.5;
}
.full {
  grid-column: 1/-1;
}
.form-control,
.form-select {
  border: 1px solid #e2e4ee;
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 13px;
  color: #444860;
  background: #fff;
}
.form-control:focus,
.form-select:focus {
  border-color: #b6a9fb;
  box-shadow: 0 0 0 3px #6c4df612;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 15px 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #73768b;
}
.check input {
  accent-color: var(--accent);
  height: 15px;
  width: 15px;
}
.form-actions {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
  display: flex;
  gap: 10px;
}
.select2-container .select2-selection--single {
  height: 42px;
  border: 1px solid #e2e4ee;
  border-radius: 7px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 40px;
  font-size: 13px;
  padding-left: 12px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px;
}
.select2-container .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid #e2e4ee;
  border-radius: 7px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background: #f0ecff;
  border: 0;
  padding: 5px 8px;
  color: #7057b5;
  font-size: 11px;
}
.select2-dropdown {
  border: 1px solid #e2e4ee;
  font-size: 13px;
}
.select2-results__option--highlighted[aria-selected] {
  background: var(--accent) !important;
}
.hint {
  background: #f6f3ff;
  border: 1px solid #eae3ff;
  padding: 17px 20px;
  border-radius: 8px;
  color: #8976b2;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.section-title {
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
pre {
  background: #f8f9fc;
  border: 1px solid var(--line);
  color: #687187;
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  max-height: 400px;
  overflow: auto;
}
.code {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.guest-main {
  max-width: 490px;
  margin: 70px auto;
  padding: 0 20px;
}
.guest-main > .brand {
  justify-content: center;
  margin-bottom: 40px;
}
.guest-main .card-panel {
  padding: 32px;
}
.guest-main h1 {
  font-size: 23px;
}
.guest-main .form-grid {
  grid-template-columns: 1fr;
}
.guest-main .btn-primary {
  width: 100%;
}
.guest-main .subtext {
  margin-bottom: 25px;
}
.alert {
  font-size: 12px;
  border-radius: 8px;
  line-height: 1.7;
}
.menu-toggle {
  display: none;
}
.file-list {
  max-height: 300px;
  overflow: auto;
  font-family: Consolas, monospace;
  font-size: 11px;
  line-height: 1.8;
  color: #7e8191;
}
.step-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.step-strip span {
  color: #999aaa;
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 11px;
}
.step-strip .done {
  color: #119a78;
  background: #edf9f4;
}
.section-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
details > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  margin: 15px 0;
}
textarea {
  font-family: inherit;
}
textarea[name$="json"] {
  font-family: Consolas, monospace;
  font-size: 12px;
}
@media (min-width: 1700px) {
  .workspace {
    padding-top: 50px;
  }
}
@media (max-width: 1100px) {
  .sidebar-wrapper {
    width: 215px;
    padding: 25px 15px;
  }
  .builder-main {
    margin-left: 215px;
  }
  .topbar {
    padding: 0 25px;
  }
  .workspace {
    padding: 28px 25px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .section-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sidebar-wrapper {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar-wrapper.open {
    transform: translateX(0);
  }
  .builder-main {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-block;
    background: none;
    border: 0;
    margin-right: 12px;
    font-size: 20px;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .account > span:not(.avatar) {
    display: none;
  }
  .workspace {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 14px 18px;
  }
  .stat strong {
    font-size: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .tabs a {
    padding: 11px 10px;
  }
  .card-panel {
    padding: 20px;
  }
  .builder-footer {
    padding: 15px 16px;
  }
  .builder-footer span:last-child {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
}
