:root {
  --bg: #0a1016;
  --panel: #111a22;
  --panel-2: #16232c;
  --ink: #ecf1e8;
  --muted: #84919a;
  --dim: #59676f;
  --line: rgba(236, 241, 232, .12);
  --lime: #c7f36a;
  --lime-dark: #243311;
  --amber: #efb867;
  --radius: 18px;
  font-family: 'Space Grotesk', 'Noto Sans SC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: radial-gradient(circle at 78% 0%, #20313b 0%, transparent 34rem), var(--bg); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .06; z-index: 5; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); }
.topbar { height: 76px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(10, 16, 22, .86); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--bg); background: var(--lime); border-radius: 9px; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; line-height: 1.1; }
.brand small { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .14em; margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.ghost-button, .primary-button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; color: var(--ink); background: transparent; cursor: pointer; text-decoration: none; font-size: 13px; transition: .2s ease; }
.ghost-button:hover { border-color: rgba(199, 243, 106, .55); color: var(--lime); }
.primary-button { background: var(--lime); border-color: var(--lime); color: #121b12; font-weight: 600; }
.primary-button:hover { background: #e1ff94; transform: translateY(-1px); }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.layout { max-width: 1480px; min-height: calc(100dvh - 76px); margin: 0 auto; padding: 72px 4vw 90px; display: grid; grid-template-columns: minmax(250px, 28%) 1fr; gap: clamp(44px, 8vw, 130px); }
.sidebar { position: sticky; top: 132px; height: max-content; }
.eyebrow { color: var(--lime); font: 11px 'DM Mono', monospace; letter-spacing: .16em; }
.sidebar h1 { font-size: clamp(35px, 4vw, 57px); line-height: .98; letter-spacing: -.065em; margin: 23px 0 21px; font-weight: 600; }
.sidebar h1 em { color: var(--lime); font-style: normal; }
.sidebar-intro { max-width: 275px; color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.sidebar-rule { border-top: 1px solid var(--line); margin: 48px 0 21px; }
.category-nav { display: grid; gap: 6px; }
.category-button { padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: space-between; color: var(--muted); text-align: left; cursor: pointer; transition: .2s ease; }
.category-button span:last-child { color: var(--dim); font: 11px 'DM Mono', monospace; }
.category-button:hover, .category-button.active { color: var(--ink); background: rgba(199, 243, 106, .08); }
.category-button.active span:last-child { color: var(--lime); }
.sidebar-footer { margin-top: 48px; display: flex; align-items: center; gap: 8px; color: var(--dim); font: 11px 'DM Mono', monospace; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(199, 243, 106, .08); }
.content-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; }
.content-head h2 { margin: 18px 0 0; font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -.07em; font-weight: 500; }
.content-head h2 span { color: var(--lime); }
.stats { display: flex; gap: 24px; padding-bottom: 4px; }
.stat strong, .stat span { display: block; }
.stat strong { font-size: 28px; letter-spacing: -.06em; }
.stat span { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .1em; margin-top: 4px; }
.toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.search-box { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: var(--muted); padding: 3px 0 12px; }
.search-box span { font-size: 27px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-box input::placeholder { color: var(--dim); }
kbd { color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; font: 11px 'DM Mono', monospace; }
.sort-wrap { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.sort-wrap select, .edit-panel select { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 9px 10px; outline-color: var(--lime); }
.active-filter { display: inline-flex; align-items: center; gap: 10px; color: var(--lime); font: 12px 'DM Mono', monospace; margin: 6px 0 14px; }
.active-filter button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.article-card { min-height: 215px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 21px 21px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(22, 35, 44, .94), rgba(15, 24, 31, .8)); cursor: pointer; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.article-card:hover { transform: translateY(-3px); border-color: rgba(199, 243, 106, .48); background: linear-gradient(145deg, rgba(29, 46, 55, .98), rgba(16, 27, 34, .94)); }
.card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.card-domain { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-category { color: var(--lime); white-space: nowrap; }
.article-card h3 { margin: 0; font-size: 20px; line-height: 1.16; letter-spacing: -.035em; font-weight: 500; }
.card-context { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font: 11px 'DM Mono', monospace; }
.card-status { color: var(--amber); }
.card-status.filed { color: var(--lime); }
.load-more { width: 100%; margin-top: 20px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 12px; padding: 13px; cursor: pointer; }
.load-more:hover { border-color: rgba(199, 243, 106, .45); color: var(--lime); }
.empty-state { padding: 80px 0; text-align: center; color: var(--muted); }
.empty-mark { font-size: 42px; color: var(--lime); }
.empty-state h3 { color: var(--ink); margin: 12px 0 8px; }
.empty-state p { margin: 0; }
.article-dialog { width: min(680px, calc(100% - 28px)); max-height: min(760px, calc(100dvh - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 24px; background: #101b23; color: var(--ink); box-shadow: 0 30px 120px rgba(0, 0, 0, .54); }
.article-dialog::backdrop { background: rgba(3, 7, 10, .78); backdrop-filter: blur(8px); }
.dialog-inner { padding: 38px; position: relative; }
.dialog-close { position: absolute; right: 20px; top: 16px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }
.dialog-kicker { color: var(--lime); font: 11px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.article-dialog h3 { max-width: 560px; margin: 15px 0 10px; font-size: clamp(28px, 5vw, 44px); line-height: 1.02; letter-spacing: -.055em; font-weight: 500; }
.dialog-url { display: block; color: var(--amber); font: 12px 'DM Mono', monospace; word-break: break-all; text-decoration: none; }
.dialog-url:hover { text-decoration: underline; }
.dialog-context { color: var(--muted); line-height: 1.7; margin: 23px 0; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); font: 11px 'DM Mono', monospace; }
.edit-panel { margin-top: 30px; padding: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10, 16, 22, .44); }
.edit-title { grid-column: 1 / -1; color: var(--ink); font-size: 13px; }
.edit-panel label { display: grid; gap: 7px; color: var(--muted); font: 11px 'DM Mono', monospace; }
.edit-panel select { width: 100%; }
.save-button { grid-column: 1 / -1; width: 100%; border-radius: 9px; padding: 11px; }
.dialog-notes { margin-top: 25px; color: var(--dim); font: 11px 'DM Mono', monospace; line-height: 1.65; }
.dialog-notes strong { color: var(--muted); font-weight: 400; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; opacity: 0; transform: translateY(10px); pointer-events: none; border: 1px solid rgba(199, 243, 106, .45); background: #172312; color: var(--lime); border-radius: 10px; padding: 12px 15px; font-size: 13px; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; padding-top: 42px; gap: 47px; }
  .sidebar { position: static; }
  .sidebar-intro { max-width: 520px; }
  .sidebar-rule { margin: 30px 0 15px; }
  .category-nav { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .category-button { flex: 0 0 auto; gap: 18px; }
  .sidebar-footer { margin-top: 18px; }
}
@media (max-width: 650px) {
  .topbar { height: 68px; padding: 0 18px; }
  .top-actions .ghost-button { display: none; }
  .top-actions .primary-button { padding: 8px 12px; font-size: 12px; }
  .layout { padding: 34px 18px 64px; }
  .content-head { display: block; }
  .stats { margin-top: 24px; }
  .toolbar { display: block; }
  .sort-wrap { margin-top: 13px; justify-content: space-between; }
  .sort-wrap select { flex: 1; }
  .article-grid { grid-template-columns: 1fr; }
  .dialog-inner { padding: 31px 22px 24px; }
  .edit-panel { grid-template-columns: 1fr; }
  .edit-title, .save-button { grid-column: 1; }
}
