/* MicroDraft Admin Route Stylesheet (StyleX & Ark UI) */
/* MicroDraft Admin Design System · Architectural Line & Ark UI */
:root {
  --admin-sidebar-w: 240px;
}

/* Layout Shell */
.admin-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.admin-app-root {
  display: grid;
  grid-template-columns: var(--admin-sidebar-w) 1fr;
  min-height: 100vh;
  background: var(--paper);
}

/* Sidebar */
.admin-sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.admin-sidebar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.admin-sidebar-logo img {
  width: 26px;
  height: 26px;
}

.admin-sidebar-title {
  letter-spacing: -0.02em;
}

.admin-sidebar-badge {
  display: inline-block;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 750;
  letter-spacing: .06em;
  color: var(--muted);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: all .16s ease;
  width: 100%;
  box-sizing: border-box;
}

.admin-nav-item:hover {
  background: rgba(20,35,30,.03);
  color: var(--ink);
  border-color: var(--line);
}

.admin-nav-item.is-active {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  box-shadow: 0 2px 8px rgba(20,35,30,.04);
}

.admin-nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-nav-label {
  flex: 1;
}

.admin-nav-code {
  font-size: 9.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--muted-soft);
  letter-spacing: .04em;
}

.admin-nav-item.is-active .admin-nav-code {
  color: var(--ink);
  font-weight: 800;
}

.admin-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.admin-sidebar-user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-sidebar-user-name {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-user-role {
  font-size: 11px;
  color: var(--muted);
}

/* Main Viewport */
.admin-main-viewport {
  padding: 36px 40px 64px;
  overflow-y: auto;
  box-sizing: border-box;
}

.admin-page-container {
  max-width: 1080px;
}

.admin-page-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-breadcrumb {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .08em;
  color: var(--ink);
  background: transparent;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  border-radius: 2px;
  margin-bottom: 12px;
}

.admin-page-title {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  color: var(--ink);
}

.admin-page-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Cards */
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-top: 18px;
  box-shadow: 0 2px 10px rgba(20,35,30,.03);
}

.max-width-card {
  max-width: 720px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.admin-card-meta {
  color: var(--muted);
  font-size: 12.5px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.35fr);
  gap: 20px;
}

/* Forms & Fields */
.admin-form {
  display: grid;
  gap: 14px;
}

.input-row {
  display: flex;
  gap: 8px;
}

.code-font, .code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  letter-spacing: .06em;
}

.code-input {
  font-weight: 750;
  text-transform: uppercase;
}

.label-tag {
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--muted);
  font-weight: normal;
}

.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.preset-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 3px;
  transition: all .15s ease;
  cursor: pointer;
}

.preset-btn:hover {
  background: var(--mint);
  border-color: #a8d73e;
}

.preset-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.calc-hint {
  font-size: 12px;
  color: #397244;
  font-weight: 600;
  margin-top: 4px;
}

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: auto;
}

.admin-table th, .admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  background: rgba(20,35,30,.015);
}

.admin-table tbody tr:hover {
  background: rgba(20,35,30,.01);
}

/* Table Cells & Pills */
.user-nickname-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-frame {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.user-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: var(--mint);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
  box-sizing: border-box;
}

.user-meta-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.user-nickname-text {
  font-weight: 750;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.user-email-text {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  color: var(--muted);
}

.code-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-code-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  cursor: pointer;
  transition: all .15s ease;
}

.copy-code-btn:hover {
  background: var(--mint);
  border-color: #a8d73e;
}

.codia-token-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 750;
  border: 1px solid var(--line);
}

.codia-token-tag.is-configured {
  background: #f0f7ef;
  color: #2b6137;
  border-color: #cfe5cd;
}

.codia-token-tag.is-empty {
  background: transparent;
  color: var(--muted-soft);
  border-style: dashed;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 750;
  border: 1px solid var(--line);
  background: transparent;
}

.status-admin {
  border-color: var(--ink);
  border-left-width: 3px;
  color: var(--ink);
}

.status-user {
  color: var(--muted);
}

.status-available {
  border-color: #a8d73e;
  color: #397244;
  background: #f4fbf1;
}

.status-used {
  border-color: var(--line);
  color: var(--muted-soft);
}

.expiry-date {
  font-size: 12px;
  color: var(--ink);
}

.expiry-date.is-expired {
  color: var(--orange);
  font-weight: 700;
}

.action-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.action-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s ease;
}

.action-btn:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

.action-btn-danger:hover {
  background: #fff3f0;
  border-color: #ff8351;
  color: #b33919;
}

/* Ark UI Pagination Primitives */
.ark-pagination-wrapper {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.ark-pagination-root {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ark-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, monospace;
  cursor: pointer;
  transition: all .15s ease;
  box-sizing: border-box;
}

.ark-pagination-item:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

.ark-pagination-item.is-selected,
.ark-pagination-item[data-selected] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.ark-pagination-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all .15s ease;
}

.ark-pagination-trigger:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--line-strong);
}

.ark-pagination-trigger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ark-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  color: var(--muted-soft);
  font-size: 13px;
}

/* Ark UI Dialog Primitives */
.ark-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 30, 0.48);
  backdrop-filter: blur(4px);
  z-index: 9999;
  animation: ark-fade-in .18s ease-out;
}

.ark-dialog-positioner {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: 3vh 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.ark-dialog-content {
  width: min(520px, calc(100vw - 32px));
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(8,18,13,.28);
  animation: ark-scale-in .18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
}

/* Ark UI 为无样式（headless）组件，关闭态需要自行隐藏，否则会留在页面上 */
.ark-dialog-content[data-state='closed'] {
  display: none;
}

/* 头部固定高度，内容区自适应并内置滚动条，底部操作区固定高度 */
.ark-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  padding: 26px 28px 16px;
}

.ark-dialog-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.ark-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 28px;
  scrollbar-width: thin;
}

.ark-modal-badge {
  display: inline-block;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 750;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: 4px;
}

.ark-dialog-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.01em;
  color: var(--ink);
}

.ark-dialog-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ark-dialog-close-trigger {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color .15s ease;
}

.ark-dialog-close-trigger:hover {
  color: var(--ink);
}

.ark-dialog-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0 28px 18px;
  font-size: 12.5px;
  flex-shrink: 0;
}

.ark-dialog-user-badge .badge-label {
  color: var(--muted);
  font-weight: 700;
}

.ark-dialog-user-badge .badge-value {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 750;
  color: var(--ink);
}

.ark-dialog-user-badge .status-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-weight: 750;
}

.ark-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 20px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--line);
}

/* Ark UI Field Primitives */
.ark-field-root {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

/* 图床额度快照与重置 */
.ark-quota-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -8px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 3px;
  background: #fbfcf9;
}

.ark-quota-meta {
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.ark-quota-meta strong { color: var(--ink); }

.ark-quota-panel .button { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 640px) {
  .ark-quota-panel { flex-direction: column; align-items: stretch; }
}

.ark-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
}

.ark-field-input {
  width: 100%;
  border: 1px solid #cbd6cf;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--white);
  box-sizing: border-box;
  transition: all .15s ease;
}

.ark-field-input:focus {
  outline: 2px solid #557d2d;
  outline-offset: 1px;
  border-color: #557d2d;
}

.ark-field-helper {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 2px;
}

/* Expiry sub-group in Edit User Modal */
.ark-expiry-group {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}

.ark-expiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ark-text-button {
  border: 0;
  background: transparent;
  color: #397244;
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

.ark-text-button:hover {
  color: var(--ink);
}

.ark-expiry-status {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.expiry-active {
  color: #2b6137;
  font-weight: 700;
}

.expiry-expired {
  color: var(--orange);
  font-weight: 700;
}

/* Settings notice box */
.settings-notice-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid #397244;
  border-radius: 3px;
  background: #f7faf7;
  margin: 18px 0;
}

.notice-icon {
  color: #397244;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.notice-content strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.notice-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #3f554a;
}

/* Warning & State Views */
.admin-warning-card {
  max-width: 480px;
  margin: 80px auto;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(20,35,30,.06);
  text-align: center;
}

.warning-badge {
  display: inline-block;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: 12px;
}

.admin-warning-card h1 {
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--ink);
}

.admin-warning-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}

.admin-loading-full, .admin-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.admin-empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: admin-spin .7s linear infinite;
}

/* Animations */
@keyframes admin-spin { to { transform: rotate(360deg); } }
@keyframes ark-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ark-scale-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* Responsive */
@media (max-width: 860px) {
  .admin-app-root { grid-template-columns: 1fr; }
  .admin-sidebar {
    height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  .admin-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav-item { width: auto; }
  .admin-sidebar-footer { display: none; }
  .admin-main-viewport { padding: 24px 20px 48px; }
  .admin-grid { grid-template-columns: 1fr; }
}


.action-icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all .16s ease;
  padding: 0;
  box-sizing: border-box;
}

.action-icon-btn:hover {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(20,35,30,.06);
}

.action-icon-btn-danger:hover {
  background: #fff3f0;
  border-color: #ff8351;
  color: #b33919;
}

.action-icon {
  width: 14px;
  height: 14px;
}

/* Ark UI Tooltip Primitives */
.ark-tooltip-positioner {
  z-index: 20000;
  pointer-events: none;
}

.ark-tooltip-content {
  background: var(--ink);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .02em;
  padding: 5px 9px;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(20,35,30,.22);
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  animation: ark-tooltip-fade .12s ease-out;
}

@keyframes ark-tooltip-fade {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

.badge-user-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.badge-email {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Search Bar & Header Tools */
.admin-card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-card-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 9px;
  width: 13px;
  height: 13px;
  color: var(--muted);
  pointer-events: none;
}

.admin-search-input {
  height: 34px;
  padding: 0 28px 0 29px;
  font-size: 12.5px;
  border: 1px solid #cbd6cf;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  width: 220px;
  box-sizing: border-box;
  transition: all .16s ease;
}

.admin-search-input:focus {
  outline: 2px solid #557d2d;
  outline-offset: 1px;
  border-color: #557d2d;
  width: 260px;
}

.admin-search-clear {
  position: absolute;
  right: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  transition: color .15s ease;
}

.admin-search-clear:hover {
  color: var(--ink);
}

/* 工具栏按钮：与搜索输入框保持同一高度（34px） */
.admin-create-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}

.admin-create-user-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

/* Author Cell with Admin Tag */
.user-author-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.admin-author-tag {
  display: inline-block;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--ink);
  border-radius: 2px;
  padding: 1px 5px;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Remaining Days Pill */
.remaining-days-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, monospace;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
  cursor: default;
}

.remaining-days-pill.is-active {
  color: #2b6137;
  background: #f0f7ef;
  border-color: #cfe5cd;
}

.remaining-days-pill.is-expired {
  color: var(--orange);
  background: #fff4ef;
  border-color: #ffd8c8;
}

/* 用户状态徽标（冻结 / 已删除） */
.user-status-tag-frozen {
  color: var(--orange);
  border-left-color: var(--orange);
}

.user-status-tag-deleted {
  color: #b33919;
  border-left-color: #b33919;
  text-decoration: line-through;
}

/* Ark UI Menu Primitives（用户行「更多」操作菜单） */
.ark-menu-positioner {
  z-index: 20000;
}

.ark-menu-content {
  min-width: 148px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(20, 35, 30, 0.14);
  padding: 5px;
  animation: ark-menu-pop .12s ease-out;
}

.ark-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}

.ark-menu-item:hover,
.ark-menu-item[data-highlighted] {
  background: var(--paper);
}

.ark-menu-item[data-disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.ark-menu-item-danger {
  color: #b33919;
}

.ark-menu-item-danger:hover,
.ark-menu-item-danger[data-highlighted] {
  background: #fff3f0;
}

@keyframes ark-menu-pop {
  from { opacity: 0; transform: translateY(-3px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* StyleX Compiled Admin Rules */
.xp9y95v{padding:22px}
.x16arvoz:not(#\#){border-color:#cbd6cf}
.xwf225k:not(#\#){border-color:var(--x1l4ao2w)}
.x1oqik8e:not(#\#){border-radius:var(--x1mv2yrm)}
.x1y0btm7:not(#\#){border-style:solid}
.xmkeg23:not(#\#){border-width:1px}
.x1af02g3:not(#\#){gap:14px}
.xaobbuh:not(#\#){gap:18px}
.x6s0dn4:not(#\#):not(#\#){align-items:center}
.x1c5tqo3:not(#\#):not(#\#){background-color:#ffffff}
.xhr0nky:not(#\#):not(#\#){color:var(--x1b7czt3)}
.x78zum5:not(#\#):not(#\#){display:flex}
.xrvj5dj:not(#\#):not(#\#){display:grid}
.x1xyhgq5:not(#\#):not(#\#){font-family:var(--xhjbjr3)}
.x1t8wntd:not(#\#):not(#\#){font-weight:750}
.x1lhhq8:not(#\#):not(#\#){grid-template-columns:minmax(320px,1fr) minmax(380px,1.35fr)}
.x1qughib:not(#\#):not(#\#){justify-content:space-between}
.x9pfba7:not(#\#):not(#\#){letter-spacing:.08em}
.xtvhhri:not(#\#):not(#\#){text-transform:uppercase}
.x1s6q92g:not(#\#):not(#\#):not(#\#){border-bottom-color:var(--x1l4ao2w)}
.x1q0q8m5:not(#\#):not(#\#):not(#\#){border-bottom-style:solid}
.xso031l:not(#\#):not(#\#):not(#\#){border-bottom-width:1px}
.x8x9d4c:not(#\#):not(#\#):not(#\#){margin-left:auto}
.xack27t:not(#\#):not(#\#):not(#\#){margin-right:auto}
.xhrpt6u:not(#\#):not(#\#):not(#\#){margin-top:18px}
.xakpnky:not(#\#):not(#\#):not(#\#){max-width:1140px}
.x1a8lsjc:not(#\#):not(#\#):not(#\#){padding-bottom:10px}
.xwxc41k:not(#\#):not(#\#):not(#\#){padding-bottom:24px}
.x161sli9:not(#\#):not(#\#):not(#\#){padding-bottom:56px}
.xf18ygs:not(#\#):not(#\#):not(#\#){padding-left:12px}
.x5tiur9:not(#\#):not(#\#):not(#\#){padding-left:20px}
.xnuq7ks:not(#\#):not(#\#):not(#\#){padding-right:12px}
.x1s7jvk7:not(#\#):not(#\#):not(#\#){padding-right:20px}
.x889kno:not(#\#):not(#\#):not(#\#){padding-top:10px}
.x1miatn0:not(#\#):not(#\#):not(#\#){padding-top:32px}
.xh8yej3:not(#\#):not(#\#):not(#\#){width:100%}
