.portal-price-surface .portal-price-panel {
    background: linear-gradient(135deg, rgba(248, 255, 253, .98), rgba(227, 248, 242, .92));
    border: 1px solid rgba(0, 134, 118, .26);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(0, 92, 83, .10);
    color: #083832;
    margin-top: 0;
    min-width: 0;
    padding: 12px;
}

.portal-price-surface .portal-price-panel.is-collapsed .portal-price-header {
    margin-bottom: 0;
}

.portal-price-surface .portal-price-header {
    display: grid;
    gap: 7px;
    margin-bottom: 10px;
}

.portal-price-surface .portal-price-header-top,
.portal-price-surface .portal-price-meta-row,
.portal-price-surface .portal-price-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.portal-price-surface .portal-price-header-top,
.portal-price-surface .portal-price-meta-row {
    justify-content: space-between;
}

.portal-price-surface .portal-price-kicker {
    color: #007c70;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.portal-price-surface .portal-price-header h3 {
    border: 1px solid rgba(0, 134, 118, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .62);
    font-size: 1rem;
    line-height: 1.24;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    padding: 6px 8px;
}

.portal-price-surface .portal-price-header-divider {
    border-bottom: 1px solid rgba(0, 134, 118, .24);
    height: 0;
}

.portal-price-surface .portal-price-refresh,
.portal-price-surface .portal-price-search,
.portal-price-surface .portal-price-show-progress,
.portal-price-surface .portal-price-cancel,
.portal-price-surface .portal-price-collapse {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 900;
    justify-content: center;
    min-height: 30px;
    white-space: nowrap;
}

.portal-price-surface .portal-price-refresh {
    background: #eefaf7;
    border: 1px solid rgba(0, 134, 118, .35);
    color: #006f64;
    min-width: 30px;
    padding: 0 8px;
}

.portal-price-surface .portal-price-collapse {
    background: #eefaf7;
    border: 1px solid rgba(0, 134, 118, .35);
    color: #006f64;
    min-width: 30px;
    padding: 0 8px;
}

.portal-price-surface .portal-price-search {
    background: #007c70;
    border: 1px solid rgba(0, 134, 118, .45);
    box-shadow: 0 8px 18px rgba(0, 124, 112, .16);
    color: white;
    gap: 5px;
    padding: 6px 10px;
    text-align: center;
    white-space: normal;
}

.portal-price-surface .portal-price-search span {
    line-height: 1.14;
}

.portal-price-surface .portal-price-cancel {
    background: #fff1f2;
    border: 1px solid rgba(220, 53, 69, .34);
    color: #a11f2a;
    gap: 5px;
    padding: 6px 10px;
}

.portal-price-surface .portal-price-show-progress {
    background: #eef7ff;
    border: 1px solid rgba(25, 118, 210, .3);
    color: #0b5f9f;
    gap: 5px;
    max-width: min(22rem, 48vw);
    padding: 6px 10px;
}

.portal-price-surface .portal-price-show-progress span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-price-surface .portal-price-refresh svg,
.portal-price-surface .portal-price-search svg,
.portal-price-surface .portal-price-show-progress svg,
.portal-price-surface .portal-price-cancel svg,
.portal-price-surface .portal-price-collapse svg {
    height: 14px;
    width: 14px;
}

.portal-price-surface .portal-price-refresh:disabled,
.portal-price-surface .portal-price-search:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.portal-price-surface .portal-price-refresh:hover,
.portal-price-surface .portal-price-show-progress:hover,
.portal-price-surface .portal-price-collapse:hover {
    background: #dff7ef;
    color: #005c53;
}

.portal-price-surface .portal-price-cancel:hover {
    background: #ffe4e6;
    color: #881421;
}

.portal-price-surface .portal-price-chip,
.portal-price-surface .portal-price-badges span {
    align-items: center;
    background: #eefaf7;
    border: 1px solid rgba(0, 134, 118, .25);
    border-radius: 999px;
    color: #006f64;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 800;
    padding: 2px 7px;
}

.portal-price-surface .portal-price-time-chip {
    margin-left: auto;
}

.portal-price-surface .portal-price-meta-row {
    margin-bottom: 8px;
}

.portal-price-surface .portal-price-search-subject {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.portal-price-surface .portal-price-query-chip {
    max-width: min(100%, 760px);
    overflow-wrap: anywhere;
    white-space: normal;
}

.portal-price-surface .portal-price-runner-options {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 8px;
}

.portal-price-surface .portal-price-progress-toggle {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(0, 134, 118, .18);
    border-radius: 12px;
    color: #244d47;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 46px;
    padding: 8px 10px;
}

.portal-price-surface .portal-price-progress-toggle input {
    accent-color: #047857;
    flex: 0 0 auto;
    height: 1.1rem;
    width: 1.1rem;
}

.portal-price-surface .portal-price-progress-toggle span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.portal-price-surface .portal-price-progress-toggle strong {
    color: #063f38;
    font-size: .86rem;
}

.portal-price-surface .portal-price-progress-toggle small {
    color: #668078;
    font-size: .72rem;
    line-height: 1.2;
}

.portal-price-surface .portal-price-browser-toggle {
    background: #f0f9ff;
    border-color: rgba(14, 116, 144, .22);
}

.portal-price-surface .portal-price-refresh-mode {
    align-items: stretch;
}

.portal-price-surface .portal-price-refresh-mode select {
    align-self: center;
    background: #ffffff;
    border: 1px solid rgba(0, 134, 118, .28);
    border-radius: 10px;
    color: #063f38;
    font-size: .8rem;
    font-weight: 800;
    min-height: 32px;
    min-width: 11rem;
    padding: 4px 8px;
}

.portal-price-surface .portal-price-refresh-mode select:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.portal-price-surface .portal-price-manual-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.portal-price-surface .portal-price-manual-actions button {
    background: #ffffff;
    border: 1px solid rgba(0, 134, 118, .24);
    border-radius: 999px;
    color: #006f64;
    font-size: .72rem;
    font-weight: 850;
    min-height: 26px;
    padding: 3px 8px;
}

.portal-price-surface .portal-price-manual-actions button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.portal-price-surface .portal-price-select-cell {
    min-width: 4.75rem;
}

.portal-price-surface .portal-price-select-cell label {
    align-items: center;
    color: #006f64;
    cursor: pointer;
    display: inline-flex;
    font-size: .68rem;
    font-weight: 850;
    gap: 4px;
    white-space: nowrap;
}

.portal-price-surface .portal-price-select-cell input {
    accent-color: #047857;
    height: 1rem;
    width: 1rem;
}

.portal-price-surface .portal-price-inline-progress {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #0f3f75;
    display: flex;
    gap: 9px;
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 8px 10px;
}

.portal-price-surface .portal-price-inline-progress.is-info {
    background: #f0fbf8;
    border-color: rgba(0, 134, 118, .22);
    color: #075f56;
}

.portal-price-surface .portal-price-inline-progress.is-canceling,
.portal-price-surface .portal-price-inline-progress.is-error {
    background: #fff1f2;
    border-color: rgba(220, 53, 69, .28);
    color: #991b1b;
}

.portal-price-surface .portal-price-inline-progress > span:not(.portal-price-inline-spinner) {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.portal-price-surface .portal-price-inline-progress strong {
    font-size: .82rem;
}

.portal-price-surface .portal-price-inline-progress small {
    color: #35534c;
    font-size: .76rem;
    font-weight: 800;
    margin-left: 0;
}

.portal-price-surface .portal-price-inline-spinner {
    animation: portal-price-spin .8s linear infinite;
    border: 2px solid #bfdbfe;
    border-radius: 999px;
    border-top-color: #2563eb;
    flex: 0 0 auto;
    height: 1rem;
    width: 1rem;
}

@keyframes portal-price-spin {
    to {
        transform: rotate(360deg);
    }
}

.portal-price-surface .portal-price-status {
    align-items: center;
    border: 1px solid rgba(0, 134, 118, .22);
    border-radius: 12px;
    background: #f0fbf8;
    color: #075f56;
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    font-weight: 750;
    gap: .5rem .75rem;
    margin-bottom: 8px;
    padding: 8px 10px;
}

.portal-price-surface .portal-price-status-content {
    align-items: center;
    display: flex;
    flex: 1 1 14rem;
    gap: .55rem;
    min-width: 0;
}

.portal-price-surface .portal-price-status-content > span:last-child {
    min-width: 0;
}

.portal-price-surface .portal-price-status-progress {
    flex: 0 1 auto;
    max-width: 100%;
}

.portal-price-surface .portal-price-status.is-error {
    background: #fff1f2;
    border-color: rgba(220, 53, 69, .25);
    color: #9d1c2c;
}

.portal-price-surface .portal-price-status.is-info {
    background: #f1fbf8;
    color: #075f56;
}

.portal-price-surface .portal-price-summary {
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(13rem, 1.35fr) repeat(4, minmax(6.5rem, .8fr));
    margin-bottom: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.portal-price-surface .portal-price-metric {
    align-content: center;
    background: white;
    border: 1px solid rgba(0, 134, 118, .16);
    border-radius: 12px;
    display: grid;
    gap: 2px;
    min-height: 42px;
    padding: 7px 9px;
}

.portal-price-surface .portal-price-metric span {
    color: #668078;
    font-size: .66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-price-surface .portal-price-metric strong {
    color: #053d36;
    font-size: .9rem;
    line-height: 1.12;
}

.portal-price-surface .portal-price-metric small {
    color: #007c70;
    font-weight: 900;
}

.portal-price-surface .portal-price-rec {
    background: #effbf7;
    border-color: rgba(0, 134, 118, .28);
}

.portal-price-surface .portal-price-rec strong {
    font-size: 1.45rem;
}

.portal-price-surface .portal-price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.portal-price-surface .portal-price-captcha-tabs {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 8px;
    padding: .25rem;
}

.portal-price-surface .portal-price-captcha-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #334155;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 850;
    gap: .35rem;
    min-height: 1.9rem;
    padding: .38rem .58rem;
}

.portal-price-surface .portal-price-captcha-tabs button svg {
    height: .88rem;
    width: .88rem;
}

.portal-price-surface .portal-price-captcha-tabs button strong {
    background: #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    font-size: .7rem;
    line-height: 1;
    min-width: 1.25rem;
    padding: .18rem .4rem;
    text-align: center;
}

.portal-price-surface .portal-price-captcha-tabs button.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .16);
}

.portal-price-surface .portal-price-captcha-tabs button.active strong {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.portal-price-surface .portal-price-captcha-tabs button:not(:disabled):hover,
.portal-price-surface .portal-price-captcha-tabs button:not(:disabled):focus-visible {
    background: color-mix(in srgb, #0d6efd 10%, #fff);
    outline: 0;
}

.portal-price-surface .portal-price-captcha-tabs button.active:not(:disabled):hover,
.portal-price-surface .portal-price-captcha-tabs button.active:not(:disabled):focus-visible {
    background: #0b5ed7;
}

.portal-price-surface .portal-price-table-wrap {
    background: white;
    border: 1px solid rgba(0, 134, 118, .14);
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: visible;
}

.portal-price-surface .portal-price-table {
    border-collapse: collapse;
    font-size: .78rem;
    table-layout: fixed;
    width: max(100%, 56rem);
    min-width: 56rem;
}

.portal-price-surface .portal-price-table th,
.portal-price-surface .portal-price-table td {
    border-bottom: 1px solid rgba(0, 134, 118, .12);
    overflow-wrap: break-word;
    padding: 6px 7px;
    text-align: left;
    vertical-align: top;
}

.portal-price-surface .portal-price-table th {
    background: #eaf8f4;
    color: #244d47;
    font-size: .68rem;
    text-transform: uppercase;
}

.portal-price-surface .portal-price-table tbody tr {
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

.portal-price-surface .portal-price-table tbody tr:hover td {
    background: #f5fcfa;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-selected td {
    background: #eef6ff;
    box-shadow: inset 0 1px 0 rgba(37, 99, 235, .12), inset 0 -1px 0 rgba(37, 99, 235, .12);
}

.portal-price-surface .portal-price-table tbody tr.portal-price-selected td:first-child {
    box-shadow: inset 4px 0 0 #3b82f6, inset 0 1px 0 rgba(37, 99, 235, .12), inset 0 -1px 0 rgba(37, 99, 235, .12);
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td {
    background: #eaf8dc;
    box-shadow: inset 0 1px 0 rgba(91, 141, 43, .18), inset 0 -1px 0 rgba(91, 141, 43, .18);
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td:first-child {
    box-shadow: inset 5px 0 0 #6fb23e, inset 0 1px 0 rgba(91, 141, 43, .18), inset 0 -1px 0 rgba(91, 141, 43, .18);
}

.portal-price-surface .portal-price-name-line {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.portal-price-surface .portal-price-table .portal-price-effective-head {
    text-align: center;
    color: #4f8f25;
}

.portal-price-surface .portal-price-effective-cell {
    text-align: center;
}

.portal-price-surface .portal-price-effective-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid #5b8d2b;
    border-radius: 0.35rem;
    background: #6fb23e;
    color: #fff;
}

.portal-price-surface .portal-price-effective-check svg {
    width: 0.95rem;
    height: 0.95rem;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-pending td {
    background: #f8fafc;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-running td {
    background: #eff6ff;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-running td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-found td {
    background: #eff6ff;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-found td:first-child {
    box-shadow: inset 4px 0 0 #2563eb;
}

/* Neutral, not amber: "asked and it had nothing" is a normal result of a healthy run. */
.portal-price-surface .portal-price-table tbody tr.portal-price-row-not-found td {
    background: #f8fafc;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-not-found td:first-child {
    box-shadow: inset 4px 0 0 #94a3b8;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-error td {
    background: #fff;
}

/* A canceled row is not a broken row, so it loses the error tint the two used to share. */
.portal-price-surface .portal-price-table tbody tr.portal-price-row-canceled td {
    background: #f8fafc;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-canceled td:first-child {
    box-shadow: inset 4px 0 0 #94a3b8;
}

/* Never asked: no tint at all, only the faintest rail, so a plan skip cannot be mistaken for a result. */
.portal-price-surface .portal-price-table tbody tr.portal-price-row-plan-skipped td:first-child {
    box-shadow: inset 4px 0 0 #cbd5e1;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td {
    background: #eaf8dc;
    box-shadow: inset 0 1px 0 rgba(91, 141, 43, .18), inset 0 -1px 0 rgba(91, 141, 43, .18);
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td:first-child {
    box-shadow: inset 5px 0 0 #6fb23e, inset 0 1px 0 rgba(91, 141, 43, .18), inset 0 -1px 0 rgba(91, 141, 43, .18);
}

.portal-price-surface .portal-price-table a {
    color: #007c70;
    font-weight: 850;
    text-decoration: none;
}

.portal-price-surface .portal-price-table a:hover,
.portal-price-surface .portal-price-table a:focus-visible {
    color: #005c53;
    text-decoration: underline;
}

.portal-price-surface .portal-price-table small {
    color: #668078;
    display: block;
    margin-top: 2px;
}

.portal-price-surface .portal-price-empty-row {
    cursor: default;
}

.portal-price-surface .portal-price-empty-row td {
    background: #f8fcfb;
    color: #668078;
    font-weight: 750;
    padding: 14px 10px;
    text-align: center;
}

.portal-price-surface .portal-price-ready,
.portal-price-surface .portal-price-ai-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
}

.portal-price-surface .portal-price-ready.is-ready {
    background: #def8ed;
    color: #08734f;
}

.portal-price-surface .portal-price-ready.is-draft {
    background: #f3f6f5;
    color: #7a8c87;
}

.portal-price-surface .portal-price-ai-pill {
    background: #eaf8f4;
    border: 1px solid rgba(0, 134, 118, .22);
    color: #006f64;
}

.portal-price-surface .portal-price-availability-cell {
    color: #35534c;
    display: inline-block;
    font-weight: 750;
    max-width: 100%;
}

.portal-price-surface .portal-price-rate-cell {
    color: #4f6f62;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.portal-price-surface .portal-price-status-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .68rem;
    font-weight: 900;
    justify-content: center;
    min-height: 1.4rem;
    padding: .2rem .46rem;
    white-space: nowrap;
}

.portal-price-surface .portal-price-status-pill.is-icon-only {
    align-items: center;
    border-radius: 999px;
    min-width: 1.7rem;
    min-height: 1.7rem;
    padding: .2rem;
    cursor: default;
}

.portal-price-surface .portal-price-status-pill.is-icon-only .ui-icon {
    width: .95rem;
    height: .95rem;
}

.portal-price-surface .portal-price-status-pill.is-found {
    background: #dcfce7;
    color: #166534;
}

.portal-price-surface .portal-price-status-pill.is-ready {
    background: #e0f2fe;
    color: #075985;
}

.portal-price-surface .portal-price-status-pill.is-missing {
    background: #f1f5f9;
    color: #64748b;
}

.portal-price-surface .portal-price-status-pill.is-pending {
    background: #f8fafc;
    color: #475569;
}

.portal-price-surface .portal-price-status-pill.is-running {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Reached the portal, it had nothing: muted grey with a dashed outline. Deliberately not the amber it used
   to be — amber next to a ✗ glyph read as a failure, which is the defect this replaces. */
.portal-price-surface .portal-price-status-pill.is-not-found {
    background: #f1f5f9;
    border: 1px dashed rgba(100, 116, 139, .55);
    color: #475569;
}

/* Stopped by the operator: same neutral family as "not found" but a solid outline and a cross glyph. */
.portal-price-surface .portal-price-status-pill.is-canceled {
    background: #f1f5f9;
    border: 1px solid rgba(100, 116, 139, .55);
    color: #475569;
}

/* The server plan did not schedule this portal, so it answered nothing because nobody asked it. The
   quietest badge of the set: no border at all, so it never competes with a real outcome. */
.portal-price-surface .portal-price-status-pill.is-plan-skipped {
    background: #f8fafc;
    color: #94a3b8;
}

.portal-price-surface .portal-price-status-pill.is-error {
    background: #fee2e2;
    color: #b91c1c;
}

/* The selected supplier's outcome plus the server reason excerpt; the excerpt keeps its own line breaks. */
.portal-price-surface .portal-price-run-reason span {
    white-space: pre-line;
}

.portal-price-surface .portal-price-card-link,
.portal-price-surface .portal-price-run,
.portal-price-surface .portal-price-recommend {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    gap: .22rem;
    font-size: .7rem;
    font-weight: 900;
    justify-content: center;
    min-height: 1.55rem;
    padding: .24rem .5rem;
    text-decoration: none;
    white-space: nowrap;
}

.portal-price-surface .portal-price-card-link {
    background: #eefaf7;
    border: 1px solid rgba(0, 134, 118, .24);
    color: #006f64;
}

.portal-price-surface .portal-price-run {
    background: #eff6ff;
    border: 1px solid rgba(13, 110, 253, .24);
    color: #0b5ed7;
}

.portal-price-surface .portal-price-run svg {
    height: .8rem;
    width: .8rem;
}

.portal-price-surface .portal-price-recommend {
    background: #fff;
    border: 1px solid rgba(0, 134, 118, .22);
    color: #006f64;
}

.portal-price-surface .portal-price-run:not(:disabled):hover,
.portal-price-surface .portal-price-run:not(:disabled):focus-visible,
.portal-price-surface .portal-price-recommend:not(:disabled):hover,
.portal-price-surface .portal-price-recommend:not(:disabled):focus-visible {
    background: #effbf7;
    box-shadow: 0 0 0 .16rem rgba(0, 134, 118, .14);
}

.portal-price-surface .portal-price-recommend.is-active {
    background: #047857;
    border-color: #047857;
    color: #fff;
}

/* The pipeline recommendation acting as the effective supplier choice until pinned manually. */
.portal-price-surface .portal-price-recommend.is-auto {
    background: #effbf7;
    border-color: #047857;
    color: #047857;
    font-weight: 700;
}

.portal-price-surface .portal-price-run:disabled,
.portal-price-surface .portal-price-recommend:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.portal-price-surface .portal-price-recommend.is-active:disabled {
    opacity: 1;
}

.portal-price-surface .portal-price-captcha-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 900;
    min-height: 1.35rem;
    padding: .18rem .48rem;
    white-space: nowrap;
}

.portal-price-surface .portal-price-captcha-pill.no-captcha {
    background: #ecfdf5;
    color: #047857;
}

.portal-price-surface .portal-price-captcha-pill.has-captcha {
    background: #fff7ed;
    color: #9a3412;
}

.portal-price-surface .portal-price-detail {
    background: linear-gradient(135deg, #ffffff, #f1fbf8);
    border: 1px solid rgba(0, 134, 118, .16);
    border-radius: 16px;
    display: grid;
    gap: 10px;
    grid-template-columns: 82px minmax(0, 1fr);
    margin-top: 10px;
    padding: 10px;
}

.portal-price-surface .portal-price-provider-dialog {
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    width: min(96vw, 1180px);
}

.portal-price-surface .portal-price-detail-offers,
.portal-price-surface .portal-price-detail-bench {
    margin-top: 12px;
    min-width: 0;
}

.portal-price-surface .portal-price-detail-offers .portal-price-table-wrap {
    max-width: 100%;
}

.portal-price-surface .portal-price-detail-art {
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 134, 118, .14);
    border-radius: 14px;
    color: #007c70;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 82px;
    padding: 6px;
}

.portal-price-surface .portal-price-detail-art img {
    border-radius: 11px;
    display: block;
    max-height: 96px;
    max-width: 100%;
    object-fit: contain;
}

.portal-price-surface .portal-price-detail-art svg {
    height: 36px;
    width: 36px;
}

.portal-price-surface .portal-price-detail-photo-assign {
    align-items: center;
    background: #eef6ff;
    border: 1px solid rgba(25, 118, 210, .24);
    border-radius: 999px;
    color: #0b5f9f;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    gap: 5px;
    padding: 4px 10px;
    transition: background .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.portal-price-surface .portal-price-detail-photo-assign svg {
    height: 14px;
    width: 14px;
}

.portal-price-surface .portal-price-detail-photo-assign:hover,
.portal-price-surface .portal-price-detail-photo-assign:focus-visible {
    background: #dff0ff;
    border-color: rgba(25, 118, 210, .42);
}

.portal-price-surface .portal-price-detail-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.portal-price-surface .portal-price-detail-topline {
    color: #007c70;
    display: flex;
    font-size: .76rem;
    font-weight: 900;
    gap: 8px;
    justify-content: space-between;
}

.portal-price-surface .portal-price-detail-topline strong {
    color: #006349;
    white-space: nowrap;
}

.portal-price-surface .portal-price-detail-body h4 {
    font-size: .92rem;
    line-height: 1.2;
    margin: 0;
}

.portal-price-surface .portal-price-detail-body p {
    color: #536f68;
    font-size: .78rem;
    line-height: 1.35;
    margin: 0;
}

.portal-price-surface .portal-price-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.portal-price-surface .portal-price-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.portal-price-surface .portal-price-card-facts span {
    background: #f8fafc;
    border: 1px solid rgba(0, 134, 118, .16);
    border-radius: 999px;
    color: #35534c;
    font-size: .72rem;
    font-weight: 820;
    padding: 3px 7px;
}

.portal-price-surface .portal-price-links a,
.portal-price-surface .portal-price-links span,
.portal-price-surface .portal-price-links button {
    background: #eefaf7;
    border: 1px solid rgba(0, 134, 118, .24);
    border-radius: 999px;
    color: #006f64;
    font-size: .76rem;
    font-weight: 900;
    padding: 4px 8px;
    text-decoration: none;
}

.portal-price-surface .portal-price-empty-detail {
    opacity: .9;
}

.portal-price-surface .portal-price-log-toolbar {
    align-items: center;
    color: #536f68;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
}

.portal-price-surface .portal-price-log-toolbar strong {
    font-weight: 850;
}

.portal-price-surface .portal-price-channel-log {
    display: grid;
    gap: .75rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid var(--crm-border);
    border-radius: .85rem;
    background: var(--crm-surface);
}

.portal-price-surface .portal-price-channel-log > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.portal-price-surface .portal-price-channel-log h4,
.portal-price-surface .portal-price-channel-log p {
    margin: 0;
}

.portal-price-surface .portal-price-channel-log header p {
    margin-top: .25rem;
    color: var(--crm-muted);
    font-size: .82rem;
}

.portal-price-surface .portal-price-channel-log pre {
    max-height: min(62vh, 44rem);
    margin: 0;
    padding: .85rem;
    overflow: auto;
    border-radius: .65rem;
    background: #101827;
    color: #dce8f4;
    font-size: .76rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.portal-price-surface .portal-price-log-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.portal-price-surface .portal-price-copy-log {
    border: 1px solid rgba(0, 134, 118, .28);
    border-radius: 999px;
    background: #eefaf7;
    color: #006f64;
    font-size: .76rem;
    font-weight: 900;
    padding: 5px 9px;
    white-space: nowrap;
}

.portal-price-surface .portal-price-copy-status {
    border: 1px solid rgba(20, 137, 83, .24);
    border-radius: 999px;
    background: #eaf8f1;
    color: #10744a;
    font-size: .74rem;
    font-weight: 900;
    padding: 5px 8px;
    white-space: nowrap;
}

.portal-price-surface .portal-price-copy-status.is-error {
    border-color: rgba(180, 35, 24, .28);
    background: #fff1f0;
    color: #a11f16;
}

.portal-price-surface .portal-price-log {
    color: #536f68;
    font-size: .78rem;
    line-height: 1.28;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.portal-price-surface .portal-price-log summary {
    cursor: pointer;
    font-weight: 850;
}

.portal-price-surface .portal-price-log div {
    overflow-wrap: anywhere;
}

.portal-price-surface .supplier-runtime-offers {
    display: grid;
    gap: .45rem;
    margin-bottom: .75rem;
}

.portal-price-surface .supplier-runtime-offers a {
    border: 1px solid #e2e8f0;
    border-radius: .4rem;
    color: #0f3f75;
    display: flex;
    flex-direction: column;
    padding: .5rem .6rem;
    text-decoration: none;
}

.portal-price-surface .supplier-runtime-offers span {
    color: #047857;
    font-size: .8rem;
    font-weight: 700;
}

.portal-price-surface .supplier-runtime-operation-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: .45rem;
    color: #64748b;
    margin-bottom: .75rem;
    padding: .85rem;
}

.portal-price-surface .supplier-runtime-product-card {
    border: 1px solid #dbeafe;
    border-radius: .5rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    margin-bottom: .75rem;
    padding: .75rem;
}

.portal-price-surface .supplier-runtime-product-card img,
.portal-price-surface .supplier-runtime-product-placeholder {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: .45rem;
    display: flex;
    height: 5.2rem;
    justify-content: center;
    object-fit: contain;
    width: 5.2rem;
}

.portal-price-surface .supplier-runtime-product-card h3 {
    font-size: 1rem;
    margin: 0 0 .45rem;
}

.portal-price-surface .supplier-runtime-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .5rem;
    margin-bottom: .55rem;
}

.portal-price-surface .supplier-runtime-card-meta span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: .76rem;
    font-weight: 700;
    padding: .16rem .48rem;
}

.portal-price-surface .supplier-runtime-card-description {
    color: #334155;
    font-size: .84rem;
    line-height: 1.35;
    margin: 0 0 .55rem;
    max-height: 4.6rem;
    overflow: auto;
}

.portal-price-surface .supplier-runtime-price-lines {
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin: .45rem 0 .6rem;
}

.portal-price-surface .supplier-runtime-price-line {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: .45rem;
    display: flex;
    flex-direction: column;
    gap: .08rem;
    min-width: 0;
    padding: .4rem .5rem;
}

.portal-price-surface .supplier-runtime-price-line strong {
    color: #075985;
    font-size: .72rem;
    text-transform: uppercase;
}

.portal-price-surface .supplier-runtime-price-line span {
    color: #0f172a;
    font-weight: 800;
}

.portal-price-surface .supplier-runtime-price-line em {
    color: #64748b;
    font-size: .72rem;
    font-style: normal;
}

.portal-price-surface .supplier-runtime-product-card pre {
    background: #0f172a;
    border-radius: .45rem;
    color: #dbeafe;
    font-size: .76rem;
    margin: .6rem 0 0;
    max-height: 8rem;
    overflow: auto;
    padding: .55rem;
    white-space: pre-wrap;
}

.portal-price-surface .portal-price-panel {
    border-color: color-mix(in srgb, var(--crm-border) 76%, var(--crm-primary));
    color: var(--crm-text);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--crm-surface) 90%, transparent),
            color-mix(in srgb, var(--crm-primary-soft) 34%, var(--crm-surface)));
    box-shadow: var(--crm-elevation-2, 0 1rem 2.5rem rgba(15, 23, 42, .12));
}

.portal-price-surface .portal-price-kicker,
.portal-price-surface .portal-price-header h3,
.portal-price-surface .portal-price-detail-topline,
.portal-price-surface .portal-price-table a {
    color: color-mix(in srgb, var(--crm-primary-dark) 74%, var(--crm-text));
}

.portal-price-surface .portal-price-refresh,
.portal-price-surface .portal-price-collapse,
.portal-price-surface .portal-price-copy-log,
.portal-price-surface .portal-price-card-link,
.portal-price-surface .portal-price-run,
.portal-price-surface .portal-price-recommend,
.portal-price-surface .portal-price-chip,
.portal-price-surface .portal-price-captcha-tabs,
.portal-price-surface .portal-price-badges span,
.portal-price-surface .portal-price-links a,
.portal-price-surface .portal-price-links span,
.portal-price-surface .portal-price-links button,
.portal-price-surface .portal-price-card-facts span,
.portal-price-surface .portal-price-ai-pill {
    border-color: color-mix(in srgb, var(--crm-primary) 26%, var(--crm-border));
    color: color-mix(in srgb, var(--crm-primary-dark) 76%, var(--crm-text));
    background: color-mix(in srgb, var(--crm-primary-soft) 64%, var(--crm-surface));
}

.portal-price-surface .portal-price-search {
    border-color: color-mix(in srgb, var(--crm-primary) 76%, var(--crm-border));
    background: linear-gradient(135deg, var(--crm-primary), var(--crm-primary-dark));
    box-shadow: 0 0.65rem 1.35rem color-mix(in srgb, var(--crm-primary) 22%, transparent);
}

.portal-price-surface .portal-price-cancel {
    border-color: color-mix(in srgb, #dc3545 42%, var(--crm-border));
    background: color-mix(in srgb, #fff1f2 82%, var(--crm-surface));
    color: color-mix(in srgb, #a11f2a 82%, var(--crm-text));
}

.portal-price-surface .portal-price-refresh:hover,
.portal-price-surface .portal-price-collapse:hover,
.portal-price-surface .portal-price-links a:hover,
.portal-price-surface .portal-price-links button:hover,
.portal-price-surface .portal-price-links a:focus-visible {
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--crm-primary) 16%, transparent);
    transform: translateY(-1px);
}

.portal-price-surface .portal-price-metric,
.portal-price-surface .portal-price-detail,
.portal-price-surface .portal-price-table-wrap,
.portal-price-surface .portal-price-detail-art {
    border-color: color-mix(in srgb, var(--crm-border) 80%, var(--crm-primary));
    background: color-mix(in srgb, var(--crm-surface) 86%, var(--crm-primary-soft));
}

.portal-price-surface .portal-price-rec,
.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td {
    background: color-mix(in srgb, #dff5cf 76%, var(--crm-surface));
}

.portal-price-surface .portal-price-table tbody tr.portal-price-selected td,
.portal-price-surface .portal-price-table tbody tr.portal-price-row-found td {
    background: color-mix(in srgb, #eaf3ff 76%, var(--crm-surface));
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td {
    background: color-mix(in srgb, #dff5cf 76%, var(--crm-surface));
}

.portal-price-surface .portal-price-table th {
    color: color-mix(in srgb, var(--crm-text) 82%, var(--crm-primary));
    background: color-mix(in srgb, var(--crm-primary) 12%, var(--crm-surface-soft));
}

.portal-price-surface .portal-price-table th,
.portal-price-surface .portal-price-table td {
    border-color: color-mix(in srgb, var(--crm-border) 72%, transparent);
}

.portal-price-surface .portal-price-table tbody tr:hover td {
    background: color-mix(in srgb, var(--crm-primary) 8%, var(--crm-surface));
}

.portal-price-surface .portal-price-table tbody tr.portal-price-selected td:first-child {
    box-shadow: inset 0.22rem 0 0 #3b82f6;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-found td:first-child {
    box-shadow: inset 0.22rem 0 0 #2563eb;
}

.portal-price-surface .portal-price-table tbody tr.portal-price-row-recommended td:first-child {
    box-shadow: inset 0.3rem 0 0 #5fa232;
}

.portal-price-surface .portal-price-recommend.is-active,
.portal-price-surface .portal-price-recommend.is-active:disabled {
    background: #047857;
    border-color: #047857;
    color: #fff;
    opacity: 1;
}

.portal-price-surface .portal-price-detail-art,
.portal-price-surface .portal-price-ready.is-ready,
.portal-price-surface .portal-price-status-pill.is-ready {
    color: color-mix(in srgb, var(--crm-primary-dark) 74%, var(--crm-text));
}

.portal-price-surface .portal-price-detail-body p,
.portal-price-surface .portal-price-log,
.portal-price-surface .portal-price-log-toolbar,
.portal-price-surface .portal-price-copy-status {
    color: var(--crm-muted);
}

@media (max-width: 760px) {
    .portal-price-surface .portal-price-header-top,
.portal-price-surface .portal-price-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-price-surface .portal-price-actions {
        width: 100%;
    }

    .portal-price-surface .portal-price-search {
        flex: 1;
    }

    .portal-price-surface .portal-price-runner-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-price-surface .portal-price-refresh-mode {
        flex-direction: column;
    }

    .portal-price-surface .portal-price-refresh-mode select {
        width: 100%;
    }

    .portal-price-surface .portal-price-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-price-surface .portal-price-captcha-tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-price-surface .portal-price-captcha-tabs button {
        justify-content: space-between;
        width: 100%;
    }

    .portal-price-surface .portal-price-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-price-surface .portal-price-log-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* -------------------------------------------------------------------------------------------------
   Sprint К5 - the runner-option explanations collapse to one line with a "?" reveal, mirroring
   CrmToolbarMenuScopeItem. Touch has no hover, so the title attribute alone is not a way to read the
   rest. This block is not scoped to the product card: the reveal is markup that renders on every host,
   so it has to be styled on every host.
   ------------------------------------------------------------------------------------------------- */
.portal-price-surface .portal-price-panel .portal-price-hint-row {
    align-items: flex-start;
    display: flex;
    gap: 0.4rem;
    min-width: 0;
}

.portal-price-surface .portal-price-panel .portal-price-hint {
    color: #668078;
    font-size: .72rem;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-price-surface .portal-price-panel .portal-price-hint.open {
    overflow: visible;
    white-space: normal;
}

.portal-price-surface .portal-price-panel .portal-price-hint-help {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 134, 118, .3);
    border-radius: 999px;
    color: #006f64;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .76rem;
    font-weight: 900;
    height: 1.45rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
    width: 1.45rem;
}

.portal-price-surface .portal-price-panel .portal-price-hint-help:hover,
.portal-price-surface .portal-price-panel .portal-price-hint-help:focus-visible {
    background: #dff7ef;
    border-color: rgba(0, 134, 118, .5);
    color: #005c53;
    outline: 2px solid rgba(0, 134, 118, .34);
    outline-offset: 1px;
}

.portal-price-surface .portal-price-panel .portal-price-hint-help.open {
    background: #dff7ef;
    border-color: rgba(0, 134, 118, .5);
    color: #005c53;
}

@media (max-width: 760px) {
    .portal-price-surface .portal-price-panel .portal-price-hint-help {
        font-size: .95rem;
        height: 2.75rem;
        width: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-price-surface .portal-price-panel .portal-price-hint-help {
        transition: none;
    }
}

/* -------------------------------------------------------------------------------------------------
   Sprint К5 - product-card channel density. Everything below hangs off the modifier the product-card
   modal sets, because this panel also renders standalone on the Product Hub, /portal-plan, the 1С
   admin screen and the proposal workspace, where the operator owns the whole page and today's spacing
   is the correct one.
   ------------------------------------------------------------------------------------------------- */

/* Defensive fallback: the embedded branch does not render this control, while standalone hosts retain it. */
.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-collapse-toggle {
    display: none;
}

.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-table th,
.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-table td {
    font-size: .8rem;
    line-height: 1.2;
    padding: .26rem .4rem;
}

/* An absent value is not a value: the placeholder dash is dimmed so the eye skips it instead of
   reading it as data worth comparing. */
.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-cell-empty {
    opacity: .38;
}

/* The five recommendation metrics become one chip strip: same height for all of them, the value
   carrying the weight rather than extra size. */
.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-metric {
    gap: 0;
    min-height: 2.1rem;
    padding: .18rem .55rem;
}

.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-metric span {
    color: color-mix(in srgb, #668078 62%, #053d36);
    font-size: .66rem;
    letter-spacing: .01em;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-metric strong {
    font-size: .86rem;
    font-weight: 950;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-rec strong {
    font-size: 1.05rem;
}

.portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-metric small {
    font-size: .66rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Five metric columns cannot survive a phone: two is the point where the label still fits beside the
   number. Both the shell class and the viewport query are needed - the user can force mobile mode on a
   wide screen, and a phone can arrive without the shell class having been recomputed yet. */
.crm-shell.view-mobile .portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .portal-price-surface .portal-price-panel.is-product-card-channel .portal-price-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
