/* ============================================================
   WorkSphere · Enterprise Workbench
   Design tokens & global reset
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f7;
  --line: #e7eaf0;
  --line-strong: #d7dce6;

  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;

  --brand: #2e5bff;
  --brand-600: #2148d9;
  --brand-700: #1b3bb3;
  --brand-50: #eef2ff;
  --brand-100: #dfe7ff;

  --violet: #7a5af8;
  --violet-50: #f4f1ff;
  --teal: #0e9f6e;
  --teal-50: #e7f8f1;
  --amber: #e8830c;
  --amber-50: #fff5e6;
  --red: #e5484d;
  --red-50: #fff0f0;
  --pink: #d6409f;
  --cyan: #0ba5c7;
  --gold: #b58a2b;

  --rail: #0b1220;
  --rail-2: #111b2e;

  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.14), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 28px 64px -16px rgba(16, 24, 40, 0.24), 0 8px 20px -8px rgba(16, 24, 40, 0.12);

  --font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --rail-w: 68px;
  --explorer-w: 292px;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; max-width: none; overflow-x: hidden; }
#app { width: 100%; max-width: none; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--brand-100); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cfd5df transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #cfd5df; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #aeb7c5; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   Shell
   ============================================================ */
.app-shell {
  width: 100%;
  display: grid;
  grid-template-columns: var(--rail-w) var(--explorer-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

/* ---------- Global rail ---------- */
.rail {
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0 16px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(46, 91, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0c1424 55%, #0a111e 100%);
  color: #93a0b5;
  z-index: 30;
}
.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 45%);
}
.rail > * { position: relative; z-index: 1; }
.rail-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3f6bff, #2e5bff 45%, #1e40e0);
  box-shadow: 0 6px 18px -4px rgba(46, 91, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
  flex: none;
}
.rail-logo svg { width: 21px; height: 21px; }
.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.rail-spacer { height: 1px; width: 26px; background: rgba(255, 255, 255, 0.08); margin: 8px 0; flex: none; }
.rail-sep-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #4e5b70;
  writing-mode: vertical-rl;
  margin: 2px 0 4px;
  text-transform: uppercase;
  user-select: none;
}
.rail-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #8b98ad;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { background: rgba(255, 255, 255, 0.07); color: #e6ebf5; }
.rail-btn.active { background: rgba(70, 108, 255, 0.18); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(97, 133, 255, 0.28); }
.rail-btn.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: #6c8dff;
  box-shadow: 0 0 12px #2e5bff;
}
.rail-btn .rail-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b6b;
  border: 1.5px solid #0b1220;
}
.rail-spacer-flex { flex: 1; }
.rail-avatar-btn { margin-top: 4px; border-radius: 50%; padding: 2px; border: 1px solid rgba(255, 255, 255, 0.12); }
.rail-avatar-btn:hover { border-color: rgba(255, 255, 255, 0.3); }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #101828;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
[data-tip]:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Explorer ---------- */
.explorer {
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fbfcfd;
  border-right: 1px solid var(--line);
  z-index: 20;
}
.explorer-head {
  height: var(--topbar-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid transparent;
}
.org-switch {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.16s;
}
.org-switch:hover { background: #f1f3f7; }
.org-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #25324d, #101828);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.org-copy { min-width: 0; line-height: 1.25; }
.org-copy b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-copy span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.explorer-icon-btn {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3);
}
.explorer-icon-btn:hover { background: #f1f3f7; color: var(--ink); }

.explorer-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 24px; }
.explorer-section { margin-top: 18px; }
.explorer-section:first-child { margin-top: 6px; }
.explorer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.explorer-label button { color: var(--ink-4); width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; }
.explorer-label button:hover { background: #eef1f5; color: var(--ink-2); }
.nav-list { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: left;
  transition: background 0.14s, color 0.14s;
}
.nav-item svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.nav-item:hover { background: #f0f3f7; color: var(--ink); }
.nav-item.active { background: #e9eefc; color: var(--brand-700); font-weight: 600; }
.nav-item.active svg { color: var(--brand); }
.nav-item .nav-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .nav-count {
  font-size: 11px;
  color: var(--ink-4);
  background: #eef1f5;
  padding: 1px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.nav-item.active .nav-count { background: #dbe4ff; color: var(--brand-700); }
.nav-item .nav-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }

.explorer-search {
  position: relative;
  margin: 2px 0 8px;
}
.explorer-search svg { position: absolute; left: 10px; top: 9px; width: 14px; height: 14px; color: var(--ink-4); }
.explorer-search input {
  width: 100%;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 10px 0 30px;
  font-size: 12.5px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.explorer-search input::placeholder { color: var(--ink-4); }
.explorer-search input:focus { border-color: #b9c6ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.09); }

.app-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 9px;
  text-align: left;
  transition: background 0.14s;
}
.app-row:hover { background: #f0f3f7; }
.app-row.active { background: #e9eefc; }
.app-ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
}
.app-ico svg { width: 14px; height: 14px; }
.app-row-copy { flex: 1; min-width: 0; line-height: 1.2; }
.app-row-copy b { display: block; font-size: 12.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-copy span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.app-row.active .app-row-copy b { color: var(--brand-700); }
.app-row .mini-status { width: 6px; height: 6px; border-radius: 50%; flex: none; }

.mini-project {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
}
.mini-project:hover { background: #f0f3f7; }
.mini-project .mp-bar { width: 3px; height: 26px; border-radius: 3px; background: var(--brand); flex: none; }
.mini-project .mp-copy { flex: 1; min-width: 0; }
.mini-project b { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-project span { font-size: 10.5px; color: var(--ink-4); }

.explorer-foot {
  flex: none;
  margin: 0 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.storage-card { background: #f3f5f9; border-radius: 10px; padding: 11px; }
.storage-card .sc-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-bottom: 7px; }
.storage-card .sc-row b { color: var(--ink-2); font-weight: 600; }
.storage-bar { height: 5px; border-radius: 5px; background: #e3e7ee; overflow: hidden; display: flex; gap: 2px; }
.storage-bar i { display: block; height: 100%; border-radius: 5px; }
.sc-reset { margin-top: 7px; text-align: right; }
.sc-reset button { font-size: 10px; color: var(--ink-4); }
.sc-reset button:hover { color: var(--brand); }

/* ---------- Main ---------- */
.main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.topbar {
  height: var(--topbar-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  z-index: 15;
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-4); min-width: 0; }
.crumbs a { color: var(--ink-3); white-space: nowrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: #c3c9d4; }
.crumbs .current { color: var(--ink); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: 240px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f9fb;
  color: var(--ink-4);
  font-size: 12.5px;
  transition: background 0.15s, border 0.15s;
}
.search-trigger:hover { background: #fff; border-color: var(--line-strong); }
.search-trigger .st-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger > * { flex: none; }
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger .kbd { margin-left: auto; }
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  line-height: 1;
  color: var(--ink-4);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-color: #d3d8e2;
  border-radius: 5px;
  padding: 3px 5px;
  font-family: var(--font);
}
.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: #f1f3f7; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; border: 1.5px solid #fff; }
.topbar-divider { width: 1px; height: 22px; background: var(--line); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 9px; }
.user-chip:hover { background: #f1f3f7; }
.user-chip .uc-copy { text-align: left; line-height: 1.2; }
.user-chip .uc-copy b { display: block; font-size: 12.5px; font-weight: 600; }
.user-chip .uc-copy span { font-size: 10.5px; color: var(--ink-4); }

.main-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.page { max-width: 1240px; margin: 0 auto; padding: 26px 30px 56px; animation: pageIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.page.page-wide { max-width: 1480px; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.page-head-copy { flex: 1; min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 7px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.page-title { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 680; }
.page-sub { margin: 7px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; padding-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s, border 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(46, 91, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: #fff; border-color: var(--line-strong); color: var(--ink-2); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: #b9c2d0; background: #fcfcfd; }
.btn-ghost { color: var(--ink-3); }
.btn-ghost:hover { background: #eef1f5; color: var(--ink); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); }
.btn-danger { background: var(--red-50); color: var(--red); }
.btn-sm { height: 28px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 10px; }

/* Chips, badges, utility */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.brand { background: var(--brand-50); color: var(--brand-700); }
.chip.teal { background: var(--teal-50); color: var(--teal); }
.chip.amber { background: var(--amber-50); color: var(--amber); }
.chip.red { background: var(--red-50); color: var(--red); }
.chip.violet { background: var(--violet-50); color: var(--violet); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge .bdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { color: #067647; background: #ecfdf3; }
.badge-blue { color: var(--brand-700); background: var(--brand-50); }
.badge-amber { color: #b54708; background: #fffaeb; }
.badge-red { color: #b42318; background: #fef3f2; }
.badge-gray { color: #475467; background: #f2f4f7; }
.badge-violet { color: #5b3fd1; background: var(--violet-50); }
.badge-gold { color: #8a6414; background: #fdf6e3; }
.badge-outline { color: var(--ink-2); background: #fff; border: 1px solid var(--line-strong); }

.dot-green { background: var(--teal); }
.dot-blue { background: var(--brand); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-gray { background: #b6becb; }
.dot-violet { background: var(--violet); }

.muted { color: var(--ink-3); }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.row { display: flex; align-items: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.spacer { flex: 1; }

/* Avatar */
.avatar {
  position: relative;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  flex: none;
  user-select: none;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.avatar.sq { border-radius: 10px; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -7px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-more {
  margin-left: -7px;
  border: 2px solid #fff;
  height: 26px;
  min-width: 26px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 18px; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.section-head h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.section-head .sh-sub { font-size: 12px; color: var(--ink-4); }
.section-head .sh-link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.section-head .sh-link:hover { color: var(--brand); }
.section-head .sh-link svg { width: 13px; height: 13px; }

/* ============================================================
   Home
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 26px 28px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 78% 0%, rgba(85, 124, 255, 0.55), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(122, 90, 248, 0.42), transparent 60%),
    linear-gradient(115deg, #0a1020 0%, #111d3c 48%, #16265a 100%);
  box-shadow: 0 18px 40px -22px rgba(12, 23, 54, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  min-height: 194px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(90% 100% at 60% 40%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  right: -70px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(64, 106, 255, 0.1), rgba(122, 90, 248, 0.55), rgba(39, 218, 255, 0.28), rgba(64, 106, 255, 0.1));
  filter: blur(34px);
  opacity: 0.7;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: #aebbe0; letter-spacing: 0.02em; }
.hero-kicker .pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #45e0a8; box-shadow: 0 0 0 4px rgba(69, 224, 168, 0.12); }
.hero-kicker .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(69, 224, 168, 0.5); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.hero h2 { margin: 14px 0 8px; font-size: 27px; line-height: 1.2; font-weight: 640; letter-spacing: -0.02em; }
.hero h2 em { font-style: normal; background: linear-gradient(90deg, #8fa8ff, #c7b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; font-size: 13px; color: #b8c4e2; line-height: 1.6; max-width: 520px; }
.hero-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.hero .btn-primary { background: #fff; color: #15224a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.hero .btn-primary:hover { background: #eef2ff; }
.hero .btn-glass { background: rgba(255, 255, 255, 0.08); color: #e7ecfa; border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.hero .btn-glass:hover { background: rgba(255, 255, 255, 0.14); }

.hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hero-stat { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09); }
.hero-stat .hs-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.09); color: #cfd9ff; }
.hero-stat .hs-icon svg { width: 16px; height: 16px; }
.hero-stat .hs-copy { flex: 1; min-width: 0; }
.hero-stat .hs-copy b { display: block; font-size: 18px; line-height: 1.1; font-weight: 650; letter-spacing: -0.01em; }
.hero-stat .hs-copy span { display: block; font-size: 10.5px; color: #9fadd0; margin-top: 2px; }
.hero-stat .hs-delta { font-size: 10.5px; color: #74e6b4; background: rgba(69, 224, 168, 0.1); padding: 2px 6px; border-radius: 5px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-shadow: var(--shadow-xs);
  transition: border 0.15s, box-shadow 0.15s, transform 0.15s;
}
.kpi:hover { border-color: #d5dce8; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.kpi-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kpi-icon svg { width: 17px; height: 17px; }
.kpi-copy { min-width: 0; display: flex; flex-direction: column; }
.kpi-copy .kpi-label { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.kpi-copy .kpi-value { display: flex; align-items: baseline; gap: 3px; font-size: 23px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; margin-top: 3px; white-space: nowrap; }
.kpi-copy .kpi-value small { font-size: 11px; color: var(--ink-4); font-weight: 500; letter-spacing: 0; }
.kpi-copy .kpi-delta { display: block; font-size: 10.5px; color: var(--teal); margin-top: 3px; white-space: nowrap; }
.kpi-copy .kpi-delta.down { color: var(--red); }
.spark { margin-left: auto; opacity: 0.9; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 24px; align-items: start; }
.home-main { min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }

.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  transition: border 0.18s, box-shadow 0.18s, transform 0.18s;
  min-width: 0;
  text-align: left;
}
.app-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.app-card-head { display: flex; align-items: center; gap: 10px; }
.app-card .app-ico { width: 38px; height: 38px; border-radius: 11px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 10px -4px currentColor; }
.app-card .app-ico svg { width: 19px; height: 19px; }
.app-card-title { flex: 1; min-width: 0; }
.app-card-title b { display: block; font-size: 14px; font-weight: 620; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-title span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.app-card-desc { margin: 11px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.app-card-features { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }
.app-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0f2f6; }
.app-card-stat { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-4); }
.app-card-stat svg { width: 12px; height: 12px; }
.app-card-foot .avatar-stack { margin-left: auto; }

.project-list { display: flex; flex-direction: column; }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 92px minmax(100px, 0.8fr) 96px 30px;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid #f0f2f6;
  cursor: pointer;
  transition: background 0.14s;
  border-radius: 8px;
}
.project-row:hover { background: #fafbfd; }
.project-row:last-child { border-bottom: 0; }
.pr-title { min-width: 0; }
.pr-title b { display: block; font-size: 12.8px; font-weight: 560; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-title span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 3px; }
.pr-progress { display: flex; align-items: center; gap: 7px; }
.pr-progress .bar { flex: 1; height: 5px; border-radius: 5px; background: #eef1f5; overflow: hidden; }
.pr-progress .bar i { display: block; height: 100%; border-radius: 5px; }
.pr-progress span { font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; width: 26px; }
.pr-team { display: flex; align-items: center; }
.pr-due { font-size: 11px; color: var(--ink-3); }
.pr-due.overdue { color: var(--red); }
.pr-arrow { color: #c3c9d4; display: grid; place-items: center; }

/* Right rail cards */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); overflow: hidden; }
.side-card-head { display: flex; align-items: center; gap: 8px; padding: 14px 15px 10px; }
.side-card-head h4 { margin: 0; font-size: 13px; font-weight: 650; }
.side-card-head .count { font-size: 10.5px; color: var(--ink-4); background: #f2f4f7; border-radius: 999px; padding: 1px 6px; }
.side-card-head .link { margin-left: auto; font-size: 11px; color: var(--ink-4); }
.side-card-head .link:hover { color: var(--brand); }
.side-card-body { padding: 0 8px 8px; }

.approval-item { display: flex; gap: 10px; padding: 9px 7px; border-radius: 9px; }
.approval-item:hover { background: #fafbfd; }
.approval-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.approval-ico svg { width: 14px; height: 14px; }
.approval-copy { flex: 1; min-width: 0; }
.approval-copy b { display: block; font-size: 12px; font-weight: 560; line-height: 1.35; color: var(--ink-2); }
.approval-copy span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.approval-actions { display: flex; gap: 4px; margin-top: 6px; }
.mini-btn { height: 23px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 550; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.mini-btn:hover { background: #f7f9fc; }
.mini-btn.approve { background: var(--brand); color: #fff; border-color: var(--brand); }
.mini-btn.approve:hover { background: var(--brand-600); }
.mini-btn.reject:hover { color: var(--red); border-color: #f3c6c6; }

.feed { display: flex; flex-direction: column; padding: 2px 7px 8px; }
.feed-item { display: flex; gap: 10px; padding: 8px 0; position: relative; }
.feed-item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: -6px; width: 1px; background: #edf0f5; }
.feed-avatar { flex: none; position: relative; z-index: 1; }
.feed-copy { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.feed-copy b { color: var(--ink-2); font-weight: 600; }
.feed-copy .feed-time { display: block; font-size: 10px; color: var(--ink-4); margin-top: 2px; }
.feed-tag { display: inline-block; font-size: 10px; color: var(--brand-700); background: var(--brand-50); border-radius: 4px; padding: 1px 5px; margin: 0 1px; }

.security-mini {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #101828, #1c2b4d);
  color: #fff;
  border: 0;
}
.security-mini .side-card-head h4 { color: #fff; }
.security-mini .side-card-head .link { color: #9fb0d8; }
.security-mini .side-card-body { padding: 0 14px 15px; }
.sec-meter { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.sec-ring { position: relative; width: 46px; height: 46px; flex: none; }
.sec-ring svg { transform: rotate(-90deg); }
.sec-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.sec-copy b { display: block; font-size: 12px; font-weight: 560; }
.sec-copy span { display: block; font-size: 10.5px; color: #9fb0d8; margin-top: 2px; }
.sec-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.sec-tag { font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.09); color: #c6d2ee; border: 1px solid rgba(255, 255, 255, 0.08); }

/* ============================================================
   Apps
   ============================================================ */
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar .spacer { flex: 1; }
.seg { display: inline-flex; background: #eef1f5; border-radius: 9px; padding: 2px; gap: 1px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); font-weight: 600; }
.select-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.select-pill svg { width: 13px; height: 13px; color: var(--ink-4); }

.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.apps-grid .app-card { padding: 18px; min-height: 212px; }
.apps-grid .app-card-desc { min-height: 54px; -webkit-line-clamp: 3; }
.app-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.app-card-meta .meta-pill { font-size: 10.5px; color: var(--ink-3); background: #f5f7fa; border-radius: 6px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 4px; }
.app-card-meta .meta-pill svg { width: 11px; height: 11px; }
.app-create-card {
  border: 1.5px dashed #d6dce7;
  border-radius: 14px;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-4);
  min-height: 212px;
  transition: border 0.15s, background 0.15s, color 0.15s;
}
.app-create-card:hover { border-color: #b9c6ff; background: #f7f9ff; color: var(--brand); }
.app-create-card .plus { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #d6dce7; display: grid; place-items: center; background: #fff; }
.app-create-card b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.app-create-card span { font-size: 11.5px; }

/* App detail */
.app-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
}
.app-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--app-tint, #eef2ff);
  opacity: 0.55;
  filter: blur(30px);
  pointer-events: none;
}
.app-hero > * { position: relative; z-index: 1; }
.app-hero .app-ico { width: 56px; height: 56px; border-radius: 16px; }
.app-hero .app-ico svg { width: 27px; height: 27px; }
.app-hero-copy { flex: 1; min-width: 0; }
.app-hero-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.app-hero-title h1 { margin: 0; font-size: 24px; font-weight: 680; letter-spacing: -0.02em; }
.app-hero-desc { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 680px; }
.app-hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 13px; flex-wrap: wrap; }
.meta-unit { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.meta-unit svg { width: 13px; height: 13px; color: var(--ink-4); }
.meta-unit b { color: var(--ink-2); font-weight: 600; }
.app-hero-actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; flex: none; }
.app-hero-actions .row { gap: 7px; }

.app-tabs { display: flex; gap: 2px; margin: 18px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.app-tab {
  position: relative;
  height: 38px;
  padding: 0 13px;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-tab:hover { color: var(--ink); }
.app-tab.active { color: var(--brand-700); font-weight: 600; }
.app-tab.active::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.app-tab .tab-count { font-size: 10px; color: var(--ink-4); background: #f2f4f7; border-radius: 999px; padding: 1px 5px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; box-shadow: var(--shadow-xs); }
.metric-card .m-label { font-size: 11px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.metric-card .m-label svg { width: 12px; height: 12px; }
.metric-card .m-value { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; margin-top: 5px; }
.metric-card .m-value small { font-size: 11px; color: var(--ink-4); font-weight: 500; margin-left: 2px; }
.metric-card .m-foot { font-size: 10.5px; color: var(--ink-4); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.metric-card .m-foot.up { color: var(--teal); }
.metric-card .m-foot.down { color: var(--red); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr); gap: 18px; align-items: start; }
.detail-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 15px 17px 12px; }
.panel-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.panel-head .ph-sub { font-size: 11px; color: var(--ink-4); }
.panel-head .spacer { flex: 1; }
.panel-head .sh-link { display: inline-flex; align-items: center; gap: 3px; flex: none; white-space: nowrap; }
.panel-body { padding: 0 17px 16px; }
.panel-body.flush { padding: 0 0 6px; }

.chart-wrap { padding: 4px 2px 0; }
.chart-legend { display: flex; gap: 14px; margin-top: 8px; padding: 0 2px; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-3); }
.legend-item i { width: 7px; height: 7px; border-radius: 2px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature-card { border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: #fcfcfd; transition: border 0.15s, background 0.15s; text-align: left; }
.feature-card:hover { border-color: #c9d3e6; background: #fff; }
.feature-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 9px; }
.feature-ico svg { width: 15px; height: 15px; }
.feature-card b { display: block; font-size: 12.5px; font-weight: 600; }
.feature-card span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 3px; line-height: 1.45; }
.feature-card .fc-foot { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 10.5px; color: var(--ink-4); }

.cap-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #f2f4f7; }
.cap-row:last-child { border-bottom: 0; }
.cap-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.cap-ico svg { width: 15px; height: 15px; }
.cap-copy { flex: 1; min-width: 0; }
.cap-copy b { display: block; font-size: 12.5px; font-weight: 560; }
.cap-copy span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #d8dee8; transition: background 0.16s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2); transition: transform 0.16s; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(14px); }

.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: left; font-size: 10.5px; font-weight: 600; color: var(--ink-4); padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini-table td { font-size: 12px; padding: 9px 8px; border-bottom: 1px solid #f3f5f8; vertical-align: middle; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table tbody tr { transition: background 0.13s; }
.mini-table tbody tr:hover { background: #fafbfd; }
.mini-table td b { font-weight: 560; color: var(--ink-2); }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kanban.kanban-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kanban-col { background: #f5f7fa; border: 1px solid #edf0f5; border-radius: 12px; padding: 8px; min-height: 160px; transition: background 0.15s, border 0.15s; }
.kanban-col.drag-over { background: #eef3ff; border-color: #b9c6ff; }
.kanban-col-head { display: flex; align-items: center; gap: 7px; padding: 4px 4px 9px; }
.kanban-col-head .kc-dot { width: 6px; height: 6px; border-radius: 50%; }
.kanban-col-head b { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.kanban-col-head .kc-count { font-size: 10px; color: var(--ink-4); background: #e9edf3; border-radius: 999px; padding: 0 5px; }
.kanban-col-head .kc-add { margin-left: auto; color: var(--ink-4); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; }
.kanban-col-head .kc-add:hover { background: #e4e9f1; color: var(--ink-2); }
.task-card { background: #fff; border: 1px solid #e7eaf0; border-radius: 9px; padding: 10px; margin-bottom: 7px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03); cursor: grab; transition: box-shadow 0.15s, border 0.15s, transform 0.15s; }
.task-card:hover { border-color: #cfd8e6; box-shadow: 0 4px 12px -4px rgba(16, 24, 40, 0.12); transform: translateY(-1px); }
.task-card.dragging { opacity: 0.4; }
.task-card .tc-top { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.task-card .tc-title { font-size: 12px; font-weight: 560; line-height: 1.4; color: var(--ink-2); }
.task-card .tc-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.task-card .tc-due { font-size: 10px; color: var(--ink-4); display: flex; align-items: center; gap: 3px; margin-left: auto; }
.task-card .tc-due.urgent { color: var(--red); }
.prio { width: 5px; height: 5px; border-radius: 50%; flex: none; }

/* ============================================================
   People / employees
   ============================================================ */
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px; box-shadow: var(--shadow-xs); transition: border 0.16s, box-shadow 0.16s, transform 0.16s; cursor: pointer; text-align: left; }
.person-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pc-head { display: flex; align-items: flex-start; gap: 11px; }
.pc-head .avatar { width: 42px; height: 42px; font-size: 14px; }
.pc-id { flex: 1; min-width: 0; }
.pc-id b { display: block; font-size: 14px; font-weight: 620; }
.pc-id span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.pc-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin: 11px 0 0; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-skills { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.pc-foot { display: flex; align-items: center; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0f2f6; }
.pc-metric { font-size: 10.5px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.pc-metric b { color: var(--ink-2); font-weight: 600; font-size: 11.5px; }
.pc-arrow { margin-left: auto; color: #c3c9d4; }

.view-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.view-tab { height: 30px; padding: 0 11px; border-radius: 7px; font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.view-tab:hover { background: #eef1f5; color: var(--ink); }
.view-tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.view-tab .vt-count { font-size: 10px; color: var(--ink-4); }

/* Employee detail */
.profile-hero { display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.profile-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--violet), var(--cyan)); opacity: 0.85; }
.profile-hero .avatar { width: 68px; height: 68px; font-size: 23px; border-radius: 19px; }
.profile-copy { flex: 1; min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.profile-name h1 { margin: 0; font-size: 23px; font-weight: 680; letter-spacing: -0.02em; }
.profile-role { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.profile-bio { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; max-width: 700px; }
.profile-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 11px; }
.profile-actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; flex: none; }

.lifecycle { display: flex; align-items: center; gap: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; box-shadow: var(--shadow-xs); }
.life-step { display: flex; align-items: center; gap: 8px; flex: 1; position: relative; }
.life-step:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: #e7eaf0; margin: 0 12px; }
.life-dot { width: 22px; height: 22px; border-radius: 50%; background: #f2f4f7; color: var(--ink-4); display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
.life-dot svg { width: 12px; height: 12px; }
.life-step.done .life-dot { background: #e7f8f1; color: var(--teal); }
.life-step.current .life-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.life-copy b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.life-copy span { display: block; font-size: 10px; color: var(--ink-4); white-space: nowrap; }

.detail-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr); gap: 16px; align-items: start; margin-top: 16px; }

.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f5f8; font-size: 12px; }
.info-row:last-child { border-bottom: 0; }
.info-row .ir-label { width: 74px; flex: none; color: var(--ink-4); font-size: 11px; }
.info-row .ir-value { flex: 1; color: var(--ink-2); min-width: 0; }
.info-row .ir-value b { font-weight: 560; }

.training-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f3f5f8; }
.training-item:last-child { border-bottom: 0; }
.training-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.training-ico svg { width: 14px; height: 14px; }
.training-copy { flex: 1; min-width: 0; }
.training-copy b { display: block; font-size: 11.5px; font-weight: 560; }
.training-copy .tp-bar { display: block; height: 4px; border-radius: 4px; background: #eef1f5; margin-top: 5px; overflow: hidden; }
.training-copy .tp-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.training-score { font-size: 11px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.timeline { position: relative; padding: 2px 0 2px 0; }
.tl-item { position: relative; padding: 0 0 15px 22px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid #cfd6e2; z-index: 1; }
.tl-item::after { content: ""; position: absolute; left: 7px; top: 14px; bottom: -2px; width: 1px; background: #edf0f5; }
.tl-item:last-child::after { display: none; }
.tl-item.ok::before { border-color: var(--teal); background: var(--teal-50); }
.tl-item.warn::before { border-color: var(--amber); background: var(--amber-50); }
.tl-item.risk::before { border-color: var(--red); background: var(--red-50); }
.tl-item:last-child { padding-bottom: 0; }
.tl-copy { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.tl-copy b { font-weight: 600; }
.tl-meta { display: flex; gap: 8px; font-size: 10px; color: var(--ink-4); margin-top: 3px; flex-wrap: wrap; }

/* ============================================================
   Skills
   ============================================================ */
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.skill-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px; box-shadow: var(--shadow-xs); transition: border 0.16s, box-shadow 0.16s, transform 0.16s; cursor: pointer; text-align: left; }
.skill-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sk-head { display: flex; align-items: center; gap: 10px; }
.sk-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.sk-ico svg { width: 18px; height: 18px; }
.sk-title { flex: 1; min-width: 0; }
.sk-title b { display: block; font-size: 13.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-title span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; font-family: var(--mono); }
.sk-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin: 11px 0 0; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #f0f2f6; }
.sk-meta .sm { font-size: 10.5px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.sk-meta .sm svg { width: 12px; height: 12px; }
.sk-meta .sm b { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   Connectors / tables
   ============================================================ */
.data-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); overflow: hidden; }
.data-toolbar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.data-toolbar .spacer { flex: 1; }
.data-search { position: relative; width: 230px; }
.data-search svg { position: absolute; left: 9px; top: 8px; width: 14px; height: 14px; color: var(--ink-4); }
.data-search input { width: 100%; height: 31px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px 0 29px; font-size: 12px; outline: none; background: #fbfcfd; }
.data-search input:focus { border-color: #b9c6ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.08); background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table thead th { text-align: left; font-size: 10.5px; font-weight: 600; color: var(--ink-4); letter-spacing: 0.01em; padding: 10px 16px; background: #fbfcfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody td { padding: 12px 16px; border-bottom: 1px solid #f2f4f7; font-size: 12px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.13s; cursor: pointer; }
.table tbody tr:hover { background: #fafbfd; }
.cell-system { display: flex; align-items: center; gap: 10px; }
.sys-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; color: #fff; }
.cell-system b { display: block; font-size: 12.5px; font-weight: 560; }
.cell-system span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.health { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); }
.health .hbars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.health .hbars i { width: 3px; border-radius: 1px; background: #d7dce6; }
.health .hbars i.on { background: var(--teal); }
.health.warn .hbars i.on { background: var(--amber); }
.health.bad .hbars i.on { background: var(--red); }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; opacity: 0; transition: opacity 0.14s; }
tr:hover .row-actions { opacity: 1; }
.row-actions .icon-btn { width: 26px; height: 26px; }
.row-actions .icon-btn svg { width: 14px; height: 14px; }

/* ============================================================
   Projects
   ============================================================ */
.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-xs); cursor: pointer; transition: border 0.16s, box-shadow 0.16s, transform 0.16s; text-align: left; }
.project-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pjc-head { display: flex; align-items: flex-start; gap: 10px; }
.pjc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.pjc-icon svg { width: 18px; height: 18px; }
.pjc-title { flex: 1; min-width: 0; }
.pjc-title b { display: block; font-size: 14px; font-weight: 620; }
.pjc-title span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.pjc-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin: 11px 0 0; min-height: 36px; }
.pjc-progress { margin-top: 13px; }
.pjc-progress .pg-top { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-4); margin-bottom: 5px; }
.pjc-progress .pg-top b { color: var(--ink-2); font-weight: 600; }
.pjc-bar { display: block; height: 5px; border-radius: 5px; background: #eef1f5; overflow: hidden; }
.pjc-bar i { display: block; height: 100%; border-radius: 5px; }
.pjc-foot { display: flex; align-items: center; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0f2f6; gap: 9px; }
.pjc-foot .tiny { font-size: 10.5px; color: var(--ink-4); }
.pjc-foot .avatar-stack { margin-left: auto; }

/* ============================================================
   Knowledge / secure spaces
   ============================================================ */
.space-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.space-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 19px; box-shadow: var(--shadow-xs); cursor: pointer; transition: border 0.16s, box-shadow 0.16s, transform 0.16s; text-align: left; }
.space-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.space-card .sc-top { display: flex; align-items: center; gap: 10px; }
.space-lock { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.space-lock svg { width: 18px; height: 18px; }
.space-title { flex: 1; min-width: 0; }
.space-title b { display: block; font-size: 14px; font-weight: 620; }
.space-title span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.space-desc { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin: 11px 0 0; min-height: 36px; }
.space-meta { display: flex; align-items: center; gap: 14px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0f2f6; }
.space-meta .sm { font-size: 10.5px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.space-meta .sm svg { width: 12px; height: 12px; }
.space-meta .sm b { color: var(--ink-2); font-weight: 600; }
.class-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }

.security-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #101828, #1a2b52);
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.security-banner::after { content: ""; position: absolute; right: -30px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(90, 122, 255, 0.25); filter: blur(30px); }
.security-banner .sb-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, 0.12); }
.security-banner .sb-icon svg { width: 19px; height: 19px; color: #c9d6ff; }
.security-banner .sb-copy { flex: 1; min-width: 0; position: relative; z-index: 1; }
.security-banner .sb-copy b { display: block; font-size: 13px; font-weight: 600; }
.security-banner .sb-copy span { display: block; font-size: 11px; color: #aebbe0; margin-top: 3px; }
.security-banner .sb-tags { display: flex; gap: 5px; flex-wrap: wrap; position: relative; z-index: 1; }
.security-banner .sb-tag { font-size: 10px; padding: 3px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.1); color: #d7e0f7; display: flex; align-items: center; gap: 4px; }
.security-banner .sb-tag svg { width: 11px; height: 11px; }

.file-name { display: flex; align-items: center; gap: 8px; }
.file-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.file-ico svg { width: 13px; height: 13px; }
.file-name > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.file-name b { font-size: 12px; font-weight: 500; white-space: nowrap; }
.file-name span { font-size: 10px; color: var(--ink-4); margin-top: 1px; }

.access-list { display: flex; flex-direction: column; }
.access-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f3f5f8; }
.access-row:last-child { border-bottom: 0; }
.access-copy { flex: 1; min-width: 0; }
.access-copy b { display: block; font-size: 11.5px; font-weight: 560; }
.access-copy span { display: block; font-size: 10px; color: var(--ink-4); }

/* ============================================================
   Audit
   ============================================================ */
.audit-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.audit-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; box-shadow: var(--shadow-xs); }
.audit-stat .as-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-4); }
.audit-stat .as-top svg { width: 13px; height: 13px; }
.audit-stat .as-value { font-size: 23px; font-weight: 680; letter-spacing: -0.02em; margin-top: 6px; }
.audit-stat .as-foot { font-size: 10.5px; color: var(--ink-4); margin-top: 3px; }
.risk-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.risk-low { color: #067647; background: #ecfdf3; }
.risk-mid { color: #b54708; background: #fffaeb; }
.risk-high { color: #b42318; background: #fef3f2; }
.actor-cell { display: flex; align-items: center; gap: 8px; }
.actor-cell > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.actor-cell b { font-size: 11.5px; font-weight: 560; white-space: nowrap; }
.actor-cell span { font-size: 10px; color: var(--ink-4); margin-top: 1px; white-space: nowrap; }

/* ============================================================
   Command palette / modal / toast
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 20px;
  background: rgba(10, 16, 30, 0.42);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 540px;
  max-width: 100%;
  max-height: 82vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; }
.modal-head-copy { flex: 1; min-width: 0; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.modal-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.modal-close { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--ink-4); flex: none; }
.modal-close:hover { background: #f1f3f7; color: var(--ink); }
.modal-body { padding: 2px 20px 18px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcfd; }
.modal-foot .spacer { flex: 1; }

.form-row { margin-bottom: 13px; }
.form-row:last-child { margin-bottom: 0; }
.form-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: 12.5px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: #9fb3ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.1); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-hint { font-size: 10.5px; color: var(--ink-4); margin-top: 5px; line-height: 1.5; }
.check-list { display: flex; flex-direction: column; gap: 7px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.check-row:hover { background: #fafbfd; }
.check-row input { accent-color: var(--brand); }
.check-row .cr-meta { margin-left: auto; font-size: 10.5px; color: var(--ink-4); }

/* Command palette */
.palette { width: 620px; max-width: 100%; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: modalIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search svg { width: 18px; height: 18px; color: var(--ink-4); }
.palette-search input { flex: 1; border: 0; outline: none; font-size: 14px; background: transparent; }
.palette-search .esc { font-size: 10px; color: var(--ink-4); }
.palette-list { max-height: 420px; overflow-y: auto; padding: 7px; }
.palette-group { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-4); text-transform: uppercase; padding: 9px 9px 4px; }
.palette-item { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; cursor: pointer; }
.palette-item:hover, .palette-item.active { background: #f3f6fd; }
.palette-item .pi-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: #f2f4f7; color: var(--ink-3); }
.palette-item .pi-ico svg { width: 14px; height: 14px; }
.palette-item .pi-copy { flex: 1; min-width: 0; }
.palette-item .pi-copy b { display: block; font-size: 12.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .pi-copy span { display: block; font-size: 10.5px; color: var(--ink-4); }
.palette-item .pi-type { font-size: 10px; color: var(--ink-4); background: #f2f4f7; padding: 2px 6px; border-radius: 4px; }
.palette-foot { display: flex; gap: 14px; padding: 9px 15px; border-top: 1px solid var(--line); background: #fbfcfd; font-size: 10.5px; color: var(--ink-4); }
.palette-foot .kbd { margin-right: 4px; }
.palette-empty { padding: 34px 20px; text-align: center; color: var(--ink-4); font-size: 12px; }

/* Popover */
.popover {
  position: absolute;
  top: 54px;
  right: 20px;
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  overflow: hidden;
  animation: modalIn 0.18s ease;
}
.popover-head { display: flex; align-items: center; gap: 8px; padding: 13px 14px 9px; border-bottom: 1px solid #f3f5f8; }
.popover-head b { font-size: 12.5px; font-weight: 650; }
.popover-head .link { margin-left: auto; font-size: 10.5px; color: var(--brand); }
.notice-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f6f7f9; }
.notice-item:hover { background: #fafbfd; }
.notice-item:last-child { border-bottom: 0; }
.notice-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.notice-ico svg { width: 14px; height: 14px; }
.notice-copy { flex: 1; min-width: 0; }
.notice-copy b { display: block; font-size: 11.5px; font-weight: 550; line-height: 1.4; }
.notice-copy span { display: block; font-size: 10px; color: var(--ink-4); margin-top: 2px; }
.notice-unread { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 4px; }

/* Toast */
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #101828;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  animation: toastIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 360px;
}
.toast svg { width: 15px; height: 15px; color: #6ce9b0; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Empty state */
.empty { padding: 34px 16px; text-align: center; color: var(--ink-4); font-size: 12px; }
.empty svg { width: 28px; height: 28px; margin: 0 auto 8px; color: #c3c9d4; }

/* Responsive */
@media (max-width: 1440px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 292px; }
}
@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  :root { --explorer-w: 272px; }
  .page { padding: 22px 22px 48px; }
  .topbar { padding: 0 22px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { display: none; }
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid, .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .search-trigger { width: 196px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .detail-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  :root { --explorer-w: 248px; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .project-cards, .space-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .app-cards { grid-template-columns: 1fr; }
  .user-chip .uc-copy { display: none; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .explorer { display: none; }
  .search-trigger { width: 160px; }
  .search-trigger .st-text { display: none; }
}

/* ============================================================
   Talent supply chain (HR transformation)
   ============================================================ */
.transform-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px;
  padding: 26px 28px;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(90% 130% at 88% 0%, rgba(45, 212, 191, 0.3), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(122, 90, 248, 0.3), transparent 60%),
    linear-gradient(115deg, #07101f 0%, #0d2030 52%, #12323a 100%);
  box-shadow: 0 18px 40px -22px rgba(8, 20, 34, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.transform-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(90% 100% at 30% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
.transform-banner > * { position: relative; z-index: 1; }
.tb-copy h2 { margin: 12px 0 8px; font-size: 26px; line-height: 1.28; letter-spacing: -0.02em; font-weight: 640; }
.tb-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.08em; color: #93a9c8; }
.tb-kicker .pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #45e0a8; box-shadow: 0 0 0 4px rgba(69, 224, 168, 0.12); }
.tb-kicker .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(69, 224, 168, 0.5); animation: pulse 2.2s ease-out infinite; }
.tb-copy p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #b3c2dd; max-width: 560px; }
.tb-copy p strong { color: #e9f3ff; font-weight: 600; }
.tb-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tb-tags span { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); color: #c9d8f2; }
.tb-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.tb-step { background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; padding: 11px 12px; }
.tb-step span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; color: #5eead4; }
.tb-step b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 4px; color: #f4f8ff; }
.tb-step p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; color: #9fb0cc; }

.metric-card .m-label .m-ico { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; margin-right: 3px; }
.metric-card .m-label .m-ico svg { width: 11px; height: 11px; }

.talent-pipeline-panel { margin-top: 16px; }
.talent-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; }
.tp-col { background: #f7f9fb; border: 1px solid #edf0f5; border-radius: 12px; padding: 8px; min-height: 150px; }
.tp-col-head { display: flex; align-items: center; gap: 6px; padding: 2px 3px 2px; }
.tp-col-head b { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.tp-col-head .kc-count { font-size: 10px; color: var(--ink-4); background: #e9edf3; border-radius: 999px; padding: 0 5px; }
.tp-col-desc { font-size: 9.5px; color: var(--ink-4); padding: 3px 3px 8px; line-height: 1.4; }
.tp-card { background: #fff; border: 1px solid #e7eaf0; border-radius: 9px; padding: 9px; margin-bottom: 7px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03); cursor: pointer; transition: border 0.14s, box-shadow 0.14s, transform 0.14s; }
.tp-card:hover { border-color: #c9d3e6; box-shadow: 0 4px 12px -4px rgba(16, 24, 40, 0.12); transform: translateY(-1px); }
.tp-card-top { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.tp-card-top .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tp-prio { margin-left: auto; font-size: 9px; font-weight: 700; color: #98a2b3; }
.tp-prio.high { color: #b42318; }
.tp-prio.mid { color: #b54708; }
.tp-card > b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.tp-card > p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; color: var(--ink-4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-progress { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.tp-progress .pjc-bar { flex: 1; }
.tp-progress span { font-size: 9.5px; color: var(--ink-4); }
.tp-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: var(--ink-4); }
.tp-empty { padding: 16px 4px; text-align: center; font-size: 10px; color: #b6becb; border: 1px dashed #dfe4ec; border-radius: 8px; }

.demand-table tbody tr { cursor: pointer; }
.demand-table td { vertical-align: top; }
.demand-table td:first-child { max-width: 260px; }
.demand-table .badge { height: 20px; font-size: 10px; }

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.program-card { border: 1px solid var(--line); border-radius: 11px; padding: 11px; background: #fcfcfd; cursor: pointer; transition: border 0.14s, background 0.14s, box-shadow 0.14s; text-align: left; }
.program-card:hover { border-color: #c9d3e6; background: #fff; box-shadow: 0 4px 12px -4px rgba(16, 24, 40, 0.1); }
.program-head { display: flex; align-items: flex-start; gap: 7px; }
.program-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f4f1ff; color: #5b3fd1; flex: none; }
.program-title { flex: 1; min-width: 0; }
.program-title b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.program-title span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; }
.program-focus { margin: 8px 0 0; font-size: 10px; line-height: 1.5; color: var(--ink-3); min-height: 30px; }
.program-trainees { display: flex; align-items: center; margin-top: 8px; }
.program-bottom { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.program-bottom .pjc-bar { flex: 1; }
.program-bottom span { font-size: 9.5px; color: var(--ink-4); }
.program-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 9px; color: var(--ink-4); }

.hrbp-list { display: flex; flex-direction: column; }
.hrbp-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f3f5f8; }
.hrbp-row:last-child { border-bottom: 0; }
.hrbp-copy { flex: 1; min-width: 0; }
.hrbp-copy b { display: block; font-size: 11.5px; font-weight: 600; }
.hrbp-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; line-height: 1.4; }
.impact-row { padding: 7px 0; }
.impact-top { display: flex; align-items: center; font-size: 11px; color: var(--ink-3); }
.impact-top b { margin-left: auto; font-size: 12px; color: var(--ink-2); font-weight: 650; }
.impact-bar { height: 5px; border-radius: 5px; background: #eef1f5; overflow: hidden; margin-top: 6px; }
.impact-bar i { display: block; height: 100%; border-radius: 5px; }
.impact-note { display: flex; align-items: center; gap: 5px; margin-top: 9px; font-size: 9.5px; color: var(--ink-4); line-height: 1.5; }

@media (max-width: 1320px) {
  .transform-banner { grid-template-columns: 1fr; }
  .talent-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: 1fr; }
  .talent-pipeline { grid-template-columns: 1fr; }
}

@media (max-height: 860px) {
  .rail { padding: 10px 0 12px; gap: 2px; }
  .rail-logo { width: 34px; height: 34px; margin-bottom: 8px; border-radius: 10px; }
  .rail-logo svg { width: 19px; height: 19px; }
  .rail-nav { gap: 2px; }
  .rail-btn { width: 38px; height: 38px; border-radius: 10px; }
  .rail-btn svg { width: 18px; height: 18px; }
  .rail-spacer { margin: 4px 0; }
}

/* ============================================================
   Floating assistant
   ============================================================ */
#assistant-root { position: fixed; inset: 0; z-index: 980; pointer-events: none; }
#assistant-root > * { pointer-events: auto; }
.asst-launcher {
  position: fixed;
  right: 8px;
  bottom: 84px;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 94px;
  height: 42px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  transition: width 0.2s ease, border-radius 0.2s ease, padding 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
  color: #e8efff;
  background:
    radial-gradient(100% 160% at 0% 0%, rgba(122, 90, 248, 0.5), transparent 55%),
    linear-gradient(135deg, #111b2e, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 30px -10px rgba(10, 20, 40, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.asst-launcher:hover { width: 126px; justify-content: flex-start; gap: 9px; padding: 0 12px 0 8px; border-radius: 999px; transform: translateY(-2px); border-color: rgba(140, 166, 255, 0.42); box-shadow: 0 18px 38px -12px rgba(10, 20, 40, 0.7); }
.asst-launcher.active { border-color: rgba(140, 166, 255, 0.55); }
.asst-launcher-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 200deg, #2e5bff, #7a5af8, #2dd4bf, #2e5bff);
  color: #fff;
  box-shadow: 0 0 18px rgba(90, 120, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  flex: none;
}
.asst-launcher-copy { display: block; text-align: left; line-height: 1.15; }
.asst-launcher-copy b { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.asst-launcher-copy span { display: none; font-size: 9.5px; color: #93a5c7; margin-top: 2px; }
.asst-launcher:hover .asst-launcher-copy span { display: block; }
.asst-launcher-dot { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: #45e0a8; box-shadow: 0 0 0 3px rgba(69, 224, 168, 0.12); flex: none; }


.asst-panel {
  position: fixed;
  right: 14px;
  bottom: 144px;
  z-index: 960;
  width: 392px;
  max-height: min(640px, calc(100vh - 216px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 32px 80px -18px rgba(10, 20, 40, 0.45), 0 8px 24px -12px rgba(10, 20, 40, 0.28);
  animation: asstIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes asstIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.asst-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 85% 0%, rgba(122, 90, 248, 0.5), transparent 55%),
    linear-gradient(120deg, #0b1220, #14254a 60%, #17305a);
}
.asst-head::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.2);
  filter: blur(26px);
}
.asst-head > * { position: relative; z-index: 1; }
.asst-orb {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dce6ff;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.asst-head-copy { flex: 1; min-width: 0; }
.asst-head-copy b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; }
.asst-live { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 500; color: #9ff0d0; }
.asst-live i { width: 5px; height: 5px; border-radius: 50%; background: #45e0a8; box-shadow: 0 0 0 3px rgba(69, 224, 168, 0.12); }
.asst-head-copy > span { display: block; font-size: 10px; color: #9fb0d0; margin-top: 3px; }
.asst-close { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #9fb0d0; flex: none; }
.asst-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.asst-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 8px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.asst-tabs button {
  position: relative;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.asst-tabs button svg { width: 13px; height: 13px; }
.asst-tabs button:hover { color: var(--ink); }
.asst-tabs button.active { color: var(--brand-700); font-weight: 600; }
.asst-tabs button.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.asst-tab-count { font-size: 9px; color: var(--ink-4); background: #f2f4f7; border-radius: 999px; padding: 1px 5px; }
.asst-tabs button.active .asst-tab-count { background: var(--brand-50); color: var(--brand-700); }
.asst-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 14px 10px; background: #fbfcfd; }
.asst-label { display: flex; align-items: center; gap: 6px; margin: 12px 0 7px; font-size: 9.5px; font-weight: 650; letter-spacing: 0.06em; color: var(--ink-4); text-transform: uppercase; }
.asst-label:first-child { margin-top: 0; }
.asst-label span { font-weight: 400; letter-spacing: 0; text-transform: none; color: #b0b8c5; }
.asst-messages { display: flex; flex-direction: column; gap: 9px; }
.asst-msg { display: flex; align-items: flex-start; gap: 7px; }
.asst-msg.from-user { justify-content: flex-end; }
.asst-mini-orb { width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #4f6bff, #7a5af8); margin-top: 1px; box-shadow: 0 2px 6px -2px rgba(80, 100, 255, 0.5); }
.asst-bubble { max-width: 84%; padding: 9px 11px; border-radius: 4px 12px 12px 12px; background: #fff; border: 1px solid #e7eaf0; font-size: 11.5px; line-height: 1.65; color: var(--ink-2); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03); }
.asst-bubble.user { border-radius: 12px 4px 12px 12px; background: var(--brand); border-color: var(--brand); color: #fff; max-width: 82%; }
.asst-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; padding-bottom: 2px; }
.asst-chip { height: 25px; padding: 0 9px; border-radius: 999px; border: 1px solid #dfe5ef; background: #fff; color: var(--ink-3); font-size: 10.5px; transition: border 0.14s, color 0.14s, background 0.14s; }
.asst-chip:hover { border-color: #b9c6ff; color: var(--brand-700); background: #f7f9ff; }
.asst-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.asst-action { display: flex; align-items: flex-start; gap: 8px; text-align: left; padding: 9px; border: 1px solid #e7eaf0; border-radius: 10px; background: #fff; transition: border 0.14s, box-shadow 0.14s, transform 0.14s; }
.asst-action:hover { border-color: #c9d3e6; box-shadow: 0 4px 12px -6px rgba(16, 24, 40, 0.16); transform: translateY(-1px); }
.asst-action-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: #eef2ff; color: #2148d9; }
.asst-action-copy { min-width: 0; line-height: 1.3; }
.asst-action-copy b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-action-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; line-height: 1.35; }
.asst-compose { flex: none; display: flex; align-items: center; gap: 7px; padding: 9px 12px 7px; border-top: 1px solid var(--line); background: #fff; }
.asst-compose input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 10px; font-size: 11.5px; outline: none; background: #fbfcfd; }
.asst-compose input:focus { border-color: #9fb3ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.09); background: #fff; }
.asst-send { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; box-shadow: 0 2px 6px -2px rgba(46, 91, 255, 0.6); }
.asst-send:hover { background: var(--brand-600); }
.asst-hint { flex: none; text-align: center; font-size: 9px; color: #b0b8c5; padding: 0 12px 9px; background: #fff; }

/* Task tab */
.asst-search { position: relative; margin-bottom: 8px; }
.asst-search svg { position: absolute; left: 9px; top: 9px; width: 13px; height: 13px; color: var(--ink-4); }
.asst-search input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px 0 28px; font-size: 11.5px; outline: none; background: #fff; }
.asst-search input:focus { border-color: #b9c6ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.08); }
.asst-task-list { display: flex; flex-direction: column; gap: 5px; }
.asst-task { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 9px; border: 1px solid #e7eaf0; border-radius: 9px; background: #fff; transition: border 0.14s, background 0.14s; }
.asst-task:hover { border-color: #c9d3e6; background: #fcfdff; }
.asst-task-copy { flex: 1; min-width: 0; }
.asst-task-copy b { display: block; font-size: 11px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-task-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-task .badge { height: 19px; font-size: 9.5px; padding: 0 6px; }
.asst-task-empty { display: none; padding: 24px 10px; text-align: center; font-size: 11px; color: var(--ink-4); }
.asst-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 10.5px; color: var(--brand-700); }
.asst-link:hover { text-decoration: underline; }

/* Care tab */
.asst-care-hero { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 13px; background: linear-gradient(120deg, #fff7ed, #fdf2f8 55%, #eef2ff); border: 1px solid #f3e3d3; }
.asst-care-orb { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #d6409f; flex: none; box-shadow: 0 2px 8px -3px rgba(214, 64, 159, 0.3); }
.asst-care-copy { flex: 1; min-width: 0; }
.asst-care-copy span { display: block; font-size: 9.5px; color: #b06a8c; }
.asst-care-copy b { display: block; font-size: 16px; font-weight: 680; color: #7a2e52; margin: 2px 0; }
.asst-care-copy span:last-child { color: #9c7688; }
.asst-care-msg { margin: 10px 0 8px; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.asst-wish { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; background: #fff0f7; color: #b02a7a; border: 1px solid #f5cee3; font-size: 10.5px; font-weight: 550; }
.asst-wish:hover { background: #ffe6f3; }
.asst-wish.done { background: #e7f8f1; color: #067647; border-color: #c6eedd; }
.asst-bday-list { display: flex; flex-direction: column; gap: 5px; }
.asst-bday { display: flex; align-items: center; gap: 8px; padding: 6px 7px; border-radius: 8px; background: #fff; border: 1px solid #eef1f5; }
.asst-bday-copy { flex: 1; min-width: 0; }
.asst-bday-copy b { display: block; font-size: 10.5px; font-weight: 550; }
.asst-bday-copy span { display: block; font-size: 9px; color: var(--ink-4); margin-top: 1px; }
.asst-bday-when { font-size: 9.5px; color: #8a6414; background: #fdf6e3; border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.asst-benefits { display: flex; flex-direction: column; gap: 5px; }
.asst-benefit { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; background: #fff; border: 1px solid #eef1f5; text-align: left; }
.asst-benefit:hover { border-color: #d7dce7; }
.asst-benefit-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.asst-benefit-copy { flex: 1; min-width: 0; }
.asst-benefit-copy b { display: block; font-size: 10.5px; font-weight: 550; }
.asst-benefit-copy span { display: block; font-size: 9px; color: var(--ink-4); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-benefit-status { font-size: 9px; color: var(--brand-700); background: var(--brand-50); border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.asst-anniv { display: flex; flex-direction: column; gap: 5px; padding: 8px 9px; border-radius: 8px; background: #fff; border: 1px solid #eef1f5; font-size: 10px; color: var(--ink-3); }
.asst-anniv div { display: flex; align-items: center; gap: 4px; }
.asst-anniv b { color: var(--ink-2); font-weight: 600; }
.asst-anniv span { margin-left: auto; color: var(--ink-4); font-size: 9px; }
.asst-care-tip { display: flex; align-items: center; gap: 5px; margin-top: 10px; padding: 7px 8px; border-radius: 8px; background: #f7f9ff; color: var(--ink-3); font-size: 9.5px; line-height: 1.45; }
.asst-care-tip svg { flex: none; color: #d6409f; }

@media (max-width: 700px) {
  .asst-launcher { right: 10px; bottom: 72px; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .asst-launcher-copy, .asst-launcher-dot { display: none; }
  .asst-panel { right: 10px; bottom: 128px; width: calc(100vw - 20px); max-height: min(600px, calc(100vh - 200px)); }
}

/* Topbar assistant entry + launcher pulse */
.assistant-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #dce5f5;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbfdff, #f2f6ff);
  color: var(--ink-2);
  font-size: 11.5px;
  flex: none;
  transition: border 0.15s, background 0.15s, box-shadow 0.15s;
}
.assistant-top-btn:hover { border-color: #b9c6ff; background: #fff; box-shadow: 0 2px 8px -4px rgba(46, 91, 255, 0.3); }
.assistant-top-btn svg { color: var(--violet); }
.atb-dot { width: 5px; height: 5px; border-radius: 50%; background: #45e0a8; box-shadow: 0 0 0 3px rgba(69, 224, 168, 0.12); }
.asst-launcher::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(110, 140, 255, 0.4);
  animation: asstRing 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes asstRing { 0% { transform: scale(0.98); opacity: 0.8; } 70% { transform: scale(1.06); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 1180px) { .assistant-top-btn span { display: none; } .assistant-top-btn { padding: 0 8px; } }

/* ============================================================
   Application switcher (topbar)
   ============================================================ */
.app-switch-wrap { position: relative; flex: none; }
.app-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  max-width: 224px;
  padding: 4px 8px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}
.app-switch:hover { border-color: #c9d3e6; background: #fcfdff; box-shadow: 0 2px 8px -4px rgba(16, 24, 40, 0.12); }
.app-switch[aria-expanded="true"] { border-color: #b9c6ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.08); }
.app-switch .app-ico { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.app-switch-all { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef2ff; color: var(--brand); flex: none; }
.app-switch-all svg { width: 14px; height: 14px; }
.app-switch-copy { flex: 1; min-width: 0; line-height: 1.15; }
.app-switch-copy b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-switch-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-switch > svg { color: var(--ink-4); flex: none; }
.topbar-vsep { width: 1px; height: 22px; background: var(--line); flex: none; }

.app-switch-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 352px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  overflow: hidden;
  animation: modalIn 0.16s ease;
}
.asp-head { display: flex; align-items: center; gap: 8px; padding: 12px 13px 8px; border-bottom: 1px solid #f3f5f8; }
.asp-head b { font-size: 12px; font-weight: 650; }
.asp-head a { margin-left: auto; font-size: 10px; color: var(--brand-700); display: inline-flex; align-items: center; gap: 2px; }
.asp-list { max-height: 348px; overflow-y: auto; padding: 5px; }
.asp-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; }
.asp-item:hover { background: #f6f8fc; }
.asp-item.active { background: #f0f4ff; }
.asp-copy { flex: 1; min-width: 0; }
.asp-copy b { display: block; font-size: 11.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asp-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; }
.asp-check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.asp-go { color: #c3c9d4; flex: none; }
.asp-foot { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); background: #fbfcfd; }
.asp-foot button, .asp-foot a { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); }
.asp-foot button:hover, .asp-foot a:hover { color: var(--brand-700); }
.asp-foot a { margin-left: auto; }

@media (max-width: 1280px) {
  .topbar { gap: 10px; }
  .app-switch { max-width: 178px; }
  .app-switch-copy span { display: none; }
  .assistant-top-btn span { display: none; }
  .user-chip .uc-copy { display: none; }
}
@media (max-width: 1120px) {
  .topbar .icon-btn[data-tip="命令面板"] { display: none; }
  .app-switch { max-width: 150px; }
}

/* ============================================================
   Work entry (home)
   ============================================================ */
.work-entry {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 20px 22px 12px;
  border-radius: var(--r-xl);
  border: 1px solid #e1e8f6;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(122, 90, 248, 0.1), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(45, 212, 191, 0.08), transparent 55%),
    linear-gradient(120deg, #f9fbff, #eef4ff 55%, #f7f3ff);
  box-shadow: 0 8px 26px -18px rgba(30, 60, 140, 0.28);
}
.we-glow { position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(122, 90, 248, 0.13); filter: blur(32px); pointer-events: none; }
.we-head { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 18px; }
.we-title { flex: 1; min-width: 0; }
.we-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); }
.we-title h2 { margin: 7px 0 4px; font-size: 22px; line-height: 1.25; font-weight: 660; letter-spacing: -0.02em; color: var(--ink); }
.we-title p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
.we-orb {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: none;
  color: #e8efff;
  background:
    radial-gradient(100% 140% at 20% 0%, rgba(122, 90, 248, 0.55), transparent 60%),
    linear-gradient(145deg, #14254a, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px -10px rgba(20, 37, 74, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.we-orb span { font-size: 8px; color: #9fb0d0; letter-spacing: 0.02em; }
.we-composer {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 10px 12px 9px;
  border-radius: 14px;
  border: 1px solid #dfe7f5;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px -10px rgba(30, 60, 140, 0.25);
  backdrop-filter: blur(6px);
}
.we-features { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.we-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid #dfe7f5;
  border-radius: 7px;
  background: #fbfdff;
  color: var(--ink-3);
  font-size: 10px;
  white-space: nowrap;
  transition: border 0.14s, background 0.14s, color 0.14s;
}
.we-chip:hover { border-color: #b9c6ff; background: #f7f9ff; color: var(--brand-700); }
.we-chip.muted { color: var(--ink-4); background: #fff; }
.we-input {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 110px;
  padding: 7px 2px 3px;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.we-input::placeholder { color: #a9b2c2; }
.we-toolbar { display: flex; align-items: center; gap: 7px; padding-top: 7px; border-top: 1px solid #eef2f8; }
.we-select {
  height: 28px;
  max-width: 190px;
  border: 1px solid #dfe6f1;
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--ink-2);
  font-size: 10.5px;
  padding: 0 6px;
  outline: none;
}
.we-select:focus { border-color: #b9c6ff; box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.08); }
.we-perm { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--ink-4); white-space: nowrap; }
.we-spacer { flex: 1; }
.we-send { height: 30px; padding: 0 12px; font-size: 11px; border-radius: 7px; }
.we-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 0 2px; }
.we-foot-label { font-size: 9.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.we-foot a { font-size: 10px; color: var(--ink-3); }
.we-foot a:hover { color: var(--brand-700); }
.we-foot-tip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 9px; color: #a9b2c2; }
.we-foot-tip svg { flex: none; }

@media (max-width: 900px) {
  .we-orb { display: none; }
  .we-toolbar { flex-wrap: wrap; }
  .we-perm { display: none; }
  .we-select { max-width: 150px; }
  .we-foot-tip { display: none; }
  .we-foot { gap: 9px; flex-wrap: wrap; }
}

/* ============================================================
   Collapsible home hero
   ============================================================ */
.hero { transition: padding 0.22s ease, min-height 0.22s ease, grid-template-columns 0.22s ease; }
.hero-topline { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.hero-toggle {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #dce6ff;
  font-size: 10.5px;
  white-space: nowrap;
  flex: none;
  transition: background 0.15s, border 0.15s;
}
.hero-toggle:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.24); }
.hero-brief { display: none; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.hero-brief span { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); color: #c7d3ee; font-size: 10px; }
.hero-brief i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.hero.collapsed { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 13px 24px 14px; gap: 0; }
.hero.collapsed .hero-copy { justify-content: center; }
.hero.collapsed .hero-topline { max-width: 100%; }
.hero.collapsed h2 { margin: 6px 0 7px; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.hero.collapsed .hero-brief { display: flex; }
.hero.collapsed .hero-brief span { height: 21px; font-size: 9.5px; padding: 0 7px; }
.hero.collapsed .hero-kicker { font-size: 10.5px; }
.hero.collapsed .hero-toggle { height: 24px; font-size: 10px; }
.hero.collapsed .hero-actions,
.hero.collapsed .hero-side,
.hero.collapsed .hero-copy > p { display: none; }
.hero.expanded .hero-brief { display: none; }
.hero.expanded .hero-side { padding-top: 24px; }

/* ============================================================
   My teams
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 17px; box-shadow: var(--shadow-xs); transition: border 0.16s, box-shadow 0.16s; }
.team-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-sm); }
.team-head { display: flex; align-items: flex-start; gap: 9px; }
.team-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.team-title { flex: 1; min-width: 0; }
.team-title b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.team-title span { display: block; font-size: 10px; color: var(--ink-4); margin-top: 3px; }
.team-mission { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); min-height: 37px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-goal { margin-top: 10px; padding: 9px 10px; background: #fbfcfd; border: 1px solid #eef1f5; border-radius: 9px; }
.team-goal-top { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-bottom: 5px; }
.team-goal-top b { color: var(--ink-2); font-weight: 600; }
.team-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.team-stats > div { padding: 7px 8px; border-radius: 8px; background: #fbfcfd; border: 1px solid #f0f2f6; }
.team-stats span { display: block; font-size: 9px; color: var(--ink-4); }
.team-stats b { display: block; font-size: 15px; font-weight: 680; color: var(--ink-2); margin-top: 2px; }
.team-stats b small { font-size: 9px; color: var(--ink-4); font-weight: 500; }
.team-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #f2f4f7; flex-wrap: wrap; }
.team-foot .btn { height: 27px; font-size: 10.5px; padding: 0 8px; }
.team-create { min-height: 260px; }

.team-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.team-mini { display: flex; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-xs); transition: border 0.15s, box-shadow 0.15s, transform 0.15s; min-width: 0; }
.team-mini:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.team-mini-head { display: flex; align-items: flex-start; gap: 8px; }
.team-mini-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.team-mini-title { flex: 1; min-width: 0; }
.team-mini-title b { display: -webkit-box; font-size: 12.5px; font-weight: 620; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 16px; }
.team-mini-title span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; }
.team-mini p { margin: 9px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--ink-3); min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-mini-foot { display: flex; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f2f4f7; }
.team-mini-score { font-size: 9.5px; color: var(--ink-3); }

.team-disband-note { display: flex; align-items: flex-start; gap: 7px; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; border: 1px solid #e7ecf5; font-size: 10.5px; line-height: 1.55; color: var(--ink-3); margin-bottom: 12px; }
.team-disband-note.warn { background: #fffaeb; border-color: #f7e3b5; color: #8a5a05; }
.team-disband-note svg { flex: none; margin-top: 1px; }
.team-perf-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; }
.team-score-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px; background: #fbfcfd; border: 1px solid #eef1f5; border-radius: 12px; }
.team-score-ring { position: relative; display: inline-grid; place-items: center; }
.team-score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--ink); }
.team-score-card > span:nth-child(2) { font-size: 11px; color: var(--ink-3); }
.team-score-card small { font-size: 9.5px; color: var(--ink-4); }
.perf-bars { display: flex; flex-direction: column; gap: 6px; }
.perf-row { padding: 2px 0; }
.perf-top { display: flex; align-items: center; font-size: 10.5px; color: var(--ink-3); }
.perf-top b { margin-left: auto; color: var(--ink-2); font-weight: 600; }
.perf-bar { height: 5px; border-radius: 5px; background: #eef1f5; overflow: hidden; margin-top: 4px; }
.perf-bar i { display: block; height: 100%; border-radius: 5px; }
.team-goal-list { display: flex; flex-direction: column; gap: 8px; }
.team-goal-item { padding: 8px 10px; border: 1px solid #eef1f5; border-radius: 9px; background: #fbfcfd; }
.team-goal-item .row { font-size: 11px; color: var(--ink-2); margin-bottom: 5px; }
.team-goal-item .row b { margin-left: auto; font-weight: 600; }
.team-goal-item > .tiny { display: block; margin-top: 3px; }
.team-member-table { border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden; }
.team-member-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid #f2f4f7; }
.team-member-row:last-child { border-bottom: 0; }
.tm-copy { flex: 1; min-width: 0; }
.tm-copy b { display: block; font-size: 11px; font-weight: 550; }
.tm-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-member-row .badge { height: 17px; font-size: 8.5px; }
.team-overview-list { display: flex; flex-direction: column; border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden; }
.team-overview-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-bottom: 1px solid #f2f4f7; }
.team-overview-row:last-child { border-bottom: 0; }
.team-overview-row .num { margin-left: 8px; font-size: 14px; color: var(--ink); }
.team-member-picker { max-height: 230px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 3px; border: 1px solid #eef1f5; border-radius: 9px; background: #fbfcfd; }
.member-option { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 7px; background: #fff; border: 1px solid #f0f2f6; font-size: 10px; cursor: pointer; }
.member-option:hover { border-color: #c9d3e6; }
.member-option input { accent-color: var(--brand); }
.member-option > span:not(.badge):not(.avatar) { flex: 1; min-width: 0; }
.member-option small { display: block; font-size: 8.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1280px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-mini-grid { grid-template-columns: 1fr 1fr; }
  .team-perf-grid { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .team-mini-grid { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: 1fr 1fr; }
  .team-member-picker { grid-template-columns: 1fr; }
  .team-perf-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Digital employee training plans
   ============================================================ */
.training-plan-row { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 8px; margin: 0 -8px; border-radius: 9px; border: 0; background: transparent; color: inherit; }
.training-plan-row:hover { background: #f7f9fc; }
.training-plan-row + .training-plan-row { border-top: 1px solid #f2f4f7; }
.tp-ico { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #EEF2FF; color: #2148D9; flex: none; }
.tp-ico.done { background: #E7F8F1; color: #067647; }
.tp-main { flex: 1; min-width: 0; }
.tp-title { display: flex; align-items: center; gap: 6px; }
.tp-title b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-title .badge { height: 17px; font-size: 8.5px; flex: none; }
.tp-source { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-progress { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.tp-progress .pbar { flex: 1; }
.tp-progress small { font-size: 9px; color: var(--ink-4); width: 28px; text-align: right; }
.tp-meta { text-align: right; flex: none; }
.tp-meta b { display: block; font-size: 14px; font-weight: 650; }
.tp-meta small { display: block; font-size: 8.5px; color: var(--ink-4); }
.tp-chev { color: var(--ink-4); flex: none; }
.tp-loop { margin-top: 10px; padding-top: 9px; border-top: 1px solid #f2f4f7; font-size: 9.5px; color: var(--ink-4); display: flex; align-items: center; gap: 5px; }
.tp-source-card { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #e7ecf5; border-radius: 10px; background: #fbfcfd; }
.tp-source-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #EEF2FF; color: #2148D9; flex: none; }
.tp-source-copy { flex: 1; min-width: 0; }
.tp-source-copy b { display: block; font-size: 11px; font-weight: 600; }
.tp-source-copy span { display: block; font-size: 9.5px; color: var(--ink-4); margin-top: 2px; }
.tp-review { padding: 10px 12px; background: #fbfcfd; border: 1px solid #eef1f5; border-radius: 9px; font-size: 11px; line-height: 1.65; color: var(--ink-2); }
.tp-findings { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tp-findings .chip { height: 21px; font-size: 9px; }
.tp-goal-list { display: flex; flex-direction: column; gap: 8px; }
.tp-goal-item { padding: 9px 10px; border: 1px solid #eef1f5; border-radius: 9px; background: #fff; }
.tp-goal-top { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-4); }
.tp-goal-top b { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.tp-goal-top b:last-of-type { color: var(--ink); }
.tp-goal-bar { display: flex; align-items: center; gap: 7px; margin-top: 6px; }
.tp-goal-bar .pjc-bar { flex: 1; }
.tp-goal-bar small { font-size: 9px; color: var(--ink-4); width: 30px; text-align: right; }
.tp-attain { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding: 10px 12px; border: 1px solid #e7ecf5; border-radius: 10px; background: #fbfcfd; }
.tp-attain-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.tp-attain-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.tp-attain-copy { flex: 1; min-width: 0; }
.tp-attain-copy b { display: block; font-size: 11px; font-weight: 600; }
.tp-attain-copy span { display: block; font-size: 10px; line-height: 1.55; color: var(--ink-4); margin-top: 2px; }
.tp-modules { border: 1px solid #eef1f5; border-radius: 9px; overflow: hidden; }
.tp-module-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-bottom: 1px solid #f2f4f7; }
.tp-module-row:last-child { border-bottom: 0; }
.tp-module-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #F4F1FF; color: #5B3FD1; flex: none; }
.tp-module-copy { flex: 1; min-width: 0; }
.tp-module-copy b { display: block; font-size: 10.5px; font-weight: 550; }
.tp-module-copy span { display: block; font-size: 9px; color: var(--ink-4); margin-top: 1px; }
.tp-module-row .pjc-bar { width: 56px; flex: none; }
.tp-module-row .chip { height: 18px; font-size: 8.5px; }
.tp-goal-form { border: 1px solid #eef1f5; border-radius: 9px; overflow: hidden; }
.tp-goal-form-head, .tp-goal-form-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 70px 80px 64px; gap: 5px; align-items: center; padding: 5px 6px; }
.tp-goal-form-head { background: #fbfcfd; border-bottom: 1px solid #eef1f5; font-size: 9px; color: var(--ink-4); }
.tp-goal-form-row { border-bottom: 1px solid #f5f7fa; }
.tp-goal-form-row:last-child { border-bottom: 0; }
.tp-goal-form-row .input, .tp-goal-form-row .select { height: 29px; font-size: 10px; padding: 0 7px; }

/* Illustrated employee avatars + AI mark */
.avatar { overflow: visible; }
.avatar-art { width: 100%; height: 100%; display: block; border-radius: inherit; }
.avatar .ai-mark {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(1em + 5px);
  min-width: calc(1.55em + 3px);
  padding: 0 2px;
  border-radius: 5px;
  border: 1.5px solid #fff;
  background: linear-gradient(135deg, #111827, #2E5BFF);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.015em;
  box-shadow: 0 2px 6px rgba(10, 20, 40, 0.28);
  white-space: nowrap;
}
.avatar-stack .avatar .ai-mark { right: -2px; bottom: -2px; }
.pc-head .avatar-art, .profile-hero .avatar-art { border-radius: 50%; }
.avatar.sq .avatar-art { border-radius: 8px; }
.avatar-stack.has-ai .avatar { margin-left: 2px; }
.avatar-stack.has-ai .avatar:first-child { margin-left: 0; }
.avatar-stack.has-ai .avatar-more { margin-left: 2px; }

/* ============================================================
   Capability loop (home strip + page)
   ============================================================ */
.capability-strip { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 13px; margin-top: 18px; box-shadow: var(--shadow-xs); }
.cap-strip-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.cap-strip-head h3 { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; margin-top: 3px; }
.cap-eyebrow { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.11em; color: #0E9F6E; text-transform: uppercase; }
.cap-strip-head > .sh-link { margin-left: auto; margin-top: 4px; white-space: nowrap; }
.cap-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.cap-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 32px; height: 1px; background: linear-gradient(90deg, rgba(14,159,110,0), #A7E3C8 16%, #A7E3C8 84%, rgba(14,159,110,0)); z-index: 0; }
.cap-step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.cap-num { width: 46px; height: 46px; margin: 0 auto 9px; border-radius: 50%; display: grid; place-items: center; color: #0E9F6E; background: #fff; border: 2px solid #0E9F6E; font-size: 15px; font-weight: 650; box-shadow: 0 0 0 6px rgba(14, 159, 110, 0.06), 0 4px 10px -6px rgba(14, 159, 110, 0.35); }
.cap-step-copy b { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.cap-step-copy p { margin: 6px auto 0; max-width: 230px; font-size: 10.5px; line-height: 1.65; color: var(--ink-3); }
.cap-tags { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.cap-tags span { display: inline-flex; height: 19px; align-items: center; padding: 0 6px; border-radius: 999px; font-size: 8.5px; color: #067647; background: #ECFDF3; border: 1px solid #D1FADF; }
.cap-strip-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; padding-top: 9px; border-top: 1px solid #f0f2f6; font-size: 9px; color: var(--ink-4); }
.cap-strip-foot .spacer { flex: 1; }
.cap-strip-foot span { display: inline-flex; align-items: center; gap: 4px; }

.cap-hero { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px 20px; box-shadow: var(--shadow-xs); }
.cap-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cap-flow.large { margin-top: 2px; }
.cap-flow.large::before { top: 42px; }
.cap-flow.large .cap-num { width: 58px; height: 58px; font-size: 19px; margin-bottom: 13px; box-shadow: 0 0 0 8px rgba(14, 159, 110, 0.055), 0 8px 20px -12px rgba(14, 159, 110, 0.45); }
.cap-flow.large .cap-step-copy b { font-size: 15px; }
.cap-flow.large .cap-step-copy p { font-size: 11.5px; line-height: 1.7; max-width: 260px; }
.cap-flow.large .cap-tags { margin-top: 10px; }
.cap-flow.large .cap-tags span { height: 21px; font-size: 9.5px; padding: 0 8px; }
.cap-lead { display: flex; align-items: flex-start; justify-content: center; gap: 4px; max-width: 780px; margin: 16px auto 6px; color: var(--ink-2); }
.cap-lead p { font-size: 14px; line-height: 1.75; text-align: center; font-weight: 500; }
.cap-quote { color: #A7E3C8; font-size: 38px; line-height: 1; font-family: Georgia, serif; }
.cap-quote.end { align-self: flex-end; }
.cap-example, .cap-matrix-wrap, .cap-deliver { margin-top: 18px; }
.cap-section-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 9px; }
.cap-section-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; margin-top: 3px; }
.cap-section-head > .chip { margin-left: auto; }
.cap-section-head > .tiny { margin-left: auto; }
.cap-request { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border: 1px solid #dbe7f7; background: #f7faff; border-radius: 10px; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.cap-request svg { color: var(--brand); flex: none; margin-top: 1px; }
.cap-walk { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.cap-walk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-bottom: 1px solid #f2f4f7; }
.cap-walk-row:last-child { border-bottom: 0; }
.cap-walk-num { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #ECFDF3; color: #067647; font-size: 10px; font-weight: 700; }
.cap-walk-row b { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.cap-walk-row p { font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.cap-walk-row .badge { margin-top: 3px; white-space: nowrap; }
.cap-matrix { overflow: hidden; }
.cap-matrix-head, .cap-matrix-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 220px; gap: 14px; align-items: center; padding: 10px 15px; }
.cap-matrix-head { background: #fbfcfd; border-bottom: 1px solid var(--line); font-size: 9.5px; color: var(--ink-4); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cap-matrix-row { border-bottom: 1px solid #f2f4f7; font-size: 10.5px; color: var(--ink-3); }
.cap-matrix-row:last-child { border-bottom: 0; }
.cap-matrix-row:hover { background: #fbfcfd; }
.cap-matrix-name { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.cap-matrix-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #ECFDF3; color: #067647; flex: none; }
.cap-matrix-proof { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); font-size: 10px; }
.cap-deliver-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cap-deliver-card { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cd-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 8px; }
.cd-ico.board { background: #EEF2FF; color: #2148D9; }
.cd-ico.doc { background: #F4F1FF; color: #5B3FD1; }
.cd-ico.sheet { background: #E7F8F1; color: #067647; }
.cd-ico.slide { background: #FFF5E6; color: #B54708; }
.cap-deliver-card b { display: block; font-size: 12px; font-weight: 600; }
.cap-deliver-card span:last-child { display: block; font-size: 10px; color: var(--ink-4); line-height: 1.55; margin-top: 3px; }
.cap-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 11px 13px; border: 1px solid #dbe7f7; background: #f7faff; border-radius: 10px; font-size: 10.5px; line-height: 1.65; color: var(--ink-3); }
.cap-note svg { color: var(--brand); flex: none; margin-top: 1px; }

@media (max-width: 1280px) {
  .cap-deliver-grid { grid-template-columns: 1fr 1fr; }
  .cap-matrix-head, .cap-matrix-row { grid-template-columns: 150px minmax(0, 1fr) 190px; }
}
@media (max-width: 1100px) {
  .capability-strip .cap-flow { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .capability-strip .cap-flow::before { display: none; }
  .capability-strip .cap-step { padding: 2px 10px; }
  .cap-flow.large { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .cap-flow.large::before { display: none; }
}
@media (max-width: 900px) {
  .cap-flow.large { grid-template-columns: 1fr; gap: 16px; }
  .cap-matrix { overflow-x: auto; }
  .cap-matrix-head, .cap-matrix-row { min-width: 720px; }
  .cap-deliver-grid { grid-template-columns: 1fr 1fr; }
  .cap-walk-row { grid-template-columns: 34px minmax(0, 1fr); }
  .cap-walk-row .badge { grid-column: 2; justify-self: start; }
}

/* Capability page: eight scenarios + trust layer */
.cap-section-sub { margin: -3px 0 10px; font-size: 10.5px; color: var(--ink-4); line-height: 1.55; }
.cap-eight-wrap, .cap-security-wrap { margin-top: 18px; }
.cap-eight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.cap-eight-card { display: flex; flex-direction: column; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; min-height: 168px; transition: border 0.15s, box-shadow 0.15s, transform 0.15s; }
.cap-eight-card:hover { border-color: #c9d3e6; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ce-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ce-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.ce-en { font-size: 8.5px; font-weight: 650; letter-spacing: 0.08em; color: var(--ink-4); text-transform: uppercase; }
.cap-eight-card > b { font-size: 13px; font-weight: 650; }
.cap-eight-card > p { margin: 5px 0 0; font-size: 10px; line-height: 1.6; color: var(--ink-3); min-height: 48px; }
.ce-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }
.ce-tags i { font-style: normal; font-size: 8.5px; padding: 2px 5px; border-radius: 999px; background: #f7f9fc; border: 1px solid #eef1f5; color: var(--ink-3); }
.ce-more { display: flex; align-items: center; gap: 3px; margin-top: auto; padding-top: 8px; font-size: 9.5px; color: var(--brand-700); }
.cap-eight-card:hover .ce-more { color: var(--brand); }

.cap-ontology { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, #fbfcff, #f4f8ff 65%, #f7fffc); }
.cap-ontology-copy h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; margin-top: 4px; }
.cap-ontology-copy > p { margin-top: 7px; font-size: 11px; line-height: 1.7; color: var(--ink-3); max-width: 560px; }
.cap-ontology-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 11px; }
.cap-ontology-pills span { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px; border: 1px solid #e7ecf5; border-radius: 8px; background: rgba(255,255,255,.72); font-size: 9.5px; color: var(--ink-4); }
.cap-ontology-pills b { font-size: 9px; color: #067647; font-weight: 650; letter-spacing: 0.04em; }
.cap-ontology-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.cap-ontology-tags span { font-size: 9px; padding: 3px 7px; border-radius: 999px; color: #2148D9; background: #EEF2FF; }
.cap-ontology-card { padding: 13px; border: 1px solid #dbe7f7; border-radius: 12px; background: #fff; box-shadow: var(--shadow-xs); align-self: center; }
.co-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--ink-3); }
.co-card-head > span:first-child { display: flex; align-items: center; gap: 4px; }
.co-metric { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f2f6; }
.co-metric span { font-size: 10px; color: var(--ink-3); }
.co-metric b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.co-formula { margin-top: 8px; padding: 7px 9px; background: #fbfcfd; border: 1px solid #eef1f5; border-radius: 7px; font-size: 10px; color: var(--ink-2); }
.co-formula i { color: var(--ink-4); font-style: normal; }
.co-proof { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 9px; font-size: 8.5px; color: #067647; }
.co-proof span { display: inline-flex; align-items: center; gap: 3px; }
.co-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f2f6; font-size: 9px; color: var(--ink-4); line-height: 1.5; }

.cap-security-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cap-security-step { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.cs-num { position: absolute; top: 10px; right: 11px; font-size: 9px; color: #c3c9d4; font-weight: 650; }
.cs-ico { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: #ECFDF3; color: #067647; margin-bottom: 8px; }
.cap-security-step b { display: block; font-size: 12px; font-weight: 600; }
.cap-security-step p { margin-top: 4px; font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }
.cap-security-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.cap-security-tags span { font-size: 9px; padding: 3px 8px; border-radius: 999px; border: 1px solid #e7ecf5; color: var(--ink-3); background: #fbfcfd; }

.cap-deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.cap-deep-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cap-deep-head h3 { font-size: 15px; font-weight: 650; margin-top: 3px; letter-spacing: -0.01em; }
.cap-deep-row { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f2f4f7; }
.cap-deep-row:last-of-type { border-bottom: 0; }
.cap-deep-ico { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: #EEF2FF; color: #2148D9; flex: none; }
.cap-deep-row b { display: block; font-size: 11px; font-weight: 600; }
.cap-deep-row p { margin-top: 2px; font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }
.cap-deep-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f2f4f7; font-size: 9px; color: var(--ink-4); }
.cap-eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cap-eco-card { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid #e7ecf5; border-radius: 12px; background: #fbfcfd; }
.cap-eco-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #F4F1FF; color: #5B3FD1; flex: none; }
.cap-eco-card h3 { display: inline; margin-left: 6px; font-size: 13px; font-weight: 650; }
.cap-eco-card p { margin-top: 3px; font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }

.cap-demo-request { display: flex; align-items: flex-start; gap: 7px; padding: 10px 12px; border: 1px solid #dbe7f7; background: #f7faff; border-radius: 9px; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.cap-demo-request svg { color: var(--brand); flex: none; margin-top: 1px; }
.cap-demo-result { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding: 11px 12px; border: 1px solid #e7ecf5; border-radius: 9px; background: #fff; }
.cap-demo-result b { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.cap-demo-result span { font-size: 10.5px; color: var(--ink-3); line-height: 1.55; }
.cap-demo-bullets { display: flex; flex-direction: column; gap: 7px; }
.cap-demo-bullets > div { display: flex; align-items: flex-start; gap: 6px; font-size: 10.5px; line-height: 1.55; color: var(--ink-3); }
.cap-demo-bullets svg { color: #067647; flex: none; margin-top: 1px; }
.cap-demo-links { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cap-demo-links .btn { margin-left: auto; }

@media (max-width: 1180px) {
  .cap-eight-grid { grid-template-columns: 1fr 1fr; }
  .cap-ontology { grid-template-columns: 1fr; }
  .cap-security-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cap-deep-grid, .cap-eco-grid { grid-template-columns: 1fr; }
  .cap-ontology-pills { grid-template-columns: 1fr; }
  .cap-eight-grid { grid-template-columns: 1fr 1fr; }
}

/* Global demo watermark + filing footer */
.main::before {
  content: "";
  position: absolute;
  inset: 64px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='220'%3E%3Ctext x='170' y='115' text-anchor='middle' fill='%230B1220' fill-opacity='.065' font-family='PingFang SC,Microsoft YaHei,sans-serif' font-size='25' font-weight='700' transform='rotate(-24 170 115)'%3E%E6%BC%94%E7%A4%BA%E5%8E%9F%E5%9E%8B%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 340px 220px;
}
.main-scroll { position: relative; z-index: 1; }
.app-footer { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--ink-4); flex-wrap: wrap; }
.af-left { display: inline-flex; align-items: center; gap: 4px; }
.af-left svg { color: var(--ink-4); }
.af-sep { width: 1px; height: 10px; background: var(--line); }
.af-name { color: var(--ink-4); }
.af-spacer { flex: 1; }
.app-footer a { color: var(--ink-3); transition: color 0.15s; }
.app-footer a:hover { color: var(--brand-700); }
@media (max-width: 700px) {
  .app-footer { gap: 5px; margin-top: 22px; }
  .af-sep, .af-name { display: none; }
  .af-spacer { flex-basis: 100%; height: 0; }
}
