:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --text: #101827;
  --muted: #6b7787;
  --line: #e4eaf0;
  --teal: #14a89a;
  --teal-dark: #0d8e82;
  --nav: #0d1b2a;
  --nav-2: #102235;
  --blue: #2e86ff;
  --orange: #ef8a2e;
  --gray-chip: #eef2f6;
  --shadow: 0 14px 34px rgba(16, 24, 39, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #607086 50%),
    linear-gradient(135deg, #607086 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  flex: 0 0 auto;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(140deg, #effbf8 0%, #f7f9fb 52%, #eef3ff 100%);
}

.login-card {
  width: min(420px, 100%);
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.wechat-guide {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 128px 20px 84px;
  background: #ffffff;
}

.wechat-arrow {
  position: fixed;
  top: max(72px, env(safe-area-inset-top));
  right: 24px;
  width: 156px;
  height: 132px;
  color: var(--teal);
  pointer-events: none;
}

.wechat-arrow::before {
  content: "...";
  position: absolute;
  top: 0;
  right: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #111827;
}

.wechat-arrow span {
  position: absolute;
  right: 50px;
  top: 30px;
  width: 98px;
  height: 72px;
  border-top: 6px solid currentColor;
  border-radius: 90% 0 0 0;
  transform: rotate(-12deg);
}

.wechat-arrow span::after {
  content: "";
  position: absolute;
  right: -15px;
  top: -16px;
  width: 34px;
  height: 34px;
  border-top: 6px solid currentColor;
  border-right: 6px solid currentColor;
  transform: rotate(43deg);
  border-radius: 2px;
}

.wechat-card {
  width: min(430px, 100%);
  padding: 34px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(16, 24, 39, 0.1);
  text-align: center;
}

.wechat-icon {
  width: 72px;
  height: 72px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(21, 169, 154, 0.2);
}

.wechat-icon::before {
  content: "";
  width: 30px;
  height: 17px;
  border-left: 7px solid currentColor;
  border-bottom: 7px solid currentColor;
  transform: rotate(-45deg) translate(2px, -3px);
  border-radius: 2px;
}

.wechat-card h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.wechat-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.wechat-card ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
  counter-reset: step;
}

.wechat-card li {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 48px;
  border-radius: 8px;
  background: #f4f8fb;
  color: #233143;
  font-weight: 700;
}

.wechat-card li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
}

.copy-link-btn {
  width: 100%;
}

.wechat-copy-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wechat-url {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f8fb;
  color: #46566a;
  font-size: 13px;
  word-break: break-all;
}

.brand-mark,
.side-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #21c7b5);
  color: #fff;
}

.brand-mark {
  margin-bottom: 18px;
}

.login-card h1,
.section-title h2,
.panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.login-card p,
.muted {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #314150;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 38px 10px 12px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.field input,
.field textarea {
  padding-right: 12px;
}

.field select {
  color: #263342;
  font-weight: 700;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #20b8ac 0%, #0e9d91 100%);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(20, 168, 154, 0.22);
}

.btn.secondary {
  color: #263342;
  background: #eef3f7;
  box-shadow: none;
}

.btn.ghost,
.icon-btn,
.link-btn {
  background: transparent;
  box-shadow: none;
}

.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #243244;
}

.link-btn {
  padding: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  color: #213042;
  font-size: 14px;
}

.user-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.admin-shell {
  background: #f5f7fa;
}

.admin-layout {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 70px);
  display: block;
  padding: 0;
}

.admin-layout .main-space {
  margin-left: 220px;
  padding: 24px;
  min-width: 0;
}

.admin-shell .topbar {
  margin-left: 220px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 14px;
  background: linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%);
  color: #fff;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
  font-size: 17px;
}

.side-logo::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 5px solid currentColor;
  border-right-color: transparent;
  border-radius: 8px;
  transform: rotate(45deg);
}

.nav-item {
  width: 100%;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  box-shadow: none;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(180deg, #18b7aa 0%, #0f958b 100%);
}

.side-logout {
  margin-top: auto;
}

.panel,
.admin-table-panel,
.stat-card,
.lead-card,
.upload-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel,
.admin-table-panel {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  min-height: 118px;
  padding: 20px;
  overflow: hidden;
}

.stat-card span {
  color: #344255;
  font-size: 14px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.stat-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.stat-card i {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 58px;
  height: 36px;
  background:
    linear-gradient(135deg, transparent 42%, currentColor 43% 47%, transparent 48%),
    linear-gradient(45deg, transparent 52%, currentColor 53% 57%, transparent 58%);
  color: var(--teal);
  opacity: 0.8;
}

.stat-card.pending i {
  color: var(--orange);
}

.stat-card.contacting i {
  color: var(--blue);
}

.stat-card.invalid i {
  color: #93a0ae;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) 180px 220px 140px;
  gap: 14px;
  margin-bottom: 16px;
}

.toolbar label,
.toolbar input,
.toolbar select {
  min-height: 44px;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #98a2af;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 38px 0 14px;
  outline: 0;
  background: #fff;
  color: #263342;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(16, 24, 39, 0.035);
}

.toolbar input {
  padding: 0 12px 0 0;
  box-shadow: none;
}

.toolbar select:hover,
.field select:hover,
td select:hover {
  border-color: #c7d3df;
  background-color: #fbfdff;
}

.toolbar select:focus,
.field select:focus,
td select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 168, 154, 0.12);
}

.toolbar label input {
  min-height: auto;
  padding: 0;
  border: 0;
}

.export-btn {
  min-height: 44px;
}

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

.stats-panel {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-panel.wide {
  grid-column: 1 / -1;
}

.bar-list,
.rank-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 46px;
  align-items: center;
  gap: 12px;
}

.bar-row div:first-child {
  display: grid;
  gap: 3px;
}

.bar-row strong {
  font-size: 14px;
}

.bar-row span,
.bar-row em,
.rank-row em,
.trend-col span,
.trend-col em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  background: #eef3f7;
  border-radius: 999px;
}

.bar-track i {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.bar-track i.pending {
  background: var(--orange);
}

.bar-track i.contacting {
  background: var(--blue);
}

.bar-track i.won {
  background: var(--teal);
}

.bar-track i.invalid {
  background: #9aa6b2;
}

.rank-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 2px;
}

.rank-row span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e6f7f4;
  color: var(--teal-dark);
  font-weight: 900;
}

.trend-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  padding: 14px 8px 0;
  border-bottom: 1px solid var(--line);
}

.trend-col {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 6px;
}

.trend-col i {
  align-self: end;
  width: 38px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #25c7b9 0%, #0c968b 100%);
}

.table-wrap {
  overflow: auto;
}

.responsive-cards {
  display: none;
}

.admin-data-card {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(16, 24, 39, 0.055);
}

.admin-data-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-data-head strong {
  min-width: 0;
  font-size: 15px;
}

.admin-data-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.admin-data-card p {
  margin: 10px 0 0;
  color: #344255;
  font-size: 13px;
  line-height: 1.5;
}

.mobile-status-select {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #344255;
  font-size: 13px;
  font-weight: 800;
}

.mobile-status-select select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 10px;
  background-color: #fff;
  outline: 0;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: #263342;
  font-size: 13px;
  font-weight: 800;
  background: #f8fafc;
}

td select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 32px 4px 10px;
  background: #fff;
  color: #263342;
  font-size: 13px;
  font-weight: 800;
  outline: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.chip.pending {
  color: #e57920;
  background: #fff0e4;
}

.chip.contacting {
  color: #2480f2;
  background: #e7f1ff;
}

.chip.won {
  color: #0b826f;
  background: #def7f2;
}

.chip.invalid {
  color: #677381;
  background: var(--gray-chip);
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2f6;
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.message {
  margin-top: 10px;
  color: #c64646;
  font-size: 14px;
}

.success {
  color: #108069;
}

.mobile-shell {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: #f7f9fb;
  box-shadow: 0 0 0 1px rgba(16, 24, 39, 0.04);
}

.mobile-shell .topbar {
  height: 64px;
  padding: 0 16px;
  background: #fff;
}

.mobile-shell .topbar h1 {
  width: 100%;
  text-align: center;
  font-size: 18px;
}

.mobile-shell .topbar > div:first-child {
  flex: 1;
}

.mobile-shell .user-pill {
  padding: 0;
}

.mobile-shell .user-pill span {
  min-width: 36px;
  height: 36px;
  padding: 0 7px;
  font-size: 13px;
}

.mobile-shell .layout {
  padding: 12px 14px 96px;
}

.mobile-submit {
  display: grid;
  gap: 14px;
}

.new-lead-btn {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}

.form-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 28px rgba(16, 24, 39, 0.05);
}

.app-field {
  position: relative;
  display: grid;
  grid-template-columns: 24px 96px 1fr;
  align-items: start;
  gap: 10px;
  min-height: 52px;
  padding: 15px 14px;
  background: #fff;
  color: #253243;
  font-weight: 800;
}

.app-field svg {
  margin-top: 2px;
  color: #3c4a5d;
}

.app-field span {
  white-space: nowrap;
}

.app-field input,
.app-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  outline: 0;
  color: #253243;
  background: transparent;
  font-weight: 500;
}

.app-field textarea {
  min-height: 58px;
  resize: none;
}

.app-field em {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #8a96a5;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.upload-card {
  padding: 16px;
}

.upload-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #253243;
}

.upload-box {
  width: 72px;
  height: 64px;
  display: inline-grid;
  place-items: center;
  gap: 2px;
  border-radius: 8px;
  background: #eef3f7;
  color: #344255;
  font-size: 12px;
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.upload-hint {
  margin-top: 10px;
  color: #8a96a5;
  font-size: 12px;
}

.my-leads {
  margin-top: 18px;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-card {
  padding: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.05);
}

.lead-copy {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 12px;
}

.lead-title {
  margin: 0;
  font-size: 15px;
}

.lead-meta {
  display: inline-flex;
  gap: 10px;
  margin-left: 8px;
  color: #5f6f82;
  font-size: 13px;
  font-weight: 500;
}

.lead-copy p {
  margin: 7px 0;
  color: #5f6f82;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-copy time {
  color: #93a0ae;
  font-size: 12px;
}

.lead-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f6;
}

.empty-cover {
  display: grid;
  place-items: center;
  color: #9ba6b3;
}

.lead-status-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -22px;
}

.submit-fixed {
  position: fixed;
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 18px;
  z-index: 15;
  min-height: 52px;
  font-size: 17px;
}

@media (min-width: 821px) {
  .mobile-shell .layout {
    padding-top: 14px;
  }
}

@media (max-width: 820px) {
  html,
  body,
  #app,
  .app-shell,
  .admin-shell {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .topbar {
    min-height: 64px;
    height: auto;
    padding: 10px 12px;
    align-items: center;
  }

  .topbar h1 {
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .layout,
  .admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 10px;
  }

  .admin-shell .topbar {
    margin-left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .admin-layout .main-space {
    margin-left: 0;
    padding: 10px;
    width: 100%;
    overflow: hidden;
  }

  .admin-shell .user-pill {
    min-width: 0;
    padding: 0;
    gap: 4px;
  }

  .admin-shell .user-pill span {
    max-width: 132px;
    height: 36px;
    padding: 0 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .admin-shell .icon-btn {
    width: 30px;
    height: 30px;
  }

  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding: 8px;
    min-height: 52px;
    border-radius: 8px;
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .nav-item svg {
    width: 16px;
    height: 16px;
  }

  .side-brand,
  .side-logout {
    display: none;
  }

  .grid-2,
  .admin-stats,
  .stats-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .stats-panel.wide {
    grid-column: auto;
  }

  .bar-row {
    grid-template-columns: 92px 1fr 42px;
  }

  .admin-stats {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .stat-card {
    min-height: 86px;
    padding: 13px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .stat-card span {
    font-size: 13px;
  }

  .stat-card small {
    margin-top: 8px;
    font-size: 12px;
  }

  .stat-card i {
    right: 10px;
    bottom: 18px;
    width: 42px;
    height: 28px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stats-panel {
    padding: 14px;
    overflow: hidden;
    width: 100%;
    min-width: 0;
  }

  .stats-panel .section-title h2,
  .section-title h2 {
    font-size: 20px;
  }

  .trend-chart {
    height: 138px;
    gap: 4px;
    padding: 8px 0 0;
    overflow: hidden;
  }

  .trend-col {
    min-width: 0;
    gap: 4px;
  }

  .trend-col i {
    width: min(24px, 68%);
  }

  .trend-col span,
  .trend-col em {
    font-size: 10px;
    white-space: nowrap;
  }

  .bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 34px;
    gap: 8px;
  }

  .toolbar {
    gap: 10px;
  }

  .toolbar label,
  .toolbar input,
  .toolbar select,
  .export-btn {
    min-height: 42px;
  }

  .admin-table-panel,
  .panel {
    padding: 14px;
    overflow: hidden;
  }

  .responsive-cards {
    display: grid;
    gap: 10px;
  }

  .table-wrap {
    display: none;
  }

  .section-title {
    align-items: center;
  }

  .app-field {
    grid-template-columns: 22px 88px 1fr;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
