.nav-active { color: var(--blue) !important; }
.wanted-hero { overflow: hidden; padding: 78px 0 72px; background: linear-gradient(135deg, #f7faff, #edf5ff 58%, #fff8e9); }
.wanted-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.wanted-hero h1 { max-width: 780px; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.wanted-hero p { max-width: 760px; color: #53647a; font-size: 1.08rem; }
.wanted-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.alert-demo-card { padding: 27px; border-radius: 22px; background: var(--navy); color: white; box-shadow: 0 28px 70px rgba(10,31,51,.22); }
.alert-demo-top { display: flex; align-items: center; gap: 10px; color: #d5e3f1; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #45d276; box-shadow: 0 0 0 6px rgba(69,210,118,.14); }
.alert-example { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 13px; margin: 24px 0; padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.07); }
.alert-example span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(245,158,11,.16); font-size: 1.3rem; }
.alert-example b, .alert-example small { display: block; }
.alert-example small { margin-top: 3px; color: #a9bbcd; }
.alert-demo-card ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: #bac9d8; font-size: .88rem; }

.wanted-board { background: #fff; }
.wanted-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr) 285px; gap: 25px; align-items: start; }
.wanted-filters, .sidebar-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; }
.wanted-filters { position: sticky; top: 96px; }
.wanted-filters .input { margin-bottom: 5px; }
.wanted-help-card { margin-top: 23px; padding: 18px; border-radius: 13px; background: #edf5ff; }
.wanted-help-card > span { font-size: 1.35rem; }
.wanted-help-card h3 { margin: 10px 0 7px; font-size: .96rem; }
.wanted-help-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.wanted-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.wanted-list { display: grid; gap: 14px; }
.wanted-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.wanted-card:hover { transform: translateY(-2px); border-color: #b8cef0; box-shadow: 0 14px 35px rgba(16,36,58,.09); }
.wanted-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wanted-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.status-chip, .tag-chip { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.status-chip.open { background: #e9f7ee; color: #14733a; }
.status-chip.matched { background: #eaf3ff; color: #0d56b8; }
.status-chip.closed { background: #eef1f5; color: #5a687a; }
.tag-chip { background: #f0f3f7; color: #506074; }
.wanted-card h3 { margin: 13px 0 7px; font-size: 1.12rem; }
.wanted-card h3 button { padding: 0; border: 0; background: none; color: inherit; text-align: left; font-weight: 800; }
.wanted-card h3 button:hover { color: var(--blue); }
.wanted-card-description { display: -webkit-box; overflow: hidden; margin-bottom: 14px; color: var(--muted); font-size: .86rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wanted-specs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 15px; color: #43536a; font-size: .76rem; }
.wanted-specs b { color: var(--navy); }
.wanted-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 13px; border-top: 1px solid #edf1f5; color: var(--muted); font-size: .72rem; }
.thread-stats { display: flex; gap: 13px; }
.follow-mini { border: 0; background: none; color: var(--blue); font-weight: 800; font-size: .72rem; }
.follow-mini.following { color: var(--success); }
.wanted-sidebar { display: grid; gap: 15px; position: sticky; top: 96px; }
.sidebar-card { background: white; }
.sidebar-card h3 { margin-bottom: 7px; }
.sidebar-card p { color: var(--muted); font-size: .82rem; }
.sidebar-card-heading { display: flex; justify-content: space-between; align-items: center; }
.notification-list { display: grid; gap: 9px; max-height: 390px; overflow: auto; }
.notification-item { width: 100%; padding: 12px; border: 1px solid #e4eaf1; border-radius: 11px; background: #fff; text-align: left; }
.notification-item.unread { border-color: #b9d5fb; background: #f2f7ff; }
.notification-item b, .notification-item small { display: block; }
.notification-item b { color: var(--navy); font-size: .78rem; }
.notification-item span { display: block; margin: 3px 0; color: #526277; font-size: .73rem; }
.notification-item small, .small-muted { color: #8694a5; font-size: .68rem; }
.steps-mini { display: grid; gap: 13px; }
.steps-mini > div { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 9px; font-size: .78rem; color: #526277; }
.steps-mini > div b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: white; }
.notification-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); font-size: 0; }
.notification-button::before { content: "🔔"; font-size: 1rem; }
.notification-button span { position: absolute; right: -4px; top: -5px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d92d20; color: white; font-size: .62rem; font-weight: 900; }

.request-modal { width: min(850px, 100%); }
.request-modal h2 { font-size: 2.2rem; }
.modal-intro { color: var(--muted); }
.wanted-form input, .wanted-form select, .wanted-form textarea, .thread-reply-form input, .thread-reply-form select, .thread-reply-form textarea { width: 100%; border: 1px solid #cfd9e5; border-radius: 9px; background: white; padding: 11px 12px; outline: none; }
.wanted-form input:focus, .wanted-form select:focus, .wanted-form textarea:focus, .thread-reply-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,102,214,.1); }
.wanted-form label { display: grid; gap: 6px; color: #43536a; font-size: .78rem; font-weight: 750; }
.check-row { grid-template-columns: auto 1fr !important; align-items: start; }
.check-row input { width: auto; margin-top: 4px; accent-color: var(--blue); }
.thread-modal { width: min(900px, 100%); }
.thread-heading { padding-right: 42px; }
.thread-heading h2 { margin: 10px 0 8px; font-size: 2.25rem; }
.thread-subhead { color: var(--muted); }
.thread-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.thread-detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.thread-section { margin-top: 23px; }
.thread-section h3 { margin-bottom: 12px; }
.thread-description { padding: 18px; border-radius: 13px; background: #f6f8fb; color: #43536a; white-space: pre-wrap; }
.thread-spec-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.thread-spec-list div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; padding: 10px 12px; background: white; font-size: .78rem; }
.thread-spec-list span { color: var(--muted); }
.reply-list { display: grid; gap: 11px; }
.reply-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.reply-card.have_part { border-color: #a9d9bb; background: #f4fbf6; }
.reply-card-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.reply-card-top small { color: var(--muted); }
.reply-type { color: var(--blue); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.reply-card p { margin: 0; color: #43536a; white-space: pre-wrap; }
.match-list { display: grid; gap: 10px; }
.match-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px; border: 1px solid #bcd7fb; border-radius: 12px; background: #f4f8ff; }
.match-card h4 { margin: 0 0 4px; color: var(--navy); }
.match-card p { margin: 0; color: var(--muted); font-size: .74rem; }
.match-card strong { color: var(--navy); white-space: nowrap; }
.match-card a { color: var(--blue); font-size: .74rem; font-weight: 800; }
.thread-reply-form { display: grid; grid-template-columns: 180px 1fr; gap: 10px; padding: 16px; border-radius: 13px; background: #f5f8fc; }
.thread-reply-form textarea { grid-column: 1 / -1; resize: vertical; }
.thread-reply-form button, .thread-reply-form .inline-status { grid-column: 1 / -1; }
.inline-status { min-height: 20px; margin: 8px 0; color: var(--muted); font-size: .78rem; }
.inline-status.error { color: #b42318; }
.inline-status.success { color: var(--success); }

@media (max-width: 1080px) {
  .wanted-layout { grid-template-columns: 220px 1fr; }
  .wanted-sidebar { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); position: static; }
}
@media (max-width: 820px) {
  .wanted-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .wanted-layout { grid-template-columns: 1fr; }
  .wanted-filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .wanted-filters .filter-header, .wanted-help-card { grid-column: 1 / -1; }
  .wanted-sidebar { grid-template-columns: 1fr; }
  .thread-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wanted-filters { grid-template-columns: 1fr; }
  .wanted-filters .filter-header, .wanted-help-card { grid-column: auto; }
  .wanted-card-footer, .wanted-card-top { align-items: flex-start; flex-direction: column; }
  .thread-reply-form { grid-template-columns: 1fr; }
  .thread-reply-form textarea, .thread-reply-form button, .thread-reply-form .inline-status { grid-column: auto; }
  .match-card { grid-template-columns: 1fr; }
}
