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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.base-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 270px;
  height: 30px;
  margin-right: 6px;
  padding: 0 10px;
  border: 1px solid #dfe8e3;
  border-radius: 999px;
  background: #f5fbf8;
  color: #0b6b4c;
  font-size: 11.5px;
}

.base-chip:hover {
  border-color: #c9e7d8;
  background: #ecf8f2;
}

.base-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-chip svg {
  flex: none;
  opacity: 0.8;
}

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-head h1 {
  margin: 5px 0 7px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: fade-up 0.35s ease both;
}

.stat-card:nth-child(2) {
  animation-delay: 0.04s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.08s;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.stat-value {
  margin: 1px 0 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: fade-up 0.4s 0.05s ease both;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
}

.count-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.search-wrap input {
  width: 252px;
  height: 36px;
  padding-left: 34px;
  background: #f8fafb;
}

.code-table-head,
.code-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(180px, 1.35fr) 84px 94px 242px;
  gap: 16px;
  align-items: center;
}

.code-table-head {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  color: var(--muted);
  font-size: 11.5px;
}

.align-right {
  text-align: right;
}

.code-row {
  padding: 17px 20px;
  border-bottom: 1px solid #edf1f4;
  transition: background 0.15s ease;
}

.code-row:last-child {
  border-bottom: none;
}

.code-row:hover {
  background: #fbfdfc;
}

.code-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.code-name {
  max-width: 68%;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-note {
  overflow: hidden;
  color: #94a3b8;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 7px;
  padding: 3px 8px;
  border: 1px solid #dbeae3;
  border-radius: 7px;
  background: #f6fbf8;
  color: #0b6b4c;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
}

.short-link:hover {
  border-color: #c7e4d6;
  background: #edf8f2;
}

.short-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-link svg {
  flex: none;
  opacity: 0.68;
}

.target-url {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #475569;
  font-size: 12.5px;
  text-decoration: none;
}

.target-url:hover {
  color: var(--brand-dark);
}

.target-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-url svg {
  flex: none;
  color: #94a3b8;
}

.status-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
  content: "";
  transition: transform 0.18s ease;
}

.switch[aria-checked="true"] {
  background: var(--brand);
}

.switch[aria-checked="true"]::after {
  transform: translateX(18px);
}

.status-text {
  color: var(--muted);
  font-size: 12px;
}

.status-text.enabled {
  color: var(--brand-dark);
  font-weight: 600;
}

.visit-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.visit-cell:hover .visits {
  color: var(--brand-dark);
}

.visits {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.visit-time {
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.code-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.btn-switch {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #cde8dc;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 650;
}

.btn-switch:hover {
  border-color: #b7dfcf;
  background: #d9f2e7;
}

.empty-state {
  padding: 58px 20px 62px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border: 1px solid #d9eee4;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.empty-state h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 650;
}

.empty-state p {
  max-width: 360px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.inline-empty,
.inline-error {
  padding: 44px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.inline-error {
  color: #b91c1c;
}

.admin-foot {
  margin-top: 24px;
  color: #9aa6b5;
  font-size: 11.5px;
  text-align: center;
}

.admin-foot code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eceff3;
  font-family: var(--mono);
  font-size: 11px;
}

.skeleton-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f5 25%, #f8fafb 37%, #eef2f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}

.skeleton-row .skeleton-line:nth-child(1) {
  width: 72%;
}

.skeleton-row .skeleton-line:nth-child(2) {
  width: 84%;
}

.skeleton-row .skeleton-line:nth-child(3) {
  width: 60%;
}

.skeleton-row .skeleton-line:nth-child(4) {
  width: 48%;
}

.skeleton-row .skeleton-line:nth-child(5) {
  width: 66%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.input-prefix {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-prefix:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 159, 110, 0.12);
}

.input-prefix > span {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  background: #f6f8f8;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

.input-prefix input {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-prefix input:focus {
  box-shadow: none;
}

.slug-readonly {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafb;
}

.slug-readonly > span {
  color: var(--muted);
  font-size: 11.5px;
}

.slug-readonly code {
  color: var(--brand-dark);
  font-family: var(--mono);
  font-size: 13px;
}

.slug-readonly small {
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.55;
}

.context-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #e3ece8;
  border-radius: 10px;
  background: #f7fbf9;
}

.context-box strong {
  font-size: 14px;
  font-weight: 650;
}

.context-box code {
  overflow-wrap: anywhere;
  color: var(--brand-dark);
  font-family: var(--mono);
  font-size: 11.5px;
}

.context-label {
  color: var(--muted);
  font-size: 11.5px;
}

.context-box.subtle {
  background: #f8fafb;
  border-color: var(--line);
}

.settings-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.settings-section-title {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.settings-section-head .field-hint {
  display: block;
  margin-top: 3px;
}

.settings-section-head .switch {
  margin-top: 2px;
}

.qr-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr-logo-preview {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: opacity 0.15s ease;
}

.qr-logo-preview.is-off {
  opacity: 0.42;
}

.qr-logo-preview img,
.qr-logo-preview svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-logo-copy {
  min-width: 0;
}

.qr-logo-copy > p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.qr-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.qr-logo-actions .btn {
  cursor: pointer;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f4faf7;
  color: #3f6555;
  font-size: 12px;
  line-height: 1.6;
}

.callout svg {
  flex: none;
  margin-top: 1px;
  color: var(--brand-dark);
}

.modal-records {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  overflow: hidden;
}

.modal-heading {
  min-width: 0;
}

.modal-heading p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}

.records-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px 0;
}

.records-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafb;
}

.records-stat span {
  color: var(--muted);
  font-size: 11.5px;
}

.records-stat strong {
  font-size: 19px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.records-tabs {
  display: flex;
  gap: 4px;
  margin: 14px 22px 0;
  padding: 3px;
  border-radius: 10px;
  background: #eef3f1;
}

.records-tab {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.records-tab:hover {
  color: var(--ink-soft);
}

.records-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.records-tab span {
  display: inline-block;
  min-width: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8eef2;
  color: #64748b;
  font-size: 10.5px;
  line-height: 16px;
  text-align: center;
  vertical-align: 1px;
}

.records-tab.active span {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.records-body {
  min-height: 240px;
  max-height: 44vh;
  overflow-y: auto;
  padding: 10px 22px 12px;
}

.records-list,
.history-list {
  min-height: 220px;
}

.record-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px dashed #e6edf0;
}

.record-item:last-child {
  border-bottom: none;
}

.record-time {
  color: #7b8794;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.record-main {
  min-width: 0;
}

.record-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.record-ip-address {
  overflow-wrap: anywhere;
  font-family: var(--mono);
}

.record-ip-location {
  max-width: 100%;
  padding: 0 6px;
  overflow-wrap: anywhere;
  border-radius: 5px;
  background: #f1f5f9;
  color: #5b6b7c;
  font-size: 11px;
  line-height: 18px;
}

.record-meta {
  margin-top: 2px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-loading {
  padding: 54px 10px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.records-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 52px 14px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.records-empty strong {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 650;
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  padding: 3px 0 18px;
}

.history-item:not(:last-child)::before {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: #dbe7e1;
  content: "";
}

.history-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 3px #fff;
}

.history-item.current .history-dot {
  background: var(--brand);
}

.history-content {
  min-width: 0;
}

.history-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.5;
}

.history-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f6;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
}

.history-badge.current {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.history-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 5px;
}

.history-label {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border-radius: 5px;
  background: #eef2f6;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 650;
}

.history-label.new {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.history-line code {
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfb;
  color: #475569;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.history-line.new code {
  border-color: #d9eee4;
  background: #f5fbf8;
  color: var(--brand-dark);
}

.records-foot {
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.records-retention {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}

.modal-qr {
  max-width: 400px;
}

.qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
}

.qr-frame {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.qr-frame img {
  display: block;
  width: 244px;
  height: 244px;
  border-radius: 4px;
}

.qr-name {
  margin: 14px 0 5px;
  font-size: 15px;
  font-weight: 650;
}

.qr-link {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}

.qr-link code {
  max-width: 280px;
  overflow: hidden;
  padding: 4px 8px;
  border: 1px solid #e0efe8;
  border-radius: 7px;
  background: #f3faf7;
  color: var(--brand-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-note {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.confirm-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .base-chip {
    max-width: 190px;
  }

  .code-table-head,
  .code-row {
    grid-template-columns: minmax(170px, 1.1fr) minmax(150px, 1.1fr) 78px 82px 236px;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }

  .topbar-right {
    gap: 2px;
  }

  .base-chip {
    display: none;
  }

  .admin-main {
    padding: 24px 16px 44px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 22px;
  }

  .page-head h1 {
    font-size: 26px;
  }

  .page-head .btn {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 15px 16px;
    border-radius: 13px;
  }

  .stat-value {
    font-size: 20px;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .search-wrap input {
    width: 100%;
  }

  .code-table-head {
    display: none;
  }

  .code-row {
    display: block;
    padding: 16px;
  }

  .code-cell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
  }

  .code-cell::before {
    flex: none;
    padding-top: 2px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 11.5px;
  }

  .code-identity {
    padding-top: 0;
  }

  .code-identity::before,
  .code-actions::before {
    display: none;
  }

  .code-identity > div {
    width: 100%;
  }

  .code-name-row {
    display: block;
  }

  .code-name {
    display: block;
    max-width: 100%;
    white-space: normal;
  }

  .code-note {
    display: block;
    margin-top: 2px;
    white-space: normal;
  }

  .short-link {
    max-width: 100%;
    margin-top: 8px;
  }

  .target-url {
    justify-content: flex-end;
    max-width: 72%;
  }

  .target-url span {
    white-space: nowrap;
  }

  .status-wrap {
    justify-content: flex-end;
  }

  .visit-cell {
    width: auto;
    align-items: flex-end;
  }

  .code-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
  }

  .code-actions .btn-switch {
    margin-right: auto;
  }

  .empty-state {
    padding: 44px 20px;
  }

  .admin-foot {
    font-size: 11px;
    line-height: 1.7;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .modal {
    max-height: calc(100vh - 24px);
    border-radius: 18px 18px 14px 14px;
  }

  .qr-frame img {
    width: 220px;
    height: 220px;
  }

  .modal-records {
    max-height: calc(100vh - 24px);
  }

  .records-overview {
    gap: 8px;
    padding: 14px 16px 0;
  }

  .records-stat {
    padding: 9px 10px;
  }

  .records-stat strong {
    font-size: 17px;
  }

  .records-tabs {
    margin: 12px 16px 0;
  }

  .records-body {
    max-height: 42vh;
    min-height: 210px;
    padding: 8px 16px 10px;
  }

  .records-foot {
    align-items: flex-start;
    padding: 12px 16px 16px;
  }

  .records-retention {
    max-width: 62%;
  }

  .record-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px 0;
  }

  .record-time {
    font-size: 11px;
  }

  .history-list {
    min-height: 190px;
  }
}

@media (max-width: 390px) {
  .topbar .brand {
    font-size: 14px;
  }

  .topbar-right .btn-ghost {
    padding: 0 9px;
  }

  .qr-frame img {
    width: 190px;
    height: 190px;
  }

  .qr-actions .btn {
    flex: 1;
  }
}