/* spirit-avatar.css */
/* The companion itself is transparent. Keep the surrounding button hit area still. */
.spirit-face{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible}
.spirit-art{background:none!important;overflow:visible;pointer-events:none}
.spirit-art *{animation:none!important;transition:none!important}
.marketplace .market-actions .market-dock-helper .mascot-face.spirit-face,.marketplace .market-actions .market-dock-helper svg.mascot-art.spirit-art{width:42px;height:42px}
.marketplace .market-dock-helper:has(.spirit-face) .minutka-character{width:42px;height:42px}

/* Keep the whole animated silhouette within the 48 px dock row. */
.marketplace .market-actions .market-dock-helper{display:grid;place-items:center}


/* voice-room.css */
.voice-stage{padding:28px 18px 18px;background:linear-gradient(160deg,#edf3ed,#faf8f0);border-radius:22px 22px 0 0;min-height:165px}
.voice-participants{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:24px 14px;max-width:650px;margin:auto}
.voice-person{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;text-align:center}
.voice-person>.avatar{width:66px;height:66px;font-size:24px;border:3px solid white;box-shadow:0 3px 12px #203b2520}
.voice-person>span{font-size:13px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.voice-person>small{font-size:11px;color:var(--muted)}
.voice-person.speaking>.avatar{border-color:var(--green);box-shadow:0 0 0 7px #52775b20;animation:voice-ring 1.3s infinite}
.voice-person.speaking>small{color:var(--green);font-weight:700}
@keyframes voice-ring{50%{box-shadow:0 0 0 12px #52775b10}}
.room-chat-layout .chat-panel{overflow:hidden;border-radius:22px}
.room-chat-layout .chat-messages{height:230px;max-height:30dvh;min-height:110px}
.room-chat-layout .room-radio-controls{padding:12px 18px;gap:12px;background:var(--paper);align-items:stretch}
.room-chat-layout .radio-hold{min-height:76px;border-radius:24px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.room-chat-layout .radio-hold.recording{background:#b54439}
.room-chat-layout .radio-sound{border-radius:20px}
.room-chat-layout .room-radio-meta{padding:12px 18px 0}
@media(max-width:600px){.voice-stage{padding:24px 12px 18px}.voice-participants{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 8px}.room-chat-layout .room-radio-controls{padding:12px}.room-chat-layout .radio-hold{font-size:13px}.room-chat-layout .room-cover{padding:16px}.room-chat-layout .chat-messages{max-height:22dvh}.room-chat-layout .radio-sound{width:88px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.voice-person.speaking>.avatar{animation:none}}
@media(max-width:600px){
 .room-chat-layout .topbar{margin-bottom:12px}
 .room-chat-layout .back-title{margin-bottom:10px}
 .room-chat-layout .room-cover{padding:12px 16px;margin-bottom:8px}
 .room-chat-layout .room-cover h1{font-size:20px;margin-bottom:4px}
 .room-chat-layout .room-controls{margin-top:8px}
 .room-chat-layout .room-controls>button{min-height:32px;padding:6px 10px}
 .room-chat-layout .tabs{margin-top:8px;margin-bottom:10px}
 .room-chat-layout .voice-stage{padding:18px 12px 12px;min-height:125px;max-height:190px;overflow-y:auto}
 .room-chat-layout .voice-person>.avatar{width:58px;height:58px}
 .room-chat-layout .voice-person{gap:5px}
 .room-chat-layout .chat-messages{height:96px;min-height:80px;max-height:16dvh;padding:10px}
 .room-chat-layout .room-radio-meta{padding-top:9px;flex-direction:row}
 .room-chat-layout .room-radio-controls{padding:9px 12px}
 .room-chat-layout .chat-compose{padding:9px}
 .room-chat-layout .minutka-launcher[aria-expanded=false]{top:14px;bottom:auto;right:16px;width:50px;height:50px}
}


/* profile-layout.css */
:root{--site-width:1200px}
#app{max-width:var(--site-width);margin-inline:auto}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-home{padding:30px;margin-bottom:28px}
.profile-identity{display:flex;align-items:flex-start;gap:22px}
.profile-identity>.avatar{width:96px;height:96px;font-size:32px;flex:none;border-radius:28px}
.profile-details{flex:1;min-width:0}
.profile-details h1{font-size:28px;line-height:1.2;overflow-wrap:anywhere}
.profile-details small{display:block;margin-top:8px}
.profile-details p{margin:12px 0 0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.profile-edit{margin-top:13px;color:var(--muted);font-size:12px;padding:6px 0}
.profile-add{flex:none}.profile-add button{display:flex;align-items:center;gap:7px}
.profile-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;align-items:start}
.profile-posts,.profile-updates{min-width:0}
.profile-updates{display:grid;gap:18px}.profile-updates .card{padding:21px}
.profile-updates .section-heading{margin:0 0 14px}.profile-updates h2{font-size:16px}
.profile-updates .text-btn{font-size:12px}
.profile-event{display:block;padding:13px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.profile-event strong{font-size:13px;font-weight:500}.profile-event.unread strong{font-weight:700}
.profile-event p{font-size:12px;line-height:1.5;color:var(--muted);margin:6px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.profile-event small{font-size:10px}.profile-quiet{font-size:13px;line-height:1.6}
.profile-room{display:flex;align-items:center;gap:10px;font-size:13px;padding:12px 0;overflow-wrap:anywhere}
.profile-room span{min-width:0}.profile-footer{margin-top:26px;color:var(--muted);font-size:12px}
@media(min-width:1024px){
 #app .side{left:max(0px,calc((100vw - var(--site-width))/2));width:220px;padding:28px 18px;gap:24px}
 #app .page{margin-left:220px;margin-right:0;max-width:none;padding:28px 28px 130px}
 #app .main-content,#app .topbar{max-width:none;margin-inline:0}
 .minutka-launcher{right:max(20px,calc((100vw - var(--site-width))/2 + 20px))}
 .minutka-drawer{right:max(24px,calc((100vw - var(--site-width))/2 + 24px))}
}
@media(min-width:1024px) and (max-width:1050px){
 .profile-columns{grid-template-columns:minmax(0,1fr)}
 .profile-updates{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-identity{flex-wrap:wrap}.profile-add{margin-left:118px}
}
@media(max-width:1023px){
 .profile-home{padding:22px 18px;margin-bottom:24px}
 .profile-identity{gap:16px;flex-wrap:wrap}
 .profile-identity>.avatar{width:76px;height:76px;font-size:27px;border-radius:24px}
 .profile-details h1{font-size:23px}.profile-details p{font-size:13px}
 .profile-add{width:100%}.profile-add button{width:100%;justify-content:center}
 .profile-columns{grid-template-columns:minmax(0,1fr);gap:24px}
 .profile-updates{grid-template-columns:minmax(0,1fr)}
 .profile-posts .section-heading h2{font-size:18px}.profile-posts .section-heading a{font-size:12px}
}


/* profile-media.css */
.profile-home{position:relative;background:linear-gradient(125deg,#fffefa 60%,#f0f0f0);border:1px solid #e6e6e6}
.profile-avatar-button{padding:0;flex:none;position:relative;border-radius:28px;align-self:flex-start}
.profile-avatar-button>.avatar{width:100px;height:100px;border-radius:28px;font-size:34px;box-shadow:0 0 0 5px #fffefa}
.profile-avatar-button::after{content:'✎';position:absolute;bottom:-5px;right:-5px;background:var(--green);color:white;width:28px;height:28px;display:grid;place-items:center;border:3px solid var(--paper);border-radius:50%;font-size:14px}
.profile-avatar-button:hover{filter:brightness(.96)}
.profile-avatar-wrap{position:relative;flex:none;align-self:flex-start}
.avatar-magnify{position:absolute;left:-7px;bottom:-7px;width:32px;height:32px;border:3px solid var(--paper);border-radius:50%;background:#fffefa;color:var(--green);display:grid;place-items:center;padding:4px;box-shadow:0 2px 8px #40404020}
.avatar-magnify svg{width:17px;height:17px}
.avatar-current .secondary{margin-bottom:12px}.avatar-current+ .secondary{margin-bottom:14px}
.profile-media-nav [aria-selected="true"]{background:var(--green);color:white;border-color:var(--green)}
.profile-media-nav [role="tab"]:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.profile-library{margin-top:24px}.profile-library .profile-media-nav{margin:0 0 14px}
.profile-library #profile-media-panel>.media-section{margin:0}
.bio-toolbar{flex-wrap:wrap;gap:7px!important}.bio-toolbar [data-format]{border:1px solid #dadada;background:#fffefa;width:36px!important;height:36px;font-size:15px}
.bio-toolbar [data-format="insertUnorderedList"],.bio-toolbar [data-format="insertOrderedList"]{font-size:18px}
.profile-bio ul,.profile-bio ol,.post-body ul,.post-body ol,#bio-editor ul,#bio-editor ol{padding-left:24px;margin:5px 0;white-space:normal}
.profile-bio li,.post-body li,#bio-editor li{white-space:pre-wrap;margin:3px 0}
.rich-line{min-height:1em}.post-body>.rich-line:only-child{display:inline}
#photo-viewer.photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#171717;color:#fff;overflow:hidden}
#photo-viewer::backdrop{background:#171717}
.photo-viewer-head{height:68px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#171717;position:relative;z-index:2}
.photo-viewer-title{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-viewer-head>div{display:flex;gap:9px;flex:none}.photo-viewer-head .icon-btn{width:42px;height:42px;color:white;background:#ffffff14;font-size:25px}
.photo-viewer-head .icon-btn:hover{background:#ffffff29}.photo-viewer-head svg{width:21px;height:21px}
.photo-viewer-stage{height:calc(100dvh - 68px);width:100%;overflow:auto;overscroll-behavior:contain}
.photo-viewer-stage img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.photo-viewer.zoomed .photo-viewer-stage img{width:200%;max-width:none;height:200%;cursor:zoom-out}
.photo-prev,.photo-next{position:absolute;top:50%;z-index:2;width:44px;height:60px;border-radius:12px;color:white;background:#17171799;font-size:40px;line-height:1}
.photo-prev{left:16px}.photo-next{right:16px}
@media(max-width:1023px){.photo-viewer-head{height:60px;padding:9px 12px;gap:8px}.photo-viewer-head>div{gap:5px}.photo-viewer-head .icon-btn{width:38px;height:38px}.photo-viewer-title{font-size:12px}.photo-viewer-stage{height:calc(100dvh - 60px)}.photo-prev{left:6px}.photo-next{right:6px}.photo-prev,.photo-next{width:34px;height:46px;font-size:30px}.bio-toolbar select{flex:1;min-width:98px}}
.profile-name-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:9px}
.founder-badge{display:inline-flex;align-items:center;gap:5px;background:#ebebeb;color:#575757;border:1px solid #d7d7d7;padding:5px 9px;border-radius:20px;font-size:11px;font-weight:650;white-space:nowrap;vertical-align:middle}
.founder-badge svg{width:17px;height:17px;stroke-width:1.8}
.profile-bio{white-space:pre-wrap;line-height:1.65;margin-top:12px;overflow-wrap:anywhere}
.bio-small{font-size:12px}.bio-normal{font-size:14px}.bio-large{font-size:18px}.bio-bold{font-weight:700}.bio-italic{font-style:italic}.bio-underline{text-decoration:underline}
.profile-add .primary{border-radius:15px;padding:13px 19px}
.profile-media-nav{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 25px}.media-shortcut{display:flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-size:13px}.media-shortcut:hover{background:var(--sage)}
.profile-media-sections{display:grid;gap:22px;margin-top:26px}.media-section{padding:24px;scroll-margin-top:20px}
.media-section-head,.media-section-label{display:flex;align-items:center;gap:10px}.media-section-head{justify-content:space-between;margin-bottom:18px}.media-section-label>svg{color:#7d7d7d}.media-section-label h2{font-size:18px}.media-count{color:var(--muted);font-size:12px}
.media-collections{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:18px}.media-collections select{width:auto;max-width:100%;font-size:12px;padding:9px 30px 9px 12px}.media-collections .text-btn{font-size:12px}
.media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.media-grid.video{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid.catalog{grid-template-columns:repeat(3,minmax(0,1fr))}
.media-card{min-width:0}.media-cover{display:grid;place-items:center;width:100%;aspect-ratio:1;background:linear-gradient(135deg,#e6e6e6,#f1ecd9);border-radius:15px;padding:0;overflow:hidden;position:relative;color:#909090}.media-cover.video{aspect-ratio:16/9;background:linear-gradient(135deg,#4d4d4d,#8c8c8c);color:#f0f0f0}.media-cover>svg{width:38px;height:38px;opacity:.65}.media-cover img{width:100%;height:100%;object-fit:cover}.video-play{position:absolute;left:12px;bottom:10px;background:#333333cc;color:#fff;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:11px}
.media-card-meta{position:relative;padding:10px 24px 0 0}.media-title{padding:0;text-align:left;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.media-card-meta small{display:block;font-size:10px;margin-top:5px;overflow-wrap:anywhere}.media-more{position:absolute;right:-4px;top:5px;padding:4px}.media-more svg{width:18px}
.media-empty{display:flex;flex-direction:column;align-items:center;gap:13px;padding:25px 12px;text-align:center;background:#f6f6f6;border-radius:17px;color:var(--muted)}.media-empty>svg{width:34px;height:34px;opacity:.55}.media-empty p{font-size:13px;line-height:1.5}.media-empty .secondary{font-size:12px;background:var(--paper)}
.music-player{padding:14px;background:#f2f2f2;border-radius:15px;margin-bottom:12px}.music-player audio{width:100%;height:38px}.music-player #playing-title{font-size:11px;margin:10px 5px 0}.track-row{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line)}.track-row strong{font-size:13px}.track-row small{display:block;font-size:11px;margin-top:5px}.track-row .grow{min-width:0;overflow-wrap:anywhere}.track-play{flex:none;background:var(--sage);border-radius:50%;width:34px;height:34px;font-size:10px}.track-row.playing .track-play{background:var(--green);color:white}
.video-channel-head{display:flex;align-items:center;gap:18px;padding:26px;border-radius:24px;background:linear-gradient(115deg,#e7e7e7,#f2eadb);margin-bottom:22px}.video-channel-head h1{font-size:27px}.video-channel-head p{font-size:13px;color:#737373;line-height:1.6;margin-top:9px;white-space:pre-wrap}.video-channel-icon{width:70px;height:70px;border-radius:22px;background:#fffefa99;display:grid;place-items:center;flex:none}.video-channel-icon svg{width:35px;height:35px}.video-channel-head .primary{display:flex;align-items:center;gap:6px;font-size:12px}.video-nav{display:flex;gap:20px;font-size:13px;margin-bottom:18px}.video-nav a{padding:8px 0}.video-nav .active{border-bottom:2px solid var(--green);font-weight:650}#video-search{margin-bottom:20px}
.video-back{display:inline-block;font-size:13px;margin-bottom:20px}.video-watch{padding:0;overflow:hidden}.video-watch video{width:100%;max-height:65vh;display:block;background:#1f1f1f;aspect-ratio:16/9}.quality-row{display:flex;justify-content:flex-end;padding:12px 22px;border-bottom:1px solid var(--line);font-size:12px}.quality-row select{width:auto;font-size:12px;padding:6px 9px;margin-left:8px}.video-watch-details{padding:25px}.video-watch-details h1{font-size:25px;overflow-wrap:anywhere}.video-author{display:flex;align-items:center;gap:10px;margin:19px 0;font-size:13px}.video-watch-details>p{white-space:pre-wrap;line-height:1.65;font-size:14px;margin-bottom:20px}.video-processing{padding:45px 25px;background:#eeeeee;text-align:center;display:grid;justify-items:center;gap:18px}.video-processing p{max-width:480px;font-size:13px;line-height:1.7}.photo-view{width:100%;max-height:65vh;object-fit:contain;border-radius:16px}
.avatar-current{text-align:center;margin:12px 0 27px}.avatar-current .avatar{width:140px;height:140px;font-size:48px;border-radius:36px}.avatar-file{position:relative;text-align:center;display:block;cursor:pointer;overflow:hidden;margin-bottom:14px}.avatar-file input{position:absolute;inset:0;opacity:0;cursor:pointer}.crop-stage{position:relative;width:min(100%,360px);aspect-ratio:1;margin:0 auto 20px;overflow:hidden;border:2px solid var(--green);border-radius:8px}.crop-stage canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33.1%,#ffffff80 33.1%,#ffffff80 33.5%,transparent 33.5%,transparent 66.4%,#ffffff80 66.4%,#ffffff80 66.8%,transparent 66.8%),linear-gradient(to bottom,transparent 33.1%,#ffffff80 33.1%,#ffffff80 33.5%,transparent 33.5%,transparent 66.4%,#ffffff80 66.4%,#ffffff80 66.8%,transparent 66.8%)}.crop-zoom{font-size:12px;display:grid;gap:10px}.crop-zoom input{padding:0;accent-color:var(--green)}.crop-arrows{display:flex;justify-content:center;gap:10px;margin:10px 0 20px}.crop-arrows button{width:40px;height:36px;background:var(--sage);border-radius:9px}.media-progress{width:100%;accent-color:var(--green)}.media-upload-state{font-size:12px;color:var(--muted)}
.bio-editor-wrap{display:grid;gap:8px}.bio-editor-wrap>label{font-size:13px;font-weight:600}.bio-toolbar{display:flex;align-items:center;gap:5px;padding:7px;background:#f0f0f0;border-radius:12px 12px 0 0;margin-bottom:-8px}.bio-toolbar button{width:33px;height:33px;border-radius:7px;font-size:14px}.bio-toolbar button:hover{background:#fff}.bio-toolbar select{width:110px;padding:7px 9px;font-size:12px;background:#fffefa;border:0}.bio-toolbar select:focus{outline-offset:0}#bio-editor{min-height:130px;max-height:270px;overflow-y:auto;padding:14px;background:#f9f9f9;border:1px solid #e2e2e2;border-radius:0 0 12px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}#bio-editor:focus{outline:2px solid #cacaca}.bio-counter{text-align:right;font-size:11px}
@media(max-width:1100px){.media-grid.catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1023px){.profile-avatar-button>.avatar{width:78px;height:78px;font-size:28px;border-radius:24px}.profile-name-line{gap:7px}.profile-name-line h1{font-size:22px}.founder-badge{font-size:10px;padding:4px 7px}.profile-media-nav{gap:7px;margin:18px 0}.media-shortcut{padding:9px 12px;font-size:12px}.media-section{padding:19px 15px}.media-grid{gap:10px}.media-grid.photo{grid-template-columns:repeat(3,minmax(0,1fr))}.media-grid.video{grid-template-columns:repeat(2,minmax(0,1fr))}.media-grid.catalog{grid-template-columns:minmax(0,1fr)}.media-section-head{margin-bottom:14px}.media-section-label h2{font-size:17px}.media-cover{border-radius:11px}.media-title{font-size:12px}.media-section-label>svg{width:20px}.media-card-meta{padding-right:17px}.media-more{right:-6px}.video-channel-head{padding:20px 17px;flex-wrap:wrap;gap:13px}.video-channel-head h1{font-size:24px}.video-channel-icon{width:52px;height:52px;border-radius:17px}.video-channel-head>.primary{width:100%;justify-content:center}.video-nav{gap:16px;font-size:12px;flex-wrap:wrap}.video-watch-details{padding:20px}.video-watch-details h1{font-size:22px}.video-author{flex-wrap:wrap}.profile-details .bio-large{font-size:17px}.profile-media-sections{gap:18px}.media-collections select{max-width:180px}.crop-stage{max-width:300px}.bio-toolbar{gap:3px}.bio-toolbar select{width:99px}.bio-toolbar button{width:30px}}


/* interaction-refresh.css */
:root{--bg:#fbfbfb;--paper:#fff;--sage:#f1f1f1;--line:#ececec;--muted:#757575}
body{background:var(--bg)}
#bio-editor{resize:vertical;min-height:180px;max-height:65dvh;overflow:auto;background:#fff}
#bio-editor.expanded{height:48dvh;min-height:240px}
.bio-toolbar{position:sticky;top:0;z-index:1;background:#f7f7f7;flex-wrap:wrap}
.privacy-option{display:flex!important;align-items:center;gap:10px;font-weight:400!important}.privacy-option input{width:18px;height:18px}
.square-crop{position:relative;overflow:hidden;width:100%;max-width:340px;margin:auto;line-height:0;background:#efefef;touch-action:none}
.square-crop canvas{display:block;width:100%;height:auto;max-height:52dvh;object-fit:contain}
.square-crop{width:fit-content;max-width:100%}.square-crop canvas{width:auto;max-width:100%}
.crop-selection{position:absolute;border:2px solid white;box-shadow:0 0 0 999px #202020b3;cursor:move;touch-action:none;outline:1px solid #434343}
.crop-selection:before,.crop-selection:after{content:'';position:absolute;inset:33.333% 0;border-top:1px solid #ffffff88;border-bottom:1px solid #ffffff88;pointer-events:none}.crop-selection:after{inset:0 33.333%;border:0;border-left:1px solid #ffffff88;border-right:1px solid #ffffff88}
.crop-selection i{position:absolute;width:24px;height:24px;border:3px solid #fff;z-index:1}.crop-selection [data-corner=nw]{left:-6px;top:-6px;border-right:0;border-bottom:0;cursor:nwse-resize}.crop-selection [data-corner=ne]{right:-6px;top:-6px;border-left:0;border-bottom:0;cursor:nesw-resize}.crop-selection [data-corner=sw]{left:-6px;bottom:-6px;border-right:0;border-top:0;cursor:nesw-resize}.crop-selection [data-corner=se]{right:-6px;bottom:-6px;border-left:0;border-top:0;cursor:nwse-resize}
.avatar-preview-image{display:block;width:100%;max-height:60dvh;object-fit:contain;border-radius:16px}.avatar-file{margin-top:12px}
.profile-contact{display:flex;gap:8px;flex-wrap:wrap}.last-seen{display:block;font-size:12px!important;margin:5px 0;color:var(--muted)}
.personal-news{margin:0 0 20px;border:1px solid var(--line);border-radius:16px;background:white}.personal-news>summary{cursor:pointer;display:flex;align-items:center;gap:8px;padding:16px 20px;font-weight:600;list-style:none}.personal-news>summary::-webkit-details-marker{display:none}.news-chevron{margin-left:auto}.personal-news[open] .news-chevron{transform:rotate(180deg)}.news-content{padding:0 12px 12px}.news-content .card{margin:0}.news-count{background:#4c4c4c;color:white;font-size:12px;min-width:22px;line-height:22px;text-align:center;border-radius:11px}
.conversation-time{font-size:11px;color:var(--muted);text-align:right;line-height:1.7;white-space:nowrap}
.direct-voice{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px 14px;border-top:1px solid var(--line);background:white}.voice-mode{display:flex;border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}.voice-mode button{background:none;border:0;border-radius:9px;padding:7px 10px;color:var(--muted);font:inherit;font-size:12px}.voice-mode button[aria-pressed=true]{background:#eeeeee;color:var(--green)}.dm-mic{background:#f1f1f1;border-radius:50%;width:44px;height:44px;touch-action:none;user-select:none;-webkit-touch-callout:none}.dm-mic svg{width:22px;height:22px}.dm-mic.recording,.direct-voice[data-voice-state=recording] .dm-mic{background:#c44742;color:white}.direct-voice [data-voice-status]{font-size:12px;flex:1;min-width:110px}.direct-voice [data-voice-quota]{flex-basis:100%;font-size:10px;color:var(--muted)}
body.direct-chat-layout .minutka-launcher,body.keyboard-open .minutka-launcher,body.immersive-layout .minutka-launcher{display:none!important}
body.direct-chat-layout #app .chat-panel{display:flex;flex-direction:column;height:calc(100dvh - 210px);min-height:360px;overflow:hidden}
body.direct-chat-layout #app .chat-messages{flex:1;height:auto;max-height:none;min-height:0}.direct-chat-layout .chat-compose{flex-shrink:0}.direct-chat-layout .back-title{margin-bottom:14px}
body.immersive-layout{background:#e1e1e1;overflow:hidden}
body.immersive-layout #app .side,body.immersive-layout #app .topbar,body.immersive-layout #app .bottom-nav{display:none!important}
body.immersive-layout #app{display:block;max-width:none;margin:0;padding:0}
body.immersive-layout #app .page{margin:0 auto!important;padding:0!important;max-width:1180px;width:100%;height:100dvh}
body.immersive-layout #content{height:100%;min-height:0}
body.immersive-layout .workspace{height:100%;min-height:0;display:block}
body.direct-chat-layout #content{min-height:0}
.immersive-room{height:100%;background:#fbfbfb;display:flex;flex-direction:column;box-shadow:0 0 100px #36363626}
.room-top{display:flex;align-items:center;gap:18px;padding:18px 26px;background:white;border-bottom:1px solid var(--line);flex-shrink:0}.room-top h1{margin:0 0 3px;font-size:23px}.room-top small{color:var(--muted);font-size:12px}.room-menu{position:relative}.room-menu summary{list-style:none;cursor:pointer;font-size:24px;padding:6px}.room-menu summary::-webkit-details-marker{display:none}.room-menu>div{position:absolute;top:50px;left:0;min-width:220px;background:white;padding:12px;border-radius:16px;box-shadow:0 10px 40px #2e2e2e26;z-index:5;display:flex;flex-direction:column;align-items:stretch}.room-menu a,.room-menu button{padding:12px;text-align:left}.room-description{margin:10px 26px 0;font-size:13px;color:var(--muted);max-height:40px;overflow:auto}.immersive-room>.tabs{margin:4px 26px 8px;flex-shrink:0}.room-content{flex:1;min-height:0;overflow:auto;padding:0 26px 20px}
body.immersive-layout .chat-panel{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid #e9e9e9;border-radius:22px;background:white}
body.immersive-layout .voice-stage{min-height:110px;max-height:210px;flex-shrink:0;overflow:auto;padding:22px;background:radial-gradient(ellipse at top,#efefef,transparent 80%),#f9f9f9}
body.immersive-layout .voice-participants{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 28px}.voice-person{min-width:68px}.voice-person .avatar{background:white;border:2px solid #e6e6e6}
body.immersive-layout .chat-messages{flex:1;height:auto;min-height:90px;max-height:none;padding:16px;background:white}
body.immersive-layout .room-radio-meta{padding:10px 18px 0;display:flex;justify-content:space-between;font-size:12px}
body.immersive-layout .room-radio-controls{display:flex;justify-content:center;align-items:center;padding:10px 18px;gap:12px;background:white}
body.immersive-layout .radio-hold,body.immersive-layout .radio-toggle,body.immersive-layout .radio-sound{position:relative;display:flex;align-items:center;justify-content:center;border:0;width:48px;height:48px;min-height:48px;border-radius:50%;background:#f0f0f0;color:var(--green);padding:12px;flex:none}
body.immersive-layout .radio-hold{background:var(--green);color:white;touch-action:none;user-select:none;-webkit-touch-callout:none}
body.immersive-layout .radio-toggle{border:1px solid #c5c5c5;border-radius:16px;width:82px;gap:4px}.radio-toggle span{font-size:11px}
body.immersive-layout .radio-hold>span,body.immersive-layout .radio-sound>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.immersive-layout .radio-hold svg,body.immersive-layout .radio-toggle svg,body.immersive-layout .radio-sound svg{width:22px;height:22px;flex:none}
body.immersive-layout .radio-hold.recording,body.immersive-layout .radio-toggle.recording{background:#b94741;color:white}
.muted-sound:after{content:'';position:absolute;width:27px;height:2px;transform:rotate(-45deg);background:currentColor}
.room-video-stage{background:#f3f3f3;padding:12px 18px;flex-shrink:0;max-height:44%;overflow:auto}.video-stage-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}#room-live-video{display:block;max-height:220px;width:100%;object-fit:contain;background:#242424;border-radius:12px;margin:8px 0}#room-live-video[hidden]{display:none}.room-products{display:flex;gap:10px;overflow-x:auto;margin-top:8px;padding-bottom:4px}.room-product{display:flex;align-items:center;gap:9px;padding:7px 12px;background:white;border:1px solid var(--line);border-radius:12px;min-width:180px;max-width:240px;font-size:12px}.room-product img{width:44px;height:44px;object-fit:cover;border-radius:8px}.room-product strong{display:block;margin-top:3px}.room-product svg{width:26px;height:26px;flex:none}.room-products>.secondary{white-space:nowrap;min-height:50px;font-size:12px;flex:none}
@media(max-width:1023px){
 body.direct-chat-layout #app .topbar,body.direct-chat-layout #app .bottom-nav{display:none!important}
 body.direct-chat-layout #app .page{position:fixed;top:var(--chat-top,0px);left:0;right:0;margin:0!important;padding:12px 10px 0!important;max-width:none;height:var(--chat-height,100dvh);display:flex;flex-direction:column}
 body.direct-chat-layout #app .chat-panel{height:auto;min-height:0;flex:1;border-radius:16px 16px 0 0;margin:0}.direct-chat-layout .back-title{flex-shrink:0;margin-bottom:8px}.direct-chat-layout .back-title h2{font-size:18px}.direct-voice{padding:6px 10px calc(8px + env(safe-area-inset-bottom))}
 body.direct-chat-layout #content{flex:1;display:flex;flex-direction:column;min-height:0}
 body.direct-chat-layout .workspace{flex:1;display:flex;flex-direction:column;min-height:0}
 body.immersive-layout #app .page{height:var(--chat-height,100dvh);position:fixed;top:var(--chat-top,0px);left:0;right:0}.room-top{padding:12px 14px;gap:12px}.room-top h1{font-size:18px}.room-content{padding:0 8px calc(8px + env(safe-area-inset-bottom))}.room-description{margin:8px 16px 0;font-size:12px}.immersive-room>.tabs{margin:4px 16px 8px}body.immersive-layout .voice-stage{min-height:94px;max-height:145px;padding:14px 8px}body.immersive-layout .voice-participants{gap:12px}body.immersive-layout .voice-person>.avatar{width:48px;height:48px}.voice-person>small{display:none}body.immersive-layout .chat-messages{padding:10px;min-height:65px}body.immersive-layout .room-radio-controls{padding:8px}body.immersive-layout .chat-compose{padding:8px}.room-video-stage{padding:8px;max-height:38%}#room-live-video{max-height:160px}.profile-contact{margin-top:8px}#bio-editor{min-height:180px}.square-crop{max-width:300px}
}
@media(prefers-reduced-motion:reduce){.voice-person{animation:none!important}}


/* messenger-refresh.css */
.article-player{background:#212121;border-radius:12px;overflow:hidden;color:#fff}.article-player video{width:100%;max-height:480px;min-height:120px;border-radius:0;background:#212121;object-fit:contain}.article-video-controls{display:flex;align-items:center;gap:7px;padding:10px;flex-wrap:wrap}.article-video-controls button{border:0;background:transparent;color:#fff;min-width:32px;min-height:36px;padding:4px;font:13px Arial;cursor:pointer}.article-video-controls button:first-child{font-size:20px}.article-video-controls input{flex:1;min-width:60px;width:60px;accent-color:#c5a36b}.article-video-time{font:11px Arial;white-space:nowrap}.article-video-error{font:13px/1.5 Arial;margin:0!important;padding:0 12px 10px}.article-video-error:empty{display:none}.article-player:fullscreen{display:flex;flex-direction:column;justify-content:center}.article-player:fullscreen video{max-height:calc(100dvh - 70px);flex:1;min-height:0}

      .ma-photo-dialog{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(10,20,16,.96);color:#fff;overflow:hidden;}
      .ma-photo-dialog::backdrop{background:rgba(10,20,16,.85)}
      .ma-photo-stage{position:absolute;inset:calc(68px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;}
      .ma-photo-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;flex-shrink:0;border-radius:4px;cursor:zoom-in;}
      .ma-photo-stage.is-zoomed{display:block;}
      .ma-photo-stage.is-zoomed img{max-width:none;max-height:none;margin:auto;cursor:zoom-out;}
      .ma-photo-tools{position:absolute;top:calc(12px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));display:flex;gap:10px;z-index:2;}
      .ma-photo-tools button{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#3e3e3e;color:#fff;font:28px/1 system-ui;cursor:pointer;}
      .ma-photo-tools button:focus-visible{outline:3px solid #dcc496;outline-offset:3px}
      .ma-photo-tools button:disabled{opacity:.4;cursor:default}
      .ma-photo-status{position:absolute;inset:50% 20px auto;text-align:center;font:16px/1.5 system-ui;pointer-events:none;}
      .ma-photo-dialog [hidden]{display:none!important}
    
[hidden]{display:none!important}
.personal-news{margin:0 0 24px;border:1px solid var(--line,#e4e4e4);border-radius:16px;background:white}.profile-posts>.section-heading{margin-top:18px}
.room-title{text-align:left;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;min-width:0}.room-title h1{font:inherit;font-weight:700;font-size:20px}.room-filters{display:flex;gap:12px;margin:12px 0 20px}.room-filters input{flex:1;min-width:0}.room-filters select{max-width:42%}.room-filters input,.room-filters select{padding:12px;border:1px solid #e2e2e2;border-radius:12px;background:white}
#room-conversation{display:flex;flex:1;min-height:0;height:100%;flex-direction:column}#room-catalog{overflow:auto;padding:8px;height:100%}.room-content{min-height:0}.room-content>.primary{flex-shrink:0}.floor-controls{padding:4px 12px;flex-shrink:0}.hand-queue{display:flex;gap:8px;flex-wrap:wrap}.hand-queue>span{background:#f4f4f4;border-radius:10px;padding:4px 8px}.room-radio-controls{flex-wrap:wrap}
.chat-compose{position:relative;gap:4px}.chat-compose input[name=body]{min-width:0;flex:1}.chat-compose .icon-btn{flex-shrink:0;width:40px;height:40px}#chat-emoji{font-size:26px}.chat-attachment-preview:not(:empty){display:flex;align-items:center;gap:10px;padding:8px 14px;flex-shrink:0}.chat-attachment-preview img{width:64px;height:64px;object-fit:cover;border-radius:10px}.message-photo{display:block;padding:0;background:none;border:0;cursor:zoom-in;margin:6px 0}.message-photo img{display:block;max-width:min(280px,65vw);max-height:280px;border-radius:12px}.emoji-picker{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:8px;margin:0 10px;background:white;border:1px solid #e2e2e2;border-radius:14px;flex-shrink:0}.emoji-picker button{font-size:24px;background:none;border:0;cursor:pointer;min-height:34px}
.search-guide{display:flex;gap:12px;padding:14px 16px;border-radius:16px;background:#f3f3f3;margin-bottom:18px}.search-guide img{width:36px;height:36px}.search-guide p{margin:4px 0;font-size:13px;color:#6a6a6a}.search-guide .text-btn{margin-right:16px;font-size:12px;padding:5px 0}.side nav button.nav-link{width:100%;text-align:left;background:none;border:0;font:inherit;cursor:pointer}
.ma-photo-stage{inset:68px 56px 44px!important}.album-arrow{position:absolute;top:50%;border:0;background:#ffffff20;color:white;border-radius:12px;font-size:34px;width:42px;height:56px;cursor:pointer}.album-arrow.previous{left:6px}.album-arrow.next{right:6px}.album-count{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);color:white;font-size:13px}.article-player video#main-video{display:block;max-height:70vh}.article-player:fullscreen video#main-video{max-height:calc(100dvh - 65px)}.article-video-controls input[type=range]{padding:0;min-height:32px;border:0;background:transparent}.article-video-controls button{border-radius:8px}.article-video-controls button:hover{background:#ffffff18}.article-video-controls :focus-visible{outline:2px solid white;outline-offset:2px}
@media(max-width:600px){.room-title h1{font-size:16px}.room-filters{gap:6px}.room-filters select{font-size:13px}.ma-photo-stage{inset:64px 8px 60px!important}.album-arrow{top:auto;bottom:8px;height:40px}.album-count{bottom:20px}.search-guide{padding:10px}.article-video-controls{gap:4px;padding:8px}.article-video-controls button{min-width:28px}.article-video-time{font-size:10px}}

.emoji-picker{grid-template-columns:repeat(8,minmax(0,1fr));min-width:0}.emoji-picker button{min-width:0;padding:3px}


/* navigation.css */
.section-switch{display:none}
.account-switch{display:block;position:relative;margin-left:auto}
.account-switch summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:42px;height:42px;border:1px solid #cecece;border-radius:50%}
.account-switch summary::-webkit-details-marker{display:none}
.account-switch>div{position:absolute;right:0;top:calc(100% + 12px);z-index:45;background:#fff;border:1px solid #e6e6e6;box-shadow:0 12px 45px #3b3b3b24;border-radius:20px;padding:8px;min-width:220px;display:flex;flex-direction:column}
.account-switch>div>a,.account-switch>div>button{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;text-align:left;font-size:14px}
@media(max-width:1023px){
 body:not(.direct-chat-layout):not(.immersive-layout) .topbar{position:sticky;top:8px;z-index:40;background:#fbfbfbed;backdrop-filter:blur(14px);border-radius:18px;padding:4px 0}
 .topbar{position:relative;gap:12px;justify-content:space-between}.topbar .replaced-brand{display:none}.section-switch,.account-switch{display:block;position:relative}.section-switch{min-width:0;flex:1}.section-switch summary,.account-switch summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer}.section-switch summary::-webkit-details-marker,.account-switch summary::-webkit-details-marker{display:none}.section-switch summary img{width:34px;height:34px}.section-switch summary>span:first-of-type{font-size:20px;font-weight:700;letter-spacing:-.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.section-chevron{color:#929292;font-size:17px}.account-switch summary{width:38px;height:38px;justify-content:center;border:1px solid #e8e8e8;border-radius:50%;background:#ffffffaa}.account-switch svg{width:21px;height:21px}.section-switch nav,.account-switch>div{position:absolute;top:calc(100% + 12px);z-index:45;background:#fff;border:1px solid #e6e6e6;box-shadow:0 12px 45px #3b3b3b24;border-radius:20px;padding:8px;min-width:220px;display:flex;flex-direction:column}.account-switch>div{right:0}.section-switch nav a,.account-switch>div>a,.account-switch>div>button{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;text-align:left;font-size:14px}.section-switch nav svg{width:20px;height:20px}.section-switch a[aria-current],.section-switch a:hover{background:#f1f1f1;color:#454545}
 body #app .floating-dock{left:50%;right:auto;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100% - 28px);max-width:430px;box-sizing:border-box;padding:7px;gap:3px;min-height:72px;border:1px solid #fff;border-radius:27px;background:#ffffffeb;box-shadow:0 10px 35px #3c3c3c20,0 1px 4px #3c3c3c0d;backdrop-filter:blur(22px) saturate(140%);-webkit-backdrop-filter:blur(22px) saturate(140%)}
 body #app .floating-dock .dock-item{position:relative;flex:1;min-width:0;min-height:56px;gap:5px;padding:6px 2px;border:0;border-radius:20px;color:#8c8c8c;background:none;font-size:10px;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer;transition:background .18s,color .18s,transform .18s}.floating-dock .dock-item svg{width:22px;height:22px;stroke-width:1.7}.floating-dock .dock-item span{white-space:nowrap}.floating-dock .dock-item:active{transform:scale(.95)}body #app .floating-dock .dock-item.active{background:#ececec;color:#494949}.floating-dock .dock-item.active svg{stroke-width:2}.floating-dock .dock-item:last-child{color:#626262}.floating-dock .dock-item:last-child svg{fill:#ececec}.floating-dock .dock-item:focus-visible{outline:2px solid #6c6c6c;outline-offset:1px}.dock-keyboard #app .floating-dock{display:none!important}
 body:not(.direct-chat-layout):not(.immersive-layout) #app .page{padding-bottom:calc(116px + env(safe-area-inset-bottom))}.profile-library,.profile-posts{scroll-margin-top:18px}.minutka-launcher{bottom:calc(100px + env(safe-area-inset-bottom))!important}.minutka-drawer{bottom:calc(170px + env(safe-area-inset-bottom))!important}.own-profile-dock .profile-library>.profile-media-nav{display:none}.catalog-tabs{display:none}.floating-dock+*{max-width:100%}
}
@media(prefers-reduced-motion:reduce){.floating-dock .dock-item{transition:none!important}}
@media(max-width:1023px){
 body #app .floating-dock .dock-minutka{gap:0;padding:1px 2px 5px}
 body #app .floating-dock .dock-minutka .minutka-character{width:48px;height:38px;flex:none}
 body #app .floating-dock .dock-minutka .mascot-art{width:100%;height:100%;fill:none;stroke-width:initial}
 body:has(#app .floating-dock) .minutka-launcher{display:none}
}
.account-switch summary{color:#454545;background:#ececec;border-color:#cecece;box-shadow:0 2px 6px #3c3c3c14}
.account-switch summary svg{width:26px;height:26px;stroke-width:3}
.account-switch summary svg{stroke-width:1.8}
.conversation-menu summary svg{transform:none!important}
.ai-chat-layout #minutka-widget{display:none!important}
.minutka-header-help{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;margin-left:4px;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;opacity:.78;transition:opacity .2s}
.minutka-header-help:hover,.minutka-header-help:focus-visible{opacity:1}
.minutka-header-help .minutka-character{width:56px;height:46px}
.ai-thread-menu{position:relative;flex:none}.ai-thread-menu summary{list-style:none;cursor:pointer}.ai-thread-menu summary::-webkit-details-marker{display:none}.ai-thread-menu summary svg{transform:rotate(90deg)}
.ai-thread-menu>div{position:absolute;right:0;top:44px;z-index:10;width:180px;background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:6px;display:grid}
.ai-thread-menu button{text-align:left;padding:12px}
.ai-thread-menu summary svg{stroke-width:2.5;transform:none}
.ai-thread-row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px;border-radius:12px;padding:3px}.ai-thread-row.active{background:var(--sage)}.ai-thread-row>a{flex:1;min-width:0}.ai-thread-row .ai-thread-menu{padding-top:4px}.ai-thread-row .ai-thread-menu summary{width:32px;height:32px;background:transparent;border:0}
.ai-thread-row:has(details[open]) .ai-thread-menu{flex:0 0 100%;padding:0}.ai-thread-row .ai-thread-menu[open]>summary{margin-left:auto}.ai-thread-row .ai-thread-menu>div{position:static;width:100%;display:flex;padding:0;box-shadow:none;border:0;background:transparent}.ai-thread-row .ai-thread-menu button{flex:1;text-align:center}
.ai-thread-row{position:relative}.ai-thread-row>a{padding-right:38px}.ai-thread-row .ai-thread-menu{position:static;width:0;padding:0}.ai-thread-row .ai-thread-menu>summary{position:absolute;right:5px;top:7px}.ai-thread-row .ai-thread-menu[open]{width:100%}
.minutka-lesson{width:min(540px,calc(100% - 28px))}.lesson-question{display:flex;align-items:center;gap:12px;margin:14px 0 20px}.lesson-question .minutka-character{width:80px;height:80px}.lesson-question p{flex:1;padding:14px;border-radius:16px;background:var(--sage);line-height:1.5}.lesson-actions{display:flex;gap:8px;flex-wrap:wrap}
#minutka-widget:has(.minutka-drawer:not([hidden])) .minutka-launcher{display:none!important}
.post-carousel{display:flex;overflow-x:auto;gap:16px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:2px 2px 14px;max-width:100%;min-width:0;scrollbar-width:thin;scrollbar-color:#c1c1c1 transparent}
.post-carousel>.post{flex:0 0 min(88%,420px);scroll-snap-align:start;min-width:0;margin:0;max-height:470px}
.post-carousel .post-body{overflow:auto;flex:1;min-height:0}.post-carousel .post-actions{margin-top:auto}.profile-posts{min-width:0}
.chat-compose{display:flex;align-items:flex-end;flex-wrap:wrap;gap:4px;padding:10px;background:#fff;border-top:1px solid #e8e8e8}
.chat-compose textarea[name=body]{flex:1 1 calc(100% - 96px);width:calc(100% - 96px);min-width:0;min-height:44px;height:44px;max-height:144px;resize:none;padding:11px 12px;border:0;border-radius:16px;background:#f4f4f4;font:inherit;font-size:16px;line-height:22px;box-sizing:border-box;overflow-y:auto}
.chat-compose #chat-attach{order:1}.chat-compose textarea{order:2}.chat-compose #chat-emoji{order:3}.chat-compose .dictation-control{order:4;margin-left:44px}.chat-compose .direct-voice{order:5}.chat-compose .send{order:6;margin-left:auto;background:#515151;color:white;border-radius:50%}
.chat-compose .direct-voice,.chat-compose .dictation-control{display:flex;align-items:center;padding:0;border:0;background:none;gap:0;flex-shrink:0}
.chat-compose:not(:has(.direct-voice)){flex-wrap:nowrap}.chat-compose:not(:has(.direct-voice)) textarea{flex:1;width:auto}
.chat-compose .dm-text,.chat-compose .dm-mic{width:42px;height:40px;border-radius:12px;background:#f1f1f1;color:#515151;touch-action:none;user-select:none;-webkit-touch-callout:none;font-size:20px;font-weight:700}
.dictation-control[data-voice-state=recording] .dm-text,.chat-compose .dm-mic.recording{background:#bc4840;color:white}
.voice-feedback{position:absolute;bottom:100%;left:10px;right:10px;display:flex;align-items:center;gap:8px;background:#f4f4f4;border-radius:12px;padding:8px 12px;font-size:12px;box-shadow:0 -3px 14px #3b3b3b10}
.voice-feedback:not(:has([data-voice-status]:not(:empty))):not(:has([data-voice-timer]:not([hidden]))){display:none}
.direct-voice .voice-feedback [data-voice-status]{min-width:0;font-size:12px}
.catalog-tabs{display:flex!important;gap:6px;flex-wrap:wrap}.catalog-heading{gap:12px}.catalog-heading .primary{white-space:nowrap}
.catalog-search{display:flex;gap:8px}.catalog-search input{flex:1;min-width:0;padding:12px;border:1px solid #e2e2e2;border-radius:14px;background:white}.catalog-search button{white-space:nowrap;gap:6px}.catalog-search svg{width:18px;height:18px}.catalog-ai-hint{font-size:12px;color:#6c6c6c;margin:8px 0 20px}
@media(min-width:1024px){.chat-compose{flex-wrap:nowrap}.chat-compose textarea[name=body]{flex:1;width:auto}.chat-compose .dictation-control{margin-left:0}.chat-compose .send{margin-left:0}}
@media(max-width:1023px){.chat-compose{padding-bottom:calc(8px + env(safe-area-inset-bottom))}.account-switch summary{width:42px;height:42px}.catalog-search button{font-size:12px;padding:10px}.catalog-heading h2{font-size:18px}.catalog-heading .primary{font-size:12px;padding:10px 12px}.post-carousel>.post{flex-basis:90%;max-height:430px}}
@media(max-width:1023px){body.minutka-open{overflow:hidden}.catalog-tabs{display:none!important}.minutka-drawer{top:var(--chat-top,0px);bottom:auto!important;left:0;right:0;width:100vw;height:var(--chat-height,100dvh);max-height:none;border:0;border-radius:0;z-index:70}.minutka-drawer .minutka-messages{min-height:0}.minutka-drawer .minutka-compose{flex-shrink:0;padding-bottom:calc(11px + env(safe-area-inset-bottom))}}
.chat-compose{flex-wrap:nowrap;gap:3px}.chat-compose textarea[name=body]{flex:1 1 0;width:0;padding-left:8px;padding-right:8px}.chat-compose .dictation-control{margin-left:0}.chat-compose .send{margin-left:0}.chat-compose .icon-btn{width:36px;height:40px;min-width:36px}.chat-compose .dm-text,.chat-compose .dm-mic{width:34px;min-width:34px}.chat-compose .icon-btn svg{width:20px;height:20px}
.catalog-search{margin-bottom:20px}
.minutka-guide{position:fixed;right:max(30px,calc((100vw - 1240px)/2 + 30px));bottom:119px;z-index:59;width:min(275px,calc(100vw - 40px));padding:15px 32px 13px 16px;border:1px solid #d2bb90;border-radius:19px 19px 5px 19px;background:#fffaf0;box-shadow:0 8px 28px #2f2f2f1c;box-sizing:border-box}
.minutka-guide:after{content:'';position:absolute;right:27px;bottom:-8px;width:14px;height:14px;background:#fffaf0;border-right:1px solid #d2bb90;border-bottom:1px solid #d2bb90;transform:rotate(45deg)}
.minutka-guide small{display:block;color:#727272;font-size:11px;margin-bottom:6px}.guide-speech{display:block;border:0;background:none;color:#424242;text-align:left;padding:0;font:inherit;font-size:15px;line-height:1.45;cursor:pointer}.guide-close{position:absolute;right:3px;top:3px;width:30px;height:30px;border:0;background:none;font-size:23px;color:#727272;cursor:pointer}.guide-dismiss{margin-top:12px;padding:0;border:0;background:none;font:inherit;font-size:11px;color:#727272;text-decoration:underline;cursor:pointer}
body:has(dialog[open]) .minutka-guide,.keyboard-open .minutka-guide,#minutka-widget:has(.minutka-drawer:not([hidden])) .minutka-guide{display:none}
@media(max-width:1023px){.chat-compose{padding-left:6px;padding-right:6px}.chat-compose .icon-btn{width:32px;min-width:32px}.chat-compose .send{width:36px;min-width:36px}.minutka-guide{right:21px;bottom:calc(184px + env(safe-area-inset-bottom))}}
/* One continuous input capsule, with recording/send sharing the outer action slot. */
.chat-compose{gap:8px;background:#f5f5f5;border:0;padding:8px}
.composer-capsule{display:flex;flex:1;min-width:0;align-items:flex-end;gap:0;border:1px solid #e5e5e5;border-radius:24px;background:#fff;padding:2px 4px;box-shadow:0 1px 3px #3b3b3b0a}
.chat-compose .composer-capsule #chat-emoji{order:0}.chat-compose .composer-capsule textarea{order:1;flex:1 1 0;width:0;min-width:0;min-height:40px;height:40px;padding:9px 4px;background:transparent;border-radius:0;outline:none;line-height:22px}
.chat-compose .composer-capsule .direct-voice{order:2}.chat-compose .composer-capsule #chat-attach{order:3}
.chat-compose .composer-capsule .icon-btn{background:transparent;width:34px;min-width:34px;height:40px;color:#7f7f7f;border-radius:50%}.chat-compose .composer-capsule .dm-text{font-size:17px}.composer-capsule:focus-within{border-color:#c3c3c3}
.chat-compose>.dictation-control .dm-text,.chat-compose>.send{width:44px;min-width:44px;height:44px;border-radius:50%;background:#515151;color:white}.chat-compose>.dictation-control{align-self:flex-end}.chat-compose.voice-composer:not(.has-draft)>.send,.chat-compose.voice-composer.dictating>.send,.chat-compose.voice-composer.has-draft:not(.dictating)>.dictation-control{display:none}
.chat-compose>.dictation-control[data-voice-state=recording] .dm-text,.chat-compose .composer-capsule .dm-mic.recording{background:#bc4840;color:white}
body.direct-chat-layout #app{max-width:none;width:100%;margin:0}body.direct-chat-layout #app .side{left:0}body.direct-chat-layout #app .page{max-width:none}body.direct-chat-layout #app .main-content,body.direct-chat-layout #app .workspace,body.direct-chat-layout #app .chat-panel{max-width:none;width:100%}
body.immersive-layout #app .page{max-width:none}
@media(min-width:1024px){body.direct-chat-layout #app .page{padding:18px 12px 0}body.direct-chat-layout #app .main-content{margin:0}}
@media(max-width:1023px){body.direct-chat-layout #app .page{width:100%;padding:8px 0 0!important}body.direct-chat-layout #app .back-title{padding:0 10px}body.direct-chat-layout #app .chat-panel{border-radius:0;border-left:0;border-right:0}.chat-compose{padding:6px 6px calc(6px + env(safe-area-inset-bottom))}}
/* Full-height AI conversation; history opens vertically without consuming chat space. */
body.ai-chat-layout #app .topbar,body.ai-chat-layout #app .bottom-nav{display:none!important}
body.ai-chat-layout #app .page{height:var(--chat-height,100dvh);padding:12px 12px 0;display:flex;flex-direction:column;overflow:hidden}
body.ai-chat-layout #content,body.ai-chat-layout .workspace{flex:1;display:flex;flex-direction:column;min-height:0}
body.ai-chat-layout .ai-workspace{display:flex;flex:1;min-height:0;width:100%;gap:0}
body.ai-chat-layout .ai-conversation{flex:1;min-height:0;padding:0 12px;border-radius:20px 20px 0 0;margin:0}
body.ai-chat-layout .ai-conversation .assistant-log{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
.ai-chat-header{flex-shrink:0;position:relative;padding:10px 0;gap:8px;z-index:5}
.ai-chat-header h2{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-chat-picker{position:static;flex-shrink:0}.ai-chat-picker summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:10px;border-radius:14px;background:var(--sage);font-size:13px}.ai-chat-picker summary::-webkit-details-marker{display:none}.ai-chat-picker summary svg{width:18px;height:18px}
.ai-chat-picker nav{position:absolute;right:0;top:calc(100% - 2px);width:320px;max-width:100%;max-height:min(60dvh,480px);overflow-y:auto;display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:0 15px 40px #2d2d2d25}
.ai-chat-picker .ai-thread{flex-shrink:0;max-width:none;min-width:0;white-space:normal;background:transparent}.ai-chat-picker .ai-thread.active{background:var(--sage)}.ai-new-thread{display:flex;gap:8px;align-items:center;padding:12px;border-bottom:1px solid var(--line);font-weight:600}.ai-new-thread svg{width:18px;height:18px}.ai-no-threads{padding:12px;font-size:13px;color:var(--muted)}
body.ai-chat-layout .ai-conversation .minutka-compose{flex-shrink:0;margin:0 -12px;padding:10px 8px calc(10px + env(safe-area-inset-bottom))}.ai-chat-layout #pro-usage,.ai-chat-layout #pro-voice,.ai-chat-layout #pro-attachment{flex-shrink:0}
.ai-chat-layout #pro-compose{position:relative;min-width:0}.ai-chat-layout #pro-compose textarea{min-width:0}.ai-dictation{flex-shrink:0}.ai-dictation .ai-text{width:38px;height:41px;padding:4px;border-radius:12px;color:#515151;background:#f1f1f1;touch-action:none;user-select:none;-webkit-touch-callout:none}.ai-dictation .dictation-symbol svg{width:12px;height:16px}.ai-dictation[data-voice-state=recording] .ai-text{background:#bc4840;color:white}.ai-dictation .voice-feedback{bottom:calc(100% + 5px);left:8px;right:8px;min-height:32px;z-index:6;box-sizing:border-box}.ai-dictation .voice-feedback [data-voice-status]{overflow-wrap:anywhere}
@media(max-width:1023px){body.ai-chat-layout #app .ai-conversation{border:0;border-radius:0;padding:0 8px}body.ai-chat-layout .ai-conversation .minutka-compose{margin:0 -8px}.ai-chat-header h2{font-size:16px}.ai-chat-header>.icon-btn{width:36px;height:36px;flex-shrink:0}}
.bubble{position:relative;padding-right:42px!important}.bubble>.message-menu{position:absolute;top:4px;right:3px;width:32px;height:32px;padding:6px;display:grid;place-items:center;border-radius:50%;color:inherit;opacity:.65}.bubble>.message-menu:hover,.bubble>.message-menu:focus-visible{opacity:1;background:#3c3c3c12}.bubble>.message-menu svg,.conversation-menu summary svg{transform:rotate(90deg);width:20px;height:20px}.bubble>small{display:block;padding-top:3px}.conversation-menu{position:relative;margin-left:auto}.conversation-menu summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--sage)}.conversation-menu summary::-webkit-details-marker{display:none}.conversation-menu>div{position:absolute;right:0;top:44px;z-index:25;width:240px;padding:10px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 30px #2d2d2d20}.conversation-menu button{padding:12px;text-align:left;width:100%}
.message-delete-option{display:flex!important;flex-direction:row!important;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}.message-delete-option input{width:18px!important;height:18px;margin:0;accent-color:var(--green)}.bubble>.message-menu{opacity:1;color:#626262}.bubble>.message-menu svg{stroke-width:2.5}
.message-selection{display:grid;gap:8px;max-height:55dvh;overflow-y:auto}.message-selection label span{overflow-wrap:anywhere;min-width:0}.message-selection input{flex-shrink:0}.chat-compose .dm-text{width:38px!important;min-width:38px!important;height:40px!important;padding:4px!important}.dictation-symbol{display:flex;align-items:center;gap:1px;font-size:18px;font-weight:700;line-height:1}.chat-compose .dm-text .dictation-symbol svg{width:12px;height:16px}
.message-selection-bar{display:flex;align-items:center;gap:10px;min-height:64px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);flex-shrink:0}.message-selection-bar[hidden],.chat-compose[hidden]{display:none!important}.message-selection-bar strong{flex:1;font-size:14px}.message-selection-bar .danger{padding:10px 15px;border-radius:12px}.message-selection-bar .danger:disabled{opacity:.4;cursor:not-allowed}.chat-messages.selecting-messages .bubble{cursor:pointer;margin-left:32px;margin-right:32px;max-width:calc(100% - 44px)}.chat-messages.selecting-messages .bubble>.message-menu{display:none}.chat-messages.selecting-messages .bubble::before{content:'';position:absolute;left:-23px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:2px solid #909090;border-radius:50%;box-sizing:border-box;background:#fff}.chat-messages.selecting-messages .bubble.selected-message::before{content:'✓';display:grid;place-items:center;background:#515151;border-color:#515151;color:#fff;font-size:14px;font-weight:700}.chat-messages.selecting-messages .bubble.selected-message{outline:2px solid #515151;outline-offset:2px}

/* The conversation list uses its own search and a single header assistant. */
body.messages-list-layout .minutka-launcher{display:none!important}
body.messages-list-layout #app .page{padding-bottom:calc(116px + env(safe-area-inset-bottom))!important}
.topbar .messages-list-help{margin-left:auto;width:52px;height:44px;flex:0 0 52px;opacity:1}
.topbar .messages-list-help+.account-switch{margin-left:8px;flex:none}
body.messages-list-layout .minutka-drawer{bottom:calc(12px + env(safe-area-inset-bottom))!important}

.minutka-guide{bottom:auto!important;right:auto!important;border-radius:18px;z-index:80}.minutka-guide:after{bottom:auto;top:-8px;left:calc(var(--guide-tip,80%) - 7px);right:auto;border:0;border-left:1px solid #d2bb90;border-top:1px solid #d2bb90}.minutka-open .minutka-guide{display:none}


/* telegram-chat.css */
.direct-chat-layout .topbar,.direct-chat-layout .bottom-nav{display:none!important}
.direct-chat-layout .page{height:100dvh;min-height:0;padding:0;display:flex;flex-direction:column}
.direct-chat-layout .workspace{flex:1;min-height:0;width:100%;padding:0;display:flex}
.direct-chat-layout #content{flex:1;display:flex;flex-direction:column;min-height:0;max-width:none;width:100%;gap:0;padding:0;overflow:hidden}
.tg-header.back-title,.tg-selection{margin:0;flex:none;min-height:66px;padding:7px 12px;display:flex;gap:6px;align-items:center;background:#ffffffed;backdrop-filter:blur(18px);color:#363636;box-shadow:0 1px 0 #dce4e7;z-index:4}
.tg-header[hidden],.tg-selection[hidden],.tg-search[hidden],.tg-pin[hidden],.tg-compose-context[hidden]{display:none!important}
.tg-header .icon-btn,.tg-selection .icon-btn{border-radius:50%;background:#f3f3f3;color:inherit;width:40px;height:40px;flex:none;border:0}
.tg-header svg,.tg-selection svg,.tg-menu svg,.tg-compose-context>svg,.tg-pin svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tg-peer{display:flex;gap:11px;align-items:center;flex:1;min-width:0;text-decoration:none;color:inherit}
.tg-peer .avatar{width:44px;height:44px;flex:none;object-fit:cover;background:#e2e2e2;color:white;font-size:17px}
.tg-peer>span{min-width:0}.tg-peer strong{font-size:17px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-peer small{font-size:12px;color:#82929b;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-header .minutka-header-help{margin:0;width:40px;height:46px;flex:none;opacity:1;background:none;border:0;overflow:visible;order:0}.tg-header .minutka-header-help svg{width:44px;height:50px;stroke:none}
.tg-count{flex:1;font-size:22px;font-weight:500}.tg-selection .icon-btn:disabled{opacity:.35}
.direct-chat-layout .chat-panel{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden;background:#f2f2f2;border:0;border-radius:0;margin:0;padding:0}
.direct-chat-layout .chat-messages{flex:1;min-height:0;height:auto;padding:12px 18px 20px;display:block;overflow-y:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at top left,#f0f0f0a8,transparent 65%);scrollbar-width:thin}
.tg-message{position:relative;display:flex;margin:3px 0;padding:0 0 0 0;outline:none;touch-action:pan-y;user-select:none;transition:background .15s;border-radius:9px}
.tg-message.tg-mine{justify-content:flex-end}.tg-bubble{position:relative;background:#fff;border-radius:16px 16px 16px 5px;box-shadow:0 1px 1px #2a2a2a17;padding:7px 10px 5px;min-width:80px;max-width:min(78%,640px);overflow-wrap:anywhere;color:#202c31;transition:background .18s}
.tg-mine .tg-bubble{background:#eaeaea;border-radius:16px 16px 5px 16px}.tg-text{white-space:pre-wrap;line-height:1.45;font-size:15px;margin:0;user-select:none}
.tg-meta{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:10px;color:#748586;line-height:15px;margin-top:1px}.tg-mine .tg-meta{color:#7d7d7d}.tg-checks{display:flex}.tg-checks svg{width:17px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tg-checks.read{color:#787878}
.tg-date{position:relative;margin:15px auto 12px;width:max-content;max-width:95%;background:#8d8d8d9c;color:white;border-radius:14px;padding:3px 10px;font-size:11px;line-height:18px;font-weight:500}.tg-date:first-child{margin-top:0}
.tg-bubble .message-photo{display:block;max-width:100%;padding:0;border:0;border-radius:8px;overflow:hidden;background:none}.tg-bubble .message-photo img{display:block;max-width:100%;max-height:360px;object-fit:cover}.tg-bubble audio{display:block;max-width:100%;width:280px;height:44px}
.tg-select-check{display:none;width:22px;height:22px;border:2px solid #a7a7a7;border-radius:50%;position:absolute;left:2px;top:50%;transform:translateY(-50%);align-items:center;justify-content:center;color:transparent}.tg-select-check svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.tg-selecting .tg-message{padding-left:32px;cursor:pointer}.tg-selecting .tg-select-check{display:flex}.tg-selected{background:#8f8f8f30}.tg-selected .tg-select-check{background:#626262;border-color:#626262;color:white}.tg-selecting .tg-bubble{pointer-events:none}
.tg-active,.tg-highlight .tg-bubble{outline:2px solid #9b9b9b;outline-offset:1px}.tg-message:focus-visible .tg-bubble{outline:2px solid #626262;outline-offset:2px}
.tg-reply{display:block;text-align:left;background:#62626210;border:0;border-left:3px solid #898989;border-radius:4px;padding:5px 8px;margin:0 0 6px;width:100%;color:#626262;font-size:12px;overflow:hidden}.tg-reply strong,.tg-reply span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tg-reply span{color:#536369;margin-top:2px}.tg-missing{color:#7a878d}.tg-forwarded{color:#6d6d6d;font-size:12px;font-weight:600;margin-bottom:4px}.tg-reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.tg-reactions button{border:0;border-radius:14px;background:#7495b224;padding:3px 8px;font-size:12px}.tg-reactions button.mine{background:#626262;color:white}
.tg-menu{position:fixed;z-index:190;width:230px;background:#fff;border-radius:18px;box-shadow:0 5px 30px #142b3f38;padding:5px 0;overflow:hidden;max-height:calc(100dvh - 16px);overflow-y:auto;animation:tg-appear .12s ease-out}.tg-menu>button{display:flex;align-items:center;gap:18px;background:none;color:#253540;border:0;width:100%;text-align:left;padding:12px 18px;font-size:14px;min-height:44px}.tg-menu>button:hover,.tg-menu>button:focus-visible{background:#eff3f6;outline:none}.tg-menu>button.danger{color:#cb514d}.tg-reaction-picker{display:flex;justify-content:space-around;padding:7px 5px 10px;border-bottom:1px solid #edf0f1}.tg-reaction-picker button{border:0;background:none;font-size:24px;padding:3px;border-radius:50%}.tg-reaction-picker button:hover{background:#edf0f1}
.tg-pin{display:flex;align-items:center;padding:5px 12px;background:#fff;border-bottom:1px solid #d8e1e6;flex:none}.tg-pin>button:first-child{display:flex;gap:10px;align-items:center;flex:1;min-width:0;text-align:left;border:0;background:none;color:#626262;padding:2px}.tg-pin span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:12px}.tg-pin strong{display:block;font-size:12px}.tg-pin span span{color:#6e7a80}.tg-pin .icon-btn{width:34px;height:34px}
.tg-compose-context{display:flex;gap:12px;align-items:center;flex:none;padding:8px 14px;background:#fff;color:#626262;border-bottom:1px solid #edf1f1}.tg-compose-context>div{flex:1;min-width:0;border-left:2px solid #626262;padding-left:8px}.tg-compose-context strong,.tg-compose-context span{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tg-compose-context span{color:#6f7c83;margin-top:3px}.tg-compose-context .icon-btn{width:32px;height:32px}
.direct-chat-layout .chat-compose{flex:none;background:#f8f8f8;padding:7px 10px calc(7px + env(safe-area-inset-bottom));margin:0;border:0;border-radius:0;gap:6px}.direct-chat-layout .chat-compose[hidden]{display:none!important}.direct-chat-layout .composer-capsule{border-radius:22px}.direct-chat-layout .chat-compose textarea{font-size:15px}.direct-chat-layout .chat-compose.tg-editing .send{display:flex!important}.direct-chat-layout .tg-editing #dm-dictation{display:none!important}.direct-chat-layout #record-status:empty{display:none}.direct-chat-layout #chat-attachment-preview:empty{display:none}.direct-chat-layout .chat-attachment-preview{background:white;margin:0}
.tg-down{position:absolute;bottom:85px;right:16px;width:40px;height:40px;border-radius:50%;background:white;color:#7a7a7a;box-shadow:0 2px 8px #263e4b24;z-index:2}.tg-down svg{transform:rotate(-90deg)}.tg-load{display:block;margin:0 auto 12px;background:#ffffffbb;border:0;border-radius:16px;padding:6px 14px;color:#626262;font-size:12px}
.tg-search{flex:none;position:relative;background:white;padding:8px 12px;display:flex;gap:5px;border-bottom:1px solid #dae3e8}.tg-search input{flex:1;min-width:0;border-radius:8px;margin:0;padding:8px 10px;background:#f0f3f5}.tg-search .icon-btn{width:36px;height:36px}.tg-search-results:not(:empty){position:absolute;top:100%;left:0;right:0;max-height:40dvh;overflow:auto;background:white;z-index:6;box-shadow:0 6px 10px #263e4b18}.tg-search-results>button{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;border:0;border-bottom:1px solid #eef1f4;background:white;padding:12px;text-align:left}.tg-search-results>button:hover{background:#efefef}.tg-search-results span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.tg-search-results small{color:#83929b;white-space:nowrap;font-size:10px}.tg-search-results p{padding:12px;font-size:13px;color:#83929b}
@keyframes tg-appear{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
@media(max-width:1023px){.tg-header.back-title,.tg-selection{min-height:60px;padding:5px 6px;gap:0}.tg-peer{gap:9px}.tg-peer strong{font-size:16px}.tg-peer .avatar{width:40px;height:40px}.tg-header .icon-btn{width:34px}.tg-header .minutka-header-help{width:36px}.direct-chat-layout .chat-messages{padding:10px 8px 18px}.tg-bubble{max-width:86%;padding:7px 9px 4px}.tg-text{font-size:15px}.tg-bubble audio{width:246px}.direct-chat-layout .chat-compose{padding-left:6px;padding-right:6px}.tg-menu{width:226px}}
@media(prefers-reduced-motion:reduce){.tg-menu,.tg-message,.tg-bubble{animation:none;transition:none}}

.tg-reaction-picker button{min-width:0;width:32px;flex:1;padding:3px 0;font-size:22px}.tg-menu>button{justify-content:flex-start}.tg-header [data-tg=chat-menu] svg{stroke-width:3}.tg-dialogs{background:#fff;border-radius:20px;overflow:hidden}.tg-dialogs-tools{display:flex;align-items:center;gap:10px;padding:14px 16px 4px}.tg-dialog-search{display:flex;flex:1;align-items:center;gap:8px;border-radius:22px;background:#f1f4f5;padding:0 12px;margin:0;min-width:0;color:#87949c}.tg-dialog-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.tg-dialog-search input{width:100%;min-width:0;margin:0;border:0;background:none;padding:10px 0;outline:0;box-shadow:none}.tg-dialog-tabs{display:flex;gap:18px;border-bottom:1px solid #edf0f3;padding:4px 20px 0}.tg-dialog-tabs button{font-size:13px;font-weight:600;border:0;background:none;color:#8a969e;padding:10px 0;border-bottom:3px solid transparent}.tg-dialog-tabs button[aria-pressed=true]{color:#626262;border-color:#626262}.tg-dialog-row{display:flex;align-items:center;padding:13px 16px;gap:13px;text-decoration:none;color:inherit}.tg-dialog-row[hidden]{display:none}.tg-dialog-row:hover{background:#f5f8fa}.tg-dialog-row .avatar{width:54px;height:54px;object-fit:cover;flex:none}.tg-dialog-content{min-width:0;flex:1}.tg-dialog-title{display:flex;align-items:center;gap:5px}.tg-dialog-title strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px}.tg-dialog-title time{margin-left:auto;flex:none;font-size:11px;color:#8c99a1}.tg-dialog-preview{display:flex;gap:12px;align-items:center;margin-top:5px;color:#87929b;font-size:14px;min-height:20px}.tg-dialog-preview>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.tg-unread{font-size:11px;min-width:21px;line-height:21px;text-align:center;padding:0 5px;border-radius:50px;background:#838383;color:white}.tg-muted svg{width:13px;height:13px;fill:none;stroke:#96a2aa;stroke-width:1.8}.tg-dialog-empty{padding:36px;text-align:center;color:#8c99a1}

.tg-selected-actions{display:flex;justify-content:space-around;gap:14px;flex:none;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(18px)}.tg-selected-actions[hidden]{display:none}.tg-selected-actions button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:22px;background:#efefef;color:#626262;padding:10px 22px;font-size:14px;flex:1}.tg-selected-actions button[hidden]{display:none}.tg-selected-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.tg-selection .icon-btn[hidden]{display:none}#modal[data-dm-confirm]{max-width:340px;border-radius:23px;padding:22px;background:#fff}#modal[data-dm-confirm] h2{font-size:20px}#modal[data-dm-confirm] .dialog-head>button{display:none}#modal[data-dm-confirm] .form>p:first-child{font-size:14px;line-height:1.5;color:#667783;margin:8px 0}#modal[data-dm-confirm] .message-delete-option{font-size:14px}.tg-confirm-actions{display:flex;justify-content:flex-end;gap:10px}.tg-confirm-actions .text-btn{width:auto;font-size:14px;color:#626262;padding:10px}.tg-confirm-actions .danger{color:#c85853}
body.direct-chat-layout #app .page{padding:0!important}body.direct-chat-layout #app .chat-panel{height:auto;min-height:0;border-radius:0}body.direct-chat-layout #app .back-title{padding:7px 12px;margin:0}@media(max-width:1023px){body.direct-chat-layout #app .back-title{padding:5px 6px}}
/* Three separate, comfortable header islands in the site's palette. */
body.direct-chat-layout #app .tg-header.back-title{background:var(--bg);box-shadow:none;backdrop-filter:none;gap:8px;padding:9px 12px;min-height:76px}
.tg-header>a.icon-btn{width:44px;height:44px;background:var(--paper);border:1px solid var(--line)}
.tg-header .tg-peer{border:1px solid var(--line);border-radius:32px;background:var(--paper);padding:7px 13px 7px 7px;min-height:56px;gap:10px}
.tg-header .tg-peer .avatar{background:var(--sage);color:var(--green);width:40px;height:40px}
.tg-header-actions{display:flex;align-items:center;gap:6px;border-radius:32px;border:1px solid var(--line);background:var(--paper);padding:6px;flex:none;min-height:56px}
.tg-header .tg-header-actions .icon-btn{width:40px;height:40px;background:transparent}
.tg-header-actions .minutka-header-help{width:42px;height:42px;display:flex;align-items:center;justify-content:center}
.tg-header-actions .minutka-header-help svg{width:50px;height:50px;max-width:none}
.tg-peer small{color:var(--muted)}.tg-peer strong{color:var(--ink)}
.tg-selection{background:var(--paper);color:var(--ink)}.tg-menu{background:var(--paper)}.tg-dialogs{background:var(--paper)}
@media(max-width:1023px){body.direct-chat-layout #app .tg-header.back-title{gap:6px;padding:8px 6px;min-height:72px}.tg-header>a.icon-btn{width:36px;height:40px}.tg-header .tg-peer{gap:6px;padding:6px;min-height:52px;border-radius:27px}.tg-header .tg-peer .avatar{width:32px;height:32px;font-size:13px}.tg-peer strong{font-size:13px}.tg-peer small{font-size:10px}.tg-header-actions{gap:3px;padding:4px;min-height:52px}.tg-header .tg-header-actions .icon-btn{width:34px;height:40px}.tg-header-actions .minutka-header-help{width:36px;height:40px}.tg-header-actions .minutka-header-help svg{width:44px;height:46px}}
.sticker-open{grid-column:1/-1!important;width:100%!important;font-size:13px!important;border-radius:18px!important;background:var(--sage)!important;color:var(--green);padding:9px!important;margin-top:5px}
.sticker-picker{flex:none;background:var(--paper);padding:10px 12px 12px;border-top:1px solid var(--line);max-height:42dvh;overflow:auto}.sticker-picker[hidden]{display:none}.sticker-picker header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:13px}.sticker-picker header .icon-btn{height:30px;width:30px}.sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.sticker-grid>button{padding:0;min-width:0;border-radius:18px;background:#f3f3f3}.sticker-grid>button:hover{background:var(--sage)}
.minutka-sticker{--sticker-accent:#626262;position:relative;display:flex;flex-direction:column;align-items:center;width:150px;max-width:100%;padding:2px 4px 9px;isolation:isolate}.sticker-actor{display:block;width:145px;height:116px;max-width:100%}.sticker-actor .mascot-art{width:100%;height:100%;stroke:none}.minutka-sticker>strong{font-size:15px;line-height:1.25;color:var(--sticker-accent);background:#fffefaeb;border:2px solid #fffefa;border-radius:16px;padding:4px 9px;transform:rotate(-4deg);box-shadow:0 2px 0 #36363610;white-space:nowrap}.sticker-spark{position:absolute;right:12px;top:3px;color:var(--sticker-accent);font-size:30px;transform:rotate(12deg);z-index:2}.sticker-rose{--sticker-accent:#b16c7c}.sticker-peach{--sticker-accent:#b68250}.sticker-lilac{--sticker-accent:#827a9e}.sticker-grid .minutka-sticker{width:100%;padding:0 0 7px}.sticker-grid .sticker-actor{width:100%;height:86px}.sticker-grid .minutka-sticker>strong{font-size:10px;padding:3px 4px}.sticker-grid .sticker-spark{font-size:20px;right:4px;top:0}
.tg-message[data-sticker=true] .tg-bubble{background:transparent;box-shadow:none;padding:2px;min-width:0}.tg-message[data-sticker=true] .tg-meta{width:max-content;margin:0 auto;background:#ffffffa6;padding:1px 6px;border-radius:8px}.sticker-hearts .mascot-arm-left{transform:rotate(-25deg)!important}.sticker-hearts .mascot-arm-right{transform:rotate(25deg)!important}.sticker-check .mascot-arm-right,.sticker-wave .mascot-arm-right{transform:rotate(-35deg)!important}.sticker-coffee .mascot-arm-left{transform:rotate(20deg)!important}
@media(max-width:420px){.sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.tg-block-notice{flex:none;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:16px;background:var(--paper);color:var(--muted);font-size:14px}.tg-block-notice[hidden]{display:none}.tg-block-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}.tg-block-list>div>span{overflow-wrap:anywhere;min-width:0}

/* Fixed square targets prevent oval focus rings in the three-part header. */
.tg-header .tg-header-actions{gap:8px;padding:8px;min-height:62px}
.tg-header .tg-header-actions .icon-btn{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;aspect-ratio:1;box-sizing:border-box}
.tg-header .tg-header-actions .minutka-header-help{flex:0 0 48px;width:48px;min-width:48px;height:44px;padding:0;margin:0}
.tg-header .tg-header-actions .minutka-header-help svg{width:52px;height:52px}
.tg-header>a.icon-btn{flex:0 0 44px;width:44px;height:44px;padding:0;aspect-ratio:1;box-sizing:border-box}
@media(max-width:1023px){.tg-header .tg-header-actions{gap:6px;padding:7px;min-height:56px}.tg-header .tg-header-actions .icon-btn{flex-basis:40px;width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px}.tg-header .tg-header-actions .minutka-header-help{flex-basis:44px;width:44px;min-width:44px;height:40px}.tg-header .tg-header-actions .minutka-header-help svg{width:48px;height:48px}.tg-header>a.icon-btn{flex-basis:40px;width:40px;height:40px}}

.sticker-halloween{--sticker-accent:#694373}.sticker-grid .sticker-halloween>strong{white-space:normal;text-align:center;min-height:30px;display:flex;align-items:center;justify-content:center}.sticker-grid>button:has(.sticker-halloween){background:#f4edf2}.sticker-grid>button:has(.sticker-halloween):hover{background:#eaddeb}.sticker-halloween .sticker-spark{color:#a45e36}.sticker-ghost .mascot-arm-left{transform:rotate(30deg)!important}.sticker-ghost .mascot-arm-right{transform:rotate(-30deg)!important}


.sticker-pack-title{grid-column:1/-1;font-size:12px;color:var(--muted);text-align:left;padding:10px 3px 3px}
.sticker-picker:not([hidden])~.tg-down{display:none}
/* Compact voice controls from the repair-project chat, with keyboard-accessible seeking. */
.tg-bubble .voice-player{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;width:260px;max-width:100%;min-width:0;padding:5px 0}
.tg-bubble .voice-player audio{display:none}
.voice-player__toggle{width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--green);color:#fff;cursor:pointer}
.voice-player__toggle svg{width:15px;height:15px;fill:currentColor;stroke:none}
.tg-bubble input.voice-player__track{appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:28px;margin:0;padding:0;border:0;box-shadow:none;background:transparent;cursor:pointer;touch-action:pan-y}
.voice-player__track::-webkit-slider-runnable-track{height:6px;border-radius:99px;background:linear-gradient(to right,var(--green) var(--voice-progress,0%),#4e4e4e26 var(--voice-progress,0%))}
.voice-player__track::-moz-range-track{height:6px;border-radius:99px;background:#4e4e4e26}
.voice-player__track::-moz-range-progress{height:6px;border-radius:99px;background:var(--green)}
.voice-player__track::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;margin-top:-2px;border:0;border-radius:50%;background:var(--green)}
.voice-player__track::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:var(--green)}
.voice-player__time{min-width:35px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;text-align:right}
.tg-header .tg-peer>span:last-child{flex:1;min-width:0;text-align:center}
.tg-header .tg-peer strong,.tg-header .tg-peer small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg-header .tg-peer .avatar{flex-shrink:0}
.tg-peer .last-seen.is-online{color:var(--green);font-weight:600}
body.direct-chat-layout .chat-messages{scroll-padding-bottom:12px;overscroll-behavior-y:contain}
@media(max-width:1023px){body.direct-chat-layout.keyboard-open .chat-form{padding-bottom:8px}}

.tg-bubble .voice-player{grid-template-columns:36px minmax(0,1fr);column-gap:10px;row-gap:0}.voice-player__time{grid-column:2;text-align:left;font-size:12px;line-height:1.5;min-height:18px}.voice-player__toggle{grid-row:1/3;width:36px;height:36px}.direct-voice [data-voice-timer]{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}

.tg-bubble{touch-action:pan-y}.tg-message .tg-bubble{translate:var(--reply-shift,0px) 0;transition:translate .18s ease-out}.tg-message.tg-swiping .tg-bubble{transition:none}.tg-message.tg-swiping{position:relative}.tg-message.tg-swiping:before{content:'↩';position:absolute;left:0;top:50%;translate:0 -50%;font-size:23px;color:#89828d;opacity:.55}.tg-message.tg-reply-ready:before{color:#70557c;opacity:1}

/* Individual sticker scenes, with readable captions and no unrelated emoji badge. */
.sticker-actor{width:170px;height:164px}
.minutka-sticker{width:178px}
.minutka-sticker>strong{white-space:normal;text-align:center;font-weight:750;background:#fffaf0;color:#654632;border-color:#fffaf0}
.sticker-grid .sticker-actor{height:112px}
.sticker-grid .minutka-sticker>strong{font-size:11px;line-height:14px;min-height:28px;display:flex;align-items:center;justify-content:center;padding:2px 5px;margin-top:2px}
.sticker-grid>button{background:transparent;border:0}
.sticker-grid>button:hover{background:#f3ebe1}
.sticker-grid .sticker-halloween>strong{color:#694373}

.tg-message[data-sticker=true] .tg-bubble{border:0}

/* Translation stays inside messages and the existing overflow menu. */
.tg-translation-note{display:block;max-width:100%;margin:4px 0 0;padding:4px 0;border:0;background:transparent;color:inherit;opacity:.72;font:inherit;font-size:11px;line-height:1.4;text-align:start;cursor:pointer;overflow-wrap:anywhere;min-height:28px}.tg-translation-note:hover{opacity:1;text-decoration:underline}.tg-translation-note:focus-visible{outline:2px solid currentColor;outline-offset:2px}.tg-text[dir=auto]{unicode-bidi:plaintext}


/* sales-consultations.css */

/* Product consultations share the storefront typography and chat controls. */
.sales-seller-tools,.sales-desk-controls{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid #ece8e1;border-radius:18px;margin:0 0 16px}
.sales-availability{display:flex;align-items:center;gap:9px;margin:0;flex:1;font-size:14px;font-weight:600;white-space:nowrap}
.sales-availability input{appearance:auto;width:18px;height:18px;accent-color:#427868;margin:0}
.sales-team-list{display:grid;gap:8px;margin-bottom:16px}.sales-team-row,.sales-team-invite{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;background:#f7f6f3;border-radius:12px}.sales-team-row small{display:block;color:#78756e;margin-top:3px}
.sales-inbox{margin:0 0 12px}.sales-inbox:empty{display:none}.sales-inbox .muted{font-size:13px;text-align:center;margin:14px 0}.sales-desk-controls{flex-wrap:wrap;margin-bottom:10px}.sales-desk-controls select{width:100%}
.sales-queue-tabs{display:flex;gap:4px;padding:4px;background:#eeeae3;border-radius:12px;width:fit-content;margin:12px 0}.sales-queue-tabs button{border:0;border-radius:9px;padding:7px 24px;background:none;color:#77716a;font:inherit;font-size:14px}.sales-queue-tabs button[aria-pressed=true]{background:#fff;color:#292b29;box-shadow:0 1px 3px #0001}
.sales-queue-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 8px;border-bottom:1px solid #eeeae3}.sales-queue-row>span{min-width:0}.sales-queue-row strong{font-size:14px}.sales-queue-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px;margin-top:4px;color:#77716a}.sales-queue-row .secondary{flex:none;font-size:12px;padding:9px 12px;border-radius:12px}
.sales-listing-status:empty{display:none}.sales-listing-status{font-size:12px;margin:6px 0}.sales-listing-status.online{color:#327264}.sales-listing-status.online:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px}.sales-listing-status a{display:inline-flex;align-items:center;gap:6px}.sales-listing-status svg{width:16px;height:16px}
.sales-invitation{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:12px 0;background:#fffbf3;border:1px solid #eadfc8;border-radius:16px;font-size:14px}.sales-invitation>span{flex:1;min-width:0;overflow-wrap:anywhere}.sales-invitation .secondary{padding:8px 12px;font-size:13px}
.sales-chat{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#f8f7f4;color:#292b29;border:1px solid #e7e2d9;border-radius:22px;box-shadow:0 12px 50px #26211a24}
.sales-dialog{position:fixed;right:24px;bottom:100px;width:min(420px,calc(100vw - 24px));height:min(580px,calc(100dvh - 125px));z-index:80}
.sales-chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;background:#fff;padding:12px 14px;border-bottom:1px solid #eeeae4}.sales-chat-header>span{display:flex;align-items:center;gap:10px;min-width:0}.sales-chat-header strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sales-chat-header .avatar{width:34px;height:34px;flex:none;font-size:14px}.sales-chat-header>div{display:flex;flex:none;gap:4px}.sales-chat .icon-btn{width:38px;height:38px;min-width:38px;padding:9px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;box-shadow:none;color:#555950;flex:none}.sales-chat .icon-btn svg{width:21px;height:21px}
.sales-chat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 12px;overflow-anchor:none}.sales-chat .tg-message{display:flex;justify-content:flex-start;margin-bottom:10px}.sales-chat .tg-message.tg-mine{justify-content:flex-end}.sales-chat .tg-bubble{max-width:88%;padding:10px 12px;background:#fff;border:1px solid #eeeae3;border-radius:16px 16px 16px 4px}.sales-chat .tg-mine .tg-bubble{background:#f3e4c6;border-color:#ead8b4;border-radius:16px 16px 4px 16px}.sales-chat .tg-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45}.sales-chat .tg-meta{display:flex;justify-content:flex-end;font-size:10px;color:#7a7973;margin-top:4px}.sales-chat .message-photo{padding:0;border:0;background:none}.sales-chat .message-photo img{display:block;width:100%;max-height:250px;object-fit:contain;border-radius:10px}
.sales-composer{display:flex;align-items:flex-end;gap:2px;flex:none;margin:8px 10px 10px;padding:4px;background:#fff;border:1px solid #e4dfd5;border-radius:22px}.sales-composer textarea{font:inherit;font-size:15px;line-height:22px;resize:none;min-width:0;width:100%;min-height:38px;max-height:110px;margin:0;padding:8px 4px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none}.sales-composer .sales-send{background:#bd794e;border-radius:50%;color:#fff}.sales-dictation{position:relative;flex:none}.sales-dictation [data-voice-status]:empty{display:none}.sales-dictation [data-voice-status]:not(:empty){position:absolute;right:0;bottom:45px;background:#fff;padding:8px;border-radius:10px;white-space:nowrap;font-size:12px}.sales-composer-state:empty{display:none}.sales-composer-state{flex:none;padding:0 16px 10px;font-size:12px;color:#806f56}
.sales-radio{flex:none;margin:8px 12px 0;background:#eaf1ed;border-radius:14px;padding:10px}.sales-radio[hidden]{display:none}.sales-radio-state{font-size:12px;color:#3e6759;text-align:center;margin-bottom:6px}.sales-radio-actions{display:flex;align-items:center;justify-content:center;gap:10px}.sales-hold{display:flex;align-items:center;justify-content:center;gap:8px;background:#4d7c6b;color:#fff;border:0;border-radius:12px;padding:12px;font-size:13px;touch-action:none;user-select:none}.sales-hold:active{background:#345b4d}.sales-hold svg{width:20px;height:20px}
.sales-options{display:grid;gap:5px}.sales-options button{display:flex;align-items:center;gap:12px;padding:13px;background:#f6f4ef;border:0;border-radius:12px;color:inherit;font:inherit;text-align:left}.sales-options svg{width:22px;height:22px;flex:none}
.sales-chat-offers,.sales-offer-strip{display:flex;gap:8px;overflow-x:auto;flex:none;padding:10px;scrollbar-width:thin}.sales-chat-offers[hidden]{display:none}.sales-chat-offers button,.sales-offer-strip button{display:flex;gap:8px;align-items:center;width:180px;flex:0 0 180px;background:#fff;border:1px solid #e7e2d9;border-radius:12px;padding:7px;color:inherit;text-align:left}.sales-chat-offers img,.sales-offer-strip img{width:42px;height:48px;object-fit:contain;border-radius:7px}.sales-chat-offers span,.sales-offer-strip span{min-width:0;font-size:12px}.sales-chat-offers small,.sales-offer-strip small{display:block;font-size:12px;color:#8a633d;margin-top:4px}.sales-offer-strip{grid-column:1/-1;margin-bottom:8px}
.sales-product-results{display:grid;gap:8px;max-height:50dvh;overflow-y:auto}.sales-product-results button{display:flex;align-items:center;gap:12px;text-align:left;background:#f8f7f4;border:1px solid #eae5db;border-radius:14px;padding:8px;color:inherit}.sales-product-results img{width:58px;height:66px;object-fit:contain;border-radius:9px}.sales-product-results button>span{flex:1;min-width:0}.sales-product-results strong{display:block;font-size:14px}.sales-product-results small{display:block;margin-top:4px}.sales-product-results svg,.sales-placeholder svg{width:24px;height:24px;flex:none}
.sales-chat-page{height:calc(100dvh - 54px);max-width:800px;margin:auto;display:flex;min-height:0}.sales-chat-full{width:100%;height:100%;box-shadow:none}.sales-chat-page .sales-chat-messages{padding:20px}.sales-chat-page .sales-chat .tg-bubble{max-width:75%}
@media(max-width:600px){.sales-dialog{right:8px;bottom:90px;width:calc(100vw - 16px);height:min(560px,calc(100dvh - 112px));border-radius:20px}.sales-chat-page{height:calc(100dvh - 24px)}.sales-chat-page .sales-chat-messages{padding:12px}.sales-chat .icon-btn{width:36px;height:36px;min-width:36px;padding:8px}.sales-queue-row small{max-width:160px}.sales-seller-tools,.sales-desk-controls{gap:8px;padding:10px}.sales-availability{font-size:13px}.sales-seller-tools .icon-btn{width:32px;height:32px}.sales-chat-full{border-radius:16px}.sales-chat-page .sales-chat .tg-bubble{max-width:88%}}

.sales-chat.sales-collapsed{height:60px}.sales-chat.sales-collapsed>:not(.sales-chat-header){display:none}.sales-chat [data-sales-fold] svg{transform:rotate(-90deg)}.sales-chat.sales-collapsed [data-sales-fold] svg{transform:rotate(90deg)}.sales-chat-full.sales-collapsed{height:60px}

.sales-dialog.sales-collapsed{position:static;width:100%;margin:12px 0;box-shadow:none}.sales-chat .icon-btn[hidden]{display:none}.sales-attachment{display:flex;align-items:center;gap:10px;padding:8px 16px}.sales-attachment[hidden]{display:none}.sales-attachment img{width:50px;height:50px;object-fit:cover;border-radius:10px}

.sales-chat-page{flex:1;width:100%;height:100%;padding:8px;box-sizing:border-box}.keyboard-open .sales-dialog:not(.sales-collapsed){top:calc(var(--chat-top,0px) + 8px);bottom:auto;height:calc(var(--chat-height,100dvh) - 16px);max-height:none}

.sales-message-author{display:block;font-size:11px;color:#82705c;margin-bottom:4px}.sales-history{display:block;margin:0 auto 14px}.sales-history[hidden]{display:none}

