:root {
  --bg: #eceef3;
  --card: #fff;
  --ink: #12141c;
  --muted: #646a7d;
  --line: rgb(18 20 28 / .1);
  --accent: #2b3bff;
  --neon: #39ff14;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
body { background: var(--bg); color: var(--ink); font-family: 'Inter Tight', system-ui, sans-serif; -webkit-font-smoothing: antialiased }
button, input { font: inherit; color: inherit }

.head { max-width: 1200px; margin: 0 auto; padding: 36px 16px 8px }
.brand { font: 500 14px 'JetBrains Mono', monospace; color: var(--ink); text-decoration: none }
.brand span { color: var(--accent) }
.head h1 { margin-top: 14px; font-size: clamp(38px, 7vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: .95 }
.head h1 em { color: var(--accent); font-weight: 700 }
.sub { margin-top: 10px; color: var(--muted); font: 500 14px 'JetBrains Mono', monospace }

.tools { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
#q { flex: 1 1 260px; min-height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); outline: none }
#q:focus { border-color: var(--accent) }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); cursor: pointer }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent) }

.chips { margin-top: 14px; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none }
.chips button { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink) }

.grid { max-width: 1200px; margin: 0 auto; padding: 20px 16px 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px }
.card { background: var(--card); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column }
.card.posted { opacity: .55 }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--bg) }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.meta { display: flex; gap: 8px; align-items: center; font: 500 12px 'JetBrains Mono', monospace; color: var(--muted) }
.meta .tag { padding: 3px 8px; border-radius: 99px; background: var(--bg); color: var(--ink) }
.card h2 { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto }
.btn { min-height: 46px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; cursor: pointer }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent }
.btn:active { transform: scale(.97) }
details { font-size: 15px }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none }
details summary::-webkit-details-marker { display: none }
details summary::before { content: '+ ' }
details[open] summary::before { content: '− ' }
details pre { margin-top: 8px; white-space: pre-wrap; font: 15px/1.5 'Inter Tight', sans-serif }
.posted-row { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer }
.posted-row input { width: 18px; height: 18px; accent-color: var(--accent) }

.empty { text-align: center; color: var(--muted); padding: 40px 16px }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 600; transition: .2s }
.toast.show { opacity: 1; transform: translate(-50%, 0) }
.toast::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); margin-right: 10px; vertical-align: middle }
