@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(fonts/dm-sans-v17-latin_latin-ext-regular.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(fonts/dm-sans-v17-latin_latin-ext-500.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url(fonts/dm-sans-v17-latin_latin-ext-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(fonts/poppins-v24-latin_latin-ext-500.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(fonts/poppins-v24-latin_latin-ext-600.woff2) format("woff2"); }

/* Navy and grey only, like the Radar. */
:root {
  --navy: #0d2535; --bg: #eef2f4; --card: #fff; --line: #dde4e8; --muted: #566773; --soft: #e3eaee;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--navy); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--bg); color: var(--navy); font: 400 16px/1.45 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.top :focus-visible { outline-color: #fff; }

/* Header: logo, title, language. Nothing else. */
.top { position: sticky; top: 0; z-index: 10; padding: calc(var(--safe-top) + 14px) 0 14px; background: var(--navy); color: #fff; }
.top-row { display: flex; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.logo { display: block; height: 22px; width: auto; }
h1 { flex: 1; min-width: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.25); font: 500 18px/1.2 "Poppins", sans-serif; }
.lang { display: flex; border-radius: 100px; background: rgba(255,255,255,.12); }
.lang button { width: 44px; height: 40px; border: 3px solid transparent; background-clip: padding-box; border-radius: 100px; color: #fff; font-size: 12.5px; font-weight: 600; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); }

.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; padding: 20px 18px calc(var(--safe-bottom) + 40px); align-items: start; }
.new-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; }
.new-btn span { font-size: 20px; line-height: 1; }

/* Sidebar: groups in priority order */
.side { position: sticky; top: 90px; }
.side nav { margin-top: 14px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(13,37,53,.06); }
.side nav button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 14.5px; font-weight: 500; }
.side nav button:hover { background: var(--bg); }
.side nav button[aria-current="true"] { background: var(--navy); color: #fff; }
.side nav button span:nth-child(2) { flex: 1; }
.side nav small { color: var(--muted); font-size: 12.5px; }
.side nav button[aria-current="true"] small { color: rgba(255,255,255,.75); }
.n { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--navy); font-size: 12px; font-weight: 600; }
.n:empty { background: none; }
.side nav button[aria-current="true"] .n { background: rgba(255,255,255,.18); color: #fff; }
.mobile-bar { display: none; }

.search { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }

/* Queue: one quiet line per open request */
.queue { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.q-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.q-item { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.q-item span { flex: 1; min-width: 0; }
.q-item small { display: block; color: var(--muted); font-size: 12.5px; }
.q-item em { flex: none; color: var(--muted); font-style: normal; font-size: 13px; }
.q-item button { flex: none; min-height: 36px; padding: 0 6px; font-size: 13px; text-decoration: underline; color: var(--muted); }

.block { margin-top: 22px; }
.block h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font: 600 16px "Poppins", sans-serif; }
.block h2 small { margin-left: auto; color: var(--muted); font: 400 13px "DM Sans", sans-serif; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.card { display: flex; gap: 12px; width: 100%; padding: 14px; text-align: left; background: var(--card); border-radius: 15px; box-shadow: 0 1px 2px rgba(13,37,53,.06); }
.card:hover { box-shadow: 0 3px 12px rgba(13,37,53,.13); }
.avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--soft); font: 600 16px "Poppins", sans-serif; }
.avatar.big { width: 60px; height: 60px; font-size: 21px; }
.card-body { min-width: 0; flex: 1; }
.card h3 { font: 600 15.5px/1.3 "DM Sans", sans-serif; overflow-wrap: anywhere; }
.in { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 3px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.meta { margin-top: 2px; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.meta.light { font-size: 12.5px; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.privacy { margin-top: 28px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* Profile: side panel on desktop, bottom sheet on phones */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(13,37,53,.5); }
.sheet { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(660px, 100%); background: var(--bg); border-radius: 22px 0 0 22px; }
.sheet-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 4px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.sheet-actions { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 20px calc(var(--safe-bottom) + 12px); border-top: 1px solid var(--line); background: #fff; }
.close { width: 44px; height: 44px; margin-right: -8px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.tag { padding: 4px 10px; border-radius: 100px; background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sheet h2 { font: 600 22px/1.25 "Poppins", sans-serif; overflow-wrap: anywhere; }
.hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.sub { margin-top: 3px; color: var(--muted); }
.box { margin-top: 10px; padding: 16px; border-radius: 16px; background: #fff; }
.box.prep { background: var(--navy); color: #fff; }
.box h3 { margin-bottom: 10px; font: 600 15px "Poppins", sans-serif; }
.box h3 small { color: var(--muted); font: 400 12.5px "DM Sans", sans-serif; }
.box h4 { margin: 14px 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.box.prep h4 { color: rgba(255,255,255,.7); }
.body { font-size: 15px; white-space: pre-line; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts small { color: var(--muted); }
.none { color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 11px; border-radius: 100px; background: var(--bg); font-size: 13.5px; }
.list { margin: 0; padding-left: 20px; font-size: 15px; }
.list li { margin-bottom: 5px; }
.links { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.links li { padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.links li:first-child { border-top: 0; }
.links small { margin-left: 6px; color: var(--muted); }
.btn { flex: 1; display: block; min-height: 46px; padding: 12px; border-radius: 12px; background: var(--navy); color: #fff; text-align: center; text-decoration: none; font-weight: 600; }
.btn.ghost { background: var(--bg); color: var(--muted); font-weight: 500; font-size: 14px; }
.btn:disabled { opacity: .45; }
.del { flex: none; min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 13.5px; text-decoration: underline; }

/* New research form */
.mode { display: flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 100px; background: #fff; }
.mode button { flex: 1; min-height: 42px; border-radius: 100px; color: var(--muted); font-weight: 600; }
.mode button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.field { display: block; margin-top: 16px; }
.field span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
.counts { display: flex; gap: 6px; }
.counts button { flex: 1; min-height: 46px; border-radius: 11px; background: #fff; font-weight: 600; }
.counts button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.hint { margin-top: 18px; color: var(--muted); font-size: 14px; }
.warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--navy); font-size: 14px; }

.toast { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 20px); max-width: 460px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14px; text-align: center; box-shadow: 0 6px 20px rgba(13,37,53,.3); }

/* Phones: no sidebar; a button and a group picker above the list */
@media (max-width: 860px) {
  .layout { display: block; padding-top: 14px; }
  .side { display: none; }
  .mobile-bar { display: flex; gap: 8px; margin-bottom: 10px; }
  .mobile-bar .new-btn { width: auto; flex: none; padding: 0 16px; }
  .mobile-bar select { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 600; }
  .sheet { top: auto; left: 0; width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 15px; padding-left: 12px; }
  .top-row { gap: 12px; }
  .logo { height: 19px; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
  .mobile-bar .new-btn { font-size: 0; width: 48px; padding: 0; }
  .mobile-bar .new-btn span { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.n:empty { visibility: hidden; }

/* Openings for Aqvior: navy block right after contact; one row per dated signal */
.signals { margin: 12px 0 0; padding: 0; list-style: none; }
.signals li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 14.5px; }
.signals b { display: block; font-weight: 600; }
.signals a { color: #fff; }
.signals p { margin-top: 3px; color: rgba(255,255,255,.8); font-size: 14px; }
.sig-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.kind { padding: 2px 9px; border-radius: 100px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; }
.sig-top small { color: rgba(255,255,255,.7); font-size: 12.5px; }
.box.prep .muted { color: rgba(255,255,255,.75); }
.sig { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--navy); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig b { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 100px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 600; }

/* Orange = new opening, its only use (like the Radar, where orange is only High). Bell + "Neu" for 14 days. */
:root { --orange: #eb9359; --orange-ink: #4a2408; }
.new-dot { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 1px 7px 1px 5px; border-radius: 100px; background: var(--orange); color: var(--orange-ink); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.new-dot svg { width: 11px; height: 11px; }
.n.bell { background: var(--orange); color: var(--orange-ink); }
.n.bell svg { width: 12px; height: 12px; }

