:root {
  --bg: #edf0ee;
  --surface: #ffffff;
  --surface-soft: #f7f8f6;
  --ink: #15181d;
  --muted: #6c737a;
  --line: #dde3de;
  --dark: #1b2426;
  --green: #197b62;
  --green-soft: #e3f2eb;
  --blue: #2563b8;
  --blue-soft: #e4ecfb;
  --amber: #a86613;
  --amber-soft: #fff0d2;
  --red: #b94343;
  --red-soft: #fae6e3;
  --violet: #6a4db7;
  --shadow: 0 18px 42px rgba(35, 44, 48, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100dvh;
  padding: 28px 18px 22px;
  background: #fbfbf9;
  box-shadow: 10px 0 32px rgba(28, 36, 40, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  font-size: 20px;
  font-weight: 900;
}

.brand strong {
  display: block;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: #58616a;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #243033;
  background: #edf0ee;
  font-size: 12px;
}

.nav-icon::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.nav-icon-dashboard::before {
  clip-path: polygon(50% 0, 100% 42%, 100% 100%, 62% 100%, 62% 66%, 38% 66%, 38% 100%, 0 100%, 0 42%);
  background: currentColor;
}

.nav-icon-team::before {
  border-radius: 50% 50% 4px 4px;
  clip-path: polygon(20% 0, 80% 0, 80% 44%, 100% 44%, 100% 100%, 0 100%, 0 44%, 20% 44%);
}

.nav-icon-appstore::before {
  border-radius: 2px;
  box-shadow: inset 7px 0 0 -5px currentColor, inset 0 7px 0 -5px currentColor;
}

.nav-icon-setting::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 -5px 0 -4px currentColor, 0 5px 0 -4px currentColor, 5px 0 0 -4px currentColor, -5px 0 0 -4px currentColor;
}

.nav-item:hover {
  color: var(--ink);
  background: #f0f2ef;
}

.nav-item.active {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 14px 28px rgba(27, 36, 38, 0.18);
}

.nav-item.active .nav-icon {
  color: var(--dark);
  background: #fff;
}

.nav-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
  text-align: center;
  font-size: 11px;
}

.subnav {
  display: grid;
  gap: 4px;
  padding-left: 36px;
}

.subnav-item {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.subnav-item:hover,
.subnav-item.active {
  color: var(--ink);
  background: #edf0ee;
}

.main {
  min-width: 0;
  padding: 26px 28px 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow,
.label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 19px;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.top-actions,
.toolbar,
.inline-actions,
.segmented {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-actions {
  justify-content: flex-end;
}

.profile-actions {
  position: relative;
}

.login-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.login-user .avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  font-size: 13px;
  font-weight: 900;
}

.login-user strong,
.login-user small {
  display: block;
}

.login-user small {
  color: var(--muted);
  font-size: 12px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.profile-menu button:hover {
  background: var(--surface-soft);
}

.search {
  display: grid;
  gap: 4px;
}

.inline-search {
  min-width: min(360px, 100%);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(132px, 1fr));
  gap: 12px;
}

.filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  padding: 0 12px;
}

textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 123, 98, 0.16);
}

.btn,
.chip,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.btn.primary {
  border-color: var(--dark);
  color: #fff;
  background: var(--dark);
}

.btn.danger {
  border-color: transparent;
  color: var(--red);
  background: var(--red-soft);
}

.btn.ghost {
  background: transparent;
}

.btn.small,
.chip,
.tab {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.tab.active,
.chip.active {
  border-color: transparent;
  color: #fff;
  background: var(--dark);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.content {
  display: grid;
  gap: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.block-field {
  margin-top: 14px;
}

.feature-checks {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.feature-checks > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 800;
}

.check-item input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--green);
}

.grid.two {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 0;
}

.panel-body {
  padding: 16px 18px 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kpi strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 28px;
}

.kpi small,
.muted {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

tr.is-selected {
  background: #f3f7f4;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status.ok {
  color: var(--green);
  background: var(--green-soft);
}

.status.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.status.bad {
  color: var(--red);
  background: var(--red-soft);
}

.status.info {
  color: var(--blue);
  background: var(--blue-soft);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-row dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-row dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.store-list,
.feature-list,
.audit-list,
.exception-list {
  display: grid;
  gap: 10px;
}

.row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.row-card strong {
  display: block;
}

.row-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #cfd7d2;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch.on {
  background: var(--green);
}

.switch.on::after {
  transform: translateX(20px);
}

.auth-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.auth-result {
  padding: 16px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.auth-result.blocked {
  color: var(--red);
  background: var(--red-soft);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-step {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.flow-step b {
  display: block;
  margin-bottom: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 29, 0.45);
}

.modal-panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  margin: 10vh auto 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 18px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-width: 260px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .grid.two,
  .grid.three,
  .filter-panel,
  .form-grid,
  .kpi-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 18px 14px 32px;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .toolbar,
  .inline-actions,
  .filter-actions,
  .segmented {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .search,
  .btn,
  .tab,
  .chip {
    width: 100%;
  }

  .row-card,
  .detail-row {
    grid-template-columns: 1fr;
  }
}

/* Ant Design alignment pass */
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --ink: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.45);
  --line: #f0f0f0;
  --dark: #001529;
  --green: #52c41a;
  --green-soft: #f6ffed;
  --blue: #1677ff;
  --blue-soft: #e6f4ff;
  --amber: #faad14;
  --amber-soft: #fffbe6;
  --red: #ff4d4f;
  --red-soft: #fff1f0;
  --violet: #722ed1;
  --shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  gap: 14px;
  padding: 24px 12px 18px;
  color: rgba(255, 255, 255, 0.88);
  background: var(--dark);
  box-shadow: none;
}

.brand {
  padding: 0 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  border-radius: 8px;
  background: var(--blue);
}

.brand span {
  color: rgba(255, 255, 255, 0.45);
}

.nav-list {
  gap: 4px;
}

.nav-item,
.subnav-item {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.nav-icon {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.nav-item:hover,
.subnav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active,
.subnav-item.active {
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}

.nav-item.active .nav-icon {
  color: var(--blue);
  background: #fff;
}

.nav-count {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.16);
}

.main {
  padding: 24px 28px 32px;
}

.topbar {
  min-height: 64px;
  margin: -24px -28px 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 24px;
}

.filter-panel,
.panel,
.kpi,
.row-card,
.auth-card,
.flow-step {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.panel {
  overflow: hidden;
}

.panel-header {
  padding: 18px 24px 0;
}

.panel-body {
  padding: 18px 24px 24px;
}

.filter-panel {
  padding: 16px;
}

input,
select,
textarea {
  border-color: #d9d9d9;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input,
select {
  min-height: 32px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.btn,
.chip,
.tab {
  min-height: 32px;
  border-color: #d9d9d9;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.tab:hover,
.chip:hover {
  border-color: #4096ff;
  color: #4096ff;
}

.btn.primary,
.tab.active,
.chip.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.btn.primary:hover {
  border-color: #4096ff;
  background: #4096ff;
  color: #fff;
}

.btn.danger {
  border-color: #ffccc7;
  color: #cf1322;
  background: var(--red-soft);
}

.segmented {
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
}

.segmented .tab,
.segmented .chip {
  border-color: transparent;
}

.icon-btn,
.login-user,
.login-user .avatar {
  border-radius: 6px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: #fff;
}

.login-user {
  min-height: 32px;
  border-color: #d9d9d9;
}

.login-user .avatar {
  width: 28px;
  height: 28px;
  background: var(--blue);
}

th,
td {
  border-bottom-color: var(--line);
  padding: 12px 16px;
}

th {
  color: rgba(0, 0, 0, 0.65);
  background: #fafafa;
  font-weight: 500;
}

tbody tr:hover {
  background: #f5faff;
}

tr.is-selected {
  background: #e6f4ff;
}

.status {
  min-height: 22px;
  border-radius: 4px;
  font-weight: 500;
}

.switch {
  background: rgba(0, 0, 0, 0.25);
}

.switch.on {
  background: var(--blue);
}

.profile-menu,
.modal-panel,
.toast {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal-header,
.modal-footer {
  padding: 16px 24px;
}

.modal-body {
  padding: 20px 24px;
}

.toast {
  color: var(--ink);
}

@media (max-width: 980px) {
  .sidebar {
    background: var(--dark);
  }
}

/* Ant Design hardening pass */
.topbar {
  align-items: center;
}

.eyebrow,
.label,
.search span,
.kpi span,
.kpi small,
.muted,
.detail-row dt,
.row-card p,
.login-user small {
  color: rgba(0, 0, 0, 0.45);
}

h1 {
  font-weight: 600;
  line-height: 1.35;
}

h2 {
  font-size: 16px;
  font-weight: 600;
}

h3 {
  font-size: 14px;
  font-weight: 600;
}

.content,
.grid {
  gap: 16px;
}

.filter-grid,
.form-grid,
.check-grid,
.kpi-grid,
.flow {
  gap: 12px;
}

.filter-panel,
.panel,
.kpi,
.row-card,
.auth-card,
.flow-step,
.check-item {
  background: #fff;
}

.panel {
  overflow: hidden;
}

.panel-header h2,
.panel-header h3 {
  margin-bottom: 4px;
}

.kpi {
  min-height: 108px;
  padding: 18px;
}

.kpi strong {
  font-size: 28px;
  font-weight: 600;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

select {
  appearance: none;
  padding-right: 30px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.45) 50%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.45) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.btn.ghost {
  border-color: transparent;
  color: var(--blue);
  background: transparent;
}

.btn.ghost:hover {
  color: #4096ff;
  background: #e6f4ff;
}

.btn.small,
.chip,
.tab {
  min-height: 24px;
  padding: 1px 8px;
}

.top-actions,
.toolbar,
.inline-actions {
  gap: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  background: #fff;
}

th:first-child,
td:first-child {
  padding-left: 20px;
}

th:last-child,
td:last-child {
  padding-right: 20px;
}

.status,
.chip,
.tab,
.nav-count {
  border-radius: 4px;
}

.status.ok {
  color: #389e0d;
}

.status.warn {
  color: #d48806;
}

.status.bad {
  color: #cf1322;
}

.status.info {
  color: #0958d9;
}

.row-card,
.auth-card,
.flow-step,
.check-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.row-card:hover,
.auth-card:hover,
.flow-step:hover,
.check-item:hover {
  border-color: #d9d9d9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.switch {
  width: 44px;
  height: 22px;
}

.switch::after {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

.switch.on::after {
  transform: translateX(22px);
}

.auth-result {
  border-radius: 6px;
  color: #389e0d;
  background: #f6ffed;
}

.auth-result.blocked {
  color: #cf1322;
  background: #fff1f0;
}

.modal-panel {
  overflow: hidden;
}

.toast::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Crisp SVG-mask icons. */
.nav-icon::before {
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: currentColor !important;
  box-shadow: none !important;
  clip-path: none !important;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}

.nav-icon::after {
  display: none !important;
}

.nav-icon-dashboard {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E");
}

.nav-icon-team {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.8 20c1.3-3.6 3.5-5.2 6.2-5.2s4.9 1.6 6.2 5.2'/%3E%3Cpath d='M16 11.5a3.2 3.2 0 1 0-.8-6.3'/%3E%3Cpath d='M17 14.8c2.1.5 3.6 2.1 4.4 5.2'/%3E%3C/svg%3E");
}

.nav-icon-appstore {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.nav-icon-setting {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M12 18v3M4.6 6.6l2.1 2.1M17.3 17.3l2.1 2.1M3 12h3M18 12h3M4.6 17.4l2.1-2.1M17.3 6.7l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
