/* ACMOBOOK Requirements Marketplace — Premium UI */

:root {
    --rmk-primary: #6366f1;
    --rmk-primary-dark: #4f46e5;
    --rmk-accent: #8b5cf6;
    --rmk-success: #10b981;
    --rmk-warning: #f59e0b;
    --rmk-danger: #ef4444;
    --rmk-bg: #f8fafc;
    --rmk-surface: #ffffff;
    --rmk-glass: rgba(255, 255, 255, 0.72);
    --rmk-border: rgba(15, 23, 42, 0.08);
    --rmk-text: #0f172a;
    --rmk-muted: #64748b;
    --rmk-radius: 20px;
    --rmk-radius-sm: 12px;
    --rmk-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --rmk-shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.12);
}

.rmk-page { background: var(--rmk-bg); color: var(--rmk-text); }

/* Hero */
.rmk-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
    color: #fff;
    padding: 72px 24px 56px;
    position: relative;
    overflow: hidden;
}
.rmk-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99,102,241,0.35), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139,92,246,0.25), transparent 45%);
    pointer-events: none;
}
.rmk-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.rmk-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.rmk-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 16px;
}
.rmk-hero h1 span {
    background: linear-gradient(90deg, #a5b4fc, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rmk-hero__content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin: 0 0 28px;
    line-height: 1.6;
}
.rmk-hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.rmk-hero__stats strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}
.rmk-hero__stats span {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
.rmk-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Layout */
.rmk-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    padding: 40px 16px 80px;
    max-width: 1320px;
}
.rmk-content { min-width: 0; }
.rmk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.rmk-results-count { margin: 0; color: var(--rmk-muted); font-size: 15px; }
.rmk-results-count strong { color: var(--rmk-text); }

/* Sidebar filters */
.rmk-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.rmk-filters {
    background: var(--rmk-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius);
    padding: 24px;
    box-shadow: var(--rmk-shadow);
}
.rmk-filters__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.rmk-filters__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rmk-filters__clear {
    font-size: 13px;
    color: var(--rmk-primary);
    text-decoration: none;
    font-weight: 600;
}
.rmk-filters__group {
    margin-bottom: 18px;
}
.rmk-filters__group label,
.rmk-filters__group > label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rmk-muted);
    margin-bottom: 8px;
}
.rmk-filters select,
.rmk-filters input[type="text"],
.rmk-filters input[type="date"],
.rmk-search-wrap input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius-sm);
    background: var(--rmk-surface);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rmk-filters select:focus,
.rmk-filters input:focus {
    outline: none;
    border-color: var(--rmk-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.rmk-search-wrap { position: relative; }
.rmk-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rmk-muted);
}
.rmk-search-wrap input { padding-left: 40px; }
.rmk-suggestions {
    margin-top: 10px;
    padding: 12px;
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius-sm);
}
.rmk-suggestions__section span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rmk-muted);
    margin-bottom: 8px;
}
.rmk-suggestion-chip {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid var(--rmk-border);
    background: var(--rmk-bg);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}
.rmk-suggestion-chip:hover {
    border-color: var(--rmk-primary);
    background: rgba(99,102,241,0.08);
}
.rmk-range input[type="range"] { width: 100%; accent-color: var(--rmk-primary); }
.rmk-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}
.rmk-filters__toggles {
    border: none;
    padding: 0;
    margin: 0 0 18px;
}
.rmk-filters__toggles legend {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rmk-muted);
    margin-bottom: 10px;
}
.rmk-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
}
.rmk-toggle input { accent-color: var(--rmk-primary); width: 18px; height: 18px; }
.rmk-toggle--inline { margin: 12px 0; }

/* Grid & Cards */
.rmk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.rmk-grid--4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.rmk-card {
    position: relative;
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius);
    padding: 22px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}
.rmk-card--animate { animation: rmk-fade-up 0.5s ease both; }
@keyframes rmk-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.rmk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rmk-shadow-lg);
    border-color: rgba(99,102,241,0.25);
}
.rmk-card__glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.rmk-card:hover .rmk-card__glow { opacity: 1; }
.rmk-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.rmk-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.rmk-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.rmk-badge--featured { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.rmk-badge--urgent { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }
.rmk-badge--verified { background: rgba(16,185,129,0.12); color: #059669; }
.rmk-badge--premium { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }

.rmk-match { text-align: center; }
.rmk-match__ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(var(--rmk-primary) calc(var(--rmk-pct) * 1%), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.rmk-match__ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--rmk-surface);
    border-radius: 50%;
}
.rmk-match__ring strong {
    position: relative;
    font-size: 13px;
    font-weight: 800;
    color: var(--rmk-primary);
}
.rmk-match small { font-size: 10px; color: var(--rmk-muted); display: block; margin-top: 2px; }

.rmk-card__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
}
.rmk-card__title a { color: inherit; text-decoration: none; }
.rmk-card__title a:hover { color: var(--rmk-primary); }

.rmk-card__budget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rmk-primary);
    margin-bottom: 14px;
}
.rmk-card__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rmk-card__meta li {
    font-size: 13px;
    color: var(--rmk-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.rmk-card__perks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rmk-perk {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--rmk-bg);
    font-size: 11px;
    font-weight: 600;
    color: var(--rmk-muted);
}
.rmk-card__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--rmk-muted);
    padding: 12px 0;
    border-top: 1px solid var(--rmk-border);
    margin-bottom: 14px;
}
.rmk-card__social span { display: flex; align-items: center; gap: 4px; }
.rmk-card__actions { display: flex; gap: 8px; align-items: center; }
.rmk-card__actions .rmk-btn--primary { flex: 1; }

/* Buttons */
.rmk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--rmk-radius-sm);
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.rmk-btn--primary {
    background: linear-gradient(135deg, var(--rmk-primary), var(--rmk-accent));
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.rmk-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.4);
    color: #fff;
}
.rmk-btn--ghost {
    background: var(--rmk-bg);
    color: var(--rmk-text);
    border: 1px solid var(--rmk-border);
}
.rmk-btn--ghost:hover { border-color: var(--rmk-primary); color: var(--rmk-primary); }
.rmk-btn--glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.rmk-btn--lg { padding: 14px 24px; font-size: 15px; }
.rmk-btn--block { width: 100%; }
.rmk-btn.is-saved { color: var(--rmk-primary); border-color: var(--rmk-primary); }

/* Detail page */
.rmk-detail-hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 48px 24px 56px;
    text-align: center;
}
.rmk-detail-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 16px auto 24px;
}
.rmk-detail-hero__badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.rmk-detail-hero__row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.rmk-detail-budget strong,
.rmk-detail-deadline strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #a5b4fc;
}
.rmk-detail-budget span,
.rmk-detail-deadline span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
}
.rmk-detail-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
}
.rmk-detail-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rmk-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 40px 16px 80px;
    max-width: 1200px;
}
.rmk-detail-section {
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius);
    padding: 28px;
    margin-bottom: 20px;
}
.rmk-detail-section h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 800;
}
.rmk-prose { font-size: 15px; line-height: 1.75; color: #334155; }
.rmk-perks-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rmk-timeline { list-style: none; padding: 0; margin: 0; }
.rmk-timeline li { padding: 10px 0; border-bottom: 1px solid var(--rmk-border); font-size: 14px; }
.rmk-faq {
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius-sm);
    padding: 14px 18px;
    margin-bottom: 10px;
    cursor: pointer;
}
.rmk-faq summary { font-weight: 700; }
.rmk-aside-card {
    background: var(--rmk-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius);
    padding: 24px;
    margin-bottom: 20px;
}
.rmk-aside-card dl { margin: 0; }
.rmk-aside-card dt { font-size: 12px; color: var(--rmk-muted); margin-top: 12px; }
.rmk-aside-card dd { margin: 4px 0 0; font-weight: 600; }

/* Match panel & AI */
.rmk-match-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.06));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--rmk-radius);
    padding: 24px;
    margin-bottom: 20px;
}
.rmk-match-panel__ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--rmk-primary) calc(var(--rmk-pct) * 1%), #e2e8f0 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.rmk-match-panel__ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--rmk-surface);
    border-radius: 50%;
}
.rmk-match-panel__ring strong,
.rmk-match-panel__ring span { position: relative; z-index: 1; }
.rmk-match-panel__ring strong { font-size: 24px; color: var(--rmk-primary); }
.rmk-match-panel__ring span { font-size: 11px; color: var(--rmk-muted); }
.rmk-match-reasons { list-style: none; padding: 0; margin: 0 0 16px; }
.rmk-match-reasons li { padding: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rmk-match-reasons .is-match { color: var(--rmk-success); }
.rmk-match-reasons .is-miss { color: var(--rmk-muted); }
.rmk-match-advice { display: flex; flex-wrap: wrap; gap: 8px; }
.rmk-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--rmk-bg);
    border: 1px solid var(--rmk-border);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--rmk-primary);
}

.rmk-ai-insights {
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius);
    padding: 24px;
    margin-bottom: 20px;
}
.rmk-ai-insights__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--rmk-primary);
}
.rmk-ai-insights__head h3 { margin: 0; font-size: 16px; }
.rmk-ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.rmk-ai-stat {
    padding: 14px;
    border-radius: var(--rmk-radius-sm);
    background: var(--rmk-bg);
}
.rmk-ai-stat span { display: block; font-size: 11px; color: var(--rmk-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rmk-ai-stat strong { font-size: 18px; font-weight: 800; }
.rmk-ai-stat--wide { grid-column: 1 / -1; }

/* Modal */
.rmk-modal {
    border: none;
    border-radius: var(--rmk-radius);
    padding: 0;
    max-width: 520px;
    width: calc(100% - 32px);
    box-shadow: var(--rmk-shadow-lg);
}
.rmk-modal::backdrop { background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); }
.rmk-modal__inner { padding: 28px; }
.rmk-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.rmk-modal__eyebrow { font-size: 12px; font-weight: 700; color: var(--rmk-primary); text-transform: uppercase; }
.rmk-modal__head h2 { margin: 4px 0; font-size: 22px; }
.rmk-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--rmk-muted);
    line-height: 1;
}
.rmk-modal__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--rmk-bg);
    border-radius: var(--rmk-radius-sm);
    margin-bottom: 20px;
}
.rmk-modal__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rmk-primary), var(--rmk-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.rmk-field { display: block; margin-bottom: 16px; }
.rmk-field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rmk-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius-sm);
    font-size: 14px;
}
.rmk-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Misc */
.rmk-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: var(--rmk-glass);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--rmk-border);
    display: flex;
    justify-content: center;
    z-index: 100;
}
.rmk-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: #0f172a;
    color: #fff;
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 200;
    box-shadow: var(--rmk-shadow-lg);
}
.rmk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.rmk-toast i { color: var(--rmk-success); }

.rmk-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: var(--rmk-surface);
    border-radius: var(--rmk-radius);
    border: 1px dashed var(--rmk-border);
}
.rmk-empty i { font-size: 48px; color: var(--rmk-primary); margin-bottom: 16px; display: block; }

.rmk-loader { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.rmk-skeleton-card {
    height: 280px;
    border-radius: var(--rmk-radius);
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: rmk-shimmer 1.2s infinite;
}
@keyframes rmk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.rmk-load-more-wrap { text-align: center; margin-top: 32px; }
.rmk-section { padding: 40px 16px; max-width: 1200px; margin: 0 auto; }
.rmk-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.rmk-talent-row { display: flex; flex-wrap: wrap; gap: 12px; }
.rmk-talent-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}
.rmk-talent-chip:hover { border-color: var(--rmk-primary); }
.rmk-talent-chip__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rmk-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.rmk-talent-chip small { display: block; color: var(--rmk-muted); font-size: 11px; }

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

/* Homepage marketplace sections */
.rmk-home-sections { padding: 60px 0; }
.rmk-home-section {
    margin-bottom: 56px;
}
.rmk-home-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.rmk-home-section__head h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.rmk-home-section__head p { margin: 6px 0 0; color: var(--rmk-muted); }
.rmk-home-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.rmk-home-scroll .rmk-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

/* Client portal applications */
.rmk-pipeline {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
}
.rmk-pipeline__stage {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 14px 18px;
    border-radius: var(--rmk-radius-sm);
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    text-align: center;
}
.rmk-pipeline__stage.active {
    border-color: var(--rmk-primary);
    background: rgba(99,102,241,0.06);
}
.rmk-pipeline__count { display: block; font-size: 22px; font-weight: 800; }
.rmk-app-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--rmk-surface);
    border: 1px solid var(--rmk-border);
    border-radius: var(--rmk-radius);
    margin-bottom: 12px;
}

@media (max-width: 960px) {
    .rmk-layout { grid-template-columns: 1fr; }
    .rmk-sidebar {
        position: fixed;
        inset: 0;
        z-index: 300;
        background: rgba(15,23,42,0.5);
        padding: 16px;
        max-height: none;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .rmk-sidebar.is-open { transform: translateX(0); }
    .rmk-sidebar .rmk-filters { max-height: calc(100vh - 32px); overflow-y: auto; }
    .rmk-mobile-filter { display: inline-flex; }
    .rmk-detail-layout { grid-template-columns: 1fr; }
    .rmk-match-panel { grid-template-columns: 1fr; text-align: center; }
    .rmk-grid { grid-template-columns: 1fr; }
}
