.profile-hero {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-cover {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #171822 0%, #0d0e13 100%);
    background-size: cover;
    background-position: center;
    height: 140px;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, #121318 100%);
}

.profile-hero-content {
    position: relative;
    padding: 0 32px 24px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    margin-top: 60px;
}

.profile-avatar-wrap {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: -40px;
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    background: #252525;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: white;
    border: 3px solid #282828;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    overflow: hidden;
}

.profile-avatar-wrap:hover .profile-avatar-large {
    transform: scale(1.02);
}

.avatar-edit-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #6366f1;
    border: 2px solid #181818;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.profile-hero-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 8px;
}

.profile-displayname {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    margin: -2px -6px;
}

.profile-displayname:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.profile-username-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 12px;
}

.profile-at {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
}

.auth-badge.active {
    background: rgba(63, 185, 80, 0.1);
    border-color: rgba(63, 185, 80, 0.3);
    color: var(--success);
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    margin: -4px -8px;
    transition: background 0.2s;
    max-width: 600px;
}

.profile-bio:hover {
    background: var(--bg-hover);
}

.bio-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.profile-hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-stat i {
    color: var(--accent-primary);
    font-size: 12px;
}

.hero-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.profile-tabs {
    display: inline-flex;
    gap: 4px;
    background: #181818;
    border: 1px solid #282828;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.profile-tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: inherit;
}

.profile-tab:hover {
    background: #252525;
    color: #f3f4f6;
}

.profile-tab.active {
    background: #6366f1;
    color: #ffffff;
    font-weight: 600;
}

.tab-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.profile-tab:not(.active) .tab-count {
    background: #252525;
    color: #9ca3af;
}

.profile-tab-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

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

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

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

.overview-stats .stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.overview-stats .stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.overview-stats .stat-card.gradient-1::before { background: linear-gradient(180deg, #58a6ff, #388bfd); }
.overview-stats .stat-card.gradient-2::before { background: linear-gradient(180deg, #a371f7, #8b5cf6); }
.overview-stats .stat-card.gradient-3::before { background: linear-gradient(180deg, #f778ba, #ec4899); }
.overview-stats .stat-card.gradient-4::before { background: linear-gradient(180deg, #3fb950, #2ea043); }

.overview-stats .stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.overview-stats .stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.overview-stats .stat-card-info { flex: 1; }

.overview-stats .stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.overview-stats .stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.overview-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent-primary);
}

.top-chars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.top-char-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.top-char-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateX(2px);
}

.top-char-photo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.top-char-info { flex: 1; min-width: 0; }

.top-char-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-char-stats {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.empty-state-small {
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
    font-size: 13px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.quick-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.quick-action i {
    font-size: 22px;
    color: var(--accent-primary);
    width: 32px;
    text-align: center;
}

.qa-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.qa-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.char-toolbar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.char-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 12px;
    background: #252525;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.filter-chip:hover {
    background: #2c2c2c;
    color: #f3f4f6;
}

.filter-chip.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-color: #6366f1;
}

.char-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
}

.search-box i {
    color: var(--text-muted);
    font-size: 13px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 8px 0;
    width: 140px;
    font-family: inherit;
}

.sort-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.sort-select:focus {
    border-color: var(--accent-primary);
}

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

.char-card-pro {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.char-card-pro:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.char-card-cover {
    height: 150px;
    background: var(--bg-tertiary);
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 40px;
}

.char-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.public-badge, .hot-badge {
    position: absolute;
    top: 8px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

.public-badge { left: 8px; }
.hot-badge { right: 8px; }

.char-card-pro .char-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.char-card-pro .char-card-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.char-card-pro .char-card-meta {
    display: flex;
    gap: 6px;
}

.gender-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.char-card-pro .char-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.char-card-pro .char-card-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-primary);
}

.char-card-pro .char-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.char-card-pro .char-card-actions {
    display: flex;
    gap: 6px;
}

.char-card-pro .char-card-actions .btn {
    flex: 1;
}

.btn-danger-ghost:hover {
    color: var(--danger) !important;
    background: rgba(248, 81, 73, 0.1) !important;
}

#profile-view-content .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px dashed var(--border-primary);
    border-radius: var(--radius-md);
}

#profile-view-content .empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

#profile-view-content .empty-state h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

#profile-view-content .empty-state p {
    margin-bottom: 20px;
    font-size: 14px;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-primary);
}

.settings-section-title i {
    color: var(--accent-primary);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
    gap: 16px;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    flex: 1;
    min-width: 0;
}

.settings-label > div:first-child {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.settings-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.settings-value {
    color: var(--text-secondary);
    font-size: 14px;
    flex-shrink: 0;
}

.settings-value.muted {
    color: var(--text-muted);
    font-family: 'Monaco', monospace;
    font-size: 13px;
}

.inline-editable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.inline-editable:hover {
    background: var(--bg-hover);
}

.inline-editable .edit-icon {
    opacity: 0;
    color: var(--accent-primary);
    font-size: 11px;
    transition: opacity 0.15s;
}

.inline-editable:hover .edit-icon {
    opacity: 1;
}

.inline-input, .inline-textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 10px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    outline: none;
    font-family: inherit;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    transition: 0.3s;
}

.slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

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

.switch input:checked + .slider::before {
    transform: translateX(20px);
    background: white;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 500px;
}

.password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.password-form label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.password-form input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.password-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.avatar-modal {
    max-width: 520px !important;
}

.avatar-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 24px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-dropzone:hover, .avatar-dropzone.dragover {
    border-color: var(--accent-primary);
    background: rgba(88, 166, 255, 0.05);
}

.avatar-dropzone i {
    font-size: 40px;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.dropzone-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropzone-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.avatar-cropper-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cropper-container {
    max-height: 400px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cropper-container img {
    max-width: 100%;
    display: block;
}

.cropper-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--bg-tertiary);
}

.char-modal {
    max-width: 600px !important;
}

.char-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.char-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.char-form label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.char-form input,
.char-form select,
.char-form textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.char-form input:focus,
.char-form select:focus,
.char-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.char-form textarea {
    resize: vertical;
    min-height: 80px;
}

.char-public-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    height: 42px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.char-public-toggle:hover {
    border-color: rgba(88, 166, 255, 0.4);
    background: rgba(88, 166, 255, 0.04);
}

.char-public-toggle .toggle-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.char-public-toggle .toggle-icon {
    color: var(--accent-primary);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.char-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--text-primary) !important;
}

.char-form .checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.photo-dropzone {
    position: relative;
    padding: 24px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-dropzone:hover, .photo-dropzone.dragover {
    border-color: var(--accent-primary);
    background-color: rgba(88, 166, 255, 0.05);
}

.photo-dropzone .dropzone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.photo-dropzone.has-image {
    min-height: 140px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.15);
}

.photo-dropzone.has-image .dropzone-placeholder {
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(4px);
    position: absolute;
    inset: 0;
    color: #fff;
}

.photo-dropzone.has-image:hover .dropzone-placeholder {
    opacity: 1;
}

.char-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

@media (max-width: 768px) {
    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px;
    }
    
    .profile-avatar-wrap {
        margin-top: -60px;
    }
    
    .profile-avatar-large {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
    
    .profile-displayname {
        font-size: 22px;
    }
    
    .profile-hero-stats {
        justify-content: center;
    }
    
    .char-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .char-controls {
        width: 100%;
    }
    
    .search-box {
        flex: 1;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .char-modal {
        max-width: 100% !important;
        margin: 0;
        border-radius: var(--radius-md);
    }
    
    .settings-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-value {
        width: 100%;
    }
    
    .inline-input, .inline-textarea {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid.overview-stats {
        grid-template-columns: 1fr;
    }
    
    .chars-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .profile-tab span:not(.tab-count) {
        display: none;
    }
}