/* 魔客工作台 · 品牌层与工作总览 */
:root {
  --bg:#f0f5ff; --surface:#fff; --surface2:#f8faff;
  --ink:#182747; --ink2:#425371; --ink3:#667792;
  --line:#e0e9f8; --line2:#eaf0fa;
  --pri:#3b62ed; --pri-d:#274bc5; --pri-soft:#edf1ff; --pri-line:#c6d3ff;
  --pri-grad:linear-gradient(110deg,#3157e8,#548afe);
  --sb:#f9fbff; --sb2:#edf3ff; --sb-t:#4a5d7c; --sb-line:#e0e9f8; --sb-brand:#1b2b4e;
  --sb-active-bg:#e8efff; --sb-active-t:#284fc9;
  --topbar-bg:#f9fbffed; --kbd:#edf2fc;
  --neu:#586981; --neu-soft:#eff4fb;
  --r:15px; --shadow:0 2px 3px #26488406,0 8px 24px #3354a008;
  --shadow-sm:0 4px 14px #3354a00b;
  --app-header-h:65px;
}
[data-theme="dark"] {
  --bg:#11182a; --surface:#192337; --surface2:#1e2b44; --ink:#eef3ff;
  --ink2:#cbd6ec; --ink3:#a2b0cd; --line:#2a3b59; --line2:#24324b;
  --pri:#627fff; --pri-d:#4865e8; --pri-soft:#25345d; --pri-line:#415b9c;
  --pri-grad:linear-gradient(110deg,#405bd5,#506fdc);
  --sb:#151f33; --sb2:#202f4a; --sb-t:#b3c0da; --sb-line:#233350; --sb-brand:#eef3ff;
  --sb-active-bg:#263660; --sb-active-t:#b5c6ff; --topbar-bg:#151f33ed;
  --shadow:0 4px 18px #060b1940; --shadow-sm:0 4px 12px #060b192e;
}
button:focus-visible,a:focus-visible {
  outline:2px solid var(--pri); outline-offset:3px;
}
.main {
  background:radial-gradient(ellipse at 92% 2%,#e4eefe 0,transparent 42%),var(--bg);
}
[data-theme="dark"] .main {
  background:radial-gradient(ellipse at 92% 2%,#192b4f 0,transparent 48%),var(--bg);
}
.sidebar {width:216px;}
.brand {background:none; border:0; border-bottom:1px solid var(--sb-line); color:inherit; text-align:left; padding:0 13px; gap:8px;}
.brand-mark {display:block; width:42px; height:42px; background:none; box-shadow:none; border-radius:0;}
.brand-name {font-weight:800; font-size:14px; letter-spacing:0; white-space:nowrap;}
.brand-sub {margin-top:4px; font-size:10px; letter-spacing:.2px;}
.sb-scroll {padding:12px 11px;}
.sb-side {padding:6px 11px;}
.nav-item {gap:9px; border-radius:9px; min-height:35px; padding:6px 10px;}
.nav-item.active {color:#fff; background:var(--pri-grad); box-shadow:0 4px 10px #3b62ed30;}
.nav-item.active::before {display:none;}
.nav-item.nav-factory:not(.active) {color:var(--sb-active-t); background:var(--sb-active-bg);}
.nav-item:not(.active):hover {color:var(--pri-d); background:var(--sb2);}
.nav-item + .nav-item {margin-top:3px;}
.nav-label {font-size:12.5px; letter-spacing:.2px;}
.nav-item.active .nav-label,.nav-factory .nav-label {font-weight:700;}
.nav-group {margin-top:8px;}
.nav-group-title {padding:6px 10px 4px; color:var(--ink3); letter-spacing:1.2px; font-size:10px;}
.sb-foot {padding:10px 11px;}
.local-badge {background:var(--surface2); color:var(--ink2); border-color:var(--line); min-height:32px;}
.topbar {padding:0 clamp(16px,2.1vw,34px); border-bottom-color:var(--line); gap:10px;}
.tb-title {font-size:16px; font-weight:800; white-space:nowrap;}
.tb-right {gap:8px;}
.chip-state {padding:5px 9px; font-size:11px; white-space:nowrap;}
.chip-state.demo {color:var(--pri-d); background:var(--pri-soft); border-color:var(--pri-line);}
[data-theme="dark"] .chip-state.demo {color:#bbcbff;}
.moke-avatar {width:36px; height:36px; background:var(--surface); border:1px solid var(--line); border-radius:11px;}
.moke-avatar img {display:block; width:33px; height:33px;}
.content {padding:21px clamp(16px,2.1vw,34px) 36px;}
.page-title {font-size:24px; font-weight:800; letter-spacing:-.4px; line-height:1.35;}
.page-q {color:var(--ink2); line-height:1.55;}
.page-q::before {content:none;}
.btn-pri {background:var(--pri-grad); border-color:transparent;}
.btn-pri:hover {background:var(--pri-d); border-color:transparent;}
.chip.active {color:var(--pri-d); background:var(--pri-soft); border-color:var(--pri-line);}
[data-theme="dark"] .chip.active {color:#cbdaff;}
.signal-card {background:var(--surface); border-color:var(--line); box-shadow:var(--shadow);}
.radar-modebar {padding:2px 9px 0; background:var(--surface); border:1px solid var(--line); border-radius:12px;}
.radar-modebar>button {padding:10px 14px;}
.radar-modebar>button.active {color:var(--pri-d);}
[data-theme="dark"] .radar-modebar>button.active {color:#b5c6ff;}
.radar-provider {padding-right:7px;}

.moke-dashboard {
  --panel-gap:16px;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(245px,28%);
  gap:var(--panel-gap); max-width:1510px; margin:auto;
}
.moke-dashboard-main,.moke-dashboard-aside {
  display:flex; flex-direction:column; min-width:0; gap:var(--panel-gap);
}
.moke-hero {
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; min-height:224px;
  padding:22px clamp(19px,2.7vw,42px);
  border:1px solid #dae5ff; border-radius:19px;
  background:radial-gradient(ellipse at 83% 50%,#d3ddff 0,transparent 54%),
    linear-gradient(113deg,#fefeff 0,#f7f8ff 39%,#e8f0ff 79%,#f4edff 100%);
  box-shadow:0 6px 26px #3b61cc14;
}
.moke-hero-copy {position:relative; z-index:1; max-width:66%; min-width:0;}
.moke-hero-label {display:flex; align-items:center; gap:6px; font-size:11px; font-weight:800; color:#3959bc; margin-bottom:9px; letter-spacing:.6px;}
.moke-hero-label span {display:flex; align-items:center;}
.moke-hero-label svg {width:15px; height:15px;}
.moke-hero h1 {margin:0; color:#1a2952; font-size:clamp(25px,3.15vw,43px); font-weight:850; letter-spacing:-.07em; line-height:1.12;}
.moke-hero h1 strong {color:#395aeb; font-weight:inherit;}
.moke-hero-copy > p:not(.moke-hero-label) {margin-top:10px; color:#495e86; line-height:1.55; font-size:12.5px;}
.moke-hero-actions {display:flex; flex-wrap:wrap; gap:8px; margin-top:15px;}
.moke-hero-actions .btn {height:34px; padding-inline:14px; font-weight:750;}
.moke-hero-actions .btn-pri {box-shadow:0 4px 10px #3b62ed38;}
.moke-hero-actions .btn:not(.btn-pri) {background:#ffffffc7; color:#334a85; border-color:#dce5fe;}
.moke-hero-art {position:absolute; z-index:0; width:52%; height:112%; inset:50% -2% auto auto; transform:translateY(-50%); object-fit:contain; pointer-events:none;}
[data-theme="dark"] .moke-hero {background:radial-gradient(ellipse at 83% 50%,#34437d,transparent 60%),linear-gradient(113deg,#1c2945,#263251); border-color:#384f7b;}
[data-theme="dark"] .moke-hero h1 {color:#f0f4ff;}
[data-theme="dark"] .moke-hero h1 strong {color:#9caeff;}
[data-theme="dark"] .moke-hero-label,[data-theme="dark"] .moke-hero-copy > p:not(.moke-hero-label){color:#cad7f4;}
.moke-panel {padding:15px 16px 16px; min-width:0;}
.moke-panel-head {display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:13px;}
.moke-panel-head h2 {font-size:15px; font-weight:800; color:var(--ink);}
.moke-text-link {background:none; border:0; color:var(--pri-d); padding:3px; font-size:11px; font-weight:700; white-space:nowrap;}
[data-theme="dark"] .moke-text-link {color:#b5c6ff;}
.moke-text-link:hover {text-decoration:underline; text-underline-offset:3px;}
.moke-muted {font-size:11px; color:var(--ink3);}
.moke-template-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;}
.tone-blue {--tone-bg:#eef3ff; --tone-border:#dce7ff; --tone:#3b63e7; --tone-highlight:#749bff;}
.tone-violet {--tone-bg:#f3efff; --tone-border:#e9e0ff; --tone:#7353d6; --tone-highlight:#a587fb;}
.tone-mint {--tone-bg:#eafaf5; --tone-border:#d9f2e8; --tone:#139670; --tone-highlight:#46d5a3;}
.tone-amber {--tone-bg:#fff7e9; --tone-border:#faead1; --tone:#ba6d14; --tone-highlight:#f6ac4f;}
.tone-pink {--tone-bg:#fef0f5; --tone-border:#f9dce9; --tone:#d45179; --tone-highlight:#ee8aac;}
.tone-cyan {--tone-bg:#edf8ff; --tone-border:#d8edff; --tone:#1782c7; --tone-highlight:#59bbf3;}
[data-theme="dark"] .tone-blue {--tone-bg:#23375c; --tone-border:#314791;}
[data-theme="dark"] .tone-violet {--tone-bg:#342b57; --tone-border:#473869;}
[data-theme="dark"] .tone-mint {--tone-bg:#1c3a3c; --tone-border:#2b5356;}
[data-theme="dark"] .tone-amber {--tone-bg:#3c3226; --tone-border:#54452e;}
[data-theme="dark"] .tone-pink {--tone-bg:#492b41; --tone-border:#62405a;}
[data-theme="dark"] .tone-cyan {--tone-bg:#213b56; --tone-border:#30516f;}
.moke-template {min-width:0; position:relative; text-align:left; padding:11px 11px 12px; display:grid; gap:6px; border-radius:11px; border:1px solid var(--tone-border); background:linear-gradient(155deg,var(--tone-bg) 35%,var(--surface2) 120%); transition:transform .15s,box-shadow .15s;}
.moke-template:hover,.moke-shortcuts button:hover {transform:translateY(-2px); box-shadow:var(--shadow-sm);}
.moke-template strong {font-size:13px; font-weight:800;}
.moke-template-icon,.moke-shortcuts button > span {display:grid; place-items:center; background:linear-gradient(145deg,var(--tone-highlight),var(--tone)); color:white; box-shadow:0 3px 9px color-mix(in srgb,var(--tone) 25%,transparent); width:30px; height:30px; border-radius:8px;}
.moke-template-icon svg,.moke-shortcuts button svg {width:17px; height:17px;}
.moke-template-desc {font-size:10.5px; line-height:1.45; color:var(--ink2);}
.moke-template-arrow {position:absolute; right:11px; top:10px; color:var(--ink3); line-height:1;}
.moke-shortcuts {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 4px;}
.moke-shortcuts button {display:grid; place-items:center; text-align:center; padding:4px 1px 5px; gap:5px; border:0; border-radius:9px; background:transparent; font-size:10.5px; color:var(--ink2); transition:transform .15s,box-shadow .15s;}
.moke-shortcuts button > span {width:32px; height:32px;}
.moke-metrics {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;}
.moke-metrics button {display:grid; gap:4px; padding:9px 11px; min-width:0; text-align:left; border:1px solid var(--tone-border); background:var(--tone-bg); border-radius:10px;}
.moke-metrics button:hover {border-color:var(--tone);}
.moke-metrics button span {font-size:11px; color:var(--ink2);}
.moke-metrics button strong {font-size:25px; color:var(--ink); line-height:1.05; font-variant-numeric:tabular-nums; font-weight:800;}
.moke-metrics button small {color:var(--ink3); font-size:10px;}
.moke-week {display:grid; grid-template-columns:minmax(0,1fr) minmax(140px,36%); gap:14px; align-items:center; margin-top:12px; padding-top:12px; border-top:1px solid var(--line2);}
.moke-week>div:first-child {display:grid; min-width:0; gap:4px;}
.moke-week strong {font-size:12px;}
.moke-week span {font-size:10.5px; line-height:1.35; color:var(--ink3);}
.moke-week-progress span {display:flex; justify-content:space-between; gap:8px; margin-bottom:6px;}
.moke-week-progress b {color:var(--ink); white-space:nowrap;}
.moke-week-progress .progress i {background:var(--pri-grad);}
.moke-action-list,.moke-signals,.moke-account-list {display:flex; flex-direction:column; gap:4px;}
.moke-action {display:grid; grid-template-columns:max-content minmax(0,1fr) max-content; gap:9px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line2);}
.moke-action:last-child {border-bottom:0; padding-bottom:0;}
.moke-action>div {display:flex; flex-direction:column; gap:3px; min-width:0;}
.moke-action strong {font-size:12px; overflow-wrap:anywhere;}
.moke-action small {font-size:10.5px; color:var(--ink3);}
.moke-account {display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:8px; align-items:center; text-align:left; padding:7px 2px; width:100%; background:none; border:0; border-bottom:1px solid var(--line2);}
.moke-account:last-child {border-bottom:0;}
.moke-account:hover {background:var(--surface2);}
.moke-account-mark {display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:#3558be; font-weight:800; background:#e7efff;}
.moke-account-mark.platform-douyin {background:#eaeaff;color:#4d498a;}
.moke-account-mark.platform-xiaohongshu,.moke-account-mark.platform-xhs {background:#fdebf2;color:#be3e6d;}
.moke-account-mark.platform-channels,.moke-account-mark.platform-wechat {background:#e1f7eb;color:#19825e;}
.moke-account-mark.platform-bilibili {background:#e5f5ff;color:#2376ae;}
.moke-account-id,.moke-account-num {display:grid; min-width:0; gap:3px;}
.moke-account-id strong {color:var(--ink); font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.moke-account-num {text-align:right;}
.moke-account-num b {font-size:12px; font-variant-numeric:tabular-nums;}
.moke-account small {font-size:10px; color:var(--ink3);}
.moke-signal {display:flex; align-items:flex-start; gap:6px; padding:7px 0; border-bottom:1px solid var(--line2); min-width:0;}
.moke-signal:last-child {border-bottom:0;}
.moke-signal>div {min-width:0; font-size:11px; line-height:1.5; overflow-wrap:anywhere;}
.moke-signal .badge,.moke-jobs .badge {padding:1px 6px; font-size:10px;}
.moke-jobs .kv-row {font-size:11px; padding:7px 0;}
.moke-jobs .kv-row > span:first-child {overflow-wrap:anywhere; min-width:0;}
.moke-chat .chat-log {border-color:var(--line);}
@media (max-width:1080px) {
  .sidebar {width:182px;}
  .brand {padding:0 9px; gap:5px;}
  .brand-mark {width:35px; height:35px;}
  .brand-name {font-size:12.5px;}
  .moke-dashboard {grid-template-columns:minmax(0,1fr) minmax(205px,29%); --panel-gap:12px;}
  .moke-panel {padding:13px;}
  .moke-hero {min-height:212px;}
}
@media (max-width:875px) {
  .moke-dashboard {grid-template-columns:minmax(0,1fr);}
  .moke-dashboard-aside {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start;}
  .moke-hero {min-height:216px;}
  .moke-hero-art {right:0;}
  .tb-right > .top-cost {display:none;}
}
@media (max-width:680px) {
  .sidebar {width:54px;}
  .brand {justify-content:center; padding:0;}
  .brand>div,.sidebar .nav-label,.nav-group-title,.sb-foot {display:none;}
  .sb-scroll,.sb-side {padding-inline:6px;}
  .nav-item {justify-content:center; padding:6px;}
  .nav-group.collapsed .nav-list {display:flex;}
  .topbar {padding-inline:11px;}
  .tb-right {gap:4px;}
  .tb-title {font-size:13px; overflow:hidden; text-overflow:ellipsis;}
  .tb-right > .chip-state:not(.demo) {display:none;}
  .content {padding:11px;}
  .moke-hero {padding:14px; min-height:172px;}
  .moke-hero-copy {max-width:74%;}
  .moke-hero h1 {font-size:24px;}
  .moke-hero-copy > p:not(.moke-hero-label) {font-size:11px;}
  .moke-hero-art {width:48%; right:-10%; opacity:.7;}
  .moke-hero-break {display:none;}
  .moke-template-grid,.moke-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  .moke-dashboard-aside {grid-template-columns:minmax(0,1fr);}
  .moke-week {grid-template-columns:minmax(0,1fr); gap:8px;}
  .moke-action {grid-template-columns:minmax(0,1fr) auto;}
  .moke-action>.badge {display:none;}
  .moke-action .btn {padding-inline:6px;}
}
@media (max-width:370px) {
  .moke-template-grid,.moke-metrics {grid-template-columns:minmax(0,1fr);}
}
@media (prefers-reduced-motion:reduce) {
  .moke-dashboard *, .nav-item {transition:none!important; animation:none!important;}
}
