:root {
  --navy: #12213a;
  --blue: #246bfd;
  --bg: #f3f6fa;
  --text: #172231;
  --muted: #6d7888;
  --line: #dfe5ed;
  --green: #119b68;
  --amber: #d78a00;
  --red: #d83a3a;
  --shadow: 0 8px 24px #16284412;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px Inter,
    'PingFang SC',
    'Microsoft YaHei',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.demo {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff3d6;
  border-bottom: 1px solid #efd397;
  color: #76500d;
  font-size: 12px;
}
.demo b {
  color: #ae7200;
}
.sidebar {
  position: fixed;
  z-index: 20;
  top: 34px;
  bottom: 0;
  width: 226px;
  background: var(--navy);
  color: #9eb0c7;
  display: flex;
  flex-direction: column;
}
.brand {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid #ffffff17;
}
.brand > i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4d86ff, #1556e9);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.brand span,
.side-foot span {
  display: flex;
  flex-direction: column;
}
.brand b {
  color: #fff;
  letter-spacing: 1px;
}
.brand small,
.side-foot small {
  font-size: 10px;
  margin-top: 3px;
  color: #8195ad;
}
.sidebar nav {
  padding: 16px 10px;
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  color: #9eb0c7;
}
.sidebar nav button:hover,
.sidebar nav button.active {
  background: #203754;
  color: #fff;
  box-shadow: inset 3px 0 var(--blue);
}
.sidebar nav em {
  float: right;
  font-style: normal;
  font-size: 10px;
  background: #37506d;
  padding: 2px 6px;
  border-radius: 9px;
}
.sidebar nav em.warning {
  background: #704815;
  color: #ffd792;
}
.side-foot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid #ffffff17;
}
.side-foot p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px;
}
.side-foot b {
  color: #f4f7fb;
  font-size: 12px;
}
.online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #31547a;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
}
main {
  margin: 34px 0 0 226px;
  min-height: calc(100vh - 34px);
}
main > header {
  position: sticky;
  z-index: 10;
  top: 34px;
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
h1 {
  font-size: 21px;
  margin: 0 0 4px;
}
header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.primary,
.secondary,
.danger,
.danger-outline {
  border-radius: 7px;
  padding: 9px 14px;
  font-weight: 650;
}
.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px #246bfd2f;
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: #354155;
}
.danger {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
}
.danger-outline {
  border: 1px solid #edaaaa;
  background: #fff;
  color: var(--red);
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.view {
  display: none;
  padding: 22px 28px 40px;
}
.view.active {
  display: block;
}
.alert {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid #efd49f;
  background: #fff8e9;
  border-radius: 10px;
  margin-bottom: 15px;
  color: #704d14;
}
.alert span {
  flex: 1;
  font-size: 12px;
}
.alert button,
.panel-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 15px;
}
.metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px 18px;
  box-shadow: 0 3px 12px #16284408;
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 9px;
}
.metrics strong {
  display: block;
  font-size: 25px;
  margin-bottom: 7px;
}
.metrics small {
  color: var(--muted);
  font-size: 11px;
}
.good {
  color: var(--green) !important;
}
.bad {
  color: var(--red) !important;
}
.columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px #16284408;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head span {
  display: flex;
  flex-direction: column;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0 0 4px;
}
.panel-head small {
  font-size: 11px;
  color: var(--muted);
}
.running {
  padding: 18px;
}
.running p,
.running footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.running p {
  margin: 0;
}
.running p span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status,
.pill {
  font-size: 10px;
  font-style: normal;
  padding: 3px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.status.running {
  background: #edf3ff;
  color: var(--blue);
}
.status.pending {
  background: #fff5e4;
  color: #a76700;
}
.status.failed {
  background: #fff0f0;
  color: var(--red);
}
.status.completed {
  background: #eaf8f1;
  color: var(--green);
}
.status.paused {
  background: #eef0f3;
  color: #657184;
}
.progress {
  height: 7px;
  background: #e8edf4;
  border-radius: 8px;
  overflow: hidden;
  margin: 13px 0 8px;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #236aff, #5aa3ff);
}
.running footer {
  color: var(--muted);
  font-size: 11px;
}
.attention {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
}
.attention:hover {
  background: #fafcff;
}
.attention > span {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.attention small,
.risk-case small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.amber,
.blue {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
}
.amber {
  background: #fff5e4;
  color: #a76700;
}
.blue {
  background: #edf3ff;
  color: var(--blue);
}
.business {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 18px;
}
.business p {
  margin: 0;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.business p:last-child {
  border: 0;
}
.business span {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.business b {
  font-size: 18px;
}
.toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 13px;
}
.toolbar input,
.toolbar select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
}
.toolbar input {
  width: 310px;
}
.push {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 11px 12px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  color: #697586;
  font-size: 10px;
  white-space: nowrap;
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
tbody tr:hover {
  background: #fbfcfe;
}
.task-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.task-cell small,
.stack small {
  color: var(--muted);
  font-size: 10px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mini {
  width: 90px;
  height: 5px;
  background: #e8edf4;
  border-radius: 5px;
  overflow: hidden;
}
.mini i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.actions button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 2px;
  font-size: 11px;
}
.actions .red {
  color: var(--red);
}
.table-foot {
  padding: 11px;
  color: var(--muted);
  font-size: 10px;
}
.readonly {
  padding: 10px 13px;
  border: 1px solid #cbdcff;
  background: #edf3ff;
  color: #365d9e;
  border-radius: 9px;
  margin-bottom: 12px;
  font-size: 11px;
}
.chat-grid {
  height: calc(100vh - 190px);
  min-height: 560px;
  display: grid;
  grid-template-columns: 220px 285px 1fr;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}
.chat-grid > aside {
  border-right: 1px solid var(--line);
  overflow: auto;
}
.chat-grid > aside h3 {
  height: 53px;
  margin: 0;
  padding: 18px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.chat-grid > aside > input {
  width: calc(100% - 20px);
  height: 34px;
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
}
.seat,
.conversation {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}
.seat.active,
.conversation.active {
  background: #eff5ff;
}
.seat > span,
.conversation > span {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.seat small,
.conversation small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.badge {
  font-style: normal;
  font-size: 9px;
  background: var(--blue);
  color: #fff;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.messages {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.messages > header {
  height: 63px;
  border-bottom: 1px solid var(--line);
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.messages > header span {
  display: flex;
  flex-direction: column;
}
.messages > header small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.message-body {
  flex: 1;
  background: #f7f9fc;
  padding: 18px;
  overflow: auto;
}
.message-body p {
  max-width: 70%;
  width: max-content;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px 13px 13px;
  margin: 0 0 13px;
}
.message-body p.out {
  margin-left: auto;
  background: #eaf2ff;
  border-color: #cbdcff;
  border-radius: 13px 4px 13px 13px;
}
.message-body small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
}
.messages > footer {
  height: 72px;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.messages > footer span {
  display: flex;
  flex-direction: column;
}
.messages > footer small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.live-composer {
  height: 88px !important;
  gap: 8px;
}
.live-composer textarea {
  flex: 1;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
}
.balance {
  display: flex;
  align-items: center;
  padding: 19px 23px;
  border-radius: 12px;
  background: linear-gradient(130deg, #173152, #204873);
  color: #fff;
  margin-bottom: 15px;
}
.balance > span {
  display: flex;
  flex-direction: column;
}
.balance strong {
  font-size: 30px;
  margin: 4px 0;
}
.balance small,
.balance em {
  font-style: normal;
  color: #a9bdd4;
  font-size: 11px;
}
.balance p {
  margin-left: auto;
  margin-right: 25px;
  display: flex;
  flex-direction: column;
}
.balance p small {
  margin-top: 4px;
}
.risk-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  background: linear-gradient(130deg, #173152, #204873);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
}
.risk-hero > span {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 3px 12px;
  align-items: center;
}
.risk-hero i {
  grid-row: 1/3;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #28527f;
  color: #f4c159;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-style: normal;
}
.risk-hero small {
  color: #aec0d4;
}
.risk-hero button {
  border: 1px solid #eea8a8;
  background: #fff;
  color: var(--red);
  padding: 9px 13px;
  border-radius: 7px;
  font-weight: 700;
}
.amberbar i {
  background: var(--amber);
}
.risk-case {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.risk-case > span {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.risk-case p {
  margin: 12px 0 0;
}
.switches label {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.switches label > span {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.switches small {
  color: var(--muted);
  margin-top: 4px;
}
.switches input {
  width: 34px;
  height: 18px;
  accent-color: var(--green);
}
.backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0a1628a1;
}
.backdrop.open {
  display: flex;
}
.modal {
  width: min(570px, 94vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 70px #07122652;
}
.modal.wide {
  width: min(920px, 96vw);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head span {
  display: flex;
  flex-direction: column;
}
.modal-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.modal-head small {
  color: var(--muted);
}
.modal-head button {
  border: 0;
  background: transparent;
  color: #8793a2;
  font-size: 24px;
}
.steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}
.steps b {
  color: #8a96a5;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 15px;
}
.steps b.active {
  background: var(--blue);
  color: #fff;
}
.modal-body {
  padding: 21px;
  overflow: auto;
  min-height: 200px;
}
.wide .modal-body {
  min-height: 410px;
}
.wizard {
  display: none;
}
.wizard.active {
  display: block;
}
.wizard h3 {
  margin: 0 0 16px;
}
.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.methods button {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 18px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.methods button.selected {
  border: 2px solid var(--blue);
  background: #f8fbff;
}
.methods i,
.upload i {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 19px;
}
.methods small,
.field small {
  color: var(--muted);
  line-height: 1.5;
}
.tip {
  padding: 10px 12px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #607086;
  font-size: 11px;
}
.form.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form label,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
  color: #445165;
  font-size: 11px;
  font-weight: 700;
}
.form input,
.form select,
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  outline: 0;
}
.field textarea {
  min-height: 86px;
  resize: vertical;
}
.upload {
  min-height: 180px;
  border: 1.5px dashed #aebed0;
  border-radius: 10px;
  background: #fafcff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.upload input {
  display: none;
}
.validation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.validation-title > span {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 3px 10px;
}
.validation-title .check {
  grid-row: 1/3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf8f1;
  color: var(--green);
  display: grid;
  place-items: center;
  font-style: normal;
}
.validation-title small {
  color: var(--muted);
}
.validation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 13px;
}
.validation p {
  margin: 0;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  display: flex;
  flex-direction: column;
}
.validation span {
  color: var(--muted);
  font-size: 10px;
}
.validation b {
  font-size: 19px;
  margin-top: 5px;
}
.preview {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.confirm {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
}
.confirm h3 {
  margin-top: 0;
}
.confirm dl {
  margin: 0;
}
.confirm dl p {
  display: flex;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.confirm dt {
  width: 115px;
  color: var(--muted);
}
.confirm dd {
  margin: 0;
  font-weight: 650;
}
.billing {
  padding: 16px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: #f6f9fd;
}
.billing > strong {
  display: block;
  font-size: 31px;
  margin: 5px 0;
}
.billing > em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.billing hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}
.billing > p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}
.safe {
  display: flex;
  flex-direction: column;
  margin-top: 13px;
  padding: 9px;
  border-radius: 8px;
  background: #eaf8f1;
  color: var(--green);
}
.safe small {
  margin-top: 3px;
}
.ack {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: #536073;
  font-size: 11px;
  line-height: 1.5;
}
.modal-foot {
  display: flex;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.modal-foot span {
  flex: 1;
}
.audit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
}
.audit p {
  margin: 0;
  padding: 11px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.audit p:last-child {
  border: 0;
}
.audit small {
  color: var(--muted);
  margin-bottom: 3px;
}
#toasts {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
}
.toast {
  min-width: 310px;
  max-width: 430px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #172b47;
  color: #fff;
  border-left: 4px solid #2ac387;
  box-shadow: var(--shadow);
  animation: enter 0.2s;
}
.toast.error {
  border-color: #ef6464;
}
.toast b {
  display: block;
  margin-bottom: 4px;
}
.toast small {
  color: #bac8da;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .chat-grid {
    grid-template-columns: 190px 230px 1fr;
  }
  .business {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .business p {
    border: 0;
  }
  .methods {
    grid-template-columns: 1fr;
  }
  .methods button {
    min-height: 95px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    width: 64px;
  }
  .brand {
    padding: 0 14px;
  }
  .brand span,
  .side-foot,
  .sidebar nav button:not(.active) {
    font-size: 0;
  }
  .sidebar nav button {
    text-align: center;
    padding: 0;
  }
  .sidebar nav em {
    display: none;
  }
  main {
    margin-left: 64px;
  }
  main > header {
    padding: 0 14px;
  }
  main > header p {
    display: none;
  }
  .view {
    padding: 14px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .chat-grid {
    grid-template-columns: 1fr;
  }
  .chat-grid > aside {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    width: 100%;
  }
  .push {
    margin-left: 0;
  }
  .form.two,
  .confirm {
    grid-template-columns: 1fr;
  }
  .steps b {
    font-size: 0;
  }
  .business {
    grid-template-columns: 1fr 1fr;
  }
  .demo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
  }
}
