﻿:root {
  --ink: #161b22;
  --text: #354052;
  --muted: #7b8494;
  --line: #e5eaf0;
  --bg: #f8fafb;
  --panel: rgba(255,255,255,.88);
  --green: #22ad78;
  --green-soft: #edf8f2;
  --blue: #3d7df6;
  --blue-soft: #eef5ff;
  --violet: #7b5cff;
  --violet-soft: #f3efff;
  --amber: #f0a03a;
  --amber-soft: #fff5e6;
  --shadow: 0 18px 48px rgba(35, 45, 61, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(34,173,120,.11), transparent 24%),
    linear-gradient(180deg, #fff 0%, var(--bg) 58%, #f1f4f7 100%);
}

button, textarea { font: inherit; }
button { cursor: pointer; }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr) 250px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: rgba(248,250,250,.74);
  border-right: 1px solid rgba(229,234,240,.86);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand img {
  width: 126px;
  height: auto;
  mix-blend-mode: multiply;
  display: block;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #1f2733;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-weight: 700;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, #eaf7f1, rgba(255,255,255,.82));
  border-color: rgba(34,173,120,.18);
  box-shadow: 0 10px 24px rgba(34,173,120,.08);
}

.nav-ico {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.nav-ico svg { width: 20px; height: 20px; }

.ico-inline { width: 1.1em; height: 1.1em; vertical-align: -0.22em; flex: 0 0 auto; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.prd-link {
  display: block;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  opacity: .55;
  transition: opacity .15s, color .15s, background .15s;
}

.prd-link:hover {
  opacity: 1;
  color: var(--green);
  background: rgba(34,173,120,.06);
}

.content {
  min-width: 0;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
}

.tabs-bar {
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 8px 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.tab {
  height: 38px;
  min-width: 132px;
  max-width: 168px;
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  border-radius: 9px 9px 0 0;
  background: rgba(246,248,250,.86);
  color: #343d4b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
  box-shadow: 0 5px 16px rgba(35,45,61,.04);
}

.tab.active {
  background: #fff;
  border-color: rgba(34,173,120,.32);
  border-bottom-color: #fff;
  font-weight: 800;
}

.tab.add {
  min-width: 46px;
  justify-content: center;
  color: #687385;
  font-size: 20px;
}

.workspace {
  max-width: 1080px;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: 34px 22px 30px;
  display: flex;
  flex-direction: column;
}

.growth {
  width: 100%;
  border: 1px solid rgba(229,234,240,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 46px rgba(35,45,61,.055);
  padding: 18px 20px;
  margin-bottom: 26px;
}

.growth-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #26313f;
  font-weight: 800;
}

.growth-head button {
  border: 0;
  background: transparent;
  color: #687385;
  font-weight: 650;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.metric-label {
  color: #5d6878;
  font-size: 13px;
  font-weight: 720;
  margin-bottom: 12px;
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 7px;
}

.metric span {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.spark {
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, transparent 42%, rgba(61,125,246,.16) 43%, rgba(61,125,246,.16) 56%, transparent 57%),
    linear-gradient(180deg, rgba(61,125,246,.12), rgba(61,125,246,.02));
  position: relative;
  overflow: hidden;
}

.spark:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 10px;
  top: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(-9deg);
}

.center-stage {
  text-align: center;
  margin: 12px auto 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #dff7e9;
  border: 1px solid rgba(34,173,120,.2);
  color: #1e8f63;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.center-logo img {
  width: 200px;
  height: auto;
  mix-blend-mode: multiply;
  display: block;
  margin: 0 auto;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: min(780px, 100%);
  margin: 0 auto 14px;
}

.btn {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: #27313f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(35,45,61,.045);
}

.btn.primary {
  background: #def7e8;
  border-color: rgba(34,173,120,.24);
  color: #155f43;
}

.ask-card {
  width: min(780px, 100%);
  min-height: 122px;
  margin: 0 auto;
  border: 1px solid rgba(25,35,45,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 20px 50px rgba(35,45,61,.12);
  padding: 18px 18px 14px;
}

.ask-card textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #303a48;
  font-size: 18px;
  line-height: 1.55;
}

.ask-card textarea::placeholder { color: #b7bec8; }

.ask-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  color: #354052;
  font-weight: 650;
}

.send {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #c9ccd2;
  color: white;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.quick {
  display: grid;
  grid-template-columns: repeat(5, 92px);
  justify-content: center;
  gap: 26px;
  margin: 24px 0 28px;
}

.quick button {
  border: 0;
  background: transparent;
  color: #677284;
  font-weight: 650;
  text-align: center;
}

.quick-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  color: #242b35;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(35,45,61,.055);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1.08fr;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 184px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 850;
}

.view-all {
  border: 0;
  background: transparent;
  color: #687385;
}

.inbox-list {
  display: grid;
  gap: 10px;
}

.inbox-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(229,234,240,.75);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

.source {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 11px;
  font-weight: 850;
}

.red { background: #ff4d5f; }
.pdf { background: #f05e6f; }
.note { background: #8058ff; }

.item-main strong {
  display: block;
  color: #303a48;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-main span {
  color: var(--muted);
  font-size: 12px;
}

.status {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.orange { color: #e28a18; }
.blue { color: var(--blue); }
.green { color: var(--green); }

.growth-note {
  border: 1px solid rgba(34,173,120,.18);
  background: #eef9f3;
  color: #21634b;
  border-radius: 9px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 14px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.step {
  min-height: 70px;
  border: 1px solid rgba(229,234,240,.8);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: #374253;
  font-size: 12px;
  font-weight: 750;
  padding: 8px 5px;
}

.step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 5px;
}

.next-list {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.next {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(229,234,240,.75);
  background: #fff;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  color: #5b6677;
  font-size: 13px;
}

.next b {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  flex: 0 0 auto;
}

.output-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.outline-btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #386075;
  font-size: 12px;
  font-weight: 750;
}

.companion {
  position: sticky;
  top: 48px;
  height: calc(100vh - 48px);
  padding: 24px 18px;
  background: rgba(249,251,252,.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  -webkit-user-select: none;
  user-select: none;
}

.companion.hidden {
  display: none;
}

.top-icons {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 51;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #26313f;
}

.top-icons .pet-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(35,45,61,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: pointer;
  font-size: 16px;
}

.top-icons .pet-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(35,45,61,.1);
}

.bubble {
  width: 178px;
  border: 1.5px solid rgba(34,173,120,.34);
  border-radius: 18px;
  background: #fff;
  color: #22815d;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
  position: relative;
  box-shadow: 0 12px 30px rgba(34,173,120,.08);
}

.bubble:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(34,173,120,.34);
  border-bottom: 1.5px solid rgba(34,173,120,.34);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.panda-card {
  width: 166px;
  min-height: 210px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .2s ease, filter .2s ease;
}

.panda-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  filter: drop-shadow(0 18px 20px rgba(35,45,61,.12));
}

.panda-card img {
  width: 166px;
  height: auto;
  display: block;
  border-radius: 8px;
  mix-blend-mode: multiply;
}

.drawer {
  position: fixed;
  right: 270px;
  bottom: 24px;
  width: min(500px, calc(100vw - 310px));
  border: 1px solid rgba(34,173,120,.24);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(35,45,61,.18);
  padding: 18px;
  display: none;
  z-index: 10;
}

.drawer.show { display: block; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.drawer h2 {
  margin: 0;
  font-size: 18px;
}

.drawer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.close {
  border: 0;
  background: transparent;
  color: #7c8491;
  font-size: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7f8;
  color: #496072;
  padding: 5px 9px;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(22,27,34,.92);
  color: white;
  display: none;
  z-index: 20;
  font-size: 14px;
}

.toast.show { display: block; }

.confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(229,234,240,.8);
}

.confirm-btn {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4a5668;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.confirm-btn.primary {
  border-color: rgba(34,173,120,.22);
  background: var(--green-soft);
  color: #155f43;
}

.confirm-btn.ghost {
  color: #8a93a3;
}

@media (max-width: 1240px) {
  .app { grid-template-columns: 210px minmax(0, 1fr); }
  .companion { display: none; }
  .drawer { right: 24px; width: min(500px, calc(100vw - 48px)); }
}

@media (max-width: 960px) {
  .app { display: block; }
  .sidebar { position: relative; height: auto; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-bottom { display: none; }
  .growth-grid, .cards { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(3, 92px); }
  .action-row { width: 100%; margin: 0 0 14px; }
  .tabs-bar { overflow-x: auto; }
}

@media (max-width: 560px) {
  .workspace { padding: 24px 12px; }
  .quick { grid-template-columns: repeat(2, 92px); }
  .ask-actions { align-items: flex-start; flex-direction: column; }
}

.mindmap-view {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mindmap-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 8px;
  flex: 0 0 auto;
}
.mindmap-back {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 8px;
  color: #687385;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.mindmap-back:hover { color: #26313f; }
.mindmap-hint { color: #b0b8c4; font-size: 12px; }
.mindmap-svg {
  flex: 1 1 auto;
  width: 100%;
  cursor: grab;
}
.mindmap-svg:active { cursor: grabbing; }
.mindmap-svg .node-dot {
  fill: #d0d5dd;
  stroke: none;
  transition: fill .3s, r .3s;
  cursor: pointer;
}
.mindmap-svg .node-dot:hover {
  fill: #9ba4b2;
}
.mindmap-svg .node-dot.focused {
  fill: #6bd5a0;
}
.mindmap-svg .node-label {
  fill: #7b8494;
  font-size: 13px;
  text-anchor: middle;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.mindmap-svg .node-label.focused {
  fill: #26313f;
  font-weight: 700;
  font-size: 14px;
}
.mindmap-svg .edge-line {
  stroke: rgba(160,170,185,.25);
  stroke-width: 0.8;
  pointer-events: none;
}

.tags-view {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tags-topbar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 10px;
  flex: 0 0 auto;
}
.tags-title { font-size: 18px; font-weight: 800; color: #26313f; }
.tags-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(229,234,240,.6);
}
.tags-tree {
  width: 240px;
  flex: 0 0 auto;
  padding: 16px 18px 16px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tags-tree .tag-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #4a5568;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tags-tree .tag-node:hover { background: rgba(0,0,0,.03); }
.tags-tree .tag-node.active {
  background: var(--green-soft);
  border-color: rgba(34,173,120,.2);
  color: #155f43;
}
.tags-tree .tag-node .tag-indent { flex: 0 0 auto; }
.tags-tree .tag-node .tag-expand {
  width: 16px; flex: 0 0 auto; font-size: 10px; color: #9ca5b4; text-align: center;
}
.tags-tree .tag-node .tag-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #c4cad4;
}
.tags-tree .tag-node.active .tag-dot { background: var(--green); }
.tags-tree .tag-node .tag-count {
  margin-left: auto; font-size: 11px; color: #9ca5b4; font-weight: 500;
}
.tags-notes {
  flex: 1 1 auto;
  padding: 16px 0 16px 18px;
  border-left: 1px solid rgba(229,234,240,.6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tags-notes-empty {
  color: #b0b8c4; font-size: 14px; padding: 40px 0;
}
.tags-note-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(229,234,240,.6);
  background: rgba(255,255,255,.7);
  cursor: pointer;
}
.tags-note-card:hover { background: #fff; box-shadow: 0 4px 16px rgba(35,45,61,.05); }
.tags-note-card .tn-title { font-weight: 750; color: #26313f; margin-bottom: 4px; }
.tags-note-card .tn-meta { font-size: 12px; color: #8b93a3; }
.tags-note-card .tn-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.tags-note-card .tn-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0,0,0,.04); color: #687385;
}

.inbox-view {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.inbox-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.inbox-time-filter {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.inbox-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(229,234,240,.6);
}
.inbox-sidebar {
  width: 170px;
  flex: 0 0 auto;
  padding: 14px 18px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(229,234,240,.6);
}
.inbox-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0 0 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tf-btn, .sf-btn { cursor: pointer; white-space: nowrap; transition: background .15s; }
.tf-btn {
  height: 28px;
  border: 1px solid rgba(229,234,240,.8);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: #687385;
  font-size: 12px;
  font-weight: 650;
}
.tf-btn.active {
  background: var(--green-soft);
  border-color: rgba(34,173,120,.24);
  color: #155f43;
}
.tf-btn:hover:not(.active) { background: #f5f7fa; }
.sf-btn {
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0 14px;
  color: #5d6878;
  font-size: 13px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.sf-btn:hover { background: rgba(0,0,0,.025); }
.sf-btn.active { background: #f0f2f5; border-color: rgba(0,0,0,.06); color: #1f2733; font-weight: 750; }

.inbox-heatmap-bar {
  display: flex;
  gap: 2px;
  padding: 0 0 14px;
  flex: 0 0 auto;
  align-items: flex-end;
  min-height: 72px;
}
.heat-cell {
  flex: 1 1 auto;
  min-width: 4px;
  border-radius: 3px;
  background: rgba(229,234,240,.5);
  transition: background .2s;
  cursor: pointer;
  position: relative;
}
.heat-cell:hover { background: var(--blue-soft); }
.heat-cell.l1 { background: rgba(34,173,120,.15); }
.heat-cell.l2 { background: rgba(34,173,120,.30); }
.heat-cell.l3 { background: rgba(34,173,120,.52); }
.heat-cell.l4 { background: rgba(34,173,120,.74); }
.heat-cell.l5 { background: var(--green); }
.heat-cell:hover .heat-tip {
  display: block;
}
.heat-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2733;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.inbox-cards {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox-card-item {
  border: 1px solid rgba(229,234,240,.7);
  border-radius: 10px;
  background: rgba(255,255,255,.8);
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow .18s, transform .14s;
}
.inbox-card-item:hover {
  box-shadow: 0 6px 22px rgba(35,45,61,.07);
  transform: translateY(-1px);
}
.inbox-card-item .ic-hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.inbox-card-item .ic-source {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex: 0 0 auto;
  color: #fff;
}
.ic-source.red { background: #f87171; }
.ic-source.pdf { background: #e6533c; }
.ic-source.note { background: #4da8e8; }
.ic-source.link { background: #f0a03a; }
.ic-source.img { background: #7b5cff; }
.ic-source.doc { background: #3d7df6; }
.ic-source.other { background: #8b93a3; }

.inbox-card-item .ic-main { flex: 1 1 auto; min-width: 0; }
.inbox-card-item .ic-title {
  font-weight: 750; color: #26313f; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px;
}
.inbox-card-item .ic-meta {
  font-size: 12px; color: #8b93a3; display: flex; gap: 10px;
}
.inbox-card-item .ic-summary {
  margin-top: 8px;
  font-size: 13px;
  color: #5d6878;
  line-height: 1.6;
  padding-left: 0;
}
.inbox-card-item .ic-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.inbox-card-item .ic-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(61,125,246,.07); color: #3d7df6;
  font-weight: 600;
}
.inbox-card-item .ic-status {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; flex: 0 0 auto; white-space: nowrap; align-self: flex-start;
}

.ic-status.orange { background: #fff5e6; color: #c67810; }
.ic-status.blue { background: #eef5ff; color: #2c6ae8; }
.ic-status.green { background: #edf8f2; color: #155f43; }
.ic-status.gray { background: rgba(0,0,0,.04); color: #687385; }

.skills-view {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.skills-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.skills-status-filter {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.skills-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.skill-card {
  border: 1px solid rgba(229,234,240,.7);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow .18s, transform .14s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-card:hover {
  box-shadow: 0 6px 22px rgba(35,45,61,.07);
  transform: translateY(-1px);
}
.skill-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.skill-card-header .sk-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; font-size: 22px;
  flex: 0 0 auto;
}
.sk-icon.c-blue  { background: #eef5ff; color: #2563eb; }
.sk-icon.c-green { background: #edf8f2; color: #10845f; }
.sk-icon.c-amber { background: #fef8ee; color: #b7791f; }
.sk-icon.c-rose  { background: #fdf2f4; color: #be3455; }
.sk-icon.c-violet { background: #f3efff; color: #7b5cff; }

.skill-card-header .sk-info { flex: 1 1 auto; min-width: 0; }
.skill-card-header .sk-name { font-weight: 750; color: #26313f; font-size: 15px; margin-bottom: 2px; }
.skill-card-header .sk-desc { font-size: 12px; color: #8b93a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.skill-card-header .sk-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; flex: 0 0 auto;
}
.sk-badge.active { background: #edf8f2; color: #155f43; }
.sk-badge.suggested { background: #fff5e6; color: #c67810; }
.sk-badge.archived { background: rgba(0,0,0,.04); color: #687385; }

.skill-card .sk-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-card .sk-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(61,125,246,.06); color: #3d7df6;
  font-weight: 600;
}


