* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f3f6fb;
  --layout-header-height: 78px;
}

[hidden] {
  display: none !important;
}

.app-booting .key-login-screen,
.app-booting .app-shell {
  display: none !important;
}

.key-login-screen {
  display: grid;
  place-items: center;
  height: 100vh;
  overflow: auto;
  padding: 24px;
  background: #e8eef7;
}

.key-login-card {
  width: min(420px, 100%);
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  padding: 26px;
}

.key-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.key-login-card h1 {
  margin: 28px 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.key-login-copy {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
}

.key-login-form {
  display: grid;
  gap: 14px;
}

.key-field {
  display: grid;
  gap: 8px;
  width: 100%;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}

.key-field input {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  color: #111827;
  font: inherit;
  font-weight: 400;
  outline: none;
}

.key-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.key-login-button {
  height: 42px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.key-login-button:hover {
  background: #1d4ed8;
}

.key-login-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.key-login-message {
  min-height: 20px;
  color: #b91c1c;
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #111827;
  border-right: 1px solid #dfe5ee;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--layout-header-height);
  padding: 0 28px;
  color: #0b63e5;
  border-bottom: 1px solid #e5e7eb;
  font-size: 23px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f75ff 0 46%, #12c7d8 46% 100%);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(11, 99, 229, 0.18);
}

.nav {
  display: grid;
  gap: 2px;
  margin-top: 0;
  padding: 16px 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 28px;
  color: #111827;
  border-radius: 0;
  font-size: 17px;
  text-decoration: none;
}

.nav-item:hover {
  background: #f5f9ff;
  color: #0b63e5;
}

.nav-item.active {
  background: #eef6ff;
  color: #0b63e5;
  font-weight: 500;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: #0b63e5;
}

.nav-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #5b6472;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: #0b63e5;
}

.nav-icon-messages {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4.8C4 3.8 4.8 3 5.8 3h12.4c1 0 1.8.8 1.8 1.8v14.4c0 1-.8 1.8-1.8 1.8H5.8c-1 0-1.8-.8-1.8-1.8V4.8Zm3 2.7c0 .6.4 1 1 1h8c.6 0 1-.4 1-1s-.4-1-1-1H8c-.6 0-1 .4-1 1Zm0 4.5c0 .6.4 1 1 1h8c.6 0 1-.4 1-1s-.4-1-1-1H8c-.6 0-1 .4-1 1Zm0 4.5c0 .6.4 1 1 1h5c.6 0 1-.4 1-1s-.4-1-1-1H8c-.6 0-1 .4-1 1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4.8C4 3.8 4.8 3 5.8 3h12.4c1 0 1.8.8 1.8 1.8v14.4c0 1-.8 1.8-1.8 1.8H5.8c-1 0-1.8-.8-1.8-1.8V4.8Zm3 2.7c0 .6.4 1 1 1h8c.6 0 1-.4 1-1s-.4-1-1-1H8c-.6 0-1 .4-1 1Zm0 4.5c0 .6.4 1 1 1h8c.6 0 1-.4 1-1s-.4-1-1-1H8c-.6 0-1 .4-1 1Zm0 4.5c0 .6.4 1 1 1h5c.6 0 1-.4 1-1s-.4-1-1-1H8c-.6 0-1 .4-1 1Z'/%3E%3C/svg%3E");
}

.nav-icon-scan {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm12 0h2v6h-6v-2h4v-4ZM8 8h2v2H8V8Zm6 0h2v2h-2V8Zm-6 6h2v2H8v-2Zm4-2h2v2h-2v-2Zm4 4h-2v-2h2v2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm12 0h2v6h-6v-2h4v-4ZM8 8h2v2H8V8Zm6 0h2v2h-2V8Zm-6 6h2v2H8v-2Zm4-2h2v2h-2v-2Zm4 4h-2v-2h2v2Z'/%3E%3C/svg%3E");
}

.workspace {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--layout-header-height);
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: #1f2937;
}

.user-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #2563eb;
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='11' r='5' fill='white'/%3E%3Cpath d='M6.6 23.2C7.45 19.35 10.28 17.2 14 17.2C17.72 17.2 20.55 19.35 21.4 23.2C19.45 24.95 16.86 26 14 26C11.14 26 8.55 24.95 6.6 23.2Z' fill='white'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.user-name {
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.breadcrumb {
  color: #64748b;
  font-size: 13px;
}

h1 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 24px 28px 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-view {
  display: none;
  min-height: 0;
}

.page-view.active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.table-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfd6de;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
}

.table-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 7px 10px;
  border-bottom: 1px solid #cfd6de;
  background: #ffffff;
}

.table-title-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.table-title {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.table-meta {
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(420px, 100%);
}

.auto-refresh-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  color: #334155;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.auto-refresh-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auto-refresh-switch {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid #b8c4d3;
  border-radius: 999px;
  background: #ffffff;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.auto-refresh-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.16s ease, background 0.16s ease;
}

.auto-refresh-control input:checked + .auto-refresh-switch {
  border-color: #2563eb;
  background: #dbeafe;
}

.auto-refresh-control input:checked + .auto-refresh-switch::after {
  transform: translateX(16px);
  background: #2563eb;
}

.auto-refresh-control input:focus-visible + .auto-refresh-switch {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.search-input {
  flex: 1;
  min-width: 180px;
  height: 30px;
  border: 1px solid #bfc7d1;
  border-radius: 2px;
  padding: 0 9px;
  color: #111827;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.search-input:focus {
  border-color: #2b79c2;
  box-shadow: 0 0 0 2px rgba(43, 121, 194, 0.12);
}

.search-button {
  height: 30px;
  border: 1px solid #bfc7d1;
  border-radius: 2px;
  padding: 0 11px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.search-button {
  border-color: #2b79c2;
  color: #ffffff;
  background: #2b79c2;
}

.search-button:hover {
  background: #1f65a5;
}

.admin-add-button {
  height: 30px;
  border: 1px solid #2b79c2;
  border-radius: 2px;
  padding: 0 11px;
  color: #2b79c2;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-add-button:hover {
  color: #ffffff;
  background: #2b79c2;
}

.data-table-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
  background: #ffffff;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #ffffff;
}

.data-table th,
.data-table td {
  max-width: 360px;
  padding: 8px 12px;
  border-right: 1px solid #e8edf4;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-all;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 42px;
  color: #4b5563;
  background: #dfe6f1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 #d3dbe7;
}

.data-table tbody tr {
  background: #ffffff;
}

.data-table tbody tr:hover {
  background: #cfe2fb;
}

.data-table tbody tr.is-offline td {
  background: rgba(37, 99, 235, 0.14);
}

.data-table tbody tr.is-offline:hover td {
  background: rgba(37, 99, 235, 0.2);
}

.data-table tbody tr.is-grabbed td {
  background: rgba(22, 163, 74, 0.15);
}

.data-table tbody tr.is-grabbed:hover td {
  background: rgba(22, 163, 74, 0.22);
}

.status-row-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.status-row-overlay.offline {
  background: rgba(37, 99, 235, 0.12);
}

.status-row-overlay.grabbed {
  background: rgba(22, 163, 74, 0.12);
}

.status-row-overlay span {
  position: absolute;
  top: 50%;
  box-sizing: border-box;
  transform: translateY(-50%);
  padding: 2px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.status-row-overlay.offline span {
  color: #0f4fb8;
  background: rgba(219, 234, 254, 0.9);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.status-row-overlay.grabbed span {
  color: #137333;
  background: rgba(220, 252, 231, 0.92);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.18);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  height: 48px;
  color: #1f2937;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.data-table th.sortable:hover,
.table-sort-button:hover {
  color: #3f6cff;
  background: #d5e1f0;
}

.sort-arrows {
  display: inline-grid;
  gap: 1px;
  line-height: 1;
}

.sort-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.45;
}

.sort-arrow.up {
  border-bottom: 5px solid #7b8794;
}

.sort-arrow.down {
  border-top: 5px solid #7b8794;
}

.table-sort-button.asc .sort-arrow.up {
  border-bottom-color: #2563eb;
  opacity: 1;
}

.table-sort-button.desc .sort-arrow.down {
  border-top-color: #2563eb;
  opacity: 1;
}

.data-table .cell-uin {
  color: #1f2937;
  font-weight: 400;
  text-decoration: none;
  cursor: default;
}

.data-table .cell-user_roleName {
  font-weight: 600;
}

.data-table .cell-last_updated {
  color: #374151;
  white-space: nowrap;
}

.data-table .cell-remark {
  color: #374151;
  cursor: text;
}

.data-table .cell-auth_count {
  color: #1f2937;
}

.data-table .editable-number {
  cursor: text;
}

.data-table .editable-number:hover {
  color: #0f4fb8;
  background: rgba(43, 121, 194, 0.08);
}

.data-table .empty-time {
  color: #9ca3af;
}

.data-table .empty-remark {
  color: #9ca3af;
}

.remark-input {
  width: 100%;
  height: 30px;
  border: 1px solid #8ab4f8;
  border-radius: 2px;
  padding: 0 8px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  outline: none;
}

.remark-input.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.remark-input:focus {
  box-shadow: 0 0 0 2px rgba(63, 108, 255, 0.16);
}

.number-input {
  max-width: 120px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.34);
}

.modal-card {
  width: min(520px, 100%);
  border: 1px solid #d5dce6;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #e5eaf0;
}

.modal-title {
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  width: 30px;
  height: 30px;
  border: 0;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: #111827;
}

.modal-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.modal-field {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.modal-field input {
  height: 34px;
  border: 1px solid #bfc7d1;
  border-radius: 2px;
  padding: 0 9px;
  color: #111827;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.modal-field input:focus {
  border-color: #2b79c2;
  box-shadow: 0 0 0 2px rgba(43, 121, 194, 0.12);
}

.modal-hint,
.modal-message {
  color: #64748b;
  font-size: 12px;
}

.modal-result {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  border: 1px solid #d8e3f3;
  border-radius: 4px;
  padding: 10px;
  color: #0f172a;
  background: #f8fbff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.modal-button {
  height: 32px;
  border: 1px solid #bfc7d1;
  border-radius: 2px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.modal-button.primary {
  border-color: #2b79c2;
  color: #ffffff;
  background: #2b79c2;
}

.modal-button.secondary {
  color: #334155;
  background: #ffffff;
}

.modal-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.table-empty {
  padding: 34px 18px;
  color: #6b7280;
  text-align: center;
}

.table-head,
.item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 126px;
  align-items: center;
  column-gap: 18px;
}

.table-head {
  min-height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid #e5e7eb;
  color: #64748b;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.item:last-child {
  border-bottom: 0;
}

.item:hover {
  background: #f8fafc;
}

.item.read {
  background: #f1f5f9;
  color: #94a3b8;
}

.qq {
  min-width: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}

.badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
}

.item.read .badge {
  border-color: #e5e7eb;
  color: #64748b;
  background: #ffffff;
}

label {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  width: max-content;
  cursor: pointer;
  user-select: none;
  color: inherit;
  font-size: 14px;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.login-panel {
  width: min(760px, 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.login-title {
  font-size: 16px;
  font-weight: 700;
}

.login-subtitle {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.login-quota {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.login-quota.is-full {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.login-state {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.login-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-button {
  height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.refresh-button:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.logout-button {
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.logout-button:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.login-body {
  display: grid;
  grid-template-columns: 248px minmax(220px, 1fr);
  align-items: start;
  justify-content: center;
  gap: 28px;
  padding: 34px 18px 38px;
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 228px;
  height: 228px;
  border: 10px solid #ffffff;
  box-shadow: 0 0 0 1px #dbe3ef, 0 16px 42px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.qr-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  color: #475569;
  text-align: center;
  background: #f8fafc;
}

.qr-placeholder-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 22px;
  font-weight: 700;
}

.qr-placeholder-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.qr-placeholder-text {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.qr-frame.error .qr-placeholder-mark {
  color: #b91c1c;
  background: #fee2e2;
}

.qr-frame.success .qr-placeholder-mark {
  color: #047857;
  background: #d1fae5;
}

.login-success-panel {
  min-height: 228px;
  border-left: 1px solid #e5e7eb;
  padding-left: 24px;
}

.login-success-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.login-success-list {
  display: grid;
  gap: 8px;
  max-height: 228px;
  margin: 12px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.login-success-item {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f7;
}

.login-success-uin {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.login-success-message {
  color: #334155;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.login-success-time {
  color: #64748b;
  font-size: 12px;
}

.login-success-empty {
  color: #94a3b8;
  font-size: 13px;
}

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

  .sidebar {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .topbar-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .content {
    padding: 16px;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .table-tools {
    width: 100%;
    min-width: 0;
  }

  .search-input {
    min-width: 0;
  }

  .table-head {
    display: none;
  }

  .item {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 14px 16px;
  }

  .login-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .login-success-panel {
    width: 100%;
    min-height: auto;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding: 18px 0 0;
  }

  .login-actions {
    flex-wrap: wrap;
  }
}
