.chats-page{background-color:var(--bg);color:var(--text);min-height:100vh}.chats-main,.chats-page .app-main{width:100%;min-width:0;min-height:calc(100vh - 64px);padding:var(--space-4) 0 0;box-sizing:border-box;flex-direction:column;flex:1;align-items:center;display:flex}@media (width>=768px){.chats-main,.chats-page .app-main{width:calc(100% - 72px);padding:var(--space-8) 0 0;min-height:100vh;margin-left:72px}}@media (width<=767px){.chats-main,.chats-page .app-main{width:100%;margin-left:0}}.chats-container{gap:var(--space-4);width:100%;max-width:768px;padding:0 var(--space-4);box-sizing:border-box;flex-direction:column;flex:1 0 auto;display:flex}@media (width>=768px){.chats-container{gap:var(--space-5,1.25rem);max-width:960px;padding:0 var(--space-6)}}.chats-main .footer{width:100%;margin-top:auto}.chats-header{justify-content:space-between;align-items:flex-start;gap:var(--space-4);padding-bottom:var(--space-1);display:flex}.chats-header__titles{gap:var(--space-1);flex-direction:column;display:flex}.chats-header__title{font-family:var(--font-ui);color:var(--text);letter-spacing:-.02em;margin:0;font-size:1.85rem;font-weight:800;line-height:1.15}.chats-header__subtitle{font-family:var(--font-dialogue);color:var(--muted);margin:0;font-size:.9375rem;line-height:1.45}.chats-header__actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.chats-new-btn{background-color:var(--accent);font-family:var(--font-ui);border-radius:var(--radius-md);cursor:pointer;justify-content:center;align-items:center;gap:var(--space-2);min-height:42px;box-shadow:var(--shadow-primary);-webkit-user-select:none;user-select:none;border:none;padding:.625rem 1.15rem;font-size:.9375rem;font-weight:700;text-decoration:none;transition:transform .18s,opacity .18s,box-shadow .18s;display:inline-flex;color:#131110!important}.chats-new-btn span{color:#131110!important}.chats-new-btn i,.chats-new-btn svg{flex-shrink:0;width:16px;height:16px;display:block;stroke:#131110!important}.chats-new-btn:hover{opacity:.94;box-shadow:0 6px 18px var(--accent-alpha-35);transform:translateY(-2px)}.chats-new-btn:active{transform:scale(.98)}.chats-new-btn:focus-visible{outline:2px solid var(--text);outline-offset:2px}.chats-search-toolbar{align-items:center;gap:var(--space-3);width:100%;display:flex}.chats-search-bar{align-items:center;gap:var(--space-3);background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-sizing:border-box;flex:1;min-width:0;padding:.65rem 1rem;transition:border-color .18s,box-shadow .18s,background-color .18s;display:flex}.chats-search-bar:focus-within{border-color:var(--accent);box-shadow:var(--shadow-focus-input);background-color:var(--surface-2)}.chats-search-icon{width:18px;height:18px;stroke:var(--muted);flex-shrink:0;display:block}.chats-search-input{min-width:0;font-family:var(--font-dialogue);color:var(--text);background:0 0;border:none;outline:none;flex:1;padding:0;font-size:.9375rem;line-height:1.4}.chats-search-input::placeholder{color:var(--muted);opacity:.8}.chats-search-input::-webkit-search-cancel-button{appearance:none}.chats-search-clear{cursor:pointer;color:var(--muted);border-radius:var(--radius-pill);background:0 0;border:none;justify-content:center;align-items:center;padding:2px;transition:color .18s,background-color .18s;display:inline-flex}.chats-search-clear[hidden]{display:none!important}.chats-search-clear:hover{color:var(--text);background-color:var(--white-alpha-10)}.chats-search-clear i,.chats-search-clear svg{stroke:currentColor;width:14px;height:14px;display:block}.chats-pinned-toggle{align-items:center;gap:var(--space-2,.5rem);background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-pill);min-height:42px;color:var(--muted);font-family:var(--font-ui);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;flex-shrink:0;padding:0 .85rem;font-size:.875rem;font-weight:600;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s;display:inline-flex}.chats-pinned-toggle:hover{border-color:var(--muted);color:var(--text)}.chats-pinned-toggle:active{transform:scale(.98)}.chats-pinned-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chats-pinned-toggle__icon{stroke:currentColor;flex-shrink:0;width:15px;height:15px;display:block}.chats-pinned-toggle__label{line-height:1}.chats-pinned-toggle__count{border-radius:var(--radius-pill);background-color:var(--surface-2);min-width:20px;height:20px;color:var(--muted);border:1px solid var(--border);box-sizing:border-box;justify-content:center;align-items:center;padding:0 6px;font-size:.75rem;font-weight:700;line-height:1;display:inline-flex}.chats-pinned-toggle.is-active,.chats-pinned-toggle[aria-pressed=true]{background-color:var(--accent);border-color:var(--accent);color:#131110;box-shadow:0 2px 12px var(--accent-alpha-25,#e65f4540);font-weight:700}.chats-pinned-toggle.is-active:hover,.chats-pinned-toggle[aria-pressed=true]:hover{border-color:var(--accent);color:#131110;opacity:.95}.chats-pinned-toggle.is-active .chats-pinned-toggle__icon,.chats-pinned-toggle[aria-pressed=true] .chats-pinned-toggle__icon{stroke:#131110}.chats-pinned-toggle.is-active .chats-pinned-toggle__count,.chats-pinned-toggle[aria-pressed=true] .chats-pinned-toggle__count{color:#131110;background-color:#13111033;border-color:#1311104d}@media (width<=480px){.chats-pinned-toggle{gap:6px;padding:0 .65rem;font-size:.8125rem}}.chats-content{width:100%}.chats-spotlight{display:none}@media (width>=768px){.chats-spotlight:not([hidden]){gap:var(--space-3);flex-direction:column;margin-bottom:28px;display:flex}.chats-spotlight__header{justify-content:space-between;align-items:center;display:flex}.chats-spotlight__title{font-family:var(--font-ui);color:var(--text);letter-spacing:-.01em;margin:0;font-size:1.0625rem;font-weight:700}.chats-spotlight__grid{gap:var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.chats-spotlight-card{align-items:stretch;gap:var(--space-4);padding:var(--space-4);background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);color:var(--text);box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;transition:transform .18s,background-color .18s,border-color .18s,box-shadow .18s;display:flex;position:relative}.chats-spotlight-card:hover{background-color:var(--surface-2);border-color:var(--white-alpha-15);transform:translateY(-2px);box-shadow:0 6px 20px #00000059}.chats-spotlight-card:active{transform:scale(.995)}.chats-spotlight-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chats-spotlight-card__thumb-wrap{background-color:var(--surface-2);border:1px solid var(--border);width:82px;min-width:82px;height:110px;min-height:110px;font-family:var(--font-ui);color:var(--text);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;font-size:1.5rem;font-weight:700;display:flex;position:relative;overflow:hidden}.chats-spotlight-card__thumb{object-fit:cover;object-position:top;border-radius:inherit;width:100%;height:100%;display:block}.chats-spotlight-card__body{justify-content:space-between;gap:var(--space-2);flex-direction:column;flex:1;min-width:0;display:flex}.chats-spotlight-card__header{justify-content:space-between;align-items:baseline;gap:var(--space-2);min-width:0;display:flex}.chats-spotlight-card__name{font-family:var(--font-ui);color:var(--text);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1.0625rem;font-weight:700;line-height:1.3;overflow:hidden}.chats-spotlight-card__time{font-family:var(--font-dialogue);color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:.75rem}.chats-spotlight-card__snippet{font-family:var(--font-dialogue);color:var(--muted);-webkit-line-clamp:2;line-clamp:2;text-overflow:ellipsis;-webkit-box-orient:vertical;margin:0;font-size:.84375rem;line-height:1.45;display:-webkit-box;overflow:hidden}.chats-spotlight-card__footer{padding-top:var(--space-1);justify-content:flex-end;align-items:center;margin-top:auto;display:flex}.chats-spotlight-card__resume{font-family:var(--font-ui);color:var(--accent);align-items:center;gap:6px;font-size:.8125rem;font-weight:700;transition:transform .18s,color .18s;display:inline-flex}.chats-spotlight-card__resume svg,.chats-spotlight-card__resume i{stroke:currentColor;width:14px;height:14px;transition:transform .18s;display:block}.chats-spotlight-card:hover .chats-spotlight-card__resume svg,.chats-spotlight-card:hover .chats-spotlight-card__resume i{transform:translate(3px)}}.chats-all-header{display:none}.chats-all-header[hidden]{display:none!important}@media (width>=768px){.chats-all-header:not([hidden]){margin-bottom:var(--space-3);padding:var(--space-1) 0;align-items:center;display:flex}.chats-all-header__title{font-family:var(--font-ui);color:var(--text);letter-spacing:-.01em;margin:0;font-size:1.0625rem;font-weight:700}}.chats-pinned-header{margin-bottom:var(--space-3);padding:var(--space-1) 0;justify-content:space-between;align-items:center;display:flex}.chats-pinned-header[hidden]{display:none!important}.chats-pinned-header__title{align-items:center;gap:var(--space-2,.5rem);font-family:var(--font-ui);color:var(--text);letter-spacing:-.01em;margin:0;font-size:1.0625rem;font-weight:700;display:inline-flex}.chats-pinned-header__icon,.chats-pinned-header__title svg,.chats-pinned-header__title i{width:15px;height:15px;color:var(--muted);stroke:currentColor;display:block}.chats-pinned-empty{text-align:center;padding:var(--space-8,2.5rem) var(--space-4);background-color:var(--surface);border:1px dashed var(--border);margin-top:var(--space-2);border-radius:8px;flex-direction:column;justify-content:center;align-items:center;display:flex}.chats-pinned-empty[hidden]{display:none!important}.chats-pinned-empty__message{font-family:var(--font-dialogue);color:var(--muted);max-width:380px;margin:0;font-size:.9375rem;line-height:1.5}.chats-list{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.chats-list[hidden]{display:none!important}.chats-item{margin:0;padding:0;list-style:none}.chats-row{align-items:center;gap:var(--space-4);padding:var(--space-3) var(--space-4);background-color:var(--surface);border:1px solid var(--border);border-radius:var(--radius-xl);color:var(--text);box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;transition:transform .18s,opacity .18s,background-color .18s,border-color .18s,box-shadow .18s;display:flex;position:relative}.chats-row:hover{background-color:var(--surface-2);border-color:var(--white-alpha-15);transform:translateY(-2px);box-shadow:0 6px 20px #00000059}.chats-row:active{transform:scale(.995)}.chats-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chats-row__avatar-wrap{flex-shrink:0;width:52px;min-width:52px;height:68px;min-height:68px;position:relative}.chats-row__avatar{background-color:var(--surface-2);border:1px solid var(--border);width:52px;min-width:52px;height:68px;min-height:68px;font-family:var(--font-ui);color:var(--text);letter-spacing:.02em;-webkit-user-select:none;user-select:none;cursor:default;box-sizing:border-box;border-radius:8px;justify-content:center;align-items:center;font-size:1.125rem;font-weight:700;transition:border-color .18s,box-shadow .18s;display:flex;overflow:hidden}.chats-row__avatar-img{object-fit:cover;object-position:top;border-radius:inherit;width:100%;height:100%;display:block}.chats-row__avatar-wrap.is-unread .chats-row__avatar{border-color:var(--accent);box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--accent)}.chats-row__unread-dot{border-radius:var(--radius-pill);background-color:var(--accent);border:2px solid var(--surface);width:12px;height:12px;box-shadow:0 0 8px var(--accent);pointer-events:none;z-index:2;position:absolute;top:-1px;right:-1px}.chats-row__content{min-width:0;color:inherit;flex-direction:column;flex:1;justify-content:center;gap:.25rem;min-height:48px;text-decoration:none;display:flex}.chats-row__header{justify-content:space-between;align-items:baseline;gap:var(--space-3);min-width:0;display:flex}.chats-row__name-wrap{align-items:center;gap:6px;min-width:0;display:flex}.chats-row__name{font-family:var(--font-ui);color:var(--text);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1.0625rem;font-weight:700;line-height:1.3;overflow:hidden}.chats-row__pinned-badge{color:var(--muted);opacity:.85;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.chats-row__pinned-badge svg,.chats-row__pinned-badge i{stroke:currentColor;fill:currentColor;width:12px;height:12px;display:block}.chats-row__time{font-family:var(--font-dialogue);color:var(--muted);white-space:nowrap;flex-shrink:0;font-size:.8125rem;font-weight:400}.chats-row__snippet{font-family:var(--font-dialogue);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;align-items:baseline;gap:.35rem;min-width:0;margin:0;font-size:.875rem;line-height:1.4;display:flex;overflow:hidden}.chats-row__prefix{color:var(--text);flex-shrink:0;font-weight:600}.chats-row__snippet-text{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.chats-row__action{color:var(--muted);font-style:italic;font-family:var(--font-dialogue)}.chats-row__actions{align-items:center;gap:var(--space-2,.5rem);flex-shrink:0;margin-left:auto;display:flex}.chats-row__count{font-family:var(--font-dialogue);color:var(--muted);white-space:nowrap;-webkit-user-select:none;user-select:none;margin-right:var(--space-1,.25rem);font-size:.8125rem;font-weight:500}.chats-row__pin-btn{color:var(--muted);cursor:pointer;border-radius:var(--radius-md);opacity:0;background:0 0;border:1px solid #0000;flex-shrink:0;justify-content:center;align-items:center;width:34px;min-width:34px;height:34px;padding:0;transition:opacity .16s,color .16s,background-color .16s,border-color .16s;display:inline-flex}.chats-row__pin-btn svg,.chats-row__pin-btn i{stroke:currentColor;fill:none;width:15px;height:15px;display:block}.chats-row:hover .chats-row__pin-btn{opacity:.7}.chats-row__pin-btn.is-pinned{color:var(--accent);opacity:1}.chats-row__pin-btn.is-pinned svg,.chats-row__pin-btn.is-pinned i{fill:currentColor;stroke:currentColor}.chats-row__pin-btn:hover{opacity:1;color:var(--accent);background-color:var(--accent-alpha-10);border-color:var(--accent-alpha-20)}.chats-row__pin-btn:focus,.chats-row__pin-btn:focus-visible{opacity:1;outline:2px solid var(--accent);outline-offset:2px;color:var(--accent);background-color:var(--accent-alpha-10);border-color:var(--accent-alpha-20)}@media (hover:none),(pointer:coarse){.chats-row__pin-btn{opacity:.85}}.chats-row__delete-btn{color:var(--muted);cursor:pointer;border-radius:var(--radius-md);opacity:0;width:34px;min-width:34px;height:34px;margin-left:var(--space-1);background:0 0;border:1px solid #0000;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:opacity .16s,color .16s,background-color .16s,border-color .16s;display:inline-flex}.chats-row__delete-btn svg,.chats-row__delete-btn i{stroke:currentColor;width:16px;height:16px;display:block}.chats-row:hover .chats-row__delete-btn{opacity:.7}.chats-row__delete-btn:hover{opacity:1;color:var(--accent);background-color:var(--accent-alpha-10);border-color:var(--accent-alpha-20)}.chats-row__delete-btn:focus,.chats-row__delete-btn:focus-visible{opacity:1;outline:2px solid var(--accent);outline-offset:2px;color:var(--accent);background-color:var(--accent-alpha-10);border-color:var(--accent-alpha-20)}@media (hover:none),(pointer:coarse){.chats-row__delete-btn{opacity:.85}}.chats-row-confirm{justify-content:space-between;align-items:center;gap:var(--space-4);padding:var(--space-4) var(--space-5);background-color:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-xl);box-sizing:border-box;min-height:78px;animation:.15s ease-out clearConfirmFadeIn;display:flex;position:relative}.chats-row-confirm__text{font-family:var(--font-dialogue);color:var(--text);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:.9375rem;font-weight:600;overflow:hidden}.chats-row-confirm__actions{align-items:center;gap:var(--space-2);flex-shrink:0;display:flex}.chats-row-confirm__btn{font-family:var(--font-ui);border-radius:var(--radius-md);cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid #0000;padding:.45rem .9rem;font-size:.875rem;font-weight:700;line-height:1.2;transition:opacity .15s,background-color .15s,transform .15s}.chats-row-confirm__btn:active{transform:scale(.98)}.chats-row-confirm__btn:focus-visible{outline:2px solid var(--text);outline-offset:2px}.chats-row-confirm__btn--delete{background-color:var(--accent);color:#131110}.chats-row-confirm__btn--delete:hover{opacity:.92}.chats-row-confirm__btn--cancel{background-color:var(--surface-3);color:var(--text);border-color:var(--border)}.chats-row-confirm__btn--cancel:hover{background-color:var(--surface);border-color:var(--white-alpha-15)}.chats-row-error{z-index:10;background-color:var(--surface-3);border:1px solid var(--accent);border-radius:var(--radius-md);color:var(--accent);font-family:var(--font-dialogue);margin-top:4px;padding:6px 12px;font-size:.8125rem;line-height:1.4;animation:.15s ease-out clearConfirmFadeIn;position:absolute;top:100%;left:0;right:0}@keyframes clearConfirmFadeIn{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.chats-empty,.chats-search-empty{text-align:center;padding:var(--space-12) var(--space-6);border:1px dashed var(--border);background-color:var(--surface);box-sizing:border-box;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;display:flex}.chats-empty[hidden],.chats-search-empty[hidden]{display:none!important}.chats-empty__actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.chats-empty__secondary-cta{border-radius:8px;align-items:center;gap:8px;text-decoration:none;display:inline-flex}.chats-empty__secondary-cta svg{width:16px;height:16px}.chats-empty__title{font-family:var(--font-ui);color:var(--text);margin:0 0 var(--space-2) 0;font-size:1.25rem;font-weight:700;line-height:1.3}.chats-empty__description{font-family:var(--font-dialogue);color:var(--muted);margin:0 0 var(--space-6) 0;max-width:380px;font-size:.9375rem;line-height:1.5}.chats-empty__cta{background-color:var(--accent);font-family:var(--font-ui);border-radius:var(--radius-md);justify-content:center;align-items:center;gap:var(--space-2);box-shadow:var(--shadow-primary);cursor:pointer;border:none;padding:.75rem 1.5rem;font-size:.95rem;font-weight:700;text-decoration:none;transition:transform .18s,opacity .18s;display:inline-flex;color:#131110!important}.chats-empty__cta span{color:#131110!important}.chats-empty__cta:hover{opacity:.92;transform:translateY(-2px)}.chats-empty__cta i,.chats-empty__cta svg{flex-shrink:0;width:18px;height:18px;display:block;stroke:#131110!important}@media (width<=600px){.chats-container{gap:var(--space-3)}.chats-header{justify-content:space-between;align-items:center;gap:var(--space-2);flex-direction:row;display:flex}.chats-header__titles{flex-shrink:1;min-width:0}.chats-header__title{white-space:nowrap;margin:0;font-size:1.45rem}.chats-header__subtitle{display:none}.chats-header__actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.chats-new-btn{white-space:nowrap;flex-shrink:0;min-height:38px;padding:.5rem .85rem;font-size:.875rem}.chats-row{padding:var(--space-3);gap:var(--space-3)}.chats-row__avatar-wrap{width:52px;min-width:52px;height:68px;min-height:68px}.chats-row__avatar{border-radius:8px;width:52px;min-width:52px;height:68px;min-height:68px;font-size:.95rem}.chats-row-confirm{padding:var(--space-3);gap:var(--space-2);min-height:64px}.chats-row-confirm__text{font-size:.8125rem}.chats-row-confirm__btn{padding:.35rem .65rem;font-size:.8125rem}.chats-empty,.chats-search-empty{padding:var(--space-8) var(--space-4)}.character-picker-header{padding:1rem 1.25rem}.character-picker-search-bar{padding:.65rem 1.25rem}}
