.character-settings { color: var(--text-primary, #f8fafc); min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.character-settings h3, .character-settings h4 { margin: 0 0 .65rem; }
.character-help { color: var(--text-secondary, #b0bfd1); font-size: .9rem; line-height: 1.5; }
.character-actions, .character-previews { display: flex; flex-wrap: wrap; gap: .65rem; }
.character-list { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 1rem; margin-top: 1rem; }
.character-card { min-width: 0; max-width: 100%; box-sizing: border-box; padding: 1rem; background: var(--bg-card, #172131); border: 1px solid var(--border-card, #3b4a5a); border-radius: 16px; }
.character-field { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .35rem; margin: .8rem 0; font-size: .95rem; }
.character-field input, .character-field textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; font: inherit; padding: .75rem; border: 1px solid #60718a; border-radius: 10px; background: var(--bg-phone, #0e121e); color: #f8fafc; }
.character-field textarea { resize: vertical; min-height: 110px; }
.character-button { min-height: 44px; min-width: 0; max-width: 100%; box-sizing: border-box; white-space: normal; padding: .6rem .85rem; margin: .2rem .35rem .2rem 0; font: inherit; font-size: .9rem; border: 1px solid #60718a; border-radius: 10px; background: #253c58; color: #f8fafc; cursor: pointer; }
.character-button:disabled { opacity: .55; cursor: default; }
.character-button:focus-visible, .character-field input:focus-visible, .character-field textarea:focus-visible, .character-upload input:focus-visible { outline: 3px solid var(--accent-green, #37775b); outline-offset: 3px; }
.character-upload { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .5rem; margin-top: 1rem; font-size: .95rem; }
.character-upload input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 44px; font: inherit; color: #f8fafc; }
.character-upload input::file-selector-button { min-height: 44px; max-width: 100%; white-space: normal; padding: .5rem .65rem; font: inherit; color: #f8fafc; background: #253c58; border: 1px solid #60718a; border-radius: 8px; }
.character-approved { margin: .5rem 0 1rem; }
.character-approved img { display: block; width: min(100%, 220px); height: auto; border-radius: 12px; }
.character-approved figcaption { margin-top: .4rem; font-size: .85rem; color: var(--text-secondary, #b0bfd1); }
.character-previews { min-width: 0; max-width: 100%; }
.character-settings figure { min-width: 0; max-width: 100%; margin-left: 0; margin-right: 0; }
.character-previews figure { width: min(100%, 170px); margin: .65rem 0; }
.character-previews img { display: block; width: min(100%, 170px); height: auto; border-radius: 10px; }
.character-status { min-height: 1.5em; margin: .8rem 0; line-height: 1.5; }
.character-error { color: var(--accent-red, #fb7185); }
.character-history summary { padding: .6rem 0; cursor: pointer; font-size: .9rem; }
.character-suggestions { margin-top: 1.2rem; }
.character-suggestion { display: grid; gap: .35rem; padding: .8rem 0; border-bottom: 1px solid var(--border-color, #ccd5d9); }
@media (max-width: 360px) { .character-card { padding: .75rem; } .character-button { display: block; width: 100%; margin: .4rem 0; } }
.character-start { border-color: #5c82a1; background: #192c40; }
.character-step-title { margin: 1rem 0 .45rem; color: #d7e9ff; font-size: 1rem; font-weight: 650; }
.character-start .character-step-title { margin-top: 0; }
.character-photo-step { min-width: 0; }
.character-upload strong { color: #f8fafc; font-size: 1.05rem; }
.character-selected-photo:empty { display: none; }
.character-editor, .character-manual { min-width: 0; padding: .35rem 0; }
.character-editor > summary, .character-manual > summary { min-height: 44px; padding: .7rem 0; box-sizing: border-box; cursor: pointer; color: #cde3ff; font-weight: 600; }
.character-settings [hidden] { display: none !important; }
