@charset "UTF-8";
:root {
  --primary: #2563eb;
  --primary-soft: #edf3ff;
  --primary-hover: #1d4ed8;
  --ink: #17243e;
  --muted: #8590a3;
  --line: #edf0f5;
  --canvas: #f5f7fb;
  --sidebar: 238px;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 7px;
  line-height: 20px;
  padding: 9px 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
button:hover {
  border-color: #c8d4e9;
  background: #f8faff;
}
button svg {
  flex-shrink: 0;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 3px 7px #2563eb1a;
}
.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.quiet {
  border-color: transparent;
  background: transparent;
  color: #68758b;
}
.quiet:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.link-button {
  border: 0;
  padding: 3px 0;
  background: none;
  color: var(--primary);
  font-size: 13px;
}
.danger {
  color: #e25b61;
}
.icon-button {
  padding: 8px;
  width: 36px;
  height: 36px;
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.boot {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 100vh;
  color: var(--muted);
}
.boot-logo {
  margin: auto;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 28px;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid #e8edf5;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.brand {
  height: 85px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 11px;
  flex-shrink: 0;
}
.brand img {
  width: 36px;
  height: 36px;
  box-shadow: 0 5px 13px #2563eb29;
  border-radius: 11px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 750;
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #9ca5b5;
  margin-top: 4px;
}
.sidebar-scroll {
  padding: 9px 14px 24px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #e4e9f2 transparent;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #a0a8b8;
  padding: 22px 16px 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 8px;
  color: #647086;
  position: relative;
  font-size: 13px;
  margin: 3px 0;
  min-height: 43px;
}
.nav-link:hover {
  color: var(--primary);
  background: #f6f9ff;
}
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.nav-link.active:before {
  content: "";
  position: absolute;
  left: -14px;
  height: 23px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}
.nav-link .chevron {
  margin-left: auto;
  opacity: 0.4;
}
.nav-count {
  margin-left: auto;
  color: #8897b1;
  font-size: 11px;
  font-weight: 500;
}
.sidebar-foot {
  margin: 0 20px 19px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-foot .soft-icon {
  width: 34px;
  height: 34px;
}
.sidebar-foot strong {
  font-size: 12px;
  font-weight: 500;
}
.sidebar-foot small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 73px;
  border-bottom: 1px solid #e8edf5;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs strong {
  font-weight: 500;
  color: #46516a;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.global-search {
  background: #f5f7fb;
  border: 0;
  display: flex;
  align-items: center;
  color: #8c97aa;
  font-size: 12px;
  width: 270px;
  justify-content: flex-start;
}
.global-search kbd {
  margin-left: auto;
  color: #a5acb7;
  background: white;
  border: 1px solid #e8ecf4;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10px;
}
.preview-pill {
  font-size: 11px;
  border: 1px solid #dce9ff;
  color: #637fbc;
  background: #f7faff;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-pill i {
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}
.account-button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  font-size: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9f0ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.content {
  padding: 30px 32px 42px;
  max-width: 1700px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 650;
  letter-spacing: 0.3px;
}
.page-heading p {
  margin: 0;
  font-size: 12px;
  color: #8b94a5;
  line-height: 1.8;
}
.heading-tools {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-top: 4px;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e3e9f2;
  border-radius: 6px;
  padding: 8px 12px;
  color: #7a879e;
  font-size: 11px;
  background: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 23px;
}
.stat {
  background: white;
  border: 1px solid #e9edf5;
  border-radius: var(--radius);
  padding: 23px 23px 18px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6e7c93;
  font-size: 12px;
}
.soft-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.soft-icon.purple {
  background: #f2efff;
  color: #8870da;
}
.soft-icon.orange {
  background: #fff4e9;
  color: #df9a49;
}
.soft-icon.green {
  background: #e9f7f2;
  color: #3b9e82;
}
.stat-number {
  font-size: 32px;
  line-height: 1;
  margin: 14px 0 15px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.stat-number span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: #98a1b0;
  margin-left: 7px;
}
.stat-caption {
  font-size: 11px;
  color: #9ba5b5;
  display: flex;
  gap: 5px;
  align-items: center;
}
.stat-caption svg {
  color: #7f99c8;
}
.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid #e9edf5;
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 21px 23px 16px;
}
.panel-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.panel-head small {
  color: #a1a9b6;
  font-size: 11px;
  margin-left: 10px;
}
.panel-head .link-button {
  font-size: 11px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 9px 15px 21px;
  gap: 8px;
}
.quick-item {
  padding: 14px 8px 9px;
  text-align: center;
  border-radius: 9px;
  transition: background 0.15s;
}
.quick-item:hover {
  background: #f7f9fe;
}
.quick-item .soft-icon {
  margin: 0 auto 12px;
  width: 41px;
  height: 41px;
  border-radius: 12px;
}
.quick-item strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.quick-item small {
  font-size: 10px;
  color: #a6aebc;
}
.coverage-card {
  padding: 4px 24px 22px;
}
.coverage-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 8px;
}
.coverage-title strong {
  font-size: 31px;
  font-weight: 600;
  color: #233653;
}
.coverage-title span {
  font-size: 12px;
  color: #9aa6b7;
}
.coverage-bar {
  display: flex;
  gap: 3px;
  height: 5px;
  margin: 17px 0 19px;
}
.coverage-bar span {
  background: #6496ee;
  border-radius: 5px;
  flex: 1;
}
.coverage-bar span:nth-child(3n) {
  background: #a2b9ee;
}
.coverage-desc {
  font-size: 12px;
  line-height: 1.85;
  color: #8f9bae;
  max-width: 300px;
}
.coverage-chips {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}
.coverage-chips span {
  font-size: 10px;
  color: #7c8fb2;
  background: #f4f7fc;
  border-radius: 5px;
  padding: 6px 9px;
}
.resource-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8d98aa;
  font-size: 11px;
}
.resource-summary strong {
  color: var(--primary);
  font-weight: 500;
}
.resource-tabs {
  display: flex;
  gap: 24px;
  overflow: auto;
  white-space: nowrap;
  border-bottom: 1px solid #e6ecf5;
  padding: 0 1px;
  margin-bottom: 21px;
  scrollbar-width: none;
}
.resource-tabs a {
  padding: 0 1px 14px;
  font-size: 13px;
  color: #8791a3;
  position: relative;
}
.resource-tabs a.active {
  color: var(--primary);
  font-weight: 600;
}
.resource-tabs a.active:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  content: "";
  border-radius: 3px;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.input-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e9f1;
  border-radius: 7px;
  padding: 0 10px;
  color: #a0aabb;
  background: #fff;
}
.input-search input {
  border: 0;
  background: transparent;
  height: 36px;
  width: 225px;
  padding: 0;
  min-width: 0;
}
.input-search input:focus {
  outline: none;
}
.input-search:focus-within {
  border-color: var(--primary);
}
input,
select,
textarea {
  border: 1px solid #e0e6ef;
  background: #fff;
  color: #41506b;
  border-radius: 6px;
  padding: 10px 11px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #acb3c0;
}
select {
  padding: 9px 30px 9px 11px;
  font-size: 12px;
}
.toolbar-end {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #fafbfd;
  padding: 13px 19px;
  color: #8b96a9;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 19px;
  border-bottom: 1px solid #f0f3f8;
  color: #68768e;
  vertical-align: middle;
  max-width: 310px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdff;
}
.check-cell {
  width: 44px;
  padding-right: 1px;
}
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
  padding: 0;
}
.cell-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 130px;
}
.cell-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 7px;
  background: #f3f6fc;
  flex-shrink: 0;
}
.cell-initial {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eaf1ff;
  display: grid;
  place-items: center;
  color: #6b8dcb;
  font-size: 13px;
  flex-shrink: 0;
}
.cell-title {
  font-weight: 500;
  color: #364663;
  font-size: 12px;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.cell-sub {
  font-size: 10px;
  color: #a4adbb;
  margin-top: 5px;
  display: block;
}
.cell-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  display: block;
}
.cell-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}
.cell-actions button {
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 10px;
  white-space: nowrap;
  background: #f1f3f6;
  color: #929cad;
}
.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  background: #edf8f2;
  color: #5b9e7a;
}
.badge.orange {
  background: #fff6e9;
  color: #c39550;
}
.badge.purple {
  background: #f2effb;
  color: #9a7cca;
}
.badge.blue {
  background: #eef4ff;
  color: #779bd6;
}
.badge.red {
  background: #fff0f0;
  color: #dc8080;
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #99a4b6;
}
.pagination .pages {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination button {
  padding: 5px 9px;
  font-size: 11px;
  min-width: 29px;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.selection-bar {
  padding: 11px 22px;
  background: #f2f6ff;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6d84ae;
  font-size: 12px;
  border-bottom: 1px solid #e8efff;
}
.config-list {
  padding: 0 23px 17px;
}
.config-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.config-row:last-child {
  border: 0;
}
.config-row .soft-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.config-row strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.config-row small {
  color: #a2adbf;
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.config-row > svg {
  margin-left: auto;
  color: #bcc4d0;
}
.empty-state {
  text-align: center;
  padding: 62px 25px;
  color: #9da7b7;
  display: grid;
  place-items: center;
}
.empty-graphic {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f2f6fd;
  color: #bdcce5;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 500;
  color: #7c8ba1;
  margin: 0 0 8px;
}
.empty-state p {
  font-size: 12px;
  max-width: 330px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.error-state .empty-graphic {
  background: #fff4ed;
  color: #d7a580;
}
.footer-note {
  font-size: 10px;
  color: #a4afc0;
  text-align: center;
  margin-top: 25px;
  letter-spacing: 0.5px;
}
.drawer,
.modal {
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 90px #1225432b;
}
.drawer::backdrop,
.modal::backdrop {
  background: #15223e45;
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed;
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 690px;
  max-width: 96vw;
  border-radius: 15px 0 0 15px;
}
.drawer-head {
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.drawer-head h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}
.drawer-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  max-width: 490px;
  line-height: 1.6;
}
.drawer-body {
  padding: 25px 28px 95px;
}
.drawer-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: -3px 0 24px;
}
.drawer-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  color: #8c98ac;
  font-size: 12px;
}
.drawer-tabs button.active {
  border-color: var(--primary);
  color: var(--primary);
}
.drawer-foot {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 690px;
  max-width: 96vw;
  padding: 16px 27px;
  background: #fffffff5;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  backdrop-filter: blur(10px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.form-field > label {
  font-size: 12px;
  color: #687a92;
}
.form-field label b {
  color: #dd9393;
  margin-left: 5px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
}
.form-field small {
  font-size: 10px;
  color: #a0abba;
  line-height: 1.7;
}
.form-field.wide,
.form-section {
  grid-column: 1/-1;
}
.form-section {
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin: 13px 0 0;
  font-weight: 550;
}
.toggle-field {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
}
.switch {
  display: inline-block;
  width: 34px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  position: absolute;
  width: 34px;
  height: 20px;
  margin: 0;
  z-index: 2;
  cursor: pointer;
}
.switch span {
  display: block;
  border-radius: 20px;
  background: #dbe2ec;
  width: 34px;
  height: 20px;
  transition: 0.2s;
}
.switch span:after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0001;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--primary);
}
.switch input:checked + span:after {
  transform: translateX(14px);
}
.switch input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.notice-box {
  background: #f3f7ff;
  border: 1px solid #e4ecfa;
  color: #7990b8;
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.detail-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 25px;
}
.detail-title .cell-logo {
  width: 51px;
  height: 51px;
  border-radius: 12px;
}
.detail-title h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 9px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.detail-field label {
  font-size: 11px;
  color: #a2acbc;
  display: block;
  margin-bottom: 8px;
}
.detail-field p {
  font-size: 12px;
  line-height: 1.9;
  margin: 0;
  color: #566984;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-field.wide {
  grid-column: 1/-1;
}
.detail-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-images img {
  width: 105px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.schema-code {
  font-size: 11px;
  line-height: 1.9;
  background: #f6f8fc;
  color: #6580a4;
  border: 1px solid #eaf0f8;
  border-radius: 8px;
  padding: 18px;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
  word-break: break-word;
}
.endpoint {
  display: flex;
  gap: 10px;
  font-size: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.method {
  color: var(--primary);
  font-family: ui-monospace, monospace;
  background: var(--primary-soft);
  padding: 3px 6px;
  border-radius: 4px;
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}
.endpoint code {
  padding-top: 3px;
  word-break: break-all;
}
.source-route {
  display: block;
  border: 1px solid var(--line);
  padding: 13px;
  margin: 10px 0;
  border-radius: 7px;
  color: #7587a5;
  font-size: 11px;
  line-height: 1.8;
}
.source-route strong {
  display: block;
  color: #435775;
  font-size: 12px;
  font-weight: 500;
}
.source-route code {
  color: #9ba9bd;
  font-size: 10px;
}
.modal {
  border-radius: 13px;
  width: 500px;
  max-width: 94vw;
  max-height: 85vh;
}
.modal .drawer-body {
  padding-bottom: 25px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
}
.command-search {
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  padding: 20px 24px;
  font-size: 14px;
}
.command-results {
  padding: 8px;
  max-height: 440px;
  overflow: auto;
}
.command-result {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 7px;
  color: #546987;
}
.command-result:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.command-result small {
  display: block;
  font-size: 10px;
  color: #9ca9bb;
  margin-top: 5px;
}
.command-hint {
  padding: 12px 22px;
  font-size: 10px;
  color: #a0acbf;
  background: #fafbfd;
}
.column-list {
  display: grid;
  gap: 14px;
}
.column-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #72829b;
}
.split-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 23px;
}
.config-editor {
  padding: 24px;
}
.config-editor h3 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 600;
}
.config-editor > p {
  font-size: 11px;
  color: #9aa7ba;
  margin: 0 0 24px;
  line-height: 1.8;
}
.config-item {
  border: 1px solid #e6ecf5;
  border-radius: 9px;
  padding: 15px;
  margin-bottom: 13px;
  background: #fff;
}
.config-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8696ae;
  font-size: 11px;
  margin-bottom: 12px;
}
.config-item-fields {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
}
.config-thumb {
  height: 71px;
  border-radius: 6px;
  background: #f2f6fc;
  object-fit: cover;
  width: 76px;
  border: 1px solid #e8eef6;
}
.config-item input {
  font-size: 11px;
  width: 100%;
  margin-bottom: 7px;
  padding: 8px;
}
.reorder-buttons {
  display: flex;
  gap: 4px;
}
.reorder-buttons button {
  padding: 2px 5px;
  font-size: 10px;
  border: 0;
}
.preview-panel {
  background: #edf1f8;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  padding: 19px 17px;
  align-self: start;
  position: sticky;
  top: 97px;
}
.preview-panel > h3 {
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  color: #8191aa;
  margin: 0 0 17px;
}
.phone-preview {
  width: 268px;
  max-width: 100%;
  height: 534px;
  overflow: hidden;
  margin: 0 auto;
  border: 5px solid #fff;
  border-radius: 28px;
  background: #f6f7f9;
  box-shadow: 0 8px 30px #768cab20;
  position: relative;
  font-size: 10px;
}
.phone-status {
  height: 30px;
  background: white;
  padding: 8px 15px;
  font-size: 8px;
  display: flex;
  justify-content: space-between;
}
.phone-nav {
  padding: 13px;
  text-align: center;
  background: white;
  font-size: 11px;
  font-weight: 600;
}
.phone-search {
  padding: 10px 12px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  color: #7d899c;
}
.phone-search span {
  background: #f4f5f8;
  border-radius: 15px;
  padding: 6px 10px;
  flex: 1;
}
.phone-banner {
  width: calc(100% - 20px);
  height: 96px;
  object-fit: cover;
  display: block;
  margin: 0 10px;
  border-radius: 8px;
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px 3px;
  padding: 16px 6px;
  background: white;
  text-align: center;
  font-size: 8px;
}
.phone-grid img {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto 6px;
}
.phone-service-title {
  padding: 15px 10px 10px;
  background: white;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
}
.phone-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px 12px;
  background: white;
}
.phone-services img {
  width: 100%;
  height: 57px;
  object-fit: cover;
  border-radius: 4px;
}
.phone-bottom {
  position: absolute;
  bottom: 0;
  background: #fff;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 11px 0 17px;
  color: #98a4b6;
  border-top: 1px solid #f0f3f7;
  font-size: 8px;
}
.phone-bottom span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.phone-bottom span:first-child {
  color: var(--primary);
}
.preview-caption {
  text-align: center;
  font-size: 10px;
  color: #a0adbf;
  line-height: 1.8;
  margin: 16px 0 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}
.setting-menu {
  padding: 16px;
  align-self: start;
}
.setting-menu a {
  padding: 12px;
  display: block;
  font-size: 12px;
  color: #8795ac;
  border-radius: 7px;
}
.setting-menu a.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.settings-body {
  padding: 26px;
}
.setting-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 30px;
}
.setting-line:first-child {
  padding-top: 0;
}
.setting-line strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 7px;
}
.setting-line small {
  font-size: 11px;
  color: #9ba9bd;
  line-height: 1.8;
}
.color-swatches {
  display: flex;
  gap: 9px;
}
.color-swatch {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 3px solid white;
  outline: 1px solid transparent;
  padding: 0;
}
.color-swatch.selected {
  outline-color: #9eb3d0;
}
.density-choice {
  display: flex;
  gap: 5px;
}
.density-choice .selected {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #d8e5ff;
}
.coverage-table code {
  font-size: 10px;
  color: #9aabc2;
}
.mapping-count {
  font-size: 11px;
  background: #edf4ff;
  color: #81a0cf;
  padding: 4px 7px;
  border-radius: 4px;
}
.resource-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.resource-chips a {
  color: #698dc4;
  background: #f1f5fd;
  border: 1px solid #e8effc;
  border-radius: 4px;
  font-size: 10px;
  padding: 4px 7px;
}
.resource-chips a:hover {
  background: #e5eeff;
}
.schema-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.schema-resource {
  padding: 20px;
}
.schema-resource h3 {
  font-size: 13px;
  margin: 0 0 9px;
  font-weight: 550;
}
.schema-resource p {
  font-size: 10px;
  margin: 0;
  color: #98a8bd;
  font-family: monospace;
  word-break: break-all;
}
.schema-resource-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 10px;
  color: #9aabc3;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + var(--sidebar) / 2);
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  background: #273c5c;
  color: white;
  border-radius: 8px;
  padding: 13px 22px;
  max-width: min(620px, 90vw);
  font-size: 12px;
  box-shadow: 0 5px 20px #13264825;
  z-index: 100;
  transition: 0.2s;
  line-height: 1.7;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.compact td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.compact .stat {
  padding: 17px;
}
.nav-collapsed {
  --sidebar: 78px;
}
.nav-collapsed .brand {
  padding: 0 20px;
}
.nav-collapsed .brand div,
.nav-collapsed .nav-link span,
.nav-collapsed .nav-caption,
.nav-collapsed .nav-link > .chevron,
.nav-collapsed .sidebar-foot {
  display: none;
}
.nav-collapsed .nav-link {
  padding: 13px;
  justify-content: center;
}
.nav-collapsed .sidebar-scroll {
  padding: 8px;
}
.nav-collapsed .nav-link.active:before {
  left: -8px;
}
.mobile-menu,
.nav-backdrop {
  display: none;
}
.spinner {
  border: 2px solid #e7edf8;
  border-top-color: var(--primary);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1550px) {
  .content {
    padding: 35px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .stat {
    padding: 25px 27px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 210px;
  }
  .topbar {
    padding: 0 22px;
  }
  .content {
    padding: 25px 22px;
  }
  .brand {
    padding: 0 20px;
  }
  .global-search {
    width: 210px;
  }
  .preview-pill {
    display: none;
  }
  .workbench-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .split-config {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .preview-panel {
    padding: 17px 9px;
  }
  .phone-preview {
    width: 255px;
  }
}
@media (max-width: 960px) {
  .global-search {
    width: 180px;
  }
  .top-actions {
    gap: 8px;
  }
  .account-button > span {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .workbench-grid {
    grid-template-columns: 1fr;
  }
  .schema-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-config {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
  }
  .heading-tools .date-chip {
    display: none;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .setting-menu {
    display: none;
  }
  .page-heading h1 {
    font-size: 22px;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 238px;
    transition: 0.2s;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 20px #14213c22;
  }
  .sidebar.mobile-open + .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0 0 0 238px;
    width: auto;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #14213c55;
    z-index: 25;
  }
  .mobile-menu {
    display: flex;
  }
  .desktop-collapse {
    display: none;
  }
  .topbar {
    height: 62px;
    padding: 0 14px;
  }
  .content {
    padding: 22px 15px;
  }
  .global-search {
    width: 35px;
    padding: 8px;
  }
  .global-search span,
  .global-search kbd {
    display: none;
  }
  .breadcrumbs {
    font-size: 11px;
    gap: 7px;
  }
  .top-actions .quiet {
    display: none;
  }
  .account-button {
    padding-left: 6px;
  }
  .page-heading {
    gap: 10px;
  }
  .page-heading p {
    max-width: 250px;
    font-size: 11px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .heading-tools button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-number {
    font-size: 27px;
  }
  .soft-icon {
    width: 33px;
    height: 33px;
  }
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-left: 5px;
    padding-right: 5px;
    gap: 0;
  }
  .quick-item strong {
    font-size: 11px;
  }
  .quick-item small {
    font-size: 9px;
  }
  .table-toolbar {
    padding: 16px;
    gap: 8px;
  }
  .input-search {
    flex: 1;
  }
  .input-search input {
    width: 100%;
  }
  .toolbar-end {
    margin-left: 0;
  }
  .pagination {
    padding: 12px;
    gap: 10px;
  }
  .pagination .pages {
    gap: 3px;
  }
  .drawer-head {
    padding: 20px;
  }
  .drawer-body {
    padding: 20px 20px 95px;
  }
  .drawer {
    border-radius: 10px 0 0 10px;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-field.wide,
  .detail-field.wide {
    grid-column: auto;
  }
  .schema-resource-grid {
    grid-template-columns: 1fr;
  }
  .config-editor {
    padding: 18px;
  }
  .setting-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .settings-body {
    padding: 22px;
  }
  #toast {
    left: 50%;
  }
  .nav-collapsed {
    --sidebar: 0px;
  }
  .source-route code {
    word-break: break-all;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.login-panel { max-width: 580px; margin: 64px auto; padding: 42px; text-align: center; }
.login-panel .soft-icon { margin: 0 auto 18px; width: 56px; height: 56px; }
.login-panel h1 { font-size: 24px; }
.login-panel p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.login-panel button { margin-top: 14px; }
.login-panel small { display: block; margin-top: 18px; color: var(--muted); }
@media (max-width: 600px) { .login-panel { padding: 28px 20px; margin: 28px auto; } }
