:root {
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #16203a;
  --muted: #6c7a92;
  --line: #e6edf8;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-weak: #e8f1ff;
  --green: #067647;
  --green-bg: #ecfdf3;
  --orange: #b54708;
  --orange-bg: #fff4e5;
  --red: #b42318;
  --red-bg: #fef3f2;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}

.shell { display: flex; min-height: 100vh; }
.side {
  width: 220px; flex: none; background: #fff;
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 14px 18px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; }
.side-brand-text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.35; min-width: 0; }
.side-brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; color: #4b5162; font-size: 13.5px;
}
.side-nav a svg { width: 17px; height: 17px; flex: none; }
.side-nav a:hover { background: #f4f5f9; color: var(--text); }
.side-nav a.on { background: var(--accent-weak); color: var(--accent); }
.side-foot { margin-top: auto; padding: 12px; font-size: 12.5px; }
.side-foot a { color: var(--muted); }
.side-foot a:hover { color: var(--accent); }

.content { flex: 1; min-width: 0; }
.chead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.chead h1 { font-size: 17px; }
.chead-right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.chead form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.linkbtn:hover { color: var(--text); }
.cmain { padding: 26px 32px 60px; max-width: 1200px; }

.notice {
  background: #fffaeb; color: #b54708; border: 1px solid #fedf89;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.alert {
  background: var(--red-bg); color: var(--red); border: 1px solid #fecdca;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 8px;
}
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-num { font-size: 26px; line-height: 1.2; letter-spacing: .01em; }
.stat-num small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.stat-num small:first-child { margin-left: 0; margin-right: 2px; }
.stat-link { font-size: 12px; color: var(--accent); margin-top: 2px; }
.stat-link:hover { text-decoration: underline; }

.cols { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.cols .panel + .panel, .stack .panel + .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 15px; }
.panel-title { font-size: 15px; margin: 0 0 14px; }
.form-panel .panel-title:not(:first-child) { margin-top: 22px; padding-top: 4px; }
.form-panel .panel-title + .hint { margin-top: -6px; }
.pad { padding: 8px 0; }

.link { color: var(--accent); font-size: 13px; }
a.link:hover { text-decoration: underline; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; }
button.link:hover { text-decoration: underline; }
.link.danger, .danger-text { color: var(--red); }
.warn-text { color: var(--orange); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .sep { margin: 0 8px; color: #c3c7d4; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
  padding: 9px 14px; font-size: 13.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a small { color: #9aa0ae; margin-left: 3px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a.on small { color: var(--accent); }

.search { display: flex; gap: 8px; align-items: center; flex: 1; max-width: 520px; }
.search .input { width: 100%; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table-wide { min-width: 820px; }
thead th {
  text-align: left; font-weight: 400; color: var(--muted); font-size: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 11px 12px; border-bottom: 1px solid #f0f1f5; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
.cell-title { font-size: 13.5px; }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.off { background: #f2f3f5; color: var(--muted); }
.badge.warn { background: var(--orange-bg); color: var(--orange); }
.sb-pending { background: var(--orange-bg); color: var(--orange); }
.sb-paid { background: #eff8ff; color: #175cd3; }
.sb-delivered { background: var(--green-bg); color: var(--green); }
.sb-expired { background: #f2f3f5; color: var(--muted); }

.stat-strip {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 16px; font-size: 13px; color: var(--muted);
}
.stat-strip strong { color: var(--text); margin-left: 4px; font-weight: 400; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.dot.ok { background: #12b76a; }
.dot.warn { background: #f79009; }
.dot.off { background: #98a2b3; }

.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { margin: 0; text-align: right; word-break: break-all; }
.kv dd.strong { color: var(--accent); }

.keys { display: flex; flex-direction: column; gap: 10px; }
.keybox {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f8f9fc; border: 1px dashed #d4d7e4; border-radius: 10px; padding: 10px 12px;
}
.keybox code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; word-break: break-all; }
.copybtn {
  flex: none; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 4px 12px; font-size: 12px; color: var(--muted); cursor: pointer;
}
.copybtn:hover { color: var(--accent); border-color: var(--accent); }
.copybtn.done { color: var(--green); border-color: var(--green); }

.raw {
  background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; font-size: 12px; overflow: auto; max-height: 220px;
  white-space: pre-wrap; word-break: break-all; margin: 0;
}

.warnlist { list-style: none; margin: 0; padding: 0; }
.warnlist li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.warnlist li:last-child { border-bottom: 0; }
.warnlist a:hover { color: var(--accent); }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; font-size: 13px; }
.pager .muted { font-size: 12.5px; }

.form-panel { max-width: 860px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: #3d4250; }
.field > span:first-child { color: var(--muted); font-size: 12.5px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 180px; }
.hint { font-size: 12px; color: #8a90a0; line-height: 1.7; }
.hint code { background: #f4f5f9; padding: 2px 6px; border-radius: 5px; font-size: 11.5px; word-break: break-all; }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; background: #fff; outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
textarea.input { resize: vertical; min-height: 100px; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; padding: 2px 0; }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.check input { accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

.store-create-dialog {
  width: min(620px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0;
  border: 1px solid #e6e8ef; border-radius: 12px; background: #fff; color: #525761;
  box-shadow: 0 16px 48px #14162933;
}
.store-create-dialog::backdrop { background: #171b314d; }
.store-dialog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #ebedf2;
}
.store-dialog-head h2 { font-size: 16px; font-weight: 400; color: #252838; }
.store-dialog-close {
  width: 30px; height: 30px; border: 0; border-radius: 5px; background: transparent;
  color: #666e7a; font-size: 22px; line-height: 1; cursor: pointer;
}
.store-dialog-close:hover { background: #f4f6f8; }
.store-create-form { padding: 12px 16px 16px; font-size: 13px; }
.store-create-form h3 { margin: 0 0 8px; color: #216bff; font-size: 14px; font-weight: 400; }
.store-create-row {
  display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 18px;
}
.store-create-row label { text-align: right; }
.store-create-row .input { height: 36px; padding: 0 10px; border: 1px solid #d7dce6; border-radius: 6px; }
.store-create-row .input::placeholder { color: #8a94a3; }
.store-create-row .input:focus { border-color: #779fff; }
.store-required { color: #d6404d; }
.store-password-control { display: flex; min-width: 0; }
.store-password-control .input { flex: 1; min-width: 0; border-radius: 6px 0 0 6px; }
.store-password-control button {
  border: 1px solid #d7dce6; border-left: 0; border-radius: 0 6px 6px 0; padding: 0 16px;
  background: #f5f7fa; color: #676f7c; cursor: pointer;
}
.store-password-control button:hover { background: #e9eef8; }
.store-password-hint { margin: -10px 0 0 120px; font-size: 12px; }
.store-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 480px) {
  .store-create-row { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 14px; }
  .store-create-row label { text-align: left; }
  .store-password-hint { margin-left: 0; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 10px; cursor: pointer; font-size: 13.5px;
  white-space: nowrap; transition: background .12s;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: #c9cbe0; background: #fafafc; }
.btn.ghost.danger { color: var(--red); }
.btn.ghost.danger:hover { border-color: #fda29b; background: var(--red-bg); }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #912018; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-block { width: 100%; margin-top: 8px; }

.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(900px 520px at 85% -10%, #e9e7ff, transparent 60%),
              radial-gradient(700px 400px at 0% 110%, #fdf0f7, transparent 55%), var(--bg);
}
.auth-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 30px 28px;
}
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 22px; }
.auth-card h1 { font-size: 19px; margin-bottom: 16px; }
.auth-card > .muted { font-size: 13px; margin: -8px 0 14px; }
.auth-card form { display: flex; flex-direction: column; }
.auth-card .btn-block { margin-top: 10px; }
.auth-back { display: inline-block; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.auth-back:hover { color: var(--text); }
.merchant-auth { flex-direction: column; gap: 24px; background: radial-gradient(ellipse at 12% 15%, #e1eaff, transparent 55%), #f4f7fc; }
.merchant-auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; width: min(900px, 100%); border: 1px solid #e5ebf5; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 20px 65px #25497c0c; }
.merchant-auth-intro { padding: 44px; color: #fff; background: linear-gradient(145deg, #416cf1, #637cf6); display: flex; flex-direction: column; justify-content: space-between; gap: 42px; }
.merchant-auth-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.merchant-auth-logo img { width: 32px; height: 32px; }
.merchant-auth-intro h2 { font-size: 30px; line-height: 1.5; letter-spacing: 1px; }
.merchant-auth-intro p { margin: 14px 0 0; color: #e1e8ff; font-size: 14px; line-height: 1.8; }
.merchant-auth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.merchant-auth-features span { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px; border: 1px solid #ffffff30; border-radius: 12px; background: #ffffff0d; font-size: 12px; }
.merchant-auth-features svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.merchant-auth-card { border: 0; border-radius: 0; max-width: none; padding: 48px 44px; }
.merchant-auth-card .auth-brand { color: #5278ed; font-size: 13px; margin-bottom: 22px; }
.merchant-auth-card h1 { font-size: 24px; margin-bottom: 18px; }
.merchant-auth-card > .muted { line-height: 1.8; margin-bottom: 24px; }
.merchant-auth-card .input { height: 44px; border-radius: 8px; }
.merchant-auth-card .btn { min-height: 44px; border-radius: 8px; background: #5278ed; font-weight: 400; }
.merchant-auth-card .btn:hover { background: #4165d6; }
.merchant-auth-help { margin: 18px 0 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.merchant-auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.merchant-auth-footer { font-size: 12px; color: #8290a5; }
.merchant-impersonation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid #ccdafc; border-radius: 8px; background: #eef4ff; color: #395ba9; font-size: 13px; }
.merchant-impersonation a { color: #4165d6; }
@media (max-width: 680px) {
  .merchant-auth { padding: 24px 16px; gap: 18px; }
  .merchant-auth-shell { grid-template-columns: 1fr; max-width: 420px; }
  .merchant-auth-intro { padding: 22px 26px; gap: 0; }
  .merchant-auth-intro > div:not(.merchant-auth-logo) { display: none; }
  .merchant-auth-card { padding: 30px 26px; }
}

.payment-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; gap: 18px; }
.payment-menu { background: #181922; color: #e3e5eb; padding: 8px; border-radius: 8px; font-size: 14px; }
.payment-menu-title { display: flex; align-items: center; gap: 8px; padding: 4px 14px 12px; }
.payment-menu-title svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.payment-menu a { display: block; padding: 10px 12px 10px 41px; border-radius: 8px; }
.payment-menu a + a { margin-top: 4px; }
.payment-menu a:hover, .payment-menu a[aria-current] { color: #fff; background: #101116; }
.payment-content { min-width: 0; }
.payment-content .panel + .panel { margin-top: 16px; }
.payment-channel-status .muted, .payment-content form > .muted { font-size: 13px; }
.payment-method-table { margin-top: 12px; }
.payment-check { accent-color: var(--accent); }

.plugins-panel { --plugin-blue: #597fff; --plugin-line: #d8deea; padding: 20px; border: 1px solid #e6e7eb; border-radius: 8px; }
.plugins-toolbar, .plugins-search { display: flex; align-items: center; gap: 8px; }
.plugins-toolbar { justify-content: space-between; flex-wrap: wrap; }
.plugins-search { flex: 1; }
.plugins-search-field { position: relative; width: min(320px, 100%); }
.plugins-search-field .input { height: 36px; padding: 0 10px 0 32px; border-radius: 6px; border-color: var(--plugin-line); font-size: 13px; }
.plugins-search-field svg { position: absolute; left: 10px; top: 11px; width: 14px; height: 14px; color: #909aaa; pointer-events: none; }
.plugins-panel svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.plugins-panel .btn { height: 36px; border-radius: 6px; padding: 0 14px; font-size: 13px; }
.plugins-search .btn:not(.ghost) { background: var(--plugin-blue); }
.plugins-panel .btn.plugins-refresh { color: #4165ec; border-color: #acbaff; background: #eef2ff; }
.plugins-panel .btn.plugins-refresh:hover { background: #e4eaff; }
.plugins-refresh svg { width: 13px; height: 13px; }
.plugin-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 14px; font-size: 13px; }
.plugin-tabs a { padding: 5px 14px; border-radius: 22px; color: #454e62; }
.plugin-tabs a:hover, .plugin-tabs a[aria-current] { background: #eef0f3; color: #4165ec; }
.plugins-table { min-width: 930px; table-layout: auto; color: #415069; }
.plugins-table th, .plugins-table td { padding: 8px 12px; border-bottom: 1px solid #e7ebf3; }
.plugins-table th { font-weight: 400; color: #677489; font-size: 13px; }
.plugins-table td { height: 43px; font-size: 13.5px; }
.plugins-table tbody tr:hover { background: #f3f6fa; }
.plugin-name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.plugin-mark { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 5px; color: #fff; font-size: 16px; line-height: 1; }
.plugin-mark.alipay { background: #008bff; }
.plugin-mark.epay { background: #0797e7; }
.plugin-mark.wxpay { background: #0abf05; border-radius: 50%; }
.plugin-mark svg { width: 18px; height: 18px; }
.plugin-mark svg path:first-child { stroke: none; }
.plugin-link, .plugin-action { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--plugin-line); border-radius: 5px; color: #4e5b6e; cursor: pointer; }
.plugin-link { width: 26px; height: 26px; }
.plugin-link svg { width: 12px; height: 12px; }
.plugin-action { min-width: 47px; height: 24px; padding: 0 8px; font-size: 12px; }
.plugin-action:hover, .plugin-link:hover { border-color: #9aabf7; color: #4165ec; }
.plugin-remove { margin-left: 6px; background: #fff0f0; border-color: #ffb2b2; color: #bc3944; }
.plugin-remove:hover { background: #ffe3e3; border-color: #ef8686; color: #a4212b; }
.plugins-table .plugin-empty { text-align: center; padding: 22px 12px; color: var(--muted); }
.plugin-detail { padding: 11px 12px; margin-bottom: 12px; border: 1px solid #e3e8f2; border-radius: 6px; background: #f8fafc; font-size: 13px; }
.plugin-detail-head, .plugin-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.plugin-detail h2 { font-size: 15px; }
.plugins-pager, .plugins-pager form { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.plugins-pager { margin-top: 13px; }
.plugin-page { display: inline-grid; height: 32px; min-width: 32px; place-items: center; border-radius: 6px; border: 1px solid var(--plugin-line); }
.plugin-page.current { background: var(--plugin-blue); border-color: transparent; color: #fff; }
.plugin-page[aria-disabled] { color: #aeb7c4; }
.plugins-pager .input { width: auto; height: 32px; padding: 0 10px; border-radius: 6px; border-color: var(--plugin-line); }
.plugins-pager .input[type=number] { width: 56px; text-align: center; }
.plugin-note { margin-top: 16px; border-radius: 5px; padding: 12px 14px; background: #f2f2f4; color: #59677b; font-size: 12.5px; }
.channel-panel { --plugin-blue: #5879f5; }
.channel-list-toolbar { margin-bottom: 8px; }
.channel-list-toolbar .channel-add { display: inline-flex; align-items: center; gap: 4px; background: #5bab36; }
.channel-list-toolbar .channel-add svg { width: 14px; height: 14px; }
.channel-list-toolbar .channel-add:hover { background: #4f9225; }
.channel-list-toolbar .plugins-search { justify-content: flex-end; }
.channel-list-toolbar .plugins-search-field { width: min(220px, 100%); }
.channel-list-toolbar > .plugin-link { width: 32px; height: 32px; background: #eff1f4; border: 0; }
.channel-table { min-width: 850px; }
.channel-table th, .channel-table td { padding: 8px 10px; }
.channel-table td { height: 42px; }
.channel-table td:nth-child(2) { width: 24%; overflow-wrap: anywhere; }
.channel-table td:nth-child(5), .channel-table td:nth-child(6) { width: 14%; }
.channel-actions .plugin-action + .plugin-action, .channel-actions .inline { margin-left: 4px; }
.channel-actions .plugin-remove { margin-left: 0; background: #e25b62; border-color: transparent; color: #fff; }
.channel-actions .plugin-remove:hover { background: #c3414c; }
.channel-method-mark { display: inline-grid; width: 14px; height: 14px; place-items: center; margin-right: 4px; border-radius: 4px; color: #fff; font-size: 10px; line-height: 1; vertical-align: -1px; }
.channel-method-mark.alipay { background: #008bff; }
.channel-method-mark.wxpay { color: #09b504; }
.channel-method-mark.wxpay svg { width: 14px; height: 14px; stroke: #fff; }
.channel-method-mark.wxpay path:first-child { fill: currentColor; stroke: none; }
.channel-state { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.channel-state.ready { color: #346b1c; background: #e7f7df; }
.channel-state.draft { color: #844e05; background: #fff1d9; }
.channel-config, .channel-dialog .channel-save { color: #fff; background: #5879f5; border-color: transparent; }
.channel-config:hover, .channel-dialog .channel-save:hover { color: #fff; background: #4064d4; }
.channel-dialog { width: min(602px, calc(100% - 24px)); }
.channel-dialog .store-dialog-head { border-bottom: 0; }
.channel-dialog .store-create-form { padding-top: 8px; }
.channel-dialog .store-create-row { grid-template-columns: 78px minmax(0, 1fr); }
.channel-dialog .store-create-row select { padding-right: 10px; }
.channel-unit { display: flex; min-width: 0; }
.channel-unit .input { flex: 1; min-width: 0; border-radius: 6px 0 0 6px; }
.channel-unit > span { display: grid; width: 52px; place-items: center; color: #667589; background: #f4f6fa; border: 1px solid #d7dce6; border-left: 0; border-radius: 0 6px 6px 0; }
.channel-draft-note { margin-left: 90px; font-size: 12px; color: #647084; }
.channel-live-form > p { margin-bottom: 12px; }
.channel-live-form .hint { overflow-wrap: anywhere; }
.channel-table .plugin-action:disabled, .channel-key-footer button:disabled { cursor: not-allowed; opacity: .55; }
html:has(.channel-key-drawer[open]) { overflow: hidden; }
.channel-key-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  border: 0; border-radius: 0; color: #575d65; background: #fff; font-size: 14px;
}
.channel-key-drawer[open] { display: flex; flex-direction: column; }
.channel-key-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 4px 8px 4px 10px; }
.channel-key-header h2 { font-size: 16px; color: #292d33; overflow-wrap: anywhere; outline: none; }
.channel-key-header .store-dialog-close { display: grid; place-items: center; flex: 0 0 30px; color: #383e45; }
.channel-key-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.channel-key-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 48px 15px 12px 10px; }
.channel-key-fields, .channel-key-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.channel-key-group { margin-bottom: 28px; }
.channel-key-group legend { padding: 0; margin-bottom: 12px; }
.channel-key-choices { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 10px; }
.channel-key-choices label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.channel-key-choices label:has(:checked) { color: #567aff; }
.channel-key-choices label:has(:disabled) { color: #858b94; }
.channel-key-choices input { width: 16px; height: 16px; margin: 0; accent-color: #5d80ff; }
.channel-key-field { display: grid; gap: 8px; margin-bottom: 24px; }
.channel-key-field:has([name="seller_id"]) { margin-bottom: 17px; }
.channel-key-field .input { border-color: #d5dae6; height: 36px; padding: 0 10px; font-size: 14px; }
.channel-key-field textarea.input { min-height: 52px; padding: 4px 10px; line-height: 21px; }
.channel-key-field .input::placeholder { color: #8c96a7; }
.channel-key-wechat { width: min(527px, 100%); }
.channel-key-wechat .channel-key-header { min-height: 48px; padding-left: 14px; }
.channel-key-wechat .channel-key-body { padding-inline: 18px; }
.channel-key-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.channel-upload-button { position: relative; display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 4px 11px; background: #5879f5; color: #fff; font-size: 12px; line-height: 16px; }
.channel-upload-button:hover { background: #4064d4; }
.channel-upload-button:focus-within { outline: 2px solid #4064d4; outline-offset: 2px; }
.channel-upload-button:has(:disabled) { opacity: .55; }
.channel-upload-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.channel-upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.channel-upload-button input:disabled { cursor: not-allowed; }
.channel-upload-status { color: #667589; font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }
.channel-upload-status[data-state="ready"], .channel-upload-status[data-state="saved"] { color: #177a3a; }
.channel-upload-status[data-state="error"] { color: #b12938; }
.channel-key-app-link { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; margin: -14px 0 24px; color: #677489; font-size: 12px; }
.channel-key-wechat select.input { padding-right: 24px; }
.channel-key-wechat input[readonly], .channel-key-wechat input:disabled { background: #f8f9fb; }
.wechat-app-table { min-width: 610px; }
.wechat-app-table th:first-child { width: 5%; }
.wechat-app-table th:nth-child(2) { width: 9%; }
.wechat-app-table th:nth-child(3) { width: 31%; }
.wechat-app-table th:last-child { width: 184px; }
.wechat-app-table td:nth-child(3) { overflow-wrap: anywhere; }
.wechat-app-table .plugin-action:disabled { opacity: .55; cursor: not-allowed; }
.platform-admin:has(.stores-panel) { --bg: #f7f8f9; }
.platform-admin .platform-page:has(.stores-panel), .platform-admin .platform-page-title:has(+ .platform-page .stores-panel) { max-width: none; padding-inline: 12px; }
.stores-panel { --plugin-blue: #5b7fff; color: #465469; }
.stores-panel:fullscreen { overflow: auto; border-radius: 0; background: #fff; }
.stores-toolbar, .stores-tools { display: flex; align-items: center; gap: 10px; }
.stores-toolbar { justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.stores-tools { flex-wrap: wrap; }
.stores-tools .stores-add { background: #62bc35; color: #fff; gap: 3px; }
.stores-tools .stores-add:hover { background: #4ca326; }
.stores-add svg { width: 14px; height: 14px; }
.stores-icons .plugin-link { width: 32px; height: 32px; background: #eff1f3; border: 0; }
.stores-icons .plugin-link svg { width: 15px; height: 15px; }
.stores-icons button[aria-pressed="true"] { background: #e8edff; color: #4266dc; }
.stores-icons button:disabled { opacity: .55; cursor: default; }
.stores-filters:not([hidden]) { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; padding: 12px; border: 1px solid #e7ebf3; border-radius: 6px; background: #fafbfd; }
.stores-filters label { display: grid; gap: 4px; min-width: 120px; font-size: 13px; }
.stores-filters label:first-of-type { flex: 1; min-width: min(235px, 100%); }
.stores-filters .input { height: 36px; font-size: 13px; border-radius: 6px; }
.stores-filters button { background: var(--plugin-blue); }
.stores-table { table-layout: fixed; min-width: 850px; }
.stores-table th, .stores-table td { padding: 8px 12px; overflow-wrap: anywhere; }
.stores-table th { height: 40px; color: #768396; }
.stores-table td { height: 73px; }
.stores-table tbody tr:has(:popover-open) { background: #f3f6fa; }
.stores-table th:first-child { width: 130px; }
.stores-table .store-col-balance { width: 100px; }
.stores-table .store-col-settlement { width: 26%; }
.stores-table th:nth-child(5) { width: 20%; }
.stores-table th:nth-child(6) { width: 118px; }
.stores-table th:last-child { width: 130px; }
.stores-hide-balance .store-col-balance, .stores-hide-settlement .store-col-settlement { display: none; }
.stores-compact .stores-table td { height: 57px; padding-top: 4px; padding-bottom: 4px; }
.stores-identity > div { font-size: 14px; }
.stores-group, .stores-contact-value { display: block; margin-top: 3px; font-size: 12px; }
.stores-group { color: #328aff; }
.stores-contact-value { color: #708095; }
.stores-contact-extras { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.stores-contact-extras a:hover { color: #328aff; }
.stores-active { color: #16a453; }
.stores-dim { color: #7a8699; }
.stores-status span { white-space: nowrap; font-size: 12px; }
.stores-status i { display: inline-grid; width: 10px; height: 10px; margin-right: 2px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: normal 8px/1 sans-serif; }
.stores-actions > div:first-child { display: flex; gap: 8px; flex-wrap: wrap; }
.stores-actions .stores-edit { background: var(--plugin-blue); color: #fff; border-color: transparent; }
.stores-actions .stores-edit:hover { background: #486be8; }
.stores-actions .stores-stop { background: #fc696b; color: #fff; border-color: transparent; }
.stores-actions .stores-stop:hover { background: #e05559; }
.stores-more { min-width: 64px; margin-top: 7px; gap: 4px; }
.stores-more:has(+ :popover-open) { color: #4d75f4; background: #f2f5ff; border-color: #cdd9ff; }
.stores-more svg { width: 12px; height: 12px; }
.stores-popover { position: fixed; inset: auto; margin: 0; padding: 6px 0; border: 1px solid #edf0f5; border-radius: 7px; color: #485468; background: #fff; box-shadow: 0 4px 16px #1f2b4526; overflow: auto; }
.stores-menu { min-width: 98px; font-size: 13px; }
.stores-menu > a, .stores-menu > span, .stores-menu > form > button { display: flex; align-items: center; min-height: 34px; padding: 0 15px; white-space: nowrap; }
.stores-menu > form { margin: 0; }
.stores-menu > form > button { width: 100%; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.stores-menu [aria-disabled], .stores-menu button:disabled { color: #788598; cursor: not-allowed; }
.stores-menu a:hover, .stores-menu a:focus-visible, .stores-menu button:not(:disabled):hover, .stores-menu button:focus-visible { color: #436de6; background: #f2f5ff; }
.stores-menu { scrollbar-width: thin; }
@media (max-height: 860px) { .stores-menu > a, .stores-menu > span, .stores-menu > form > button { min-height: 30px; } }
.stores-columns label { display: flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 13px; }
.stores-pager .stores-page-submit { min-width: 0; height: 32px; padding: 0 4px; border-color: transparent; }
.stores-stats .store-dialog-close { display: grid; place-items: center; }
.stores-stats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.stores-stats dl div { padding: 12px; border-radius: 6px; background: #f5f7fb; }
.stores-stats dt { font-size: 12px; color: #687588; }
.stores-stats dd { margin: 5px 0 0; color: #3b64dc; font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 680px) {
  .stores-panel { padding: 12px; }
  .stores-table { display: block; min-width: 0; }
  .stores-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stores-table tbody { display: grid; }
  .stores-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 6px; border-bottom: 1px solid #e7ebf3; }
  .stores-table td, .stores-compact .stores-table td { padding: 0; height: auto; border: none; }
  .stores-table .store-col-balance, .stores-table .store-col-settlement { display: none; }
  .stores-table .plugin-empty { grid-column: 1 / -1; }
  .stores-identity { grid-area: 1 / 1; }
  .stores-status { grid-area: 1 / 2; text-align: right; }
  .stores-contact { grid-area: 2 / 1; }
  .stores-actions { grid-area: 2 / 2 / span 2; align-self: center; }
  .stores-registration { grid-area: 3 / 1; }
  .stores-registration time { font-size: 12px; }
  .stores-compact .stores-table tr { padding-block: 6px; row-gap: 4px; }
}
.group-dialog { width: min(600px, calc(100% - 24px)); }
.group-dialog .store-create-form { padding: 18px 16px 16px; }
.group-dialog-tab { display: table; margin: 0 16px; padding: 11px 12px 9px; border-bottom: 2px solid var(--accent); color: var(--accent); }
.group-channel-table { width: 100%; table-layout: fixed; }
.group-channel-table th, .group-channel-table td { padding: 8px 10px; text-align: left; font-weight: 400; border: 1px solid #ebedf2; }
.group-channel-table th:first-child { width: 30%; }
.group-channel-table thead th { background: #f6f8fb; }
.group-channel-table .input { width: 100%; min-width: 0; }
.group-channel-hint { margin: 9px 0 0; line-height: 1.6; }
.wechat-app-dialog { width: min(492px, calc(100% - 24px)); }
.wechat-app-dialog .store-create-form { font-size: 14px; }
.wechat-app-dialog .store-create-row label { white-space: nowrap; }
.wechat-app-dialog .store-dialog-actions { margin-top: 34px; }
.wechat-app-dialog .store-dialog-actions .btn { min-height: 36px; padding: 0 14px; }
.wechat-app-help { align-items: start; }
.wechat-app-help > span { text-align: right; padding-top: 4px; }
.wechat-app-help p { color: #677489; font-size: 12px; line-height: 1.65; }
.wechat-app-help p span { color: #b73c43; }
.channel-key-note { margin: 0; padding: 16px 12px; border-radius: 4px; background: #edf7e7; color: #225d1c; }
.channel-key-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 6px 11px 7px; }
.channel-key-footer .btn { min-height: 36px; padding: 0 14px; font-weight: 400; font-size: 14px; }
.channel-key-footer .channel-save { background: #5d80ff; }
.channel-key-footer .channel-save:hover { background: #4869e8; }
@media (max-width: 520px) {
  .channel-key-body { padding-top: 26px; }
}
@media (max-width: 480px) {
  .channel-dialog .store-create-row { grid-template-columns: minmax(0, 1fr); }
  .wechat-app-help > span { text-align: left; }
  .channel-draft-note { margin-left: 0; }
}

@media (max-width: 640px) {
  .payment-layout { grid-template-columns: minmax(0, 1fr); }
  .payment-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .payment-menu-title { grid-column: 1 / -1; padding: 4px 10px; }
  .payment-menu a { padding: 8px 10px; }
  .payment-menu a + a { margin-top: 0; }
  .plugins-panel { padding: 12px; }
  .plugins-search { flex-basis: 100%; }
  .plugins-search-field { min-width: 0; flex: 1; }
  .channel-list-toolbar .plugins-search { order: 1; }
  .plugin-tabs a { padding: 4px 9px; }
}

@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .side { width: 192px; }
  .chead { padding: 16px 22px; }
  .cmain { padding: 20px 22px 50px; }
}
@media (max-width: 720px) {
  .shell { flex-direction: column; }
  .side {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 14px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side-brand { padding: 0 8px 0 0; flex: none; }
  .side-brand-text { display: none; }
  .side-nav { flex-direction: row; gap: 4px; }
  .side-nav a { white-space: nowrap; padding: 7px 10px; }
  .side-nav a svg { display: none; }
  .side-foot { display: none; }
  .chead { position: static; }
  .stats { gap: 10px; }
  .stat { padding: 14px; gap: 6px; }
  .stat-num { font-size: 21px; }
  .cmain { padding: 18px 16px 50px; }
  .search { max-width: none; }
}

/* ===== 多商户工作台组件 ===== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.tile-stat {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.istile {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.istile svg { width: 21px; height: 21px; }
.grad-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.grad-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.grad-green { background: linear-gradient(135deg, #10b981, #059669); }
.grad-orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.tile-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile-label { font-size: 12.5px; color: var(--muted); }
.tile-num { font-size: 23px; line-height: 1.25; }
.tile-num small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.tile-num small:first-child { margin-left: 0; margin-right: 2px; }

.tile {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.tile-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.tile-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.tile-teal { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.tile-violet { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.tile-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }

.type-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px;
  font-size: 11.5px; color: #1d4ed8; background: #eef3ff; border: 1px solid #dbe7ff;
  vertical-align: 1px; white-space: nowrap;
}
.type-tag.auto { color: #067647; background: #ecfdf3; border-color: #d1fadf; }

.badge.sb-shipped { background: #eef4ff; color: #3538cd; }
.badge.sb-completed { background: var(--green-bg); color: var(--green); }
.badge.sb-refunded { background: #f2f3f5; color: #667085; }

.store-cell { display: flex; gap: 10px; align-items: center; }
.qr-panel .panel-head { margin-bottom: 10px; }
.qr-body { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qr-body img { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.qr-url {
  display: block; background: #f7faff; border: 1px solid #e3ecfa; border-radius: 8px;
  padding: 8px 10px; font-size: 12px; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.qr-side .form-actions { margin-top: 0; }

.store-qr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.store-qr-card { padding: 12px; min-width: 0; background: #f7faff; border: 1px solid var(--line); border-radius: 10px; }
.store-qr-card h3 { font-size: 14px; }
.store-qr-card img { display: block; margin: 8px 0; max-width: 100%; height: auto; border-radius: 8px; }
.store-qr-card .form-actions { margin-top: 8px; gap: 6px; }

.action-list { display: flex; flex-direction: column; gap: 12px; }
.action-list form { display: flex; flex-direction: column; gap: 8px; }
.action-list .btn-block { margin-top: 0; }
.action-list .hint { margin-top: -2px; }

.select-auto { width: auto; min-width: 120px; }
.search .select-auto { width: auto; flex: 0 0 auto; }
.search-wide { max-width: 780px; flex-wrap: wrap; }
.search-wide .input:not(.select-auto) { flex: 1; min-width: 180px; }
.ship-form { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 16px; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile-stat { padding: 14px 16px; }
}

html:has(> .platform-admin) { scrollbar-width: thin; }
.platform-admin { --bg: #eff1f3; --text: #3f4248; background: var(--bg); }
.platform-admin .cols > *, .platform-admin .panel { min-width: 0; }
.platform-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.platform-shell { min-height: 100vh; }
.platform-top { position: sticky; z-index: 10; top: 0; display: grid; grid-template-columns: 197px minmax(0, 1fr) auto; min-height: 63px; background: #fff; box-shadow: 0 2px 7px #252c4426; }
.platform-logo { display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.05; font-size: 9px; letter-spacing: .12em; }
.platform-logo svg { width: 21px; height: 18px; }
.platform-logo span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 85%; }
.platform-nav { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.platform-nav > * { display: flex; align-items: center; flex: none; gap: 9px; padding: 0 20px; white-space: nowrap; border-bottom: 2px solid transparent; }
.platform-nav a:hover, .platform-nav a[aria-current] { color: #3157f2; }
.platform-nav a[aria-current] { border-bottom-color: #3157f2; }
.platform-nav-unavailable { cursor: not-allowed; }
.platform-nav svg, .report-info svg, .report-board-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.platform-account { position: relative; display: grid; align-content: center; margin: 0 12px 0 18px; }
.platform-account summary { display: flex; align-items: center; gap: 8px; min-height: 62px; color: #373a40; }
.platform-account summary svg { width: 25px; height: 25px; flex: none; }
.platform-account summary span { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-account summary, .report-quick-menu summary { list-style: none; cursor: pointer; }
.platform-account summary::-webkit-details-marker, .report-quick-menu summary::-webkit-details-marker { display: none; }
.platform-menu { position: absolute; z-index: 2; top: 100%; right: 0; min-width: 126px; padding: 5px; border: 1px solid #eaedf2; border-radius: 7px; background: #fff; box-shadow: 0 5px 15px #11182d15; }
.platform-menu a, .platform-menu button { display: block; width: 100%; padding: 7px 10px; text-align: left; background: none; border: 0; white-space: nowrap; cursor: pointer; border-radius: 4px; }
.platform-menu a:hover, .platform-menu button:hover { background: #eef3ff; color: #3157f2; }
.platform-page-title { max-width: 1530px; margin: auto; padding: 23px 28px 0; }
.platform-page-title h1 { font-size: 18px; }
.platform-admin .platform-page { max-width: 1530px; margin: auto; padding: 20px 28px 52px; }
.platform-admin .platform-dashboard { max-width: none; padding: 26px clamp(9px, .55vw, 11px) 50px clamp(16px, 1.9vw, 35px); }
.report-overview, .report-charts { display: grid; gap: 24px; }
.report-overview { grid-template-columns: minmax(0, 2.05fr) repeat(2, minmax(0, 1fr)); }
.report-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 2.76fr); margin-top: 24px; }
.report-card { position: relative; min-width: 0; padding: 20px; border-radius: 21px; background: #fff; }
.report-welcome, .report-today { min-height: 238px; }
.report-identity { display: flex; align-items: center; gap: 10px; padding-right: 38px; }
.report-avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.report-identity h1 { font-size: 19px; overflow-wrap: anywhere; }
.report-identity p { margin-top: 5px; font-size: 12px; }
.report-quick-menu { position: absolute; right: 20px; top: 21px; }
.report-quick-menu summary { display: grid; width: 32px; height: 28px; place-items: center; }
.report-quick-menu summary svg { width: 28px; height: 8px; fill: #303236; }
.report-start { margin-top: 41px; }
.report-start h2 { margin-bottom: 20px; font-size: 16px; }
.report-start p { line-height: 1.55; }
.report-start p:first-of-type { font-size: 15px; }
.report-start a:hover, .report-board a:hover .report-board-label { color: #3157f2; }
.report-totals { display: grid; gap: 24px; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.report-kpi { min-height: 107px; }
.report-kpi h2, .report-today h2 { font-size: 13px; }
.report-kpi p { margin-top: 11px; font-size: 23px; line-height: 1.45; color: #19202a; }
.report-info { position: absolute; top: 23px; right: 20px; display: grid; color: #5e6063; }
.report-today { display: flex; flex-direction: column; }
.report-today-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9px; margin-top: 4px; font-size: 32px; line-height: 1.35; }
.report-today-amount small { font-size: 12px; white-space: nowrap; }
.report-spark { display: block; width: calc(100% - 24px); height: 64px; margin: 16px 12px 0; overflow: visible; }
.report-spark polyline { fill: none; stroke: #5990ff; stroke-width: 1; }
.report-comparison { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: auto; font-size: 13px; }
.report-methods, .report-trend { display: flex; flex-direction: column; min-height: 398px; }
.report-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-chart-head h2 { font-size: 16px; white-space: nowrap; }
.report-range { position: relative; width: min(330px, calc(100% - 77px)); }
.report-range::after { content: ''; position: absolute; right: 21px; top: 14px; width: 7px; height: 7px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.report-range select { display: block; appearance: none; width: 100%; height: 38px; padding: 0 40px 0 11px; border: 1px solid #d9d9d9; border-radius: 0; background: #fff; font-size: 13px; cursor: pointer; }
.report-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding-top: 14px; font-size: 13px; }
.report-empty svg { width: 92px; height: 63px; }
.report-channel-content { flex: 1; display: grid; align-content: center; gap: 16px; padding-top: 12px; }
.report-donut { width: 124px; aspect-ratio: 1; margin: auto; border-radius: 50%; background: conic-gradient(var(--segments)); mask: radial-gradient(farthest-side, transparent 64%, #000 65%); }
.report-channels { width: min(100%, 290px); margin: 0 auto; padding: 0; list-style: none; font-size: 13px; }
.report-channels li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-block: 3px; }
.report-channels i, .report-legend i { width: 8px; height: 8px; display: inline-block; }
.report-channels small { color: #71757b; }
.report-legend { display: flex; gap: 24px; align-items: center; padding-right: 32px; margin-top: 20px; font-size: 12px; color: #676767; }
.report-legend span { display: inline-flex; align-items: center; gap: 8px; }
.report-legend span:last-child { margin-left: auto; font-size: 13px; }
.report-legend i, .report-bars i { background: #ffa62f; }
.report-legend span:nth-child(2) i, .report-bars .report-refund { background: #fe5339; }
.report-chart { display: grid; flex: 1; grid-template: minmax(0, 1fr) 19px / 24px minmax(0, 1fr); margin-top: 19px; color: #888; font-size: 12px; }
.report-axis { position: relative; }
.report-axis span { position: absolute; right: 8px; transform: translateY(50%); white-space: nowrap; }
.report-plot, .report-dates { display: grid; grid-template-columns: repeat(var(--chart-days), minmax(0, 1fr)); }
.report-plot { position: relative; border-bottom: 1px solid #b6b6b6; }
.report-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid #eff1f4; pointer-events: none; }
.report-bars { z-index: 1; display: flex; height: 100%; align-items: flex-end; justify-content: center; gap: 3px; }
.report-bars i { width: min(30%, 38px); border-radius: 2px 2px 0 0; }
.report-dates { grid-column: 2; text-align: center; padding-top: 2px; white-space: nowrap; }
.report-board { margin: 42px 25px 22px; padding: 37px 39px; border-radius: 11px; background: #fff; color: #21242b; }
.report-board h2 { font-size: 17px; }
.report-board-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 33px; }
.report-board-metrics a { display: flex; align-items: center; gap: 16px; min-width: 0; }
.report-board-value, .report-board-label { display: block; }
.report-board-value { font-size: 17px; }
.report-board-label { color: #626771; font-size: 13px; }
.report-board-icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: #eeebff; color: #8666ee; }
.report-board-icon svg { width: 25px; height: 25px; }
.report-board-metrics a:nth-child(2) .report-board-icon { background: #e3f7fb; color: #23a0be; }
.report-board-metrics a:nth-child(3) .report-board-icon { background: #e4f7ef; color: #36a275; }
.report-board-metrics a:nth-child(4) .report-board-icon { background: #fcf1df; color: #c17c32; }
@media (max-width: 1150px) {
  .platform-top { grid-template-columns: 112px minmax(0, 1fr) auto; }
  .platform-nav > * { padding-inline: 14px; }
  .report-overview { grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr)); }
  .report-overview, .report-charts, .report-totals { gap: 16px; }
  .report-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
}
@media (max-width: 780px) {
  .platform-top { grid-template-columns: minmax(0, 1fr) auto; }
  .platform-logo { justify-self: start; padding: 8px 16px; }
  .platform-account summary { min-height: 44px; }
  .platform-nav { grid-row: 2; grid-column: 1 / -1; min-height: 44px; }
  .platform-admin .platform-dashboard, .platform-admin .platform-page { padding: 16px 14px 36px; }
  .platform-page-title { padding: 16px 14px 0; }
  .report-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-welcome { grid-column: 1 / -1; min-height: 210px; }
  .report-start { margin-top: 25px; }
  .report-charts { grid-template-columns: 1fr; }
  .report-methods { min-height: 310px; }
  .report-board { margin: 24px 0 18px; padding: 22px; }
  .report-board-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
}
@media (max-width: 480px) {
  .report-overview, .report-totals { gap: 10px; }
  .report-card { padding: 15px; border-radius: 15px; }
  .report-kpi { min-height: 94px; }
  .report-kpi p { font-size: 18px; }
  .report-info { right: 13px; top: 17px; }
  .report-today { min-height: 198px; }
  .report-today-amount { font-size: 23px; }
  .report-comparison { font-size: 11px; }
  .report-spark { height: 49px; }
  .report-chart { font-size: 10px; }
  .report-chart[data-chart-days='30'] .report-dates span:nth-child(5n + 1):nth-child(even) { visibility: hidden; }
  .report-board-metrics a { gap: 8px; }
  .report-board-icon { width: 33px; height: 33px; }
  .report-board-icon svg { width: 17px; height: 17px; }
}