:root {
  --paper: #f2eee3;
  --paper-2: #e9e3d3;
  --paper-3: #ddd5c2;
  --ink: #121212;
  --ink-2: #252525;
  --muted: #6b675c;
  --line: rgba(18, 18, 18, .22);
  --line-hard: #121212;
  --lime: #d9ff3f;
  --lime-2: #b9e22a;
  --orange: #ff6a3d;
  --blue: #2f5bff;
  --red: #cf3b3b;
  --white: #fffdf5;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Inter Tight", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 4px 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(18, 18, 18, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 18, 18, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(217, 255, 63, .24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 0 18px rgba(217, 255, 63, .42);
}
.brand-word {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.brand-word span { color: var(--lime); }
.brand-cn {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.32);
  color: rgba(255,255,255,.58);
  font-size: 12px;
  letter-spacing: .16em;
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.static-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.56);
  white-space: nowrap;
}
html:not([data-mode="static"]) [data-static-only] { display: none !important; }
.sys-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.68);
  white-space: nowrap;
}
.sys-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(217,255,63,.12);
}
.sys-state.busy .sys-dot { animation: blink .8s steps(2, end) infinite; }
.sys-state.bad .sys-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,61,.16); }
.scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: transform .15s ease, background .15s ease;
}
.scan-btn:hover { background: var(--white); transform: translate(-1px,-1px); }
.scan-btn:active { transform: translate(1px,1px); }
.scan-btn:disabled { opacity: .55; cursor: wait; }
.scan-btn-icon { font-size: 17px; line-height: 1; }

.app-shell { max-width: 1600px; margin: 0 auto; padding: 0 28px 64px; }
.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 20px;
  align-items: center;
  padding: 52px 0 44px;
  border-bottom: 2px solid var(--ink);
}
.eyebrow, .panel-label, .filter-title, .placeholder-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-copy h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 900;
}
.hero-copy h1 span { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.hero-sub {
  max-width: 620px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 18px; height: 2px; background: var(--ink); display: inline-block; }

.radar-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 390px;
  margin-left: auto;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
  isolation: isolate;
}
.radar-visual::before, .radar-visual::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: .5;
}
.radar-visual::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar-visual::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(18,18,18,.45);
  border-radius: 50%;
}
.r1 { width: 30%; height: 30%; }
.r2 { width: 60%; height: 60%; }
.r3 { width: 90%; height: 90%; }
.radar-sweep {
  position: absolute;
  inset: 50% 50% 0 0;
  transform-origin: 100% 0;
  background: conic-gradient(from 0deg at 100% 0, transparent 0deg, rgba(217,255,63,.78) 38deg, transparent 76deg);
  animation: sweep 4.8s linear infinite;
  z-index: 1;
}
.radar-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 900;
}
.radar-label {
  position: absolute;
  z-index: 3;
  padding: 4px 7px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
}
.l1 { top: 18%; left: 17%; }
.l2 { top: 63%; right: 10%; }
.l3 { bottom: 12%; left: 24%; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--ink);
}
.stat-card {
  min-height: 118px;
  padding: 18px 20px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-card:last-child { border-right: 0; }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}
.stat-value {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
}
.stat-value small { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat-note {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .03em;
}
.skeleton { background: linear-gradient(90deg, transparent 0, rgba(255,255,255,.4) 50%, transparent 100%); background-size: 240% 100%; animation: shimmer 1.2s infinite; }

.combo-panel {
  margin-top: 22px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--lime);
}
.combo-head h2 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.1; margin: 0 0 5px; }
.combo-head p { margin: 0; font-size: 12px; color: #34352d; }
.combo-toggle, .combo-actions button {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
  padding: 12px 16px;
  cursor: pointer;
}
.combo-toggle { white-space: nowrap; }
.combo-toggle:hover, .combo-toggle:focus-visible, .combo-actions button:hover, .combo-actions button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.combo-body { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 0; }
.combo-editor { padding: 18px 20px; border-right: 1.5px solid var(--ink); display: grid; gap: 9px; align-content: start; }
.combo-editor label { font: 700 10px/1.4 var(--mono); letter-spacing: .06em; }
.combo-editor textarea, .combo-editor select {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 10px;
  font: 13px/1.5 var(--sans);
  resize: vertical;
}
.combo-editor textarea:focus-visible, .combo-editor select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.combo-editor small { color: var(--muted); line-height: 1.5; }
.combo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.combo-actions .ghost { background: var(--white); color: var(--ink); }
.combo-actions button:disabled { opacity: .55; cursor: wait; }
#combo-status { font: 700 10px/1.4 var(--mono); color: var(--muted); flex: 1 1 140px; }
#combo-status.warn, .warn { color: var(--red); }
.combo-results { padding: 18px 20px; min-width: 0; overflow-wrap: anywhere; }
.combo-empty, .combo-footnote { color: var(--muted); font-size: 12px; line-height: 1.6; }
.combo-summary { border-left: 6px solid var(--orange); padding: 12px 14px; background: var(--paper-2); margin-bottom: 12px; }
.combo-summary.possible { border-left-color: var(--lime); }
.combo-summary.unsupported { border-left-color: var(--red); }
.combo-summary span { display: inline-block; font: 700 10px/1 var(--mono); letter-spacing: .08em; border: 1px solid var(--ink); padding: 5px 7px; margin-bottom: 8px; background: var(--white); }
.combo-summary strong { display: block; font-size: 15px; margin-bottom: 6px; }
.combo-summary p { margin: 0 0 6px; line-height: 1.55; }
.combo-summary small { display: block; color: var(--muted); margin-top: 5px; }
.combo-card { border: 1.5px solid var(--ink); padding: 12px 14px; margin-bottom: 10px; background: var(--paper); }
.combo-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.combo-card-head span { font: 700 10px/1 var(--mono); white-space: nowrap; color: var(--blue); }
.combo-card p { font-size: 12px; line-height: 1.55; margin: 8px 0 0; }
.combo-card details { margin-top: 9px; font-size: 11px; }
.combo-card summary { cursor: pointer; font-weight: 700; }
.combo-card ul { margin: 7px 0 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }
.combo-card li { line-height: 1.5; margin-bottom: 4px; overflow-wrap: anywhere; }
.combo-card code { font-family: var(--mono); font-size: 10px; }

.workspace {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr) 424px;
  gap: 18px;
  padding-top: 24px;
  align-items: start;
}
.panel {
  border: 1.5px solid var(--ink);
  background: rgba(242,238,227,.9);
}
.filters {
  position: sticky;
  top: 82px;
  padding: 18px 16px;
}
.panel-label { margin-bottom: 8px; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 4px; }
.filter-title { display: block; margin-bottom: 10px; font-size: 9px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.segmented button, .source-list button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 600;
  transition: background .12s ease, border-color .12s ease;
}
.segmented button:hover, .source-list button:hover { border-color: var(--ink); background: var(--paper-3); }
.segmented button.on, .source-list button.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.source-list { display: grid; gap: 5px; }
.source-list button { display: flex; align-items: center; gap: 8px; }
.source-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.source-dot.all { background: var(--ink); }
.source-dot.dora { background: var(--orange); }
.source-dot.hq { background: var(--blue); }
.source-dot.mojo { background: #00a86b; }
.search-input, .select-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  outline: none;
}
.search-input:focus, .select-input:focus { border-color: var(--ink); box-shadow: 2px 2px 0 var(--lime); }
.switch-row { display: flex; align-items: center; gap: 9px; padding: 10px 0 16px; font-size: 12px; font-weight: 600; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 31px; height: 18px; border: 1.5px solid var(--ink); background: var(--white); position: relative; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; background: var(--ink); transition: transform .15s ease, background .15s ease; }
.switch-row input:checked + .switch { background: var(--ink); }
.switch-row input:checked + .switch::after { transform: translateX(13px); background: var(--lime); }
.rail-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.rail-foot-line { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.rail-foot-line b { color: var(--ink); font-weight: 700; text-align: right; }
.rail-link { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); }

.feed { min-width: 0; }
.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 2px 14px;
  border-bottom: 2px solid var(--ink);
}
.feed-head h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.feed-head-right { display: flex; align-items: baseline; gap: 6px; }
.feed-count { font-family: var(--mono); font-size: 28px; font-weight: 900; }
.feed-count-label { font-size: 11px; color: var(--muted); }
.list { display: grid; }
.hack-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px 16px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(242,238,227,.55);
  cursor: pointer;
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.hack-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
}
.hack-card[data-source="dorahacks"]::before { background: var(--orange); }
.hack-card[data-source="hackquest"]::before { background: var(--blue); }
.hack-card[data-source="mojo"]::before { background: #00a86b; }
.hack-card:hover { background: var(--white); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--line-hard); }
.hack-card.selected { background: var(--white); border: 1.5px solid var(--ink); margin: -1px 0; box-shadow: var(--shadow); z-index: 1; }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.source-tag, .new-flag, .status-mini {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  background: var(--white);
}
.source-tag.dorahacks { background: var(--orange); }
.source-tag.hackquest { background: var(--blue); color: var(--white); border-color: var(--blue); }
.source-tag.mojo { background: #00a86b; color: var(--white); border-color: #00a86b; }
.new-flag { background: var(--lime); margin-left: auto; }
.status-mini { color: var(--muted); border-color: var(--line); background: transparent; }
.card-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.card-sub .prize { color: var(--ink); font-weight: 800; font-family: var(--mono); }
.card-sub .deadline.warn { color: var(--red); }
.card-bottom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.mini-score { display: grid; gap: 4px; }
.mini-score-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.mini-score-head b { color: var(--ink); font-size: 11px; }
.bar { height: 4px; background: var(--paper-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .3s ease; }
.bar i.easy { background: #4d8f2f; }
.bar i.mid { background: #b8860b; }
.bar i.hard { background: var(--red); }
.fit-badge {
  min-width: 56px;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  background: var(--lime);
}
.fit-badge small { display: block; font-size: 8px; font-weight: 600; letter-spacing: .06em; }

.detail-panel {
  position: sticky;
  top: 82px;
  min-height: 620px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
  scrollbar-width: thin;
  scrollbar-color: #555 var(--ink);
}
.detail-close { display: none; position: absolute; top: 12px; right: 12px; z-index: 5; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); background: rgba(18,18,18,.7); color: var(--white); font-size: 23px; line-height: 1; }
.detail-placeholder { min-height: 620px; padding: 54px 30px; display: flex; flex-direction: column; justify-content: center; }
.placeholder-radar { position: relative; width: 150px; height: 150px; margin-bottom: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.placeholder-radar span { position: absolute; inset: 20%; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.placeholder-radar span:nth-child(2) { inset: 38%; }
.placeholder-radar span:nth-child(3) { inset: 47%; background: var(--lime); border-color: var(--lime); }
.placeholder-radar i { position: absolute; inset: 50% 50% 0 0; background: conic-gradient(from 0deg at 100% 0, transparent 0deg, rgba(217,255,63,.65) 42deg, transparent 80deg); transform-origin: 100% 0; animation: sweep 4s linear infinite; }
.placeholder-kicker { color: var(--lime); }
.detail-placeholder h2 { margin: 15px 0 12px; font-size: 31px; line-height: 1.05; letter-spacing: -.04em; }
.detail-placeholder p { margin: 0; max-width: 300px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.65; }
.detail-cover { position: relative; height: 176px; background: #222; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); opacity: .82; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,.05), rgba(18,18,18,.9)); }
.detail-cover-tags { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-body { padding: 22px 22px 30px; }
.detail-source { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--lime); }
.detail-body h2 { margin: 8px 0 6px; font-size: 27px; line-height: 1.08; letter-spacing: -.04em; }
.detail-organizer { color: rgba(255,255,255,.55); font-size: 12px; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; margin: 17px 0 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.btn:hover { border-color: var(--lime); color: var(--lime); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.primary:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.verdict-strip { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: var(--lime); color: var(--ink); margin-bottom: 15px; }
.verdict-strip b { font-size: 15px; }
.verdict-strip span { margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 700; }
.one-liner { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.86); }
.detail-section { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.16); }
.detail-section h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 11px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.detail-section h3 b { color: var(--lime); font-size: 14px; letter-spacing: 0; }
.score-block { margin-bottom: 14px; }
.score-block:last-child { margin-bottom: 0; }
.score-block-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; margin-bottom: 5px; }
.score-block-head b { color: var(--lime); }
.detail-bar { height: 5px; background: rgba(255,255,255,.14); margin-bottom: 8px; }
.detail-bar i { display: block; height: 100%; background: var(--lime); }
.reason-list, .req-list, .flag-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.reason-list li, .req-list li, .flag-list li { position: relative; padding-left: 13px; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.72); }
.reason-list li::before { content: "›"; position: absolute; left: 0; color: var(--lime); }
.req-list li::before { content: "□"; position: absolute; left: 0; color: var(--lime); font-size: 10px; top: 1px; }
.flag-list li::before { content: "!"; position: absolute; left: 0; color: var(--orange); font-family: var(--mono); font-weight: 900; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 7px; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.72); font-family: var(--mono); font-size: 9px; }
.track-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.track-item:last-child { border-bottom: 0; }
.track-item b { display: block; font-size: 12px; }
.track-item p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; color: rgba(255,255,255,.55); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.angle-box { padding: 12px; border-left: 2px solid var(--lime); background: rgba(217,255,63,.06); font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.82); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.meta-grid div { display: grid; gap: 3px; }
.meta-grid span { font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: rgba(255,255,255,.4); text-transform: uppercase; }
.meta-grid b { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.82); }
.llm-badge { display: inline-block; margin-left: 5px; padding: 2px 4px; border: 1px solid rgba(217,255,63,.4); color: var(--lime); font-family: var(--mono); font-size: 8px; }
.record-badge { padding: 2px 5px; background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.record-note { margin: 0 0 13px; color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.65; }
.record-note code { color: var(--lime); font-family: var(--mono); font-size: 10px; }
.record-form { display: grid; gap: 11px; }
.record-checks { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.record-status { min-height: 16px; margin: 0; color: rgba(255,255,255,.55); font-family: var(--mono); font-size: 9px; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-state { padding: 70px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.empty-mark { font-family: var(--mono); font-size: 32px; letter-spacing: .3em; color: var(--muted); }
.empty-state p { color: var(--muted); font-size: 13px; }

.config-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.config-btn:hover { border-color: var(--lime); color: var(--lime); }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(18,18,18,.6); backdrop-filter: blur(2px); }
.modal {
  position: fixed;
  z-index: 71;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--ink-2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 8px 8px 0 rgba(0,0,0,.45);
}
.modal[hidden], .modal-backdrop[hidden] { display: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.modal-head h2 { margin: 8px 0 0; font-size: 22px; letter-spacing: -.03em; }
.modal-close { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--white); font-size: 18px; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--lime); color: var(--lime); }
.modal-body { display: grid; gap: 12px; padding: 16px 20px 20px; }
.modal-note { margin: 0; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.6; }
.modal-note code { color: var(--lime); font-family: var(--mono); font-size: 11px; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.field input, .field textarea { box-sizing: border-box; max-width: 100%; width: 100%; padding: 8px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.28); color: var(--white); font-family: var(--mono); font-size: 12px; }
.field input { height: 36px; }
.field textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.82); }
.field-check input { width: 16px; height: 16px; accent-color: var(--lime); }
.modal-status { min-height: 18px; margin: 0; font-family: var(--mono); font-size: 10px; word-break: break-all; color: rgba(255,255,255,.55); }
.modal-status.warn { color: var(--orange); }
.modal-actions { display: flex; gap: 8px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(18,18,18,.55); backdrop-filter: blur(2px); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes shimmer { to { background-position: -240% 0; } }

@media (max-width: 1220px) {
  .workspace { grid-template-columns: 200px minmax(0, 1fr); }
  .detail-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 70;
    width: min(470px, 92vw);
    max-height: none;
    min-height: 100vh;
    transform: translateX(102%);
    transition: transform .22s ease;
  }
  .detail-panel.open { transform: translateX(0); }
  .detail-close { display: block; }
}
@media (max-width: 860px) {
  .topbar { padding: 0 16px; }
  .combo-body { grid-template-columns: 1fr; }
  .combo-editor { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .brand-cn { display: none; }
  .sys-state { display: none; }
  .app-shell { padding: 0 16px 48px; }
  .hero-strip { grid-template-columns: 1fr; padding: 38px 0 30px; }
  .radar-visual { max-width: 280px; margin: 8px auto 0; }
  .hero-copy h1 { margin-top: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(3), .stat-card:nth-child(4) { border-bottom: 0; }
  .workspace { grid-template-columns: 1fr; }
  .filters { position: static; }
  .source-list { grid-template-columns: 1fr 1fr; }
  .segmented { grid-template-columns: repeat(4, 1fr); }
  .segmented button { text-align: center; font-size: 10px; padding: 8px 4px; }
  .detail-panel { width: 100vw; }
  .detail-placeholder { min-height: 70vh; }
}
@media (max-width: 520px) {
  .brand-word { font-size: 15px; }
  .combo-head { align-items: flex-start; flex-direction: column; padding: 14px; }
  .combo-editor, .combo-results { padding: 14px; }
  .combo-actions button { padding: 11px 12px; }
  .scan-btn { padding: 0 12px; }
  .config-btn { padding: 0 9px; font-size: 10px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-meta { gap: 12px; }
  .card-bottom { grid-template-columns: 1fr 1fr; }
  .fit-badge { grid-column: 1 / -1; text-align: left; }
  .meta-grid { grid-template-columns: 1fr; }
}

