:root {
  font-family: Inter, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
  color: #272637;
  background: #f7f8fc;
  font-size: 16px;
  font-synthesis: none;
  --accent: #7560de;
  --muted: #818295;
  --border: #ebeaf2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
  text-decoration: none;
}
svg {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bcb1ff;
  outline-offset: 3px;
}
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px 20px;
  background: white;
  border-right: 1px solid var(--border);
  position: fixed;
  width: 240px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 30px;
}
.logo {
  background: var(--accent);
  color: white;
  width: 38px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
}
.brand strong {
  font-size: 23px;
  letter-spacing: 2px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #8b8b9c;
  display: block;
  margin-top: 2px;
}
.navlabel {
  font-size: 12px;
  color: #a1a0af;
  letter-spacing: 1px;
  padding: 17px 14px 10px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  width: 100%;
  padding: 13px 15px;
  margin: 3px 0;
  border-radius: 9px;
  color: #78788c;
  font-size: 14px;
}
.nav.active {
  background: #eeebfb;
  color: #7259d2;
  font-weight: 650;
}
.nav:hover {
  background: #f4f1fc;
}
.sidebottom {
  margin-top: auto;
}
.helpbox {
  background: #f7f6fd;
  border: 1px solid #eeebfa;
  border-radius: 12px;
  padding: 16px;
  margin: 25px 4px 17px;
}
.helpbox p {
  font-size: 12px;
  line-height: 1.7;
  color: #9691ad;
}
.helpbox strong {
  font-size: 14px;
}
.helpbox button {
  font-size: 13px;
  color: #7861cf;
  padding: 0;
}
.sidefoot {
  color: #aaa5bb;
  font-size: 11px;
  padding: 10px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 85px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 13px;
  color: #9694a7;
}
.breadcrumb span {
  color: #4a475d;
  margin-left: 15px;
}
.topright {
  display: flex;
  align-items: center;
  gap: 19px;
}
.mode {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 6px;
  background: #f5f3ff;
  color: #8c76d8;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eae3fb;
  color: #8063b8;
  width: 37px;
  height: 37px;
  font-size: 14px;
}
.profile strong {
  font-size: 13px;
  display: block;
}
.profile small {
  font-size: 11px;
  color: #9b97a8;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 32px 38px 22px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.pagehead h1 {
  font-size: 25px;
  letter-spacing: 0.5px;
  margin: 0 0 9px;
  font-weight: 650;
}
.pagehead p {
  color: #8b899b;
  font-size: 14px;
  margin: 0;
}
.primary {
  background: var(--accent);
  color: white;
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px #7560de18;
}
.primary:hover {
  background: #6551ca;
}
.secondary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px 14px;
  font-size: 13px;
}
.hero {
  border-radius: 14px;
  background: #eeebfc;
  overflow: hidden;
  position: relative;
  padding: 28px 30px;
  min-height: 173px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e8e3fa;
}
.hero h2 {
  font-size: 24px;
  margin: 9px 0 10px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 13px;
  color: #8c82a7;
  margin: 0 0 18px;
}
.eyebrow {
  color: #9681c5;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
.hero .primary {
  font-size: 12px;
  padding: 8px 14px;
}
.heroart {
  width: 270px;
  height: 160px;
  position: absolute;
  right: 22px;
  top: 5px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(130deg, #dcd3fa, #b6a6ed);
  box-shadow:
    inset -15px -12px 25px #8872c830,
    0 18px 25px #8065c526;
}
.orb.one {
  width: 117px;
  height: 117px;
  left: 76px;
  top: 24px;
}
.orb.two {
  width: 50px;
  height: 50px;
  left: 208px;
  top: 99px;
  background: linear-gradient(135deg, #e1dcfb, #b0a9dd);
}
.floating {
  position: absolute;
  width: 67px;
  height: 75px;
  border-radius: 14px;
  background: #ffffffc9;
  box-shadow: 0 10px 24px #9888ba26;
  display: grid;
  place-items: center;
  transform: rotate(-14deg);
  left: 36px;
  top: 72px;
  color: #9b82d5;
  border: 2px solid #fff;
}
.floating svg {
  width: 33px;
  height: 33px;
}
.floating.star {
  left: 172px;
  top: 21px;
  width: 63px;
  height: 63px;
  transform: rotate(14deg);
  color: #af95e5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px;
}
.stathead {
  display: flex;
  justify-content: space-between;
  color: #898598;
  font-size: 13px;
}
.iconbox {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0ecfd;
  color: #9478dd;
}
.stat strong {
  font-size: 29px;
  display: block;
  letter-spacing: 1px;
  margin: 4px 0 13px;
  font-weight: 650;
}
.stat small {
  font-size: 11px;
  color: #a3a0ae;
}
.stat small b {
  color: #6ba997;
  font-weight: 500;
}
.dashboardgrid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.panelhead {
  padding: 20px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panelhead h3,
.sectionhead h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.panelhead small {
  font-size: 11px;
  color: #aaa4b9;
}
.chart {
  height: 188px;
  padding: 18px 22px 16px;
  display: flex;
  gap: 12px;
}
.axis {
  font-size: 10px;
  color: #b1adbf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 24px;
}
.plot {
  position: relative;
  flex: 1;
  min-width: 0;
}
.plot svg {
  width: 100%;
  height: 136px;
  stroke: none;
}
.days {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a7a1b5;
  margin-top: 5px;
}
.distribution {
  padding: 20px 23px;
}
.barrow {
  display: grid;
  grid-template-columns: 95px 1fr 30px;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin: 17px 0;
  color: #898295;
}
.bartrack {
  background: #f5f3fa;
  height: 7px;
  border-radius: 5px;
  overflow: hidden;
}
.barfill {
  height: 100%;
  background: #a895e6;
  border-radius: 5px;
  width: var(--width);
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 17px;
}
.sectionhead button {
  color: #9484bf;
  font-size: 12px;
}
.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.appcard {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 11px;
  padding: 18px;
  text-align: left;
  transition:
    transform 0.2s,
    border 0.2s;
}
.appcard:hover {
  transform: translateY(-3px);
  border-color: #b8a9e9;
}
.appvisual {
  height: 101px;
  border-radius: 8px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eee8fc;
  color: #a788dc;
}
.appvisual:before,
.appvisual:after {
  content: '';
  position: absolute;
  border: 1px solid #ffffff80;
  width: 100px;
  height: 100px;
  transform: rotate(28deg);
  border-radius: 20px;
  left: 15px;
  top: 10px;
}
.appvisual:after {
  left: auto;
  right: -24px;
  top: -49px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: #ffffff26;
}
.appvisual svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.2;
  z-index: 1;
}
.appvisual.blue {
  background: #e7effd;
  color: #85a4d8;
}
.appvisual.orange {
  background: #fbede3;
  color: #d4a47c;
}
.appvisual.green {
  background: #e2f1ed;
  color: #7daf9f;
}
.appcard h4 {
  font-size: 14px;
  margin: 15px 0 8px;
}
.appcard p {
  font-size: 12px;
  color: #a39bab;
  line-height: 1.7;
  margin: 0 0 14px;
  min-height: 40px;
}
.appmeta {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #a297b3;
  align-items: center;
}
.tag {
  background: #f6f3fc;
  padding: 4px 7px;
  border-radius: 4px;
  color: #9884bb;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 13px;
  text-align: left;
}
th {
  background: #faf9fd;
  font-size: 12px;
  font-weight: 500;
  color: #a29aad;
  padding: 13px 20px;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f2eff7;
  color: #81788e;
}
td:first-child {
  color: #4d465c;
}
tr:last-child td {
  border-bottom: 0;
}
.pill {
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
  background: #edf7f2;
  color: #71a18d;
}
.pill.running {
  background: #f1ecfb;
  color: #9b82c8;
}
.pill.off {
  background: #faeceb;
  color: #c78383;
}
.empty {
  padding: 35px;
  text-align: center;
  color: #a29bad;
  font-size: 13px;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #b5aebf;
  font-size: 10px;
  padding: 26px 0 0;
}
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filterbar input {
  max-width: 320px;
}
.filter {
  font-size: 13px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.filter.selected {
  color: var(--accent);
  background: #eeebfb;
  border-color: #d9cef6;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e2ddeb;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  color: #494158;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #7560de14;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
label {
  font-size: 13px;
  display: block;
  margin: 15px 0 7px;
  color: #7c718d;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.formactions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 510px;
  max-width: calc(100vw - 30px);
  padding: 28px;
  color: inherit;
  box-shadow: 0 30px 100px #28203d29;
}
dialog::backdrop {
  background: #20183255;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.subtext {
  font-size: 13px;
  color: #9c92a9;
  line-height: 1.8;
}
.modalclose {
  position: absolute;
  top: 15px;
  right: 15px;
}
.notice {
  padding: 12px 15px;
  background: #f7f3fe;
  border-radius: 8px;
  color: #9680b1;
  font-size: 12px;
  line-height: 1.8;
}
.result {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 14px;
  background: #f8f6fc;
  padding: 18px;
  border-radius: 8px;
}
.error {
  color: #c4666e;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #383044;
  color: white;
  border-radius: 9px;
  padding: 13px 24px;
  font-size: 14px;
  z-index: 99;
  display: none;
}
.loginpage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.loginintro {
  background: #eeebfc;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.loginintro h1 {
  font-size: 44px;
  font-weight: 650;
  line-height: 1.5;
  margin: 30px 0 15px;
}
.loginintro p {
  color: #8e7ca7;
  font-size: 16px;
  line-height: 1.9;
  max-width: 400px;
}
.loginintro .heroart {
  position: relative;
  right: auto;
  top: auto;
  transform: scale(1.35);
  transform-origin: left;
  margin: 30px;
}
.loginform {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.loginbox {
  max-width: 370px;
  width: 100%;
}
.loginbox h2 {
  font-size: 28px;
  margin-bottom: 9px;
}
.loginbox .primary {
  width: 100%;
  margin: 23px 0;
}
.demobox {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 22px;
  background: #fbfafd;
}
.demobox p {
  font-size: 12px;
  color: #9990a7;
  margin: 0 0 12px;
}
.demobuttons {
  display: flex;
  gap: 8px;
}
.demobuttons button {
  background: #f0ebf9;
  color: #8e78af;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
.mobilebrand {
  display: none;
}
.balance {
  padding: 25px;
}
.balance strong {
  font-size: 35px;
  display: block;
  margin: 15px 0;
}
.balance p {
  font-size: 13px;
  color: #94899f;
}
.settingsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.textbtn {
  color: var(--accent);
  font-size: 12px;
  padding: 3px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .content {
    padding-top: 38px;
  }
  .hero {
    min-height: 190px;
  }
  .appvisual {
    height: 120px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
    padding: 25px 12px;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .apps {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding: 15px;
  }
  .dashboardgrid {
    grid-template-columns: 1fr;
  }
  .heroart {
    right: -20px;
  }
  .hero > div:first-child {
    z-index: 1;
    max-width: 65%;
  }
  .stats {
    gap: 10px;
  }
  .stat strong {
    font-size: 25px;
  }
  .loginintro {
    padding: 40px;
  }
  .loginintro h1 {
    font-size: 34px;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    padding: 0 12px 10px;
    width: 100%;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 3px;
  }
  .nav {
    width: auto;
    padding: 9px 10px;
    font-size: 12px;
  }
  .nav svg {
    width: 17px;
  }
  .navlabel,
  .sidebottom,
  .sidebar .navlabel {
    display: none;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .breadcrumb {
    display: none;
  }
  .topright {
    justify-content: space-between;
    width: 100%;
  }
  .content {
    padding: 24px 16px;
  }
  .pagehead {
    align-items: flex-start;
    gap: 10px;
  }
  .pagehead h1 {
    font-size: 23px;
  }
  .pagehead p {
    font-size: 12px;
    line-height: 1.8;
  }
  .pagehead > .primary {
    white-space: nowrap;
    font-size: 12px;
  }
  .hero {
    padding: 22px;
    min-height: 190px;
  }
  .hero h2 {
    font-size: 19px;
    line-height: 1.6;
  }
  .hero p {
    line-height: 1.8;
  }
  .heroart {
    opacity: 0.6;
    right: -95px;
    top: 30px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .apps {
    gap: 10px;
  }
  .appcard {
    padding: 12px;
  }
  .appcard h4 {
    font-size: 13px;
  }
  .appmeta {
    font-size: 9px;
  }
  .settingsgrid {
    grid-template-columns: 1fr;
  }
  .loginpage {
    display: block;
  }
  .loginintro {
    display: none;
  }
  .loginform {
    min-height: 100vh;
    padding: 28px;
  }
  .mobilebrand {
    display: block;
  }
  .footer {
    gap: 10px;
    line-height: 1.8;
  }
  .formrow {
    grid-template-columns: 1fr;
  }
  .profile {
    border: 0;
  }
  .mode {
    font-size: 11px;
  }
}
.task-media {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.task-media img,
.task-media video {
  display: block;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 10px;
}
.task-media a {
  font-size: 13px;
}
.pill.failed {
  background: #fbeeee;
  color: #ae5f64;
}
.pill.needs_review {
  background: #fff5de;
  color: #a58036;
}
.pill.queued {
  background: #eeedf9;
  color: #8d80ac;
}
#not-accepted {
  width: auto;
  margin-right: 8px;
}
