* {
  box-sizing: border-box;
}
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Microsoft YaHei',
    sans-serif;
  color: #253046;
  background: #f4f3f5;
  font-synthesis: none;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bda3df;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #d8c5ed;
  border-color: #aa87d4;
}
button img {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 24px;
}
.muted {
  color: #81788b;
  font-size: 13px;
  line-height: 1.8;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: #8a9bb5;
  display: block;
  margin-bottom: 10px;
}
.brand {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-icon {
  background: #7953b1;
  color: white;
  font-size: 28px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid #dedede;
  padding: 35px 22px;
}
.brand-sub {
  font-size: 11px;
  color: #a4adbc;
  margin: 10px 0 58px 47px;
}
.nav-caption {
  font-size: 11px;
  color: #9aa6b8;
  margin: 0 14px 15px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  padding: 15px 16px;
  margin: 7px 0;
  border-radius: 10px;
  color: #708097;
  font-size: 14px;
  gap: 12px;
  text-align: left;
}
.nav-item img {
  width: 19px;
  height: 19px;
  opacity: 0.6;
}
.nav-item.active {
  background: #eee7f6;
  color: #7953b1;
  font-weight: 600;
}
.nav-item.active img {
  opacity: 1;
}
.nav-item:hover {
  background: #f5f2f8;
}
.nav-item span {
  margin-left: auto;
  background: white;
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 7px;
}
.sidebar-bottom {
  position: absolute;
  bottom: 26px;
  left: 30px;
  right: 20px;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #a8b1c1;
  margin-top: 15px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8492a5;
}
.connection > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5aab8c;
}
.main {
  margin-left: 232px;
}
.topbar {
  height: 78px;
  background: #ffffffd9;
  border-bottom: 1px solid #dedede;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
  color: #8591a4;
}
.slash {
  margin: 0 14px;
  color: #c7cfdd;
}
#breadcrumb {
  color: #4f5c72;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f2ecf8;
  color: #6482b8;
  font-size: 11px;
}
.content {
  padding: 35px 40px 24px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 10px;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.plain,
.primary {
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  color: #64738b;
  white-space: nowrap;
}
.plain:hover {
  background: #f5f2f8;
}
.primary {
  background: #7953b1;
  border-color: #7953b1;
  color: white;
  font-weight: 550;
}
.primary:hover {
  background: #654297;
}
.text-button {
  background: none;
  border: 0;
  color: #7953b1;
  padding: 4px;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stats article {
  padding: 22px 24px;
  background: white;
  border: 1px solid #dedede;
  border-radius: 12px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #79879b;
  font-size: 12px;
}
.stat-top img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}
.stat-number {
  font-size: 34px;
  font-weight: 600;
  color: #29364c;
  margin: 14px 0 7px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-hint {
  font-size: 11px;
  color: #a2aebe;
}
.stat-pending .stat-number {
  color: #b88128;
}
.stat-dot {
  width: 7px;
  height: 7px;
  background: #e0ae5a;
  border-radius: 50%;
}
.list-panel {
  background: white;
  border: 1px solid #e6e2e9;
  border-radius: 12px;
  overflow: hidden;
}
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  gap: 16px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.filter {
  background: none;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  color: #8290a3;
  padding: 9px 13px;
}
.filter.active {
  background: #eee7f6;
  color: #7953b1;
  font-weight: 600;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e2e9;
  border-radius: 8px;
  padding: 8px 12px;
  width: 240px;
  background: #fcfafc;
}
.search span {
  font-size: 20px;
  line-height: 1;
  color: #a3afc0;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 12px;
  color: #53617a;
}
.search input::placeholder {
  color: #aab3c2;
}
.table-wrap {
  overflow-x: auto;
  min-height: 270px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #91a0b5;
  background: #fcfafc;
  padding: 14px 22px;
  border-top: 1px solid #efedef;
  border-bottom: 1px solid #efedef;
}
td {
  padding: 21px 22px;
  border-bottom: 1px solid #efedef;
  color: #516078;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfafc;
}
td strong {
  font-size: 13px;
  color: #35445e;
  font-weight: 550;
}
td .sub {
  font-size: 11px;
  color: #9aa6b8;
  display: block;
  margin-top: 6px;
}
.cell-service {
  display: flex;
  align-items: center;
  gap: 11px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3eff8;
  color: #7596c6;
}
.service-icon img {
  width: 21px;
  height: 21px;
}
.truncate {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eee7f6;
  color: #8e6dbb;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.pending {
  background: #fff5e4;
  color: #b38a43;
}
.badge.dispatched {
  background: #f0edff;
  color: #8c79bf;
}
.badge.ended,
.badge.resolved,
.badge.contacted,
.badge.active {
  background: #edf6f2;
  color: #598f7c;
}
.badge.inactive {
  color: #8b95a5;
  background: #f2f4f7;
}
.row-action {
  color: #7953b1;
  font-size: 12px;
  background: #f7f4fb;
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
}
.list-footer {
  border-top: 1px solid #efedef;
  padding: 17px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa6b7;
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pagination .plain {
  font-size: 11px;
  padding: 6px 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #aab4c2;
  margin-top: 24px;
}
.error {
  background: #fff0ed;
  color: #b34b38;
  font-size: 13px;
  padding: 13px 16px;
  border-radius: 8px;
  margin: 12px 0;
}
.notice {
  background: #fffaeb;
  border: 1px solid #f2e8c9;
  border-radius: 8px;
  padding: 12px 16px;
  color: #a08a54;
  font-size: 12px;
  margin-bottom: 24px;
}
.demo-tag {
  font-size: 10px;
  background: #fff7dc;
  border: 1px solid #f0e5bc;
  color: #9f894a;
  padding: 4px 8px;
  border-radius: 5px;
}
.new-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eee7f6;
  color: #7953b1;
  border: 1px solid #e1d2f1;
  border-radius: 9px;
  padding: 13px 20px;
  margin-bottom: 18px;
  font-size: 13px;
}
.seed-wrap {
  margin-top: 20px;
  font-size: 12px;
  color: #8b99ac;
  display: flex;
  align-items: center;
  gap: 12px;
}
.empty {
  padding: 90px 25px;
  text-align: center;
  color: #99a7bb;
  font-size: 13px;
}
.empty span {
  display: block;
  font-size: 12px;
  margin-top: 12px;
  color: #b2bbca;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-story {
  background: #eee7f6;
  padding: 52px 70px;
  position: relative;
  overflow: hidden;
}
.login-story > .eyebrow {
  margin-top: 100px;
  color: #8da6cd;
}
.login-story h1 {
  font-size: 42px;
  line-height: 1.5;
  color: #27446f;
}
.login-story p {
  color: #8195b3;
  line-height: 2;
  margin-top: 22px;
}
.story-foot {
  position: absolute;
  bottom: 42px;
  left: 70px;
  color: #8ca3c6;
  font-size: 12px;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-card {
  width: 340px;
}
.login-card h2 {
  font-size: 28px;
}
.login-card > p {
  margin: 12px 0 36px;
}
.login-card label {
  display: block;
  font-size: 12px;
  color: #63728b;
  margin: 24px 0;
}
.login-card input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #e6e2e9;
  border-radius: 8px;
  color: #3a4b68;
  background: #fcfafc;
}
.wide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-top: 28px;
}
.login-note {
  font-size: 11px;
  text-align: center;
  color: #a5afbd;
  margin-top: 30px;
}
.demo-login {
  font-size: 12px;
  line-height: 1.9;
  padding: 16px;
  background: #faf7ee;
  color: #a09066;
  border-radius: 8px;
  margin-top: 20px;
}
.demo-login button {
  display: block;
  margin-top: 5px;
}
.login-art {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 50px 0 0 140px;
  transform: rotate(-8deg);
}
.art-roof {
  background: #9bb9ed;
  width: 110px;
  height: 110px;
  transform: rotate(45deg);
  position: absolute;
  left: 24px;
  top: 0;
  border-radius: 14px;
}
.art-house {
  background: #fcfafc;
  width: 154px;
  height: 107px;
  position: absolute;
  top: 48px;
  border-radius: 5px;
  box-shadow: 9px 12px #dedede;
}
.art-house span {
  position: absolute;
  top: 20px;
  left: 23px;
  width: 34px;
  height: 34px;
  border: 5px solid #d8c5ed;
}
.art-house i {
  position: absolute;
  bottom: 0;
  right: 25px;
  height: 60px;
  width: 38px;
  background: #bda3df;
  border-radius: 20px 20px 0 0;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: 520px;
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  background: white;
  padding: 0;
  box-shadow: -10px 0 50px #1624431a;
  color: #35435a;
}
dialog::backdrop {
  background: #182b4b45;
  backdrop-filter: blur(2px);
}
.drawer-heading {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e4ec;
}
.close {
  border: 0;
  background: #f4f3f5;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #7f8da3;
  font-size: 23px;
}
.drawer-heading h2 {
  font-size: 22px;
}
#drawer-body {
  padding: 28px 30px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.detail-block {
  margin-bottom: 24px;
}
.detail-label {
  font-size: 11px;
  color: #95a1b4;
  margin-bottom: 8px;
}
.detail-value {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-separator {
  height: 1px;
  background: #e8e4ec;
  margin: 24px 0;
}
.form-field {
  display: block;
  font-size: 12px;
  color: #738199;
  margin-bottom: 22px;
}
.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
  color: #354762;
  background: #fcfafc;
}
.form-field textarea {
  resize: vertical;
  min-height: 105px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  margin: 18px 0;
}
.drawer-footer {
  padding: 22px 30px;
  border-top: 1px solid #efedef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: white;
}
#drawer-error {
  margin: 0 30px 20px;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #223550;
  color: white;
  font-size: 13px;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: 0 10px 40px #26385322;
  z-index: 10;
}
.mini-tip {
  font-size: 11px;
  color: #9aa8bb;
  line-height: 1.8;
  margin: 10px 0;
}
a {
  color: #7953b1;
}
@media (min-width: 1500px) {
  td,
  th {
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 190px;
    padding: 28px 16px;
  }
  .main {
    margin-left: 190px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 12px;
  }
  .stats article {
    padding: 20px 17px;
  }
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 34px;
  }
  .story-foot {
    left: 40px;
  }
  .top-actions {
    gap: 8px;
  }
  #sound {
    font-size: 11px;
    padding: 8px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #dedede;
  }
  .brand-sub,
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 12px;
  }
  .nav-item {
    padding: 10px 8px;
    justify-content: center;
    font-size: 12px;
    gap: 4px;
  }
  .nav-item img,
  .nav-item span {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 20px;
  }
  .topbar > div:first-child {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .content {
    padding: 22px 16px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-number {
    font-size: 28px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading-actions {
    width: 100%;
  }
  h1 {
    font-size: 25px;
  }
  .page-footer {
    flex-direction: column;
  }
  .list-toolbar {
    padding: 16px;
  }
  .filter {
    padding: 8px 9px;
  }
  .seed-wrap {
    flex-wrap: wrap;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-side {
    min-height: 100vh;
    padding: 30px;
  }
  .login-card {
    width: 100%;
    max-width: 350px;
  }
  .drawer-heading,
  #drawer-body {
    padding: 24px;
  }
  .gallery img {
    width: 100px;
    height: 90px;
  }
}

.completion-panel {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #e0d3ee;
  border-radius: 14px;
  background: #f8f5fc;
}
.completion-panel h3 {
  margin: 0 0 16px;
  font-size: 17px;
}
.completion-panel fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0 0;
  min-width: 0;
}
.completion-panel fieldset:disabled {
  opacity: 0.5;
}
.completion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 600px) {
  .completion-grid {
    grid-template-columns: 1fr;
  }
}
