/* Light working surface, violet accents, and two-level navigation. */
:root{--ink:#0f172a;--muted:#334155;--line:#eff6ff;--accent:#0066ff;--soft:#eff6ff;--shadow:0 12px 35px #35215d12}
html,body{height:100%;background:#fff;color:var(--ink);font-family:"Inter",sans-serif;font-size:16px}
button,input,textarea,select{font-family:inherit;font-size:14px}
button{cursor:pointer;transition:background .15s,color .15s,border-color .15s}
button:focus-visible,a:focus-visible{outline:2px solid #0066ff;outline-offset:3px}
input:focus-visible,textarea:focus-visible{outline:2px solid #cbd5e1;outline-offset:3px}
h1,h2,h3{font-family:"Inter",sans-serif;letter-spacing:-.03em}
small{font-size:12px}
.prototype-switcher{position:relative;inset:auto;transform:none;z-index:120;height:54px;width:100%;padding:0 22px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:#fff;color:var(--ink);justify-content:space-between;gap:12px}
.prototype-brand{font-size:16px;letter-spacing:-.03em}.prototype-brand span{font-weight:400;font-size:12px;margin-left:12px;color:#64748b}
.product-toggle{display:flex;align-items:center;gap:4px}.prototype-switcher small{font-size:12px;font-weight:400;color:#334155;letter-spacing:0;margin-right:8px}
.prototype-switcher button{font-size:14px;font-weight:500;border:0;background:#f8fafc;border-radius:7px;padding:7px 15px;color:#334155}
.prototype-switcher button.active{background:var(--soft);color:#0066ff;box-shadow:inset 0 0 0 1px #eff6ff}
.app.personal,.app.business{height:calc(100dvh - 54px);grid-template-columns:66px 244px minmax(0,1fr);background:#fff}
.p-work,.b-main{height:calc(100dvh - 54px);background:#fff;grid-column:3;grid-row:1}
.product-rail{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:9px;background:#f8fafc;border-right:1px solid var(--line);padding:20px 5px}
.product-rail button{width:54px;min-height:58px;border:0;background:transparent;color:#334155;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:12px}
.product-rail button:hover,.product-rail button.active{background:#eff6ff;color:#0066ff}
.product-rail svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.product-rail hr{width:25px;border:0;border-top:1px solid #e2e8f0;margin:8px 0}
.p-sidebar,.b-sidebar{grid-column:2;grid-row:1;background:#fff;border-right:1px solid var(--line);color:#334155;padding:22px 12px 16px;scrollbar-width:thin;scrollbar-color:#e2e8f0 transparent}
.p-sidebar>header,.b-sidebar>header{color:#0f172a;padding-bottom:22px}
.p-sidebar>header b,.b-sidebar>header b,.p-sidebar>footer b,.b-sidebar>footer b{color:#0f172a;font-size:14px}
.p-sidebar>header small,.b-sidebar>header small,.p-sidebar>footer small,.b-sidebar>footer small{color:#64748b;font-size:12px}
.company-logo,.p-sidebar .logo{background:#eff6ff;color:#64748b;border-radius:10px;box-shadow:none}
.p-sidebar .search,.dark-search{background:#f8fafc;border:1px solid var(--line);margin:0 0 14px}
.p-sidebar .search input,.dark-search input{color:#334155;font-size:14px}
.b-sidebar nav button,.main-links button,.tree button{color:#334155;font-size:14px;border-radius:7px;min-height:38px;padding:9px 11px;line-height:1.35}
.b-sidebar nav button.active,.main-links button.active,.tree button.active{background:var(--soft);color:#0066ff;font-weight:600}
.b-sidebar nav button:hover,.main-links button:hover,.tree button:hover{background:#f8fafc;color:#0066ff}
.b-sidebar nav>span,.sidebar-section,.tree header{font-size:12px;letter-spacing:.045em;color:#64748b;padding:21px 11px 8px}
.sidebar-section{display:block}.b-sidebar nav>span:first-child{padding-top:4px}
.b-sidebar nav em{color:#64748b;background:#eff6ff;font-size:12px}
.b-sidebar nav .sidebar-new-chat,.main-links .sidebar-new-chat{background:var(--soft);color:#0066ff;font-weight:600;margin-bottom:4px}
.p-sidebar>footer,.b-sidebar>footer{border-color:var(--line);padding-top:14px;margin-top:24px}
.p-sidebar .tree{margin-top:6px}.tree .nested{font-size:13px}.tree em{font-size:12px}
.teal-avatar,.avatar.purple{background:#64748b;color:white}.company-logo{border:0}
.page,.workspace-page,.shared-library{padding:32px clamp(22px,3.5vw,54px);background:#fff;overflow:auto}
.page-head,.workspace-head{align-items:center;margin-bottom:28px;gap:20px}
.page-head h1,.workspace-head h1{font-size:28px;font-weight:600;margin:6px 0 9px}
.page-head p,.workspace-head p{color:#64748b;font-size:14px;line-height:1.55;margin:0}
.page-head small,.workspace-head small{font-size:12px;color:#64748b;letter-spacing:.06em}
.primary,.page-head>button.primary,.workspace-actions .primary{background:#0066ff;color:white;border:1px solid #0066ff;border-radius:9px;box-shadow:none;font-size:14px;font-weight:500;padding:11px 17px}
.primary:hover{background:#0066ff}
.workspace-actions>button,.workspace-head button{font-size:14px;border-radius:8px;white-space:nowrap}
#workspace>.workspace-tabs{display:none}
#workspace[data-area="recent"] .workspace-actions,#workspace[data-area="favorites"] .workspace-actions,#workspace[data-area="recent"] .workspace-toolbar>div,#workspace[data-area="favorites"] .workspace-toolbar>div{display:none}
#workspace .workspace-section-title{display:none}
.workspace-toolbar{border:0;margin:0 0 20px;padding:0;gap:16px}
.workspace-toolbar label{background:#f8fafc;border:1px solid var(--line);border-radius:8px}
.workspace-toolbar button{font-size:14px;color:#334155}
.workspace-list{border:1px solid var(--line);border-radius:11px;background:white;overflow:hidden}
.workspace-list article{background:white;border:0;border-bottom:1px solid var(--line);padding:18px 16px;min-height:82px}
.workspace-list article:last-child{border-bottom:0}
.workspace-list article:hover{background:#f8fafc}.workspace-list article b{font-size:14px;font-weight:500}
.workspace-list article small,.workspace-list article em{color:#64748b;font-size:12px}
.workspace-list .item-icon,.workspace-folder .item-icon{background:#eff6ff;color:#64748b}
.workspace-grid{gap:15px}.workspace-grid article{border-color:var(--line);box-shadow:none;border-radius:11px;background:#fff}
.workspace-grid article h3{font-weight:500;font-size:16px}
.workspace-grid article p{font-size:13px}.workspace-grid footer button{font-size:14px}
.privacy-badge{background:#f8fafc!important;color:#64748b!important}
.studio-summary{display:flex;border:1px solid var(--line);border-radius:12px;gap:0;margin-bottom:26px;overflow:hidden}
.studio-summary article{flex:1;min-width:0;background:#fff;color:var(--ink);border-radius:0;padding:20px 24px;border-right:1px solid var(--line)}
.studio-summary article:last-child{border:0}.studio-summary span{color:#64748b;font-size:12px;letter-spacing:.04em}
.studio-summary strong{font:500 30px "Inter";margin:9px 0 3px;color:#334155}
.studio-summary small{color:#64748b;font-size:12px}
.studio-catalog{gap:18px}.studio-catalog article{padding:22px;border-color:var(--line);border-radius:12px;min-height:215px;box-shadow:0 2px 5px #29134203}
.studio-catalog header b{font-size:16px;font-weight:500}.studio-catalog header small{font-size:12px}
.studio-catalog article>p{font-size:14px;line-height:1.65;min-height:45px;color:#64748b}
.studio-catalog article>footer{flex-wrap:wrap;gap:12px}.studio-catalog footer>span{flex-basis:100%;font-size:12px}
.studio-catalog footer button{font-size:14px;font-weight:500;color:#64748b;padding:6px 0}
.studio-catalog .agent-chat-button{margin-left:auto;border:1px solid #eff6ff;border-radius:7px;padding:6px 12px;background:#f8fafc}
.agent-orb,.blue-orb,.purple-orb,.orange-orb{background:#eff6ff;color:#64748b;border:1px solid #eff6ff;border-radius:12px}
.studio-catalog header>em{font-size:12px;font-weight:400;background:#f2f7f4;color:#638770}
.agent-studio-home{background:white}
.directory-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:20px}
.directory-toolbar .search{margin:0;width:340px;background:#f8fafc;border-color:var(--line)}
.directory-toolbar>span{color:#64748b;font-size:13px;white-space:nowrap}
.directory-heading{display:grid;grid-template-columns:1fr 100px 80px;padding:0 40px 12px 66px;color:#64748b;font-size:12px;border-bottom:1px solid var(--line)}
.channel-directory-row{display:grid;grid-template-columns:38px minmax(0,1fr) 100px 80px 16px;gap:12px;align-items:center;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);padding:22px 12px;border-radius:0}
.channel-directory-row:hover{background:#f8fafc}
.channel-symbol{display:grid;place-items:center;background:#f8fafc;color:#64748b;border:1px solid #eff6ff;border-radius:11px;width:36px;height:38px;font-size:22px}
.channel-info{min-width:0;display:flex;flex-direction:column;gap:5px}
.channel-info b{font-size:15px;font-weight:600;color:#334155}.channel-info>span{font-size:13px;color:#64748b}
.channel-info small{font-size:13px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.channel-members,.channel-activity,.row-chevron{font-size:12px;color:#64748b}
.channel-layout{grid-template-columns:210px minmax(0,1fr);position:relative;height:100%;min-height:0;overflow:hidden}
.channel-layout .thread{display:none}.channel-layout.thread-open{grid-template-columns:210px minmax(0,1fr) minmax(270px,32%)}
.channel-layout.thread-open .thread{display:flex;min-width:0;overflow:hidden}
.channel-list{background:#f8fafc;border-color:var(--line)}.channel-list>header{padding:0}
.channel-list>header .back-channels{width:auto;min-height:36px;border:0;background:transparent;font-size:13px;color:#64748b}
.channel-list>button{font-size:13px;min-height:45px}.channel-list>button.active{background:var(--soft);color:#64748b}
.channel-list>button em{font-size:12px}
.channel-chat>header{background:#fff;border-color:var(--line)}
.channel-chat h2{font-size:15px;font-weight:500}
.channel-messages{padding:20px 28px}.channel-messages p,.thread article p{font-size:16px;line-height:1.65}
.channel-chat{height:100%;min-height:0;overflow:hidden}.channel-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.channel-compose{position:relative;flex:0 0 auto}.message-actions{display:flex;align-items:center;gap:14px;margin-top:7px;flex-wrap:wrap}.message-actions button{border:0;background:transparent;color:#64748b;font-size:13px;padding:5px 0}.message-actions button:hover{color:#0066ff}.thread{height:100%;min-height:0}.thread-conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.thread-conversation>#threadOrigin{display:grid;grid-template-columns:34px 1fr;gap:9px;padding:14px}.thread>form{flex:0 0 auto}.dm-chat>form{position:relative}.dm-format-toolbar{display:flex;align-items:center;gap:2px}.dm-chat #dmForm .dm-format-toolbar button,.dm-chat #dmForm .emoji-tray button,.dm-chat #dmForm .attachment-preview button{min-width:32px;width:auto;height:32px;border:0!important;border-radius:8px!important;background:transparent!important;color:inherit!important}.dm-format-toolbar button.active{background:#e6efff!important;color:#0066ff!important}.dm-chat #dmForm>footer>button:last-child{width:34px!important;height:34px;background:#0066ff!important;color:#fff!important}.dm-chat .emoji-tray{left:12px;bottom:64px}
.channel-messages article time{font-size:12px}.channel-messages article header b{font-size:14px;font-weight:500}
.thread-trigger{font-size:13px;color:#64748b;padding:5px 0}
.reply-count{display:none}.thread-conversation .reply-count{display:block}
.composer,.channel-compose,.dm-chat>form{background:#fff;border:1px solid #e2e8f0;box-shadow:0 4px 20px #ab8dd618,0 0 0 3px #f8fafc;border-radius:17px;padding:16px}
.channel-compose:focus-within{border-color:#0066ff;box-shadow:0 3px 18px #b79bd32b}
.composer .send,.channel-compose .b-send,.dm-chat>form button:last-child{background:#0066ff;color:#fff;border:0;border-radius:50%}
.channel-compose textarea{font-size:16px;line-height:1.6;min-height:78px;background:transparent}
.composer>textarea{font-size:16px;line-height:26px;min-height:26px;max-height:182px;padding:0;padding-right:16px;margin:0;background:transparent}
.composer-pickers>button{border-color:var(--line);border-radius:20px;font-size:13px;font-weight:400;padding:7px 10px}
.composer-pickers b{font-weight:500}.composer-pickers .mini-logo{display:none}
.corp-chat>header{background:#fff;border-color:var(--line)}
.corp-chat>header h2{font-size:15px;font-weight:500;margin:4px 0}
.corp-chat>main h1{font-size:30px;font-weight:500;color:#334155}
.corp-chat>main p{font-size:14px;color:#64748b}
.corp-chat .private-pill{background:#f8fafc;color:#64748b;font-size:12px;letter-spacing:0}
.starter-grid{gap:10px}.starter-grid button{background:#fff;border-color:var(--line);border-radius:10px;box-shadow:none}
.corp-composer{max-width:820px}
.product-home>header,.business-home>header{background:#fff;border:0;padding:0 0 20px;color:var(--ink);box-shadow:none;border-radius:0}
.product-home>header h1{font-size:30px;font-weight:500;max-width:700px}
.product-home>header p{font-size:14px;color:#64748b;max-width:700px}.product-home>header>span{font-size:12px;color:#64748b}
.quick-grid>button,.business-quick>button{background:#fff;border:1px solid var(--line);color:var(--ink);box-shadow:none;border-radius:12px;min-height:150px}
.quick-grid b{font-size:16px;font-weight:500}.quick-grid small{font-size:13px;color:#64748b}
.quick-grid i{background:#eff6ff;color:#64748b}.quick-grid em{color:#64748b;font-size:12px}
.personal-history{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.personal-history button{display:flex;gap:16px;align-items:center;text-align:left;width:100%;padding:22px;background:#fff;border:0;border-bottom:1px solid var(--line);color:#334155}
.personal-history button b{flex:1;font-size:14px;font-weight:500}.personal-history small{display:block;color:#64748b;margin-top:6px}
.studio-head{background:#fff}.studio-head h1{font-size:20px;font-weight:500}.studio-tabs button.active{border-color:#64748b;color:#64748b}
.agent-form{border-color:var(--line);box-shadow:none}.agent-form input,.agent-form textarea{font-size:14px;border-color:var(--line);border-radius:8px}
@media(max-width:1200px) and (min-width:801px){.app.personal,.app.business{grid-template-columns:58px 220px minmax(0,1fr)}.product-rail button{width:48px}.channel-layout{grid-template-columns:1fr}.channel-list{display:none}.channel-switcher{display:block;max-width:none}.channel-title{display:none}.channel-layout.thread-open{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:800px){
 .prototype-switcher{height:50px;padding:0 12px;inset:auto;transform:none;justify-content:space-between;gap:8px}
 .prototype-brand{font-size:14px}.prototype-brand span,.prototype-switcher small{display:none}
 .prototype-switcher button{padding:7px 13px;font-size:13px}
 .app.personal,.app.business{height:calc(100dvh - 50px);grid-template-columns:minmax(0,1fr);grid-template-rows:52px minmax(0,1fr) 62px}
 .product-rail{display:none}.p-work,.b-main{grid-column:1;grid-row:2;height:auto;overflow:hidden}
 .mobile-bar,.business-mobile-bar{background:#fff;color:#334155;backdrop-filter:none;padding:6px 12px}
 .mobile-bar small,.business-mobile-bar small{color:#64748b;font-size:12px}
 .business-mobile-bar>button:first-child,.mobile-bar>button:first-child{background:#f8fafc;border-color:var(--line);color:#64748b;border-radius:8px;width:36px;height:36px}
 .p-sidebar,.b-sidebar{top:50px;bottom:0;grid-column:auto;width:min(300px,86vw);padding:18px 14px;background:#fff}
 .nav-scrim{top:50px}.drawer-close{color:#64748b!important}
 .b-sidebar nav button.active{font-size:14px}.b-sidebar nav>span,.sidebar-section{font-size:12px}
 .mobile-bottom{box-shadow:none;padding-top:4px}.mobile-bottom button{font-size:12px;color:#64748b}
 .mobile-bottom button.active,.business-bottom button.active{color:#64748b;background:#eff6ff}
 .page,.workspace-page,.shared-library{padding:22px 16px 28px}
 .page-head,.workspace-head{margin-bottom:22px;display:flex;flex-wrap:wrap;gap:12px}
 .page-head h1,.workspace-head h1{font-size:25px;margin-top:5px}
 .page-head p,.workspace-head p{font-size:14px;line-height:1.5}
 .page-head>button{margin:0}.page-head small,.workspace-head small{display:none}
 .workspace-actions{margin:0;gap:8px;flex-wrap:wrap;overflow:visible}
 .workspace-list article{grid-template-columns:30px minmax(0,1fr) repeat(3,28px);padding:17px 9px;gap:5px}
 .workspace-list article b{font-size:14px;overflow-wrap:anywhere}
 .workspace-list article small{font-size:12px}.workspace-list article>button{font-size:14px;min-height:36px;padding:4px}
 .workspace-grid{grid-template-columns:1fr}.workspace-toolbar label{margin:0;width:100%}
 .directory-toolbar{margin-bottom:16px;gap:10px}.directory-toolbar .search{width:auto;flex:1;min-width:0}
 .directory-heading{display:none}.channel-directory-row{grid-template-columns:32px minmax(0,1fr) 16px;gap:10px;padding:20px 0}
 .channel-symbol{width:31px;height:34px;font-size:20px}
 .channel-members,.channel-activity{display:none}.channel-info>b{font-size:14px}
 .channel-info>span{font-size:12px;line-height:1.4}.channel-info small{font-size:12px;margin-top:4px}
 .channel-layout,.channel-layout.thread-open{grid-template-columns:minmax(0,1fr)}
 .channel-layout .channel-list{display:none}.channel-layout .thread{display:none;inset:102px 0 62px;transform:none}
 .channel-layout.thread-open .thread{display:flex;transform:none;width:100%;box-shadow:none}
 .channel-switcher{background:#f8fafc!important;color:#64748b;max-width:235px;font-size:13px}
 .channel-messages{padding:14px 16px}.channel-messages article p{font-size:16px}
 .channel-compose,.composer,.dm-chat>form{padding:12px;margin:8px 10px 12px;box-shadow:0 2px 12px #b391d418}
 .channel-compose textarea{min-height:65px;font-size:16px}
.composer>textarea{font-size:16px}
 .composer-pickers{gap:5px;flex-wrap:wrap}.composer-pickers>button{font-size:12px;min-height:36px;padding:6px 8px}
 .composer-pickers>button b{max-width:112px}
 .corp-composer{width:calc(100% - 20px)}.corp-chat>main h1{font-size:26px;line-height:1.3}
 .corp-chat>main{padding:20px 18px}.corp-chat>main p{font-size:14px;line-height:1.6}
 .corp-chat>header{display:none}.corp-chat{grid-template-rows:minmax(0,1fr) auto}
 .studio-summary{flex-wrap:wrap;margin-bottom:18px}
 .studio-summary article{padding:14px 10px;min-width:85px}
 .studio-summary span{font-size:12px;letter-spacing:0;line-height:1.4;display:block;min-height:34px}
 .studio-summary strong{font-size:23px;margin:7px 0}.studio-summary small{display:none}
 .studio-catalog{grid-template-columns:1fr;gap:14px}.studio-catalog article{padding:18px;min-height:0}
 .studio-catalog article>header{grid-template-columns:36px minmax(0,1fr);gap:9px}
 .studio-catalog header>em{grid-column:2;width:max-content;padding:3px 7px}.studio-catalog header b{font-size:16px}
 .studio-catalog article>p{margin:15px 0;min-height:0}.studio-catalog article>footer{gap:10px}
 .product-home>header{padding:4px 4px 16px}.product-home>header h1{font-size:27px}
 .quick-grid,.business-quick{grid-template-columns:1fr}.quick-grid>button{min-height:125px}
 .picker{max-height:calc(100dvh - 165px);bottom:70px}
 .studio-head>div:first-child>button{display:block!important}.studio-head{gap:6px}.studio-head h1{font-size:15px}
 .studio-head>div:last-child button:first-child{display:block!important;font-size:12px}.studio-head button{font-size:12px;padding:7px}
 .test-window{height:100dvh}.toast{bottom:75px}.dm-dock{bottom:76px}
}

/* Expandable navigation: contacts, recent chats, and nested favorites. */
.sidebar-group{margin:2px 0;color:#334155;min-width:0}
.sidebar-group>summary,.favorite-folder>summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;min-height:38px;border-radius:7px;padding:9px 10px;font-size:14px;user-select:none}
.sidebar-group summary::-webkit-details-marker{display:none}
.sidebar-group>summary>span{flex:1}
.sidebar-group summary:hover{background:#f8fafc}
.sidebar-group summary:focus-visible{outline:2px solid #0066ff;outline-offset:1px}
.group-chevron{font-style:normal;font-size:18px;line-height:1;transition:transform .15s;color:#64748b}
.sidebar-group[open]>summary>.group-chevron,.favorite-folder[open]>summary>.group-chevron{transform:rotate(90deg)}
.sidebar-group-tools{display:flex;justify-content:space-between;align-items:center;margin:0 4px 5px 14px}
.sidebar-group .sidebar-group-tools button{font-size:12px;min-height:30px;padding:5px 7px;color:#64748b}
.sidebar-chat-row{display:flex;align-items:center;min-width:0;gap:0;padding-left:7px}
.sidebar-group .sidebar-chat-link{display:flex!important;align-items:center;gap:8px;min-width:0;flex:1;text-align:left;padding:8px 5px;font-size:13px;min-height:36px;background:transparent;border:0}
.sidebar-chat-link>span:first-child{color:#64748b;font-size:15px;flex-shrink:0}
.chat-row-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sidebar-group .sidebar-chat-link.active{background:#eff6ff;color:#64748b}
.sidebar-group .organize-chat{border:0;background:transparent;flex:0 0 26px;padding:3px;font-size:14px;min-height:32px;color:#64748b;text-align:center}
.sidebar-group .organize-chat:hover{color:#64748b;background:#eff6ff}
.favorite-folder-row{position:relative;min-width:0}
.favorite-folder{min-width:0}
.favorite-folder>summary{padding:7px 28px 7px 8px;min-height:34px;font-size:13px;gap:5px}
.folder-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.folder-glyph{color:#64748b}
.favorite-children{margin-left:13px;border-left:1px solid #eff6ff;padding-left:3px;min-width:0}
.sidebar-group .add-subfolder{position:absolute;top:2px;right:1px;padding:3px!important;width:25px;min-height:29px!important;border:0;background:transparent;color:#64748b;text-align:center!important;font-size:15px}
.empty-folder{display:block;padding:6px 10px;color:#64748b;font-size:12px}
#sidebarDmContacts>button{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:49px;width:100%;font-size:13px;text-align:left;padding:7px 6px 7px 10px}
#sidebarDmContacts .avatar{width:24px;height:24px;font-size:10px;border-radius:50%}
#sidebarDmContacts>button>div{min-width:0;display:flex;flex-direction:column;gap:3px}
#sidebarDmContacts b{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sidebarDmContacts small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#64748b}
#sidebarDmContacts em,#dmUnreadCount{font-style:normal;font-size:12px;border-radius:6px;background:#eff6ff;color:#64748b;padding:2px 5px}
.dm-page,.dm-page.active{grid-template-columns:minmax(0,1fr)}
.dm-chat{height:100%;min-height:0}
.dm-chat>header{background:#fff;border-color:var(--line)}
.dm-chat>header>div{min-width:0}
.dm-chat>header b{font-size:15px}
.dm-chat>header small{font-size:12px}
.dm-chat>main{padding:28px clamp(20px,8vw,120px)}
.dm-chat main article p{font-size:16px;line-height:1.6;background:#f8fafc}
.dm-chat main article.sent p{background:#eff6ff}
.dm-chat>form{margin:12px clamp(16px,5vw,75px) 22px}
.dm-chat textarea{font-size:16px}
.favorite-dialog{width:min(440px,calc(100vw - 32px));padding:0;border:1px solid #eff6ff;border-radius:16px;color:#334155;box-shadow:0 25px 80px #39244924;background:white}
.favorite-dialog::backdrop{background:#23143252}
.favorite-dialog form{padding:24px}
.favorite-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:12px}
.favorite-dialog h2{font-size:21px;font-weight:500;margin:0}
.favorite-dialog header button{border:0;background:transparent;color:#64748b;font-size:23px;padding:0 4px}
.favorite-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px;margin:16px 0;color:#64748b}
.favorite-dialog label[hidden]{display:none}
.favorite-dialog input,.favorite-dialog select{width:100%;border:1px solid #e2e8f0;border-radius:8px;min-height:43px;padding:10px;background:#f8fafc;color:#334155;font-size:16px}
.favorite-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}
.favorite-dialog footer button{padding:10px 15px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px}
.favorite-dialog footer button:not(.primary){color:#64748b;background:#fff}
#favoriteFormError{font-size:14px;color:#a5516b;line-height:1.4;margin:6px 0}
@media(max-width:800px){
 .sidebar-group>summary{font-size:14px;min-height:42px}
 .sidebar-group .sidebar-chat-link{font-size:14px;min-height:40px}
 .sidebar-group .organize-chat{min-height:40px;flex-basis:30px;font-size:16px}
 .favorite-folder>summary{font-size:14px;min-height:40px}
 .sidebar-group .add-subfolder{min-height:36px!important;width:28px}
 #sidebarDmContacts>button{min-height:54px}
 #sidebarDmContacts b{font-size:14px}
 .dm-chat>main{padding:18px 16px}
 .dm-chat>form{margin:8px 10px 12px}
 .dm-chat>header #dmPeople{display:block!important}
 .favorite-dialog form{padding:21px}
}
