/* ---------- Ф5: versions of the audience (switcher, before → after) ---------- */
.av { display: flex; flex-direction: column; gap: 10px; }
.av__bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.av__label { font-size: 0.82rem; font-weight: 700; }
.av__bar .av__select { width: 380px; flex: 0 1 380px; min-width: 220px; max-width: 100%; }
.av__meta { margin: 0; font-size: 0.86rem; }
.av__note { margin: 0; font-size: 0.84rem; }
.av-cmp { margin-top: 0; }
.av-one { display: block; }
.av__people { margin: 10px 0 0; padding: 8px 0 0 18px; border-top: 1px solid var(--border-gray); font-size: 0.82rem; display: flex; flex-direction: column; gap: 4px; }
.sd-seg__tag--changed { background: #FFF4D6; color: #8A5A00; }
.av-block .av { padding: 12px 18px 16px; }
.run-meta__version { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Ф6: the wizard company → product → goal (wizard.js; merged from wizard.css in Ф7) ----------
 * Book Forms tokens; black and white, the accent only on the current step and the chosen goal. */

/* ---------- the stepper ---------- */
.wz-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.wz-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    color: var(--text-gray);
    text-decoration: none;
    min-width: 0;
}
a.wz-step:hover { border-color: var(--primary); color: var(--primary); }
.wz-step__num {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.wz-step__text { display: flex; flex-direction: column; min-width: 0; }
.wz-step__name { font-weight: 700; color: var(--primary); font-size: 0.92rem; }
.wz-step__sub { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-step.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.wz-step.is-current .wz-step__num { background: var(--accent); border-color: var(--accent); color: var(--white); }
.wz-step.is-done .wz-step__num { background: var(--primary); border-color: var(--primary); color: var(--white); }
.wz-step.is-todo { opacity: 0.6; }

/* The goal step's sub-steps (owner, 2026-09-30): a progress line, then one block at a time. */
.wz-sub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    margin: -6px 0 16px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
}
.wz-sub__line {
    grid-column: 1 / -1;
    height: 4px;
    border-radius: 2px;
    background: var(--light-gray);
    overflow: hidden;
}
.wz-sub__fill { height: 100%; background: var(--accent); transition: width 0.25s; }
.wz-sub__list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.wz-sub__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.85rem;
    color: var(--text-gray);
}
button.wz-sub__item { cursor: pointer; }
button.wz-sub__item:hover .wz-sub__name { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.wz-sub__num {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.wz-sub__item.is-current { color: var(--primary); font-weight: 700; }
.wz-sub__item.is-current .wz-sub__num { background: var(--accent); border-color: var(--accent); color: var(--white); }
.wz-sub__item.is-done .wz-sub__num { background: var(--primary); border-color: var(--primary); color: var(--white); }
.wz-sub__item.is-todo { opacity: 0.6; }
.wz-sub__count { font-size: 0.8rem; color: var(--text-gray); white-space: nowrap; }

/* ---------- where to start ---------- */
.wz-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.wz-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.wz-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.wz-card.is-primary { border-color: var(--primary); }
.wz-card.is-off { pointer-events: none; opacity: 0.5; }
.wz-card__title { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.wz-card__text { font-size: 0.85rem; color: var(--text-gray); }
.wz-links { margin-top: 18px; font-size: 0.85rem; color: var(--text-gray); }
.wz-links a { color: var(--primary); }

/* ---------- the goal catalogue ---------- */
.wz-group {
    margin: 22px 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-gray);
}
.wz-goals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.wz-goal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    background: var(--white);
    color: var(--primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.wz-goal:hover:not(:disabled) { border-color: var(--primary); }
.wz-goal.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.wz-goal.is-soon { cursor: default; background: var(--light-gray); color: var(--text-gray); }
.wz-goal__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wz-goal__name { font-weight: 700; font-size: 0.9rem; }
.wz-goal__soon {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    font-size: 0.7rem;
    font-weight: 600;
}
.wz-goal__text { font-size: 0.8rem; color: var(--text-gray); line-height: 1.45; }
.wz-goal__closest { font-size: 0.75rem; color: var(--text-faint); line-height: 1.4; }

/* ---------- fields ---------- */
.wz-fold { margin-bottom: 4px; }
.panel .wz-fold + .grid { margin-top: 16px; }
.wz-hint { margin-top: 8px; }
/* SA-052: the competitors of the product step — rows of a name, a website and “Remove”, level in one line. */
.wz-comps { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.wz-comp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; }
.wz-comp > .btn { height: var(--ac-control-h); padding-top: 0; padding-bottom: 0; }
.wz-comp-add { align-self: flex-start; }
/* Earlier answers that could not be moved into the new fields (read-only). */
.wz-legacy__list { margin: 0 0 12px; padding-left: 18px; color: var(--text-gray); font-size: 0.9rem; line-height: 1.5; }
.wz-legacy .section-note { margin-bottom: 8px; }
.wz-keep { margin-top: -4px; }
/* The common title of a few fields that are one question (the customer's three answers, 2026-10-07). */
.wz-subhead { margin-top: 6px; margin-bottom: 10px; padding-top: 16px; border-top: 1px solid var(--border, #E6E6E6); }
.wz-subhead__title { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
/* Where a value already in a field came from (the assistant's proposal): the hint's line; dimmed once the user changed the text. */
.fld--origin .fld__note { font-style: italic; }
.fld--origin.fld--edited .fld__note { opacity: 0.5; }
.mkt-money__find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
/* 2026-10-23: the share of revenue by country — the competitors' rows: the country's name, its per cent; the sum under them. */
.wz-shares { gap: 2px; }
.wz-shares .wz-comp { grid-template-columns: minmax(0, 16rem) minmax(0, 8rem); align-items: start; column-gap: 16px; }
.wz-shares .wz-static { line-height: var(--ac-control-h); padding: 0; margin: 0; }
.wz-shares__sum { margin: 0; }
/* (the field's own rule speaks once, under the rows: the per-cent boxes inside are not marked one by one) */
.wz-shares .fld--bare .fld__hint { display: none; }
.fld.invalid .wz-shares .ac-input { border-color: var(--border-gray); box-shadow: none; }
/* “Collect public data…”: a source's switch, its “Connect” and its “i” in one line. */
.collect__src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .wz-comp { grid-template-columns: minmax(0, 1fr); } }
.wz-warn {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #FFF4D6;
    color: #8A5A00;
    font-size: 0.8rem;
    line-height: 1.45;
}
.wz-static { font-size: 0.9rem; padding: 10px 0; }

/* ---------- the steps of a template ---------- */
.wz-plan { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wz-plan__row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
}
.wz-plan__num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 0.8rem;
    font-weight: 800;
}
.wz-plan__row.is-done .wz-plan__num { background: var(--primary); border-color: var(--primary); color: var(--white); }
.wz-plan__name { font-weight: 700; font-size: 0.92rem; }
.wz-plan__tool { font-size: 0.82rem; color: var(--text-gray); line-height: 1.45; }
.wz-plan__here { font-size: 0.8rem; color: var(--text-gray); padding: 0 8px; }
/* The goal's workflow: a card of its own under the goals (owner, 2026-09-30). */
.wz-plan-slot:not(:empty) { margin-top: 20px; }
.wz-workflow .section-head h2 { font-weight: 500; }
.wz-workflow .section-head h2 strong { font-weight: 800; }
.wz-workflow__sub { color: var(--text-gray); font-size: 0.85rem; margin: 0 0 12px; }

.wz-facts { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 18px; margin-top: 8px; font-size: 0.88rem; }
.wz-facts dt { color: var(--text-gray); }
.wz-facts dd { margin: 0; }
#view-wizard .back-link { margin-bottom: 14px; display: inline-flex; }
.wz-researches { width: 100%; table-layout: fixed; }
/* Ф7: header cells wrap between words only ("AUDIENC E VERSION" broke inside the word); the text cells may break anywhere. */
.wz-researches th { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; }
.wz-researches td { white-space: normal; overflow-wrap: anywhere; }
.wz-researches th:nth-child(1) { width: 26%; }
.wz-researches th:nth-child(3), .wz-researches th:nth-child(4) { width: 14%; }
.wz-researches th:nth-child(5) { width: 110px; }
.wz-researches .btn { white-space: nowrap; }

/* ---------- Ф7: the header — company ▸ product ▸ the way to the page ---------- */
.topbar__ctx { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.topbar__ctx h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
.ctx-pick { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ctx-select { width: 170px; }
.ctx-select--product { width: 190px; }
.ctx-empty, .ctx-add { font-size: 0.85rem; color: var(--text-gray); }
.ctx-add { color: var(--primary); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; overflow: hidden; font-size: 0.88rem; }
.crumbs__sep { color: var(--text-faint); flex: 0 0 auto; }
.crumbs__link { color: var(--primary); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.crumbs__link:hover { text-decoration: underline; }
.crumbs__text { color: var(--text-gray); white-space: nowrap; }
.topbar__side .topbar__new { white-space: nowrap; }
@media (max-width: 1360px) {
    .topbar { padding: 0 20px; }
    .ctx-select { width: 150px; }
    .ctx-select--product { width: 160px; }
    .crumbs__link { max-width: 170px; }
    .topbar__side .stage-badge { display: none; }
}

/* ---------- Ф7: tabs (Book Forms' storage tabs) ---------- */
.storage-tabs { display: flex; gap: 4px; background: var(--border-gray); padding: 4px; border-radius: var(--radius); flex-wrap: wrap; }
.tab {
    border: 0;
    background: transparent;
    padding: 7px 14px;
    border-radius: 8px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}
.tab:hover { color: var(--primary); }
.tab.active { background: var(--white); color: var(--primary); box-shadow: 0 1px 3px rgba(9, 18, 39, 0.12); }

/* ---------- Ф7: the bar of a research ---------- */
.rbar {
    max-width: 1560px;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rbar__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rbar__who { min-width: 0; }
.rbar__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.rbar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.85rem; color: var(--text-gray); }
.rbar__meta a { color: var(--primary); }
.rbar__market { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rbar__tabs { align-self: flex-start; }

/* Draft / frozen version (owner's decision §10.1). */
.vstate {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-strong);
    color: var(--text-gray);
    cursor: help;
    white-space: nowrap;
}
.vstate--frozen { border-color: var(--primary); color: var(--primary); }

/* ---------- Ф7: the product, its markets and researches ---------- */
.pv-facts { font-size: 0.88rem; color: var(--text-gray); margin-top: 6px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.mcard {
    display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
    border: 1px solid var(--border-gray); border-radius: var(--radius); background: var(--white);
    color: var(--primary); text-decoration: none; transition: var(--transition); min-width: 0;
}
.mcard:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.mcard__name { font-weight: 800; font-size: 0.95rem; overflow-wrap: anywhere; }
.mcard__sub { font-size: 0.82rem; color: var(--text-gray); }
.mcard__facts { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--text-gray); }
.nav-table { table-layout: fixed; width: 100%; }
.nav-table th { white-space: normal; overflow-wrap: normal; word-break: normal; vertical-align: bottom; }
.nav-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.nav-table td.num, .nav-table th.num { text-align: right; }
.nav-table a { color: var(--primary); }
.nav-table .row-link { cursor: pointer; }
.nav-table .row-link:hover td { background: var(--light-gray); }
.nav-table .w-name { width: 22%; }
.nav-table .w-terr { width: 18%; }
.nav-table .w-ver { width: 150px; }
.nav-table .w-segs { width: 120px; }
.nav-table .w-num { width: 120px; }
.nav-table .w-few { width: 90px; }
.nav-table .w-date { width: 110px; }
.nav-table .w-goal { width: 16%; }
.nav-table .w-mk { width: 18%; }
.nav-table .w-status { width: 120px; }
.nav-table .cell-clip2 { display: table-cell; color: var(--text-gray); }
/* Research table: widths follow the content. Audience, Personas, Models, Status, Spent, Made hug their content (1% + one line);
   Goal has a fixed width for goal names; the minimum widths of Goal, The decision and Market set the table's narrowest width; The decision and Market share all the rest, by the length of their text. */
.res-table { table-layout: auto; }
.res-table .w-goal { width: 11rem; min-width: 11rem; }
.res-table .w-dec { min-width: 10rem; }   /* the text columns never crush below this: a narrower panel scrolls the table in its wrapper */
.res-table .w-mk { min-width: 8rem; }
.res-table .w-ver, .res-table .w-few, .res-table .w-models, .res-table .w-status, .res-table .w-num, .res-table .w-date { width: 1%; }
.res-table td:nth-child(n+4) { white-space: nowrap; overflow-wrap: normal; }
/* (2026-10-22) with the Product column first, Market is the 4th: it wraps and clips to two lines as before */
.res-table--product td:nth-child(4) { white-space: inherit; overflow-wrap: inherit; }
.res-table td.num, .res-table .badge { white-space: nowrap; overflow-wrap: normal; }
.res-table td.res-models { white-space: normal; min-width: 9rem; }   /* Models: the names wrap to two lines like Market */
/* Every cell of the research table: at most two lines, an ellipsis at the end; a cut cell opens its whole text on a click. */
.res-table .res-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-table .res-goal-link, .res-table .res-goal-link:hover { text-decoration: none; }
.res-table .res-date { white-space: nowrap; }
.res-table .res-clip span.lib-spent__btn { font-weight: 400; color: inherit; }   /* The decision, Market: only the underline of Spent */
.res-spent__sign { font-weight: 600; }
/* The credit sign (U+E000) — the accent orange everywhere; on an orange (primary) button it takes the button's text colour.
   The amount (`.credit-amount`, SA_CREDITS.amount) does not wrap inside. */
.res-spent__sign, .credit-sign { color: var(--accent); }
.credit-amount { white-space: nowrap; }
.btn-primary .res-spent__sign, .btn-primary .credit-sign { color: inherit; }
.res-spent__num { font-weight: 400; }
.tip-pop a { color: var(--primary); }
.res-table .res-goal { display: flex; align-items: flex-start; gap: 4px; }
.res-table .res-goal .res-clip { min-width: 0; }
.nav-table td.cell-muted .vstate, .nav-table td .vstate { margin-left: 2px; }
.wz-facts a, .rv-markets a, .mk-rlist a { color: var(--primary); }
.seg-table .w-dec { width: 30%; }
.lib-total { font-size: 0.85rem; }
.section-head .result-acts { display: flex; align-items: center; gap: 12px; }

/* ---------- Ф7: a market ---------- */
#marketHead:empty { display: none; }
#marketHead { padding-bottom: 0; margin-bottom: 20px; }
.mk-researches { margin-top: 14px; }
.mk-rlist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; }
.mk-rlist a { color: var(--primary); }
.mk-below { margin-top: 12px; }

/* ---------- Ф7: an audience and its versions ---------- */
.av-tabs { margin-top: 10px; align-self: flex-start; display: inline-flex; }
.av-edits { margin: 0; padding-left: 18px; }
.av-personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.av-persona { border: 1px solid var(--border-gray); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; min-width: 0; }
.av-persona__sum { margin: 4px 0 0; color: var(--primary); line-height: 1.45; }
.av-persona__acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.av-cmp-list { margin: 6px 0 0; padding-left: 18px; font-size: 0.86rem; display: flex; flex-direction: column; gap: 3px; }

/* ---------- Ф7: a research's overview ---------- */
.rv-markets { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.rv-markets a { color: var(--primary); }
/* The overview's last block: deleting the research (text on the left, the button on the right). */
.rv-delete { display: flex; align-items: center; gap: 24px; }
.rv-delete > div { flex: 1 1 auto; min-width: 0; }
.rv-delete h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.rv-delete .section-note { margin: 4px 0 0; }
.rv-delete > .btn { flex-shrink: 0; }
.rv-work { margin: 4px 0 0; padding-left: 18px; font-size: 0.88rem; display: flex; flex-direction: column; gap: 4px; }

/* The research's Hypotheses block (hypotheses.js). */
.hyp-empty { margin: 0; font-size: 0.88rem; }
.hyp-list .hyp-empty { grid-column: 1 / -1; }
.hyp-section__head .section-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- Ф9: kinds of data (privacy.js) ---------- */
.dc-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.5; white-space: nowrap;
    border: 1px solid var(--border-strong); background: var(--white); color: var(--text-gray); cursor: pointer;
    vertical-align: middle; transition: var(--transition);
}
.dc-badge--commercial { border-color: var(--primary); color: var(--primary); }
.dc-badge--personal_aggregate { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-dark); }
.dc-badge--personal_raw { border-color: #B42318; background: #FDE8E8; color: #B42318; }
.dc-badge.has-tip:hover, .dc-badge.has-tip--open { box-shadow: 0 0 0 2px var(--accent-ring); }
.mkt-fstep .dc-badge { margin-left: 2px; }
.mkt-found .dc-badge, .mkt-q__done .dc-badge { margin-left: 6px; }
.pv-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pv-option { margin: 0 0 10px; font-size: 0.84rem; }
.pv-option a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.pv-warn { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #FDE8E8; color: #B42318; font-size: 0.86rem; }
.pv-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-gray); }
.pv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-gray); font-size: 0.86rem; }
.pv-row__name { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.pv-row__text { color: var(--text-gray); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-options { display: flex; flex-direction: column; gap: 8px; }
.pv-status { margin: 8px 0 0; }

/* ---------- Ф8: the knowledge library (knowledge.js) ---------- */
.kn-tabs { margin: 0 0 0 auto; align-self: flex-start; }
.kn-links { margin: 0; font-size: 0.86rem; }
.kn-links a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.kn-toolbar { margin-bottom: 8px; }
.kn-filters { flex-wrap: wrap; gap: 8px; }
.kn-filters .kn-filter { width: 190px; flex: none; }
.kn-total { margin: 0 0 6px; font-size: 0.85rem; color: var(--text-gray); }
.kn-items { display: flex; flex-direction: column; }
.kn-item { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border-gray); align-items: flex-start; }
.kn-items .kn-item:first-child { border-top: 0; }
.kn-item__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.kn-item__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kn-item__title { font-weight: 600; color: var(--primary); line-height: 1.4; overflow-wrap: anywhere; }
a.kn-item__title:hover { text-decoration: underline; text-underline-offset: 2px; }
.kn-item__text { margin: 0; font-size: 0.88rem; line-height: 1.45; }
.kn-item__numbers { margin: 0; font-size: 0.86rem; color: var(--primary); line-height: 1.45; overflow-wrap: anywhere; }
.kn-item__meta { margin: 0; font-size: 0.8rem; color: var(--text-gray); line-height: 1.5; overflow-wrap: anywhere; }
.kn-item__meta a { color: var(--text-gray); text-decoration: underline; text-underline-offset: 2px; }
.kn-item__acts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.kn-raised { font-size: 0.8rem; color: var(--accent-dark); white-space: nowrap; }
.kn-cal, .kn-history { margin: 0; padding-left: 18px; font-size: 0.88rem; display: flex; flex-direction: column; gap: 4px; }
.kn-cal a { color: var(--primary); }
.kn-cat { margin-top: 18px; }
.kn-cat:first-of-type { margin-top: 0; }
.kn-cat__title { font-size: 0.95rem; font-weight: 700; margin: 0 0 4px; }
.kn-cat__empty { margin: 0; font-size: 0.86rem; }
.kn-cat .kn-item { padding: 12px 0; }
.kn-suggest { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.kn-price { font-size: 0.85rem; }
.kn-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.kn-hint-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.kn-hint-list li { display: flex; gap: 8px; align-items: baseline; line-height: 1.45; }
.kn-hint__lvl { flex: none; }
.kn-hint__text { min-width: 0; overflow-wrap: anywhere; }
.kn-hint__text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.kn-hint__type { color: var(--text-gray); }
.kn-hint__num { color: var(--text-gray); }
.kn-consent__text p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; }
.kn-consent__state { margin: 14px 0; font-size: 0.9rem; }
.kn-consent__row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.kn-consent__name { width: 320px; max-width: 100%; }
.kn-consent__who { font-size: 0.85rem; color: var(--text-gray); align-self: center; }
.kn-dry td, .kn-dry th { white-space: normal; }
.wz-facts + .kn-links { margin-top: 14px; }

