/**
 * CollabCentr Shared Design Tokens & Core Component Styles
 * File: assets/aesthetics/collabcentr-tokens.css
 *
 * Bridges both variable conventions used across the codebase (--cc-* and --orange/--green)
 * and standardizes typography, focus states, buttons, inputs, cards, signature, and toasts.
 */

:root, [data-theme="light"] {
    /* Primary Brand Identity */
    --cc-orange: #ff9900;
    --cc-orange-hover: #e68a00;
    --cc-green: #009900;
    --cc-green-hover: #007a00;

    /* Aliases for pages using short token names (index, Land, Profyl) */
    --orange: var(--cc-orange);
    --orange-deep: var(--cc-orange-hover);
    --orange-dark: var(--cc-orange-hover);
    --green: var(--cc-green);
    --green-bright: #11a811;

    /* Surfaces & Typography Colors */
    --cc-ink: #171b20;
    --cc-muted: #6b7280;
    --cc-paper: #f8f7f1;
    --cc-surface: #ffffff;
    --cc-surface-hover: #f3f4f6;
    --cc-line: #e5e7eb;
    --cc-panel: #fffef9;

    --ink: var(--cc-ink);
    --muted: var(--cc-muted);
    --paper: var(--cc-paper);
    --surface: var(--cc-surface);
    --line: var(--cc-line);
    --panel: var(--cc-panel);

    /* Component Geometry */
    --cc-button-radius: 14px;
    --cc-card-radius: 16px;
    --cc-input-radius: 14px;
    --radius: 26px;

    /* Font Stacks */
    --cc-font-brand: 'Fredoka', sans-serif;
    --cc-font-sans: 'Quicksand', sans-serif;

    color-scheme: light;
}

[data-theme="dark"], html.dark {
    /* Surfaces & Typography Colors for Dark Mode */
    --cc-ink: #f4f4ee;
    --cc-muted: #9ca3af;
    --cc-paper: #101310;
    --cc-surface: #1a1e19;
    --cc-surface-hover: #232922;
    --cc-line: #30362e;
    --cc-panel: #161915;

    --ink: var(--cc-ink);
    --muted: var(--cc-muted);
    --paper: var(--cc-paper);
    --surface: var(--cc-surface);
    --line: var(--cc-line);
    --panel: var(--cc-panel);

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--cc-font-sans);
    background-color: var(--cc-paper);
    color: var(--cc-ink);
    transition: background-color .2s ease, color .2s ease;
}

h1, h2, h3, .font-brand, .logo-text, .brand-word, .brand-name {
    font-family: var(--cc-font-brand);
}

button, input, select, textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 153, 0, .28);
    outline-offset: 3px;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Consistent button, input and card geometry */
.cc-button {
    min-height: 48px;
    border-radius: var(--cc-button-radius) !important;
    touch-action: manipulation;
    transition: background-color .2s ease, color .2s ease,
                box-shadow .2s ease, transform .15s ease;
}

.cc-button:active:not(:disabled) {
    transform: scale(.985);
}

.cc-button:disabled {
    cursor: not-allowed;
}

.cc-input {
    width: 100%;
    min-width: 0;
    border-radius: var(--cc-input-radius) !important;
}

.talent-card {
    min-width: 0;
    min-height: 58px;
    border-radius: var(--cc-card-radius) !important;
    overflow-wrap: anywhere;
    transition: border-color .2s ease, background-color .2s ease,
                color .2s ease, box-shadow .2s ease, transform .15s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.talent-card:active {
    transform: scale(.98);
}

.talent-card.selected-identity {
    border-color: var(--cc-green);
    background: #f0fdf4;
    color: var(--cc-green);
    box-shadow: 0 4px 14px rgba(0, 153, 0, .13);
}

.talent-card.selected-talent {
    border-color: var(--cc-orange);
    background: #fff7ed;
    color: #a96500;
    box-shadow: 0 4px 14px rgba(255, 153, 0, .14);
}

.bg-pattern,
.bg-orange-pattern {
    background-color: var(--cc-orange);
    background-image: url("https://www.transparenttextures.com/patterns/handmade-paper.png");
}

/* CollabCentr signature accent */
.cc-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
    color: #6b7280;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .015em;
}

.cc-signature-mark {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transform: rotate(-12deg);
}

.cc-signature-mark span {
    display: block;
    width: 7px;
    height: 18px;
    border-radius: 99px;
}

.cc-signature-mark span:first-child {
    background: var(--cc-orange);
}

.cc-signature-mark span:last-child {
    background: var(--cc-green);
    height: 13px;
}

.cc-signature-line {
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cc-orange), var(--cc-green));
}

/* Toast notifications */
#toast-container {
    position: fixed;
    top: calc(var(--nav-h, 64px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(92vw, 420px);
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--cc-surface, #ffffff);
    color: var(--cc-ink, #171b20);
    border: 1px solid var(--cc-line, #e5e7eb);
    border-left: 4px solid var(--cc-orange, #ff9900);
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    animation: toastIn .25s ease both;
}

[data-theme="dark"] .toast,
html.dark .toast {
    background: #1a1e19;
    color: #f4f4ee;
    border-color: #30362e;
    border-left-color: var(--cc-orange, #ff9900);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.toast.toast-success {
    border-left-color: var(--cc-green, #009900);
}
.toast.toast-error {
    border-left-color: #ef4444;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Notification Drawer & Positioning (Desktop Default) */
#notifDropdown, .notif-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 380px !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;
}
#notifList {
    max-height: 400px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Mobile & Tablet Notification Positioning (<= 768px) */
@media (max-width: 768px) {
    #toast-container {
        top: calc(var(--nav-h, 60px) + 8px);
        width: calc(100vw - 24px);
    }
    .toast {
        padding: 10px 14px;
        font-size: 12px;
    }
    #notifDropdown, .notif-dropdown {
        position: fixed !important;
        top: calc(var(--nav-h, 64px) + 8px) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - var(--nav-h, 64px) - 24px) !important;
        z-index: 999999 !important;
        border-radius: 18px !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32) !important;
    }
    #notifList {
        max-height: calc(100dvh - var(--nav-h, 64px) - 150px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Belong onboarding shell & responsive layout rules */
body.belong-page {
    overflow: hidden;
    background: #f3f4f6;
}

.app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

.app-main {
    min-width: 0;
    min-height: 0;
}

.main-scroll-area {
    min-height: 0;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 1rem;
}

.step-container {
    display: none;
}

.step-container.active {
    display: flex;
    flex-direction: column;
    animation: stepIn .24s ease both;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

#bottom-nav {
    position: relative;
    flex: 0 0 auto;
    padding-top: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

#btn-back,
#btn-doorin {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 639px) {
    .mobile-header {
        min-height: 60px;
        padding-top: max(.75rem, env(safe-area-inset-top, 0px));
    }

    .main-scroll-area {
        padding: 1.15rem 1rem 1.5rem;
    }

    .step-heading {
        margin-bottom: 1.35rem;
    }

    .step-heading h2 {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
        line-height: 1.13;
    }

    .step-heading p {
        font-size: .92rem;
        line-height: 1.5;
    }

    .search-input {
        min-height: 48px;
        padding-top: .8rem;
        padding-bottom: .8rem;
    }

    .talent-card {
        padding: .85rem .55rem;
        font-size: .84rem;
        line-height: 1.25;
    }

    #bottom-nav {
        gap: .6rem;
        padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    }

    #btn-continue {
        min-height: 48px;
        padding: .8rem 1rem;
        font-size: .98rem;
        gap: .5rem;
    }

    #btn-back {
        min-height: 48px;
        padding: .75rem .8rem;
        font-size: .9rem;
        gap: .4rem;
    }

    #btn-doorin {
        min-height: 48px;
        padding: .75rem .7rem;
        font-size: .86rem;
        gap: .4rem;
    }

    .details-title {
        margin-bottom: 1.5rem;
    }

    .details-title .title-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: .75rem;
    }

    .details-form {
        gap: 1.2rem;
    }

    .details-field input {
        min-height: 50px;
        padding-top: .8rem;
        padding-bottom: .8rem;
    }

    .cc-signature {
        font-size: .74rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .main-scroll-area {
        padding: 2rem;
    }

    #bottom-nav {
        padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-height: 620px) and (max-width: 767px) {
    .mobile-header {
        min-height: 52px;
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    .main-scroll-area {
        padding-top: .9rem;
    }

    .step-heading {
        margin-bottom: 1rem;
    }

    .step-heading h2 {
        font-size: 1.65rem;
    }

    #bottom-nav {
        padding-top: .55rem;
    }
}

/* ==========================================================================
   Shared Navigation Component Tokens & Styles (Original App-Like Architecture)
   ========================================================================== */
:root {
    --nav-h: 76px;
}

.topbar, .cc-topbar {
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 229, 221, 0.8);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .topbar,
[data-theme="dark"] .cc-topbar,
html.dark .topbar,
html.dark .cc-topbar {
    background: rgba(18, 21, 18, 0.94);
    border-color: #30362e;
}

.topbar-inner, .cc-topbar-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 1050px) {
    .topbar-inner, .cc-topbar-inner {
        padding: 0 22px;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-h: 64px;
    }
    .topbar, .cc-topbar {
        background: rgba(255, 253, 250, 0.95);
    }
    .topbar-inner, .cc-topbar-inner {
        padding: 0 17px;
    }
}

.brand, .cc-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: max-content;
    flex-shrink: 0;
}

.brand img, .cc-brand-logo img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

@media (max-width: 760px) {
    .brand img, .cc-brand-logo img {
        width: 32px;
        height: 32px;
    }
}

.brand-word, .cc-brand-name {
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 23px;
    letter-spacing: -0.5px;
    color: var(--ink);
}

.brand-word .brand-orange, .cc-brand-name .orange {
    color: var(--orange);
}

.brand-word .brand-green, .brand-word span, .cc-brand-name .green {
    color: var(--green);
}

[data-theme="dark"] .brand-word,
html.dark .brand-word {
    color: #f4f4ee;
}

@media (max-width: 760px) {
    .brand-word, .cc-brand-name {
        font-size: 19px;
    }
}

.topnav, .cc-desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1050px) {
    .topnav, .cc-desktop-nav {
        gap: 2px;
    }
}

@media (max-width: 760px) {
    .topnav, .cc-desktop-nav {
        display: none !important;
    }
}

.nav-link, .cc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    color: #595d54;
    text-decoration: none;
    transition: 0.18s ease;
}

.nav-link:hover, .cc-nav-link:hover {
    background: #fff0d8;
    color: #171914;
}

.nav-link.active, .cc-nav-link.active {
    background: #fff0d8;
    color: #171914;
    box-shadow: inset 0 0 0 1px #ffdaa0;
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .cc-nav-link,
html.dark .nav-link,
html.dark .cc-nav-link {
    color: #b4bbae;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .cc-nav-link:hover,
html.dark .nav-link:hover,
html.dark .cc-nav-link:hover {
    background: #2a3028;
    color: #ffffff;
}

[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .cc-nav-link.active,
html.dark .nav-link.active,
html.dark .cc-nav-link.active {
    background: #3a2d1b;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px #805b22;
}

.top-actions, .cc-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 760px) {
    .top-actions, .cc-top-actions {
        gap: 8px;
    }
}

.icon-btn, .cc-theme-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    display: grid;
    place-items: center;
    color: var(--ink);
    cursor: pointer;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.icon-btn:hover, .cc-theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hard-shadow, 3px 3px 0 rgba(25,27,24,.12));
}

[data-theme="dark"] .icon-btn,
[data-theme="dark"] .cc-theme-btn,
html.dark .icon-btn,
html.dark .cc-theme-btn {
    background: #1a1e19;
    color: #f4f4ee;
    border-color: #343a32;
}

.avatar, .cc-avatar-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 2px 2px 0 var(--ink);
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img, .cc-avatar-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
}

[data-theme="dark"] .avatar,
[data-theme="dark"] .cc-avatar-badge,
html.dark .avatar,
html.dark .cc-avatar-badge {
    border-color: #343a32;
    box-shadow: 2px 2px 0 #000;
}

@media (max-width: 760px) {
    .icon-btn, .cc-theme-btn {
        width: 36px;
        height: 36px;
    }
    .avatar, .cc-avatar-badge {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Standardized Citizen Avatars (Strict Dimensions & Containment - Directive CC-DEF-VIS-002) */
.cc-avatar {
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cc-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Mobile Bottom Navigation Bar (Glassmorphism 6 Tabs) */
.mobile-nav, .cc-mobile-nav {
    display: none;
}

@media (max-width: 760px) {
    .mobile-nav, .cc-mobile-nav {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2px;
        max-width: 480px;
        left: 10px;
        right: 10px;
        margin-left: auto;
        margin-right: auto;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 60;
        padding: 6px 4px;
        background: var(--nav-bg, rgba(255, 255, 255, 0.96));
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid var(--line, #e5e1d7);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(30, 30, 20, 0.16);
    }
}

[data-theme="dark"] .mobile-nav,
[data-theme="dark"] .cc-mobile-nav,
html.dark .mobile-nav,
html.dark .cc-mobile-nav {
    background: rgba(26, 30, 25, 0.96);
    border-color: #343a32;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.mobile-nav a, .cc-mobile-nav-item, .cc-mobile-nav a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 12px;
    padding: 5px 2px;
    color: var(--muted, #77796f);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.15s ease;
}

.mobile-nav a span, .cc-mobile-nav-item span, .cc-mobile-nav a span {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-nav a i, .cc-mobile-nav-item i, .cc-mobile-nav a i {
    font-size: 15px;
    margin-bottom: 1px;
}

.mobile-nav a:hover,
.mobile-nav a.active,
.cc-mobile-nav-item:hover,
.cc-mobile-nav-item.active,
.cc-mobile-nav a.active {
    background: #fff0d8;
    color: #171914;
}

.mobile-nav a.active i,
.cc-mobile-nav-item.active i,
.cc-mobile-nav a.active i {
    color: var(--green);
}

[data-theme="dark"] .mobile-nav a,
[data-theme="dark"] .cc-mobile-nav-item,
[data-theme="dark"] .cc-mobile-nav a,
html.dark .mobile-nav a,
html.dark .cc-mobile-nav-item,
html.dark .cc-mobile-nav a {
    color: #b4bbae;
}

[data-theme="dark"] .mobile-nav a.active,
[data-theme="dark"] .cc-mobile-nav-item.active,
[data-theme="dark"] .cc-mobile-nav a.active,
html.dark .mobile-nav a.active,
html.dark .cc-mobile-nav-item.active,
html.dark .cc-mobile-nav a.active {
    background: #3a2d1b;
    color: #ffffff;
}

[data-theme="dark"] .mobile-nav a.active i,
[data-theme="dark"] .cc-mobile-nav-item.active i,
[data-theme="dark"] .cc-mobile-nav a.active i,
html.dark .mobile-nav a.active i,
html.dark .cc-mobile-nav-item.active i,
html.dark .cc-mobile-nav a.active i {
    color: #79f582;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* ==========================================================================
   Comprehensive Global Theme System (Surfaces, Inputs, Modals, Tables)
   ========================================================================== */

/* Dark Theme Overrides for Core Surfaces */
[data-theme="dark"] body,
html.dark body {
    background-color: var(--cc-paper, #101310);
    color: var(--cc-ink, #f4f4ee);
}

[data-theme="dark"] .card:not(.map-card):not(.quote-card),
[data-theme="dark"] .panel,
[data-theme="dark"] .section-card,
[data-theme="dark"] .workspace-card,
[data-theme="dark"] .identity-card,
[data-theme="dark"] .journey-item,
[data-theme="dark"] .chore-card,
[data-theme="dark"] .modal-card,
html.dark .card:not(.map-card):not(.quote-card),
html.dark .panel,
html.dark .section-card,
html.dark .workspace-card,
html.dark .identity-card,
html.dark .journey-item,
html.dark .chore-card,
html.dark .modal-card {
    background-color: var(--cc-surface, #1a1e19);
    border-color: var(--cc-line, #30362e);
    color: var(--cc-ink, #f4f4ee);
}

/* Dark Theme Inputs & Form Controls */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .search,
[data-theme="dark"] .custom-input,
[data-theme="dark"] .field-input,
[data-theme="dark"] .field-textarea,
html.dark input[type="text"],
html.dark input[type="password"],
html.dark input[type="email"],
html.dark input[type="search"],
html.dark input[type="date"],
html.dark input[type="number"],
html.dark input[type="url"],
html.dark textarea,
html.dark select,
html.dark .search,
html.dark .custom-input,
html.dark .field-input,
html.dark .field-textarea {
    background-color: #141713 !important;
    border-color: #30362e !important;
    color: #f4f4ee !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
    border-color: var(--cc-orange, #ff9900) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.18) !important;
}

/* Dark Theme Secondary Buttons */
[data-theme="dark"] .secondary-btn,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .back,
html.dark .secondary-btn,
html.dark .btn-secondary,
html.dark .back {
    background-color: #1a1e19;
    border-color: #30362e;
    color: #f4f4ee;
}

[data-theme="dark"] .secondary-btn:hover,
[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] .back:hover,
html.dark .secondary-btn:hover,
html.dark .btn-secondary:hover,
html.dark .back:hover {
    border-color: var(--cc-orange, #ff9900);
    color: #ffffff;
}

/* Dark Theme Chips, Badges & Interactive Pills */
[data-theme="dark"] .cat,
[data-theme="dark"] .talent-option,
[data-theme="dark"] .skill-pill,
[data-theme="dark"] .role-chip,
[data-theme="dark"] .tag-pill,
[data-theme="dark"] .meta-pill,
html.dark .cat,
html.dark .talent-option,
html.dark .skill-pill,
html.dark .role-chip,
html.dark .tag-pill,
html.dark .meta-pill {
    background-color: #20261f;
    border-color: #30362e;
    color: #f4f4ee;
}

[data-theme="dark"] .talent-option:hover,
html.dark .talent-option:hover {
    background-color: #2d2616;
    border-color: var(--cc-orange, #ff9900);
}

[data-theme="dark"] .talent-option.selected,
html.dark .talent-option.selected {
    background-color: #162e18;
    border-color: #2f7a34;
    color: #85e88b;
}

/* Dark Theme Hero Banners */
[data-theme="dark"] .hero,
html.dark .hero {
    background: linear-gradient(120deg, #2b2214, #182618) !important;
    border-color: #3f3525 !important;
    color: #f4f4ee;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p,
html.dark .hero h1,
html.dark .hero p {
    color: #f4f4ee !important;
}

/* Dark Theme Action Cards & Highlights */
[data-theme="dark"] .action-card,
html.dark .action-card {
    background: linear-gradient(135deg, #352b1b, #1a1e19 75%) !important;
    border-color: #55432a !important;
}

[data-theme="dark"] .action-card p,
html.dark .action-card p {
    color: #c6c1b5 !important;
}

/* Dark Theme Text Colors */
[data-theme="dark"] .text-muted,
[data-theme="dark"] .welcome-copy,
[data-theme="dark"] .card-subtitle,
[data-theme="dark"] .panel-desc,
[data-theme="dark"] .eyebrow,
html.dark .text-muted,
html.dark .welcome-copy,
html.dark .card-subtitle,
html.dark .panel-desc,
html.dark .eyebrow {
    color: #b4bbae;
}

[data-theme="dark"] .welcome-copy strong,
[data-theme="dark"] .identity-meta strong,
[data-theme="dark"] .journey-copy strong,
html.dark .welcome-copy strong,
html.dark .identity-meta strong,
html.dark .journey-copy strong {
    color: #f4f4ee;
}

/* Light Theme Definite Overrides (Prevents Dark Bleed into Light Mode) */
html:not([data-theme="dark"]):not(.dark) body {
    background-color: var(--paper, #fffdfa);
    color: var(--ink, #191b18);
}

html:not([data-theme="dark"]):not(.dark) .card:not(.map-card):not(.quote-card),
html:not([data-theme="dark"]):not(.dark) .panel,
html:not([data-theme="dark"]):not(.dark) .section-card,
html:not([data-theme="dark"]):not(.dark) .workspace-card,
html:not([data-theme="dark"]):not(.dark) .identity-card,
html:not([data-theme="dark"]):not(.dark) .journey-item,
html:not([data-theme="dark"]):not(.dark) .chore-card,
html:not([data-theme="dark"]):not(.dark) .modal-card {
    background-color: var(--surface, #ffffff);
    border-color: var(--line, #e8e5dd);
    color: var(--ink, #191b18);
}

/* Custom Taxonomy SVG Icons (matches FontAwesome alignment & scaling) */
.card-item-icon.cc-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.card-item-icon.cc-svg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

