.chat-profile-list-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;padding-bottom:12px;display:flex}.chat-profile-list-heading h2{font:600 16px/24px var(--font-ui);margin:0}.chat-profile-list-heading h2 span{color:var(--text-muted);margin-left:6px;font-size:13px}.chat-profile-list{margin:0;padding:0;list-style:none}.chat-profile-row{box-sizing:border-box;border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) 40px;align-items:center;gap:8px;height:72px;padding:11px 0 12px;display:grid}.chat-profile-avatar{background:var(--surface-subtle);width:48px;height:48px;color:var(--text-soft);font:600 20px/1 var(--font-ui);border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden}.chat-profile-avatar>svg{width:24px;height:24px}.chat-profile-avatar .source-studio-portrait{width:100%;height:100%;display:flex;overflow:hidden}.chat-profile-avatar img{object-fit:cover;width:100%;height:100%}.chat-profile-avatar .source-studio-portrait-placeholder{justify-content:center;align-items:center;width:100%;font-size:0;display:flex}.chat-profile-avatar .source-studio-portrait-placeholder svg{width:24px;height:24px}.chat-profile-row-copy{min-width:0}.chat-profile-row-copy>span:first-child{flex-wrap:nowrap;align-items:center;gap:8px;display:flex}.chat-profile-row-copy strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;font:600 15px/24px var(--font-ui);overflow:hidden}.chat-profile-default{color:var(--brand-hover);background:var(--brand-soft);font:600 12px/16px var(--font-ui);border-radius:6px;flex:none;padding:2px 6px}.chat-profile-description{text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font:400 13px/20px var(--font-ui);margin:0;display:block;overflow:hidden}.chat-profile-row-actions{position:relative}.chat-profiles .button,.chat-profile-name-sheet .button{min-height:44px}.chat-profile-feedback{background:var(--surface-subtle);border-radius:12px;margin:16px 0;padding:14px 16px}.chat-profile-feedback p{color:var(--text-soft);font:400 13px/22px var(--font-ui);margin:0}.chat-profile-feedback .button{margin-top:10px}.chat-profile-empty{text-align:center;justify-items:center;gap:8px;padding:48px 16px;display:grid}.chat-profile-empty>svg{width:28px;height:28px;color:var(--text-muted)}.chat-profile-empty h3{font:600 16px/24px var(--font-ui);margin:8px 0 0}.chat-profile-empty p{color:var(--text-muted);font:400 13px/22px var(--font-ui);margin:0}.chat-profile-editor{gap:20px;display:grid}.chat-profile-field{color:var(--text);font:500 14px/22px var(--font-ui);display:block}.chat-profile-field>span{color:var(--text-soft);margin-left:6px;font-size:12px}.chat-profile-field :is(input,textarea,select){border:1px solid var(--border-strong);width:100%;min-width:0;min-height:48px;color:var(--text);background:var(--surface);font:400 15px/24px var(--font-ui);border-radius:12px;margin-top:8px;padding:11px 14px;display:block}.chat-profile-field textarea{resize:vertical}.chat-profile-help{color:var(--text-muted);font:400 12px/20px var(--font-ui);overflow-wrap:anywhere;margin:0}.chat-profile-editor-actions{flex-wrap:wrap;gap:8px;display:flex}.chat-profiles :is(button,a,input,textarea,select):focus-visible{outline:3px solid var(--focus);outline-offset:3px}.chat-profile-name-sheet{gap:20px;display:grid}.chat-profile-name-sheet>p{color:var(--text-soft);font:400 14px/22px var(--font-ui);overflow-wrap:anywhere;margin:0}.chat-profile-management-link{color:var(--text-soft);text-decoration:underline}.chat-profile-management-link:focus-visible{color:var(--text)}@media (hover:hover){.chat-profile-management-link:hover{color:var(--text)}}.chat-profile-overview-copy{min-width:0}.chat-profile-overview-copy small{text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font:400 12px/18px var(--font-ui);margin-top:4px;display:block;overflow:hidden}.chat-profile-editor .source-persona-icon{gap:12px;min-width:0;display:grid}.chat-profile-image-heading{color:var(--text);font:500 14px/22px var(--font-ui)}.chat-profile-image-grid{overscroll-behavior:contain;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;max-height:280px;padding:4px;display:grid;overflow-y:auto}.chat-profile-image-choice{aspect-ratio:1;border:2px solid var(--border);background:var(--surface-subtle);width:100%;min-width:0;color:var(--text);font:500 12px/20px var(--font-ui);cursor:pointer;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:8px;display:flex;position:relative}.chat-profile-image-choice img{object-fit:cover;border-radius:10px;width:100%;height:100%;position:absolute;inset:0}.chat-profile-image-choice[aria-pressed=true]{border-color:var(--brand)}.chat-profile-image-choice:disabled{opacity:.5;cursor:not-allowed}.chat-profile-image-choice:focus-visible{outline:3px solid var(--focus);outline-offset:1px}.chat-profile-image-name{text-overflow:ellipsis;white-space:nowrap;background:var(--surface-raised);color:var(--text-soft);border-radius:0 0 10px 10px;padding:2px 4px;font-size:11px;position:absolute;inset:auto 0 0;overflow:hidden}.chat-profile-image-badge{background:var(--brand);color:var(--text-on-brand);border-radius:4px;padding:0 4px;font-size:10px;line-height:18px;position:absolute;top:4px;right:4px}.chat-profile-image-upload>span{font:400 24px/28px var(--font-ui)}.chat-profile-image-unavailable{color:var(--text-muted)}@media (min-width:701px){.chat-profile-image-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.chat-profile-editor .source-persona-avatar{background:var(--surface-subtle);border-radius:16px;width:80px;height:80px;overflow:hidden}.chat-profile-editor .source-persona-avatar .source-studio-portrait{width:100%;height:100%}.chat-profile-editor .source-persona-avatar img{object-fit:cover;width:100%;height:100%}.chat-profile-editor .source-studio-portrait-placeholder{height:100%;color:var(--text-muted);align-content:center;justify-items:center;gap:6px;font-size:10px;display:grid}.chat-profile-editor .source-studio-portrait-placeholder svg{width:22px;height:22px}.chat-profile-editor .creator-work-field{color:var(--text);font:500 14px/22px var(--font-ui);gap:8px;display:grid}.chat-profile-editor .creator-work-field :is(input,select){box-sizing:border-box;border:1px solid var(--border-strong);background:var(--surface);width:100%;min-height:48px;color:var(--text);font:400 15px/24px var(--font-ui);border-radius:12px;padding:11px 14px}.chat-profile-editor .creator-work-actions{flex-wrap:wrap;gap:8px;display:flex}.chat-profile-editor :is(.creator-work-help,.source-persona-icon>p){color:var(--text-muted);font:400 12px/20px var(--font-ui);margin:0}.chat-profile-name-sheet .chat-profile-editor-actions{flex-direction:row;gap:8px;display:flex}.chat-profile-name-sheet .chat-profile-editor-actions>.button{flex:1 1 0;min-width:0;min-height:44px}.chat-profile-name-sheet .chat-profile-editor-actions>.button-brand{order:1}.chat-profile-row-main{width:100%;min-width:0;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;padding:0;display:grid}.chat-profile-more{border-radius:var(--radius-md);width:40px;min-height:44px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex:0 0 40px;justify-content:center;align-items:center;display:inline-flex}.chat-profile-more svg{width:20px;height:20px}@media (hover:hover){.chat-profile-more:hover{color:var(--text);background:var(--surface-subtle)}}.chat-profile-more:where(:not(:disabled)):active{background:var(--surface-pressed)}@media (hover:hover){.chat-profile-menu-items button:hover{color:var(--text);background:var(--surface-subtle)}}.chat-profile-menu-items button:where(:not(:disabled)):where(:not(.button-danger,.chat-profile-menu-delete)):active{background:var(--surface-pressed)}.chat-profile-menu{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-raised);width:200px;max-width:calc(100vw - 16px);color:var(--text);box-shadow:var(--shadow-md);margin:0;padding:4px;position:fixed;inset:auto}.chat-profile-menu-items{gap:4px;display:grid}.chat-profile-menu-items button{border-radius:var(--radius-sm);width:100%;min-height:44px;color:var(--text-soft);text-align:left;font:500 14px/22px var(--font-ui);cursor:pointer;background:0 0;border:0;padding:8px 12px;display:block}.chat-profile-menu-items .chat-profile-menu-delete{color:var(--danger)}.chat-profile-add{border:1px solid var(--border);width:100%;height:56px;color:var(--text);font:600 15px/24px var(--font-ui);cursor:pointer;background:0 0;border-radius:12px;justify-content:center;align-items:center;gap:8px;margin-top:16px;padding:12px;display:flex}.chat-profile-add svg{width:20px;height:20px}.chat-profile-field>small{color:var(--text-muted);font:400 12px/20px var(--font-ui);margin-left:6px;display:inline}.chat-profile-field>.chat-profile-count{text-align:right;color:var(--text-muted);font:400 12px/20px var(--font-ui);margin:4px 0 0;display:block}.chat-profile-field>.is-over-limit,.chat-profile-limit-notice{color:var(--danger)}.chat-profile-limit-notice{font:400 13px/20px var(--font-ui);margin:0}.chat-profile-default-switch{color:var(--text);font:500 14px/22px var(--font-ui);justify-content:space-between;align-items:center;gap:16px;display:flex}.chat-profile-default-switch small{color:var(--text-muted);font:400 13px/20px var(--font-ui);margin-top:4px;display:block}.chat-profile-default-switch input{appearance:none;border:1px solid var(--border-strong);background:var(--surface-subtle);cursor:pointer;border-radius:999px;flex:none;width:40px;height:24px;margin:0}.chat-profile-default-switch input:before{content:"";background:var(--text-muted);border-radius:50%;width:18px;height:18px;margin:2px;transition:transform .15s;display:block}.chat-profile-default-switch input:checked{background:var(--brand);border-color:var(--brand)}.chat-profile-default-switch input:checked:before{background:var(--text-on-brand);transform:translate(16px)}.chat-profile-editor-sheet .chat-profile-editor-actions{background:var(--surface-raised);padding:12px 0 24px;position:sticky;bottom:-24px}.chat-profile-editor-sheet .chat-profile-editor-actions>.button{width:100%;min-height:48px}.chat-profile-editor-sheet :is(button,input,textarea,select):focus-visible{outline:3px solid var(--focus);outline-offset:3px}.chat-profile-editor-sheet{border-radius:16px 16px 0 0}@media (min-width:701px){.chat-profile-editor-sheet{border-radius:16px;max-width:520px}}.reader-stage-personas{border:0;gap:8px;min-width:0;margin:0;padding:0;display:grid}.reader-stage-persona-row{border:1.5px solid var(--border);min-height:72px;color:var(--text);text-align:left;font:500 14px/20px var(--font-ui);cursor:pointer;background:0 0;border-radius:12px;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:12px;padding:12px;display:grid}.reader-stage-persona-row[aria-checked=true]{border-color:var(--brand)}.reader-stage-persona-row>svg{width:20px;height:20px;color:var(--brand)}.reader-stage-persona-row .chat-profile-avatar{width:40px;height:40px}.reader-stage-persona-row .chat-profile-row-copy{gap:4px;display:grid}.reader-stage-persona-row .chat-profile-row-copy strong{font-size:14px;line-height:20px}.reader-stage-personas .chat-profile-add{margin-top:0}.reader-stage-personas [role=radiogroup]{gap:8px;display:grid}@media (hover:hover){.chat-profile-menu-items .chat-profile-menu-delete:hover{color:var(--danger);background:var(--danger-soft)}}.chat-profile-menu-items .chat-profile-menu-delete:where(:not(:disabled)):active{color:var(--danger);background:var(--danger-soft)}
