/* =========================================================
   抖音更新哨兵 · 设计系统
   ========================================================= */
:root {
  --bg: #090a0e;
  --bg-soft: #0d0f14;
  --panel: #12151c;
  --panel-2: #171b24;
  --panel-3: #1d222d;
  --line: #262c39;
  --line-soft: rgba(255, 255, 255, .07);
  --text: #eef1f7;
  --muted: #929bad;
  --dim: #626b7d;
  --red: #fe2c55;
  --pink: #ff5f8a;
  --cyan: #25f4ee;
  --green: #34d399;
  --amber: #fbbf24;
  --danger: #f87171;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --sidebar: 246px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(254, 44, 85, .10), transparent 60%),
    radial-gradient(700px 500px at 12% 105%, rgba(37, 244, 238, .06), transparent 60%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: rgba(254, 44, 85, .35); }
:focus-visible { outline: 2px solid rgba(37, 244, 238, .7); outline-offset: 2px; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 15px;
  font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap;
  background: var(--panel-2); color: var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff4d73);
  color: #fff; border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 24px rgba(254, 44, 85, .22);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff3f65, #ff6389); }
.btn-secondary { background: var(--panel-2); border-color: var(--line); }
.btn-secondary:hover { border-color: #3a4354; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: rgba(248, 113, 113, .1); color: #ff9a9a; border-color: rgba(248, 113, 113, .25); }
.btn-danger:hover { background: rgba(248, 113, 113, .18); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: .15s ease; position: relative;
}
.icon-btn:hover { color: var(--text); border-color: #3a4354; background: var(--panel-2); }
.ghost-icon {
  border: 0; background: transparent; color: var(--muted); padding: 4px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ghost-icon:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.link-btn { border: 0; background: none; color: var(--cyan); padding: 0; font-size: inherit; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: #ff9b9b; }
.row-actions .link-btn { font-size: 10.5px; white-space: nowrap; }
.btn .icon { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span:first-child { font-size: 12.5px; color: #c6cddb; font-weight: 600; }
.field small { color: var(--dim); font-size: 11.5px; }
.field input, .field textarea, .field select, .input {
  width: 100%; background: #0d1016; border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; color: var(--text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; font-size: 13.5px;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #4f5869; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
  border-color: rgba(37, 244, 238, .55); box-shadow: 0 0 0 3px rgba(37, 244, 238, .08);
}
.field input:disabled { opacity: .6; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 56px; }
.password-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.form-error { min-height: 18px; color: #ff8d8d; font-size: 12.5px; margin: 3px 0 12px; }
.form-hint { color: var(--dim); font-size: 12px; margin-top: -8px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); margin-top: 3px; }
.check-row label { font-size: 13px; color: #cfd5e1; }
.check-row small { display: block; color: var(--dim); font-size: 11.5px; }

.switch { position: relative; display: inline-flex; width: 38px; height: 22px; flex: none; vertical-align: middle; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #2a3040; border-radius: 99px; transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #8b94a5; border-radius: 50%; transition: .2s; }
.switch input:checked + i { background: rgba(254, 44, 85, .85); }
.switch input:checked + i::after { transform: translateX(16px); background: #fff; }
.switch input:disabled + i { opacity: .45; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { display: block; font-size: 13.5px; font-weight: 600; }
.switch-row small { color: var(--dim); font-size: 12px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.lg { width: 26px; height: 26px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--muted); }
.loading-block p { margin: 0; }

/* ---------- 认证 ---------- */
.auth-body { min-height: 100vh; overflow-x: hidden; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); position: relative; z-index: 1; }
.auth-visual {
  padding: 44px clamp(36px, 5vw, 84px); display: flex; flex-direction: column; gap: 40px;
  background:
    radial-gradient(800px 600px at 15% 20%, rgba(254, 44, 85, .18), transparent 60%),
    radial-gradient(600px 500px at 90% 90%, rgba(37, 244, 238, .09), transparent 60%),
    #0a0b10;
  border-right: 1px solid var(--line-soft); position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: inline-flex; color: var(--red); filter: drop-shadow(0 0 16px rgba(254, 44, 85, .4)); }
.brand-mark svg { width: 100%; height: 100%; }
.auth-brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.auth-brand small { display: block; font-size: 9px; letter-spacing: .3em; color: var(--dim); margin-top: 2px; }
.auth-copy { max-width: 560px; margin-top: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid rgba(37, 244, 238, .18); border-radius: 99px; background: rgba(37, 244, 238, .06); color: var(--cyan); font-size: 11.5px; letter-spacing: .08em; }
.live-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.auth-copy h1 { font-size: clamp(40px, 4.5vw, 66px); line-height: 1.12; letter-spacing: -.045em; margin: 24px 0 22px; font-weight: 800; }
.auth-copy h1 em { font-style: normal; background: linear-gradient(100deg, var(--red), #ff8cab 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 500px; }
.auth-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 13px; }
.auth-points li { display: flex; gap: 14px; align-items: center; color: #c7ceda; font-size: 13px; }
.auth-points span { font-family: var(--mono); font-size: 10px; color: var(--dim); border: 1px solid var(--line); padding: 3px 7px; border-radius: 5px; }
.signal-card { margin-top: auto; width: min(420px, 100%); background: rgba(18, 21, 28, .72); border: 1px solid var(--line); border-radius: 16px; padding: 16px; backdrop-filter: blur(18px); }
.signal-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .08em; margin-bottom: 14px; }
.signal-head span:first-child { display: flex; align-items: center; gap: 7px; color: #cdd4df; }
.signal-head .mono { color: var(--red); font-size: 9px; border: 1px solid rgba(254,44,85,.25); border-radius: 4px; padding: 2px 5px; }
.signal-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.signal-avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #3a2430, #252a36); border: 1px solid rgba(255,255,255,.1); }
.signal-avatar.a1 { background: linear-gradient(135deg, #fe2c55, #7f1d3a); }
.signal-avatar.a2 { background: linear-gradient(135deg, #25f4ee, #155e63); }
.signal-avatar.a3 { background: linear-gradient(135deg, #fbbf24, #78350f); }
.signal-lines { flex: 1; display: grid; gap: 4px; }
.signal-lines i { display: block; height: 4px; border-radius: 3px; background: #2b3140; }
.signal-row b { font-size: 8px; color: var(--red); border: 1px solid rgba(254,44,85,.3); border-radius: 4px; padding: 1px 4px; }
.signal-time { font-size: 10px; color: var(--dim); font-family: var(--mono); }
.signal-wave { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-top: 10px; opacity: .6; }
.signal-wave i { flex: 1; background: linear-gradient(to top, rgba(254,44,85,.6), rgba(37,244,238,.5)); border-radius: 2px 2px 0 0; animation: wave 2.6s ease-in-out infinite; }
.signal-wave i:nth-child(1){height:30%;animation-delay:0s}.signal-wave i:nth-child(2){height:55%;animation-delay:.1s}.signal-wave i:nth-child(3){height:40%;animation-delay:.2s}.signal-wave i:nth-child(4){height:78%;animation-delay:.3s}.signal-wave i:nth-child(5){height:52%;animation-delay:.4s}.signal-wave i:nth-child(6){height:90%;animation-delay:.5s}.signal-wave i:nth-child(7){height:46%;animation-delay:.6s}.signal-wave i:nth-child(8){height:66%;animation-delay:.7s}.signal-wave i:nth-child(9){height:36%;animation-delay:.8s}.signal-wave i:nth-child(10){height:58%;animation-delay:.9s}
@keyframes wave { 50% { transform: scaleY(.55); opacity: .45; } }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: rgba(9, 10, 14, .72); }
.auth-card { width: min(390px, 100%); }
.auth-card-head h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.02em; }
.auth-card-head p { color: var(--muted); margin: 0 0 26px; font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 22px; }
.auth-tab { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 8px; font-size: 12.5px; }
.auth-tab.active { background: var(--panel-3); color: var(--text); box-shadow: 0 2px 7px rgba(0,0,0,.25); }
.auth-foot { display: flex; justify-content: center; gap: 6px; margin-top: 20px; color: var(--muted); font-size: 12.5px; }
.auth-note { margin-top: 22px; text-align: center; color: var(--dim); font-size: 11.5px; line-height: 1.7; }
.auth-copyright { color: #3f4756; font-size: 10.5px; letter-spacing: .06em; margin-top: 50px; }

.setup-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; position: relative; z-index: 1; background: radial-gradient(800px 600px at 50% 0, rgba(254,44,85,.10), transparent 60%); }
.setup-badge { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .24em; color: var(--red); border: 1px solid rgba(254,44,85,.25); padding: 5px 12px; border-radius: 99px; background: rgba(254,44,85,.06); }
.setup-card { width: min(460px, 100%); background: rgba(18, 21, 28, .9); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.setup-brand { margin-bottom: 26px; }
.setup-card h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -.02em; }
.setup-lead { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 25px; }
.strength { display: flex; gap: 4px; margin-top: 2px; }
.strength i { height: 3px; flex: 1; background: #262c39; border-radius: 2px; transition: background .2s; }
.strength.s1 i:nth-child(1) { background: var(--danger); }
.strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.strength.s3 i:nth-child(-n+3) { background: var(--green); }
.strength.s4 i { background: var(--green); }
.setup-hint { border-top: 1px solid var(--line-soft); margin-top: 24px; padding-top: 18px; color: var(--dim); font-size: 11.5px; }
.setup-hint strong { color: var(--muted); display: block; margin-bottom: 6px; }
.setup-hint ol { margin: 0; padding-left: 17px; line-height: 1.9; }

/* ---------- 应用框架 ---------- */
.app-body { overflow-x: hidden; }
.app-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  width: var(--sidebar); height: 100vh; position: fixed; left: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; padding: 22px 15px 16px;
  background: rgba(11, 13, 18, .92); border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(18px); z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 9px 24px; }
.brand .brand-mark { width: 34px; height: 34px; }
.brand-text strong { display: block; font-size: 14px; letter-spacing: .02em; }
.brand-text small { display: block; font-size: 7.5px; letter-spacing: .24em; color: var(--dim); margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 11px; border-radius: 9px;
  color: var(--muted); font-size: 13px; font-weight: 500; position: relative; transition: .15s;
}
.nav-item .icon { width: 17px; height: 17px; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(254, 44, 85, .14), rgba(254, 44, 85, .04)); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -15px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--red); box-shadow: 0 0 10px rgba(254,44,85,.7); }
.nav-count { margin-left: auto; font-size: 10px; font-family: var(--mono); background: var(--panel-3); color: var(--muted); padding: 1px 6px; border-radius: 99px; font-weight: 500; }
.nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(254,44,85,.8); }
.sidebar-spacer { flex: 1; }
.capacity-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px; margin: 10px 4px 16px; }
.capacity-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 9px; }
.capacity-head b { color: var(--text); font-family: var(--mono); font-size: 10.5px; font-weight: 500; }
.capacity-card small { display: block; color: var(--dim); font-size: 9.5px; margin-top: 8px; line-height: 1.5; }
.progress { height: 4px; border-radius: 4px; background: #222835; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--pink)); transition: width .5s ease; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 10px 8px 0; border-top: 1px solid var(--line-soft); }
.sidebar-user-text { flex: 1; min-width: 0; }
.sidebar-user-text strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-text small { color: var(--dim); font-size: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #303746, #1b202b); position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.08); }
.avatar i { font-style: normal; font-weight: 700; font-size: 13px; color: #9aa4b6; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 31px; height: 31px; }
.avatar-lg { width: 58px; height: 58px; }
.avatar-xl { width: 76px; height: 76px; }
.avatar-lg i, .avatar-xl i { font-size: 20px; }

.main { margin-left: var(--sidebar); width: calc(100% - var(--sidebar)); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 76px; padding: 0 30px; display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--line-soft); background: rgba(9, 10, 14, .72);
  backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 30;
}
.page-title { min-width: 0; }
.page-title h1 { font-size: 18px; margin: 0 0 2px; letter-spacing: -.01em; }
.page-title p { margin: 0; color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.notification-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.mobile-menu { display: none; }
.view { padding: 28px 30px 44px; max-width: 1540px; width: 100%; margin: 0 auto; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sidebar-scrim { display: none; }

/* ---------- 工作台 ---------- */
.greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.greeting h2 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.greeting p { margin: 0; color: var(--muted); font-size: 12.5px; }
.greeting-date { color: var(--dim); font-size: 11.5px; font-family: var(--mono); }
.hero-card {
  position: relative; overflow: hidden; border: 1px solid rgba(254, 44, 85, .18);
  background:
    radial-gradient(600px 200px at 90% 0, rgba(254, 44, 85, .18), transparent 70%),
    linear-gradient(120deg, #17131b, #12151c 60%);
  border-radius: var(--radius); padding: 25px 27px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 30px; justify-content: space-between;
}
.hero-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -170px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255,255,255,.02), 0 0 0 80px rgba(255,255,255,.015); }
.hero-copy { min-width: 0; position: relative; z-index: 1; }
.hero-copy h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.hero-copy p { color: var(--muted); margin: 0 0 18px; font-size: 12.5px; }
.hero-add { display: flex; gap: 9px; width: min(560px, 100%); }
.hero-add .input { background: rgba(8, 9, 13, .65); border-color: #343042; }
.hero-add .input:focus { border-color: rgba(254,44,85,.6); box-shadow: 0 0 0 3px rgba(254,44,85,.08); }
.hero-art { display: flex; gap: 8px; align-items: center; padding-right: 10px; opacity: .85; z-index: 1; }
.hero-orbit { width: 72px; height: 72px; border-radius: 50%; border: 1px dashed rgba(254,44,85,.4); display: grid; place-items: center; position: relative; animation: spin 24s linear infinite; }
.hero-orbit .icon { color: var(--red); width: 28px; height: 28px; animation: spin 24s linear infinite reverse; }
.hero-orbit::after { content: ""; position: absolute; top: 3px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 17px 18px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -25px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--stat-color, var(--red)); opacity: .06; }
.stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-bottom: 10px; }
.stat-head .icon { width: 15px; height: 15px; color: var(--stat-color, var(--red)); }
.stat-value { font-size: 28px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; display: flex; align-items: baseline; gap: 5px; }
.stat-value small { font-size: 12px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.stat-foot { margin-top: 9px; font-size: 10.5px; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }
.dot.red { background: var(--danger); }
.provider-strip { display: flex; align-items: center; gap: 10px; background: rgba(251, 191, 36, .055); border: 1px solid rgba(251, 191, 36, .16); color: #d9c48d; border-radius: 10px; padding: 10px 14px; margin-bottom: 20px; font-size: 11.5px; }
.provider-strip .icon { color: var(--amber); width: 16px; height: 16px; }
.provider-strip a { margin-left: auto; color: var(--amber); font-weight: 600; white-space: nowrap; }
.provider-strip.ok { background: rgba(52, 211, 153, .05); border-color: rgba(52, 211, 153, .14); color: #9fceb9; }
.provider-strip.ok .icon { color: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 17px 19px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h3 { font-size: 13.5px; margin: 0; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.panel-head h3 .icon { width: 15px; height: 15px; color: var(--muted); }
.panel-head .link-btn { font-size: 11px; color: var(--muted); font-weight: 500; }
.panel-head .link-btn:hover { color: var(--cyan); }
.panel-body { padding: 0 19px 17px; }
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; gap: 13px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.recent-item:first-child { border-top: 0; padding-top: 3px; }
.recent-cover { width: 80px; height: 56px; border-radius: 7px; overflow: hidden; flex: none; background: linear-gradient(135deg, #292233, #1a1e27); position: relative; display: grid; place-items: center; }
.recent-cover img { width: 100%; height: 100%; object-fit: cover; }
.recent-cover .icon { color: #555f72; }
.recent-main { min-width: 0; flex: 1; }
.recent-main h4 { margin: 0 0 5px; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-main p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.recent-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--dim); font-size: 10px; }
.recent-meta .avatar { width: 16px; height: 16px; }
.recent-meta .avatar i { font-size: 7px; }
.recent-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 7px; flex: none; }
.recent-side time { color: var(--dim); font-size: 10px; white-space: nowrap; }
.mini-link { color: var(--muted); display: flex; align-items: center; }
.mini-link:hover { color: var(--cyan); }
.mini-link .icon { width: 14px; height: 14px; }

.side-panel { display: grid; gap: 14px; }
.scheduler-card { padding: 18px 19px; }
.scheduler-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.scheduler-head h3 { margin: 0; font-size: 13.5px; }
.pill { font-size: 9.5px; border-radius: 99px; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.pill.green { color: #8ee5c0; background: rgba(52, 211, 153, .07); border-color: rgba(52, 211, 153, .18); }
.pill.amber { color: #f4d58d; background: rgba(251, 191, 36, .06); border-color: rgba(251, 191, 36, .16); }
.pill.red { color: #ffa3a3; background: rgba(248, 113, 113, .07); border-color: rgba(248, 113, 113, .2); }
.scheduler-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scheduler-stat { background: #0e1117; border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 10px; }
.scheduler-stat span { display: block; color: var(--dim); font-size: 9.5px; margin-bottom: 3px; }
.scheduler-stat b { font-size: 14px; font-family: var(--mono); font-weight: 500; }
.scheduler-foot { color: var(--dim); font-size: 10px; margin-top: 12px; display: flex; justify-content: space-between; }
.quick-card { padding: 17px 19px; }
.quick-card h3 { margin: 0 0 12px; font-size: 13.5px; }
.quick-links { display: grid; gap: 7px; }
.quick-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: #0e1117; border: 1px solid transparent; color: var(--muted); font-size: 12px; transition: .15s; }
.quick-link:hover { border-color: var(--line); color: var(--text); }
.quick-link .icon { width: 15px; height: 15px; color: var(--dim); }
.quick-link .chev { margin-left: auto; color: #3f4757; }

/* ---------- 列表 / 表格 ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 230px; flex: 1; max-width: 360px; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); }
.search-box input { width: 100%; padding: 9px 12px 9px 35px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; outline: none; font-size: 12.5px; }
.search-box input:focus { border-color: rgba(37,244,238,.45); }
.segmented { display: inline-flex; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; gap: 2px; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 6px 11px; border-radius: 6px; font-size: 11.5px; white-space: nowrap; }
.segmented button.active { background: var(--panel-3); color: var(--text); }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.select-compact { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 28px 8px 10px; font-size: 11.5px; color: var(--muted); appearance: none; background-image: linear-gradient(45deg, transparent 50%, #717b8d 50%),linear-gradient(135deg,#717b8d 50%,transparent 50%); background-position: calc(100% - 14px) 50%,calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.concurrency-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.concurrency-edit input { width: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; color: var(--text); font-family: var(--mono); font-size: 11.5px; text-align: center; }
.concurrency-edit input:focus { border-color: #6ea8fe; outline: none; }
.concurrency-edit input:disabled { opacity: .6; }
.table-shell { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 10.5px; color: var(--dim); font-weight: 500; letter-spacing: .04em; padding: 12px 14px; background: #0e1117; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 12px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .12s; cursor: pointer; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .022); }
.creator-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.creator-cell .avatar { width: 38px; height: 38px; }
.creator-cell-text { min-width: 0; }
.creator-cell-text strong { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.creator-cell-text small { display: block; color: var(--dim); font-family: var(--mono); font-size: 9px; margin-top: 1px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.status-chip.ok { color: #8ee5c0; background: rgba(52,211,153,.06); border-color: rgba(52,211,153,.15); }
.status-chip.error { color: #ffa3a3; background: rgba(248,113,113,.06); border-color: rgba(248,113,113,.16); }
.status-chip.pending, .status-chip.checking { color: #e6cc8e; background: rgba(251,191,36,.05); border-color: rgba(251,191,36,.16); }
.status-chip.paused { color: #9aa3b5; background: rgba(255,255,255,.03); }
.status-chip .spinner { width: 9px; height: 9px; border-width: 1.5px; }
.td-time { color: var(--muted); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.td-time small { display: block; color: var(--dim); font-family: var(--font); font-size: 9.5px; margin-top: 2px; }
.td-mono { color: var(--muted); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.agent-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.row-actions { display: flex; align-items: center; gap: 3px; justify-content: flex-end; }
.row-actions .ghost-icon { width: 28px; height: 28px; }
.row-actions .ghost-icon .icon { width: 15px; height: 15px; }
.row-actions .danger:hover { color: #ff9292; background: rgba(248,113,113,.08); }
.row-error { color: #ff9b9b; font-size: 10.5px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-cards { display: none; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; color: var(--dim); font-size: 11px; border-top: 1px solid var(--line-soft); }
.pager-btns { display: flex; gap: 5px; }
.pager button { min-width: 28px; height: 28px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 6px; color: var(--muted); font-size: 11px; }
.pager button.active { background: var(--red); border-color: var(--red); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty-state { text-align: center; padding: 70px 24px; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 15px; border-radius: 17px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--dim); }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h3 { color: var(--text); font-size: 15px; margin: 0 0 6px; }
.empty-state p { font-size: 12px; margin: 0 0 18px; line-height: 1.7; }
.skeleton { background: linear-gradient(90deg, #151922 25%, #1d222d 50%, #151922 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 消息中心 ---------- */
.notif-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.notif-list { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.notif-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); position: relative; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: rgba(254, 44, 85, .028); }
.notif-item.alert.unread { background: rgba(251, 191, 36, .05); }
.notif-item.alert .notif-cover { color: var(--amber); }
.notif-item.unread::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--red); border-radius: 0 2px 2px 0; }
.notif-item .avatar { margin-top: 2px; }
.notif-body { flex: 1; min-width: 0; }
.notif-body h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; }
.notif-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; white-space: pre-line; }
.notif-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--dim); font-size: 10px; }
.notif-cover { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #1a1e27; flex: none; display: grid; place-items: center; }
.notif-cover img { width: 100%; height: 100%; object-fit: cover; }
.notif-cover .icon { color: #4d5668; }
.notif-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.notif-actions time { color: var(--dim); font-size: 9.5px; white-space: nowrap; }
.notif-actions .icon { width: 15px; height: 15px; }

/* ---------- 通知渠道 ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.channel-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 17px; position: relative; }
.channel-top { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.channel-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(254,44,85,.08); color: var(--red); border: 1px solid rgba(254,44,85,.14); }
.channel-icon .icon { width: 18px; height: 18px; }
.channel-card h4 { margin: 0; font-size: 13px; }
.channel-card .channel-kind { color: var(--dim); font-size: 10px; }
.channel-card .switch { margin-left: auto; }
.channel-desc { color: var(--muted); font-size: 11.5px; min-height: 35px; line-height: 1.55; }
.channel-meta { color: var(--dim); font-size: 9.5px; border-top: 1px solid var(--line-soft); margin-top: 12px; padding-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.channel-actions { display: flex; gap: 6px; margin-top: 12px; }
.channel-actions .btn { flex: 1; }
.channel-add { border: 1px dashed #333a4a; border-radius: var(--radius); min-height: 178px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--dim); gap: 8px; background: rgba(255,255,255,.012); transition: .15s; }
.channel-add:hover { border-color: rgba(254,44,85,.4); color: var(--muted); background: rgba(254,44,85,.025); }
.channel-add .icon { width: 22px; height: 22px; }
.channel-note { display: flex; gap: 9px; align-items: flex-start; color: var(--dim); font-size: 11px; line-height: 1.7; margin-top: 16px; }
.channel-note .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--cyan); }

/* ---------- 设置 ---------- */
.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.settings-tabs::-webkit-scrollbar, .segmented::-webkit-scrollbar, .modal-tabs::-webkit-scrollbar, .toolbar::-webkit-scrollbar { display: none; }
.segmented, .modal-tabs { scrollbar-width: none; }
.settings-tab { border: 0; background: transparent; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.settings-tab.active { color: var(--text); border-color: var(--red); }
.settings-section { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.settings-section-head { margin-bottom: 17px; }
.settings-section-head h3 { margin: 0 0 4px; font-size: 14px; }
.settings-section-head p { margin: 0; color: var(--dim); font-size: 11.5px; }
.settings-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 16px; align-items: start; }
.profile-card { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-card h3 { margin: 0 0 2px; font-size: 16px; }
.profile-card p { margin: 0; color: var(--dim); font-size: 11px; }
.role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: var(--cyan); background: rgba(37,244,238,.06); border: 1px solid rgba(37,244,238,.16); padding: 1px 6px; border-radius: 4px; margin-left: 5px; vertical-align: 1px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.provider-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 18px; }
.provider-option { border: 1px solid var(--line); background: #0e1117; border-radius: 9px; padding: 11px 12px; text-align: left; position: relative; }
.provider-option strong { display: block; font-size: 12px; font-weight: 600; }
.provider-option small { display: block; color: var(--dim); font-size: 9.5px; line-height: 1.45; margin-top: 3px; }
.provider-option.active { border-color: rgba(254,44,85,.55); background: rgba(254,44,85,.055); }
.provider-option.active::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 7px var(--red); }
.advanced-box { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: #0e1117; margin-bottom: 16px; }
.advanced-box h4 { margin: 0 0 4px; font-size: 12px; }
.advanced-box p { margin: 0 0 12px; color: var(--dim); font-size: 10.5px; }
.secret-row { display: flex; gap: 6px; }
.secret-row .input { flex: 1; }
.diagnostics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.diag-item { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #0e1117; }
.diag-item span { display: block; color: var(--dim); font-size: 9.5px; margin-bottom: 4px; }
.diag-item b { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.diag-item b .dot { width: 6px; height: 6px; }
.user-table td { font-size: 11.5px; }
.user-table .avatar { width: 28px; height: 28px; }
.badge-role { font-size: 9px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.badge-role.admin { color: #ffc0ce; border-color: rgba(254,44,85,.25); background: rgba(254,44,85,.06); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 130px; }
.demo-zone { border: 1px dashed rgba(37,244,238,.25); background: rgba(37,244,238,.025); border-radius: 9px; padding: 14px; margin-top: 14px; display: flex; align-items: center; gap: 14px; }
.demo-zone .icon { color: var(--cyan); }
.demo-zone strong { display: block; font-size: 12px; }
.demo-zone small { color: var(--dim); font-size: 10.5px; }
.demo-zone .btn { margin-left: auto; }

/* ---------- 模态框 ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(4, 5, 8, .72); backdrop-filter: blur(7px); animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(600px, 100%); max-height: min(86vh, 900px); background: #12151c; border: 1px solid #2c3342; border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: modalIn .2s cubic-bezier(.2,.8,.2,1); }
.modal.wide { width: min(860px, 100%); }
.modal.narrow { width: min(430px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-head { padding: 19px 21px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.01em; }
.modal-head p { margin: 0; color: var(--dim); font-size: 11.5px; line-height: 1.55; }
.modal-close { margin-top: -3px; margin-right: -5px; }
.modal-body { padding: 19px 21px; overflow-y: auto; }
.modal-foot { padding: 13px 21px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line-soft); }
.modal-foot .btn { min-width: 82px; }
.modal-tabs { display: flex; gap: 3px; padding: 3px; background: #0d1016; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; }
.modal-tab { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 7px; border-radius: 6px; font-size: 11.5px; }
.modal-tab.active { background: var(--panel-3); color: var(--text); }
.modal-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(254,44,85,.09); color: var(--red); border: 1px solid rgba(254,44,85,.16); display: grid; place-items: center; margin-bottom: 13px; }
.modal-icon .icon { width: 21px; height: 21px; }
.confirm-text { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.confirm-text strong { color: var(--text); }
.kind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 17px; }
.kind-option { border: 1px solid var(--line); background: #0e1117; border-radius: 8px; padding: 10px 9px; text-align: left; display: flex; gap: 8px; align-items: center; }
.kind-option .icon { width: 16px; height: 16px; color: var(--dim); }
.kind-option span { font-size: 10.5px; color: var(--muted); }
.kind-option.active { border-color: rgba(254,44,85,.5); background: rgba(254,44,85,.05); }
.kind-option.active .icon, .kind-option.active span { color: #ffc3ce; }

.creator-hero { display: flex; gap: 15px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.creator-hero .avatar { width: 64px; height: 64px; }
.creator-hero h3 { font-size: 18px; margin: 0 0 3px; }
.creator-hero p { margin: 0; color: var(--dim); font-size: 10px; font-family: var(--mono); max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-hero-stats { display: flex; gap: 18px; margin-top: 8px; }
.creator-hero-stats span { color: var(--dim); font-size: 9.5px; }
.creator-hero-stats b { color: var(--text); font-size: 12px; display: block; font-family: var(--mono); font-weight: 500; }
.detail-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 17px; }
.info-box { background: #0e1117; border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 11px; }
.info-box span { display: block; color: var(--dim); font-size: 9px; margin-bottom: 2px; }
.info-box b { font-size: 11px; font-weight: 500; }
.detail-error { background: rgba(248,113,113,.055); border: 1px solid rgba(248,113,113,.16); border-radius: 8px; padding: 10px 12px; color: #ffa8a8; font-size: 11px; margin-bottom: 15px; line-height: 1.65; word-break: break-word; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.video-card { background: #0e1117; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; display: block; }
.video-cover { aspect-ratio: 3/4; background: linear-gradient(135deg, #262132, #181b24); position: relative; display: grid; place-items: center; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.video-cover .icon { color: #4a5365; }
.video-desc { padding: 7px 8px 8px; font-size: 9.5px; color: var(--muted); line-height: 1.45; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-time { padding: 0 8px 8px; color: var(--dim); font-size: 8.5px; }
.detail-empty { text-align: center; color: var(--dim); font-size: 11.5px; padding: 30px; border: 1px dashed var(--line); border-radius: 9px; }
.notice-box { background: rgba(37,244,238,.035); border: 1px solid rgba(37,244,238,.13); border-radius: 8px; padding: 10px 12px; color: #9cc8c7; font-size: 10.5px; line-height: 1.65; margin-bottom: 15px; }
.notice-box.warn { background: rgba(251,191,36,.04); border-color: rgba(251,191,36,.15); color: #d3bd89; }
.cookie-capture-box { display: flex; align-items: flex-start; gap: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 15px; background: #0e1117; margin-top: 14px; }
.cookie-capture-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(37,244,238,.06); color: var(--cyan); border: 1px solid rgba(37,244,238,.13); }
.cookie-capture-icon .icon { width: 19px; height: 19px; }
.cookie-capture-box strong { display: block; font-size: 13px; margin: 1px 0 4px; }
.cookie-capture-box p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.cookie-capture-box.success { border-color: rgba(52,211,153,.22); background: rgba(52,211,153,.035); }
.cookie-capture-box.success .cookie-capture-icon { color: var(--green); border-color: rgba(52,211,153,.2); background: rgba(52,211,153,.07); }
.cookie-capture-box.error { border-color: rgba(248,113,113,.24); background: rgba(248,113,113,.035); }
.cookie-capture-box.error .cookie-capture-icon { color: var(--danger); border-color: rgba(248,113,113,.22); background: rgba(248,113,113,.07); }
.cookie-capture-box.cancelled .cookie-capture-icon { color: var(--muted); }
.cookie-capture-box .spinner { width: 18px; height: 18px; }
.bulk-area { min-height: 170px !important; font-family: var(--mono); font-size: 11.5px !important; }
.bulk-result { margin-top: 12px; max-height: 180px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.bulk-result-row { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); font-size: 10.5px; }
.bulk-result-row:last-child { border-bottom: 0; }
.bulk-result-row .icon { width: 13px; height: 13px; margin-top: 2px; }
.bulk-result-row.ok .icon { color: var(--green); }
.bulk-result-row.fail .icon { color: var(--danger); }
.bulk-result-row span { word-break: break-all; color: var(--muted); }
.test-result { font-size: 11px; margin-top: 10px; line-height: 1.6; word-break: break-word; }
.test-result.ok { color: #8ee5c0; }
.test-result.fail { color: #ffa3a3; }
.result-list { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; max-height: 190px; overflow-y: auto; }
.result-list div { padding: 7px 10px; font-size: 10.5px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.result-list div:last-child { border-bottom: 0; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 360px; background: #1a1e28; border: 1px solid #333b4c; border-radius: 10px; box-shadow: 0 14px 35px rgba(0,0,0,.4); padding: 11px 14px; display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #d8deea; animation: toastIn .2s ease; pointer-events: auto; }
.toast .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--cyan); }
.toast.success .icon { color: var(--green); }
.toast.error .icon { color: var(--danger); }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-panel { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr 440px; }
  .auth-visual { padding: 36px; }
  .auth-copy h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
  .sidebar.open { transform: none; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-scrim.show { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; width: 100%; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 18px; height: 68px; }
  .view { padding: 20px 18px 40px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100vh; padding: 24px; }
  .settings-two { grid-template-columns: 1fr; }
  .provider-options { grid-template-columns: repeat(2, 1fr); }
  .diagnostics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-head > .toolbar-right { margin-left: 0; width: 100%; }
  .section-head > .toolbar-right .btn { flex: 1; justify-content: center; }
  .section-head > .btn { width: 100%; justify-content: center; }
  .page-title p { display: none; }
  .topbar-actions .btn-primary span { display: none; }
  .topbar-actions .btn-primary { padding: 9px; }
  .greeting { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-card { flex-direction: column; align-items: flex-start; padding: 20px; }
  .hero-art { display: none; }
  .hero-add { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 23px; }
  .side-panel { grid-template-columns: 1fr; }
  .data-table { display: none; }
  .mobile-cards { display: flex; flex-direction: column; }
  .creator-mobile { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
  .creator-mobile:last-child { border-bottom: 0; }
  .creator-mobile-top { display: flex; align-items: center; gap: 10px; }
  .creator-mobile-top .creator-cell { flex: 1; }
  .creator-mobile-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding-left: 49px; flex-wrap: wrap; }
  .creator-mobile-meta .td-time { font-size: 9.5px; }
.data-table tbody tr[data-creator],
.creator-mobile[data-creator],
.recent-item[data-creator],
.notif-item[data-creator] { cursor: pointer; }
  .channel-grid { grid-template-columns: 1fr; }
  .notif-item { padding: 14px; gap: 10px; }
  .notif-cover { display: none; }
  .notif-toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar { align-items: stretch; }
  .search-box { max-width: none; }
  .toolbar-right { margin-left: 0; }
  .segmented { overflow-x: auto; max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-root { padding: 10px; align-items: end; }
  .modal { max-height: 92vh; border-radius: 16px 16px 12px 12px; }
  .kind-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-info { grid-template-columns: 1fr 1fr; }
  .provider-options { grid-template-columns: 1fr; }
  .topbar { gap: 10px; }
  .page-title h1 { font-size: 16px; }
  .secret-row { flex-wrap: wrap; }
  .secret-row input { flex: 1 1 100%; }
  .toast-root { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .settings-section { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Agent activation / system notices */
.notice-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 26px 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 199, 92, .28);
  background: linear-gradient(90deg, rgba(255, 199, 92, .12), rgba(255, 92, 122, .06));
  border-radius: 12px;
  color: var(--text);
  font-size: 12px;
}
.notice-banner .icon { color: var(--amber); flex: 0 0 auto; }
.notice-banner strong { color: var(--amber); }
.notice-banner .notice-banner-text { flex: 1; line-height: 1.6; }
.notice-banner .notice-banner-actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .notice-banner { margin: 10px 14px 0; align-items: flex-start; flex-wrap: wrap; }
  .notice-banner .notice-banner-actions { width: 100%; }
}

/* Agent employee toggle in team table */
.agent-toggle { display: flex; align-items: center; gap: 8px; }
.toggle-label { font-size: 11px; color: var(--dim); white-space: nowrap; }
.toggle-label.on { color: var(--green); }
