@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Poppins:wght@400;500;600&family=Ubuntu:wght@400;500;700&display=swap');

:root {
    --heading-font: 'Ubuntu', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --user-menu-width: 322px;
    --bg: #f8fafc;
    --card: rgba(255, 255, 255, 0.34);
    --card-strong: rgba(255, 255, 255, 0.5);
    --sidebar: #1e293b;
    --sidebar-muted: #cbd5e1;
    --text: #1e293b;
    --muted: #64748b;
    --border: rgba(30, 41, 59, 0.12);
    --glass-panel: rgba(255, 255, 255, 0.22);
    --glass-panel-strong: rgba(255, 255, 255, 0.42);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --accent: #2563eb;
    --focus-ring: rgba(37, 99, 235, 0.34);
    --focus-ring-soft: rgba(37, 99, 235, 0.16);
    --success: #2563eb;
    --danger: #2f2f2f;
    --warning: #3d3d3d;
    --shadow: 0 24px 60px rgba(31, 38, 135, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
    --site-background-color: #f8fafc;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23eff6ff'/%3E%3Cstop offset='50%25' stop-color='%23dbeafe'/%3E%3Cstop offset='100%25' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='14%25' cy='12%25' r='40%25'%3E%3Cstop offset='0%25' stop-color='%232563eb' stop-opacity='.26'/%3E%3Cstop offset='100%25' stop-color='%232563eb' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='84%25' cy='16%25' r='34%25'%3E%3Cstop offset='0%25' stop-color='%231e293b' stop-opacity='.16'/%3E%3Cstop offset='100%25' stop-color='%231e293b' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Cpath d='M0 650C167 602 336 714 544 686C738 660 908 536 1120 562C1310 586 1444 700 1600 678V900H0Z' fill='%23ffffff' fill-opacity='.52'/%3E%3Cpath d='M0 744C176 716 336 790 560 760C806 728 982 622 1194 652C1378 678 1496 766 1600 754V900H0Z' fill='%23ffffff' fill-opacity='.34'/%3E%3C/svg%3E");
    --header-overlay: rgba(15, 23, 42, 0.72);
    --heading-gradient: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 55%, var(--accent) 100%);
    --ui-card-header-color: #0f172a;
    --ui-content-text-color: var(--text);
    --ui-path-text-color: var(--muted);
    --ui-action-button-radius: 12px;
    --ui-other-button-radius: 12px;
    --ui-icon-size: 18px;
    --ui-status-tag-bg: var(--primary-soft);
    --ui-status-tag-color: var(--primary);
}

body.dark-mode,
body.theme-5 {
    --ui-card-header-color: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 12px;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
    background-color: var(--site-background-color);
    background-image: var(--site-background-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
}

::selection {
    background: var(--focus-ring-soft);
    color: inherit;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 58%, transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: 72px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.88) 0%, var(--primary-soft) 38%, transparent 72%);
    filter: blur(12px);
    opacity: 0.95;
}

body::after {
    right: -100px;
    bottom: 80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7) 0%, var(--primary-soft) 34%, transparent 70%);
    filter: blur(18px);
    opacity: 0.9;
}

body.theme-5::before,
body.dark-mode.theme-5::before {
    background: radial-gradient(circle at 32% 32%, rgba(0, 229, 255, 0.32) 0%, rgba(0, 229, 255, 0.12) 38%, transparent 72%);
    filter: blur(18px);
    opacity: 0.88;
}

body.theme-5::after,
body.dark-mode.theme-5::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 43, 214, 0.22) 0%, rgba(255, 43, 214, 0.08) 34%, transparent 70%),
        radial-gradient(circle at 72% 34%, rgba(139, 92, 246, 0.18) 0%, transparent 62%);
    filter: blur(22px);
    opacity: 0.82;
}

body.dark-mode {
    color-scheme: dark;
    --bg: #182133;
    --card: rgba(30, 41, 59, 0.34);
    --card-strong: rgba(51, 65, 85, 0.54);
    --sidebar: #18212f;
    --sidebar-muted: #c2cbda;
    --text: #e5edf8;
    --muted: #b5c0d4;
    --border: rgba(226, 232, 240, 0.12);
    --glass-panel: rgba(30, 41, 59, 0.26);
    --glass-panel-strong: rgba(51, 65, 85, 0.44);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-soft: rgba(96, 165, 250, 0.14);
    --accent: #60a5fa;
    --focus-ring: rgba(96, 165, 250, 0.42);
    --focus-ring-soft: rgba(96, 165, 250, 0.2);
    --success: #60a5fa;
    --danger: #ef5350;
    --warning: #7a7a7a;
    --shadow: 0 24px 52px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --site-background-color: #182133;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23131c2b'/%3E%3Cstop offset='50%25' stop-color='%231b2738'/%3E%3Cstop offset='100%25' stop-color='%2326364d'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='16%25' cy='18%25' r='42%25'%3E%3Cstop offset='0%25' stop-color='%2360a5fa' stop-opacity='.22'/%3E%3Cstop offset='100%25' stop-color='%2360a5fa' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='84%25' cy='12%25' r='34%25'%3E%3Cstop offset='0%25' stop-color='%2322d3ee' stop-opacity='.12'/%3E%3Cstop offset='100%25' stop-color='%2322d3ee' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Cpath d='M0 662C186 620 330 710 520 672C730 630 864 520 1088 548C1292 574 1420 700 1600 666V900H0Z' fill='%23ffffff' fill-opacity='.03'/%3E%3Cpath d='M0 742C154 720 332 780 542 748C758 714 918 610 1128 634C1326 656 1454 764 1600 744V900H0Z' fill='%23ffffff' fill-opacity='.018'/%3E%3C/svg%3E");
    --header-overlay: rgba(15, 23, 42, 0.56);
}

body.theme-1 {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --muted: #64748b;
    --accent: #fdb913;
    --site-background-color: #f8fafc;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23eff6ff'/%3E%3Cstop offset='50%25' stop-color='%23dbeafe'/%3E%3Cstop offset='100%25' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='14%25' cy='12%25' r='40%25'%3E%3Cstop offset='0%25' stop-color='%232563eb' stop-opacity='.26'/%3E%3Cstop offset='100%25' stop-color='%232563eb' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='84%25' cy='16%25' r='34%25'%3E%3Cstop offset='0%25' stop-color='%231e293b' stop-opacity='.16'/%3E%3Cstop offset='100%25' stop-color='%231e293b' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Cpath d='M0 650C167 602 336 714 544 686C738 660 908 536 1120 562C1310 586 1444 700 1600 678V900H0Z' fill='%23ffffff' fill-opacity='.52'/%3E%3Cpath d='M0 744C176 716 336 790 560 760C806 728 982 622 1194 652C1378 678 1496 766 1600 754V900H0Z' fill='%23ffffff' fill-opacity='.34'/%3E%3C/svg%3E");
}

body.theme-2 {
    --bg: #fafaf9;
    --card: rgba(255, 255, 255, 0.38);
    --card-strong: rgba(255, 255, 255, 0.58);
    --primary: #4d7c0f;
    --primary-hover: #3f6212;
    --primary-soft: rgba(77, 124, 15, 0.14);
    --muted: #78716c;
    --accent: #fdb913;
    --site-background-color: #fafaf9;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23fafaf9'/%3E%3Cstop offset='52%25' stop-color='%23f5f5f4'/%3E%3Cstop offset='100%25' stop-color='%23e7e5e4'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='16%25' cy='16%25' r='42%25'%3E%3Cstop offset='0%25' stop-color='%234d7c0f' stop-opacity='.20'/%3E%3Cstop offset='100%25' stop-color='%234d7c0f' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='84%25' cy='16%25' r='32%25'%3E%3Cstop offset='0%25' stop-color='%2378716c' stop-opacity='.18'/%3E%3Cstop offset='100%25' stop-color='%2378716c' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Cpath d='M0 652C170 616 334 706 548 682C770 656 938 546 1150 572C1358 596 1478 698 1600 686V900H0Z' fill='%23ffffff' fill-opacity='.54'/%3E%3Cpath d='M0 742C182 716 350 794 578 764C808 734 980 632 1200 652C1398 670 1506 760 1600 748V900H0Z' fill='%23ffffff' fill-opacity='.34'/%3E%3C/svg%3E");
}

body.theme-3 {
    --bg: #0f172a;
    --card: rgba(30, 41, 59, 0.82);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.18);
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --primary-soft: rgba(168, 85, 247, 0.16);
    --accent: #a855f7;
    --success: #10b981;
    --site-background-color: #0f172a;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23020617'/%3E%3Cstop offset='48%25' stop-color='%230f172a'/%3E%3Cstop offset='100%25' stop-color='%231e1b4b'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='18%25' cy='16%25' r='44%25'%3E%3Cstop offset='0%25' stop-color='%23a855f7' stop-opacity='.30'/%3E%3Cstop offset='100%25' stop-color='%23a855f7' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='82%25' cy='14%25' r='30%25'%3E%3Cstop offset='0%25' stop-color='%2310b981' stop-opacity='.18'/%3E%3Cstop offset='100%25' stop-color='%2310b981' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Cpath d='M0 660C164 628 338 716 560 684C774 654 946 542 1166 568C1362 592 1488 694 1600 686V900H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3Cpath d='M0 748C184 718 352 800 584 768C816 736 986 634 1210 652C1404 668 1510 758 1600 748V900H0Z' fill='%23ffffff' fill-opacity='.03'/%3E%3C/svg%3E");
    --header-overlay: rgba(2, 6, 23, 0.84);
}

body.theme-4 {
    --bg: #fffdf7;
    --card: rgba(255, 255, 255, 0.74);
    --card-strong: rgba(255, 255, 255, 0.9);
    --sidebar: #2c2c2c;
    --sidebar-muted: #f3ede0;
    --text: #2c2c2c;
    --muted: #6f6f6f;
    --border: rgba(44, 44, 44, 0.12);
    --glass-panel: rgba(255, 255, 255, 0.48);
    --glass-panel-strong: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(44, 44, 44, 0.1);
    --primary: #fdb913;
    --primary-hover: #d89f10;
    --primary-soft: rgba(253, 185, 19, 0.18);
    --accent: #fdb913;
    --success: #fdb913;
    --warning: #b67d00;
    --shadow: 0 24px 52px rgba(44, 44, 44, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.58);
    --site-background-color: #fffdf7;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='56%25' stop-color='%23fff8e6'/%3E%3Cstop offset='100%25' stop-color='%23f4efe5'/%3E%3C/linearGradient%3E%3CradialGradient id='gold' cx='16%25' cy='14%25' r='42%25'%3E%3Cstop offset='0%25' stop-color='%23fdb913' stop-opacity='.26'/%3E%3Cstop offset='100%25' stop-color='%23fdb913' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='charcoal' cx='84%25' cy='18%25' r='34%25'%3E%3Cstop offset='0%25' stop-color='%232c2c2c' stop-opacity='.12'/%3E%3Cstop offset='100%25' stop-color='%232c2c2c' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23gold)'/%3E%3Crect width='1600' height='900' fill='url(%23charcoal)'/%3E%3Cpath d='M0 636C170 604 338 692 560 668C796 642 972 548 1186 572C1388 594 1504 688 1600 678V900H0Z' fill='%232c2c2c' fill-opacity='.055'/%3E%3Cpath d='M0 742C176 714 350 792 590 764C820 736 1004 632 1224 652C1412 670 1514 760 1600 748V900H0Z' fill='%23fdb913' fill-opacity='.11'/%3E%3C/svg%3E");
    --header-overlay: rgba(44, 44, 44, 0.72);
}

body.theme-5 {
    color-scheme: dark;
    --bg: #070a10;
    --card: rgba(10, 14, 22, 0.72);
    --card-strong: rgba(12, 18, 28, 0.88);
    --sidebar: rgba(10, 14, 22, 0.82);
    --sidebar-muted: rgba(234, 246, 255, 0.86);
    --text: rgba(244, 250, 255, 0.94);
    --muted: rgba(190, 205, 222, 0.78);
    --border: rgba(255, 255, 255, 0.1);
    --glass-panel: rgba(12, 18, 28, 0.38);
    --glass-panel-strong: rgba(12, 18, 28, 0.62);
    --glass-border: rgba(255, 255, 255, 0.12);
    --primary: #00e5ff;
    --primary-hover: #8b5cf6;
    --primary-soft: rgba(0, 229, 255, 0.18);
    --accent: #ff2bd6;
    --focus-ring: rgba(0, 229, 255, 0.5);
    --focus-ring-soft: rgba(0, 229, 255, 0.22);
    --success: #00e5ff;
    --danger: #ff5a77;
    --warning: #fdb913;
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --site-background-color: #070a10;
    --site-background-image:
        radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0) 52%),
        radial-gradient(circle at 84% 22%, rgba(255, 43, 214, 0.18) 0%, rgba(255, 43, 214, 0) 54%),
        radial-gradient(circle at 58% 78%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 54%),
        linear-gradient(135deg, #05070d 0%, #070a10 40%, #0b1020 100%);
    --header-overlay: rgba(5, 7, 13, 0.84);
    --heading-gradient: linear-gradient(180deg, rgba(235, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 100%);
}

body.dark-mode.theme-1 {
    --text: #f3f7ff;
    --muted: #c6d4e8;
    --primary: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-soft: rgba(96, 165, 250, 0.14);
    --site-background-color: #0b1220;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23060b16'/%3E%3Cstop offset='50%25' stop-color='%230b1220'/%3E%3Cstop offset='100%25' stop-color='%23161f35'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='16%25' cy='14%25' r='42%25'%3E%3Cstop offset='0%25' stop-color='%2360a5fa' stop-opacity='.24'/%3E%3Cstop offset='100%25' stop-color='%2360a5fa' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='84%25' cy='16%25' r='30%25'%3E%3Cstop offset='0%25' stop-color='%2394a3b8' stop-opacity='.10'/%3E%3Cstop offset='100%25' stop-color='%2394a3b8' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cpattern id='grid' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Cpath d='M80 0H0V80' fill='none' stroke='%2364748b' stroke-opacity='.028'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Crect width='1600' height='900' fill='url(%23grid)'/%3E%3Cpath d='M0 650C166 614 342 708 556 680C770 652 944 550 1160 572C1360 592 1492 694 1600 684V900H0Z' fill='%2394a3b8' fill-opacity='.03'/%3E%3Cpath d='M0 742C188 714 362 796 590 766C824 734 996 634 1216 652C1402 666 1506 756 1600 746V900H0Z' fill='%2360a5fa' fill-opacity='.05'/%3E%3C/svg%3E");
    --header-overlay: rgba(6, 11, 22, 0.84);
}

body.dark-mode.theme-2 {
    --bg: #171b18;
    --card: rgba(34, 43, 36, 0.82);
    --card-strong: rgba(46, 57, 47, 0.92);
    --sidebar: #151a17;
    --sidebar-muted: #d4ddd0;
    --text: #eef3ec;
    --muted: #c5cdc1;
    --border: rgba(212, 221, 208, 0.12);
    --glass-panel: rgba(34, 43, 36, 0.42);
    --glass-panel-strong: rgba(46, 57, 47, 0.64);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #84cc16;
    --primary-hover: #65a30d;
    --primary-soft: rgba(132, 204, 22, 0.12);
    --site-background-color: #171b18;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23111714'/%3E%3Cstop offset='52%25' stop-color='%23171b18'/%3E%3Cstop offset='100%25' stop-color='%23262321'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='18%25' cy='16%25' r='40%25'%3E%3Cstop offset='0%25' stop-color='%2384cc16' stop-opacity='.17'/%3E%3Cstop offset='100%25' stop-color='%2384cc16' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='82%25' cy='14%25' r='30%25'%3E%3Cstop offset='0%25' stop-color='%23a8a29e' stop-opacity='.09'/%3E%3Cstop offset='100%25' stop-color='%23a8a29e' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cpattern id='dots' width='72' height='72' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23d6d3d1' fill-opacity='.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Crect width='1600' height='900' fill='url(%23dots)'/%3E%3Cpath d='M0 662C172 624 336 712 548 682C766 650 934 544 1150 570C1360 596 1480 694 1600 684V900H0Z' fill='%23f5f5f4' fill-opacity='.026'/%3E%3Cpath d='M0 746C182 716 352 796 578 764C808 732 980 632 1200 652C1398 670 1506 760 1600 748V900H0Z' fill='%2384cc16' fill-opacity='.032'/%3E%3C/svg%3E");
    --header-overlay: rgba(17, 23, 20, 0.84);
}

body.dark-mode.theme-3 {
    --bg: #0d0b14;
    --card: rgba(24, 20, 36, 0.84);
    --card-strong: rgba(37, 30, 56, 0.92);
    --sidebar: #0f0c18;
    --sidebar-muted: #ddd4ee;
    --text: #f5f0ff;
    --muted: #cfc2e6;
    --border: rgba(217, 200, 255, 0.12);
    --glass-panel: rgba(24, 20, 36, 0.42);
    --glass-panel-strong: rgba(37, 30, 56, 0.66);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #c084fc;
    --primary-hover: #a855f7;
    --primary-soft: rgba(192, 132, 252, 0.14);
    --success: #22d3ee;
    --site-background-color: #0d0b14;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23080511'/%3E%3Cstop offset='48%25' stop-color='%230d0b14'/%3E%3Cstop offset='100%25' stop-color='%231c1330'/%3E%3C/linearGradient%3E%3CradialGradient id='glowA' cx='18%25' cy='16%25' r='42%25'%3E%3Cstop offset='0%25' stop-color='%23c084fc' stop-opacity='.28'/%3E%3Cstop offset='100%25' stop-color='%23c084fc' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='glowB' cx='84%25' cy='14%25' r='30%25'%3E%3Cstop offset='0%25' stop-color='%2322d3ee' stop-opacity='.12'/%3E%3Cstop offset='100%25' stop-color='%2322d3ee' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cpattern id='grid' width='84' height='84' patternUnits='userSpaceOnUse'%3E%3Cpath d='M84 0H0V84' fill='none' stroke='%238b5cf6' stroke-opacity='.028'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23glowA)'/%3E%3Crect width='1600' height='900' fill='url(%23glowB)'/%3E%3Crect width='1600' height='900' fill='url(%23grid)'/%3E%3Cpath d='M0 660C164 628 338 716 560 684C774 654 946 542 1166 568C1362 592 1488 694 1600 686V900H0Z' fill='%23f5f3ff' fill-opacity='.028'/%3E%3Cpath d='M0 748C184 718 352 800 584 768C816 736 986 634 1210 652C1404 668 1510 758 1600 748V900H0Z' fill='%23c084fc' fill-opacity='.042'/%3E%3C/svg%3E");
    --header-overlay: rgba(8, 5, 17, 0.86);
}

body.dark-mode.theme-4 {
    --bg: #1a1712;
    --card: rgba(36, 31, 24, 0.84);
    --card-strong: rgba(48, 41, 31, 0.94);
    --sidebar: #17130f;
    --sidebar-muted: #efe1be;
    --text: #f7f1e6;
    --muted: #d2c4a6;
    --border: rgba(253, 185, 19, 0.12);
    --glass-panel: rgba(36, 31, 24, 0.44);
    --glass-panel-strong: rgba(48, 41, 31, 0.68);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #fdb913;
    --primary-hover: #ffca43;
    --primary-soft: rgba(253, 185, 19, 0.18);
    --success: #fdb913;
    --warning: #ffca43;
    --shadow: 0 24px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --site-background-color: #1a1712;
    --site-background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23120f0b'/%3E%3Cstop offset='52%25' stop-color='%231a1712'/%3E%3Cstop offset='100%25' stop-color='%232b241a'/%3E%3C/linearGradient%3E%3CradialGradient id='gold' cx='18%25' cy='16%25' r='40%25'%3E%3Cstop offset='0%25' stop-color='%23fdb913' stop-opacity='.24'/%3E%3Cstop offset='100%25' stop-color='%23fdb913' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='slate' cx='84%25' cy='14%25' r='30%25'%3E%3Cstop offset='0%25' stop-color='%2378674a' stop-opacity='.12'/%3E%3Cstop offset='100%25' stop-color='%2378674a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='900' fill='url(%23g)'/%3E%3Crect width='1600' height='900' fill='url(%23gold)'/%3E%3Crect width='1600' height='900' fill='url(%23slate)'/%3E%3Cpath d='M0 650C170 612 344 702 572 676C804 650 978 554 1188 574C1380 592 1492 690 1600 682V900H0Z' fill='%23fff7e0' fill-opacity='.032'/%3E%3Cpath d='M0 742C184 716 360 798 594 768C830 738 1010 632 1232 650C1412 666 1512 758 1600 746V900H0Z' fill='%23fdb913' fill-opacity='.06'/%3E%3C/svg%3E");
    --header-overlay: rgba(18, 15, 11, 0.84);
}

body.dark-mode.theme-5 {
    --bg: #070a10;
    --card: rgba(10, 14, 22, 0.72);
    --card-strong: rgba(12, 18, 28, 0.88);
    --sidebar: rgba(10, 14, 22, 0.82);
    --sidebar-muted: rgba(234, 246, 255, 0.86);
    --text: rgba(244, 250, 255, 0.94);
    --muted: rgba(190, 205, 222, 0.78);
    --border: rgba(255, 255, 255, 0.1);
    --glass-panel: rgba(12, 18, 28, 0.38);
    --glass-panel-strong: rgba(12, 18, 28, 0.62);
    --glass-border: rgba(255, 255, 255, 0.12);
    --primary: #00e5ff;
    --primary-hover: #8b5cf6;
    --primary-soft: rgba(0, 229, 255, 0.18);
    --accent: #ff2bd6;
    --focus-ring: rgba(0, 229, 255, 0.5);
    --focus-ring-soft: rgba(0, 229, 255, 0.22);
    --success: #00e5ff;
    --danger: #ff5a77;
    --warning: #fdb913;
    --site-background-color: #070a10;
    --site-background-image:
        radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0) 52%),
        radial-gradient(circle at 84% 22%, rgba(255, 43, 214, 0.18) 0%, rgba(255, 43, 214, 0) 54%),
        radial-gradient(circle at 58% 78%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 54%),
        linear-gradient(135deg, #05070d 0%, #070a10 40%, #0b1020 100%);
    --header-overlay: rgba(5, 7, 13, 0.84);
    --heading-gradient: linear-gradient(180deg, rgba(235, 248, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.brand-text {
    font-family: var(--heading-font) !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ui-card-header-color);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 88%, transparent);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 46px;
    line-height: 1.4;
    background: var(--glass-panel-strong);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 28%, transparent);
    backdrop-filter: blur(18px) saturate(145%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 1px 0 color-mix(in srgb, #ffffff 34%, transparent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.top-menu-link:focus-visible,
.side-menu-link:focus-visible,
.side-menu-sublink:focus-visible,
.dashboard-action-tile:focus-visible,
.dashboard-chip:focus-visible,
.dashboard-work-item:focus-visible,
.pagination-link:focus-visible,
.pagination-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--focus-ring-soft);
}

[hidden] {
    display: none !important;
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.side-menu {
    display: none;
}

body.side-navigation .app-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}

body.side-navigation .side-menu {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100vh;
    padding: 16px 14px;
    background: linear-gradient(160deg, var(--card-strong) 0%, var(--card) 100%);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(150%);
    z-index: 45;
}

body.side-navigation .top-menu.is-hidden-for-side-navigation {
    display: none;
}

body.side-navigation .content {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 20px 24px 24px;
    order: initial;
}

.side-menu-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

.side-menu-brand {
    flex: none;
    min-width: 0;
    width: 100%;
}

.side-menu-nav {
    display: grid;
    gap: 6px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.side-menu-item {
    display: grid;
    gap: 4px;
}

.side-menu-link,
.side-menu-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--text);
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.side-menu-link:hover,
.side-menu-link.active,
.side-menu-sublink:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.side-menu-subnav {
    display: grid;
    gap: 4px;
    margin-left: 6px;
}

.side-menu-sublink {
    min-height: 34px;
    font-size: 12px;
}

.side-menu-userbar {
    margin-top: auto;
}

.side-menu-userbar .user-toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 14px;
    cursor: pointer;
}

.side-menu-userbar .user-toggle:hover,
.side-menu-userbar .user-toggle[aria-expanded="true"] {
    background: var(--primary-soft);
    color: var(--primary);
}

.side-menu-collapse-toggle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    justify-self: end;
    flex: 0 0 auto;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    cursor: pointer;
}

.side-menu .user-menu a,
.side-menu .menu-button {
    cursor: pointer;
}

.sidebar-hamburger {
    display: inline-grid;
    gap: 4px;
}

.sidebar-hamburger span {
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.top-menu {
    order: 2;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 40;
    height: auto;
    box-sizing: border-box;
    overflow: visible;
    padding: 0 0 calc(14px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    color: #fff;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.lead-rows-editor-page .top-menu {
    display: none;
}

.top-menu-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    box-sizing: border-box;
    padding: 12px 20px;
    width: min(1160px, calc(100% - 24px));
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--card-strong) 0%, var(--card) 100%);
    background-color: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(28px) saturate(155%);
    overflow: visible;
}

.top-menu-bar::before {
    display: none;
}

.top-menu-brand {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    text-shadow: none;
}

.top-menu-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    justify-content: center;
    min-width: 0;
    max-width: min(100%, 620px);
    margin: 0 auto;
}

.brand-text {
    font-size: 24px;
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
}

.top-menu-link,
.top-menu-dropdown-link,
.user-menu a,
.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.top-menu-toggle {
    margin: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    line-height: 1;
    appearance: none;
}

.nav-label,
.top-menu-caret {
    color: inherit;
}

.top-menu-caret {
    font-size: 11px;
    line-height: 1;
}

.nav-icon {
    display: inline-flex;
    width: var(--ui-icon-size);
    height: var(--ui-icon-size);
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--ui-icon-size);
}

.nav-icon svg {
    width: var(--ui-icon-size);
    height: var(--ui-icon-size);
}

.top-menu-link {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.top-menu-link:hover,
.top-menu-link.active,
.top-menu-link[aria-expanded="true"] {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--primary);
    transform: none;
}

.top-menu-link.active,
.top-menu-link[aria-expanded="true"],
.top-menu-link:hover,
.top-menu-item:hover > .top-menu-link,
.top-menu-item:focus-within > .top-menu-link,
.top-menu-dropdown-link:hover,
.top-menu-dropdown-link.active {
    color: var(--primary);
}

.top-menu-item {
    position: relative;
}

.top-menu-dropdown {
    display: none;
    position: absolute;
    top: auto;
    bottom: calc(100% + 2px);
    left: 0;
    min-width: 240px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--card-strong) 0%, var(--card) 100%);
    background-color: var(--card);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16), var(--shadow);
    -webkit-backdrop-filter: blur(40px) saturate(175%);
    backdrop-filter: blur(40px) saturate(175%);
    z-index: 50;
}

.top-menu-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 14px;
}

.top-menu-dropdown.is-visible {
    display: grid;
    gap: 8px;
}

.top-menu-item:hover .top-menu-dropdown,
.top-menu-item:focus-within .top-menu-dropdown {
    display: grid;
    gap: 8px;
}

.top-menu-dropdown-link,
.user-menu a,
.menu-button {
    display: flex;
    align-items: center;
    min-height: 32px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--text);
    font-size: 13px;
    background: transparent;
}

.top-menu-dropdown-title {
    padding-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.top-menu-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.content {
    padding: 24px;
}

.sidebar {
    display: none;
}

.userbar {
    position: relative;
}

.top-menu-userbar {
    flex: 0 0 48px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.user-toggle,
.menu-button,
.icon-button {
    cursor: pointer;
    border: 0;
}

.user-toggle {
    width: auto;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    color: var(--text);
}

.top-menu-userbar .user-toggle {
    width: auto;
    padding: 0;
}

.sidebar-toggle {
    color: var(--text);
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--glass-panel-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.avatar-wrap {
    position: relative;
    display: inline-flex;
}

.avatar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d93025;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid color-mix(in srgb, var(--card) 90%, transparent);
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.menu-title {
    padding: 8px 10px 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.menu-notifications {
    width: 100%;
    max-width: 100%;
    max-height: 320px;
    overflow: auto;
    padding: 4px;
}

.menu-notification {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 10px;
}

.menu-notification:hover {
    background: color-mix(in srgb, var(--accent) 18%, var(--glass-panel));
}

.menu-notification p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.menu-notification span {
    color: var(--muted);
    font-size: 12px;
}

.menu-notification-empty p {
    color: var(--muted);
    font-style: italic;
}

.menu-more-notifications {
    display: block;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--primary);
}

.menu-more-notifications:hover {
    background: color-mix(in srgb, var(--accent) 18%, var(--glass-panel));
}

.content-heading {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0;
    background-image: none;
    filter: none;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.user-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 2px);
    min-width: 240px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--card-strong) 0%, var(--card) 100%);
    background-color: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(40px) saturate(175%);
    backdrop-filter: blur(40px) saturate(175%);
    z-index: 50;
    color: var(--text);
}

.user-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 14px;
}

.top-menu-userbar .user-menu {
    left: auto;
    right: 0;
    width: min(var(--user-menu-width), calc(100vw - 24px));
    right: 0;
}

.side-menu-userbar .user-menu {
    right: auto;
    width: min(var(--user-menu-width), calc(100vw - 24px));
}

.top-menu-userbar:focus-within .user-menu,
.side-menu-userbar:focus-within .user-menu,
.user-menu.is-visible {
    display: grid;
    gap: 8px;
}

.user-menu form {
    margin: 0;
}

.user-menu a,
.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    color: inherit;
    text-align: left;
}

.top-menu-dropdown-link:hover,
.top-menu-dropdown-link.active,
.user-menu a:hover,
.menu-button:hover {
    background: color-mix(in srgb, var(--accent) 18%, var(--glass-panel));
}

.content {
    padding: 28px;
    order: 1;
    flex: 1 0 auto;
    min-width: 0;
    width: min(1440px, calc(100% - 16px));
    margin: 0 auto;
}

.lead-rows-editor-page .content {
    width: calc(100% - 24px);
    max-width: none;
    padding-bottom: 24px;
}

body.side-navigation.lead-rows-editor-page .app-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
}

body.side-navigation.lead-rows-editor-page .content {
    width: calc(100% - 24px);
    max-width: none;
    margin: 0 auto;
}

.modal-table-wrap {
    max-height: 360px;
    overflow: auto;
}

.topbar,
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h1,
.topbar h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.icon-label-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.icon-label-icon svg {
    width: 20px;
    height: 20px;
}

.icon-label-inline {
    gap: 6px;
}

.icon-label-inline .icon-label-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.icon-label-inline .icon-label-icon svg {
    width: 16px;
    height: 16px;
}

.page-path {
    margin: 0;
    color: var(--ui-path-text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-path a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.page-path a:hover {
    text-decoration: underline;
}

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

.audit-meta {
    display: grid;
    gap: 2px;
    min-width: 140px;
    line-height: 1.35;
}

.lead-editor-autosave-status[data-save-state="saving"] {
    color: var(--primary);
}

.lead-editor-autosave-status[data-save-state="error"] {
    color: var(--danger);
}

.lead-editor-autosave-status[data-save-state="saved"] {
    color: var(--success);
}

.audit-time {
    font-weight: 600;
    color: var(--text);
}

.audit-date,
.audit-user {
    font-size: 12px;
}

.page-actions,
.toolbar-actions,
.stats-grid,
.two-column,
.metrics-grid,
.list-grid {
    display: grid;
    gap: 16px;
}

.page-actions,
.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stats-grid,
.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 24px;
}

.two-column {
    grid-template-columns: 2fr 1fr;
}

.list-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    overflow-x: auto;
}

.settings-grid {
    margin-top: 24px;
    align-items: start;
}

.settings-grid > .card {
    height: fit-content;
}

.card {
    background: linear-gradient(135deg, var(--card-strong) 0%, var(--card) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(12px) saturate(132%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-success:hover,
    .btn-danger:hover,
    .icon-button:hover,
    .docs-keyword:hover {
        transform: translateY(-1px) scale(1.015);
        box-shadow: var(--shadow);
    }

    .top-menu-link:hover,
    .top-menu-link[aria-expanded="true"],
    .user-toggle:hover {
        transform: translateY(-1px) scale(1.015);
    }

    .dashboard-action-tile:hover,
    .dashboard-work-item:hover,
    .dashboard-chip:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }
}

.tips-card {
    background: var(--card);
    border-color: var(--border);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(18px);
}

.workspace-page-description {
    margin: 12px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}

.workspace-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.workspace-overview-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(140%);
}

.workspace-overview-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workspace-overview-value {
    font-size: 30px;
    line-height: 1;
}

.workspace-overview-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.workspace-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.workspace-section-copy {
    display: grid;
    gap: 6px;
}

.workspace-section-copy .section-title,
.workspace-section-copy p {
    margin: 0;
}

.workspace-section-actions,
.workspace-action-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.workspace-page-actions {
    gap: 12px;
}

.lead-editor-toolbar {
    gap: 8px;
    margin-bottom: 12px;
}

.workspace-column-visibility-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.workspace-column-visibility-controls .lead-editor-hidden-column-select {
    width: 180px;
    min-width: 180px;
}

.lead-editor-toolbar .btn-secondary,
.lead-editor-toolbar .lead-editor-hidden-column-select {
    height: 38px;
}

.lead-editor-toolbar .btn-secondary {
    padding-inline: 14px;
}

.data-tweaks-checkbox-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.data-tweaks-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--panel);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.data-tweaks-checkbox-item input {
    margin: 0;
    accent-color: var(--primary);
}

.data-tweaks-checkbox-item:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.data-tweaks-checkbox-item input:checked + span {
    color: var(--primary);
    font-weight: 600;
}

.blacklist-set-block {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: var(--card);
}

.blacklist-set-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.workspace-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.workspace-guide-step {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.workspace-guide-kicker {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tips-card .flow-card {
    background: var(--glass-panel-strong);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(140%);
}

.compact-header {
    margin-bottom: 14px;
}

.metric-value {
    font-size: 30px;
    font-weight: 700;
    margin-top: 8px;
}

.dashboard-stat-card {
    display: grid;
    gap: 10px;
}

.dashboard-stat-header,
.dashboard-panel-header,
.dashboard-action-tile,
.dashboard-work-item {
    display: flex;
    align-items: center;
}

.dashboard-stat-header,
.dashboard-panel-header,
.dashboard-work-item {
    justify-content: space-between;
}

.dashboard-stat-icon,
.dashboard-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--glass-panel-strong);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.dashboard-stat-icon svg,
.dashboard-action-icon svg {
    width: 18px;
    height: 18px;
}

.dashboard-stat-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(280px, 0.85fr);
    gap: 16px;
}

.dashboard-panel-card {
    height: 100%;
}

.dashboard-panel-header {
    gap: 16px;
}

.dashboard-panel-header p,
.dashboard-chip-section p {
    margin: 6px 0 0;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dashboard-action-tile,
.dashboard-work-item,
.dashboard-chip {
    border: 1px solid var(--glass-border);
    background: var(--glass-panel-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.dashboard-action-tile {
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border-radius: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dashboard-action-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-action-copy strong,
.dashboard-work-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.dashboard-action-copy span,
.dashboard-work-copy span,
.dashboard-work-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-chip-section {
    display: grid;
    gap: 10px;
}

.dashboard-chip-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dashboard-work-list {
    display: grid;
    gap: 10px;
}

.dashboard-work-item {
    gap: 16px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dashboard-work-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-work-copy strong {
    color: var(--text);
}

.dashboard-work-meta {
    text-align: right;
    flex: 0 0 auto;
}

.dashboard-work-meta .audit-meta {
    justify-items: end;
    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ui-status-tag-bg);
    color: var(--ui-status-tag-color);
    font-size: 13px;
    font-weight: 700;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: var(--ui-action-button-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 14px 28px var(--primary-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--glass-panel-strong);
    border-color: var(--glass-border);
    color: var(--text);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(20px) saturate(145%);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--accent) 16%, var(--glass-panel-strong));
    border-color: color-mix(in srgb, var(--accent) 28%, var(--glass-border));
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 14px 28px var(--primary-soft);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--glass-panel-strong);
    border-color: color-mix(in srgb, var(--danger) 42%, var(--glass-border));
    color: color-mix(in srgb, var(--danger) 86%, var(--text));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(20px) saturate(145%);
}

.btn-danger:hover {
    background: color-mix(in srgb, var(--danger) 12%, var(--glass-panel-strong));
    border-color: color-mix(in srgb, var(--danger) 55%, var(--glass-border));
    color: color-mix(in srgb, var(--danger) 92%, var(--text));
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-success:disabled,
.btn-danger:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.28);
    color: #7d7d7d;
    cursor: not-allowed;
    backdrop-filter: blur(18px);
}

.input,
.textarea,
select.input {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 46px;
    line-height: 1.4;
    background: var(--glass-panel-strong);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 28%, transparent);
    backdrop-filter: blur(18px) saturate(145%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    color: var(--text);
}

.input:focus,
.textarea:focus,
select.input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 1px 0 color-mix(in srgb, #ffffff 34%, transparent);
}

.input::placeholder,
.textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 88%, transparent);
}

.mapping-custom-input {
    display: none;
}

.mapping-custom-input.is-visible {
    display: block;
}

.formula-suggestion-menu {
    position: absolute;
    z-index: 9999;
    min-width: 220px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
    color: var(--text);
}

.formula-suggestion-item {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.formula-suggestion-item:hover,
.formula-suggestion-item.is-active {
    background: var(--primary-soft);
    color: var(--text);
}

.expandable-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.data-tweaks-group + .data-tweaks-group {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.data-tweaks-toggle-grid {
    align-items: stretch;
}

.data-tweaks-toggle-grid .data-tweaks-group {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    box-shadow: var(--shadow);
}

.data-tweaks-toggle-grid .data-tweaks-group-full {
    grid-column: 1 / -1;
}

.data-tweaks-toggle-grid .data-tweaks-group + .data-tweaks-group {
    padding-top: 18px;
    border-top: 0;
}

.data-tweaks-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.custom-header-block + .custom-header-block {
    margin-top: 18px;
}

.custom-header-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-header-name-row .input {
    flex: 1 1 240px;
    min-width: 220px;
}

.custom-header-name-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.custom-header-name-actions .icon-action-button {
    width: 42px;
    height: 42px;
    justify-content: center;
}

.custom-header-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 18px;
}

.custom-header-divider {
    flex: 1;
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0;
}

.custom-header-remove {
    flex-shrink: 0;
}

.scrape-rule-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 720px) {
    .scrape-rule-row {
        grid-template-columns: 1fr;
    }
}

.collapsible-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.collapsible-text.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.collapsible-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-mode-static,
.custom-mode-source,
.custom-mode-composed {
    display: none;
}

.custom-mode-static.is-visible,
.custom-mode-source.is-visible,
.custom-mode-composed.is-visible {
    display: block;
}

.value-source-other-subgroup {
    display: none;
}

.value-source-other-subgroup.is-visible {
    display: block;
}

.textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group,
.stack-form {
    display: grid;
    gap: 8px;
}

.toggle-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.data-tweaks-toggle-row {
    gap: 14px;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 26px;
}

.toggle-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle-slider {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 18%, var(--glass-panel-strong));
    border: 1px solid var(--glass-border);
    transition: background-color 0.15s ease;
    position: relative;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 12%, #ffffff);
    transition: transform 0.15s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.stack-form {
    gap: 16px;
}

.theme-option-grid {
    display: grid;
    gap: 12px;
}

.theme-option-card {
    display: block;
    cursor: pointer;
}

.theme-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-option-card-body {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(145%);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-option-card:hover .theme-option-card-body {
    transform: translateY(-1px);
}

.theme-option-card input:checked + .theme-option-card-body {
    border-color: var(--primary);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.theme-option-swatch {
    display: block;
    width: 92px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background:
        radial-gradient(circle at 18% 20%, var(--theme-primary) 0%, transparent 55%),
        radial-gradient(circle at 84% 18%, var(--theme-accent) 0%, transparent 50%),
        linear-gradient(135deg, var(--theme-surface) 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-option-copy {
    display: grid;
    gap: 4px;
}

.theme-option-copy strong {
    font-size: 15px;
}

.form-helper {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.profile-form {
    gap: 20px;
}

.profile-form-columns,
.profile-form-column {
    display: grid;
    gap: 20px;
}

.profile-form-columns {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
}

.profile-form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-form-topbar p {
    margin: 0;
}

.profile-form-section {
    display: grid;
    gap: 16px;
}

.profile-form-section-header {
    display: grid;
    gap: 6px;
}

.profile-form-section-header h3 {
    margin: 0;
    font-size: 16px;
}

.profile-form-section-header p {
    margin: 0;
}

.profile-avatar-uploader,
.profile-avatar-preview-card,
.profile-summary,
.profile-summary-copy,
.profile-summary-meta,
.profile-summary-meta-item {
    display: grid;
}

.profile-avatar-uploader,
.profile-summary {
    gap: 16px;
}

.profile-avatar-preview-card {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(135%);
}

.profile-avatar-preview,
.profile-summary-avatar {
    width: 96px;
    height: 96px;
}

.profile-avatar-preview-copy,
.profile-summary-copy,
.profile-summary-meta,
.profile-summary-meta-item {
    gap: 8px;
}

.profile-file-status {
    font-weight: 600;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-start;
}

.profile-summary {
    justify-items: start;
}

.profile-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.profile-summary-meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-summary-meta-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-log-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
}

.profile-log-badge-action {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.18);
}

.profile-log-badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.2);
}

.profile-log-badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.profile-log-badge-neutral,
.profile-log-badge-subject {
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.18);
}

.profile-log-description {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.flash {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.flash.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dashboard-hero-workflow {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--card-strong)) 0%, color-mix(in srgb, var(--primary-hover) 22%, var(--card)) 100%);
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 18px;
    align-items: center;
}

.dashboard-hero-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.dashboard-hero-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-hero-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
}

.dashboard-hero-meta {
    margin: 0;
    max-width: 64ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-hero-visual {
    margin: 0;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    box-shadow: var(--shadow);
}

.dashboard-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

body.dark-mode .dashboard-hero-visual img,
body.theme-5 .dashboard-hero-visual img {
    filter: invert(1) hue-rotate(180deg) contrast(1.05);
}

.dashboard-hero-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-hero-step-card {
    min-width: 0;
}

.dashboard-flow-card {
    display: grid;
    gap: 16px;
}

.dashboard-flow-grid {
    grid-auto-flow: initial;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
}

.dashboard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dashboard-help-header,
.dashboard-help-links {
    display: flex;
    gap: 12px;
}

.dashboard-help-header {
    align-items: flex-start;
}

.dashboard-help-links {
    flex-wrap: wrap;
}

.dashboard-help-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

.dashboard-help-search {
    flex-wrap: nowrap;
    align-items: stretch;
}

.dashboard-help-search .docs-search-input {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-help-search .btn-primary {
    flex: 0 0 auto;
    white-space: nowrap;
}

.dashboard-help-card {
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
}

.dashboard-log-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
}

.dashboard-log-badge-action {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.18);
}

.dashboard-log-badge-subject {
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.18);
}

.global-blacklist-setup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.global-blacklist-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.global-blacklist-group-card {
    min-width: 0;
}

.global-blacklist-value-list {
    display: grid;
    gap: 12px;
}

.global-blacklist-value-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(22px) saturate(145%);
}

.global-blacklist-value-link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.global-blacklist-value-link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.global-blacklist-value-delete {
    margin: 0;
}

.global-blacklist-scan-list {
    display: grid;
    gap: 12px;
}

.global-blacklist-scan-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
}

.global-blacklist-scan-item input[type="checkbox"] {
    margin-top: 4px;
}

.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(8px) saturate(125%);
}

.lead-rows-card,
.lead-rows-tab-panel {
    min-width: 0;
}

.lead-rows-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.lead-rows-table-wrap .compact-rows-table {
    width: max-content;
    min-width: 100%;
}

.table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.workspace-toolbar-copy {
    display: grid;
    gap: 4px;
    flex: 1 1 220px;
    min-width: 180px;
}

.workspace-toolbar-label {
    font-size: 13px;
    font-weight: 700;
}

.workspace-toolbar-meta {
    color: var(--muted);
    font-size: 12px;
}

.table-search {
    flex: 1 1 260px;
}

.table-page-size {
    max-width: 140px;
}

.table-filter-select {
    max-width: 180px;
}

.table-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.table-pagination {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-button {
    border: 1px solid var(--glass-border);
    background: var(--glass-panel-strong);
    color: var(--text);
    border-radius: var(--ui-other-button-radius);
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    backdrop-filter: blur(18px) saturate(140%);
}

.pagination-link.is-disabled,
.pagination-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-link.is-active,
.pagination-button.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
    color: var(--muted);
}

.pagination-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.pagination-jump span {
    color: var(--muted);
    font-size: 13px;
}

.pagination-jump-select {
    min-width: 140px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.compact-rows-table th,
.compact-rows-table td {
    padding: 9px 10px;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkbox-cell {
    width: 52px;
    text-align: center;
}

.checkbox-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
}

.table-sort-indicator {
    font-size: 11px;
    opacity: 0.6;
}

.table-sort-button.is-active {
    color: var(--text);
}

.table-sort-button.is-active .table-sort-indicator {
    opacity: 1;
}

.table-sort-button.is-active .table-sort-indicator::before {
    content: '↑';
}

.table-sort-button.is-active.is-desc .table-sort-indicator::before {
    content: '↓';
}

.table-sort-button.is-active .table-sort-indicator {
    font-size: 0;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.clickable-row:hover {
    background: var(--primary-soft);
}

body.dark-mode .clickable-row:hover {
    background: #1f1f1f;
}

.row-actions {
    white-space: nowrap;
    vertical-align: middle;
}

.workspace-name-cell {
    min-width: 220px;
}

.workspace-name-stack {
    display: grid;
    gap: 6px;
}

.workspace-name-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.workspace-name-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 12px;
}

.row-actions form {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 10px 0 0;
}

.row-actions > * {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 10px;
}

.row-actions > *:last-child {
    margin-right: 0;
}

.compact-table-input {
    min-width: 140px;
    width: 100%;
}

.nowrap-cell {
    white-space: nowrap;
}

.groups-table {
    table-layout: auto;
}

.groups-table .row-actions {
    white-space: nowrap;
}

.icon-action-button {
    width: 40px;
    height: 40px;
    padding: 0;
}

.icon-action-button svg {
    width: 18px;
    height: 18px;
}

.name-with-pin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pin-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #b88900;
    vertical-align: text-bottom;
}

.pin-indicator svg {
    width: 14px;
    height: 14px;
}

.pin-action-button.is-pinned {
    color: #b88900;
}

.progress-cell {
    min-width: 190px;
}

.progress-stack {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    backdrop-filter: none;
}

.progress-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
    flex: 0 0 8px;
}

.progress-badge-complete {
    background: rgba(46, 125, 50, 0.14);
    border-color: rgba(46, 125, 50, 0.2);
    color: #2e7d32;
}

.progress-badge-progress {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}

.progress-badge-idle {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.progress-meta {
    font-size: 12px;
    color: var(--muted);
}

.progress-track {
    position: relative;
    display: block;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(148, 163, 184, 0.14);
}

.progress-fill {
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.22);
}

.empty-state {
    text-align: center;
    padding: 36px 18px;
    border: 1px dashed var(--glass-border);
    border-radius: 18px;
    background: var(--glass-panel);
    backdrop-filter: blur(18px) saturate(140%);
}

.section-title {
    margin: 0 0 16px;
}

.card > .text-muted {
    margin: 0 0 16px;
}

.compact-empty {
    padding: 18px;
}

.section-form {
    margin-bottom: 18px;
}

.uniform-margin {
    margin-top: 18px;
}

.top-gap {
    margin-top: 16px;
}

.inline-editor,
.inline-delete {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inline-delete {
    margin-top: 0;
    margin-bottom: 12px;
}

.narrow-input {
    max-width: 90px;
}

.dropdown-menu {
    position: relative;
}

.dropdown-menu summary {
    list-style: none;
}

.dropdown-menu[open] .dropdown-panel {
    display: block;
}

.dropdown-menu summary::-webkit-details-marker {
    display: none;
}

.dropdown-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 20;
    backdrop-filter: blur(20px) saturate(140%);
}

.dropdown-panel a,
.dropdown-panel span {
    display: block;
    padding: 12px 14px;
}

.dropdown-panel a:hover {
    background: rgba(255, 255, 255, 0.24);
}

.dropdown-panel .is-disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-links {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
}

.tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.tab-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tab-links a,
.tab-links button {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass-panel-strong);
    color: var(--text);
    cursor: pointer;
    backdrop-filter: blur(18px) saturate(140%);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.tab-links a.is-active,
.tab-links button.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.tab-links a.is-active .tab-count,
.tab-links button.is-active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.lead-edit-fields {
    display: none;
}

.lead-edit-fields.is-active {
    display: grid;
    gap: 8px;
}

.flow-card h3 {
    margin: 14px 0 8px;
}

.flow-card p {
    margin: 0;
}

.dashboard-section {
    margin-top: 24px;
}

.drag-order-form {
    margin-bottom: 16px;
}

.drag-list {
    display: grid;
    gap: 10px;
}

.drag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: var(--glass-panel-strong);
    backdrop-filter: blur(18px) saturate(140%);
}

.drag-item.is-dragging {
    opacity: 0.5;
}

.drag-handle {
    color: var(--muted);
    cursor: grab;
    font-weight: 700;
}

.import-layout {
    align-items: start;
}

.equal-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.equal-three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.summary-item {
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 8px;
    backdrop-filter: blur(18px) saturate(140%);
}

.summary-item strong {
    font-size: 24px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    z-index: 50;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 560px;
    background: linear-gradient(135deg, var(--card-strong), var(--card));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px) saturate(145%);
}

.modal-wide {
    max-width: 880px;
}

.lead-row-edit-fields {
    display: none;
    gap: 14px;
}

.lead-row-edit-fields.is-active {
    display: grid;
}

.lead-row-edit-search-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lead-row-edit-search-controls .input:first-child {
    flex: 1 1 280px;
    min-width: 240px;
}

.lead-row-edit-search-controls .input:not(:first-child) {
    width: 220px;
    min-width: 220px;
}

.lead-row-edit-fields-wrap {
    display: grid;
    gap: 12px;
    max-height: calc(90vh - 260px);
    overflow: auto;
    padding-right: 4px;
}

.lead-row-edit-field .textarea {
    min-height: 76px;
}

.modal-super-wide {
    max-width: min(96vw, 1800px);
}

.modal-tall {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-tall .modal-header,
.modal-tall .modal-actions {
    flex: 0 0 auto;
}

.spreadsheet-modal-table-wrap {
    overflow: auto;
    max-height: calc(90vh - 180px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
}

.spreadsheet-page-table-wrap {
    overflow: auto;
    max-height: calc(100vh - 280px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    position: relative;
}

.spreadsheet-edit-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

.spreadsheet-edit-table th {
    position: sticky;
    top: 0;
    z-index: 8;
    isolation: isolate;
    overflow: visible;
    background: var(--site-background-color);
    background-color: var(--site-background-color);
    background-image: none;
    padding: 3px 5px;
    font-size: 10px;
    line-height: 1.2;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 var(--glass-border), 0 10px 18px rgba(15, 23, 42, 0.08);
    border-right: 1px solid var(--glass-border);
}

.spreadsheet-edit-table th.has-open-menu {
    z-index: 45;
}

.spreadsheet-header-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    position: relative;
    min-width: 100%;
}

.spreadsheet-header-cell > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spreadsheet-header-menu-button {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
}

.spreadsheet-header-menu-button:hover,
.spreadsheet-header-menu-button.is-open,
.spreadsheet-header-menu-button.is-filtered,
.spreadsheet-header-menu-button.is-sorted {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.12);
}

.spreadsheet-header-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--site-background-color);
    background-color: var(--site-background-color);
    background-image: none;
    opacity: 1;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 8px;
    isolation: isolate;
}

.spreadsheet-header-menu-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.spreadsheet-header-menu-action {
    width: 100%;
    text-align: left;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    padding: 7px 9px;
    cursor: pointer;
    font-size: 12px;
}

.spreadsheet-header-menu-action:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

.spreadsheet-header-menu-label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.spreadsheet-header-filter-input {
    min-width: 0;
    font-size: 12px;
    background: var(--card);
    background-image: none;
    opacity: 1;
}

.spreadsheet-header-menu-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.lead-editor-hidden-controls {
    display: none;
}

.spreadsheet-edit-table td {
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.35);
    width: 1%;
}

.spreadsheet-edit-table td:first-child,
.spreadsheet-edit-table th:first-child {
    min-width: 72px;
}

.lead-editor-table th:first-child,
.lead-editor-table .row-handle-cell {
    display: none;
}

.spreadsheet-edit-table .row-handle-cell {
    cursor: pointer;
    user-select: none;
    text-align: right;
    padding: 3px 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--site-background-color);
}

.spreadsheet-grid-cell {
    position: relative;
    min-width: 0;
    height: 24px;
    padding: 0;
    cursor: cell;
    outline: none;
}

.spreadsheet-grid-cell [data-grid-input] {
    display: none;
}

.spreadsheet-cell-display {
    min-width: 0;
    min-height: 24px;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 1.25;
    color: var(--text);
    white-space: pre-wrap;
    overflow: visible;
    text-overflow: clip;
    max-height: none;
}

.spreadsheet-edit-table tr.is-row-focused td {
    background: var(--primary-soft);
}

.spreadsheet-edit-table tr.is-row-selected td,
.spreadsheet-edit-table .row-handle-cell.is-row-selected {
    background: rgba(37, 99, 235, 0.14);
}

.spreadsheet-edit-table td.is-cell-selected {
    background: rgba(37, 99, 235, 0.12);
}

.spreadsheet-edit-table td.is-cell-anchor {
    box-shadow: inset 0 0 0 1px var(--primary);
}

.spreadsheet-edit-table td.is-cell-active {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.spreadsheet-edit-table td.is-cell-readonly {
    background: rgba(15, 23, 42, 0.04);
    cursor: default;
}

.spreadsheet-edit-table td.is-cell-readonly .spreadsheet-cell-display {
    color: var(--text-muted);
}

.spreadsheet-edit-table td.is-selection-top {
    border-top: 2px solid var(--primary);
}

.spreadsheet-edit-table td.is-selection-bottom {
    border-bottom: 2px solid var(--primary);
}

.spreadsheet-edit-table td.is-selection-left {
    border-left: 2px solid var(--primary);
}

.spreadsheet-edit-table td.is-selection-right {
    border-right: 2px solid var(--primary);
}

.spreadsheet-floating-editor {
    position: absolute;
    z-index: 80;
    pointer-events: auto;
    overflow: visible;
}

.spreadsheet-editor-input {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    border: 2px solid var(--primary);
    box-shadow: none;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.35;
    background: var(--card);
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    box-sizing: border-box;
    margin: 0;
}

.lead-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lead-editor-search-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 420px;
    flex-wrap: wrap;
}

.lead-editor-search-input {
    flex: 1 1 240px;
    min-width: 220px;
}

.lead-editor-filter-select {
    width: 220px;
    min-width: 220px;
}

.lead-editor-search-controls .btn-secondary,
.lead-editor-search-controls .input {
    height: 38px;
}

body.is-spreadsheet-selecting,
body.is-spreadsheet-selecting .spreadsheet-edit-table,
body.is-spreadsheet-selecting .spreadsheet-edit-table * {
    user-select: none;
}

.editor-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 120;
    min-width: 260px;
    max-width: min(420px, calc(100vw - 36px));
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.editor-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lead-editor-copy-buffer {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.dark-mode .user-menu,
body.dark-mode .dropdown-panel,
body.dark-mode .tab-links a,
body.dark-mode .tab-links button,
body.dark-mode .drag-item,
body.dark-mode .summary-item,
body.dark-mode .workspace-overview-card,
body.dark-mode .modal-card,
body.dark-mode .pagination-link,
body.dark-mode .pagination-button,
body.dark-mode .empty-state,
body.dark-mode .btn-secondary,
body.dark-mode .btn-disabled,
body.dark-mode .input,
body.dark-mode .textarea {
    background: var(--glass-panel-strong);
    border-color: var(--glass-border);
    color: var(--text);
}

body.dark-mode .spreadsheet-edit-table td {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.22);
}

body.dark-mode .spreadsheet-header-menu-button {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.24);
    color: var(--text-muted);
}

body.dark-mode .spreadsheet-header-menu {
    background: rgba(15, 23, 42, 1);
    background-color: rgba(15, 23, 42, 1);
    border-color: rgba(148, 163, 184, 0.22);
}

body.dark-mode .spreadsheet-header-menu-action,
body.dark-mode .spreadsheet-header-filter-input {
    background: rgba(30, 41, 59, 1);
    background-color: rgba(30, 41, 59, 1);
    border-color: rgba(148, 163, 184, 0.24);
}

body.dark-mode .spreadsheet-edit-table .row-handle-cell {
    background: rgba(15, 23, 42, 0.98);
}

body.dark-mode .spreadsheet-cell-display {
    color: var(--text);
}

body.dark-mode .top-menu-bar {
    background: linear-gradient(135deg, var(--card-strong) 0%, var(--card) 100%);
    background-color: var(--card);
    border-color: var(--glass-border);
    box-shadow: var(--shadow);
}

body.dark-mode .top-menu-bar::before {
    display: none;
}

body.dark-mode .top-menu-brand,
body.dark-mode .top-menu-link,
body.dark-mode .top-menu-toggle,
body.dark-mode .top-menu-dropdown-link,
body.dark-mode .user-toggle,
body.dark-mode .user-menu a,
body.dark-mode .menu-button,
body.dark-mode .sidebar-toggle {
    color: var(--text);
}

body.dark-mode .top-menu-brand {
    text-shadow: none;
}

body.dark-mode .top-menu-link {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

body.dark-mode .top-menu-link:hover,
body.dark-mode .top-menu-link.active,
body.dark-mode .top-menu-link[aria-expanded="true"],
body.dark-mode .top-menu-item:hover > .top-menu-link,
body.dark-mode .top-menu-item:focus-within > .top-menu-link {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--primary);
}

body.dark-mode .user-toggle {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.dark-mode .sidebar-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .top-menu-dropdown,
body.dark-mode .user-menu {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(17, 24, 39, 0.78) 100%);
    background-color: rgba(15, 23, 42, 0.82);
    border-color: var(--glass-border);
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.4), var(--shadow);
    -webkit-backdrop-filter: blur(40px) saturate(170%);
    backdrop-filter: blur(40px) saturate(170%);
}

body.dark-mode .top-menu-dropdown-title {
    color: var(--muted);
}

body.dark-mode .theme-option-card-body {
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
}

body.dark-mode .profile-avatar-preview-card {
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
}

body.dark-mode .profile-log-badge-action {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.22);
}

body.dark-mode .profile-log-badge-success {
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.22);
}

body.dark-mode .profile-log-badge-danger {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.22);
}

body.dark-mode .profile-log-badge-neutral,
body.dark-mode .profile-log-badge-subject {
    color: #cbd5e1;
    border-color: rgba(203, 213, 225, 0.18);
}

body.dark-mode .top-menu-dropdown-link:hover,
body.dark-mode .top-menu-dropdown-link.active,
body.dark-mode .user-menu a:hover,
body.dark-mode .menu-button:hover,
body.dark-mode .dropdown-panel a:hover {
    background: color-mix(in srgb, var(--accent) 18%, var(--glass-panel));
}

body.dark-mode .dropdown-panel .is-disabled {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

body.dark-mode .flash.success {
    background: rgba(22, 101, 52, 0.18);
    color: #b7f7cb;
    border-color: rgba(22, 101, 52, 0.35);
}

body.dark-mode .flash.error {
    background: rgba(153, 27, 27, 0.22);
    color: #ffcccc;
    border-color: rgba(254, 202, 202, 0.22);
}

body.dark-mode .tips-card {
    background: linear-gradient(135deg, var(--card-strong), var(--card));
    border-color: var(--glass-border);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(24px) saturate(145%);
}

body.dark-mode .tips-card .flow-card {
    background: var(--glass-panel-strong);
    box-shadow: var(--shadow);
    border-color: var(--glass-border);
    backdrop-filter: blur(20px) saturate(140%);
}

body.dark-mode .tab-count {
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

body.dark-mode .btn-secondary:hover {
    background: color-mix(in srgb, var(--accent) 16%, var(--glass-panel-strong));
    border-color: color-mix(in srgb, var(--accent) 28%, var(--glass-border));
}

body.dark-mode .btn-success:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

body.dark-mode .btn-danger:hover {
    background: #f06a67;
    border-color: #f06a67;
}

body.dark-mode .toggle-slider {
    background: color-mix(in srgb, var(--muted) 18%, var(--glass-panel-strong));
}

body.side-navigation.sidebar-collapsed .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
}

body.side-navigation.sidebar-collapsed .brand-text,
body.side-navigation.sidebar-collapsed .user-name {
    display: none;
}

body.side-navigation.sidebar-collapsed .nav-label {
    display: none;
}

body.side-navigation.sidebar-collapsed .side-menu {
    padding-left: 10px;
    padding-right: 10px;
}

body.side-navigation.sidebar-collapsed .side-menu-brand {
    justify-content: center;
}

body.side-navigation.sidebar-collapsed .side-menu-header {
    grid-template-columns: 1fr;
}

body.side-navigation.sidebar-collapsed .side-menu-collapse-toggle {
    justify-self: center;
}

body.side-navigation.sidebar-collapsed .side-menu-link,
body.side-navigation.sidebar-collapsed .side-menu-sublink,
body.side-navigation.sidebar-collapsed .side-menu-userbar .user-toggle {
    justify-content: center;
}

body.side-navigation.sidebar-collapsed .nav-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

body.side-navigation.sidebar-collapsed .nav-icon svg {
    width: 20px;
    height: 20px;
}

body.side-navigation.sidebar-collapsed .side-menu-subnav {
    margin-left: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.modal-header,
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mapping-template-inline {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
}

.mapping-template-inline .input {
    width: auto;
    min-width: 0;
    flex: 1 1 280px;
}

.mapping-template-inline .btn-secondary {
    flex: 0 0 auto;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-actions {
    margin-top: 8px;
}

.import-action-card .modal-actions {
    margin-top: 0;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    box-shadow: 0 12px 22px rgba(198, 40, 40, 0.24);
}

.icon-button:hover {
    background: #d43a3a;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.docs-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.docs-search-input {
    flex: 1 1 360px;
}

.docs-search-meta,
.docs-answer-header,
.docs-topic-card-header,
.docs-topic-card-actions,
.docs-keyword-row,
.docs-faq-item {
    display: flex;
    gap: 12px;
}

.docs-answer-header,
.docs-topic-card-actions {
    align-items: center;
    justify-content: space-between;
}

.docs-topic-card-header,
.docs-faq-item {
    flex-direction: column;
}

.docs-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.docs-topic-card,
.docs-topic-hero,
.docs-answer-panel {
    min-width: 0;
}

.docs-quick-answer {
    font-weight: 600;
    color: #1f2937;
}

.docs-issue-list,
.docs-step-list {
    margin: 0;
    padding-left: 20px;
}

.docs-keyword-row {
    flex-wrap: wrap;
}

.docs-keyword {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.docs-answer-kicker {
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.docs-detail-copy p {
    margin: 0 0 12px;
}

.docs-faq-list {
    display: grid;
    gap: 16px;
}

.docs-faq-item h3,
.docs-topic-card .section-title {
    margin: 0;
}

.docs-faq-item p {
    margin: 0;
    color: #4b5563;
}

body.dark-mode .docs-quick-answer {
    color: #f3f4f6;
}

body.dark-mode .docs-keyword {
    background: #374151;
    color: #f9fafb;
}

body.dark-mode .global-blacklist-value-item {
    background: linear-gradient(135deg, var(--glass-panel-strong), var(--glass-panel));
    border-color: var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .docs-faq-item p {
    color: #d1d5db;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-success:hover,
    .btn-danger:hover,
    .icon-button:hover,
    .docs-keyword:hover,
    .top-menu-link:hover,
    .top-menu-link[aria-expanded="true"],
    .user-toggle:hover,
    .dashboard-action-tile:hover,
    .dashboard-work-item:hover,
    .dashboard-chip:hover,
    .theme-option-card:hover .theme-option-card-body {
        transform: none;
    }
}

@media (max-width: 960px) {
    body.side-navigation .app-shell {
        display: flex;
        flex-direction: column;
    }

    body.side-navigation .side-menu {
        display: none;
    }

    body.side-navigation .top-menu.is-hidden-for-side-navigation {
        display: block;
    }

    body.side-navigation .content {
        width: min(1440px, calc(100% - 16px));
        margin: 0 auto;
        order: 1;
    }

    .app-shell,
    .two-column {
        grid-template-columns: 1fr;
    }

    .dashboard-overview-grid,
    .dashboard-flow-grid,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .docs-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-menu {
        height: auto;
    }

    .top-menu-bar {
        height: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: min(100%, calc(100% - 8px));
        padding: 14px 18px;
    }

    .top-menu-brand,
    .top-menu-userbar {
        flex: 0 0 auto;
    }

    .top-menu-nav {
        width: 100%;
        max-width: none;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin: 0;
    }

    .top-menu-dropdown {
        left: 0;
        right: auto;
        min-width: min(280px, calc(100vw - 36px));
    }

    .top-menu-userbar {
        margin-left: auto;
    }

    .global-blacklist-setup {
        grid-template-columns: 1fr;
    }

    .sidebar {
        gap: 18px;
    }

    .content {
        padding: 18px;
    }

    .page-header,
    .workspace-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-page-actions,
    .workspace-section-actions,
    .workspace-action-cluster {
        width: 100%;
        justify-content: flex-start;
    }

    .workspace-overview-grid,
    .workspace-guide-grid {
        grid-template-columns: 1fr;
    }

    .table-tools {
        align-items: stretch;
    }

    .workspace-toolbar-copy {
        flex-basis: 100%;
    }

    .dashboard-hero-grid,
    .dashboard-hero-step-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-work-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-work-meta {
        text-align: left;
    }

    .profile-summary-meta {
        grid-template-columns: 1fr;
    }

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

    .profile-form-topbar {
        align-items: flex-start;
    }

    .dashboard-help-search {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .docs-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-action-tile,
    .dashboard-work-item {
        padding: 14px;
    }

    .tab-links {
        flex-wrap: wrap;
    }

    .workspace-name-meta {
        flex-direction: column;
        gap: 4px;
    }

    .dashboard-chip-list {
        gap: 8px;
    }

    .dashboard-chip {
        width: 100%;
        justify-content: center;
    }

    .profile-avatar-preview-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

:root {
    --ui-solid-surface: #f3f7ff;
    --ui-solid-surface-strong: #ffffff;
    --ui-solid-border: #d8e1f0;
}

body.dark-mode,
body.theme-5 {
    --ui-solid-surface: #0f172a;
    --ui-solid-surface-strong: #111c33;
    --ui-solid-border: #22314c;
}

.card,
.dropdown-panel,
.top-menu,
.side-menu,
.table-wrap,
.workspace-overview-card {
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.card,
.workspace-overview-card {
    background: var(--ui-solid-surface);
    border-color: var(--ui-solid-border);
}

.card .card {
    border: 1px solid var(--ui-solid-border) !important;
}

.dropdown-panel {
    background: var(--ui-solid-surface-strong);
    border-color: var(--ui-solid-border);
}

.table-wrap {
    background: var(--ui-solid-surface-strong);
    border-color: var(--ui-solid-border);
}

.topbar-row {
    background: var(--ui-solid-surface-strong) !important;
    backdrop-filter: none !important;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-disabled,
.input,
.textarea,
select.input,
.pagination-link,
.pagination-button,
.icon-button,
.sidebar-toggle,
.avatar {
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.input,
.textarea,
select.input {
    border: 1px solid var(--ui-solid-border);
    background: var(--ui-solid-surface-strong);
    box-shadow: none;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    border-color: var(--primary-hover);
}

.btn-secondary,
.btn-danger,
.btn-disabled {
    background: var(--ui-solid-surface-strong);
    border-color: var(--ui-solid-border);
}

.btn-secondary:hover,
.btn-danger:hover,
.btn-disabled:hover {
    background: var(--ui-solid-surface);
    border-color: var(--ui-solid-border);
}
