/* Watchlist 内容样式 — 依赖 /static/shell.css，不再覆盖站点背景 */
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.wl-mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.wl-mast-main { min-width: 0; }
.wl-meta {
  margin: 0.25rem 0 0 !important;
  color: var(--oc-muted);
  font-size: 0.9rem;
}
.auth-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--oc-muted);
  font-size: 0.86rem;
  flex-shrink: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.tab, button, select, input[type="search"], input[type="number"], input[type="password"] {
  background: var(--oc-surface);
  color: var(--oc-ink);
  border: 1px solid var(--oc-line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}
.tab {
  color: var(--oc-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab:hover {
  color: var(--oc-ink);
  background: var(--oc-accent-soft);
}
.tab.active, button[type="submit"] {
  background: var(--oc-accent);
  border-color: var(--oc-accent);
  color: #fff;
}
.ghost {
  background: transparent;
  color: var(--oc-muted);
}
.ghost:hover { color: var(--oc-ink); }

.toolbar { margin-bottom: 1rem; }
.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search input[type="search"] {
  min-width: 240px;
  flex: 1;
  border-radius: var(--oc-radius);
}
.min-common input,
select,
input[type="number"],
input[type="password"] {
  border-radius: var(--oc-radius);
}
.min-common { color: var(--oc-muted); display: flex; align-items: center; gap: 6px; }
.min-common input { width: 72px; }
.hint { color: var(--oc-muted); font-size: 0.86rem; margin: 10px 0 0; }

.table-wrap { overflow-x: auto; padding: 0; }
.table-wrap.oc-panel { padding: 0.35rem 0.6rem 0.6rem; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--oc-line);
  vertical-align: top;
  text-align: left;
}
th {
  color: var(--oc-muted);
  font-size: 12px;
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }
.col-actions { width: 148px; text-align: right; white-space: nowrap; }
.num { text-align: right; width: 96px; font-variant-numeric: tabular-nums; }

.account { display: flex; align-items: flex-start; gap: 10px; }
.user { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user .name { color: var(--oc-ink); font-weight: 600; }
.user .handle {
  color: var(--oc-muted);
  font-family: var(--oc-mono);
  font-size: 13px;
}
.desc {
  color: var(--oc-muted);
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill {
  flex: 0 0 auto;
  min-width: 52px;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.pills { display: flex; flex-direction: column; gap: 4px; }
.pill.on { background: #d9eee3; color: var(--oc-ok); }
.pill.off { background: #ece8e0; color: var(--oc-muted); }
.pill.rec { background: #f3e5c5; color: var(--oc-warn); }
.empty { text-align: center; color: var(--oc-muted); padding: 40px 0; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 1.25rem 0 0.5rem;
  color: var(--oc-muted);
}
.action { padding: 5px 10px; font-size: 13px; border-radius: 999px; }
.action.add:not(:disabled) {
  background: var(--oc-accent-soft);
  border-color: var(--oc-accent);
  color: var(--oc-accent);
}
.action.remove:not(:disabled) {
  background: #f8e4e2;
  border-color: var(--oc-bad);
  color: var(--oc-bad);
}
.action:disabled { opacity: 0.35; cursor: not-allowed; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 28, 0.35);
  display: grid;
  place-items: center;
  z-index: 200;
}
.modal.hidden, .toast.hidden { display: none; }
.card {
  width: min(420px, calc(100vw - 32px));
  background: var(--oc-surface);
  border: 1px solid var(--oc-line);
  border-radius: var(--oc-radius);
  padding: 22px;
  box-shadow: var(--oc-shadow);
}
.card h2 { margin: 0 0 8px; }
.card p { color: var(--oc-muted); margin: 0 0 12px; }
.card input { width: 100%; border-radius: var(--oc-radius); }
.card .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.error { color: var(--oc-bad); min-height: 1.2em; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--oc-surface);
  border: 1px solid var(--oc-line);
  padding: 10px 14px;
  border-radius: var(--oc-radius);
  box-shadow: var(--oc-shadow);
  z-index: 210;
}

.digest-row { cursor: pointer; }
.digest-row:hover td { background: #f3efe6; }
.digest-article { max-width: 680px; }
.digest-toolbar { margin: 0 0 8px; }
.digest-head { margin-bottom: 0.75rem; }
.digest-head h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.digest-kicker { color: var(--oc-muted); font-size: 13px; margin: 0; }

.tweet-feed { display: flex; flex-direction: column; gap: 10px; }
.tweet-section {
  margin: 0.85rem 0 0.15rem;
  padding: 0 4px;
  color: var(--oc-ink);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.tweet-section:first-child { margin-top: 0.25rem; }
.tweet {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px 16px;
  background: var(--oc-surface);
  border: 1px solid var(--oc-line);
  border-radius: 16px;
  box-shadow: var(--oc-shadow);
}
.tweet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.tweet-main { min-width: 0; }
.tweet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  line-height: 1.3;
}
.tweet-name { color: var(--oc-ink); font-weight: 700; }
.tweet-handle, .tweet-time {
  color: var(--oc-muted);
  font-size: 14px;
}
.tweet-handle { font-family: var(--oc-mono); }
.tweet-text {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-size: 15px;
}
.tweet-ref {
  display: inline;
  color: var(--oc-accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tweet-quote {
  margin-top: 10px;
  padding: 10px 12px 12px;
  border: 1px solid var(--oc-line);
  border-radius: 14px;
  background: #fffcf7;
}
.tweet-quote .tweet-text { font-size: 14px; color: var(--oc-ink); }
.tweet-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  color: var(--oc-muted);
  font-size: 13px;
}
.tweet-foot a { color: var(--oc-accent); }
.tweet-empty {
  padding: 28px 16px;
  color: var(--oc-muted);
  text-align: center;
}

@media (max-width: 800px) {
  .wl-mast { flex-direction: column; align-items: stretch; }
  .auth-box { justify-content: flex-start; }
  .desc { max-width: 240px; }
}
