@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--gradient-page-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

:root {
  /* Bento Soft — 大圆角 · 柔和底 · 青绿/天空点缀（工作台版） */
  --primary: #2b9bff;
  --primary-dark: #1a7fe0;
  --primary-light: #e8f4ff;
  --accent: #12d4b8;
  --accent-coral: #ff7a6e;
  --accent-peach: #ffb088;
  --success: #12b981;
  --warning: #f5a524;
  --danger: #ef5b5b;
  --orange: #ff8a4c;
  --bg: #eef2f7;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-soft: #edf1f6;
  --text: #1e293b;
  --text-sub: #64748b;
  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 4px 16px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 10px 32px rgba(30, 41, 59, 0.08);
  --gradient-red-blue: linear-gradient(135deg, #2b9bff 0%, #12d4b8 100%);
  --gradient-red-blue-hover: linear-gradient(135deg, #1a7fe0 0%, #0bb8a0 100%);
  --gradient-sidebar: #ffffff;
  --gradient-success: linear-gradient(135deg, #0d9f6e 0%, #12d4b8 100%);
  --gradient-warning: linear-gradient(135deg, #e8920f 0%, #f5a524 100%);
  --gradient-danger: linear-gradient(135deg, #e04545 0%, #ef5b5b 100%);
  --gradient-coral: linear-gradient(160deg, #ff8a7a 0%, #ffb4a2 100%);
  --gradient-teal: linear-gradient(145deg, #14d9c0 0%, #0bb8a0 100%);
  --gradient-sky: linear-gradient(160deg, #5eb8ff 0%, #2b9bff 100%);
  --gradient-page-bg:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(43, 155, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(18, 212, 184, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(255, 122, 110, 0.05), transparent 45%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(226, 232, 240, 0.85);
  --elevated: 0 4px 18px rgba(30, 41, 59, 0.06);
  --elevated-lg: 0 12px 36px rgba(30, 41, 59, 0.09);
}

/* ========== 登录页 ========== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-page-bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(43, 155, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(18, 212, 184, 0.08), transparent 50%);
  pointer-events: none;
}
.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--elevated-lg);
  border: 1px solid var(--border-soft);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h1 { font-size: 24px; color: var(--primary); margin-top: 12px; }
.login-logo p { color: var(--text-sub); font-size: 13px; margin-top: 6px; }
.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: var(--gradient-red-blue);
  color: #fff;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 22px rgba(43, 155, 255, 0.28);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; font-weight: 500; }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all .2s;
  background: #f8fafc;
  color: var(--text);
}
.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 155, 255, 0.14);
}
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-red-blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(43, 155, 255, 0.28);
}
.btn-primary:hover {
  background: var(--gradient-red-blue-hover);
  box-shadow: 0 6px 18px rgba(43, 155, 255, 0.34);
  transform: translateY(-1px);
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  color: var(--primary-dark);
  border-color: #b8d9f8;
  background: var(--primary-light);
  box-shadow: none;
}
.btn-success {
  background: var(--gradient-success);
  color: #fff;
  box-shadow: 0 4px 14px rgba(18, 212, 184, 0.28);
}
.btn-success:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(18, 212, 184, 0.36);
  transform: translateY(-1px);
}
.btn-warning {
  background: var(--gradient-warning);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 165, 36, 0.28);
}
.btn-warning:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--gradient-danger);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 91, 91, 0.28);
}
.btn-danger:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-block { width: 100%; padding: 12px 20px; }

.hint-text { text-align: center; margin-top: 16px; font-size: 12px; color: var(--text-sub); }

/* ========== 主布局 ========== */
.layout { display: flex; min-height: 100vh; }
.page-loaded .btn-primary {
  background: var(--gradient-red-blue);
  box-shadow: 0 4px 14px rgba(43, 155, 255, 0.26);
}
.page-loaded .btn-primary:hover {
  background: var(--gradient-red-blue-hover);
  box-shadow: 0 6px 18px rgba(43, 155, 255, 0.32);
}
.page-loaded .btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  background-image: none;
  color: var(--text);
}
.page-loaded .btn-outline:hover {
  border-color: #b8d9f8;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.sidebar {
  width: 236px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.15);
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  transition: transform .25s;
  box-shadow: 4px 0 24px rgba(30, 41, 59, 0.04);
  border-right: 1px solid var(--border-soft);
}
.sidebar::before { display: none; }
.sidebar-logo {
  padding: 22px 18px 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
  background: transparent;
}
.sidebar-brand-col {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-logo h2 { color: var(--text); font-size: 15px; font-weight: 600; text-shadow: none; letter-spacing: 0.02em; margin: 0; }
.sidebar-brand-sub,
.sidebar-logo p {
  color: var(--text-sub);
  font-size: 11px;
  margin: 0;
}
.sidebar-brand-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.sidebar-brand-row .sidebar-title,
.sidebar-brand-row h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.sidebar-lang-slot {
  margin-top: 0;
  min-height: 28px;
  flex-shrink: 0;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  max-width: 100%;
}
.lang-btn {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.lang-btn:hover { color: #111827; }
.lang-btn.active {
  background: #111827;
  color: #fff;
}
.lang-btn[data-lang='ug'] {
  font-family: 'Microsoft Uighur', 'UKIJ Tuz Tom', 'Segoe UI', Tahoma, sans-serif;
  direction: ltr;
  unicode-bidi: isolate;
}
body.lang-ug .nav-menu .nav-item,
body.lang-ug .nav-section-label,
body.lang-ug .sidebar-brand-sub,
body.lang-ug #page-title,
body.lang-ug .topbar .tb-item {
  font-family: 'Microsoft Uighur', 'UKIJ Tuz Tom', 'Segoe UI', Tahoma, sans-serif;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-red-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(43, 155, 255, 0.28);
}
.bw-logo-mark {
  position: relative;
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  background: var(--gradient-red-blue) !important;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 8px 20px rgba(43, 155, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.35) !important;
  overflow: hidden;
}
.bw-logo-mark::before { display: none; }
.bw-logo-mark span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: none;
}
.sidebar-logo h2 { color: var(--text); font-size: 15px; font-weight: 600; text-shadow: none; letter-spacing: 0.02em; margin: 0; }
.sidebar-logo p { color: var(--text-sub); font-size: 11px; margin: 0; }

.nav-menu { flex: 1; padding: 8px 10px 14px; overflow-y: auto; position: relative; z-index: 1; }
.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding: 12px 14px 6px;
  margin-top: 4px;
}
.nav-section-label:first-child { margin-top: 0; padding-top: 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  cursor: pointer;
  font-size: 13.5px;
  margin-bottom: 4px;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s;
}
.nav-item:hover {
  background: rgba(43, 155, 255, 0.08);
  color: var(--primary-dark);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(43, 155, 255, 0.16), rgba(18, 212, 184, 0.12));
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(43, 155, 255, 0.12);
  font-weight: 700;
}
.nav-item .nav-icon {
  font-size: 15px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f7;
  flex-shrink: 0;
}
.nav-item.active .nav-icon {
  background: #fff;
  box-shadow: 0 2px 8px rgba(43, 155, 255, 0.18);
}

.sidebar-version {
  padding: 10px 16px;
  margin: 0;
  user-select: none;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s;
  border-top: 1px solid var(--border-soft);
  background: #fafbfc;
}
.sidebar-version:hover {
  color: var(--primary);
}
.sidebar-version::before {
  display: none;
}
.sidebar-extra {
  flex-shrink: 0;
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: auto;
  background: #fafbfc;
}
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-red-blue);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-user .avatar.has-img { background: #e2e8f0; }
.sidebar-user .avatar.bw-avatar-lion-toggle {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sidebar-user .avatar.bw-avatar-lion-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.25);
}
.sidebar-user .avatar.bw-avatar-lion-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sidebar-user .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-info strong { display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .user-info span { color: var(--text-sub); font-size: 12px; }
.sidebar-user .logout-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: all .2s ease;
}
.sidebar-user .logout-btn:hover {
  color: #fff;
  background: var(--danger);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.22);
}

.main-content {
  flex: 1;
  margin-left: 228px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--gradient-page-bg);
}
.topbar {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(36, 48, 68, 0.03);
}
.topbar h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .tb-item { color: var(--text-sub); font-size: 13px; }
.mobile-menu-btn {
  display: none;
  background: none; border: none;
  font-size: 22px; color: var(--text);
  padding: 4px 8px;
}
.sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }

.page-content { flex: 1; padding: 28px; max-width: none; width: 100%; box-sizing: border-box; }
.page-content.bw-page-fill {
  max-width: none;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
}
.page-content.bw-page-fill:has(.bw-pc) {
  padding-bottom: 20px;
  background: #f8fafc;
}
.page-content.bw-page-fill > .card,
.page-content.bw-page-fill > .bw-my-enterprise-one,
.page-content.bw-page-fill > .bw-boss-panel,
.page-content.bw-page-fill > .bw-org-setup-full,
.page-content.bw-page-fill > .bw-pc,
.page-content.bw-page-fill > .bw-enterprise-dashboard,
.page-content.bw-page-fill > .bw-org-page {
  width: 100%;
  max-width: none;
}
.page-content.bw-page-fill:has(.bw-org-page) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  padding: 16px 20px 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.page-content.bw-page-fill:has(.bw-org-page.is-compact) {
  justify-content: flex-start;
  align-items: stretch;
}
.bw-enterprise-dashboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}

/* 我的企业 — 与系统统一的白色卡片风格 */
.page-content.bw-page-fill:has(.bw-enterprise-dashboard.is-tech-dashboard) {
  background: transparent;
  padding: 16px 20px 28px;
}
.bw-enterprise-dashboard.is-tech-dashboard {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elevated-lg);
  padding-bottom: 0;
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss {
  background: #fff;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 16px 22px 14px;
  box-shadow: none;
  color: var(--text);
  position: relative;
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: var(--border);
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-boss-panel {
  border-radius: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  padding: 18px 22px 22px;
  background: #fff;
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss .bw-me-label {
  color: var(--text-sub);
  font-weight: 600;
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss .bw-me-work-stats-row {
  color: var(--text-sub);
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss .bw-me-work-stats-row b {
  color: var(--text);
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss .bw-me-work-stats-row .warn {
  color: var(--orange);
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss .bw-me-work-stats-row .ok {
  color: var(--success);
}
.bw-enterprise-dashboard.is-tech-dashboard .bw-my-enterprise-one.is-with-boss .bw-me-work-stats-row .danger {
  color: var(--danger);
}

/* 企业看板页 — 保持系统默认顶栏 */
.main-content.bw-enterprise-tech-page {
  background: var(--gradient-page-bg);
}
.page-content.bw-page-fill > .card.bw-fill-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
}
.bw-fill-card .bw-fill-body {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 0 4px 4px;
}
.bw-fill-card .filter-bar { flex-shrink: 0; }
.bw-fill-card .card-header { flex-shrink: 0; }

.bw-page-loading {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-sub);
  font-size: 14px;
}
.bw-skeleton-shimmer {
  width: min(420px, 80%);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: bw-shimmer 1.2s ease-in-out infinite;
}
@keyframes bw-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ========== 卡片 & 通用 ========== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevated);
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--border-soft);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.card-header h4 { font-size: 16px; font-weight: 600; }
.card-header .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { padding: 0 10px; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ========== 数据卡片（仪表盘） ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-red-blue);
  opacity: 0;
  transition: opacity .2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(43, 155, 255, 0.12);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1a7fe0; }
.stat-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #0b9a88; }
.stat-icon.orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #ea580c; }
.stat-icon.red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.stat-icon.purple { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #e11d48; }
.stat-info .num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-info .label { color: var(--text-sub); font-size: 13px; margin-top: 4px; }

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 16px;
}
.filter-bar .form-group { margin-bottom: 0; min-width: 140px; flex: 1; }
.filter-bar label { display: none; }
.filter-bar .form-control { padding: 8px 12px; }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.data-table tr:hover td { background: #f8fafc; }
table.data-table .actions-col { display: flex; gap: 6px; flex-wrap: wrap; }

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.tag-primary { background: #edf3ff; color: #3d68db; }
.tag-success { background: #dcfce7; color: #15803d; }
.tag-warning { background: #fef3c7; color: #b45309; }
.tag-danger { background: #fee2e2; color: #b91c1c; }
.tag-info { background: #edf3ff; color: #3d68db; }
.tag-gray { background: #f1f5f9; color: #475569; }
.tag-orange { background: #ffedd5; color: #c2410c; }

/* 任务优先级/状态颜色 */
.priority-high { background: #fee2e2; color: #dc2626; }
.priority-mid { background: #fef3c7; color: #d97706; }
.priority-low { background: #dcfce7; color: #16a34a; }

.status-wait { background: #edf3ff; color: #3d68db; }
.status-doing { background: #e0f2fe; color: #0284c7; }
.status-done { background: #dcfce7; color: #15803d; }
.status-overdue { background: #fee2e2; color: #dc2626; }

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(36, 48, 68, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .2s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h4 { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--text-sub); line-height: 1; }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== 版本更新记录弹窗 ========== */
.bw-cl-modal {
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8eef5;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}
.bw-cl-modal .modal-header {
  padding: 16px 22px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.bw-cl-modal .modal-header h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.bw-cl-modal .modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: background .15s, color .15s;
}
.bw-cl-modal .modal-close:hover {
  background: #f1f5f9;
  color: #475569;
}
.bw-cl-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px !important;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.bw-cl-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.bw-cl-item:last-child { margin-bottom: 0; }
.bw-cl-item.is-current {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.bw-cl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.bw-cl-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 10px;
}
.bw-cl-section-label:not(:first-child) {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}
.bw-cl-item.is-locked {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}
.bw-cl-locked-tag {
  font-size: 11px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #fcd34d;
}
.bw-cl-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px !important;
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.bw-cl-restore-btn {
  margin-right: auto;
}
.bw-cl-undo-btn {
  margin-right: auto;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.bw-cl-undo-tip {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e40af;
}
.bw-cl-ver {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bw-cl-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-red-blue);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  letter-spacing: 0.02em;
}
.bw-cl-now {
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
}
.bw-cl-date {
  font-size: 12px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bw-cl-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.4;
}
.bw-cl-summary {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 10px;
}
.bw-cl-publish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #475569;
}
.bw-cl-publish-meta span {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
}
.bw-cl-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
.bw-cl-lines li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.bw-cl-lines li:last-child { border-bottom: none; }
.bw-cl-lines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
}
.bw-cl-line-empty {
  color: #94a3b8 !important;
  padding-left: 0 !important;
}
.bw-cl-line-empty::before { display: none; }
.bw-cl-group { margin-top: 12px; }
.bw-cl-group:first-of-type { margin-top: 0; }
.bw-cl-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.bw-cl-tag-ui { background: #fce7f3; color: #be185d; }
.bw-cl-tag-feature { background: #dbeafe; color: #1d4ed8; }
.bw-cl-tag-fix { background: #dcfce7; color: #15803d; }
.bw-cl-tag-perf { background: #fef3c7; color: #b45309; }
.bw-cl-tag-other { background: #f1f5f9; color: #475569; }
.bw-cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bw-cl-list li {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.bw-cl-list li:hover {
  border-color: #e0e7ff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
}
.bw-cl-list li:last-child { margin-bottom: 0; }
.bw-cl-row-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.bw-cl-module {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.bw-cl-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #4f46e5;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e0e7ff;
  word-break: break-all;
}
.bw-cl-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}
.bw-cl-modal .modal-footer {
  background: #fff;
  border-top: 1px solid #eef2f7;
  padding: 12px 20px;
}
.bw-cl-modal .modal-close-btn {
  min-width: 88px;
  padding: 9px 20px;
  font-weight: 600;
  border-radius: 10px;
  background: #fff;
  border: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient-red-blue);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #475569;
  transition: all .18s;
}
.bw-cl-modal .modal-close-btn:hover {
  color: #4f46e5;
  background-image: linear-gradient(#f5f3ff, #fdf2f8), var(--gradient-red-blue);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.12);
}

/* ========== 详情内容 ========== */
.detail-section { margin-bottom: 18px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-label { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.detail-value { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }

.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}
.empty-tip .icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-tip p { font-size: 14px; }

/* Toast */
.toast-box {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.62);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  animation: slideDown .25s ease-out;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 日志内容显示 */
.diary-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
  transition: all .15s;
}
.diary-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.diary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.diary-date { font-weight: 600; font-size: 15px; }
.diary-author { color: var(--text-sub); font-size: 13px; }
.diary-section { margin-bottom: 10px; }
.diary-section:last-child { margin-bottom: 0; }
.diary-section-label { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; font-weight: 500; }
.diary-section-value { font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; color: #334155; }

/* 打卡进度样式 */
.task-timeline { border-left: 2px solid var(--border); padding-left: 16px; margin-top: 6px; }
.task-item { margin-bottom: 16px; position: relative; }
.task-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
}
.task-item.overdue::before { background: var(--danger); }
.task-item.near::before { background: var(--orange); }
.task-item.doing::before { background: var(--primary); }
.task-item.done::before { background: var(--success); }

/* ========== 响应式 ========== */
@media (max-width: 992px) {
  .col-3 { flex: 0 0 50%; max-width: 50%; }
  .col-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask.show { display: block; }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .page-content { padding: 16px; }
  .card { padding: 16px; border-radius: 10px; }
  .col-3, .col-4, .col-6 { flex: 0 0 100%; max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; }
  .stat-info .num { font-size: 22px; }
  .filter-bar { padding: 10px; }
  .filter-bar .form-group { min-width: 100%; }
  .card-header .actions { width: 100%; }
  .card-header .actions .btn { flex: 1; }
  .modal { max-height: 95vh; }
  .modal-body { padding: 16px; }
  table.data-table th, table.data-table td { padding: 10px 8px; font-size: 12px; }
  .topbar h3 { font-size: 16px; }
  .tb-item span.label { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn { padding: 8px 14px; font-size: 13px; }
}

/* ========== BilzatWork SaaS / Team OS ========== */
.bw-auth .logo-icon {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.bw-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
  background: #eef2f7;
}
.bw-tab {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-weight: 650;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.bw-tab.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.08);
}
.bw-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
}
.bw-teams-list-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.bw-teams-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.bw-tile {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.bw-tile:hover {
  border-color: rgba(43, 155, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--elevated);
}
.bw-tile h4 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bw-tag-soft {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  line-height: 1.4;
}
.bw-tag-soft.is-org {
  background: #ecfdf5;
  color: #047857;
}
.bw-tile p {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  min-height: 38px;
  margin-bottom: 10px;
}
.bw-tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
}
.bw-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.bw-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.bw-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--gradient-red-blue);
}
.bw-progress span {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  min-width: 40px;
  text-align: right;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.tag-gray { background: #f1f5f9; color: #64748b; }

/* ========== SaaS Homepage ========== */
.bw-home-body { background: #0b1220; }
.bw-home {
  min-height: 100vh;
  color: #e8eef8;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(700px 380px at 90% 8%, rgba(14,165,233,.18), transparent 55%),
    #0b1220;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.bw-home a { color: inherit; }
.bw-wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.bw-home-nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.bw-home-nav-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.bw-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.bw-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2563eb; color: rgba(226, 232, 240, 0.62); font-weight: 700; font-size: 13px;
}
.bw-home-nav nav { display: flex; gap: 18px; color: #94a3b8; font-size: 14px; }
.bw-home-nav nav a:hover { color: rgba(226, 232, 240, 0.62); }
.bw-home-actions { display: flex; gap: 8px; }
.bw-hero { padding: 72px 0 56px; }
.bw-hero-inner { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.bw-kicker {
  letter-spacing: .14em; font-size: 12px; color: #7dd3fc; margin-bottom: 14px; font-weight: 600;
}
.bw-hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700; margin-bottom: 16px;
}
.bw-hero h1 em { font-style: normal; color: #93c5fd; }
.bw-lead {
  max-width: 640px; color: #94a3b8; font-size: 16px; line-height: 1.7; margin-bottom: 28px;
}
.bw-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.bw-hero-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px;
}
.bw-hero-metrics div {
  border: 1px solid rgba(148,163,184,.2); border-radius: 12px; padding: 14px 16px; background: rgba(15,23,42,.55);
}
.bw-hero-metrics b { display: block; font-size: 22px; color: rgba(226, 232, 240, 0.62); margin-bottom: 4px; }
.bw-hero-metrics span { font-size: 12px; color: #94a3b8; }
.bw-section { padding: 56px 0; }
.bw-section-alt { background: rgba(15,23,42,.55); border-top: 1px solid rgba(148,163,184,.12); border-bottom: 1px solid rgba(148,163,184,.12); }
.bw-section h2 { font-size: 28px; margin-bottom: 8px; }
.bw-sec-sub { color: #94a3b8; margin-bottom: 28px; max-width: 640px; }
.bw-cap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.bw-cap-grid article {
  border: 1px solid rgba(148,163,184,.18); border-radius: 14px; padding: 18px;
  background: rgba(11,18,32,.65);
}
.bw-cap-grid h3 { font-size: 16px; margin-bottom: 8px; color: #93c5fd; }
.bw-cap-grid p { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.bw-bench-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(148,163,184,.18); }
.bw-bench { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(11,18,32,.7); }
.bw-bench th, .bw-bench td {
  padding: 12px 14px; text-align: center; border-bottom: 1px solid rgba(148,163,184,.12); font-size: 13px;
}
.bw-bench th:first-child, .bw-bench td:first-child { text-align: left; color: #cbd5e1; }
.bw-bench thead th { background: rgba(37,99,235,.15); color: #e2e8f0; font-weight: 600; }
.bw-bench .hl { background: rgba(37,99,235,.12); color: #93c5fd; font-weight: 700; }
.bw-legend { margin-top: 12px; font-size: 12px; color: #64748b; }
.bw-saas-row {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; align-items: center;
}
.bw-saas-list { list-style: none; color: #cbd5e1; font-size: 14px; line-height: 1.9; }
.bw-saas-list li::before { content: "✓ "; color: #60a5fa; font-weight: 700; }
.bw-saas-list code { color: #93c5fd; }
.bw-saas-card {
  border: 1px solid rgba(96,165,250,.35); border-radius: 16px; padding: 24px;
  background: linear-gradient(180deg, rgba(37,99,235,.2), rgba(11,18,32,.9));
}
.bw-plan-name { font-size: 13px; letter-spacing: .08em; color: #93c5fd; margin-bottom: 6px; }
.bw-plan-price { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.bw-saas-card p { color: #94a3b8; font-size: 13px; margin-bottom: 18px; }
.bw-home-foot {
  border-top: 1px solid rgba(148,163,184,.15); padding: 22px 0 36px; color: #64748b; font-size: 13px;
}
.bw-home-foot .bw-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bw-home-foot a { color: #93c5fd; }
.bw-home .btn-outline {
  background: transparent; border-color: rgba(148,163,184,.35); color: #e2e8f0;
}
.bw-home .btn-outline:hover { border-color: #93c5fd; color: rgba(226, 232, 240, 0.62); background: rgba(37,99,235,.15); }
@media (max-width: 860px) {
  .bw-home-nav nav { display: none; }
  .bw-saas-row { grid-template-columns: 1fr; }
  .bw-hero-metrics { grid-template-columns: 1fr; max-width: 280px; }
}



/* ===== 团队聊天 ===== */
.bw-chat-card .card-header { align-items: flex-end; }
.bw-chat-hint { font-size: 12px; color: var(--text-sub); font-weight: 400; }
.bw-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 14px;
  align-items: stretch;
}
.bw-chat-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bw-chat-wrap { display: flex; flex-direction: column; gap: 12px; }
.bw-chat-peer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 13px;
}
.bw-chat-peer-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bw-chat-list {
  height: min(58vh, 520px); overflow-y: auto; padding: 14px 12px;
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 12px;
}
.bw-chat-empty { text-align: center; color: var(--text-sub); padding: 48px 12px; font-size: 14px; }
.bw-chat-row { display: flex; flex-direction: column; margin-bottom: 14px; max-width: 78%; }
.bw-chat-row.mine { margin-left: auto; align-items: flex-end; }
.bw-chat-row.other { margin-right: auto; align-items: flex-start; }
.bw-chat-meta {
  font-size: 12px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center;
}
.bw-chat-author {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font: inherit; font-weight: 650; color: #0f172a; line-height: 1.2;
}
.bw-chat-author:disabled { cursor: default; color: #1e40af; }
.bw-chat-author:not([disabled]):hover { color: #2563eb; text-decoration: underline; }
.bw-chat-time { color: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; }
.bw-chat-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #2563eb; color: rgba(226, 232, 240, 0.62); font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.bw-chat-av.sm { width: 22px; height: 22px; font-size: 11px; }
.bw-chat-row.other .bw-chat-av { background: #0f766e; }
.bw-chat-bubble {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow); word-break: break-word;
}
.bw-chat-row.mine .bw-chat-bubble { background: #eff6ff; border-color: #bfdbfe; }
.bw-chat-text { font-size: 14px; line-height: 1.55; color: var(--text); }
.bw-chat-caption { margin-top: 6px; font-size: 13px; color: #475569; }
.bw-chat-img { max-width: min(280px, 100%); max-height: 240px; border-radius: 8px; display: block; }
.bw-chat-video { max-width: min(320px, 100%); max-height: 240px; border-radius: 8px; background: #0f172a; display: block; }
.bw-chat-voice { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.bw-chat-voice > span { font-size: 12px; color: var(--text-sub); }
.bw-chat-audio { width: min(240px, 100%); height: 36px; }
#bw-chat-voice.recording { background: #fee2e2; border-color: #f87171; color: #b91c1c; }
.bw-chat-rec-tip { font-size: 12px; color: #dc2626; align-self: center; }
.bw-chat-members {
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.bw-chat-members-title {
  padding: 10px 12px; font-size: 13px; font-weight: 650; color: #0f172a;
  border-bottom: 1px solid var(--border); background: #f8fafc;
}
.bw-chat-members-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: min(58vh, 520px); }
.bw-chat-members-empty { color: var(--text-sub); font-size: 12px; padding: 16px 8px; text-align: center; }
.bw-chat-member {
  display: flex; gap: 10px; align-items: center; width: 100%;
  border: 1px solid transparent; background: transparent; border-radius: 10px;
  padding: 8px; text-align: left; cursor: pointer; color: inherit;
}
.bw-chat-member:hover:not(:disabled) { background: #f1f5f9; border-color: #e2e8f0; }
.bw-chat-member.is-active { background: #eff6ff; border-color: #93c5fd; }
.bw-chat-member.is-me { opacity: .72; cursor: default; }
.bw-chat-member-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-chat-member-name { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-chat-member-role { font-size: 11px; color: #64748b; }
.btn-xs { padding: 2px 8px; font-size: 12px; line-height: 1.4; border-radius: 6px; }

/* ===== 实时通话：手机风格悬浮窗（视频永远最上层） ===== */
.bw-call-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: transparent;
  pointer-events: none;
  padding: 0;
}
.bw-call-panel,
.bw-call-panel-phone {
  pointer-events: auto;
  position: fixed;
  top: 56px;
  right: 12px;
  z-index: 10051;
  width: min(340px, calc(100vw - 20px));
  max-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0b1220;
  color: #e2e8f0;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  border: 1px solid #1f2937;
}
.bw-call-panel-wide { width: min(360px, calc(100vw - 20px)); }
.bw-call-topbar {
  text-align: center;
  padding: 12px 14px 8px;
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  flex: 0 0 auto;
}
.bw-call-timer {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.bw-call-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
}
.bw-call-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bw-call-status {
  font-size: 12px;
  color: #93c5fd;
  margin-top: 4px;
}
.bw-call-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #000;
  min-height: 300px;
  flex: 1 1 auto;
  padding: 0 6px 6px;
  position: relative;
}
.bw-call-stage[hidden] { display: none !important; }
.bw-call-main,
.bw-call-primary {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}
.bw-call-main > .bw-call-tile.is-primary,
.bw-call-main > .bw-call-primary-ph,
.bw-call-primary > .bw-call-tile.is-primary,
.bw-call-primary > .bw-call-primary-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 14px;
  flex: none;
}
.bw-call-primary-ph {
  display: grid;
  place-items: center;
  gap: 6px;
  background: #111827;
  border: 1px solid #1f2937;
}
.bw-call-ph-icon { font-size: 28px; opacity: .7; }
/* 「我」与其他成员同在缩略图条，不盖主画面 */
.bw-call-thumbs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 88px;
  overflow-x: auto;
  padding: 0 0 2px;
}
.bw-call-remotes {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 0;
  overflow-x: auto;
}
.bw-call-remotes:empty { display: none; }
.bw-call-tile {
  position: relative;
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  min-height: 88px;
  aspect-ratio: 1;
}
.bw-call-tile.local {
  border-color: #60a5fa;
  background: #111827;
}
.bw-call-local-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  z-index: 1;
  pointer-events: none;
}
.bw-call-tile.local.has-video .bw-call-local-ph,
.bw-call-tile.local.cam-on .bw-call-local-ph {
  display: none;
}
.bw-call-tile.local video {
  position: relative;
  z-index: 0;
}
.bw-call-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}
.bw-call-tile-label {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(15,23,42,.72); color: #e2e8f0;
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}
.bw-call-tile.local { border-color: #334155; }
.bw-call-peers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  padding: 8px 12px 0;
  justify-content: center;
}
.bw-call-chip {
  background: #1e293b; border: 1px solid #334155; border-radius: 999px;
  padding: 5px 10px; font-size: 11px;
}
.bw-call-chip.me { border-color: #2563eb; color: #93c5fd; }
.bw-call-remote-audio { position: absolute; width: 0; height: 0; opacity: 0; }
.bw-call-chat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin: 8px 10px 0;
  padding: 8px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid #334155;
  flex: 0 0 auto;
}
.bw-call-emoji-wrap { position: relative; }
.bw-call-emoji-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.bw-call-emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: 220px;
  max-height: 160px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.bw-call-emoji-panel[hidden] { display: none !important; }
.bw-call-emoji-item {
  border: 0;
  background: transparent;
  height: 34px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}
.bw-call-emoji-item:hover { background: #1e293b; }
.bw-call-chat-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 13px;
  outline: none;
}
.bw-call-chat-input::placeholder { color: #94a3b8; }
.bw-call-chat-send {
  border: 0;
  background: #2563eb;
  color: rgba(226, 232, 240, 0.62);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.bw-call-dock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  flex: 0 0 auto;
}
.bw-call-ctrl {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .12s ease, background .12s ease;
}
.bw-call-ctrl:hover { transform: translateY(-1px); }
.bw-call-ctrl.is-off {
  background: #334155;
  color: #e2e8f0;
}
.bw-call-ctrl-hang {
  background: #ef4444;
  color: rgba(226, 232, 240, 0.62);
}
.bw-call-ctrl-hang:hover { background: #dc2626; }
.bw-call-ctrl-ico {
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
}
.bw-call-ctrl-hang .bw-call-ctrl-ico {
  display: inline-block;
  transform: rotate(135deg);
  font-size: 22px;
}
/* 通话中：聊天输入不要盖住视频窗 */
body.bw-in-call .bw-chat-compose {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px;
}
body.bw-in-call .bw-chat-list {
  scroll-margin-bottom: 120px;
}
@media (max-width: 720px) {
  .bw-call-panel,
  .bw-call-panel-phone,
  .bw-call-panel-wide {
    top: auto;
    bottom: 8px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: min(78vh, 640px);
  }
}
.bw-chat-compose { display: grid; gap: 8px; }
.bw-chat-compose-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.bw-emoji-wrap { position: relative; }
.bw-emoji-toggle {
  min-width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}
.bw-emoji-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(320px, 78vw);
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 10px;
}
.bw-emoji-group + .bw-emoji-group { margin-top: 10px; }
.bw-emoji-group-title {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}
.bw-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.bw-emoji-item {
  border: 0;
  background: transparent;
  border-radius: 8px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.bw-emoji-item:hover { background: #f1f5f9; }
.bw-chat-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.bw-chat-file-btn { margin: 0; }

/* ===== 来电响铃 ===== */
.bw-ring-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15, 23, 42, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bw-ring-panel {
  position: relative;
  width: min(380px, 100%);
  background: linear-gradient(160deg, #0f172a, #1e293b);
  color: #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  overflow: hidden;
}
.bw-ring-pulse {
  position: absolute; left: 50%; top: 36px; width: 72px; height: 72px;
  margin-left: -36px; border-radius: 50%;
  background: rgba(34, 197, 94, .25);
  animation: bw-ring-pulse 1.4s ease-out infinite;
}
@keyframes bw-ring-pulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.8); opacity: 0; }
}
.bw-ring-title { position: relative; font-size: 13px; color: #86efac; letter-spacing: .04em; margin-bottom: 10px; }
.bw-ring-from { position: relative; font-size: 24px; font-weight: 750; margin-bottom: 6px; }
.bw-ring-sub { position: relative; font-size: 13px; color: #94a3b8; margin-bottom: 22px; }
.bw-ring-actions { position: relative; display: flex; gap: 12px; justify-content: center; }
.bw-ring-actions .btn { min-width: 110px; padding: 10px 16px; font-weight: 600; }
.bw-chat-call-invite { display: grid; gap: 10px; min-width: 180px; }
.bw-chat-call-title { font-size: 14px; font-weight: 650; color: #0f172a; }
.bw-chat-call-wait { font-size: 12px; color: #64748b; }
.bw-chat-row.other .bw-chat-call-invite { }
.bw-chat-call-accept { width: fit-content; }

/* 截图框选（Ctrl+Alt+A） */
.bw-shot-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.bw-shot-stage {
  position: relative;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
  cursor: crosshair;
}
.bw-shot-canvas { display: block; max-width: 100%; vertical-align: top; }
.bw-shot-sel {
  position: absolute;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.55);
  pointer-events: none;
}
.bw-shot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #1f2937;
}
.bw-shot-tip { font-size: 13px; color: #94a3b8; margin-right: 8px; }

@media (max-width: 720px) {
  .bw-chat-layout { grid-template-columns: 1fr; }
  .bw-chat-members { order: -1; }
  .bw-chat-members-list {
    max-height: none; flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding-bottom: 4px;
  }
  .bw-chat-member { min-width: 148px; flex: 0 0 auto; }
  .bw-chat-list { height: 48vh; }
  .bw-chat-row { max-width: 92%; }
  .bw-emoji-grid { grid-template-columns: repeat(7, 1fr); }
  .bw-emoji-panel { width: min(300px, 86vw); }
}

/* ========== 企业老板盯盘（工作台） ========== */
.bw-boss-panel {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: visible;
}
.bw-boss-panel::before { display: none; }
.bw-boss-panel > * { position: relative; z-index: 1; }
.bw-boss-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bw-boss-head-simple {
  align-items: center;
}
.bw-boss-head-simple .bw-boss-badge {
  flex-shrink: 0;
}
.bw-boss-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.bw-boss-link {
  font-size: 12px;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.04);
}
.bw-boss-link:hover { color: var(--primary-dark); background: var(--primary-light); }
.bw-boss-empty { font-size: 12px; color: var(--text-sub); padding: 20px 0; margin: 0; }
.bw-boss-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.bw-boss-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-sub);
}
.bw-boss-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(43, 155, 255, 0.14), rgba(18, 212, 184, 0.12));
  border: 1px solid rgba(43, 155, 255, 0.2);
  font-size: 12px;
  font-weight: 650;
  color: var(--primary-dark);
}
.bw-boss-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.bw-boss-kpi {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.03);
}
.bw-boss-kpi:nth-child(6n+1) { background: linear-gradient(160deg, #e8f4ff, #f8fafc); }
.bw-boss-kpi:nth-child(6n+2) { background: linear-gradient(160deg, #e6fbf6, #f8fafc); }
.bw-boss-kpi:nth-child(6n+3) { background: linear-gradient(160deg, #fff1ec, #f8fafc); }
.bw-boss-kpi:nth-child(6n+4) { background: linear-gradient(160deg, #fff7ed, #f8fafc); }
.bw-boss-kpi:nth-child(6n+5) { background: linear-gradient(160deg, #eff6ff, #f8fafc); }
.bw-boss-kpi:nth-child(6n+6) { background: linear-gradient(160deg, #f0fdf4, #f8fafc); }
.bw-boss-kpi .ico { font-size: 18px; margin-bottom: 6px; opacity: 0.9; }
.bw-boss-kpi .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.bw-boss-kpi .lbl {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-sub);
}
.bw-boss-focus {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.bw-boss-focus-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-sub);
}
.bw-boss-focus-item .ico { font-size: 16px; flex-shrink: 0; }
.bw-boss-focus-item b { font-size: 18px; font-weight: 800; color: var(--text); min-width: 1.2em; }
.bw-boss-focus-item.is-warn { border-color: #fde68a; background: #fffbeb; }
.bw-boss-focus-item.is-warn b { color: #b45309; }
.bw-boss-focus-item.is-danger { border-color: #fecaca; background: #fef2f2; }
.bw-boss-focus-item.is-danger b { color: var(--danger); }
.bw-boss-focus-item.is-info { border-color: #bfdbfe; background: #eff6ff; }
.bw-boss-focus-item.is-info b { color: #2563eb; }
.bw-boss-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.bw-boss-section-head h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.bw-boss-section-head span {
  font-size: 12px;
  color: var(--text-sub);
}
.bw-chart-team-prog { min-height: auto; }
.bw-team-prog-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.bw-team-prog-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 2fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.bw-team-prog-row:hover { background: var(--primary-light); }
.bw-team-prog-name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-team-prog-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.bw-team-prog-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #3b82f6);
  min-width: 2px;
}
.bw-team-prog-meta { color: var(--text-sub); font-size: 11px; white-space: nowrap; }
.bw-boss-charts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.bw-chart-card {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  min-height: 200px;
}
.bw-chart-card h5 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.bw-pie-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bw-pie {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 6px #f1f5f9;
}
.bw-pie-sm { width: 72px; height: 72px; }
.bw-chart-wide { grid-column: 1 / -1; }
.bw-bar-stacked text { fill: #64748b; font-size: 10px; }
.bw-pie-legend {
  list-style: none;
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.7;
}
.bw-pie-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.bw-bar-chart { width: 100%; height: 120px; }
.bw-bar-chart text { fill: #64748b; font-size: 10px; }
.bw-radar { width: 100%; height: 130px; }
.bw-radar polygon { fill: rgba(99, 102, 241, 0.15); stroke: var(--primary); stroke-width: 2; }
.bw-radar line { stroke: #e2e8f0; stroke-width: 1; }
.bw-radar text { fill: #64748b; font-size: 9px; }
.bw-week-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 8px;
}
.bw-week-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.bw-week-bar .bar {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary), #2563eb);
  min-height: 4px;
}
.bw-week-bar span {
  font-size: 10px;
  color: var(--text-sub);
}
.bw-week-bar em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-dark);
}
.bw-boss-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 4px;
}
.bw-boss-table-card {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  overflow: hidden;
}
.bw-boss-table-card h5 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}
.bw-boss-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.bw-boss-table-card th,
.bw-boss-table-card td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text);
}
.bw-boss-table-card th { color: var(--text-sub); font-weight: 600; }
.bw-boss-table-card tr:last-child td { border-bottom: none; }
.bw-boss-table-scroll {
  max-height: 220px;
  overflow-x: auto;
  overflow-y: auto;
}
.bw-boss-table-wide { grid-column: 1 / -1; }
.bw-progress-mini {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 4px;
}
.bw-progress-mini i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #3b82f6);
}
@media (max-width: 1200px) {
  .bw-boss-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bw-boss-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-boss-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-chart-wide { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .bw-boss-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bw-boss-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-boss-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-boss-tables { grid-template-columns: 1fr; }
  .bw-chart-wide { grid-column: 1 / -1; }
  .bw-boss-table-wide { grid-column: 1; }
}
@media (max-width: 640px) {
  .bw-boss-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-boss-focus { grid-template-columns: 1fr; }
  .bw-boss-charts { grid-template-columns: 1fr; }
  .bw-chart-wide { grid-column: 1 / -1; }
  .bw-team-prog-row { grid-template-columns: 1fr; gap: 4px; }
}

.bw-org-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bw-org-setup-grid-2 {
  grid-template-columns: 1.2fr 0.8fr;
}
@media (max-width: 900px) {
  .bw-org-setup-grid,
  .bw-org-setup-grid-2 {
    grid-template-columns: 1fr;
  }
}
.bw-org-setup-full {
  width: 100%;
  max-width: none;
}
.bw-org-ent-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.bw-org-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
}
.bw-org-field .form-control { width: 100%; }
.label-req {
  color: #dc2626;
  font-weight: 700;
  margin-right: 2px;
}
.bw-org-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}
.bw-org-setup-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.bw-org-setup-card h5 { margin: 0 0 8px; font-size: 15px; }
.bw-org-setup-kyc {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}
.bw-org-personal-cert {
  border-color: rgba(14, 165, 233, 0.28);
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
}
.bw-org-personal-verified {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  line-height: 1.7;
}
.bw-org-personal-done {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
}
.bw-dash-section-hint {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-sub);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.bw-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.bw-role-badge.is-boss { background: #edf3ff; color: #3d68db; border: 1px solid #c7d7f5; }
.bw-role-badge.is-admin { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.bw-role-badge.is-employee { background: #f4f6fa; color: #6b7785; border: 1px solid var(--border); }

.bw-my-org-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.bw-my-org-head h4 { margin: 6px 0 4px; font-size: 20px; }
.bw-my-org-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.bw-org-invite-card .bw-invite-code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.bw-invite-code {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
}
.bw-invite-link-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bw-invite-link-box .form-control { flex: 1; min-width: 220px; font-size: 13px; }

.bw-my-work-strip { margin-top: 16px; }
.bw-my-work-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}
.bw-my-work-stats b { color: var(--text); }
.bw-my-work-stats .warn { color: var(--orange); }
.bw-my-work-stats .ok { color: var(--success); }
.bw-my-work-stats .danger { color: var(--danger); }

.bw-org-gate .empty-tip { padding: 32px 16px; }
.bw-org-quick-card { margin-bottom: 16px; }
.bw-org-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 我的企业 — 紧凑工具条 */
.bw-my-enterprise-one {
  padding: 14px 18px;
  margin-bottom: 16px;
}
.bw-my-enterprise-one.is-with-boss {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  box-shadow: none;
}
.bw-enterprise-dashboard .bw-my-enterprise-one.is-with-boss + .bw-boss-panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}
.bw-my-enterprise-one.is-with-boss + .bw-boss-panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}
.bw-me-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.bw-me-title-wrap h4 {
  margin: 0 0 2px;
  font-size: 18px;
}
.bw-me-title-wrap .hint { margin: 0; font-size: 12px; }
.bw-me-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bw-me-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bw-me-label {
  flex: 0 0 56px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.2;
}
.bw-me-row-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}
.bw-me-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.bw-me-work-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.bw-me-work-stats-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-sub);
  padding: 0;
}
.bw-me-work-stats-row b { color: var(--text); font-weight: 600; }
.bw-me-work-stats-row .warn { color: var(--orange); }
.bw-me-work-stats-row .ok { color: var(--success); }
.bw-me-work-stats-row .danger { color: var(--danger); }
@media (max-width: 720px) {
  .bw-me-label { flex: 0 0 100%; margin-bottom: -4px; }
  .bw-me-row-body { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 创建团队 — 多选同事 */
.bw-colleague-pick {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafbff;
}
.bw-colleague-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.bw-colleague-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bw-colleague-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.bw-colleague-item:hover { background: rgba(99,102,241,0.06); }
.bw-colleague-item .hint { margin-left: auto; font-size: 11px; }

/* 成员管理页 */
.bw-org-page {
  width: 100%;
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.bw-org-page.is-compact {
  flex: 0 1 auto;
  max-width: none;
  width: 100%;
}
.bw-org-head-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 18px 20px;
  width: 100%;
}
.bw-org-head-main { flex: 1; min-width: 0; }
.bw-org-head-card h4 { margin: 0 0 6px; font-size: 18px; }
.bw-org-head-stats {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}
.bw-org-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  width: 100%;
}
.bw-org-grid-full { width: 100%; }
.bw-org-inner {
  margin: 0;
  width: 100%;
}
.bw-org-page .table-wrap {
  overflow-x: auto;
}
.bw-org-page .data-table {
  width: 100%;
}
.bw-org-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.bw-leave-org { color: #dc2626 !important; border-color: #fecaca !important; }
.bw-leave-org:hover { background: #fef2f2 !important; }

@media (max-width: 640px) {
  .bw-org-setup-grid { grid-template-columns: 1fr; }
}

/* ========== 任务看板 ========== */
.bw-view-toggle { display: inline-flex; gap: 4px; }
.bw-kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  min-height: 280px;
}
.bw-kanban-col {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.bw-kanban-col-head {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bw-kanban-col-head .cnt {
  margin-left: auto;
  font-size: 11px;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
}
.bw-kanban-col-head .dot { width: 8px; height: 8px; border-radius: 50%; }
.bw-kanban-col-head .dot.wait { background: #94a3b8; }
.bw-kanban-col-head .dot.doing { background: #38bdf8; }
.bw-kanban-col-head .dot.overdue { background: #f97316; }
.bw-kanban-col-head .dot.done { background: #22c55e; }
.bw-kanban-col-body { padding: 8px; flex: 1; overflow-y: auto; max-height: 420px; }
.bw-kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.bw-kanban-card.is-overdue { border-color: #fecaca; background: #fff7f7; }
.bw-kanban-card-title { font-size: 13px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; }
.bw-kanban-card-desc { font-size: 12px; color: var(--text-sub); margin-bottom: 6px; line-height: 1.4; }
.bw-kanban-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--text-sub); margin-bottom: 8px; }
.bw-kanban-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bw-kanban-empty { font-size: 12px; color: var(--text-sub); text-align: center; padding: 16px 8px; }

/* 老板看板 — 旧版焦点芯片（保留兼容） */
.bw-focus-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-decoration: none;
  color: #e2e8f0;
  transition: background .2s;
}
.bw-focus-chip:hover { background: rgba(56, 189, 248, 0.2); }
.bw-focus-chip .n { font-size: 20px; font-weight: 800; line-height: 1.1; }
.bw-focus-chip .l { font-size: 11px; opacity: 0.85; margin-top: 4px; }
.bw-focus-chip.is-warn { border-color: rgba(251, 191, 36, 0.5); }
.bw-focus-chip.is-warn .n { color: #fcd34d; }
.bw-focus-chip.is-danger { border-color: rgba(248, 113, 113, 0.55); }
.bw-focus-chip.is-danger .n { color: #fca5a5; }
.bw-boss-export-btn {
  color: var(--primary) !important;
  border-color: var(--border) !important;
  background: #fff !important;
}
.bw-drill-row:hover { background: var(--primary-light); }
.bw-setup-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.bw-setup-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cbd5e1;
}
.bw-setup-dot.on { background: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }
.bw-setup-dot.done { background: #22c55e; }

/* ========== 全站桌面 Emoji 桌宠 ========== */
#bw-desktop-lion-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: visible;
}
.bw-desktop-lion {
  position: fixed;
  width: 72px;
  height: 72px;
  pointer-events: auto;
  user-select: none;
  z-index: 10000;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-desktop-lion.is-dragging {
  cursor: grabbing;
}
.bw-desktop-lion.is-bounce .bw-emoji-face {
  animation: bw-lion-pet-bounce 0.45s ease;
}
.bw-desktop-lion.is-default-pos {
  right: 16px;
  bottom: 16px;
  left: auto;
  top: auto;
}
.bw-desktop-lion .bw-emoji-face {
  font-size: 56px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.15));
  animation: bw-emoji-idle 2.8s ease-in-out infinite;
}
.bw-desktop-lion[data-state="sleep"] .bw-emoji-face { animation: bw-emoji-sleep 4s ease-in-out infinite; }
.bw-desktop-lion[data-state="yawn"] .bw-emoji-face { animation: bw-emoji-yawn 1.4s ease-in-out infinite; }
.bw-desktop-lion[data-state="cry"] .bw-emoji-face,
.bw-desktop-lion[data-state="happy"] .bw-emoji-face { animation: bw-emoji-shake 0.35s ease-in-out infinite; }
.bw-desktop-lion[data-state="dance"] .bw-emoji-face { animation: bw-emoji-dance 0.55s ease-in-out infinite; }
.bw-desktop-lion[data-state="eat"] .bw-emoji-face { animation: bw-emoji-eat 0.6s ease-in-out infinite; }
.bw-desktop-lion[data-state="relax"] .bw-emoji-face,
.bw-desktop-lion[data-state="think"] .bw-emoji-face { animation: bw-emoji-relax 3s ease-in-out infinite; }
.bw-desktop-lion[data-state="walk"] .bw-emoji-face { animation: bw-emoji-walk 0.8s ease-in-out infinite; }
@keyframes bw-emoji-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes bw-emoji-sleep {
  0%, 100% { transform: translateY(2px) rotate(6deg); }
  50% { transform: translateY(4px) rotate(10deg); }
}
@keyframes bw-emoji-yawn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08) translateY(-2px); }
}
@keyframes bw-emoji-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes bw-emoji-dance {
  0%, 100% { transform: rotate(-10deg) translateY(-2px); }
  50% { transform: rotate(10deg) translateY(-6px); }
}
@keyframes bw-emoji-eat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes bw-emoji-relax {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05) translateY(-2px); }
}
@keyframes bw-emoji-walk {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@keyframes bw-lion-pet-bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.15) translateY(-4px); }
}
.bw-desktop-lion-close { display: none !important; }

/* ========== 前台协作小狮子（瑞星风格） ========== */
.bw-mascot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  user-select: none;
}
.bw-mascot-bubble {
  pointer-events: none;
  max-width: 160px;
  margin-bottom: 6px;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
  animation: bw-mascot-bob 3s ease-in-out infinite;
}
@keyframes bw-mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.bw-mascot-team {
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 8px 6px;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}
.bw-mascot-team-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.bw-mascot-team-head .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: bw-admin-pulse 2s ease-in-out infinite;
}
.bw-mascot-team-people {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: flex-end;
  min-height: 36px;
}
.bw-mascot-team-people span {
  font-size: 22px;
  line-height: 1;
  animation: bw-admin-float 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}
.bw-mascot-hit {
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}
.bw-mascot-hit:hover { transform: scale(1.05); }
.bw-mascot-hit:active { transform: scale(0.96); }
.bw-mascot-caption {
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  pointer-events: none;
}

/* 小狮子本体 */
.bw-lion {
  position: relative;
  width: 88px;
  height: 96px;
  animation: bw-lion-idle 2.8s ease-in-out infinite;
}
@keyframes bw-lion-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1deg); }
}
.bw-lion-mane {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fb923c, #ea580c 55%, #c2410c);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.15);
}
.bw-lion-face {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.08);
}
.bw-lion-eyes {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.bw-lion-eye {
  width: 10px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid #422006;
  position: relative;
  overflow: hidden;
}
.bw-lion-eye .pupil {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #1c1917;
  border-radius: 50%;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
}
.bw-lion-nose {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 10px;
  height: 8px;
  margin-left: -5px;
  background: #422006;
  border-radius: 40% 40% 50% 50%;
}
.bw-lion-mouth {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 14px;
  height: 8px;
  margin-left: -7px;
  border-bottom: 2.5px solid #422006;
  border-radius: 0 0 50% 50%;
  transition: all 0.25s ease;
}
.bw-lion-blush {
  position: absolute;
  top: 30px;
  width: 8px;
  height: 5px;
  background: rgba(251, 113, 133, 0.35);
  border-radius: 50%;
}
.bw-lion-blush.left { left: 6px; }
.bw-lion-blush.right { right: 6px; }
.bw-lion-paws {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.bw-lion-paws span {
  width: 16px;
  height: 12px;
  background: #facc15;
  border: 2px solid #ca8a04;
  border-radius: 40% 40% 50% 50%;
}
.bw-lion-zzz {
  position: absolute;
  top: -4px;
  right: -8px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-weight: 800;
  color: #6366f1;
  font-size: 11px;
  line-height: 1;
}
.bw-lion-zzz span:nth-child(1) { font-size: 14px; animation: bw-lion-z 1.8s ease-in-out infinite; }
.bw-lion-zzz span:nth-child(2) { font-size: 11px; animation: bw-lion-z 1.8s ease-in-out infinite 0.3s; }
.bw-lion-zzz span:nth-child(3) { font-size: 9px; animation: bw-lion-z 1.8s ease-in-out infinite 0.6s; }
@keyframes bw-lion-z {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}
.bw-lion-tears {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  pointer-events: none;
}
.bw-lion-tears .t {
  position: absolute;
  width: 6px;
  height: 10px;
  background: #38bdf8;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  opacity: 0;
}
.bw-lion-tears .t.left { left: 14px; }
.bw-lion-tears .t.right { right: 14px; }

/* 状态：睡觉 */
.bw-mascot[data-state="sleep"] .bw-lion { animation: bw-lion-sleep 4s ease-in-out infinite; }
@keyframes bw-lion-sleep {
  0%, 100% { transform: translateY(2px) rotate(8deg); }
  50% { transform: translateY(4px) rotate(10deg); }
}
.bw-mascot[data-state="sleep"] .bw-lion-eye {
  height: 3px;
  border-radius: 2px;
  background: #422006;
  border-color: #422006;
}
.bw-mascot[data-state="sleep"] .bw-lion-eye .pupil { display: none; }
.bw-mascot[data-state="sleep"] .bw-lion-zzz { display: flex; }
.bw-mascot[data-state="sleep"] .bw-lion-mouth {
  width: 10px;
  height: 4px;
  border: none;
  background: #422006;
  border-radius: 50%;
}

/* 状态：打哈欠 */
.bw-mascot[data-state="yawn"] .bw-lion { animation: bw-lion-yawn 1.2s ease-in-out infinite; }
@keyframes bw-lion-yawn {
  0%, 100% { transform: translateY(0); }
  40%, 60% { transform: translateY(-2px) scale(1.02); }
}
.bw-mascot[data-state="yawn"] .bw-lion-mouth {
  width: 18px;
  height: 14px;
  margin-left: -9px;
  border: 2.5px solid #422006;
  border-radius: 50%;
  background: #fca5a5;
  animation: bw-lion-mouth-yawn 1.2s ease-in-out infinite;
}
@keyframes bw-lion-mouth-yawn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.bw-mascot[data-state="yawn"] .bw-lion-eye .pupil { top: 70%; }

/* 状态：哭 */
.bw-mascot[data-state="cry"] .bw-lion { animation: bw-lion-cry 0.35s ease-in-out infinite; }
@keyframes bw-lion-cry {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(1px) rotate(-2deg); }
  75% { transform: translateY(1px) rotate(2deg); }
}
.bw-mascot[data-state="cry"] .bw-lion-mouth {
  width: 16px;
  height: 10px;
  margin-left: -8px;
  border: none;
  border-top: 2.5px solid #422006;
  border-radius: 50% 50% 0 0;
  background: transparent;
}
.bw-mascot[data-state="cry"] .bw-lion-tears .t {
  opacity: 1;
  animation: bw-lion-tear 0.6s ease-in infinite;
}
.bw-mascot[data-state="cry"] .bw-lion-tears .t.right { animation-delay: 0.2s; }
@keyframes bw-lion-tear {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(14px) scale(0.6); opacity: 0; }
}

@media (max-width: 768px) {
  .bw-mascot {
    right: 10px;
    bottom: 10px;
    width: 140px;
    transform: scale(0.88);
    transform-origin: bottom right;
  }
}

/* ========== Bento Soft 工作台收尾（强制浅色侧栏 + 柔和氛围） ========== */
.layout .sidebar {
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--text) !important;
  border-right: 1px solid var(--border-soft);
  box-shadow: 6px 0 28px rgba(30, 41, 59, 0.05);
}
.layout .sidebar-logo,
.layout .sidebar-user,
.layout .sidebar-version {
  background: transparent !important;
  color: var(--text);
}
.layout .sidebar-logo h2,
.layout .sidebar-user .user-info strong { color: var(--text) !important; }
.layout .sidebar-logo p,
.layout .sidebar-user .user-info span,
.layout .nav-section-label { color: var(--text-sub) !important; }
.layout .main-content {
  background: var(--gradient-page-bg);
}
.layout .topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
}
.page-content {
  padding: 24px 28px;
}
.btn {
  border-radius: var(--radius-sm);
}
.btn-primary {
  background: var(--gradient-red-blue);
  box-shadow: 0 6px 16px rgba(43, 155, 255, 0.28);
}
.page-loaded .btn-primary {
  background: var(--gradient-red-blue);
}
.bw-boss-panel {
  border-radius: var(--radius-lg);
  box-shadow: var(--elevated);
  border-color: var(--border-soft);
}

/* ===== Collab: Kanban / OKR / Drive / Report / Brief ===== */
.bw-collab-loading { padding: 40px; text-align: center; color: var(--text-sub); }
.bw-pkb-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.bw-pkb-tabs span { margin-right:14px; color:var(--text-sub); font-size:14px; }
.bw-pkb-tabs .is-active { color:#2563eb; font-weight:600; border-bottom:2px solid #2563eb; padding-bottom:4px; }
.bw-pkb-actions { display:flex; gap:8px; align-items:center; }
.bw-pkb-search { max-width:240px; }
.bw-pkb-board { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; min-height:420px; }
.bw-pkb-col { flex:0 0 260px; background:#f8fafc; border-radius:10px; display:flex; flex-direction:column; max-height:70vh; }
.bw-pkb-col-head { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-top:3px solid var(--col,#94a3b8); font-weight:600; font-size:13px; background:#fff; border-radius:10px 10px 0 0; }
.bw-pkb-col-head em { font-style:normal; color:#94a3b8; font-size:12px; font-weight:500; }
.bw-pkb-col-body { padding:10px; overflow-y:auto; flex:1; }
.bw-pkb-col-body.is-over { outline:2px dashed #2563eb; background:#eff6ff; }
.bw-pkb-card { background:#fff; border:1px solid #e2e8f0; border-radius:8px; padding:10px; margin-bottom:10px; cursor:grab; box-shadow:0 1px 2px rgba(15,23,42,.04); }
.bw-pkb-card.is-dragging { opacity:.55; }
.bw-pkb-card-title { font-size:13px; font-weight:600; line-height:1.4; margin-bottom:6px; }
.bw-pkb-card-status { font-size:12px; margin-bottom:6px; }
.bw-pkb-card-dates { font-size:11px; color:#64748b; line-height:1.55; }
.bw-pkb-card-dates .is-late { color:#dc2626; font-weight:600; }
.bw-pkb-card-foot { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.bw-pkb-avatar { display:inline-flex; width:24px; height:24px; border-radius:50%; background:#38bdf8; color:#fff; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.bw-pkb-add, .bw-pkb-empty { width:100%; border:none; background:transparent; color:#64748b; font-size:12px; padding:8px; text-align:left; cursor:pointer; }
.bw-badge { display:inline-block; font-size:10px; padding:2px 6px; border-radius:3px; background:#e2e8f0; }
.bw-badge.is-danger { background:#fecaca; color:#b91c1c; }
.bw-badge.is-info { background:#bfdbfe; color:#1d4ed8; }
.bw-badge.is-ok { background:#bbf7d0; color:#15803d; }
.bw-badge.is-warn { background:#fde68a; color:#b45309; }

/* ---- OKR dual-pane (Worktile-like) ---- */
.bw-okr2 { display:flex; min-height:520px; background:#f5f7fa; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; }
.bw-okr2-side { width:200px; flex-shrink:0; background:#fff; border-right:1px solid #eef0f3; padding:14px 10px; }
.bw-okr2-side-title { font-weight:700; font-size:15px; color:#1f2937; padding:4px 10px 12px; }
.bw-okr2-nav { display:flex; flex-direction:column; gap:2px; }
.bw-okr2-nav button { border:none; background:transparent; text-align:left; padding:9px 12px; border-radius:6px; font-size:13px; color:#374151; cursor:pointer; }
.bw-okr2-nav button:hover { background:#f3f4f6; }
.bw-okr2-nav button.is-active { background:#e8f7f5; color:#0d9488; font-weight:600; }
.bw-okr2-nav.is-sub button { color:#6b7280; font-size:12px; padding:7px 12px 7px 18px; }
.bw-okr2-sec { margin:14px 10px 6px; font-size:11px; color:#9ca3af; letter-spacing:.04em; }
.bw-okr2-main { flex:1; min-width:0; display:flex; flex-direction:column; background:#f5f7fa; }
.bw-okr2-top { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 18px 8px; background:#fff; border-bottom:1px solid #eef0f3; }
.bw-okr2-crumb { font-size:13px; color:#9ca3af; display:flex; align-items:center; gap:6px; }
.bw-okr2-crumb b { color:#111827; font-weight:600; }
.bw-okr2-crumb i { font-style:normal; color:#d1d5db; }
.bw-okr2-top-actions { display:flex; gap:8px; align-items:center; }
.bw-okr2-top-actions select { width:auto; min-width:110px; height:32px; font-size:13px; }
.bw-okr2-toolbar { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 18px; background:#fff; border-bottom:1px solid #eef0f3; }
.bw-okr2-filters { display:flex; gap:4px; }
.bw-okr2-filters button { border:1px solid #e5e7eb; background:#fff; padding:6px 12px; border-radius:4px; font-size:12px; color:#4b5563; cursor:pointer; }
.bw-okr2-filters button.is-active { border-color:#14b8a6; color:#0d9488; background:#f0fdfa; }
.bw-okr2-zoom { display:flex; gap:4px; }
.bw-okr2-zoom button { border:1px solid #e5e7eb; background:#fff; width:30px; height:28px; border-radius:4px; cursor:pointer; font-size:12px; color:#4b5563; }
.bw-okr2-zoom button:last-child { width:auto; padding:0 10px; }
.bw-okr2-canvas-wrap { flex:1; overflow:auto; padding:20px 12px 40px; position:relative; }
.bw-okr2-canvas { position:relative; transform:scale(var(--z,1)); transform-origin:top center; transition:transform .15s; min-height:360px; }
.bw-okr2-svg { position:absolute; left:0; top:0; pointer-events:none; z-index:0; overflow:visible; }
.bw-okr2-tree { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:0; }
.bw-okr2-node { display:flex; flex-direction:column; align-items:center; }
.bw-okr2-children { display:flex; gap:28px; flex-wrap:wrap; justify-content:center; margin-top:48px; position:relative; }
.bw-okr2-card { width:228px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:14px 14px 12px; box-shadow:0 2px 8px rgba(15,23,42,.05); position:relative; }
.bw-okr2-card-hd { display:flex; align-items:flex-start; gap:8px; }
.bw-okr2-av { flex-shrink:0; width:28px; height:28px; border-radius:50%; background:#38bdf8; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.bw-okr2-card-title { flex:1; font-size:13px; font-weight:600; color:#111827; line-height:1.4; min-height:36px; }
.bw-okr2-kr-btn { flex-shrink:0; border:1px solid #99f6e4; background:#f0fdfa; color:#0d9488; font-size:11px; font-weight:700; padding:2px 6px; border-radius:4px; cursor:pointer; height:22px; }
.bw-okr2-kr-btn:hover { background:#ccfbf1; }
.bw-okr2-card-type { margin:10px 0 8px; font-size:12px; color:#6b7280; }
.bw-okr2-bar { display:flex; align-items:center; gap:8px; }
.bw-okr2-bar i { display:block; height:6px; background:#14b8a6; border-radius:4px; flex:1; max-width:100%; }
.bw-okr2-bar em { font-style:normal; font-size:12px; color:#0f766e; font-weight:600; min-width:32px; text-align:right; }
.bw-okr2-kr-pop { position:absolute; left:100%; top:0; margin-left:10px; width:240px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px 12px; box-shadow:0 10px 28px rgba(15,23,42,.12); z-index:8; font-size:12px; }
.bw-okr2-kr-pop[hidden] { display:none !important; }
.bw-okr2-kr-pop strong { display:block; margin-bottom:8px; color:#111827; }
.bw-okr2-kr-pop b { color:#16a34a; margin-right:6px; }
.bw-okr2-kr-pop div { margin-bottom:6px; color:#374151; line-height:1.35; }
.bw-okr2-empty { padding:64px 20px; text-align:center; color:#6b7280; }
.bw-okr2-empty p { margin:0 0 16px; }

/* ---- Drive dual-pane (Worktile-like) ---- */
.bw-drv { display:flex; min-height:520px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; }
.bw-drv-side { width:220px; flex-shrink:0; border-right:1px solid #eef0f3; padding:14px 12px; background:#fafbfc; display:flex; flex-direction:column; gap:6px; }
.bw-drv-side-title { font-weight:700; font-size:15px; color:#111827; margin-bottom:4px; }
.bw-drv-search { font-size:13px; height:34px; margin-bottom:6px; }
.bw-drv-exp { border:none; background:transparent; text-align:left; padding:8px 8px; border-radius:6px; font-size:13px; font-weight:600; color:#374151; cursor:pointer; }
.bw-drv-exp:hover { background:#f3f4f6; }
.bw-drv-caret { display:inline-block; width:14px; color:#9ca3af; }
.bw-drv-tree { list-style:none; padding:0 0 4px 6px; margin:0; }
.bw-drv-tree li { display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:6px; cursor:pointer; font-size:13px; color:#374151; }
.bw-drv-tree li:hover { background:#f3f4f6; }
.bw-drv-tree li.is-active { background:#e0f2fe; color:#0369a1; font-weight:600; }
.bw-drv-ficon { width:16px; height:14px; border-radius:2px; display:inline-block; flex-shrink:0; background:#fbbf24; position:relative; }
.bw-drv-ficon::after { content:""; position:absolute; left:0; top:-3px; width:8px; height:4px; border-radius:2px 2px 0 0; background:inherit; opacity:.85; }
.bw-drv-ficon.is-person { background:#60a5fa; border-radius:50%; }
.bw-drv-ficon.is-person::after, .bw-drv-ficon.is-members::after, .bw-drv-ficon.is-tag::after, .bw-drv-ficon.is-share::after, .bw-drv-ficon.is-trash::after { display:none; }
.bw-drv-ficon.is-members { background:#a78bfa; border-radius:4px; }
.bw-drv-ficon.is-tag { background:#34d399; border-radius:4px; }
.bw-drv-ficon.is-share { background:#fb7185; border-radius:4px; }
.bw-drv-ficon.is-trash { background:#94a3b8; border-radius:3px; }
.bw-drv-nav { display:flex; flex-direction:column; gap:2px; margin-top:8px; border-top:1px solid #eef0f3; padding-top:8px; }
.bw-drv-nav button { display:flex; align-items:center; gap:8px; border:none; background:transparent; text-align:left; padding:8px; border-radius:6px; font-size:13px; color:#374151; cursor:pointer; }
.bw-drv-nav button:hover { background:#f3f4f6; }
.bw-drv-nav button.is-active { background:#e0f2fe; color:#0369a1; font-weight:600; }
.bw-drv-main { flex:1; min-width:0; padding:14px 18px; display:flex; flex-direction:column; }
.bw-drv-bar { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.bw-drv-crumb { font-size:14px; color:#6b7280; display:flex; align-items:center; gap:6px; }
.bw-drv-crumb b { color:#111827; font-weight:600; }
.bw-drv-crumb i { font-style:normal; color:#d1d5db; }
.bw-drv-actions { display:flex; gap:8px; align-items:center; }
.bw-drv-new-wrap { position:relative; }
.bw-drv-new-menu { position:absolute; top:100%; left:0; margin-top:4px; min-width:140px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; box-shadow:0 8px 24px rgba(15,23,42,.12); z-index:20; padding:6px; }
.bw-drv-new-menu button { display:block; width:100%; text-align:left; border:none; background:#fff; padding:8px 10px; border-radius:4px; cursor:pointer; font-size:13px; }
.bw-drv-new-menu button:hover { background:#f3f4f6; }
.bw-drv-upload { margin:0; cursor:pointer; }
.bw-drv-table th { font-size:12px; color:#9ca3af; font-weight:500; }
.bw-drv-table td { font-size:13px; vertical-align:middle; }
.bw-drv-table .bw-drv-name { margin-left:8px; color:#111827; }
.bw-drv-row:hover { background:#f8fafc; }
.bw-drv-ops { width:88px; text-align:right; white-space:nowrap; opacity:0; transition:opacity .12s; }
.bw-drv-row:hover .bw-drv-ops { opacity:1; }
.bw-drv-dl, .bw-drv-more { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border:1px solid #e5e7eb; border-radius:6px; background:#fff; color:#4b5563; text-decoration:none; cursor:pointer; font-size:14px; margin-left:4px; }
.bw-drv-dl:hover, .bw-drv-more:hover { background:#f3f4f6; }
.bw-drv-av { display:inline-flex; width:22px; height:22px; border-radius:50%; background:#38bdf8; color:#fff; align-items:center; justify-content:center; font-size:11px; font-weight:700; margin-right:4px; vertical-align:middle; }
.bw-drv-ctx { position:fixed; z-index:9999; min-width:168px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; box-shadow:0 12px 32px rgba(15,23,42,.14); padding:6px; display:flex; flex-direction:column; }
.bw-drv-ctx button { text-align:left; border:none; background:#fff; padding:9px 12px; border-radius:4px; cursor:pointer; font-size:13px; color:#374151; }
.bw-drv-ctx button:hover { background:#f3f4f6; }
.bw-drv-ctx button.is-danger { color:#dc2626; }
.bw-drv-ctx hr { border:none; border-top:1px solid #eef0f3; margin:4px 0; }

/* colored file type icons */
.bw-fti { display:inline-flex; width:22px; height:22px; border-radius:4px; vertical-align:middle; align-items:center; justify-content:center; color:#fff; font-size:10px; font-weight:800; letter-spacing:-.02em; position:relative; }
.bw-fti::before { font-size:9px; font-weight:800; }
.bw-fti-pdf { background:#ef4444; } .bw-fti-pdf::before { content:"PDF"; }
.bw-fti-doc { background:#3b82f6; } .bw-fti-doc::before { content:"W"; }
.bw-fti-xls { background:#22c55e; } .bw-fti-xls::before { content:"X"; }
.bw-fti-ppt { background:#f97316; } .bw-fti-ppt::before { content:"P"; }
.bw-fti-folder { background:#fbbf24; border-radius:3px; } .bw-fti-folder::before { content:""; width:12px; height:9px; background:#f59e0b; border-radius:2px; display:block; box-shadow:0 -3px 0 -1px #fcd34d; }
.bw-fti-img { background:#a78bfa; } .bw-fti-img::before { content:"IMG"; font-size:7px; }
.bw-fti-zip { background:#64748b; } .bw-fti-zip::before { content:"ZIP"; font-size:7px; }
.bw-fti-file { background:#94a3b8; } .bw-fti-file::before { content:"F"; }

/* legacy drive aliases */
.bw-drive { display:flex; min-height:480px; }
.bw-drive-side { width:220px; border-right:1px solid #e2e8f0; padding:14px; background:#fafbfc; flex-shrink:0; }
.bw-drive-side-title { font-weight:700; margin-bottom:10px; }
.bw-drive-sec { margin-top:14px; font-size:12px; color:#94a3b8; }
.bw-drive-tree { list-style:none; padding:0; margin:8px 0 0; }
.bw-drive-tree li { padding:8px 10px; border-radius:6px; cursor:pointer; font-size:13px; }
.bw-drive-tree li.is-active, .bw-drive-tree li:hover { background:#e0f2fe; color:#0369a1; }
.bw-drive-main { flex:1; padding:14px 18px; min-width:0; }
.bw-drive-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; gap:10px; flex-wrap:wrap; }
.bw-drive-menu { display:flex; flex-direction:column; gap:4px; }
.bw-drive-menu button { text-align:left; border:none; background:#fff; padding:10px 12px; border-radius:6px; cursor:pointer; }
.bw-drive-menu button:hover { background:#f1f5f9; }
.bw-drive-menu .is-danger { color:#dc2626; }

.bw-mrep-tabs { margin-bottom:8px; }
.bw-mrep-tabs .is-active { color:#2563eb; font-weight:600; border-bottom:2px solid #2563eb; padding-bottom:4px; margin-right:16px; }
.bw-mrep-tabs .is-muted { color:#94a3b8; }
.bw-mrep-sub { margin-bottom:14px; display:flex; gap:16px; font-size:13px; }
.bw-mrep-sub .is-muted { color:#94a3b8; }
.bw-mrep-sum { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:16px; background:#f8fafc; border-radius:10px; margin-bottom:16px; }
.bw-mrep-sum > div { text-align:center; min-width:64px; }
.bw-mrep-sum em { display:block; font-style:normal; font-size:22px; font-weight:700; }
.bw-mrep-sum span { font-size:12px; color:#64748b; }
.bw-mrep-sum .is-warn em { color:#f59e0b; }
.bw-mrep-sum .is-ok em { color:#16a34a; }
.bw-mrep-ring { --p:0; width:72px; height:72px; border-radius:50%; background:conic-gradient(#14b8a6 calc(var(--p)*1%), #e2e8f0 0); display:flex; align-items:center; justify-content:center; margin-left:auto; }
.bw-mrep-ring span { width:56px; height:56px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; text-align:center; font-size:11px; line-height:1.2; }
.is-warn-t { color:#f59e0b; font-weight:600; }
.is-ok-t { color:#16a34a; font-weight:600; }

.bw-brief { display:flex; min-height:460px; }
.bw-brief-nav { width:180px; border-right:1px solid #e2e8f0; padding:12px; background:#fafbfc; }
.bw-brief-nav-title { font-weight:700; margin-bottom:10px; }
.bw-brief-nav button { display:block; width:100%; text-align:left; border:none; background:transparent; padding:9px 10px; border-radius:6px; cursor:pointer; font-size:13px; color:#334155; }
.bw-brief-nav button.is-active, .bw-brief-nav button:hover { background:#e0f2fe; color:#0369a1; }
.bw-brief-list { flex:1; padding:14px 18px; }
.bw-brief-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.bw-brief-head h3 { margin:0; }
.bw-brief-tabs { margin-bottom:12px; font-size:13px; color:#94a3b8; }
.bw-brief-tabs .is-active { color:#2563eb; font-weight:600; margin-right:12px; }
.bw-brief-item { display:flex; justify-content:space-between; align-items:center; padding:12px; border:1px solid #e2e8f0; border-radius:8px; margin-bottom:8px; cursor:pointer; }
.bw-brief-item:hover { background:#f8fafc; }
.bw-brief-item .muted { font-size:12px; color:#64748b; margin-top:4px; }
.bw-brief-st { font-size:12px; padding:4px 8px; border-radius:4px; background:#e2e8f0; }
.bw-brief-st.st-passed { background:#bbf7d0; color:#15803d; }
.bw-brief-st.st-pending { background:#fde68a; color:#b45309; }
.bw-brief-st.st-rejected { background:#fecaca; color:#b91c1c; }
.bw-brief-modal .bw-brief-stamp { font-size:13px; font-weight:700; color:#64748b; margin-right:auto; margin-left:12px; }
.bw-brief-modal .bw-brief-stamp.is-pass { color:#16a34a; border:2px solid #16a34a; padding:6px 10px; border-radius:6px; transform:rotate(-8deg); }
.bw-brief-tasks { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 12px; }
.bw-brief-comments { margin-top:12px; border-top:1px solid #e2e8f0; padding-top:10px; }
.bw-brief-comments div { font-size:13px; margin-bottom:8px; }
.bw-brief-comments em { display:block; font-size:11px; color:#94a3b8; font-style:normal; }

@media (max-width: 900px) {
  .bw-drv, .bw-okr2, .bw-drive, .bw-brief { flex-direction:column; }
  .bw-drv-side, .bw-okr2-side, .bw-drive-side, .bw-brief-nav { width:100%; border-right:none; border-bottom:1px solid #e2e8f0; }
  .bw-okr2-kr-pop { left:0; top:100%; margin-left:0; margin-top:8px; }
}

