/* ============ Launchpad — 深色优先的个人导航页 ============ */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #06070a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hi: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.085);
  --line-hi: rgba(255, 255, 255, 0.18);
  --text: #e9edf6;
  --muted: #98a1b5;
  --dim: #6a7285;
  --accent: #8b93ff;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f9;
  --panel: #ffffff;
  --panel-hi: #ffffff;
  --line: rgba(14, 18, 38, 0.10);
  --line-hi: rgba(14, 18, 38, 0.22);
  --text: #0f1327;
  --muted: #5a6178;
  --dim: #7c849a;
  --accent: #4f5bff;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(139, 147, 255, 0.35); }

/* ---------- 背景光晕 ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 10% -12%, rgba(99, 102, 241, 0.30), transparent 68%),
    radial-gradient(760px 460px at 92% -4%, rgba(236, 72, 153, 0.16), transparent 70%),
    radial-gradient(760px 560px at 84% 96%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(640px 440px at 24% 108%, rgba(56, 189, 248, 0.12), transparent 70%);
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.030) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 72%);
}

html[data-theme="light"] .aurora {
  background:
    radial-gradient(880px 520px at 8% -14%, rgba(99, 102, 241, 0.18), transparent 68%),
    radial-gradient(700px 420px at 94% -2%, rgba(236, 72, 153, 0.10), transparent 70%),
    radial-gradient(700px 520px at 86% 98%, rgba(16, 185, 129, 0.10), transparent 70%);
}

html[data-theme="light"] .aurora::after {
  background-image:
    linear-gradient(rgba(20, 26, 60, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 26, 60, 0.05) 1px, transparent 1px);
}

/* ---------- 布局 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 28px 56px;
}

/* ---------- 顶栏 ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #9aa1ff 0%, #5b6bff 52%, #22d3ee 100%);
  box-shadow: 0 10px 26px -10px rgba(99, 102, 241, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-mark svg { width: 19px; height: 19px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 15px; font-weight: 650; letter-spacing: 0.01em; }
.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.topbar-right { display: flex; align-items: center; gap: 14px; }

.today, .clock {
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.clock {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.icon-btn:hover { color: var(--text); border-color: var(--line-hi); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .i-sun { display: none; }
html[data-theme="light"] .icon-btn .i-sun { display: block; }
html[data-theme="light"] .icon-btn .i-moon { display: none; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3.3vw, 38px);
  line-height: 1.16;
  font-weight: 680;
  letter-spacing: -0.022em;
  background: linear-gradient(100deg, var(--text) 20%, color-mix(in srgb, var(--text) 55%, var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.sub .star { color: #fbbf24; font-weight: 400; }

/* ---------- 搜索框 ---------- */

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.24s, background 0.2s;
}

.search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
    0 22px 50px -34px color-mix(in srgb, var(--accent) 90%, transparent);
  background: var(--panel-hi);
}

.search-icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--dim); }
.search:focus-within .search-icon { color: var(--accent); }

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.search input::placeholder { color: var(--dim); }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--dim);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1;
  vertical-align: middle;
}

.search kbd.hint { flex: 0 0 auto; }

/* ---------- 分类筛选 ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.filters button {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.filters button:hover { color: var(--text); border-color: var(--line-hi); }

.filters button.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #6d78ff, #4f5bff);
  box-shadow: 0 8px 22px -12px rgba(79, 91, 255, 0.95);
}

html[data-theme="light"] .filters button.on { color: #fff; }

/* ---------- 正在热议 ---------- */

.buzz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 13px 15px 10px;
}

.buzz[hidden] { display: none; }

.buzz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.buzz-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.buzz-head button {
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.16s, background 0.16s;
}

.buzz-head button:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }

#buzzList {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
  counter-reset: buzz;
}

#buzzList li {
  counter-increment: buzz;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

#buzzList li > div { min-width: 0; }

.buzz-save {
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: 0.15s;
}

#buzzList li:hover .buzz-save { opacity: 1; }
.buzz-save:hover { color: var(--accent); border-color: var(--line-hi); background: var(--panel-hi); }

#buzzList li:last-child { border-bottom: 0; }

#buzzList li::before {
  content: counter(buzz);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px;
  color: var(--dim);
  text-align: right;
}

#buzzList a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 12.8px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

#buzzList a:hover { color: var(--accent); }

#buzzList .src {
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

#buzzList .meta {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

#buzzList li.loading {
  grid-template-columns: 1fr;
  color: var(--dim);
  font-size: 12px;
}

#buzzList li.loading::before { content: none; }

.buzz-note {
  margin: 4px 0 2px;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}

/* ---------- 分区与卡片 ---------- */

.section { margin-bottom: 30px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 13px;
}

.section-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.section-head .note {
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: translateY(-3px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 13px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 15px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.24s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--a) 48%, var(--line));
  box-shadow: 0 24px 46px -30px color-mix(in srgb, var(--a) 85%, transparent),
    0 2px 10px -6px rgba(0, 0, 0, 0.5);
}

.card.kbd {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

/* 整张卡片都可点击 */
.card-title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: 1;
}

.tile {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--a);
  background: color-mix(in srgb, var(--a) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--a) 24%, transparent);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.card:hover .tile { transform: scale(1.06) rotate(-2deg); }
.tile svg { width: 22px; height: 22px; }

.meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.meta b {
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.006em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta em {
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
}

.pin {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s, color 0.16s, background 0.16s;
}

.card:hover .pin, .card.kbd .pin { opacity: 1; }

.pin:hover { color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent); }
.pin.is-on { opacity: 1; color: #fbbf24; }

.pills {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 2px;
}

.pills a {
  padding: 3.5px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pills a:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--a) 55%, var(--line));
  background: color-mix(in srgb, var(--a) 12%, transparent);
}

/* ---------- 空状态 ---------- */

.empty {
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.empty span { font-size: 12.5px; color: var(--dim); }

/* ---------- 页脚 ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}

.foot .sep { opacity: 0.45; }
.foot .star { color: #fbbf24; font-weight: 400; }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 640px) {
  .wrap { padding: 20px 16px 44px; }
  .topbar { margin-bottom: 30px; }
  .today { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 26px; }
  .search { height: 52px; }
  .card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   工具层：摘录 / 翻译 / AI / 连通性
   ============================================================ */

.dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dock-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-hi);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
  cursor: pointer;
  transition: transform .16s, border-color .16s, color .16s, background .16s;
}

.dock-btn svg { width: 21px; height: 21px; }
.dock-btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.dock-btn.dock-ai { background: linear-gradient(145deg, #7c86ff, #4f46e5); border-color: transparent; color: #fff; }
.dock-btn.dock-ai:hover { color: #fff; filter: brightness(1.08); }

/* ---- 面板 ---- */

.tp {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(94vw, 470px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line-hi);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  backdrop-filter: blur(26px) saturate(140%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%), 0 0 0 1px rgb(255 255 255 / 4%) inset;
  animation: tpIn .22s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}

@keyframes tpIn {
  from { opacity: 0; transform: translateX(18px) scale(.99); }
}

html[data-theme="light"] .tp { background: color-mix(in srgb, var(--panel) 97%, transparent); }

.tp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--line);
}

.tp-tabs { display: flex; gap: 4px; flex: 1; }

.tp-tabs button {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: .16s;
}

.tp-tabs button:hover { color: var(--text); background: var(--panel-hi); }
.tp-tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(145deg, #7c86ff, #4f46e5);
  border-color: transparent;
}

.tp-x {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tp-x:hover { color: var(--text); border-color: var(--line-hi); }

.tp-body { flex: 1; min-height: 0; padding: 14px 16px 16px; overflow: hidden; }

.tp-pane { display: none; height: 100%; flex-direction: column; gap: 10px; min-height: 0; }
.tp-pane.on { display: flex; }

/* ---- 控件 ---- */

.tp input[type="text"],
.tp input[type="url"],
.tp input[type="search"],
.tp textarea,
.tp select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}

.tp input:focus,
.tp textarea:focus,
.tp select:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.tp textarea { resize: vertical; line-height: 1.6; min-height: 66px; }
.tp select { cursor: pointer; }

.tp-field { position: relative; display: flex; flex-direction: column; }
.tp-field .tp-tag {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: var(--dim);
  pointer-events: none;
}

.tp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tp-row-line { display: flex; gap: 8px; align-items: center; }
.tp-row-line.tight { margin-top: auto; flex-wrap: wrap; }
.tp-row-line input { flex: 1; }
.tp-row-line select { width: auto; flex: 0 0 auto; }
.tp-sep { flex: 1; }

.tp-btn {
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-hi);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .16s;
}

.tp-btn:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.tp-btn.primary {
  background: linear-gradient(145deg, #7c86ff, #4f46e5);
  border-color: transparent;
  color: #fff;
}
.tp-btn.ghost { background: transparent; color: var(--muted); }
.tp-btn kbd {
  font: inherit;
  font-size: 10.5px;
  opacity: .66;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 4px;
  padding: 0 3px;
}

.tp-btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---- 摘录列表 ---- */

.tp-list-head { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.tp-list-head input { flex: 1; }
.tp-count { font-size: 11.5px; color: var(--dim); white-space: nowrap; }

.tp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-note {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
  background: var(--panel-hi);
}

.tp-note-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.tp-note-top a { color: var(--accent); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-note-top a:hover { text-decoration: underline; }
.tp-note-time { color: var(--dim); white-space: nowrap; }

.tp-note-text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-note-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.tp-note-acts button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 11.5px;
  cursor: pointer;
}

.tp-note-acts button:hover { color: var(--text); border-color: var(--line-hi); }
.tp-hash { font-size: 11px; color: var(--accent); opacity: .85; }

.tp-empty { color: var(--dim); font-size: 13px; padding: 22px 6px; text-align: center; line-height: 1.7; }

/* ---- 翻译 ---- */

.tp-split { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.tp-split .tp-field { flex: 1; min-height: 0; }
.tp-split textarea { height: 100%; min-height: 120px; }

.tp-out {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-word;
}

.tp-out.tall { min-height: 180px; }
.tp-out.busy { color: var(--muted); }
.tp-out h3 { font-size: 13.5px; margin: 10px 0 4px; color: var(--accent); }
.tp-out p { margin: 0 0 8px; }
.tp-out ul, .tp-out ol { margin: 0 0 8px; padding-left: 20px; }
.tp-out li { margin: 2px 0; }
.tp-out code { background: var(--panel-hi); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.tp-out pre { background: var(--panel-hi); padding: 10px; border-radius: 9px; overflow-x: auto; }
.tp-out a { color: var(--accent); }
.tp-out b { color: var(--text); }

.tp-typing::after {
  content: '▍';
  animation: blink 1s steps(2) infinite;
  color: var(--accent);
}

@keyframes blink { 50% { opacity: 0; } }
.tp-dim { color: var(--dim); }
.tp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-chips button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
}
.tp-chips button:hover { color: var(--text); border-color: var(--line-hi); }

/* ---- 划词浮条 ---- */

.selbar {
  position: absolute;
  z-index: 80;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line-hi);
  background: var(--panel);
  box-shadow: 0 10px 30px rgb(0 0 0 / 45%);
  transform: translateX(-50%);
}

.selbar button {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.selbar button:hover { background: var(--accent); color: #fff; }

/* ---- toast ---- */

.tp-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 14px);
  z-index: 90;
  padding: 9px 16px;
  border-radius: 11px;
  background: #111318;
  border: 1px solid var(--line-hi);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
}

.tp-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- 连通性徽标 ---- */

.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--dim);
  font-style: normal;
}

.net-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.net-badge.ok { color: color-mix(in srgb, #34d399 78%, var(--muted)); }
.net-badge.bad { color: #f0a839; }
.net-badge.wait { opacity: .55; }

.alts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--dim);
  margin-bottom: 8px;
}

.alts a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-hi);
}

.alts a:hover { color: var(--accent); border-color: var(--accent); }

#netSummary { font-size: 12px; color: var(--dim); }
#netSummary b.warn { color: #f0a839; }
.linkish {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .tp {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: min(88vh, 720px);
    border-radius: 18px;
  }
  .dock { right: 12px; bottom: 12px; }
  .dock-btn { width: 40px; height: 40px; border-radius: 12px; }
  .tp-row2 { grid-template-columns: 1fr; }
}

/* 工具行：允许换行，按钮不被压缩 */
.tp-row-line { flex-wrap: wrap; }
.tp-row-line > .tp-btn,
.tp-row-line > .tp-x { flex: 0 0 auto; }
.tp-row-line > select { max-width: 42%; }
.tp-sep { flex: 1 1 0; min-width: 4px; }
.tp-hint { font-size: 11px; color: var(--dim); align-self: center; }
.tp-pane > .tp-field > input { width: 100%; }

/* AI 输出小标题分隔 */
.tp-out h3 { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 12px; }
.tp-out > h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

@media (max-width: 640px) {
  .tp-row-line { gap: 6px; }
  .tp-row-line .tp-sep { display: none; }
  .tp-row-line > .tp-btn,
  .tp-row-line > .tp-x { font-size: 12.5px; padding: 7px 10px; }
  .tp-row-line > select { max-width: 46%; font-size: 12.5px; padding: 7px 8px; }
  .tp-out.tall { min-height: 140px; }
}

/* 关键修正：[hidden] 必须真的隐藏（.tp / .selbar 都是 display:flex，会盖掉浏览器默认样式） */
[hidden] { display: none !important; }
.alts .via-mirror { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }


/* ============================================================
   视图切换 / 顶部 tabs
   ============================================================ */

.tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--panel-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* ============================================================
   个人空间
   ============================================================ */

#space { padding-bottom: 40px; }

.space-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 0 22px;
}

.space-head h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-weight: 700;
}

.space-head .sub { color: var(--muted); font-size: 14px; margin: 0; }

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

.space-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 12.5px;
  color: var(--muted);
}

.space-stats b {
  font-size: 17px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.space-block { margin-bottom: 34px; }

.block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.block-head h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin: 0;
  white-space: nowrap;
}

.block-head .note {
  font-size: 12.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-hi), transparent);
}

.sp-search {
  width: 190px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
}

.sp-search:focus { outline: none; border-color: var(--accent); }

/* 快速记录 */

.quick {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
}

.quick textarea {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 62px;
}

.quick textarea:focus { outline: none; }

.quick-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.quick-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-hi);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  padding: 7px 11px;
}

.quick-row input:focus { outline: none; border-color: var(--accent); }

.sp-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line-hi);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sp-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.sp-btn.primary {
  background: linear-gradient(145deg, #7c86ff, #4f46e5);
  border-color: transparent;
  color: #fff;
}

.sp-btn.primary:hover { color: #fff; filter: brightness(1.08); }

/* 摘录卡 */

.ex-list { display: grid; gap: 12px; }

.ex {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px;
}

.ex-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ex-src {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ex-head time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ex-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ex-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.ex-tags span {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}

.ex-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.ex-act button,
.ex-act a {
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ex-act button:hover,
.ex-act a:hover { color: var(--text); border-color: var(--line-hi); }
.ex-act button[data-act="del"]:hover { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.5); }

.ex-editing { margin-bottom: 8px; }

.ex-input {
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--panel-hi);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px;
  resize: vertical;
  margin-bottom: 8px;
}

.ex-input:focus { outline: none; }

.empty.small { padding: 26px 18px; }

.empty.small b { font-size: 14px; }
.empty.small span { font-size: 12.5px; }

/* 最近打开 */

.recent { display: flex; gap: 10px; flex-wrap: wrap; }

.recent-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.recent-item:hover { border-color: var(--line-hi); transform: translateY(-1px); }

.recent-item .tile {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--a);
  background: color-mix(in srgb, var(--a) 15%, transparent);
}

.recent-item .tile svg { width: 17px; height: 17px; }

.recent-meta { display: flex; flex-direction: column; line-height: 1.25; }
.recent-meta b { font-size: 12.5px; font-weight: 600; }
.recent-meta em { font-size: 11px; color: var(--dim); font-style: normal; }

.none { color: var(--dim); font-size: 13px; margin: 0; }

/* toast */

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  z-index: 95;
  background: rgba(16, 19, 28, 0.95);
  color: #fff;
  border: 1px solid var(--line-hi);
  border-radius: 11px;
  padding: 9px 16px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(86vw, 420px);
  text-align: center;
}

.app-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 安装提示条 */

.install {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 10px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 13px;
  background: rgba(14, 17, 26, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  color: var(--text);
}

.install-text { flex: 1; min-width: 0; line-height: 1.45; }

.install-go {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #7c86ff, #4f46e5);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  padding: 7px 13px;
  cursor: pointer;
}

.install-x {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
}

.install-x:hover { color: var(--text); }

/* ============================================================
   移动端：底部导航 + 安全区
   ============================================================ */

.tabbar { display: none; }

@media (max-width: 720px) {
  .tabs { display: none; }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    background: rgba(9, 11, 17, 0.9);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  html[data-theme="light"] .tabbar { background: rgba(250, 251, 255, 0.92); }

  .tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 10.5px;
    padding: 6px 0 4px;
    cursor: pointer;
    transition: color 0.16s ease;
  }

  .tabbar button svg { width: 21px; height: 21px; }
  .tabbar button em { font-style: normal; }
  .tabbar button.on { color: var(--accent); }

  .wrap { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .dock { display: none; }

  .install { bottom: calc(74px + env(safe-area-inset-bottom)); }

  .space-head { padding-top: 0; }
  .space-head h1 { font-size: 26px; }
  .block-head { flex-wrap: wrap; gap: 8px; }
  .block-head .rule { display: none; }
  .sp-search { width: 100%; }
  .app-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   排序 · 全开 · 提示条
   ============================================================ */

.sortbtn {
  margin-left: auto;
  color: var(--dim);
}

.sortbtn.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7c86ff, #5b53f0);
  box-shadow: 0 6px 16px -8px rgba(99, 102, 241, 0.9);
}

.drag {
  position: absolute;
  top: 9px;
  right: 38px;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--a) 12%, transparent);
  color: var(--a);
  font-size: 15px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

body.reorder .drag { display: grid; }

body.reorder .card { cursor: grab; }
body.reorder .card .card-title { pointer-events: none; }
body.reorder .pills { pointer-events: none; }
body.reorder .pin { pointer-events: none; opacity: 0.25; }

.card.dragging {
  opacity: 0.45;
  outline: 2px dashed var(--a);
  outline-offset: -2px;
  transform: scale(0.985);
}

.card.dragging .drag { cursor: grabbing; }

.open-all {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.open-all:hover {
  color: var(--text);
  border-color: var(--line-hi);
  background: var(--panel-hi);
}

.order-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 12px);
  max-width: min(90vw, 460px);
  padding: 9px 16px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: var(--panel-hi);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.order-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .open-all { margin-left: 6px; padding: 3px 8px; font-size: 11px; }
  .order-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---- 分组折叠 ---- */

.section-head .fold {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.section-head .fold:hover {
  color: var(--text);
  background: var(--panel-hi);
  border-color: var(--line);
}

.section.is-folded .section-head h2 { color: var(--muted); }

/* ---- 站点管理 ---- */

.sp-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.sp-form input,
.sp-form select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.sp-form input#spSiteName { flex: 1 1 140px; min-width: 0; }
.sp-form input#spSiteUrl { flex: 1 1 160px; min-width: 0; }
.sp-form select { flex: 0 0 auto; }

.site-manage { display: flex; flex-direction: column; gap: 6px; }

.site-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
}

.site-row b { font-weight: 550; color: var(--text); }
.site-row em {
  font-style: normal;
  color: var(--dim);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-row.is-off { opacity: 0.62; }

.site-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a, var(--accent));
}

.row-x {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.row-x:hover { color: #ff7b72; border-color: #ff7b72; }
.row-x.restore:hover { color: var(--accent); border-color: var(--accent); }

.site-all { margin-top: 4px; }
.site-all > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  padding: 6px 2px;
  list-style: none;
}
.site-all > summary::-webkit-details-marker { display: none; }
.site-all > summary::before { content: "▸ "; color: var(--dim); }
.site-all[open] > summary::before { content: "▾ "; }
.site-all .site-row { margin-top: 6px; }

.site-tip {
  margin: 4px 2px 0;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---- 阅读清单 ---- */

.recent-list { display: flex; flex-direction: column; gap: 6px; }

.recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-row .recent-item { flex: 1; min-width: 0; }

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

/* ============================================================
   今日速览 / 跨站搜索
   ============================================================ */

.live { margin: 4px 0 30px; }

.lv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.lv-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}

.lv-sub {
  margin-left: 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  color: var(--dim);
}

.lv-tools { margin-left: auto; display: flex; gap: 8px; }

.lv-chip {
  padding: 6px 11px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.lv-chip:hover { color: var(--text); border-color: var(--line-hi); }
.lv-chip.on { color: #fff; background: var(--accent); border-color: transparent; }

.lv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.lv-tab {
  padding: 5px 12px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.lv-tab:hover { color: var(--text); border-color: var(--line-hi); }
.lv-tab.on { color: var(--text); background: var(--panel-hi); border-color: var(--line-hi); }

.lv-group {
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: .04em;
}

.lv-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.lv-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
}

.lv-item:first-child { border-top: 0; }
.lv-item:hover { background: var(--panel-hi); }

.lv-toggle {
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  color: var(--dim);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.lv-toggle:hover { color: var(--text); background: var(--line); }
.lv-toggle.on { color: var(--accent); }

.lv-title {
  min-width: 0;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lv-title:hover { color: var(--accent); }

.lv-item.unread .lv-title { font-weight: 600; }

.lv-src { display: none; }

.lv-meta {
  grid-column: 2 / 3;
  font-size: 11.5px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lv-dot {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.lv-ex {
  grid-column: 2 / 4;
  margin-top: 7px;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.lv-ex.loading { color: var(--dim); }
.lv-ex.error { color: #ff9d8a; }

.lv-empty {
  margin: 0;
  padding: 16px 14px;
  font-size: 12.5px;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lv-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}

.lv-search-head .lv-meta { margin-right: auto; }

@media (max-width: 720px) {
  .lv-item { grid-template-columns: 18px minmax(0, 1fr); padding: 8px 11px; }
  .lv-dot { display: none; }
  .lv-ex { grid-column: 1 / -1; }
  .lv-title { white-space: normal; }
  .lv-head { flex-wrap: wrap; }
  .lv-tools { margin-left: 0; }
}


