/* Extensiones puntuales a la geometría original. Paleta única en theme.css. */
#sff .profile-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.35;margin:3px 0;overflow-wrap:anywhere}
#sff .person-info{right:10px;min-width:0}
#sff .person-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sff .profile-title,#sff .profile-about,#sff .detail-title h1{overflow-wrap:anywhere}
#sff .profile-about{white-space:pre-wrap}
#sff .profile-title{font-size:23px;line-height:1.3}
#sff .profile-tags{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 20px}
#sff .form-fields{border:0;padding:0;margin:0;min-width:0}
#sff .seeking-options{border:1px solid var(--palette-line);border-radius:10px;padding:12px;min-width:0}
#sff .seeking-options legend{font-size:13px;font-weight:600;padding:0 4px}
#sff .profile-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
#sff .gallery-item{min-width:0}
#sff .gallery-image{height:170px;overflow:hidden;border-radius:10px}
#sff .gallery-actions{display:grid;gap:6px;margin-top:6px}
#sff .gallery-actions .btn{padding:8px;min-height:44px;font-size:12px}
#sff .gallery-actions .action-pair{margin:0}
#sff .gallery-actions .icon-btn{width:100%;min-width:0;border:1px solid var(--palette-line);border-radius:8px}
#sff .gallery-replace{min-height:44px;padding:10px 6px;display:grid;place-items:center;font-size:12px;border:1px solid var(--palette-line);border-radius:8px;position:relative;overflow:hidden}
#sff .gallery-replace input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
#sff input[type=file]{display:block;width:100%;min-width:0;margin-top:8px}
#sff .crop-stage{width:min(100%,270px);aspect-ratio:3/4;margin:0 auto;overflow:hidden;border-radius:10px;border:1px solid var(--palette-line);touch-action:none}
#sff #crop-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:move}
#sff .crop-preview-row{display:flex;align-items:center;gap:14px;margin:12px 0}
#sff #crop-thumb{width:71px;height:100px;flex-shrink:0;object-fit:cover;border-radius:7px}
#sff .crop-preview-row strong{font-size:13px}
#sff .crop-preview-row p{margin:6px 0}
#sff .crop-editor .field{margin-top:12px}
#sff .crop-editor input[type=range]{padding:0;min-height:44px;accent-color:var(--palette-accent)}
#sff .crop-editor{max-height:90dvh;overflow-y:auto}
#sff .crop-editor .sheet-title{margin-bottom:10px}
#sff .crop-editor .action-pair{position:sticky;bottom:0;padding:8px 0;background:var(--palette-surface)}
#sff .btn:disabled,#sff input:disabled{opacity:.5;cursor:not-allowed}
#sff .grow{min-width:0}
#sff .chat-header h3{overflow-wrap:anywhere}
#sff .bubble{overflow-wrap:anywhere;min-width:0}
#sff .switch span:after{background:var(--palette-surface)!important;box-shadow:0 1px 3px var(--palette-line)}
.demo-notice{font:13px/1.4 system-ui,sans-serif;background:var(--palette-paper);color:var(--palette-ink);border-bottom:1px solid var(--palette-line);padding:10px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;overflow-wrap:anywhere}
.demo-notice select,.demo-notice button{font:inherit;min-height:36px;max-width:100%;color:inherit;background:var(--palette-paper);border:1px solid var(--palette-accent);border-radius:8px;padding:6px}
@media(max-width:500px){#sff .profile-top{flex-wrap:wrap}#sff .detail-title h1{font-size:32px}#sff .notice span{min-width:0;overflow-wrap:anywhere}#sff .crop-editor{padding:16px}#sff .welcome-choices{grid-template-columns:1fr}#sff .settings-grid>*{min-width:0}}
