* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f7f6f9;
  color: #302638;
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: #9c227c;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #cf74bd;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: #7c7285;
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #9b7395;
  margin-bottom: 10px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: #af278d;
  color: white;
  font-size: 31px;
  line-height: 1;
}
.workspace {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid #eae5ed;
  display: flex;
  flex-direction: column;
  padding: 35px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #302638;
  font-size: 23px;
  font-weight: 750;
  padding: 0 8px;
}
.brand small {
  display: block;
  letter-spacing: 2px;
  font-size: 8px;
  color: #978c9e;
  margin-top: 2px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #a298aa;
  margin: 45px 15px 15px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  color: #7a6e84;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 15px;
  font-weight: 550;
  border-radius: 10px;
}
nav a span {
  font-size: 22px;
  line-height: 1;
  width: 23px;
  text-align: center;
}
nav a:hover {
  background: #faf5fa;
}
nav a.active {
  background: #f7eaf4;
  color: #a02681;
}
nav a.active:after {
  content: '';
  width: 5px;
  height: 5px;
  background: #af278d;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 5px 0;
  border-top: 1px solid #eee9f0;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #f7e9f2;
  color: #a02681;
  border-radius: 50%;
  font-weight: 700;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom small {
  display: block;
  color: #9b90a2;
  font-size: 11px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #8c8194;
  font-size: 22px;
  margin-left: auto;
}
main {
  min-width: 0;
  padding: 0 42px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #e7e2ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #84778e;
}
.private-badge {
  color: #72627a;
  background: #eeebf2;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 28px;
}
.page-heading .muted {
  margin-top: 9px;
  font-size: 13px;
}
.primary,
.secondary,
.danger {
  border-radius: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
}
.primary {
  background: #a42685;
  color: white;
}
.primary:hover {
  background: #89186e;
}
.secondary {
  border-color: #e4dce8;
  background: white;
  color: #62536d;
}
.secondary:hover {
  background: #f7f1f8;
}
.danger {
  background: #f9e8ed;
  color: #a32846;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid #e9e3ec;
  border-radius: 13px;
  padding: 21px;
  position: relative;
}
.stat-label {
  font-size: 12px;
  color: #8a7e94;
}
.stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 9px 0 3px;
  font-weight: 650;
}
.stat small {
  font-size: 11px;
  color: #988ba1;
}
.stat .stat-icon {
  position: absolute;
  top: 19px;
  right: 17px;
  color: #b671a6;
  background: #faeff7;
  border-radius: 9px;
  padding: 3px 9px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 23px;
}
.panel {
  background: white;
  border: 1px solid #e8e1ed;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 23px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 24px 18px;
}
.panel-heading p {
  font-size: 12px;
  color: #9b8fa3;
  margin-top: 4px;
}
.panel-body {
  padding: 0 24px 24px;
}
.panel-link {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 210px;
  padding-top: 20px;
  border-bottom: 1px solid #ede8ef;
}
.chart-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.chart-pair {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 160px;
}
.chart progress {
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  display: block;
  width: 50%;
  height: 100%;
  border: 0;
  background: transparent;
}
.chart progress::-webkit-progress-bar {
  background: #f8f4f9;
  border-radius: 4px;
}
.chart progress::-webkit-progress-value {
  background: #b03890;
  border-radius: 4px;
}
.chart progress.signups::-webkit-progress-value {
  background: #dfb2d5;
}
.chart progress::-moz-progress-bar {
  background: #b03890;
}
.chart-column small {
  font-size: 9px;
  color: #9e92a5;
}
.legend {
  display: flex;
  gap: 20px;
  color: #897b93;
  font-size: 11px;
  margin-top: 15px;
}
.legend span:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 7px;
  background: #b03890;
}
.legend span + span:before {
  background: #dfb2d5;
}
.queue-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid #f1ecf3;
  color: #5d4e69;
  font-size: 12px;
}
.queue-link:last-child {
  border: 0;
}
.count {
  min-width: 27px;
  border-radius: 7px;
  text-align: center;
  background: #f4edf6;
  padding: 4px 8px;
  color: #9f558d;
  font-size: 11px;
}
.count.urgent {
  background: #fbeaf0;
  color: #b23b5c;
}
.note {
  background: #f8f1f8;
  color: #876d90;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.7;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.status-item {
  border: 1px solid #eee7f0;
  border-radius: 10px;
  padding: 16px;
}
.status-item strong {
  display: block;
  font-size: 21px;
}
.status-item span {
  font-size: 11px;
  color: #92829b;
}
.updated {
  font-size: 11px;
  color: #a295aa;
  margin-top: 8px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e7e0eb;
  margin: 30px 0 20px;
  padding-top: 17px;
  color: #a396ab;
  font-size: 10px;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  padding: 9px 16px;
  border: 1px solid #e4dce9;
  border-radius: 8px;
  background: white;
  color: #897691;
  font-size: 12px;
}
.tabs button.selected {
  border-color: #b23892;
  background: #f9edf5;
  color: #a02681;
}
.case {
  padding: 23px;
  border-bottom: 1px solid #eee7f1;
}
.case:last-child {
  border: 0;
}
.case-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}
.case p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.case .meta {
  font-size: 11px;
  color: #9c8ca5;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 8px;
  background: #f3edf6;
  color: #8c609e;
  font-size: 10px;
}
.badge.warning {
  background: #fff2df;
  color: #9c7030;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}
.empty {
  padding: 50px 25px;
  text-align: center;
}
.empty span {
  font-size: 30px;
  color: #ba91b6;
}
.empty h3 {
  margin: 10px 0 6px;
}
.empty p {
  color: #9c8ca5;
  font-size: 13px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 15px;
  color: #9b8ca4;
  font-size: 12px;
}
.search {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin-bottom: 22px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #e2d8e8;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: #4c3c57;
  min-height: 43px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #b75aa0;
  outline: 2px solid #f3ddec;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #796785;
}
textarea {
  resize: vertical;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: #9c8ba7;
  font-weight: 500;
  background: #fdfbfe;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 13px 23px;
}
td {
  padding: 17px 23px;
  border-top: 1px solid #f0eaf3;
  vertical-align: top;
}
td small {
  display: block;
  color: #a08daa;
  font-size: 10px;
  margin-top: 4px;
}
td p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.setting {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px;
  gap: 15px;
  padding: 18px 24px;
  border-top: 1px solid #f0eaf3;
}
.setting label {
  font-size: 13px;
  font-weight: 600;
}
.setting p {
  font-size: 11px;
  color: #9a87a5;
  margin-top: 5px;
}
.setting select,
.setting input {
  font-size: 12px;
}
.setting .actions {
  grid-column: 1/-1;
  margin: 0;
}
.setting .badge {
  margin: 6px 0;
}
.form-footer {
  padding: 20px 24px;
  border-top: 1px solid #f0eaf3;
}
.form-footer .actions {
  justify-content: flex-start;
}
.error {
  color: #ac3057;
  font-size: 13px;
  min-height: 18px;
}
.error:not(:empty) {
  margin: 12px 0;
}
#notice {
  padding: 14px 18px;
  border-radius: 9px;
  background: #f3e7f1;
  color: #8f2775;
  font-size: 13px;
  margin-bottom: 22px;
}
#notice.error {
  background: #fbe9ee;
  color: #a42c51;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-intro {
  background: #34203f;
  color: white;
  padding: 12vh 12%;
  display: flex;
  flex-direction: column;
}
.login-intro .brand-mark {
  margin-bottom: 70px;
  width: 52px;
  height: 52px;
  font-size: 39px;
}
.login-intro .eyebrow {
  color: #d495c5;
}
.login-intro h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 10px 0 25px;
}
.login-intro > p:not(.eyebrow) {
  color: #bea7c7;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.9;
}
.intro-footer {
  margin-top: auto;
  padding-top: 60px;
  color: #a488ad;
  font-size: 10px;
}
.login-form {
  max-width: 410px;
  width: 100%;
  align-self: center;
  justify-self: center;
  padding: 50px 30px;
}
.login-form h2 {
  font-size: 28px;
  margin-bottom: 9px;
}
.login-form > .muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-form label {
  margin: 19px 0;
}
.login-form .primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
}
.login-form > .small {
  margin-top: 22px;
  font-size: 11px;
}
dialog {
  border: 1px solid #e4d8e9;
  border-radius: 16px;
  padding: 30px;
  max-width: 490px;
  width: calc(100% - 32px);
  box-shadow: 0 25px 100px #25113033;
  color: #392941;
}
dialog::backdrop {
  background: #24142d80;
}
dialog .muted {
  font-size: 13px;
  margin: 12px 0 22px;
}
dialog .small {
  font-size: 11px;
  margin: 10px 0;
}
.operation {
  padding: 22px 24px;
  border-top: 1px solid #eee7f2;
}
.operation p {
  font-size: 13px;
  margin: 8px 0;
  color: #8b7796;
}
.operation ul {
  font-size: 13px;
  color: #796386;
  padding-left: 20px;
}
.operation li {
  margin: 7px 0;
}
@media (min-width: 1550px) {
  main {
    max-width: 1450px;
    width: 100%;
    margin: auto;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 12px;
  }
  main {
    padding: 0 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .login-intro h1 {
    font-size: 38px;
  }
}
@media (max-width: 700px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 17px;
    gap: 5px;
  }
  nav a {
    white-space: nowrap;
    font-size: 11px;
    padding: 8px 10px;
  }
  nav a span {
    display: none;
  }
  nav a.active:after {
    display: none;
  }
  main {
    padding: 0 18px;
  }
  .topbar {
    height: 57px;
  }
  .page-heading {
    margin: 25px 0 20px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat .stat-icon {
    display: none;
  }
  .panel-heading {
    padding: 18px;
  }
  .panel-body {
    padding: 0 18px 20px;
  }
  .status-grid {
    gap: 7px;
  }
  .status-item {
    padding: 11px;
  }
  .chart {
    gap: 5px;
  }
  .page-footer span {
    max-width: 170px;
    text-align: right;
  }
  .setting {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .setting .actions {
    grid-column: 1;
  }
  .login-shell {
    display: block;
  }
  .login-intro {
    padding: 25px;
  }
  .login-intro .brand-mark {
    margin-bottom: 15px;
  }
  .login-intro h1 {
    font-size: 30px;
  }
  .login-intro > p:not(.eyebrow),
  .intro-footer {
    display: none;
  }
  .login-form {
    padding: 30px 25px;
    margin: auto;
  }
  .case-header {
    flex-wrap: wrap;
  }
  .search {
    gap: 7px;
  }
  .private-badge {
    font-size: 9px;
  }
  .page-heading button {
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* Mobile account access */
@media (max-width: 700px) {
  .sidebar-bottom {
    display: flex;
    margin-top: 14px;
    padding: 12px 4px 0;
  }
  .page-heading button {
    white-space: nowrap;
  }
}
