* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --sidebar: #111827;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 8px 24px rgba(16,24,40,.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ---------- Auth page ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
}
.auth-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  color: #fff;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-hero::before, .auth-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
}
.auth-hero::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth-hero::after { width: 360px; height: 360px; left: -120px; bottom: -140px; }
.auth-hero > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; margin-bottom: 56px; }
.auth-logo .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: #fff;
  display: grid; place-items: center; font-size: 20px;
}
.auth-logo .mark img, .sidebar .brand .mark img {
  width: 100%; height: 100%; object-fit: contain; border-radius: inherit;
}
.auth-hero h1 { font-size: 40px; line-height: 1.25; font-weight: 750; letter-spacing: -.5px; }
.auth-hero p { margin-top: 20px; font-size: 16px; opacity: .88; max-width: 440px; line-height: 1.8; }
.auth-features { margin-top: 48px; display: grid; gap: 16px; }
.auth-feature { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; opacity: .95; }
.auth-feature .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; font-size: 12px; }

.auth-panel { display: grid; place-items: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 28px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 32px; }
.auth-tabs { display: flex; gap: 8px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 600; }
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 9px; outline: none; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.field textarea { resize: vertical; }
/* checkbox / radio 不应被 .field input 的 width:100% + padding 撑开 */
.field input[type=checkbox], .field input[type=radio],
label input[type=checkbox], label input[type=radio] {
  width: auto; padding: 0; margin: 0 6px 0 0; vertical-align: middle;
  border: 0; border-radius: 0; box-shadow: none; accent-color: var(--primary); cursor: pointer;
}
.field label.inline-check {
  display: inline-flex; align-items: center; margin-bottom: 0; font-weight: 600;
}
label.pill { display: inline-flex; align-items: center; gap: 0; margin: 0; font-weight: 500; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; border-radius: 9px; padding: 10px 16px; cursor: pointer;
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; transition: transform .12s, box-shadow .12s, background .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(99,102,241,.3); }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-ghost:hover { background: #e9ecf5; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; padding: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 238px; flex: none; background: var(--sidebar); color: #d1d5db;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
  padding: 22px 22px; display: flex; align-items: center; gap: 11px;
  color: #fff; font-size: 17px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar .brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; font-size: 18px;
}
.nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; padding: 12px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 9px; border: 0; background: transparent;
  color: #9ca3af; cursor: pointer; text-align: left; font-size: 14px; margin-bottom: 3px;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.nav-item .icon { width: 18px; text-align: center; font-size: 15px; }
.sidebar-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-foot .logout-btn {
  width: 100%; justify-content: flex-start; padding: 13px 16px;
  font-size: 14px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #e5e7eb;
  border: 1px solid rgba(255,255,255,.1);
}
.sidebar-foot .logout-btn:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.sidebar-foot .logout-icon { font-size: 17px; line-height: 1; }

.main { flex: 1; min-width: 0; }
.topbar {
  height: 66px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 10;
}
.topbar h2 { font-size: 17px; }
.topbar .who { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary-dark); display: grid; place-items: center; font-weight: 700;
}
.content { padding: 26px 28px 48px; max-width: 1400px; margin: 0 auto; }

/* ---------- Cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 760px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .auth-wrap { grid-template-columns: 1fr; } .auth-hero { display: none; } }

.stat { padding: 20px 22px; }
.stat .label { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
.stat .value { font-size: 30px; font-weight: 750; margin-top: 8px; letter-spacing: -.5px; }
.stat .foot { color: var(--muted); font-size: 12px; margin-top: 4px; }
.stat .badge { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); }
.accent-green .value { color: var(--success); }
.accent-purple .value { color: #7c3aed; }

.banner {
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
  background: linear-gradient(120deg, #4f46e5, #7c3aed); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.banner h3 { font-size: 18px; margin-bottom: 6px; }
.banner p { opacity: .85; font-size: 13px; white-space: nowrap; }
.banner code { background: rgba(255,255,255,.16); padding: 4px 9px; border-radius: 6px; font-size: 12px; }
.banner-text { flex: 0 1 auto; min-width: 0; }
.banner-key { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
.banner-key .copy-row { width: auto; max-width: 100%; justify-content: flex-end; }
.banner-key .copy-row code { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .banner { flex-wrap: wrap; }
  .banner-key { width: 100%; justify-content: flex-end; }
  .banner p { white-space: normal; }
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--muted); font-weight: 600; background: #fafbfe; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
td .strong { font-weight: 600; }
td .muted { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.api-table { min-width: 720px; }
.api-table td > .tag { white-space: nowrap; }
.cron-table { min-width: 940px; }
.cron-table .cron-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.page-table { min-width: 1020px; }
.page-table .page-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.page-table td > .tag { white-space: nowrap; }
.page-table a.mono { word-break: break-all; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-gray { background: #f3f4f6; color: #4b5563; }
.tag-yellow { background: #fef3c7; color: #92400e; }

.empty { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty .icon { font-size: 36px; opacity: .35; display: block; margin-bottom: 12px; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50;
  display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px;
  overflow-y: auto;
}
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 760px; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.modal.small { max-width: 440px; }
.modal.wide { max-width: min(1180px, calc(100vw - 48px)); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.x { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs button {
  border: 0; background: transparent; padding: 10px 14px; cursor: pointer;
  color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

.code-editor {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px; line-height: 1.6; min-height: 260px; tab-size: 4;
  background: #111827; color: #e5e7eb; border: 1px solid #374151;
}
.code-editor:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.trial-raw summary { user-select: none; }
.trial-raw summary:hover { color: var(--primary); }
.trial-raw .field { margin-bottom: 0; }
.code-hint { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.code-hint code { background: #eef2ff; color: var(--primary-dark); padding: 1px 5px; border-radius: 4px; }
.loc-explain { margin-top: 10px; padding: 10px 12px; background: #fff; border: 1px dashed var(--border); border-radius: 8px; color: var(--text); }
.loc-explain b { color: var(--primary-dark); }

.grid > * { min-width: 0; }
.modal-body { overflow-x: hidden; }
code { overflow-wrap: anywhere; }
.result-box { background: #0f172a; color: #e2e8f0; border-radius: 9px; padding: 15px; font-family: Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; max-height: 320px; overflow: auto; margin-top: 12px; }

/* ---------- Misc ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 100; display: grid; gap: 10px; }
.toast {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--success);
  border-radius: 9px; padding: 12px 16px; box-shadow: var(--shadow); min-width: 240px;
  animation: slideIn .2s ease;
}
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.copy-row { display: flex; gap: 8px; align-items: center; min-width: 0; width: 100%; }
.copy-row code, .copy-row input { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.copy-row input { font-family: Consolas, monospace; font-size: 12px; background: #fafbfe; }
.doc-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.doc-step:last-child { border-bottom: 0; }
.doc-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 12px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--bg); font-size: 12px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.row { display: flex; gap: 14px; }
.row > * { flex: 1; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* 参数映射表：后台配置 + 用户文档共用 */
.param-table { font-size: 12px; }
.param-table th, .param-table td { padding: 8px 10px; font-size: 12px; }
.param-table input, .param-table select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-family: inherit; background: #fff; }
.param-table input[type=checkbox] { width: auto; padding: 0; margin: 0; border: 0; box-shadow: none; accent-color: var(--primary); cursor: pointer; }
.param-table input[readonly] { background: #fafbfe; color: var(--muted); }
.param-table td:last-child, .param-table th:last-child { text-align: center; }
.param-table code { background: var(--bg); padding: 2px 6px; border-radius: 5px; font-size: 11px; }

/* 管理端接口分组与拖动排序 */
.api-group { border-top: 1px solid var(--border); }
.api-group:first-of-type { border-top: 0; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: #fafbfe; }
.group-title { font-weight: 600; font-size: 13px; color: var(--primary-dark); }
.drag-handle { cursor: grab; user-select: none; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: -2px; }
.drag-handle:active { cursor: grabbing; }
.api-row.dragging { opacity: .4; }
.api-row.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; background: #f5f7ff; }

/* 用户端接口文档（弹窗内） */
.doc-line { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-size: 13px; line-height: 1.6; min-width: 0; }
.doc-line > b { flex: 0 0 auto; color: var(--text); }
.doc-value { min-width: 0; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; word-break: break-all; }
.doc-value code { background: var(--bg); padding: 3px 7px; border-radius: 5px; overflow-wrap: anywhere; word-break: break-all; }
.doc-section-title { margin: 16px 0 4px; font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.doc-param-table { margin: 6px 0 4px; }
.doc-param-table td:last-child, .doc-param-table th:last-child { text-align: left; }
.doc-param-table td { vertical-align: top; }

/* 横向分类筛选（接口管理） */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.filter-tab { padding: 7px 14px; border: 1px solid var(--border); border-radius: 20px; background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.filter-tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.tab-count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--bg); color: var(--muted); font-size: 11px; line-height: 18px; text-align: center; }
.filter-tab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }
.filter-tab.drag-over { border-color: var(--primary); border-style: dashed; background: #eef2ff; color: var(--primary-dark); font-weight: 600; }

/* 用户端可用接口：视图切换 */
.api-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.view-btn { padding: 7px 13px; border: 0; background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; transition: all .15s; }
.view-btn + .view-btn { border-left: 1px solid var(--border); }
.view-btn:hover { color: var(--primary-dark); }
.view-btn.active { background: var(--primary); color: #fff; font-weight: 600; }
.api-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.api-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: #fff; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; min-width: 0; }
.api-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.api-card-top { display: flex; align-items: center; justify-content: space-between; }
.api-card-icon { font-size: 22px; }
.api-card-name { font-size: 15px; font-weight: 600; margin: 12px 0 6px; }
.api-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; min-height: 36px; }
.api-card-foot { margin-top: 12px; font-size: 12px; color: var(--primary-dark); font-weight: 600; }

/* 弹窗内调用示例选项卡 */
.example-tabs { margin: 8px 0 12px; }
.example-panel { min-width: 0; }

/* 云数据管理 */
.search-input { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; font-family: inherit; background: #fff; min-width: 150px; }
.search-input:focus { outline: none; border-color: var(--primary); }
.cloud-value { display: inline-block; max-width: 100%; color: var(--text); word-break: break-all; vertical-align: top; }
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 22px 4px; }
.pager .muted { margin-left: auto; font-size: 12px; }
.pager .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* 站点图标上传 */
.divider { height: 1px; background: var(--border); margin: 22px 0 18px; }
.favicon-row { display: flex; align-items: flex-start; gap: 16px; margin-top: 10px; }
.favicon-preview { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: #f7f8fa; padding: 6px; box-sizing: border-box; }
.favicon-controls { flex: 1; min-width: 0; }
.favicon-controls input[type=file] { width: 100%; font-size: 12px; padding: 6px 0; box-sizing: border-box; }
.favicon-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 站点公告 */
.notice-bar {
  padding: 11px 14px; border-radius: 9px; font-size: 13px; line-height: 1.6;
  background: #fff7e6; border: 1px solid #ffd591; color: #ad6800;
  overflow-wrap: anywhere; word-break: break-word;
}
.auth-card .notice-bar { margin-bottom: 20px; }
.page-notice { margin-bottom: 16px; }

/* 接口授权账号 */
.auth-users-box { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft, #fafbfc); max-height: 168px; overflow-y: auto; }
.auth-users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.auth-user-item { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; padding: 3px 0; }
.auth-user-item input[type=checkbox] { width: 15px; height: 15px; flex: 0 0 15px; margin: 0; cursor: pointer; }
.auth-user-item span { overflow-wrap: anywhere; }
.auth-section-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 8px 0 6px; }
.auth-section-title:first-child { margin-top: 0; }
.auth-user-item.auth-fixed { opacity: .75; cursor: default; }
.auth-user-item.auth-fixed input { cursor: default; }
.auth-users-box { max-height: 260px; }

/* 授权账号搜索选人 */
.auth-user-search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.auth-user-search { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.auth-user-search:focus { outline: none; border-color: var(--accent, #4f7cff); }
.auth-selected-count { font-size: 12px; white-space: nowrap; }

/* 响应说明：粘贴示例 → 解析字段表 */
.respdoc-field #resp-fields-box { margin-top: 4px; }
.respdoc-table td:last-child, .respdoc-table th:last-child { text-align: left; }
.respdoc-table .resp-sample { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.respdoc-table .resp-meaning { min-width: 200px; }
