/* ==========================================================
   LIGHT THEME – rest of the tool (login, Agency, freelancer
   dashboard, Client CRM, Data Research, popups).
   Same look as the workspace: near-white page, lavender
   containers with soft purple shadows, white cards inside.
   To undo: remove the <link> to light-admin.css in index.html.
   ========================================================== */
:root, body {
    --bg-main: #F5F5F6;
    --bg-color: #F5F5F6;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-hover: #F1F1F3;
    --bg-secondary: #FFFFFF;
    --primary: #1A1A1D;
    --primary-hover: #121214;
    --text-primary: #19191C;
    --text-secondary: #575762;
    --text-muted: #7C7C8B;
    --text-light: #19191C;
    --border-subtle: #E5E5E8;
    --border-strong: #D4D4D9;
    --border-light: #E1E1E5;
    --border-color: #E5E5E8;

    --L-lav: linear-gradient(180deg, #E3E3E6 0%, #E8E8EB 55%, #ECECEE 100%);
    --L-lav-solid: #E7E7EA;
    --L-line: #DEDEE1;
    --L-line-2: #CDCDD3;
    --L-ink: #19191C;
    --L-ink-2: #393941;
    --L-ink-3: #646470;
    --L-ink-4: #8F8F9C;
    --L-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(18, 18, 20,0.06), 0 12px 28px -10px rgba(18, 18, 20,0.20), 0 28px 48px -24px rgba(18, 18, 20,0.16);
    --L-card-shadow: 0 1px 2px rgba(18, 18, 20,0.06), 0 6px 16px -6px rgba(18, 18, 20,0.16);
    --L-card-shadow-hover: 0 2px 4px rgba(18, 18, 20,0.06), 0 14px 30px -10px rgba(18, 18, 20,0.26);
}
body { background: #F5F5F6 !important; color: #19191C; }

/* ---------- Generic inputs & buttons (outside the workspace) ---------- */
.login-input, body select.login-input {
    background: #FFFFFF !important; color: #19191C !important;
    border: 1px solid #D7D7DB !important; box-shadow: 0 1px 2px rgba(18, 18, 20,0.04);
}
.login-input:focus { background: #FFFFFF !important; color: #19191C !important; border-color: #1A1A1D !important; box-shadow: 0 0 0 3px rgba(26, 26, 29,0.14) !important; outline: none; }
/* Browser / password-manager autofill: keep the field white instead of the browser's own colour */
.login-input:-webkit-autofill, .login-input:-webkit-autofill:hover, .login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #19191C !important; caret-color: #19191C; -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important; transition: background-color 9999s ease-out 0s;
}
.login-input::placeholder { color: #9C9CA7 !important; }
.btn-outline { background: #FFFFFF; border: 1px solid #D4D4D9; color: #35353C; box-shadow: 0 1px 2px rgba(18, 18, 20,0.05); }
.btn-outline:hover { background: #F9F9FA; border-color: #BFBFC7; color: #19191C; }
.btn-primary { box-shadow: 0 6px 18px -6px rgba(19, 19, 21,0.45); }

/* ---------- Login ---------- */
#login-overlay { background: radial-gradient(1200px 600px at 50% 0%, #E9E9EB 0%, #F5F5F6 60%) !important; }
#login-overlay .login-box {
    background: #FFFFFF !important; border: 1px solid var(--L-line) !important;
    box-shadow: 0 2px 6px rgba(18, 18, 20,0.06), 0 30px 60px -20px rgba(18, 18, 20,0.30) !important;
}
#login-overlay h1, #login-overlay h2, #login-overlay h3 { color: #19191C !important; }
#login-overlay label { color: #646470 !important; }
#login-overlay p, #login-overlay span { color: #646470; }

/* ---------- Admin + freelancer dashboards ---------- */
.admin-dashboard, .admin-dashboard.crm-mode { background: #F5F5F6 !important; min-height: 100vh; }
.admin-dashboard h1 { color: #19191C; letter-spacing: -0.02em; }
.admin-dashboard h2 { color: #121214 !important; font-weight: 700; letter-spacing: -0.01em; }
.admin-dashboard h2 i { display: none; }
.admin-dashboard [style*="color: white"], .admin-dashboard [style*="color:white"],
.admin-dashboard [style*="color: #fff"], .admin-dashboard [style*="color:#fff"] { color: #19191C !important; }

/* Header tabs */
.sc-tabs, .admin-dashboard.crm-mode .sc-tabs {
    background: #FFFFFF !important; border: 1px solid var(--L-line) !important;
    box-shadow: var(--L-card-shadow);
}
.sc-tab, .admin-dashboard.crm-mode .sc-tab { color: #646470 !important; }
.sc-tab:hover { color: #19191C !important; background: #F4F4F6; }
.sc-tab.active, .admin-dashboard.crm-mode .sc-tab.active {
    background: #EBEBED !important; color: #121214 !important; box-shadow: inset 0 0 0 1px #D7D7DC !important;
}
.admin-dashboard.crm-mode .btn-outline { background: #FFFFFF; border-color: #D4D4D9; }

/* Agency cards */
body .admin-dashboard .client-card {
    background: #FFFFFF !important; border: 1px solid var(--L-line) !important;
    box-shadow: var(--L-card-shadow) !important; color: #19191C;
}
body .admin-dashboard .client-card:hover { border-color: #C9C9CF !important; box-shadow: var(--L-card-shadow-hover) !important; }
.admin-dashboard .client-card h3 { color: #19191C !important; }
.admin-dashboard .client-card [style*="rgba(57, 57, 64, 0.2)"],
.admin-dashboard .client-card [style*="rgba(57, 57, 64, 0.1)"] { background: #EBEBED !important; color: #121214 !important; }
.admin-dashboard .client-card .btn-outline[style*="#ef4444"] { color: #C24B4B !important; border-color: #F0D2D2 !important; }
#admin-tab-agency > div > div:first-child, #admin-tab-agency > div > div:last-child {
    background: var(--L-lav); border: 1px solid #D3D3D8; border-radius: 18px; padding: 24px; box-shadow: var(--L-shadow);
}
#admin-tab-agency h2 { margin-top: 0; }
#admin-tab-agency h2[style*="margin-top: 40px"] { margin-top: 32px !important; }
#admin-tab-agency p { color: #646470; }

/* ---------- Generic popups ---------- */
.modal-overlay { background: rgba(34, 34, 38, 0.32) !important; backdrop-filter: blur(4px); }
.modal { background: #FFFFFF; border: 1px solid var(--L-line); color: #19191C; box-shadow: 0 30px 80px -10px rgba(18, 18, 20,0.35) !important; }
.modal .modal-header, .modal .modal-footer { border-color: #E9E9EB !important; }
.modal .modal-header h2, .modal .modal-header h3 { color: #19191C !important; }
.modal .close-btn { color: #646470; }
.modal [style*="color: white"], .modal [style*="color:white"] { color: #19191C !important; }
.modal select, .modal input:not([type="checkbox"]):not([type="radio"]), .modal textarea { color-scheme: light; }

/* ==========================================================
   CLIENT CRM
   ========================================================== */
#admin-tab-students, #student-modal, .sc-toast {
    --ink: #19191C;
    --ink-2: #393941;
    --ink-3: #646470;
    --line: #DEDEE1;
    --line-2: #CDCDD3;
    --fill: rgba(26, 26, 29,0.05);
    --card: #FFFFFF;
    --card-2: #F5F5F6;
    --accent: #1A1A1D;
    --accent-ink: #121214;
    color: #393941;
}
#admin-tab-students [style*="color:#fff"], #admin-tab-students [style*="color: #fff"],
#student-modal [style*="color:#fff"], #student-modal [style*="color: #fff"] { color: #19191C !important; }
#admin-tab-students [style*="color:#8D8D9A"], #student-modal [style*="color:#8D8D9A"],
#admin-tab-students [style*="color:#B1B1BA"], #admin-tab-students [style*="color: #B1B1BA"],
#student-modal [style*="color:#B1B1BA"] { color: #646470 !important; }
#admin-tab-students [style*="color:#E1E1E4"], #student-modal [style*="color:#E1E1E4"] { color: #393941 !important; }

/* Containers: lavender with luxe shadow, like the board columns */
#admin-tab-students .sc-panel,
#admin-tab-students .sc-discord,
#admin-tab-students .sc-step {
    background: var(--L-lav) !important; border: 1px solid #D3D3D8 !important; box-shadow: var(--L-shadow);
}
#admin-tab-students .sc-panel-head { border-bottom-color: #D8D8DC !important; }
#admin-tab-students .sc-panel-title, #admin-tab-students h2, #admin-tab-students h3 { color: #19191C; }

/* Rows & tables on lavender */
#admin-tab-students .sc-row, #admin-tab-students .sc-today-row { border-color: #D8D8DC !important; }
#admin-tab-students .sc-row:hover, #admin-tab-students .sc-today-row:hover,
#admin-tab-students .sc-table tbody tr:hover { background: rgba(255,255,255,0.65) !important; }
#admin-tab-students .sc-table th { color: #646470 !important; border-color: #D8D8DC !important; }
#admin-tab-students .sc-table td { border-color: #DFDFE3 !important; color: #393941; }
#admin-tab-students .sc-table td b, #admin-tab-students .sc-row-title, #admin-tab-students .sc-today-name { color: #19191C !important; }

/* White cards inside */
#admin-tab-students .sc-kpi {
    background: #FFFFFF !important;
    border: 1px solid color-mix(in srgb, var(--kpi-color) 28%, #DEDEE1) !important;
    box-shadow: var(--L-card-shadow);
}
#admin-tab-students .sc-kpi-value { color: #19191C !important; }
#admin-tab-students .sc-kpi-label { color: color-mix(in srgb, var(--kpi-color) 70%, #19191C) !important; }
#admin-tab-students .sc-kpi-sub { color: #646470 !important; }
#admin-tab-students .sc-week, #admin-tab-students .sc-cadence, #admin-tab-students .sc-example,
#admin-tab-students .sc-edit-row, #admin-tab-students .sc-win, #admin-tab-students .sc-card {
    background: #FFFFFF !important; border-color: #DEDEE1 !important; box-shadow: var(--L-card-shadow);
}
#admin-tab-students .sc-week-bar { background: #EBEBEE !important; }
#admin-tab-students .sc-week-bar > div { background: #27272C !important; }
#admin-tab-students .sc-tl-node { background: #FFFFFF !important; border-color: #CDCDD3 !important; color: #121214 !important; }
#admin-tab-students .sc-tl-item.current .sc-tl-node { background: #EBEBED !important; border-color: #1A1A1D !important; }

/* Inputs */
#admin-tab-students .sc-input, #student-modal .sc-input, #admin-tab-students .sc-search,
#admin-tab-students .sc-affix, #admin-tab-students .sc-seg, #admin-tab-students .sc-stepper, .sc-select-mini,
#student-modal .sc-affix, #student-modal .sc-seg, #student-modal .sc-stepper, #student-modal .sc-name-input {
    background: #FFFFFF !important; border-color: #D7D7DB !important; color: #19191C !important;
}
#admin-tab-students .sc-input:hover, #student-modal .sc-input:hover { background: #FFFFFF !important; border-color: #BFBFC7 !important; }
#admin-tab-students .sc-input:focus, #student-modal .sc-input:focus, #admin-tab-students .sc-search:focus {
    background: #FFFFFF !important; border-color: #1A1A1D !important; box-shadow: 0 0 0 3px rgba(26, 26, 29,0.12);
}
#admin-tab-students .sc-input::placeholder, #student-modal .sc-input::placeholder, #admin-tab-students .sc-search::placeholder { color: #9C9CA7 !important; }
#admin-tab-students input[type="checkbox"], #student-modal input[type="checkbox"] { background: #FFFFFF !important; border-color: #C3C3CA !important; }
#admin-tab-students input[type="checkbox"]:checked, #student-modal input[type="checkbox"]:checked { background: #1A1A1D !important; border-color: #1A1A1D !important; }
#admin-tab-students input, #admin-tab-students select, #student-modal input, #student-modal select { color-scheme: light; }

/* Buttons, pills, avatars */
#admin-tab-students .btn-outline, #student-modal .btn-outline,
#admin-tab-students .sc-link-btn, #student-modal .sc-link-btn,
#admin-tab-students .sc-filter, #student-modal .sc-type {
    background: #FFFFFF !important; border-color: #D4D4D9 !important; color: #393941 !important;
}
#admin-tab-students .sc-seg button.active, #admin-tab-students .sc-filter.active, #student-modal .sc-type.active,
#student-modal .sc-seg button.active { background: #EBEBED !important; color: #121214 !important; border-color: #D7D7DC !important; }
#admin-tab-students .sc-day-pill, #student-modal .sc-day-pill { background: #EFEFF1 !important; color: #121214 !important; }
#admin-tab-students .sc-avatar, #student-modal .sc-avatar { background: #EBEBED !important; border-color: #D7D7DC !important; color: #121214 !important; }
#admin-tab-students .sc-bar, #student-modal .sc-bar { background: #E4E4E7 !important; }
#admin-tab-students .sc-sync { color: #646470 !important; }
#admin-tab-students .sc-empty { color: #646470 !important; }

/* Dossier popup */
#student-modal { background: #FFFFFF !important; border-color: #DEDEE1 !important; box-shadow: 0 30px 80px -10px rgba(18, 18, 20,0.35) !important; }
#student-modal .modal-header, #student-modal .modal-footer { border-color: #E9E9EB !important; }
#student-modal h2, #student-modal h3, #student-modal h4, #student-modal .sc-name-input { color: #19191C !important; }
#student-modal .sc-listbox, #student-modal .sc-group, #student-modal .sc-block {
    background: #F9F9FA !important; border-color: #DEDEE1 !important; box-shadow: 0 1px 2px rgba(18, 18, 20,0.04);
}
#student-modal .sc-block-head { border-color: #E5E5E8 !important; }
#student-modal .sc-listbox .sc-task, #student-modal .sc-listbox .sc-month,
#student-modal .sc-listbox .sc-win-row, #student-modal .sc-feed-item { border-top-color: #E9E9EB !important; }
#student-modal .sc-task em.sc-day { background: #EFEFF1 !important; border-color: #D7D7DC !important; color: #121214 !important; }
#student-modal .sc-kv > div {
    background: color-mix(in srgb, var(--t) 7%, #FFFFFF) !important;
    border-color: color-mix(in srgb, var(--t) 28%, #DEDEE1) !important;
}
#student-modal .sc-note { background: rgba(var(--c), 0.08) !important; border-color: rgba(var(--c), 0.30) !important; }
#student-modal .sc-feed-icon { background: #EFEFF1 !important; color: #121214 !important; }
#student-modal .sc-hero { background: var(--L-lav) !important; border-color: #D3D3D8 !important; box-shadow: var(--L-shadow); }
.sc-toast { background: #FFFFFF !important; color: #19191C !important; border: 1px solid #DEDEE1 !important; box-shadow: var(--L-card-shadow-hover) !important; }

/* ==========================================================
   DATA RESEARCH
   ========================================================== */
#admin-tab-research {
    --ink: #19191C;
    --ink-2: #393941;
    --ink-3: #646470;
    --ink-4: #8F8F9C;
    --line: #DEDEE1;
    --line-2: #CDCDD3;
    --card: #FFFFFF;
    --card-2: #FFFFFF;
    --card-3: #FFFFFF;
    --accent: #1A1A1D;
    --accent-ink: #121214;
}
#admin-tab-research .nr-rail { background: #FFFFFF; border-color: var(--L-line); box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-item:hover { background: #F4F4F6; }
#admin-tab-research .nr-item.active { background: #EBEBED; border-color: #D7D7DC; }
#admin-tab-research .nr-item.active b { color: #121214; }
#admin-tab-research .nr-step:hover { background: #F4F4F6; }
#admin-tab-research .nr-step i, #admin-tab-research .nr-code { color: color-mix(in srgb, var(--c) 75%, #19191C); }
#admin-tab-research .nr-code { background: #FFFFFF; border-color: color-mix(in srgb, var(--c) 40%, #DEDEE1); box-shadow: 0 1px 2px rgba(18, 18, 20,0.06); }
#admin-tab-research .nr-title:focus { background: #FFFFFF; }

/* Sections = lavender containers, blocks = white cards */
#admin-tab-research .nr-sec { background: var(--L-lav); border-color: #D3D3D8; box-shadow: var(--L-shadow); }
#admin-tab-research .nr-inst { background: rgba(255,255,255,0.6); color: #393941; border-left-color: color-mix(in srgb, var(--c) 70%, transparent); }
#admin-tab-research .nr-block, #admin-tab-research .nr-thumb, #admin-tab-research .nr-check { background: #FFFFFF; border-color: var(--L-line); box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-block-head { background: #F9F9FA; }
#admin-tab-research .nr-fblock > .nr-block-head { background: color-mix(in srgb, var(--st) 9%, #FFFFFF); }
#admin-tab-research .nr-block-part, #admin-tab-research .nr-block-head { border-color: #E9E9EB; }
#admin-tab-research .nr-check.on { background: color-mix(in srgb, #4E9A62 8%, #FFFFFF); border-color: rgba(78,154,98,0.45); }
#admin-tab-research .nr-val { border-color: #D8D8DC; }

#admin-tab-research .nr-in { background: #FFFFFF; border-color: #D7D7DB; color: #19191C; box-shadow: 0 1px 2px rgba(18, 18, 20,0.04); color-scheme: light; }
#admin-tab-research .nr-in:hover { border-color: #BFBFC7; }
#admin-tab-research .nr-in:focus { background: #FFFFFF; border-color: #1A1A1D; box-shadow: 0 0 0 3px rgba(26, 26, 29,0.12); }
#admin-tab-research .nr-in::placeholder { color: #9C9CA7; }
#admin-tab-research .nr-angle { background: #F1F1F3; border-color: #D4D4D9; color: #121214; }
#admin-tab-research .nr-score.good { background: #E9F5EC; border-color: #A9D3B3; color: #2F7A45; }
#admin-tab-research .nr-score.mid  { background: #FBF3E3; border-color: #E5CC97; color: #8A6417; }
#admin-tab-research .nr-score.low  { background: #FBEAEA; border-color: #E8B4B4; color: #A23E3E; }
#admin-tab-research .nr-open { background: #FFFFFF; border-color: #D7D7DB; }
#admin-tab-research .nr-open.on { color: #121214; border-color: #C3C3CA; }
#admin-tab-research .nr-open.on:hover { background: #F1F1F3; }
#admin-tab-research input[type="checkbox"] { background: #FFFFFF; border-color: #C3C3CA; }

#admin-tab-research .nr-add { background: #FFFFFF; border-color: #CDCDD3; color: #121214; box-shadow: 0 1px 2px rgba(18, 18, 20,0.05); }
#admin-tab-research .nr-add:hover { background: #F4F4F6; border-color: #1A1A1D; }
#admin-tab-research .nr-add-block { background: rgba(255,255,255,0.5); border-color: #C2C2C9; color: #575762; }
#admin-tab-research .nr-add-block:hover { background: #FFFFFF; color: #19191C; border-color: #1A1A1D; }
#admin-tab-research .nr-text-btn:hover { color: #121214; }
#admin-tab-research .nr-ghost { background: #FFFFFF; border-color: #D4D4D9; color: #575762; }
#admin-tab-research .nr-ghost:hover { color: #B44343; border-color: #EBC3C3; }
#admin-tab-research .nr-btn-p { box-shadow: 0 6px 16px -6px rgba(26, 26, 29,0.6); }
#admin-tab-research .nr-btn-p:disabled { background: #EFEFF1; border-color: #DEDEE1; color: #9C9CA7; box-shadow: none; }
#admin-tab-research .nr-done { background: #E9F5EC; border-color: #B8DCC1; color: #2F7A45; }
#admin-tab-research .nr-chip { color: color-mix(in srgb, var(--st) 70%, #19191C); background: color-mix(in srgb, var(--st) 12%, #FFFFFF); }
#admin-tab-research .nr-chip b { color: #19191C; }
#admin-tab-research .nr-progress, #admin-tab-research .nr-count { background: #FFFFFF; border-color: var(--L-line); }
#admin-tab-research .nr-shot, #admin-tab-research .nr-img.has { background: #F4F4F6; }
#admin-tab-research .nr-img { background: #F9F9FA; border-color: #CDCDD3; }
#admin-tab-research .nr-thumb-x { background: #FFFFFF; }
#admin-tab-research .nr-welcome { background: var(--L-lav); }

/* ---------- CRM fine-tuning ---------- */
#admin-tab-students, #student-modal, .sc-toast {
    --green: #2F8A5E;
    --red: #B94A4A;
    --amber: #9A6B12;
    --blue: #3E6FB5;
}
/* Section wrappers in the dossier are plain, only the boxes inside are cards */
#student-modal .sc-block { background: transparent !important; border: 0 !important; border-bottom: 1px solid #E9E9EB !important; box-shadow: none !important; }
#student-modal .sc-block:last-child { border-bottom: 0 !important; }
#student-modal .sc-listbox, #student-modal .sc-group {
    background: #FFFFFF !important; border: 1px solid #DEDEE1 !important; box-shadow: var(--L-card-shadow) !important;
}
#student-modal .sc-hero { background: var(--L-lav) !important; }
/* Progress tracks */
.sc-track, #admin-tab-students .sc-track, #student-modal .sc-track,
.sc-today-track .sc-track { background: #E0E0E3 !important; }
/* Pastel colours set inline from students.js -> readable on light */
[style*="color:#B1B1BA"], [style*="color: #B1B1BA"] { color: #121214 !important; }
[style*="color:#E07A7A"], [style*="color: #E07A7A"] { color: #B94A4A !important; }
[style*="color:#E0B25C"], [style*="color: #E0B25C"] { color: #9A6B12 !important; }
[style*="color:#37373E"], [style*="color: #37373E"] { color: #121214 !important; }
[style*="color:#86AEE6"] { color: #3E6FB5 !important; }
[style*="color:#5FB88F"] { color: #2F8A5E !important; }
/* KPI / key-value tiles: coloured label, dark value */
#student-modal .sc-kv span { color: color-mix(in srgb, var(--t) 72%, #19191C) !important; }
#student-modal .sc-kv b { color: #19191C !important; }
#student-modal .sc-kv b.late { color: #B94A4A !important; }
#student-modal .sc-kv b.warn { color: #9A6B12 !important; }
#admin-tab-students .sc-kpi-label { color: color-mix(in srgb, var(--kpi-color) 72%, #19191C) !important; }
/* Status badges: a bit more ink */
.sc-badge.green { color: #2F7A52 !important; }
.sc-badge.orange { color: #8E6212 !important; }
.sc-badge.red { color: #A63E3E !important; }
.sc-badge.violet { color: #121214 !important; }

/* Data Research: channel cards */
#admin-tab-research .nr-ch { background: #FFFFFF; border-color: var(--L-line); box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-ch:hover { border-color: #C9C9CF; box-shadow: var(--L-card-shadow-hover); }
#admin-tab-research .nr-ch.open { border-color: #C9C9CF; box-shadow: var(--L-card-shadow-hover); }
#admin-tab-research .nr-ch-more { border-top-color: #E9E9EB; background: linear-gradient(180deg, #FBFBFB 0%, #FFFFFF 60%); border-radius: 0 0 14px 14px; }
#admin-tab-research .nr-ch-av { border-color: #E2E2E6; box-shadow: 0 2px 6px -2px rgba(18, 18, 20,0.25); }
#admin-tab-research .nr-ch-av-txt { background: linear-gradient(135deg, #ECECEE, #DEDEE2); color: #121214; }
#admin-tab-research .nr-ch-title { color: #19191C; }
#admin-tab-research .nr-ch-stats { color: #646470; }
#admin-tab-research .nr-ch-stats b { color: #25252A; }
#admin-tab-research .nr-ch-since { color: #8F8F9C; }
#admin-tab-research .nr-ch-err { color: #B44343; }
#admin-tab-research .nr-ch-btn { color: #717180; }
#admin-tab-research .nr-ch-btn:hover { color: #121214; background: #F1F1F3; }
#admin-tab-research .nr-ch-btn.danger { color: #D05A5A; }
#admin-tab-research .nr-ch-btn.danger:hover { color: #B44343; background: #FBEAEA; }
#admin-tab-research .nr-ch-loading i { background: linear-gradient(90deg, #ECECEE 0%, #DBDBDF 50%, #ECECEE 100%); background-size: 200% 100%; }
#admin-tab-research .nr-ch-vid-img { border-color: #E2E2E6; background: #F1F1F3; box-shadow: 0 4px 12px -6px rgba(18, 18, 20,0.25); }
#admin-tab-research .nr-ch-vid-t { color: #25252A; }
#admin-tab-research .nr-ch-list .nr-empty { background: rgba(255,255,255,0.55); border-color: #C9C9CF; }
#admin-tab-research .nr-yt-key { background: #FFFFFF; border-color: #D4D4D9; box-shadow: var(--L-card-shadow); }

/* Data Research: format library + prompt */
#admin-tab-research .nr-soft { background: #FFFFFF; border-color: #CDCDD3; color: #121214; box-shadow: 0 1px 2px rgba(18, 18, 20,0.05); }
#admin-tab-research .nr-soft:hover { background: #F4F4F6; border-color: #1A1A1D; }
#admin-tab-research .nr-libnav { background: linear-gradient(180deg, #F4F4F6, #ECECEF); border-color: #D7D7DC; color: #25252A; box-shadow: 0 1px 2px rgba(18, 18, 20,0.05); }
#admin-tab-research .nr-libnav:hover { border-color: #B2B2BB; box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-libnav.active { background: linear-gradient(135deg, #1F1F23, #121214); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(18, 18, 20,0.6); }
#admin-tab-research .nr-lib-row { background: #FFFFFF; border-color: var(--L-line); box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-lib-row:hover, #admin-tab-research .nr-lib-row.open { border-color: #C9C9CF; box-shadow: var(--L-card-shadow-hover); }
#admin-tab-research .nr-lib-edit { border-top-color: #E9E9EB; background: linear-gradient(180deg, #FBFBFB 0%, #FFFFFF 60%); border-radius: 0 0 13px 13px; }
#admin-tab-research .nr-lib-fmt b { color: #19191C; }
#admin-tab-research .nr-lib-exl span { color: #25252A; }
#admin-tab-research .nr-lib-tag { background: #ECECEF; color: #121214; }
#admin-tab-research .nr-lib-src { color: #3F8A55; }
#admin-tab-research .nr-lib-src.manual { color: #8F8F9C; }
#admin-tab-research .nr-prompt-prev pre { background: #FFFFFF; border-color: var(--L-line); color: #393941; box-shadow: inset 0 1px 2px rgba(18, 18, 20,0.04); }
#admin-tab-research .nr-lib-import { background: #FFFFFF; }
#admin-tab-research .nr-lib-title { color: #19191C; }

/* Data Research: video cards */
#admin-tab-research .nr-vcard { background: #FFFFFF; border-color: var(--L-line); box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-vcard:hover { border-color: #C9C9CF; box-shadow: var(--L-card-shadow-hover); }
#admin-tab-research .nr-vthumb { background: #F1F1F3; box-shadow: 0 4px 12px -6px rgba(18, 18, 20,0.3); }
#admin-tab-research .nr-vtitle { color: #19191C; }
#admin-tab-research .nr-vtitle:hover { color: #121214; }
#admin-tab-research .nr-vstat { background: #F9F9FA; border-color: #E2E2E6; }
#admin-tab-research .nr-vstat input { color: #19191C; color-scheme: light; }
#admin-tab-research .nr-vstat-score.good { background: #E9F5EC; border-color: #A9D3B3; }
#admin-tab-research .nr-vstat-score.good input, #admin-tab-research .nr-vstat-score.good b { color: #2F7A45; }
#admin-tab-research .nr-vstat-score.mid { background: #FBF3E3; border-color: #E5CC97; }
#admin-tab-research .nr-vstat-score.mid input, #admin-tab-research .nr-vstat-score.mid b { color: #8A6417; }
#admin-tab-research .nr-vstat-score.low { background: #FBEAEA; border-color: #E8B4B4; }
#admin-tab-research .nr-vstat-score.low input, #admin-tab-research .nr-vstat-score.low b { color: #A23E3E; }

/* Data Research: adjacent niches */
#admin-tab-research .nr-adj-chip { background: #FFFFFF; border-color: #D7D7DB; color: #393941; box-shadow: 0 1px 2px rgba(18, 18, 20,0.05); }
#admin-tab-research .nr-adj-chip:hover { border-color: #B2B2BB; }
#admin-tab-research .nr-adj-chip.on { background: linear-gradient(135deg, #1F1F23, #121214); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -6px rgba(18, 18, 20,0.55); }
#admin-tab-research .nr-adj-ghead b { color: #19191C; }
#admin-tab-research .nr-adj-ghead::after { background: #D3D3D8; }

/* Data Research: 1E pairing matrix + 1F idea cards */
#admin-tab-research .nr-mx-wrap, #admin-tab-research .nr-ai, #admin-tab-research .nr-sug, #admin-tab-research .nr-idea { background: #FFFFFF; border-color: var(--L-line); box-shadow: var(--L-card-shadow); }
#admin-tab-research .nr-mx thead th { background: #F9F9FA; }
#admin-tab-research .nr-mx-row { background: #FFFFFF; }
#admin-tab-research .nr-mx th, #admin-tab-research .nr-mx td { border-color: #E9E9EB; }
#admin-tab-research .nr-mx-cell.on { background: linear-gradient(135deg, #1F1F23, #121214); border-color: #121214; color: #fff; box-shadow: 0 4px 10px -4px rgba(18, 18, 20,0.5); }
#admin-tab-research .nr-idea-tag span.t { background: #121214; border-color: #121214; color: #fff; }
#admin-tab-research .nr-idea-tag span.f { background: #F4F4F6; }
