/* Обменник: светлый минимализм, вдохновлён 21st.dev / shadcn */

:root {
    --ex-bg: #f4f5f7;
    --ex-bg-alt: #eef0f4;
    --ex-surface: #ffffff;
    --ex-surface-elevated: #f9fafb;
    --ex-surface-hover: #f3f4f6;
    --ex-border: rgba(0, 0, 0, 0.08);
    --ex-border-hover: rgba(0, 0, 0, 0.15);
    --ex-border-focus: rgba(16, 185, 129, 0.55);
    --ex-text: #1e293b;
    --ex-text-primary: #0f172a;
    --ex-muted: #64748b;
    --ex-dim: #94a3b8;
    --ex-accent: #10b981;
    --ex-accent-hover: #059669;
    --ex-accent-text: #ffffff;
    --ex-accent-muted: rgba(16, 185, 129, 0.1);
    --ex-accent-glow: rgba(16, 185, 129, 0.25);
    --ex-danger-bg: rgba(239, 68, 68, 0.06);
    --ex-danger-border: rgba(239, 68, 68, 0.2);
    --ex-danger-text: #dc2626;
    --ex-success-bg: rgba(16, 185, 129, 0.06);
    --ex-success-border: rgba(16, 185, 129, 0.2);
    --ex-info-bg: rgba(59, 130, 246, 0.06);
    --ex-info-border: rgba(59, 130, 246, 0.2);
    --ex-info-text: #2563eb;
    --ex-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --ex-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --ex-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --ex-shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --ex-shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.1);
    --ex-radius: 0.75rem;
    --ex-radius-full: 2rem;
    --ex-radius-card: 1.25rem;
    --ex-font: "Inter", system-ui, -apple-system, sans-serif;
    --ex-mono: "JetBrains Mono", ui-monospace, monospace;
    --ex-transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.ex-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ex-font);
    background: var(--ex-bg);
    color: var(--ex-text);
    -webkit-font-smoothing: antialiased;
}

/* Фоновый блюр-блоб — мягкие цветные пятна */
.ex-bg-blob {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.ex-bg-blob::before {
    content: "";
    position: absolute;
    top: -12rem;
    left: 50%;
    width: 60rem;
    height: 28rem;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
    filter: blur(40px);
}

.ex-bg-blob::after {
    content: "";
    position: absolute;
    bottom: -6rem;
    right: -6rem;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    filter: blur(48px);
}

/* ——— Header ——— */
.ex-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--ex-border);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
}

.ex-header-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}


.ex-header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.ex-header-aside {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ex-tg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .85;
    transition: opacity .2s, transform .2s;
}
.ex-tg-link:hover {
    opacity: 1;
    transform: scale(1.1);
}
.ex-tg-link svg {
    display: block;
}

.ex-partner-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.ex-partner-header-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.ex-lang--ios {
    flex-shrink: 0;
}

.ex-lang-ios-track {
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid var(--ex-border);
    gap: 2px;
}

.ex-lang-flag {
    display: inline-block;
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: 0;
}

.ex-lang-ios-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ex-dim);
    text-decoration: none;
    transition:
        background var(--ex-transition),
        color var(--ex-transition),
        box-shadow var(--ex-transition);
}

.ex-lang-ios-opt:hover {
    color: var(--ex-text-primary);
}

.ex-lang-ios-opt.is-active {
    background: #fff;
    color: var(--ex-text-primary);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 1px 3px rgba(15, 23, 42, 0.06);
}

.ex-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ex-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity var(--ex-transition);
}

.ex-logo:hover {
    opacity: 0.75;
}

.ex-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.ex-logo-mark svg {
    display: block;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.ex-tagline {
    display: none;
    font-size: 0.8125rem;
    color: var(--ex-dim);
}

@media (min-width: 640px) {
    .ex-tagline {
        display: block;
    }
}

/* ——— Main content ——— */
.ex-main {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

@media (min-width: 640px) {
    .ex-main {
        padding: 3rem 1.5rem 4rem;
    }
}

/* ——— Alerts ——— */
.ex-alert {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    padding: 0.875rem 1.125rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-success-border);
    background: var(--ex-success-bg);
    font-size: 0.875rem;
    color: var(--ex-accent-hover);
}

.ex-alert code {
    font-family: var(--ex-mono);
    font-weight: 500;
    color: var(--ex-text-primary);
}

/* ——— Empty state ——— */
.ex-empty {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--ex-radius-card);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    box-shadow: var(--ex-shadow);
}

.ex-empty h1 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ex-text-primary);
}

.ex-empty p {
    margin: 0;
    color: var(--ex-muted);
    font-size: 0.875rem;
}

.ex-empty .ex-cmd {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--ex-radius);
    background: var(--ex-bg);
    border: 1px solid var(--ex-border);
    font-family: var(--ex-mono);
    font-size: 0.75rem;
    color: var(--ex-accent);
}

/* ——— Narrow container (форма + заявка) ——— */
.ex-narrow {
    max-width: 42rem;
    margin: 0 auto;
}

/* ——— Title & subtitle ——— */
.ex-title {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ex-text-primary);
}

@media (min-width: 640px) {
    .ex-title {
        font-size: 1.875rem;
    }
}

.ex-subtitle {
    margin: 0.625rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ex-muted);
    line-height: 1.5;
}

/* ——— Form ——— */
.ex-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ex-recipient-block {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ex-field-label--email {
    margin-top: 0.65rem;
}

.ex-optional-mark {
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--ex-dim);
    margin-left: 0.35rem;
}


/* ——— Card ——— */
.ex-card {
    padding: 1.5rem;
    border-radius: var(--ex-radius-card);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    box-shadow: var(--ex-shadow-md);
}

@media (min-width: 640px) {
    .ex-card {
        padding: 2rem;
    }
}

.ex-form-card {
    display: flex;
    flex-direction: column;
    gap: calc(1.5rem * 1.2);
}

/* Основная карточка пары + суммы: ~на 20% крупнее */
.ex-card.ex-form-card {
    padding: calc(1.5rem * 1.2);
}

@media (min-width: 640px) {
    .ex-card.ex-form-card {
        padding: calc(2rem * 1.2);
    }
}

.ex-card.ex-form-card .ex-pair-row {
    gap: calc(0.625rem * 1.2);
}

.ex-card.ex-form-card .ex-amounts-row {
    gap: calc(1.5rem * 1.2);
}

@media (max-width: 639px) {
    .ex-card.ex-form-card .ex-amounts-row {
        gap: calc(1.25rem * 1.2);
    }
}

.ex-card.ex-form-card .ex-input-minimal {
    font-size: calc(1.5rem * 1.2);
}

@media (min-width: 640px) {
    .ex-card.ex-form-card .ex-input-minimal {
        font-size: calc(1.75rem * 1.2);
    }
}

.ex-card.ex-form-card .ex-dropdown-btn,
.ex-card.ex-form-card .ex-select-trigger {
    padding: calc(0.5rem * 1.2) calc(0.875rem * 1.2) calc(0.5rem * 1.2) calc(0.5rem * 1.2);
    gap: calc(0.625rem * 1.2);
}

.ex-card.ex-form-card .ex-dropdown-btn .ex-token-icon,
.ex-card.ex-form-card .ex-select-trigger .ex-token-icon {
    width: calc(2.25rem * 1.2);
    height: calc(2.25rem * 1.2);
}

.ex-card.ex-form-card .ex-swap-btn {
    width: calc(2.75rem * 1.2);
    height: calc(2.75rem * 1.2);
}

/* Progress bar: price refresh cycle at bottom of form card */
.ex-form-card-progress {
    height: 3px;
    margin-top: calc(1.5rem * 1.2);
    margin-left: calc(-1.5rem * 1.2);
    margin-right: calc(-1.5rem * 1.2);
    margin-bottom: calc(-1.5rem * 1.2);
    border-radius: 0 0 calc(var(--ex-radius-card) - 1px) calc(var(--ex-radius-card) - 1px);
    overflow: hidden;
    background: rgba(148, 163, 184, 0.18);
}

@media (min-width: 640px) {
    .ex-form-card-progress {
        margin-left: calc(-2rem * 1.2);
        margin-right: calc(-2rem * 1.2);
        margin-bottom: calc(-2rem * 1.2);
    }
}

.ex-form-card-progress__bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--ex-accent), rgba(16, 185, 129, 0.7));
    animation: ex-form-card-progress 15s linear infinite;
}

@keyframes ex-form-card-progress {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ex-form-card-progress__bar {
        animation: none;
        transform: scaleX(1);
        opacity: 0.45;
    }
}

/* ——— Pair row (selects + swap) ——— */
.ex-pair-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.625rem;
}

@media (max-width: 639px) {
    .ex-pair-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.ex-select-cell {
    flex: 1;
    min-width: 0;
}

.ex-swap-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .ex-swap-cell {
        order: 2;
        padding: 0.125rem 0;
    }
    .ex-select-cell--from {
        order: 1;
    }
    .ex-select-cell--to {
        order: 3;
    }
}

.ex-dropdown-wrap {
    position: relative;
}

/* Pill select trigger */
.ex-dropdown-btn,
.ex-select-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem 0.5rem 0.5rem;
    border-radius: var(--ex-radius-full);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    color: var(--ex-text-primary);
    text-align: left;
    cursor: pointer;
    transition:
        border-color var(--ex-transition),
        box-shadow var(--ex-transition),
        background var(--ex-transition);
    font: inherit;
    box-shadow: var(--ex-shadow-sm);
}

.ex-dropdown-btn:hover,
.ex-select-trigger:hover {
    border-color: var(--ex-border-hover);
    box-shadow: var(--ex-shadow);
    background: var(--ex-surface-elevated);
}

.ex-dropdown-btn:focus-visible,
.ex-select-trigger:focus-visible {
    outline: none;
    border-color: var(--ex-border-focus);
    box-shadow: 0 0 0 3px var(--ex-accent-muted);
}

.ex-token-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--ex-surface-hover);
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--ex-bg);
    box-shadow: 0 0 0 1px var(--ex-border);
}

.ex-token-icon--sm {
    width: 1.75rem;
    height: 1.75rem;
    border-width: 1px;
}

.ex-dropdown-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

.ex-dropdown-symbol {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ex-text-primary);
    letter-spacing: -0.01em;
}

.ex-dropdown-chain {
    font-size: 0.6875rem;
    color: var(--ex-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ex-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--ex-dim);
    transition: transform var(--ex-transition);
}

/* ——— Dropdown panel ——— */
.ex-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 40;
    max-height: 18rem;
    overflow: hidden;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    box-shadow: var(--ex-shadow-xl);
}

.ex-panel.is-open {
    display: block;
}

.ex-panel-search {
    padding: 0.625rem;
    border-bottom: 1px solid var(--ex-border);
}

.ex-panel-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-elevated);
    color: var(--ex-text-primary);
    font-size: 0.8125rem;
    transition: border-color var(--ex-transition), box-shadow var(--ex-transition);
}

.ex-panel-search input::placeholder {
    color: var(--ex-dim);
}

.ex-panel-search input:focus {
    outline: none;
    border-color: var(--ex-border-focus);
    box-shadow: 0 0 0 3px var(--ex-accent-muted);
}

.ex-panel-list {
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.ex-panel-list::-webkit-scrollbar {
    width: 5px;
}

.ex-panel-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.ex-panel-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.18);
}

.ex-panel-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    font-size: 0.8125rem;
    transition: background var(--ex-transition);
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    width: calc(100% - 0.5rem);
}

.ex-panel-item:hover {
    background: var(--ex-surface-hover);
}

/* ——— Amount inputs row ——— */
.ex-amounts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 639px) {
    .ex-amounts-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.ex-amount-col {
    min-width: 0;
}

.ex-amount-field-wrap {
    position: relative;
}

.ex-amount-loader {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid var(--ex-border);
    border-top-color: var(--ex-accent);
    border-radius: 50%;
    pointer-events: none;
    animation: ex-quote-spin 0.65s linear infinite;
}

.ex-amount-col--loading .ex-amount-loader {
    display: block;
}

.ex-amount-col--loading .ex-input-minimal {
    opacity: 0.42;
}

@keyframes ex-quote-spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.ex-field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ex-muted);
}

.ex-input-minimal {
    width: 100%;
    padding: 0.625rem 0;
    border: none;
    border-bottom: 2px solid var(--ex-bg-alt);
    border-radius: 0;
    background: transparent;
    color: var(--ex-text-primary);
    font-family: var(--ex-mono);
    font-size: 1.5rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    transition:
        border-color var(--ex-transition),
        color var(--ex-transition);
}

@media (min-width: 640px) {
    .ex-input-minimal {
        font-size: 1.75rem;
    }
}

.ex-input-minimal::placeholder {
    color: var(--ex-dim);
    font-weight: 400;
}

.ex-input-minimal:focus {
    outline: none;
    border-bottom-color: var(--ex-accent);
}

@keyframes ex-send-min-blink {
    0%,
    100% {
        border-bottom-color: var(--ex-border, rgba(255, 255, 255, 0.12));
        color: inherit;
    }
    33%,
    66% {
        border-bottom-color: #dc2626;
        color: #fecaca;
    }
}

.ex-input-minimal.ex-input-minimal--min-blink {
    animation: ex-send-min-blink 0.45s ease-in-out 3;
}

.ex-input-minimal.ex-input-minimal--over-limit {
    border-bottom-color: #dc2626;
    color: #fecaca;
}

.ex-input-minimal.ex-output {
    color: var(--ex-accent);
}

.ex-input-minimal.ex-output:focus {
    border-bottom-color: var(--ex-accent-hover);
}

/* Подсказки минимума под полями You send / You receive */
.ex-amount-min-hint {
    display: none;
    margin: 0.4rem 0 0;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: left;
}

.ex-amount-min-hint:not([hidden]) {
    display: block;
}

.ex-amount-min-hint--warn {
    color: #dc2626;
}

.ex-amount-min-hint--ref {
    color: var(--ex-muted);
    margin-top: 0.25rem;
}

.ex-amount-range {
    display: none;
    margin: 0.35rem 0 0;
    padding: 0;
    font-size: 0.72rem;
    line-height: 1.4;
    font-family: var(--ex-mono);
    color: var(--ex-muted);
    text-align: center;
}

.ex-amount-range:not([hidden]) {
    display: block;
}

.ex-amount-range__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ex-amount-range__inner--center {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
}

.ex-amount-range__cluster {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    white-space: nowrap;
    font: inherit;
    font-family: var(--ex-mono);
    min-width: 0;
}

.ex-amount-range__sep {
    color: var(--ex-dim);
    font-weight: 400;
    user-select: none;
    letter-spacing: 0.02em;
}

button.ex-amount-range__fill {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
    font-size: inherit;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    color: inherit;
    background: none;
    border: none;
    border-radius: 0;
    line-height: inherit;
    vertical-align: baseline;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.1em;
    box-shadow: none;
    transition: color 0.15s, text-decoration-style 0.15s;
}

button.ex-amount-range__fill:hover {
    color: var(--ex-text-primary);
    text-decoration-style: solid;
}

button.ex-amount-range__fill:focus {
    outline: none;
}

button.ex-amount-range__fill:focus-visible {
    outline: none;
    text-decoration-style: solid;
    color: var(--ex-text-primary);
}

@keyframes ex-range-blink {
    0%, 100% { opacity: 1; color: inherit; }
    25%, 75% { opacity: 0.3; color: var(--ex-accent); }
    50% { opacity: 1; color: var(--ex-accent); }
}

button.ex-amount-range__fill--blink {
    animation: ex-range-blink 0.35s ease-in-out 2;
}

.ex-oneclick-payload-hint {
    display: none;
    margin: 0.5rem 0 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.45;
    font-family: var(--ex-mono);
    color: var(--ex-muted);
    text-align: center;
    background: var(--ex-surface-elevated);
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    font-variant-numeric: tabular-nums;
}

.ex-oneclick-payload-hint:not([hidden]) {
    display: block;
}

/* legacy: старый общий баннер (элемент удалён из вёрстки) */
.ex-min-trade-banner {
    display: none;
}

/* Подсказка после ошибки превью-котировки (1Click) */
.ex-quote-hint {
    display: none;
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.95rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
    border-radius: var(--ex-radius);
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.07);
    color: #b45309;
    box-shadow: var(--ex-shadow-sm);
}

.ex-quote-hint:not([hidden]) {
    display: block;
}

.ex-quote-hint--soft {
    border-color: var(--ex-info-border);
    background: var(--ex-info-bg);
    color: var(--ex-info-text);
}

/* ——— Hint / Note ——— */
.ex-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ex-muted);
    text-align: center;
}

.ex-hint-centered {
    margin-top: 0;
}

#ex-approx-usd {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.ex-note {
    margin: 0;
    font-size: 0.6875rem;
    color: var(--ex-dim);
    line-height: 1.5;
}

.ex-note-centered {
    text-align: center;
}

.ex-note--secondary {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    opacity: 0.92;
}

.ex-muted {
    color: var(--ex-muted);
}

/* ——— Swap button ——— */
.ex-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    color: var(--ex-muted);
    cursor: pointer;
    box-shadow: var(--ex-shadow-sm);
    transition:
        border-color var(--ex-transition),
        color var(--ex-transition),
        transform var(--ex-transition),
        background var(--ex-transition),
        box-shadow var(--ex-transition);
}

.ex-swap-btn:hover {
    border-color: var(--ex-accent);
    color: var(--ex-accent);
    background: var(--ex-accent-muted);
    box-shadow: var(--ex-shadow);
    transform: scale(1.06);
}

.ex-swap-btn:active {
    transform: scale(0.96);
}

@media (max-width: 639px) {
    .ex-swap-btn {
        transform: rotate(90deg);
    }
    .ex-swap-btn:hover {
        transform: rotate(90deg) scale(1.06);
    }
    .ex-swap-btn:active {
        transform: rotate(90deg) scale(0.96);
    }
}

/* ——— Recipient wallet (single-line input) ——— */
.ex-recipient-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-elevated);
    color: var(--ex-text-primary);
    font-family: var(--ex-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    transition: border-color var(--ex-transition), box-shadow var(--ex-transition);
    box-sizing: border-box;
}

.ex-recipient-input:focus {
    outline: none;
    border-color: var(--ex-border-focus);
    box-shadow: 0 0 0 3px var(--ex-accent-muted);
}

.ex-recipient-input::placeholder {
    color: var(--ex-dim);
}

/* ——— Textarea (wallet) ——— */
.ex-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-elevated);
    color: var(--ex-text-primary);
    font-family: var(--ex-mono);
    font-size: 0.8125rem;
    line-height: 1.55;
    resize: vertical;
    min-height: 3rem;
    max-height: 8rem;
    transition: border-color var(--ex-transition), box-shadow var(--ex-transition);
}

.ex-textarea:focus {
    outline: none;
    border-color: var(--ex-border-focus);
    box-shadow: 0 0 0 3px var(--ex-accent-muted);
}

.ex-textarea::placeholder {
    color: var(--ex-dim);
}

/* ——— Error block ——— */
.ex-errors {
    padding: 0.875rem 1rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-danger-border);
    background: var(--ex-danger-bg);
    color: var(--ex-danger-text);
    font-size: 0.8125rem;
}

.ex-errors ul {
    margin: 0;
    padding-left: 1.125rem;
}

/* ——— Submit button ——— */
.ex-submit {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: var(--ex-radius-full);
    background: var(--ex-accent);
    color: var(--ex-accent-text);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        background var(--ex-transition),
        transform 0.15s ease,
        box-shadow var(--ex-transition);
    box-shadow: var(--ex-shadow-sm);
}

.ex-submit:hover:not(:disabled) {
    background: var(--ex-accent-hover);
    box-shadow: 0 6px 20px -4px var(--ex-accent-glow);
}

.ex-submit:active:not(:disabled) {
    transform: scale(0.99);
}

.ex-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ——— Footer ——— */
.ex-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--ex-border);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--ex-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ex-tg-link--footer svg {
    width: 18px;
    height: 18px;
}

.ex-footer-link {
    color: var(--ex-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ex-transition);
}

.ex-footer-link:hover {
    color: var(--ex-accent);
}

/* Legacy helpers */
.ex-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ex-input {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-elevated);
    color: var(--ex-text-primary);
    font-family: var(--ex-mono);
    font-size: 1.125rem;
}

.ex-input.ex-output {
    margin-top: 0.75rem;
}

/* ——————————————————————————————————————————
   Страница заявки
   —————————————————————————————————————————— */

.ex-alert-success {
    border-color: var(--ex-success-border);
    background: var(--ex-success-bg);
    color: var(--ex-accent-hover);
}

.ex-order-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ex-order-pair-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ex-text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.ex-order-pair-arrow {
    color: var(--ex-dim);
    font-weight: 400;
}

.ex-order-card {
    margin-top: 0;
    overflow: hidden;
}

.ex-order-card > .ex-order-section {
    padding-bottom: 1.125rem;
    margin-bottom: 1.125rem;
    border-bottom: 1px solid var(--ex-border);
}

.ex-order-card > .ex-order-section:nth-child(3) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ex-order-id {
    margin: 0;
}

.ex-order-id code {
    font-family: var(--ex-mono);
    font-size: 0.8125rem;
    word-break: break-all;
    color: var(--ex-text-primary);
    line-height: 1.5;
    background: var(--ex-surface-elevated);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.ex-order-amounts {
    margin: 0;
    font-family: var(--ex-mono);
    font-size: 1rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ex-text-primary);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.ex-field-sublabel {
    margin: 0 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ex-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ex-order-amount-preview-wrap {
    margin-bottom: 0.875rem;
}

.ex-order-amounts--preview {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--ex-muted);
}

.ex-order-swap-glossary {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    font-family: inherit;
    font-weight: 400;
}

.ex-order-swap-glossary strong {
    color: var(--ex-text-primary);
    font-weight: 600;
}

.ex-order-fee {
    margin: 0;
    font-family: var(--ex-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ex-text-primary);
}

.ex-order-fee-detail {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}


.ex-order-quote-fact {
    margin-top: 0.25rem;
}

.ex-order-quote-fact__resp-label {
    margin-top: 0.75rem;
}



.ex-quote-details {
    margin: 0.5rem 0 0;
    border: 1px solid var(--ex-border);
    border-radius: 0.5rem;
    background: var(--ex-surface-elevated);
    padding: 0 0.75rem;
}

.ex-quote-details + .ex-quote-details {
    margin-top: 0.625rem;
}

.ex-quote-details summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ex-text-primary);
    padding: 0.65rem 0;
    list-style-position: outside;
}

.ex-quote-details .ex-quote-raw {
    margin-top: 0;
    margin-bottom: 0.75rem;
    max-height: min(70vh, 28rem);
}

.ex-quote-raw {
    margin: 0.375rem 0 0;
    padding: 0.75rem 1rem;
    max-height: 14rem;
    overflow: auto;
    font-family: var(--ex-mono);
    font-size: 0.75rem;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    color: var(--ex-text-primary);
    background: var(--ex-surface-elevated);
    border: 1px solid var(--ex-border);
    border-radius: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.ex-quote-raw mark.ex-quote-json-key {
    background: rgba(250, 204, 21, 0.42);
    color: inherit;
    padding: 0 0.08em;
    border-radius: 0.2rem;
    font: inherit;
}

/* Status badge */
.ex-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: var(--ex-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--ex-surface-elevated);
    border: 1px solid var(--ex-border);
    color: var(--ex-muted);
    line-height: 1.4;
    margin: 0;
}

.ex-order-status-badge[data-status="completed"] {
    background: var(--ex-accent-muted);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--ex-accent-hover);
}

.ex-order-status-badge[data-status="awaiting_deposit"],
.ex-order-status-badge[data-status="processing"],
.ex-order-status-badge[data-status="new"],
.ex-order-status-badge[data-status="quoting"] {
    border-color: var(--ex-info-border);
    color: var(--ex-info-text);
    background: var(--ex-info-bg);
}

.ex-order-status-badge[data-status="error"],
.ex-order-status-badge[data-status="quote_parity_failed"],
.ex-order-status-badge[data-status="error_refunded"],
.ex-order-status-badge[data-status="cancelled"] {
    border-color: var(--ex-danger-border);
    color: var(--ex-danger-text);
    background: var(--ex-danger-bg);
    white-space: normal;
    max-width: 100%;
}

.ex-order-status-badge#os-status {
    margin: 0;
}

/* Полоска ожидания котировки: снизу карточки, плавно схлопывается за 5 с и резко снова полная */
.ex-order-card-progress {
    height: 3px;
    margin-top: 1.125rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    border-radius: 0 0 var(--ex-radius-card) var(--ex-radius-card);
    overflow: hidden;
    background: rgba(148, 163, 184, 0.25);
}

@media (min-width: 640px) {
    .ex-order-card-progress {
        margin-left: -2rem;
        margin-right: -2rem;
        margin-bottom: -2rem;
    }
}

.ex-order-card-progress__bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--ex-info-text), rgba(59, 130, 246, 0.9));
    animation: ex-order-card-progress 5s linear infinite;
}

@keyframes ex-order-card-progress {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ex-order-card-progress__bar {
        animation: none;
        transform: scaleX(1);
        opacity: 0.45;
    }
}

.ex-order-status-sub {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ex-muted);
}

/* Timer */
.ex-order-timer-wrap {
    margin: 1rem 0 0;
    padding: 1.125rem 1.25rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-info-border);
    background: var(--ex-info-bg);
}

.ex-order-timer {
    margin: 0.25rem 0 0;
    font-family: var(--ex-mono);
    font-size: 1.625rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ex-info-text);
    letter-spacing: 0.06em;
}

.ex-order-timer-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
}

/* Error */
.ex-order-error-wrap {
    margin: 1rem 0 0;
}

.ex-order-error {
    margin: 0;
    padding: 0.875rem 1.125rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-danger-border);
    background: var(--ex-danger-bg);
    color: var(--ex-danger-text);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Deposit */
.ex-order-deposit-wrap {
    margin: 1rem 0 0;
}

.ex-order-deposit {
    margin: 0;
    padding: 1rem 1.125rem;
    border-radius: var(--ex-radius);
    border: 2px dashed var(--ex-accent);
    background: rgba(16, 185, 129, 0.04);
    font-family: var(--ex-mono);
    font-size: 0.8125rem;
    line-height: 1.55;
    word-break: break-all;
    color: var(--ex-text-primary);
    user-select: all;
    text-align: center;
}

.ex-order-deposit--recipient {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}

.ex-order-deposit--interactive {
    cursor: pointer;
    user-select: text;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ex-order-amount-input {
    background: transparent;
    border: none;
    border-bottom: 3px dashed var(--ex-border);
    border-radius: 0;
    padding: 0 0.125rem 0.125rem;
    font: inherit;
    font-weight: 600;
    color: var(--ex-text-primary);
    cursor: pointer;
    transition: border-color var(--ex-transition), color var(--ex-transition);
}

.ex-order-amount-input:hover {
    border-color: var(--ex-accent);
    color: var(--ex-accent);
}

.ex-order-amount-input:focus {
    outline: none;
    border-color: var(--ex-accent);
    border-bottom-style: solid;
    color: var(--ex-accent);
}

.ex-order-deposit--interactive:hover {
    border-color: var(--ex-accent);
    background: var(--ex-accent-muted);
}

.ex-order-deposit--interactive:focus-visible {
    outline: 2px solid var(--ex-accent);
    outline-offset: 2px;
}

.ex-copy-toast {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(0.5rem);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ex-accent-text);
    background: var(--ex-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.ex-copy-toast.ex-copy-toast--visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ex-order-memo-block {
    margin-top: 1rem;
}

.ex-order-memo-label {
    margin-bottom: 0.375rem;
}

.ex-order-hint {
    margin-top: 1rem;
    text-align: center;
}

/* Preview quote traffic (main exchange — dry: true) */
.ex-preview-traffic {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ex-border);
}

.ex-preview-traffic-note {
    margin: 0.25rem 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.45;
}

.ex-preview-traffic-details {
    margin-top: 0.5rem;
}

.ex-preview-traffic-details summary {
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--ex-text-secondary);
}

.ex-preview-traffic-pre {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    max-height: 280px;
    overflow: auto;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-elevated);
    font-family: var(--ex-mono);
    font-size: 0.6875rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--ex-text-primary);
    user-select: text;
}

/* Order page: heading id + stacked pair */
.ex-order-title-id {
    font-size: 0.65em;
    font-weight: 500;
    word-break: break-all;
    vertical-align: baseline;
}
.ex-order-pair-bar--stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0.5rem 0 1.25rem;
}
.ex-order-pair-bar--stack .ex-order-pair-arrow {
    line-height: 1;
}
.ex-note--qa {
    font-size: 0.8125rem;
}

/* ——— Partner header + modal ——— */
.ex-partner-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: var(--ex-radius-full);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    color: var(--ex-text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        background var(--ex-transition),
        border-color var(--ex-transition),
        color var(--ex-transition);
}

.ex-partner-header-link:hover {
    background: var(--ex-surface-hover);
    border-color: var(--ex-border-hover);
}

body.ex-modal-open {
    overflow: hidden;
}

.ex-modal-root[hidden] {
    display: none !important;
}

.ex-modal-root {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
}

.ex-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

.ex-modal {
    position: relative;
    width: 100%;
    max-width: 24rem;
    margin-top: 4vh;
    z-index: 1;
    animation: ex-modal-in 0.2s ease;
}

@keyframes ex-modal-in {
    from {
        opacity: 0;
        transform: translateY(-0.5rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ex-modal-card {
    background: var(--ex-surface);
    border-radius: var(--ex-radius-card);
    border: 1px solid var(--ex-border);
    box-shadow: var(--ex-shadow-xl);
    padding: 1.25rem 1.25rem 1.5rem;
}

.ex-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ex-partner-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.2rem;
    border-radius: var(--ex-radius);
    background: var(--ex-surface-elevated, rgba(0, 0, 0, 0.04));
}

.ex-partner-tab {
    flex: 1;
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: calc(var(--ex-radius) - 2px);
    background: transparent;
    color: var(--ex-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ex-transition), color var(--ex-transition);
}

.ex-partner-tab:hover {
    color: var(--ex-text-primary);
}

.ex-partner-tab.is-active {
    background: var(--ex-surface);
    color: var(--ex-text-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ex-partner-panel[hidden] {
    display: none !important;
}

.ex-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ex-text-primary);
    letter-spacing: -0.02em;
}

.ex-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--ex-radius);
    background: transparent;
    color: var(--ex-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--ex-transition), color var(--ex-transition);
}

.ex-modal-close:hover {
    background: var(--ex-surface-hover);
    color: var(--ex-text-primary);
}

.ex-modal-form .ex-field-label {
    display: block;
    margin-top: 0.75rem;
}

.ex-modal-form .ex-field-label:first-child {
    margin-top: 0;
}

.ex-modal-form .ex-input {
    margin-top: 0.35rem;
}

.ex-modal-submit {
    margin-top: 1.25rem;
}

.ex-field-error {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--ex-danger-text);
}

/* ——— Partner dashboard ——— */
.ex-partner-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
}

.ex-partner-page h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ex-text-primary);
}

.ex-partner-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ex-partner-kpi-card {
    background: var(--ex-surface);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-radius);
    padding: 1rem 1.125rem;
    box-shadow: var(--ex-shadow-sm);
}

.ex-partner-kpi-label {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ex-muted);
}

.ex-partner-kpi-value {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ex-text-primary);
    font-variant-numeric: tabular-nums;
}

.ex-partner-table-wrap {
    overflow-x: auto;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-border);
    background: var(--ex-surface);
    box-shadow: var(--ex-shadow-sm);
}

.ex-partner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ex-partner-table th,
.ex-partner-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--ex-border);
}

.ex-partner-table th {
    font-weight: 600;
    color: var(--ex-muted);
    background: var(--ex-surface-elevated);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ex-partner-table tbody tr:last-child td {
    border-bottom: none;
}

.ex-partner-table td {
    font-variant-numeric: tabular-nums;
}

.ex-partner-ref {
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ex-radius);
    border: 1px solid var(--ex-info-border);
    background: var(--ex-info-bg);
    font-size: 0.8125rem;
    color: var(--ex-text);
    word-break: break-all;
}

.ex-partner-ref strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ex-text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
