:root {
  --ink: #13203a;
  --muted: #71809c;
  --line: #e8edf5;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --navy: #14213d;
  --blue: #3b6cff;
  --cyan: #16b9c5;
  --amber: #f3a73f;
  --red: #e96868;
  --green: #20a77b;
  --purple: #7858e8;
  --shadow: 0 10px 30px rgba(22, 42, 75, .07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: 15px; }
.app-shell { display: flex; min-height: 100vh; }

.workspace-switch { border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.06); border-radius: 9px; padding: 10px 11px; font-size: 12px; display: flex; align-items: center; gap: 8px; margin: 0 3px 18px; }
.workspace-switch .chevron { margin-left: auto; color: #8494b7; font-size: 16px; }.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }.green { background: #4ed29d; box-shadow: 0 0 0 3px rgba(78,210,157,.14); }
.sidebar-nav { overflow: auto; padding-right: 3px; scrollbar-width: none; -ms-overflow-style: none; }.sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }.nav-group { margin-bottom: 5px; }.nav-section { width:100%; text-align:left; letter-spacing:1.1px; display:flex; align-items:center; gap:7px; }.nav-section .section-chevron { margin-left:auto; }.nav-group.collapsed .section-chevron { transform:rotate(-90deg); }.nav-group.collapsed .nav-children { display:none; }.nav-item { width: 100%; border: 0; background: transparent; color: #c0cce4; text-align: left; padding: 9px 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 2px 0; }.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }.nav-item.active { background: linear-gradient(90deg, rgba(74,107,255,.95), rgba(74,107,255,.62)); color: #fff; box-shadow: 0 8px 18px rgba(47, 76, 193, .28); }.nav-icon { width: 20px; text-align: center; font-size: 16px; opacity: .9; }.nav-label { flex: 1; }.nav-badge { border-radius: 20px; background: rgba(255,255,255,.12); color: #bdc9df; padding: 2px 6px; font-size: 10px; }.nav-item.active .nav-badge { background: rgba(255,255,255,.2); color: #fff; }.post-tag { color: #8292b5; font-size: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 1px 4px; }.is-hidden { display:none !important; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 7px 0; }.mini-user { display: flex; align-items: center; gap: 9px; }.mini-user b { display: block; font-size: 12px; color: #fff; }.mini-user small { display: block; color: #8b9cbd; font-size: 11px; margin-top: 3px; }.avatar, .top-avatar { width: 30px; height: 30px; border-radius: 50%; background: #ffd996; color: #7a5013; display: grid; place-items: center; font-weight: 700; }.version { font-size: 10px; color: #687a9e; margin: 14px 0 0 40px; }
.breadcrumbs { color: #9aa6bb; font-size: 13px; display: flex; align-items: center; gap: 10px; }.breadcrumbs b { color: #d2d9e5; font-weight: 400; }.breadcrumbs strong { color: var(--ink); font-weight: 600; }.top-actions { display: flex; align-items: center; gap: 15px; }.top-divider { width: 1px; height: 22px; background: var(--line); }.notice-btn { border: 0; background: transparent; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }.notice-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }.top-avatar { width: 31px; height: 31px; font-size: 12px; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: #91a0ba; margin-bottom: 9px; }.count-pill { background:#fff1ee; color:#e26d60; border-radius:9px; padding:2px 6px; font-size:10px; }
.grid { display: grid; gap: 16px; }.metrics { grid-template-columns: repeat(4, minmax(150px, 1fr)); }.metric-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }.metric-card { padding: 18px 19px; position: relative; overflow: hidden; }.metric-card:after { content: ""; position: absolute; right: -20px; bottom: -28px; width: 90px; height: 90px; border-radius: 50%; background: var(--tint, #eef3ff); }.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--tint); font-size: 16px; }.metric-value { font-weight: 750; font-size: 28px; margin-top: 18px; letter-spacing: -.8px; }.metric-foot { display: flex; gap: 6px; align-items: center; margin-top: 7px; font-size: 11px; color: var(--muted); }.trend-up { color: var(--green); font-weight: 700; }.trend-warn { color: var(--amber); font-weight: 700; }
.two-col { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); margin-top: 16px; }.panel-head { padding: 18px 20px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.panel-title { font-size: 15px; font-weight: 750; }.panel-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }.panel-body { padding: 17px 20px; }.pipeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }.pipeline-step { padding: 14px 12px; border-radius: 9px; background: #f7f9fc; border: 1px solid #edf1f7; }.pipeline-step b { display: block; font-size: 18px; }.pipeline-step span { color: var(--muted); font-size: 11px; display: block; margin-top: 6px; }.bar { height: 5px; background: #e8edf6; border-radius: 6px; margin-top: 12px; overflow: hidden; }.bar i { height: 100%; display: block; border-radius: 6px; background: var(--bar, var(--blue)); }.task-list { display: grid; gap: 12px; }.task { display: flex; gap: 11px; align-items: flex-start; }.task-bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 6px; box-shadow: 0 0 0 4px #fff1f0; }.task-bullet.amber { background: var(--amber); box-shadow: 0 0 0 4px #fff7e8; }.task-bullet.blue { background: var(--blue); box-shadow: 0 0 0 4px #eef2ff; }.task b { display:block; font-size: 12px; font-weight: 650; }.task small { display:block; color: var(--muted); font-size: 11px; margin-top: 4px; }.task time { margin-left:auto; color:#aab4c7; font-size:10px; white-space:nowrap; }
.panel.full { margin-top: 16px; }.content-name { display:flex; gap:10px; align-items:center; }.cover { width: 32px; height: 32px; border-radius: 8px; display:grid; place-items:center; color:#fff; font-size:15px; background: linear-gradient(145deg,#3b6cff,#8aa4ff); }.cover.orange { background: linear-gradient(145deg,#f3a73f,#ffc978); }.cover.teal { background: linear-gradient(145deg,#12a9b6,#7de0db); }.content-name b { display:block; font-size:12px; }.content-name small { display:block; color:var(--muted); margin-top:3px; font-size:10px; }.status { display:inline-flex; align-items:center; gap:5px; border-radius:20px; padding:4px 8px; font-size:10px; font-weight:700; }.status:before { content:""; width:5px; height:5px; border-radius:50%; background: currentColor; }.status.published { color: var(--green); background:#eaf8f3; }.status.review { color: var(--amber); background:#fff5e4; }.status.draft { color:#71809c; background:#eff2f6; }.status.off { color:#9aa4b7; background:#f1f3f6; }.status.post { color:#876bdd; background:#f1edff; }.table-actions { display:flex; gap:7px; }
.filters { padding:13px 20px; border-bottom:1px solid var(--line); }.tag { padding: 4px 7px; border-radius:5px; background:#f1f4f8; color:#6f7d96; font-size:10px; }.tag.blue { background:#edf2ff; color:#4b6fe8; }.tag.purple { background:#f1edff; color:#7658d9; }
.ops-list { padding:8px 20px 18px; }.ops-row { display:flex; align-items:center; gap:12px; min-height:62px; padding:10px 0; border-bottom:1px solid #f0f3f8; }.ops-row:last-child { border-bottom:0; }.ops-icon { flex:0 0 32px; width:32px; height:32px; border-radius:9px; display:grid; place-items:center; font-size:14px; font-weight:800; background:#edf2ff; color:#4b6fe8; }.ops-icon.teal { background:#eaf8f3; color:#20a77b; }.ops-icon.orange { background:#fff5e4; color:#d68c19; }.ops-icon.purple { background:#f1edff; color:#7658d9; }.ops-icon.gray { background:#f1f3f6; color:#8c98ab; }.ops-main { min-width:0; flex:1; }.ops-main b { display:block; font-size:12px; color:var(--ink); }.ops-main small { display:block; margin-top:4px; font-size:10px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.notice-box { margin:16px 20px 20px; padding:11px 12px; border:1px solid #f4d79d; border-radius:8px; background:#fff9ec; color:#8c681d; font-size:11px; line-height:1.65; }
.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:16px; }.mini-stat { padding:15px 17px; border-radius:10px; background:#f8faff; border:1px solid #e9effc; }.mini-stat label { color:var(--muted); font-size:11px; }.mini-stat strong { display:block; font-size:22px; margin-top:7px; }.mini-stat em { color:var(--green); font-size:10px; font-style:normal; margin-left:6px; }.split-content { display:grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap:16px; }.timeline { display:grid; gap:14px; }.timeline-item { display:grid; grid-template-columns: 16px 1fr auto; gap:10px; align-items:start; }.timeline-line { position:relative; height:100%; }.timeline-line:before { content:""; display:block; width:9px; height:9px; border-radius:50%; background:var(--blue); margin-top:4px; box-shadow:0 0 0 4px #edf2ff; }.timeline-line:after { content:""; position:absolute; left:4px; top:16px; width:1px; height:calc(100% + 9px); background:#dfe6f2; }.timeline-item:last-child .timeline-line:after { display:none; }.timeline-item b { font-size:12px; }.timeline-item small { color:var(--muted); font-size:10px; display:block; margin-top:4px; }.timeline-item time { color:#a5afc0; font-size:10px; }.map-board { background:linear-gradient(145deg,#f6f8ff,#f8fbff); border:1px solid #e4ebfb; border-radius:12px; min-height:250px; padding:16px; position:relative; overflow:hidden; }.map-board:before, .map-board:after { content:""; position:absolute; border:1px dashed #cbd8f3; border-radius:50%; width:310px; height:150px; left:5%; top:44px; transform:rotate(-12deg); }.map-board:after { width:250px; height:110px; left:30%; top:96px; transform:rotate(16deg); }.map-title { position:relative; z-index:2; font-weight:700; font-size:12px; }.map-node { position:absolute; z-index:3; width:55px; height:55px; border-radius:50%; background:#fff; border:2px solid #8ca8ff; box-shadow:0 7px 18px rgba(70,103,196,.16); display:grid; place-items:center; text-align:center; font-size:10px; color:#4969c4; font-weight:700; }.map-node small { font-size:8px; font-weight:500; color:#98a8c5; }.map-node.n1 { top:73px; left:16%; }.map-node.n2 { top:151px; left:34%; }.map-node.n3 { top:71px; left:53%; border-color:#f4c372; color:#b57920; }.map-node.n4 { top:157px; left:71%; border-color:#74d3c1; color:#22927e; }.map-node.test { border-radius:12px; transform:rotate(45deg); }.map-node.test span { transform:rotate(-45deg); }
.empty { padding:42px 20px; text-align:center; color:var(--muted); }.empty strong { display:block; color:var(--ink); margin-bottom:5px; }.empty p { margin:0; font-size:12px; }.form-grid { padding:22px; display:grid; align-items:start; gap:15px; grid-template-columns:1fr 1fr; }.form-grid label { align-self:start; font-size:11px; color:#70809a; display:grid; gap:7px; }.form-grid label:nth-child(2) { grid-column:1 / -1; }.form-grid input:not(.admin-element-input):not(.el-input__inner) { box-sizing:border-box; width:100%; }.toast { position:fixed; right:28px; bottom:26px; background:#152441; color:#fff; border-radius:8px; padding:11px 15px; font-size:12px; box-shadow:0 10px 25px rgba(14,28,55,.2); opacity:0; transform:translateY(12px); pointer-events:none; transition:.22s; z-index:20; }.toast.show { opacity:1; transform:translateY(0); }

.user-action-unavailable { display: block; margin: 8px 0 14px; padding: 9px 12px; border: 1px solid #e9ddad; border-radius: 7px; background: #fff9e8; color: #765916; font-size: 13px; line-height: 1.5; }
@media (max-width: 1100px) { .metrics { grid-template-columns:repeat(2,1fr); }.two-col { grid-template-columns:1fr; } }

/* 用户管理详细原型 */
.user-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.user-statline { display:flex; align-items:baseline; gap:7px; color:var(--muted); font-size:12px; }
.user-statline b { color:var(--ink); font-size:20px; }.user-statline i { width:1px; height:17px; background:var(--line); margin:0 9px; }
.live-data-badge { display:inline-flex; align-items:center; gap:5px; margin-left:10px; padding:4px 8px; border:1px solid #bfe8d7; border-radius:999px; color:#16855e; background:#effbf5; font-size:11px; font-weight:600; white-space:nowrap; }.live-data-badge span { width:6px; height:6px; border-radius:50%; background:#22b981; box-shadow:0 0 0 3px rgba(34,185,129,.14); animation:live-data-pulse 2.4s ease-in-out infinite; }
@keyframes live-data-pulse { 0%, 100% { opacity:1; box-shadow:0 0 0 3px rgba(34,185,129,.14); } 50% { opacity:.65; box-shadow:0 0 0 5px rgba(34,185,129,.06); } }
.cell-note { display:block; color:var(--muted); font-size:9px; margin-top:5px; max-width:145px; overflow:hidden; text-overflow:ellipsis; }
.back-link { margin:0 0 13px; }
.user-summary { display:flex; align-items:center; gap:14px; background:linear-gradient(120deg,#fff,#f4f7ff); border:1px solid #dfe7f8; border-radius:13px; padding:18px 20px; margin-bottom:14px; box-shadow:var(--shadow); }
.user-avatar { width:48px; height:48px; border-radius:13px; background:linear-gradient(145deg,#3b6cff,#7f9dff); color:#fff; display:grid; place-items:center; font-size:20px; font-weight:750; }
.user-summary-main { flex:1; min-width:0; }.user-summary-main>div { display:flex; align-items:center; gap:9px; }.user-summary-main h2 { margin:0; font-size:19px; }.user-summary-main p { margin:6px 0 0; color:var(--muted); font-size:11px; }
.summary-balances { display:flex; align-items:center; gap:28px; padding-left:25px; border-left:1px solid var(--line); }.summary-balances div { min-width:55px; }.summary-balances small { display:block; color:var(--muted); font-size:10px; }.summary-balances b { display:block; margin-top:5px; font-size:18px; }
.state-alert { display:flex; align-items:center; gap:12px; border-radius:9px; padding:11px 14px; margin-bottom:14px; font-size:11px; }.state-alert b { white-space:nowrap; }.state-alert span { flex:1; }.state-alert.warning { background:#fff8e9; border:1px solid #f6dfae; color:#8b6627; }.state-alert.danger { background:#fff1f1; border:1px solid #f1c5c5; color:#a54444; }
.detail-panel { margin-top:0; display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }.detail-tabs { display:flex; flex:none; gap:3px; padding:0 18px; min-height:42px; align-items:center; border-bottom:1px solid var(--line); overflow:auto; }.detail-tab { white-space:nowrap; flex:none; }.detail-body { padding:20px; min-height:0; flex:1; overflow:auto; }
.user-detail-back { display:flex; align-items:center; justify-content:flex-start; align-self:flex-start; }
.user-detail-back .back-link { margin:0; }
#adminAppShell #pageContent:has(.detail-panel) { display:flex; flex-direction:column; gap:12px; height:100%; min-height:0; overflow:hidden; }
#userDetailSummary .user-summary { margin-bottom:0; }
#userDetailAlerts:empty { display:none; }
#userDetailBody[data-tab="membership"] { display:flex; flex-direction:column; gap:var(--user-detail-record-gap,12px); overflow:hidden; }
.user-membership-records { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
/* 根据本页实际剩余高度保留记录区，窄屏在概览内部滚动查看完整权益。 */
.user-record-summary.user-membership-summary { max-height:clamp(4.5rem,calc(100% - 14rem),42dvh); }
.user-membership-summary .info-field { min-height:0; padding:10px 12px; }
.user-membership-summary .info-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:16px; }.section-head h3, .subsection h3, .danger-zone h3 { margin:0; font-size:14px; }.section-head p, .danger-zone p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.info-grid { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); border:1px solid var(--line); border-radius:10px; overflow:hidden; }.info-field { min-height:74px; padding:13px 15px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }.info-field:nth-child(4n) { border-right:0; }.info-field small { display:block; color:var(--muted); font-size:10px; }.info-field b { display:block; margin-top:7px; font-size:12px; font-weight:650; }.info-field em { display:block; color:#9aa6b9; font-size:9px; font-style:normal; margin-top:5px; }.profile-remark { grid-column:span 2; }
.subsection { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }.subsection>h3 { margin-bottom:13px; }.danger-zone { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px; margin-top:25px; border:1px solid #f0d7d7; background:#fffafa; border-radius:10px; }.danger-actions { display:flex; gap:9px; }
.child-card { display:flex; align-items:center; gap:13px; background:#f7f9ff; border:1px solid #e3e9f8; padding:15px; border-radius:10px; margin-bottom:16px; }.child-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#ffe4a9; color:#9e691f; }.child-card h3 { margin:0; font-size:14px; }.child-card p { margin:5px 0 0; color:var(--muted); font-size:10px; }.child-card .tag { margin-left:auto; }
.membership-current { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.membership-current>div { padding:17px; border:1px solid #e1e8f7; border-radius:10px; background:#f8faff; }.membership-current small { color:var(--muted); font-size:10px; }.membership-current b { display:block; margin-top:8px; font-size:15px; }
.current-membership-card { grid-template-columns:repeat(5,minmax(130px,1fr)); }.future-expand { margin-top:10px; }
.user-membership-summary .membership-current-info { grid-template-columns:repeat(4,minmax(0,1fr)); }
.membership-current-info .info-field { min-width:0; overflow-wrap:anywhere; }
.membership-package-preview.info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:12px; }
.membership-package-preview .info-field { min-width:0; overflow-wrap:anywhere; }
@media (max-width:1200px) { .user-membership-summary .membership-current-info { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.asset-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px; }.asset-cards>div { padding:16px; border:1px solid var(--line); border-radius:10px; }.asset-cards span { color:var(--muted); font-size:11px; }.asset-cards b { display:block; font-size:25px; margin:8px 0; }.asset-cards small { color:#95a1b5; font-size:9px; }.number-up { color:var(--green); font-weight:750; }.number-down { color:var(--red); font-weight:750; }.empty.compact { padding:20px; }.form-stack { display:grid; gap:14px; }.form-columns { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.form-row { display:grid; gap:7px; color:var(--muted); font-size:11px; }.form-row span i { color:var(--red); font-style:normal; }.form-row input:not(.admin-element-input):not(.el-input__inner) { width:100%; resize:vertical; }.field-help { margin:0; color:#94a0b3; font-size:10px; }.risk-note { margin:0; padding:9px 11px; border-radius:7px; background:#f7f9fc; color:#8491a7; font-size:10px; line-height:1.6; }.confirm-warning { padding:11px 12px; border:1px solid #f1cfcf; background:#fff4f4; color:#a14b4b; border-radius:8px; font-size:11px; line-height:1.6; }.form-error { margin:0 22px; padding:9px 11px; border-radius:7px; background:#fff0f0; color:#c34747; font-size:11px; }.current-value { padding:11px 12px; border-radius:8px; background:#f5f7fb; color:var(--muted); font-size:11px; }.current-value b { color:var(--ink); }.balance-preview { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }.balance-preview span { padding:9px; background:#f5f7fb; border-radius:7px; color:var(--muted); font-size:10px; }.balance-preview b { color:var(--ink); margin-left:5px; }
.choice-field { display:grid; gap:8px; color:var(--muted); font-size:11px; }.choice-field span i { color:var(--red); font-style:normal; }.choice-chips { display:flex; flex-wrap:wrap; gap:8px; }.choice-chip { min-width:76px; }
@media (max-width: 1200px) { .info-grid { grid-template-columns:repeat(2,1fr); }.info-field:nth-child(4n) { border-right:1px solid var(--line); }.info-field:nth-child(2n) { border-right:0; } }
.advanced-filters { padding:14px 16px; border-bottom:1px solid var(--line); background:#fbfcfe; }
.advanced-filters label { color:var(--muted); font-size:9px; }.advanced-filters label > span:not(.admin-input-control) { padding-left:2px; }
.filter-result { color:var(--muted); font-size:10px; padding:0 3px 8px; }.asset-filterbar { margin:0 0 14px; border:1px solid var(--line); border-radius:9px; }
.inline-detail { display:block; }.inline-detail:hover { text-decoration:underline; }
.readonly-banner { padding:10px 12px; margin-bottom:14px; border:1px solid #dce5f8; border-radius:8px; background:#f5f8ff; color:#647596; font-size:10px; }.realname-info .info-field:nth-child(5), .realname-info .info-field:nth-child(6) { grid-column:span 2; }
.summary-balances { gap:18px; }.summary-balances div { min-width:66px; }.pending-member { display:block; margin-top:6px; color:#9a6a1c; font-size:10px; }
.asset-cards.four { grid-template-columns:repeat(4,1fr); }.pending-plan { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.pending-plan>div { padding:13px; border:1px solid #f0dfb9; border-radius:9px; background:#fff9ec; }.pending-plan small { display:block; color:#9b7b3f; font-size:10px; }.pending-plan b { display:block; margin-top:6px; font-size:12px; }
.rule-banner { margin-bottom:15px; padding:11px 13px; border:1px solid #dce5f8; border-radius:8px; background:#f5f8ff; color:#647596; font-size:11px; }.link-cell { max-width:210px; word-break:break-all; color:#4b6fe8; }
.balance-preview { grid-template-columns:repeat(4,1fr); }
.asset-subtabs { display:flex; gap:7px; padding:4px 0 15px; border-bottom:1px solid var(--line); overflow:auto; }.asset-subtab { white-space:nowrap; }.asset-overview-note { display:flex; gap:10px; align-items:flex-start; margin-top:20px; padding:15px; border:1px solid #dce5f8; background:#f6f8ff; border-radius:9px; color:#657594; font-size:11px; line-height:1.7; }.asset-overview-note b { color:#425eaf; white-space:nowrap; }
@media (max-width: 1200px) { }
@media (min-width: 1800px) { .advanced-filters { padding:16px 20px; } }
@media (max-width: 1350px) { .current-membership-card { grid-template-columns:repeat(3,minmax(130px,1fr)); }.asset-cards.four { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 900px) { .user-toolbar, .danger-zone { align-items:flex-start; flex-direction:column; }.user-statline { flex-wrap:wrap; }.summary-balances { flex-wrap:wrap; justify-content:flex-start; }.info-grid, .membership-current, .current-membership-card, .asset-cards.four, .pending-plan { grid-template-columns:1fr; }.info-field, .info-field:nth-child(2n), .info-field:nth-child(4n) { border-right:0; }.profile-remark, .realname-info .info-field:nth-child(5), .realname-info .info-field:nth-child(6) { grid-column:auto; }.form-columns { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { .live-data-badge span { animation:none; } }
/* User operation history may contain structured before/after snapshots. */
.audit-json { max-width: min(70vw, 900px); max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }

/* User management: stable columns, aligned controls, and readable operation forms. */

.advanced-filters { padding: 18px 20px; }
.advanced-filters label { font-size: 12px; }
.advanced-filters .filter-result { font-size: 12px; padding: 0 0 9px; }
.user-table .cell-note { font-size: 11px; white-space: normal; }
.children-table .empty, .user-table .empty { padding: 38px 20px; color: #71809c; }
.field-help { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: #71809c; }
.form-stack > .field-help { margin-top: 0; }
.form-stack > div:empty { display: none; }
@media (max-width: 700px) {

  .detail-body { padding:12px; --user-detail-record-gap:8px; }
  .sidebar .nav-group .nav-children { display: block; }
  .nav-item { justify-content: center; padding: 12px; }

  .top-actions { gap: 8px; }
  .top-actions > .notice-btn, .top-divider, .breadcrumbs > span, .breadcrumbs > b { display: none; }

  .advanced-filters { padding: 16px; }
  .advanced-filters .filter-result { padding-bottom: 0; }
  .summary-balances { gap: 14px; }
  .user-statline { row-gap: 10px; }
}

.filter-dates { display: flex; flex-wrap: wrap; gap: 12px; }
/* Content PRD template */
.cm-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;gap:12px}.cm-tabs{display:flex;gap:4px;background:#edf2fa;padding:4px;border-radius:10px}.cm-tab{border:0;background:transparent;padding:8px 16px;border-radius:7px;color:#65738c;font-size:12px;cursor:pointer}.cm-tab.active{background:#fff;color:#2457dd;box-shadow:0 1px 3px #ccd4e6}.cm-actions{display:flex;gap:8px;align-items:center}.cm-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:14px}.cm-tree-panel{min-height:620px}.cm-cat{border-bottom:1px solid #eef2f8;padding:12px 14px}.cm-cat-head{display:flex;align-items:center;gap:7px;font-size:13px}.cm-cat-head b{flex:1}.cm-caret{color:#8fa0bb}.cm-sub-list{margin:8px 0 0 5px;display:grid;gap:3px}.cm-sub{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:5px;border:0;background:transparent;padding:9px 8px;border-radius:7px;text-align:left;color:#425069;cursor:pointer;font-size:12px}.cm-sub:hover, .cm-sub.active{background:#edf3ff;color:#2457dd}.cm-sub small{grid-column:2/4;color:#9ba8bc;font-size:10px;margin-top:2px}.cm-sub em{font-style:normal;font-size:10px;padding:2px 4px}.cm-dot{width:6px;height:6px;border-radius:50%;background:#a5b2c6}.cm-sub.active .cm-dot{background:#3b6cff}.cm-main{min-width:0}.cm-summary{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:16px}.cm-summary-icon{width:40px;height:40px;border-radius:12px;background:#edf3ff;color:#3b6cff;display:grid;place-items:center;font-weight:bold}.cm-summary .panel-title{font-size:15px}.cm-summary-actions{margin-left:auto;display:flex;gap:7px}.cm-node-strip{display:flex;gap:7px;padding:0 16px 14px;flex-wrap:wrap}.cm-node-chip{border:1px solid #dce5f2;padding:5px 8px;border-radius:6px;font-size:11px;color:#52627b;background:#fbfcfe}.cm-node-chip.test{border-color:#f1cfa0;color:#a66d24;background:#fff8ed}.cm-url{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71819b;font-size:11px}.cm-form-panel{max-width:920px}.field-help{color:#95a1b4;font-size:11px;margin-top:4px}.cm-map-board{padding:24px;display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:14px;min-height:340px;background:linear-gradient(135deg,#f9fbff,#f2f6ff)}.cm-map-node{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:105px;background:#fff;border:1px solid #d6e2f5;border-radius:12px;box-shadow:0 5px 14px #dce5f3;color:#3e4f6d;cursor:grab}.cm-map-node strong{color:#3b6cff;font-size:17px}.cm-map-node span{font-weight:600;font-size:12px}.cm-map-node small{font-size:10px;color:#99a8be}.cm-map-node.test{border-color:#f0c880;background:#fffaf1}.cm-map-node.test strong{color:#c18020}.cm-node-delete{position:absolute;right:5px;top:5px;font-size:13px!important;color:#aab4c4}.notice-box.compact{display:inline-block;padding:8px 10px;margin:0;font-size:11px}.cm-portrait-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;padding:16px}.cm-portrait-card{display:flex;gap:12px;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff}.cm-portrait-img{width:88px;height:88px;border-radius:12px;background:linear-gradient(135deg,#dff4ff,#b7d5ff);display:grid;place-items:center;color:#fff;font-size:28px;overflow:hidden;flex:none}.cm-portrait-img img{width:100%;height:100%;object-fit:cover}.cm-portrait-body{min-width:0}.cm-portrait-body h3{margin:2px 0 8px;font-size:14px}.cm-portrait-body p{font-size:11px;color:#74839b;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.danger{color:#d85858!important}.muted{color:#a6b0bf}.empty{text-align:center;color:#a2adbf;padding:36px!important}
@media(max-width:960px){.cm-layout{grid-template-columns:1fr}.cm-tree-panel{min-height:0}.cm-map-board{grid-template-columns:repeat(2,minmax(120px,1fr))}}
.cm-cat-select{flex:1;min-width:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer;padding:0}.cm-cat-select b{display:block}.cm-cat-select small{display:block;color:#8fa0bb;font-size:10px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-map-board.has-positions{display:block;position:relative;min-height:520px}.cm-map-board.has-positions .cm-map-node.positioned{position:absolute;width:132px;min-height:90px;transform:translate(-50%,-50%)}.cm-map-board.has-positions .cm-map-node.map-special{position:absolute;right:18px;bottom:18px;width:150px;min-height:90px}.cm-map-node .cm-new-at-node{margin-top:4px}.cm-cover-field{padding:16px;border:1px dashed #cbd7ea;border-radius:10px;background:#f8faff}.cm-cover-field img{width:120px;height:90px;object-fit:contain}.cm-form-error{margin:0;color:#bc3646}.cm-impact-body{padding:20px 24px}.cm-impact-warning{padding:14px 16px;border:1px solid #f2cf94;border-radius:10px;background:#fff8e9;color:#9b6518;font-size:13px;line-height:1.7}.cm-impact-body h3{margin:18px 0 10px;font-size:13px}.cm-impact-list{max-height:280px;overflow:auto;border:1px solid #dce5f2;border-radius:10px}.cm-impact-row{display:grid;gap:5px;padding:13px 16px;border-bottom:1px solid #e8edf5}.cm-impact-row:last-child{border-bottom:0}.cm-impact-row strong{font-size:13px}.cm-impact-row small, .cm-impact-row p{margin:0;color:#71819a;font-size:11px;line-height:1.5}.cm-impact-empty{padding:24px;text-align:center;color:#8b98ab}.cm-impact-body>label{display:grid;gap:8px;margin-top:16px;font-size:13px}
.cm-inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.cm-portrait-reference{display:flex;align-items:center;gap:5px;color:#74839b;font-size:11px;margin-top:4px}

/* Content management navigation, filters and destructive actions. */
.cm-page-nav{justify-content:flex-start;min-height:36px}.cm-location-note{color:#7b899f;font-size:11px}.cm-empty-guide{display:grid;gap:7px;padding:34px 20px;text-align:center;color:#8795aa}.cm-empty-guide b{color:#34435d;font-size:13px}.cm-empty-guide span{font-size:11px;line-height:1.6}.cm-list-actions{flex-wrap:wrap;justify-content:flex-end}.cm-log-head{align-items:flex-end;gap:20px}.cm-filter-bar{padding:10px;border:1px solid #e2e8f2;border-radius:11px;background:#f8faff}.cm-filter-keyword, .cm-filter-field{color:#71809a;font-size:10px;font-weight:650}.empty b{display:block;margin-bottom:6px;color:#52617a}.empty p{margin:0;line-height:1.6}
.cm-portrait-table{min-width:980px}.cm-portrait-table td>b, .cm-portrait-table td>small{display:block}.cm-portrait-table td>small{margin-top:5px;color:#8795aa;font-size:10px;line-height:1.5}.cm-portrait-table-img{width:52px;height:52px;border-radius:10px;font-size:20px}.cm-table-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}
@media(max-width:1280px){.cm-log-head{align-items:flex-start;flex-direction:column}}

/* Content management: align the live pages with the approved blue-grey prototype. */
.cm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}
.cm-library-toolbar {
  min-height: 70px;
  padding: 13px 16px;
  border-radius: 12px;
}
.cm-search-scope {
  color: #7c8aa1;
  font-size: 11px;
  white-space: nowrap;
}
.cm-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cm-tree-panel {
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
}
.cm-tree-panel > .panel-head {
  padding: 16px 18px;
}
.cm-new-category {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: #26354d;
  background: #f3f4f6;
  white-space: nowrap;
}
.cm-tree {
  display: grid;
  gap: 10px;
  padding: 10px;
}
.cm-cat {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #fff;
}
.cm-cat.active {
  border-color: #bcd0ff;
  background: #f9fbff;
}
.cm-cat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 12px 8px;
}
.cm-cat-select {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  color: #26354d;
  background: transparent;
  text-align: left;
}
.cm-cat-select > span:last-child {
  min-width: 0;
}
.cm-cat-select b {
  display: block;
  overflow: hidden;
  color: #26354d;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-cat-select small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #8a99af;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-caret {
  color: #7185a8;
  line-height: 1.35;
}
.cm-cat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.cm-cat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 10px 31px;
  color: #8a99af;
  font-size: 10px;
}
.cm-cat-meta .status {
  padding: 3px 7px;
}
.cm-sub-list {
  position: relative;
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0 8px 10px 27px;
}
.cm-sub-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 14px;
  left: 24px;
  width: 1px;
  background: #d7e2f4;
}
.cm-sub {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 9px 9px 9px 0;
  border: 0;
  border-radius: 8px;
  color: #425069;
  background: transparent;
  text-align: left;
}
.cm-sub:hover, .cm-sub.active {
  color: #2457dd;
  background: #edf3ff;
}
.cm-dot {
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b5c2d7;
  box-shadow: 0 0 0 1px #b5c2d7;
}
.cm-sub.active .cm-dot {
  background: #3b6cff;
  box-shadow: 0 0 0 1px #3b6cff;
}
.cm-sub-copy {
  min-width: 0;
}
.cm-sub-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-sub .cm-sub-copy small {
  display: block;
  grid-column: auto;
  margin-top: 4px;
  overflow: hidden;
  color: #8b99ae;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-sub em {
  grid-column: auto;
  padding: 3px 6px;
  white-space: nowrap;
}
.cm-sub-empty {
  padding: 8px 8px 9px 18px;
  color: #9aa7b9;
  font-size: 11px;
}
.cm-main, .cm-content-summary {
  min-width: 0;
}
.cm-content-panel {
  min-width: 0;
  overflow: hidden;
}
.cm-content-head {
  gap: 20px;
  min-height: 92px;
  padding: 16px 18px;
}
.cm-context {
  margin-bottom: 6px;
  color: #8192ae;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
}
.cm-content-head .panel-title {
  color: #1f2e49;
  font-size: 18px;
}
.cm-summary-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}
.cm-table, .cm-list-table {
  min-width: 860px;
  table-layout: fixed;
}
.cm-table .content-name > div {
  min-width: 0;
}
.cm-table .content-name b, .cm-table .content-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.cm-url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #3566e8;
  font-size: 11px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-url:hover {
  text-decoration: underline;
}
.cm-page-nav {
  justify-content: flex-start;
  min-height: 38px;
  margin-bottom: 14px;
}
.cm-location-note {
  color: #7888a0;
  font-size: 11px;
}
.cm-list-panel, .cm-log-panel, .cm-portrait-panel {
  overflow: hidden;
}
.cm-list-head, .cm-portrait-head {
  gap: 22px;
  min-height: 82px;
}
.cm-list-intro {
  min-width: 180px;
}
.cm-list-head > div:first-child, .cm-portrait-head > div:first-child {
  min-width: 220px;
}
.cm-title-count {
  margin-left: 5px;
  color: #71809c;
  font-size: 11px;
  font-weight: 600;
}
.cm-list-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}
.cm-entry-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7b899f;
  font-size: 11px;
  white-space: nowrap;
}
.cm-list-actions {
  flex: 1;
  justify-content: flex-end;
}
.cm-list-table td > b, .cm-list-table td > small, .cm-log-table td > b, .cm-log-table td > small {
  display: block;
}
.cm-list-table td > small, .cm-log-table td > small {
  margin-top: 5px;
  color: #8795aa;
  font-size: 10px;
}
.cm-filter-bar {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fbfcfe;
}
.cm-filter-keyword, .cm-filter-field {
  color: #65758f;
  font-size: 11px;
  font-weight: 650;
}
.cm-log-detail {
  max-width: 440px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}
.cm-portrait-head .cm-actions {
  flex: 0 0 auto;
}
.cm-portrait-filters {
  justify-content: flex-start;
  padding: 14px 18px;
  background: #fbfcfe;
}
.cm-portrait-table {
  min-width: 1080px;
  table-layout: fixed;
}
.cm-portrait-table-img {
  width: 56px;
  height: 56px;
  border: 1px solid #dce5f2;
  border-radius: 12px;
  background: #eef3ff;
  color: #6c89ee;
}
.cm-icon-close {
  width: 34px;
  height: 34px;
  line-height: 1;
}
.cm-field-label {
  color: #5f708b;
  font-size: 12px;
  line-height: 1.5;
}
.cm-field-label small {
  margin-left: 4px;
  color: #8795aa;
  font-weight: 500;
}
.cm-upload-block {
  display: grid;
  gap: 8px;
}
.cm-upload-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 14px !important;
  min-height: 104px;
  padding: 12px !important;
  overflow: hidden;
  border: 1px dashed #c7d5ef;
  border-radius: 10px;
  background: #f8faff;
  cursor: pointer;
}
.cm-upload-card:hover {
  border-color: #91abec;
  background: #f5f8ff;
}
.cm-upload-visual {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #3264ea;
  background: #eaf0ff;
  font-size: 24px;
}
.cm-upload-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-upload-visual img[hidden] {
  display: none;
}
.cm-upload-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.cm-upload-copy b {
  color: #26354d;
  font-size: 13px;
}
.cm-upload-copy small {
  display: block;
  margin: 0 !important;
  overflow: hidden;
  color: #71819b !important;
  font-size: 10px !important;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-upload-trigger {
  justify-self: end;
  padding: 8px 12px;
  color: #425675;
  background: #fff;
  white-space: nowrap;
}
.cm-file-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
}
.cm-audio-preview {
  width: 100%;
  height: 36px;
}
.cm-impact-note, .cm-reference-note {
  margin: 0;
  color: #65758f;
  font-size: 11px;
  line-height: 1.65;
}
.cm-reference-note {
  padding: 9px 11px;
  border-radius: 8px;
  background: #f6f8fc;
}
.cm-tree admin-button, .cm-summary-actions admin-button, .cm-table-actions admin-button {
  word-break: keep-all;
}
.cm-filter-bar label {
  word-break: keep-all;
}
.cm-content-panel .status, .cm-list-panel .status, .cm-log-panel .status, .cm-portrait-panel .status {
  white-space: nowrap;
}
.cm-search-label {
  color: #31415d;
  font-size: 12px;
  white-space: nowrap;
}
.cm-search-results {
  overflow: hidden;
}
.cm-search-results-head {
  min-height: 86px;
  gap: 24px;
}
.cm-search-results-head .panel-title {
  font-size: 18px;
}
.cm-search-result-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}
.cm-search-result-meta > span {
  padding-right: 18px;
  border-right: 1px solid #e2e8f2;
  color: #7c8aa0;
  font-size: 11px;
  white-space: nowrap;
}
.cm-search-result-meta strong {
  margin-right: 5px;
  color: #3b6cff;
  font-size: 25px;
  line-height: 1;
}
.cm-form-guidance {
  margin: 0;
  color: #667791;
  font-size: 11px;
  line-height: 1.65;
}
.cm-platform-field {
  align-items: center;
  min-height: 58px;
  background: #fbfcff;
}
.cm-platform-field legend {
  padding: 0 5px;
  color: #34435d;
  font-size: 12px;
  font-weight: 700;
}
.cm-platform-field legend small {
  color: #8b98ad;
  font-weight: 500;
}
.cm-sub-management-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e1e8f3;
  border-radius: 9px;
  background: #f8faff;
}
.cm-sub-management-actions span {
  color: #7d8ba1;
  font-size: 11px;
}
.cm-big-test-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #f8faff;
}
.cm-big-test-card > div {
  display: grid;
  gap: 5px;
}
.cm-big-test-card b {
  color: #273650;
  font-size: 13px;
}
.cm-big-test-card span {
  color: #7d8ca3;
  font-size: 10px;
}
.cm-choice-body {
  padding: 20px 24px;
  color: #3b4a62;
  font-size: 13px;
  line-height: 1.7;
}
.cm-choice-body p {
  margin: 0;
}
.cm-exploration-head {
  min-height: 78px;
  gap: 20px;
}
.cm-exploration-head .panel-title {
  font-size: 19px;
}
.cm-exploration-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-exploration-grid label:nth-child(2) {
  grid-column: auto;
}
.cm-exploration-grid .cm-full {
  grid-column: 1 / -1;
}
@media (max-width: 1500px) {
  .cm-list-head { align-items: flex-start; flex-direction: column; }
  .cm-list-meta { width: 100%; margin-left: 0; justify-content: space-between; }
  .cm-list-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 1280px) {
  .cm-portrait-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1180px) {
  .cm-layout { grid-template-columns: minmax(0, 1fr); }
  .cm-tree-panel { min-height: 0; }
  .cm-cat-head { grid-template-columns: minmax(0, 1fr) auto; }
  .cm-content-head { align-items: flex-start; flex-direction: column; }
  .cm-summary-actions { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .cm-toolbar, .cm-list-meta, .cm-list-actions, .cm-portrait-head .cm-actions { align-items: stretch; flex-direction: column; }
  .cm-search-scope, .cm-entry-note { white-space: normal; }
  .cm-cat-head { grid-template-columns: minmax(0, 1fr); }
  .cm-cat-actions { justify-content: flex-start; padding-left: 19px; }
  .cm-upload-card { grid-template-columns: 64px minmax(0, 1fr); }
  .cm-upload-visual { width: 64px; height: 64px; }
  .cm-upload-trigger { grid-column: 2; justify-self: start; }
  .cm-search-results-head, .cm-search-result-meta, .cm-big-test-card { align-items: flex-start; flex-direction: column; }
  .cm-search-result-meta > span { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid #e2e8f2; }
  .cm-exploration-grid { grid-template-columns: 1fr; }
  .cm-exploration-grid .cm-full { grid-column: 1; }
}

/* Payment order list */
.payment-order-panel { overflow: hidden; }
.payment-order-controls { max-height: 50%; min-height: 0; overflow: auto; --admin-filter-max-height: none; }
.payment-filter-error { margin: 12px 20px 0; padding: 9px 11px; border: 1px solid #f1cfcf; border-radius: 7px; background: #fff4f4; color: #a14b4b; font-size: 12px; }
.payment-order-table .trade-no { color: #6f7f99; font-variant-numeric: tabular-nums; }
.payment-order-actions { align-items: center; }
.payment-order-metrics .metric-value { font-variant-numeric: tabular-nums; }
@media (max-height: 600px) {
  .payment-order-metrics { height: 10dvh; }
  .payment-order-controls { max-height: 22%; }
}
@media (max-width: 700px) and (max-height: 400px) {
  #adminAppShell:has(.payment-order-panel) .sidebar { max-height: 12dvh; }
  .payment-order-metrics { height: 5dvh; }
  .payment-order-controls { max-height: var(--admin-control-height); }
}
.refund-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.refund-title { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 750; }
@media (max-width: 720px) {
}

/* The content audit remains in its working page context, but needs room for
   its six-column read-only table when opened from the right-side action. */
.phone-eye { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 4px; }

.cm-log-refreshing {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

/* 用户记录页保留表格空间，较长账户摘要单独滚动。 */
.user-record-summary { flex: none; max-height: 18dvh; overflow: auto; }
.user-record-summary .asset-cards { margin-bottom: 8px; }
@media (max-height: 800px), (max-width: 900px) {
  .user-summary { max-height: 14dvh; overflow: auto; flex-wrap: nowrap; margin-bottom: 0; }
  .user-record-summary { max-height: 8dvh; }
  .user-record-controls { max-height: 12dvh; overflow: auto; }

}

@media (max-height: 650px) {
  .user-summary { max-height:10dvh; }
  .user-record-summary.user-membership-summary { max-height:clamp(4.5rem,calc(100% - 14rem),32dvh); }
}
