/* ========== PLAN-47A · 墨玉中控壳 ========== */
.console-root,
.console {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(255, 138, 61, 0.06), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(11, 13, 16, 0.04), transparent 50%),
    var(--console-bg);
  color: var(--console-text);
}
.console-body { display: flex; min-height: 100vh; }
.console-sidebar {
  width: 248px;
  background: linear-gradient(180deg, #12151b 0%, var(--console-sidebar) 48%, #08090c 100%);
  color: #9aa3b2;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255,255,255,.04);
  z-index: 40;
}
.console--platform .console-sidebar {
  background: linear-gradient(180deg, #0e141c 0%, #0a1018 50%, #070b10 100%);
}
.console--tenant .console-sidebar {
  background: linear-gradient(180deg, #141210 0%, #0d0c0b 52%, #090807 100%);
}
.console-sidebar .brand {
  min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.console-sidebar .brand .logo {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.console-sidebar .brand .logo img { width: 36px; height: 36px; display: block; border-radius: 50%; }
.console-sidebar .brand strong {
  color: #fff; font-size: 16px; display: block;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .02em;
}
.console-sidebar .brand span {
  font-size: 11px; color: #8b939e; letter-spacing: .04em;
}
.console--platform .console-sidebar .brand span { color: #8fa0b5; }
.console--tenant .console-sidebar .brand span { color: #a89a8c; }
.console-nav { flex: 1; overflow: auto; padding: 18px 12px 12px; }
.nav-group { margin-bottom: 20px; }
.nav-group .gt {
  font-size: 10px; color: #6b7380; padding: 0 10px 8px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  color: #a8b0bc; font-size: 13.5px; cursor: pointer;
  border: 0; background: transparent; width: 100%; text-align: left;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #e8edf4; }
.nav-item.active {
  background: rgba(255,255,255,.1);
  color: #fff; font-weight: 600;
}
.nav-item.active::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  border-radius: 2px; background: var(--sun);
}
.console--platform .nav-item.active::before { background: #7eb6ff; }
.nav-item .b { margin-left: auto; }
.console-sidebar .nav-item .badge {
  font-size: 10px; padding: 1px 6px; font-weight: 600; flex-shrink: 0;
}
.console-sidebar .nav-item .badge-secondary {
  background: rgba(217, 119, 6, .22); color: #fbbf24;
}
.console-sidebar .nav-item .badge-shell {
  background: rgba(148, 163, 184, .2); color: #cbd5e1;
}
.console-sidebar .nav-item.active .badge-secondary,
.console-sidebar .nav-item.active .badge-shell {
  background: rgba(255, 255, 255, .22); color: #fff;
}
.console-side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 12px; display: grid; gap: 4px; }
.console-side-foot button {
  height: 36px; border: 0; border-radius: 8px; background: transparent; color: #9aa3b2;
  text-align: left; padding: 0 10px; cursor: pointer; font-size: 13px;
  transition: background .15s ease, color .15s ease;
}
.console-side-foot button:hover { background: rgba(255,255,255,.06); color: #fff; }
.console-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.console-header {
  height: 58px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--console-border);
  display: flex; align-items: center; padding: 0 24px; gap: 12px;
  position: sticky; top: 0; z-index: 20;
}
.console-header .grow { flex: 1; min-width: 0; }
.cs-topbar-title strong {
  display: block; font-size: 13px; font-weight: 650; color: var(--console-text);
  letter-spacing: .01em;
}
.cs-topbar-title span {
  display: block; font-size: 12px; color: var(--console-muted); margin-top: 1px;
}
.console--platform .cs-topbar-title strong::after {
  content: "平台";
  margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: #3b6ea8; background: rgba(59, 110, 168, .1);
  border-radius: 4px; padding: 2px 6px; vertical-align: 1px;
}
.console--tenant .cs-topbar-title strong::after {
  content: "企业";
  margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: #9a6b3f; background: rgba(154, 107, 63, .1);
  border-radius: 4px; padding: 2px 6px; vertical-align: 1px;
}
.console-header .user { font-size: 12.5px; color: var(--console-muted); text-align: right; }
.console-header .user strong { color: var(--console-text); display: block; font-size: 13px; }
.console-nav-toggle {
  display: none; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--console-border); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--console-text); font-size: 16px;
}
.console-page {
  padding: 28px 28px 40px;
  animation: cs-page-in 220ms cubic-bezier(.2,.7,.2,1);
}
@keyframes cs-page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.console-sync-bar {
  height: 2px;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .18s ease;
}
.console-sync-bar.is-on { opacity: 1; }
.console-sync-bar.is-on::after {
  content: "";
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sun), transparent);
  animation: cs-sync-slide 900ms ease-in-out infinite;
}
@keyframes cs-sync-slide {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.page-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  color: var(--console-text); line-height: 1.25;
}
.page-head p {
  margin: 6px 0 0; font-size: 13.5px; color: var(--console-muted); line-height: 1.55;
  max-width: 52ch;
}
.page-head > div:last-child {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-shrink: 0;
}
.cs-empty {
  padding: 36px 20px; text-align: center;
  color: var(--console-muted); font-size: 13.5px; line-height: 1.6;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.45);
}
.cs-banner--soft {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.55);
  font-size: 13px; color: var(--console-muted);
}
.cs-banner--soft strong { color: var(--console-text); display: block; margin-bottom: 2px; font-weight: 650; }

@media (max-width: 900px) {
  .console-nav-toggle { display: inline-flex; }
  .console-sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%);
    transition: transform .2s ease; box-shadow: var(--elev);
  }
  .console.is-nav-open .console-sidebar { transform: translateX(0); }
  .console-page { padding: 20px 16px 32px; }
  .page-head h2 { font-size: 22px; }
}

/* ========== PLAN-37 + 47A · 中控标准页面骨架（墨玉） ========== */
.cs-page {
  --cs-text: var(--ink);
  --cs-text-2: #4b5563;
  --cs-text-3: #7b8491;
  --cs-line: var(--line);
  --cs-line-soft: var(--line-soft);
  --cs-fill: rgba(255, 255, 255, 0.55);
  --cs-ok: var(--success);
  --cs-warn: var(--warning);
  --cs-label-w: 100px;
  width: 100%;
  max-width: none;
  color: var(--cs-text);
  animation: cs-page-in 220ms cubic-bezier(.2,.7,.2,1);
}
.cs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cs-head-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--cs-text);
  font-family: var(--font-display);
}
.cs-head-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--cs-text-3);
  line-height: 1.5;
}
.cs-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cs-head-actions .btn-primary {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 6px;
}
.cs-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cs-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elev);
}
.cs-panel-body { padding: 24px 28px 16px; }
.cs-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  min-height: 28px;
}
.cs-panel-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--cs-text);
}
.cs-panel-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.cs-panel-tools .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}
.cs-panel-foot {
  padding: 10px 20px 14px;
  background: var(--cs-fill);
  border-top: 1px solid var(--cs-line-soft);
}
.cs-sync {
  font-size: 12px;
  color: var(--cs-text-3);
  transition: color 180ms ease;
}
.cs-sync.is-saved { color: var(--cs-ok); font-weight: 600; }
.cs-sync.is-loading {
  color: var(--cs-text-3);
  animation: cs-sync-pulse 1.1s ease-in-out infinite;
}
@keyframes cs-sync-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.cs-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--cs-text-3);
  line-height: 1.5;
}
.cs-form { display: flex; flex-direction: column; gap: 18px; }
.cs-form.is-compact { gap: 12px; margin-top: 12px; }
.cs-field {
  display: grid;
  grid-template-columns: var(--cs-label-w) minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}
.cs-field > label {
  padding-top: 7px;
  font-size: 14px;
  color: var(--cs-text-2);
  text-align: right;
  line-height: 22px;
}
.cs-field-check {
  display: grid;
  grid-template-columns: var(--cs-label-w) minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 4px;
}
.cs-field-spacer { width: var(--cs-label-w); }
.cs-ctrl { min-width: 0; }
.cs-ctrl input,
.cs-ctrl select {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #fff;
  color: var(--cs-text);
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.cs-ctrl input:hover,
.cs-ctrl select:hover { border-color: #bbbfc4; }
.cs-ctrl input:focus,
.cs-ctrl select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: var(--focus-ring);
}
.cs-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
  color: var(--cs-text);
  cursor: pointer;
}
.cs-check input { margin-top: 3px; accent-color: var(--ink); }
.cs-check em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  color: var(--cs-text-3);
}
.cs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  font-size: 13px;
}
.cs-links a {
  color: var(--cs-text-2);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.cs-links a:hover {
  color: var(--ink);
  background: rgba(11, 13, 16, 0.05);
}

/* A · 全宽工作台 */
.cs-page--work .cs-work-body { width: 100%; }

/* B · 设置单栏 */
.cs-page--settings .cs-settings-body {
  max-width: 760px;
}
.cs-page--settings .cs-settings-body > .cs-panel { width: 100%; }

/* C · 设置双栏（全宽铺满主区） */
.cs-page--split .cs-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}
.cs-page--split .cs-main { min-width: 0; }
.cs-page--split .cs-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  min-width: 0;
}
.cs-page--split .cs-side .cs-panel { padding: 18px 18px 16px; }
.cs-page--split .cs-side .cs-panel-head { margin-bottom: 12px; }
.cs-page--split .cs-side .cs-panel-head h3 { font-size: 14px; }

@media (max-width: 960px) {
  .cs-page--split .cs-split { grid-template-columns: 1fr; }
  .cs-page--split .cs-side { position: static; }
}
@media (max-width: 720px) {
  .cs-field,
  .cs-field-check { grid-template-columns: 1fr; gap: 6px; }
  .cs-field > label { padding-top: 0; text-align: left; }
  .cs-field-spacer { display: none; }
  .cs-panel-body { padding: 16px; }
}

.console-page .wf-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.console-page .wf-step {
  font-size: 11px; padding: 4px 8px; border-radius: 999px; border: 1px solid #e2e8f0;
  color: #64748b; background: #fff;
}
.console-page .wf-step.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.console-page .wf-step.done { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 22px; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--console-muted); font-size: 13px; }
.guide {
  border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.guide h3 { margin: 0 0 4px; font-size: 14px; }
.guide .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.guide a.step {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; display: block;
}
.guide a.step.primary { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,.12); }
.guide .s { font-size: 11px; color: #94a3b8; }
.guide .t { font-size: 13px; font-weight: 650; margin-top: 2px; color: var(--console-text); }
.guide .d { font-size: 12px; color: var(--console-muted); margin-top: 2px; }

@media (max-width: 900px) {
  /* 窄屏仍显示菜单文案，避免只剩徽章/空白 */
  .console-sidebar { width: 200px; }
  .console-sidebar .brand span { display: none; }
  .nav-group .gt { font-size: 10px; }
  .nav-item { font-size: 12.5px; padding: 8px; }
  .guide .steps { grid-template-columns: 1fr; }
}

/* PLAN-03 · 登录与通道 */
.pa-sec {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 10px;
}
.pa-sec:last-of-type { border-bottom: 0; }
.pa-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #334155; cursor: pointer;
}
.pa-field {
  display: grid; gap: 4px; font-size: 12px; color: #64748b;
}
.pa-field em { font-style: normal; color: #0f766e; margin-left: 6px; }
.pa-field input, .pa-field select {
  height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font-size: 13px;
}
.pa-hint { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.pa-hint code {
  display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 6px;
  background: #f1f5f9; color: #334155; font-size: 11px; word-break: break-all;
}
.pa-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* PLAN-36.3 · 我的企业 · 飞书双栏（左主右辅） */
.enterprise-page {
  --ent-text: var(--ink);
  --ent-text-2: #4b5563;
  --ent-text-3: #7b8491;
  --ent-line: var(--line);
  --ent-line-soft: var(--line-soft);
  --ent-fill: rgba(255, 255, 255, 0.55);
  --ent-ok: var(--success);
  --ent-warn: var(--warning);
  --ent-label-w: 100px;
  width: 100%;
  max-width: none;
  animation: ent-fade-in 140ms ease-out;
}
.enterprise-page.is-split { max-width: none; }
.enterprise-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}
.ent-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  min-width: 0;
}
.ent-side-card {
  padding: 18px 18px 16px;
}
.ent-side-card .ent-section-head {
  margin-bottom: 12px;
}
.ent-side-card .ent-section-head h3 {
  font-size: 14px;
}
.ent-ready-stack { margin: 0; }
.ent-ready-top { margin-bottom: 10px; }
.ent-ready-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ent-ready-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  background: var(--ent-fill);
  color: var(--ent-text-2);
}
.ent-ready-list a i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9cdd4;
  flex-shrink: 0;
}
.ent-ready-list a.is-ok { color: var(--ent-text); }
.ent-ready-list a.is-ok i { background: var(--ent-ok); }
.ent-ready-list a.is-todo { color: var(--ent-warn); }
.ent-ready-list a.is-todo i { background: var(--ent-warn); }
.ent-ready-list a:hover { background: rgba(31, 35, 41, 0.04); }
.credits-metrics-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.credits-metrics-stack .credits-metric {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.credits-metrics-stack .credits-metric::after { display: none; }
.credits-metrics-stack .credits-balance-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.credits-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ent-line-soft);
}
.credits-metric-row .credits-metric strong { font-size: 18px; }
.ent-side-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.ent-main .ent-section { border-bottom: 0; padding-bottom: 8px; }
.ent-main .ent-ctrl input,
.ent-main .ent-ctrl select { max-width: none; }
.enterprise-page .ent-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.enterprise-page .ent-page-head > .btn-primary {
  height: 32px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.enterprise-page .ent-page-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ent-text);
  font-family: var(--font);
}
.enterprise-page .ent-page-title > p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ent-text-3);
  line-height: 1.5;
}
.ent-ready-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ent-text-3);
}
.ent-ready-label { font-weight: 600; }
.ent-ready-label.ent-miss { color: var(--ent-warn); }
.ent-ready-label.ent-ok { color: var(--ent-ok); }
.ent-ready-dot { color: #c9cdd4; user-select: none; }
.ent-ready-link {
  color: var(--ent-text-3);
  text-decoration: none;
}
.ent-ready-link.is-ok { color: var(--ent-text-2); }
.ent-ready-link.is-todo { color: var(--ent-warn); }
.ent-ready-link:hover { color: var(--ent-text); }
.enterprise-panel {
  background: #fff;
  border: 1px solid var(--ent-line);
  border-radius: 8px;
  overflow: hidden;
}
.ent-section {
  padding: 24px 28px 12px;
  border-bottom: 1px solid var(--ent-line-soft);
}
.ent-section:last-of-type { border-bottom: 0; }
.enterprise-credits { padding-bottom: 20px; }
.ent-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  min-height: 28px;
}
.ent-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ent-text);
}
.ent-section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}
.ent-section-tools .btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}
.ent-sync {
  font-size: 12px;
  color: var(--ent-text-3);
  transition: color 180ms ease;
  margin-right: 4px;
}
.ent-sync.is-saved { color: var(--ent-ok); font-weight: 600; }
.ent-sync.is-loading { color: var(--ent-text-3); }
.ent-form { display: flex; flex-direction: column; gap: 18px; }
.ent-form-compact { gap: 12px; margin-top: 12px; }
.ent-row {
  display: grid;
  grid-template-columns: var(--ent-label-w) minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}
.ent-row > label {
  padding-top: 7px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ent-text-2);
  text-align: right;
  line-height: 22px;
}
.ent-check-spacer { width: var(--ent-label-w); }
.ent-row-check {
  align-items: flex-start;
  padding-bottom: 8px;
}
.ent-ctrl { min-width: 0; }
.ent-ctrl input,
.ent-ctrl select {
  width: 100%;
  max-width: 400px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #d0d3d6;
  border-radius: 6px;
  background: #fff;
  color: var(--ent-text);
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.ent-ctrl input:hover,
.ent-ctrl select:hover { border-color: #bbbfc4; }
.ent-ctrl input:focus,
.ent-ctrl select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: var(--focus-ring);
}
.ent-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ent-text-3);
  line-height: 1.5;
}
.ent-credits-note { margin-top: 12px; max-width: 520px; }
.enterprise-entity {
  margin: 0;
  padding: 0 0 0 calc(var(--cs-label-w, var(--ent-label-w, 100px)) + 12px);
  border: 0;
  background: transparent;
}
.cs-page .enterprise-entity .cs-field { margin-top: 0; }
.enterprise-entity summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--ent-text-2);
  list-style: none;
  width: fit-content;
}
.enterprise-entity summary::-webkit-details-marker { display: none; }
.enterprise-entity summary::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 6px;
  border-left: 5px solid #8f959e;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  vertical-align: 1px;
  transition: transform 120ms ease;
}
.enterprise-entity[open] summary::before { transform: rotate(90deg); }
.enterprise-entity[open] summary { margin-bottom: 12px; }
.enterprise-entity .ent-row { margin-top: 0; }
.enterprise-complete {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
  color: var(--ent-text);
  cursor: pointer;
}
.enterprise-complete input {
  margin-top: 3px;
  accent-color: var(--ink);
}
.enterprise-complete-hint,
.enterprise-complete em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  color: var(--ent-text-3);
}
.ent-verify-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background: #f2f3f5;
  color: #646a73;
}
.ent-verify-badge.is-draft { background: #f2f3f5; color: #646a73; }
.ent-verify-badge.is-pending { background: #fff7e8; color: #de7802; }
.ent-verify-badge.is-verified { background: #e8f7ef; color: #2ea121; }
.ent-verify-badge.is-rejected { background: #fdecee; color: #d83931; }
.ent-verify-actions {
  margin-top: 8px;
  padding-left: calc(var(--cs-label-w, var(--ent-label-w, 100px)) + 12px);
}
.ent-verify-actions .cs-hint { margin: 0 0 8px; }
.ent-verify-reject { color: #d83931 !important; }
.credits-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
}
.credits-metric {
  position: relative;
  min-width: 112px;
  padding: 0 28px 0 0;
  margin-right: 28px;
}
.credits-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--ent-line);
}
.credits-metric .l {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ent-text-3);
}
.credits-metric strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ent-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.credits-metric.is-main strong {
  font-size: 28px;
  font-weight: 650;
}
.credits-metric .unit {
  margin-left: 4px;
  font-size: 12px;
  color: var(--ent-text-3);
}
.credits-ledger-wrap {
  margin-top: 12px;
  font-size: 13px;
}
.credits-ledger-wrap > summary {
  cursor: pointer;
  color: var(--ent-text-2);
  font-size: 13px;
  font-weight: 400;
  list-style: none;
  width: fit-content;
}
.credits-ledger-wrap > summary::-webkit-details-marker { display: none; }
.credits-ledger-scroll {
  margin-top: 8px;
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--ent-line);
  border-radius: 6px;
}
.credits-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.credits-ledger-table th,
.credits-ledger-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ent-line-soft);
  color: var(--ent-text-2);
}
.credits-ledger-table th {
  background: var(--ent-fill);
  color: var(--ent-text-3);
  font-weight: 500;
  position: sticky;
  top: 0;
}
.credits-ledger-table .cr-plus { color: var(--ent-ok); font-weight: 600; }
.credits-ledger-table .cr-minus { color: var(--ent-warn); font-weight: 600; }
.credits-ledger-table .empty { color: var(--ent-text-3); text-align: center; }
.ask-credits-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ent-text);
  background: rgba(31, 35, 41, 0.06);
  text-decoration: none;
  white-space: nowrap;
}
.ask-credits-pill:hover { background: rgba(31, 35, 41, 0.1); }
.ent-panel-foot {
  padding: 10px 20px 14px;
  background: var(--ent-fill);
  border-top: 1px solid var(--ent-line-soft);
}
.enterprise-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 2px;
  margin: 0;
  font-size: 13px;
}
.enterprise-related a {
  color: var(--ent-text-2);
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
}
.enterprise-related a:hover {
  color: var(--ink);
  background: rgba(11, 13, 16, 0.05);
}
.enterprise-llm {
  margin-top: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}
.enterprise-llm > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ent-text-3);
  border-radius: 4px;
}
.enterprise-llm > summary::-webkit-details-marker { display: none; }
.enterprise-llm > summary:hover { background: rgba(31, 35, 41, 0.03); color: var(--ent-text-2); }
.enterprise-llm .ent-llm-meta { font-weight: 400; color: #c9cdd4; }
.enterprise-llm-body {
  margin-top: 4px;
  padding: 14px 16px 16px;
  border: 1px solid var(--ent-line);
  border-radius: 6px;
  background: #fff;
}
.enterprise-llm-body .ent-row > label { font-size: 13px; }
.ent-llm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-left: calc(var(--cs-label-w, var(--ent-label-w, 100px)) + 12px);
}
/* PLAN-37 兼容：旧 ent-sync 与 cs-sync 同效 */
.ent-sync.is-saved,
.cs-sync.is-saved { color: var(--cs-ok, var(--ent-ok, #2ea121)); font-weight: 600; }
@keyframes ent-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .enterprise-split {
    grid-template-columns: 1fr;
  }
  .ent-side {
    position: static;
  }
}
@media (max-width: 720px) {
  .enterprise-page { max-width: none; }
  .ent-page-head { flex-wrap: wrap; }
  .ent-row,
  .ent-row-check {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ent-row > label {
    padding-top: 0;
    text-align: left;
  }
  .ent-check-spacer { display: none; }
  .enterprise-entity { padding-left: 0; }
  .ent-ctrl input,
  .ent-ctrl select { max-width: none; }
  .credits-metric {
    margin-right: 16px;
    padding-right: 16px;
    min-width: 96px;
  }
  .ent-llm-actions { padding-left: 0; }
  .ent-section { padding: 16px; }
  .ent-side-card { padding: 16px; }
  .ent-panel-foot { padding: 10px 12px 12px; }
}

/* —— 中控空态 / 个人资料 —— */
.cs-empty {
  display: grid; gap: 6px; place-items: start;
  padding: 22px 16px; border-radius: 12px;
  border: 1px dashed rgba(31,35,41,.12);
  background: linear-gradient(180deg, #fbfbfc 0%, #fff 100%);
  color: #646a73; font-size: 13px; line-height: 1.5;
}
.cs-empty em {
  font-style: normal; font-weight: 700; color: #1f2329; font-size: 14px;
}
.cs-empty .btn { margin-top: 6px; }
.cs-profile { max-width: 720px; }
.cs-profile-hero {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(31,35,41,.08);
}
.cs-profile-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff; font-size: 20px; font-weight: 700;
}
.cs-profile-name { display: block; font-size: 18px; color: #1f2329; }
.cs-profile-sub { margin: 4px 0 0; font-size: 13px; color: #8f959e; }
.cs-profile-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px; margin: 0 0 18px;
}
.cs-profile-grid dt { font-size: 12px; color: #8f959e; margin-bottom: 4px; }
.cs-profile-grid dd { margin: 0; font-size: 14px; color: #1f2329; font-weight: 600; }
.cs-profile-grid code { font-size: 12px; font-weight: 500; color: #646a73; }
.cs-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .cs-profile-grid { grid-template-columns: 1fr; }
}

/* —— 顶栏 / 编制卡 / 示意折叠 —— */
.cs-topbar-title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; color: #8f959e;
}
.cs-topbar-title strong {
  font-size: 14px; color: #1f2329; font-weight: 700;
}
.cs-topbar-title span { font-size: 12px; color: #8f959e; }
.cs-org-metrics {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px;
}
.cs-org-metric {
  min-width: 110px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(31,35,41,.08); background: #fff;
}
.cs-org-metric span { display: block; font-size: 12px; color: #8f959e; margin-bottom: 4px; }
.cs-org-metric strong { font-size: 22px; color: #1f2329; font-variant-numeric: tabular-nums; }
.cs-org-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cs-org-add .input { min-width: 160px; height: 36px; }
.cs-org-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.cs-org-card {
  padding: 14px; border-radius: 12px;
  border: 1px solid rgba(31,35,41,.08); background: #fff;
  box-shadow: 0 4px 14px rgba(17,17,17,.03);
}
.cs-org-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cs-org-card-top .input { flex: 1; min-width: 0; height: 34px; }
.cs-org-card-top strong { font-size: 14px; color: #1f2329; }
.cs-org-card-meta { margin: 10px 0 0; font-size: 12px; color: #8f959e; }
.cs-org-card-meta .input { width: 100%; height: 34px; }
.cs-org-foot { margin: 14px 0 0; font-size: 12px; color: #8f959e; }
.cs-demo-fold,
details.card[id$="-demo"],
details.card summary {
  color: #8f959e;
}
details.card[id$="-demo"],
details.card:has(summary) {
  border-style: dashed;
  background: #fafafa;
  box-shadow: none;
}
details.card summary {
  font-size: 12px; font-weight: 600; cursor: pointer; opacity: .85;
}
details.card summary:hover { opacity: 1; color: #1f2329; }

/* ========== PLAN-47B · 高频页组件 ========== */
.cs-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cs-stat {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line-soft);
}
.cs-stat .l {
  font-size: 12px; color: var(--console-muted); font-weight: 500;
  letter-spacing: .02em;
}
.cs-stat .v {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); line-height: 1.1;
}
.cs-stat .v.is-ok { color: var(--success); }
.cs-stat .v.is-warn { color: var(--warning); }
.cs-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cs-tile {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line-soft);
  transition: border-color .15s ease, transform .15s ease;
}
.cs-tile:hover {
  border-color: var(--line);
  transform: translateY(-1px);
}
.cs-tile-top {
  display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
}
.cs-tile-top strong {
  font-size: 15px; font-weight: 650; color: var(--ink);
}
.cs-tile-name {
  margin-top: 6px; font-size: 13px; color: var(--console-text);
}
.cs-tile-meta {
  margin-top: 8px; font-size: 12.5px; color: var(--console-muted); line-height: 1.55;
}
.cs-tile-actions {
  margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap;
}
.cs-lead {
  margin: 0 0 16px;
  font-size: 13.5px; color: var(--console-muted); line-height: 1.6;
  max-width: 62ch;
}
.cs-section {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line-soft);
}
.cs-section > strong {
  display: block; font-size: 14px; font-weight: 650; color: var(--ink);
}
.console .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.console .stat {
  padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.72); border: 1px solid var(--line-soft);
}
.console .stat .l { font-size: 12px; color: var(--console-muted); }
.console .stat .v {
  margin-top: 8px; font-family: var(--font-display);
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}
@media (max-width: 900px) {
  .cs-stat-grid, .console .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cs-stat-grid, .console .stat-grid { grid-template-columns: 1fr; }
}

/* ========== PLAN-47B′ C1 · 内容区组件 ========== */
.cs-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.cs-toolbar-meta {
  font-size: 13px; color: var(--console-muted);
}
.cs-toolbar-meta strong { color: var(--ink); font-weight: 650; }
.cs-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cs-row-list { display: grid; gap: 10px; }
.cs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line-soft);
}
.cs-row-main { min-width: 0; }
.cs-row-title {
  font-size: 14px; font-weight: 650; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.cs-row-meta {
  margin-top: 4px; font-size: 12.5px; color: var(--console-muted); line-height: 1.5;
}
.cs-row-actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
.cs-row.is-warn { border-color: rgba(194, 120, 3, 0.28); background: rgba(255, 251, 235, 0.65); }
.cs-row.is-run { border-color: rgba(11, 13, 16, 0.12); }

.cs-split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 860px) {
  .cs-split-2 { grid-template-columns: 1fr; }
  .cs-row { grid-template-columns: 1fr; }
  .cs-row-actions { justify-content: flex-start; }
}

/* ========== 正在执行 · 层次舞台（L2–L4） ========== */
.cs-run-rail {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.55)),
    radial-gradient(420px 120px at 0% 0%, rgba(255, 138, 61, 0.1), transparent 70%);
}
.cs-run-rail.is-run {
  border-color: rgba(255, 138, 61, 0.28);
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,248,240,.75)),
    radial-gradient(480px 140px at 8% 0%, rgba(255, 138, 61, 0.16), transparent 68%);
}
.cs-run-rail.is-warn {
  border-color: rgba(194, 120, 3, 0.32);
  background:
    linear-gradient(135deg, rgba(255,251,235,.95), rgba(255,255,255,.7)),
    radial-gradient(420px 120px at 0% 0%, rgba(194, 120, 3, 0.12), transparent 70%);
}
.cs-run-rail.is-ok {
  border-color: rgba(46, 161, 33, 0.22);
}
.cs-run-rail.is-idle {
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(248,249,251,.7));
}
.cs-run-rail-main {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px 28px;
  align-items: end;
}
.cs-run-kicker {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--console-muted);
  margin-bottom: 6px;
}
.cs-run-word {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; color: var(--ink);
}
.cs-run-rail.is-run .cs-run-word { color: #9a4a12; }
.cs-run-rail.is-warn .cs-run-word { color: #8a5a08; }
.cs-run-sub {
  margin: 8px 0 0;
  font-size: 13px; color: var(--console-muted); line-height: 1.5;
  max-width: 36ch;
}
.cs-run-rail-side { min-width: 0; }
.cs-run-phases {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.cs-run-phase {
  height: 26px; padding: 0 10px; border-radius: 7px;
  font-size: 11.5px; font-weight: 650;
  color: var(--console-muted);
  background: rgba(11,13,16,.04);
  border: 1px solid transparent;
  display: inline-flex; align-items: center;
}
.cs-run-phase.is-done {
  color: var(--ink); background: rgba(11,13,16,.07);
}
.cs-run-phase.is-on {
  color: #fff; background: var(--ink); border-color: var(--ink);
}
.cs-run-facts {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cs-run-fact {
  display: inline-flex; align-items: baseline; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  font-size: 12px;
}
a.cs-run-fact:hover { border-color: var(--line); background: #fff; }
.cs-run-fact .k { color: var(--console-muted); }
.cs-run-fact strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.cs-run-fact.is-ok strong { color: var(--success); }
.cs-run-fact.is-warn strong { color: var(--warning); }
.cs-run-meter {
  height: 4px; border-radius: 999px; margin: 0 0 12px;
  background: rgba(11,13,16,.08); overflow: hidden;
}
.cs-run-meter i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--ink), var(--sun));
}
.cs-run-chips,
.cs-run-seg {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.cs-run-seg { margin: 0 0 12px; }
.cs-run-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 8px;
  font-size: 12px; color: var(--console-muted);
  background: rgba(11,13,16,.04);
  border: 1px solid transparent;
  text-decoration: none;
}
.cs-run-chip b { color: var(--ink); font-weight: 700; }
.cs-run-chip.is-on {
  background: rgba(11,13,16,.08); color: var(--ink);
  border-color: var(--line-soft);
}
.cs-run-chip.is-warn { background: rgba(194,120,3,.1); color: #8a5a08; }
.cs-run-chip.is-warn b { color: #8a5a08; }
.cs-run-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-muted);
}
.cs-run-chip .dot.is-run { background: var(--sun); }
.cs-run-chip .dot.is-ok { background: var(--success); }
.cs-run-chip .dot.is-warn { background: var(--warning); }
.cs-run-chip .dot.is-bad { background: var(--danger); }

.cs-run-hint {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin: 0 0 14px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.7);
}
.cs-run-hint.is-warn {
  border-color: rgba(194,120,3,.28);
  background: rgba(255,251,235,.85);
}
.cs-run-hint.is-ok {
  border-color: rgba(46,161,33,.22);
  background: rgba(236,253,245,.55);
}
.cs-run-hint-copy { min-width: 0; flex: 1; }
.cs-run-hint-copy strong {
  display: block; font-size: 13px; color: var(--ink); margin-bottom: 2px;
}
.cs-run-hint-copy span {
  font-size: 12.5px; color: var(--console-muted); line-height: 1.45;
}
.cs-run-hint-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-run-note { margin: 10px 0 0; }
.cs-mark-sm {
  width: 22px; height: 22px; font-size: 10px; border-radius: 6px;
  display: inline-grid; place-items: center; margin-right: 8px;
  vertical-align: -5px;
}
.cs-pdca {
  display: inline-flex; gap: 3px; margin: 6px 0 2px;
}
.cs-pdca i {
  width: 16px; height: 16px; border-radius: 4px;
  display: grid; place-items: center;
  font-style: normal; font-size: 9px; font-weight: 700;
  color: var(--console-muted); background: rgba(11,13,16,.06);
}
.cs-pdca i.on {
  color: #1a1008; background: var(--sun);
}
.cs-feed-legend {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 6px; font-size: 11px; color: #8b939e;
}
.cs-feed-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cs-feed-legend i {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}

.cs-run-stage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}
.cs-run-panel {
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.78);
  min-width: 0;
}
.cs-run-panel.is-side {
  background: rgba(255,255,255,.62);
}
.cs-run-panel .cs-block-head { margin-top: 0; }
.cs-run-panel .cs-empty { padding: 28px 16px; border: 0; background: transparent; }
.cs-run-tools {
  display: grid; gap: 0;
  max-height: 168px; overflow: auto;
}
.cs-run-tool {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px; align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px; color: var(--console-muted);
}
.cs-run-tool:last-child { border-bottom: 0; }
.cs-run-tool .is-ok { color: var(--success); font-weight: 700; font-size: 11px; }
.cs-run-tool .is-bad { color: var(--danger); font-weight: 700; font-size: 11px; }
.cs-run-tool .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-run-tool .t b { color: var(--ink); font-weight: 650; }
.cs-run-tool .a { color: var(--console-muted); font-size: 11px; white-space: nowrap; }

.cs-feed-console {
  display: flex; flex-direction: column;
  min-height: 420px; max-height: 560px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(11,13,16,.35);
  background: #12151b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.cs-feed-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.cs-feed-head strong {
  font-size: 13px; font-weight: 650; color: #e8edf4;
}
.cs-feed-head .cs-count {
  background: rgba(255,255,255,.12); color: #e8edf4;
}
.cs-feed-body {
  flex: 1; overflow: auto;
  padding: 8px 14px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cs-feed-line {
  display: grid;
  grid-template-columns: 64px 36px minmax(0, 1fr);
  gap: 8px; align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 12px; line-height: 1.45;
}
.cs-feed-line .tm { color: #6b7380; }
.cs-feed-line .kd { font-weight: 700; letter-spacing: .02em; }
.cs-feed-line .tx { color: #d5dbe6; word-break: break-word; }
.cs-feed-empty {
  padding: 48px 16px; text-align: center;
  color: #6b7380; font-size: 13px; line-height: 1.55;
}

.cs-run-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--console-muted);
}
.cs-run-foot a {
  color: var(--ink); text-decoration: none; font-weight: 650;
}
.cs-run-foot a:hover { text-decoration: underline; }
.cs-run-dot {
  display: inline-block; width: 3px; height: 3px; margin: 0 8px;
  border-radius: 50%; background: var(--ink-muted); vertical-align: middle;
}

@media (max-width: 960px) {
  .cs-run-rail-main { grid-template-columns: 1fr; align-items: start; }
  .cs-run-word { font-size: 30px; }
  .cs-run-stage { grid-template-columns: 1fr; }
  .cs-feed-console { min-height: 320px; max-height: 420px; }
}

.cs-timeline { display: grid; gap: 0; }
.cs-tl-item {
  position: relative;
  padding: 12px 0 12px 18px;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}
.cs-tl-item::before {
  content: "";
  position: absolute; left: -4px; top: 18px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-muted);
  box-shadow: 0 0 0 3px rgba(255,255,255,.9);
}
.cs-tl-item.is-run::before { background: var(--sun); }
.cs-tl-item.is-warn::before { background: var(--warning); }
.cs-tl-item.is-ok::before { background: var(--success); }
.cs-tl-head {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
}
.cs-tl-head strong { font-size: 13.5px; color: var(--ink); }
.cs-tl-head span { font-size: 11px; font-weight: 650; color: var(--console-muted); letter-spacing: .02em; }
.cs-tl-body { margin-top: 4px; font-size: 12.5px; color: var(--console-muted); line-height: 1.5; }

.cs-empty em {
  display: block; font-style: normal; font-weight: 650; color: var(--ink); margin-bottom: 4px;
}
.cs-empty span { display: block; margin-bottom: 10px; }
.cs-empty .btn { margin-top: 4px; }

.cs-work-body > .cs-banner--soft,
.cs-work-body > .cs-lead { margin-bottom: 14px; }

/* ========== PLAN-48 · 内容丰度组件 ========== */
.cs-hero {
  margin: 0 0 18px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(520px 120px at 0% 0%, rgba(255, 138, 61, 0.07), transparent 70%);
}
.cs-hero-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 8px; min-height: 22px;
}
.cs-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--console-muted);
}
.cs-status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 650;
  background: rgba(11, 13, 16, 0.06); color: var(--ink);
}
.cs-status-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}
.cs-status-chip.is-warn { background: rgba(194, 120, 3, 0.12); color: #8a5a08; }
.cs-status-chip.is-warn::before { background: var(--warning); }
.cs-status-chip.is-danger { background: rgba(194, 59, 59, 0.12); color: #9b2c2c; }
.cs-status-chip.is-danger::before { background: var(--danger); }
.cs-status-chip.is-off::before { background: var(--ink-muted); }
.cs-hero-main {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cs-hero-copy { min-width: 0; flex: 1; }
.cs-hero-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.2;
}
.cs-hero-copy p {
  margin: 6px 0 0; font-size: 13.5px; color: var(--console-muted); line-height: 1.55;
  max-width: 56ch;
}
.cs-hero-meta {
  margin-top: 8px; font-size: 12px; color: var(--console-muted);
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.cs-hero-meta b { color: var(--ink); font-weight: 650; }
.cs-hero-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-shrink: 0;
}
.cs-hero-actions .btn-primary {
  background: var(--ink);
}
.cs-hero-actions .btn-primary.is-sun {
  background: var(--sun); color: #1a1008; border-color: transparent;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.cs-hero-actions .btn-primary.is-sun:hover:not(:disabled) {
  filter: brightness(1.05); background: var(--sun);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 138, 61, .22);
}
.cs-hero-actions .btn-primary.is-sun:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.cs-context {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px; padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line-soft);
}
.cs-context a,
.cs-context span {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 7px;
  font-size: 12.5px; color: var(--console-muted);
  text-decoration: none; border: 0; background: transparent;
}
.cs-context a:hover { background: rgba(11,13,16,.05); color: var(--ink); }
.cs-context strong { color: var(--ink); font-weight: 700; }
.cs-context .is-warn strong { color: var(--warning); }
.cs-context .is-ok strong { color: var(--success); }

.cs-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 18px 0 10px; flex-wrap: wrap;
}
.cs-block-head h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.cs-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: rgba(11,13,16,.08); color: var(--ink);
}
.cs-block-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cs-stat {
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
a.cs-stat { text-decoration: none; color: inherit; display: block; }
a.cs-stat:hover,
.cs-stat.is-link:hover {
  transform: translateY(-1px);
  border-color: var(--line);
}
.cs-stat .s {
  margin-top: 6px; font-size: 12px; color: var(--console-muted); line-height: 1.4;
}
.cs-stat .dots {
  display: flex; gap: 3px; align-items: flex-end; height: 16px; margin-top: 10px;
}
.cs-stat .dots i {
  display: block; width: 4px; border-radius: 2px;
  background: rgba(11,13,16,.18);
}
.cs-stat .dots i.on { background: var(--sun); }

.cs-mark {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: var(--ink);
}
.cs-tile {
  position: relative;
  padding-left: 18px;
  overflow: hidden;
}
.cs-tile::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ink-muted);
}
.cs-tile.is-on::before { background: var(--success); }
.cs-tile.is-warn::before { background: var(--warning); }
.cs-tile.is-off::before { background: var(--ink-muted); }
.cs-tile-head {
  display: flex; gap: 12px; align-items: flex-start;
}
.cs-tile-head .cs-tile-copy { min-width: 0; flex: 1; }
.cs-tile-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.cs-tile-metrics div {
  min-width: 0;
}
.cs-tile-metrics .k {
  display: block; font-size: 11px; color: var(--console-muted);
}
.cs-tile-metrics .n {
  display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ink);
}

.cs-row {
  position: relative;
  padding-left: 22px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cs-row:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  box-shadow: var(--elev);
}
.cs-row::before {
  content: "";
  position: absolute; left: 10px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--ink-muted);
}
.cs-row.is-warn::before { background: var(--warning); }
.cs-row.is-run::before { background: var(--sun); }
.cs-row.is-ok::before { background: var(--success); }

.cs-filter {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.cs-filter button {
  height: 28px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.7);
  color: var(--console-muted); font-size: 12px; cursor: pointer;
}
.cs-filter button.is-on {
  background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 650;
}

.cs-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 24px;
}
.cs-empty-ico {
  width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: rgba(255,255,255,.6);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink);
}
.cs-empty-actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px;
}

.cs-insight {
  display: flex; flex-direction: column; gap: 10px;
}
.cs-insight-item {
  padding: 12px 14px; border-radius: 8px;
  background: rgba(255,255,255,.65); border: 1px solid var(--line-soft);
  font-size: 13px; color: var(--console-muted); line-height: 1.5;
}
.cs-insight-item strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 13px; }
.cs-insight-item .big {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em; margin: 4px 0;
}

@media (max-width: 720px) {
  .cs-hero-copy h2 { font-size: 22px; }
  .cs-hero-main { flex-direction: column; align-items: stretch; }
  .cs-hero-actions { width: 100%; }
  .cs-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .cs-context {
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -4px; margin-right: -4px;
    padding-left: 8px; padding-right: 8px;
  }
  .cs-context::-webkit-scrollbar { display: none; }
  .cs-context a,
  .cs-context span { flex: 0 0 auto; white-space: nowrap; }
  .cs-tile-grid { grid-template-columns: 1fr; }
  .cs-tile-metrics { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
  .cs-org-grid { grid-template-columns: 1fr; }
  .cs-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PLAN-48E · 克制动效收口 */
.cs-work-body > .cs-context,
.cs-work-body > .cs-stat-grid,
.cs-work-body > .cs-block-head,
.cs-settings-body > .cs-context {
  animation: cs-rise 260ms cubic-bezier(.2,.7,.2,1) both;
}
.cs-work-body > .cs-stat-grid { animation-delay: 40ms; }
.cs-work-body > .cs-block-head { animation-delay: 70ms; }
@keyframes cs-rise {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
/* 实时盯场轮询区：禁止反复页入动画，避免「一直跳」 */
#watch-live[data-live-hydrated="1"],
#watch-live[data-live-hydrated="1"] .cs-context,
#watch-live[data-live-hydrated="1"] .cs-stat-grid,
#watch-live[data-live-hydrated="1"] .cs-block-head,
#watch-live[data-live-hydrated="1"] .cs-run-rail,
#watch-live[data-live-panel] .cs-context,
#watch-live[data-live-panel] .cs-block-head,
#watch-live[data-live-panel] .cs-run-rail {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .console-page,
  .cs-page,
  .cs-work-body > .cs-context,
  .cs-work-body > .cs-stat-grid,
  .cs-work-body > .cs-block-head,
  .cs-settings-body > .cs-context,
  .cs-sync.is-loading,
  .console-sync-bar.is-on::after {
    animation: none !important;
  }
  .cs-row:hover,
  .cs-tile:hover,
  a.cs-stat:hover,
  .cs-hero-actions .btn-primary.is-sun:hover:not(:disabled) {
    transform: none;
  }
}
