/* 内容库 / 发布记录 / 账号矩阵 / 全部工具 */

.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.lp-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lp-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

.lp-search:focus { border-color: var(--ink); }
.lp-search::placeholder { color: var(--faint); }

.lp-chip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}

.lp-chip:hover { background: var(--surface-2); }
.lp-chip.on { background: var(--black); border-color: var(--black); color: #fff; }

.lp-div { width: 1px; height: 22px; background: var(--line); margin: 0 3px; flex: none; }

.lp-count { margin-left: auto; font-size: 11px; color: var(--muted); }

.lp-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.lp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .12s ease;
}

.lp-row:last-child { border-bottom: 0; }
.lp-row:hover { background: #fafafa; }

.lp-main { flex: 1; min-width: 0; }

.lp-t {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-s {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-platform { width: 64px; flex: none; font-size: 11px; color: var(--muted); }
.lp-time { width: 82px; flex: none; text-align: right; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lp-row .chip { flex: none; }

.lp-empty { padding: 56px 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* 账号矩阵 */
.lp-accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lp-account {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-sizing: border-box;
}

.lp-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-acc-name { font-size: 14px; font-weight: 600; }
.lp-acc-handle { margin-top: 2px; font-size: 11px; color: var(--muted); }
.lp-acc-stats { margin-top: 13px; font-size: 12px; color: var(--ink-2); }
.lp-acc-status { margin-top: 4px; font-size: 11px; color: var(--muted); }
.lp-acc-status.warn { color: var(--warn); }
.lp-acc-actions { display: flex; gap: 6px; margin-top: 13px; }

/* 工具目录 */
.lp-group { margin-bottom: 26px; }
.lp-group-title { margin: 0 0 10px; font-size: 11px; letter-spacing: 2px; color: var(--muted); }

.lp-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lp-tool {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

.lp-tool:hover { background: var(--surface-2); border-color: #c9c9c4; }
.lp-tool b { display: block; font-size: 13px; font-weight: 500; }
.lp-tool span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }

/* 发布详情时间线 */
.lp-timeline { margin-top: 16px; border-left: 2px solid var(--line-soft); padding-left: 15px; }
.lp-tl-item { position: relative; padding-bottom: 14px; font-size: 12px; }
.lp-tl-item:last-child { padding-bottom: 0; }
.lp-tl-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.lp-tl-item.done::before { background: var(--ok); }
.lp-tl-item.on::before { background: var(--black); }
.lp-tl-t { font-weight: 500; }
.lp-tl-s { margin-top: 1px; font-size: 11px; color: var(--muted); }

.lp-err {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f8ecea;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

/* 小表单 */
.lp-form label { display: block; margin: 12px 0 5px; font-size: 11px; color: var(--muted); }
.lp-form input, .lp-form select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  box-sizing: border-box;
}
.lp-form-actions { display: flex; gap: 8px; margin-top: 16px; }
.lp-form-actions .btn { flex: 1; }

@media (max-width: 1100px) {
  .lp-accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-accounts { grid-template-columns: 1fr; }
  .lp-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-platform { display: none; }
  .lp-time { width: 64px; }
  .lp-row { padding: 12px 14px; gap: 10px; }
}

/* 我的 / 设置 */
.mine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mine-card { padding: 18px 20px; }
.mine-card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }

.mine-profile { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.mine-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.mine-name { font-size: 15px; font-weight: 600; }
.mine-sub { margin-top: 2px; font-size: 11px; color: var(--muted); }

.mine-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.mine-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mine-row > span:first-child { color: var(--muted); width: 96px; flex: none; }
.mine-row b { font-weight: 500; }

.mine-actions { display: flex; flex-wrap: wrap; gap: 7px; }

.pref-chip {
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}
.pref-chip.on { background: var(--black); border-color: var(--black); color: #fff; }

@media (max-width: 900px) {
  .mine-grid { grid-template-columns: 1fr; }
}
