/**
 * Resolve Platform — front-end design system.
 *
 * The visual language is drawn from investment banking and restructuring
 * advisory documents rather than from software marketing: a near-black ink,
 * a warm paper ground, one restrained accent, hairline rules, tabular
 * figures, and a lot of white space. Nothing gradients, nothing bounces.
 *
 * Structure:
 *   1. Tokens
 *   2. Base and typography
 *   3. Layout primitives
 *   4. Buttons, pills, notices
 *   5. Cards and grids
 *   6. Tables
 *   7. Forms and wizards
 *   8. Marketplace
 *   9. Opportunity and confidential profile
 *  10. Dashboards
 *  11. Data room
 *  12. Messaging
 *  13. Editorial
 *  14. Responsive
 *  15. Arabic / RTL typography
 *  16. Print and reduced motion
 */

/* ============================================================
 * 1. Tokens
 * ============================================================ */

.resolve-platform,
.resolve-marketplace,
.resolve-opportunity,
.resolve-dash,
.resolve-intake,
.resolve-confidential,
.resolve-vdr,
.resolve-messages,
.resolve-editorial,
.resolve-account,
.resolve-hero,
.resolve-gate,
/*
 * The surfaces added for §6, §7, §23 and §51. In practice the tokens already
 * reach them by inheritance, because Router::body_class() puts
 * `resolve-platform` on <body> for every front-end request. They are listed
 * here anyway: the identity indicator in particular is emitted on
 * wp_body_open, outside any shortcode, and a surface whose colours depend on a
 * body class a theme might not print is a surface that renders as unstyled
 * text in exactly the situation it exists for.
 */
.resolve-identity,
.resolve-docs,
.resolve-transaction,
.resolve-submissions,
.resolve-profile {
	/*
	 * ALIASES, NOT VALUES.
	 *
	 * This block used to hold the palette itself. It was one of four copies —
	 * `--rp-*` in resolve-panel.css, `--ra-*` in resolve-admin.css and `--t-*`
	 * in the theme — and the copies had already drifted apart. The values now
	 * live once, in resolve-tokens.css, as `--resolve-*`.
	 *
	 * The literal fallback on each line is deliberate: this stylesheet is
	 * enqueued by Core\Assets, which cannot be given a dependency on the token
	 * file from here. Shell::attach_tokens() grafts one on at runtime; the
	 * fallback is what guarantees the platform still renders in the right
	 * colours if that ever silently stops working.
	 */
	--r-ink: var(--resolve-ink, #181818);
	--r-ink-2: var(--resolve-ink-2, #3c4653);
	--r-ink-3: var(--resolve-ink-3, #515b68);
	--r-ink-4: var(--resolve-ink-4, #626c79);

	--r-paper: var(--resolve-paper, #ffffff);
	--r-ground: var(--resolve-ground, #f7f7fa);
	--r-ground-2: var(--resolve-ground-2, #eeeef4);

	--r-line: var(--resolve-line, #dcdce6);
	--r-line-strong: var(--resolve-line-strong, #c2c2d2);

	--r-accent: var(--resolve-accent, #5A68C4);
	--r-accent-2: var(--resolve-accent-2, #48559f);
	--r-accent-soft: var(--resolve-accent-soft, #eef0fa);
	--r-accent-ink: var(--resolve-accent-ink, #ffffff);

	--r-gold: var(--resolve-gold, #7a6033);
	--r-danger: var(--resolve-danger, #8c2f2f);
	--r-warning: var(--resolve-warning, #7a6033);
	--r-success: var(--resolve-success, #2f6b46);

	/* Status system (§18). Colour is never the only signal — see the pill
	 * glyphs below, which give each status a mark as well as a hue. */
	--r-status-approved: var(--resolve-status-approved, #2f6b46);
	--r-status-approved-soft: var(--resolve-status-approved-soft, #ecf3ef);
	--r-status-pending: var(--resolve-status-pending, #7a6033);
	--r-status-pending-soft: var(--resolve-status-pending-soft, #f7f2e8);
	--r-status-blocked: var(--resolve-status-blocked, #8c2f2f);
	--r-status-blocked-soft: var(--resolve-status-blocked-soft, #f7edec);
	--r-status-inactive: var(--resolve-status-inactive, #565f6b);
	--r-status-inactive-soft: var(--resolve-status-inactive-soft, #eeedea);

	--r-radius: var(--resolve-radius, 0);
	--r-radius-lg: var(--resolve-radius-lg, 0);

	--r-space-1: var(--resolve-space-1, 4px);
	--r-space-2: var(--resolve-space-2, 8px);
	--r-space-3: var(--resolve-space-3, 12px);
	--r-space-4: var(--resolve-space-4, 16px);
	--r-space-5: var(--resolve-space-5, 24px);
	--r-space-6: var(--resolve-space-6, 32px);
	--r-space-7: var(--resolve-space-7, 48px);
	--r-space-8: var(--resolve-space-8, 64px);
	--r-space-9: var(--resolve-space-9, 96px);

	--r-serif: var(--resolve-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif);
	--r-sans: var(--resolve-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	--r-mono: var(--resolve-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace);

	--r-shadow: var(--resolve-shadow, 0 1px 2px rgba(14, 22, 33, 0.04), 0 8px 24px rgba(14, 22, 33, 0.05));
	--r-shadow-raised: var(--resolve-shadow-raised, 0 2px 4px rgba(14, 22, 33, 0.06), 0 16px 40px rgba(14, 22, 33, 0.08));

	--r-maxw: var(--resolve-maxw, 1240px);

	/* Typographic scale (§18): display, page title, section title, body,
	 * supporting, labels, table text. */
	--r-type-display: var(--resolve-type-display, 2.25rem);
	--r-type-display-lh: var(--resolve-type-display-lh, 1.15);
	--r-type-page: var(--resolve-type-page, 1.5rem);
	--r-type-page-lh: var(--resolve-type-page-lh, 1.25);
	--r-type-section: var(--resolve-type-section, 1.125rem);
	--r-type-section-lh: var(--resolve-type-section-lh, 1.35);
	--r-type-body: var(--resolve-type-body, 1rem);
	--r-type-body-lh: var(--resolve-type-body-lh, 1.6);
	--r-type-support: var(--resolve-type-support, 0.875rem);
	--r-type-support-lh: var(--resolve-type-support-lh, 1.5);
	--r-type-label: var(--resolve-type-label, 0.6875rem);
	--r-type-label-lh: var(--resolve-type-label-lh, 1.4);
	--r-type-label-tracking: var(--resolve-type-label-tracking, 0.08em);
	--r-type-table: var(--resolve-type-table, 0.8125rem);
	--r-type-table-lh: var(--resolve-type-table-lh, 1.45);

	--r-shell-nav: var(--resolve-shell-nav, 244px);
	--r-shell-header: var(--resolve-shell-header, 60px);
}

/* ============================================================
 * 2. Base and typography
 * ============================================================ */

.resolve-platform {
	color: var(--r-ink);
	font-family: var(--r-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.resolve-marketplace,
.resolve-opportunity,
.resolve-dash,
.resolve-intake,
.resolve-confidential,
.resolve-vdr,
.resolve-messages,
.resolve-editorial,
.resolve-account,
.resolve-gate {
	max-width: var(--r-maxw);
	margin-inline: auto;
	padding-inline: var(--r-space-5);
	color: var(--r-ink);
	font-family: var(--r-sans);
	line-height: 1.6;
}

.resolve-eyebrow {
	margin: 0 0 var(--r-space-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--r-accent);
}

.resolve-section__title,
.resolve-dash__title,
.resolve-intake__title,
.resolve-opportunity__title,
.resolve-confidential__title,
.resolve-vdr__title,
.resolve-gate__title {
	margin: 0 0 var(--r-space-3);
	font-family: var(--r-serif);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--r-ink);
}

.resolve-opportunity__title,
.resolve-confidential__title {
	font-size: clamp(28px, 3.4vw, 42px);
}

.resolve-section__title,
.resolve-dash__title,
.resolve-intake__title,
.resolve-vdr__title {
	font-size: clamp(24px, 2.6vw, 34px);
}

.resolve-section__intro,
.resolve-intake__intro,
.resolve-dash__sectionnote {
	max-width: 68ch;
	color: var(--r-ink-3);
	font-size: 16px;
}

.resolve-section__head {
	margin-bottom: var(--r-space-6);
}

.resolve-prose__title,
.resolve-panel__title,
.resolve-csection__title,
.resolve-dash__sectiontitle {
	margin: 0 0 var(--r-space-3);
	font-family: var(--r-serif);
	font-size: 21px;
	font-weight: 400;
	color: var(--r-ink);
}

.resolve-prose {
	margin-bottom: var(--r-space-6);
	padding-bottom: var(--r-space-6);
	border-bottom: 1px solid var(--r-line);
}

.resolve-prose:last-child {
	border-bottom: 0;
}

.resolve-prose p {
	max-width: 72ch;
	color: var(--r-ink-2);
}

.resolve-card__sep {
	margin-inline: var(--r-space-2);
	color: var(--r-line-strong);
}

/* Tabular figures everywhere a number is compared to another number. */
.resolve-table__num,
.resolve-stat__value,
.resolve-kpi__value,
.resolve-matchscore,
.resolve-data__value,
.resolve-card__data dd {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ============================================================
 * 3. Layout primitives
 * ============================================================ */

.resolve-panel {
	margin-bottom: var(--r-space-5);
	padding: var(--r-space-5);
	background: var(--r-paper);
	border: 1px solid var(--r-line);
	border-radius: var(--r-radius);
}

.resolve-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-3);
}

.resolve-panel__note {
	margin: 0 0 var(--r-space-4);
	color: var(--r-ink-3);
	font-size: 13px;
}

.resolve-data {
	margin: 0;
}

.resolve-data__row {
	display: grid;
	grid-template-columns: minmax(140px, 40%) 1fr;
	gap: var(--r-space-3);
	padding: var(--r-space-3) 0;
	border-bottom: 1px solid var(--r-line);
}

.resolve-data__row:last-child {
	border-bottom: 0;
}

.resolve-data--two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--r-space-6);
}

.resolve-data__label {
	margin: 0;
	color: var(--r-ink-3);
	font-size: 13px;
}

/*
 * `min-width: 0` because a grid item's default minimum is its content's
 * intrinsic width, not zero — so a long unbroken value pushes its own track
 * wider than the `1fr` it was given and the row overruns the viewport. At
 * 390px this was two pixels, which is nothing to look at and still a page that
 * scrolls sideways; `overflow-wrap` then breaks the value rather than the
 * layout.
 */
.resolve-data__value {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 500;
}

.resolve-subsection {
	margin-top: var(--r-space-5);
}

.resolve-subsection h3 {
	margin: 0 0 var(--r-space-2);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--r-ink-3);
}

.resolve-subsection p {
	max-width: 72ch;
	color: var(--r-ink-2);
}

/* ============================================================
 * 4. Buttons, pills, notices — MOVED
 *
 * These three components now live in assets/css/resolve-components.css, which
 * is attached to every Resolve surface by Shell::attach_tokens().
 *
 * WHY THEY MOVED (§7)
 * -------------------
 * They were defined here for the counterparty surfaces and AGAIN, differently,
 * in resolve-panel.css for the administration panel. The two had drifted: a
 * status pill carried a glyph here and no glyph there, so the panel — the one
 * screen where statuses are actually decided — was distinguishing them by
 * colour alone, which §7 forbids.
 *
 * Three specific things the shared definitions correct, which is why deleting
 * this block rather than leaving it to override is the point:
 *
 *   - `.resolve-pill` set `border-radius: 999px`. The brand capture is
 *     unambiguous that radius is zero sitewide "with no exceptions", and a
 *     lozenge was the most visible contradiction of it on the platform.
 *   - `.resolve-btn` set `letter-spacing: 0.06em` and 11px/20px padding. The
 *     brand has exactly three letter-spacing values (3px, 1px, 0.8px) and a
 *     46px button height; the shared button uses the tokens for both.
 *   - `.resolve-btn--danger` was an outline that filled on hover, while every
 *     other tone was filled from the start, so the most destructive control on
 *     a screen was also the quietest.
 *
 * `.resolve-redacted` stays: it is genuinely specific to the counterparty
 * surfaces, which are the only ones that show a reader a value they are not
 * cleared to see.
 * ============================================================ */

.resolve-redacted {
	display: inline-block;
	padding: 2px 8px;
	border: 1px dashed var(--r-line-strong);
	background: repeating-linear-gradient(
		45deg,
		var(--r-ground-2),
		var(--r-ground-2) 4px,
		var(--r-ground) 4px,
		var(--r-ground) 8px
	);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--r-ink-4);
}

/* ============================================================
 * 5. Cards and grids
 * ============================================================ */

.resolve-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: var(--r-space-5);
}

/* .resolve-card and its hover moved to resolve-components.css, so a card is
 * the same object in the panel and on a dashboard. The deal-card children
 * below stay: they are specific to an opportunity card and to nothing else.
 */

.resolve-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-3);
}

.resolve-card__ref {
	font-family: var(--r-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--r-ink-4);
}

.resolve-card__match {
	padding: 2px 8px;
	border: 1px solid var(--r-accent);
	border-radius: var(--resolve-radius, 0);
	background: var(--r-accent-soft);
	font-size: 11px;
	font-weight: 700;
	color: var(--r-accent);
}

.resolve-card__title {
	margin: 0 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
}

.resolve-card__title a {
	color: var(--r-ink);
	text-decoration: none;
}

.resolve-card__title a:hover {
	color: var(--r-accent);
}

.resolve-card__meta {
	margin: 0 0 var(--r-space-4);
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-card__data {
	display: grid;
	gap: var(--r-space-2);
	margin: 0 0 var(--r-space-4);
	padding: var(--r-space-4) 0;
	border-top: 1px solid var(--r-line);
	border-bottom: 1px solid var(--r-line);
}

.resolve-card__data > div {
	display: grid;
	grid-template-columns: 42% 1fr;
	gap: var(--r-space-3);
}

.resolve-card__data dt {
	margin: 0;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-4);
}

.resolve-card__data dd {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
}

/*
 * The card footer wraps.
 *
 * It was a rigid row holding a reference and a `white-space: nowrap` call to
 * action. On a 390px screen the two together measured wider than the card and
 * the whole marketplace page scrolled sideways — found in a browser at a phone
 * viewport, invisible to every markup-level check, because the HTML is
 * perfectly correct and it is the layout that fails.
 */
.resolve-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--r-space-2) var(--r-space-3);
	margin-top: auto;
	min-width: 0;
}

.resolve-card__cta {
	/*
	 * nowrap is kept — a call to action broken across two lines reads as two
	 * links — but the element may now shrink and drop onto its own row rather
	 * than force the card wider than the screen.
	 */
	flex: 0 1 auto;
	min-width: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-accent);
	text-decoration: none;
	white-space: nowrap;
}

.resolve-card__cta:hover {
	text-decoration: underline;
}

/* ============================================================
 * 6. Tables
 * ============================================================ */

/* .resolve-tablewrap, .resolve-table and its head/body rules moved to
 * resolve-components.css. The shared table adds a sticky header row and a
 * bordered wrapper, which is what a long decision queue needs and what the
 * panel already had while the counterparty tables did not.
 */

.resolve-table__ref {
	font-family: var(--r-mono);
	font-size: 12px;
	color: var(--r-ink-3);
	white-space: nowrap;
}

/*
 * A NUMERIC CELL BREAKS BETWEEN ITS WORDS AND NEVER INSIDE A NUMBER.
 *
 * This rule used to say `white-space: nowrap`, and on a column that held only
 * numbers that would have been right: "1,234,567" split over two lines is a
 * different quantity to a reader skimming a column, and there is no honest way
 * to hyphenate a figure.
 *
 * But this class is not on numbers. Marketplace's Revenue and Capital columns
 * carry BANDED RANGES — "EGP 500 million – 1 billion", "EGP 200 – 500 million"
 * — which are sentences that happen to contain digits, and `nowrap` made each
 * of them an unbreakable 176px and 153px token. Measured on the ten-column
 * deals table, those two columns alone were 329px of a 1,193px minimum against
 * the 838px the marketplace layout gives it: after column headings had been
 * allowed to wrap and their tracking brought back to 0.06em, this was the
 * single largest remaining reason that table scrolled sideways on a desktop.
 *
 * `white-space: normal` costs nothing on an actual number. A digit group
 * written "1,234,567" contains no space and browsers offer no break
 * opportunity at a comma, so it stays on one line by itself, without needing
 * to be told. What changes is that a range breaks at the spaces it already
 * has, which is where a reader would break it out loud.
 *
 * THE SECOND DECLARATION IS NOT OPTIONAL. Section 16 sets
 * `overflow-wrap: break-word` on .resolve-platform as the last defence against
 * a long reference dragging a page sideways, and it is inherited here. While
 * this cell was `nowrap` that could never fire; the moment wrapping was allowed
 * it could, and in a narrow column it would do the one thing this rule exists
 * to prevent — break a figure mid-digit, "1,234," on one line and "567" on the
 * next. `overflow-wrap: normal` puts that back, which means a single long
 * unbreakable figure sets this column's minimum width exactly as it did
 * before. That is the correct floor, and it is the honest one: the column is
 * as wide as its widest indivisible value and not as wide as its longest
 * sentence.
 *
 * `text-align: end` is unchanged, and stays logical so the column aligns to
 * the right in English and to the left in Arabic. The ≤700px block further
 * down already overrides it to `start` for the stacked card layout.
 */
.resolve-table__num {
	text-align: end;
	white-space: normal;
	overflow-wrap: normal;
}

.resolve-table a {
	color: var(--r-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--r-line-strong);
}

.resolve-table a:hover {
	color: var(--r-accent);
	border-color: var(--r-accent);
}

.resolve-table--financial th[scope="row"] {
	font-weight: 600;
	white-space: nowrap;
}

.resolve-table--ladder th[scope="row"] {
	width: 25%;
	font-weight: 600;
}

/* ============================================================
 * 7. Forms and wizards
 * ============================================================ */

.resolve-form {
	max-width: 100%;
}

.resolve-field {
	margin-bottom: var(--r-space-4);
}

.resolve-field__label {
	display: block;
	margin-bottom: var(--r-space-2);
	font-size: 13px;
	font-weight: 600;
	color: var(--r-ink-2);
}

.resolve-field__required {
	margin-inline-start: 2px;
	color: var(--r-danger);
}

.resolve-field__help {
	margin: var(--r-space-2) 0 0;
	font-size: 12px;
	color: var(--r-ink-3);
}

.resolve-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--r-line-strong);
	border-radius: var(--r-radius);
	background: var(--r-paper);
	color: var(--r-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
}

/*
 * 1.6.1 — THE ONE CONTROL THAT IGNORED THE PLATFORM'S FOCUS RING.
 *
 * This rule drew its own outline in `--r-accent-soft`, which is the pale tint
 * used for selected backgrounds: on white it measures 1.14:1, so the ring was
 * effectively invisible on the one element a keyboard reader spends the most
 * time on. It also made `design.focus` — the focus colour an operator can set
 * under Super Administration → Design & Colours — a no-op on every input and
 * every textarea on the platform, because this rule overrode it.
 *
 * It now uses the focus token like everything else. `--r-focus` is the
 * accent by default, so the ring is the same colour it was meant to be all
 * along; the difference is that it is the SOLID accent at 4.6:1 rather than
 * its 1.14:1 tint, and that an operator who changes the focus colour now
 * changes this one too.
 *
 * `:focus-visible` as well as `:focus`, in that order, so a mouse click into a
 * field does not draw a ring while a keyboard tab into it does — and so a
 * browser without :focus-visible still gets the accessible behaviour from the
 * first rule rather than none at all.
 */
.resolve-input:focus {
	border-color: var(--r-focus, var(--r-accent));
	outline: var(--r-focus-width, 2px) solid var(--r-focus, var(--r-accent));
	outline-offset: var(--r-focus-offset, 2px);
}

.resolve-input:focus:not(:focus-visible) {
	outline-color: var(--r-accent-soft);
	outline-offset: 0;
}

.resolve-input--readonly {
	background: var(--r-ground-2);
	color: var(--r-ink-3);
}

.resolve-textarea {
	min-height: 120px;
	resize: vertical;
}

.resolve-select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--r-ink-3) 50%),
		linear-gradient(135deg, var(--r-ink-3) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-inline-end: 36px;
}

.resolve-currency {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--r-line-strong);
	border-radius: var(--r-radius);
	overflow: hidden;
}

.resolve-currency__symbol {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--r-ground-2);
	border-inline-end: 1px solid var(--r-line-strong);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--r-ink-3);
}

.resolve-input--currency {
	border: 0;
	border-radius: 0;
	text-align: end;
	font-variant-numeric: tabular-nums;
}

.resolve-input--currency:focus {
	outline-offset: -2px;
}

.resolve-checkgroup {
	display: grid;
	gap: var(--r-space-2);
	padding: var(--r-space-3);
	border: 1px solid var(--r-line);
	border-radius: var(--r-radius);
	background: var(--r-paper);
	max-height: 260px;
	overflow-y: auto;
}

.resolve-checkgroup--cols {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.resolve-checkgroup__set {
	margin: 0 0 var(--r-space-3);
	padding: 0;
	border: 0;
}

.resolve-checkgroup__set legend {
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r-ink-4);
}

.resolve-check {
	display: flex;
	align-items: flex-start;
	gap: var(--r-space-2);
	font-size: 14px;
	color: var(--r-ink-2);
	cursor: pointer;
}

.resolve-check input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.resolve-check--single {
	margin-bottom: var(--r-space-4);
	padding: var(--r-space-3);
	border: 1px solid var(--r-line);
	border-radius: var(--r-radius);
	background: var(--r-ground);
}

.resolve-check--child {
	margin-inline-start: var(--r-space-4);
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-check__children {
	margin-bottom: var(--r-space-2);
}

.resolve-repeater {
	display: grid;
	gap: var(--r-space-2);
}

.resolve-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 0 var(--r-space-5);
}

.resolve-form__note {
	margin-top: var(--r-space-4);
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-form--compact {
	max-width: 460px;
}

/* --- Wizard ------------------------------------------------ */

.resolve-intake__head {
	max-width: 72ch;
	margin-bottom: var(--r-space-7);
	padding-bottom: var(--r-space-6);
	border-bottom: 1px solid var(--r-line);
}

.resolve-steps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-6);
	padding-bottom: var(--r-space-4);
	border-bottom: 1px solid var(--r-line);
}

.resolve-steps__item {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	padding: 8px 14px;
	border: 1px solid var(--r-line);
	border-radius: var(--resolve-radius, 0);
	background: var(--r-paper);
	color: var(--r-ink-3);
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: border-color 0.16s ease, color 0.16s ease;
}

.resolve-steps__item.is-active {
	border-color: var(--r-accent);
	background: var(--r-accent-soft);
	color: var(--r-accent);
	font-weight: 600;
}

.resolve-steps__item.is-complete {
	border-color: var(--r-line-strong);
	color: var(--r-ink-2);
}

.resolve-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--r-ground-2);
	font-size: 11px;
	font-weight: 700;
}

.resolve-steps__item.is-active .resolve-steps__num {
	background: var(--r-accent);
	color: #fff;
}

.resolve-step {
	margin: 0 0 var(--r-space-6);
	padding: var(--r-space-6);
	border: 1px solid var(--r-line);
	border-radius: var(--r-radius);
	background: var(--r-paper);
}

/* With the wizard ACTUALLY RUNNING, only one step is shown at a time.
   Without it, every step stays visible and the form still submits — a company
   owner on a poor connection must not lose an hour of work to a failed script.

   1.7.0 (F11): keyed on `.is-enhanced`, which resolve-platform.js adds to the
   form only after the wizard has initialised. It was keyed on the `js` class
   the inline head script sets before the external script has even loaded, so
   a blocked, slow or failing script hid every later step — and the submit
   button with them — behind controls that did nothing. */
.resolve-form--wizard.is-enhanced .resolve-step {
	display: none;
}

.resolve-form--wizard.is-enhanced .resolve-step.is-active {
	display: block;
}

/* Step tabs and Back/Continue only do anything once the wizard runs. */
.resolve-form--wizard:not(.is-enhanced) [data-step-next],
.resolve-form--wizard:not(.is-enhanced) [data-step-prev],
.resolve-form--wizard:not(.is-enhanced) .resolve-steps {
	display: none;
}

.resolve-default-submit {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.resolve-intake__autosave:empty {
	display: none;
}

.resolve-intake__autosave {
	margin: 0 0 var(--r-space-4);
	font-size: 13px;
	color: var(--r-ink-3, #5b6472);
}

.resolve-step__legend {
	display: block;
	width: 100%;
	margin-bottom: var(--r-space-4);
	padding: 0;
}

.resolve-step__number {
	display: block;
	margin-bottom: var(--r-space-1);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--r-accent);
}

.resolve-step__title {
	display: block;
	font-family: var(--r-serif);
	font-size: 26px;
	line-height: 1.2;
}

.resolve-step__description {
	max-width: 70ch;
	margin: 0 0 var(--r-space-5);
	color: var(--r-ink-3);
	font-size: 14px;
}

.resolve-step__fields {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 0 var(--r-space-5);
}

.resolve-step__fields .resolve-field--textarea,
.resolve-step__fields .resolve-field--multiselect,
.resolve-step__fields .resolve-field--sector_multi,
.resolve-step__fields .resolve-field--subsector_multi,
.resolve-step__fields .resolve-field--checkbox {
	grid-column: 1 / -1;
}

.resolve-step__nav {
	display: flex;
	gap: var(--r-space-3);
	margin-top: var(--r-space-6);
	padding-top: var(--r-space-5);
	border-top: 1px solid var(--r-line);
}

/* ============================================================
 * 8. Marketplace
 * ============================================================ */

.resolve-marketplace__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-4);
	margin-bottom: var(--r-space-5);
	padding-bottom: var(--r-space-4);
	border-bottom: 1px solid var(--r-ink);
}

.resolve-marketplace__count {
	font-size: 14px;
	color: var(--r-ink-3);
}

.resolve-marketplace__views {
	display: flex;
	gap: var(--r-space-1);
}

.resolve-viewtoggle {
	padding: 6px 14px;
	border: 1px solid var(--r-line-strong);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r-ink-3);
	text-decoration: none;
}

.resolve-viewtoggle.is-active {
	background: var(--r-ink);
	border-color: var(--r-ink);
	color: #fff;
}

/*
 * 1.16.3.4 (requirement N): ONE COLUMN, because the 260px column is empty.
 *
 * The filter rail that used to sit in the first column has moved into the
 * top bar. The grid was left declaring `260px minmax(0,1fr)` after
 * that move, so the results landed in the 260px track and every card was
 * rendered about 160px wide — one character per line, text overflowing its
 * own border — while the second track stood empty. Nothing in the markup
 * assertions could see that; a screenshot could, and did.
 */
.resolve-marketplace__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-6);
	align-items: start;
}

/*
 * THE TABLE VIEW GETS THE WHOLE ROW. THE GRID VIEW KEEPS ITS SIDEBAR.
 *
 * WHY THE TEN-COLUMN TABLE COULD NOT BE MADE TO FIT BY NARROWING IT
 * -----------------------------------------------------------------
 * Marketplace's table view is the widest thing on the platform and it was
 * being given the narrowest box on the page. `--r-maxw` caps this container at
 * 1240px, the sidebar takes a fixed 260px and the gap 32px, so the table's box
 * is 838px AT EVERY VIEWPORT FROM 1240px UPWARDS — the same 838px on a 1920px
 * monitor as on a 1280px laptop, because what binds is the cap and the
 * sidebar, not the screen.
 *
 * Its measured minimum, after headings were allowed to wrap, their tracking
 * brought to 0.06em and the banded Revenue/Capital columns released from
 * `nowrap`, is 1,022px. Every one of its ten columns is now at or near its own
 * content floor: the Stage column's 176px is a status pill whose longest word
 * may not be broken (resolve-components.css section 3 is explicit about that),
 * and the rest are sector names, locations and situation phrases. There is no
 * 184px left to find inside the table without shrinking type, which the
 * specification forbids, or dropping a column, which would take information
 * off a screen whose entire purpose is comparing opportunities side by side.
 *
 * So the BOX has to be the thing that changes, and the sidebar is what it has
 * to come from. 1,130px of container interior against a 1,022px table is a
 * comfortable fit with room for the data to breathe.
 *
 * NOTHING IS HIDDEN AND NOTHING IS MOVED OUT OF REACH. The filter panel is the
 * same panel with the same controls in the same order; it becomes a full-width
 * band above the table instead of a column beside it. Its groups are already
 * `<details>` elements, so it collapses to a row of summaries and costs very
 * little height. This is also exactly what the ≤1080px block at the foot of
 * this file has always done to this same layout — the pattern is not new here,
 * it is the existing narrow-viewport arrangement applied to the one view that
 * needs it at every width.
 *
 * `:has()` rather than a class, because the view is chosen by a query argument
 * and Frontend\Marketplace renders both views through the same wrapper markup:
 * there is no class on the layout to key off, and the presence of the table IS
 * the condition. No script, no measurement, and the grid view is untouched
 * because it contains no `.resolve-table--deals`.
 */
.resolve-marketplace__layout:has(.resolve-table--deals) {
	grid-template-columns: minmax(0, 1fr);
}

.resolve-marketplace__layout:has(.resolve-table--deals) .resolve-filters {
	position: static;
	/*
	 * AND BOUNDED IN HEIGHT, FOR THE REASON THE ≤1080px BLOCK GIVES AT LENGTH.
	 *
	 * A stacked filter rail is a rail that sits ABOVE the thing it filters, so
	 * its height is now the distance between the reader and the first row of
	 * results. The Sector group ships `open` and carries every sector and
	 * sub-sector the platform knows, which measured 2,500px of checkboxes on
	 * its own — unbounded, this change would have fixed a sideways scroll by
	 * creating a downward one, and buried the table it was widening.
	 *
	 * These are the same two caps the ≤1080px block already applies to this
	 * same rail when the viewport stacks it, repeated here because the
	 * condition is different: what stacks the rail on this view is the presence
	 * of the table, not the width of the screen. Each group scrolls inside
	 * itself and the rail as a whole is capped, so every filter remains
	 * reachable — nothing is hidden, it is bounded.
	 */
	max-height: 60vh;
	overflow-y: auto;
	margin-block-end: var(--r-space-5);
	padding-inline-end: var(--r-space-2);
	border-block-end: 1px solid var(--r-line);
}

.resolve-marketplace__layout:has(.resolve-table--deals) .resolve-filtergroup__body {
	max-height: 220px;
}

.resolve-filters {
	position: sticky;
	top: var(--r-space-5);
}

.resolve-filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--r-space-4);
}

.resolve-filters__head h3 {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.resolve-filters__clear {
	font-size: 12px;
	color: var(--r-ink-3);
}

.resolve-filtergroup {
	margin-bottom: var(--r-space-2);
	border-bottom: 1px solid var(--r-line);
}

.resolve-filtergroup summary {
	padding: var(--r-space-3) 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.resolve-filtergroup summary::-webkit-details-marker {
	display: none;
}

.resolve-filtergroup summary::after {
	content: "+";
	float: inline-end;
	color: var(--r-ink-4);
}

.resolve-filtergroup[open] summary::after {
	content: "–";
}

.resolve-filtergroup__body {
	display: grid;
	gap: var(--r-space-2);
	padding-bottom: var(--r-space-4);
	max-height: 280px;
	overflow-y: auto;
}

/* .resolve-pagination moved to resolve-components.css. `.is-current` is kept
 * working there alongside the newer `__current` element, because markup this
 * work does not own still emits the older class.
 */

.resolve-upsell {
	margin-top: var(--r-space-7);
	padding: var(--r-space-6);
	border: 1px solid var(--r-line);
	background: var(--r-ground);
}

.resolve-upsell h3 {
	margin-top: 0;
	font-family: var(--r-serif);
	font-size: 22px;
	font-weight: 400;
}

/* .resolve-empty moved to resolve-components.css, where it gains the mark and
 * the next-step slot §7 asks an empty state to carry.
 */

/*
 * The inline empty state — a card that currently holds nothing (§7).
 *
 * It was an italic grey sentence with no mark and no boundary, which read as
 * a caption somebody had forgotten to remove rather than as a statement that
 * the queue is empty. §7 asks for empty states to be real states, and the
 * panel dashboard already argues the point in words: queues are listed "so
 * that empty is visibly different from missing".
 *
 * So: a hollow circle — the same mark the "inactive" status pill carries, so
 * "nothing here" looks the same wherever it appears — a rule above it to show
 * the card's body has a defined extent, and upright rather than italic text,
 * because this is a fact about the account and not an aside.
 *
 * What this CANNOT do from the stylesheet is add the next step. An empty state
 * that says "No access requests yet" should also offer "Browse opportunities",
 * and that sentence has to come from the module. Those callers are outside the
 * files this work owns; Fields/Ui both grew an empty_state() that takes an
 * action, and the modules needing to adopt it are named in the report.
 */
.resolve-empty__inline {
	display: flex;
	align-items: baseline;
	gap: var(--r-space-2);
	margin-block-start: var(--r-space-3);
	padding-block: var(--r-space-4);
	border-block-start: 1px solid var(--r-line);
	color: var(--r-ink-3);
	font-size: 14px;
	font-style: normal;
}

.resolve-empty__inline::before {
	content: "\25CB";
	color: var(--r-ink-4);
	speak: never;
}

/* ============================================================
 * 9. Opportunity and confidential profile
 * ============================================================ */

.resolve-opportunity__head {
	margin-bottom: var(--r-space-6);
	padding-bottom: var(--r-space-5);
	border-bottom: 1px solid var(--r-ink);
}

.resolve-opportunity__ident {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-3);
}

.resolve-opportunity__ref {
	font-family: var(--r-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--r-ink-3);
}

.resolve-opportunity__meta {
	margin: 0;
	color: var(--r-ink-3);
}

.resolve-opportunity__keyfacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin-bottom: var(--r-space-7);
	background: var(--r-line);
	border: 1px solid var(--r-line);
}

/*
 * A KPI tile.
 *
 * The figure, its label, and — where there is one — a qualifier beneath. The
 * three were previously laid out in source order with a flat gap between them,
 * which meant a tile WITH a qualifier was taller than one without, and in a
 * grid row of seven tiles where three had qualifiers the strip came out
 * visibly ragged with the labels at four different heights.
 *
 * `justify-content: space-between` with the note pushed to the end fixes the
 * alignment for the whole row at once: every figure sits on the top edge,
 * every qualifier on the bottom edge, and the label takes the slack. It is
 * the same idea as the card's `margin-block-start: auto` footer, and for the
 * same reason — §7's "inconsistent cards/tables".
 */
.resolve-stat {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-1);
	padding: var(--r-space-4);
	background: var(--r-paper);
	block-size: 100%;
}

.resolve-stat__value {
	font-family: var(--r-serif);
	font-size: 22px;
	line-height: 1.2;
	color: var(--r-ink);
}

.resolve-stat__label {
	font-size: 11px;
	letter-spacing: var(--r-track-eyebrow, 3px);
	text-transform: uppercase;
	color: var(--r-ink-3);
}

/*
 * The qualifier under a figure.
 *
 * Fields::stat() has always accepted a third argument and emitted it as
 * `.resolve-stat__note`, and no rule was ever written for it — so the first
 * caller to use one got body-sized prose inside a KPI tile, which stretched
 * its grid row and left every other tile in the strip with a block of empty
 * space beneath its number. A markup contract with no style is a defect
 * waiting for its first user; this is that rule, and the note is sized and
 * coloured as the aside it is.
 */
.resolve-stat__note {
	margin-block-start: auto;
	padding-block-start: var(--r-space-2);
	font-size: 11px;
	line-height: 1.4;
	color: var(--r-ink-4);
}

.resolve-opportunity__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: var(--r-space-7);
	align-items: start;
}

/*
 * ONE TREATMENT FOR "YOU CANNOT SEE THIS YET" (§7).
 *
 * A single opportunity page showed THREE different objects that all mean the
 * same thing to the reader, and they looked nothing like each other:
 *
 *   .resolve-locked   a centred, dashed box with a "RESTRICTED" mark;
 *   .resolve-callout  a left-bordered white panel;
 *   .resolve-gate     a bare heading and paragraph.
 *
 * On the level-0 opportunity screen, "Extended information" appeared as the
 * dashed box and "Request Confidential Access" as the bordered panel,
 * immediately below it — two adjacent blocks, both saying the reader is not
 * cleared for something, in two visual languages, with two differently-worded
 * buttons ("Complete investor verification" and "Complete investor
 * registration") for one underlying reason. That is the brief's "inconsistent
 * cards", "unclear action placement" and "repeated disclaimers" in one place.
 *
 * All three now take the same shape as Fields::unavailable(): a hairline box
 * with a coloured inline-start rule, left-aligned, actions at the end. The
 * reader learns the shape once.
 *
 * Centring is dropped deliberately. Centred prose is harder to read at any
 * length, and these blocks carry the explanation of why something is closed —
 * which is the text on the page a blocked reader most needs to get through.
 */
.resolve-locked,
.resolve-callout {
	margin-block: var(--r-space-5);
	padding: var(--r-space-5);
	border: 1px solid var(--r-line);
	border-inline-start: 3px solid var(--r-status-stage);
	border-radius: var(--r-radius);
	background: var(--r-paper);
	text-align: start;
}

/*
 * The "RESTRICTED" mark is a status, so it is the status component's shape:
 * same size, same tracking, same square corners, same 1px border in its own
 * colour as every pill on the platform.
 */
.resolve-locked__mark {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-bottom: var(--r-space-3);
	padding: 3px 8px;
	border: 1px solid currentColor;
	border-radius: var(--r-radius);
	font-size: var(--r-type-label, 11px);
	font-weight: 700;
	letter-spacing: var(--r-track-eyebrow, 3px);
	text-transform: uppercase;
	background: var(--r-status-stage-soft);
	color: var(--r-status-stage);
}

/* The same ◆ the "stage" pill carries: this is where the transaction has
   reached, not a judgement about the reader. Shape as well as colour (§7). */
.resolve-locked__mark::before {
	content: "\25C6";
	speak: never;
}

.resolve-locked__title {
	margin: 0 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--r-ink);
}

.resolve-callout h3 {
	margin-top: 0;
	font-family: var(--r-serif);
	font-size: 22px;
	font-weight: 400;
}

/* The approved ground, from the token, not #f4f8f5 — which was a fifth
 * hand-mixed pale green on a platform that has exactly one. */
.resolve-callout--granted {
	border-inline-start-color: var(--r-success);
	background: var(--r-status-approved-soft, #ecf3ef);
}

.resolve-callout--nda {
	border-inline-start-color: var(--r-warning);
}

.resolve-callout__status {
	margin-bottom: 0;
	font-size: 14px;
}

.resolve-callout__note {
	font-size: 12px;
	color: var(--r-ink-4);
}

.resolve-nda__document {
	max-height: 340px;
	margin: var(--r-space-4) 0;
	padding: var(--r-space-5);
	overflow-y: auto;
	border: 1px solid var(--r-line);
	background: var(--r-ground);
	font-size: 14px;
	line-height: 1.7;
}

.resolve-highlights {
	margin: 0;
	padding: 0;
	list-style: none;
}

.resolve-highlights li {
	position: relative;
	/* 1.7.0 (NEW-02): logical, so the marker's room follows it in RTL. */
	padding-block: var(--r-space-2);
	padding-inline: var(--r-space-5) 0;
	border-bottom: 1px solid var(--r-line);
	color: var(--r-ink-2);
}

.resolve-highlights li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 17px;
	width: 10px;
	height: 1px;
	background: var(--r-accent);
}

.resolve-track {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: track;
}

.resolve-track__step {
	position: relative;
	/* 1.7.0 (NEW-02): logical, so the marker's room follows it in RTL. */
	padding-block: var(--r-space-2);
	padding-inline: var(--r-space-5) 0;
	font-size: 13px;
	color: var(--r-ink-4);
}

.resolve-track__step::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 13px;
	width: 8px;
	height: 8px;
	border: 1px solid var(--r-line-strong);
	border-radius: 50%;
	background: var(--r-paper);
}

.resolve-track__step.is-done {
	color: var(--r-ink-3);
}

.resolve-track__step.is-done::before {
	background: var(--r-line-strong);
	border-color: var(--r-line-strong);
}

.resolve-track__step.is-current {
	color: var(--r-ink);
	font-weight: 600;
}

.resolve-track__step.is-current::before {
	background: var(--r-accent);
	border-color: var(--r-accent);
}

.resolve-panel--match .resolve-matchscore {
	font-family: var(--r-serif);
	font-size: 44px;
	line-height: 1;
	color: var(--r-accent);
}

.resolve-matchrows {
	display: grid;
	gap: var(--r-space-2);
	margin-top: var(--r-space-4);
}

.resolve-matchrow {
	display: grid;
	grid-template-columns: 40% 1fr 40px;
	align-items: center;
	gap: var(--r-space-2);
	font-size: 12px;
}

.resolve-matchrow__label {
	color: var(--r-ink-3);
}

.resolve-matchrow__bar {
	height: 4px;
	background: var(--r-ground-2);
}

.resolve-matchrow__bar i {
	display: block;
	height: 100%;
	background: var(--r-accent);
}

.resolve-matchrow__value {
	text-align: end;
	font-variant-numeric: tabular-nums;
	color: var(--r-ink-3);
}

/* --- Confidential profile ---------------------------------- */

.resolve-confidential__watermark {
	position: sticky;
	top: 0;
	z-index: 5;
	margin-bottom: var(--r-space-5);
	padding: var(--r-space-3) var(--r-space-4);
	background: var(--r-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.resolve-confidential__head {
	margin-bottom: var(--r-space-6);
	padding-bottom: var(--r-space-5);
	border-bottom: 1px solid var(--r-ink);
}

.resolve-confidential__meta {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0;
	color: var(--r-ink-3);
	font-size: 14px;
}

.resolve-confidential__toc {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-4);
	margin-bottom: var(--r-space-7);
	padding-bottom: var(--r-space-4);
	border-bottom: 1px solid var(--r-line);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.resolve-confidential__toc a {
	color: var(--r-ink-3);
	text-decoration: none;
}

.resolve-confidential__toc a:hover {
	color: var(--r-accent);
}

.resolve-csection {
	margin-bottom: var(--r-space-8);
	padding-bottom: var(--r-space-6);
	border-bottom: 1px solid var(--r-line);
	scroll-margin-top: 80px;
}

.resolve-csection__title {
	padding-bottom: var(--r-space-3);
	border-bottom: 1px solid var(--r-ink);
	font-size: 24px;
}

.resolve-csection__note {
	max-width: 72ch;
	color: var(--r-ink-3);
	font-size: 14px;
}

/* ============================================================
 * 10. Dashboards
 * ============================================================ */

.resolve-dash__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--r-space-4);
	margin-bottom: var(--r-space-6);
	padding-bottom: var(--r-space-5);
	border-bottom: 1px solid var(--r-ink);
}

.resolve-dash__ref {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	margin: 0;
	font-family: var(--r-mono);
	font-size: 13px;
	color: var(--r-ink-3);
}

/* 1.10.0 — the opportunity selector is labelled visibly: the dashboard is the
 * company's, and the selector chooses which opportunity is being worked on. */
.resolve-dash__switch-label {
	display: block;
	margin-block-end: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--resolve-muted, #5b5b6b);
}

.resolve-dash__case {
	margin: 0 0 var(--r-space-2, 6px);
	font-size: 15px;
}

.resolve-dash__case-label {
	font-weight: 600;
}

/*
 * The account actions row — Profile, Change password, Sign out.
 *
 * `flex-wrap: wrap` because at 390px the three buttons measure 393px inside a
 * 390px viewport, and a flex row that does not wrap does not shrink either: it
 * simply overhangs. The last child is Sign out, so the effect was that the one
 * control a reader most needs to be able to reach was 35px off the right edge
 * of the screen, reachable only by scrolling the page sideways.
 */
.resolve-dash__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-3);
}

/*
 * The KPI strip.
 *
 * The separators used to be faked: a 1px grid gap over a `--r-line` background,
 * so the gaps showed the container through. That works only while the tiles
 * fill every cell. The investor dashboard has SEVEN tiles, which at 390px lays
 * out in two columns and leaves the eighth cell empty — and the empty cell
 * rendered as a solid grey block, which reads as a tile that failed to load.
 *
 * Real borders on the tiles fixed the grey block. What they did not fix was
 * the hole itself, and the note that used to stand here — "an empty cell is
 * now just the page" — was true only of a cell with nothing on any side of it.
 * `repeat(auto-fit, minmax(150px, 1fr))` resolves to SIX columns at 1366px,
 * and seven tiles into six columns leaves the seventh alone on a second row
 * with 855px of empty track beside it: that track carried the container's
 * inline-start border down one tile's height and stopped, with no border
 * along its foot, so the strip ended in an L-shaped fragment of rule that
 * reads as a table that failed to finish drawing. Eight tiles on the company
 * dashboard do the same thing at any width that is not a divisor of eight.
 *
 * Flex rather than grid, because the fault is structural: a grid keeps its
 * tracks whether or not anything is in them, and no stylesheet can know how
 * many tiles a dashboard will emit. A wrapped flex line has no empty tail at
 * all — the tiles on the last row take the width the missing ones would have
 * had — so the strip closes as a rectangle at every width and every count.
 * `1 1 150px` is the `minmax(150px, 1fr)` this replaces: the same minimum, and
 * the same equal share of what is left over.
 */
.resolve-dash__stats {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: var(--r-space-6);
	background: var(--r-paper);
	border-block-start: 1px solid var(--r-line);
	border-inline-start: 1px solid var(--r-line);
}

.resolve-dash__stats > .resolve-stat {
	flex: 1 1 150px;
	/* Without this a long figure or a two-line note sets the tile's floor at
	 * its own content width and the row stops wrapping evenly. */
	min-inline-size: 0;
	/*
	 * `.resolve-stat` carries `block-size: 100%`, which is what made every
	 * tile the height of its row while this was a grid — a percentage against
	 * a grid area, which is a definite size. A flex container's height is
	 * NOT definite, so the same declaration resolves to the tile's own
	 * content and, being a stated size rather than `auto`, it also switches
	 * off the stretch that would have equalised them: one tile with a
	 * two-line note left the row ragged, with the rules between the tiles at
	 * four different heights. `auto` hands the tile back to `align-items:
	 * stretch`, which is the equal-height behaviour the grid had.
	 */
	block-size: auto;
	border-block-end: 1px solid var(--r-line);
	border-inline-end: 1px solid var(--r-line);
}

/*
 * The dashboard's two columns.
 *
 * This is `repeat(2, …)` and not an auto-fit of cards, because the markup is
 * not a flat list of cards: the dashboard module emits exactly two
 * `.resolve-dash__col` wrappers and stacks its cards inside them. An
 * `auto-fit` here counts the two WRAPPERS, not the five cards, and an earlier
 * attempt at `minmax(320px, 1fr)` duly produced a phantom third track of 0px.
 *
 * That markup is also why the investor dashboard's five cards lay out 2-2-1
 * with a card-sized hole at the bottom of a wide screen: which column a card
 * belongs to is decided in PHP, so no stylesheet can rebalance them. The
 * module owning that decision is outside the files this work owns and is named
 * in the report.
 *
 * `align-items: start` lets each column be its own height rather than both
 * stretching to the taller one, which is what stops the shorter column's last
 * card from being padded out with empty space.
 */
.resolve-dash__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: var(--r-space-5);
	align-items: start;
}

.resolve-dash__section {
	margin-bottom: var(--r-space-7);
}

.resolve-progress {
	margin-bottom: var(--r-space-6);
	padding: var(--r-space-5);
	border: 1px solid var(--r-line);
	background: var(--r-paper);
}

.resolve-progress__bar {
	height: 3px;
	margin-bottom: var(--r-space-5);
	background: var(--r-ground-2);
}

.resolve-progress__bar i {
	display: block;
	height: 100%;
	background: var(--r-accent);
	transition: width 0.4s ease;
}

.resolve-progress__steps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.resolve-progress__step {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	font-size: 12px;
	color: var(--r-ink-4);
}

.resolve-progress__dot {
	width: 8px;
	height: 8px;
	border: 1px solid var(--r-line-strong);
	border-radius: 50%;
}

.resolve-progress__step.is-done .resolve-progress__dot {
	background: var(--r-line-strong);
}

.resolve-progress__step.is-current {
	color: var(--r-accent);
	font-weight: 600;
}

.resolve-progress__step.is-current .resolve-progress__dot {
	background: var(--r-accent);
	border-color: var(--r-accent);
}

.resolve-progress__caption {
	margin: var(--r-space-4) 0 0;
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-timeline {
	margin: 0;
	padding: 0;
	list-style: none;
}

.resolve-timeline__item {
	display: grid;
	gap: var(--r-space-1);
	padding: var(--r-space-3) 0;
	border-bottom: 1px solid var(--r-line);
}

.resolve-timeline__time {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-4);
}

.resolve-timeline__status {
	font-weight: 600;
	font-size: 14px;
}

.resolve-timeline__note {
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-doclist {
	margin: 0 0 var(--r-space-5);
	padding: 0;
	list-style: none;
}

.resolve-doclist__item {
	display: grid;
	gap: 2px;
	padding: var(--r-space-3) 0;
	border-bottom: 1px solid var(--r-line);
}

.resolve-doclist__name {
	font-size: 14px;
	font-weight: 500;
}

.resolve-doclist__meta {
	font-size: 12px;
	color: var(--r-ink-4);
}

.resolve-notifications {
	margin: 0;
	padding: 0;
	list-style: none;
}

.resolve-notifications__item {
	border-bottom: 1px solid var(--r-line);
}

.resolve-notifications__item a {
	display: grid;
	gap: 2px;
	padding: var(--r-space-3) 0;
	color: inherit;
	text-decoration: none;
}

.resolve-notifications__item.is-unread {
	border-inline-start: 2px solid var(--r-accent);
	padding-inline-start: var(--r-space-3);
}

.resolve-notifications__subject {
	font-weight: 600;
	font-size: 14px;
}

.resolve-notifications__body {
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-notifications__time {
	font-size: 11px;
	color: var(--r-ink-4);
}

.resolve-gate {
	max-width: 640px;
	margin: var(--r-space-8) auto;
	padding: var(--r-space-7);
	border: 1px solid var(--r-line);
	background: var(--r-paper);
	text-align: center;
}

.resolve-gate--intake {
	text-align: start;
}

.resolve-gate__body {
	color: var(--r-ink-3);
}

/* ============================================================
 * 11. Data room
 * ============================================================ */

.resolve-vdr__head {
	margin-bottom: var(--r-space-5);
	padding-bottom: var(--r-space-4);
	border-bottom: 1px solid var(--r-ink);
}

.resolve-vdr__meta {
	margin: 0;
	color: var(--r-ink-3);
	font-size: 14px;
}

.resolve-vdr__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: var(--r-space-6);
	align-items: start;
}

.resolve-vdr__index {
	position: sticky;
	top: var(--r-space-5);
	display: grid;
	border: 1px solid var(--r-line);
	background: var(--r-paper);
}

.resolve-vdr__indexitem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
	padding: var(--r-space-3) var(--r-space-4);
	border-bottom: 1px solid var(--r-line);
	font-size: 13px;
	color: var(--r-ink-2);
	text-decoration: none;
}

.resolve-vdr__indexitem:last-child {
	border-bottom: 0;
}

.resolve-vdr__indexitem:hover {
	background: var(--r-ground);
}

.resolve-vdr__indexitem.is-empty {
	color: var(--r-ink-4);
}

.resolve-vdr__count {
	font-family: var(--r-mono);
	font-size: 11px;
	color: var(--r-ink-4);
}

.resolve-vdr__section {
	margin-bottom: var(--r-space-7);
	scroll-margin-top: 20px;
}

.resolve-vdr__sectiontitle {
	margin: 0 0 var(--r-space-3);
	padding-bottom: var(--r-space-2);
	border-bottom: 1px solid var(--r-ink);
	font-family: var(--r-serif);
	font-size: 18px;
	font-weight: 400;
}

.resolve-doc__name {
	display: block;
	font-weight: 500;
}

.resolve-doc__desc {
	display: block;
	font-size: 12px;
	color: var(--r-ink-4);
}

/*
 * VIEW AND DOWNLOAD MAY SIT ON TWO LINES.
 *
 * This was a nowrap flex row, which made the pair of controls the widest thing
 * in the data room's document table: 220px in a 732px box across six columns,
 * against a table that needed 694px and had 686px. The column that could not
 * wrap was the one holding two independent buttons, each of which is perfectly
 * legible on its own line.
 *
 * `flex-wrap: wrap` rather than `white-space: normal`: the labels themselves
 * still must not break — "Down" over "load" is not a control anybody trusts —
 * so the wrap is allowed BETWEEN the buttons and forbidden inside them. That is
 * the distinction the nowrap was reaching for and got one level too high.
 *
 * The buttons keep their own min-height, so a wrapped pair is two full-size
 * targets rather than two cramped ones.
 */
.resolve-doc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
}

.resolve-doc__actions > * {
	white-space: nowrap;
}

.resolve-doc__viewonly {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-4);
}

/* ============================================================
 * 12. Messaging
 * ============================================================ */

.resolve-messages__layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: var(--r-space-5);
	align-items: start;
}

.resolve-messages__list {
	border: 1px solid var(--r-line);
	background: var(--r-paper);
}

.resolve-messages__thread {
	display: grid;
	gap: 2px;
	padding: var(--r-space-3) var(--r-space-4);
	border-bottom: 1px solid var(--r-line);
	color: inherit;
	text-decoration: none;
}

.resolve-messages__thread.is-active {
	background: var(--r-accent-soft);
	border-inline-start: 2px solid var(--r-accent);
}

.resolve-messages__subject {
	font-size: 14px;
	font-weight: 500;
}

.resolve-messages__time {
	font-size: 11px;
	color: var(--r-ink-4);
}

.resolve-thread {
	padding: var(--r-space-5);
	border: 1px solid var(--r-line);
	background: var(--r-paper);
}

.resolve-thread__title {
	margin-top: 0;
	font-family: var(--r-serif);
	font-size: 20px;
	font-weight: 400;
}

.resolve-thread__stream {
	display: grid;
	gap: var(--r-space-4);
	margin-bottom: var(--r-space-5);
	padding-bottom: var(--r-space-5);
	border-bottom: 1px solid var(--r-line);
}

.resolve-message {
	padding: var(--r-space-4);
	border: 1px solid var(--r-line);
	background: var(--r-ground);
}

.resolve-message.is-own {
	background: var(--r-accent-soft);
	border-color: var(--r-accent-soft);
}

/*
 * AN INTERNAL NOTE IS WITHHELD CORRESPONDENCE, SO IT TAKES THE RESTRICTED PAIR.
 *
 * This was `#f8f4ec` on `#e6dcc6` — two warm literals with no token behind
 * either, and the only warm ground on the platform, which is why they were
 * chosen: an internal note has to be unmistakable at a glance, because it is
 * the one message in a thread that the counterparty was never shown.
 *
 * 1.6.0 gave that exact idea a token pair. --resolve-status-restricted is the
 * platform's colour for "withheld, deliberately" — the contact-release state
 * where details exist and are not being disclosed — which is what an internal
 * note is. So the ground is now the token and the warmth is kept on purpose
 * rather than by accident, and the colour editor reaches it.
 *
 * The BORDER genuinely needed a new value and does not have one: the palette
 * has no warm line token, and --resolve-status-restricted at full strength
 * (#6a5540) is an ink, far too heavy for a 1px edge. #e6dcc6 is therefore still
 * the value, but it is now named, and declaring --resolve-line-warm in
 * resolve-tokens.css is all that is needed to finish it.
 */
.resolve-message.is-internal {
	background: var(--r-status-restricted-soft, #f1ece6);
	border-color: var(--resolve-line-warm, #e6dcc6);
}

.resolve-message__head {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-2);
	font-size: 12px;
}

.resolve-message__sender {
	font-weight: 600;
}

.resolve-message__time {
	color: var(--r-ink-4);
}

.resolve-message__body p:last-child {
	margin-bottom: 0;
}

/* ============================================================
 * 13. Editorial
 * ============================================================ */

.resolve-hero {
	padding: var(--r-space-9) var(--r-space-5);
	background: var(--r-ink);
	color: #fff;
}

.resolve-hero__inner {
	max-width: var(--r-maxw);
	margin-inline: auto;
}

.resolve-hero__descriptor {
	margin: 0 0 var(--r-space-5);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.resolve-hero__title {
	max-width: 20ch;
	margin: 0 0 var(--r-space-5);
	font-family: var(--r-serif);
	font-size: clamp(38px, 6vw, 76px);
	font-weight: 400;
	line-height: 1.03;
	letter-spacing: -0.02em;
}

.resolve-hero__title span {
	display: block;
}

/*
 * The second line of the LEGACY two-line headline, set back.
 *
 * Scoped to the legacy hero at 1.6.1. The configured hero wraps its single
 * operator-written headline in a span for dir="auto", which made that span
 * `:last-child` and dimmed every configured headline to 66% white — a styling
 * rule written for a two-line composition silently reaching a one-line one.
 */
.resolve-hero:not(.resolve-hero--slider) .resolve-hero__title span:last-child {
	color: rgba(255, 255, 255, 0.66);
}

.resolve-hero__sub {
	max-width: 60ch;
	margin: 0 0 var(--r-space-4);
	font-size: 18px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
}

.resolve-hero__arabic {
	margin: 0 0 var(--r-space-6);
	font-size: 20px;
	color: rgba(255, 255, 255, 0.62);
}

.resolve-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-3);
}

.resolve-hero .resolve-btn--outline {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.resolve-hero .resolve-btn--outline:hover {
	background: #fff;
	color: var(--r-ink);
}

/* ------------------------------------------------------------
 * 13a. The configured hero / landing slider (1.6.1)
 *
 * STRUCTURE HERE, BRAND IN THE THEME.
 *
 * These rules make the hero work: the track scrolls and snaps, the slides
 * fill a viewport, the text is legible on the ground, the controls are
 * reachable and visibly focused. They are deliberately plain. The brand's
 * own treatment of the same elements — the decorative figures, the type
 * scale, the glow — lives in the Institutional theme's stylesheet, so a site
 * running this plugin under some other theme gets a hero that works and
 * looks like nothing in particular, which is the correct outcome.
 *
 * NO JAVASCRIPT IS REQUIRED BY ANY RULE BELOW. The track is a scroll
 * container; the dots are in-page anchors; `scroll-snap` does the rest. The
 * script adds auto-rotation and the `aria-current` state and nothing else.
 * ------------------------------------------------------------ */

.resolve-hero--slider {
	position: relative;
	padding: 0;
	/*
	 * The negative inline margin and matching padding are what let a slide
	 * bleed to the window edge inside a theme that has already constrained
	 * the content column. Without them the hero is a letterbox in the middle
	 * of the page, which is not a first viewport.
	 */
	overflow: hidden;
}

.resolve-hero__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	/*
	 * The scrollbar is hidden because the dots and the arrows are the
	 * control, and a horizontal bar across the bottom of a full-bleed hero
	 * reads as a rendering fault. Hiding it does not remove the ability to
	 * scroll: touch, trackpad, keyboard and the anchors all still work.
	 */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.resolve-hero__track::-webkit-scrollbar {
	display: none;
}

.resolve-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	min-height: min(72vh, 680px);
	padding: var(--r-space-8) var(--r-space-5);
	overflow: hidden;
}

.resolve-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--r-maxw);
	margin-inline: auto;
	width: 100%;
}

.resolve-hero__inner--centre {
	text-align: center;
}

.resolve-hero__inner--centre .resolve-hero__title,
.resolve-hero__inner--centre .resolve-hero__sub {
	margin-inline: auto;
}

.resolve-hero__inner--centre .resolve-hero__actions {
	justify-content: center;
}

.resolve-hero__eyebrow {
	margin: 0 0 var(--r-space-4);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

/*
 * The decorative layer, and the one rule that matters about it.
 *
 * It is behind the text (z-index 1 against the content's 2) and it is
 * `pointer-events: none`, so nothing in it can ever intercept a click meant
 * for a call to action. A decorative layer that swallows the primary button
 * is the classic hero defect and it is one line to prevent.
 */
.resolve-hero__canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.resolve-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/*
	 * Dimmed, always. An operator can upload any photograph, and a headline
	 * in white over an unknown image is a contrast failure waiting for the
	 * first light photograph. This is not a style choice, it is what keeps
	 * the text readable over a picture nobody has checked.
	 */
	opacity: 0.32;
}

/*
 * The brand mark, used as a background.
 *
 * `height: auto` with a max on both axes is the whole of the sizing: the
 * artwork keeps its own proportions at every viewport, and there is no rule
 * anywhere in this file that rotates, skews or stretches it. The opacity is
 * written inline from the operator's setting.
 */
.resolve-hero__mark {
	position: absolute;
	/*
	 * 1.12.0 (Workstream H): inside the viewport, never past it. The artwork
	 * is asymmetric — rays at one end, the horizon running to its point at the
	 * other — and the old -4% offset cut a different part off in each
	 * direction: the horizon's end point in English, the outer rays in Arabic.
	 * The same inset on the logical end keeps the whole mark visible in both.
	 */
	inset-inline-end: clamp(16px, 3vw, 48px);
	top: 50%;
	transform: translateY(-50%);
	/*
	 * ONE axis is given a value and the other is `auto`, which is the whole of
	 * the sizing contract for this artwork: the two always scale together, so
	 * there is no viewport at which the mark can be squashed or stretched.
	 *
	 * A width proportional to the viewport rather than `max-width` alone,
	 * because `max-width` left the artwork at its natural 900px on every
	 * screen — a small graphic at 1920 and an oversized one at 1280.
	 */
	width: min(640px, 46%);
	height: auto;
}

.resolve-hero__figure {
	position: absolute;
	inset: 0;
	display: block;
}

/*
 * The Arabic concept line, inside the text column.
 *
 * It has no width of its own, so in the slider — whose inner is the full
 * content width rather than the narrow editorial column the legacy hero used —
 * an RTL paragraph aligned to its own direction ended up on the far side of
 * the viewport, underneath the brand mark. It belongs under the supporting
 * text it was written to sit beneath, so it takes that column's measure.
 */
.resolve-hero--slider .resolve-hero__arabic {
	max-width: 54ch;
	margin-block: var(--r-space-3) var(--r-space-4);
}

.resolve-hero__controls {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: var(--r-space-4);
	flex-wrap: wrap;
	max-width: var(--r-maxw);
	margin-inline: auto;
	padding: var(--r-space-4) var(--r-space-5) var(--r-space-5);
}

.resolve-hero__count {
	margin: 0;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.62);
}

.resolve-hero__dots {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * A dot is a 10px mark inside a 44px target.
 *
 * The visible dot is what a reader sees; the padding is what their thumb
 * hits. A 10px tap target is the single most common failure of a slider on a
 * phone, and it is corrected by padding rather than by making the dot
 * bigger, so the control stays discreet and is still reachable.
 */
.resolve-hero__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	text-decoration: none;
}

.resolve-hero__dot::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.resolve-hero__dot[aria-current="true"]::before,
.resolve-hero__dot:hover::before {
	background: #fff;
	border-color: #fff;
}

/* The label is for screen readers; the dot is for everybody else. */
.resolve-hero__dot-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.resolve-hero__pause:empty {
	display: none;
}

.resolve-hero__pausebtn {
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--r-radius, 0);
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.resolve-hero__pausebtn:hover {
	background: rgba(255, 255, 255, 0.12);
}

/*
 * Focus is visible on the ground the hero actually has.
 *
 * The platform's focus ring is designed for a light surface. On the hero's
 * dark ground it is barely there, so the ring is restated here in white with
 * an offset — the same shape, a colour that can be seen on black.
 */
.resolve-hero--dark :focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---- The light treatment ---- */

.resolve-hero--light {
	background: var(--r-paper, #fff);
	color: var(--r-ink, #181818);
}

.resolve-hero--light .resolve-hero__eyebrow,
.resolve-hero--light .resolve-hero__sub,
.resolve-hero--light .resolve-hero__count {
	color: var(--r-ink-3, #515b68);
}

.resolve-hero--light .resolve-hero__title span:last-child {
	color: var(--r-ink-3, #515b68);
}

.resolve-hero--light .resolve-hero__dot::before {
	border-color: rgba(24, 24, 24, 0.45);
}

.resolve-hero--light .resolve-hero__dot[aria-current="true"]::before,
.resolve-hero--light .resolve-hero__dot:hover::before {
	background: var(--r-ink, #181818);
	border-color: var(--r-ink, #181818);
}

.resolve-hero--light .resolve-hero__pausebtn {
	border-color: rgba(24, 24, 24, 0.3);
	color: var(--r-ink, #181818);
}

.resolve-hero--light .resolve-hero__photo {
	opacity: 0.18;
}

/* ---- Small screens ---- */

/*
 * The mobile hero is a different composition, not a smaller desktop one.
 *
 * §13A.7 asks for exactly that. The mark moves from beside the text to behind
 * it and loses most of its opacity, because a 62%-wide mark next to a
 * 390px-wide column leaves no column; the slide gets its height from its
 * content rather than from the viewport, because a 72vh minimum with a
 * three-line Arabic headline and two stacked buttons overflows; and the
 * actions go full width, because two uppercase buttons side by side at 390px
 * wrap mid-word.
 */
@media (max-width: 720px) {
	.resolve-hero__slide {
		min-height: 0;
		padding: var(--r-space-7) var(--r-space-4);
	}

	.resolve-hero__mark {
		inset-inline-end: auto;
		inset-inline-start: 50%;
		transform: translate(-50%, -50%);
		width: 150%;
	}

	[dir="rtl"] .resolve-hero__mark {
		transform: translate(50%, -50%);
	}

	.resolve-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.resolve-hero__actions .resolve-btn {
		justify-content: center;
	}

	.resolve-hero__controls {
		padding-inline: var(--r-space-4);
	}
}

/*
 * Reduced motion — §13A.6, and more than the usual gesture.
 *
 * Smooth scrolling is what the dots use to move between slides, and it is
 * motion a reader may have asked not to have, so it becomes an instant jump.
 * The script asks the same question before it starts any rotation at all, so
 * a reader with this preference never sees the hero move by itself whatever
 * the operator has configured.
 */
@media (prefers-reduced-motion: reduce) {
	.resolve-hero__track {
		scroll-behavior: auto;
	}

	.resolve-hero__dot::before {
		transition: none;
	}
}

.resolve-editorial {
	padding-block: var(--r-space-8);
}

.resolve-stages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--r-space-6);
	margin: 0 0 var(--r-space-8);
	padding: 0;
	list-style: none;
}

.resolve-stages__item {
	padding-top: var(--r-space-4);
	border-top: 1px solid var(--r-ink);
}

.resolve-stages__number {
	display: block;
	margin-bottom: var(--r-space-3);
	font-family: var(--r-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--r-accent);
}

.resolve-stages__title {
	margin: 0 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: 22px;
	font-weight: 400;
}

.resolve-stages__body {
	margin: 0;
	color: var(--r-ink-3);
	font-size: 15px;
}

.resolve-points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--r-space-6);
	margin-bottom: var(--r-space-8);
}

.resolve-points__title {
	margin: 0 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: 20px;
	font-weight: 400;
}

.resolve-points__body {
	margin: 0;
	color: var(--r-ink-3);
}

.resolve-cta {
	padding: var(--r-space-7);
	border: 1px solid var(--r-ink);
	background: var(--r-ground);
	text-align: center;
}

.resolve-cta h2 {
	margin-top: 0;
	font-family: var(--r-serif);
	font-size: 28px;
	font-weight: 400;
}

.resolve-ladder {
	margin-bottom: var(--r-space-8);
}

.resolve-legaldocs {
	display: grid;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-7);
}

.resolve-legaldoc {
	border: 1px solid var(--r-line);
	background: var(--r-paper);
}

.resolve-legaldoc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-3);
	padding: var(--r-space-4);
	cursor: pointer;
	list-style: none;
}

.resolve-legaldoc summary::-webkit-details-marker {
	display: none;
}

.resolve-legaldoc__title {
	font-family: var(--r-serif);
	font-size: 18px;
}

.resolve-legaldoc__status {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--r-warning);
}

.resolve-legaldoc__body {
	padding: 0 var(--r-space-4) var(--r-space-4);
	border-top: 1px solid var(--r-line);
}

.resolve-legaldoc__purpose {
	color: var(--r-ink-3);
}

.resolve-legaldoc__body h4 {
	margin-bottom: var(--r-space-2);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r-ink-4);
}

.resolve-disclaimer {
	margin-top: var(--r-space-7);
	padding-top: var(--r-space-5);
	border-top: 1px solid var(--r-line);
}

.resolve-disclaimer__item {
	margin: 0 0 var(--r-space-2);
	font-size: 12px;
	line-height: 1.65;
	color: var(--r-ink-4);
}

.resolve-footer-legal {
	max-width: var(--r-maxw);
	margin: 0 auto;
	padding: 0 var(--r-space-5) var(--r-space-6);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
 * 14. Responsive
 *
 * Desktop is the priority — institutional investors work on large screens
 * and the deal table is designed for one. But the tablet and phone
 * experiences are real interfaces, not a squeeze: below 700px every deal
 * table becomes a stack of labelled rows using the data-label attributes,
 * which keeps a ten-column financial table readable on a phone.
 * ============================================================ */

@media (max-width: 1080px) {
	.resolve-opportunity__body,
	.resolve-marketplace__layout,
	.resolve-vdr__layout,
	.resolve-messages__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.resolve-filters,
	.resolve-vdr__index {
		position: static;
	}

	/*
	 * THE FILTER RAIL MUST NOT BURY THE RESULTS (§7, "poor responsive
	 * behaviour").
	 *
	 * This rule used to say `max-height: none`, on the reasoning that a
	 * stacked rail has the room to show everything. Measured in a browser at
	 * 390px, the consequence was that /opportunities/ rendered 7,071px tall and
	 * the reader had to scroll past roughly 2,500px of sector and sub-sector
	 * checkboxes — every one of them, expanded — before reaching the first
	 * opportunity. The Sector group ships `open`, and removing the cap let it
	 * expand to its full height above the content it filters.
	 *
	 * The cap is kept instead, and tightened: each group scrolls inside itself,
	 * so the rail has a bounded height whatever is open inside it. The rail as
	 * a whole is capped too, for the case where several groups are open at
	 * once.
	 *
	 * resolve-platform.js additionally collapses the open group at these
	 * widths, so with scripting the rail starts compact; this is the floor it
	 * cannot go below WITHOUT scripting, which is the case that has to work.
	 */
	.resolve-filtergroup__body {
		max-height: 220px;
	}

	.resolve-filters {
		max-height: 60vh;
		overflow-y: auto;
		margin-block-end: var(--r-space-5);
		padding-inline-end: var(--r-space-2);
		border-block-end: 1px solid var(--r-line);
	}

	.resolve-data--two {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {
	.resolve-marketplace,
	.resolve-opportunity,
	.resolve-dash,
	.resolve-intake,
	.resolve-confidential,
	.resolve-vdr,
	.resolve-messages,
	.resolve-editorial,
	.resolve-account {
		padding-inline: var(--r-space-4);
	}

	.resolve-step {
		padding: var(--r-space-4);
	}

	.resolve-step__fields,
	.resolve-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.resolve-dash__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * THE STACKED CARD LAYOUT NOW STARTS AT 1080px, NOT 700px.
 *
 * These rules are unchanged; only the breakpoint has moved, and it has moved to
 * a width the file already treats as the point where this page stops being a
 * two-column desktop layout — the ≤1080px block above turns
 * `.resolve-marketplace__layout` and `.resolve-vdr__layout` into single columns
 * and unsticks their rails. Between 1080px and 700px the tables were left as
 * tables in a box that had just lost its sidebar's worth of context but not
 * gained enough width to hold ten columns, and that is the band where they
 * scrolled hardest: measured at 768px, the deals table needed 1,272px in a
 * 686px box and the data room's documents table 694px in 686px.
 *
 * A horizontal scrollbar was never the intended answer at these widths — this
 * layout has existed since the first release and every `.resolve-table--deals`
 * cell has carried the `data-label` it needs. What it lacked was reach.
 * Raising the breakpoint is therefore not a new pattern; it is the pattern
 * already built being applied over the range it was always the right answer
 * for. Both tables now emit `data-label` on every cell — Marketplace always
 * did, and DataRoom and AdviserTransaction now do, which is what makes
 * `--documents` safe to stack at all (until they did, this block rendered a row
 * of empty `::before` labels).
 *
 * Above 1080px both tables stay tables, which is what they should be on a
 * desktop: `.resolve-marketplace__layout:has(.resolve-table--deals)` gives the
 * deals table the full 1,130px container and it fits as a table there.
 */
@media (max-width: 1080px) {
	.resolve-table--deals thead,
	.resolve-table--documents thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.resolve-table--deals tr,
	.resolve-table--documents tr {
		display: block;
		margin-bottom: var(--r-space-4);
		padding: var(--r-space-4);
		border: 1px solid var(--r-line);
		background: var(--r-paper);
	}

	.resolve-table--deals td,
	.resolve-table--documents td {
		display: grid;
		grid-template-columns: 40% 1fr;
		gap: var(--r-space-3);
		padding: var(--r-space-2) 0;
		border-bottom: 1px solid var(--r-line);
	}

	.resolve-table--deals td::before,
	.resolve-table--documents td::before {
		content: attr(data-label);
		font-size: 11px;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--r-ink-4);
	}

	.resolve-table--deals td:last-child,
	.resolve-table--documents td:last-child {
		border-bottom: 0;
	}

	/*
	 * Scoped to the two stacked tables rather than left global. In a stacked
	 * card the value sits in the right-hand cell of a two-column grid beside
	 * its label, so ending it against the far edge reads as a gap rather than
	 * as alignment — there is no column of figures left to align with. Any
	 * OTHER table in this width band is still a table and keeps its numeric
	 * columns aligned to the end, which the unscoped rule at ≤700px used to
	 * take away from it.
	 */
	.resolve-table--deals .resolve-table__num,
	.resolve-table--documents .resolve-table__num {
		text-align: start;
	}
}

@media (max-width: 700px) {
	.resolve-table__num {
		text-align: start;
	}

	.resolve-confidential__watermark {
		font-size: 10px;
		letter-spacing: 0.04em;
	}

	.resolve-steps {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: var(--r-space-3);
	}

	.resolve-steps__item {
		flex: 0 0 auto;
	}
}

/* ============================================================
 * 15. Arabic / RTL typography
 *
 * RTL is not a mirrored LTR layout. Arabic needs a larger optical size for
 * the same perceived weight, more line height for its ascenders and
 * descenders, no uppercase transforms (Arabic has no case), and looser
 * letter-spacing rules — tracking that flatters Latin small caps damages
 * Arabic letterforms. Logical properties handle the direction; this block
 * handles the typography.
 * ============================================================ */

[dir="rtl"] .resolve-platform,
[dir="rtl"] .resolve-marketplace,
[dir="rtl"] .resolve-opportunity,
[dir="rtl"] .resolve-dash,
[dir="rtl"] .resolve-intake,
[dir="rtl"] .resolve-confidential,
[dir="rtl"] .resolve-vdr,
[dir="rtl"] .resolve-messages,
[dir="rtl"] .resolve-editorial,
.resolve-rtl {
	/* The Arabic stacks live in resolve-tokens.css under [dir="rtl"]; these are
	 * the same aliases as above, repeated here only so this selector still wins
	 * for `.resolve-rtl`, which is a body class rather than a direction. */
	--r-serif: var(--resolve-serif, "Amiri", "Noto Naskh Arabic", "Times New Roman", serif);
	--r-sans: var(--resolve-sans, "Noto Sans Arabic", "Dubai", "Tahoma", -apple-system, sans-serif);
	font-size: 17px;
	line-height: 1.85;
}

[dir="rtl"] .resolve-eyebrow,
[dir="rtl"] .resolve-btn,
[dir="rtl"] .resolve-pill,
[dir="rtl"] .resolve-table thead th,
[dir="rtl"] .resolve-card__data dt,
[dir="rtl"] .resolve-stat__label,
[dir="rtl"] .resolve-step__number,
[dir="rtl"] .resolve-confidential__toc,
[dir="rtl"] .resolve-hero__descriptor,
[dir="rtl"] .resolve-subsection h3 {
	letter-spacing: 0;
	text-transform: none;
	font-size: 13px;
}

[dir="rtl"] .resolve-hero__title {
	line-height: 1.35;
	letter-spacing: 0;
}

[dir="rtl"] .resolve-card__title,
[dir="rtl"] .resolve-opportunity__title,
[dir="rtl"] .resolve-confidential__title,
[dir="rtl"] .resolve-step__title {
	line-height: 1.4;
	letter-spacing: 0;
}

/* References, amounts and dates stay LTR inside RTL text. */
[dir="rtl"] .resolve-card__ref,
[dir="rtl"] .resolve-opportunity__ref,
[dir="rtl"] .resolve-table__ref,
[dir="rtl"] .resolve-table__num,
[dir="rtl"] .resolve-vdr__count {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
}

[dir="rtl"] .resolve-filtergroup summary::after {
	float: inline-start;
}

/* ============================================================
 * 16. Print and reduced motion
 * ============================================================ */

@media print {
	.resolve-btn,
	.resolve-filters,
	.resolve-marketplace__views,
	.resolve-pagination,
	.resolve-thread__compose {
		display: none !important;
	}

	.resolve-confidential__watermark {
		position: static;
		background: none;
		border: 1px solid #000;
		color: #000;
	}

	.resolve-csection {
		break-inside: avoid;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ============================================================
 * 17. Verified-profile locks and change requests
 *
 * Appended for the profile change request workflow. A locked field is
 * presented as a fact with an explanation, not as a greyed-out input:
 * the investor is not being denied a control, they are being told what
 * the platform has already asserted about them on their behalf.
 * ============================================================ */

.resolve-field--locked {
	padding: var(--r-space-3) var(--r-space-4);
	border: 1px solid var(--r-line);
	/*
	 * Logical, not `border-left`. This accent bar marks the START of a locked
	 * field, and in Arabic the start of a field is its right-hand edge — the
	 * physical version put the marker on the trailing edge of every locked
	 * field on the account screen, where it reads as an unexplained rule rather
	 * than as an emphasis. One of the four physical direction declarations in
	 * the whole stylesheet; see assets/css/resolve-rtl.css.
	 */
	border-inline-start: 3px solid var(--r-gold);
	background: var(--r-ground);
}

.resolve-locked__value {
	margin: var(--r-space-1) 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: 1.0625rem;
	color: var(--r-ink);
}

.resolve-locked__why {
	margin: 0 0 var(--r-space-2);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--r-ink-3);
}

.resolve-locked__action {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--r-accent);
}

.resolve-locked__pending {
	display: inline-block;
	font-size: 0.8125rem;
	color: var(--r-warning);
}

.resolve-lockbox {
	margin: var(--r-space-7) 0 0;
	padding: var(--r-space-5);
	border: 1px solid var(--r-line);
	background: var(--r-paper);
}

.resolve-lockbox__title {
	margin: 0 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: 1.375rem;
	color: var(--r-ink);
}

.resolve-lockbox__subtitle {
	margin: var(--r-space-6) 0 var(--r-space-3);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r-ink-2);
}

.resolve-lockbox__intro,
.resolve-lockbox__empty {
	margin: 0 0 var(--r-space-4);
	color: var(--r-ink-3);
}

.resolve-lockbox__reason {
	display: block;
	margin-top: var(--r-space-1);
	font-size: 0.75rem;
	color: var(--r-ink-3);
}

.resolve-form--inline {
	display: inline;
}

/*
 * THE COMPLETE PILL VOCABULARY.
 *
 * Fields::pill() interpolates its tone into the class name, so a tone with no
 * rule here does not fail — it produces a pill with the base chrome and no
 * colour at all. That is worse than a visible error: an unstyled pill looks
 * exactly like a deliberate "neutral" one, so "Rejected" and "Withdrawn" stop
 * being distinguishable at the moment the difference matters, and nothing in
 * the interface says anything is wrong.
 *
 * The tones below are now the closed set returned by Fields::pill_tones(), and
 * pill() falls back to `neutral` for anything else, so the two cannot drift
 * apart again. `--stage`, `--success` and `--warning` are declared with the
 * base pill in section 4; the remainder are here, where the tones that arrived
 * later were already being collected.
 *
 * `--error` is a deliberate synonym of `--danger`: both words are in use across
 * the codebase for the same idea (Fields::notice() says "error", the request
 * table says "danger"), and a caller should not have to remember which one this
 * particular helper wanted in order to get a coloured pill.
 */
/* The remaining pill tones, .resolve-pillwrap and the ::before glyphs moved
 * to resolve-components.css with the rest of the pill (§7). The old
 * .resolve-pillwrap set `white-space: nowrap`, which pushed a pill and its
 * help panel off the side of a 390px screen rather than letting them wrap.
 */

/* ============================================================
 * 17. Contact identity and consent records
 *
 * Added with Domain\Contact and Domain\PolicyAcceptance. Everything
 * here is scoped to the account screen's contact and consent panels.
 * ============================================================ */

/*
 * A phone number is always read left to right, even inside an
 * Arabic page. Without the isolation the '+' migrates to the far
 * end of the string in an RTL context and the number reads wrong.
 */
.resolve-field--tel .resolve-input,
.resolve-data__tel {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
	font-variant-numeric: tabular-nums;
}

.resolve-data__note {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: var(--r-ink-3);
}

.resolve-data__empty {
	color: var(--r-ink-3);
	font-weight: 400;
}

.resolve-panel__intro {
	margin: 0 0 var(--r-space-4);
	color: var(--r-ink-2);
	font-size: 14px;
}

.resolve-form--inline {
	display: flex;
	align-items: flex-start;
	gap: var(--r-space-3);
	flex-wrap: wrap;
}

.resolve-form--inline .resolve-field {
	flex: 1 1 260px;
	margin: 0;
}

/* Align the button with the input rather than the label above it. */
.resolve-form--inline > .resolve-btn {
	margin-top: 26px;
}

.resolve-field--consent .resolve-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--r-space-2);
	cursor: pointer;
}

.resolve-field--consent input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
}

.resolve-consent__text {
	font-size: 14px;
	line-height: 1.5;
}

.resolve-consent__link {
	white-space: nowrap;
}

.resolve-consents {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.resolve-consents th,
.resolve-consents td {
	padding: var(--r-space-2) var(--r-space-3);
	text-align: start;
	border-bottom: 1px solid var(--r-line);
	vertical-align: top;
}

.resolve-consents th {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--r-ink-3);
	font-weight: 600;
}

.resolve-consents__outstanding {
	margin: var(--r-space-4) 0 0;
	font-size: 13px;
	color: var(--r-ink-3);
}

/* ============================================================
 * 18. Help, identity indicator and the standalone module pages
 *
 * Added with Frontend\IdentityBar, Frontend\Workspace and
 * Frontend\InvestorProfileView (§6, §7, §23, §51, §55).
 * ============================================================ */

/* ------------------------------------------------------------
 * 18.1 Help (§55)
 *
 * A native <details>/<summary> disclosure, not a hover tooltip: it has to be
 * reachable by keyboard and by touch, and it has to work before the plugin's
 * script has loaded. The only work the stylesheet does is make the summary
 * look like a control and stop the marker from appearing twice.
 * ---------------------------------------------------------- */

/* The help component — trigger, mark, body, rows and .resolve-headrow — moved
 * to resolve-components.css (§7). The panel had NO help component at all
 * before this: Fields::help() existed for the counterparty surfaces and
 * Admin\Panel\Ui had no equivalent, so the screens carrying the most internal
 * vocabulary — "Approved for NDA", "Investor Qualification" — were the ones
 * with nothing to explain it. Sharing the definition is what let Ui::help()
 * become a one-line delegation rather than a second implementation.
 *
 * The reasoning that shaped it is kept with it: the panel is FLOW CONTENT, not
 * an absolutely-positioned popover. It had been right-anchored to its trigger,
 * and on /how-it-works/ a 320px panel whose trigger sits 270px from the left
 * edge landed at x = -49 — half of it off-screen and unscrollable to. A
 * <details> opening in the flow cannot be clipped by an ancestor's overflow,
 * cannot leave the viewport, needs no z-index, and behaves identically in RTL
 * and at every width.
 *
 * The table-scoped narrowing below stays, because it is specific to help shown
 * inside a data table.
 */

.resolve-table .resolve-help__body,
.resolve-data .resolve-help__body {
	max-width: min(38ch, 100%);
}

/* ------------------------------------------------------------
 * 18.2 Identity indicator (§23)
 *
 * Fixed to the bottom inline-end corner. It cannot know where a theme's header
 * is, so it stays out of the region every theme uses for one. Fixed rather
 * than sticky or in-flow so it never reflows a layout the plugin does not own.
 * ---------------------------------------------------------- */

/*
 * THE FLOATING IDENTITY CHIP IS NOW A LAST RESORT.
 *
 * It used to render on every platform page. Being position: fixed it sat on
 * top of whatever the page had put underneath it — a card's "VIEW
 * OPPORTUNITY" at 1440, a table's row action at 768, an investor's "PENDING
 * VERIFICATION" at 390 — and being emitted on wp_body_open it was the first
 * tab stop on every page, ahead of the skip link.
 *
 * The identity now lives in the header: Frontend\Shell draws it inside the
 * application shell, and resolve-institutional draws it in the marketing
 * header. Both tell the plugin they have, and IdentityBar then emits nothing.
 * What is left here is the fallback for a third-party theme that offers
 * neither, where a fixed chip remains the only placement that cannot push a
 * layout the plugin does not own — and where showing a signed-in user who they
 * are still matters more than the risk of covering something.
 *
 * It is emitted on wp_footer only, so even in that case it is the LAST tab
 * stop rather than the first.
 */
.resolve-identity {
	position: fixed;
	z-index: 9990;
	inset-block-end: var(--r-space-4);
	inset-inline-end: var(--r-space-4);
	font-family: var(--r-sans);
	font-size: 13px;
	line-height: 1.4;
	text-align: start;
	print-color-adjust: exact;
}

.resolve-identity__panel {
	position: relative;
}

.resolve-identity__trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--r-space-2);
	max-width: min(280px, 70vw);
	padding: var(--r-space-2) var(--r-space-3);
	border: 1px solid var(--r-line-strong);
	border-radius: var(--resolve-radius, 0);
	background: var(--r-paper);
	box-shadow: var(--r-shadow);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.resolve-identity__trigger::-webkit-details-marker {
	display: none;
}

.resolve-identity__trigger::marker {
	content: "";
}

.resolve-identity__trigger:focus-visible {
	outline: 2px solid var(--r-accent);
	outline-offset: 2px;
}

.resolve-identity__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--r-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.resolve-identity__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.resolve-identity__name {
	overflow: hidden;
	font-weight: 600;
	color: var(--r-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.resolve-identity__role {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-3);
}

.resolve-identity__menu {
	position: absolute;
	inset-block-end: calc(100% + var(--r-space-2));
	inset-inline-end: 0;
	width: min(260px, 80vw);
	padding: var(--r-space-3);
	border: 1px solid var(--r-line-strong);
	border-radius: var(--r-radius);
	background: var(--r-paper);
	box-shadow: var(--r-shadow);
}

.resolve-identity__company {
	margin: 0 0 var(--r-space-2);
	padding-block-start: var(--r-space-2);
	border-block-start: 1px solid var(--r-line);
	font-size: 13px;
	color: var(--r-ink-2);
	overflow-wrap: anywhere;
}

.resolve-identity__companylabel {
	display: block;
	font-size: var(--r-type-label);
	letter-spacing: var(--r-type-label-tracking);
	text-transform: uppercase;
	color: var(--r-ink-4);
}

.resolve-identity__signedin {
	margin: 0 0 var(--r-space-2);
	padding-bottom: var(--r-space-2);
	border-bottom: 1px solid var(--r-line);
	font-size: 12px;
	color: var(--r-ink-3);
}

.resolve-identity__items {
	margin: 0 0 var(--r-space-2);
	padding: 0;
	list-style: none;
}

.resolve-identity__link,
.resolve-identity__signout {
	display: block;
	padding: var(--r-space-2);
	color: var(--r-ink-2);
	text-decoration: none;
}

.resolve-identity__link:hover,
.resolve-identity__link:focus,
.resolve-identity__signout:hover,
.resolve-identity__signout:focus {
	background: var(--r-ground);
	color: var(--r-accent);
}

.resolve-identity__signout {
	padding-top: var(--r-space-3);
	border-top: 1px solid var(--r-line);
	font-weight: 600;
}

/*
 * A platform administrator still sees the WordPress admin bar, which is fixed
 * to the top on wide screens and to the bottom of the viewport on narrow ones.
 * Only the narrow case can collide with a chip in the bottom corner.
 */
@media screen and (max-width: 782px) {
	.admin-bar .resolve-identity {
		inset-block-end: calc(var(--r-space-4) + 46px);
	}
}

/* It is an interface control, not content. */
@media print {
	.resolve-identity {
		display: none;
	}
}

/* ------------------------------------------------------------
 * 18.3 Section navigation and link lists
 * ---------------------------------------------------------- */

.resolve-subnav {
	margin-bottom: var(--r-space-5);
	padding-bottom: var(--r-space-3);
	border-bottom: 1px solid var(--r-line);
}

.resolve-subnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2) var(--r-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.resolve-subnav__link {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-3);
	text-decoration: none;
}

.resolve-subnav__link:hover,
.resolve-subnav__link:focus {
	color: var(--r-accent);
}

.resolve-linklist {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--r-line);
}

.resolve-linklist__item {
	padding: var(--r-space-3) 0;
	border-bottom: 1px solid var(--r-line);
}

.resolve-linklist__link {
	display: block;
	font-weight: 600;
	color: var(--r-ink);
}

.resolve-linklist__note {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--r-ink-3);
}

/* ------------------------------------------------------------
 * 18.4 Documents, transaction, submissions, profile
 * ---------------------------------------------------------- */

.resolve-docs,
.resolve-transaction,
.resolve-submissions,
.resolve-profile {
	max-width: 960px;
	margin-inline: auto;
	padding-inline: var(--r-space-5);
	color: var(--r-ink);
}

.resolve-docs__group {
	margin-bottom: var(--r-space-6);
}

.resolve-docs__ref {
	margin: 0 0 var(--r-space-3);
	font-family: var(--r-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-3);
}

.resolve-docs__name {
	display: block;
	font-weight: 600;
}

.resolve-transaction__head,
.resolve-profile__head {
	margin-bottom: var(--r-space-5);
	padding-bottom: var(--r-space-4);
	border-bottom: 1px solid var(--r-line);
}

.resolve-transaction__title,
.resolve-profile__title {
	margin: 0 0 var(--r-space-2);
	font-family: var(--r-serif);
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 400;
	line-height: 1.15;
}

.resolve-transaction__meta,
.resolve-profile__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0;
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-transaction__track,
.resolve-transaction__links {
	margin-top: var(--r-space-6);
}

.resolve-callout--level,
.resolve-callout--anon {
	border-inline-start: 3px solid var(--r-accent);
}

.resolve-callout__label {
	margin: 0 0 var(--r-space-1);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--r-ink-2);
}

.resolve-callout__body {
	margin: 0;
	color: var(--r-ink-2);
}

.resolve-profile__actions {
	margin-top: var(--r-space-5);
}

.resolve-empty__note {
	margin: var(--r-space-2) 0 0;
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-cta__alt {
	margin: var(--r-space-3) 0 0;
	font-size: 13px;
}

@media (max-width: 782px) {
	.resolve-docs,
	.resolve-transaction,
	.resolve-submissions,
	.resolve-profile {
		padding-inline: var(--r-space-4);
	}
}

/* =====================================================================
 * ADVISER WORKSPACE (1.2.1)
 *
 * The adviser's per-transaction workspace and the appointment listing that
 * leads to it. Deliberately built from the existing tokens and existing
 * blocks — a panel here has to look like a panel everywhere else, because an
 * adviser reading the same transaction as the platform team should not be
 * looking at a different-looking product.
 * ===================================================================== */

.resolve-adviser-tx {
	display: grid;
	gap: var(--r-space-5);
}

.resolve-adviser-tx__meta {
	margin: var(--r-space-2) 0 0;
	font-size: 13px;
	color: var(--r-ink-3);
}

.resolve-table--appointments .resolve-table__ref {
	white-space: nowrap;
}

/*
 * Who else is in a multi-party thread, shown above the stream. Quiet on
 * purpose: it is context for what the writer is about to say, not a heading.
 */
.resolve-thread__participants {
	margin: 0 0 var(--r-space-4);
	font-size: 12px;
	color: var(--r-ink-3);
}

.resolve-panel--thread .resolve-thread {
	border: 0;
	padding: 0;
	background: transparent;
}

.resolve-panel--thread .resolve-thread__title {
	display: none;
}

/* ============================================================
 * 17. Honest states (§42) and registration errors
 *
 * Added rather than edited into the sections above so the block can be
 * reviewed, moved or reverted as one thing. Everything here is either a
 * variant of an existing component or a new component that borrows the
 * existing tokens; no token is redefined and no existing selector is
 * altered.
 *
 * The one rule that is load-bearing rather than decorative is the
 * min-width: 0 on the flex children. A flex item defaults to
 * min-width: auto, so a long unbroken string — a reference, an email
 * address, a normalised mobile number — refuses to shrink below its own
 * content width and pushes the page wider than the viewport. That is the
 * usual cause of horizontal overflow at 390px, and it is cheaper to
 * prevent here than to find later.
 * ============================================================ */

/* ---- Expired / withdrawn access ---------------------------- */

.resolve-gate--lapsed {
	max-width: 720px;
	text-align: start;
	border-inline-start: 3px solid var(--r-warning);
}

.resolve-gate--lapsed.is-revoked {
	border-inline-start-color: var(--r-danger);
}

.resolve-gate__state {
	margin: 0 0 var(--r-space-3);
}

.resolve-gate--lapsed .resolve-gate__title {
	margin: 0 0 var(--r-space-3);
}

.resolve-gate--lapsed .resolve-gate__body {
	margin: 0 0 var(--r-space-3);
	max-width: 62ch;
}

.resolve-gate__body--next {
	color: var(--r-ink-2);
}

.resolve-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
	margin: var(--r-space-5) 0 0;
}

.resolve-gate__actions > * {
	min-width: 0;
}

.resolve-docs__group--lapsed {
	margin-top: var(--r-space-7);
	padding-top: var(--r-space-5);
	border-top: 1px solid var(--r-line);
}

.resolve-docs__group--lapsed .resolve-section__intro {
	max-width: 68ch;
}

/* A terminal or paused stage, stated on the transaction page. */
.resolve-notice--stage {
	margin-bottom: var(--r-space-5);
}

.resolve-notice--stage strong {
	display: block;
	margin-bottom: var(--r-space-1);
	color: var(--r-ink);
}

/* ---- Paging ------------------------------------------------ */

.resolve-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--r-space-3);
	margin: var(--r-space-6) 0 0;
	padding-top: var(--r-space-4);
	border-top: 1px solid var(--r-line);
}

.resolve-pager > * {
	min-width: 0;
}

.resolve-pager__count {
	font-size: 13px;
	color: var(--r-ink-3);
	font-variant-numeric: tabular-nums;
}

/* ---- Field-level registration errors ----------------------- */

.resolve-field.is-invalid > .resolve-input,
.resolve-field.is-invalid .resolve-input {
	border-color: var(--r-danger);
}

.resolve-field__error {
	margin: var(--r-space-1) 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--r-danger);
	/*
	 * Long words in an error sentence — a normalised +20… number, an email
	 * address echoed back — must wrap rather than widen the field.
	 */
	overflow-wrap: anywhere;
}

/*
 * The mobile field and the consent boxes are rendered by Domain\Contact and
 * Domain\PolicyAcceptance, which do not know about this error state, so their
 * message is a sibling of the field rather than a child of it. Pull it back
 * under the control it belongs to.
 */
.resolve-field--tel + .resolve-field__error,
.resolve-field--consent + .resolve-field__error {
	margin-top: calc(var(--r-space-3) * -1);
	margin-bottom: var(--r-space-4);
}

@media (max-width: 600px) {
	.resolve-gate--lapsed {
		padding: var(--r-space-5);
	}

	.resolve-gate__actions .resolve-btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

/* ------------------------------------------------------------
 * A figure that is asking for something.
 *
 * "Awaiting You" reading 1 is not the same kind of fact as "Saved" reading 1:
 * one is a count, the other is an instruction. Colour alone would not say so —
 * §18 is explicit that state is never carried by colour by itself — so the
 * tile takes an accent edge AND its qualifier states the action in words.
 * ------------------------------------------------------------ */

.resolve-stat--action {
	box-shadow: inset 3px 0 0 0 var(--r-accent, #5A68C4);
}

.resolve-stat--action .resolve-stat__value,
.resolve-stat--action .resolve-stat__note {
	color: var(--r-accent, #5A68C4);
}

/* ------------------------------------------------------------
 * 1.11.0 — the permanent Request/Opportunity record.
 *
 * The header (reference · version · cycle · status), the locked Company
 * section, the document editor of an amendment, the preview with its
 * comparison table and the read-only history. Logical properties
 * throughout, so the same rules read right-to-left in Arabic.
 * ------------------------------------------------------------ */

.resolve-amend-head {
	border: 1px solid var(--r-line, #dcdce6);
	border-radius: var(--r-radius, 4px);
	background: var(--r-ground, #f7f7fa);
	padding-block: var(--r-space-3, 12px);
	padding-inline: var(--r-space-4, 16px);
	margin-block-end: var(--r-space-4, 16px);
}

.resolve-amend-head__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--r-space-3, 12px);
	margin: 0;
}

.resolve-amend-head__list dt {
	font-size: 0.8125rem;
	color: var(--r-ink-3, #515b68);
	margin: 0;
}

.resolve-amend-head__list dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.resolve-amend-head__badge {
	margin-block: var(--r-space-3, 12px) 0;
	padding-inline-start: var(--r-space-3, 12px);
	border-inline-start: 3px solid var(--r-warning, #7a6033);
	color: var(--r-ink-2, #3c4653);
}

.resolve-amend-locked {
	border: 1px dashed var(--r-line-strong, #c2c2d2);
	border-radius: var(--r-radius, 4px);
	padding-block: var(--r-space-3, 12px);
	padding-inline: var(--r-space-4, 16px);
	margin-block-end: var(--r-space-4, 16px);
	background: var(--r-paper, #ffffff);
}

.resolve-amend-locked__title {
	margin-block: 0 var(--r-space-2, 8px);
	font-size: 1rem;
}

.resolve-amend-locked__note {
	margin-block: 0 var(--r-space-3, 12px);
	color: var(--r-ink-3, #515b68);
}

.resolve-amend-locked__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: var(--r-space-2, 8px) var(--r-space-4, 16px);
	margin: 0;
}

.resolve-amend-locked__list dt {
	font-size: 0.8125rem;
	color: var(--r-ink-3, #515b68);
}

.resolve-amend-locked__list dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.resolve-amend-doc__list {
	list-style: none;
	margin: var(--r-space-2, 8px) 0;
	padding: 0;
}

.resolve-amend-doc__list li {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2, 8px) var(--r-space-4, 16px);
	align-items: center;
	padding-block: var(--r-space-2, 8px);
	border-block-end: 1px solid var(--r-line, #dcdce6);
}

.resolve-amend-doc__name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.resolve-amend-doc__meta {
	color: var(--r-ink-3, #515b68);
	font-size: 0.8125rem;
}

.resolve-amend-doc__upload {
	display: block;
	margin-block: var(--r-space-2, 8px) var(--r-space-1, 4px);
}

.resolve-amend-preview__title {
	margin-block: var(--r-space-4, 16px) var(--r-space-3, 12px);
}

.resolve-amend-preview__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-3, 12px);
	margin-block: var(--r-space-4, 16px);
}

.resolve-table--amend td,
.resolve-table--amend th {
	vertical-align: top;
	overflow-wrap: anywhere;
}

.resolve-amend-timeline__item--major .resolve-timeline__status {
	color: var(--r-accent-2, #48559f);
}

.resolve-amend-timeline__decision {
	font-style: italic;
}

.resolve-amend-detail__docs {
	padding-inline-start: var(--r-space-4, 16px);
	overflow-wrap: anywhere;
}

@media (max-width: 600px) {
	.resolve-amend-preview__actions .resolve-btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

/* ============================================================
 * 1.12.0 review build — new surfaces
 * ============================================================ */

/* A3: an existing application is offered before a new one is started. */
.resolve-chooser__list {
	list-style: none;
	margin: var(--r-space-3) 0;
	padding: 0;
	border-block-start: 1px solid var(--r-line);
}

.resolve-chooser__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-2) var(--r-space-3);
	padding: var(--r-space-3) 0;
	border-block-end: 1px solid var(--r-line);
}

.resolve-chooser__ref {
	font-family: var(--r-mono, ui-monospace, monospace);
	font-size: var(--r-type-support, 14px);
	direction: ltr;
	unicode-bidi: isolate;
}

.resolve-chooser__title {
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
}

.resolve-chooser__actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
	margin-inline-start: auto;
}

/* C1: password strength meter, requirement checklist and confirmation. */
.resolve-pwmeter {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	margin-block: var(--r-space-2);
}

.resolve-pwmeter__bar {
	flex: 1 1 auto;
	max-inline-size: 240px;
	block-size: 6px;
	background: var(--r-ground-2);
	border-radius: 3px;
	overflow: hidden;
}

.resolve-pwmeter__fill {
	display: block;
	block-size: 100%;
	inline-size: 0;
	background: var(--r-danger);
	transition: inline-size .15s ease;
}

.resolve-pwmeter__fill[data-score="2"] { background: var(--r-warning); }
.resolve-pwmeter__fill[data-score="3"],
.resolve-pwmeter__fill[data-score="4"] { background: var(--r-success); }

.resolve-pwmeter__label {
	font-size: var(--r-type-label, 13px);
	color: var(--r-ink-3);
}

.resolve-pwreqs {
	list-style: none;
	margin: 0 0 var(--r-space-3);
	padding: 0;
	display: grid;
	gap: 2px;
	font-size: var(--r-type-label, 13px);
	color: var(--r-ink-3);
}

.resolve-pwreq {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
}

.resolve-pwreq__mark {
	inline-size: 10px;
	block-size: 10px;
	border: 1px solid currentColor;
	border-radius: 50%;
	flex: none;
}

.resolve-pwreq.is-met { color: var(--r-success); }
.resolve-pwreq.is-met .resolve-pwreq__mark { background: currentColor; }

.resolve-pwmatch.is-ok { color: var(--r-success); }

/* C1: name and phone captured with the account. */
.resolve-person-fields {
	display: grid;
	gap: 0 var(--r-space-4);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* B2: documents filtered by company / opportunity. */
.resolve-docs__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--r-space-2) var(--r-space-3);
	margin-block-end: var(--r-space-4);
}

.resolve-docs__filter select {
	min-inline-size: min(100%, 260px);
}

/* 1.13.0 — conversation identity (who · company · reference · kind) */
.resolve-messages__context,
.resolve-thread__context {
	display: block;
	font-size: 12px;
	color: var(--r-ink-3, #6b6b6b);
	overflow-wrap: anywhere;
}
.resolve-thread__head {
	margin-block-end: var(--r-space-4, 16px);
}
.resolve-thread__head .resolve-thread__title {
	margin-bottom: 4px;
}
.resolve-thread__ref {
	font-family: var(--r-mono, ui-monospace, monospace);
	font-weight: 600;
	color: var(--r-ink-2, #333);
}
.resolve-ref__internal {
	font-family: var(--r-mono, ui-monospace, monospace);
	font-size: 11px;
	color: var(--r-ink-4, #777);
	white-space: nowrap;
}
.resolve-message__by {
	font-size: 11px;
	color: var(--r-ink-4, #777);
}

/* 1.13.0 (Addendum B) — field-level data requests, recipient side */
.resolve-fr-actions,
.resolve-fr-answer {
	margin: 0 0 var(--r-space-5, 24px);
	padding: var(--r-space-4, 16px) var(--r-space-5, 24px);
	border: 1px solid var(--r-line, #ddd);
	border-inline-start: 4px solid var(--r-accent, #0b3d5c);
	background: var(--r-paper, #fff);
}
.resolve-fr-actions__title,
.resolve-fr-answer__title {
	margin: 0 0 6px;
	font-size: 18px;
}
.resolve-fr-actions__lede {
	margin: 0 0 10px;
	color: var(--r-ink-3, #555);
}
.resolve-fr-actions__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.resolve-fr-actions__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.resolve-fr-actions__field {
	font-weight: 600;
}
.resolve-fr-answer__facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 16px;
	margin: 8px 0 12px;
}
.resolve-fr-answer__facts div {
	display: contents;
}
.resolve-fr-answer__facts dt {
	color: var(--r-ink-3, #555);
}
.resolve-fr-answer__facts dd {
	margin: 0;
	overflow-wrap: anywhere;
	text-align: start;
	unicode-bidi: plaintext; /* a reason typed in English reads LTR inside an Arabic page */
}
.resolve-fr-answer__form .resolve-input,
.resolve-fr-answer__form .resolve-select {
	max-inline-size: 32rem;
	inline-size: 100%;
}
@media (max-width: 600px) {
	.resolve-fr-answer__facts {
		grid-template-columns: 1fr;
	}
}
/* The notification's link jumps to the field: keep it clear of the sticky shell header. */
.resolve-fr-answer {
	scroll-margin-top: 96px;
}
/* Room above the field for its label, status, current value and reason. */
.resolve-fr-answer [id^="resolve-field-"] {
	scroll-margin-top: 260px;
}
.resolve-fr-answer__form .resolve-label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}
.resolve-fr-answer__form .resolve-input,
.resolve-fr-answer__form .resolve-select,
.resolve-fr-answer__form .resolve-textarea {
	display: block;
}
.resolve-fr-answer__form .resolve-help {
	display: block;
	margin: 6px 0 12px;
	color: var(--r-ink-3, #555);
	font-size: 13px;
}

/* =====================================================================
 * 1.16.3.4 — signed-in devices (Account → Security).
 * Logical properties throughout, so the Arabic layout mirrors.
 * ===================================================================== */
.resolve-sessions { margin: 10px 0 0; padding: 0; list-style: none; }
.resolve-sessions__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 0; border-block-start: 1px solid var(--r-line, #d9dce6); }
.resolve-sessions__item:first-child { border-block-start: 0; }
.resolve-sessions__device { font-weight: 600; }
.resolve-sessions__meta { font-size: 13px; color: var(--r-ink-3, #4d5270); }
.resolve-sessions__here { margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; background: #eef8ef; color: #2e7d32; font-size: 12px; font-weight: 600; }
.resolve-sessions__item form { margin-inline-start: auto; }
.resolve-sessions__count { font-size: 18px; }
.resolve-sessions__count.is-full { color: #8a5300; }
@media (max-width: 640px) {
	.resolve-sessions__item { flex-direction: column; align-items: flex-start; }
	.resolve-sessions__here, .resolve-sessions__item form { margin-inline-start: 0; }
}

/* =====================================================================
 * 1.16.3.4 — Opportunities: the search bar at the top (N), and the
 * reader's choice of how many cards sit in a row (M).
 *
 * The filters were a column down the left, taller than most screens, so
 * on a laptop the results had two thirds of the width and the filter you
 * wanted was usually below the fold. They are a bar now: across the top,
 * beside the count and the Grid/Table control.
 *
 * The bar is static: it scrolls away with the page rather than staying
 * under the shell header. That is the owner's decision (RQ-N, option A,
 * 2026-10-25); the results get the whole viewport once a reader scrolls.
 * ===================================================================== */
.resolve-searchbar {
	position: static;
	inset-block-start: auto;
	z-index: auto;
	margin: 0 0 var(--r-space-4, 16px);
	padding: 12px 14px;
	border: 1px solid var(--r-line, #d9dce6);
	border-radius: 10px;
	background: var(--r-paper, #fff);
	box-shadow: 0 1px 0 rgba(16, 20, 40, .04);
}
.resolve-searchbar__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.resolve-searchbar__count { font-size: 15px; }
.resolve-searchbar__q { position: relative; flex: 1 1 260px; min-inline-size: 0; }
.resolve-searchbar__q .resolve-input { inline-size: 100%; padding-inline-start: 34px; }
.resolve-searchbar__qicon { position: absolute; inset-block-start: 50%; inset-inline-start: 10px; transform: translateY(-50%); color: var(--r-ink-3, #4d5270); pointer-events: none; }

.resolve-searchbar__views,
.resolve-searchbar__density { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--r-line, #d9dce6); border-radius: 8px; }
.resolve-searchbar__dlabel { padding-inline: 6px; font-size: 12px; color: var(--r-ink-3, #4d5270); }
.resolve-viewtoggle,
.resolve-density { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; color: inherit; text-decoration: none; font-size: 13px; }
.resolve-viewtoggle.is-active,
.resolve-density.is-active { background: var(--r-accent, #3b55e6); color: #fff; }

/* Simple mode: the five controls that answer most questions. */
.resolve-searchbar__simple { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-block-start: 10px; }
.resolve-searchbar__adv { margin-block-start: 10px; }
.resolve-searchbar__advtoggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--r-accent, #3b55e6); }
.resolve-searchbar__advgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--r-line, #d9dce6); }
.resolve-searchbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block-start: 12px; }
.resolve-searchbar__hint { font-size: 12px; color: var(--r-ink-3, #4d5270); }

/* What is actually applied, each piece removable on its own. */
.resolve-searchbar__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--r-line, #d9dce6); }
.resolve-searchbar__chiplabel { font-size: 12px; font-weight: 600; color: var(--r-ink-3, #4d5270); }
.resolve-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--r-line, #d9dce6); border-radius: 999px; background: #f6f7fb; color: inherit; font-size: 12px; text-decoration: none; }
.resolve-chip:hover,
.resolve-chip:focus-visible { border-color: var(--r-accent, #3b55e6); color: var(--r-accent, #3b55e6); }
.resolve-chip__x { display: inline-flex; }

/* M — the chosen number of cards is a ceiling, never a promise: the
 * viewport still decides when that many would be unreadable. */
.resolve-grid { display: grid; gap: var(--r-space-4, 16px); grid-template-columns: repeat(var(--resolve-cards, 3), minmax(0, 1fr)); }
@media (max-width: 1200px) { .resolve-grid { grid-template-columns: repeat(min(var(--resolve-cards, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 980px)  { .resolve-grid { grid-template-columns: repeat(min(var(--resolve-cards, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 680px)  { .resolve-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 680px) {
	.resolve-searchbar { position: static; }
	.resolve-searchbar__actions .resolve-btn { flex: 1 1 auto; }
	.resolve-viewtoggle__t { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media print { .resolve-searchbar { display: none; } }

/* I — a company name that is a link looks like a link, and one that is not
 * looks like what it always looked like. The distinction has to be visible:
 * underlining every company name would promise a destination to readers who
 * do not have one. */
.resolve-companyname { color: inherit; }
a.resolve-companyname--link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a.resolve-companyname--link:hover,
a.resolve-companyname--link:focus-visible { text-decoration-color: currentColor; }
h1 a.resolve-companyname--link { text-underline-offset: 5px; }


/* ------------------------------------------------------------------
 * N — a filter in a BAR is a menu, not a section.
 *
 * .resolve-filtergroup was drawn for the vertical rail, where an open
 * group expanding in flow is exactly right: it pushes the groups below it
 * down a rail nobody is reading across. In the top bar the same rule made
 * an open Sector list 600px tall and pushed the results off the first
 * screen, which is the fault the bar exists to fix. Inside the bar, and
 * only inside it, the body is a panel under its own control.
 * ------------------------------------------------------------------ */
.resolve-searchbar .resolve-filtergroup {
	position: relative;
	margin: 0;
	border: 1px solid var(--r-line, #d9dce6);
	border-radius: 8px;
	background: #fff;
}
.resolve-searchbar .resolve-filtergroup > summary {
	padding: 8px 10px;
	font-size: 13px;
	line-height: 1.3;
	border-radius: 8px;
}
.resolve-searchbar .resolve-filtergroup[open] {
	border-color: var(--r-accent, #3b55e6);
}
.resolve-searchbar .resolve-filtergroup > .resolve-filtergroup__body {
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: calc(100% + 4px);
	z-index: 40;
	min-inline-size: 100%;
	inline-size: max-content;
	max-inline-size: min(340px, 90vw);
	max-block-size: 300px;
	overflow-y: auto;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--r-line, #d9dce6);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(16, 20, 40, 0.14);
}
/* A bar that clipped its own menus would be worse than no menus. */
.resolve-searchbar { overflow: visible; }

/* On a phone the panel is the width of the bar rather than of its control. */
@media (max-width: 680px) {
	.resolve-searchbar .resolve-filtergroup > .resolve-filtergroup__body {
		position: static;
		box-shadow: none;
		border: 0;
		padding: 6px 0 0;
		max-inline-size: none;
	}
}

/* ------------------------------------------------------------------
 * B1 (1.16.3.5) — a financial history, one row per period.
 *
 * Period and figure sit side by side with the remove control on the end,
 * so a row reads as one answer. On a phone the pair stays on one line —
 * a year and an amount are both short, and stacking them would make a
 * five-year history ten rows tall — while the remove control keeps a
 * 44px target.
 * ------------------------------------------------------------------ */
.resolve-series__head,
.resolve-series__row {
	display: grid;
	grid-template-columns: minmax(90px, 0.45fr) minmax(120px, 1fr) 44px;
	gap: 8px;
	align-items: center;
}
.resolve-series__head {
	margin-block-end: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--r-ink-3, #4d5270);
}
.resolve-series__row + .resolve-series__row { margin-block-start: 8px; }
.resolve-series__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 40px;
	padding: 0;
	border: 1px solid var(--r-line, #d9dce6);
	border-radius: 8px;
	background: #fff;
	color: var(--r-ink-3, #4d5270);
	cursor: pointer;
}
.resolve-series__remove:hover,
.resolve-series__remove:focus-visible { border-color: var(--r-danger, #b3261e); color: var(--r-danger, #b3261e); }
.resolve-series__row.is-duplicate .resolve-series__period { border-color: var(--r-danger, #b3261e); }
.resolve-series__actions { margin: 10px 0 0; }

@media (max-width: 480px) {
	.resolve-series__head,
	.resolve-series__row { grid-template-columns: minmax(70px, 0.4fr) minmax(90px, 1fr) 44px; gap: 6px; }
}

/* ------------------------------------------------------------------
 * 1.16.3.5 (B3) — field groups inside an intake step.
 *
 * A heading and a rule above each run of related questions, so a step
 * of ten or thirteen fields reads as three short groups instead of one
 * unbroken column. Presentation only: the fields, their order and
 * their grid are unchanged, and a step with no groups looks exactly as
 * it did.
 * ------------------------------------------------------------------ */
.resolve-group { margin: 0 0 var(--r-space-5); }
.resolve-group + .resolve-group { padding-top: var(--r-space-4); border-top: 1px solid var(--r-line, #e4e6ef); }

.resolve-group__title {
	margin: 0 0 var(--r-space-3);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--r-ink-2, #2b2f44);
}

/* Inside a Financial Assessment section (4B/4C/4D) the group heading sits
 * one level below the section title, so it is quieter than it. */
.rfa-intake-section .resolve-group__title { font-size: 14px; color: var(--r-ink-3, #4d5270); }

/* ------------------------------------------------------------------
 * 1.16.3.6 (audit §4) — the Balance Sheet four as a 2×2.
 *
 * Total Assets, Total Liabilities, Cash and Working Capital are a fixed
 * group of four; the audit asks for a full-width 2×2 on desktop and a single
 * column on mobile, rather than the step's free auto-fill grid, which on a
 * wide screen would run all four across one line and on a medium one leave
 * an orphan. Two explicit columns hold the 2×2 at every width down to the
 * mobile breakpoint, where the step grid already collapses to one column.
 * ------------------------------------------------------------------ */
@media (min-width: 783px) {
	.resolve-step__fields--pairs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ============================================================================
 * HAYKALA 2.x — COMPANY CONSOLIDATED DASHBOARD (control-centre presentation).
 * Scoped to .resolve-dash--company. Presentation only: it re-lays-out the
 * existing real panels (progress tracker, engagement stats, completeness,
 * documents, investor interest, history, actions) into the approved reference
 * layout — a progress hero, a status-summary card row, a two-column main with
 * a Quick Actions rail, and a supporting grid. No data, query, status, or
 * authorization is introduced here. Light canvas, white cards, dark-navy
 * accents to match the HAYKALA chrome. LTR + RTL via logical properties.
 * ==========================================================================*/
.resolve-dash--company { --cd-navy:#10233b; --cd-ink:#172c43; --cd-muted:#5b6b82; --cd-line:#e5e9f0; --cd-accent:#4f46e5; --cd-accent-soft:#eef0fb; --cd-card:#ffffff; --cd-ground:#f4f6fa; --cd-radius:14px; --cd-ok:#12805c; --cd-warn:#b7791f; --cd-wait:#8a93a6; display:flex; flex-direction:column; gap:20px; }
/* Keep every stacked panel inside the content track. In a column flex the
 * horizontal axis is the cross axis, where an item sizes to its content's
 * max-content (here, a long unwrapped paragraph) unless pinned — so pin each
 * stacked child to the full track width and let its own content wrap within. */
.resolve-dash--company { align-items:stretch; }
.resolve-dash--company > * { width:100%; min-width:0; box-sizing:border-box; }

/* Header */
.resolve-dash--company .resolve-dash__head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.resolve-dash--company .resolve-eyebrow { color:var(--cd-accent); font:700 11px/1.4 'Manrope',system-ui,sans-serif; letter-spacing:.11em; text-transform:uppercase; margin:0 0 4px; }
.resolve-dash--company .resolve-dash__title { font:600 clamp(26px,3vw,34px)/1.2 'Playfair Display',Georgia,serif; color:var(--cd-ink); margin:0; }
.resolve-dash--company .resolve-dash__case, .resolve-dash--company .resolve-dash__ref { color:var(--cd-muted); font-size:13px; margin:6px 0 0; }
.resolve-dash--company .resolve-pill--stage { display:inline-block; margin-inline-start:8px; padding:2px 10px; border-radius:999px; background:var(--cd-accent-soft); color:var(--cd-accent); font:700 11px/1.6 'Manrope',sans-serif; letter-spacing:.04em; }

/* Cards, shared */
.resolve-dash--company .resolve-panel,
.resolve-dash--company .resolve-progress,
.resolve-dash--company .resolve-dash__card { background:var(--cd-card); border:1px solid var(--cd-line); border-radius:var(--cd-radius); padding:22px 24px; box-shadow:0 1px 2px rgba(16,35,59,.04); }
/* The design-revamp stylesheet's full-bleed .resolve-panel (width:100vw) is
 * neutralised for the whole Company shell in the theme (sidebar-restoration
 * block), so dashboard cards already sit in the content track; here we only
 * give them their card styling (border/radius/padding above). */
.resolve-dash--company .resolve-panel__title { font:600 16px/1.3 'Manrope',sans-serif; color:var(--cd-ink); margin:0 0 10px; }
.resolve-dash--company .resolve-panel__note { color:var(--cd-muted); font-size:13px; margin:0 0 12px; }

/* Progress hero */
.resolve-dash--company .resolve-progress { padding:24px 26px; }
.resolve-dash--company .resolve-progress__head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:6px; }
.resolve-dash--company .resolve-progress__heading { font:600 17px/1.3 'Manrope',sans-serif; color:var(--cd-ink); margin:0; }
.resolve-dash--company .resolve-progress__pct { font:700 13px/1 'Manrope',sans-serif; color:var(--cd-accent); white-space:nowrap; }
.resolve-dash--company .resolve-progress__bar { height:8px; border-radius:999px; background:var(--cd-ground); overflow:hidden; margin:10px 0 18px; }
.resolve-dash--company .resolve-progress__bar > i { display:block; height:100%; background:linear-gradient(90deg,#4f46e5,#6571b8); border-radius:999px; }
.resolve-dash--company .resolve-progress__steps { display:flex; flex-wrap:wrap; gap:14px 22px; list-style:none; margin:0; padding:0; }
.resolve-dash--company .resolve-progress__step { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--cd-wait); }
.resolve-dash--company .resolve-progress__dot { width:18px; height:18px; border-radius:50%; border:2px solid #cfd6e4; background:#fff; flex:0 0 auto; }
.resolve-dash--company .resolve-progress__step.is-done   { color:var(--cd-ok); }
.resolve-dash--company .resolve-progress__step.is-done   .resolve-progress__dot { background:var(--cd-ok); border-color:var(--cd-ok); }
.resolve-dash--company .resolve-progress__step.is-current { color:var(--cd-accent); font-weight:600; }
.resolve-dash--company .resolve-progress__step.is-current .resolve-progress__dot { border-color:var(--cd-accent); box-shadow:0 0 0 3px var(--cd-accent-soft); }
.resolve-dash--company .resolve-progress__caption { color:var(--cd-muted); font-size:12.5px; margin:16px 0 0; }

/* Status / engagement cards */
.resolve-dash--company .resolve-dash__stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.resolve-dash--company .resolve-dash__stats .resolve-stat { background:var(--cd-card); border:1px solid var(--cd-line); border-radius:12px; padding:16px 18px; box-shadow:0 1px 2px rgba(16,35,59,.04); }
.resolve-dash--company .resolve-dash__stats .resolve-stat__value { font:700 24px/1 'Manrope',sans-serif; color:var(--cd-ink); }
.resolve-dash--company .resolve-dash__stats .resolve-stat__label { display:block; margin-top:6px; color:var(--cd-muted); font-size:11px; letter-spacing:.06em; text-transform:uppercase; }

/* Main grid + quick-actions rail */
.resolve-dash--company .resolve-dash__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.resolve-dash--company .resolve-panel--outstanding, .resolve-dash--company .resolve-panel--complete { grid-column:1 / -1; }

/* Tables */
.resolve-dash--company .resolve-table { width:100%; border-collapse:collapse; font-size:13px; }
.resolve-dash--company .resolve-table th { text-align:start; color:var(--cd-muted); font:700 11px/1.5 'Manrope',sans-serif; letter-spacing:.05em; text-transform:uppercase; border-bottom:1px solid var(--cd-line); padding:8px 10px; }
.resolve-dash--company .resolve-table td { border-bottom:1px solid var(--cd-line); padding:10px; color:var(--cd-ink); }

/* Outstanding / task list — grid columns (minmax 0) rather than CSS multicol,
 * so the list never contributes an intrinsic width wider than its track. */
.resolve-dash--company .resolve-outstanding { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; list-style:none; margin:0; padding:0; font-size:13px; }
.resolve-dash--company .resolve-outstanding li { min-width:0; padding:5px 0; color:var(--cd-ink); border-bottom:1px dashed var(--cd-line); }

/* Timeline */
.resolve-dash--company .resolve-timeline { list-style:none; margin:0; padding:0; }
.resolve-dash--company .resolve-timeline__item { display:flex; flex-direction:column; gap:2px; padding:10px 0; border-bottom:1px solid var(--cd-line); }
.resolve-dash--company .resolve-timeline__time { color:var(--cd-wait); font-size:11.5px; }
.resolve-dash--company .resolve-timeline__status { color:var(--cd-ink); font-weight:600; font-size:13px; }

/* Buttons / actions rail */
.resolve-dash--company .resolve-btn--block { display:block; width:100%; text-align:center; margin:0 0 10px; }
.resolve-dash--company .resolve-btn--ghost { border:1px solid var(--cd-line); background:#fff; color:var(--cd-ink); border-radius:10px; padding:11px 14px; font:600 13px/1.3 'Manrope',sans-serif; text-decoration:none; }
.resolve-dash--company .resolve-btn--ghost:hover { border-color:var(--cd-accent); color:var(--cd-accent); }

/* Getting-started checklist */
.resolve-dash--company .resolve-getting-started { background:var(--cd-card); border:1px solid var(--cd-line); border-radius:var(--cd-radius); }

/* Avatar */
.resolve-dash__avatar { width:44px; height:44px; border-radius:50%; object-fit:cover; border:1px solid var(--cd-line); background:var(--cd-accent-soft); color:var(--cd-accent); display:inline-flex; align-items:center; justify-content:center; font:700 15px/1 'Manrope',sans-serif; }
.resolve-dash__identity { display:flex; align-items:center; gap:12px; }

@media (max-width:1024px){
  .resolve-dash--company .resolve-dash__stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .resolve-dash--company .resolve-dash__grid { grid-template-columns:minmax(0,1fr); }
  .resolve-dash--company .resolve-outstanding { grid-template-columns:minmax(0,1fr); }
}
