:root {
  --ink: #0A0A0B; --panel: #141416; --panel-2: #1B1B1E; --line: #2A2A2D; --line-strong: #3A3A3D;
  --bone: #F2F2EE; --text-2: #D6D6D0; --text-3: #B4B4AE; --smoke: #8C8C86; --signal: #C6FF3D; --danger: #FF6B5B;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--sans); font-size: 16px; line-height: 1.4; overflow-x: clip; }
.wrap { max-width: 720px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: 4px solid var(--signal); border-right-color: transparent; position: relative; }
.mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--signal); }
h1 { margin: 0; font-size: 20px; letter-spacing: 0.02em; }
.brand p { margin: 0; font-size: 13px; color: var(--smoke); }
.refresh { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--bone); font: inherit; font-size: 14px; cursor: pointer; flex: 0 0 auto; }
.refresh:hover { border-color: var(--signal); }
.refresh:focus-visible, .tab:focus-visible, .pill:focus-visible, .search:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.tabs { display: flex; gap: 6px; margin: 16px 0 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 36px; padding: 0 14px; border-radius: 18px; background: transparent; border: 1px solid var(--line); color: var(--text-3); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.tab[aria-selected="true"] { background: var(--signal); border-color: var(--signal); color: #0A0A0B; font-weight: 600; }
.tab .n { opacity: 0.7; font-size: 12px; margin-left: 2px; }

.search { width: 100%; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--bone); font: inherit; font-size: 15px; }
.search::placeholder { color: var(--smoke); }
.status { margin: 10px 2px 8px; font-size: 13px; color: var(--smoke); min-height: 1.4em; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pill { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--bone); text-decoration: none; }
.pill:hover { border-color: var(--line-strong); background: var(--panel-2); }
.pill:active { background: var(--panel-2); }
.dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 6px; border-radius: 50%; background: hsl(var(--h, 90) 70% 60%); }
.body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.title { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 12.5px; color: var(--smoke); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skel { height: 66px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.empty { padding: 24px 8px; color: var(--smoke); text-align: center; }

.sources { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.sources summary { cursor: pointer; color: var(--text-3); font-size: 14px; }
.sources ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sources li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; }
.sources label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.sources .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources .st { margin-left: auto; font-size: 12.5px; color: var(--smoke); white-space: nowrap; }
.sources .st.bad { color: var(--danger); }
.sources input { accent-color: var(--signal); width: 18px; height: 18px; flex: 0 0 18px; }
.foot { margin-top: 20px; font-size: 12.5px; color: var(--smoke); }
