/* Integration Hub console skin — layered on Pear Admin / Layui. */
:root {
  --global-primary-color: #1677ff;
  --hub-primary: #1677ff;
  --hub-primary-hover: #4096ff;
  --hub-primary-soft: #edf4ff;
  --hub-ink: #1f2a37;
  --hub-ink-2: #3d4a5c;
  --hub-ink-3: #5b6878;
  --hub-muted: #8a94a3;
  --hub-border: #e6eaf0;
  --hub-border-2: #d9dee6;
  --hub-divider: #eef1f5;
  --hub-bg: #f5f7fa;
  --hub-bg-soft: #f8fafc;
  --hub-side: #1a2433;
  --hub-side-hover: #26384f;
  --hub-side-text: #b9c8dc;
  --hub-side-label: #6f7f95;
  --hub-ok: #178652; --hub-ok-bg: #edf8f2; --hub-ok-dot: #22a06b;
  --hub-warn: #b86518; --hub-warn-bg: #fff3e7; --hub-warn-dot: #f0a145;
  --hub-err: #b42318; --hub-err-bg: #fff1f0; --hub-err-line: #ffd8d4; --hub-err-dot: #e5534b;
  --hub-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hub-radius: 8px;
  --hub-radius-sm: 6px;
}
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--hub-ink);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

/* ---------- Login (split layout) ---------- */
.hub-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  background: #fff;
}
.hub-login-brand {
  background: var(--hub-side);
  color: #fff;
  padding: clamp(32px, 6vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hub-login-brand .hub-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.hub-login-brand h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; font-weight: 600; max-width: 440px; }
.hub-login-brand ul { display: grid; gap: 16px; max-width: 440px; margin-top: 28px; }
.hub-login-brand li { display: flex; gap: 12px; align-items: flex-start; }
.hub-login-brand li .layui-icon { color: #69a7ff; line-height: 22px; }
.hub-login-brand li b { display: block; font-weight: 500; }
.hub-login-brand li span { color: #93a3b8; font-size: 13px; }
.hub-login-brand small { color: var(--hub-side-label); font-size: 12px; }
/* Stacked (below two 420px columns): keep only the brand bar so the form stays above the fold. */
@media (max-width: 839px) {
  .hub-login { align-content: start; }
  .hub-login-brand { padding: 20px 24px; }
  .hub-login-brand > div:not(.hub-brand), .hub-login-brand small { display: none; }
}
.hub-login-panel { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.hub-login-panel > div { width: 100%; max-width: 360px; }
.hub-login-panel h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.hub-login-panel > div > p { color: var(--hub-ink-3); font-size: 13px; margin: 0; }
.hub-login form { display: grid; gap: 20px; margin: 24px 0; }
.hub-login label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--hub-ink-2); }
.hub-login-panel > div > p.hub-demo-hint { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--hub-radius-sm); background: var(--hub-primary-soft); color: var(--hub-primary); font-size: 13px; }
.hub-login label .hub-hint { font-weight: 400; color: var(--hub-muted); font-size: 12px; margin-left: 6px; }
.hub-login .layui-input { height: 40px; font-size: 14px; }
.hub-login input[name="code"] { font-family: var(--hub-mono); letter-spacing: .3em; font-size: 16px; }
.hub-login input[name="code"]::placeholder { font-family: inherit; letter-spacing: 0; font-size: 14px; }
.hub-login .layui-btn { height: 40px; line-height: 40px; font-size: 14px; font-weight: 500; }
.hub-login small.hub-login-foot { display: block; padding-top: 16px; border-top: 1px solid var(--hub-divider); color: var(--hub-muted); font-size: 12px; line-height: 1.7; }
.hub-logo {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--hub-primary); color: #fff; font-size: 18px; font-weight: 700;
}
#login-error:empty { display: none; }
#login-error {
  padding: 10px 12px; border-radius: var(--hub-radius-sm);
  background: var(--hub-err-bg); border: 1px solid var(--hub-err-line);
  color: var(--hub-err); font-size: 13px; margin: 0;
}

/* Layui's icon font, usable without loading Layui (operator shell). */
@font-face { font-family: "hub-icon"; src: url("/admin/web/vendor/pear/component/layui/font/iconfont.woff2") format("woff2"); font-display: block; }
.hub-icon { font-family: "hub-icon" !important; font-style: normal; line-height: 1; -webkit-font-smoothing: antialiased; }

/* ---------- Operator console: login ---------- */
.hub-console { margin: 0; font-size: 14px; line-height: 1.5; background: var(--hub-bg); }
.hub-console *, .hub-console *::before, .hub-console *::after { box-sizing: border-box; }
:where(.hub-console) :where(button, input) { font: inherit; }
.hub-console .hub-login-brand li .hub-icon { color: #69a7ff; font-size: 16px; line-height: 22px; }
.hub-console .hub-login-brand .hub-logo { color: #fff; }
.hub-console .hub-login-panel form { width: 100%; max-width: 360px; margin: 0; }
.hub-console .hub-login-panel h2 { margin: 0 0 6px; }
.hub-console .hub-login-panel form > div > p { margin: 0; color: var(--hub-ink-3); font-size: 13px; }
.hub-console .hub-login-panel p.hub-demo-hint { margin: 0; padding: 10px 12px; border-radius: var(--hub-radius-sm); background: var(--hub-primary-soft); color: var(--hub-primary); font-size: 13px; }
.hub-console .hub-login input {
  height: 40px; padding: 0 12px; border: 1px solid var(--hub-border-2); border-radius: var(--hub-radius-sm);
  font-size: 14px; color: var(--hub-ink); outline: none; width: 100%; background: #fff;
}
.hub-console .hub-login input:focus { border-color: var(--hub-primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.hub-console .hub-login button[type="submit"] {
  height: 40px; border: 0; border-radius: var(--hub-radius-sm); background: var(--hub-primary); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.hub-console .hub-login button[type="submit"]:hover { background: var(--hub-primary-hover); }
.hub-console .hub-login button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.hub-console #login-error::before { font-family: "hub-icon"; content: "\e693"; margin-right: 8px; }
.hub-console .hub-login small.hub-login-foot { margin: 0; }

/* ---------- Operator console: shell ---------- */
.hub-shell { display: flex; height: 100vh; overflow: hidden; background: var(--hub-bg); }
.hub-side {
  width: 230px; flex-shrink: 0; background: var(--hub-side); height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.hub-shell.collapsed .hub-side { display: none; }
.hub-side-brand {
  height: 60px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06); color: #fff; font-size: 15px; font-weight: 600;
}
.hub-side-brand .hub-logo { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
.hub-menu { padding: 12px 12px 24px; display: grid; gap: 4px; }
.hub-menu-group { display: grid; gap: 2px; padding-top: 8px; }
.hub-menu-label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--hub-side-label); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.hub-menu-label .hub-icon { font-size: 14px; }
.hub-menu-item {
  display: flex; align-items: center; width: 100%; height: 38px; padding: 0 12px 0 32px; border: 0;
  border-radius: var(--hub-radius-sm); background: transparent; color: var(--hub-side-text); font-size: 14px;
  text-align: left; cursor: pointer;
}
.hub-menu-item:hover { background: var(--hub-side-hover); color: #fff; }
.hub-menu-item.active { background: var(--hub-primary); color: #fff; font-weight: 500; }
.hub-menu-item:focus-visible, .hub-icon-btn:focus-visible, .hub-tabbar .hub-tab:focus-visible { outline: 2px solid #8bbaff; outline-offset: 1px; }
.hub-frame { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-header {
  height: 60px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--hub-border);
  display: flex; align-items: center; gap: 4px; padding: 0 16px 0 8px;
}
.hub-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: var(--hub-radius-sm); background: transparent;
  color: var(--hub-ink-2); font-family: "hub-icon"; font-size: 17px; cursor: pointer;
}
.hub-icon-btn:hover { background: #f2f4f7; }
.hub-crumb { display: flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 13px; color: var(--hub-muted); }
.hub-crumb span:nth-child(2) { color: #c4cbd5; }
.hub-crumb b { color: var(--hub-ink); font-weight: 400; }
.hub-user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hub-avatar {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--hub-primary-soft); color: var(--hub-primary); font-size: 12px; font-weight: 600;
}
.hub-console #operator { padding: 0; margin-right: 4px; color: var(--hub-ink-2); font-size: 13px; }
.hub-console #logout {
  height: 30px; padding: 0 12px; margin: 0; border: 1px solid var(--hub-border-2); border-radius: var(--hub-radius-sm);
  background: #fff; color: var(--hub-ink-2); font-size: 13px; cursor: pointer;
}
.hub-console #logout:hover { border-color: var(--hub-primary); color: var(--hub-primary); }
.hub-tabbar {
  height: 40px; flex-shrink: 0; background: #fff; border-bottom: 1px solid var(--hub-border);
  display: flex; align-items: flex-end; gap: 2px; padding: 0 12px; overflow-x: auto; overflow-y: hidden;
}
.hub-tabbar .hub-tab {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 14px; border: 1px solid transparent;
  border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--hub-ink-3); font-size: 13px; white-space: nowrap; cursor: pointer;
}
.hub-tabbar .hub-tab:hover { background: var(--hub-bg); }
.hub-tabbar .hub-tab.active { position: relative; top: 1px; border-color: var(--hub-border); background: var(--hub-bg); color: var(--hub-primary); font-weight: 500; }
.hub-tabbar .hub-tab.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hub-primary); }
.hub-tabbar .hub-tab-close {
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent;
  color: var(--hub-muted); font-family: "hub-icon"; font-size: 10px; cursor: pointer;
}
.hub-tabbar .hub-tab-close:hover { background: var(--hub-border); }
.hub-pages { flex: 1; min-height: 0; position: relative; }
.hub-pages iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--hub-bg); }
.hub-footer { padding: 14px 24px; color: var(--hub-muted); font-size: 12px; border-top: 1px solid var(--hub-border); background: #fff; }
.hub-nav-cover { position: fixed; inset: 0; z-index: 49; background: rgba(15, 23, 35, .45); }
@media (max-width: 899px) {
  .hub-side { position: fixed; z-index: 50; left: 0; top: 0; width: 260px; max-width: 84vw; transform: translateX(-100%); transition: transform .2s; }
  .hub-shell.nav-open .hub-side { transform: none; }
  .hub-shell.collapsed .hub-side { display: flex; }
  .hub-menu-item { height: 44px; }
  .hub-crumb, .hub-tabbar, .hub-console #operator { display: none; }
  .hub-footer { display: none; }
}

/* ---------- Shell: header, side, tabs ---------- */
.pear-admin .layui-header { border-bottom: 1px solid var(--hub-border); box-shadow: none; }
.pear-admin .layui-header .layui-nav .layui-nav-item > a { color: var(--hub-ink-2); font-size: 17px; }
.pear-admin .layui-header .layui-nav .layui-nav-item > a:hover { color: var(--hub-primary); }
#operator { padding: 0 12px; color: var(--hub-ink-2); font-size: 13px; }
#logout { margin-right: 16px; }
.pear-admin .layui-side { box-shadow: none; }
.pear-admin .layui-logo,
.pear-admin .layui-side-scroll,
.pear-nav-tree { background-color: var(--hub-side) !important; }
.pear-admin .layui-logo { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.layui-logo .title { font-size: 15px !important; font-weight: 600 !important; color: #fff !important; }
.pear-nav-tree .layui-nav-item > a { height: 44px; line-height: 44px; color: var(--hub-side-label) !important; font-size: 12px; }
.pear-nav-tree .layui-nav-item a span { letter-spacing: .04em; }
.pear-nav-tree .layui-nav-child { background: transparent !important; padding: 0 12px; }
.pear-nav-tree .layui-nav-item dd a {
  height: 38px; line-height: 38px; border-radius: var(--hub-radius-sm);
  color: var(--hub-side-text) !important; margin: 2px 0; padding-left: 32px !important;
}
.pear-nav-tree .layui-nav-item dd a span { font-size: 14px; letter-spacing: 0; }
.pear-nav-tree .layui-nav-item dd a:hover { background: var(--hub-side-hover) !important; color: #fff !important; }
.pear-nav-tree .layui-nav-child dd.layui-this,
.pear-nav-tree .layui-nav-child dd.layui-this a { background: var(--hub-primary) !important; color: #fff !important; border-radius: var(--hub-radius-sm); }
.pear-nav-tree .layui-nav-item dd a .layui-icon-right { display: none; }
.pear-tab-page > .layui-tab-title { border: 0; border-bottom: 1px solid var(--hub-border); }
.pear-tab-page > .layui-tab-title li { border-right: 0; color: var(--hub-ink-3); font-size: 13px; }
.pear-tab-page > .layui-tab-title li.layui-this { color: var(--hub-primary); background: var(--hub-bg); font-weight: 500; }
.pear-tab-page > .layui-tab-title .pear-tab-page-active { width: 6px; height: 6px; margin-right: 8px; }
.pear-admin .layui-footer { color: var(--hub-muted); font-size: 12px; }

/* ---------- Page ---------- */
.hub-page { background: var(--hub-bg); padding: clamp(14px, 2.4vw, 24px); color: var(--hub-ink); }
.hub-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hub-heading h1 { font-size: 20px; font-weight: 600; line-height: 1.4; margin-top: 2px; }
.hub-heading p { margin-top: 4px; color: var(--hub-ink-3); font-size: 13px; max-width: 720px; }
.hub-heading p:empty { display: none; }
.hub-breadcrumb, #breadcrumb { margin: 0 0 4px; color: var(--hub-muted); font-size: 12px; }
.hub-description { color: var(--hub-ink-3); font-size: 13px; line-height: 1.7; margin: 0 0 16px; max-width: 760px; }
.hub-muted { color: var(--hub-muted); font-size: 12px; }

.hub-card {
  background: #fff; border: 1px solid var(--hub-border); border-radius: var(--hub-radius);
  padding: 16px 20px; margin-bottom: 16px;
}
.hub-card > h2 { font-size: 15px; font-weight: 600; margin: -2px 0 14px; }
.hub-card h3 { font-size: 13px; font-weight: 600; margin: 16px 0 8px; }

/* Notices */
#notice.hub-card { padding: 10px 14px; background: var(--hub-ok-bg); border-color: #c6ebd6; color: var(--hub-ok); font-size: 13px; }
.hub-error {
  padding: 10px 14px; border-radius: var(--hub-radius-sm);
  background: var(--hub-err-bg); border: 1px solid var(--hub-err-line);
  color: var(--hub-err); margin: 12px 0; white-space: pre-wrap; font-size: 13px;
}
.hub-alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--hub-radius-sm); font-size: 13px; margin: 0 0 10px; line-height: 1.6; }
.hub-alert::before { font-family: layui-icon; content: "\e60b"; }
.hub-alert.warn { background: #fff7ed; color: #9a4d0e; }
.hub-alert.warn::before { content: "\e702"; }
.hub-alert.info { background: #f2f6fc; color: var(--hub-ink-2); }
.hub-alert.info::before { color: var(--hub-primary); }

/* Buttons & inputs */
.layui-btn { background: var(--hub-primary); border-radius: var(--hub-radius-sm); }
.layui-btn:hover { opacity: 1; background: var(--hub-primary-hover); }
.layui-btn-sm { height: 30px; line-height: 28px; padding: 0 12px; font-size: 13px; }
.layui-btn-primary { background: #fff; border-color: var(--hub-border-2); color: var(--hub-ink); }
.layui-btn-primary:hover { background: #fff; border-color: var(--hub-primary); color: var(--hub-primary); }
.layui-btn[disabled], .layui-btn:disabled { opacity: .5; cursor: not-allowed; }
.layui-btn + .layui-btn { margin-left: 0; }
.hub-page button[aria-busy="true"], .hub-merchant button[aria-busy="true"] { opacity: .65; cursor: progress; }
.layui-input, .hub-page select {
  height: 32px; border-color: var(--hub-border-2) !important; border-radius: var(--hub-radius-sm); font-size: 13px; color: var(--hub-ink);
}
.layui-input:focus { border-color: var(--hub-primary) !important; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }

/* Toolbars & filters */
.hub-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.hub-toolbar input { max-width: 300px; }
.hub-toolbar .layui-btn { margin: 0; }
.hub-filter {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 16px; align-items: end; margin-bottom: 14px;
}
.hub-filter .hub-filter-actions { display: flex; gap: 8px; justify-content: flex-end; grid-column: -2 / -1; }
.hub-field { display: grid; gap: 4px; color: var(--hub-ink-3); font-size: 12px; }
.hub-field .layui-input { box-sizing: border-box; width: 100%; }
.hub-pager { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; gap: 12px; }

/* Tables */
.hub-table-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--hub-divider); border-radius: var(--hub-radius-sm); }
.hub-table { margin: 0 !important; color: var(--hub-ink) !important; }
.hub-table td, .hub-table th {
  font-size: 13px; padding: 11px 16px !important; border-width: 0 0 1px !important;
  border-color: var(--hub-divider) !important; max-width: 400px; overflow-wrap: anywhere; line-height: 20px;
}
.hub-table th { background: var(--hub-bg-soft) !important; color: var(--hub-ink-3); font-size: 12px; font-weight: 500; white-space: nowrap; border-color: var(--hub-border) !important; }
.hub-table tbody tr:hover, .hub-table tr:hover { background: #fafbfc; }
.hub-table tr:last-child td { border-bottom: 0 !important; }
.hub-table th:last-child { text-align: right; }
.hub-mono { font-family: var(--hub-mono); font-size: 12px; color: var(--hub-ink-2); }

/* Row actions: text links instead of bordered buttons */
.hub-actions { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.hub-table .hub-actions { justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.hub-actions button { margin: 0 !important; }
.hub-table .hub-actions .layui-btn {
  height: auto; line-height: 20px; padding: 0; border: 0; background: none; color: var(--hub-primary); font-size: 13px;
}
.hub-table .hub-actions .layui-btn:hover { color: var(--hub-primary-hover); text-decoration: underline; }
.hub-table .hub-actions .hub-danger { color: var(--hub-ink-3); }
.hub-table .hub-actions .hub-danger:hover { color: var(--hub-err); }

/* Status */
.hub-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--hub-ok-bg); color: var(--hub-ok); border-radius: 999px; padding: 1px 8px; font-size: 12px; line-height: 20px;
}
.hub-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hub-tag.off { background: #f2f4f7; color: var(--hub-ink-3); }
.hub-tag.warn { background: var(--hub-warn-bg); color: var(--hub-warn); }
.hub-tag.err { background: var(--hub-err-bg); color: var(--hub-err); }
.hub-tag.ver { background: var(--hub-primary-soft); color: #1659c7; border-radius: 4px; font-family: var(--hub-mono); }
.hub-tag.ver::before, .hub-tag.plain::before { display: none; }

/* Stats */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.hub-grid > .hub-card { margin: 0; }
.hub-stat { display: grid; gap: 6px; padding: 18px 20px; }
.hub-stat > span { font-size: 13px; color: var(--hub-ink-3); }
.hub-stat strong { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0; font-variant-numeric: tabular-nums; }
.hub-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.hub-two > .hub-card { margin: 0; }
.hub-two + .hub-two { margin-top: 16px; }
.hub-trend { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding: 4px 0; border-bottom: 1px solid var(--hub-border); }
.hub-trend i { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; border-radius: 2px 2px 0 0; }
.hub-trend i:hover { background: var(--hub-bg); }
.hub-trend b { display: block; background: var(--hub-primary); min-height: 0; }
.hub-trend b.err { background: var(--hub-err-dot); }
.hub-trend-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--hub-ink-3); }
.hub-latest td:first-child, .hub-latest td:nth-child(4) { white-space: nowrap; }
.hub-link { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--hub-primary); font: inherit; font-size: 13px; cursor: pointer; }
.hub-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hub-shortcut {
  display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm);
  background: #fff; text-align: left; cursor: pointer; font: inherit;
}
.hub-shortcut:hover { border-color: var(--hub-primary); background: #f7faff; }
.hub-shortcut b { font-size: 13px; font-weight: 500; color: var(--hub-ink); }
.hub-shortcut span { font-size: 12px; color: var(--hub-muted); }
.hub-bar { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.hub-bar i { flex: 1; height: 6px; border-radius: 3px; background: #f2f4f7; overflow: hidden; display: block; }
.hub-bar i b { display: block; height: 100%; border-radius: 3px; background: var(--hub-ok-dot); }
.hub-bar i b.warn { background: var(--hub-warn-dot); }
.hub-bar i b.err { background: var(--hub-err-dot); }
.hub-bar span { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* Forms / dialogs */
.hub-editor { padding: 20px; display: grid; gap: 16px; }
.hub-editor label { display: grid; gap: 6px; font-weight: 500; font-size: 13px; color: var(--hub-ink-2); }
.hub-editor input, .hub-editor select, .hub-editor textarea {
  box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--hub-border-2); border-radius: var(--hub-radius-sm);
  background: #fff; color: var(--hub-ink); font-weight: 400; font-size: 13px; outline: none;
}
.hub-editor input:focus, .hub-editor select:focus, .hub-editor textarea:focus { border-color: var(--hub-primary); box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.hub-editor textarea { min-height: 100px; font: 12px/1.6 var(--hub-mono); }
.hub-editor small { font-weight: 400; color: var(--hub-muted); font-size: 12px; line-height: 1.6; }
.hub-editor .hub-actions { margin-top: 4px; justify-content: flex-end; border-top: 1px solid var(--hub-divider); padding-top: 14px; }
.hub-editor > button[type="submit"] { order: 100; justify-self: end; }
.hub-editor > .hub-error { order: 99; }
.hub-editor .hub-error[hidden] { display: none; }
.hub-empty { text-align: center; padding: 48px 20px; color: var(--hub-muted); font-size: 13px; }
.hub-empty::before { display: block; font-family: layui-icon; content: "\e62d"; font-size: 30px; color: #c4cbd5; margin-bottom: 6px; }
.hub-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hub-scope label { display: flex; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--hub-divider); }
.hub-scope input[type="checkbox"] { width: auto; min-height: 0; margin-top: 4px; accent-color: var(--hub-primary); }
.hub-scope h3 { font-size: 14px; margin-bottom: 10px; }
.hub-page pre, .hub-code {
  white-space: pre-wrap; overflow-wrap: anywhere; background: var(--hub-bg-soft); border: 1px solid var(--hub-divider);
  padding: 12px 14px; font: 12px/1.7 var(--hub-mono); border-radius: var(--hub-radius-sm); max-height: 420px; overflow: auto; margin: 0;
}
.hub-page details, .hub-merchant details { margin: 8px 0; border: 1px solid var(--hub-divider); border-radius: var(--hub-radius-sm); overflow: hidden; }
.hub-page details > pre, .hub-merchant details > pre { border: 0; border-radius: 0; }
.hub-page summary { cursor: pointer; padding: 10px 14px; background: #fafbfc; font-size: 13px; }
.hub-check { display: flex !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.hub-check input { width: auto !important; min-height: 0 !important; accent-color: var(--hub-primary); }
.hub-lookup { display: flex; gap: 6px; }
.hub-lookup input { min-width: 0; }
.hub-definition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 20px; margin: 0 0 16px; }
.hub-kv dt { font-size: 12px; color: var(--hub-muted); }
.hub-kv dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }

/* Invoke two-column */
.hub-invoke { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; align-items: start; }
.hub-invoke > .hub-card { margin: 0; }
.hub-invoke .hub-editor { padding: 0; }
.hub-invoke-result:empty::before {
  content: "选择渠道和 API，填写凭据后执行只读调用"; display: block; text-align: center; padding: 64px 20px; color: var(--hub-muted); font-size: 13px;
}
.hub-invoke-result pre { background: #0f1723; color: #d6e2f0; border: 0; }

/* Layer drawer & dialogs */
.layui-layer.hub-drawer { border-radius: 0; box-shadow: -8px 0 32px rgba(15, 23, 35, .12); }
.layui-layer.hub-drawer .layui-layer-content { padding: 0; }
.layui-layer .layui-layer-title { font-size: 15px; font-weight: 600; color: var(--hub-ink); background: #fff; border-bottom: 1px solid var(--hub-divider); }
.layui-layer-content > .hub-card { border: 0; margin: 0; }

/* Tabs */
.hub-tabs { display: flex; gap: 24px; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid var(--hub-border); margin: 16px 0; }
.hub-tabs .hub-tab, .hub-tabs .layui-btn.hub-tab {
  flex: 0 0 auto; height: auto; line-height: 20px; padding: 10px 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: var(--hub-ink-3); cursor: pointer; font: inherit; font-size: 14px;
}
.hub-tabs .hub-tab:hover { color: var(--hub-primary); background: transparent; }
.hub-tabs .hub-tab.active { color: var(--hub-primary); border-bottom-color: var(--hub-primary); font-weight: 600; }
.hub-tabs .hub-tab:focus-visible { outline: 2px solid var(--hub-primary); outline-offset: -2px; }

/* Grouped API lists */
.hub-api-group { border: 1px solid var(--hub-border); border-radius: var(--hub-radius); margin: 0 0 12px; background: #fff; padding: 0; overflow: hidden; }
.hub-api-group > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; cursor: pointer; color: var(--hub-ink); background: #fff !important; border: 0; }
.hub-api-group > summary::-webkit-details-marker { display: none; }
.hub-api-group > summary::before { font-family: layui-icon; content: "\e602"; font-size: 12px; color: var(--hub-muted); transition: transform .15s; }
.hub-api-group[open] > summary::before { transform: rotate(90deg); }
.hub-api-group > summary strong { font-size: 14px; font-weight: 600; margin: 0; white-space: nowrap; }
.hub-api-group > summary .hub-muted { padding: 1px 8px; border-radius: 4px; background: #f2f4f7; color: var(--hub-ink-3); white-space: nowrap; }
.hub-group-count { color: var(--hub-muted); font-size: 12px; margin: 0; white-space: nowrap; }
.hub-api-group > .layui-btn { margin: 0 16px 10px; }
.hub-api-group > .hub-table-wrap { border: 0; border-top: 1px solid var(--hub-divider); border-radius: 0; }
.hub-project-scope { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.hub-project-scope:empty { display: none; }
.hub-card > .hub-api-groups { margin: 0; }

/* ---------- Operator pages ---------- */
.hub-page { margin: 0; min-height: 100vh; }
.hub-page .hub-heading { margin-bottom: 16px; }
.hub-page #breadcrumb { margin: 0 0 2px; }
.hub-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-heading-actions:empty { display: none; }
.hub-page .layui-btn-sm { height: 32px; line-height: 30px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
.hub-page .layui-btn .hub-icon { font-size: 12px; }
.hub-page > #notice { margin-bottom: 16px; }
.hub-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--hub-radius); font-size: 13px; }
.hub-banner > .hub-icon { font-size: 16px; }
.hub-banner > div { flex: 1; white-space: pre-wrap; }
.hub-banner strong { font-weight: 600; }
.hub-banner.err { background: var(--hub-err-bg); border: 1px solid var(--hub-err-line); color: var(--hub-err); }
.hub-banner.ok { background: var(--hub-ok-bg); border: 1px solid #c6ebd6; color: var(--hub-ok); }
.hub-banner button {
  height: 28px; padding: 0 12px; border: 1px solid #f3b8b1; border-radius: var(--hub-radius-sm);
  background: #fff; color: var(--hub-err); font-size: 12px; cursor: pointer;
}
.hub-empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--hub-muted); font-size: 13px; }
.hub-empty-state .hub-icon { font-size: 30px; color: #c4cbd5; }
.hub-empty-state b { color: var(--hub-ink); font-size: 14px; font-weight: 500; }
.hub-empty-state b:empty { display: none; }
.hub-table-wrap.is-empty table { display: none; }
.hub-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hub-ok); white-space: nowrap; }
.hub-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hub-ok-dot); }
.hub-state.off { color: var(--hub-muted); }
.hub-state.off::before { background: #c4cbd5; }
.hub-stack { display: grid; }
.hub-stack b { font-size: 13px; font-weight: 500; color: var(--hub-ink); }
.hub-stack .hub-mono { color: var(--hub-muted); }
.hub-stack small { font-size: 12px; color: var(--hub-muted); }
.hub-last { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--hub-ink-2); }
.hub-last .ok { color: var(--hub-ok); }
.hub-last .err { color: var(--hub-err); }
.hub-wrap { white-space: normal; color: var(--hub-ink-3); }
.hub-chip { font-size: 12px; color: var(--hub-ink-3); padding: 1px 8px; border-radius: 4px; background: #f2f4f7; white-space: nowrap; }
.hub-chevron { font-family: "hub-icon"; font-style: normal; font-size: 12px; color: var(--hub-muted); width: 12px; transition: transform .15s; }
.hub-chevron::before { content: "\e602"; }
details[open] > summary > .hub-chevron { transform: rotate(90deg); }
.hub-page .hub-link { margin: 0; padding: 0; border: 0; background: none; color: var(--hub-primary); font-size: 13px; cursor: pointer; white-space: nowrap; }
.hub-page .hub-link:hover { color: var(--hub-primary-hover); }

/* Filter bar & list cards */
.hub-page .hub-toolbar { margin: 0; }
.hub-search { position: relative; flex: 1 1 240px; max-width: 320px; }
.hub-search .hub-icon { position: absolute; left: 10px; top: 9px; color: var(--hub-muted); font-size: 14px; }
.hub-page .hub-toolbar .hub-search input { max-width: none; width: 100%; padding-left: 32px; }
.hub-page .hub-toolbar select { min-width: 130px; padding: 0 8px; border: 1px solid var(--hub-border-2); background: #fff; }
.hub-segmented { display: flex; border: 1px solid var(--hub-border-2); border-radius: var(--hub-radius-sm); overflow: hidden; }
.hub-segmented button { height: 30px; padding: 0 12px; border: 0; background: #fff; color: var(--hub-ink-2); font-size: 13px; cursor: pointer; }
.hub-segmented button + button { border-left: 1px solid var(--hub-border-2); }
.hub-segmented button[aria-pressed="true"] { background: var(--hub-primary-soft); color: var(--hub-primary); }
.hub-count { margin-left: auto; font-size: 12px; color: var(--hub-muted); }
.hub-count:empty { display: none; }
.hub-toolbar-actions { display: flex; gap: 8px; margin-left: auto; }
.hub-count:not(:empty) + .hub-toolbar-actions { margin-left: 0; }
.hub-list.hub-card { padding: 0; overflow: hidden; }
.hub-list.hub-card > .hub-toolbar { padding: 12px 16px; border-bottom: 1px solid var(--hub-divider); }
.hub-list .hub-table-wrap { border: 0; border-radius: 0; }
.hub-list .hub-pager { padding: 12px 16px; font-size: 12px; color: var(--hub-muted); border-top: 1px solid var(--hub-divider); }
.hub-list .hub-table-wrap + .hub-pager, .hub-list .hub-api-groups + .hub-pager { border-top: 0; }
.hub-list-grouped { display: grid; gap: 12px; }
.hub-list-grouped > * { min-width: 0; }
.hub-list-grouped > .hub-toolbar { padding: 12px; margin: 0; }
.hub-list-grouped > .hub-pager { padding: 0 4px; border: 0; }
.hub-list-grouped .hub-project-scope { margin: 0; }
.hub-page .hub-api-group { margin: 0 0 12px; }
.hub-page .hub-api-group > summary { gap: 12px; }
.hub-page .hub-api-group > summary::before { display: none; }
.hub-page .hub-api-group > summary:hover { background: #fafbfc !important; }
.hub-page .hub-api-group > summary .hub-link { margin-left: auto; font-size: 12px; }
.hub-page .hub-api-group .hub-table { min-width: 860px; }

/* Tables */
.hub-page .hub-table td { white-space: nowrap; padding: 12px 16px !important; }
.hub-page .hub-table th { padding: 9px 16px !important; }
.hub-page .hub-table th:last-child { text-align: right; }
.hub-page .hub-table td:last-child .hub-actions { justify-content: flex-end; }
.hub-page .hub-table .hub-actions .layui-btn:not(.layui-btn-primary) {
  height: 28px; line-height: 26px; padding: 0 12px; border: 1px solid var(--hub-primary); border-radius: var(--hub-radius-sm);
  background: #fff; color: var(--hub-primary); font-size: 12px;
}
.hub-page .hub-table .hub-actions .layui-btn:not(.layui-btn-primary):hover { background: var(--hub-primary-soft); text-decoration: none; }
.hub-page .hub-table .hub-actions { align-items: center; }
.hub-merchant-name { display: flex; align-items: center; gap: 10px; }
.hub-initial {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: var(--hub-radius-sm);
  background: #f2f4f7; color: var(--hub-ink-2); font-size: 13px; font-weight: 600;
}
.hub-page .hub-table td .hub-wrap { display: block; min-width: 200px; white-space: normal; }

/* Calls */
.hub-filter.hub-card { padding: 16px; margin-bottom: 16px; }
.hub-list > .hub-toolbar { justify-content: space-between; }
.hub-code-tabs { display: flex; gap: 4px; }
.hub-code-tabs button {
  height: 28px; padding: 0 12px; border: 0; border-radius: var(--hub-radius-sm); background: transparent;
  color: var(--hub-ink-3); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.hub-code-tabs button:hover { background: #f2f4f7; }
.hub-code-tabs button[aria-pressed="true"] { background: var(--hub-primary-soft); color: var(--hub-primary); font-weight: 500; }
.hub-code-tabs span { font-variant-numeric: tabular-nums; }
.hub-calls tbody tr { cursor: pointer; }
.hub-calls tbody tr:focus-visible { outline: 2px solid var(--hub-primary); outline-offset: -2px; }
.hub-calls td:nth-child(5), .hub-calls td:nth-child(6), .hub-calls th:nth-child(5), .hub-calls th:nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; }
.hub-calls .hub-table { min-width: 960px; }
.hub-more { display: flex; justify-content: center; padding: 14px; }

/* Sections, stats, overview */
.hub-section, .hub-step { padding: 0; }
.hub-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--hub-divider); }
.hub-card-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.hub-page .hub-card-head > h2 + * { margin-left: auto; }
.hub-step-no {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--hub-border); color: var(--hub-ink-3); font-size: 12px;
}
.hub-step-no.active { background: var(--hub-primary); color: #fff; }
.hub-section-body { display: grid; gap: 10px; padding: 16px 20px; }
.hub-section-body + .hub-section-body { padding-top: 4px; }
.hub-section-body > .hub-muted { margin-bottom: 0; }
.hub-section-body .hub-alert { margin: 0; align-items: flex-start; }
.hub-section-body .hub-alert > span { flex: 1; }
.hub-section-body .hub-alert.warn .hub-link { color: #9a4d0e; text-decoration: underline; }
.hub-call-list { display: grid; }
.hub-call-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 20px; border: 0;
  border-bottom: 1px solid var(--hub-divider); background: #fff; text-align: left; cursor: pointer; font: inherit;
}
.hub-call-row:hover { background: #fafbfc; }
.hub-call-row > span:first-child { font-size: 13px; color: var(--hub-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-call-row > .hub-tag, .hub-call-row > small { justify-self: end; }
.hub-call-row > .hub-mono { color: var(--hub-muted); }
.hub-call-row > small { font-size: 12px; color: var(--hub-muted); font-variant-numeric: tabular-nums; }
.hub-section .hub-empty-state { padding: 36px 20px; }
.hub-stat > small { font-size: 12px; }
.hub-grid-sm { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hub-grid-sm .hub-stat { padding: 16px 20px; gap: 4px; }
.hub-grid-sm .hub-stat strong { font-size: 24px; }

/* Invoke */
.hub-step .hub-editor { padding: 20px; }
.hub-step .hub-editor > label > em { color: #d4380d; font-style: normal; }
.hub-step .hub-editor select:disabled { background: #f8fafc; color: var(--hub-muted); }
.hub-mono-input { font-family: var(--hub-mono) !important; }
.hub-params { display: grid; gap: 12px; padding: 14px; border-radius: var(--hub-radius-sm); background: var(--hub-bg-soft); border: 1px solid var(--hub-divider); }
.hub-params-title { font-size: 12px; color: var(--hub-ink-3); font-weight: 500; }
.hub-params label { font-weight: 400; }
.hub-params label .hub-mono { color: var(--hub-muted); }
.hub-card-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--hub-divider); }
.hub-card-foot .layui-btn { height: 34px; line-height: 34px; padding: 0 18px; font-size: 13px; font-weight: 500; }
.hub-invoke > .hub-step:last-child { min-height: 320px; display: flex; flex-direction: column; }
.hub-invoke .hub-invoke-result { flex: 1; display: grid; gap: 12px; align-content: start; padding: 16px 20px; }
.hub-invoke .hub-invoke-result:has(> .hub-empty-state) { align-content: center; }
.hub-invoke .hub-invoke-result:empty::before { display: none; }
.hub-code-dark { background: #0f1723 !important; color: #d6e2f0; border: 0 !important; }
.hub-page main > .hub-alert.warn { border: 1px solid #fde3c4; border-radius: var(--hub-radius); padding: 10px 14px; margin-bottom: 16px; }

/* Request detail drawer */
.hub-sd { position: fixed; inset: 0; z-index: 99999999; display: flex; justify-content: flex-end; }
.hub-sd-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 35, .35); }
.hub-sd-panel { position: relative; width: 560px; max-width: 100%; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(15, 23, 35, .12); }
.hub-sd-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hub-divider); }
.hub-sd-head > div { flex: 1; min-width: 0; display: grid; }
.hub-sd-head small { font-size: 12px; color: var(--hub-muted); }
.hub-sd-head b.hub-mono { font-size: 14px; font-weight: 600; color: var(--hub-ink); overflow-wrap: anywhere; }
.hub-sd-head .hub-icon-btn { width: 32px; height: 32px; font-size: 14px; color: var(--hub-ink-3); }
.hub-sd-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 20px; align-content: start; }
.hub-sd-body .hub-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.hub-sd-body h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.hub-sd-body h3 small { font-weight: 400; color: var(--hub-muted); font-size: 12px; }
.hub-sd-body section { display: grid; gap: 8px; }
.hub-sd-body section h3 { margin: 0; }
.hub-sd-body details { margin: 0; }
.hub-sd-body summary { display: flex; align-items: center; gap: 8px; list-style: none; }
.hub-sd-body summary::-webkit-details-marker { display: none; }
.hub-sd-body summary small { margin-left: auto; font-size: 12px; color: var(--hub-muted); }
.hub-sd-body .hub-chevron { font-size: 11px; }
.hub-inline-kv { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 14px; border: 1px solid var(--hub-divider); border-radius: var(--hub-radius-sm); font-size: 13px; }
.hub-inline-kv > span { white-space: nowrap; }
.hub-page .hub-workspace > .hub-description:first-child, .hub-page .hub-workspace > p:first-child { margin-top: 0; }
.hub-page .hub-workspace .hub-tabs { margin-bottom: 0; }

/* ---------- Merchant ---------- */
.hub-merchant .layui-side, .hub-merchant .layui-side .layui-logo { background: var(--hub-side) !important; }
.hub-merchant .layui-side .title { color: #fff !important; }
.hub-merchant-menu { padding: 12px; }
.hub-menu-group { margin-bottom: 4px; border: 0 !important; overflow: visible !important; }
.hub-menu-group summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none;
  color: var(--hub-side-label); font-weight: 500; font-size: 12px; letter-spacing: .04em; background: transparent !important;
}
.hub-menu-group summary::-webkit-details-marker { display: none; }
.hub-menu-group summary::after { content: "›"; margin-left: auto; font-size: 16px; transition: transform .15s; }
.hub-menu-group[open] summary::after { transform: rotate(90deg); }
.hub-menu-group .hub-menu-link {
  display: block; width: 100%; height: 38px; border: 0; border-radius: var(--hub-radius-sm); background: transparent;
  color: var(--hub-side-text); text-align: left; padding: 0 12px 0 32px; margin: 2px 0; font: inherit; font-size: 14px; cursor: pointer;
}
.hub-menu-group .hub-menu-link:hover { background: var(--hub-side-hover); color: #fff; }
.hub-menu-group .hub-menu-link.active { background: var(--hub-primary); color: #fff; font-weight: 500; }
.hub-menu-group summary:focus-visible, .hub-menu-group .hub-menu-link:focus-visible { outline: 2px solid #8bbaff; outline-offset: 2px; }
.hub-merchant-compact .layui-side { display: none; }
.hub-merchant-compact .layui-body, .hub-merchant-compact .layui-header { left: 0 !important; width: 100% !important; }
.hub-merchant #main > .hub-description { margin: 4px 0 16px; }
.hub-merchant h1 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.hub-merchant h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.hub-merchant h3 { font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
.hub-merchant .hub-card { margin-top: 0; }
.hub-merchant .hub-filter.hub-card { padding: 16px; }
.hub-merchant-dialog .hub-editor { align-content: start; }
.hub-merchant-dialog .hub-error:empty { display: none; }
.hub-form-footer { display: flex; justify-content: flex-end; gap: 8px; order: 100; border-top: 1px solid var(--hub-divider); padding-top: 14px; margin-top: 4px; }
.hub-merchant-dialog .hub-scope-list { border: 1px solid var(--hub-border); border-radius: var(--hub-radius-sm); padding: 4px 14px; max-height: 190px; overflow-y: auto; }
.hub-merchant-dialog .hub-scope-list label { display: flex; align-items: center; padding: 10px 0; gap: 10px; font-weight: 400; }
.hub-merchant-dialog input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; accent-color: var(--hub-primary); }
.hub-merchant-dialog .hub-empty { padding: 16px; }
.hub-merchant-dialog .hub-empty::before { display: none; }
.hub-merchant-dialog .hub-card { border: 0; margin: 0; }
.hub-advanced { margin-top: 16px; }
.hub-advanced summary { color: var(--hub-primary); cursor: pointer; padding: 10px 14px; }
.hub-security { display: grid; gap: 12px; max-width: 640px; }
.hub-security p { line-height: 1.8; margin: 0; font-size: 13px; color: var(--hub-ink-2); }
.hub-security-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hub-divider); }
.hub-security-head .layui-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--hub-primary-soft); color: var(--hub-primary); font-size: 20px; }
.hub-security-head div { flex: 1; }
.hub-security-head b { display: block; font-size: 15px; }
.hub-security .layui-btn { justify-self: start; }
.hub-secret { font-family: var(--hub-mono); letter-spacing: .08em; font-size: 14px; }
.hub-onetime { border: 1px solid #b7d4ff !important; background: #f2f7ff !important; }
.hub-onetime p { color: #1659c7; font-weight: 500; font-size: 13px; margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hub-scope, .hub-definition-grid { grid-template-columns: 1fr; }
  .hub-filter .hub-filter-actions { grid-column: 1 / -1; }
  #operator { display: none; }
}
