/* clinomir — site styles. Palette: green (main) + orange (accent). */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.946beb949095.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("../fonts/GolosText.caa4693f600e.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #0F1F17; --ink2: #3A4A41; --muted: #586960; --line: #D8E3DC; --bg: #F2F6F3; --card: #FFFFFF;
  --green-d: #0E6B38; --green: #0F7A44; --green-t: #E3F3E8; --green-brand: #138A48; --green-word: #0E5E33;
  --orange: #E8833F; --orange-t: #FCEBDD; --orange-d: #9A4210; --orange-ink: #2A1406;
  --grey-t: #EBF0EC; --grey-d: #475950; --dark: #0C1F15;
  --display: "Manrope", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 16px; --shadow: 0 18px 40px rgba(15, 31, 23, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-wrap: break-word; }
a { color: var(--green-d); text-decoration: none; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0; color: var(--ink); }
/* two-model review of 29.11.2026: drug names of 24-59 letters without spaces (275 trials) pushed headings and cards past the
   screen edge (/trials/9086/ was 1541 px wide at 1366). "anywhere" breaks such a word only when it does not fit. */
h1, h2, h3, h4, .t-title, .crumbs, .cab-sub, .hm-live-t, .hm-item-title, .ev-card h3, .ev-hero h1 { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  /* iOS Safari zooms the page into a field with a font under 16 px and leaves it zoomed */
  .field, .field-s, .inp, .inp-s, .filters select, .filters input, select, textarea, input[type=text], input[type=search],
  input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=tel] { font-size: 16px; }
  .ladder span { white-space: normal; line-height: 1.2; }
}
h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.eyebrow.orange { color: var(--orange-d); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.center { align-items: center; } .between { justify-content: space-between; } .end { align-items: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; } .mt-96 { margin-top: 96px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-trap { display: none !important; }   /* trap link for bots (catalog/guard.py): never shown to people */

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid transparent; font: 600 15px var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s; }
.btn svg { flex-shrink: 0; }
.btn-s { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-l { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--green-d); color: #fff; }
.btn-primary:hover { background: #0B5A2F; color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--green); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--green-d); }
.btn-accent { background: var(--orange); color: var(--orange-ink); }
.btn-accent:hover { background: #DD7432; color: var(--orange-ink); }
.btn-light { background: #fff; color: var(--green-d); }
.btn-danger { background: var(--card); color: #A3341B; border-color: #E2B4A6; }
.btn-danger:hover { background: #F7E9E4; border-color: #A3341B; color: #A3341B; }
/* a disabled button is immediately visible as grey (11.11.2026: «Отправить» ("Send") looked active and did nothing).
   A «in progress» button (site.js sets data-label and «Отправляю…» ("Sending…")) keeps its own colour */
.btn:disabled:not([data-label]), .btn:disabled:not([data-label]):hover {
  background: var(--grey-t); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.btn:disabled[data-label] { cursor: progress; }
/* role confirmation in the panel: explicit buttons, stacked on a phone */
.verify-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verify-btns form { margin: 0; }
.verify-reject { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inp-s { height: 36px; font-size: 14px; width: auto; flex: 1 1 220px; }
.vq { list-style: none; margin: 0; padding: 0; }
.vq li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.vq li:first-child { border-top: 0; }
.vq .who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.vq .det { color: var(--ink2); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.btn-block { width: 100%; }

/* labels */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-active { background: var(--green-t); color: var(--green-d); } .pill-active .dot { background: var(--green); }
.pill-recruit { background: var(--orange-t); color: var(--orange-d); } .pill-recruit .dot { background: var(--orange); }
.pill-done { background: var(--grey-t); color: var(--grey-d); }
.pill-stop { background: #F7E9E4; color: #8A3B22; }
.pill-phase { background: var(--card); color: var(--ink2); border: 1px solid var(--line); }
.pill-be { background: var(--card); color: var(--orange-d); border: 1px solid #F2C9AE; }
.pill-dark { background: var(--ink); color: #fff; }
.pill-country { background: var(--card); color: var(--ink2); border: 1px solid var(--line); font-weight: 600; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-l { padding: 28px; } .card-xl { padding: 36px; }
.shadow { box-shadow: var(--shadow); }
.tint { background: var(--green-t); border-color: #C6E6D1; }
.tint-orange { background: var(--orange-t); border-color: #F3D3BD; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.045em; line-height: 1; color: var(--green-word); }
.logo-word span { color: var(--green-brand); }
.logo.light .logo-word { color: #fff; } .logo.light .logo-word span { color: #4FD488; }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a.on { color: var(--green-d); background: var(--green-t); font-weight: 600; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.country-form select { height: 36px; padding: 0 30px 0 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230E6B38' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M5 7.5h14M5 16.5h14'/%3E%3C/svg%3E") no-repeat 10px center;
  font: 600 14px var(--body); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.country-form { position: relative; }
.country-form::after { content: ""; position: absolute; right: 12px; top: 15px; width: 7px; height: 7px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg); pointer-events: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green-d); color: #fff; font-weight: 700; font-size: 14px; }
.menu-toggle { display: none; }

/* footer */
.site-footer { background: var(--dark); color: #fff; margin-top: 96px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer a { color: #C8D8CE; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 200px; }
.footer-col h4 { font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8DBB9F; }
.footer-note { padding-top: 24px; border-top: 1px solid #263F31; color: #A7BFB0; font-size: 13px; line-height: 1.6; }
.build-stamp { margin: 12px 0 0; color: #6F8F7C; font-size: 12px; font-variant-numeric: tabular-nums; }

/* messages */
.messages { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.msg { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 12px; font-size: 15px; box-shadow: var(--shadow); }
.msg.success { background: var(--green-d); }

/* numbers */
.stat-value { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-value.green { color: var(--green-d); }
.stat-value.s { font-size: 30px; }
.stat-label { font-size: 15px; color: var(--ink2); line-height: 1.4; margin-top: 6px; }
.stat-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* big numbers in tiles do not wrap and do not overflow the edge: site.js reduces the font size if the number is wider than the tile */
.kpi-row > *, .stats-row > * { min-width: 0; }
.kpi-row .stat-value, .stats-row .stat-value { white-space: nowrap; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* charts */
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.c-innov { background: var(--green); } .c-be { background: var(--orange); }
.ychart { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.ychart .grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #E1E9E4; }
.ychart .grid span { position: absolute; left: -34px; top: -9px; width: 28px; text-align: right; font-size: 11px; color: var(--muted); }
.ychart .col { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; padding: 0 3px; min-width: 0; }
.ychart .bar { position: relative; width: 100%; display: flex; flex-direction: column; min-height: 2px; }
.ychart .seg-be { background: var(--orange); border-radius: 4px 4px 0 0; flex-shrink: 0; }
.ychart .seg-innov { background: var(--green); flex: 1 1 auto; border-top: 2px solid var(--card); }
.ychart .seg-innov.solo { border-radius: 4px 4px 0 0; border-top: 0; }
.ychart .total { position: absolute; bottom: 100%; left: -8px; right: -8px; padding-bottom: 4px; text-align: center; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ychart-labels { display: flex; margin-top: 8px; }
.ychart-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ychart-wrap { padding-left: 34px; }
.ychart-wrap.compact { padding-left: 0; }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: flex; align-items: center; gap: 12px; min-height: 30px; color: var(--ink); }
a.bar-row:hover .bar-label { color: var(--green-d); }
.bar-label { width: 200px; flex-shrink: 0; font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-fill { height: 12px; background: var(--green); border-radius: 0 4px 4px 0; }
.bar-fill.orange { background: var(--orange); }
.bar-value { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* hero and home page */
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.checks li, .checklist li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-t); color: var(--green-d); flex-shrink: 0; }
.ico.solid { background: var(--green-d); color: #fff; width: 52px; height: 52px; border-radius: 14px; }
.ico.orange { background: var(--orange-t); color: var(--orange-d); }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit > div > b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.benefit > div > span { display: block; font-size: 15px; line-height: 1.5; color: var(--ink2); margin-top: 4px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-main { flex: 1 1 560px; display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.split-side { flex: 0 1 460px; min-width: 300px; }
.final { background: var(--green-d); border-radius: 24px; padding: 48px; display: flex; flex-direction: column; gap: 28px; color: #fff; }
.final h2 { color: #fff; }
.role-btn { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; border-radius: 14px; background: #0B4F2A; border: 1px solid #2C7A4B; color: #fff; font-size: 16px; font-weight: 600; }
.role-btn:hover { background: #0A4425; color: #fff; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.chip:hover { border-color: var(--green); color: var(--ink); }
.chip b { margin-left: 8px; color: var(--muted); font-weight: 500; }

/* feed and trial cards */
.feed-item { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); }
.feed-item:hover .feed-title { color: var(--green-d); }
.feed-date { width: 84px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.feed-title span { font-weight: 400; color: var(--ink2); }
.trial-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.trial-card .t-title { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.trial-card .t-title:hover { color: var(--green-d); }
.trial-card .t-sub { font-size: 15px; color: var(--ink2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; color: var(--ink2); }
.meta span { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.meta svg { color: var(--muted); flex-shrink: 0; }
.meta .src { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink2); background: var(--card); }
.meta .src-grls { border-color: var(--green-t); background: var(--green-t); color: var(--green-d); }
.t-foot { padding-top: 12px; border-top: 1px solid var(--line); }

/* catalog */
.catalog { display: flex; gap: 24px; align-items: flex-start; }
.filters { flex: 0 0 290px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filters legend, .f-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-d); margin: 0; }
.check .n { margin-left: auto; color: var(--muted); font-size: 13px; }
.field, .filters select, .filters input[type=text], .filters input[type=search] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 500 15px var(--body); color: var(--ink); }
.searchbar { display: flex; gap: 8px; max-width: 820px; }
.searchbar label { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.searchbar input { flex: 1 1 auto; border: 0; outline: none; font: 500 17px var(--body); color: var(--ink); background: transparent; min-width: 0; }
.subscribe-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px 24px; border-radius: 16px; background: var(--orange-t); border: 1px solid #F3D3BD; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-top: 12px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 500; }
.pagination .cur { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.empty { text-align: center; padding: 48px 24px; }

/* trial card */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; gap: 14px; padding: 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.fact .ico { width: 40px; height: 40px; border-radius: 10px; }
.fact small { display: block; font-size: 13px; color: var(--muted); }
.fact b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.site-city { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.site-city > div:first-child { width: 180px; flex-shrink: 0; display: flex; gap: 8px; font-weight: 600; }
.site-city ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-city li.off { color: var(--muted); }
.timeline { position: relative; height: 10px; border-radius: 5px; background: var(--grey-t); }
.timeline div { height: 10px; border-radius: 5px; background: var(--green); }
.timeline i { position: absolute; top: -6px; width: 2px; height: 22px; background: var(--ink); }
.detail { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.detail-main { flex: 1 1 640px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.detail-side { flex: 0 0 360px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.crumbs { padding: 28px 0 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.crumbs-row .crumbs { flex: 1 1 auto; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0 8px 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; }
.table td { padding: 12px 8px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr > :first-child { padding-left: 0; } .table tr > :last-child { padding-right: 0; }

/* forms */
.form-card { max-width: 560px; margin: 48px auto 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label.lbl, .form .lbl { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form select, .form textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 500 16px var(--body); color: var(--ink); }
.form textarea { height: 120px; padding: 12px 14px; }
.form .help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form .err, .errorlist { color: #A2361C; font-size: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.role-opt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.role-opt:has(input:checked) { border: 2px solid var(--green-d); background: var(--green-t); }
.role-opt input { width: 20px; height: 20px; accent-color: var(--green-d); margin: 0 0 0 auto; flex-shrink: 0; }
.role-opt b { display: block; font-size: 16px; } .role-opt small { display: block; font-size: 13px; color: var(--ink2); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- additions: header, footer, sections ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.logo-mark { color: var(--green-brand); flex-shrink: 0; }
.logo.light .logo-mark { color: #4FD488; }
.nav-auth { display: none; }
.user-link { display: inline-flex; align-items: center; color: var(--ink); }
.avatar-l { width: 56px; height: 56px; font-size: 20px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: #C8D8CE; font-size: 14px; line-height: 1.6; max-width: 340px; }
.footer-brand p.tiny { color: #8DBB9F; font-size: 13px; }
/* «Некоммерческий проект» ("Non-commercial project") in the footer (11.11.2026): noticeable, but quieter than the description; the icon is as in the header, light green */
.footer-brand p.footer-nc { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid #263F31; border-radius: 12px; font-size: 13px; line-height: 1.5; color: #A7BFB0; }
.footer-nc svg { flex: none; margin-top: 2px; color: #8DBB9F; }
.footer-nc b { color: #fff; font-weight: 600; }
.site-footer .footer-nc a { font-size: 13px; color: #C8D8CE; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.messages.fade { opacity: 0; transition: opacity .5s; }
.msg.error, .msg.warning { background: #8A3B22; }
.msg.info { background: var(--ink2); }
/* test launch (feedback/launch.py): a strip under the header and the «С первых дней» ("From the first days") mark */
.launch { position: relative; overflow: hidden; background: linear-gradient(100deg, #0C1F15 0%, #0E4F2B 55%, #0E6B38 100%); color: #D5E6DB; }
.launch::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 131, 63, 0.28) 0%, rgba(232, 131, 63, 0) 70%); pointer-events: none; }
.launch .launch-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }   /* .launch — so that .wrap on a phone does not remove the padding */
.launch-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); }
.launch-text { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.45; }
.launch-text b { color: #fff; font-weight: 700; }
.launch-cta { flex-shrink: 0; background: var(--orange); color: var(--orange-ink); font-weight: 700; }
.launch-cta:hover { background: #F09456; color: var(--orange-ink); text-decoration: none; }
.launch-close { margin: 0; flex-shrink: 0; display: flex; }
.launch-x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.launch-x:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); }
.launch-x:focus-visible, .launch-cta:focus-visible { outline: 3px solid #4FD488; outline-offset: 2px; }
.launch-x:disabled { opacity: 0.6; cursor: wait; }
.launch.launch-gone { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@media (max-width: 640px) {
  .launch .launch-in { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; padding-top: 12px; padding-bottom: 14px; }
  .launch-ico { width: 30px; height: 30px; margin-top: 2px; }
  .launch-text { flex-basis: calc(100% - 96px); font-size: 13.5px; }
  .launch-close { order: 2; align-self: flex-start; }
  .launch-cta { order: 3; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .launch.launch-gone { transition: none; } }
.fb-inline { display: inline-grid; place-items: center; width: 28px; height: 24px; margin: -2px 1px; vertical-align: -6px; border-radius: 8px;
  background: #fff; border: 1.5px solid #F2C9AE; color: var(--orange); box-shadow: 0 1px 4px rgba(15, 31, 23, .12); }
.fb-inline svg { width: 17px; height: 17px; transition: transform .2s ease; }
.fb-ask { white-space: nowrap; }   /* «Нажмите» ("Press") and the lightbulb are not split by a line break */
.launch-text, .launch-note > span { line-height: 1.6; }
.fb-inline:hover { border-color: var(--orange); color: var(--orange-d); }
.fb-inline:hover svg { transform: rotate(-12deg) scale(1.08); }
.fb-inline:focus-visible { outline: 3px solid #4FD488; outline-offset: 2px; }
.pill-early { background: linear-gradient(100deg, var(--orange-t), #FFF6EF); color: var(--orange-d); border: 1px solid #F2C9AE; font-weight: 600; }
.launch-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: linear-gradient(100deg, var(--orange-t), #FFF6EF);
  border: 1px solid #F2C9AE; color: var(--orange-ink); font-size: 14px; line-height: 1.45; }
.launch-note > svg { flex-shrink: 0; margin-top: 1px; color: var(--orange-d); }
.section { margin-top: 96px; }
.section-first { padding-top: 40px; }
.section-top { padding-top: 48px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.split.reverse { flex-wrap: wrap-reverse; }
.checklist svg, .checks svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.info-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 18px; background: var(--green-t); border: 1px solid #C6E6D1; }
.info-strip b { font-size: 17px; font-weight: 600; }
.tint-box { padding: 14px 16px; border-radius: 12px; background: var(--green-t); line-height: 1.5; }
.tint-box b { font-weight: 600; }
.tint-orange-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--orange-t); color: var(--ink); line-height: 1.45; }
.tint-orange-box svg { color: var(--orange-d); flex-shrink: 0; }
/* «Вам в другую роль» ("You belong in another role") (accounts/cab/_role_hint.html, 11.11.2026): the text and button do not overflow the banner on a phone */
.role-hint > .stack { flex: 1 1 auto; min-width: 0; }
.role-hint .btn { max-width: 100%; white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; line-height: 1.3; text-align: left; }
.snip-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pick-row:first-child { border-top: 0; }
.pick-name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
a.pick-name:hover { color: var(--green-d); }
.h3-l { font-size: 22px; line-height: 1.25; }
.h1-m { font-size: clamp(28px, 3.4vw, 42px); }
.h1-s { font-size: clamp(26px, 3vw, 32px); }
.gap-28 { gap: 28px; }
.ml-auto { margin-left: auto; display: inline-flex; }
.final-sub { font-size: 17px; line-height: 1.5; color: #CFEBD9; }
.role-btn svg { color: #BFE8CF; }
.field-l { height: 52px; border-radius: 12px; font-size: 16px; }
.field-s { height: 36px; width: auto; font-size: 14px; padding: 0 10px; }
select.field { padding-right: 10px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 13px; font-weight: 600; }
.seg a:hover { border-color: var(--green); color: var(--ink); }
.seg a.on { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.feed-date b { font-size: 15px; font-weight: 600; }
.trial-card .t-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-sponsor { font-weight: 400; color: var(--ink2); }
.save-form { margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg); color: var(--orange-d); }
.icon-btn.on { color: var(--orange); }
.icon-btn.on svg { fill: currentColor; }
/* «Поделиться визиткой» ("Share profile card") (11.11.2026, network/_share_profile.html): the icon like the new header icons (.hdr-ico) — 36×36, no border */
.share-prof { position: relative; flex-shrink: 0; }
.box-head.with-share { flex-wrap: nowrap; }      /* the icon stays to the right of the heading on a phone too */
.box-head.with-share > div:first-child { min-width: 0; }
.share-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink2); cursor: pointer; list-style: none; }
.share-ico::-webkit-details-marker { display: none; }
.share-ico:hover, .share-ico:focus-visible, .share-prof[open] > .share-ico { background: var(--green-t); color: var(--green-d); }
.share-ico:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.share-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 340px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); text-align: left; font-weight: 400; }
.share-pop .share-url { height: 40px; font-size: 14px; }
.share-pop .share-status:empty { display: none; }
.share-pop .share-status { color: var(--green-d); font-weight: 600; }
.share-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer; }
.share-x:hover, .share-x:focus-visible { background: var(--bg); color: var(--ink); }
.chip-on { background: var(--green-t); border-color: #C6E6D1; gap: 6px; }
.chip-orange { background: var(--orange-t); border-color: #F3D3BD; }
.pagination .dots { border: 0; background: transparent; min-width: 24px; padding: 0 4px; }
.page-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; padding: 40px 0 28px; }
.page-head .searchbar { flex: 1 1 520px; }
.filters-toggle { display: none; margin-bottom: 12px; }
.filters { display: flex; flex-direction: column; gap: 20px; padding: 20px; }
.f-group { display: flex; flex-direction: column; gap: 2px; }
.f-actions { padding-top: 4px; }
.bars.stacked { gap: 12px; }
.bars.stacked .bar-row { flex-direction: column; align-items: stretch; gap: 4px; }
.bars.stacked .bar-label { width: auto; white-space: normal; color: var(--ink); line-height: 1.35; }
.results { flex: 1 1 auto; min-width: 0; }
.detail-head { max-width: 980px; }
.detail-title { font-size: 17px; line-height: 1.55; color: var(--ink2); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--grey-t); color: var(--ink2); font-size: 14px; line-height: 1.45; }
.note svg { flex-shrink: 0; margin-top: 1px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.mini-trial { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.mini-trial b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.mini-trial:hover b { color: var(--green-d); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpi-row .card { padding: 20px 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.green-t { color: var(--green-d); }
.show-mobile { display: none; }
.narrow { max-width: 900px; }
.prose { display: flex; flex-direction: column; gap: 16px; line-height: 1.65; }
.prose h2 { font-size: 24px; margin-top: 12px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .draft { padding: 12px 16px; border-radius: 12px; background: var(--orange-t); color: var(--orange-d); font-size: 14px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); font-weight: 800; font-family: var(--display); }
.auth-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; }
.auth-grid > .card { flex: 1 1 520px; max-width: 600px; }
.auth-side { flex: 1 1 320px; padding-top: 12px; }
.form .check { font-size: 15px; min-height: 0; align-items: flex-start; }
.form .check input { margin-top: 2px; flex-shrink: 0; }
.role-opt .ico { width: 40px; height: 40px; }
.errorlist li { margin: 0; }
.table td .tiny { margin-top: 2px; }
details > summary { list-style-position: inside; }

/* responsive */
@media (max-width: 1100px) {
  .nav a { padding: 0 8px; font-size: 14px; }
  .site-header .wrap { gap: 12px; }
  .detail-side { position: static; flex: 1 1 100%; }
}
/* header: on tablets (901–1024) the menu hides in a "burger", the country and login stay on the right */
@media (max-width: 1024px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 28px 16px; }
  .nav a { height: 44px; padding: 0 12px; font-size: 15px; }
  .menu-toggle { display: inline-flex; }
  #menu:checked ~ .nav { display: flex; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 12px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .menu-toggle { display: inline-flex; }
  #menu:checked ~ .nav { display: flex; }
  .header-right .btn-ghost, .hdr-icons > .hdr-ico { display: none; }
  .catalog { flex-direction: column; }
  .filters { position: static; flex: 1 1 auto; width: 100%; max-height: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .stat-value { font-size: 32px; }
  .bar-label { width: 130px; }
  .site-city { flex-direction: column; gap: 8px; }
  .final { padding: 28px; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block; }
  .nav-auth { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .country-form select { padding-right: 26px; width: 118px; }
  .page-head { padding-top: 24px; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; }
  #ftoggle:checked ~ .catalog .filters { display: flex; }
  .final { padding: 24px; }
  .auth-grid { padding-top: 24px; gap: 24px; }
  .card-xl { padding: 24px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar .btn { flex: 1 1 auto; }
  .ychart .total { display: none; }
  .ychart-labels span { font-size: 10px; overflow: visible; }
  .ychart-labels span:nth-child(even) { visibility: hidden; }
  .section { margin-top: 64px; }
}

/* ================= personal dashboard ================= */
.cab-band { background: var(--card); border-bottom: 1px solid var(--line); }
.cab-band > .wrap { padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.cab-top { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: center; justify-content: space-between; }
.cab-who { flex: 1 1 520px; display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.cab-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--green-d); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 800 26px var(--display); flex-shrink: 0; }
.cab-avatar.sq { border-radius: 18px; background: var(--orange-t); color: var(--orange-d); }
.cab-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cab-name h1 { font-size: 28px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cab-sub { font-size: 15px; color: var(--ink2); line-height: 1.45; }
.roles-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.roles-row .lbl { font-size: 13px; color: var(--muted); margin-right: 2px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
.role-chip:hover { border-color: var(--green); color: var(--ink); }
.role-chip.on { background: var(--green-d); border-color: var(--green-d); color: #fff; cursor: default; }
.role-chip.add { border: 1.5px dashed #A9C4B2; color: var(--green-d); background: transparent; }
.role-chip.icon { width: 32px; padding: 0; justify-content: center; flex-shrink: 0; }   /* «+» and «−» without text (11.11.2026) */
/* «Убрать роль» ("Remove role") (11.11.2026): a button in the role row, the removed role row with «Вернуть роль» ("Restore role"), the page with consequences */
.role-chip.minus { background: transparent; color: var(--ink2); }
.role-chip.minus:hover { border-color: #E2B4A6; color: #A3341B; }
.role-removed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--orange-t); border: 1px solid #F2C9AE; font-size: 14px; color: var(--ink2); max-width: 760px; }
.role-removed .rr-text { display: inline-flex; gap: 8px; align-items: flex-start; flex: 1 1 260px; line-height: 1.4; }
.role-removed .rr-text svg { flex-shrink: 0; margin-top: 2px; color: var(--orange-d); }
.role-removed .rr-act { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.role-removed .rr-erase { color: #A3341B; }
.rm-roles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.rm-warn { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-warn li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.rm-warn li svg { flex-shrink: 0; margin-top: 3px; color: var(--orange-d); }
.rm-sec h3 { font-size: 16px; margin-bottom: 10px; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 640px) {
  .role-removed .rr-act, .role-removed .rr-act form { width: 100%; }
  .role-removed .rr-act .btn, .rm-actions .btn { flex: 1 1 100%; white-space: normal; height: auto; min-height: 44px; text-align: center; }
  .rm-actions form { width: 100%; display: flex; }
}
.speed { flex: 0 1 480px; min-width: 320px; display: flex; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--green-t) 0%, #fff 70%); border: 1px solid #CFE6D7; }
.ring { position: relative; flex-shrink: 0; }
.ring svg { display: block; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.ring-label b { font: 800 24px var(--display); letter-spacing: -0.03em; line-height: 1; }
.ring-label span { font-size: 11px; color: var(--muted); font-weight: 500; }
.ring.s .ring-label b { font-size: 18px; }
.speed-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.speed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.speed-head span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-d); }
.ladder { display: flex; gap: 6px; }
.ladder > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ladder i { display: block; height: 6px; border-radius: 3px; background: var(--green-t); }
.ladder .on i { background: var(--green); }
.ladder span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.ladder .on span { color: var(--green-d); }
.ladder .cur span { font-weight: 700; }
.ladder.dark i { background: rgba(255,255,255,.18); }
.ladder.dark .on i { background: #4FD488; }
.ladder.dark span { color: #9FC2AE; }
.ladder.dark .on span { color: #fff; }
.speed-text { font-size: 13px; line-height: 1.45; color: var(--ink2); }
.cab-tabs { display: flex; flex-wrap: wrap; column-gap: 26px; margin-top: 2px; }   /* wrap instead of hiding behind the edge */
.cab-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 3px 2px 0; border-bottom: 3px solid transparent; color: var(--ink2); font-size: 15px; font-weight: 500; white-space: nowrap; }
.cab-tabs a:hover { color: var(--ink); }
.cab-tabs a.on { color: var(--green-d); font-weight: 700; border-bottom-color: var(--green); }
.cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green-t); color: var(--green-d); font-size: 12px; font-weight: 700; }
.cnt.new { background: var(--orange-t); color: var(--orange-d); }
.cab-body { padding-top: 28px; }
.cab-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cab-main { flex: 1 1 640px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cab-side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 24px; min-width: 300px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.box.row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.box.accent { border-color: #F2C9AE; box-shadow: inset 4px 0 0 var(--orange); }
.box.green { background: var(--green-t); border-color: #C6E6D1; }
.box.dark { background: var(--dark); border-color: var(--dark); color: #D5E6DB; }
.box.dark h2, .box.dark h3 { color: #fff; }
.box-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.box-head h2 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.box-head p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.box h3 { font-size: 17px; }
.gain { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--orange-t); color: var(--orange-d); font-size: 12px; font-weight: 700; white-space: nowrap; }
.time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.todo .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #B9CCBF; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.todo .done .mark { border: 0; background: var(--green); color: #fff; }
.todo .t { font-size: 15px; font-weight: 600; color: var(--ink); }
.todo .done .t { color: var(--muted); text-decoration: line-through; }
.todo .s { font-size: 13px; color: var(--muted); line-height: 1.45; }
.todo .go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--orange-t); color: var(--orange-d); font-size: 14px; font-weight: 600; white-space: nowrap; }
.todo .go:hover { background: #F8DCC6; }
.todo .wait { margin-left: auto; }
.todo .go-form { margin-left: auto; display: flex; flex-shrink: 0; }   /* «Заполнить» ("Fill in") — a button in a GET form, leads to the step-by-step fill-in */
.todo button.go { border: 0; cursor: pointer; font-family: inherit; }
.todo .go-form button.go { margin-left: 0; }
.fill-start { align-self: flex-start; }
/* step-by-step profile fill-in (accounts/wizard.py, cab/fill.html) */
.fill-box { gap: 20px; }
.fill-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.fill-pct { font-size: 14px; color: var(--ink2); }
.fill-pct b { color: var(--green-d); font-weight: 700; }
.fill-progress { height: 8px; margin-top: -10px; border-radius: 4px; background: var(--green-t); overflow: hidden; }
.fill-progress span { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.fill-box .box-head h2 { font-size: 24px; }
.fill-time { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fill-box textarea.inp { min-height: 140px; height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.fill-num { max-width: 240px; }
.fill-tint { display: flex; gap: 10px; align-items: flex-start; }
.fill-tint svg { flex-shrink: 0; margin-top: 2px; }
.fill-aux { flex-wrap: nowrap; }
.fill-steps { gap: 14px; }
.fill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fill-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.fill-list li:first-child { border-top: 0; padding-top: 0; }
.fill-list .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #C8D8CE; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.fill-list a { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.fill-list small { font-size: 12px; color: var(--muted); }
.fill-list .gain { margin-left: auto; }
.fill-list .done .mark { border: 0; background: var(--green); color: #fff; }
.fill-list .done a { color: var(--muted); font-weight: 500; }
.fill-list .current .mark { border-color: var(--orange); background: var(--orange); color: #fff; }
.fill-list .current a { color: var(--orange-d); }
.fill-list .wait .mark { border-color: #F2C9AE; color: var(--orange-d); }
.fill-list .skipped .mark { border-style: dashed; }
.fill-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; margin-bottom: 24px; border: 1px solid #F2C9AE; border-radius: 14px; background: var(--orange-t); }
.fill-next-ico { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #fff; color: var(--orange-d); }
.fill-next-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }
.fill-next-text b { font-size: 15px; line-height: 1.35; }
.fill-next-text small { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.fill-flash { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.fill-flash svg { flex-shrink: 0; margin-top: 1px; }
.fill-flash.ok { background: var(--green-t); color: var(--green-d); }
.fill-flash.err { background: #F7E9E4; color: #8A3B22; }
.fill-box .check { align-items: flex-start; line-height: 1.45; }
.fill-box .check input { flex-shrink: 0; margin-top: 2px; }
#fill { scroll-margin-top: 88px; }   /* under the site header (72px, sticky) */
.fill-done h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 640px) {
  .fill-box .box-head h2, .fill-done h2 { font-size: 20px; }
  .fill-next { padding: 12px 14px; }
  .fill-next form { flex: 1 1 100%; }
  .fill-next form .btn { width: 100%; }
}
.vis { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tscroll { overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ctable td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.ctable th.r, .ctable td.r { text-align: right; }
.ctable tr.on td { background: var(--green-t); }
.ctable .nm { font-weight: 600; color: var(--ink); line-height: 1.35; }
.ctable .meta2 { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 3px; }
.big-n { font: 800 18px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big-n.g { color: var(--green-d); }
.locked { position: relative; min-height: 120px; }
.locked .ghost { display: flex; align-items: center; gap: 16px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.locked .ghost i { display: block; height: 12px; border-radius: 6px; background: var(--grey-t); }
.locked .veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.94)); }
.locked .veil > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid #F2C9AE; box-shadow: 0 10px 28px rgba(15,31,23,.10); max-width: 660px; }
.locked .veil span.txt { flex: 1 1 260px; font-size: 14px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipc { position: relative; display: inline-flex; }
.chipc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chipc span { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chipc span:hover { border-color: var(--green); }
.chipc input:checked + span { background: var(--green-t); color: var(--green-d); border: 1.5px solid var(--green); }
.chipc input:checked + span::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.chipc input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.chips.s .chipc span { height: 32px; font-size: 13px; padding: 0 12px; }
.segc { display: flex; gap: 4px; padding: 4px; background: var(--grey-t); border-radius: 12px; }
.segc label { flex: 1 1 0; min-width: 0; position: relative; }
.segc input { position: absolute; opacity: 0; }
.segc span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 8px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segc input:checked + span { background: var(--green-d); color: #fff; }
.segc input:focus-visible + span { outline: 2px solid var(--orange); }
.switch { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .tr { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #C8D8CE; flex-shrink: 0; transition: background .15s; margin-top: 1px; }
.switch .tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,31,23,.25); transition: left .15s; }
.switch input:checked + .tr { background: var(--green); }
.switch input:checked + .tr::after { left: 22px; }
.switch input:focus-visible + .tr { outline: 2px solid var(--orange); outline-offset: 2px; }
.switch b { display: block; font-size: 15px; font-weight: 600; }
.switch small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f > .lbl, .f-head { font-size: 14px; font-weight: 600; }
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inp { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 500 15px var(--body); color: var(--ink); }
.inp:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-t); outline: none; }
textarea.inp { height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.inp { padding-right: 10px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.err-t { font-size: 14px; color: #A2361C; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(15,31,23,.12); display: none; max-height: 340px; overflow-y: auto; }
.ac-list.open { display: block; }
.ac-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.ac-list li.act, .ac-list li:hover { background: var(--green-t); }
.ac-list b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.ac-list small { font-size: 12px; color: var(--muted); }
.ac-picked { display: none; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--green-d); font-weight: 600; }
.ac-picked.on { display: flex; }
.qcard { gap: 16px; }
.qcard .qh { display: flex; align-items: center; gap: 12px; }
.qcard .qh h2 { font-size: 20px; }
.qcard .qh .gain { margin-left: auto; }
.qn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--green); color: var(--green-d); font: 800 15px var(--display); flex-shrink: 0; }
.steps-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.steps-top b { color: var(--ink); }
.steps-top .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-d); color: #fff; font-size: 12px; font-weight: 700; }
.steps-top i { width: 32px; height: 2px; background: var(--line); }
.steps-top i.on { background: var(--green); }
.welcome { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; }
.welcome-main { flex: 1 1 620px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.welcome-side { flex: 0 1 420px; min-width: 300px; position: sticky; top: 96px; }
.live { background: var(--dark); color: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 50px rgba(12,31,21,.25); }
.live .eb { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #4FD488; }
.live .eb small { font-size: 12px; letter-spacing: 0; text-transform: none; color: #9FC2AE; font-weight: 500; white-space: nowrap; }
.live .kv { display: flex; align-items: baseline; gap: 14px; }
.live .n { flex: 0 0 84px; font: 800 44px var(--display); letter-spacing: -0.04em; line-height: 1; color: #fff; }
.live .n.g { color: #4FD488; }
.live .t { font-size: 15px; line-height: 1.4; color: #D5E6DB; }
.live ul { margin: 0; padding: 0; list-style: none; }
.live li { display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.live li span { color: #BFD3C6; font-size: 14px; white-space: nowrap; }
.live .sb { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 10px; }
.live .sb > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #4FD488; }
.live .sb p { font-size: 13px; line-height: 1.5; color: #D5E6DB; }
.savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -8px 24px rgba(15,31,23,.06); }
/* The «Сохранить» ("Save") button in all dashboard tabs is in such a bar (10.11.2026): while the form is on screen, the bar sticks to the bottom of the window.
   If the form is a single card, the bar is inside it as the last block and looks like the card's bottom edge across the full width. */
.savebar > span:first-child:not(:last-child) { flex: 1 1 240px; min-width: 0; }   /* a long caption wraps, the button stays on the right */
.savebar > span.row { flex-wrap: nowrap; }   /* the lock icon — next to the caption, not above it */
.savebar > span.row > svg { flex: none; }
.box > .savebar { margin: 0 -24px -24px; padding: 14px 24px; border-width: 1px 0 0; border-radius: 0 0 15px 15px; }
.box.accent > .savebar { box-shadow: inset 4px 0 0 var(--orange), 0 -8px 24px rgba(15,31,23,.06); }
@media (max-width: 900px) { .box > .savebar { margin: 0 -18px -18px; padding: 12px 18px; } }
/* phone: the bar is lower — a small caption, a full-width button */
@media (max-width: 640px) {
  .savebar { bottom: 8px; gap: 8px; padding: 10px 14px; }
  .savebar > span:first-child:not(:last-child) { font-size: 12px; line-height: 1.35; }
  .savebar > .btn, .savebar > .row { flex: 1 1 100%; }
  /* two buttons — side by side, a long label wraps inside the button: the bar does not eat half the screen */
  .savebar > .row > .btn { flex: 1 1 140px; min-width: 0; height: auto; min-height: 44px; padding: 6px 12px; white-space: normal; text-align: center; line-height: 1.25; font-size: 14px; }
}
.dropzone { flex: 1 1 340px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #A9C4B2; border-radius: 14px; background: var(--bg); }
.dropzone input[type=file] { font: 500 13px var(--body); max-width: 100%; }
/* In a column (a form field, a card) the upload zone takes the content height: otherwise flex-basis 340px stretches it downward. */
.f > .dropzone, .box > .dropzone { flex: none; }
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv-list li:first-child { border-top: 0; }
.feed2 { list-style: none; margin: 0; padding: 0; }
.feed2 li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.feed2 .dt { flex: 0 0 92px; font-size: 13px; color: var(--muted); padding-top: 3px; }
.feed2 .bd { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feed2 .bd > a { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.feed2 .bd > a:hover { color: var(--green-d); }
.feed2 .mt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink2); }
.anon { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.anon ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.anon li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.anon li svg { color: var(--green-d); flex-shrink: 0; margin-top: 1px; }
.empty-box { padding: 28px 20px; text-align: center; color: var(--ink2); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty-box svg { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.mini-stats b { display: block; font: 800 30px var(--display); letter-spacing: -0.03em; line-height: 1.05; }
.mini-stats b.g { color: var(--green-d); }
.mini-stats span { display: block; font-size: 13px; color: var(--ink2); line-height: 1.4; margin-top: 4px; }
.proj-row { display: flex; flex-wrap: wrap; gap: 20px; }
.proj-card { flex: 1 1 400px; }
.proj-new { flex: 0 1 270px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px; border-radius: 16px; border: 1.5px dashed #A9C4B2; background: var(--bg); color: var(--ink); }
.proj-new:hover { border-color: var(--green); color: var(--ink); }
.proj-new b { font: 800 20px var(--display); letter-spacing: -0.02em; }
.hero-patient { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--green-d); color: #fff; }
.hero-patient .big { font: 800 56px var(--display); letter-spacing: -0.04em; line-height: 1; }
.hero-patient p { color: #D5E6DB; font-size: 14px; line-height: 1.5; }
.hero-patient .place { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #BFE8CF; }
.req-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tabs-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs-mini a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 600; }
.tabs-mini a.on { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.role-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.role-card:hover { border-color: var(--green); }
.role-card b { font-size: 17px; }
.role-card small { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.warn-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #F7E9E4; color: #8A3B22; font-size: 14px; line-height: 1.45; }
.warn-box > svg { flex-shrink: 0; margin-top: 1px; }   /* the icon does not shrink to a dot next to long text */
.warn-box > div { min-width: 0; }
.warn-box .btn { max-width: 100%; white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; line-height: 1.3; text-align: left; }   /* a long button label wraps on a phone */
@media (max-width: 900px) {
  .cab-band > .wrap { padding-top: 20px; }
  .cab-who { flex-basis: 100%; }
  .cab-avatar { width: 56px; height: 56px; font-size: 20px; }
  .cab-name h1 { font-size: 24px; }
  .speed { flex: 1 1 100%; min-width: 0; padding: 14px; gap: 14px; }
  .speed .ring svg { width: 76px; height: 76px; }
  .speed .ring-label b { font-size: 19px; }
  .cab-side { min-width: 0; flex-basis: 100%; }
  .box { padding: 18px; }
  .welcome { padding-top: 24px; gap: 24px; }
  .welcome-side { position: static; min-width: 0; flex-basis: 100%; }
  .live .n { flex-basis: 68px; font-size: 36px; }
  .feed2 li { flex-direction: column; gap: 6px; }
  .feed2 .dt { flex-basis: auto; }
  .segc { flex-wrap: wrap; }
  .segc label { flex: 1 1 30%; }
  .todo .go { padding: 0 10px; }
  .proj-new { flex-basis: 100%; }
  .ctable td, .ctable th { padding: 10px 8px; }
}
.box.finish { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.locked { overflow: hidden; border-radius: 12px; }
.locked .ghost i { flex-shrink: 1; min-width: 0; }
@media (max-width: 900px) {
  .box-head { flex-wrap: wrap; }
  .vis { white-space: normal; }
  .chipc span { white-space: normal; height: auto; min-height: 38px; padding: 7px 14px; line-height: 1.3; }
  .chips.s .chipc span { min-height: 32px; padding: 5px 12px; height: auto; }
  .locked .veil > div { padding: 12px; }
  .cab-tabs { column-gap: 18px; }
}
.tscroll { position: relative; }
.ladder span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 900px) { .ladder span { font-size: 11px; } }
[hidden] { display: none !important; }

/* monthly infographic: «новый отчёт» ("new report") */
@keyframes ra-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 131, 63, 0.55); } 50% { box-shadow: 0 0 0 10px rgba(232, 131, 63, 0); } }
.report-alert { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: 0 0 20px; border-radius: 16px; background: linear-gradient(100deg, #FCEBDD 0%, #FFF6EF 60%, #FCEBDD 100%); border: 2px solid var(--orange); color: var(--ink); animation: ra-glow 2s ease-in-out infinite; }
.report-alert:hover { text-decoration: none; filter: brightness(0.99); }
.ra-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: #2A1406; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; animation: ra-glow 2s ease-in-out infinite; }
.ra-badge.s { padding: 2px 8px; font-size: 10.5px; margin-left: 8px; vertical-align: 2px; animation: none; }
.ra-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ra-text small { color: var(--ink2, #44564C); font-size: 13px; }
.ra-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--green-d); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; flex-shrink: 0; }
.report-alert .ra-cta::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }   /* the whole banner opens the report */
.report-alert .ra-cta:hover { text-decoration: none; filter: brightness(1.08); }
.ra-close { position: relative; z-index: 1; display: flex; margin: 0 -4px 0 -6px; flex-shrink: 0; }
.ra-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1.5px solid rgba(160, 82, 30, 0.28); background: rgba(255, 255, 255, 0.72); color: #6B3A17; cursor: pointer; }
.ra-x:hover { background: #fff; border-color: var(--orange); color: var(--orange-d); }
.ra-x:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.ra-x:disabled { opacity: 0.5; cursor: wait; }
.report-alert.ra-gone { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
.avatar { position: relative; }
.avatar-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; animation: ra-glow 2s ease-in-out infinite; }
.nav-new { color: var(--orange-d) !important; font-weight: 800; }
.report-hero { display: flex; gap: 20px; align-items: stretch; flex-direction: row; }
.report-hero.is-new { border: 2px solid var(--orange); }
.rh-cover { flex: 0 0 150px; border-radius: 14px; background: radial-gradient(120% 90% at 85% 10%, #138A48 0%, #0E6B38 45%, #0A2F1C 100%); color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; }
.rh-cover b { font-size: 54px; line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; }
.rh-cover small { color: #CFEBD9; font-size: 12px; margin-top: 4px; }
.rh-eyebrow, .eyebrow-s { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.rh-eyebrow { color: #4FD488; margin-bottom: auto; }
.report-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); color: var(--ink); }
.report-row:first-of-type { border-top: 0; }
.report-row:hover { text-decoration: none; background: var(--green-t); border-radius: 10px; }
.report-row b { font-size: 15px; }
.report-row small { display: block; color: var(--ink2, #44564C); font-size: 13px; margin-top: 2px; }
.report-row.is-new b { color: var(--orange-d); }
.rr-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--green-t); color: var(--green-d); display: grid; place-items: center; flex-shrink: 0; }
.report-row.is-new .rr-ico { background: var(--orange-t); color: var(--orange-d); }
.rr-open { color: var(--green-d); font-weight: 700; font-size: 14px; flex-shrink: 0; }
@media (max-width: 640px) {
  .report-alert { flex-wrap: wrap; gap: 10px; }
  .ra-cta { width: 100%; justify-content: center; }
  .ra-text { padding-right: 40px; }
  .ra-close { position: absolute; top: 8px; right: 8px; margin: 0; }
  .report-hero { flex-direction: column; }
  .rh-cover { flex-basis: auto; min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .report-alert, .ra-badge, .avatar-dot { animation: none; } .report-alert.ra-gone { transition: none; } }
.mail-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 18px; border-radius: 14px; background: #FBE4DE; border: 2px solid #C2492B; color: #5A1A0B; }
.mail-alert:hover { text-decoration: none; }
.mail-alert > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }

/* home page: an announcement of the monthly infographic (a compact card above the «Пульсом» ("Pulse")) */
.report-teaser { display: grid; grid-template-columns: 98px minmax(0, 1fr); grid-template-rows: auto auto auto auto; column-gap: 20px; row-gap: 8px;
  align-items: center; align-content: center; padding: 20px 22px; }
.rt-thumb { grid-row: 1 / 5; position: relative; height: 128px; border-radius: 10px; padding: 11px 10px; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none;
  background: radial-gradient(120% 90% at 85% 10%, #138A48 0%, #0E6B38 45%, #0A2F1C 100%);
  box-shadow: 6px 6px 0 -1px #fff, 6px 6px 0 0 #CFE3D6, 0 12px 22px rgba(15, 31, 23, 0.18); transition: transform .15s; }
.rt-thumb:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.rt-e { font-size: 7.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #4FD488; }
.rt-t { font-family: var(--display); font-weight: 800; font-size: 11px; line-height: 1.15; margin-top: 4px; }
.rt-bars { display: flex; gap: 3px; align-items: flex-end; height: 26px; margin-top: auto; opacity: .55; }
.rt-bars i { flex: 1; background: #4FD488; border-radius: 2px 2px 0 0; }
.report-teaser.is-locked .rt-bars { filter: blur(1.2px); }
.rt-lock { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--orange-ink); box-shadow: 0 0 0 4px rgba(232, 131, 63, 0.25); }
.rt-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.rt-name { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
.report-teaser .rt-go { justify-self: start; height: 40px; padding: 0 16px; font-size: 14px; margin-top: 4px; }
@media (max-width: 560px) {
  .report-teaser { grid-template-columns: 86px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .rt-thumb { grid-row: 1 / 3; height: 112px; padding: 9px 7px; }
  .rt-e { font-size: 6.5px; letter-spacing: .06em; }
  .rt-t { font-size: 9.5px; }
  .rt-name { font-size: 16px; }
  .report-teaser .rt-go { grid-column: 1 / -1; justify-self: stretch; height: 44px; font-size: 15px; margin-top: 8px; }
}
.rt-more { display: inline-flex; align-items: center; gap: 4px; justify-self: start; font-size: 14px; font-weight: 600; color: var(--green-d); }
.rt-more:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) {
  .rt-more { grid-column: 1 / -1; justify-self: center; padding: 4px 0; }
}

/* Analytics of the month for everyone: /reports/ and the issue page /reports/2026-09/ */
.rp-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 8px 0; }
.rp-hero-main { flex: 1 1 560px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.rp-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.rp-facts svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.rp-latest { flex: 0 1 460px; min-width: 300px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.rp-latest-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.rp-latest-body p { line-height: 1.5; }
.rp-latest-body .small:not(.muted) { color: var(--ink2); }
.rp-latest-t { font-size: 28px; }
.rp-latest.is-empty { display: flex; flex-direction: column; gap: 16px; }
.rp-latest-cta { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; align-items: stretch; padding-top: 4px; }
.rp-latest-cta .tiny { text-align: center; }
.rp-latest-cta .checklist span { color: var(--ink2); line-height: 1.5; }
.rp-cover { position: relative; display: flex; flex-direction: column; gap: 4px; height: 204px; border-radius: 12px; padding: 14px 13px; color: #fff;
  overflow: hidden; text-decoration: none; background: radial-gradient(120% 90% at 85% 10%, #138A48 0%, #0E6B38 45%, #0A2F1C 100%);
  box-shadow: 7px 7px 0 -1px #fff, 7px 7px 0 0 #CFE3D6, 0 14px 26px rgba(15, 31, 23, 0.18); transition: transform .15s; }
.rp-cover:hover { color: #fff; text-decoration: none; transform: translateY(-2px); }
.rp-cover-e { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #4FD488; }
.rp-cover-t { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.15; margin-top: 2px; }
.rp-cover-m { font-size: 12px; color: #CFEBD9; }
.rp-cover-n { display: flex; flex-direction: column; gap: 2px; font-size: 11px; line-height: 1.3; color: #CFEBD9; margin-top: 10px; }
.rp-cover-n b { font: 800 40px/1 var(--display); color: #fff; letter-spacing: -0.03em; }
.rp-cover .rt-bars { height: 34px; }
.rp-cover.is-locked .rt-bars { filter: blur(1.2px); }
.rp-cover-l { width: 190px; height: 256px; flex-shrink: 0; }
.rp-section { margin-top: 72px; }
.rp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rp-why-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.rp-why-card p { color: var(--ink2); line-height: 1.55; }
.rp-why-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-t); color: var(--green-d); display: grid; place-items: center; }
.rp-toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-toc li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.rp-toc-n { font: 800 22px/1 var(--display); color: var(--green); letter-spacing: -0.02em; min-width: 30px; }
.rp-toc b { display: block; font-size: 15px; margin-bottom: 4px; }
.rp-toc p { line-height: 1.5; }
.rp-item { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.rp-item-cover { flex: 0 0 64px; height: 80px; border-radius: 8px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(120% 90% at 85% 10%, #138A48 0%, #0E6B38 45%, #0A2F1C 100%); }
.rp-item-cover:hover { color: #fff; text-decoration: none; }
.rp-item-cover span { font: 800 26px/1 var(--display); }
.rp-item-cover small { font-size: 11px; color: #CFEBD9; }
.rp-item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rp-item-main h3 a { color: var(--ink); }
.rp-item-main h3 a:hover { color: var(--green-d); }
.rp-item-main p.small { color: var(--ink2); line-height: 1.5; }
.rp-item-act { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.rp-empty { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px dashed #B9CDBF; border-radius: 16px; padding: 22px; max-width: 860px; }
.rp-empty p { color: var(--ink2); line-height: 1.55; }
.rp-empty-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--grey-t); color: var(--grey-d); display: grid; place-items: center; flex-shrink: 0; }
.rp-final { margin-top: 72px; }
.rp-issue-head { display: flex; gap: 40px; align-items: flex-start; padding: 8px 0; }
.rp-issue-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 820px; }
.rp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rp-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.rp-kpi.main { background: var(--green-d); border-color: var(--green-d); }
.rp-kpi-v { font: 800 40px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.rp-kpi-v.green { color: var(--green); }
.rp-kpi.main .rp-kpi-v { color: #fff; font-size: 52px; }
.rp-kpi-l { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.rp-kpi.main .rp-kpi-l { color: #CFEBD9; }
a.rp-kpi, .rp-kpi-go { color: inherit; text-decoration: none; cursor: pointer; }
a.rp-kpi { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.rp-kpi:hover, a.rp-kpi:focus-visible { border-color: var(--green); box-shadow: 0 6px 18px rgba(16, 90, 55, .10); color: inherit; text-decoration: none; }
.rp-kpi-go { display: flex; flex-direction: column; gap: 6px; }
.rp-kpi-go:hover, .rp-kpi-go:focus-visible { color: inherit; text-decoration: none; }
.rp-kpi-more { display: inline-flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--green-d); }
a.rp-kpi:hover .rp-kpi-more, .rp-kpi-go:hover .rp-kpi-more { text-decoration: underline; }
.rp-kpi.main .rp-kpi-more { color: #BFF0D2; }
.rp-kpi-now { font-size: 12.5px; font-weight: 600; color: var(--orange-d); }
.rp-kpi-now.muted { font-weight: 500; color: var(--muted); }
.rp-kpi.main .rp-kpi-now { color: #FFD9BF; }
.rp-hint { display: flex; align-items: center; gap: 8px; margin-top: -6px; }
.rp-hint svg { color: var(--green); flex-shrink: 0; }
.rp-deltas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
a.rp-delta:hover, a.rp-delta:focus-visible { text-decoration: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
a.rp-delta { color: #fff; }
a.rp-delta.up { color: #0A2F1C; }
a.rp-delta.down { color: #7A2A14; }
.rp-delta { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.16); color: #fff; }
.rp-delta.up { background: #4FD488; color: #0A2F1C; }
.rp-delta.down { background: #FBE4DE; color: #7A2A14; }
.rp-high { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 940px; }
.rp-high li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; line-height: 1.5; }
.rp-high-n { width: 28px; height: 28px; border-radius: 50%; background: var(--green-t); color: var(--green-d); font-weight: 800; font-size: 14px; display: grid; place-items: center; flex-shrink: 0; }
.rp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rp-areas { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.rp-countries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rp-countries li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rp-countries li:first-child { border-top: 0; }
.rp-countries li > a { display: flex; justify-content: space-between; gap: 12px; flex: 1 1 auto; color: var(--ink); }
.rp-countries li > a:hover { color: var(--green-d); }
.rp-countries li > a b { display: inline-flex; align-items: center; gap: 4px; color: var(--green-d); }
.rp-countries small { font-weight: 500; }
.rp-areas a { font-weight: 600; }
.rp-note { margin-top: 20px; max-width: 940px; line-height: 1.55; }
.rp-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .rp-hero { gap: 28px; }
  .rp-facts, .rp-why, .rp-toc, .rp-two { grid-template-columns: minmax(0, 1fr); }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-kpi.main, .rp-kpi:last-child:nth-child(even) { grid-column: 1 / -1; }
  .rp-section, .rp-final { margin-top: 48px; }
  .rp-issue-head { flex-direction: column; gap: 24px; }
  .rp-cover-l { width: 150px; height: 200px; }
  .rp-item { flex-wrap: wrap; align-items: flex-start; }
  .rp-item-main { flex-basis: calc(100% - 82px); }
  .rp-item-act { width: 100%; }
  .rp-item-act .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .rp-latest { display: flex; flex-direction: column; gap: 18px; padding: 18px; }
  .rp-latest .rp-cover { height: 132px; }
  .rp-latest-t { font-size: 24px; }
  .rp-hero .btn, .rp-latest .btn, .rp-final .btn, .rp-issue-main .btn, .rp-pager .btn { width: 100%; white-space: normal; height: auto; min-height: 48px; padding: 10px 16px; text-align: center; }
  .rp-kpi { padding: 16px; }
  .rp-kpi-v { font-size: 32px; }
  .rp-kpi.main .rp-kpi-v { font-size: 44px; }
  .rp-high li { padding: 12px 14px; font-size: 15px; }
  .rp-pager span:empty { display: none; }
}
.btn-block { width: 100%; justify-content: center; }
.apply-head { padding: 12px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.apply-head h2 { margin: 0; font-size: 22px; }
.apply-head p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 720px; }

/* specialists: groups of specialties */
.spec-groups { display: flex; flex-direction: column; gap: 14px; }
.spec-group { display: flex; flex-direction: column; gap: 8px; }
.spec-g { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* tab «Интересы» ("Interests") */
.interests-hero { background: linear-gradient(135deg, var(--green-t) 0%, #fff 70%); }
.interests-hero h2 { margin: 6px 0 0; font-size: 26px; }
.interests-hero p { margin: 8px 0 0; color: var(--ink2); line-height: 1.6; max-width: 720px; }
.int-progress { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; max-width: 420px; }
.int-progress .meter { height: 8px; border-radius: 4px; background: #DDE7E1; overflow: hidden; }
.int-progress .meter i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.int-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.int-row:first-of-type { border-top: 0; padding-top: 4px; }
.int-q { display: flex; flex-direction: column; gap: 3px; flex: 1 1 300px; min-width: 0; }
.int-q b { font-size: 15px; }
.int-share { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green-d); margin-top: 2px; }
.int-row .segc { flex: 0 0 auto; }
@media (max-width: 640px) { .int-row .segc { width: 100%; } .int-row .segc label { flex: 1 1 0; } }
/* panel: survey results */
.poll-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink2); margin-bottom: 6px; }
.poll-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.poll-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.poll-q { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poll-q b { font-size: 14px; }
.poll-bar { display: flex; gap: 2px; height: 24px; border-radius: 6px; overflow: hidden; align-items: stretch; }
.poll-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; min-width: 18px; }
i.py { background: var(--green); } i.pm { background: #8FBFA3; } i.pn { background: #C9D3CD; color: var(--ink) !important; }
.poll-legend i.pn { color: transparent; }
.idea { padding: 10px 0; border-top: 1px solid var(--line); }
.idea:first-of-type { border-top: 0; }
.idea p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) { .poll-row { grid-template-columns: 1fr; gap: 6px; } }
.int-row .segc label { flex: 1 0 auto; }
.int-row .segc span { padding: 0 14px; }

/* header on narrow phones (≤400px) */
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .header-right { gap: 4px; }
  .country-form select { width: 104px; padding-left: 32px; }
}
/* the «?» in the header (27.11.2026): with it a logged-in header (country, «?», avatar, menu) still fits 360–430 px
   without a sideways scroll — a narrower «?», smaller gaps and the logo word as on the narrowest phones */
@media (max-width: 430px) {
  .hdr-help { width: 28px; }
  .site-header.is-auth .wrap { gap: 4px; }
  .site-header.is-auth .header-right { gap: 2px; }   /* like the icons in .hdr-icons */
  .site-header.is-auth .logo-word { font-size: 19px !important; }
}
@media (max-width: 374px) { .site-header.is-auth .country-form select { width: 88px; padding-right: 22px; } }
@media (max-width: 400px) {
  .speed-body .btn { white-space: normal; height: auto; min-height: 36px; padding: 6px 12px; text-align: left; }
}
@media (max-width: 360px) {
  .btn-l { white-space: normal; height: auto; min-height: 52px; padding: 10px 18px; text-align: center; max-width: 100%; }
}

/* analytics: clickable widgets and the trials table */
a.kpi-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s; cursor: pointer; }
a.kpi-link:hover, a.kpi-link:focus-visible { border-color: var(--green); box-shadow: 0 2px 10px rgba(16, 90, 55, .08); }
a.kpi-link .stat-sub u { text-decoration-color: var(--line); text-underline-offset: 3px; }
a.kpi-link .stat-sub:hover { color: var(--green-d); }
.ychart a.seg-be, .ychart a.seg-innov { display: block; cursor: pointer; }
.ychart a.seg-be:hover, .ychart a.seg-innov:hover { filter: brightness(1.12); }
.ychart a.total { color: var(--ink); }
.ychart a.total:hover, .ychart-labels a:hover { color: var(--green-d); }
.ychart-labels a { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.table td.num a { font-weight: 600; }

/* panel → overview: a tile with a number leads to a list with the same filter. The link is "stretched" over the whole tile,
   links in the row under the number (+5 in 7 days) lie on top of it and lead to their own lists */
.kpi-tile { position: relative; transition: border-color .15s, box-shadow .15s; }
.kpi-tile:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(16, 90, 55, .08); }
.kpi-tile > a.kpi-main { display: block; color: inherit; }
.kpi-tile > a.kpi-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kpi-tile > a.kpi-main:focus-visible { outline: none; }
.kpi-tile > a.kpi-main:focus-visible::after { outline: 2px solid var(--orange); outline-offset: 2px; }
.kpi-tile .kpi-go { position: absolute; top: 16px; right: 16px; color: var(--muted); display: inline-flex; transition: color .15s, transform .15s; }
.kpi-tile:hover .kpi-go { color: var(--green-d); transform: translateX(2px); }
.kpi-tile .stat-sub a { position: relative; z-index: 1; color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.kpi-tile .stat-sub a:hover, .kpi-tile .stat-sub a:focus-visible { color: var(--green-d); text-decoration-color: currentColor; }
/* panel → «Пользователи» ("Users"): filters in an even grid (a column on a phone) */
.filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 16px; align-items: center; }
.filters-grid > * { min-width: 0; }
.filters-grid .fg-wide { grid-column: span 2; }
@media (max-width: 480px) { .filters-grid .fg-wide { grid-column: auto; } }
.drill-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.drill-dialog::backdrop { background: rgba(18, 32, 25, .45); }
.drill-box { padding: 24px; max-height: calc(100vh - 50px); overflow: auto; }
.drill { display: flex; flex-direction: column; gap: 16px; }
.drill-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.drill-title { font-size: 22px; line-height: 1.25; }
.drill-actions { flex-wrap: wrap; }
.drill-actions .btn svg { margin-right: 6px; }
.drill-scroll { overflow-x: auto; }
.drill-table th a.sort { color: var(--muted); white-space: nowrap; }
.drill-table th a.sort:hover, .drill-table th a.sort.on { color: var(--green-d); }
.drill-table .nowrap { white-space: nowrap; }
.drill-box[aria-busy="true"] .drill { opacity: .55; }
.drill-wait { padding: 24px 0; }
@media (max-width: 700px) {
  .drill-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; border-radius: 0; }
  .drill-box { padding: 16px; max-height: 100vh; }
  .ychart-labels a { font-size: 10px; overflow: visible; }
  .ychart-labels a:nth-child(even) { visibility: hidden; }
}

/* «Мои центры» ("My sites") in the dashboard */
.mc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mc-row .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--grey-t); color: var(--muted); }
.mc-row.main .ico { background: var(--green-t); color: var(--green-d); }
.mc-row .nm { font-weight: 600; color: var(--ink); line-height: 1.35; }
.mc-act { flex-shrink: 0; }
.mc-act form { margin: 0; }
.mc-x { width: 36px; padding: 0; }
.mc-undo { align-items: center; }
.mc-undo .btn { margin-left: auto; }
.mc-propose summary { cursor: pointer; color: var(--green-d); font-weight: 600; }
@media (max-width: 640px) {
  .mc-row { flex-wrap: wrap; }
  .mc-act { margin-left: 32px; }
  .mc-lbl { display: none; }
}

/* ---------- network: live profile cards and posts (beauty and motivation) ---------- */
.ava-0 { background: var(--green-d); } .ava-1 { background: #2F6E8F; } .ava-2 { background: var(--orange-d); }
.ava-3 { background: #5B4E9A; } .ava-4 { background: #3F6B4F; }
.avatar.ava-anon { background: var(--grey-t); color: var(--grey-d); }
.avatar-xl { width: 72px; height: 72px; font-size: 26px; flex-shrink: 0; }
.net-post { gap: 12px; }
.net-post-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.net-post-head .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.net-post-head .who a { font-weight: 600; color: var(--ink); }
.net-post-head .who a:hover { color: var(--green-d); }
.net-post-head .who .tiny { color: var(--muted); }
.net-post-text { font-size: 16px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.net-post-trial { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--green-t); font-size: 14px; }
.net-post-trial svg { flex-shrink: 0; color: var(--green-d); margin-top: 2px; }
.net-post-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.net-post-foot .tiny { margin-left: auto; }
.net-post-title .pill { vertical-align: 2px; }
/* editing and deleting one's own posts and replies, moderator tools on the post page (11.11.2026) */
.net-post-foot { flex-wrap: wrap; }
.net-post { scroll-margin-top: 88px; }
.net-post-foot.has-own .tiny { margin-left: 0; }
.net-own { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; align-items: center; }
.btn-ghost.btn-del { color: #A3341B; }
.btn-ghost.btn-del:hover { background: #F7E9E4; }
.net-edited { white-space: nowrap; }
.net-post-deleted { border-style: dashed; background: var(--bg); gap: 8px; }
.mod-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border: 1px dashed #C9B48F;
  border-radius: 12px; background: #FFFBF3; }
.mod-bar-label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink2); }
.post-edit textarea.inp { height: auto; min-height: 140px; }
@media (max-width: 640px) {
  .net-own { margin-left: 0; width: 100%; }
  .mod-bar .inp-s { flex-basis: 100%; }
}

/* community: replies under a post, forums, topics, the «как попасть» ("how to get in") page (10.11.2026) */
.net-reply { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.net-reply.tint-box { padding: 12px 14px; border-top: 0; }
.net-reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.net-reply-head .avatar-s { width: 28px; height: 28px; font-size: 11px; margin-right: 4px; flex-shrink: 0; }
.net-reply-who { font-weight: 600; color: var(--green-d); }
.net-reply-who:hover { text-decoration: underline; }
.net-reply-form { border-top: 1px solid var(--line); padding-top: 14px; scroll-margin-top: 88px; }
#reply, #new, #comments { scroll-margin-top: 88px; }
.forum-list, .topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.forum-row, .topic-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 8px 16px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); }
.topic-row { grid-template-columns: minmax(0, 1fr) 150px; }
.forum-row:first-child, .topic-row:first-child { border-top: 0; }
.forum-main, .topic-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.forum-name, .topic-title { font-weight: 600; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.forum-name:hover, .topic-title:hover { color: var(--green-d); }
.forum-stats { display: flex; flex-direction: column; gap: 2px; }
.forum-act { display: flex; gap: 8px; align-items: center; }
.topic-stats { text-align: right; }
.topic-stats b { font-size: 15px; color: var(--ink); }
.forum-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) 150px minmax(0, 2fr) 70px auto; gap: 8px; align-items: center; }
.forum-new { border-top: 1px solid var(--line); padding-top: 12px; }
.gate-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.gate-box .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .forum-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main act" "stats act"; gap: 4px 12px; }
  .forum-main { grid-area: main; }
  .forum-stats { grid-area: stats; flex-direction: row; flex-wrap: wrap; gap: 0 10px; }
  .forum-act { grid-area: act; flex-direction: column; align-items: stretch; }
  .topic-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .forum-edit { grid-template-columns: minmax(0, 1fr); }
}

.net-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.net-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px;
  align-items: flex-start; color: var(--ink); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.net-card:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.net-card .who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.net-card b { font-size: 16px; }
.net-card .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.net-hero { display: flex; gap: 16px; align-items: center; }

.progress { height: 10px; border-radius: 5px; background: var(--grey-t); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green), var(--green-brand)); }
.progress-num { font: 800 32px/1 var(--display); letter-spacing: -0.02em; color: var(--green-d); }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.todo li { display: flex; gap: 10px; align-items: flex-start; }
.todo .num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.todo b { display: block; font-size: 14px; }
.todo span { font-size: 13px; color: var(--muted); line-height: 1.4; }

.invite { background: linear-gradient(135deg, var(--green-d), #0B5A2F); color: #D9EFE1; border: 0; }
.invite h2, .invite h3 { color: #fff; }
.invite p { color: #CDE8D6; }
.invite .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.invite .btn-secondary:hover { border-color: #fff; color: #fff; }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.why li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.why svg { flex-shrink: 0; color: var(--green-d); margin-top: 1px; }
.net-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.net-stats div { display: flex; flex-direction: column; }
.net-stats b { font: 800 26px/1.1 var(--display); color: var(--ink); }
.net-stats span { font-size: 13px; color: var(--muted); }

.empty-state { background: var(--card); border: 1px dashed #C3D3C9; border-radius: 16px; padding: 36px 24px; display: flex;
  flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.empty-state .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--green-t); color: var(--green-d);
  display: inline-flex; align-items: center; justify-content: center; }
.empty-state h3 { font-size: 18px; }
.empty-state p { max-width: 460px; color: var(--muted); font-size: 15px; }
.empty-state .row { justify-content: center; }

.home-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-posts .net-post { height: 100%; }
@media (max-width: 900px) { .home-posts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .net-people { grid-template-columns: 1fr; }
  .avatar-xl { width: 56px; height: 56px; font-size: 20px; }
  .empty-state { padding: 28px 16px; }
  .empty-state .row .btn { flex: 1 1 100%; }
}
.card-progress { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .card-progress { grid-template-columns: 1fr; gap: 16px; } }
.home-posts .net-post-foot { margin-top: auto; }
/* profile card: "Position — value" as rows, not with the browser indent */
dl.kv-list { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 0; }
dl.kv-list dt, dl.kv-list dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
dl.kv-list dt { color: var(--muted); padding-right: 12px; }
dl.kv-list dt:first-of-type, dl.kv-list dt:first-of-type + dd { border-top: 0; }
@media (max-width: 640px) { dl.kv-list { grid-template-columns: 1fr; } dl.kv-list dd { border-top: 0; padding-top: 0; } }

/* Release 10: «Поняли так» ("Understood as") in the catalog, the site survey */
.understood { margin: 0 0 16px; padding: 14px 18px; }
.survey { margin: 4px 0 12px; padding: 16px 18px; border-style: dashed; }
.survey fieldset { border: 0; padding: 0; margin: 0; }
.ctable.funnel td.r, .ctable.funnel th.r { white-space: nowrap; }
/* the «Не ушли» ("Not sent") log: on a phone each row is a card, the reason is visible without sideways scrolling */
.ctable.cards-m .mf-who { min-width: 220px; }
.ctable.cards-m .mf-why { min-width: 260px; }
@media (max-width: 640px) {
  .ctable.cards-m thead { display: none; }
  .ctable.cards-m tr, .ctable.cards-m td { display: block; }
  .ctable.cards-m tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ctable.cards-m td { border-bottom: 0; padding: 2px 0; min-width: 0; }
}

/* Release 11: registration — password by email, «Показать пароль» ("Show password"), clear errors */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--green-d); background: var(--green-t); }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #FBE9E4; color: #7A2914; font-size: 14px; line-height: 1.45; }
.form-alert svg { flex-shrink: 0; margin-top: 1px; }
.form .has-err input[type=text], .form .has-err input[type=email], .form .has-err input[type=password] { border-color: #A2361C; }
.check.has-err span { color: #A2361C; }
.taken-actions { margin-top: 10px; }
.sent-ico { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green-t); color: var(--green-d); }
.sent-ico.warn { background: var(--orange-t); color: var(--orange-d); }

/* Staff panel: all sections visible at once, by group (previously 13 tabs in one row were cut off on the right).
   PC — three columns «Люди / Письма / Данные и сайт» ("People / Emails / Data and site"); tablet — a row per group; phone — the «Все разделы» ("All sections") button. */
.snav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 2px 0 18px; }
.snav-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0 24px; border-left: 1px solid var(--line); }
.snav-group:first-child { padding-left: 0; border-left: 0; }
.snav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.snav-links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.snav-links a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink2); font-size: 15px; font-weight: 500; white-space: nowrap; }
.snav-links a:hover { color: var(--ink); background: var(--bg); }
.snav-links a.on { color: var(--green-d); background: var(--green-t); font-weight: 700; }
.snav-toggle { display: none; }
@media (max-width: 1099px) {
  .snav { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .snav-group { flex-direction: row; align-items: flex-start; gap: 12px; padding: 0; border-left: 0; }
  .snav-label { flex: 0 0 120px; line-height: 34px; }
  .snav-links { margin-left: 0; }
}
@media (max-width: 640px) {
  .snav-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 14px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
  .snav-toggle:hover { border-color: var(--green); }
  .snav-cur { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .snav-all { font-size: 13px; color: var(--green-d); font-weight: 600; white-space: nowrap; }
  .snav-check:focus-visible + .snav-toggle { outline: 2px solid var(--orange); outline-offset: 2px; }
  .snav-chev { transition: transform .15s; } .snav-check:checked + .snav-toggle .snav-chev { transform: rotate(90deg); }
  .snav { display: none; padding: 0 0 16px; gap: 12px; }
  .snav-check:checked ~ .snav { display: grid; }
  .snav-group { flex-direction: column; gap: 6px; }
  .snav-label { flex: none; line-height: 1.4; }
  .snav-links a { height: 38px; background: var(--bg); }
}
/* Dashboard (10.11.2026, «опять не влезает меню» ("the menu doesn't fit again")): the same groups as in the panel. A sponsor had 14 tabs in one row,
   six went past the edge; an investigator has «Настройки» ("Settings"). The group width follows the length of its captions (--w from the template: as much as
   needed to fit into two rows), but not narrower than the longest caption: captions are not cut off and do not overlap neighbours. */
.cnav-wrap { min-width: 0; }
.cnav { display: flex; padding-top: 0; }
.cnav .snav-group { flex: var(--w, 1) 1 0%; min-width: min-content; padding: 0 20px; }
.cnav .snav-group:first-child { padding-left: 0; }
/* The four sponsor groups fit into two rows from ~1160 px of text width; narrower — a row per group (for the panel this is from 1099 px) */
@media (max-width: 1239px) {
  .cnav { flex-direction: column; gap: 6px; }
  .cnav .snav-group { flex: none; flex-direction: row; align-items: flex-start; gap: 12px; padding: 0; border-left: 0; }
  .cnav .snav-label { flex: 0 0 200px; line-height: 1.3; padding-top: 9px; }   /* «Заявки и предложения» ("Requests and suggestions") on one line */
  .cnav .snav-links { margin-left: 0; }
}
@media (max-width: 640px) {
  .cnav { display: none; }
  .snav-check:checked ~ .cnav { display: flex; }
  .cnav .snav-group { flex-direction: column; gap: 6px; }
  .cnav .snav-label { flex: none; line-height: 1.4; padding-top: 0; }
  .cnav-wrap .snav-toggle .cnt { flex-shrink: 0; }
}
/* Tabs of the «Специалисты КИ» ("Clinical trial specialists") section (feed, specialists, vacancies…) — the same flaw: on a laptop up to 1240 px «Моя визитка» ("My profile card"),
   and on a phone up to six tabs went past the edge without a scrollbar. Now the tabs wrap to a new line
   (the .cab-tabs rule above), on a phone — as pills, like the dashboard sections. */
@media (max-width: 640px) {
  .cab-tabs { gap: 6px; padding-bottom: 16px; }
  .cab-tabs a { height: 38px; padding: 0 12px; border-radius: 8px; border-bottom: 0; background: var(--bg); }
  .cab-tabs a.on { background: var(--green-t); }
}

/* admin bar above the header: entry to the panel on every site page, on PC and phone; visible to admins only */
.staff-bar { background: var(--dark); color: #C8D8CE; font-size: 13px; }
.staff-bar .wrap { display: flex; align-items: center; gap: 4px 18px; min-height: 36px; flex-wrap: wrap; }
.staff-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; min-height: 36px; }
.staff-bar a:hover { color: #4FD488; }
.staff-bar a.on { color: #4FD488; }
.staff-bar .sb-role { display: inline-flex; align-items: center; gap: 6px; color: #8DBB9F; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; }
.staff-bar .sb-alert { color: #FFB59E; }
.staff-bar .sb-end { margin-left: auto; color: #C8D8CE; font-weight: 500; }
@media (max-width: 640px) { .staff-bar .wrap { gap: 0 14px; } .staff-bar .sb-role span { display: none; } }
.staff-bar .sb-admin { color: #C8D8CE; font-weight: 500; }
/* «пора выпускать дайджест» ("time to release the digest") — administrators only, under the dark bar (27.11.2026) */
.digest-due { background: var(--orange-t); color: var(--orange-ink); border-bottom: 1px solid #F3D2B8; }
.digest-due .dd-in { display: flex; align-items: center; gap: 12px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.dd-ico { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); }
.dd-text { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; }
.dd-text b { font-weight: 700; }
.dd-cta { flex-shrink: 0; }
.dd-hide { margin: 0; flex-shrink: 0; display: flex; }
.dd-hide-btn { background: transparent; color: var(--orange-d); border: 1.5px solid #E9B48F; font-weight: 600; }
.dd-hide-btn:hover { background: #F8DCC6; }
@media (max-width: 640px) {
  .digest-due .dd-in { flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; padding-top: 10px; padding-bottom: 12px; }
  .dd-ico { width: 28px; height: 28px; }
  .dd-text { flex-basis: calc(100% - 40px); font-size: 13.5px; }
  .dd-cta, .dd-hide { flex: 1 1 40%; }
  .dd-hide-btn, .dd-cta { width: 100%; justify-content: center; padding: 0 10px; }
  .dd-cta svg { display: none; }
  .dd-hide-btn, .dd-cta { white-space: nowrap; }
}
/* edit mode (catalog/editmode.py, 26.11.2026): a button in the administrator bar, icons next to what can be edited */
.staff-bar .sb-edit { display: inline-flex; margin: 0; }
.sb-edit-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #3C5A49; border-radius: 999px;
  background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.sb-edit-btn:hover { border-color: #4FD488; color: #4FD488; }
.sb-edit-btn.on { background: #FFD25E; border-color: #FFD25E; color: #2A1406; }
.ed-pin { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0 4px; border-radius: 50%;
  background: #FFD25E; color: #2A1406 !important; border: 1.5px solid #2A1406; vertical-align: middle; flex: none;
  font-size: 0; line-height: 0; box-shadow: 0 2px 6px rgba(0,0,0,.18); text-decoration: none; position: relative; z-index: 5; }
.ed-pin:hover, .ed-pin:focus-visible { background: #2A1406; color: #FFD25E !important; outline: none; }
.ed-pin.ed-code { background: #EBF0EC; color: #475950 !important; border-color: #8A9A91; cursor: help; box-shadow: none; }
.ed-pin.ed-code:hover, .ed-pin.ed-code:focus-visible { background: #475950; color: #fff !important; }
.ed-pin.ed-demo { cursor: default; margin: 0 2px 0 0; }
h1 .ed-pin, h2 .ed-pin, h3 .ed-pin { transform: translateY(-.1em); }
.ed-panel { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 440px; padding: 8px 10px 8px 14px; border-radius: 14px;
  background: #FFFBEA; border: 1.5px solid #E6B93A; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 10px; }
.ed-panel details { flex: 1; }
.ed-panel-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; min-height: 32px; cursor: pointer; }
.ed-panel-body { display: grid; gap: 6px; padding: 4px 0 6px; }
.ed-panel code { font-size: 12px; word-break: break-all; }
.ed-panel form { margin: 0; flex: none; }
@media (max-width: 640px) { .ed-panel { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

/* Icons on the right in the header (11.11.2026, Tim: «убери дырку между иконками, убери слово кабинет и все иконки переделай
   в одном стиле» ("remove the gap between the icons, remove the word cabinet and redo all icons in one style")). The lightbulb, messages, bell and logout are the same icon button: 36×36, no border, a
   20 px icon with a 1.8 stroke, the colour of the menu items, a light-green backdrop on hover. 2 px between icons.
   The count of new items is a small circle in the icon's corner, not next to it: otherwise the button is wider and the gaps differ.
   Dashboard — only a 32 px circle (photo or letters) in the same 36×36 cell, without the name and without the word «Кабинет» ("Cabinet").
   Logout (10.11.2026) — an icon with the hint «Выйти» ("Log out"), without a label and without duplicates: on PC in the header, on a phone
   (no room in the header) — in the menu next to «Личный кабинет» ("Personal dashboard"). Pressing it asks for confirmation (the .ask-dialog below). */
.hdr-icons { display: flex; align-items: center; gap: 2px; }
.hdr-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  padding: 0; flex-shrink: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); cursor: pointer; }
.hdr-ico:hover, .hdr-ico:focus-visible { background: var(--green-t); color: var(--green-d); }
.hdr-ico > svg { display: block; }
.hdr-ico > .cnt, .hdr-ico > .cnt.new { position: absolute; top: 0; right: -1px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--orange); color: #fff; font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px var(--card);
  pointer-events: none; }   /* like the number on the dashboard circle on a phone */
.hdr-help.on { background: var(--green-t); color: var(--green-d); }   /* the «?» in the header on the «Как устроен Клиномир» page itself */
.hdr-icons .user-link { position: relative; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.hdr-icons .user-link .avatar { width: 32px; height: 32px; font-size: 13px; transition: box-shadow .15s; }
.hdr-icons .user-link:hover .avatar, .hdr-icons .user-link:focus-visible .avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--green-t); }
.hdr-logout, .nav-logout { margin: 0; display: flex; }
.nav-me { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-me > a { flex: 1 1 auto; }
.nav-me .btn-logout { width: 44px; height: 44px; }
/* For a logged-in user the icons on the right of the header make the menu denser (as on laptops), otherwise at 1101–1279 px the buttons overflow the edge. */
@media (min-width: 1101px) {
  .site-header.is-auth .wrap { gap: 16px; }
  .site-header.is-auth .nav a { padding: 0 8px; font-size: 14px; }
}
@media (max-width: 900px) { .hdr-logout { display: none; } }
/* «Выйти из аккаунта?» ("Log out of the account?") (Tim, 11.11.2026: «если щёлкает выйти, то переспрашивать» ("if they click log out, ask again")) */
.ask-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.ask-dialog::backdrop { background: rgba(18, 32, 25, .45); }
.ask-box { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ask-title { font-size: 20px; }
.ask-text { margin: 0; color: var(--ink2); font-size: 15px; overflow-wrap: anywhere; }
.ask-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 400px) { .ask-btns .btn { flex: 1 1 100%; } }
/* «Изменения не сохранены» ("Changes not saved") (11.11.2026) — the same .ask-dialog window. «Остаться» ("Stay") shows the unsaved changes and highlights
   the save button with an orange ring (js/unsaved.js) */
.ask-text b { color: var(--ink); font-weight: 600; }
.unsaved-hint { animation: unsaved-hint 1s ease-out 3; }
@keyframes unsaved-hint { from { box-shadow: 0 0 0 0 rgba(232, 131, 63, .8); } to { box-shadow: 0 0 0 12px rgba(232, 131, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .unsaved-hint { animation: none; box-shadow: 0 0 0 3px var(--orange); } }
/* Narrow phones: the header fits into 360 px (previously the "burger" touched the screen edge, and at 320 px the page scrolled sideways). */
@media (max-width: 400px) { .site-header .menu-toggle { padding: 0 10px; } }
@media (max-width: 374px) { .site-header .logo-word { font-size: 19px !important; } }   /* the word size is set in the logo template */
@media (max-width: 340px) { .site-header .logo-word { display: none; } }
/* «Почта сайта не работает» ("Site mail is not working") on a phone: the text at full width, the «Исправить» ("Fix") button under it (previously the text was squeezed into a column) */
@media (max-width: 640px) { .mail-alert { flex-wrap: wrap; } .mail-alert > span:nth-child(2) { flex-basis: calc(100% - 36px); } }

/* Tables (Tim's request of 10.11.2026: «столбцы уехали и не видно» ("the columns went away and can't be seen")): columns no longer disappear silently.
   1) A table wider than its block — a shadow at the edge, a «прокрутите вбок» ("scroll sideways") hint above the table (site.js), the scrollbar is visible.
   2) Panel lists with the .cards class on a phone (.cards-l — on a tablet up to 1100px too) — cards: the column caption above the value (site.js). */
.tscroll { overflow-x: auto; --tbg: var(--card);
  background: linear-gradient(to right, var(--tbg) 30%, rgba(255,255,255,0)) left center / 40px 100% no-repeat local,
              linear-gradient(to left, var(--tbg) 30%, rgba(255,255,255,0)) right center / 40px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(12,31,21,.18), rgba(12,31,21,0)) left center / 14px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(12,31,21,.18), rgba(12,31,21,0)) right center / 14px 100% no-repeat scroll; }
.tscroll:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tscroll-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--orange-d); }
.brk { overflow-wrap: anywhere; word-break: break-word; }
.ctable th.ck, .ctable td.ck { width: 36px; padding-right: 0; }
.ctable td.ck input, .ctable th.ck input { width: 18px; height: 18px; accent-color: var(--green-d); }
.ctable td.act { white-space: nowrap; text-align: right; }
.people-table td:nth-child(2) { min-width: 200px; max-width: 320px; }
.btn-danger-solid { background: #B3361C; color: #fff; border-color: #B3361C; }
.btn-danger-solid:hover { background: #8F2A15; color: #fff; }
.del-row b { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ctable.cards thead { display: none; }
  .ctable.cards, .ctable.cards tbody, .ctable.cards tr, .ctable.cards td { display: block; width: 100%; max-width: none; min-width: 0; }
  .ctable.cards tr { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ctable.cards td { border: 0; padding: 3px 0; text-align: left; }
  .ctable.cards td[data-label]::before { content: attr(data-label); display: block; margin: 4px 0 1px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .ctable.cards td.r { text-align: left; }
  .ctable.cards .meta2 { justify-content: flex-start !important; }
  .ctable.cards td.ck { position: absolute; right: 0; top: 12px; width: auto; }
  .ctable.cards td.ck + td { padding-right: 32px; }
  .ctable.cards td.act { text-align: left; padding-top: 8px; }
  /* «Дубли компаний» ("Company duplicates"): «основная» ("main") and «склеить» ("merge") on a phone — on one line, without the column caption */
  .ctable.orgdup td.pick { display: inline-block; width: auto; margin-right: 18px; }
  .ctable.orgdup td.pick::before { display: none; }
}
/* wide lists (users, site responsiveness) — as cards already on a tablet */
@media (max-width: 1100px) {
  .ctable.cards-l thead { display: none; }
  .ctable.cards-l, .ctable.cards-l tbody, .ctable.cards-l tr, .ctable.cards-l td { display: block; width: 100%; max-width: none; min-width: 0; }
  .ctable.cards-l tr { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ctable.cards-l td { border: 0; padding: 3px 0; text-align: left; }
  .ctable.cards-l td[data-label]::before { content: attr(data-label); display: block; margin: 4px 0 1px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .ctable.cards-l td.r { text-align: left; }
  .ctable.cards-l .meta2 { justify-content: flex-start !important; }
  .ctable.cards-l td.ck { position: absolute; right: 0; top: 12px; width: auto; }
  .ctable.cards-l td.ck + td { padding-right: 32px; }
  .ctable.cards-l td.act { text-align: left; padding-top: 8px; }
}

/* Header on laptops 1025–1220 px: previously the buttons on the right («Регистрация» ("Sign up"), the name) overflowed the edge and the page scrolled sideways.
   Up to 1220 px the menu is denser, up to 1100 px — a "burger" (as on a tablet). */
@media (max-width: 1220px) { .nav a { padding: 0 8px; font-size: 14px; } .site-header .wrap { gap: 12px; } }
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 28px 16px; }
  .nav a { height: 44px; padding: 0 12px; font-size: 15px; }
  .menu-toggle { display: inline-flex; }
  #menu:checked ~ .nav { display: flex; }
}
/* 11.11.2026: the header has a «Мероприятия» ("Events") item when the section is open to everyone (class has-ev). So that the buttons on the right do not overflow
   the edge: a denser menu, for a logged-in user — a circle with letters without the name, the "burger" — up to 1279 px.
   27.11.2026 (the «?» «Как устроен Клиномир» in the header): the header did not fit the 1200 px content of the wrap even before the «?»:
   with «Мероприятия» a guest's buttons went 57 px into the right padding (and off the screen at 1280 px), a specialist's icons 45 px;
   without «Мероприятия» a guest's — 34–93 px, a specialist's — 84 px at 1101 px. Now for every header: the "burger" up to 1339 px,
   from 1340 px the header content is 1280 px wide (24 px padding) and the menu is a little denser. Checked at 320–1900 px for a guest,
   a logged-in patient and an administrator with all icons, with «Мероприятия» in the menu and without. */
@media (min-width: 1340px) {
  .site-header .wrap { max-width: 1328px; padding: 0 24px; gap: 16px; }
  .site-header .nav a { padding: 0 7px; font-size: 14px; }
  .site-header .header-right { gap: 4px; }
  .site-header.is-auth .uname { display: none; }
}
@media (max-width: 1339px) {
  .site-header .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 28px 16px; }
  .site-header .nav a { height: 44px; padding: 0 12px; font-size: 15px; }
  .site-header .menu-toggle { display: inline-flex; }
  .site-header #menu:checked ~ .nav { display: flex; }
}
@media (max-width: 900px) { .site-header .nav { padding: 8px 16px 16px; } }

.ok-line { margin: 0; font-weight: 700; color: var(--green-d); }

/* catalog: the «Спонсор» ("Sponsor") filter — a field with hints for all spelling variants (10.11.2026) */
.sp-pick { gap: 8px; }
.sp-field { position: relative; }
.sp-search { display: flex; gap: 6px; }
.filters .sp-search input[type=search] { flex: 1 1 auto; min-width: 0; width: auto; }
.sp-search .btn { flex: 0 0 auto; height: 44px; padding: 0 14px; }
.sp-suggest { position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); width: max(100%, 400px); max-width: calc(100vw - 32px);
  max-height: 420px; overflow: auto; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.sp-suggest[aria-busy="true"] .sp-list { opacity: .6; }
.sp-list { display: flex; flex-direction: column; }
.sp-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
  text-align: left; font: 500 14px/1.35 var(--body); color: var(--ink); cursor: pointer; }
.sp-item:hover, .sp-item:focus-visible { background: var(--green-t); outline: none; }
.sp-item .sp-name { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sp-item .n { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.sp-item.sp-all { margin-bottom: 4px; box-shadow: 0 1px 0 var(--line); border-radius: 8px 8px 0 0; }
.sp-note { margin: 0; padding: 8px 10px; font-size: 14px; line-height: 1.4; color: var(--ink2); }
.sp-chosen { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--green-t); border: 1px solid #C6E6D1; }
.sp-chosen-name { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.sp-chosen .btn { flex: 0 0 auto; padding: 0 10px; }
.sp-chosen .btn svg { margin-right: 4px; }
.sp-variants summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--green-d); }
.sp-variants ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.sp-variants li { display: flex; gap: 8px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.sp-variants li .n { margin-left: auto; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .sp-suggest { width: 100%; max-width: none; }
}
/* /sponsors/: the numbers open a table of trials (as on the analytics page) */
a.num-link { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a.num-link:hover { text-decoration-color: currentColor; }

/* Release 14: contacts of a company or site on their page (catalog/_org_contacts.html) and the edit form */
.oc { display: flex; flex-direction: column; gap: 16px; }
/* two identical panels «Общие» ("General") and «Для пациентов» ("For patients"): rows of the same height, captions of the same width */
.oc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.oc-col { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.oc-pat { background: var(--green-t); border-color: #C6E6D1; }
.oc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oc-list li { display: grid; grid-template-columns: 18px 80px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 15px; }
.oc-list li svg { color: var(--muted); align-self: center; }
.oc-l { color: var(--muted); font-size: 14px; }
.oc-v { font-weight: 600; overflow-wrap: anywhere; }
.oc-h { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.oc-pat .oc-h { color: var(--green-d); }
/* trial page: an explicit jump to the contacts of the sponsor and sites */
.lead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.oc-go { gap: 6px; font-weight: 600; color: var(--green-d); }
.oc-go svg { flex-shrink: 0; }
.oc-mini { display: flex; width: max-content; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 600; }
.oc-empty { border-style: dashed; }
.oc-fh { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.oc-fpat { padding: 16px; border-radius: 12px; background: var(--green-t); border: 1px solid #C6E6D1; }
.oc-fpat .inp { background: var(--card); }
@media (max-width: 760px) {
  .oc-grid { grid-template-columns: minmax(0, 1fr); }
  .oc-list li { grid-template-columns: 18px minmax(0, 1fr); }
  .oc-list li .oc-l { display: none; }
}

/* Release 16: sponsors' projects in the catalog (the «Клиномир» source) */
.meta .src-clinomir { border-color: #F2C9AE; background: var(--orange-t); color: var(--orange-d); }
.pill-proj { background: var(--orange-t); color: var(--orange-d); border: 1px solid #F2C9AE; }
.src-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--orange-t); color: var(--orange-d); margin-right: 4px; }
.proj-preview { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 16px; margin: 16px 0 4px; border-radius: 12px; background: var(--orange-t); color: var(--orange-ink); font-size: 14px; line-height: 1.45; }
.proj-preview span { flex: 1 1 260px; min-width: 0; }
.proj-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.proj-form .proj-sub { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.proj-form .check span { white-space: normal; line-height: 1.4; }
.proj-form .proj-more { padding-top: 12px; border-top: 1px solid var(--line); }
.proj-form .ac { flex: 1 1 260px; min-width: 0; }
.kv-list .warn { color: var(--orange-d); font-weight: 600; }
.kv-dl { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.kv-dl dd { margin: 0; overflow-wrap: anywhere; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kind-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (max-width: 760px) {
  .kv-dl { grid-template-columns: minmax(0, 1fr); }
  .kv-dl dd { margin-bottom: 8px; }
}

/* profile photo (accounts/photo.py): a round photo instead of the name letters; the camera button leads to Settings */
.avatar.has-photo, .cab-avatar.has-photo { background: var(--grey-t); padding: 0; overflow: visible; }
.avatar.has-photo > img, .cab-avatar.has-photo > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.cab-photo { position: relative; display: inline-flex; flex-shrink: 0; }
.cab-photo-btn { position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--card); color: var(--green-d); border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(12, 31, 21, .14); text-decoration: none; }
.cab-photo-btn:hover, .cab-photo-btn:focus-visible { border-color: var(--green); color: var(--green); }
.photo-edit { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; margin-bottom: 12px; }
.cab-avatar.photo-big { width: 112px; height: 112px; font-size: 40px; }
.photo-form { flex: 1 1 280px; min-width: 0; }
.photo-pick:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
[data-photo-status]:empty, [data-photo-name]:empty { display: none; }
#photo, #photo-consent { scroll-margin-top: 88px; }   /* jump via the camera button: the heading does not hide under the header */
@media (max-width: 900px) {
  .cab-photo-btn { width: 28px; height: 28px; right: -5px; bottom: -5px; }
  .cab-avatar.photo-big { width: 96px; height: 96px; font-size: 34px; }
  .photo-edit .row .btn { flex: 1 1 auto; }
}

/* company logo (accounts/logo.py): a white tile, the logo is fully visible (not cropped), for a wide one the tile is wider.
   --lh tile height, --lw the largest width, --lp inner padding */
.logo-tile { --lh: 40px; --lw: 104px; --lp: 4px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  height: var(--lh); min-width: var(--lh); max-width: var(--lw); padding: var(--lp); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; vertical-align: middle; }
.logo-tile > img { display: block; height: 100%; width: auto; max-width: calc(var(--lw) - 2 * var(--lp) - 2px); object-fit: contain; }
.logo-tile.xs { --lh: 32px; --lw: 88px; --lp: 3px; border-radius: 8px; }
.logo-tile.card { --lh: 48px; --lw: 120px; --lp: 5px; border-radius: 12px; }
.logo-tile.org { --lh: 72px; --lw: 200px; --lp: 8px; border-radius: 14px; }
.logo-tile.big { --lh: 112px; --lw: 260px; --lp: 10px; border-radius: 18px; }
.logo-tile.big:not(.has-logo) { background: var(--orange-t); color: var(--orange-d); border-color: transparent; }
.cab-avatar.sq.has-logo { width: auto; min-width: 72px; max-width: 176px; padding: 8px; background: #fff; border: 1px solid var(--line); }
.cab-avatar.sq.has-logo > img { display: block; height: 100%; width: auto; max-width: 158px; object-fit: contain; }
.cab-avatar.has-logo + .cab-photo-btn { width: 28px; height: 28px; right: -14px; bottom: -14px; }   /* does not cover the logo corner */
.org-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.t-head { display: flex; gap: 14px; align-items: flex-start; }
.t-head > .stack { flex: 1 1 auto; min-width: 0; }
.co-line { display: inline-flex; align-items: center; gap: 8px; }
#logo { scroll-margin-top: 88px; }   /* jump via the button at the logo in the dashboard header: the heading does not hide under the header */
@media (max-width: 900px) {
  .cab-avatar.sq.has-logo { min-width: 56px; max-width: 108px; padding: 6px; }   /* the company name next to it needs room */
  .cab-avatar.sq.has-logo > img { max-width: 94px; }
  .cab-avatar.has-logo + .cab-photo-btn { width: 26px; height: 26px; right: -12px; bottom: -12px; }
  .logo-tile.org { --lh: 56px; --lw: 160px; --lp: 6px; }
  .logo-tile.big { --lh: 96px; --lw: 220px; }
  .logo-tile.card { --lh: 40px; --lw: 96px; --lp: 4px; }
}

/* specialist profile cards on a company or site page and the «Визитка на странице компании» ("Profile card on the company page") in the dashboard (network/workcard.py) */
.person-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.person-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 14px;
  align-items: flex-start; min-width: 0; }
.person-card .pc-ava { flex-shrink: 0; text-decoration: none; }
.pc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.pc-name { font-weight: 700; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.pc-name:hover { color: var(--green-d); }
.pc-pos { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.pc-body .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-body .pill { white-space: normal; height: auto; min-height: 26px; padding: 3px 10px; line-height: 1.3; }
.pc-body .pill svg { flex-shrink: 0; }
.pc-cta .btn, .wc .btn { white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; text-align: center; line-height: 1.3; }
.wc .btn:not(.btn-s) { min-height: 44px; }
.pc-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 16px;
  border-radius: 12px; background: var(--green-t); }
.pc-cta > span { flex: 1 1 320px; display: inline-flex; gap: 6px; align-items: center; }
.note-ok { background: var(--green-t); color: var(--green-d); }
.note-ok a { color: var(--green-d); }
.wc .check { align-items: flex-start; line-height: 1.45; }
.wc .check input { margin-top: 3px; flex-shrink: 0; }
.wc-pre { padding: 16px; border-radius: 12px; border: 1px solid #F2C9AE; box-shadow: inset 4px 0 0 var(--orange); background: var(--card); }
.wc-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.wc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; flex: 1 1 380px; min-width: 0; }
.wc-steps > li { display: flex; gap: 12px; align-items: flex-start; }
.wc-steps .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--card); }
.wc-steps > li.done .num { border-color: var(--green); background: var(--green); color: #fff; }
.wc-step { flex: 1 1 auto; min-width: 0; }
.wc-place, .wc-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wc-place > span, .wc-row > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.wc-preview { flex: 0 1 340px; min-width: 0; }
/* the «why there is no photo» hint at the card sample (11.11.2026) */
.wc-photo .check { font-size: 14px; }
.newco-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.newco-fields .inp { width: 100%; }
#work, #my-card, #people, #wc-photo, #org, #org-same, .newco { scroll-margin-top: 88px; }
.wp-hint .pill { margin-right: 4px; }
@media (max-width: 900px) {
  .person-cards { grid-template-columns: 1fr; }
  .wc-preview { flex-basis: 100%; }
  .newco-fields { grid-template-columns: 1fr; }
  .wc-row .btn, .pc-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* «Опыт в КИ» ("Clinical trial experience") (Tim's requests of 10.11.2026): conditions with hints and several rows, site trials —
   search as you type, yours (with a role) on top. No table: a table scrolls sideways, and the hint list was cut off. */
.ac-list li.ac-group { padding: 8px 12px 4px; cursor: default; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ac-list li.ac-group:hover { background: none; }
.ac-list li.ac-empty { cursor: default; background: var(--orange-t); }
.ac-list li.ac-empty b { color: var(--orange-ink); }
.ac-list li.ac-empty small { color: var(--orange-ink); font-size: 13px; line-height: 1.45; }
.flow { display: flex; flex-direction: column; }
.flow-head, .flow-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(170px, 1fr) auto; gap: 12px 16px; align-items: center; }
.flow-head { padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.flow-row { padding: 12px 0; border-bottom: 1px solid var(--line); transition: background .4s; }
.flow-row.flash { border-radius: 10px; }
.flow-row.flash, .trow.flash { background: var(--green-t); }
.flow-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flow-name b { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.flow-name small { font-size: 12px; color: var(--muted); }
.flow-val select { height: 42px; }
.flow-lbl { display: none; }
.flow-act { display: flex; justify-content: flex-end; min-width: 108px; }
.flow-new { border-bottom: 0; }
.flow-foot { padding-top: 10px; min-height: 36px; }
.flow-st { color: var(--green-d); font-weight: 500; }
.flow-st .btn { height: 30px; padding: 0 8px; }
.tsearch { position: relative; display: flex; gap: 8px; align-items: center; }
.tsearch .inp { padding-left: 42px; flex: 1 1 auto; }
.tsearch-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--muted); pointer-events: none; }
.tlist { display: flex; flex-direction: column; gap: 18px; transition: opacity .15s; }
.tlist.busy { opacity: .55; }
.tgroup { display: flex; flex-direction: column; }
.tgroup-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.tgroup-head b { font-size: 15px; }
.tgroup-mine .tgroup-head b { color: var(--green-d); }
.tgroup-empty { padding: 12px 0 0; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto 230px; gap: 8px 16px; align-items: center; padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); transition: background .4s; }
.trow.on { background: var(--green-t); border-bottom: 0; border-radius: 10px; margin-top: 6px; box-shadow: inset 3px 0 0 var(--green); }
.trow .nm { font-weight: 600; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.trow .meta2 { font-size: 13px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.trow-mine { height: 22px; padding: 0 8px; font-size: 12px; font-weight: 600; vertical-align: 2px; background: #fff; }
.trow-role { display: flex; flex-direction: column; gap: 3px; }
.trow-role select { height: 40px; }
.trow.on .trow-role select { border-color: var(--green); font-weight: 600; }
.trow-st { font-size: 12px; min-height: 0; color: var(--muted); }
.trow-st.ok { color: var(--green-d); font-weight: 600; }
.trow-st.err { color: #B3361C; font-weight: 600; }
.tmore { align-self: flex-start; margin-top: 12px; }
@media (max-width: 760px) {
  .flow-head { display: none; }
  .flow-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .flow-name { grid-column: 1 / -1; }
  .flow-new .flow-name { grid-column: 1 / -1; }
  .flow-lbl { display: block; margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .flow-act { min-width: 0; align-self: end; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; }
  .trow-main { grid-column: 1 / -1; }
  .trow-phase { order: 3; }
  .trow-role { order: 2; }
}

/* ---------- The lightbulb «Предложить администратору» ("Suggest to the administrator") (moved from YouEDC): a header button, a panel on the right, a mouse ---------- */
/* the header button is a regular .hdr-ico icon (11.11.2026: one style with all icons, no longer orange);
   on a phone the lightbulb is a menu item with a caption: there is no room in the header */
.nav-fb { gap: 8px; }
.fb-backdrop { position: fixed; inset: 0; background: rgba(15, 31, 23, .32); z-index: 90; }
.fb-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--card); z-index: 95;
  box-shadow: 0 18px 60px rgba(15, 31, 23, .22); display: flex; flex-direction: column; }
.fb-drawer[hidden], .fb-backdrop[hidden] { display: none; }
.fb-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.fb-drawer-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-d); }
.fb-drawer-title svg { color: var(--orange); }
.fb-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.fb-close:hover { background: var(--grey-t); color: var(--ink); }
.fb-drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.fb-form { display: flex; flex-direction: column; gap: 16px; }
.fb-form[hidden], .fb-done[hidden] { display: none; }
.fb-top { display: flex; align-items: flex-start; gap: 14px; }
.fb-lead { flex: 1; min-width: 0; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.fb-mouse { flex: none; line-height: 0; }
.fb-mouse img.mouse { height: 112px; width: auto; }  /* larger, so that the clinomir logo on the lab coat is readable */
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.fb-kind { position: relative; cursor: pointer; }
.fb-kind input { position: absolute; opacity: 0; }
.fb-kind span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink2); background: var(--card); }
.fb-kind:hover span { background: var(--bg); }
.fb-kind input:checked + span { background: var(--green-d); border-color: var(--green-d); color: #fff; font-weight: 600; }
.fb-kind input:focus-visible + span { box-shadow: 0 0 0 3px rgba(15, 122, 68, .3); }
.fb-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: -10px; }
div > .fb-label { margin-bottom: 6px; }
.fb-body { height: auto; min-height: 130px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.fb-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--muted); }
.fb-drop.is-over { border-color: var(--green); background: var(--green-t); }
.fb-drop.is-full { opacity: .55; }
.fb-drop-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-drop-actions label { cursor: pointer; }
.fb-shots { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-shots:empty { display: none; }
.fb-shots li { position: relative; width: 112px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.fb-shots img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.fb-shot-rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15, 31, 23, .72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.fb-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 13px; color: var(--orange-d); }
.fb-warn svg { flex: none; margin-top: 2px; }
.fb-error { color: #B42318; font-size: 14px; font-weight: 600; }
.fb-error[hidden] { display: none; }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fb-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.fb-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-t); color: var(--green-d); }
.fb-done-text { font-size: 15px; line-height: 1.5; }
/* pages «Предложить» ("Suggest") and «Мои предложения» ("My suggestions") */
.fb-page-wrap { padding: 32px 0 56px; }
.fb-h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.fb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
@media (min-width: 1100px) { .fb-layout { grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); } }
.fb-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fb-way { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.fb-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fb-recent li { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.fb-row:first-child { border-top: 0; padding-top: 0; }
.fb-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.fb-answer { padding: 10px 14px; border-radius: 10px; background: var(--green-t); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.fb-st { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--grey-t); color: var(--grey-d); }
.fb-st-new { background: var(--orange-t); color: var(--orange-d); }
.fb-st-planned, .fb-st-answered { background: #E4EEFB; color: #1D4F91; }
.fb-st-done { background: var(--green-t); color: var(--green-d); }
.fb-shots-big { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-shots-big img { max-height: 220px; width: auto; border: 1px solid var(--line); border-radius: 8px; }
@media print { .fb-btn, .fb-drawer, .fb-backdrop { display: none !important; } }

/* «Откуда эта информация» ("Where this information comes from") on the trial page */
.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources-list li { padding-left: 12px; border-left: 3px solid var(--green-t); }

/* Release 19 (items 11, 66, 92): who can participate, design and results */
.h4 { font-size: 16px; font-weight: 700; margin: 0; }
.elig-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.elig-facts > div { padding: 12px 14px; border-radius: 10px; background: var(--green-t); min-width: 0; }
.elig-facts small { display: block; font-size: 13px; color: var(--muted); }
.elig-facts b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.elig-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.elig-points li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.elig-points span { color: var(--muted); font-size: 14px; }
.elig-full summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.elig-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .elig-facts { grid-template-columns: 1fr; }
  .elig-points li { grid-template-columns: 1fr; gap: 2px; }
}
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: 1fr; } }
/* Release 19 (item 94): the open API page */
.api-pre { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--grey-t); border: 1px solid var(--line); font: 13px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; overflow-x: auto; }

/* the «Письмо ушло / пока не ушло» ("Email sent / not yet sent") row — emails go in the background (the email queue, accounts/outbox.py) */
.mail-status { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--green-t); color: var(--ink2); font-size: 14px; line-height: 1.45; }
.mail-status-ico { display: none; flex: none; margin-top: 2px; }
.mail-status-sending .mail-status-wait, .mail-status-queued .mail-status-wait { display: inline-flex; color: var(--green-d); }
.mail-status-sent .mail-status-ok { display: inline-flex; color: var(--green-d); }
.mail-status-retry, .mail-status-failed { background: #F7E9E4; color: #8A3B22; }
.mail-status-retry .mail-status-bad, .mail-status-failed .mail-status-bad { display: inline-flex; }
/* Release 20: direct messages (dashboard → «Сообщения» ("Messages")). On PC — a list on the left and the conversation on the right; on a phone — one of the two */
.dm { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dm-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: 78vh; overflow-y: auto; }
.dm-list-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; }
.dm-list-head h2 { margin: 0; font-size: 20px; }
.dm-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.dm-item:hover { background: var(--bg); }
.dm-item.on { background: var(--green-t); }
.dm-item .avatar { width: 40px; height: 40px; flex-shrink: 0; }
.dm-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dm-item-top { display: flex; justify-content: space-between; gap: 8px; }
.dm-item-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dm-item.unread .dm-item-top b { font-weight: 800; }
.dm-item-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dm-thread { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }   /* the site header is sticky — do not hide the interlocutor's name under it */
.dm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dm-who .avatar { width: 40px; height: 40px; flex-shrink: 0; }
.dm-back { display: none; }
.dm-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; padding: 4px 2px; }
.dm-day { text-align: center; margin: 6px 0; }
.dm-day span { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 10px; border-radius: 999px; }
.dm-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 78%; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; }
.dm-bubble { padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--grey-t); color: var(--ink); overflow-wrap: anywhere; line-height: 1.45; }
.dm-msg.mine .dm-bubble { background: var(--green-t); border-radius: 14px 14px 4px 14px; }
.dm-form textarea { width: 100%; resize: vertical; min-height: 72px; }
.dm-actions { padding-top: 8px; border-top: 1px solid var(--line); align-items: flex-start; }
.dm-del { display: flex; flex-direction: column; gap: 8px; }
.dm-del > summary { list-style: none; cursor: pointer; }
.dm-del > summary::-webkit-details-marker { display: none; }
.dm-del[open] { flex-basis: 100%; padding: 12px; border-radius: 12px; background: var(--bg); }
.dm-report { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.dm-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  .dm { grid-template-columns: 1fr; }
  .dm.dm-open .dm-list { display: none; }
  .dm.dm-open .dm-back { display: inline-flex; }
  .dm:not(.dm-open) .dm-welcome { display: none; }
  .dm-list { max-height: none; }
  .dm-msgs { max-height: 60vh; }
  .dm-msg { max-width: 88%; }
}
.nav-dm { gap: 8px; }
.dm-dot { display: none; }
/* on a phone the header has no room: the unread count — right on the avatar (leads to the dashboard, which has the «Новые сообщения» ("New messages") banner) */
@media (max-width: 900px) {
  .dm-dot { display: flex; align-items: center; justify-content: center; width: auto; min-width: 20px; height: 20px; padding: 0 5px;
    top: -6px; right: -8px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; font-style: normal; }
}
@media (min-width: 901px) { .dm-dot .dm-dot-n { display: none; } }
.dm-err { color: #B42318; }
@media (hover: none) { .dm-keys { display: none; } }        /* Ctrl+Enter — a hint for keyboard users only */
.dm-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 20px; border-radius: 14px; background: var(--orange-t); border: 1px solid #F3D3BD; color: var(--ink); }
.dm-alert:hover { text-decoration: none; filter: brightness(0.99); }
.dm-alert > svg { flex-shrink: 0; color: var(--orange-d); }
.dm-alert-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dm-alert-text small { color: var(--muted); }
.dm-alert-cta { font-weight: 700; color: var(--orange-d); white-space: nowrap; }

/* Export of suggestions, as in YouEDC: Excel/CSV and the «Пакет для разбора» ("Review package") in the panel */
.fb-export { flex: 0 0 auto; max-width: 100%; }   /* on PC on one line, on a phone it wraps without overflowing the edge */
.fb-export-note { margin-top: 8px; }
.fb-share { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-share-shot { display: flex; flex-direction: column; gap: 6px; width: 200px; max-width: 100%; cursor: pointer; }
.fb-share-shot img { width: 100%; height: 130px; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 8px; display: block; background: var(--bg); }
.fb-share-check { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.fb-share-check input { margin-top: 2px; flex: none; }
.fb-share-shot:has(input:checked) img { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-t); }
.fb-pack .fb-row { gap: 10px; }
.fb-code { white-space: nowrap; }   /* the author code A-xxxxxx is not broken at the hyphen */
/* ---------- Release 20: the «?» icon with the «Как это работает» ("How it works") diagram (templates/help/q.html, projects/help.py) */
.help-q { display: inline-block; vertical-align: middle; }
.help-q > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--green-d); font: 600 14px var(--body); }
.help-q > summary::-webkit-details-marker { display: none; }
.help-q > summary > span[aria-hidden] { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; border: 1.5px solid var(--green-d); background: var(--card); font: 700 14px var(--body); line-height: 1; }
.help-q > summary:hover > span[aria-hidden], .help-q[open] > summary > span[aria-hidden] { background: var(--green-d); color: #fff; }
.help-q > summary:focus-visible { outline: 2px solid var(--green-d); outline-offset: 3px; border-radius: 12px; }
.help-pop { position: fixed; z-index: 60; top: 88px; left: 50%; transform: translateX(-50%); width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 120px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 31, 23, .22); padding: 18px 20px 16px; display: grid; gap: 12px; text-align: left;
  color: var(--ink); font: 400 15px/1.45 var(--body); white-space: normal; letter-spacing: 0; text-transform: none; }
.help-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.help-h b { font: 800 18px var(--display); letter-spacing: -0.015em; }
/* two-model review of 29.11.2026: on a phone the window takes the whole screen, and nothing could close it but Esc */
.help-x { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font: 400 26px/1 var(--body); cursor: pointer; }
.help-x:hover, .help-x:focus-visible { background: var(--bg); color: var(--ink); }
.help-t { color: var(--ink2); font-size: 14.5px; max-width: 72ch; }
/* the «?» diagram (help/q.html): only inside .help-pop — the .flow* names coincide with the «Нозологии и пациентопоток» ("Conditions and patient flow") block */
.help-pop .flow { display: grid; gap: 14px; }
.help-pop .flow-lane { display: grid; gap: 6px; }
.help-pop .flow-lt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.help-pop .flow-row { list-style: none; margin: 0; padding: 0; border: 0; display: flex; align-items: stretch; gap: 24px; }
.help-pop .flow-st { position: relative; flex: 1 1 0; min-width: 0; border-radius: 10px; border: 1.5px solid; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.help-pop .flow-st b { font-size: 13.5px; }
.help-pop .flow-st span { font-size: 12.5px; color: var(--ink2); }
.help-pop .flow-st + .flow-st::before { content: ""; position: absolute; left: -20px; top: 50%; width: 14px; height: 2px; background: var(--grey-d); }
.help-pop .flow-st + .flow-st::after { content: ""; position: absolute; left: -8px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 7px solid var(--grey-d); border-right: 0; }
.t-co { background: var(--green-t); border-color: #8CC5A3; }
.t-mod { background: var(--orange-t); border-color: #EBA77A; }
.t-doc { background: #E8EEFA; border-color: #93ABD8; }
.t-all { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.help-pop .flow-st.t-all span { color: #D7EEDF; }
.help-pop .flow-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.help-pop .flow-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 720px) {
  .help-pop { top: 12px; left: 12px; right: 12px; transform: none; width: auto; max-height: calc(100vh - 24px); padding: 14px; }
  .help-pop .flow-row { flex-direction: column; gap: 16px; }
  .help-pop .flow-st + .flow-st::before { left: 24px; top: -14px; width: 2px; height: 10px; }
  .help-pop .flow-st + .flow-st::after { left: 20px; top: -7px; border: 5px solid transparent; border-top: 7px solid var(--grey-d); border-bottom: 0; }
}

/* ---------- Release 20: «Мои проекты» ("My projects") and the project dashboard (templates/accounts/cab/my_projects.html, project*.html) */
.mp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mp-head h2 { display: flex; align-items: center; gap: 10px; }
.mp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink2); font-weight: 600; }
.mp-tabs a b { font-weight: 700; color: var(--muted); }
.mp-tabs a.on { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.mp-tabs a.on b { color: #CFE9D9; }
.ptable tbody tr[data-href] { cursor: pointer; }
.ptable tbody tr[data-href]:hover td { background: var(--bg); }
.ptable td .nm { display: block; }
.ptable .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ptable td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* «Удалить из моих» ("Remove from mine") (Tim, 11.11.2026): a button at the end of the row, the confirmation — the .ask-dialog window or the ?remove=1 page */
.ptable td.act { text-align: right; white-space: nowrap; width: 1%; }
.ptable td.act form { margin: 0; }
.ask-dialog.mp-rm { width: min(500px, calc(100vw - 32px)); }
.mp-remove-page { max-width: 640px; }
.mp-remove-page .ask-box { padding: 0; }
@media (max-width: 640px) { .ptable td.act { text-align: left; padding-top: 6px; } }
/* Trial card: «В моих проектах» ("In my projects") as a badge at the heading and as a block with «Открыть проект» ("Open project") and «Удалить из моих» ("Remove from mine") */
.pill-mine { background: var(--green-t); color: var(--green-d); text-decoration: none; }
.pill-mine:hover { box-shadow: inset 0 0 0 1px var(--green-d); }
.mp-mine { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--green-t); }
.mp-mine-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-d); }
.mp-mine form { margin: 0; }
.lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.lvl-closed { background: var(--grey-t); color: var(--grey-d); }
.lvl-doctors { background: #E8EEFA; color: #2B4A86; }
.lvl-public { background: var(--green-t); color: var(--green-d); }
.lvl-wait { background: var(--orange-t); color: var(--orange-d); }
.src-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 12px;
  background: var(--grey-t); color: var(--grey-d); }
.src-tag.src-company { background: #FFF4E5; color: #8A4B0F; }
.pj-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pj-top h2 { font-size: clamp(22px, 2.4vw, 30px); }
.pj-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pj-views { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 0; }
.pj-views a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent;
  color: var(--ink2); font-weight: 600; }
.pj-views a.on { color: var(--ink); border-bottom-color: var(--green-d); }
.pj-views a b { font-weight: 700; color: var(--muted); font-size: 13px; }
.cand { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
.cand-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cand-h label.check { align-items: flex-start; }
.cand-docs { list-style: none; margin: 0 0 0 30px; padding: 0; display: grid; gap: 4px; }
.cand-docs li { font-size: 14px; }
.lvl-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lvl-pick label { display: grid; gap: 4px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.lvl-pick label:has(input:checked) { border-color: var(--green-d); background: var(--green-t); }
.lvl-pick b { display: flex; align-items: center; gap: 8px; }
.lvl-pick span { font-size: 13px; color: var(--ink2); }
.type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-pick label { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); }
.type-pick label:has(input:checked) { border-color: var(--green-d); background: var(--green-t); }
.dup { border: 1.5px solid; border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.dup.exact { border-color: #EBA77A; background: var(--orange-t); }
.dup.like { border-color: var(--line); background: var(--card); }
@media (max-width: 720px) {
  .lvl-pick, .type-pick { grid-template-columns: 1fr; }
  .cand-docs { margin-left: 0; }
}

/* Release 20: the «Все · Клинические исследования · Неинтервенционные проекты» ("All · Clinical trials · Non-interventional projects") switch above the catalog list */
.type-switch .seg a .n { margin-left: 6px; font-weight: 500; opacity: .75; }
.type-switch .seg a.on .n { opacity: .9; }
.pill-src { background: var(--card); border: 1px dashed var(--line); color: var(--ink2); gap: 4px; white-space: normal; height: auto; min-height: 26px; padding: 3px 10px; }

/* Panel: «Все данные человека» ("All data of a person") (accounts/staff_userdata.py) — field: value, nested lists */
.ud-kv { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.ud-kv dt { color: var(--ink2); }
.ud-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ud-kv .ud-kv { font-size: 13px; }
.ud-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.ud-list > li { padding-top: 10px; border-top: 1px solid var(--line); }
.ud-list > li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .ud-kv { grid-template-columns: 1fr; gap: 2px; } .ud-kv dd { margin-bottom: 8px; } }

/* Release 28, accessibility check (WCAG 2.2, 1.4.1): a link inside text differs not only by colour —
   an underline. Only for links without their own class (buttons, cards and menus are not touched). */
:is(p, .small, .tiny, .muted, .hint, .steps li, nav[aria-label="Где этот раздел"]) > a:not([class]) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* WCAG 2.2, 2.5.8: a number above a column — the click target is at least 24 points */
.ychart a.total { min-height: 24px; line-height: 20px; }
/* Release 28: on a phone a long button wraps its text instead of overflowing the screen edge */
@media (max-width: 640px) { .btn { max-width: 100%; white-space: normal; text-align: center; } }
/* Email settings (feedback package no. 1, 25.11.2026): the frequency and infographic are subordinate to the main «Получать письма» ("Receive emails") switch */
.mail-box .mail-off-note { display: none; margin: 0; }
.mail-box:has([data-mail-main]:not(:checked)) .mail-sub { opacity: .45; }
.mail-box:has([data-mail-main]:not(:checked)) .mail-off-note { display: block; }
@media (max-width: 640px) { .mail-box .segc label { flex: 1 1 40%; } }   /* four frequency buttons — 2 × 2 */

/* Company page header (Tim, 26.11.2026: "уменьшить очень сильно блоки верхние" ("shrink the top blocks a lot"), three blocks in one row):
   title with the logo and pills on one line, description in two lines at most, under it a strip of three small cards. */
.org-head .org-title { gap: 8px 14px; }
.org-head h1 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 0; }
.org-head .logo-tile.org { --lh: 48px; --lw: 140px; --lp: 5px; border-radius: 12px; }
.org-desc { font-size: 15px; color: var(--ink2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.org-sc { flex: 1 1 280px; min-width: 0; scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); }
.org-sc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.org-sc-h h2 { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 700; }
.org-sc-h h2 svg { color: var(--muted); }
.org-sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.org-sc-list li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.org-sc-list li svg { color: var(--muted); flex-shrink: 0; }
.org-sc-list li.pat svg { color: var(--green-d); }
.org-sc-list a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-sc form, .org-sc .row { flex-wrap: wrap; }
@media (max-width: 640px) { .org-sc { flex-basis: 100%; } }

/* Subscription buttons «Каждый день» / «Раз в неделю» (Tim, 26.11.2026: "neater buttons"): one compact style */
.freq-btns .btn-s { height: 32px; padding: 0 12px; font-size: 13.5px; gap: 6px; border-radius: 9px; }
.freq-btns .btn-secondary svg { color: var(--green); }
.freq-btns .btn-secondary:hover { background: var(--green-t); border-color: var(--green); color: var(--green-d); }
