/* ─── PRIVATE PAGE (我的) ─────────────────────────── */
.private-page {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  overflow: hidden;
}

/* mode toggle in top-left */
.view-toggle {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
}
.view-toggle button {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}
.view-toggle button.active { background: var(--surface-3); color: var(--text); }

/* 3D view re-uses graph canvas */

/* List view */
.list-view {
  position: absolute;
  inset: 0;
  padding: 80px 32px 32px;
  overflow-y: auto;
}
.list-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
}
.list-toolbar .filters { display: flex; gap: 6px; flex: 1; }
.note-table {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.note-row {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.9fr 1fr 80px;
  gap: 20px;
  padding: 14px 20px;
  align-items: center;
  border-bottom: 1px solid var(--divider);
  font-size: 13.5px;
}
.note-row:last-child { border-bottom: none; }
.note-row.head {
  background: var(--surface-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 500;
  padding: 10px 20px;
}
.note-row .topic { font-weight: 500; color: var(--text); }
.note-row .meta { color: var(--text-dim); font-size: 12.5px; }
.note-row .linked-public {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-soft);
}
.note-row .linked-public .marker {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--accent);
}
.note-row .mastery {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
}
.note-row .mastery-bar {
  flex: 1; max-width: 80px;
  height: 5px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.note-row .mastery-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent), var(--accent-fresh));
  border-radius: 3px;
}

/* Empty state */
.empty-state {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
}
.empty-state .inner {
  pointer-events: auto;
  max-width: 520px;
  display: grid; gap: 18px;
  justify-items: center;
}
.empty-state .glyph {
  width: 72px; height: 72px;
  border-radius: 20px;
  background:
    radial-gradient(100% 100% at 0% 0%, rgba(var(--accent-2-rgb),0.5), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-soft);
}
.empty-state h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.empty-state p { color: var(--text-dim); margin: 0; max-width: 400px; }

/* Activity feed sidebar */
.activity-rail {
  position: absolute;
  right: 20px; top: 80px; bottom: 80px;
  width: 320px;
  padding: 20px;
  overflow-y: auto;
}
.activity-rail h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim); margin: 0 0 14px;
}
.activity-item {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-item .when {
  font-size: 11px; color: var(--text-faint);
  font-family: var(--font-mono);
  flex: none; width: 42px;
  padding-top: 2px;
}
.activity-item .body { color: var(--text-soft); }
.activity-item .body strong { color: var(--text); font-weight: 500; }
.activity-item .body .tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  background: rgba(var(--accent-2-rgb),0.12);
  color: var(--accent-2);
}

/* mastery legend chip */
.mastery-legend {
  position: absolute;
  left: 20px; bottom: 20px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12px;
}
.mastery-legend h5 {
  margin: 0 0 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.mastery-legend .bar {
  width: 200px; height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent), var(--accent-fresh));
}
.mastery-legend .legend-labels {
  display: flex; justify-content: space-between;
  color: var(--text-dim);
  margin-top: 4px;
  font-size: 10.5px;
}
