        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #f8f9fa;
            color: #1a3c2d
        }

        body.dark-mode {
            background: #0a1510;
            color: #b7e4c7
        }

        :root {
            --primary: #40916c;
            --secondary: #52b788;
            --accent: #e9c46a
        }

        .hidden {
            display: none !important
        }

        .header {
            background: #1a3c2d;
            padding: 0 20px;
            height: 58px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100
        }

        .logo {
            color: #b7e4c7;
            font-weight: 800;
            font-size: 16px;
            cursor: pointer
        }

        .subtitle {
            font-size: 8px;
            opacity: .7
        }

        .nav {
            display: flex;
            gap: 8px
        }

        .btn {
            background: rgba(116, 198, 157, .15);
            border: 1px solid rgba(116, 198, 157, .3);
            color: #b7e4c7;
            padding: 5px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px
        }

        .btn-post {
            background: var(--accent);
            color: #1a3c2d;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 700;
            border: none;
            cursor: pointer
        }

        .hero {
            background: linear-gradient(135deg, #1a3c2d, #40916c);
            padding: 24px 20px;
            color: #fff
        }

        .hero h1 {
            font-size: 20px;
            margin: 8px 0;
            text-align: center
        }

        .hero-subtitle {
            font-size: 12px;
            opacity: .9;
            margin-top: 8px;
            text-align: center
        }

        .step-flow {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 16px;
            flex-wrap: wrap;
            padding: 0 10px
        }

        .step-item {
            background: rgba(255, 255, 255, .15);
            border-radius: 8px;
            padding: 8px 10px;
            font-size: 9px;
            text-align: center;
            flex: 1;
            min-width: 60px;
            max-width: 100px
        }

        .step-number {
            background: rgba(255, 255, 255, .3);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 4px;
            font-weight: 700;
            font-size: 10px
        }

        .step-label {
            font-weight: 700;
            margin-bottom: 2px
        }

        .step-desc {
            opacity: .8;
            font-size: 8px
        }

        .filters {
            display: flex;
            gap: 8px;
            padding: 12px 16px;
            flex-wrap: wrap
        }

        .filter {
            background: transparent;
            border: 1.5px solid #d1e7dd;
            padding: 6px 14px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            color: #52796f;
            text-decoration: none;
            display: inline-block
        }

        .filter.active {
            background: var(--secondary);
            color: #fff;
            border-color: var(--secondary);
            font-weight: 700
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px
        }

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

        .card {
            background: #fff;
            border: 1.5px solid #d1e7dd;
            border-radius: 16px;
            padding: 16px
        }

        body.dark-mode .card {
            background: #132218;
            border-color: #2d4a3e
        }

        .card-header {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center
        }

        .avatar {
            font-size: 24px;
            cursor: pointer
        }

        .author {
            flex: 1
        }

        .author-name {
            font-size: 12px;
            font-weight: 700;
            color: var(--secondary);
            cursor: pointer
        }

        .date {
            font-size: 10px;
            opacity: .7
        }

        .fav {
            background: transparent;
            border: 1.5px solid #d1e7dd;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            opacity: .5;
            font-size: 14px
        }

        .fav.active {
            background: #fbbf24;
            border-color: #fbbf24;
            opacity: 1
        }

        .title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 10px;
            cursor: pointer
        }

        .keywords {
            display: flex;
            gap: 5px;
            margin-bottom: 10px;
            flex-wrap: wrap
        }

        .keyword {
            background: #b7e4c7;
            color: #1a3c2d;
            font-size: 9px;
            padding: 2px 8px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer
        }

        .excerpt {
            font-size: 13px;
            line-height: 1.7;
            margin: 10px 0;
            cursor: pointer
        }

        .process-btn {
            width: 100%;
            background: var(--secondary);
            border: none;
            color: #fff;
            border-radius: 10px;
            padding: 9px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 10px
        }

        .expand {
            display: none;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 2px solid #d1e7dd
        }

        .expand.show {
            display: block
        }

        .swipe-container {
            width: 100%;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            touch-action: pan-x;
            cursor: default;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none
        }

        .swipe-container::-webkit-scrollbar {
            display: none
        }

        .swipe-wrapper {
            display: flex;
            width: 100%
        }

        .step-content {
            flex: 0 0 100%;
            width: 100%;
            padding: 14px;
            border-radius: 10px;
            border-left: 4px solid;
            flex-shrink: 0;
            scroll-snap-align: start;
            min-height: 100px
        }

        .step-content-label {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px
        }

        .step-text {
            font-size: 14px;
            line-height: 1.7;
            white-space: pre-wrap
        }

        .step-text.truncated {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            white-space: normal
        }

        .expand-text-btn {
            color: var(--secondary);
            font-weight: 600;
            cursor: pointer;
            font-size: 12px;
            margin-top: 4px;
            display: inline-block
        }

        .step-dots {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 12px;
            align-items: center
        }

        .step-dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #d1e7dd;
            border: 2px solid #d1e7dd;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #52796f;
            transition: all .2s
        }

        .step-dot.active {
            background: var(--secondary);
            border-color: var(--secondary);
            color: #fff;
            transform: scale(1.1)
        }

        .step-dot:hover {
            border-color: var(--secondary)
        }

        .page-title {
            font-size: 24px;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 24px
        }

        .profile-page {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px
        }

        .profile-header {
            background: linear-gradient(135deg, #1a3c2d, #40916c);
            padding: 40px 20px;
            text-align: center;
            border-radius: 16px;
            margin-bottom: 24px
        }

        .profile-avatar-large {
            font-size: 80px;
            margin-bottom: 16px
        }

        .profile-username {
            font-size: 28px;
            font-weight: 800;
            color: #b7e4c7;
            margin-bottom: 16px
        }

        .profile-content {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 24px
        }

        @media (max-width:900px) {
            .profile-content {
                grid-template-columns: 1fr
            }
        }

        .profile-card {
            background: #fff;
            border: 1.5px solid #d1e7dd;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px
        }

        body.dark-mode .profile-card {
            background: #132218;
            border-color: #2d4a3e
        }

        .profile-card h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 16px
        }

        .profile-field {
            margin-bottom: 16px
        }

        .profile-field label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            opacity: .7;
            margin-bottom: 6px
        }

        .profile-edit-textarea,
        .profile-select {
            width: 100%;
            border: 2px solid #d1e7dd;
            border-radius: 8px;
            padding: 10px;
            font-size: 14px;
            background: #fff;
            color: #1a3c2d;
            font-family: inherit
        }

        body.dark-mode .profile-edit-textarea,
        body.dark-mode .profile-select {
            background: #0d1912;
            color: #b7e4c7;
            border-color: #2d4a3e
        }

        .profile-edit-textarea {
            resize: vertical;
            line-height: 1.6;
            min-height: 120px
        }

        .profile-select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2352796f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            padding-right: 35px
        }

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .6);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px
        }

        .modal.show {
            display: flex
        }

        .modal-content {
            background: #fff;
            border-radius: 20px;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto
        }

        body.dark-mode .modal-content {
            background: #132218
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            padding: 20px 24px;
            border-bottom: 1px solid #d1e7dd
        }

        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--secondary)
        }

        .modal-close {
            background: transparent;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #52796f
        }

        .modal-body {
            padding: 24px
        }

        .form-group {
            margin-bottom: 16px
        }

        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #52796f
        }

        .form-input,
        .form-textarea {
            width: 100%;
            border: 2px solid #d1e7dd;
            border-radius: 12px;
            padding: 14px;
            font-size: 14px;
            background: #fff;
            color: #1a3c2d
        }

        body.dark-mode .form-input,
        body.dark-mode .form-textarea {
            background: #0d1912;
            color: #b7e4c7;
            border-color: #2d4a3e
        }

        .form-textarea {
            resize: vertical;
            line-height: 1.6
        }

        .modal-footer {
            display: flex;
            gap: 10px;
            padding: 20px 24px;
            border-top: 1px solid #d1e7dd
        }

        .btn-secondary {
            flex: 1;
            background: transparent;
            border: 2px solid #d1e7dd;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            color: #52796f
        }

        .btn-primary {
            flex: 1;
            background: var(--secondary);
            border: none;
            color: #fff;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer
        }

        .progress-bar {
            height: 6px;
            background: #d1e7dd;
            border-radius: 3px;
            margin-bottom: 12px
        }

        .progress-fill {
            height: 100%;
            background: var(--secondary);
            border-radius: 3px;
            transition: width .3s
        }

        .step-form {
            display: none
        }

        .step-form.active {
            display: block
        }

        .post-list-card {
            background: #fff;
            border: 1.5px solid #d1e7dd;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 16px;
            cursor: pointer
        }

        body.dark-mode .post-list-card {
            background: #132218;
            border-color: #2d4a3e
        }

        .post-list-card:hover {
            border-color: var(--secondary);
            transform: translateY(-2px);
            transition: all .2s
        }

        .mini-step {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            border-left: 3px solid;
            font-size: 13px;
            line-height: 1.6
        }

        .keyword-cloud {
            background: #fff;
            border: 1.5px solid #d1e7dd;
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px
        }

        body.dark-mode .keyword-cloud {
            background: #132218;
            border-color: #2d4a3e
        }

        .keyword-cloud h2 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--primary)
        }

        .keyword-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 12px
        }

        .keyword-tag-large {
            background: var(--secondary);
            color: #fff;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all .2s
        }

        .keyword-tag-large:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(82, 183, 136, .3)
        }

        .keyword-count {
            background: rgba(0, 0, 0, .2);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #52796f;
            opacity: .7
        }

        /* ===== CHANGE BIAS.LAB ===== */
        :root {
            --bias-primary: #c2601a;
            --bias-secondary: #e8834a;
            --bias-accent: #f5a96e;
            --bias-light: #fff5ee;
            --bias-border: #f0d0b8;
            --bias-bg: #fdf8f4
        }

        .bias-mode-btn {
            background: linear-gradient(135deg, #e8834a, #c2601a);
            border: none;
            color: #fff;
            padding: 5px 13px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: all .2s;
            box-shadow: 0 2px 8px rgba(194,96,26,0.25)
        }

        .bias-mode-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(194,96,26,0.35)
        }

        .bias-mode-btn.active-mode {
            background: linear-gradient(135deg, #c2601a, #8c3d0a);
            box-shadow: 0 0 0 2px rgba(232,131,74,0.5)
        }

        body.bias-active {
            background: var(--bias-bg);
            color: #3d1e08
        }

        .bias-header {
            background: linear-gradient(135deg, #3d1e08, #c2601a);
        }

        #biasPage {
            animation: fadeIn .35s ease
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px) }
            to { opacity: 1; transform: translateY(0) }
        }

        .bias-hero {
            background: linear-gradient(135deg, #3d1e08 0%, #c2601a 60%, #e8834a 100%);
            padding: 28px 20px 24px;
            color: #fff;
            position: relative;
            overflow: hidden
        }

        .bias-hero::before {
            content: '';
            position: absolute;
            top: -30px; right: -30px;
            width: 180px; height: 180px;
            background: rgba(255,255,255,0.06);
            border-radius: 50%
        }

        .bias-hero::after {
            content: '';
            position: absolute;
            bottom: -40px; left: -20px;
            width: 120px; height: 120px;
            background: rgba(255,255,255,0.04);
            border-radius: 50%
        }

        .bias-badge {
            font-size: 9px;
            background: rgba(255,255,255,0.18);
            display: inline-block;
            padding: 4px 14px;
            border-radius: 20px;
            margin-bottom: 10px;
            letter-spacing: 1px;
            font-weight: 700
        }

        .bias-hero h1 {
            font-size: 22px;
            font-weight: 900;
            margin: 6px 0 4px;
            text-align: center;
            line-height: 1.3
        }

        .bias-hero-sub {
            font-size: 12px;
            opacity: .88;
            text-align: center;
            margin-top: 6px;
            line-height: 1.6
        }

        .bias-step-flow {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-top: 18px;
            flex-wrap: wrap;
            padding: 0 8px
        }

        .bias-step-item {
            background: rgba(255,255,255,0.14);
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 9px;
            text-align: center;
            flex: 1;
            min-width: 58px;
            max-width: 100px;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255,255,255,0.2)
        }

        .bias-step-num {
            background: rgba(255,255,255,0.28);
            border-radius: 50%;
            width: 22px; height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 5px;
            font-weight: 800;
            font-size: 10px
        }

        .bias-step-label {
            font-weight: 700;
            margin-bottom: 2px;
            font-size: 9.5px
        }

        .bias-step-desc {
            opacity: .75;
            font-size: 7.5px
        }

        .bias-filters {
            display: flex;
            gap: 8px;
            padding: 12px 16px;
            flex-wrap: wrap;
            border-bottom: 1px solid var(--bias-border)
        }

        .bias-filter {
            background: transparent;
            border: 1.5px solid var(--bias-border);
            padding: 6px 14px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            color: var(--bias-primary);
            text-decoration: none;
            display: inline-block;
            transition: all .15s
        }

        .bias-filter.active {
            background: var(--bias-secondary);
            color: #fff;
            border-color: var(--bias-secondary);
            font-weight: 700
        }

        .bias-card {
            background: #fff;
            border: 1.5px solid var(--bias-border);
            border-radius: 16px;
            padding: 16px;
            transition: all .2s
        }

        .bias-card:hover {
            border-color: var(--bias-secondary);
            box-shadow: 0 4px 16px rgba(194,96,26,0.1);
            transform: translateY(-2px)
        }

        body.dark-mode .bias-card {
            background: #1e0f06;
            border-color: #4a2810;
            color: #ffd4b0
        }

        body.dark-mode.bias-active {
            background: #1a0c04;
            color: #ffd4b0
        }

        body.dark-mode .bias-title { color: #ffd4b0 }

        body.dark-mode .bias-author-name { color: var(--bias-accent) }

        body.dark-mode .bias-keyword {
            background: #3d1e08;
            color: var(--bias-accent)
        }

        body.dark-mode #biasPage .bias-hero { filter: brightness(0.92) }

        body.dark-mode #biasAllTab,
        body.dark-mode #biasTrendTab,
        body.dark-mode #biasKeywordTab {
            background: #1a0c04
        }

        body.dark-mode .keyword-cloud.bias-kc {
            background: #2a120a;
            border-color: #5a2e16
        }

        body.dark-mode .bias-card .excerpt { color: #e8c4a0 }

        body.dark-mode .bias-card .date { color: #a07858 }

        .bias-card-header {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            align-items: center
        }

        .bias-author-name {
            font-size: 12px;
            font-weight: 700;
            color: var(--bias-secondary)
        }

        .bias-fav {
            background: transparent;
            border: 1.5px solid var(--bias-border);
            border-radius: 50%;
            width: 32px; height: 32px;
            cursor: pointer;
            opacity: .5;
            font-size: 14px
        }

        .bias-fav.active {
            background: #fbbf24;
            border-color: #fbbf24;
            opacity: 1
        }

        .bias-title {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 10px;
            cursor: pointer;
            color: #3d1e08
        }

        .bias-keyword {
            background: #ffe8d6;
            color: var(--bias-primary);
            font-size: 9px;
            padding: 2px 8px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer
        }

        .bias-process-btn {
            width: 100%;
            background: var(--bias-secondary);
            border: none;
            color: #fff;
            border-radius: 10px;
            padding: 9px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 10px;
            transition: background .15s
        }

        .bias-process-btn:hover { background: var(--bias-primary) }

        .bias-step-dot {
            width: 32px; height: 32px;
            border-radius: 50%;
            background: #f0d0b8;
            border: 2px solid #f0d0b8;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--bias-primary);
            transition: all .2s
        }

        .bias-step-dot.active {
            background: var(--bias-secondary);
            border-color: var(--bias-secondary);
            color: #fff;
            transform: scale(1.1)
        }

        .bias-expand {
            display: none;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 2px solid var(--bias-border)
        }

        .bias-expand.show { display: block }

        /* Bias post modal */
        .bias-modal-header {
            background: linear-gradient(135deg, #3d1e08, #c2601a)
        }

        .bias-modal-title { color: var(--bias-accent) }

        .bias-progress-fill {
            height: 100%;
            background: var(--bias-secondary);
            border-radius: 3px;
            transition: width .3s
        }

        .bias-btn-primary {
            flex: 1;
            background: var(--bias-secondary);
            border: none;
            color: #fff;
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer
        }

        .bias-btn-primary:hover { background: var(--bias-primary) }

        .keyword-cloud.bias-kc {
            background: #fff;
            border: 1.5px solid var(--bias-border)
        }

        body.dark-mode .keyword-cloud.bias-kc {
            background: #1e0f06;
            border-color: #4a2810
        }

        .bias-keyword-tag-large {
            background: var(--bias-secondary);
            color: #fff;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: all .2s
        }

        .bias-keyword-tag-large:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(194,96,26,0.3)
        }
        /* ===== WELCOME MODAL ===== */
        .welcome-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.65);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(4px)
        }

        .welcome-box {
            background: #fff;
            border-radius: 24px;
            width: 100%;
            max-width: 420px;
            padding: 36px 32px 28px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.25);
            animation: welcomePop .4s cubic-bezier(.34,1.56,.64,1)
        }

        @keyframes welcomePop {
            from { opacity: 0; transform: scale(0.85) translateY(20px) }
            to { opacity: 1; transform: scale(1) translateY(0) }
        }

        .welcome-logo {
            font-size: 13px;
            font-weight: 800;
            color: var(--primary);
            letter-spacing: 1px;
            margin-bottom: 6px
        }

        .welcome-box h2 {
            font-size: 20px;
            font-weight: 800;
            color: #1a3c2d;
            margin-bottom: 6px
        }

        .welcome-box p {
            font-size: 13px;
            color: #52796f;
            margin-bottom: 24px;
            line-height: 1.6
        }

        .avatar-picker-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-bottom: 20px
        }

        .avatar-opt {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: 2.5px solid #d1e7dd;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            transition: all .15s;
            background: #f8fdf9;
            overflow: hidden
        }

        .avatar-opt:hover { border-color: var(--secondary); transform: scale(1.08) }

        .avatar-opt.selected {
            border-color: var(--secondary);
            background: #d1f2e4;
            box-shadow: 0 0 0 3px rgba(82,183,136,0.3)
        }

        .avatar-opt img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%
        }

        .welcome-name-input {
            width: 100%;
            border: 2px solid #d1e7dd;
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 15px;
            font-family: inherit;
            color: #1a3c2d;
            margin-bottom: 16px;
            outline: none;
            transition: border-color .15s
        }

        .welcome-name-input:focus { border-color: var(--secondary) }

        .welcome-start-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: #fff;
            border: none;
            border-radius: 12px;
            padding: 14px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s
        }

        .welcome-start-btn:hover { opacity: .9; transform: translateY(-1px) }

        /* Profile name field */
        .profile-name-field {
            margin-bottom: 16px
        }

        .profile-name-field label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            opacity: .7;
            margin-bottom: 6px
        }

        .profile-name-input {
            width: 100%;
            border: 2px solid #d1e7dd;
            border-radius: 8px;
            padding: 10px;
            font-size: 14px;
            background: #fff;
            color: #1a3c2d;
            font-family: inherit
        }

        body.dark-mode .profile-name-input {
            background: #0d1912;
            color: #b7e4c7;
            border-color: #2d4a3e
        }

        .avatar-upload-btn {
            display: inline-block;
            margin-top: 8px;
            padding: 7px 14px;
            border: 1.5px dashed #52796f;
            border-radius: 8px;
            font-size: 12px;
            color: #52796f;
            cursor: pointer;
            transition: all .15s
        }

        .avatar-upload-btn:hover {
            border-color: var(--secondary);
            color: var(--secondary)
        }

        .profile-avatar-edit-wrap {
            position: relative;
            display: inline-block;
            margin-bottom: 16px
        }

        .profile-avatar-edit-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin: 12px 0
        }

        .profile-avatar-opt {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid #d1e7dd;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            transition: all .15s;
            background: #f8fdf9;
            overflow: hidden
        }

        .profile-avatar-opt:hover { border-color: var(--secondary); transform: scale(1.08) }

        .profile-avatar-opt.selected {
            border-color: var(--secondary);
            background: #d1f2e4
        }

        .profile-avatar-opt img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%
        }

        body.dark-mode .profile-avatar-opt {
            background: #132218;
            border-color: #2d4a3e
        }
