        :root {
            --bg-color: #3d454d;
            --card-bg: #ffffff;
            --primary: #00796b;
            --primary-light: #e0f2f1;
            --secondary: #1565c0;
            --accent: #ff8f00;
            --text-main: #212121;
            --text-muted: #616161;
            --border: #e0e0e0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .page-footer-logo { display: block; width: 100px; height: auto; margin: 28px auto 4px auto; opacity: 1; }

        .container {
            width: 100%;
            max-width: 1120px;
            background: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            padding: 30px;
        }

        header {
            text-align: center;
            border-bottom: 2px solid var(--border);
            padding-bottom: 20px;
            margin-bottom: 25px;
        }

        h1 { margin: 0 0 10px 0; color: var(--primary); }
        p.subtitle { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

        /* Landing gate (signed out) */
        #landing-gate { text-align: center; padding: 50px 20px; }
        .landing-hero h2 { color: var(--primary); margin-bottom: 12px; }
        .landing-hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto 22px auto; line-height: 1.5; }
        .landing-logo { display: block; width: 200px; height: auto; margin: 24px auto 0 auto; }

        /* Step sidebar navigation */
        .page-shell { display: flex; align-items: flex-start; gap: 28px; }

        .step-sidebar {
            width: 250px;
            flex-shrink: 0;
            position: sticky;
            top: 20px;
        }

        .main-col { flex: 1; min-width: 0; }

        .step-nav {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: 16px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }
        .step-nav-extra { margin-top: -8px; border-bottom: none; padding-bottom: 0; }
        .step-nav-extra .step-num { background: none; font-size: 0.95rem; }

        .tab-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            text-align: left;
            padding: 10px 12px;
            border: none;
            border-left: 3px solid transparent;
            border-radius: 0 8px 8px 0;
            background: none;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            text-decoration: none;
            box-sizing: border-box;
        }

        .tab-btn:hover { background: var(--primary-light); }

        .tab-btn.active {
            color: var(--primary);
            background: var(--primary-light);
            border-left-color: var(--primary);
        }

        .step-num {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #e0e0e0;
            color: var(--text-muted);
            font-size: 0.72rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .tab-btn.active .step-num { background: var(--primary); color: white; }

        .step-label { flex: 1; line-height: 1.25; }

        .step-status { flex-shrink: 0; font-size: 0.9rem; line-height: 1; }
        .step-status.step-done { color: var(--primary); }
        .step-status.step-locked { font-size: 0.8rem; opacity: 0.55; }
        .step-status.step-pct { font-size: 0.68rem; font-weight: 700; color: var(--secondary); }

        .tab-content { display: none; }
        .tab-content.active { display: block; }

        @media (max-width: 780px) {
            .page-shell { flex-direction: column; }
            .step-sidebar { width: 100%; position: static; }
            .step-nav {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 6px;
                border-bottom: none;
                padding-bottom: 4px;
            }
            .tab-btn {
                width: auto;
                border-left: none;
                border-bottom: 3px solid transparent;
                border-radius: 6px 6px 0 0;
            }
            .tab-btn.active { border-left-color: transparent; border-bottom-color: var(--primary); }
        }

        /* Form Controls & Layout */
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 650px) {
            .grid-2 { grid-template-columns: 1fr; }
        }

        .card {
            background: #fafafa;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .card h3 { margin-top: 0; color: var(--secondary); }

        label {
            display: block;
            margin-top: 12px;
            font-weight: 600;
            font-size: 0.9rem;
        }

        input, select, textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border: 1px solid var(--border);
            border-radius: 6px;
            box-sizing: border-box;
            font-size: 0.95rem;
        }

        input[type="range"] {
            padding: 0;
            border: none;
            margin-top: 10px;
            accent-color: var(--primary);
            cursor: pointer;
        }

        button.action-btn {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 12px 24px;
            font-size: 1rem;
            border-radius: 6px;
            cursor: pointer;
            margin-top: 15px;
            font-weight: bold;
        }

        button.action-btn:hover { background-color: #0d47a1; }
        button.action-btn.secondary-btn { background-color: var(--secondary); }
        button.action-btn.secondary-btn:hover { background-color: #0d47a1; }

        /* Progress Bar (CSP) */
        .progress-bar-container {
            height: 24px;
            background: #e0e0e0;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            margin: 15px 0;
        }

        .progress-segment {
            height: 100%;
            text-align: center;
            color: white;
            font-size: 0.75rem;
            line-height: 24px;
            font-weight: bold;
            transition: width 0.3s ease;
        }

        .seg-fixed { background: #d32f2f; }
        .seg-invest { background: #1976d2; }
        .seg-savings { background: #00796b; }
        .seg-guiltfree { background: #388e3c; }

        .legend {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            font-size: 0.85rem;
            margin-bottom: 15px;
        }

        .legend-item { display: flex; align-items: center; gap: 5px; }
        .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 2px; margin-top: -2px; }

        .summary-box {
            background: var(--primary-light);
            border-left: 4px solid var(--primary);
            padding: 15px;
            margin-top: 20px;
            border-radius: 4px;
        }

        /* Profile Strength meter */
        .profile-strength-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
        .profile-strength-header h3 { margin: 0; }
        .profile-strength-pct-badge { font-weight: bold; color: var(--primary); font-size: 1.1rem; }
        .profile-strength-bar-container { height: 14px; background: #e0e0e0; border-radius: 7px; overflow: hidden; margin: 10px 0; }
        .profile-strength-bar {
            height: 100%; width: 0%; background: linear-gradient(90deg, var(--secondary), var(--primary));
            border-radius: 7px; transition: width 0.4s ease;
        }
        .profile-strength-checklist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
        .strength-chip {
            font-size: 0.78rem; padding: 3px 9px; border-radius: 12px;
            background: #eeeeee; color: var(--text-muted); border: 1px solid var(--border);
        }
        .strength-chip.done { background: var(--primary-light); color: var(--primary); border-color: var(--primary); font-weight: 600; }
        .profile-strength-msg { font-size: 0.85rem; color: var(--text-muted); margin: 8px 0 0 0; }
        #archetype-suggest-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
        #archetype-suggest-wrap .action-btn { margin-top: 0; padding: 9px 16px; font-size: 0.85rem; }
        #archetype-suggest-result { margin-top: 12px; }
        #archetype-suggest-result .archetype-suggest-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
        #archetype-suggest-result .archetype-suggest-actions .action-btn { margin-top: 0; }

        /* Financial Personality banner, shown at the top of every signed-in page */
        .archetype-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: var(--primary-light);
            border: 1px solid var(--primary);
            border-radius: 8px;
            padding: 10px 16px;
            margin-bottom: 15px;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--primary);
        }
        .archetype-banner-link {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--secondary);
            text-decoration: none;
            flex-shrink: 0;
        }
        .archetype-banner-link:hover { text-decoration: underline; }

        /* Shown at the top of the Household page once a partner is verified-connected */
        .partner-confirmed-banner {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--primary-light);
            border: 1px solid var(--primary);
            border-radius: 8px;
            padding: 10px 16px;
            margin-bottom: 15px;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--primary);
        }

        /* Top-of-page Previous/Next step nav */
        .page-step-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        .page-step-nav:empty { display: none; margin-bottom: 0; }
        .page-step-nav .action-btn { margin-top: 0; text-decoration: none; display: inline-block; text-align: center; }
        .page-step-nav .page-step-next { margin-left: auto; }

        /* Auth bar */
        #auth-bar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }
        #sign-in-btn {
            background-color: var(--secondary);
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 0.9rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
        }
        #user-button { display: none; }
        .support-link {
            display: none;
            color: var(--secondary);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
        }
        .support-link:hover { text-decoration: underline; }

        /* Progress ring + badges */
        #progress-panel { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
        .progress-ring {
            width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            background: conic-gradient(#e0e0e0 0%, #e0e0e0 0);
        }
        .progress-ring-hole { width: 38px; height: 38px; border-radius: 50%; background: var(--card-bg); }
        #progress-ring-label { font-weight: 600; font-size: 0.85rem; }
        .badge-shelf { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
        .badge-chip {
            background: var(--primary-light); border: 1px solid var(--primary); color: var(--primary);
            font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 12px;
        }

        /* Toasts */
        #toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
        .toast {
            background: #212121; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 0.85rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0; transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease; max-width: 280px;
        }
        .toast.show { opacity: 1; transform: translateY(0); }

        /* Household panel */
        #household-bar {
            background: #fafafa;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 15px 20px;
            margin-bottom: 20px;
        }
        .mode-choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
        #household-setup { display: flex; gap: 20px; flex-wrap: wrap; }
        #household-setup .setup-col { flex: 1; min-width: 220px; }
        #household-setup label { margin-top: 12px; }
        #household-setup .setup-col > label:first-of-type { margin-top: 0; }
        #household-setup .action-btn { padding: 10px 18px; font-size: 0.9rem; }
        #household-status { display: none; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
        #hh-invite-wrap { max-width: 480px; width: 100%; }
        #household-status .hh-name { font-weight: bold; color: var(--secondary); font-size: 1.05rem; }
        #household-status .hh-members { font-size: 0.85rem; color: var(--text-muted); }
        #hh-waiting-block { font-size: 0.85rem; }
        #hh-waiting-block p { margin: 0 0 8px 0; color: var(--text-muted); }
        #hh-waiting-block label { margin-top: 8px; }
        #hh-waiting-block input { max-width: 260px; }
        #hh-waiting-block .action-btn { padding: 8px 16px; font-size: 0.85rem; margin-top: 8px; }
        .hh-change-email-block { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
        #hh-connected-msg { font-size: 0.9rem; color: var(--primary); font-weight: 600; }
        .partner-selected-line { font-size: 0.85rem; color: var(--text-main); margin: 0 0 6px 0; }
        .invite-email-block { margin-top: 12px; width: 100%; }
        .invite-instructions {
            font-style: italic;
            color: var(--text-muted);
            font-size: 0.8rem;
            margin: 0 0 6px 0;
        }
        .invite-email-template {
            font-family: Georgia, 'Times New Roman', serif;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 12px 14px;
            font-size: 0.85rem;
            line-height: 1.5;
            white-space: pre-wrap;
            color: var(--text-main);
        }
        .gate-message {
            text-align: center;
            color: var(--text-muted);
            padding: 36px 24px;
            font-size: 0.95rem;
            background: #fafafa;
            border: 1px dashed var(--border);
            border-radius: 10px;
        }
        .gate-message .gate-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
        .gate-message .gate-title { display: block; font-weight: 700; color: var(--text-main); margin-bottom: 6px; font-size: 1.02rem; }
        .gate-message .gate-detail { display: block; max-width: 420px; margin: 0 auto; line-height: 1.5; }
        .gate-link {
            display: inline-block; margin-top: 14px; background-color: var(--secondary); color: white;
            border: none; padding: 9px 18px; font-size: 0.85rem; border-radius: 6px; cursor: pointer;
            font-weight: bold; text-decoration: none;
        }
        .gate-link:hover { background-color: #0d47a1; }

        /* Admin nav link + notification badge */
        .admin-badge {
            display: inline-block;
            background: #d32f2f;
            color: #fff;
            font-size: 0.68rem;
            font-weight: 700;
            line-height: 1;
            padding: 3px 6px;
            border-radius: 10px;
            margin-left: 4px;
            vertical-align: middle;
        }

        /* Admin dashboard */
        .admin-stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
        .admin-stat-tile {
            flex: 1; min-width: 150px;
            background: var(--primary-light);
            border: 1px solid var(--primary);
            border-radius: 8px;
            padding: 16px 18px;
            text-align: center;
        }
        .admin-stat-tile .admin-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--primary); display: block; }
        .admin-stat-tile .admin-stat-label { font-size: 0.8rem; color: var(--text-muted); }
        .admin-nav-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
        .admin-nav-links .action-btn { margin-top: 0; text-decoration: none; display: inline-block; }

        /* Admin tables (error log, admin roster) */
        .admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
        .admin-table th {
            text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--border);
            color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
        }
        .admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
        .error-log-row { cursor: pointer; }
        .error-log-row:hover { background: var(--primary-light); }
        .error-log-row.error-log-resolved { color: var(--text-muted); }
        .error-log-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
        .error-log-message { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .error-severity-chip {
            font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px;
            text-transform: uppercase;
        }
        .error-severity-error { background: #fdecea; color: #d32f2f; }
        .error-severity-warning { background: #fff8e1; color: #b8860b; }
        .error-severity-info { background: var(--primary-light); color: var(--primary); }

        /* Error detail view */
        .error-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
        .error-detail-nav .action-btn { margin-top: 0; padding: 8px 16px; font-size: 0.85rem; }
        #error-detail-position { font-size: 0.85rem; color: var(--text-muted); }
        .error-detail-field { margin-bottom: 14px; }
        .error-detail-field label { display: block; margin: 0 0 4px 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); font-weight: 700; }
        .error-detail-field .error-detail-value {
            font-size: 0.9rem; color: var(--text-main); word-break: break-word;
        }
        .error-detail-field pre.error-detail-value {
            background: #fafafa; border: 1px solid var(--border); border-radius: 6px;
            padding: 10px 12px; white-space: pre-wrap; font-size: 0.82rem; margin: 0; font-family: Menlo, Consolas, monospace;
        }
        #error-detail-resolved-info { font-size: 0.82rem; color: var(--primary); font-weight: 600; }

        /* Admin roster */
        #admin-invite-link-wrap { margin-top: 16px; }

        /* Financial personality (archetype) */
        .archetype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin: 16px 0; }
        .archetype-card {
            border: 2px solid var(--border); border-radius: 10px; padding: 16px; cursor: pointer;
            background: #fafafa; transition: border-color 0.15s ease, transform 0.15s ease;
        }
        .archetype-card:hover { transform: translateY(-2px); }
        .archetype-card.selected { border-color: var(--primary); background: var(--primary-light); }
        .archetype-card h4 { margin: 0 0 6px 0; }
        .archetype-card p { margin: 0 0 10px 0; font-size: 0.85rem; color: var(--text-muted); }
        .archetype-card .learn-more-link {
            display: inline-block; font-size: 0.8rem; font-weight: 600;
            color: var(--secondary); text-decoration: none;
        }
        .archetype-card .learn-more-link:hover { text-decoration: underline; }

        /* Personality detail page (FinancialPersonalities.html) */
        .back-link { display: inline-block; margin-bottom: 20px; color: var(--secondary); font-size: 0.9rem; text-decoration: none; }
        .back-link:hover { text-decoration: underline; }
        .personality-header { text-align: center; border-bottom: 2px solid var(--border); padding-bottom: 20px; margin-bottom: 25px; }
        .personality-header .personality-emoji { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
        .personality-header h1 { margin: 0 0 12px 0; color: var(--primary); }
        .personality-header p { margin: 0 auto; max-width: 560px; color: var(--text-muted); line-height: 1.5; }
        .personality-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
        .personality-nav .action-btn { margin-top: 0; text-decoration: none; display: inline-block; text-align: center; }

        .quiz-question { margin-bottom: 16px; }
        .quiz-question label { margin-top: 0; }
        .likert-row { display: flex; gap: 10px; margin-top: 6px; }
        .likert-opt { display: flex; flex-direction: column; align-items: center; font-weight: 400; font-size: 0.8rem; margin-top: 0; gap: 4px; }
        .likert-opt input[type="radio"] { width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; }
        .likert-scale-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

        /* Goals */
        .goal-card { position: relative; }
        .goal-card .goal-title-row { display: flex; justify-content: space-between; align-items: baseline; }
        .goal-card .goal-amounts { font-size: 0.85rem; color: var(--text-muted); }
        .goal-progress-wrap { position: relative; margin: 18px 0 8px 0; }
        .seg-mine { background: var(--secondary); }
        .seg-partner { background: var(--accent); }
        .milestone-ticks { position: absolute; top: 0; left: 0; width: 100%; height: 24px; pointer-events: none; }
        .milestone-tick {
            position: absolute;
            top: 0;
            width: 2px;
            height: 24px;
            background: rgba(255,255,255,0.6);
        }
        .goal-legend { display: flex; gap: 15px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
        .contribute-row { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
        .contribute-row input { width: auto; flex: 1; margin-top: 0; }
        .contribute-row button { margin-top: 0; padding: 8px 16px; font-size: 0.85rem; }
        .milestone-flag { font-size: 0.8rem; color: var(--primary); font-weight: bold; margin-top: 4px; }
        .common-goals-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        .common-goal-chip {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: #ffffff;
            cursor: pointer;
            text-align: left;
            font-family: inherit;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .common-goal-chip:hover { border-color: var(--primary); background: var(--primary-light); }
        .common-goal-title { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
        .common-goal-amount { font-size: 0.78rem; color: var(--text-muted); }

        /* Ledger / Learning list rows */
        .balance-owe { border-left-color: #d32f2f !important; background: #ffebee !important; }
        .balance-settled { border-left-color: var(--primary) !important; background: var(--primary-light) !important; }
        .ledger-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.9rem;
            gap: 10px;
        }
        .ledger-entry:last-child { border-bottom: none; }
        .ledger-entry .le-desc { font-weight: 600; }
        .ledger-entry .le-meta { font-size: 0.8rem; color: var(--text-muted); display: block; }
        .ledger-entry .le-amount { font-weight: bold; text-align: right; white-space: nowrap; }

        /* Support page */
        .support-entry { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
        .support-entry:last-child { border-bottom: none; }
        .support-entry .se-author { font-weight: 600; }
        .support-entry .se-date { font-size: 0.75rem; color: var(--text-muted); margin-left: 6px; }
        .support-entry .se-message { margin-top: 4px; white-space: pre-wrap; }

        /* Grow Together */
        .dynamic-card {
            border: 2px solid var(--border); border-radius: 10px; padding: 16px;
            background: #fafafa; margin-bottom: 14px;
        }
        .dynamic-card.highlighted { border-color: var(--accent); background: #fff8e1; }
        .dynamic-card h4 { margin: 0 0 6px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .dynamic-card .dc-desc { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
        .resonate-tag {
            background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700;
            padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px;
        }
        .dc-toggle-btn {
            background: none; border: 1px solid var(--secondary); color: var(--secondary);
            padding: 6px 14px; font-size: 0.8rem; font-weight: 600; border-radius: 6px; cursor: pointer; margin-top: 10px;
        }
        .dc-toggle-btn:hover { background: var(--primary-light); }
        .dc-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.85rem; }
        .dc-detail h5 { margin: 10px 0 6px 0; color: var(--secondary); font-size: 0.85rem; }
        .dc-detail ul { margin: 0; padding-left: 18px; }
        .dc-detail li { margin-bottom: 6px; }
        .dc-source { margin-top: 10px; font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

        /* Learning Together: suggested topics */
        .suggested-topics-category {
            margin: 16px 0 8px 0; font-size: 0.78rem; font-weight: 700; color: var(--secondary);
            text-transform: uppercase; letter-spacing: 0.4px;
        }
        .suggested-topics-category:first-child { margin-top: 0; }
        .suggested-topics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 10px;
        }
        .suggested-topic-chip {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 3px;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: #ffffff;
            cursor: pointer;
            text-align: left;
            font-family: inherit;
            transition: border-color 0.15s ease, background 0.15s ease;
        }
        .suggested-topic-chip:hover { border-color: var(--primary); background: var(--primary-light); }
        .suggested-topic-title { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
        .suggested-topic-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }

        /* Connected Accounts */
        .linkedin-connected-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            background: #fafafa;
            flex-wrap: wrap;
        }
        .linkedin-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
        .linkedin-name { font-weight: 600; font-size: 0.95rem; }
        .linkedin-email, .linkedin-connected-date { font-size: 0.8rem; color: var(--text-muted); }
        .linkedin-connected-card .action-btn { margin-left: auto; }

        /* Sources footer */
        #sources { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
        #sources h3 { color: var(--text-main); font-size: 0.95rem; margin-bottom: 8px; }
        #sources ul { padding-left: 18px; margin: 0 0 10px 0; }
        #sources li { margin-bottom: 8px; }
        #sources a { color: var(--secondary); }
        #sources .disclaimer { font-style: italic; }
