/**
 * chn-bid-platform — front-end stylesheet.
 *
 * Uses theme tokens (--chn-* CSS variables defined in the
 * caribbean-home-network theme) so the platform inherits brand
 * colours, type scale and spacing scale automatically. Adds local
 * fallbacks for environments where the theme isn't active.
 *
 * Naming: `.chn-bp__*` for block, `.chn-bp__*--modifier` for variants.
 *   bp = bid platform.
 */

:root {
	/* Local fallbacks — theme overrides these when active. */
	--chn-bp-primary:        var(--chn-color-primary,        #0b3b94);
	--chn-bp-primary-hover:  var(--chn-color-primary-hover,  #082c6f);
	--chn-bp-accent:         var(--chn-color-accent,         #f3802d);
	--chn-bp-text:           var(--chn-color-text,           #1d2733);
	--chn-bp-muted:          var(--chn-color-muted-ink,      #5b6772);
	--chn-bp-line:           var(--chn-color-border,         #e5e1da);
	--chn-bp-surface:        var(--chn-color-surface,        #ffffff);
	--chn-bp-surface-alt:    var(--chn-color-surface-alt,    #f7f5f0);
	--chn-bp-paper:          var(--chn-color-paper,          #f3f1ed);
	--chn-bp-success:        #0b8f3d;
	--chn-bp-warn:           #d97706;
	--chn-bp-danger:         #c0392b;
	--chn-bp-info:           #1565c0;

	--chn-bp-radius:         var(--chn-radius-md,            8px);
	--chn-bp-radius-sm:      var(--chn-radius-sm,            4px);
	--chn-bp-space-1:        var(--chn-space-1,              4px);
	--chn-bp-space-2:        var(--chn-space-2,              8px);
	--chn-bp-space-3:        var(--chn-space-3,              12px);
	--chn-bp-space-4:        var(--chn-space-4,              16px);
	--chn-bp-space-5:        var(--chn-space-5,              24px);
	--chn-bp-space-6:        var(--chn-space-6,              32px);
	--chn-bp-space-7:        var(--chn-space-7,              48px);

	--chn-bp-font-serif:     var(--chn-font-serif,           "Source Serif Pro", Georgia, serif);
	--chn-bp-font-mono:      var(--chn-font-mono,            "JetBrains Mono", monospace);
}

/* --------------------------------------------------------------- *
 * Page shells                                                     *
 * --------------------------------------------------------------- */
.chn-bp { max-width: 1100px; margin: 48px auto; padding: 0 20px; }
.chn-bp--narrow { max-width: 800px; }
.chn-bp__header { margin-bottom: var(--chn-bp-space-6); }
.chn-bp__back { color: var(--chn-bp-muted); font-size: 13px; text-decoration: none; display: inline-block; margin-bottom: var(--chn-bp-space-2); }
.chn-bp__back:hover { color: var(--chn-bp-primary); }
.chn-bp__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--chn-bp-primary); text-transform: uppercase; margin-bottom: 8px; }
.chn-bp__h1 { font-family: var(--chn-bp-font-serif); font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; color: var(--chn-bp-text); line-height: 1.15; letter-spacing: -.015em; }
.chn-bp__sub { color: var(--chn-bp-muted); font-size: 16px; line-height: 1.55; margin: 0; }

/* --------------------------------------------------------------- *
 * Cards + sections                                                *
 * --------------------------------------------------------------- */
.chn-bp__card { background: var(--chn-bp-surface); border: 1px solid var(--chn-bp-line); border-radius: var(--chn-bp-radius); padding: var(--chn-bp-space-5); margin-bottom: var(--chn-bp-space-5); }
.chn-bp__card h2 { margin: 0 0 var(--chn-bp-space-3); font-size: 18px; color: var(--chn-bp-text); }

/* Contractor BoQ pricing workspace. */
.chn-bid-boq__progress { color: #52647c; font-size: 13px; margin-top: 8px; }
.chn-bid-boq__progress strong { color: #0b3b94; }
.chn-bid-boq__currency { align-items: center; background: #edf3fb; border: 1px solid #d4dfed; border-radius: 9px; display: grid; gap: 0 9px; grid-template-columns: auto auto; margin-top: 10px; max-width: max-content; padding: 7px 10px; }
.chn-bid-boq__currency span { color: #52647c; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.chn-bid-boq__currency strong { color: #0b3b94; font-size: 14px; }
.chn-bid-boq__currency small { color: #64748b; font-size: 10px; grid-column: 1/-1; }
.chn-bid-boq__pricing-tools { align-items: center; background: #f4f7fc; border: 1px solid #d6e1ef; border-radius: 12px; display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) auto; margin: 0 0 18px; padding: 16px; }
.chn-bid-boq__pricing-tools p { color: #52647c; font-size: 13px; margin: 4px 0 0; }
.chn-bid-boq__tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chn-bid-boq__upload-label { margin: 0; }
.chn-bid-boq__import-status { font-size: 13px; grid-column: 1/-1; white-space: pre-line; }
.chn-bid-boq__import-status:empty { display: none; }
.chn-bid-boq__import-status[data-tone="success"] { color: #107a49; }
.chn-bid-boq__import-status[data-tone="error"] { color: #a62424; }
.chn-bid-boq__validation { align-items: start; background: #fff7f5; border: 1px solid #e7a59d; border-left: 5px solid #bd2f24; border-radius: 12px; color: #6f1d18; display: grid; gap: 12px; grid-template-columns: 34px minmax(0,1fr); margin: 0 0 18px; padding: 15px 16px; scroll-margin-top: 110px; }
.chn-bid-boq__validation[hidden] { display: none; }
.chn-bid-boq__validation:focus { box-shadow: 0 0 0 4px rgba(189,47,36,.12); outline: none; }
.chn-bid-boq__validation-icon { align-items: center; background: #bd2f24; border-radius: 50%; color: #fff; display: inline-flex; font-size: 18px; font-weight: 900; height: 32px; justify-content: center; width: 32px; }
.chn-bid-boq__validation-copy { min-width: 0; }
.chn-bid-boq__validation-copy > strong { color: #7f1d1d; display: block; font-size: 16px; }
.chn-bid-boq__validation-copy > p { color: #7f3631; margin: 4px 0 10px; }
.chn-bid-boq__validation-copy ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0 0 12px; padding: 0; }
.chn-bid-boq__validation-copy li { margin: 0; }
.chn-bid-boq__validation-copy li button { appearance: none; background: #fff; border: 1px solid #e4aaa4; border-radius: 999px; color: #8d2820; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; padding: 6px 10px; }
.chn-bid-boq__validation-copy li button:hover,
.chn-bid-boq__validation-copy li button:focus-visible { background: #8d2820; border-color: #8d2820; color: #fff; outline: none; }
.chn-bid-boq__validation-action { appearance: none; background: #8d2820; border: 1px solid #8d2820; border-radius: 7px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; padding: 9px 13px; }
.chn-bid-boq__validation-action:hover,
.chn-bid-boq__validation-action:focus-visible { background: #6f1d18; border-color: #6f1d18; color: #fff; outline: 3px solid rgba(189,47,36,.18); outline-offset: 2px; }
.chn-bid-boq--pricing .chn-bid-boq__section summary { grid-template-columns: 18px minmax(160px,1fr) auto auto auto; }
.chn-bid-boq__section-state { background: #fff4df; border-radius: 999px; color: #8a4b13; font-size: 11px; font-weight: 800; padding: 5px 9px; white-space: nowrap; }
.chn-bid-boq__section-state.is-complete { background: #e7f5ed; color: #107a49; }
.chn-bid-boq__section-total { color: #10284d; font-size: 13px; white-space: nowrap; }
.chn-bid-boq__rate-field { display: grid; gap: 3px; min-width: 0; }
.chn-bid-boq__rate-field > span { align-items: center; background: #edf3fb; border: 1px solid #bdcce0; border-right: 0; border-radius: 7px 0 0 7px; color: #0b3b94; display: flex; font-size: 11px; font-weight: 800; padding: 0 7px; }
.chn-bid-boq__rate-field input { border: 1px solid #bdcce0; border-radius: 7px; box-sizing: border-box; color: #10284d; font-variant-numeric: tabular-nums; min-height: 40px; min-width: 0; padding: 8px 10px; text-align: right; width: 100%; }
.chn-bid-boq__rate-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.chn-bid-boq__rate-field input[type="number"]::-webkit-inner-spin-button,
.chn-bid-boq__rate-field input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.chn-bid-boq__rate-field input:focus { border-color: #0b3b94; box-shadow: 0 0 0 3px rgba(11,59,148,.12); outline: 0; }
.chn-bid-boq__rate-field input.is-incomplete { background: #fffafa; border-color: #bd2f24; box-shadow: inset 4px 0 0 #bd2f24; }
.chn-bid-boq__rate-field input.is-incomplete:focus { box-shadow: inset 4px 0 0 #bd2f24, 0 0 0 3px rgba(189,47,36,.14); }
.chn-bid-boq__rate-field small { color: #52647c; display: block; flex-basis: 100%; font-size: 10px; margin-top: 3px; min-height: 13px; }
.chn-bid-boq__rate-field small[data-tone="success"] { color: #107a49; }
.chn-bid-boq__rate-field small[data-tone="error"] { color: #a62424; }
.chn-bid-boq--pricing .chn-bid-boq__table { min-width: 960px; }
.chn-bid-boq--pricing .chn-bid-boq__table th:first-child { width: 86px; }
.chn-bid-boq--pricing .chn-bid-boq__table th:nth-child(3) { width: 62px; }
.chn-bid-boq--pricing .chn-bid-boq__table th:nth-child(4) { width: 64px; }
.chn-bid-boq--pricing .chn-bid-boq__table th:nth-child(5) { width: 200px; }
.chn-bid-boq--pricing .chn-bid-boq__table th:nth-child(6) { width: 200px; }
.chn-bid-boq--pricing .chn-bid-boq__table th:nth-child(n+5),
.chn-bid-boq--pricing .chn-bid-boq__table td:nth-child(n+5) { text-align: right; }
.chn-bid-boq--pricing [data-boq-amount] { color: #10284d; font-variant-numeric: tabular-nums; font-weight: 800; overflow-wrap: normal; }
.chn-bid-boq--pricing .chn-bid-boq__section.is-incomplete { border-color: #d55c53; box-shadow: 0 0 0 2px rgba(189,47,36,.08); scroll-margin-top: 110px; }
.chn-bid-boq--pricing .chn-bid-boq__section.is-incomplete > summary { background: #fff7f5; }
.chn-bid-boq--pricing .chn-bid-boq__section-state.is-incomplete { background: #fde8e6; color: #9b2c23; }
.chn-bid-boq--pricing .chn-bid-boq__section.is-attention { animation: chn-bid-boq-attention .8s ease-out 1; }
@keyframes chn-bid-boq-attention {
	0% { box-shadow: 0 0 0 0 rgba(189,47,36,.38); transform: translateY(0); }
	45% { box-shadow: 0 0 0 7px rgba(189,47,36,.14); transform: translateY(-2px); }
	100% { box-shadow: 0 0 0 2px rgba(189,47,36,.08); transform: translateY(0); }
}
.chn-bidv2-resp-status.is-error { color: #9b2c23 !important; display: inline-block; font-weight: 750; margin-top: 8px; }
.chn-bid-boq__grand-total { align-items: center; background: #0b3b94; border-radius: 12px; color: #fff; display: flex; gap: 20px; justify-content: space-between; margin-top: 18px; padding: 18px 20px; }
.chn-bid-boq__grand-total span,.chn-bid-boq__grand-total small { display: block; }
.chn-bid-boq__grand-total span { font-size: 14px; font-weight: 800; }
.chn-bid-boq__grand-total small { color: rgba(255,255,255,.78); font-size: 11px; margin-top: 3px; }
.chn-bid-boq__grand-total strong { font-size: clamp(19px,2.2vw,28px); white-space: nowrap; }
@media (max-width: 760px) {
	.chn-bid-boq__pricing-tools { grid-template-columns: 1fr; }
	.chn-bid-boq__tool-actions { display: grid; }
	.chn-bid-boq--pricing .chn-bid-boq__section summary { grid-template-columns: 18px minmax(0,1fr) auto; }
	.chn-bid-boq__section-state,.chn-bid-boq__section-total { grid-column: 2/-1; justify-self: start; }
	.chn-bid-boq__grand-total { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
	.chn-bid-boq__validation { grid-template-columns: 28px minmax(0,1fr); padding: 13px; }
	.chn-bid-boq__validation-icon { font-size: 15px; height: 27px; width: 27px; }
	.chn-bid-boq__validation-copy ul { display: grid; grid-template-columns: minmax(0,1fr); }
	.chn-bid-boq__validation-copy li button { overflow-wrap: anywhere; text-align: left; white-space: normal; width: 100%; }
	.chn-bid-boq__validation-action { width: 100%; }
	.chn-bid-boq--pricing .chn-bid-boq__table { min-width: 0; }
	.chn-bid-boq--pricing .chn-bid-boq__table td { grid-template-columns: 64px minmax(0, 1fr); }
	.chn-bid-boq--pricing .chn-bid-boq__table td:nth-child(n+5) { text-align: left; }
	.chn-bid-boq--pricing .chn-bid-boq__rate-field input { font-size: 14px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.chn-bid-boq--pricing .chn-bid-boq__section.is-attention { animation: none; }
}

/* --------------------------------------------------------------- *
 * Forms                                                           *
 * --------------------------------------------------------------- */
.chn-bp__form { display: flex; flex-direction: column; gap: var(--chn-bp-space-4); }
.chn-bp__field label { display: block; }
.chn-bp__label { font-weight: 700; margin-bottom: 6px; color: var(--chn-bp-text); font-size: 14px; }
.chn-bp__hint { display: block; font-size: 13px; color: var(--chn-bp-muted); margin-top: 4px; }
.chn-bp__input,
.chn-bp__select,
.chn-bp__textarea,
.chn-bp__file {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius-sm);
	background: var(--chn-bp-surface);
	color: var(--chn-bp-text);
	font-size: 15px;
	font-family: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.chn-bp__input:focus,
.chn-bp__select:focus,
.chn-bp__textarea:focus,
.chn-bp__file:focus {
	outline: 0;
	border-color: var(--chn-bp-primary);
	box-shadow: 0 0 0 3px rgba(11, 59, 148, .12);
}
.chn-bp__textarea { resize: vertical; min-height: 140px; }
.chn-bp__row-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--chn-bp-space-3); }
.chn-bp__row-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--chn-bp-space-3); }
.chn-bp__checkbox-row { display: flex; gap: var(--chn-bp-space-2); align-items: flex-start; padding: var(--chn-bp-space-3); background: var(--chn-bp-paper); border-radius: var(--chn-bp-radius-sm); }
.chn-bp__checkbox-row input { margin-top: 4px; }
.chn-bp__checkbox-row span { font-size: 14px; line-height: 1.55; color: var(--chn-bp-text); }

/* --------------------------------------------------------------- *
 * Buttons                                                         *
 * --------------------------------------------------------------- */
.chn-bp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: var(--chn-bp-radius-sm);
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	letter-spacing: .02em;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.chn-bp__btn--primary { background: var(--chn-bp-primary); color: #fff; border-color: var(--chn-bp-primary); }
.chn-bp__btn--primary:hover:not(:disabled) { background: var(--chn-bp-primary-hover); border-color: var(--chn-bp-primary-hover); color: #fff; }
.chn-bp__btn--ghost { background: var(--chn-bp-surface); color: var(--chn-bp-primary); border-color: var(--chn-bp-primary); }
.chn-bp__btn--ghost:hover:not(:disabled) { background: var(--chn-bp-paper); }
/* chn2 #137-item-14: link variant used for soft secondary actions like
   "Or request free access →". Visible text-link styling with adequate
   contrast (primary navy underlined) rather than the bare-link default. */
.chn-bp__btn--link {
	background: transparent;
	color: var(--chn-bp-primary);
	border-color: transparent;
	text-decoration: underline;
	padding-left: 0;
	padding-right: 0;
}
.chn-bp__btn--link:hover:not(:disabled) {
	color: var(--chn-bp-primary-hover);
	text-decoration: underline;
}
.chn-bp__btn--danger { background: var(--chn-bp-surface); color: var(--chn-bp-danger); border-color: var(--chn-bp-danger); }
.chn-bp__btn--danger:hover:not(:disabled) { background: rgba(192, 57, 43, .08); }

/* chn2 #137 interaction-item-1 — confirmation modal */
.chn-confirm-modal {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(13, 28, 51, .55);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	animation: chnConfirmFadeIn .15s ease;
}
@keyframes chnConfirmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.chn-confirm-modal__panel {
	background: var(--chn-bp-surface, #fffdf8);
	border: 1px solid var(--chn-bp-line, #e5e1da);
	border-radius: var(--chn-bp-radius, 6px);
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
	max-width: 460px; width: 100%;
	padding: 26px 28px 22px;
}
.chn-confirm-modal__title {
	font-family: var(--chn-font-serif, Georgia, serif);
	font-size: 20px;
	line-height: 1.25;
	margin: 0 0 12px;
	color: var(--chn-bp-text, #1d2733);
}
.chn-confirm-modal__body {
	font-family: var(--chn-font-sans, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: var(--chn-bp-muted, #5b6772);
	margin: 0 0 22px;
}
.chn-confirm-modal__actions {
	display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
@media (max-width: 480px) {
	.chn-confirm-modal__actions { justify-content: stretch; }
	.chn-confirm-modal__actions .chn-bp__btn { flex: 1 1 auto; }
}
.chn-bp__btn--success { background: var(--chn-bp-success); color: #fff; border-color: var(--chn-bp-success); }
.chn-bp__btn--small { padding: 6px 12px; font-size: 12px; }
.chn-bp__btn:focus-visible { outline: 2px solid var(--chn-bp-accent); outline-offset: 2px; }
.chn-bp__btn:disabled { opacity: .55; cursor: not-allowed; }
.chn-bp__btn:active:not(:disabled) { transform: translateY(1px); }

/* Loading state on AJAX buttons. Keep the label visible (just dimmed) +
   show a spinner on the right side, so a stuck unlock doesn't leave the
   user staring at an invisible-text button. */
.chn-bp__btn--loading { position: relative; pointer-events: none; padding-right: 36px !important; opacity: .85; }
.chn-bp__btn--loading::after {
	content: '';
	position: absolute;
	width: 14px; height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: chn-bp-spin .7s linear infinite;
	top: 50%; right: 12px;
	margin-top: -7px;
}
@keyframes chn-bp-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- *
 * Status badges                                                   *
 * --------------------------------------------------------------- */
.chn-bp__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.4;
}
.chn-bp__badge--neutral { background: var(--chn-bp-paper); color: var(--chn-bp-muted); }
.chn-bp__badge--info    { background: #dbeafe; color: #1e40af; }
.chn-bp__badge--warn    { background: #fef3c7; color: #92400e; }
.chn-bp__badge--success { background: #dcfce7; color: #166534; }
.chn-bp__badge--accent  { background: var(--chn-bp-accent, #f3802d); color: #fff; }
.chn-bp__bid-card--owner { border-left: 3px solid var(--chn-bp-accent, #f3802d); }

/* --------------------------------------------------------------- *
 * Bid summary panel (detail page) — budget + deadline + countdown.
 * Sits above the scope card so providers see the at-a-glance shape
 * of the project before reading the brief.
 * --------------------------------------------------------------- */
.chn-bp__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--chn-bp-space-3);
	margin: 0 0 var(--chn-bp-space-4);
}
.chn-bp__summary__cell {
	background: var(--chn-bp-paper);
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius-sm, 8px);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.chn-bp__summary__cell--budget   { background: linear-gradient(0deg, rgba(11,59,148,.04), rgba(11,59,148,.04)), var(--chn-bp-paper); border-color: rgba(11,59,148,.18); }
.chn-bp__summary__cell--deadline { background: linear-gradient(0deg, rgba(243,128,45,.04), rgba(243,128,45,.04)), var(--chn-bp-paper); border-color: rgba(243,128,45,.25); }
.chn-bp__summary__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--chn-bp-muted);
}
.chn-bp__summary__value {
	color: var(--chn-bp-text);
	font-size: 14px;
	line-height: 1.4;
}
.chn-bp__summary__value strong {
	font-family: var(--chn-bp-font-serif, Georgia, serif);
	font-size: 22px;
	color: var(--chn-bp-text);
	font-weight: 700;
	display: inline-block;
	letter-spacing: -.01em;
}
.chn-bp__summary__cell--budget .chn-bp__summary__value strong { color: var(--chn-bp-primary, #0b3b94); }
.chn-bp__summary__cell--deadline .chn-bp__summary__value strong { font-size: 16px; }
.chn-bp__countdown,
.chn-bp__summary__countdown {
	margin-top: 6px;
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	background: var(--chn-bp-surface);
	color: var(--chn-bp-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	width: fit-content;
}
.chn-bp__countdown--warn,
.chn-bp__summary__countdown--warn   { background: #fef3c7; color: #92400e; }
.chn-bp__countdown--danger,
.chn-bp__summary__countdown--danger { background: rgba(192,57,43,.12); color: var(--chn-bp-danger, #c0392b); }
.chn-bp__countdown--done,
.chn-bp__summary__countdown--done   { background: var(--chn-bp-surface); color: var(--chn-bp-muted); text-decoration: line-through; }
.chn-bp__bid-card .chn-bp__countdown,
.chn-bp-activity-card .chn-bp__countdown {
	margin-top: 8px;
}
.chn-bp__card--reopen { border-left: 4px solid var(--chn-bp-accent, #f3802d); }
.chn-bp__badge--danger  { background: rgba(192, 57, 43, .1); color: var(--chn-bp-danger); }

/* --------------------------------------------------------------- *
 * Grid / list                                                     *
 * --------------------------------------------------------------- */
.chn-bp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--chn-bp-space-4); }
/* /my-account/ chrome wraps the content area in .woocommerce-MyAccount-content
   which often inherits a narrower max-width. Force our card grid to use the
   full available width inside that wrapper so the board doesn't collapse
   into a one-column list visually (chn2 A3, 2026-06-09). */
.woocommerce-MyAccount-content .chn-bp { max-width: none; width: 100%; }
.woocommerce-MyAccount-content .chn-bp__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.woocommerce-MyAccount-content .chn-bp__header { margin-bottom: var(--chn-bp-space-3); }
.woocommerce-MyAccount-content .chn-bp__bid-card { padding: var(--chn-bp-space-4); }
.chn-bp__bid-card { background: var(--chn-bp-surface); border: 1px solid var(--chn-bp-line); border-radius: var(--chn-bp-radius); padding: var(--chn-bp-space-5); display: flex; flex-direction: column; gap: var(--chn-bp-space-2); }
.chn-bp__bid-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--chn-bp-space-2); }
.chn-bp__bid-card__title { margin: 0; font-size: 17px; color: var(--chn-bp-text); font-weight: 700; line-height: 1.3; }
.chn-bp__bid-card__meta { margin: 0; font-size: 13px; color: var(--chn-bp-muted); }
.chn-bp__bid-card__cta { margin-top: auto; padding-top: var(--chn-bp-space-2); }

/* Table */
.chn-bp__table { width: 100%; border-collapse: collapse; background: var(--chn-bp-surface); border: 1px solid var(--chn-bp-line); border-radius: var(--chn-bp-radius); overflow: hidden; }
.chn-bp__table th { text-align: left; padding: var(--chn-bp-space-3); border-bottom: 2px solid var(--chn-bp-line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--chn-bp-muted); font-weight: 700; background: var(--chn-bp-paper); }
.chn-bp__table td { padding: var(--chn-bp-space-3); border-bottom: 1px solid var(--chn-bp-line); color: var(--chn-bp-text); font-size: 14px; vertical-align: middle; }
.chn-bp__table tr:last-child td { border-bottom: 0; }
.chn-bp__table a { color: var(--chn-bp-primary); font-weight: 700; text-decoration: none; }
.chn-bp__table a:hover { text-decoration: underline; }
/* Last column reserved for row actions — give it enough room so an
   "Open bid →" or "Edit" button doesn't squish to a 30px square. */
.chn-bp__table td:last-child,
.chn-bp__table th:last-child { white-space: nowrap; text-align: right; min-width: 140px; }
.chn-bp__table td:last-child .chn-bp__btn { display: inline-flex; }

/* Empty state */
.chn-bp__empty { text-align: center; padding: var(--chn-bp-space-7) var(--chn-bp-space-4); background: var(--chn-bp-surface); border: 1px dashed var(--chn-bp-line); border-radius: var(--chn-bp-radius); }
.chn-bp__empty h3 { margin: 0 0 var(--chn-bp-space-2); font-family: var(--chn-bp-font-serif); font-size: 22px; color: var(--chn-bp-text); }
.chn-bp__empty p { margin: 0 0 var(--chn-bp-space-4); color: var(--chn-bp-muted); font-size: 15px; }

/* Paywall card */
.chn-bp__paywall { padding: var(--chn-bp-space-5); background: var(--chn-bp-surface); border: 1px solid var(--chn-bp-line); border-left: 4px solid var(--chn-bp-accent); border-radius: var(--chn-bp-radius); text-align: center; }
.chn-bp__paywall h2 { font-family: var(--chn-bp-font-serif); margin: 0 0 var(--chn-bp-space-2); font-size: 24px; color: var(--chn-bp-text); }
.chn-bp__paywall p { color: var(--chn-bp-muted); margin: 0 0 var(--chn-bp-space-4); }
.chn-bp__paywall__price { font-size: 28px; font-weight: 700; color: var(--chn-bp-primary); display: block; margin-bottom: var(--chn-bp-space-4); }

/* Toast */
.chn-bp__toast {
	position: fixed;
	bottom: var(--chn-bp-space-4);
	right: var(--chn-bp-space-4);
	max-width: 360px;
	padding: var(--chn-bp-space-3) var(--chn-bp-space-4);
	background: var(--chn-bp-text);
	color: #fff;
	border-radius: var(--chn-bp-radius);
	box-shadow: 0 10px 28px rgba(0,0,0,.18);
	font-size: 14px;
	z-index: 100000;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}
.chn-bp__toast--show { opacity: 1; transform: translateY(0); }
.chn-bp__toast--success { background: var(--chn-bp-success); }
.chn-bp__toast--error   { background: var(--chn-bp-danger); }

/* Mobile breakpoints */
@media (max-width: 768px) {
	.chn-bp { margin: 32px auto; }
	.chn-bp__row-split,
	.chn-bp__row-triple { grid-template-columns: 1fr; }
	/* Horizontal-scroll table with edge-fade affordance. Wrap the table
	   in a positioned container; the ::after gradient fades the right
	   edge to signal more columns off-screen. JS (bid-platform.js)
	   toggles `is-scrolled-end` when the user reaches the right edge. */
	.chn-bp__table-wrap {
		position: relative;
	}
	.chn-bp__table-wrap::after {
		content: "";
		position: absolute;
		top: 0; right: 0; bottom: 0;
		width: 32px;
		pointer-events: none;
		background: linear-gradient(to right, transparent, var(--chn-bp-surface, #fffdf8));
		transition: opacity .15s ease;
	}
	.chn-bp__table-wrap.is-scrolled-end::after { opacity: 0; }
	.chn-bp__table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
@media (max-width: 480px) {
	.chn-bp__btn { width: 100%; }
	.chn-bp__bid-card { padding: var(--chn-bp-space-4); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.chn-bp__btn { transition: none; }
	.chn-bp__btn--loading::after { animation-duration: 2s; }
}

/* --------------------------------------------------------------- *
 * Shared portal chrome (Wave 1 — chn2 #254)                       *
 * One cohesive header strip across every bid-platform surface so  *
 * the portal reads as one connected experience. Visually it sits  *
 * above the standard .chn-bp page wrapper.                        *
 * --------------------------------------------------------------- */
.chn-bp-chrome {
	background: var(--chn-bp-surface);
	border-bottom: 1px solid var(--chn-bp-line);
	margin: 0 0 var(--chn-bp-space-5);
	padding: 0;
}
.chn-bp-chrome--in-account {
	/* When the chrome renders inside the WC My Account chrome, the
	 * outer WC layout already provides surrounding padding; pull the
	 * chrome flush to the inner edge so the bar feels integrated. */
	margin-left: calc( -1 * var(--chn-bp-space-4) );
	margin-right: calc( -1 * var(--chn-bp-space-4) );
	margin-top: calc( -1 * var(--chn-bp-space-4) );
	border-top: 1px solid var(--chn-bp-line);
	background: var(--chn-bp-surface-alt);
}
.chn-bp-chrome__bar {
	display: flex;
	align-items: center;
	gap: var(--chn-bp-space-4);
	max-width: 1100px;
	margin: 0 auto;
	padding: var(--chn-bp-space-3) 20px;
	flex-wrap: wrap;
}
.chn-bp-chrome__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--chn-bp-space-2);
	font-family: var(--chn-bp-font-serif);
	font-weight: 600;
	font-size: 15px;
	color: var(--chn-bp-text);
	text-decoration: none;
	letter-spacing: -.01em;
	padding-right: var(--chn-bp-space-3);
	border-right: 1px solid var(--chn-bp-line);
	white-space: nowrap;
}
.chn-bp-chrome__brand:hover { color: var(--chn-bp-primary); }
.chn-bp-chrome__brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--chn-bp-primary);
	color: #fff;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1;
}
.chn-bp-chrome__tabs {
	display: flex;
	gap: var(--chn-bp-space-1);
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	flex: 1 1 auto;
	min-width: 0;
}
.chn-bp-chrome__tabs li { margin: 0; padding: 0; list-style: none; }
.chn-bp-chrome__tab {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: var(--chn-bp-radius-sm);
	font-size: 13px;
	font-weight: 600;
	color: var(--chn-bp-muted);
	text-decoration: none;
	letter-spacing: .01em;
	transition: background .15s ease, color .15s ease;
	white-space: nowrap;
}
.chn-bp-chrome__tab:hover {
	background: var(--chn-bp-paper);
	color: var(--chn-bp-primary);
}
.chn-bp-chrome__tab--current {
	background: var(--chn-bp-primary);
	color: #fff;
}
.chn-bp-chrome__tab--current:hover { background: var(--chn-bp-primary-hover); color: #fff; }
.chn-bp-chrome__tab--admin {
	border: 1px dashed var(--chn-bp-accent);
	color: var(--chn-bp-accent);
}
.chn-bp-chrome__tab--admin:hover { color: var(--chn-bp-accent); }
.chn-bp-chrome__tab--admin.chn-bp-chrome__tab--current {
	background: var(--chn-bp-accent);
	color: #fff;
	border-color: var(--chn-bp-accent);
}
.chn-bp-chrome__actions {
	display: inline-flex;
	gap: var(--chn-bp-space-2);
	align-items: center;
	flex-shrink: 0;
}
.chn-bp-chrome__crumbs {
	max-width: 1100px;
	margin: 0 auto;
	padding: 6px 20px var(--chn-bp-space-2);
	font-size: 12px;
	color: var(--chn-bp-muted);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.chn-bp-chrome__crumb {
	color: var(--chn-bp-muted);
	text-decoration: none;
}
.chn-bp-chrome__crumb:hover { color: var(--chn-bp-primary); text-decoration: underline; }
.chn-bp-chrome__crumb--current {
	color: var(--chn-bp-text);
	font-weight: 600;
}
.chn-bp-chrome__crumb-sep {
	color: var(--chn-bp-line);
	font-weight: 400;
}

/* Inside the WC chrome the .chn-bp wrapper's top margin doubles up
 * with our header — remove it so the spacing reads naturally. */
.chn-bp-chrome + .chn-bp { margin-top: 0; }
.chn-bp-chrome--in-account + .chn-bp { margin-top: var(--chn-bp-space-3); }

@media (max-width: 720px) {
	.chn-bp-chrome__bar { gap: var(--chn-bp-space-2); padding: var(--chn-bp-space-2) 16px; }
	.chn-bp-chrome__brand {
		border-right: 0;
		padding-right: 0;
		flex: 1 1 auto;
	}
	.chn-bp-chrome__tabs { width: 100%; order: 3; }
	.chn-bp-chrome__actions { order: 2; }
	.chn-bp-chrome__tab { padding: 5px 10px; font-size: 12px; }
	.chn-bp-chrome__crumbs { padding-left: 16px; padding-right: 16px; }
}

/* --------------------------------------------------------------- *
 * Inline filter bar (Wave 1 — board.php sweep)                    *
 * --------------------------------------------------------------- */
.chn-bp__filter {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: var(--chn-bp-space-3);
	align-items: end;
	padding: var(--chn-bp-space-4);
	background: var(--chn-bp-paper);
	border-radius: var(--chn-bp-radius);
	margin-bottom: var(--chn-bp-space-4);
}
.chn-bp__filter__field { display: flex; flex-direction: column; min-width: 0; }
.chn-bp__filter__field .chn-bp__label { margin-bottom: 4px; font-size: 12px; }
.chn-bp__filter__field .chn-bp__select,
.chn-bp__filter__field .chn-bp__input { font-size: 14px; padding: 8px 10px; }
.chn-bp__filter__actions {
	display: flex;
	gap: var(--chn-bp-space-2);
	align-items: center;
	flex-shrink: 0;
}
.chn-bp__result-count {
	margin: 0 0 var(--chn-bp-space-4);
	font-size: 13px;
	color: var(--chn-bp-muted);
	font-weight: 600;
}
@media (max-width: 720px) {
	.chn-bp__filter { grid-template-columns: 1fr 1fr; }
	.chn-bp__filter__actions { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------- *
 * Status-chip filter row (Wave 1 — owner-list / provider-tenders) *
 * --------------------------------------------------------------- */
.chn-bp__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--chn-bp-space-2);
	margin-bottom: var(--chn-bp-space-4);
	padding-bottom: var(--chn-bp-space-3);
	border-bottom: 1px solid var(--chn-bp-line);
}
.chn-bp__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--chn-bp-muted);
	background: var(--chn-bp-surface);
	border: 1px solid var(--chn-bp-line);
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chn-bp__chip:hover {
	background: var(--chn-bp-paper);
	color: var(--chn-bp-primary);
	border-color: var(--chn-bp-primary);
}
.chn-bp__chip--current {
	background: var(--chn-bp-primary);
	color: #fff;
	border-color: var(--chn-bp-primary);
}
.chn-bp__chip--current:hover {
	background: var(--chn-bp-primary-hover);
	color: #fff;
	border-color: var(--chn-bp-primary-hover);
}
.chn-bp__chip__count {
	font-size: 11px;
	font-weight: 600;
	opacity: .85;
}

/* --------------------------------------------------------------- *
 * Activity feed (Wave 1 — notifications.php sweep)                *
 * --------------------------------------------------------------- */
.chn-bp__feed {
	list-style: none;
	margin: 0;
	padding: 0;
}
.chn-bp__feed__day {
	margin: var(--chn-bp-space-4) 0 var(--chn-bp-space-2);
	padding-bottom: 4px;
	border-bottom: 1px solid var(--chn-bp-line);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--chn-bp-muted);
}
.chn-bp__feed__day:first-child { margin-top: 0; }
.chn-bp__feed__row {
	display: flex;
	align-items: center;
	gap: var(--chn-bp-space-3);
	padding: var(--chn-bp-space-3) 0;
	border-bottom: 1px solid var(--chn-bp-line);
}
.chn-bp__feed__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	background: var(--chn-bp-paper);
	color: var(--chn-bp-text);
	flex-shrink: 0;
}
.chn-bp__feed__row--success .chn-bp__feed__glyph { background: rgba(11,143,61,.12); color: var(--chn-bp-success); }
.chn-bp__feed__row--warn    .chn-bp__feed__glyph { background: rgba(217,119,6,.14); color: var(--chn-bp-warn); }
.chn-bp__feed__row--danger  .chn-bp__feed__glyph { background: rgba(192,57,43,.12); color: var(--chn-bp-danger); }
.chn-bp__feed__row--info    .chn-bp__feed__glyph { background: rgba(21,101,192,.12); color: var(--chn-bp-info); }
.chn-bp__feed__row--neutral .chn-bp__feed__glyph { background: var(--chn-bp-paper); color: var(--chn-bp-muted); }
.chn-bp__feed__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.chn-bp__feed__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--chn-bp-text);
}
.chn-bp__feed__bid {
	font-size: 13px;
	color: var(--chn-bp-primary);
	text-decoration: none;
}
.chn-bp__feed__bid:hover { text-decoration: underline; }
.chn-bp__feed__when {
	font-size: 12px;
	color: var(--chn-bp-muted);
	flex-shrink: 0;
}
@media (max-width: 480px) {
	.chn-bp__feed__when { display: none; }
}

/* --------------------------------------------------------------- *
 * Agreement preview card (Wave 2 Track B — P4 surface)            *
 * --------------------------------------------------------------- */
.chn-bp__agreement-card {
	display: block;
	background: var(--chn-bp-surface);
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius);
	margin: var(--chn-bp-space-5) 0;
	overflow: hidden;
}
.chn-bp__agreement-card__head {
	padding: var(--chn-bp-space-5);
	background: var(--chn-bp-paper);
	border-bottom: 1px solid var(--chn-bp-line);
}
.chn-bp__agreement-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	background: rgba(217, 119, 6, .12);
	color: var(--chn-bp-warn);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: var(--chn-bp-space-2);
}
.chn-bp__agreement-card__title {
	font-family: var(--chn-bp-font-serif);
	font-size: 22px;
	color: var(--chn-bp-text);
	margin: 0 0 6px;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.chn-bp__agreement-card__sub {
	font-size: 13px;
	color: var(--chn-bp-muted);
	margin: 0;
	line-height: 1.55;
}
.chn-bp__agreement-card__body {
	padding: var(--chn-bp-space-5);
	font-size: 14px;
	color: var(--chn-bp-text);
	line-height: 1.6;
}
.chn-bp__agreement {
	font-family: var(--chn-bp-font-serif);
}
.chn-bp__agreement-clause {
	margin: 0 0 var(--chn-bp-space-4);
	padding-bottom: var(--chn-bp-space-4);
	border-bottom: 1px solid var(--chn-bp-line);
}
.chn-bp__agreement-clause:last-child {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}
.chn-bp__agreement-clause h4 {
	margin: 0 0 6px;
	font-family: var(--chn-bp-font-serif);
	font-size: 14px;
	font-weight: 700;
	color: var(--chn-bp-text);
	letter-spacing: .01em;
}
.chn-bp__agreement-clause p { margin: 0; font-size: 14px; line-height: 1.6; }
.chn-bp__agreement-scope { padding: var(--chn-bp-space-3); background: var(--chn-bp-paper); border-radius: var(--chn-bp-radius-sm); }
.chn-bp__agreement-card__foot {
	padding: var(--chn-bp-space-5);
	background: var(--chn-bp-paper);
	border-top: 1px solid var(--chn-bp-line);
}
.chn-bp__agreement-card__actions {
	display: flex;
	gap: var(--chn-bp-space-3);
	flex-wrap: wrap;
	margin-bottom: var(--chn-bp-space-2);
}
.chn-bp__agreement-card__msg {
	min-height: 18px;
	font-size: 13px;
	margin-bottom: var(--chn-bp-space-3);
}
.chn-bp__agreement-card__msg[data-tone="info"] { color: var(--chn-bp-muted); }
.chn-bp__agreement-card__msg[data-tone="ok"]   { color: var(--chn-bp-success); }
.chn-bp__agreement-card__msg[data-tone="err"]  { color: var(--chn-bp-danger); }
.chn-bp__agreement-card__note {
	margin: 0;
	font-size: 12px;
	color: var(--chn-bp-muted);
	font-style: italic;
}

/* --------------------------------------------------------------- *
 * Signature card (Wave 2 Track B — P5 surface)                    *
 * --------------------------------------------------------------- */
.chn-bp__sign-card {
	display: block;
	background: var(--chn-bp-surface);
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius);
	padding: var(--chn-bp-space-5);
	margin: var(--chn-bp-space-5) 0;
}
.chn-bp__sign-card header { margin-bottom: var(--chn-bp-space-3); }
.chn-bp__sign-card h3 {
	font-family: var(--chn-bp-font-serif);
	font-size: 18px;
	margin: 0 0 6px;
	color: var(--chn-bp-text);
}
.chn-bp__muted { font-size: 13px; color: var(--chn-bp-muted); margin: 0; line-height: 1.55; }
.chn-bp__sig-canvas-wrap {
	background: repeating-linear-gradient(
		to bottom,
		var(--chn-bp-surface) 0 38px,
		var(--chn-bp-paper) 38px 39px
	);
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius-sm);
	margin: var(--chn-bp-space-3) 0;
	padding: var(--chn-bp-space-2);
	max-width: 100%;
}
.chn-bp__sig-canvas-wrap canvas {
	display: block;
	width: 100%;
	height: auto;
	max-width: 620px;
	max-height: 200px;
	touch-action: none;
	cursor: crosshair;
	background: var(--chn-bp-surface);
	border-radius: var(--chn-bp-radius-sm);
}
.chn-bp__sign-actions {
	display: flex;
	gap: var(--chn-bp-space-3);
	flex-wrap: wrap;
	margin-top: var(--chn-bp-space-3);
}
.chn-bp__sign-msg {
	margin: var(--chn-bp-space-3) 0 0;
	font-size: 13px;
	min-height: 18px;
}
.chn-bp__sign-msg[data-tone="info"] { color: var(--chn-bp-muted); }
.chn-bp__sign-msg[data-tone="ok"]   { color: var(--chn-bp-success); }
.chn-bp__sign-msg[data-tone="err"]  { color: var(--chn-bp-danger); }
.chn-bp__sig-block {
	margin: var(--chn-bp-space-4) 0 0;
	padding: var(--chn-bp-space-3);
	background: var(--chn-bp-paper);
	border-radius: var(--chn-bp-radius-sm);
}
.chn-bp__sig-block h4 {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--chn-bp-muted);
}
.chn-bp__sig-block img {
	display: block;
	max-width: 320px;
	height: auto;
	margin: 6px 0 0;
	background: var(--chn-bp-surface);
	border: 1px solid var(--chn-bp-line);
	border-radius: 3px;
}

@media (max-width: 480px) {
	.chn-bp__agreement-card__head,
	.chn-bp__agreement-card__body,
	.chn-bp__agreement-card__foot,
	.chn-bp__sign-card { padding: var(--chn-bp-space-4); }
	.chn-bp__sign-actions .chn-bp__btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------- *
 * Pagination strip (Wave 4 Track A — board.php)                   *
 * --------------------------------------------------------------- */
.chn-bp__pager {
	display: flex;
	align-items: center;
	gap: var(--chn-bp-space-3);
	margin: var(--chn-bp-space-5) 0;
	flex-wrap: wrap;
	justify-content: center;
}
.chn-bp__pager__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border-radius: var(--chn-bp-radius-sm);
	border: 1px solid var(--chn-bp-line);
	background: var(--chn-bp-surface);
	color: var(--chn-bp-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chn-bp__pager__btn:hover {
	background: var(--chn-bp-paper);
	border-color: var(--chn-bp-primary);
}
.chn-bp__pager__btn--disabled {
	color: var(--chn-bp-muted);
	border-color: var(--chn-bp-line);
	background: var(--chn-bp-surface);
	opacity: .55;
	cursor: not-allowed;
	pointer-events: none;
}
.chn-bp__pager__nums {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.chn-bp__pager__nums li { margin: 0; padding: 0; }
.chn-bp__pager__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: var(--chn-bp-radius-sm);
	border: 1px solid transparent;
	background: transparent;
	color: var(--chn-bp-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chn-bp__pager__num:hover {
	background: var(--chn-bp-paper);
	color: var(--chn-bp-primary);
	border-color: var(--chn-bp-primary);
}
.chn-bp__pager__num--current {
	background: var(--chn-bp-primary);
	color: #fff;
	border-color: var(--chn-bp-primary);
	cursor: default;
}
.chn-bp__pager__num--current:hover {
	background: var(--chn-bp-primary);
	color: #fff;
	border-color: var(--chn-bp-primary);
}
.chn-bp__pager__ellipsis {
	padding: 0 4px;
	color: var(--chn-bp-muted);
	font-size: 14px;
	user-select: none;
}
@media (max-width: 480px) {
	.chn-bp__pager { gap: var(--chn-bp-space-2); }
	.chn-bp__pager__btn { padding: 6px 10px; font-size: 12px; }
	.chn-bp__pager__num { min-width: 28px; height: 28px; font-size: 12px; }
}

/* --------------------------------------------------------------- *
 * Contrast hardening (Wave 5 Track A — chn2 #305)                 *
 * --------------------------------------------------------------- *
 * Audit finding: the host theme's button + link rules win against
 * .chn-bp__* color declarations because the theme stylesheet loads
 * AFTER bid-platform.css. Result: primary buttons / chrome current-
 * tab pill / current chip rendered with `color: var(--chn-bp-primary)`
 * on top of `background: var(--chn-bp-primary)` — text invisible
 * (1.00 ratio). Hostile theme also forced ghost / danger / link
 * buttons to the theme's pink (~rgb(204,51,102) at ~1.26 ratio).
 *
 * Fix: re-assert foreground + background on every UI surface that
 * carries CHN brand color with !important. Specificity is intent;
 * !important is the correct lever here because the theme rule is
 * a global button-element selector that out-specifies any class
 * selector under cascade order.
 *
 * Also re-base .chn-bp__badge--danger on the same solid-bg-dark-
 * fg pattern as info/warn/success so a downstream theme can't kill
 * its contrast by tinkering with rgba alpha. */
.chn-bp__btn--primary,
.chn-bp__btn--primary:hover,
.chn-bp__btn--primary:focus,
.chn-bp__btn--primary:active,
.chn-bp__btn--primary:visited {
	color: #fff !important;
	background-color: var(--chn-bp-primary) !important;
	border-color: var(--chn-bp-primary) !important;
}
.chn-bp__btn--primary:hover:not(:disabled),
.chn-bp__btn--primary:focus:not(:disabled) {
	background-color: var(--chn-bp-primary-hover) !important;
	border-color: var(--chn-bp-primary-hover) !important;
}
.chn-bp__btn--ghost,
.chn-bp__btn--ghost:hover,
.chn-bp__btn--ghost:focus,
.chn-bp__btn--ghost:visited {
	color: var(--chn-bp-primary) !important;
	background-color: var(--chn-bp-surface) !important;
	border-color: var(--chn-bp-primary) !important;
}
.chn-bp__btn--ghost:hover:not(:disabled) {
	background-color: var(--chn-bp-paper) !important;
}
.chn-bp__btn--danger,
.chn-bp__btn--danger:hover,
.chn-bp__btn--danger:focus,
.chn-bp__btn--danger:visited {
	color: var(--chn-bp-danger) !important;
	background-color: var(--chn-bp-surface) !important;
	border-color: var(--chn-bp-danger) !important;
}
.chn-bp__btn--danger:hover:not(:disabled) {
	background-color: rgba(192, 57, 43, .08) !important;
}
.chn-bp__btn--link,
.chn-bp__btn--link:hover,
.chn-bp__btn--link:focus,
.chn-bp__btn--link:visited {
	color: var(--chn-bp-primary) !important;
}

.chn-bp-chrome__tab--current,
.chn-bp-chrome__tab--current:hover,
.chn-bp-chrome__tab--current:focus,
.chn-bp-chrome__tab--current:visited {
	color: #fff !important;
	background-color: var(--chn-bp-primary) !important;
}
.chn-bp-chrome__tab--current:hover:not(:disabled) {
	background-color: var(--chn-bp-primary-hover) !important;
}
.chn-bp-chrome__tab--admin.chn-bp-chrome__tab--current {
	background-color: var(--chn-bp-accent) !important;
	border-color: var(--chn-bp-accent) !important;
}

.chn-bp__chip--current,
.chn-bp__chip--current:hover,
.chn-bp__chip--current:focus,
.chn-bp__chip--current:visited {
	color: #fff !important;
	background-color: var(--chn-bp-primary) !important;
	border-color: var(--chn-bp-primary) !important;
}

/* Pager num chip — same family treatment. */
.chn-bp__pager__num--current,
.chn-bp__pager__num--current:hover {
	color: #fff !important;
	background-color: var(--chn-bp-primary) !important;
	border-color: var(--chn-bp-primary) !important;
}

/* Re-base the danger badge on the solid pattern so the contrast is
 * mathematically clear instead of depending on the theme's body
 * background staying white. Mirrors info/warn/success treatment.
 * Computed ratio: 7.0+ on white surface. */
.chn-bp__badge--danger {
	background-color: #fee2e2 !important;
	color: #991b1b !important;
}

/* Same hardening for the chip count + label colours so cards above
 * orange / amber accents don't accidentally lose their tonal mark. */
.chn-bp__chip__count { color: inherit !important; }
.chn-bp-chrome__brand,
.chn-bp-chrome__brand:hover,
.chn-bp-chrome__brand:focus,
.chn-bp-chrome__brand:visited {
	color: var(--chn-bp-text) !important;
	background-color: transparent !important;
}
.chn-bp-chrome__brand:hover { color: var(--chn-bp-primary) !important; }

/* Pager prev/next buttons + page-num pills — same theme leak risk.
 * Cascade order: tab > chip > pager — same family. */
.chn-bp__pager__btn,
.chn-bp__pager__btn:hover,
.chn-bp__pager__btn:focus,
.chn-bp__pager__btn:visited {
	color: var(--chn-bp-primary) !important;
}
.chn-bp__pager__num,
.chn-bp__pager__num:hover,
.chn-bp__pager__num:focus,
.chn-bp__pager__num:visited {
	color: var(--chn-bp-muted) !important;
}
.chn-bp__pager__num:hover {
	color: var(--chn-bp-primary) !important;
}

/* --------------------------------------------------------------- *
 * Live activity strip on /bid-v2/ landing (Wave 5 Track C)        *
 * --------------------------------------------------------------- */
.chn-bp__activity-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--chn-bp-space-3);
	margin: var(--chn-bp-space-5) auto var(--chn-bp-space-6);
	padding: var(--chn-bp-space-4) var(--chn-bp-space-5);
	background: var(--chn-bp-paper);
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius);
	max-width: 720px;
}
.chn-bp__activity-strip__cell { text-align: center; }
.chn-bp__activity-strip__num {
	display: block;
	font-family: var(--chn-bp-font-serif);
	font-size: 28px;
	font-weight: 700;
	color: var(--chn-bp-primary);
	letter-spacing: -.02em;
	line-height: 1;
	margin-bottom: 4px;
}
.chn-bp__activity-strip__lbl {
	display: block;
	font-size: 12px;
	color: var(--chn-bp-muted);
	letter-spacing: .02em;
}

/* --------------------------------------------------------------- *
 * Wave 6 Track E (chn2 #331) — attachment chip list + viewer.
 *
 * Surfaced on detail.php, customer-edit.php, proposal-review.php and
 * qs-upload.php via Attachments::render_list() and the shared partial
 * at templates/portal/partials/attachment-list.php.
 *
 * Tokens are read from --chn-bp-* (defined at the top of this file) —
 * no new colour primitives are introduced here.
 * --------------------------------------------------------------- */
.chn-bp__att-list { margin: var(--chn-bp-space-3) 0 0; }
.chn-bp__att-list__heading {
	margin: 0 0 var(--chn-bp-space-2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--chn-bp-muted);
}
.chn-bp__att-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--chn-bp-space-2);
}
.chn-bp__att-empty {
	font-size: 13px;
	color: var(--chn-bp-muted);
	padding: var(--chn-bp-space-3);
	background: var(--chn-bp-paper);
	border: 1px dashed var(--chn-bp-line);
	border-radius: var(--chn-bp-radius-sm);
}
.chn-bp__att-chip {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "icon body actions" "hint hint hint";
	gap: var(--chn-bp-space-2) var(--chn-bp-space-3);
	align-items: center;
	padding: var(--chn-bp-space-3);
	background: var(--chn-bp-surface);
	border: 1px solid var(--chn-bp-line);
	border-radius: var(--chn-bp-radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.chn-bp__att-chip--previewable { cursor: pointer; }
.chn-bp__att-chip--previewable:hover {
	border-color: var(--chn-bp-primary);
	box-shadow: 0 1px 0 rgba(11, 59, 148, .06);
}
.chn-bp__att-chip__icon {
	grid-area: icon;
	font-size: 22px;
	line-height: 1;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--chn-bp-paper);
	border-radius: var(--chn-bp-radius-sm);
}
.chn-bp__att-chip__body { grid-area: body; min-width: 0; }
.chn-bp__att-chip__row {
	display: flex;
	align-items: center;
	gap: var(--chn-bp-space-2);
	flex-wrap: wrap;
}
.chn-bp__att-chip__name {
	font-weight: 700;
	color: var(--chn-bp-text);
	font-size: 14px;
	word-break: break-all;
}
.chn-bp__att-chip__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--chn-bp-muted);
	margin-top: 4px;
}
.chn-bp__att-chip__size,
.chn-bp__att-chip__uploader { font-size: 12px; color: var(--chn-bp-muted); }
.chn-bp__att-chip__actions {
	grid-area: actions;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	flex-shrink: 0;
}
.chn-bp__att-chip__hint {
	grid-area: hint;
	font-size: 11px;
	color: var(--chn-bp-muted);
	padding-left: 44px;
}
.chn-bp__att-chip__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: var(--chn-bp-radius-sm);
	border: 1px solid var(--chn-bp-line);
	background: var(--chn-bp-surface);
	color: var(--chn-bp-primary);
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
}
.chn-bp__att-chip__btn:hover { background: var(--chn-bp-paper); border-color: var(--chn-bp-primary); }
.chn-bp__att-chip__btn--preview {
	background: var(--chn-bp-primary);
	color: #fff;
	border-color: var(--chn-bp-primary);
}
.chn-bp__att-chip__btn--preview:hover {
	background: var(--chn-bp-primary-hover);
	border-color: var(--chn-bp-primary-hover);
	color: #fff;
}
.chn-bp__att-chip__btn:focus-visible {
	outline: 2px solid var(--chn-bp-accent);
	outline-offset: 2px;
}
/* A5 (2026-06-17) — Remove button on the proposal-update "Already
   attached" list. Stays a ghost button until hover so it doesn't
   compete with the primary Download / Preview affordances; flips to a
   danger tone on hover so the destructive intent is unambiguous. */
.chn-bp__att-chip__btn--remove {
	color: var(--chn-bp-danger, #b3261e);
	border-color: var(--chn-bp-line);
}
.chn-bp__att-chip__btn--remove:hover {
	background: var(--chn-bp-danger, #b3261e);
	border-color: var(--chn-bp-danger, #b3261e);
	color: #fff;
}

/* Role + uploader badges piggyback on the shared chip pill style. They
   reuse the muted/info/warn/success/accent palette already defined for
   .chn-bp__badge so no new colour primitives are required. */
.chn-bp__att-chip__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 99px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.4;
	white-space: nowrap;
}
.chn-bp__att-chip__badge--neutral { background: var(--chn-bp-paper); color: var(--chn-bp-muted); }
.chn-bp__att-chip__badge--info    { background: #dbeafe; color: #1e40af; }
.chn-bp__att-chip__badge--warn    { background: #fef3c7; color: #92400e; }
.chn-bp__att-chip__badge--success { background: #dcfce7; color: #166534; }
.chn-bp__att-chip__badge--accent  { background: var(--chn-bp-accent); color: #fff; }

/* Uploader-kind tints — same palette as the role badges, just keyed by
   the kind enum the renderer emits. Keeps "Bid owner" vs "Provider"
   visually distinct at a glance. */
.chn-bp__att-chip__badge--owner-owner    { background: #dbeafe; color: #1e40af; }
.chn-bp__att-chip__badge--owner-provider { background: var(--chn-bp-accent); color: #fff; }
.chn-bp__att-chip__badge--owner-qs       { background: #fef3c7; color: #92400e; }
.chn-bp__att-chip__badge--owner-platform { background: var(--chn-bp-paper); color: var(--chn-bp-muted); }

@media (max-width: 720px) {
	.chn-bp__att-chip {
		grid-template-columns: auto 1fr;
		grid-template-areas: "icon body" "actions actions" "hint hint";
	}
	.chn-bp__att-chip__actions {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
	.chn-bp__att-chip__hint { padding-left: 0; }
}

/* --------------------------------------------------------------- *
 * Attachment viewer modal — opened when the user clicks Preview on
 * a previewable chip. Single instance reused across surfaces; the
 * delegate handler lives in assets/js/bid-platform.js.
 * --------------------------------------------------------------- */
.chn-bp__att-viewer {
	position: fixed;
	inset: 0;
	z-index: 100001; /* above .chn-confirm-modal (100000) so a confirm chain doesn't bury it */
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.chn-bp__att-viewer.is-open { display: flex; }
.chn-bp__att-viewer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 28, 51, .72);
}
.chn-bp__att-viewer__panel {
	position: relative;
	background: var(--chn-bp-surface);
	border-radius: var(--chn-bp-radius);
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
	max-width: 90vw;
	max-height: 90vh;
	width: min(960px, 90vw);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.chn-bp__att-viewer__header {
	display: flex;
	align-items: center;
	gap: var(--chn-bp-space-3);
	padding: var(--chn-bp-space-3) var(--chn-bp-space-4);
	border-bottom: 1px solid var(--chn-bp-line);
	background: var(--chn-bp-paper);
}
.chn-bp__att-viewer__title {
	font-weight: 700;
	font-size: 14px;
	color: var(--chn-bp-text);
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.chn-bp__att-viewer__download {
	font-size: 12px;
	font-weight: 700;
	color: var(--chn-bp-primary);
	text-decoration: underline;
}
.chn-bp__att-viewer__close {
	background: transparent;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: var(--chn-bp-muted);
	cursor: pointer;
	padding: 4px 8px;
}
.chn-bp__att-viewer__close:hover { color: var(--chn-bp-text); }
.chn-bp__att-viewer__close:focus-visible {
	outline: 2px solid var(--chn-bp-accent);
	outline-offset: 2px;
}
.chn-bp__att-viewer__frame {
	flex: 1 1 auto;
	min-height: 60vh;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
}
.chn-bp__att-viewer__frame > iframe,
.chn-bp__att-viewer__frame > embed {
	width: 100%;
	height: 100%;
	min-height: 60vh;
	border: 0;
	background: #fff;
}
.chn-bp__att-viewer__frame > img {
	max-width: 90vw;
	max-height: 80vh;
	height: auto;
	width: auto;
	display: block;
	background: #fff;
}
@media (max-width: 720px) {
	.chn-bp__att-viewer { padding: 0; }
	.chn-bp__att-viewer__panel {
		max-width: 100vw;
		max-height: 100vh;
		width: 100vw;
		height: 100vh;
		border-radius: 0;
	}
	.chn-bp__att-viewer__frame { min-height: 0; }
	.chn-bp__att-viewer__frame > iframe,
	.chn-bp__att-viewer__frame > embed { min-height: 0; height: 100%; }
}

/* --------------------------------------------------------------- *
 * A2 (2026-06-17) — chn-info-icon / chn-info-tooltip                *
 *                                                                 *
 * Reusable info-icon pattern intended for sitewide rollout (F2).  *
 * The button receives focus so a keyboard user can reveal the     *
 * tooltip via Tab + Space/Enter; the [data-chn-info-icon]:focus-  *
 * within rule + :hover handle pointer + touch users. Tooltip      *
 * positions just below the icon and stays inside the form column. *
 * Lives here for now — when the pattern moves global, lift this   *
 * block into the theme stylesheet unchanged.                      *
 * --------------------------------------------------------------- */
.chn-info-icon {
	display: inline-flex;
	align-items: center;
	position: relative;
	margin-inline-start: 6px;
	vertical-align: middle;
	line-height: 1;
}
/* Standard filled-circle info marker (slate grey background, white "i"
 * inside) — Stripe / Bootstrap style. The lowercase "i" glyph is drawn
 * by the inline SVG inside the button; this rule paints the surrounding
 * filled circle. */
.chn-info-icon__btn {
	appearance: none;
	-webkit-appearance: none;
	background: #6b7280;
	border: 0;
	color: #fff;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	padding: 0;
	font-family: inherit;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, box-shadow .15s ease;
}
.chn-info-icon__btn svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: #fff;
}
.chn-info-icon__btn:hover,
.chn-info-icon__btn:focus-visible {
	background: #4b5563;
	color: #fff;
	outline: none;
}
.chn-info-icon__btn:focus-visible {
	box-shadow: 0 0 0 2px rgba(11, 59, 148, 0.28);
}
.chn-info-tooltip {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--chn-bp-text, #1d2733);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	padding: 8px 10px;
	border-radius: var(--chn-bp-radius-sm, 4px);
	width: max-content;
	max-width: 260px;
	white-space: normal;
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .12s ease, visibility .12s ease;
	box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.35);
}
.chn-info-tooltip::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-bottom-color: var(--chn-bp-text, #1d2733);
}
.chn-info-icon:hover .chn-info-tooltip,
.chn-info-icon:focus-within .chn-info-tooltip {
	opacity: 1;
	visibility: visible;
}
/* On narrow viewports nudge the tooltip in from the right edge so a
 * label sitting close to the column edge doesn't clip the tooltip. */
@media (max-width: 520px) {
	.chn-info-tooltip { left: auto; right: 0; transform: none; max-width: 220px; }
	.chn-info-tooltip::before { left: auto; right: 6px; transform: none; }
}

/* Bid progress stays on one readable timeline. On compact screens the
 * containing stage navigation scrolls horizontally instead of breaking the
 * final stages onto a visually disconnected second row. */
.chn-portal-stages,
.chn-bp__stage-rail {
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}
.chn-stage-rail-wrap {
	position: relative;
	padding: 18px 0 8px;
	margin: 0 0 18px;
	min-width: 900px;
}
.chn-stage-rail__connector {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	overflow: visible;
}
.chn-stage-rail__path {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.chn-stage-rail__path--complete {
	stroke: var(--chn-shell-success, #1f9d55);
}
.chn-stage-rail__path--upcoming {
	stroke: #d4d8df;
	stroke-dasharray: 4 5;
}
.chn-stage-rail {
	display: grid;
	grid-template-columns: repeat(9, minmax(88px, 1fr));
	align-items: flex-start;
	gap: 0;
	position: relative;
	z-index: 1;
	padding: 0;
	margin: 0;
	list-style: none;
}
.chn-stage-rail__step {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	padding: 0 6px;
}
.chn-stage-rail__dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #d4d8df;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--chn-shell-muted, #6b7280);
	z-index: 2;
	position: relative;
}
.chn-stage-rail__step.is-complete .chn-stage-rail__dot {
	background: var(--chn-shell-success, #1f9d55);
	border-color: var(--chn-shell-success, #1f9d55);
	color: #ffffff;
}
.chn-stage-rail__step.is-current .chn-stage-rail__dot {
	background: var(--chn-shell-accent, #f3802d);
	border-color: var(--chn-shell-accent, #f3802d);
	color: #ffffff;
	box-shadow: 0 0 0 5px rgba(243, 128, 45, 0.20);
}
.chn-stage-rail__step.is-upcoming .chn-stage-rail__dot {
	background: #ffffff;
	border-color: #d4d8df;
	color: #b6bbc6;
}
.chn-stage-rail__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--chn-shell-text, #1d2733);
	text-align: center;
	line-height: 1.2;
}
.chn-stage-rail__step.is-upcoming .chn-stage-rail__label {
	color: var(--chn-shell-muted, #6b7280);
	font-weight: 500;
}
.chn-stage-rail__time {
	font-size: 10.5px;
	color: var(--chn-shell-muted, #6b7280);
	text-align: center;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
	.chn-stage-rail-wrap { min-width: 840px; }
	.chn-stage-rail__label { font-size: 11px; }
}

.chn-bp__calculated-total {
	background: linear-gradient(135deg, #f2f7ff 0%, #ffffff 100%);
	border: 1px solid #bfd0eb;
	border-radius: 14px;
	padding: 18px;
}
.chn-bp__calculated-total-badge {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-right: 7px;
	border-radius: 999px;
	background: #16764b;
	color: #fff;
	font-size: 13px;
}
.chn-bp__calculated-total input[readonly] {
	background: #fff;
	color: #10284d;
	font-size: 20px;
	font-weight: 800;
	cursor: not-allowed;
}
.chn-bp__proposal-submit-panel {
	border-top: 1px solid var(--chn-bp-line);
	display: grid;
	gap: 16px;
	padding-top: 20px;
}
.chn-bp__proposal-checklist {
	background: #f7f9fc;
	border: 1px solid #dce5f1;
	border-radius: 12px;
	color: #263c5a;
	padding: 14px 16px;
}
.chn-bp__proposal-checklist ul {
	margin: 8px 0 0 20px;
	padding: 0;
}
.chn-bp__proposal-checklist li + li { margin-top: 5px; }

/* One explicit relationship label on every protected bid view. */
.chn-bp__viewer-context {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	padding: 13px 15px;
	background: linear-gradient(135deg, #f2f7ff 0%, #fff 72%);
	border: 1px solid #c9d8ed;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(11, 59, 148, .06);
}
.chn-bp__viewer-context[data-viewer-role="invited_bidder"],
.chn-bp__viewer-context[data-viewer-role="authorised_bidder"] {
	border-left: 4px solid #f3802d;
}
.chn-bp__viewer-context[data-viewer-role="winner"] {
	background: linear-gradient(135deg, #edf9f3 0%, #fff 72%);
	border-color: #b9dfcc;
}
.chn-bp__viewer-context-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: #0b3b94;
	color: #fff;
	font-size: 15px;
	font-weight: 900;
}
.chn-bp__viewer-context[data-viewer-role="winner"] .chn-bp__viewer-context-icon { background: #17764b; }
.chn-bp__viewer-context-copy { display: grid; gap: 1px; min-width: 0; }
.chn-bp__viewer-context-copy > span {
	color: #65758a;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .075em;
	text-transform: uppercase;
}
.chn-bp__viewer-context-copy > strong { color: #10284d; font-size: 16px; line-height: 1.3; }
.chn-bp__viewer-context-copy > small { color: #4d5f78; font-size: 12.5px; line-height: 1.45; }
.chn-bp__viewer-context-action {
	color: #0b3b94;
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}
.chn-bp__viewer-context-action:hover,
.chn-bp__viewer-context-action:focus-visible { color: #c75313; text-decoration: underline; }
.chn-bp__own-proposal-boq {
	margin-top: 20px;
	border: 1px solid #cfdaea;
	border-radius: 13px;
	overflow: hidden;
	background: #fff;
}
.chn-bp__own-proposal-boq > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	background: #f4f7fb;
	color: #10284d;
	cursor: pointer;
}
.chn-bp__own-proposal-boq > summary span { display: grid; gap: 2px; }
.chn-bp__own-proposal-boq > summary small { color: #64748b; font-size: 12px; }
.chn-bp__own-proposal-boq > summary b { color: #0b3b94; white-space: nowrap; }
.chn-bp__own-proposal-boq-body { display: grid; gap: 16px; padding: 16px; }
.chn-bp__own-proposal-boq-body h3 { margin: 0 0 8px; color: #243a59; font-size: 14px; }
.chn-bp__own-proposal-boq-table { overflow-x: auto; }
.chn-bp__own-proposal-boq-table table { width: 100%; min-width: 720px; border-collapse: collapse; }
.chn-bp__own-proposal-boq-table th,
.chn-bp__own-proposal-boq-table td { padding: 9px 10px; border-bottom: 1px solid #e7edf5; text-align: left; vertical-align: top; font-size: 12.5px; }
.chn-bp__own-proposal-boq-table th { color: #607086; font-size: 10.5px; letter-spacing: .045em; text-transform: uppercase; }
.chn-bp__own-proposal-boq-table th:nth-child(n+3),
.chn-bp__own-proposal-boq-table td:nth-child(n+3) { white-space: nowrap; }

/* Contractor bid activity: one durable, searchable register. */
.chn-bp-activity-search {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto auto;
	gap: 10px;
	align-items: center;
	margin: 18px 0;
	padding: 12px;
	background: #f6f8fc;
	border: 1px solid #dce4f1;
	border-radius: 14px;
}
.chn-bp-activity-search input[type="search"] {
	width: 100%;
	min-height: 42px;
	margin: 0;
	border: 1px solid #b9c6dc;
	border-radius: 10px;
	background: #fff;
	color: #172033;
}
.chn-bp-activity-summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 16px 0 10px;
	color: #21314f;
	font-size: 14px;
	font-weight: 700;
}
.chn-bp-activity-summary span {
	color: #647087;
	font-weight: 500;
}
.chn-bp-activity-list {
	display: grid;
	gap: 12px;
}
.chn-bp-activity-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 20px;
	background: #fff;
	border: 1px solid #dce4f1;
	border-left: 4px solid #7890b5;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(16, 43, 82, 0.06);
}
.chn-bp-activity-card--action { border-left-color: #f3802d; }
.chn-bp-activity-card--submitted { border-left-color: #2474d2; }
.chn-bp-activity-card--won { border-left-color: #1f8a57; }
.chn-bp-activity-card--history { border-left-color: #8c96a8; }
.chn-bp-activity-card__heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
}
.chn-bp-activity-card__heading h2 {
	margin: 3px 0 0;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.25;
}
.chn-bp-activity-card__heading h2 a { color: #0b3b94; text-decoration: none; }
.chn-bp-activity-card__heading h2 a:hover,
.chn-bp-activity-card__heading h2 a:focus { color: #d66313; text-decoration: underline; }
.chn-bp-activity-card__code {
	display: block;
	color: #677389;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.chn-bp-activity-card__context {
	margin: 8px 0 14px;
	color: #4b5870;
}
.chn-bp-activity-card__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}
.chn-bp-activity-card__facts div { min-width: 0; }
.chn-bp-activity-card__facts dt {
	margin: 0 0 2px;
	color: #7a8598;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .045em;
	text-transform: uppercase;
}
.chn-bp-activity-card__facts dd {
	margin: 0;
	color: #1f2a3d;
	font-size: 14px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
	.chn-bp__viewer-context { grid-template-columns: 38px minmax(0, 1fr); }
	.chn-bp__viewer-context-action { grid-column: 2; justify-self: start; white-space: normal; }
	.chn-bp__own-proposal-boq > summary { align-items: flex-start; flex-direction: column; }
	.chn-bp-activity-search { grid-template-columns: 1fr 1fr; }
	.chn-bp-activity-search input[type="search"] { grid-column: 1 / -1; }
	.chn-bp-activity-summary { display: block; }
	.chn-bp-activity-summary span { display: block; margin-top: 3px; }
	.chn-bp-activity-card { grid-template-columns: 1fr; padding: 16px; }
	.chn-bp-activity-card > .chn-bp__btn { width: 100%; justify-content: center; }
	.chn-bp-activity-card__facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
	.chn-bp-activity-card__heading { display: block; }
	.chn-bp-activity-card__heading .chn-bp__badge { margin-top: 10px; }
	.chn-bp-activity-card__facts { grid-template-columns: 1fr; }
}

.chn-bp__linked-design {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
	padding: 12px;
	border: 1px solid rgba(11, 59, 148, .16);
	border-radius: 14px;
	background: linear-gradient(135deg, #fff 0%, #f5f8fe 100%);
}
.chn-bp__linked-design-image {
	display: grid;
	place-items: center;
	width: 88px;
	height: 68px;
	overflow: hidden;
	border-radius: 10px;
	background: #e8eef9;
	color: var(--chn-bp-primary);
	font-size: 30px;
}
.chn-bp__linked-design-image img { width: 100%; height: 100%; object-fit: cover; }
.chn-bp__linked-design > div { min-width: 0; }
.chn-bp__linked-design > div > span { display: block; color: var(--chn-bp-accent); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.chn-bp__linked-design h2 { margin: 3px 0 2px; color: var(--chn-bp-text); font-size: clamp(17px, 2vw, 21px); line-height: 1.2; }
.chn-bp__linked-design p { margin: 0; color: var(--chn-bp-muted); font-size: 13px; }

@media (max-width: 620px) {
	.chn-bp__linked-design { grid-template-columns: 72px minmax(0, 1fr); }
	.chn-bp__linked-design-image { width: 72px; height: 62px; }
	.chn-bp__linked-design > .chn-bp__btn { grid-column: 1 / -1; justify-content: center; width: 100%; }
}

/* Proposal review: aligned, line-by-line BoQ comparison. */
.chn-bp__proposal-view-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	max-width: 720px;
	margin: 0 0 22px;
	padding: 6px;
	border: 1px solid #dce4f1;
	border-radius: 16px;
	background: #f3f6fb;
}
.chn-bp__proposal-view-switch a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 13px 16px;
	border-radius: 11px;
	color: #43516a;
	font-weight: 800;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.chn-bp__proposal-view-switch a:hover,
.chn-bp__proposal-view-switch a:focus-visible {
	color: #0b3b94;
	background: #fff;
}
.chn-bp__proposal-view-switch a.is-active {
	color: #fff;
	background: #0b3b94;
	box-shadow: 0 8px 20px rgba(11, 59, 148, .2), inset 0 -3px 0 #ef7a1a;
}
.chn-bp__proposal-view-switch small {
	color: inherit;
	font-size: 11px;
	font-weight: 700;
	opacity: .74;
	white-space: nowrap;
}
.chn-bp__compare-empty {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 26px;
	border: 1px solid #dce4f1;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff 0%, #f4f7fc 100%);
}
.chn-bp__compare-empty > span {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	color: #fff;
	background: #0b3b94;
	font-size: 24px;
}
.chn-bp__compare-empty h2 { margin: 0 0 5px; color: #17253d; font-size: 21px; }
.chn-bp__compare-empty p { max-width: 760px; margin: 0 0 16px; color: #58667b; }
.chn-bp__boq-compare { min-width: 0; }
.chn-bp__boq-compare-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 16px;
	padding: 24px;
	border-radius: 18px;
	background: linear-gradient(125deg, #082c6f 0%, #0b3b94 62%, #1453b4 100%);
	color: #fff;
	box-shadow: 0 14px 36px rgba(8, 44, 111, .18);
}
.chn-bp__boq-compare-head .chn-bp__eyebrow { color: #f9a04e; }
.chn-bp__boq-compare-head h2 { margin: 3px 0 4px; color: #fff !important; font-family: var(--chn-bp-font-sans, sans-serif) !important; font-size: clamp(23px, 3vw, 32px); }
.chn-bp__boq-compare-head p { max-width: 680px; margin: 0; color: rgba(255,255,255,.8); }
.chn-bp__boq-compare-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 7px;
	flex: 0 0 auto;
}
.chn-bp__boq-compare-controls button {
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,.32);
	border-radius: 9px;
	background: rgba(255,255,255,.1);
	color: #fff !important;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.chn-bp__boq-compare-controls button:hover,
.chn-bp__boq-compare-controls button:focus-visible,
.chn-bp__boq-compare-controls button.is-active {
	border-color: #f9a04e;
	background: #ef7a1a;
}
.chn-bp__boq-compare-controls button:active { transform: translateY(1px); }
.chn-bp__compare-legend {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid #e1e7f0;
	border-radius: 11px;
	background: #fff;
	color: #415069;
	font-size: 12px;
	font-weight: 700;
}
.chn-bp__compare-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chn-bp__compare-legend i { width: 12px; height: 12px; border: 1px solid #d9e1ed; border-radius: 3px; background: #f6f8fb; }
.chn-bp__compare-legend i.chn-bp__compare-legend-low { border-color: #79bb9a; background: #e7f7ef; }
.chn-bp__compare-legend small { margin-left: auto; color: #738096; font-weight: 600; }
.chn-bp__compare-contractors {
	display: grid;
	grid-template-columns: repeat(var(--compare-contractors), minmax(235px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.chn-bp__compare-contractor {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 13px;
	min-width: 235px;
	padding: 17px;
	border: 1px solid #dfe5ef;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 7px 18px rgba(29, 48, 79, .06);
}
.chn-bp__compare-contractor.is-lowest { border-color: #70b58f; box-shadow: inset 0 4px 0 #26935d, 0 7px 18px rgba(26, 120, 73, .08); }
.chn-bp__compare-contractor-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chn-bp__compare-contractor-person > img,
.chn-bp__compare-contractor-person > span {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border-radius: 50%;
	background: #e9effa;
	color: #0b3b94;
	font-size: 18px;
	font-weight: 850;
	object-fit: cover;
}
.chn-bp__compare-contractor-person div { min-width: 0; }
.chn-bp__compare-contractor-person strong,
.chn-bp__compare-contractor-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chn-bp__compare-contractor-person strong { color: #17253d; }
.chn-bp__compare-contractor-person small { margin-top: 2px; color: #748096; font-size: 11px; }
.chn-bp__compare-contractor-total small,
.chn-bp__compare-contractor-total strong,
.chn-bp__compare-contractor-total em { display: block; }
.chn-bp__compare-contractor-total small { color: #748096; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.chn-bp__compare-contractor-total strong { margin-top: 2px; color: #0b3b94; font-size: 19px; font-variant-numeric: tabular-nums; }
.chn-bp__compare-contractor-total em { margin-top: 3px; color: #177447; font-size: 11px; font-style: normal; font-weight: 750; }
.chn-bp__compare-contractor-total em.is-neutral { color: #69758a; }
.chn-bp__compare-contractor-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.chn-bp__compare-contractor-meta span { padding: 4px 8px; border-radius: 999px; background: #f1f4f9; color: #5e6a7e; font-size: 10px; font-weight: 800; }
.chn-bp__compare-contractor .chn-bp__btn { width: 100%; margin-top: auto; justify-content: center; }
.chn-bp__compare-scroll-note {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
	color: #5e6b80;
	font-size: 12px;
	font-weight: 700;
}
.chn-bp__compare-scroll-note span { color: #ef7a1a; font-size: 18px; }
.chn-bp__boq-compare-sections { display: grid; gap: 10px; min-width: 0; }
.chn-bp__boq-compare-section {
	min-width: 0;
	border: 1px solid #dfe5ef;
	border-radius: 14px;
	background: #fff;
	overflow: clip;
	box-shadow: 0 5px 16px rgba(29, 48, 79, .045);
}
.chn-bp__boq-compare-section > summary {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-height: 66px;
	padding: 12px 16px;
	background: #f7f9fc;
	color: #17253d;
	cursor: pointer;
	list-style: none;
}
.chn-bp__boq-compare-section > summary::-webkit-details-marker { display: none; }
.chn-bp__boq-compare-section[open] > summary { border-bottom: 1px solid #dfe5ef; background: #f1f5fb; }
.chn-bp__compare-chevron { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #e3eaf7; }
.chn-bp__compare-chevron::after { content: ''; position: absolute; left: 6px; top: 5px; width: 5px; height: 5px; border-right: 2px solid #0b3b94; border-bottom: 2px solid #0b3b94; transform: rotate(45deg); transition: transform .18s ease, top .18s ease; }
.chn-bp__boq-compare-section[open] .chn-bp__compare-chevron::after { top: 7px; transform: rotate(225deg); }
.chn-bp__boq-compare-section > summary > span:nth-child(2) strong,
.chn-bp__boq-compare-section > summary > span:nth-child(2) small { display: block; }
.chn-bp__boq-compare-section > summary > span:nth-child(2) small { margin-top: 2px; color: #7a8598; font-size: 11px; }
.chn-bp__boq-compare-section > summary > em { color: #177447; font-size: 12px; font-style: normal; font-weight: 750; white-space: nowrap; }
.chn-bp__compare-section-body { min-width: 0; padding: 14px; }
.chn-bp__compare-section-totals {
	display: grid;
	grid-template-columns: repeat(var(--compare-contractors), minmax(160px, 1fr));
	gap: 8px;
	margin-bottom: 12px;
	overflow-x: auto;
}
.chn-bp__compare-section-totals > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 10px;
	min-width: 160px;
	padding: 9px 11px;
	border: 1px solid #e2e7ef;
	border-radius: 9px;
	background: #fafbfd;
}
.chn-bp__compare-section-totals > div.is-lowest { border-color: #9ccfb4; background: #eef9f3; }
.chn-bp__compare-section-totals span { overflow: hidden; color: #68758a; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.chn-bp__compare-section-totals strong { color: #182740; font-size: 13px; font-variant-numeric: tabular-nums; }
.chn-bp__compare-section-totals small { grid-column: 1 / -1; color: #177447; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.chn-bp__compare-table-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow: auto;
	border: 1px solid #dfe5ef;
	border-radius: 11px;
	scrollbar-color: #aeb9ca #eef2f7;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.chn-bp__compare-table-wrap:focus-visible { outline: 3px solid rgba(239, 122, 26, .32); outline-offset: 2px; }
.chn-bp__compare-table {
	width: 100%;
	min-width: var(--compare-table-width);
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	font-size: 12px;
}
.chn-bp__compare-table th,
.chn-bp__compare-table td { padding: 12px; border-right: 1px solid #e5e9f0; border-bottom: 1px solid #e5e9f0; vertical-align: middle; }
.chn-bp__compare-table tr:last-child th,
.chn-bp__compare-table tr:last-child td { border-bottom: 0; }
.chn-bp__compare-table th:last-child,
.chn-bp__compare-table td:last-child { border-right: 0; }
.chn-bp__compare-table thead th {
	position: sticky;
	top: 0;
	z-index: 3;
	background: #172b4c;
	color: #fff;
	font-size: 10px;
	letter-spacing: .05em;
	text-align: right;
	text-transform: uppercase;
}
.chn-bp__compare-table thead th:first-child { left: 0; z-index: 5; min-width: 300px; text-align: left; }
.chn-bp__compare-table thead th:nth-child(2) { width: 74px; text-align: center; }
.chn-bp__compare-table thead th span,
.chn-bp__compare-table thead th small { display: block; }
.chn-bp__compare-table thead th small { margin-top: 2px; color: rgba(255,255,255,.64); font-size: 8px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.chn-bp__compare-table tbody th {
	position: sticky;
	left: 0;
	z-index: 2;
	width: 300px;
	min-width: 300px;
	max-width: 300px;
	background: #fbfcfe;
	box-shadow: 8px 0 14px -13px #17253d;
	text-align: left;
	white-space: normal !important;
}
.chn-bp__compare-table tbody th code,
.chn-bp__compare-table tbody th span,
.chn-bp__compare-table tbody th small { display: block; }
.chn-bp__compare-table tbody th code { margin-bottom: 3px; color: #0b3b94; font: 800 10px/1.2 var(--chn-bp-font-mono, monospace); }
.chn-bp__compare-table tbody th span { color: #26334a; font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; white-space: normal !important; }
.chn-bp__compare-table tbody th small { margin-top: 3px; color: #7b8799; font-size: 10px; }
.chn-bp__compare-table tbody td:nth-child(2) { color: #48566d; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; }
.chn-bp__compare-price { min-width: 220px; background: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.chn-bp__compare-price > span,
.chn-bp__compare-price > strong,
.chn-bp__compare-price > small { display: block; }
.chn-bp__compare-price > span { color: #758197; font-size: 10px; }
.chn-bp__compare-price > span::before { content: 'Unit '; }
.chn-bp__compare-price > strong { margin-top: 2px; color: #1d2b43; font-size: 13px; }
.chn-bp__compare-price > strong::before { content: 'Line '; color: #788498; font-size: 9px; font-weight: 700; }
.chn-bp__compare-price > small { margin-top: 3px; color: #177447; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.chn-bp__compare-price > em { color: #8993a4; font-size: 11px; font-style: normal; }
.chn-bp__compare-price.is-lowest { background: #edf8f2; }
.chn-bp__boq-compare.is-differences-only tr[data-all-equal="1"] { display: none; }

@media (max-width: 900px) {
	.chn-bp__boq-compare-head { align-items: flex-start; flex-direction: column; }
	.chn-bp__boq-compare-controls { justify-content: flex-start; }
	.chn-bp__compare-legend { align-items: flex-start; flex-wrap: wrap; }
	.chn-bp__compare-legend small { width: 100%; margin-left: 0; }
	.chn-bp__compare-contractors { grid-template-columns: repeat(var(--compare-contractors), minmax(245px, 78vw)); }
	.chn-bp__compare-scroll-note { display: flex; }
}
@media (max-width: 620px) {
	.chn-bp__proposal-view-switch { max-width: none; }
	.chn-bp__proposal-view-switch a { align-items: flex-start; flex-direction: column; gap: 2px; padding: 11px 12px; }
	.chn-bp__proposal-view-switch small { white-space: normal; }
	.chn-bp__compare-empty { grid-template-columns: 1fr; padding: 20px; }
	.chn-bp__boq-compare-head { padding: 20px 17px; border-radius: 14px; }
	.chn-bp__boq-compare-controls { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.chn-bp__boq-compare-controls button:first-child { grid-column: 1 / -1; }
	.chn-bp__compare-legend span { white-space: normal; }
	.chn-bp__boq-compare-section > summary { grid-template-columns: 22px minmax(0, 1fr); }
	.chn-bp__boq-compare-section > summary > em { grid-column: 2; white-space: normal; }
	.chn-bp__compare-section-body { padding: 10px; }
	.chn-bp__compare-table { min-width: var(--compare-table-width-mobile); }
	.chn-bp__compare-table thead th:first-child,
	.chn-bp__compare-table tbody th { width: 190px; min-width: 190px; max-width: 190px; }
	.chn-bp__compare-price { min-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
	.chn-bp__proposal-view-switch a,
	.chn-bp__boq-compare-controls button,
	.chn-bp__compare-chevron::after { transition: none; }
}
