/* _content/JIrlee.Panel.UI/Pages/Dashboard/Bot/BotDashboard.razor.rz.scp.css */
/* ??????????????????????????????????????????
   Bot Automation � Scoped Styles
   ?????????????????????????????????????????? */

/* Loading */
.bot-loading[b-l5lroagm8t] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
    color: var(--text-muted, #94a3b8);
}

.bot-spinner[b-l5lroagm8t] {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: var(--brand, #6366f1);
    border-radius: 50%;
    animation: bot-spin-b-l5lroagm8t 0.8s linear infinite;
}

@keyframes bot-spin-b-l5lroagm8t {
    to { transform: rotate(360deg); }
}

/* Status Row */
.bot-status-row[b-l5lroagm8t] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.bot-card[b-l5lroagm8t] {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bot-card:hover[b-l5lroagm8t] {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.bot-card-header[b-l5lroagm8t] {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
}

.bot-card-body[b-l5lroagm8t] {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Status Indicator */
.bot-status-indicator[b-l5lroagm8t] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.bot-status-on[b-l5lroagm8t] {
    color: #10b981;
}

.bot-status-off[b-l5lroagm8t] {
    color: #ef4444;
}

.bot-pulse[b-l5lroagm8t] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.bot-status-on .bot-pulse[b-l5lroagm8t] {
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    animation: bot-pulse-green-b-l5lroagm8t 2s infinite;
}

.bot-status-off .bot-pulse[b-l5lroagm8t] {
    background: #ef4444;
}

@keyframes bot-pulse-green-b-l5lroagm8t {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Schedule */
.bot-schedule-value[b-l5lroagm8t] {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bot-schedule-number[b-l5lroagm8t] {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand, #6366f1);
    line-height: 1;
}

.bot-schedule-unit[b-l5lroagm8t] {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
}

.bot-schedule-detail[b-l5lroagm8t] {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-action-desc[b-l5lroagm8t] {
    font-size: 0.88rem;
    color: var(--text-muted, #64748b);
    text-align: center;
    margin: 0;
}

/* Buttons */
.bot-btn[b-l5lroagm8t] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.bot-btn:disabled[b-l5lroagm8t] {
    opacity: 0.6;
    cursor: not-allowed;
}

.bot-btn-primary[b-l5lroagm8t] {
    background: var(--brand, #6366f1);
    color: #fff;
}

.bot-btn-primary:hover:not(:disabled)[b-l5lroagm8t] {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.bot-btn-success[b-l5lroagm8t] {
    background: #10b981;
    color: #fff;
}

.bot-btn-success:hover:not(:disabled)[b-l5lroagm8t] {
    background: #059669;
}

.bot-btn-danger[b-l5lroagm8t] {
    background: #ef4444;
    color: #fff;
}

.bot-btn-danger:hover:not(:disabled)[b-l5lroagm8t] {
    background: #dc2626;
}

.bot-btn-spinner[b-l5lroagm8t] {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bot-spin-b-l5lroagm8t 0.6s linear infinite;
}

/* Alert */
.bot-alert[b-l5lroagm8t] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: bot-fade-in-b-l5lroagm8t 0.3s ease-out;
}

.bot-alert-success[b-l5lroagm8t] {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bot-alert-error[b-l5lroagm8t] {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.bot-alert-close[b-l5lroagm8t] {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 4px;
}

.bot-alert-close:hover[b-l5lroagm8t] {
    opacity: 1;
}

@keyframes bot-fade-in-b-l5lroagm8t {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Titles */
.bot-section-title[b-l5lroagm8t] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-section-title i[b-l5lroagm8t] {
    color: var(--brand, #6366f1);
}

/* Analytics Row */
.bot-analytics-row[b-l5lroagm8t] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.bot-metric-card[b-l5lroagm8t] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg, #fff);
    border-radius: 14px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    transition: transform 0.2s, box-shadow 0.2s;
}

.bot-metric-card:hover[b-l5lroagm8t] {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.bot-metric-icon[b-l5lroagm8t] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bot-metric-info[b-l5lroagm8t] {
    display: flex;
    flex-direction: column;
}

.bot-metric-value[b-l5lroagm8t] {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #1e293b);
    line-height: 1.2;
}

.bot-metric-label[b-l5lroagm8t] {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* Configuration Panel */
.bot-config-panel[b-l5lroagm8t] {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    padding: 24px;
    margin-bottom: 8px;
}

.bot-config-group[b-l5lroagm8t] {
    margin-bottom: 20px;
}

.bot-config-label[b-l5lroagm8t] {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #1e293b);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bot-config-input-row[b-l5lroagm8t] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bot-range[b-l5lroagm8t] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color, #e2e8f0);
    outline: none;
}

.bot-range[b-l5lroagm8t]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand, #6366f1);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bot-range-value[b-l5lroagm8t] {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand, #6366f1);
    min-width: 48px;
    text-align: center;
}

.bot-config-presets[b-l5lroagm8t] {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.bot-preset[b-l5lroagm8t] {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.15s;
}

.bot-preset:hover[b-l5lroagm8t] {
    border-color: var(--brand, #6366f1);
    color: var(--brand, #6366f1);
}

.bot-preset.active[b-l5lroagm8t] {
    background: var(--brand, #6366f1);
    color: #fff;
    border-color: var(--brand, #6366f1);
}

.bot-btn-save[b-l5lroagm8t] {
    margin-top: 8px;
}

/* Activity Table */
.bot-activity-panel[b-l5lroagm8t] {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    overflow: hidden;
    margin-bottom: 24px;
}

.bot-table-wrap[b-l5lroagm8t] {
    overflow-x: auto;
}

.bot-table[b-l5lroagm8t] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.bot-table thead th[b-l5lroagm8t] {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #64748b);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
    white-space: nowrap;
}

.bot-table tbody tr[b-l5lroagm8t] {
    transition: background 0.15s;
}

.bot-table tbody tr:hover[b-l5lroagm8t] {
    background: var(--brand-muted, rgba(99, 102, 241, 0.04));
}

.bot-table tbody td[b-l5lroagm8t] {
    padding: 12px 18px;
    color: var(--text-primary, #1e293b);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.03));
    white-space: nowrap;
}

.bot-platform-badge[b-l5lroagm8t] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--brand, #6366f1);
    font-weight: 600;
    font-size: 0.82rem;
}

.bot-mono[b-l5lroagm8t] {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
}

/* Empty State */
.bot-empty[b-l5lroagm8t] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 12px;
    color: var(--text-muted, #94a3b8);
}

.bot-empty i[b-l5lroagm8t] {
    font-size: 2.5rem;
    opacity: 0.4;
}

.bot-empty p[b-l5lroagm8t] {
    max-width: 400px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bot-status-row[b-l5lroagm8t] {
        grid-template-columns: 1fr;
    }

    .bot-analytics-row[b-l5lroagm8t] {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-config-presets[b-l5lroagm8t] {
        justify-content: center;
    }

    .bot-health-grid[b-l5lroagm8t] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bot-analytics-row[b-l5lroagm8t] {
        grid-template-columns: 1fr;
    }

    .bot-metric-card[b-l5lroagm8t] {
        padding: 14px;
    }
}

/* Health Check Panel */
.bot-health-panel[b-l5lroagm8t] {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    padding: 24px;
    margin-bottom: 24px;
}

.bot-health-loading[b-l5lroagm8t] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
}

.bot-health-grid[b-l5lroagm8t] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.bot-health-item[b-l5lroagm8t] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    transition: transform 0.2s, box-shadow 0.2s;
}

.bot-health-item:hover[b-l5lroagm8t] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.bot-health-ok[b-l5lroagm8t] {
    border-left: 4px solid #10b981;
}

.bot-health-fail[b-l5lroagm8t] {
    border-left: 4px solid #ef4444;
}

.bot-health-info[b-l5lroagm8t] {
    border-left: 4px solid #6366f1;
}

.bot-health-icon[b-l5lroagm8t] {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.bot-health-ok .bot-health-icon[b-l5lroagm8t] {
    color: #10b981;
}

.bot-health-fail .bot-health-icon[b-l5lroagm8t] {
    color: #ef4444;
}

.bot-health-info .bot-health-icon[b-l5lroagm8t] {
    color: #6366f1;
}

.bot-health-detail[b-l5lroagm8t] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-health-title[b-l5lroagm8t] {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary, #1e293b);
}

.bot-health-desc[b-l5lroagm8t] {
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
    word-break: break-word;
}

.bot-health-latency[b-l5lroagm8t] {
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    font-family: 'Courier New', monospace;
}

.bot-btn-outline[b-l5lroagm8t] {
    background: transparent;
    color: var(--brand, #6366f1);
    border: 1.5px solid var(--brand, #6366f1);
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.bot-btn-outline:hover:not(:disabled)[b-l5lroagm8t] {
    background: var(--brand, #6366f1);
    color: #fff;
}

.bot-btn-outline:disabled[b-l5lroagm8t] {
    opacity: 0.6;
    cursor: not-allowed;
}
/* _content/JIrlee.Panel.UI/Pages/Dashboard/Dectunary/Dictionary.razor.rz.scp.css */
/* ==============================================
   DICTIONARY � Advanced UX Enhancements
   1) Smart Search Experience
   2) Adaptive Result Cards
   3) Context-Aware Interaction Layer
   4) Focus Mode & Reading Comfort
   ============================================== */

/* ============================================
   0. SHARED KEYFRAMES & UTILITIES
   ============================================ */
@keyframes dict-fadeIn-b-i3vmo1th2l {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dict-slideUp-b-i3vmo1th2l {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dict-pulse-b-i3vmo1th2l {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
@keyframes dict-shimmer-b-i3vmo1th2l {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes dict-searchGlow-b-i3vmo1th2l {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
    50%      { box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.15); }
}
@keyframes dict-ripple-b-i3vmo1th2l {
    to { transform: scale(2.5); opacity: 0; }
}
@keyframes dict-focusEnter-b-i3vmo1th2l {
    from { backdrop-filter: blur(0px); background: transparent; }
    to   { backdrop-filter: blur(2px); background: rgba(0,0,0,0.15); }
}
@keyframes dict-cardStagger-b-i3vmo1th2l {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dict-heartBeat-b-i3vmo1th2l {
    0%   { transform: scale(1); }
    15%  { transform: scale(1.25); }
    30%  { transform: scale(1); }
    45%  { transform: scale(1.15); }
    60%  { transform: scale(1); }
}
@keyframes dict-copyFlash-b-i3vmo1th2l {
    0%   { background: rgba(16, 185, 129, 0.25); }
    100% { background: transparent; }
}
@keyframes dict-underlineDraw-b-i3vmo1th2l {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ============================================
   1. SMART SEARCH EXPERIENCE
   ============================================ */

/* Search wrapper with animated underline */
.dict-search-wrapper[b-i3vmo1th2l] {
    position: relative;
    margin-bottom: 12px;
}

.dict-search-wrapper input[b-i3vmo1th2l] {
    width: 100%;
    padding: 11px 40px 11px 38px;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 200ms ease,
                box-shadow 200ms ease,
                background 200ms ease;
    outline: none;
}

.dict-search-wrapper input[b-i3vmo1th2l]::placeholder {
    color: var(--text-muted);
    transition: color 200ms ease;
}

.dict-search-wrapper input:hover[b-i3vmo1th2l] {
    border-color: var(--border-strong);
}

.dict-search-wrapper input:focus[b-i3vmo1th2l] {
    border-color: var(--brand);
    box-shadow: var(--ring-brand);
    background: rgba(99, 102, 241, 0.03);
}

.dict-search-wrapper input:focus[b-i3vmo1th2l]::placeholder {
    color: transparent;
}

/* Search icon */
.dict-search-icon[b-i3vmo1th2l] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    transition: color 200ms ease, transform 200ms ease;
}

.dict-search-wrapper input:focus ~ .dict-search-icon[b-i3vmo1th2l] {
    color: var(--brand);
    transform: translateY(-50%) scale(1.1);
}

/* Animated underline bar */
.dict-search-underline[b-i3vmo1th2l] {
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.dict-search-wrapper input:focus ~ .dict-search-underline[b-i3vmo1th2l] {
    transform: scaleX(1);
}

/* Clear button */
.dict-search-clear[b-i3vmo1th2l] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, color 200ms ease, background 150ms ease;
}

.dict-search-wrapper.has-value .dict-search-clear[b-i3vmo1th2l] {
    opacity: 1;
    pointer-events: auto;
}

.dict-search-clear:hover[b-i3vmo1th2l] {
    color: var(--text-primary);
    background: var(--surface-interactive-hover);
}

/* Search hint */
.dict-search-hint[b-i3vmo1th2l] {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 2px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 250ms ease, transform 250ms ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dict-search-wrapper input:focus ~ .dict-search-hint[b-i3vmo1th2l] {
    opacity: 1;
    transform: translateY(0);
}

.dict-search-hint i[b-i3vmo1th2l] {
    color: var(--brand);
    font-size: 10px;
}

/* Result count badge */
.dict-result-count[b-i3vmo1th2l] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 10px;
    background: var(--surface-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    animation: dict-fadeIn-b-i3vmo1th2l 300ms ease both;
}

.dict-result-count i[b-i3vmo1th2l] {
    color: var(--brand);
    font-size: 9px;
}

/* Keyword highlight inside cards */
.dict-highlight[b-i3vmo1th2l] {
    background: rgba(99, 102, 241, 0.18);
    color: var(--brand-hover);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

/* ============================================
   2. ADAPTIVE RESULT CARDS
   ============================================ */
.dict-card[b-i3vmo1th2l] {
    background: var(--surface-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    transition: border-color 200ms ease,
                box-shadow 250ms ease,
                transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
                background 200ms ease;
    animation: dict-cardStagger-b-i3vmo1th2l 400ms ease both;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dict-card:nth-child(1)[b-i3vmo1th2l] { animation-delay: 0ms; }
.dict-card:nth-child(2)[b-i3vmo1th2l] { animation-delay: 40ms; }
.dict-card:nth-child(3)[b-i3vmo1th2l] { animation-delay: 80ms; }
.dict-card:nth-child(4)[b-i3vmo1th2l] { animation-delay: 120ms; }
.dict-card:nth-child(5)[b-i3vmo1th2l] { animation-delay: 160ms; }
.dict-card:nth-child(6)[b-i3vmo1th2l] { animation-delay: 200ms; }
.dict-card:nth-child(7)[b-i3vmo1th2l] { animation-delay: 240ms; }
.dict-card:nth-child(8)[b-i3vmo1th2l] { animation-delay: 280ms; }

.dict-card:hover[b-i3vmo1th2l] {
    border-color: var(--border-interactive);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
    background: var(--surface-card-hover);
}

/* Accent bar on the left */
.dict-card[b-i3vmo1th2l]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--brand-gradient);
    opacity: 0;
    transform: scaleY(0.3);
    transition: opacity 250ms ease, transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dict-card:hover[b-i3vmo1th2l]::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Card header row */
.dict-card-header[b-i3vmo1th2l] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Primary word */
.dict-card-word[b-i3vmo1th2l] {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Match badge */
.dict-match-badge[b-i3vmo1th2l] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.dict-match-badge.exact[b-i3vmo1th2l] {
    background: var(--success-muted);
    color: var(--success);
}

.dict-match-badge.partial[b-i3vmo1th2l] {
    background: var(--warning-muted);
    color: var(--warning);
}

/* Metadata chips row */
.dict-card-meta[b-i3vmo1th2l] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.dict-chip[b-i3vmo1th2l] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    color: var(--text-secondary);
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dict-chip:hover[b-i3vmo1th2l] {
    border-color: var(--border-interactive);
    background: var(--brand-muted);
    color: var(--text-primary);
}

.dict-chip i[b-i3vmo1th2l] {
    font-size: 10px;
    flex-shrink: 0;
}

.dict-chip.chip-lang[b-i3vmo1th2l] {
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--brand-hover);
}

.dict-chip.chip-lang i[b-i3vmo1th2l] {
    color: var(--brand);
}

.dict-chip.chip-syn[b-i3vmo1th2l] {
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--success);
}

.dict-chip.chip-syn i[b-i3vmo1th2l] {
    color: var(--success);
}

.dict-chip.chip-opp[b-i3vmo1th2l] {
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--warning);
}

.dict-chip.chip-opp i[b-i3vmo1th2l] {
    color: var(--warning);
}

.dict-chip.chip-type[b-i3vmo1th2l] {
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--info);
}

.dict-chip.chip-type i[b-i3vmo1th2l] {
    color: var(--info);
}

/* Separator inside card */
.dict-card-divider[b-i3vmo1th2l] {
    height: 1px;
    background: var(--border-subtle);
    margin: 2px 0;
}

/* Empty state */
.dict-empty[b-i3vmo1th2l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-muted);
    animation: dict-fadeIn-b-i3vmo1th2l 400ms ease both;
}

.dict-empty i[b-i3vmo1th2l] {
    font-size: 32px;
    opacity: 0.3;
}

.dict-empty span[b-i3vmo1th2l] {
    font-size: 13px;
    font-weight: 500;
}

/* RTL support for cards */
[dir="rtl"] .dict-card[b-i3vmo1th2l]::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

[dir="rtl"] .dict-chip[b-i3vmo1th2l] {
    direction: rtl;
}

/* ============================================
   3. CONTEXT-AWARE INTERACTION LAYER
   ============================================ */
.dict-card-actions[b-i3vmo1th2l] {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

/* Base micro-action button */
.dict-micro-btn[b-i3vmo1th2l] {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 150ms ease, background 150ms ease, transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: scale(0.85);
}

.dict-card:hover .dict-micro-btn[b-i3vmo1th2l] {
    opacity: 1;
    transform: scale(1);
}

/* For touch devices, always visible */
@media (hover: none) {
    .dict-micro-btn[b-i3vmo1th2l] {
        opacity: 1;
        transform: scale(1);
    }
}

.dict-micro-btn:hover[b-i3vmo1th2l] {
    background: var(--surface-interactive-hover);
    color: var(--text-primary);
    transform: scale(1.15);
}

.dict-micro-btn:active[b-i3vmo1th2l] {
    transform: scale(0.9);
    transition-duration: 80ms;
}

/* Copy button */
.dict-micro-btn.btn-copy:hover[b-i3vmo1th2l] {
    color: var(--success);
    background: var(--success-muted);
}

.dict-micro-btn.btn-copy.copied[b-i3vmo1th2l] {
    color: var(--success);
    animation: dict-copyFlash-b-i3vmo1th2l 600ms ease;
}

/* Favorite button */
.dict-micro-btn.btn-fav:hover[b-i3vmo1th2l] {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.12);
}

.dict-micro-btn.btn-fav.is-fav[b-i3vmo1th2l] {
    color: #f472b6;
    opacity: 1;
    transform: scale(1);
}

.dict-micro-btn.btn-fav.is-fav:hover[b-i3vmo1th2l] {
    animation: dict-heartBeat-b-i3vmo1th2l 600ms ease;
}

/* Share button */
.dict-micro-btn.btn-share:hover[b-i3vmo1th2l] {
    color: var(--info);
    background: var(--info-muted);
}

/* CRUD action buttons (inside cards) */
.dict-card-crud[b-i3vmo1th2l] {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.dict-crud-btn[b-i3vmo1th2l] {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

.dict-crud-btn:hover[b-i3vmo1th2l] {
    transform: scale(1.12);
}

.dict-crud-btn:active[b-i3vmo1th2l] {
    transform: scale(0.9);
}

.dict-crud-btn.btn-edit[b-i3vmo1th2l] {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--success-muted);
}

.dict-crud-btn.btn-edit:hover[b-i3vmo1th2l] {
    background: var(--success);
    color: #fff;
    box-shadow: var(--success-glow);
}

.dict-crud-btn.btn-delete[b-i3vmo1th2l] {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
    background: var(--danger-muted);
}

.dict-crud-btn.btn-delete:hover[b-i3vmo1th2l] {
    background: var(--danger);
    color: #fff;
    box-shadow: var(--danger-glow);
}

.dict-crud-btn.btn-settings[b-i3vmo1th2l] {
    color: var(--text-muted);
    border-color: var(--border-subtle);
    background: var(--surface-card);
}

.dict-crud-btn.btn-settings:hover[b-i3vmo1th2l] {
    color: var(--brand-hover);
    background: var(--brand-muted);
}

.dict-crud-btn.btn-accept[b-i3vmo1th2l] {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
    background: var(--success-muted);
}

.dict-crud-btn.btn-accept:hover[b-i3vmo1th2l] {
    background: var(--success);
    color: #fff;
    box-shadow: var(--success-glow);
}

.dict-crud-btn.btn-reject[b-i3vmo1th2l] {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
    background: var(--danger-muted);
}

.dict-crud-btn.btn-reject:hover[b-i3vmo1th2l] {
    background: var(--danger);
    color: #fff;
    box-shadow: var(--danger-glow);
}

/* Tooltip-style label on hover */
.dict-micro-btn[title][b-i3vmo1th2l]::after {
    content: attr(title);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-overlay);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 10;
}

.dict-micro-btn[title]:hover[b-i3vmo1th2l]::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ============================================
   4. FOCUS MODE & READING COMFORT
   ============================================ */

/* Focus toggle button */
.dict-focus-toggle[b-i3vmo1th2l] {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 200ms ease;
    -webkit-tap-highlight-color: transparent;
    margin-left: 4px;
}

.dict-focus-toggle:hover[b-i3vmo1th2l] {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-muted);
}

.dict-focus-toggle.active[b-i3vmo1th2l] {
    background: var(--brand-gradient);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

/* Focus mode applied to .column */
.column.dict-focus-mode[b-i3vmo1th2l] {
    background: var(--surface-base);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: none;
    z-index: 5;
    position: relative;
}

/* In focus mode, enhance typography */
.column.dict-focus-mode .dict-card[b-i3vmo1th2l] {
    padding: 20px 22px;
    gap: 14px;
}

.column.dict-focus-mode .dict-card-word[b-i3vmo1th2l] {
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -0.015em;
}

.column.dict-focus-mode .dict-chip[b-i3vmo1th2l] {
    font-size: 12.5px;
    padding: 5px 12px;
}

.column.dict-focus-mode .dict-card-meta[b-i3vmo1th2l] {
    gap: 8px;
}

/* Dim sibling columns when one is in focus mode */
.content:has(.dict-focus-mode) .column:not(.dict-focus-mode)[b-i3vmo1th2l] {
    opacity: 0.35;
    filter: blur(1px);
    pointer-events: none;
    transition: opacity 400ms ease, filter 400ms ease;
}

/* Reading comfort overrides in focus mode */
.column.dict-focus-mode .list[b-i3vmo1th2l] {
    max-height: none;
    overflow-y: auto;
}

.column.dict-focus-mode .list > div[b-i3vmo1th2l],
.column.dict-focus-mode .dict-card[b-i3vmo1th2l] {
    line-height: 1.75;
}

/* Smooth transition for entering / exiting focus mode */
.column[b-i3vmo1th2l] {
    transition: border-color 300ms ease,
                box-shadow 300ms ease,
                background 300ms ease,
                opacity 400ms ease,
                filter 400ms ease;
}

/* Focus mode indicator */
.dict-focus-label[b-i3vmo1th2l] {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-hover);
    padding: 4px 12px;
    background: var(--brand-muted);
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 8px;
    animation: dict-fadeIn-b-i3vmo1th2l 300ms ease both;
}

.column.dict-focus-mode .dict-focus-label[b-i3vmo1th2l] {
    display: inline-flex;
}

.dict-focus-label i[b-i3vmo1th2l] {
    font-size: 10px;
}

/* ============================================
   5. RESPONSIVE REFINEMENTS
   ============================================ */
@media (max-width: 1024px) {
    .dict-card-actions[b-i3vmo1th2l] {
        gap: 2px;
    }

    .dict-micro-btn[b-i3vmo1th2l] {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .dict-card-word[b-i3vmo1th2l] {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .dict-card[b-i3vmo1th2l] {
        padding: 14px 14px;
    }

    .dict-card-word[b-i3vmo1th2l] {
        font-size: 14px;
    }

    .dict-chip[b-i3vmo1th2l] {
        font-size: 10.5px;
        padding: 3px 8px;
    }

    .dict-micro-btn[b-i3vmo1th2l] {
        opacity: 1;
        transform: scale(1);
    }

    /* Undo sibling dimming on mobile */
    .content:has(.dict-focus-mode) .column:not(.dict-focus-mode)[b-i3vmo1th2l] {
        opacity: 1;
        filter: none;
        pointer-events: auto;
    }
}

/* ============================================
   6. SCROLLBAR REFINEMENT (for word list)
   ============================================ */
.dict-scroll[b-i3vmo1th2l]::-webkit-scrollbar {
    width: 5px;
}

.dict-scroll[b-i3vmo1th2l]::-webkit-scrollbar-track {
    background: transparent;
}

.dict-scroll[b-i3vmo1th2l]::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

.dict-scroll[b-i3vmo1th2l]::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* ============================================
   7. ACCESSIBILITY
   ============================================ */
.dict-micro-btn:focus-visible[b-i3vmo1th2l],
.dict-crud-btn:focus-visible[b-i3vmo1th2l],
.dict-focus-toggle:focus-visible[b-i3vmo1th2l] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.dict-card:focus-within[b-i3vmo1th2l] {
    border-color: var(--border-interactive);
}

@media (prefers-reduced-motion: reduce) {
    .dict-card[b-i3vmo1th2l],
    .dict-micro-btn[b-i3vmo1th2l],
    .dict-search-underline[b-i3vmo1th2l],
    .dict-search-hint[b-i3vmo1th2l] {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
/* _content/JIrlee.Panel.UI/Shared/MainLayout.razor.rz.scp.css */
/* ==============================================
   MAIN LAYOUT � Scoped Styles
   Header Toolbar, Global Search, Accent Picker,
   Feedback Badge, Mobile Cards
   ============================================== */

/* ============================================
   HEADER TOOLBAR
   ============================================ */
.jrl-header-toolbar[b-cz88ww7m9w] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background: var(--surface-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 99;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ============================================
   GLOBAL SEARCH
   ============================================ */
.jrl-global-search[b-cz88ww7m9w] {
    position: relative;
    flex: 0 1 320px;
    min-width: 180px;
    margin-right: auto;
}

.jrl-global-search input[b-cz88ww7m9w] {
    width: 100%;
    padding: 8px 14px 8px 34px;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.jrl-global-search input[b-cz88ww7m9w]::placeholder {
    color: var(--text-muted);
}

.jrl-global-search input:hover[b-cz88ww7m9w] {
    border-color: var(--border-strong);
}

.jrl-global-search input:focus[b-cz88ww7m9w] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.03);
}

.jrl-gs-icon[b-cz88ww7m9w] {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
    transition: color 200ms ease;
}

.jrl-global-search.focused .jrl-gs-icon[b-cz88ww7m9w] {
    color: var(--brand);
}

/* Dropdown */
.jrl-gs-dropdown[b-cz88ww7m9w] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface-overlay);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    z-index: 500;
    max-height: 320px;
    overflow-y: auto;
    animation: jrl-dropIn-b-cz88ww7m9w 200ms ease both;
}

@keyframes jrl-dropIn-b-cz88ww7m9w {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jrl-gs-item[b-cz88ww7m9w] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease;
    cursor: pointer;
}

.jrl-gs-item:hover[b-cz88ww7m9w] {
    background: var(--brand-muted);
    color: var(--brand-hover);
}

.jrl-gs-item i[b-cz88ww7m9w] {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    transition: color 150ms ease;
}

.jrl-gs-item:hover i[b-cz88ww7m9w] {
    color: var(--brand);
}

/* ============================================
   ACCENT COLOR PICKER
   ============================================ */
.jrl-accent-picker[b-cz88ww7m9w] {
    position: relative;
}

.jrl-accent-btn[b-cz88ww7m9w] {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.jrl-accent-btn:hover[b-cz88ww7m9w] {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-muted);
}

.jrl-accent-dropdown[b-cz88ww7m9w] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-overlay);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 500;
    animation: jrl-dropIn-b-cz88ww7m9w 200ms ease both;
}

.jrl-accent-swatch[b-cz88ww7m9w] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--swatch-color);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 200ms ease, box-shadow 200ms ease;
}

.jrl-accent-swatch:hover[b-cz88ww7m9w] {
    transform: scale(1.2);
    border-color: var(--text-primary);
}

.jrl-accent-swatch.active[b-cz88ww7m9w] {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--swatch-color), 0 0 12px var(--swatch-color);
    transform: scale(1.15);
}

/* ============================================
   FEEDBACK NOTIFICATION BADGE
   ============================================ */
.nav-item-feedback[b-cz88ww7m9w] {
    position: relative;
}

.nav-badge[b-cz88ww7m9w] {
    position: absolute;
    top: 6px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: jrl-badgePulse-b-cz88ww7m9w 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes jrl-badgePulse-b-cz88ww7m9w {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- iPad / Tablet landscape (1024px) ---- */
@media (max-width: 1024px) {
    .jrl-global-search[b-cz88ww7m9w] {
        flex: 0 1 240px;
        min-width: 140px;
    }

    .jrl-score-badge span[b-cz88ww7m9w] {
        display: none;
    }
}

/* ---- Tablet portrait / small tablet (768px) ---- */
@media (max-width: 768px) {
    .jrl-header-toolbar[b-cz88ww7m9w] {
        padding: 8px 12px;
        padding-left: 56px;
        gap: 8px;
    }

    .jrl-global-search[b-cz88ww7m9w] {
        flex: 1 1 100%;
        order: 10;
        min-width: 0;
        margin-right: 0;
    }

    .jrl-global-search input[b-cz88ww7m9w] {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .jrl-accent-btn[b-cz88ww7m9w] {
        width: 40px;
        height: 40px;
    }

    .jrl-balance-toggle[b-cz88ww7m9w] {
        width: 40px;
        height: 40px;
    }

    .nav-badge[b-cz88ww7m9w] {
        top: 4px;
        right: 6px;
    }

    .jrl-gs-dropdown[b-cz88ww7m9w] {
        max-height: 60vh;
    }

    .jrl-gs-item[b-cz88ww7m9w] {
        padding: 12px 14px;
        min-height: 44px;
    }
}

/* ---- Mobile (480px) ---- */
@media (max-width: 480px) {
    .jrl-header-toolbar[b-cz88ww7m9w] {
        padding: 6px 10px;
        padding-left: 52px;
        gap: 6px;
    }

    .jrl-accent-dropdown[b-cz88ww7m9w] {
        right: -40px;
    }

    .jrl-score-badge[b-cz88ww7m9w] {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ---- Very small screens (360px) ---- */
@media (max-width: 360px) {
    .jrl-header-toolbar[b-cz88ww7m9w] {
        padding-left: 48px;
        gap: 4px;
    }

    .jrl-accent-btn[b-cz88ww7m9w],
    .jrl-balance-toggle[b-cz88ww7m9w] {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .jrl-score-badge[b-cz88ww7m9w] {
        display: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.jrl-accent-btn:focus-visible[b-cz88ww7m9w],
.jrl-global-search input:focus-visible[b-cz88ww7m9w] {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.jrl-accent-swatch:focus-visible[b-cz88ww7m9w] {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .nav-badge[b-cz88ww7m9w],
    .jrl-gs-dropdown[b-cz88ww7m9w],
    .jrl-accent-dropdown[b-cz88ww7m9w] {
        animation: none !important;
    }
}
