:root {
  --brand: #0a66c2; /* LinkedIn blue */
  --brand-dark: #004182;
  --page-bg: #e8f1fa; /* light blue app background */
  --sidebar-bg: #0a66c2;
  --side-text: rgba(255, 255, 255, 0.9);
  --side-hover: rgba(255, 255, 255, 0.14);
  --active: #004182;
  --green: #2bac76;
  --border: #dddddd;
  --muted: #616061;
  --text: #1d1c1d;
  --font: Lato, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: var(--font); color: var(--text); }
button, input, textarea { font: inherit; }
.hidden { display: none !important; }

/* Login */
/* Scrolls when the sign-up form is taller than the screen (the submit button must always be reachable). */
.login { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(135deg, #e8f1fa 0%, #c9dff4 100%); padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.login-card { width: 100%; max-width: 380px; margin: auto 0; flex: none; background: #fff; border-radius: 12px; padding: 32px; display: grid; gap: 12px; }
@media (max-width: 420px) { .login-card { padding: 24px 18px; } }
.login-card h1 { margin: 0; font-size: 26px; color: var(--brand); }
.login-card p { margin: 0 0 4px; color: var(--muted); }
.login-card input { padding: 12px; border: 1px solid #868686; border-radius: 6px; font-size: 16px; }
.login-card input:focus { outline: 2px solid #0a66c2; border-color: transparent; }
.login-card .contact-field { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.channel-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.channel-choice { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.channel-choice input { margin: 0; }
.profile-attachment { display: grid; gap: 4px; }
.login-card button { padding: 12px; border: 0; border-radius: 6px; background: #0a66c2; color: #fff; font-weight: 700; cursor: pointer; }
.login-card button:hover { background: #004182; }
.login-error { min-height: 1.2em; color: #e01e5a; font-size: 14px; }

/* Layout */
.app { display: grid; grid-template-columns: 260px 1fr; height: 100%; }
.sidebar { background: var(--sidebar-bg); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; }
.workspace { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.workspace-name { color: #fff; font-weight: 900; font-size: 18px; }
.me { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 2px; }
.sidebar-scroll { overflow-y: auto; padding: 8px 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 4px; font-size: 14px; }
.icon-btn { width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--side-text); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { background: var(--side-hover); color: #fff; }

.side-item { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 1px 8px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--side-text); text-align: left; cursor: pointer; }
.side-item:hover { background: var(--side-hover); }
.side-item.active { background: var(--active); color: #fff; }
.side-item.unread:not(.active) { color: #fff; font-weight: 800; }
.side-icon { width: 14px; text-align: center; flex: none; }
.side-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { background: #cd2553; color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; flex: none; margin: 0 2px; }
.dot.online { background: var(--green); border-color: var(--green); }

/* Main */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--page-bg); }
.candidate-search-page { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; }
.candidate-page-title { margin: 0 0 16px; font-size: 20px; }
.candidate-search-form { margin-bottom: 16px; }
.candidate-search-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; gap: 12px; }
.candidate-search-filters > .field { min-width: 0; }
.candidate-search-filters > .field input, .candidate-search-filters > .field select { width: 100%; }
.topbar { padding: 12px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.topbar h2 { margin: 0; font-size: 18px; }
.messages { flex: 1; overflow-y: auto; padding: 12px 0; }
.empty { padding: 24px 20px; color: var(--muted); }

.message { position: relative; display: flex; gap: 10px; padding: 4px 20px; }
.message:hover { background: rgba(255, 255, 255, 0.7); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 6px; color: #fff; font-weight: 800; display: grid; place-items: center; }
.avatar-spacer { width: 36px; flex: none; font-size: 11px; color: transparent; text-align: right; padding-top: 4px; }
.message:hover .avatar-spacer { color: var(--muted); }
.body { min-width: 0; }
.meta { display: flex; align-items: baseline; gap: 8px; }
.author { font-weight: 900; }
.time { color: var(--muted); font-size: 12px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bot { background: #e8e8e8; color: var(--muted); font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }

.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction { padding: 1px 8px; border: 1px solid transparent; border-radius: 12px; background: #f0f0f0; cursor: pointer; font-size: 13px; }
.reaction:hover { border-color: #868686; }
.reaction.mine { background: #e5f3fb; border-color: #0a66c2; }

.toolbar { position: absolute; top: -14px; right: 20px; display: none; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.message:hover .toolbar, .message:focus-within .toolbar { display: flex; }
.toolbar button { border: 0; background: transparent; border-radius: 6px; padding: 3px 6px; cursor: pointer; font-size: 16px; }
.toolbar button:hover { background: #f0f0f0; }

.typing { min-height: 22px; padding: 0 20px; font-size: 13px; color: var(--muted); font-style: italic; }
.composer-box { display: flex; align-items: flex-end; gap: 8px; margin: 0 20px 20px; padding: 8px 10px; border: 1px solid #868686; border-radius: 8px; background: #fff; }
.experience-range { display: flex; gap: 8px; flex: none; }
.experience-range label { display: grid; gap: 2px; color: var(--muted); font-size: 11px; }
.experience-range input { width: 76px; padding: 4px; border: 1px solid #868686; border-radius: 4px; }
.composer-box:focus-within { border-color: #0a66c2; box-shadow: 0 0 0 1px #0a66c2; }
.composer-box textarea { flex: 1; resize: none; border: 0; outline: 0; max-height: 160px; line-height: 1.4; padding: 4px; }
.send { border: 0; border-radius: 6px; padding: 6px 14px; background: #0a66c2; color: #fff; font-weight: 700; cursor: pointer; }
.send:hover { background: #004182; }

/* Phones: the sidebar becomes a slide-out drawer opened with the ☰ button. */
.menu-btn { display: none; }
.drawer-backdrop { display: none; }
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; height: 100dvh; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(84vw, 300px); padding-top: env(safe-area-inset-top); transform: translateX(-100%); transition: transform .2s ease; }
  .app.drawer-open .sidebar { transform: none; box-shadow: 0 0 24px rgba(0, 0, 0, .3); }
  .app.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .35); }
  .menu-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 22px; cursor: pointer; }
  .menu-btn:hover, .menu-btn:focus-visible { background: #eef3f8; }
  .topbar { padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
  .topbar h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
  .message { padding: 4px 16px; }
  .composer-box { margin: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  #composer { font-size: 16px; } /* 16px stops iOS zooming into the input */
  .modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---- Roles, tabs, modals, admin ---- */
.login-card .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.login-card label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.login-card select { padding: 8px; border: 1px solid #868686; border-radius: 6px; }
.tab { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: #0a66c2; }
.login-card button.tab { background: transparent; color: var(--muted); }
.login-card button.tab.active { color: var(--text); }

.role-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: #e8e8e8; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.role-tag.admin { background: #e8912d; color: #fff; }
.role-tag.recruiter { background: #2eb67d; color: #fff; }
.role-tag.jobseeker { background: #36a3c7; color: #fff; }
.me .role-tag { margin-left: 4px; }

.workspace-actions { display: grid; gap: 4px; margin-top: 10px; }
.side-btn { display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 13px; text-align: left; }
.side-btn:hover { background: var(--side-hover); }
.side-note { padding: 4px 18px; font-size: 13px; }
.side-item.locked { opacity: .85; }
.side-item.locked .lock-state { font-size: 12px; background: rgba(255,255,255,.15); padding: 0 6px; border-radius: 8px; }

.modal-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; }
.modal.wide { max-width: 980px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 16px 20px 20px; overflow: auto; }
.modal-body h4 { margin: 16px 0 8px; }
.modal-body h4:first-child { margin-top: 0; }
.icon-btn.dark { color: var(--muted); font-size: 22px; }
.icon-btn.dark:hover { background: #f0f0f0; color: var(--text); }
.modal-body button { border: 1px solid #868686; background: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.modal-body button:hover { background: #f6f6f6; }
.modal-body button.primary { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.modal-body button.primary:hover { background: #004182; }
.modal-body button:disabled { opacity: .55; cursor: not-allowed; }
.modal-body button.small { padding: 3px 10px; font-size: 13px; }
.modal-body button.resume-download { border: 0; background: transparent; color: #0a66c2; padding: 0; text-align: left; font: inherit; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.modal-body button.resume-download:hover { background: transparent; color: #004182; }
.modal-body .resume-counts { color: var(--muted); font-size: 12px; white-space: nowrap; }
.modal-body .resume-preview { width: 100%; height: 70vh; border: 1px solid var(--border); }
.modal-body .resume-preview-text { max-height: 70vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.modal-body button.tab { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 8px 12px; color: var(--muted); }
.modal-body button.tab.active { border-bottom-color: #0a66c2; color: var(--text); }
.modal-body button.chip-x { border: 0; background: transparent; padding: 0 2px; font-size: 16px; line-height: 1; color: #e01e5a; }
.modal-body input, .modal-body select { padding: 6px 8px; border: 1px solid #868686; border-radius: 6px; max-width: 100%; }
.modal-body input[type=number] { width: 110px; }
.modal-body input[type=checkbox] { width: auto; }
.modal-body .tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 14px; }

.muted { color: var(--muted); font-size: 14px; }
.form-error { color: #e01e5a; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; align-items: flex-end; }
.field { display: grid; gap: 2px; font-size: 13px; }
.field-label { color: var(--muted); font-weight: 700; }
.card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 10px; }
.card-head { display: flex; gap: 12px; align-items: center; }
.card-head .small { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #e5f3fb; border: 1px solid #b7dcf0; border-radius: 14px; padding: 2px 8px 2px 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
th, td { padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
.stats { display: flex; gap: 12px; margin-bottom: 12px; }
.stat { border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; min-width: 150px; }
.stat-value { font-size: 22px; font-weight: 900; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 30; background: #1d1c1d; color: #fff; padding: 10px 16px; border-radius: 8px; }
.toast.error { background: #e01e5a; }

/* ---- Posts, applications, candidates ---- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.dm-actions { margin-left: auto; display: flex; gap: 6px; }
.channel-sub { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.side-btn.plain { border: 0; width: 100%; padding: 4px 18px; font-size: 13px; color: var(--side-text); }
.chip-btn, .apply-btn { border: 1px solid #868686; background: #fff; border-radius: 6px; padding: 4px 10px; font-weight: 700; cursor: pointer; }
.chip-btn:hover { background: #f6f6f6; }
.apply-btn { background: #0a66c2; border-color: #0a66c2; color: #fff; margin-top: 8px; }
.apply-btn:hover { background: #004182; }
.apply-btn:disabled { background: #e8e8e8; border-color: #e8e8e8; color: var(--muted); cursor: default; }
.post-label { font-size: 10px; font-weight: 800; color: #1264a3; background: #e5f3fb; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; }
.message.application { background: #fff; border-left: 3px solid #2eb67d; }
.quote { border-left: 3px solid #ddd; padding-left: 8px; color: var(--muted); margin: 4px 0 8px; font-size: 14px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.candidate-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.candidate-filters > input { min-width: min(240px, 100%); }
.availability-filter, .availability-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.candidate-profile { display: grid; justify-items: start; gap: 5px; min-width: 140px; }
.candidate-name { line-height: 1.3; }
.available-badge { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #c62828; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; transform-origin: center; animation: availability-tilt 2.8s ease-in-out infinite; }
.candidate-profile-toggle { font-size: 12px; }
.candidate-hover-card { display: none; gap: 4px; max-width: 280px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); color: var(--text); font-size: 13px; }
.candidate-profile:hover .candidate-hover-card, .candidate-profile:focus-within .candidate-hover-card, .candidate-hover-card.open { display: grid; }
.candidate-detail { overflow-wrap: anywhere; }
.candidate-detail.experience { max-height: 140px; overflow-y: auto; white-space: pre-wrap; }
@keyframes availability-tilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .available-badge { animation: none; } }
.modal-body textarea { width: 100%; padding: 8px; border: 1px solid #868686; border-radius: 6px; margin: 10px 0; font: inherit; resize: vertical; }
.modal-body input[type=file] { width: 100%; max-width: 100%; margin: 4px 0 8px; }

/* ---- Community banner (General channel) ---- */
.community { display: grid; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--border); background: #fff; }
.ticker { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ticker-label { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #0a66c2; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.ticker-slide { flex: 1; min-width: 0; }
.ticker-item { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; animation: tickerIn .35s ease; }
.ticker-meta { color: var(--muted); font-size: 14px; }
.ticker-time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ticker-controls { flex: none; display: flex; gap: 2px; }
.ticker-btn { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.ticker-btn:hover { background: #ececec; color: var(--text); }
.skillset-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.skillset-label { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.skillset-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.skill-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-size: 13px; }
.skill-chip b { padding: 0 7px; border-radius: 10px; background: #e5f3fb; color: #1264a3; font-size: 12px; }
.community-totals { margin-left: auto; font-size: 12px; color: var(--muted); }
@keyframes tickerIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticker-item { animation: none; } }

/* Recruiter: candidates panel inside a skillgroup */
.talent-panel { display: grid; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--border); background: #fff; max-height: 55vh; overflow-y: auto; }
.talent-panel.collapsed { max-height: none; overflow: visible; }
.talent-panel.collapsed .talent-body { display: none; }
.talent-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.talent-summary { color: var(--muted); font-size: 13px; }
.talent-toggle { margin-left: auto; padding: 3px 10px; font-size: 13px; }
.talent-body { display: grid; gap: 10px; }
.talent-jd { display: grid; gap: 4px; }
.talent-jd textarea { width: 100%; min-height: 64px; resize: vertical; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
.talent-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
.talent-label { min-width: 104px; padding-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.talent-chips { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; }
.talent-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; }
.talent-chip b { min-width: 22px; padding: 0 6px; border-radius: 10px; background: #e8f1fa; color: var(--brand-dark); font-size: 12px; text-align: center; }
.talent-chip:hover:not(:disabled) { border-color: var(--brand); }
.talent-chip.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.talent-chip.active b { background: #fff; color: var(--brand-dark); }
.talent-chip:disabled { opacity: .45; cursor: default; }
.talent-chip.more { padding-right: 10px; color: var(--brand); }
.talent-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.talent-results .table-wrap { overflow-x: auto; }
.score-badge { display: inline-block; min-width: 48px; padding: 3px 8px; border-radius: 12px; font-weight: 800; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.score-badge.high { background: #e3f5ec; color: #146c43; }
.score-badge.mid { background: #fff4e0; color: #8a5300; }
.score-badge.low { background: #f1f1f1; color: var(--muted); }
.skill-match { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.skill-tag { padding: 1px 7px; border-radius: 10px; font-size: 12px; }
.skill-tag.have { background: #e3f5ec; color: #146c43; }
.skill-tag.miss { background: #f6f6f6; color: #8a8a8a; text-decoration: line-through; }
@media (max-width: 640px) {
  .talent-panel { padding: 10px 16px; }
  .talent-label { min-width: 0; flex-basis: 100%; padding-top: 0; }
}

/* Shown instead of the message box where this role can't post */
.composer-note { margin: 0 20px 20px; padding: 10px 14px; border: 1px dashed #b8c7d6; border-radius: 8px; background: #f5f9fd; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .composer-note { margin: 0 10px calc(10px + env(safe-area-inset-bottom)); } }

/* In-app "new message" banner */
.message-alert { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 200; transform: translateX(-50%); max-width: min(92vw, 420px); padding: 10px 16px; border: 0; border-radius: 10px; background: var(--brand-dark); color: #fff; font: inherit; font-weight: 700; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); cursor: pointer; animation: alert-in .2s ease-out; }
@keyframes alert-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .message-alert { animation: none; } }

/* Edit / delete */
.message .msg-menu { position: absolute; top: 4px; right: 14px; z-index: 5; }
.msg-menu-btn { width: 30px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .1s; }
.message:hover .msg-menu-btn, .msg-menu-btn:focus-visible, .msg-menu-btn[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .msg-menu-btn { opacity: .75; border-color: transparent; background: transparent; } }
.msg-menu-list { position: absolute; right: 0; top: 30px; min-width: 120px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); display: grid; }
.msg-menu-list button { padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.msg-menu-list button:hover, .msg-menu-list button:focus-visible { background: #eef3f8; }
.msg-menu-list button.danger { color: #b3261e; }
.text.deleted { color: var(--muted); font-style: italic; }
.text .edited { color: var(--muted); font-size: 12px; }
.edit-box { display: grid; gap: 6px; margin-top: 2px; }
.edit-box textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--brand); border-radius: 6px; font: inherit; resize: vertical; }
.edit-box .row { display: flex; gap: 6px; }
/* Match alert banner */
.message-alert.match { display: grid; gap: 2px; background: #146c43; }
.message-alert .alert-sub { font-weight: 400; font-size: 13px; opacity: .9; }

/* Skillset dropdown with checkboxes */
.dropdown-check { position: relative; }
.dropdown-check-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid #868686; border-radius: 6px; background: #fff; color: var(--text); font-size: 15px; cursor: pointer; list-style: none; }
.dropdown-check-summary::-webkit-details-marker { display: none; }
.dropdown-check-summary::after { content: "▾"; color: var(--muted); flex: none; }
.dropdown-check[open] .dropdown-check-summary { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -1px; }
.dropdown-check-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-check-label.placeholder { color: #757575; }
.dropdown-check-list.channel-choices { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 2px; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.dropdown-check-list .channel-choice { border: 0; border-radius: 6px; padding: 9px 10px; font-size: 14px; }
.dropdown-check-list .channel-choice:hover { background: #eef3f8; }
/* Email verification */
.verify-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 20px; border-bottom: 1px solid #f0d58a; background: #fff8e1; color: #6b4e00; font-size: 14px; }
.verify-banner .primary { margin-left: auto; }
.otp-input { width: 100%; padding: 12px; border: 1px solid #868686; border-radius: 8px; font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
/* LinkedIn */
.linkedin-field { display: grid; gap: 6px; }
.linkedin-verify { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.linkedin-btn { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.verified-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #e3f5ec; color: #146c43; font-size: 12px; font-weight: 700; }
.verified-badge.small { margin-left: 6px; padding: 1px 6px; font-size: 10px; letter-spacing: .02em; }
@media (max-width: 720px) { .verify-banner { padding: 10px 16px; } }
