:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --sidebar-bg: #ffffff;
  --input-bg: #ffffff;
  --surface-soft: #fbfcfd;
  --surface-muted: #f1f3f5;
  --hover: #f4f6f9;
  --ink: #1b1f26;
  --ink-soft: #374151;
  --muted: #6b7280;
  --placeholder: #98a2b3;
  --nav-ink-soft: #5b6472;
  --icon-muted: #9aa3af;
  --line: #e5e7eb;
  --line-soft: #eef0f3;
  --line-strong: #cfd4dc;
  --brand: #2f6bff;
  --brand-dark: #1f4fd8;
  --link: #2f6bff;
  --on-brand: #ffffff;
  --brand-soft: #eef4ff;
  --brand-line: #bfd7ff;
  --focus-ring: rgba(47, 107, 255, .12);
  --danger: #d92d20;
  --danger-line: #f5c2be;
  --danger-soft-bg: #fef3f2;
  --danger-soft-line: #fbd9d5;
  --danger-soft-ink: #912018;
  --warn: #b45309;
  --warn-bg: #fffaeb;
  --warn-line: #fde9b8;
  --warn-strong-ink: #93370d;
  --ok: #067647;
  --ok-bg: #f4fbf7;
  --ok-line: #d9eadf;
  --ok-ink: #3f5a4b;
  --ok-strong-bg: #ecfdf3;
  --ok-strong-line: #c6f0d9;
  --ok-strong-ink: #05603a;
  --chip-bg: #eef4ea;
  --chip-ink: #3f6212;
  --neutral-chip-bg: #f3f4f6;
  --neutral-chip-ink: #4b5563;
  --notice-bg: #f2f9f4;
  --notice-line: #d9ecdf;
  --notice-ink: #1f5136;
  --notice-ic: #1a7f4b;
  --avatar-bg: #eef7f0;
  --avatar-ink: #1a7f4b;
  --hint-bg: #f7f9fc;
  --hint-line: #eaeef5;
  --hint-ink: #4b5563;
  --auth-glow: #e8efff;
  --modal-mask: rgba(16, 24, 40, .5);
  --toast-bg: #141922;
  --toast-ink: #ffffff;
  --toast-err: #7f1d1d;
  --theme-active-bg: #ffffff;
  --shadow-card: 0 12px 40px rgba(16, 24, 40, .08);
  --shadow-modal: 0 20px 60px rgba(16, 24, 40, .25);
  --shadow-toast: 0 8px 24px rgba(0, 0, 0, .2);
  --shadow-pill: 0 1px 2px rgba(16, 24, 40, .08);
  --usage-from: #4d84ff;
  --usage-to: #2f6bff;
  --nav: #141922;
  --nav-ink: #e6e9ef;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
}

/* 暗色参考 GitHub Primer dark / Linear 的分层表面 / Vercel 的低对比边框：
   深灰蓝底、面板略亮、边框可见但不抢内容，主色只保留在操作和焦点上。 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #161b22;
  --sidebar-bg: #0d1117;
  --input-bg: #0d1117;
  --surface-soft: #1b222c;
  --surface-muted: #21262d;
  --hover: #1f2630;
  --ink: #e6edf3;
  --ink-soft: #c9d1d9;
  --muted: #8b949e;
  --placeholder: #6e7681;
  --nav-ink-soft: #a5b1c2;
  --icon-muted: #7d8590;
  --line: #30363d;
  --line-soft: #262c36;
  --line-strong: #484f58;
  --brand: #2f6bff;
  --brand-dark: #2456d8;
  --link: #79b8ff;
  --on-brand: #ffffff;
  --brand-soft: rgba(56, 139, 253, .16);
  --brand-line: rgba(56, 139, 253, .45);
  --focus-ring: rgba(56, 139, 253, .3);
  --danger: #ff7b72;
  --danger-line: #5c2b29;
  --danger-soft-bg: #2d1418;
  --danger-soft-line: #5c2b29;
  --danger-soft-ink: #ffa198;
  --warn: #d29922;
  --warn-bg: #2a210d;
  --warn-line: #4d3b0f;
  --warn-strong-ink: #e3b341;
  --ok: #56d364;
  --ok-bg: #12261e;
  --ok-line: #1f5136;
  --ok-ink: #7ee2a8;
  --ok-strong-bg: #12261e;
  --ok-strong-line: #1f5136;
  --ok-strong-ink: #7ee2a8;
  --chip-bg: #1b2a1f;
  --chip-ink: #7ee787;
  --neutral-chip-bg: #21262d;
  --neutral-chip-ink: #a5b1c2;
  --notice-bg: #12261e;
  --notice-line: #1f5136;
  --notice-ink: #7ee2a8;
  --notice-ic: #56d364;
  --avatar-bg: #12261e;
  --avatar-ink: #7ee2a8;
  --hint-bg: #161b22;
  --hint-line: #30363d;
  --hint-ink: #a5b1c2;
  --auth-glow: #13233f;
  --modal-mask: rgba(1, 4, 9, .78);
  --toast-bg: #21262d;
  --toast-ink: #e6edf3;
  --toast-err: #5c1f1f;
  --theme-active-bg: #2d333b;
  --shadow-card: 0 16px 48px rgba(0, 0, 0, .45);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, .55);
  --shadow-toast: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-pill: 0 1px 3px rgba(0, 0, 0, .4);
  --usage-from: #79b8ff;
  --usage-to: #3b7cff;
}

html { background: var(--bg); }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

body, .sidebar, .topbar, .panel, .card, .modal, .btn, .field input, .field select, .field textarea, .theme-toggle, .theme-toggle button {
  transition: background-color .16s ease, border-color .16s ease;
}
@media (prefers-reduced-motion: reduce) {
  body, .sidebar, .topbar, .panel, .card, .modal, .btn, .field input, .field select, .field textarea, .theme-toggle, .theme-toggle button { transition: none; }
}

input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }

button, input, select, textarea { font: inherit; color: inherit; }
select { background-color: var(--input-bg); color: var(--ink); }

a { color: var(--link); text-decoration: none; }

/* ---------- 登录 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 20% 0%, var(--auth-glow) 0%, var(--bg) 55%);
  padding: 24px;
}
.auth-theme { position: fixed; top: 20px; right: 22px; }
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.auth-card h1 { font-size: 20px; margin: 0 0 4px; }
.auth-card p.hint { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--input-bg); cursor: pointer;
}
.auth-tabs button.on { border-color: var(--brand); color: var(--link); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--input-bg); color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--line-strong); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--danger); border-color: var(--danger-line); }
.btn.sm { padding: 5px 9px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; justify-content: center; padding: 10px; }

/* ---------- 骨架 ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); color: var(--ink); border-right: 1px solid var(--line);
  padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { font-weight: 700; font-size: 15px; padding: 8px 10px 14px; letter-spacing: .3px; color: var(--ink); }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group { display: flex; flex-direction: column; }
.nav-head {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; color: var(--ink-soft); font-weight: 600; font-size: 13px;
}
.nav-head:hover { background: var(--hover); }
.nav-head .chev { margin-left: auto; font-size: 11px; color: var(--icon-muted); font-weight: 400; }
.nav-sub { display: none; flex-direction: column; gap: 1px; margin: 0 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line-soft); }
.nav-group.open .nav-sub { display: flex; }
.nav-item {
  padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--nav-ink-soft); display: flex; align-items: center; gap: 9px;
  font-size: 13px; line-height: 1.3;
}
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.on { background: var(--brand-soft); color: var(--link); font-weight: 600; }
.nav-item.flat { margin-top: 2px; }
.nav-item .ic { color: var(--icon-muted); }
.nav-item.on .ic { color: var(--link); }
.ic { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-head .ic { width: 17px; height: 17px; flex-basis: 17px; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px 10px 6px; line-height: 1.8; border-top: 1px solid var(--line); }

.main { min-width: 0; }
.topbar {
  height: 58px; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 5;
}
.topbar h2 { font-size: 18px; font-weight: 650; letter-spacing: -.2px; margin: 0; }
.topbar .who { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 12px; }

/* 日/夜主题切换：参考 GitHub 的紧凑分段控件，只切换 tokens，不改页面结构 */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-muted);
}
.theme-toggle button {
  width: 30px; height: 24px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-pressed="true"] {
  background: var(--theme-active-bg); color: var(--ink); box-shadow: var(--shadow-pill);
}
.theme-toggle .ic { width: 14px; height: 14px; }

.content { padding: 22px; }

/* ---------- 卡片与表格 ---------- */
.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.card .s { color: var(--muted); font-size: 12px; margin-top: 4px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-soft { background: var(--surface-soft); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-body { padding: 16px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-soft); }
tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; border: 1px solid transparent; white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-strong-bg); border-color: var(--ok-strong-line); }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.badge.err { color: var(--danger); background: var(--danger-soft-bg); border-color: var(--danger-soft-line); }
.badge.mute { color: var(--muted); background: var(--neutral-chip-bg); border-color: var(--line); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.toolbar input[type="search"] { min-width: 220px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }

.pager { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: var(--modal-mask); display: grid; place-items: center; z-index: 40; padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 640px; max-height: 88vh; overflow: auto;
  padding: 22px; box-shadow: var(--shadow-modal);
}
.modal h3 { margin: 0 0 16px; font-size: 16px; }
.modal .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.checkbox-list { display: grid; gap: 8px; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.checkbox-list label { display: flex; gap: 8px; align-items: center; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; background: var(--toast-bg); color: var(--toast-ink); padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 13px; z-index: 60; box-shadow: var(--shadow-toast); max-width: 360px;
}
.toast.err { background: var(--toast-err); border-color: var(--danger-line); }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.stack { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.settings-split { grid-template-columns: 1fr 1.35fr; align-items: start; }

/* ---------- 商品主图与规格 ---------- */
.thumb {
  display: block; object-fit: cover; border-radius: 8px; background: var(--surface-muted); border: 1px solid var(--line);
}
.thumb.sm { width: 44px; height: 44px; }
.thumb.xs { width: 40px; height: 40px; }
.thumb.md { width: 72px; height: 72px; }
.thumb.lg { width: 240px; height: 240px; border-radius: 12px; }
.thumb.ph { display: grid; place-items: center; color: var(--muted); font-size: 11px; }

.modal.wide { max-width: 900px; }
.pv:not(:empty) { margin: -6px 0 14px; }
.pdetail { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.pdetail-media { display: grid; gap: 10px; }
.pdetail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbbtn { padding: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; cursor: pointer; line-height: 0; }
.thumbbtn:hover { border-color: var(--brand); }
.pdetail-info h4 { margin: 0 0 12px; font-size: 15px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; word-break: break-all; }

h4.sec { font-size: 13px; margin: 18px 0 8px; color: var(--ink-soft); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-head h4.sec { margin: 18px 0 8px; }
.table-scroll { max-height: 280px; overflow: auto; }
.table-scroll table th, .table-scroll table td { padding: 8px 12px; }
.vtable input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; font-size: 12px; }
.vtable td { padding: 6px 8px; }
.vtable th { padding: 8px; font-size: 11px; }

/* ---------- 导航改版后的通用块 ---------- */
.page-hint {
  margin: 0 0 14px; padding: 10px 14px; background: var(--hint-bg); border: 1px solid var(--hint-line);
  border-left: 3px solid var(--brand); border-radius: 8px; color: var(--hint-ink); font-size: 12.5px; line-height: 1.7;
}
.empty-state { padding: 40px; text-align: center; color: var(--muted); }

.usage { display: grid; gap: 6px; }
.usage-top { display: flex; justify-content: space-between; font-size: 13px; }
.usage-bar { height: 8px; background: var(--surface-muted); border-radius: 99px; overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--usage-from), var(--usage-to)); border-radius: 99px; }

.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.kv-row:last-child { border-bottom: none; }
.kv-row span { color: var(--muted); }
.kv-row b { font-weight: 600; text-align: right; word-break: break-all; }

.plan-list { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.plan-list li::marker { color: var(--brand); }

.toolbar select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--input-bg); max-width: 340px;
}

/* ---------- Shopify 店铺卡片页 ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 0; font-size: 13px; }
.page-head .toolbar { margin: 0; }

/* 页面导语：标题在顶栏时使用，不和 page-head 重复放 h1 */
.page-lead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.page-lead p { margin: 0; max-width: 760px; }

.store-search { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.store-search input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; background: var(--input-bg); color: var(--ink);
}
.store-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); outline: none; }

.store-list { display: grid; gap: 14px; padding: 14px; background: var(--surface-soft); }
.store-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.sc-head { display: flex; align-items: center; gap: 12px; }
.sc-avatar {
  width: 40px; height: 40px; border-radius: 10px; background: var(--avatar-bg); color: var(--avatar-ink);
  display: grid; place-items: center; flex: 0 0 40px;
}
.sc-avatar .ic { width: 18px; height: 18px; }
.sc-title { min-width: 0; }
.sc-name { font-weight: 700; font-size: 16px; }
.sc-head > .badge { margin-left: auto; }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--chip-bg); color: var(--chip-ink);
  font-size: 12px; margin-top: 6px;
}
.sc-grid {
  display: grid; grid-template-columns: .8fr 1.02fr 1.08fr 1.55fr .8fr 1.15fr; gap: 14px 18px;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-soft);
}
.sc-cell { min-width: 0; }
.sc-cell label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.sc-cell div { font-size: 13px; line-height: 1.55; word-break: normal; overflow-wrap: anywhere; }
.sc-cell .link-btn { margin-left: 6px; font-size: 11.5px; }
.sc-domain div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-notes { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-soft); }
.sc-notes .sec-head b { font-size: 13px; }
.sc-notes .sec-head h4 { margin: 0; }
.sc-scopes {
  margin-top: 12px; padding: 10px 0; border-top: 1px dashed var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px;
}
.sc-scopes .chip { margin-top: 0; background: var(--neutral-chip-bg); color: var(--neutral-chip-ink); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-ops {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-soft); font-size: 12px;
}
.link-btn {
  border: none; background: none; padding: 0; color: var(--link); cursor: pointer; font-size: 12px;
}
.link-btn:hover { text-decoration: underline; }

.modal-sub { color: var(--muted); font-size: 12px; margin: -8px 0 14px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; background: var(--notice-bg); border: 1px solid var(--notice-line);
  color: var(--notice-ink); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; margin-bottom: 16px;
}
.notice .ic { color: var(--notice-ic); flex: 0 0 16px; margin-top: 2px; }
.cred-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; }
.cred-box legend { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); padding: 0 6px; }
.adv { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.adv summary { cursor: pointer; color: var(--link); }

@media (max-width: 1280px) {
  .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .toolbar { width: 100%; }
}

@media (max-width: 720px) {
  .pdetail { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static; top: auto; height: auto; max-height: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 10px 6px; border-right: 0; border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .brand { padding: 2px 4px 6px; font-size: 14px; }
  .brand small { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 2px 0; }
  .nav-group { flex: 0 0 auto; flex-direction: row; align-items: stretch; max-width: 100%; min-width: 0; }
  .nav-group + .nav-group { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line-soft); }
  .nav-head { display: none; }
  .nav-sub { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; border-left: 0; max-width: 100%; }
  .nav-item { flex: 0 0 auto; padding: 7px 8px; font-size: 12.5px; }
  .side-foot { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { padding: 6px 8px 4px; }
  .brand { font-size: 13.5px; padding: 0 4px 4px; }
  .nav { gap: 1px 0; }
  .nav-group + .nav-group { margin-left: 4px; padding-left: 4px; }
  .nav-item { padding: 6px 7px; font-size: 12px; gap: 6px; }
}

/* ---------- DNS 模板 / 域名服务商管理弹窗 ---------- */
.modal.mgr { max-width: 880px; padding: 0; display: flex; flex-direction: column; max-height: 90vh; }
.mgr-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line);
}
.mgr-title { display: flex; gap: 10px; align-items: flex-start; }
.mgr-ic { color: var(--ink-soft); margin-top: 2px; }
.mgr-title h3 { margin: 0 0 4px; font-size: 16px; }
.mgr-title p { margin: 0; font-size: 12px; }
.mgr-x { border: none; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.mgr-x:hover { color: var(--ink); }
.mgr-body { padding: 16px 22px 20px; overflow: auto; }
.mgr-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-soft);
}
.mgr-foot .muted { font-size: 12px; }
.mgr-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.mgr-bar b { font-size: 14px; }
.mgr-bar .muted { font-size: 12px; margin-left: 6px; }
.mgr-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.mgr-form h4 { margin: 0 0 14px; font-size: 14px; }
.mgr-form .field { margin-bottom: 12px; }
.mgr-form select, .mgr-form input { width: 100%; }
.mgr-hint { font-size: 12px; margin: 6px 0 10px; line-height: 1.7; }
.mgr-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; cursor: pointer; }
.check input { width: 14px; height: 14px; }

.dns-list, .provider-list { display: grid; gap: 14px; }
.dns-card, .provider-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--panel); }
.dns-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dns-card-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.dns-card-name .chip { margin-left: 2px; }
.dns-card-sub { font-size: 12px; margin: 4px 0 8px; }
.icon-actions { display: flex; gap: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: none; background: none; border-radius: 6px; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn .ic { width: 15px; height: 15px; }
.dns-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dns-table th, .dns-table td { text-align: left; padding: 8px 10px; font-size: 12.5px; }
.dns-table th { background: var(--surface-soft); color: var(--muted); font-weight: 600; }
.dns-table th:first-child, .dns-table td:first-child { width: 96px; }
.dns-table td { border-top: 1px solid var(--line-soft); word-break: break-all; }
.dns-form-table td { border-top: none; padding: 4px 6px; }
.dns-form-table select, .dns-form-table input {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; font-size: 12.5px; background: var(--input-bg); color: var(--ink);
}
.dns-form-table select:focus, .dns-form-table input:focus { border-color: var(--brand); outline: none; }
.dns-form-table td.row-del { width: 34px; }
.provider-meta { display: grid; grid-template-columns: 92px 1fr; row-gap: 5px; font-size: 12.5px; margin-top: 8px; }
.provider-meta b { font-weight: 500; word-break: break-all; }
.provider-empty { border: 1px solid var(--line); border-radius: 10px; background: var(--ok-bg); padding: 34px 20px; text-align: center; color: var(--ink-soft); font-size: 13px; line-height: 2; }
.provider-empty-ic { color: var(--placeholder); margin-bottom: 6px; }
.provider-empty .muted { font-size: 12.5px; }

.provider-empty-ic .ic { width: 28px; height: 28px; stroke-width: 1.8; }

/* ---------- 绑定域名向导 ---------- */
.mgr-acts { display: flex; align-items: center; gap: 12px; }
.small { font-size: 12px; line-height: 1.6; }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.7; margin: 10px 0; border: 1px solid transparent; }
.alert.ok { background: var(--ok-strong-bg); border-color: var(--ok-strong-line); color: var(--ok-strong-ink); }
.alert.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-strong-ink); }
.alert.error { background: var(--danger-soft-bg); border-color: var(--danger-soft-line); color: var(--danger-soft-ink); }
.btn.is-busy { opacity: .7; cursor: progress; }

.wz-shop { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-soft); margin-bottom: 16px; }
.wz-shop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wz-shop-head b { font-size: 13.5px; }
.wz-hosts { display: grid; gap: 8px; }
.wz-host { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px; }
.wz-host.is-primary { border-color: var(--brand-line); box-shadow: inset 3px 0 0 var(--brand); }
.wz-host-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wz-host-top b { font-size: 13px; word-break: break-all; }
.wz-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.wz-step { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.wz-step-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.wz-step-head > div { flex: 1; }
.wz-step-head b { font-size: 14px; }
.wz-step-head p { margin: 3px 0 0; }
.wz-no { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wz-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.wz-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.wz-grid input, .wz-grid select { width: 100%; }
.wz-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.wz-plan { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
.wz-bind { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; }
.wz-bind:last-child { border-bottom: none; }
.wz-migrate { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-top: 14px; }
.wz-migrate > div:first-child { flex: 1; }
.wz-migrate-acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex: none; }
@media (max-width: 860px) {
  .wz-grid { grid-template-columns: 1fr; }
  .wz-migrate { flex-direction: column; }
  .wz-migrate-acts { flex-direction: row; }
}

/* ---------- 店铺商品：批量调整缓存 ---------- */
.bulk-card { margin-bottom: 14px; }
.bulk-card .panel-head { align-items: center; }
.bulk-note { margin: 0 0 12px; }
.bulk-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 1.2fr 1.3fr 1fr auto; gap: 12px; align-items: end; }
.bulk-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bulk-grid select, .bulk-grid input { width: 100%; }
.bulk-grid input:disabled { background: var(--surface-muted); color: var(--placeholder); border-color: var(--line); cursor: not-allowed; }
.bulk-grid select:disabled { background: var(--surface-muted); color: var(--placeholder); }
.bulk-act { padding-bottom: 1px; }
.bulk-act .btn { white-space: nowrap; height: 36px; }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 48px; }
.input-suffix span { position: absolute; right: 10px; font-size: 11px; color: var(--muted); pointer-events: none; }
.bulk-card #sp-bulk-hint { margin: 10px 0 0; min-height: 18px; }
@media (max-width: 1200px) {
  .bulk-grid { grid-template-columns: repeat(3, 1fr); }
  .bulk-act { grid-column: span 3; }
  .bulk-act .btn { width: 100%; }
}
@media (max-width: 720px) {
  .bulk-grid { grid-template-columns: 1fr 1fr; }
  .bulk-act { grid-column: span 2; }
}

/* ---------- Shopify 店铺商品：筛选 / 发布 / 表格工具条 ---------- */
.filter-card { margin-bottom: 14px; }
.filter-grid { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr auto; gap: 14px; align-items: end; padding: 14px 16px; }
.filter-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.filter-grid label > input, .filter-grid label > select,
.bulk-grid label > input, .bulk-grid label > select, .bulk-grid .input-suffix input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--input-bg); color: var(--ink); font-size: 13px; font-weight: 400; outline: none;
}
.filter-grid label > input:focus, .filter-grid label > select:focus,
.bulk-grid label > input:focus, .bulk-grid label > select:focus, .bulk-grid .input-suffix input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring);
}
.filter-grid label > input:disabled, .filter-grid label > select:disabled,
.bulk-grid label > input:disabled, .bulk-grid label > select:disabled, .bulk-grid .input-suffix input:disabled {
  background: var(--surface-muted); color: var(--placeholder); cursor: not-allowed;
}
.filter-act .btn { height: 36px; white-space: nowrap; }
.filter-act { display: flex; gap: 8px; align-items: center; }
.pub-card { margin-bottom: 14px; }
.pub-grid { grid-template-columns: 1fr 1.2fr auto; }
.pub-act { display: flex; gap: 8px; }
.sp-status { margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--ok-line); border-radius: var(--radius-md); background: var(--ok-bg); color: var(--ok-ink); font-size: 12.5px; }
.sp-status + .sp-status { margin-top: -6px; }
.sp-table-head { align-items: center; gap: 12px; }
.sp-table th { white-space: nowrap; }
.sp-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sp-link { color: var(--link); text-decoration: none; font-size: 12px; margin-left: 4px; }
.sp-link:hover { text-decoration: underline; }
.sp-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-pager-btns { display: flex; gap: 8px; }
@media (max-width: 1200px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-act { grid-column: span 2; }
  .filter-act .btn { width: 100%; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .pub-act { grid-column: span 2; }
}
@media (max-width: 760px) {
  .page-lead { flex-direction: column; }
  .sp-actions { justify-content: flex-start; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-act { grid-column: auto; }
}

/* ---------- 博客与文章 ---------- */
.art-head { align-items: flex-start; }
.art-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; }
.blog-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; }
.blog-tabs button {
  border: none; background: none; padding: 10px 2px 12px; color: var(--muted); font-size: 13px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px;
}
.blog-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.blog-tabs button span {
  min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--neutral-chip-bg); color: var(--neutral-chip-ink);
  font-size: 11px; line-height: 18px; text-align: center;
}
.art-table th { white-space: nowrap; }
.art-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.art-title > div { min-width: 0; }
.art-title .thumb.sm { flex: 0 0 auto; }
.art-sub { font-size: 11px; margin-top: 3px; }
.row-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.blog-storebar { padding: 0; }
.blog-store-inner { display: flex; align-items: end; gap: 12px; padding: 14px 16px; }
.blog-store-inner label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 320px; }
.blog-store-inner .grow { flex: 1; }
.pager-mini { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; font-size: 12px; }
.pager-mini .muted { margin-right: 6px; }
.pg {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel);
  color: var(--ink); cursor: pointer; font-size: 12px;
}
.pg:hover:not(:disabled) { border-color: var(--brand); }
.pg.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.pg:disabled { opacity: .45; cursor: not-allowed; }
.pager-dot { color: var(--muted); padding: 0 2px; }

/* ---------- 宽弹窗与文章编辑器 ---------- */
.modal.mgr.xl { max-width: 1120px; }
.mgr-body .am-sec { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.mgr-body .am-sec:first-child { border-top: none; padding-top: 2px; }
.am-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.am-sec-head b { font-size: 15px; }
.am-sec-head .muted { font-size: 12px; text-align: right; }
.am-sec .field { margin-bottom: 12px; }
.small { font-size: 12px; }
.rte { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.rte-bar button {
  min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; background: transparent;
  color: var(--ink-soft); cursor: pointer; font-size: 12px;
}
.rte-bar button:hover { background: var(--panel); border-color: var(--line); color: var(--ink); }
.rte-area { position: relative; }
.rte-body {
  min-height: 250px; max-height: 520px; overflow: auto; padding: 14px 16px; outline: none; line-height: 1.75; font-size: 14px;
}
.rte-body:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rte-body h2 { font-size: 20px; margin: 16px 0 8px; }
.rte-body h3 { font-size: 17px; margin: 14px 0 6px; }
.rte-body ul, .rte-body ol { padding-left: 24px; }
.rte-body blockquote { border-left: 3px solid var(--brand); margin: 10px 0; padding: 4px 12px; color: var(--ink-soft); background: var(--surface-soft); }
.rte-body a { color: var(--link); }
.rte-code { width: 100%; min-height: 250px; border: none; padding: 14px 16px; background: var(--surface-soft); color: var(--ink); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.6; resize: vertical; outline: none; }
.rte [hidden] { display: none !important; }
.rte.mini .rte-body { min-height: 108px; max-height: 180px; }
.rte.mini .rte-code { min-height: 108px; }

.pick-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: var(--panel); }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.pick-head b { font-size: 15px; margin-right: 8px; }
.pick-head .muted { font-size: 12px; }
.pick-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pick-filters { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.pick-filters label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pick-filters input, .pick-filters select { height: 36px; }
.pick-act .btn { height: 36px; white-space: nowrap; }
.pick-filters:not(:has(select[data-pick-type])) { grid-template-columns: 1.4fr 1.8fr auto; }
.pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.pick-bar .muted { font-size: 12px; }
.pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 90px; }
.pick-list .empty { grid-column: 1 / -1; }
.pick-item {
  display: grid; grid-template-columns: 18px 40px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft, var(--surface-soft)); cursor: pointer; min-width: 0;
}
.pick-item:hover { border-color: var(--brand); }
.pick-item input { margin: 0; }
.pick-item .thumb.xs { width: 40px; height: 40px; }
.pick-meta { display: grid; gap: 2px; min-width: 0; }
.pick-meta b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-meta .muted { font-size: 11px; }
.pick-url { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-page { display: flex; justify-content: flex-end; padding-top: 10px; }

.cover-row { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.cover-box { width: 240px; height: 190px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-muted); display: grid; place-items: center; }
.cover-box .thumb.lg { width: 100%; height: 100%; border: none; border-radius: 0; }
.cover-place { color: var(--muted); font-size: 12px; }
.cover-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cover-side .btn { align-self: flex-start; }
.cover-side p { margin: 0; }
.cover-side .field { width: 100%; margin: 8px 0 0; }

.ai-grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.ai-images { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ai-img { position: relative; width: 104px; height: 78px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-muted); }
.ai-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-img button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; line-height: 1; font-size: 13px;
}
.cover-tag { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; border-radius: 4px; font-size: 10px; padding: 1px 5px; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; padding: 4px 0 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.schedule-wrap { max-width: 280px; }
.schedule-wrap[hidden] { display: none !important; }
@media (max-width: 900px) {
  .pick-filters, .pick-filters:not(:has(select[data-pick-type])) { grid-template-columns: 1fr 1fr; }
  .pick-act { grid-column: span 2; }
  .pick-act .btn { width: 100%; }
  .pick-list { grid-template-columns: 1fr; }
  .cover-row { grid-template-columns: 1fr; }
  .cover-box { width: 100%; max-width: 320px; }
  .ai-grid3 { grid-template-columns: 1fr 1fr; }
  .blog-store-inner { flex-wrap: wrap; align-items: stretch; }
  .blog-store-inner label { min-width: 100%; }
  .blog-store-inner .btn { flex: 1; }
}
@media (max-width: 620px) {
  .art-head .art-actions { width: 100%; }
  .art-actions .btn { flex: 1; justify-content: center; }
  .blog-tabs { gap: 16px; }
  .mgr-body .am-sec-head { flex-direction: column; gap: 4px; }
  .am-sec-head .muted { text-align: left; }
  .ai-grid3 { grid-template-columns: 1fr; }
}


/* ---------- Shopify 产品系列 ---------- */
.coll-head { align-items: flex-start; margin-bottom: 16px; }
.coll-head p { max-width: 840px; }
.coll-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; }
.coll-filter { padding: 16px; margin-bottom: 12px; }
.coll-filter-grid {
  display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 1.5fr) minmax(150px, .75fr) auto;
  gap: 14px; align-items: end;
}
.coll-filter-grid .field { margin: 0; }
.coll-filter-grid .coll-query-act .btn { height: 36px; white-space: nowrap; }
.coll-syncbar {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft);
  color: var(--muted); font-size: 12px; padding: 10px 14px; margin-bottom: 14px;
}
.coll-error { color: var(--danger); }
.coll-table-panel { overflow: hidden; }
.coll-shop-head { padding: 16px 20px 12px; }
.coll-shop-head h3 { margin: 0 0 3px; font-size: 16px; }
.coll-shop-head p { margin: 0; font-size: 12px; }
.coll-table-wrap { overflow-x: auto; }
.coll-table { min-width: 1040px; }
.coll-table th { white-space: nowrap; }
.coll-table td { vertical-align: middle; }
.coll-thumb {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface-muted);
}
.coll-thumb.ph { display: grid; place-items: center; color: var(--muted); }
.coll-thumb.ph .ic { width: 22px; height: 22px; }
.coll-name { font-weight: 650; color: var(--ink); }
.coll-handle { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.coll-sid { font-size: 11px; color: var(--muted); margin-top: 3px; }
.coll-row-act { display: flex; gap: 6px; flex-wrap: nowrap; }
.coll-row-act .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.coll-pager { justify-content: space-between; background: var(--surface-soft); }
.coll-per { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.coll-per select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); }
.coll-page-right { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
.coll-page-right .muted { margin-right: 6px; }
.coll-page-btn {
  min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--panel); color: var(--ink-soft); cursor: pointer;
}
.coll-page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.coll-page-btn.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 700; }
.coll-page-btn:disabled { opacity: .45; cursor: default; }
.modal.coll-modal { max-width: 1000px; }
.coll-cover {
  display: grid; grid-template-columns: 92px 1fr minmax(220px, .85fr); gap: 16px; align-items: center;
  margin-top: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft);
}
.coll-cover .field { margin: 0; }
.coll-cover-preview {
  width: 84px; height: 84px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); display: grid; place-items: center; overflow: hidden; color: var(--muted);
}
.coll-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.coll-cover-preview .ic { width: 26px; height: 26px; }
.coll-cover-copy { display: grid; gap: 5px; align-content: start; }
.coll-cover-copy b { font-size: 13px; }
.coll-cover-copy p { margin: 0; font-size: 12px; }
.coll-cover-copy .btn { justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; }
.coll-file { font-size: 11px; margin-top: 2px; }
.coll-auto-note { margin-top: -4px; font-size: 12px; }
.coll-auto-note[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .coll-filter-grid { grid-template-columns: 1fr 1fr; }
  .coll-query-act .btn { width: 100%; justify-content: center; }
  .coll-cover { grid-template-columns: 84px 1fr; }
  .coll-cover .field { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .coll-filter-grid { grid-template-columns: 1fr; }
  .coll-head { flex-direction: column; }
  .coll-actions { width: 100%; }
  .coll-actions .btn { flex: 1; justify-content: center; }
  .coll-pager { flex-direction: column; align-items: flex-start; gap: 10px; }
  .coll-page-right { justify-content: flex-start; }
}

/* ================= 站点地图 ================= */
.sm-head { align-items: flex-start; flex-wrap: nowrap; }
.sm-head > div:first-child { min-width: 0; }
.sm-head > .toolbar, .policy-head > .toolbar { flex: 0 0 auto; }
.sm-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; }
.sm-filter { padding: 16px; margin-bottom: 10px; }
.sm-filter-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.4fr auto; gap: 12px; align-items: end; }
.sm-filter-grid .field { margin-bottom: 0; }
.sm-filter-act .btn { width: 100%; justify-content: center; height: 41px; }
.sm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sm-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 5px; min-width: 0; }
.sm-stat span { font-size: 11px; color: var(--muted); }
.sm-stat b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-stat .sm-stat-time { font-size: 13px; font-weight: 600; white-space: normal; }
.ok-text { color: var(--ok); }
.sm-table-panel { padding-top: 16px; margin-bottom: 14px; }
.sm-table-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 0 16px; margin-bottom: 12px; }
.sm-table-head h2 { margin: 0 0 3px; font-size: 15px; }
.sm-table-head p { margin: 0; font-size: 12px; }
.sm-table { min-width: 980px; }
.sm-table td { vertical-align: middle; }
.sm-url { max-width: 430px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-url a { color: var(--brand); text-decoration: none; font-size: 12.5px; }
.sm-url a:hover { text-decoration: underline; }
.sm-source { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted); }
.sm-type { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; border: 1px solid var(--line); background: var(--neutral-chip-bg); color: var(--muted); white-space: nowrap; }
.sm-type.product { color: var(--ok-strong-ink); background: var(--ok-strong-bg); border-color: var(--ok-strong-line); }
.sm-type.collection { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.sm-type.page { color: var(--ink-soft); background: var(--surface-soft); }
.sm-empty { padding: 34px 0; text-align: center; color: var(--muted); }
.sm-pager { margin-top: 0; }
.sm-pager .coll-page-right { margin-left: auto; }
.sm-plan-panel { padding-top: 16px; margin-bottom: 14px; }
.sm-plan-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.sm-plan-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-plan-actions .btn { white-space: nowrap; }
.btn.danger-text { color: var(--danger); }
.btn.danger-text:hover { border-color: var(--danger-soft-line); background: var(--danger-soft-bg); }

/* Google 索引维护 */
.gsc-panel { padding: 0; overflow: hidden; }
.gsc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.gsc-title { display: flex; gap: 10px; align-items: flex-start; }
.gsc-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.gsc-title h2 { margin: 0 0 4px; font-size: 15px; }
.gsc-title p { margin: 0; font-size: 12px; }
.gsc-head > .badge { margin-top: 2px; }
.gsc-bind-box { display: grid; grid-template-columns: 1.1fr .8fr auto; gap: 12px; align-items: end; margin: 14px 20px 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-soft); }
.gsc-bind-box .field, .gsc-site-row .field { margin-bottom: 0; }
.gsc-bind-box .btn { height: 41px; white-space: nowrap; }
.gsc-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 20px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.gsc-site-row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, auto); gap: 10px; align-items: end; padding: 12px 20px 10px; }
.gsc-site-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.gsc-site-actions .btn { white-space: nowrap; font-size: 11.5px; padding: 7px 9px; height: 36px; }
.gsc-hint { display: flex; gap: 8px; align-items: flex-start; margin: 4px 20px 18px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); font-size: 12px; line-height: 1.65; }
.gsc-hint.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.gsc-hint p { margin: 0; }
.gsc-hint b { color: inherit; }
.is-hidden { display: none !important; }

/* 定时计划弹窗 */
.modal.mgr.plan-modal { max-width: 900px; }
.plan-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.plan-schedule .field { margin-bottom: 0; }
.plan-weekdays { grid-column: span 1; }
.plan-weekdays.is-hidden { visibility: hidden; }
.weekday-list { display: flex; gap: 6px; flex-wrap: wrap; }
.weekday { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; cursor: pointer; background: var(--panel); }
.weekday:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.weekday input { width: 13px; height: 13px; margin: 0; }
.plan-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); font-size: 12px; line-height: 1.65; }
.plan-note.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.plan-note .ic { flex: 0 0 auto; width: 16px; height: 16px; }
.plan-note p { margin: 0; }
.plan-preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.plan-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid var(--line-soft); background: var(--surface-soft); font-size: 12px; }
.plan-preview-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 6px 13px; max-height: 220px; overflow: auto; }
.plan-run { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12px; }
.plan-run:last-child { border-bottom: none; }
.plan-run span { color: var(--muted); font-size: 11px; }
.plan-run b { font-weight: 600; }
.plan-run em { font-style: normal; color: var(--muted); font-size: 11px; }
.plan-preview-error { padding: 12px; color: var(--danger); font-size: 12px; }

/* ================= 店铺政策 ================= */
.policy-head { align-items: flex-start; flex-wrap: nowrap; }
.policy-head > div:first-child { min-width: 0; }
.policy-head .btn { height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.policy-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 12px 14px; }
.policy-store-field { min-width: 300px; }
.policy-summary { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); padding-bottom: 8px; }
.policy-summary b { color: var(--ink); font-size: 18px; font-weight: 700; }
.policy-summary i { width: 1px; height: 14px; background: var(--line); margin: 0 8px; align-self: center; }
.policy-auto-note { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; margin-bottom: 12px; border-radius: 9px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); font-size: 12.5px; line-height: 1.7; }
.policy-auto-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ok-strong-bg); color: var(--ok); flex: 0 0 auto; }
.policy-auto-note p { margin: 0; flex: 1; }
.policy-auto-note b { color: var(--ok-strong-ink); }
.policy-auto-note a { color: var(--ok-strong-ink); text-decoration: none; white-space: nowrap; padding-top: 2px; font-size: 12px; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.policy-card { padding: 16px; display: flex; flex-direction: column; min-height: 196px; }
.policy-card.is-empty { border-style: dashed; }
.policy-card-head { display: flex; align-items: flex-start; gap: 10px; }
.policy-card-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.policy-card-title { flex: 1; min-width: 0; }
.policy-card-title h2 { margin: 1px 0 3px; font-size: 14px; }
.policy-card-title p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.policy-card-head > .badge { flex: 0 0 auto; margin-top: 2px; }
.policy-card-body { flex: 1; margin-top: 12px; }
.policy-card-body p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.policy-card-body .policy-empty-copy { color: var(--muted); font-style: normal; }
.policy-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.policy-meta { min-width: 0; display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.policy-meta a { color: var(--brand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.policy-card-foot .btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; }
.policy-auto-btn { color: var(--ok); background: var(--ok-strong-bg); border-color: var(--ok-strong-line); opacity: 1 !important; }
.modal.mgr.policy-modal { max-width: 960px; }
.policy-edit-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); margin-bottom: 14px; }
.policy-type-kicker { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.policy-edit-info b { font-size: 14px; }
.policy-edit-info p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.6; }
.policy-edit-info a { display: block; font-size: 12px; color: var(--brand); text-decoration: none; word-break: break-all; }
.policy-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.policy-label-row .muted { font-size: 11px; }
#policy-body { min-height: 300px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.65; }
.policy-char { text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }
.policy-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); font-size: 12px; line-height: 1.65; color: var(--muted); }
.policy-note p { margin: 0; }
.policy-admin-link { font-size: 12px; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.policy-foot-actions { display: flex; gap: 8px; }

@media (max-width: 1100px) {
  .sm-filter-grid { grid-template-columns: 1fr 1fr; }
  .sm-filter-act { grid-column: span 1; }
  .sm-filter-act .btn { width: 100%; }
  .sm-stats { grid-template-columns: 1fr 1fr; }
  .gsc-bind-box { grid-template-columns: 1fr 1fr; }
  .gsc-bind-box .btn { grid-column: 1 / -1; justify-self: stretch; }
  .gsc-site-row { grid-template-columns: 1fr 1fr; }
  .gsc-site-actions { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-end; }
  .policy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .gsc-site-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gsc-site-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
  .sm-head { flex-direction: column; align-items: stretch; }
  .policy-head { flex-direction: column; align-items: stretch; }
  .policy-head .toolbar { width: 100%; }
  .sm-actions .btn { flex: 1; justify-content: center; }
  .sm-filter-grid, .sm-stats, .policy-grid, .plan-schedule, .plan-preview-list { grid-template-columns: 1fr; }
  .sm-filter-act { grid-column: span 1; }
  .sm-pager { flex-direction: column; align-items: flex-start; }
  .gsc-bind-box, .gsc-site-row, .gsc-custom { grid-template-columns: 1fr; }
  .gsc-bind-box .btn, .gsc-site-actions { grid-column: 1 / -1; }
  .gsc-site-actions .btn { flex: 1; justify-content: center; }
  .gsc-head { flex-direction: column; }
  .policy-toolbar { flex-direction: column; align-items: stretch; }
  .policy-store-field { min-width: 0; }
  .policy-summary { padding-bottom: 0; }
  .policy-card-foot { flex-direction: column; align-items: stretch; }
  .policy-card-foot .btn { justify-content: center; }
  .policy-edit-info { grid-template-columns: 1fr; }
  .mgr-foot { flex-direction: column; align-items: stretch; }
  .policy-foot-actions { justify-content: flex-end; }
  .plan-weekdays { grid-column: 1 / -1; }
}


/* ---------- 系统定时任务 ---------- */
.sched-head { align-items: flex-start; margin-bottom: 18px; }
.sched-head > div:first-child { min-width: 0; }
.sched-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; }
.sched-filter { padding: 16px; margin-bottom: 14px; }
.sched-filter-grid { display: grid; grid-template-columns: 1.25fr .85fr .85fr auto; gap: 12px; align-items: end; }
.sched-filter-grid .field { margin-bottom: 0; }
.sched-filter-act .btn { width: 100%; justify-content: center; height: 38px; }
.sched-table-panel { margin-bottom: 14px; }
.sched-table-wrap { overflow-x: auto; }
.sched-table { min-width: 1020px; }
.sched-table th { padding: 11px 16px; }
.sched-table td { vertical-align: middle; padding: 12px 16px; }
.sched-task { display: flex; align-items: flex-start; gap: 10px; min-width: 260px; }
.sched-ic { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); }
.sched-ic .ic { width: 15px; height: 15px; }
.sched-ic.ai { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.sched-ic.sitemap { color: var(--ok-strong-ink); background: var(--ok-strong-bg); border-color: var(--ok-strong-line); }
.sched-task-main { min-width: 0; }
.sched-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sched-sub { margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.sched-sub.err { color: var(--danger); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sched-type { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; border: 1px solid var(--line); background: var(--neutral-chip-bg); color: var(--muted); white-space: nowrap; }
.sched-type.ai { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.sched-type.sitemap { color: var(--ok-strong-ink); background: var(--ok-strong-bg); border-color: var(--ok-strong-line); }
.sched-store { min-width: 150px; }
.sched-store b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.sched-store span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.sched-time { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-ops .btn { white-space: nowrap; }
.btn.danger-ghost { color: var(--danger); border-color: transparent; background: transparent; }
.btn.danger-ghost:hover { background: var(--danger-soft-bg); border-color: var(--danger-soft-line); }
.sched-empty { padding: 64px 20px 58px; text-align: center; color: var(--muted); }
.sched-empty-ic { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); margin-bottom: 12px; }
.sched-empty-ic .ic, .sched-empty svg.ic { width: 20px; height: 20px; }
.sched-empty h3 { margin: 0 0 5px; font-size: 15px; color: var(--ink); }
.sched-empty p { margin: 0; font-size: 12.5px; }
.sched-pager { justify-content: flex-end; flex-wrap: wrap; }
.sched-pager .grow { flex: 1; }
.sched-limit { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sched-limit select { border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); border-radius: 7px; padding: 5px 8px; font-size: 12px; }
.sched-pager .icon-only { width: 30px; padding: 5px 0; justify-content: center; font-size: 15px; line-height: 1; }
.sched-page-num { background: var(--brand); color: var(--on-brand); border-radius: 7px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.sched-plan-modal { max-width: 720px; }
.sched-plan-body { padding: 14px 22px; overflow: auto; min-height: 150px; max-height: 58vh; }
.sched-plan-loading { padding: 42px 0; text-align: center; color: var(--muted); font-size: 12.5px; }
.sched-plan-list { display: grid; gap: 10px; }
.sched-plan-item { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: var(--surface-soft); }
.sched-plan-main { min-width: 0; }
.sched-plan-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-plan-title b { font-size: 13px; color: var(--ink); }
.sched-plan-meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.sched-plan-next { margin-top: 7px; font-size: 11.5px; color: var(--ink-soft); }
.sched-plan-next b { color: var(--brand); font-weight: 600; }
.sched-plan-ops { display: flex; gap: 6px; flex: 0 0 auto; }
.sched-plan-ops .btn { white-space: nowrap; }
.sched-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.sched-plan-foot .muted { font-size: 12px; }
.sched-plan-empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.sched-plan-empty .sched-empty-ic { margin-bottom: 10px; }
.sched-plan-empty h4 { margin: 0 0 5px; font-size: 14px; color: var(--ink); }
.sched-plan-empty p { margin: 0; font-size: 12px; }
.sched-confirm { max-width: 480px; padding: 0; }
.sched-confirm .mgr-head { padding: 18px 20px 12px; }
.sched-confirm-text { margin: 0; padding: 18px 20px 6px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.sched-confirm .modal-foot { padding: 14px 20px 18px; margin: 0; }
.mgr-ic.warn { color: var(--warn); }

@media (max-width: 1000px) {
  .sched-head { flex-direction: column; align-items: stretch; }
  .sched-actions .btn { flex: 1; justify-content: center; }
  .sched-filter-grid { grid-template-columns: 1fr 1fr; }
  .sched-filter-act { grid-column: span 2; }
  .sched-pager { align-items: center; }
}
@media (max-width: 680px) {
  .sched-filter-grid { grid-template-columns: 1fr; }
  .sched-filter-act { grid-column: span 1; }
  .sched-plan-item { flex-direction: column; }
  .sched-plan-ops { width: 100%; }
  .sched-plan-ops .btn { flex: 1; justify-content: center; }
  .sched-pager .grow { display: none; }
  .sched-empty { padding: 46px 16px; }
}
.sched-filter select { width: 100%; min-width: 0; }

/* ---------- Shopify 评价管理 ---------- */
.rv-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1200px) and (min-width: 761px) {
  .rv-filter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
  .rv-filter-grid .filter-act { grid-column: auto; }
  .rv-filter-grid .filter-act .btn { width: auto; white-space: nowrap; }
}
.rv-metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; min-width: 0; }
.rv-metric span { display: block; color: var(--muted); font-size: 12px; }
.rv-metric b { display: block; margin: 4px 0 3px; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rv-metric em { display: block; color: var(--muted); font-size: 11.5px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-hint { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-strong-ink); padding: 9px 13px; border-radius: 9px; font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.rv-split { display: grid; grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr); gap: 14px; align-items: start; }
.rv-products { display: flex; flex-direction: column; }
.rv-products .panel-head { flex: 0 0 auto; }
.rv-product-list { flex: 1; max-height: 680px; overflow: auto; }
.rv-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rv-item:hover { background: var(--hover); }
.rv-item.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.rv-item .thumb { flex: 0 0 auto; }
.rv-item-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.rv-item-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-item-sub { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-item-side { flex: 0 0 auto; display: grid; justify-items: end; gap: 3px; }
.rv-count { font-size: 11.5px; color: var(--muted); }
.rv-avg { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.rv-avg b { color: var(--ink); font-size: 11px; }
.rv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.rv-dot.synced { background: var(--ok); }
.rv-dot.queued { background: var(--warn); }
.rv-dot.error { background: var(--danger); }
.rv-pager { justify-content: space-between; margin-top: auto; }
.rv-pager-btns { display: flex; gap: 8px; }
.rv-detail { min-width: 0; }
.rv-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rv-detail-product { display: flex; gap: 12px; min-width: 0; }
.rv-detail-title { min-width: 0; }
.rv-detail-title h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.45; }
.rv-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-syncbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 12px; }
.rv-sync-status, .rv-sync-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-sync-error { padding: 9px 16px; color: var(--danger-soft-ink); background: var(--danger-soft-bg); border-bottom: 1px solid var(--danger-soft-line); font-size: 12px; line-height: 1.55; }
.rv-reviews { padding: 4px 16px 16px; }
.rv-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; margin-top: 12px; background: var(--panel); }
.rv-card-head { display: flex; align-items: center; gap: 10px; }
.rv-card-head > .muted { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-del { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.rv-del:hover { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft-bg); }
.rv-del .ic { width: 15px; height: 15px; }
.rv-content { margin: 9px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rv-img { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-muted); }
.rv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 44px 20px; color: var(--muted); }
.rv-empty .ic { width: 26px; height: 26px; color: var(--icon-muted); }
.rv-empty p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.rv-empty.small { padding: 28px 18px; font-size: 12.5px; line-height: 1.7; }
.rv-stars { letter-spacing: 1px; color: var(--warn); font-size: 13px; white-space: nowrap; }
.rv-stars i { font-style: normal; color: var(--line-strong); }
.rv-rate { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-rate-opt { position: relative; display: inline-flex; cursor: pointer; }
.rv-rate-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rv-rate-opt span { display: inline-block; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--line-strong); background: var(--input-bg); font-size: 14px; letter-spacing: 1px; line-height: 1; }
.rv-rate-opt input:checked + span { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.rv-rate-opt input:focus-visible + span { outline: 2px solid var(--focus-ring); }
.rv-upload { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--ink-soft); background: var(--surface-soft); }
.rv-upload:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }
.rv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rv-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-muted); }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-thumb button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--toast-bg); color: var(--toast-ink); cursor: pointer; line-height: 1; font-size: 13px; }
.rv-thumb.loading { display: grid; place-items: center; font-size: 10.5px; color: var(--muted); }
.rv-modal { max-width: 720px; }
@media (max-width: 1120px) {
  .rv-split { grid-template-columns: 1fr; }
  .rv-product-list { max-height: 380px; }
  .rv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 角色权限 */
.role-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--brand-line);
  border-radius: 99px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.ro-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.ro-intro p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.ro-intro p + p { margin-top: 3px; }
.ro-intro .badge { flex: none; }
.ro-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 10px; }
.ro-toolbar > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ro-toolbar b { font-size: 13px; }
.ro-role-dock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 22px -22px var(--shadow-color, rgba(0,0,0,.35));
}
.ro-role-dock-copy { flex: 0 0 auto; min-width: 190px; }
.ro-role-dock-head { display: flex; align-items: center; gap: 8px; }
.ro-role-dock-head h3 { margin: 0; font-size: 14px; }
.ro-role-dock-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.ro-role-dock-copy p b { color: var(--ink-soft); font-weight: 600; }
.ro-role-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}
.ro-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.ro-role-pill:hover { border-color: var(--brand-line); color: var(--ink); }
.ro-role-pill.current { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.ro-role-pill small { color: var(--muted); font-size: 10.5px; }
.ro-role-pill.current small { color: var(--brand); }
.ro-role-dock > .btn { flex: none; }
.ro-role-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ro-manager-modal { max-width: 900px; }
.ro-manager-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -4px 0 12px; }
.ro-manager-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.ro-manager-head .btn { flex: none; }
.ro-manager-note { margin: 12px 0 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.ro-role-manager-grid .ro-card .ro-desc { min-height: 0; }
.ro-role-manager-grid .ro-card .panel-body { padding: 12px 14px 14px; }
.ro-role-manager-grid .ro-card .panel-head { padding: 12px 14px 10px; }
.ro-role-manager-grid .ro-card .ro-tags { margin-top: 9px; }
.ro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.ro-card { min-width: 0; }
.ro-card.current { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-soft) inset; }
.ro-card .panel-head h3 { font-size: 15px; }
.ro-card-head { align-items: flex-start; gap: 10px; }
.ro-card-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ro-custom { margin-top: 10px; color: var(--brand); font-size: 11.5px; }
.ro-desc { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; min-height: 44px; }
.ro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ro-tag {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.35;
}
.ro-tag.all { color: var(--brand); border-color: var(--brand-line); background: var(--brand-soft); }
.ro-tag.empty { color: var(--muted); }
.ro-team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.ro-team-grid > .panel { margin-top: 0; display: flex; flex-direction: column; min-width: 0; height: 500px; }
.ro-members { overflow: hidden; }
.ro-members .panel-head { align-items: flex-start; gap: 12px; flex: 0 0 auto; }
.ro-members .panel-head > div { min-width: 0; }
.ro-members-head-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.ro-sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ro-role-label { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); font-size: 11.5px; white-space: nowrap; }
.ro-store-label { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.ro-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ro-member-list { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.ro-member-row { flex: 0 0 auto; }
.ro-member-toolbar { display: flex; align-items: center; flex-wrap: wrap; flex: 0 0 auto; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.ro-member-toolbar input[type="search"] { flex: 1 1 200px; min-width: 140px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.ro-member-toolbar input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ro-member-toolbar select { height: 34px; min-width: 108px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); font: inherit; font-size: 12px; }
.ro-member-toolbar select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ro-member-pager { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.ro-member-pager-actions { display: flex; align-items: center; gap: 7px; }
.ro-member-pager-actions span { color: var(--muted); white-space: nowrap; }
.ro-member-pager-actions .btn { height: 28px; padding: 0 9px; font-size: 11.5px; }
.ro-member-empty { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 0; padding: 28px 16px; border-top: 1px dashed var(--line); background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.ro-member-empty-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px dashed var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--brand); }
.ro-member-empty b { color: var(--ink); font-size: 13px; font-weight: 600; }
.ro-member-empty > span:not(.ro-member-empty-icon) { max-width: 320px; }
.ro-member-empty .btn { margin-top: 6px; }
.ro-member-empty b { display: block; margin-bottom: 2px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.ro-member-empty span { display: block; }
.ro-member-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(230px, 1.55fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.ro-member-row.is-owner { background: var(--surface-soft); }
.ro-member-row:last-child { border-bottom: 0; }
.ro-member-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ro-member-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.ro-member-name { min-width: 0; }
.ro-member-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.ro-member-name small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11.5px; }
.ro-member-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; min-width: 0; }
.ro-fact { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ro-fact i { color: var(--muted); font-size: 10.5px; font-style: normal; }
.ro-fact-store { min-width: 0; max-width: 230px; }
.ro-fact-store .ro-store-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 175px; }
.ro-owner-label { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ro-member-actions { justify-content: flex-end; }
.ro-audit { overflow: hidden; }
.ro-audit .panel-head { align-items: flex-start; flex: 0 0 auto; gap: 12px; }
.ro-audit .panel-head > div { min-width: 0; }
.ro-audit-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ro-audit-actions .badge { white-space: nowrap; }
.ro-audit .panel-body { display: flex; flex: 1 1 auto; align-items: center; min-height: 0; }
.ro-activity-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.ro-activity-row { flex: 0 0 auto; }
.ro-activity-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.ro-activity-row:hover { background: var(--surface-soft); }
.ro-activity-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ro-activity-row:last-child { border-bottom: 0; }
.ro-activity-time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ro-activity-main { margin: 0; min-width: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ro-activity-main b { color: var(--ink); font-weight: 600; }
.ro-activity-main span { margin-left: 5px; }
.ro-activity-tail { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.ro-activity-store {
  max-width: 130px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ro-activity-caret { color: var(--muted); font-size: 16px; line-height: 1; }
.ro-activity-detail { display: grid; gap: 14px; }
.ro-detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ro-detail-head b { font-size: 13.5px; }
.ro-detail-head small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.ro-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.ro-detail-kv { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ro-detail-kv > span { color: var(--muted); font-size: 11.5px; }
.ro-detail-kv > b { color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.ro-detail-kv > b small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; }
.ro-detail-kv-block { grid-column: 1 / -1; }
.ro-detail-perms { display: flex; flex-wrap: wrap; gap: 6px; }
.ro-detail-perm { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink-soft); font-size: 11px; font-weight: 500; }
.ro-detail-muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.ro-detail-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.ro-all-modal { max-width: 780px; }
.ro-all-activity { display: grid; min-height: 320px; }
.ro-all-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; color: var(--muted); font-size: 11.5px; }
.ro-all-summary b { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.ro-all-list { max-height: 54vh; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ro-all-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.ro-all-row:last-child { border-bottom: 0; }
.ro-all-time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ro-all-main { min-width: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ro-all-main b { margin-right: 5px; color: var(--ink); font-weight: 600; }
.ro-all-store { justify-self: end; max-width: 130px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-all-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--muted); font-size: 11.5px; }
.ro-all-pager-actions { display: flex; gap: 8px; }
.ro-all-loading, .ro-all-empty { display: flex; align-items: center; justify-content: center; min-height: 300px; color: var(--muted); font-size: 12px; }
.ro-form-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: start; }
.ro-form-note { color: var(--muted); font-size: 12px; line-height: 1.7; padding-top: 2px; }
.ro-store-title, .ro-perm-title { margin: 12px 0 8px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.ro-perm-title small { margin-left: 6px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.ro-store-title small { margin-left: 6px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.ro-store-picker { margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.ro-store-picker.is-disabled { opacity: .56; }
.ro-store-search { display: flex; align-items: center; gap: 10px; }
.ro-store-search input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; }
.ro-store-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ro-store-summary { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ro-store-selected-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
.ro-link-btn { border: 0; background: transparent; color: var(--brand); font: inherit; font-size: 11.5px; cursor: pointer; padding: 2px 4px; }
.ro-link-btn:hover { text-decoration: underline; }
.ro-store-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; margin: 6px 0 8px; }
.ro-store-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; padding: 3px 4px 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-soft); font-size: 11.5px; }
.ro-store-chip > span, .ro-store-chip { min-width: 0; }
.ro-store-chip button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; }
.ro-store-chip button:hover { background: var(--danger-soft-bg); color: var(--danger-soft-ink); }
.ro-store-chip.muted { border-style: dashed; color: var(--muted); padding-right: 8px; }
.ro-store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ro-store-results { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ro-store-result { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 6px; color: var(--ink-soft); cursor: pointer; }
.ro-store-result:hover { background: var(--surface-soft); }
.ro-store-result.is-selected { background: var(--brand-soft); }
.ro-store-result input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.ro-store-result span { min-width: 0; }
.ro-store-result b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.ro-store-result small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.ro-store-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ro-perm-item { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.ro-perm-item input { width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.ro-perm-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.ro-empty { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.ro-role-form .field { margin-bottom: 12px; }
.ro-role-form .btn.danger { margin-top: 12px; }
.ro-perm-groups { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.ro-perm-group { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.ro-perm-group h4 { margin: 0 0 8px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.ro-perm-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ro-matrix { margin-top: 14px; overflow: hidden; }
.ro-table-wrap { overflow-x: auto; }
.ro-table { min-width: 720px; }
.ro-table th:first-child, .ro-table td:first-child { width: 34%; }
.ro-table th:not(:first-child), .ro-table td:not(:first-child) { text-align: center; width: 16.5%; }
.ro-table td b { display: block; font-size: 12.5px; font-weight: 600; }
.ro-members-table { min-width: 820px; }
.ro-members-table th:first-child, .ro-members-table td:first-child { width: auto; text-align: left; }
.ro-members-table th:nth-child(2), .ro-members-table td:nth-child(2) { width: 130px; }
.ro-members-table th:nth-child(3), .ro-members-table td:nth-child(3) { width: 28%; }
.ro-members-table th:nth-child(4), .ro-members-table td:nth-child(4) { width: 80px; }
.ro-members-table th:last-child, .ro-members-table td:last-child { width: 220px; }
.ro-members-table td b { font-size: 12.5px; }
.ro-members-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.ro-audit { margin-top: 14px; overflow: hidden; }
.ro-audit .panel-head { align-items: flex-start; gap: 12px; }
.ro-audit .panel-head > div { min-width: 0; }
.ro-audit-table { min-width: 720px; }
.ro-audit-table th:first-child, .ro-audit-table td:first-child { width: 150px; text-align: left; }
.ro-audit-table th:nth-child(2), .ro-audit-table td:nth-child(2) { width: 22%; text-align: left; }
.ro-audit-table th:nth-child(3), .ro-audit-table td:nth-child(3) { text-align: left; }
.ro-audit-table th:last-child, .ro-audit-table td:last-child { width: 22%; text-align: left; }
.ro-audit-time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ro-group-row td { padding-top: 12px; padding-bottom: 8px; color: var(--ink-soft); background: var(--surface-soft); font-size: 12.5px; font-weight: 600; }
.ro-group-row td span { margin-left: 8px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.ro-check { font-size: 15px; font-weight: 700; }
.ro-check.yes { color: var(--ok); }
.ro-check.no { color: var(--line-strong); }
.ro-bottom { margin-top: 14px; }
.ro-bottom .panel:last-child .panel-body { padding-top: 8px; }
.ro-reserve { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }
.ro-reserve b { color: var(--ink); font-weight: 600; }
@media (max-width: 1100px) {
  .ro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro-team-grid { grid-template-columns: 1fr; }
  .ro-team-grid > .panel { height: auto; }
  .ro-member-list { flex: 0 1 auto; max-height: 360px; }
  .ro-activity-list { flex: 0 1 auto; max-height: 320px; }
}
@media (max-width: 760px) {
  .ro-intro { flex-direction: column; }
  .ro-toolbar { align-items: flex-start; flex-direction: column; }
  .ro-role-dock { align-items: flex-start; flex-wrap: wrap; }
  .ro-role-dock-copy { flex: 1 1 180px; min-width: 0; }
  .ro-role-dock > .btn { order: 2; }
  .ro-role-strip { order: 3; flex-basis: 100%; }
  .ro-manager-head { flex-direction: column; }
  .ro-role-manager-grid { grid-template-columns: 1fr; }
  .ro-members .panel-head { flex-direction: column; }
  .ro-members-head-actions { justify-content: flex-start; }
  .ro-member-row { grid-template-columns: 1fr; gap: 8px; }
  .ro-member-facts { gap: 7px 12px; }
  .ro-member-actions { justify-content: flex-start; }
  .ro-member-toolbar input[type="search"] { flex-basis: 100%; }
  .ro-member-toolbar select { flex: 1 1 120px; }
  .ro-member-pager { align-items: flex-start; flex-direction: column; }
  .ro-activity-row { grid-template-columns: 1fr auto; gap: 6px 8px; }
  .ro-activity-time { grid-column: 1 / -1; }
  .ro-detail-grid { grid-template-columns: 1fr; }
  .ro-detail-head small { margin-left: 0; width: 100%; }
  .ro-audit .panel-head { flex-direction: column; }
  .ro-audit-actions { width: 100%; justify-content: space-between; }
  .ro-all-row { grid-template-columns: 1fr auto; gap: 6px 8px; }
  .ro-all-time { grid-column: 1 / -1; }
  .ro-grid { grid-template-columns: 1fr; }
  .ro-bottom { grid-template-columns: 1fr; }
  .ro-form-row { grid-template-columns: 1fr; }
  .ro-perm-items { grid-template-columns: 1fr; }
  .ro-store-search { flex-wrap: wrap; gap: 6px; }
  .ro-store-summary { white-space: normal; }
}

/* ---------- 公开站点采集 / 公开站点商品 ---------- */
.ps-page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px;
}
.ps-page-head h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.ps-page-head p { margin: 0; max-width: 760px; font-size: 12.5px; line-height: 1.7; }
.ps-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ps-title { font-size: 20px; }

.ps-collect, .ps-panel {
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel);
  box-shadow: var(--shadow-card); padding: 18px 20px; margin-bottom: 16px;
}
.ps-collect { background: linear-gradient(180deg, var(--surface-soft), var(--panel)); }
.ps-collect-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.ps-collect-head h3 { margin: 0 0 4px; font-size: 15px; }
.ps-collect-head p { margin: 0; font-size: 12px; line-height: 1.7; }
.ps-collect-field { min-width: 310px; }
.ps-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 7px; }
.ps-collect-field .ps-store-picker { min-width: 280px; width: 320px; max-width: 100%; }
.ps-toolbar .ps-store-picker { min-width: 240px; width: 260px; max-width: 100%; }
.ps-store-picker { position: relative; }
.ps-store-input {
  width: 100%; height: 38px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 34px 0 11px; background: var(--input-bg); color: var(--ink); outline: none; cursor: text;
}
.ps-store-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.ps-store-caret { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 12px; }
.ps-store-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 304px; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-card); padding: 6px;
}
.ps-store-pop[hidden] { display: none; }
.ps-store-hint { padding: 5px 8px 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.ps-store-list { display: grid; gap: 2px; }
.ps-store-item {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 7px;
  padding: 7px 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.ps-store-item:hover, .ps-store-item.active { background: var(--hover); }
.ps-store-item-main { flex: 1; min-width: 0; }
.ps-store-item-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.ps-store-item-domain { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.ps-store-item-check { flex: 0 0 auto; color: var(--brand); font-weight: 700; }
.ps-store-empty { padding: 10px 8px; font-size: 12px; color: var(--muted); }
.ps-collect textarea {
  width: 100%; min-height: 76px; resize: vertical; border: 1px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); padding: 11px 13px; font: inherit; line-height: 1.6;
}
.ps-collect textarea:focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--focus-ring); }
.ps-collect-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.ps-collect-foot .muted { font-size: 12px; }
.ps-collect .check { margin-top: 0; }

.ps-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ps-toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ps-toolbar-store { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ps-toolbar-store .ps-label { margin: 0; white-space: nowrap; }
.ps-toolbar .check { margin-top: 0; font-size: 12px; }
.ps-search-box { display: flex; gap: 7px; align-items: center; }
.ps-search-box input { width: 230px; height: 36px; }
.ps-auto-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 9px; margin: 4px 0 12px; }
.ps-auto-row .check { margin-top: 0; font-size: 12px; }
.ps-batch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.ps-batch-row .grow { flex: 1; }
.ps-batch-row .muted { font-size: 12px; }
.ps-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 12px; }
.ps-summary .ps-label { margin: 0; }
.ps-summary b { font-size: 13px; }

.ps-cards { display: grid; gap: 12px; }
.ps-card {
  position: relative; display: flex; gap: 12px; padding: 16px 18px 14px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ps-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 24px rgba(16,24,40,.06); }
.ps-card.selected { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), var(--panel)); box-shadow: 0 0 0 3px var(--focus-ring); }
.ps-check { flex: 0 0 22px; padding-top: 3px; display: flex; justify-content: flex-start; }
.ps-check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.ps-card-main { flex: 1; min-width: 0; }
.ps-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ps-card-title { min-width: 0; }
.ps-domain {
  display: inline-block; padding: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 750; letter-spacing: -.015em; cursor: pointer; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ps-domain:hover { color: var(--brand); }
.ps-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.ps-badges .badge[data-updates] { cursor: pointer; }
.ps-card-index { flex: 0 0 auto; color: var(--placeholder); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ps-totals { display: flex; align-items: baseline; gap: 9px; margin: 9px 0 12px; }
.ps-total { display: inline-flex; align-items: baseline; gap: 5px; }
.ps-total b { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.ps-total em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.ps-slash { color: var(--placeholder); }
.ps-excluded { font-size: 11px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; padding: 2px 7px; }

.ps-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 10px 12px; background: var(--surface-soft); border: 1px solid var(--line-soft); border-radius: 10px; }
.ps-metric { min-width: 0; }
.ps-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 5px; }
.ps-metric-head span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ps-metric-head b { font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #75a1ff, var(--brand)); }
.ps-publish-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
.ps-publish-row > span:first-child { color: var(--muted); font-size: 11.5px; }
.ps-publish-row b { font-weight: 650; }
.ps-ok { color: var(--ok); }
.ps-warn { color: var(--warn); }
.ps-err { color: var(--danger); }
.ps-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; }
.ps-meta-row .muted { font-size: 11.5px; }
.ps-error-text { color: var(--danger); font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-card-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.ps-card-actions .btn.sm { padding: 5px 9px; font-size: 11.5px; }
.ps-card-actions .link-btn { font-size: 11.5px; margin-left: auto; }

.ps-collect-list { display: grid; gap: 10px; }
.ps-collect-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface-soft); }
.ps-collect-main { min-width: 0; }
.ps-collect-row .ps-card-head { justify-content: flex-start; gap: 10px; }
.ps-collect-row .ps-domain { font-size: 14px; cursor: default; }
.ps-collect-row .ps-meta-row { margin-top: 7px; gap: 14px; }
.ps-collect-row .ps-error-text { margin: 6px 0 0; }
.ps-collect-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.ps-modal { width: min(1080px, 94vw); }
.ps-modal .mgr-body { min-height: 80px; }
.ps-modal-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; font-size: 12.5px; }
.ps-modal-summary b { font-size: 14px; }
.ps-modal-note { font-size: 11.5px; line-height: 1.7; margin: 12px 0 0; }
.ps-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ps-linked-table td { vertical-align: top; font-size: 12px; }
.ps-current-row { background: var(--brand-soft); }
.ps-current-row td { font-weight: 500; }

.ps-products-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ps-products-toolbar select { min-width: 150px; height: 36px; }
.ps-products-toolbar input[type="search"] { flex: 1 1 220px; height: 36px; }
.ps-products-toolbar .grow { flex: 1; }
.ps-products-table td { vertical-align: top; font-size: 12px; }
.ps-products-table .thumb.sm { width: 36px; height: 36px; border-radius: 7px; }
.ps-products-table td b { display: block; max-width: 420px; line-height: 1.4; font-size: 12.5px; }
.ps-original { font-size: 10.5px; color: var(--muted); margin-top: 3px; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-products-table .ps-err { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
.ps-detail-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 18px; }
.ps-detail-media { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; background: var(--surface-soft); }
.ps-detail-thumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.ps-detail-thumbs .thumb.md { width: 82px; height: 82px; border-radius: 8px; }
.ps-detail-thumbs .thumb.lg { width: 100%; height: 180px; border-radius: 8px; }
.ps-detail-info { min-width: 0; }
.ps-detail-line { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12px; }
.ps-detail-line span { color: var(--muted); }
.ps-detail-line b { font-weight: 550; word-break: break-word; }
.ps-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ps-modal .field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.job-filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.job-filter-bar select { min-width: 145px; height: 36px; }
.job-filter-bar .grow { flex: 1; }
.job-filter-bar .muted { font-size: 12px; }
.job-table-panel { overflow: hidden; }
.job-actions { white-space: nowrap; }

/* ---------- AI 账号管理 ---------- */
.ai-head { margin-bottom: 18px; align-items: center; }
.ai-kicker { display: block; margin-bottom: 7px; color: var(--brand); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.ai-usage-note {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; margin-bottom: 18px;
  border: 1px solid var(--line); background: var(--surface-soft); border-radius: 14px;
}
.ai-usage-ic { color: var(--brand); flex: none; margin-top: 1px; }
.ai-usage-note b { display: block; font-size: 13px; margin-bottom: 4px; }
.ai-usage-note p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.ai-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 58px 20px; border: 1px dashed var(--line-strong); border-radius: 14px;
  background: var(--surface-soft); text-align: center;
}
.ai-empty-ic { color: var(--brand); margin-bottom: 4px; }
.ai-empty b { font-size: 15px; }
.ai-empty p { margin: 0; color: var(--muted); font-size: 12.5px; }
.ai-account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.ai-account-card { padding: 18px; display: flex; flex-direction: column; gap: 13px; }
.ai-account-head { display: flex; align-items: flex-start; gap: 11px; }
.ai-account-ic { color: var(--brand); flex: none; margin-top: 2px; }
.ai-account-title { min-width: 0; flex: 1; }
.ai-account-title h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.4; }
.ai-account-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; word-break: break-all; }
.ai-account-meta { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); }
.ai-account-meta span { display: flex; gap: 7px; align-items: baseline; font-size: 12px; }
.ai-account-meta b { color: var(--muted); font-weight: 500; }
.ai-account-meta em { font-style: normal; color: var(--ink-soft); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ai-model-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-model-chips span {
  display: inline-block; max-width: 100%; padding: 4px 8px; border-radius: 6px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--ink-soft);
  font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-account-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; }
.ai-account-actions .btn { gap: 5px; }
.ai-account-actions .danger-text { margin-left: auto; }
.modal.mgr.ai-modal { max-width: 620px; }
.ai-modal-body { padding-top: 18px; }
.ai-modal-body .field:last-child { margin-bottom: 2px; }
.ai-modal .mgr-foot, .ai-confirm .mgr-foot { justify-content: flex-end; }
.ai-model-field { margin-bottom: 16px; }
.ai-model-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ai-model-head label { font-size: 12px; color: var(--muted); }
.ai-model-head label span { font-size: 11.5px; }
.ai-model-tools { display: flex; align-items: center; gap: 10px; }
.ai-model-tools .muted { font-size: 11.5px; }
.ai-select-all {
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 5px 10px;
  background: var(--panel); color: var(--ink-soft); font-size: 12px; cursor: pointer;
}
.ai-select-all:hover { border-color: var(--brand); color: var(--brand); }
.ai-model-scroll {
  max-height: 302px; overflow: auto; display: grid; gap: 8px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft);
}
.ai-model-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
}
.ai-model-option:hover { border-color: var(--brand-line); }
.ai-model-option.is-checked { border-color: var(--brand-line); background: var(--brand-soft); }
.ai-model-option input { flex: none; margin-top: 3px; }
.ai-model-copy { min-width: 0; }
.ai-model-copy b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.ai-model-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.ai-star { color: var(--brand); font-style: normal; }
.ai-field-hint { margin: 0; font-size: 11.5px; line-height: 1.6; }
.ai-confirm-text { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.ai-confirm-text b { color: var(--ink); }

@media (max-width: 720px) {
  .ai-head { align-items: flex-start; }
  .ai-account-grid { grid-template-columns: 1fr; }
  .ai-usage-note { padding: 15px 16px; }
  .ai-account-meta { gap: 10px 18px; }
  .ai-account-actions .danger-text { margin-left: 0; }
  .ai-model-head { align-items: flex-start; flex-direction: column; }
  .ai-model-tools { width: 100%; justify-content: space-between; }
}

@media (max-width: 980px) {
  .ps-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-toolbar-left { width: 100%; }
  .ps-search-box { width: 100%; }
  .ps-search-box input { flex: 1; width: auto; }
}
@media (max-width: 720px) {
  .ps-page-head { flex-direction: column; }
  .ps-head-actions { justify-content: flex-start; }
  .ps-collect-head { flex-direction: column; }
  .ps-collect-field, .ps-collect-field .ps-store-picker { min-width: 0; width: 100%; }
  .ps-toolbar-store { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .ps-toolbar-store .ps-store-picker { width: 100%; }
  .ps-store-pop { max-height: 46vh; }
  .ps-collect-foot { flex-direction: column; align-items: stretch; }
  .ps-collect-foot .btn { width: 100%; }
  .ps-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-card { padding: 13px 13px 12px 10px; }
  .ps-card-actions .link-btn { margin-left: 0; }
  .ps-collect-row { flex-direction: column; align-items: stretch; }
  .ps-collect-actions { justify-content: flex-end; }
  .ps-detail-grid { grid-template-columns: 1fr; }
  .job-filter-bar select { flex: 1 1 140px; }
  .job-filter-bar .muted { width: 100%; }
}


