/**
 * Enrichment Modal Design System
 * Professional styling for all LedgerIQ enrichment prompts.
 * Uses editorial design tokens from iq-suite-editorial.css + dashboardStyles.css
 */

/* ============================================
   MODAL CHROME OVERRIDES
   ============================================ */
#promptModal.enrichment-active {
    background: rgba(26, 26, 26, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#promptModal.enrichment-active .prompt-modal-content {
    max-width: 780px;
    border: 1px solid var(--border-color, #d4d0c8);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(74, 144, 128, 0.08);
    animation: enrichModalAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes enrichModalAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================
   MODAL HEADER
   ============================================ */
.enrich-header {
    margin-bottom: 20px;
}

.enrich-title {
    font-family: var(--ed-font-serif, 'Fraunces', Georgia, serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-color, #1a1a1a);
    line-height: 1.3;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enrich-title .enrich-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--liq-light, #e6f2ef);
    color: var(--liq-primary, #4a9080);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.enrich-instructions {
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.88rem;
    color: var(--ink-muted, #6b6b6b);
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
}

/* ============================================
   SUMMARY BAR
   ============================================ */
.enrich-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--liq-light, #e6f2ef);
    border-left: 3px solid var(--liq-primary, #4a9080);
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    color: var(--ink-light, #3d3d3d);
    flex-wrap: wrap;
}

.enrich-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: white;
    border-radius: var(--ed-radius-pill, 100px);
    font-weight: 500;
    font-size: 0.82rem;
    white-space: nowrap;
}

.enrich-summary-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot--green { background: var(--ed-success, #059669); }
.dot--amber { background: var(--ed-warning, #d97706); }
.dot--red   { background: var(--ed-error, #dc2626); }
.dot--blue  { background: #3b82f6; }
.dot--muted { background: var(--ink-subtle, #999); }

/* ============================================
   DATA CONTAINER (scrollable area)
   ============================================ */
.enrich-data {
    background: var(--cream, #faf8f5);
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: 6px;
    padding: 12px;
    max-height: 46vh;
    overflow-y: auto;
    position: relative;
}

/* Custom scrollbar */
.enrich-data::-webkit-scrollbar {
    width: 6px;
}
.enrich-data::-webkit-scrollbar-track {
    background: var(--cream, #faf8f5);
    border-radius: 3px;
}
.enrich-data::-webkit-scrollbar-thumb {
    background: var(--liq-primary, #4a9080);
    border-radius: 3px;
    opacity: 0.6;
}
.enrich-data::-webkit-scrollbar-thumb:hover {
    background: var(--liq-deep, #3a7265);
}
.enrich-data {
    scrollbar-width: thin;
    scrollbar-color: var(--liq-primary, #4a9080) var(--cream, #faf8f5);
}

/* Scroll fade hint at bottom */
.enrich-scroll-fade {
    position: relative;
}
.enrich-scroll-fade::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to top, var(--cream, #faf8f5), transparent);
    pointer-events: none;
    display: block;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.enrich-section-title {
    font-family: var(--ed-font-serif, 'Fraunces', Georgia, serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    margin: 16px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rule, #d4d0c8);
    display: flex;
    align-items: center;
    gap: 8px;
}
.enrich-section-title:first-child {
    margin-top: 0;
}
.enrich-section-desc {
    font-size: 0.82rem;
    color: var(--ink-muted, #6b6b6b);
    margin: -6px 0 10px 0;
    line-height: 1.4;
}

/* ============================================
   PILL SYSTEM
   ============================================ */
.enrich-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.enrich-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: white;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: var(--ed-radius-pill, 100px);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    color: var(--ink-light, #3d3d3d);
    font-weight: 500;
    user-select: none;
    position: relative;
}

.enrich-pill:hover {
    border-color: var(--liq-primary, #4a9080);
    background: var(--liq-light, #e6f2ef);
    color: var(--liq-deep, #3a7265);
}

.enrich-pill.selected {
    background: var(--liq-primary, #4a9080);
    color: white;
    border-color: var(--liq-deep, #3a7265);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(74, 144, 128, 0.25);
}

.enrich-pill.selected .enrich-pill-check {
    display: inline-flex;
}

.enrich-pill-check {
    display: none;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
}

.enrich-pill-check svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.enrich-pill .enrich-pill-code {
    font-family: var(--ed-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Confidence indicator on pills */
.enrich-pill .confidence-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.enrich-pill .confidence-text {
    font-size: 0.75rem;
    font-family: var(--ed-font-mono, monospace);
    opacity: 0.8;
}
.enrich-pill.selected .confidence-dot,
.enrich-pill.selected .confidence-text {
    opacity: 0.85;
}

/* ============================================
   ROW SYSTEM
   ============================================ */
.enrich-rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.enrich-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    min-height: 44px;
}

.enrich-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.6);
}
.enrich-row:nth-child(even) {
    background: var(--cream, #faf8f5);
}

.enrich-row:hover {
    background: var(--liq-light, #e6f2ef);
}

/* Classification left-border preview */
.enrich-row[data-class="current"] {
    border-left: 3px solid var(--ed-success, #059669);
}
.enrich-row[data-class="non-current"] {
    border-left: 3px solid #3b82f6;
}
.enrich-row[data-class="fixed"] {
    border-left: 3px solid var(--ed-success, #059669);
}
.enrich-row[data-class="variable"] {
    border-left: 3px solid var(--ed-error, #dc2626);
}
.enrich-row[data-class="semi"] {
    border-left: 3px solid var(--ed-warning, #d97706);
}

.enrich-row-info {
    flex: 1;
    min-width: 0;
}

.enrich-row-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink, #1a1a1a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enrich-row-meta {
    font-size: 0.78rem;
    color: var(--ink-muted, #6b6b6b);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.enrich-row-meta .mono {
    font-family: var(--ed-font-mono, monospace);
}

.enrich-row-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============================================
   CONFIDENCE BADGE
   ============================================ */
.enrich-confidence {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-family: var(--ed-font-mono, monospace);
    white-space: nowrap;
}

.enrich-confidence .conf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.enrich-confidence.high .conf-dot  { background: var(--ed-success, #059669); }
.enrich-confidence.medium .conf-dot { background: var(--ed-warning, #d97706); }
.enrich-confidence.low .conf-dot   { background: var(--ed-error, #dc2626); }

.enrich-confidence.high  { color: var(--ed-success, #059669); }
.enrich-confidence.medium { color: var(--ed-warning, #d97706); }
.enrich-confidence.low   { color: var(--ed-error, #dc2626); }

/* ============================================
   FORM INPUTS
   ============================================ */
.enrich-input {
    font-family: var(--ed-font-mono, 'JetBrains Mono', monospace);
    font-size: 0.88rem;
    padding: 6px 10px;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: var(--ed-radius, 4px);
    background: white;
    color: var(--ink, #1a1a1a);
    text-align: right;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 80px;
}

.enrich-input:focus {
    outline: none;
    border-color: var(--liq-primary, #4a9080);
    box-shadow: 0 0 0 2px rgba(74, 144, 128, 0.15);
}

.enrich-input.wide {
    width: 100%;
    text-align: left;
}

.enrich-input-suffix {
    font-size: 0.82rem;
    color: var(--ink-muted, #6b6b6b);
    margin-left: 4px;
}

/* Form groups (stacked label + input) */
.enrich-form-group {
    margin-bottom: 16px;
}

.enrich-form-group label {
    display: block;
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink, #1a1a1a);
    margin-bottom: 5px;
}

.enrich-form-group .enrich-helper {
    font-size: 0.78rem;
    color: var(--ink-muted, #6b6b6b);
    margin-top: 3px;
}

.enrich-form-group .enrich-ref {
    font-size: 0.78rem;
    color: var(--ink-subtle, #999);
    font-family: var(--ed-font-mono, monospace);
    margin-top: 2px;
}

.enrich-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .enrich-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CUSTOM DROPDOWN (replacing native select)
   ============================================ */
.enrich-select {
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: var(--ed-radius, 4px);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--ink, #1a1a1a);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 140px;
}

.enrich-select:focus {
    outline: none;
    border-color: var(--liq-primary, #4a9080);
    box-shadow: 0 0 0 2px rgba(74, 144, 128, 0.15);
}

/* ============================================
   CUSTOM CHECKBOX
   ============================================ */
.enrich-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    color: var(--ink-light, #3d3d3d);
    padding: 4px 0;
}

.enrich-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.enrich-checkbox .check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--rule, #d4d0c8);
    border-radius: 4px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
}

.enrich-checkbox .check-box svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.18s ease;
}

.enrich-checkbox input:checked + .check-box {
    background: var(--liq-primary, #4a9080);
    border-color: var(--liq-deep, #3a7265);
}

.enrich-checkbox input:checked + .check-box svg {
    opacity: 1;
    transform: scale(1);
}

.enrich-checkbox:hover .check-box {
    border-color: var(--liq-primary, #4a9080);
}

/* ============================================
   CARD MULTI-SELECT (replacing native <select multiple>)
   ============================================ */
.enrich-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.enrich-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.enrich-card:hover {
    border-color: var(--liq-primary, #4a9080);
    background: var(--liq-light, #e6f2ef);
}

.enrich-card.selected {
    border-color: var(--liq-primary, #4a9080);
    border-left: 3px solid var(--liq-primary, #4a9080);
    background: rgba(74, 144, 128, 0.06);
}

.enrich-card .check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--rule, #d4d0c8);
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.18s ease;
}

.enrich-card .check-box svg {
    width: 12px;
    height: 12px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.18s ease;
}

.enrich-card.selected .check-box {
    background: var(--liq-primary, #4a9080);
    border-color: var(--liq-deep, #3a7265);
}

.enrich-card.selected .check-box svg {
    opacity: 1;
    transform: scale(1);
}

.enrich-card-info {
    flex: 1;
    min-width: 0;
}

.enrich-card-name {
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--ink, #1a1a1a);
    line-height: 1.3;
}

.enrich-card-balance {
    font-size: 0.78rem;
    font-family: var(--ed-font-mono, monospace);
    color: var(--ink-muted, #6b6b6b);
    margin-top: 2px;
}

/* ============================================
   TAB SYSTEM
   ============================================ */
.enrich-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--rule, #d4d0c8);
    margin-bottom: 16px;
    overflow-x: auto;
}

.enrich-tab {
    padding: 8px 16px;
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-muted, #6b6b6b);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.enrich-tab:hover {
    color: var(--liq-primary, #4a9080);
}

.enrich-tab.active {
    color: var(--liq-primary, #4a9080);
    border-bottom-color: var(--liq-primary, #4a9080);
    font-weight: 600;
}

.enrich-tab-panel {
    display: none;
}

.enrich-tab-panel.active {
    display: block;
    animation: enrichFadeIn 0.2s ease;
}

@keyframes enrichFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   TABLE STYLE (opening balances, etc.)
   ============================================ */
.enrich-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.85rem;
}

.enrich-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--ink-muted, #6b6b6b);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 10px;
    border-bottom: 2px solid var(--rule, #d4d0c8);
    white-space: nowrap;
}

.enrich-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(212, 208, 200, 0.5);
    vertical-align: middle;
}

.enrich-table tbody tr:hover {
    background: var(--liq-light, #e6f2ef);
}

.enrich-table .cell-name {
    font-weight: 500;
}

.enrich-table .cell-mono {
    font-family: var(--ed-font-mono, monospace);
    font-size: 0.82rem;
    color: var(--ink-muted, #6b6b6b);
}

.enrich-table input.enrich-input {
    width: 120px;
}

/* ============================================
   BUTTONS
   ============================================ */
.enrich-btn-confirm {
    background: var(--liq-primary, #4a9080);
    color: white;
    border: none;
    padding: 9px 22px;
    border-radius: var(--ed-radius, 4px);
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.enrich-btn-confirm:hover {
    background: var(--liq-deep, #3a7265);
    box-shadow: var(--ed-shadow-md, 0 2px 8px rgba(0,0,0,0.06));
}

.enrich-btn-skip {
    background: none;
    color: var(--ink-muted, #6b6b6b);
    border: none;
    padding: 9px 18px;
    border-radius: var(--ed-radius, 4px);
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.enrich-btn-skip:hover {
    color: var(--ink, #1a1a1a);
    background: rgba(0, 0, 0, 0.04);
}

.enrich-btn-secondary {
    background: white;
    color: var(--ink-light, #3d3d3d);
    border: 1px solid var(--rule, #d4d0c8);
    padding: 6px 14px;
    border-radius: var(--ed-radius, 4px);
    font-family: var(--ed-font-sans, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.enrich-btn-secondary:hover {
    border-color: var(--liq-primary, #4a9080);
    color: var(--liq-primary, #4a9080);
}

/* ============================================
   LIQUID ASSET CARD (multi-checkbox per card)
   ============================================ */
.enrich-liquid-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: 6px;
    margin-bottom: 6px;
}

.enrich-liquid-card:hover {
    border-color: var(--liq-primary, #4a9080);
}

.enrich-liquid-name {
    flex: 1;
    min-width: 0;
}

.enrich-liquid-name .name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink, #1a1a1a);
}

.enrich-liquid-name .code-bal {
    font-size: 0.78rem;
    color: var(--ink-muted, #6b6b6b);
    font-family: var(--ed-font-mono, monospace);
    margin-top: 1px;
}

.enrich-liquid-checks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

/* ============================================
   BUDGET / EMPLOYEE FORM STYLING
   ============================================ */
.enrich-budget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule, #d4d0c8);
}

.enrich-budget-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
}

.enrich-budget-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.6);
}

.enrich-budget-row .acct-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enrich-budget-row .acct-actual {
    font-family: var(--ed-font-mono, monospace);
    font-size: 0.82rem;
    color: var(--ink-muted, #6b6b6b);
    min-width: 80px;
    text-align: right;
}

.enrich-budget-row .enrich-input {
    width: 100px;
}

.enrich-budget-row .copy-btn {
    padding: 3px 8px;
    font-size: 0.75rem;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: 3px;
    background: white;
    cursor: pointer;
    color: var(--ink-muted, #6b6b6b);
    transition: all 0.15s;
}

.enrich-budget-row .copy-btn:hover {
    border-color: var(--liq-primary, #4a9080);
    color: var(--liq-primary, #4a9080);
}

.enrich-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.enrich-summary-card {
    background: white;
    border: 1px solid var(--rule, #d4d0c8);
    border-radius: 6px;
    padding: 14px;
    text-align: center;
}

.enrich-summary-card .label {
    font-size: 0.78rem;
    color: var(--ink-muted, #6b6b6b);
    margin-bottom: 4px;
}

.enrich-summary-card .value {
    font-family: var(--ed-font-mono, monospace);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
}

/* ============================================
   CAPITAL STRUCTURE FORM SECTIONS
   ============================================ */
.enrich-form-section {
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--rule, #d4d0c8);
}

.enrich-form-section h4 {
    font-family: var(--ed-font-serif, 'Fraunces', Georgia, serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--liq-deep, #3a7265);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enrich-form-section h4 svg {
    width: 18px;
    height: 18px;
    stroke: var(--liq-primary, #4a9080);
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    #promptModal.enrichment-active .prompt-modal-content {
        max-width: 100%;
        margin: 8px;
        padding: 16px;
    }

    .enrich-pills {
        gap: 6px;
    }

    .enrich-pill {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .enrich-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .enrich-row-control {
        align-self: flex-end;
    }

    .enrich-cards {
        grid-template-columns: 1fr;
    }

    .enrich-form-grid {
        grid-template-columns: 1fr;
    }

    .enrich-tabs {
        gap: 0;
    }

    .enrich-tab {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .enrich-liquid-card {
        flex-direction: column;
        gap: 8px;
    }

    .enrich-summary-cards {
        grid-template-columns: 1fr;
    }

    .enrich-budget-header {
        flex-direction: column;
        align-items: stretch;
    }
}
