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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* @tweakable hero section colors */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.language-selector {
    position: /* @tweakable language selector position */ absolute;
    top: /* @tweakable language selector top offset */ 0;
    right: /* @tweakable language selector right offset */ 0;
    z-index: /* @tweakable language selector z-index */ 1000;
}

.language-btn {
    background: /* @tweakable language button background */ rgba(255, 255, 255, 0.2);
    border: /* @tweakable language button border */ 1px solid rgba(255, 255, 255, 0.3);
    color: /* @tweakable language button text color */ white;
    padding: /* @tweakable language button padding */ 0.5rem 1rem;
    border-radius: /* @tweakable language button border radius */ 8px;
    cursor: pointer;
    font-weight: /* @tweakable language button font weight */ 500;
    display: flex;
    align-items: center;
    gap: /* @tweakable language button icon spacing */ 0.5rem;
    transition: /* @tweakable language button transition */ all 0.3s ease;
    backdrop-filter: /* @tweakable language button backdrop filter */ blur(10px);
}

.language-btn:hover {
    background: /* @tweakable language button hover background */ rgba(255, 255, 255, 0.3);
    transform: /* @tweakable language button hover transform */ translateY(-1px);
}

.dropdown-arrow {
    font-size: /* @tweakable dropdown arrow size */ 0.8rem;
    transition: /* @tweakable dropdown arrow transition */ transform 0.3s ease;
}

.language-btn.active .dropdown-arrow {
    transform: /* @tweakable dropdown arrow active rotation */ rotate(180deg);
}

.language-dropdown {
    position: /* @tweakable language dropdown position */ absolute;
    top: /* @tweakable language dropdown top offset */ 100%;
    right: /* @tweakable language dropdown right offset */ 0;
    background: /* @tweakable language dropdown background */ rgba(255, 255, 255, 0.95);
    backdrop-filter: /* @tweakable language dropdown backdrop filter */ blur(20px);
    border: /* @tweakable language dropdown border */ 1px solid rgba(255, 255, 255, 0.3);
    border-radius: /* @tweakable language dropdown border radius */ 8px;
    box-shadow: /* @tweakable language dropdown shadow */ 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: /* @tweakable language dropdown min width */ 120px;
    margin-top: /* @tweakable language dropdown spacing */ 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: /* @tweakable language dropdown initial transform */ translateY(-10px);
    transition: /* @tweakable language dropdown transition */ all 0.3s ease;
}

.language-dropdown.show {
    opacity: /* @tweakable language dropdown show opacity */ 1;
    visibility: /* @tweakable language dropdown show visibility */ visible;
    transform: /* @tweakable language dropdown show transform */ translateY(0);
}

.language-option {
    padding: /* @tweakable language option padding */ 0.75rem 1rem;
    cursor: pointer;
    color: /* @tweakable language option text color */ #333;
    font-weight: /* @tweakable language option font weight */ 500;
    transition: /* @tweakable language option transition */ all 0.2s ease;
    border-bottom: /* @tweakable language option border */ 1px solid rgba(0, 0, 0, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: /* @tweakable language option hover background */ rgba(102, 126, 234, 0.1);
    color: /* @tweakable language option hover text color */ #667eea;
}

.language-option.active {
    background: /* @tweakable language option active background */ rgba(102, 126, 234, 0.2);
    color: /* @tweakable language option active text color */ #667eea;
    font-weight: /* @tweakable language option active font weight */ 600;
}

.title {
    font-size: /* @tweakable title font size */ 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: /* @tweakable card border radius */ 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed /* @tweakable upload border color */ #667eea;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.upload-area:hover {
    border-color: #5a6fd8;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #4f5bd5;
    background: linear-gradient(135deg, #e8ebff 0%, #dde1ff 100%);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.image-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 100%;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1);
}

.prompt-section {
    margin-bottom: 2rem;
}

.prompt-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.prompt-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.prompt-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.preset-prompts {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.preset-label {
    font-weight: /* @tweakable preset label font weight */ 600;
    margin-bottom: /* @tweakable spacing below preset label */ 0.75rem;
    color: #333;
    font-size: /* @tweakable preset label font size */ 1rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: /* @tweakable spacing between preset buttons */ 0.75rem;
}

.preset-btn {
    background: /* @tweakable new song-based character bio button background */ linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border: /* @tweakable new song-based character bio button border width */ 2px solid /* @tweakable new song-based character bio button border color */ #667eea;
    color: /* @tweakable new song-based character bio button text color */ #4f5bd5;
    padding: /* @tweakable new song-based character bio button padding */ 0.5rem 1rem;
    border-radius: /* @tweakable new song-based character bio button border radius */ 20px;
    font-size: /* @tweakable new song-based character bio button font size */ 0.9rem;
    font-weight: /* @tweakable new song-based character bio button font weight */ 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: /* @tweakable new song-based character bio button text wrapping */ nowrap;
    min-width: /* @tweakable new song-based character bio button minimum width */ auto;
    text-align: /* @tweakable new song-based character bio button text alignment */ center;
}

.preset-btn:hover {
    background: /* @tweakable song-based character bio button hover background */ linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: /* @tweakable song-based character bio button hover text color */ white;
    transform: translateY(-1px);
    box-shadow: /* @tweakable song-based character bio button hover shadow */ 0 4px 12px rgba(102, 126, 234, 0.3);
}

.preset-btn:active {
    transform: translateY(0);
}

.analyze-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 2rem;
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.change-name-btn {
    background: /* @tweakable change name button background */ linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: /* @tweakable change name button text color */ white;
    border: none;
    padding: /* @tweakable change name button padding */ 0.75rem 1.5rem;
    border-radius: /* @tweakable change name button border radius */ 8px;
    cursor: pointer;
    font-weight: /* @tweakable change name button font weight */ 600;
    transition: /* @tweakable change name button transition */ all 0.2s ease;
    flex: /* @tweakable change name button flex grow */ 1;
    min-width: /* @tweakable change name button minimum width */ 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: /* @tweakable change name button icon spacing */ 0.5rem;
}

.change-name-btn:hover:not(:disabled) {
    background: /* @tweakable change name button hover background */ linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: /* @tweakable change name button hover transform */ translateY(-1px);
    box-shadow: /* @tweakable change name button hover shadow */ 0 4px 12px rgba(72, 187, 120, 0.3);
}

.change-name-btn:disabled {
    opacity: /* @tweakable change name button disabled opacity */ 0.7;
    cursor: not-allowed;
    transform: none;
}

/* @tweakable save button styling for text file export */
.save-btn {
    background: /* @tweakable save button background color */ linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
    color: /* @tweakable save button text color */ white;
    border: none;
    padding: /* @tweakable save button padding */ 0.75rem 1.5rem;
    border-radius: /* @tweakable save button border radius */ 8px;
    cursor: pointer;
    font-weight: /* @tweakable save button font weight */ 600;
    transition: /* @tweakable save button transition effects */ all 0.2s ease;
    flex: /* @tweakable save button flex behavior */ 1;
    min-width: /* @tweakable save button minimum width */ 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: /* @tweakable save button icon spacing */ 0.5rem;
}

.save-btn:hover {
    background: /* @tweakable save button hover background */ linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
    transform: /* @tweakable save button hover transform */ translateY(-1px);
    box-shadow: /* @tweakable save button hover shadow */ 0 4px 12px rgba(66, 153, 225, 0.3);
}

.save-btn:disabled {
    opacity: /* @tweakable save button disabled opacity */ 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.result-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e1e5e9;
}

.result-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.result-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.result-actions {
    display: flex;
    gap: /* @tweakable spacing between result action buttons */ 1rem;
    flex-wrap: wrap;
}

.copy-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: /* @tweakable copy button flex grow */ 1;
    min-width: /* @tweakable copy button minimum width */ 120px;
}

.copy-btn:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #4299e1;
}

.regenerate-btn {
    background: /* @tweakable regenerate button background */ linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: /* @tweakable regenerate button text color */ white;
    border: none;
    padding: /* @tweakable regenerate button padding */ 0.75rem 1.5rem;
    border-radius: /* @tweakable regenerate button border radius */ 8px;
    cursor: pointer;
    font-weight: /* @tweakable regenerate button font weight */ 600;
    transition: /* @tweakable regenerate button transition */ all 0.2s ease;
    flex: /* @tweakable regenerate button flex grow */ 1;
    min-width: /* @tweakable regenerate button minimum width */ 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: /* @tweakable regenerate button icon spacing */ 0.5rem;
}

.regenerate-btn:hover:not(:disabled) {
    background: /* @tweakable regenerate button hover background */ linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: /* @tweakable regenerate button hover transform */ translateY(-1px);
    box-shadow: /* @tweakable regenerate button hover shadow */ 0 4px 12px rgba(102, 126, 234, 0.3);
}

.regenerate-btn:disabled {
    opacity: /* @tweakable regenerate button disabled opacity */ 0.7;
    cursor: not-allowed;
    transform: none;
}

.regenerate-prompt-btn {
    background: /* @tweakable regenerate prompt button background */ linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: /* @tweakable regenerate prompt button text color */ white;
    border: none;
    padding: /* @tweakable regenerate prompt button padding */ 0.75rem 1.5rem;
    border-radius: /* @tweakable regenerate prompt button border radius */ 8px;
    cursor: pointer;
    font-weight: /* @tweakable regenerate prompt button font weight */ 600;
    transition: /* @tweakable regenerate prompt button transition */ all 0.2s ease;
    flex: /* @tweakable regenerate prompt button flex grow */ 1;
    min-width: /* @tweakable regenerate prompt button minimum width */ 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: /* @tweakable regenerate prompt button icon spacing */ 0.5rem;
}

.regenerate-prompt-btn:hover:not(:disabled) {
    background: /* @tweakable regenerate prompt button hover background */ linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
    transform: /* @tweakable regenerate prompt button hover transform */ translateY(-1px);
    box-shadow: /* @tweakable regenerate prompt button hover shadow */ 0 4px 12px rgba(159, 122, 234, 0.3);
}

.regenerate-prompt-btn:disabled {
    opacity: /* @tweakable regenerate prompt button disabled opacity */ 0.7;
    cursor: not-allowed;
    transform: none;
}

/* @tweakable regenerate prompt section styling */
.regenerate-prompt-section {
    display: flex;
    flex-direction: column;
    gap: /* @tweakable regenerate prompt section gap */ 1rem;
    margin-bottom: /* @tweakable regenerate prompt section margin bottom */ 2rem;
}

.regenerate-prompt-label {
    font-weight: /* @tweakable regenerate prompt label font weight */ 600;
    color: /* @tweakable regenerate prompt label color */ #333;
    font-size: /* @tweakable regenerate prompt label font size */ 1rem;
}

.regenerate-prompt-input {
    width: /* @tweakable regenerate prompt input width */ 100%;
    padding: /* @tweakable regenerate prompt input padding */ 1rem;
    border: /* @tweakable regenerate prompt input border */ 2px solid #e1e5e9;
    border-radius: /* @tweakable regenerate prompt input border radius */ 12px;
    font-size: /* @tweakable regenerate prompt input font size */ 1rem;
    font-family: inherit;
    resize: vertical;
    transition: /* @tweakable regenerate prompt input transition */ all 0.3s ease;
    background: /* @tweakable regenerate prompt input background */ #fafbfc;
    min-height: /* @tweakable regenerate prompt input min height */ 100px;
}

.regenerate-prompt-input:focus {
    outline: none;
    border-color: /* @tweakable regenerate prompt input focus border */ #9f7aea;
    background: /* @tweakable regenerate prompt input focus background */ white;
    box-shadow: /* @tweakable regenerate prompt input focus shadow */ 0 0 0 3px rgba(159, 122, 234, 0.1);
}

.regenerate-prompt-hint {
    font-size: /* @tweakable regenerate prompt hint font size */ 0.9rem;
    color: /* @tweakable regenerate prompt hint color */ #666;
    font-style: italic;
    margin-top: /* @tweakable regenerate prompt hint margin top */ 0.5rem;
}

.verbosity-section {
    margin-top: /* @tweakable spacing above verbosity section */ 1.5rem;
    margin-bottom: /* @tweakable spacing below verbosity section */ 1rem;
}

.verbosity-label {
    display: block;
    font-weight: /* @tweakable verbosity label font weight */ 600;
    margin-bottom: /* @tweakable spacing below verbosity label */ 0.75rem;
    color: /* @tweakable verbosity label color */ #333;
    font-size: /* @tweakable verbosity label font size */ 1rem;
}

/* @tweakable verbosity value display styling */
#verbosityValue {
    font-weight: /* @tweakable verbosity value font weight */ 700;
    color: /* @tweakable verbosity value color */ #667eea;
    background: /* @tweakable verbosity value background */ rgba(102, 126, 234, 0.1);
    padding: /* @tweakable verbosity value padding */ 0.2rem 0.5rem;
    border-radius: /* @tweakable verbosity value border radius */ 4px;
    font-size: /* @tweakable verbosity value font size */ 0.9rem;
    margin-left: /* @tweakable verbosity value left spacing */ 0.5rem;
}

.verbosity-slider {
    width: /* @tweakable verbosity slider width in container */ 100%;
    height: /* @tweakable verbosity slider height */ 8px;
    background: /* @tweakable verbosity slider track color */ #e1e5e9;
    border-radius: /* @tweakable verbosity slider border radius */ 4px;
    outline: none;
    -webkit-appearance: none;
    flex: /* @tweakable verbosity slider flex grow */ 1;
}

/* @tweakable verbosity number input styling */
.verbosity-number {
    width: /* @tweakable verbosity number input width */ 60px;
    height: /* @tweakable verbosity number input height */ 40px;
    padding: /* @tweakable verbosity number input padding */ 0.5rem;
    border: /* @tweakable verbosity number input border */ 2px solid #e1e5e9;
    border-radius: /* @tweakable verbosity number input border radius */ 8px;
    font-size: /* @tweakable verbosity number input font size */ 0.9rem;
    text-align: /* @tweakable verbosity number input text alignment */ center;
    font-weight: /* @tweakable verbosity number input font weight */ 600;
    color: /* @tweakable verbosity number input text color */ #667eea;
    background: /* @tweakable verbosity number input background */ #f8f9ff;
    transition: /* @tweakable verbosity number input transition */ all 0.2s ease;
}

.verbosity-number:focus {
    outline: none;
    border-color: /* @tweakable verbosity number input focus border */ #667eea;
    background: /* @tweakable verbosity number input focus background */ white;
    box-shadow: /* @tweakable verbosity number input focus shadow */ 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.verbosity-hints {
    display: flex;
    justify-content: space-between;
    font-size: /* @tweakable verbosity hints font size */ 0.85rem;
    color: /* @tweakable verbosity hints color */ #666;
    font-style: italic;
}

/* @tweakable creativity slider section styling */
.creativity-section {
    margin-top: /* @tweakable spacing above creativity section */ 1.5rem;
    margin-bottom: /* @tweakable spacing below creativity section */ 1rem;
}

.creativity-label {
    display: block;
    font-weight: /* @tweakable creativity label font weight */ 600;
    margin-bottom: /* @tweakable spacing below creativity label */ 0.75rem;
    color: /* @tweakable creativity label color */ #333;
    font-size: /* @tweakable creativity label font size */ 1rem;
}

/* @tweakable creativity value display styling */
#creativityValue {
    font-weight: /* @tweakable creativity value font weight */ 700;
    color: /* @tweakable creativity value color */ #ff6b6b;
    background: /* @tweakable creativity value background */ rgba(255, 107, 107, 0.1);
    padding: /* @tweakable creativity value padding */ 0.2rem 0.5rem;
    border-radius: /* @tweakable creativity value border radius */ 4px;
    font-size: /* @tweakable creativity value font size */ 0.9rem;
    margin-left: /* @tweakable creativity value left spacing */ 0.5rem;
}

.creativity-slider {
    width: /* @tweakable creativity slider width in container */ 100%;
    height: /* @tweakable creativity slider height */ 8px;
    background: /* @tweakable creativity slider track color */ #e1e5e9;
    border-radius: /* @tweakable creativity slider border radius */ 4px;
    outline: none;
    -webkit-appearance: none;
    flex: /* @tweakable creativity slider flex grow */ 1;
}

/* @tweakable creativity number input styling */
.creativity-number {
    width: /* @tweakable creativity number input width */ 60px;
    height: /* @tweakable creativity number input height */ 40px;
    padding: /* @tweakable creativity number input padding */ 0.5rem;
    border: /* @tweakable creativity number input border */ 2px solid #e1e5e9;
    border-radius: /* @tweakable creativity number input border radius */ 8px;
    font-size: /* @tweakable creativity number input font size */ 0.9rem;
    text-align: /* @tweakable creativity number input text alignment */ center;
    font-weight: /* @tweakable creativity number input font weight */ 600;
    color: /* @tweakable creativity number input text color */ #ff6b6b;
    background: /* @tweakable creativity number input background */ #fff5f5;
    transition: /* @tweakable creativity number input transition */ all 0.2s ease;
}

.creativity-number:focus {
    outline: none;
    border-color: /* @tweakable creativity number input focus border */ #ff6b6b;
    background: /* @tweakable creativity number input focus background */ white;
    box-shadow: /* @tweakable creativity number input focus shadow */ 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.creativity-hints {
    display: flex;
    justify-content: space-between;
    font-size: /* @tweakable creativity hints font size */ 0.85rem;
    color: /* @tweakable creativity hints color */ #666;
    font-style: italic;
}

/* @tweakable dark mode toggle position and styling */
.dark-mode-toggle {
    position: /* @tweakable dark mode toggle position */ absolute;
    top: /* @tweakable dark mode toggle top offset */ 0;
    left: /* @tweakable dark mode toggle left offset */ 0;
    z-index: /* @tweakable dark mode toggle z-index */ 1000;
}

.dark-mode-btn {
    background: /* @tweakable dark mode button background */ rgba(255, 255, 255, 0.2);
    border: /* @tweakable dark mode button border */ 1px solid rgba(255, 255, 255, 0.3);
    color: /* @tweakable dark mode button text color */ white;
    padding: /* @tweakable dark mode button padding */ 0.5rem;
    border-radius: /* @tweakable dark mode button border radius */ 8px;
    cursor: pointer;
    font-weight: /* @tweakable dark mode button font weight */ 500;
    transition: /* @tweakable dark mode button transition */ all 0.3s ease;
    backdrop-filter: /* @tweakable dark mode button backdrop filter */ blur(10px);
    width: /* @tweakable dark mode button width */ 40px;
    height: /* @tweakable dark mode button height */ 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-btn:hover {
    background: /* @tweakable dark mode button hover background */ rgba(255, 255, 255, 0.3);
    transform: /* @tweakable dark mode button hover transform */ translateY(-1px);
}

.dark-mode-icon {
    font-size: /* @tweakable dark mode icon size */ 1.2rem;
    transition: /* @tweakable dark mode icon transition */ transform 0.3s ease;
}

/* @tweakable dark mode color scheme */
body.dark-mode {
    background: /* @tweakable dark mode body background */ linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: /* @tweakable dark mode body text color */ #e1e5e9;
}

body.dark-mode .main-content {
    background: /* @tweakable dark mode main content background */ rgba(42, 42, 58, 0.95);
    border: /* @tweakable dark mode main content border */ 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .upload-area {
    background: /* @tweakable dark mode upload area background */ linear-gradient(135deg, #2a2a3e 0%, #32324a 100%);
    border-color: /* @tweakable dark mode upload border color */ #667eea;
    color: /* @tweakable dark mode upload text color */ #e1e5e9;
}

body.dark-mode .upload-area:hover {
    background: /* @tweakable dark mode upload area hover background */ linear-gradient(135deg, #32324a 0%, #3a3a56 100%);
}

body.dark-mode .prompt-input {
    background: /* @tweakable dark mode prompt input background */ #2a2a3e;
    border-color: /* @tweakable dark mode prompt input border */ #4a4a6a;
    color: /* @tweakable dark mode prompt input text */ #e1e5e9;
}

body.dark-mode .prompt-input:focus {
    background: /* @tweakable dark mode prompt input focus background */ #32324a;
    border-color: /* @tweakable dark mode prompt input focus border */ #667eea;
}

body.dark-mode .result-section {
    background: /* @tweakable dark mode result section background */ linear-gradient(135deg, #2a2a3e 0%, #32324a 100%);
    border-color: /* @tweakable dark mode result section border */ #4a4a6a;
}

body.dark-mode .result-content {
    background: /* @tweakable dark mode result content background */ #1e1e2e;
    border-color: /* @tweakable dark mode result content border */ #4a4a6a;
    color: /* @tweakable dark mode result content text */ #e1e5e9;
}

body.dark-mode .dark-mode-btn {
    background: /* @tweakable dark mode button active background */ rgba(255, 255, 255, 0.1);
}

body.dark-mode .dark-mode-icon {
    transform: /* @tweakable dark mode icon active rotation */ rotate(180deg);
}

/* @tweakable modal overlay styling for name change dialog */
.modal-overlay {
    position: /* @tweakable modal overlay position */ fixed;
    top: /* @tweakable modal overlay top */ 0;
    left: /* @tweakable modal overlay left */ 0;
    width: /* @tweakable modal overlay width */ 100%;
    height: /* @tweakable modal overlay height */ 100%;
    background: /* @tweakable modal overlay background */ rgba(0, 0, 0, 0.5);
    backdrop-filter: /* @tweakable modal overlay backdrop filter */ blur(5px);
    z-index: /* @tweakable modal overlay z-index */ 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: /* @tweakable modal overlay transition */ opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: /* @tweakable modal overlay show opacity */ 1;
}

/* @tweakable modal content styling */
.modal-content {
    background: /* @tweakable modal content background */ white;
    border-radius: /* @tweakable modal content border radius */ 16px;
    padding: /* @tweakable modal content padding */ 2rem;
    max-width: /* @tweakable modal content max width */ 500px;
    width: /* @tweakable modal content width */ 90%;
    max-height: /* @tweakable modal content max height */ 90vh;
    overflow-y: auto;
    box-shadow: /* @tweakable modal content shadow */ 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: /* @tweakable modal content initial transform */ translateY(20px);
    transition: /* @tweakable modal content transition */ transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: /* @tweakable modal content show transform */ translateY(0);
}

/* @tweakable modal title styling */
.modal-title {
    font-size: /* @tweakable modal title font size */ 1.5rem;
    font-weight: /* @tweakable modal title font weight */ 700;
    margin-bottom: /* @tweakable modal title margin bottom */ 1.5rem;
    color: /* @tweakable modal title color */ #333;
    text-align: /* @tweakable modal title alignment */ center;
}

/* @tweakable name change options styling */
.name-change-options {
    display: flex;
    flex-direction: column;
    gap: /* @tweakable name change options gap */ 1.5rem;
    margin-bottom: /* @tweakable name change options margin bottom */ 2rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: /* @tweakable option group gap */ 0.75rem;
}

.option-label {
    font-weight: /* @tweakable option label font weight */ 600;
    color: /* @tweakable option label color */ #333;
    font-size: /* @tweakable option label font size */ 1rem;
}

/* @tweakable radio group styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: /* @tweakable radio group gap */ 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: /* @tweakable radio option gap */ 0.5rem;
    cursor: pointer;
    padding: /* @tweakable radio option padding */ 0.5rem;
    border-radius: /* @tweakable radio option border radius */ 8px;
    transition: /* @tweakable radio option transition */ background-color 0.2s ease;
}

.radio-option:hover {
    background: /* @tweakable radio option hover background */ rgba(102, 126, 234, 0.1);
}

.radio-option input[type="radio"] {
    margin: /* @tweakable radio input margin */ 0;
    accent-color: /* @tweakable radio input accent color */ #667eea;
}

/* @tweakable custom names checkbox styling */
.custom-names-checkbox {
    margin-right: /* @tweakable custom names checkbox margin */ 0.5rem;
    accent-color: /* @tweakable custom names checkbox accent color */ #667eea;
}

/* @tweakable custom names inputs styling */
.custom-names-inputs {
    display: flex;
    flex-direction: column;
    gap: /* @tweakable custom names inputs gap */ 1rem;
    margin-top: /* @tweakable custom names inputs margin top */ 1rem;
    padding: /* @tweakable custom names inputs padding */ 1rem;
    background: /* @tweakable custom names inputs background */ rgba(102, 126, 234, 0.05);
    border-radius: /* @tweakable custom names inputs border radius */ 8px;
    border: /* @tweakable custom names inputs border */ 1px solid rgba(102, 126, 234, 0.2);
}

.name-input-group {
    display: flex;
    flex-direction: column;
    gap: /* @tweakable name input group gap */ 0.5rem;
}

.name-input-label {
    font-weight: /* @tweakable name input label font weight */ 500;
    color: /* @tweakable name input label color */ #333;
    font-size: /* @tweakable name input label font size */ 0.9rem;
}

.name-input {
    padding: /* @tweakable name input padding */ 0.75rem;
    border: /* @tweakable name input border */ 2px solid #e1e5e9;
    border-radius: /* @tweakable name input border radius */ 8px;
    font-size: /* @tweakable name input font size */ 1rem;
    font-family: inherit;
    transition: /* @tweakable name input transition */ all 0.2s ease;
}

.name-input:focus {
    outline: none;
    border-color: /* @tweakable name input focus border color */ #667eea;
    box-shadow: /* @tweakable name input focus shadow */ 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* @tweakable modal actions styling */
.modal-actions {
    display: flex;
    gap: /* @tweakable modal actions gap */ 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: /* @tweakable modal button padding */ 0.75rem 1.5rem;
    border: none;
    border-radius: /* @tweakable modal button border radius */ 8px;
    font-size: /* @tweakable modal button font size */ 1rem;
    font-weight: /* @tweakable modal button font weight */ 600;
    cursor: pointer;
    transition: /* @tweakable modal button transition */ all 0.2s ease;
    min-width: /* @tweakable modal button min width */ 100px;
}

.modal-btn-cancel {
    background: /* @tweakable modal cancel button background */ #e1e5e9;
    color: /* @tweakable modal cancel button color */ #666;
}

.modal-btn-cancel:hover {
    background: /* @tweakable modal cancel button hover background */ #d1d5d9;
}

.modal-btn-confirm {
    background: /* @tweakable modal confirm button background */ linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: /* @tweakable modal confirm button color */ white;
}

.modal-btn-confirm:hover {
    background: /* @tweakable modal confirm button hover background */ linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: /* @tweakable modal confirm button hover transform */ translateY(-1px);
}

.modal-btn-confirm:disabled {
    opacity: /* @tweakable modal confirm button disabled opacity */ 0.7;
    cursor: not-allowed;
    transform: none;
}

/* @tweakable dark mode modal styling */
body.dark-mode .modal-content {
    background: /* @tweakable dark mode modal content background */ #2a2a3e;
    color: /* @tweakable dark mode modal content color */ #e1e5e9;
}

body.dark-mode .modal-title {
    color: /* @tweakable dark mode modal title color */ #e1e5e9;
}

body.dark-mode .option-label {
    color: /* @tweakable dark mode option label color */ #e1e5e9;
}

body.dark-mode .name-input-label {
    color: /* @tweakable dark mode name input label color */ #e1e5e9;
}

body.dark-mode .name-input {
    background: /* @tweakable dark mode name input background */ #1e1e2e;
    border-color: /* @tweakable dark mode name input border */ #4a4a6a;
    color: /* @tweakable dark mode name input color */ #e1e5e9;
}

body.dark-mode .name-input:focus {
    border-color: /* @tweakable dark mode name input focus border */ #667eea;
    background: /* @tweakable dark mode name input focus background */ #32324a;
}

body.dark-mode .custom-names-inputs {
    background: /* @tweakable dark mode custom names inputs background */ rgba(102, 126, 234, 0.1);
    border-color: /* @tweakable dark mode custom names inputs border */ rgba(102, 126, 234, 0.3);
}

body.dark-mode .radio-option:hover {
    background: /* @tweakable dark mode radio option hover background */ rgba(102, 126, 234, 0.15);
}

/* @tweakable wingdings/undertale theme integration */
body.wingdings-mode {
    background: /* @tweakable wingdings mode background color */ black !important;
    color: /* @tweakable wingdings mode text color */ white !important;
    font-family: /* @tweakable wingdings mode font family */ "Determination Sans", "Determination Mono", "8-bit Operator", "FixedSys", Arial, sans-serif !important;
}

body.wingdings-mode .container {
    background: /* @tweakable wingdings mode container background */ transparent !important;
}

body.wingdings-mode .hero {
    background: /* @tweakable wingdings mode hero background */ transparent !important;
}

body.wingdings-mode .title {
    background: /* @tweakable wingdings mode title background */ transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: /* @tweakable wingdings mode title color */ #fff434 !important;
    font-family: /* @tweakable wingdings mode title font */ "Monster Friend Fore", "Monster Friend Back", Arial, sans-serif !important;
    text-shadow: /* @tweakable wingdings mode title shadow */ 2px 2px 0 #f68228 !important;
}

body.wingdings-mode .subtitle {
    color: /* @tweakable wingdings mode subtitle color */ #f68228 !important;
    font-family: /* @tweakable wingdings mode subtitle font */ MNC, Broadway, "Arial Black", Arial, sans-serif !important;
}

body.wingdings-mode .main-content {
    background: /* @tweakable wingdings mode main content background */ rgba(0, 0, 0, 0.8) !important;
    border: /* @tweakable wingdings mode main content border */ 3px solid #fff434 !important;
    border-radius: /* @tweakable wingdings mode main content border radius */ 0 !important;
}

body.wingdings-mode .upload-area {
    background: /* @tweakable wingdings mode upload area background */ rgba(246, 130, 40, 0.2) !important;
    border: /* @tweakable wingdings mode upload area border */ 3px dashed #f68228 !important;
    border-radius: /* @tweakable wingdings mode upload area border radius */ 0 !important;
    color: /* @tweakable wingdings mode upload area text */ white !important;
}

body.wingdings-mode .upload-area:hover {
    background: /* @tweakable wingdings mode upload area hover background */ rgba(255, 244, 52, 0.2) !important;
    border-color: /* @tweakable wingdings mode upload area hover border */ #fff434 !important;
}

body.wingdings-mode .prompt-input,
body.wingdings-mode .verbosity-number,
body.wingdings-mode .creativity-number,
body.wingdings-mode .name-input {
    background: /* @tweakable wingdings mode input background */ black !important;
    border: /* @tweakable wingdings mode input border */ 2px solid #f68228 !important;
    border-radius: /* @tweakable wingdings mode input border radius */ 0 !important;
    color: /* @tweakable wingdings mode input text */ white !important;
    font-family: /* @tweakable wingdings mode input font */ "Determination Mono", "Determination Sans", monospace !important;
}

body.wingdings-mode .prompt-input:focus,
body.wingdings-mode .verbosity-number:focus,
body.wingdings-mode .creativity-number:focus,
body.wingdings-mode .name-input:focus {
    border-color: /* @tweakable wingdings mode input focus border */ #fff434 !important;
    box-shadow: /* @tweakable wingdings mode input focus shadow */ 0 0 0 3px rgba(255, 244, 52, 0.3) !important;
}

body.wingdings-mode .preset-btn {
    background: /* @tweakable wingdings mode preset button background */ transparent !important;
    border: /* @tweakable wingdings mode preset button border */ 2px solid #f68228 !important;
    border-radius: /* @tweakable wingdings mode preset button border radius */ 0 !important;
    color: /* @tweakable wingdings mode preset button text */ #f68228 !important;
    font-family: /* @tweakable wingdings mode preset button font */ Mercy, "Determination Sans", monospace !important;
    text-transform: /* @tweakable wingdings mode preset button transform */ uppercase !important;
}

body.wingdings-mode .preset-btn:hover {
    background: /* @tweakable wingdings mode preset button hover background */ #f68228 !important;
    color: /* @tweakable wingdings mode preset button hover text */ black !important;
    border-color: /* @tweakable wingdings mode preset button hover border */ #fff434 !important;
}

body.wingdings-mode .analyze-btn,
body.wingdings-mode .copy-btn,
body.wingdings-mode .save-btn,
body.wingdings-mode .change-name-btn,
body.wingdings-mode .regenerate-btn {
    background: /* @tweakable wingdings mode action button background */ #f68228 !important;
    border: /* @tweakable wingdings mode action button border */ 2px solid #fff434 !important;
    border-radius: /* @tweakable wingdings mode action button border radius */ 0 !important;
    color: /* @tweakable wingdings mode action button text */ black !important;
    font-family: /* @tweakable wingdings mode action button font */ Mercy, "Determination Sans", monospace !important;
    text-transform: /* @tweakable wingdings mode action button transform */ uppercase !important;
}

body.wingdings-mode .analyze-btn:hover:not(:disabled),
body.wingdings-mode .copy-btn:hover,
body.wingdings-mode .save-btn:hover,
body.wingdings-mode .change-name-btn:hover:not(:disabled),
body.wingdings-mode .regenerate-btn:hover:not(:disabled) {
    background: /* @tweakable wingdings mode action button hover background */ #fff434 !important;
    color: /* @tweakable wingdings mode action button hover text */ black !important;
    transform: /* @tweakable wingdings mode action button hover transform */ none !important;
    box-shadow: /* @tweakable wingdings mode action button hover shadow */ none !important;
}

body.wingdings-mode .regenerate-prompt-btn {
    background: /* @tweakable wingdings mode regenerate prompt button background */ #f68228 !important;
    border: /* @tweakable wingdings mode regenerate prompt button border */ 2px solid #fff434 !important;
    border-radius: /* @tweakable wingdings mode regenerate prompt button border radius */ 0 !important;
    color: /* @tweakable wingdings mode regenerate prompt button text */ black !important;
    font-family: /* @tweakable wingdings mode regenerate prompt button font */ Mercy, "Determination Sans", monospace !important;
    text-transform: /* @tweakable wingdings mode regenerate prompt button transform */ uppercase !important;
}

body.wingdings-mode .regenerate-prompt-btn:hover:not(:disabled) {
    background: /* @tweakable wingdings mode regenerate prompt button hover background */ #fff434 !important;
    color: /* @tweakable wingdings mode regenerate prompt button hover text */ black !important;
    transform: /* @tweakable wingdings mode regenerate prompt button hover transform */ none !important;
    box-shadow: /* @tweakable wingdings mode regenerate prompt button hover shadow */ none !important;
}

body.wingdings-mode .regenerate-prompt-input {
    background: /* @tweakable wingdings mode regenerate prompt input background */ black !important;
    border: /* @tweakable wingdings mode regenerate prompt input border */ 2px solid #f68228 !important;
    border-radius: /* @tweakable wingdings mode regenerate prompt input border radius */ 0 !important;
    color: /* @tweakable wingdings mode regenerate prompt input text */ white !important;
    font-family: /* @tweakable wingdings mode regenerate prompt input font */ "Determination Mono", "Determination Sans", monospace !important;
}

body.wingdings-mode .regenerate-prompt-input:focus {
    border-color: /* @tweakable wingdings mode regenerate prompt input focus border */ #fff434 !important;
    box-shadow: /* @tweakable wingdings mode regenerate prompt input focus shadow */ 0 0 0 3px rgba(255, 244, 52, 0.3) !important;
}

/* @tweakable hide dark mode toggle in wingdings mode */
body.wingdings-mode .dark-mode-toggle {
    display: /* @tweakable wingdings mode dark mode toggle visibility */ none !important;
}

/* @tweakable unlock notification styling */
.unlock-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.unlock-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.unlock-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.unlock-icon {
    font-size: 3rem;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.unlock-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.unlock-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* @tweakable unlocked slider styling */
.verbosity-slider.unlocked,
.creativity-slider.unlocked {
    background: linear-gradient(90deg, #e1e5e9 0%, #667eea 50%, #ff6b6b 100%);
    height: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.verbosity-number.unlocked,
.creativity-number.unlocked {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    font-weight: 700;
}

.verbosity-number.unlocked:focus,
.creativity-number.unlocked:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* @tweakable unlocked slider thumb styling */
.verbosity-slider.unlocked::-webkit-slider-thumb,
.creativity-slider.unlocked::-webkit-slider-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-appearance: none;
}

.verbosity-slider.unlocked::-moz-range-thumb,
.creativity-slider.unlocked::-moz-range-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* @tweakable dark mode unlock notification */
body.dark-mode .unlock-notification {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

/* @tweakable wingdings mode unlock notification */
body.wingdings-mode .unlock-notification {
    background: black !important;
    border: 3px solid #f68228 !important;
    border-radius: 0 !important;
    font-family: "Determination Sans", monospace !important;
}

body.wingdings-mode .unlock-text h3 {
    color: #fff434 !important;
    font-family: "Monster Friend Fore", Arial, sans-serif !important;
}

body.wingdings-mode .unlock-text p {
    color: #f68228 !important;
}

/* @tweakable slider container layout for combined slider and number input */
.slider-container {
    display: /* @tweakable slider container display */ flex;
    align-items: /* @tweakable slider container alignment */ center;
    gap: /* @tweakable spacing between slider and number input */ 1rem;
    margin-bottom: /* @tweakable spacing below slider container */ 0.5rem;
}

/* @tweakable multiple image support styling */
.image-preview-container {
    position: relative;
    border-radius: /* @tweakable image container border radius */ 16px;
    overflow: hidden;
    box-shadow: /* @tweakable image container shadow */ 0 10px 30px rgba(0,0,0,0.2);
    max-width: 100%;
}

.image-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn {
    position: /* @tweakable carousel button position */ absolute;
    top: /* @tweakable carousel button vertical position */ 50%;
    transform: /* @tweakable carousel button transform */ translateY(-50%);
    background: /* @tweakable carousel button background */ rgba(0, 0, 0, 0.7);
    color: /* @tweakable carousel button text color */ white;
    border: none;
    border-radius: /* @tweakable carousel button border radius */ 50%;
    width: /* @tweakable carousel button size */ 40px;
    height: /* @tweakable carousel button size */ 40px;
    font-size: /* @tweakable carousel button icon size */ 1.5rem;
    cursor: pointer;
    transition: /* @tweakable carousel button transition */ all 0.2s ease;
    z-index: /* @tweakable carousel button z-index */ 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: /* @tweakable carousel previous button offset */ 10px;
}

.carousel-next {
    right: /* @tweakable carousel next button offset */ 10px;
}

.carousel-btn:hover {
    background: /* @tweakable carousel button hover background */ rgba(0, 0, 0, 0.9);
    transform: /* @tweakable carousel button hover transform */ translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: /* @tweakable carousel button disabled opacity */ 0.3;
    cursor: not-allowed;
}

.image-counter {
    text-align: center;
    margin: /* @tweakable image counter margin */ 0.75rem 0;
    font-weight: /* @tweakable image counter font weight */ 600;
    color: /* @tweakable image counter color */ #666;
    font-size: /* @tweakable image counter font size */ 0.9rem;
}

body.dark-mode .image-counter {
    color: /* @tweakable dark mode image counter color */ #b3b3cc;
}

.image-thumbnails {
    display: flex;
    gap: /* @tweakable thumbnail spacing */ 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: /* @tweakable thumbnails top spacing */ 1rem;
    max-height: /* @tweakable thumbnails max height */ 100px;
    overflow-y: auto;
}

.thumbnail {
    width: /* @tweakable thumbnail size */ 60px;
    height: /* @tweakable thumbnail size */ 60px;
    border-radius: /* @tweakable thumbnail border radius */ 8px;
    object-fit: cover;
    cursor: pointer;
    border: /* @tweakable thumbnail border */ 2px solid transparent;
    transition: /* @tweakable thumbnail transition */ all 0.2s ease;
}

.thumbnail:hover {
    transform: /* @tweakable thumbnail hover transform */ scale(1.05);
    border-color: /* @tweakable thumbnail hover border */ #667eea;
}

.thumbnail.active {
    border-color: /* @tweakable thumbnail active border */ #667eea;
    box-shadow: /* @tweakable thumbnail active shadow */ 0 0 8px rgba(102, 126, 234, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-btn {
        white-space: /* @tweakable mobile improve character bio button text wrapping */ normal;
        text-align: /* @tweakable mobile improve character bio button text alignment */ center;
        min-height: /* @tweakable mobile improve character bio button minimum height */ 2.5rem;
        display: /* @tweakable mobile improve character bio button display */ flex;
        align-items: /* @tweakable mobile improve character bio button vertical alignment */ center;
        justify-content: /* @tweakable mobile improve character bio button horizontal alignment */ center;
    }

    .result-actions {
        flex-direction: /* @tweakable mobile result actions layout */ column;
    }

    .copy-btn, .regenerate-btn {
        flex: /* @tweakable mobile action buttons flex */ none;
        width: /* @tweakable mobile action buttons width */ 100%;
    }
}

/* @tweakable chat toggle styling */
.chat-toggle {
    position: /* @tweakable chat toggle position */ fixed;
    bottom: /* @tweakable chat toggle bottom offset */ 20px;
    right: /* @tweakable chat toggle right offset */ 20px;
    width: /* @tweakable chat toggle size */ 48px;
    height: /* @tweakable chat toggle size */ 48px;
    border-radius: 50%;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* @tweakable chat window styling */
.chat-window {
    position: /* @tweakable chat window position */ fixed;
    bottom: /* @tweakable chat window bottom offset */ 84px;
    right: /* @tweakable chat window right offset */ 20px;
    width: /* @tweakable chat window width */ 320px;
    max-height: /* @tweakable chat window max height */ 60vh;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* @tweakable chat header styling */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: /* @tweakable chat header padding */ 0.5rem 0.75rem;
    background: #f8f9ff;
    border-bottom: 1px solid #e1e5e9;
    font-weight: 700;
}

.chat-close { background:none;border:none;font-size:1.25rem;cursor:pointer;color:#666; }

/* @tweakable chat messages styling */
.chat-messages {
    padding: /* @tweakable chat messages padding */ 0.75rem;
    overflow-y: auto;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
}

.chat-msg {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.chat-msg.user { align-self: flex-end; background:#e8ebff; color:#2b2f77; }
.chat-msg.ai { align-self: flex-start; background:#f3f4f6; color:#1f2937; }

/* @tweakable chat input row styling */
.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-top: 1px solid #e1e5e9;
    background: #fff;
}

.chat-input {
    flex: 1;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    outline: none;
}

.chat-send {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: #667eea;
    color: #fff;
    cursor: pointer;
}

/* @tweakable dark mode chat styling */
body.dark-mode .chat-window { background:#2a2a3e; border-color:#4a4a6a; }
body.dark-mode .chat-header { background:#32324a; border-color:#4a4a6a; color:#e1e5e9; }
body.dark-mode .chat-msg.user { background:#32324a; color:#e1e5e9; }
body.dark-mode .chat-msg.ai { background:#1e1e2e; color:#e1e5e9; }

/* @tweakable wingdings mode chat styling */
body.wingdings-mode .chat-window { background:black !important; border:2px solid #fff434 !important; border-radius:0 !important; }
body.wingdings-mode .chat-msg.user { background:#f68228 !important; color:black !important; }
body.wingdings-mode .chat-msg.ai { background:#111 !important; color:#fff !important; }