:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --border: #e3e6ea;
  --text: #1f2329;
  --muted: #8a929e;
  --primary: #2f6bff;
  --primary-weak: #eaf1ff;
  --green: #17b26a;
  --red: #e5484d;
  --amber: #f5a524;
  --code-bg: #0f1729;
  --code-text: #d6e2ff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
#app {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.app-header h1 { font-size: 17px; margin: 0; }
.app-header .sub { color: var(--muted); font-size: 12px; margin-left: 10px; }
.layout { display: flex; min-height: calc(100vh - 55px); align-items: stretch; }
.sidebar {
  width: 280px;
  border-right: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-head {
  flex-shrink: 0;
  margin-bottom: 12px;
  position: sticky;
  top: 55px;
  z-index: 2;
  background: var(--panel);
}
body:has(.publish-banner):not(:has(.content.content--editing)) .sidebar-head { top: calc(55px + 48px); }
.sidebar-list { flex: 1; min-height: 0; }
.content { flex: 1; padding: 12px; overflow: auto; min-height: 0; min-width: 0; }
/* 通道总览：整页一条滚动，不要侧栏/内容区各滚一条 */
.layout:has(.content:not(.content--editing)) .sidebar-list { overflow: visible; }
.layout:has(.content:not(.content--editing)) .content { overflow: visible; }

.btn { border: 1px solid var(--border); background: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { opacity: .92; color: #fff; }
.btn.ghost { background: transparent; border: none; color: var(--muted); }
.btn.danger { color: var(--red); border-color: #f3c4c5; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.warn { border-color: var(--amber); color: #9a6400; background: #fff8ec; }
.btn.warn:hover { border-color: var(--amber); color: #9a6400; }
.pub-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-left: 6px; vertical-align: middle; }

/* 未发布改动横幅（所有页面顶部） */
.publish-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; background: #fff8ec; border-bottom: 1px solid #f2d492;
  position: sticky; top: 55px; z-index: 9;
}
.publish-banner .pb-text { flex: 1; font-size: 13px; color: #7a5300; line-height: 1.7; }
.publish-banner .pb-text b { color: #9a6400; }
.publish-banner .pb-list { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 4px; vertical-align: middle; }
.pb-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 8px; border-radius: 20px; background: #fff; border: 1px solid #e6c37a; color: #7a5300; }
.pb-chip i { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 10px; background: #f0e2c2; color: #8a6400; }
.pb-chip.added i { background: #dff2e7; color: var(--green); }
.pb-chip.modified i { background: #fdeede; color: #c77b12; }
.pb-chip.removed i { background: #fbe9ea; color: var(--red); }
.pb-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin: 0 -2px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #8a6400; font-size: 13px; line-height: 1; cursor: pointer;
}
.pb-chip-x:hover { background: #f3e0b8; color: #5c3d00; }
.pb-chip-x:disabled { opacity: 0.4; cursor: default; }
.channel-conflict-banner { background: #eef4ff; border-bottom-color: #b8cce8; }
.channel-conflict-banner .pb-text { color: #3d5a80; }
.channel-conflict-banner .pb-text b { color: #2c5282; }

.channel-item { padding: 10px 12px; border-radius: 8px; cursor: pointer; margin-bottom: 6px; border: 1px solid transparent; }
.channel-item:hover { background: var(--primary-weak); }
.channel-item.active { background: var(--primary-weak); border-color: #cfe0ff; }
.channel-item .name { font-weight: 600; }
.channel-item .meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 20px; background: #eef1f4; color: #566; }
.tag.node { background: #e7f6ee; color: #17914f; }
.tag.cf { background: #fdeede; color: #c77b12; }
.tag.off { background: #fbe9ea; color: var(--red); }
.tag.t-aa { background: #e8f0fe; color: #1a56db; }
.tag.t-sa { background: #f3e8fd; color: #7c3aed; }
.tag.t-as { background: #fdeede; color: #c77b12; }
.tag.t-ss { background: #e7f6ee; color: #17914f; }
.tag.cat-image { background: #ecfdf3; color: #027a48; }
.tag.cat-video { background: #eff8ff; color: #175cd3; }
.tag.cat-audio { background: #f4f3ff; color: #5925dc; }

/* 通道总览：开启/关闭开关（紧凑，无文字） */
.sw {
  display: inline-flex; align-items: center;
  border: none; background: transparent; padding: 0; vertical-align: middle;
}
.sw:disabled { cursor: wait; }
.sw-track {
  width: 32px; height: 18px; border-radius: 9px; background: #d5dae1;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.sw.on .sw-track { background: var(--green); }
.sw-knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.sw.on .sw-knob { transform: translateX(14px); }
.sw.busy { opacity: .55; }

.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.step { padding: 6px 12px; border-radius: 20px; background: #eef1f4; color: var(--muted); font-size: 12px; }
.step.active { background: var(--primary); color: #fff; }
.step.done { background: #dff2e7; color: var(--green); }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .desc { color: var(--muted); font-size: 12px; margin-bottom: 14px; }

.col-help { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.col-help li { margin: 0; }
.col-help b { color: var(--text, inherit); }
.col-help code { background: rgba(127,127,127,.15); padding: 1px 5px; border-radius: 4px; }
label.sel-all { display: inline-flex; align-items: center; gap: 3px; font-weight: normal; font-size: 11px; color: var(--muted); cursor: pointer; }
label.sel-all input[type=checkbox] { width: auto; margin: 0; }

.cf-help { margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--muted); background: #f7f9fc; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 6px; padding: 7px 10px; }
.cf-help b { color: var(--text); }
.cf-help code { background: rgba(127,127,127,.15); padding: 1px 5px; border-radius: 4px; }
.cf-img-link { display: inline-block; margin-left: 4px; color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* CF 示例图放大浮层：盖在弹窗之上，竖长图可整屏滚动 */
.cf-img-mask { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 200; overflow: auto; padding: 48px 16px; text-align: center; cursor: zoom-out; }
.cf-img-full { max-width: 96%; height: auto; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.5); cursor: default; }
.cf-img-close { position: fixed; top: 16px; right: 20px; z-index: 201; background: #fff; color: #1f2329; border: none; border-radius: 6px; padding: 8px 14px; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* 存储设置分区（OSS / 本地 / R2 分开，避免混淆） */
.store-sec { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-top: 10px; background: #fafbfc; }
.store-sec > h4, .store-sec > h5 { margin: 0 0 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.infra-tip { margin-top: 6px; padding: 8px 10px; border-radius: 6px; font-size: 12px; line-height: 1.5; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; }
.infra-tip code { font-size: 11px; }
.infra-sec { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-top: 12px; background: #fafbfc; }
.infra-sec > h4 { margin: 0 0 10px; font-size: 14px; }
.roll-sec { background: #fff8f8; }
.roll-status { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #334155; }
.roll-phase { margin-top: 2px; color: #9a3412; font-weight: 600; }
.roll-confirm-mask { z-index: 60; }
.roll-ack { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.roll-ack input { margin-top: 3px; }
.roll-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.roll-table th, .roll-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #f1d5d5; }
.roll-table th { color: #64748b; font-weight: 600; }
.roll-table .mono { font-family: ui-monospace, Consolas, monospace; }
.roll-table .is-drain { color: #9a3412; font-weight: 600; }
.roll-table .is-new { color: #166534; font-weight: 600; }
.roll-table .is-miss { color: #94a3b8; }
.roll-table .is-live { color: #1d4ed8; }
.roll-log-wrap { margin-top: 12px; }
.roll-log-label { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.roll-log {
  height: 220px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}
.roll-log-empty { color: #94a3b8; }
.roll-log-line { white-space: pre-wrap; word-break: break-all; }
.roll-log-ts { color: #7dd3fc; margin-right: 8px; }
.store-tag { font-size: 11px; font-weight: normal; padding: 1px 8px; border-radius: 20px; background: #eef1f4; color: #566; }
.store-tag.node { background: #e7f6ee; color: #17914f; }
.store-tag.cf { background: #fdeede; color: #c77b12; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.field .hint { color: var(--muted); font-size: 12px; font-weight: normal; margin-left: 6px; }
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  border-radius: 50%;
  background: #e8eef5;
  color: #5a6a80;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  position: relative;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
}
.field label .help-tip { font-weight: 700; }
.help-tip-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: 300px;
  max-width: min(300px, 72vw);
  padding: 8px 10px;
  background: #1f2329;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  white-space: normal;
  text-align: left;
  pointer-events: none;
}
.help-tip.help-tip--end .help-tip-pop { left: auto; right: 0; }
.help-tip:hover .help-tip-pop,
.help-tip:focus .help-tip-pop { display: block; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tpl-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; cursor: pointer; }
.tpl-card:hover { border-color: var(--primary); }
.tpl-card.selected { border-color: var(--primary); background: var(--primary-weak); }
.tpl-card .t { font-weight: 600; }
.tpl-card .d { color: var(--muted); font-size: 12px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }

.map-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.map-row .arrow { color: var(--primary); }

pre.code { background: var(--code-bg); color: var(--code-text); padding: 14px; border-radius: 8px; overflow: auto; font-size: 12px; line-height: 1.5; max-height: 340px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col .side-title { font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.two-col .down { color: var(--green); }
.two-col .up { color: var(--primary); }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs .tab { padding: 6px 14px; border-radius: 8px 8px 0 0; cursor: pointer; color: var(--muted); }
.tabs .tab.active { background: var(--panel); color: var(--text); font-weight: 600; border: 1px solid var(--border); border-bottom: none; }

.checklist li { margin-bottom: 6px; list-style: none; }
.checklist .ok::before { content: "✓ "; color: var(--green); }
.checklist .no::before { content: "✗ "; color: var(--red); }
.checklist { padding-left: 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1f2329; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 100; }
.toast.toast-below-header { bottom: auto; top: 64px; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }

/* 通道编辑：整页 flex 分区，侧栏与内容区各自滚动，底栏固定底部（单滚动条/列） */
html:has(.content.content--editing),
body:has(.content.content--editing) {
  height: 100%;
  overflow: hidden;
}
body:has(.content.content--editing) #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body:has(.content.content--editing) .app-header {
  flex-shrink: 0;
}
body:has(.content.content--editing) .publish-banner {
  flex-shrink: 0;
  position: static;
  top: auto;
}
body:has(.content.content--editing) .layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
body:has(.content.content--editing) .sidebar {
  min-height: 0;
  overflow: hidden;
}
body:has(.content.content--editing) .sidebar-head {
  position: static;
  top: auto;
}
body:has(.content.content--editing) .sidebar-list {
  overflow-y: auto;
  overflow-x: hidden;
}
.content.content--editing {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
.content.content--editing .channel-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.content.content--editing .channel-editor-steps {
  flex-shrink: 0;
  padding: 10px 0 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.content.content--editing .channel-editor-steps .steps {
  margin-bottom: 0;
}
.content.content--editing .channel-tpl-bar {
  margin-top: 10px;
}
.content.content--editing .channel-tpl-bar .row {
  margin: 0;
}
.content.content--editing .channel-tpl-bar .hint {
  margin-top: 6px;
  line-height: 1.5;
}
.content.content--editing .channel-editor-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.content.content--editing .footer-bar {
  flex-shrink: 0;
  margin-top: 12px;
}
.footer-bar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -4px 16px rgba(15, 23, 41, .08);
}
.footer-bar > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 模板编辑弹窗：内容可滚动，底栏固定 */
.modal.modal-editor {
  width: 940px;
  max-width: 96vw;
}
.modal-editor .modal-body { padding-right: 20px; }
.kv-editor .kv-row { display: flex; gap: 8px; margin-bottom: 6px; }
.kv-editor .kv-row input { flex: 1; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* 模板管理表格：尽量不换行；说明列限宽单行省略 */
.tpl-table th, .tpl-table td { white-space: nowrap; }
.tpl-table td.desc-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tpl-tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tpl-tab {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted);
}
.tpl-tab:hover { border-color: var(--primary); color: var(--primary); }
.tpl-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.modal-mask { position: fixed; inset: 0; background: rgba(15,23,41,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.modal {
  background: var(--panel);
  border-radius: var(--radius);
  width: 760px;
  max-width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
}
.modal-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.modal-head h3 { margin: 0; }
.modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 20px;
}
.modal-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.modal.modal-ratio-table { width: min(1120px, 96vw); }
.modal-ratio-table-body .rt-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--border);
}
.modal.map-help-modal { width: 900px; max-width: 96vw; }

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(400px, 92vw);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,.12);
}
.login-card h1 { margin: 0 0 6px; font-size: 20px; }
.login-card .desc { margin: 0 0 18px; }
.login-card .field { margin-bottom: 12px; }
.login-card .login-error { color: #991b1b; font-size: 13px; margin: 0 0 10px; }
.login-card .login-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover { color: var(--text); }
.password-toggle svg { width: 16px; height: 16px; display: block; }

.suffix-style-panel {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.suffix-style-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .suffix-style-picker { grid-template-columns: 1fr; }
}
.suffix-style-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.suffix-style-card:hover { border-color: #94b8ff; }
.suffix-style-card.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
}
.suffix-style-title { font-weight: 600; margin-bottom: 6px; }
.suffix-style-sample { margin-bottom: 6px; }
.suffix-style-sample code { font-size: 13px; background: #fff; padding: 4px 8px; border-radius: 6px; border: 1px solid #e2e8f0; }

.rt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rt-table th, .rt-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rt-table input { width: 100%; min-width: 64px; box-sizing: border-box; }
.rt-table .col-aspect { width: 72px; }
/* 模型映射：始终/参考图比例列，约一个 16:9 宽度 */
.model-map-table th.col-aspect-col,
.model-map-table td.col-aspect-col {
  width: 76px;
  max-width: 80px;
  padding-left: 4px;
  padding-right: 4px;
  vertical-align: middle;
  text-align: center;
}
.model-map-table th.col-aspect-col {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  white-space: normal;
}
.model-map-table td.col-aspect-col input.col-aspect {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.model-map-table td.col-row-actions {
  white-space: nowrap;
  vertical-align: middle;
}
input.col-aspect {
  width: 72px;
  min-width: 72px;
  max-width: 80px;
  box-sizing: border-box;
}
.rt-table .col-suffix { min-width: 80px; }
.rt-table .rt-preview { font-size: 12px; line-height: 1.5; min-width: 120px; }
.rt-table .rt-preview code { font-size: 11px; white-space: nowrap; }
.map-help-modal h4 { margin: 16px 0 8px; font-size: 14px; }
.map-help-modal .map-help-table td code { font-size: 12px; }

.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th, .kv-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-weight: 400; }
.kv-table td { word-break: break-all; }

.tpl-sec { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.tpl-sec h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.kv-row { display: flex; gap: 8px; margin-bottom: 6px; }
.kv-row input { flex: 1; }
.cheat { margin-top: 8px; padding: 8px 10px; background: #f3f7ff; border: 1px solid #d9e6ff; border-radius: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.cheat code { background: #fff; padding: 1px 5px; border-radius: 4px; }

/* 错误翻译页：表格 + 翻页 */
.ge-table { width: 100%; border-collapse: collapse; }
.ge-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ge-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ge-table td input { width: 100%; }
.ge-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }

/* 接口测试页：全宽左右分栏；一屏内排完，页面不滚，请求/响应框内部可滚 */
html:has(.content.api-test-page:not([style*="display: none"])),
body:has(.content.api-test-page:not([style*="display: none"])) {
  height: 100%;
  overflow: hidden;
}
body:has(.content.api-test-page:not([style*="display: none"])) #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body:has(.content.api-test-page:not([style*="display: none"])) .app-header,
body:has(.content.api-test-page:not([style*="display: none"])) .publish-banner {
  flex-shrink: 0;
}
.content.api-test-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.api-test-page .api-test-shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(520px, 40%) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
.api-test-page .api-test-side {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.api-test-page .api-test-side .card {
  margin-bottom: 0;
  box-sizing: border-box;
}
.api-test-page .api-test-side .field { margin-bottom: 10px; }
.api-test-page .api-test-channel-select { height: 44px; padding-top: 10px; padding-bottom: 10px; }
.api-test-page .api-test-side .row { margin-top: 0; }
.api-test-page .api-test-side .card > .row { margin-top: 10px; }
.api-test-page .api-test-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.api-test-page .api-test-main > .card { margin-bottom: 0; }
.api-test-page .api-test-io {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.api-test-page .api-test-poll { flex-shrink: 0; }
.api-test-page .api-test-poll .field { margin-bottom: 0; }
.api-test-page .api-test-io .api-test-io-grid {
  flex: 1 1 auto;
  min-height: 0;
}
.api-test-page .api-test-target-wrap { display: flex; gap: 8px; align-items: center; }
.api-test-page .api-test-target-wrap input { flex: 1; }
.api-test-page .api-test-full-url {
  display: block;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
  cursor: pointer;
}
.api-test-page .api-test-full-url:hover { color: var(--primary); }
.api-test-page .api-test-path-params { display: flex; gap: 8px; align-items: center; }
.api-test-page .api-test-path-key {
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 8px;
  background: var(--chip, #f3f4f6);
  border-radius: 4px;
  color: var(--muted);
}
.api-test-page .api-test-path-params input { flex: 1; }
.api-test-page .api-test-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 5px;
}
.api-test-page .api-test-field-head label { margin-bottom: 0; flex-shrink: 0; }
.api-test-page .api-test-eps { display: flex; flex-wrap: wrap; gap: 8px; }
.api-test-page .api-test-tools { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.api-test-page .api-test-tool-label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px;
}
.api-test-page .api-test-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.api-test-page .chip-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; line-height: 1.4;
  white-space: nowrap;
}
.api-test-page .chip-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.api-test-page .chip-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.api-test-page .api-test-send-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.api-test-page .api-test-send-row .api-test-send { margin-top: 0; flex: 1; }
.api-test-page .api-test-stream-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.api-test-page .api-test-stream-wrap.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.api-test-page .api-test-stream-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.api-test-page .chip-btn.active {
  background: var(--primary-weak); border-color: var(--primary); color: #1d4ed8;
}
.api-test-page .api-test-meta {
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.api-test-page .api-test-meta.running { color: var(--primary); font-weight: 600; }
.api-test-page .api-test-io-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px 14px;
  align-items: stretch;
}
@media (max-width: 1280px) {
  .api-test-page .api-test-shell {
    grid-template-columns: minmax(420px, 38%) minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  html:has(.content.api-test-page:not([style*="display: none"])),
  body:has(.content.api-test-page:not([style*="display: none"])) {
    height: auto;
    overflow: auto;
  }
  body:has(.content.api-test-page:not([style*="display: none"])) #app {
    display: block;
    height: auto;
    overflow: visible;
  }
  .content.api-test-page {
    overflow: visible;
  }
  .api-test-page .api-test-shell {
    grid-template-columns: 1fr;
    overflow: visible;
    height: auto;
  }
  .api-test-page .api-test-side,
  .api-test-page .api-test-main,
  .api-test-page .api-test-io {
    overflow: visible;
  }
  .api-test-page .api-test-io-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}
.api-test-page .api-test-io-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  margin: 0;
}
.api-test-page .api-test-io-head .example-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 32px;
  margin: 0;
  flex-shrink: 0;
}
.api-test-page .api-test-io-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
}
.api-test-page .api-test-http-status {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.api-test-page .api-test-http-status.ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.api-test-page .api-test-http-status.err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.api-test-page .api-test-body,
.api-test-page .api-test-response {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 0;
  height: auto;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  max-height: none;
  overflow: auto;
}
.api-test-page .api-test-io-req {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.api-test-page .api-test-io-res {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.api-test-page .api-test-io-req .api-test-body,
.api-test-page .api-test-io-res .api-test-response {
  flex: 1 1 auto;
}
.api-test-page .api-test-send {
  align-self: flex-start;
}
.api-test-page .api-test-response {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.api-test-page .api-test-response.wait { opacity: 0.85; }
.api-test-page .api-test-response.ok { border: 1px solid #a7f3d0; }
.api-test-page .api-test-response.err { border: 1px solid #fecaca; }
.api-test-page .api-test-media-row {
  margin-top: 12px;
  flex-shrink: 0;
  max-height: 180px;
  overflow: auto;
}
.api-test-page .api-test-media-box {
  margin-bottom: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfc;
}
.api-test-page .api-test-media-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.api-test-page .api-test-image-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.api-test-page .api-test-image-item {
  display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff;
}
.api-test-page .api-test-image-item img {
  display: block; max-width: 160px; max-height: 160px; object-fit: contain;
}
.api-test-page .api-test-video-thumb {
  display: block; max-width: 320px; max-height: 180px; background: #000; border-radius: 8px;
}
.api-test-page .api-test-video-actions {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.api-test-media-lightbox {
  z-index: 80;
  background: rgba(15, 23, 41, 0.75);
}
.api-test-media-lightbox .api-test-video-full {
  max-width: 90vw;
  max-height: 85vh;
  background: #000;
  border-radius: 8px;
}

/* CF Worker 代码编辑：单 textarea（性能）+ 测量换行高度同步行号 */
.cf-worker-editor {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #0b1020;
  min-height: 280px;
  height: 100%;
  box-sizing: border-box;
}
.cf-worker-gutter,
.cf-worker-code {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 12px;
  line-height: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  box-sizing: border-box;
  tab-size: 2;
  -moz-tab-size: 2;
  height: 100%;
}
.cf-worker-gutter {
  flex: 0 0 auto;
  min-width: 3.5em;
  overflow: hidden;
  background: #080c18;
  border-right: 1px solid #1e2638;
  user-select: none;
}
.cf-worker-gutter .cf-worker-ln {
  padding: 0 10px 0 8px;
  text-align: right;
  color: #6e7681;
  box-sizing: border-box;
  min-height: 18px;
  line-height: 18px;
}
.cf-worker-code {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  resize: none;
  padding-left: 12px;
  padding-right: 12px;
  background: #0b1020;
  color: #c9d1e4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
  overflow-y: auto;
  caret-color: #e6edf3;
}
.cf-worker-code:focus { outline: none; }
.cf-worker-measure {
  position: absolute;
  left: -99999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
.cf-worker-measure-line {
  min-height: 18px;
  line-height: 18px;
  font-size: 12px;
  box-sizing: border-box;
}

/* CF 设置弹窗：顶栏+Tab 固定，仅下方内容区滚动，切换 Tab 顶栏不跳动 */
.cf-settings-mask {
  align-items: flex-start;
  padding-top: 4vh;
}
.modal.cf-settings-modal {
  width: min(960px, 94vw);
  height: min(92vh, 860px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.modal-head.cf-settings-header {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.cf-settings-header {
  flex-shrink: 0;
}
.cf-settings-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cf-settings-title h3 { margin: 0; }
.cf-settings-tabs { margin-bottom: 0; }
.cf-billing {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f9fc;
}
.cf-billing-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.cf-billing-refresh { padding: 2px 8px; font-size: 12px; font-weight: 400; }
.cf-billing-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
}
.cf-billing-row span { color: var(--muted); min-width: 4.5em; }
.cf-billing-renew { margin-top: 6px; font-size: 13px; color: #92400e; }
.cf-billing-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
}
.cf-billing-row span { color: var(--muted); min-width: 4.5em; }
.cf-billing-msg { margin-top: 8px; font-size: 12px; color: #991b1b; }
.cf-billing-msg.warn { color: #92400e; }
.modal-body.cf-settings-body {
  display: flex;
  flex-direction: column;
}
.cf-settings-worker {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cf-worker-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}
.cf-worker-side {
  width: 188px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding-right: 10px;
  margin-right: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cf-worker-side-item {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
}
.cf-worker-side-item:hover { background: var(--primary-weak); }
.cf-worker-side-item.active { background: var(--primary-weak); border-color: #cfe0ff; }
.cf-worker-side-item .name { font-weight: 600; font-size: 13px; word-break: break-all; }
.cf-worker-side-item .meta { color: var(--muted); font-size: 11px; margin-top: 3px; word-break: break-all; }
.cf-worker-add {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 12px;
}
.cf-worker-add label { display: block; margin: 6px 0 3px; color: var(--muted); }
.cf-worker-add input, .cf-worker-add select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.cf-worker-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cf-bind-wrap { flex-shrink: 0; margin-bottom: 8px; }
.cf-bind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cf-bind-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cf-bind-table th, .cf-bind-table td { padding: 4px 4px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cf-bind-table th { color: var(--muted); font-weight: 500; }
.cf-bind-table input[type=text], .cf-bind-table select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.cf-bind-opt label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); font-size: 12px; }
.cf-settings-modal .cf-worker-editor {
  flex: 1 1 auto;
  min-height: 280px;
  height: auto;
  max-height: none;
}

/* 同步日志：和接口测试一样占满一屏，页面不滚，表格/详情内部滚 */
html:has(.content.request-logs-page:not([style*="display: none"])),
body:has(.content.request-logs-page:not([style*="display: none"])) {
  height: 100%;
  overflow: hidden;
}
body:has(.content.request-logs-page:not([style*="display: none"])) #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
body:has(.content.request-logs-page:not([style*="display: none"])) .app-header,
body:has(.content.request-logs-page:not([style*="display: none"])) .publish-banner {
  flex-shrink: 0;
}
.content.request-logs-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
  gap: 12px;
}
.request-logs-page .rl-toolbar-card {
  flex-shrink: 0;
  margin-bottom: 0;
}
.rl-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rl-retain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rl-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.rl-filters select, .rl-filters input[type=text] {
  width: auto;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
}
.rl-filters .rl-filter-channel { width: 200px; max-width: 100%; }
.rl-filters .rl-filter-path { width: 220px; max-width: 100%; }
.rl-filters .rl-filter-status { width: 110px; }
.rl-filters .rl-filter-model { width: 140px; }
.rl-filters .rl-filter-token { width: 180px; max-width: 100%; }
.rl-filters .rl-filter-q { flex: 1 1 220px; min-width: 160px; width: auto; }
.rl-filters .btn { flex: 0 0 auto; white-space: nowrap; }
.request-logs-page .rl-split {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}
.request-logs-page .rl-list-card {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
}
.request-logs-page .rl-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.request-logs-page .rl-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--border);
}
.request-logs-page .rl-list-card .ge-pager {
  flex-shrink: 0;
  margin-top: 8px;
}
.request-logs-page .rl-detail-card {
  width: 440px;
  flex-shrink: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0;
}
.request-logs-page .rl-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.request-logs-page .rl-detail-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 10px;
}
.ch-table tbody tr:hover,
.rl-table tbody tr:hover { background: #e6ebf2; }
.rl-table tbody tr { cursor: pointer; }
.rl-table tbody tr.on { background: var(--primary-weak); }
.rl-table tbody tr.on:hover { background: #d4e3ff; }
.rl-table .mono, .rl-detail-card .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.rl-task-id {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  vertical-align: bottom;
}
.rl-task-id:hover { text-decoration: underline; }
.rl-detail-card .rl-task-id { max-width: 100%; white-space: normal; word-break: break-all; }
.rl-summary { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); }
.rl-preview { margin-top: 10px; }
.rl-preview img, .rl-preview video { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); background: #111; }
.rl-ref-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rl-ref-item {
  display: block;
  width: 88px;
  height: 88px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.rl-ref-item img, .rl-ref-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rl-submit-list {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.rl-submit-list a { word-break: break-all; }
.request-logs-page .rl-json {
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.rl-pager { gap: 10px; flex-wrap: wrap; }
.rl-pager-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rl-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}
.rl-page-btn.on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}
.rl-page-btn:disabled { opacity: 0.5; cursor: default; }
.rl-page-ellipsis {
  width: 52px;
  height: 32px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}
.rl-page-size { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.rl-page-size select {
  width: 72px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.rl-page-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--muted); font-size: 12px; }
.rl-page-jump input { width: 64px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; }
@media (max-width: 960px) {
  .request-logs-page .rl-split { flex-direction: column; }
  .request-logs-page .rl-detail-card { width: 100%; max-height: 42%; }
}
