*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f7fb;color:#202124}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;line-height:1.2}.shell{--list-width: 410px;height:100vh;height:100dvh;display:grid;grid-template-columns:280px minmax(320px,var(--list-width)) 8px minmax(0,1fr);background:#fff;overflow:hidden}.shell.sidebarCollapsed{grid-template-columns:74px minmax(320px,var(--list-width)) 8px minmax(0,1fr)}.sidebar{background:#f6f8fc;border-right:1px solid #dfe3eb;padding:14px 10px;display:flex;flex-direction:column;gap:10px;min-width:0;max-height:100vh;max-height:100dvh;overflow-y:auto;overflow-x:hidden}.brand{display:flex;gap:10px;align-items:center;padding:6px 8px 10px;color:#1a73e8;min-width:0}.brand span{display:block;color:#5f6368;font-size:12px;margin-top:2px}.brand div{min-width:0;flex:1}.brand b,.brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collapseBtn{width:34px;height:34px;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;color:#5f6368}.collapseBtn:hover{background:#e9eef6}.composeBtn{justify-content:center;min-height:48px;border:0;border-radius:14px;background:#ffdb4d;color:#202124;box-shadow:0 1px 2px #3c40432e;font-weight:700}.sync,.export,.logout,.accountSwitch button,nav button,.actions button,.send,.auth button,.topbar button,.modal header button,.accountForm button,.exportForm button{border:1px solid transparent;border-radius:999px;background:transparent;padding:9px 12px;color:#202124;display:flex;align-items:center;gap:8px;text-decoration:none}.sync,.export{background:#fff;border-color:#dadce0;justify-content:center;flex-shrink:0}.accountSwitch{display:grid;gap:7px;padding:10px;border:1px solid #e0e3eb;border-radius:14px;background:#fff}.accountSwitch label{font-size:12px;color:#5f6368}.accountSwitch select,.composer select,.composer input,.composer textarea,.auth input,.accountForm input,.exportForm select,.exportForm input{width:100%;border:1px solid #dadce0;border-radius:10px;padding:10px 12px;background:#fff;color:#202124}.accountSwitch button{justify-content:center;background:#f1f3f4}nav{display:grid;gap:3px}nav button{border-radius:0 18px 18px 0;justify-content:flex-start}nav button.active{background:#d3e3fd;color:#041e49;font-weight:650}.logout{margin-top:auto;color:#5f6368}.sidebarCollapsed .brand div,.sidebarCollapsed .accountSwitch,.sidebarCollapsed .sync,.sidebarCollapsed .export,.sidebarCollapsed .logout{display:none}.sidebarCollapsed .brand{justify-content:center;padding-inline:0}.sidebarCollapsed .composeBtn,.sidebarCollapsed nav button{width:48px;height:48px;padding:0;justify-content:center;border-radius:14px}.sidebarCollapsed .composeBtn{font-size:0}.sidebarCollapsed nav button{font-size:0}.sidebarCollapsed .collapseBtn{position:absolute;left:48px;top:16px;background:#fff;border:1px solid #dfe3eb}.list{position:relative;background:#fff;min-width:0;min-height:0;overflow:hidden}.columnResizer{position:relative;background:#edf0f5;cursor:col-resize;touch-action:none}.columnResizer:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:42px;border-radius:2px;background:#c6cbd4;transform:translate(-50%,-50%);opacity:.65}.columnResizer:hover,.columnResizer:focus-visible{background:#d9e8ff;outline:0}.columnResizer:hover:after,.columnResizer:focus-visible:after{background:#1a73e8;opacity:1}.topbar{min-height:64px;display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #edf0f5}.search{flex:1;height:44px;display:flex;align-items:center;gap:10px;padding:0 14px;border-radius:22px;background:#edf2fa;color:#5f6368}.search input{width:100%;border:0;outline:0;background:transparent}.search .clearSearch{width:28px;height:28px;border:0;border-radius:50%;padding:0;background:transparent;color:#5f6368;display:grid;place-items:center;flex:0 0 auto}.search .clearSearch:hover{background:#dfe6f1}.notice{margin:10px 12px 0;padding:9px 12px;border-radius:10px;background:#e8f0fe;color:#174ea6;font-size:13px}.syncStatus{margin:8px 12px 0;padding:8px 10px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#5f6368;font-size:12px}.syncStatus span{display:inline-flex;align-items:center;gap:6px;min-width:0;color:#202124;font-weight:650}.syncStatus small{white-space:nowrap}.syncStatus.running{border-color:#c2d7ff;background:#f7faff}.syncStatus.running svg{animation:spin 1.1s linear infinite}.syncStatus.error{border-color:#f4b4ae;background:#fce8e6}.syncStatus.ready{background:#f8fbff}@keyframes spin{to{transform:rotate(360deg)}}.bulkBar{margin:0 10px 8px;padding:6px;border:1px solid #e4e8f0;border-radius:12px;background:#f8fbff;display:flex;align-items:center;gap:5px;flex-wrap:wrap;overflow:hidden}.bulkBar.active{background:#fff9df;border-color:#f1df9a}.bulkBar b{min-height:28px;white-space:nowrap;font-size:12px;color:#5f4b00;padding:0 6px;flex:1 1 82px;display:inline-flex;align-items:center}.bulkBar button{flex:1 1 74px;min-width:0;min-height:28px;border:1px solid #dfe3eb;border-radius:8px;background:#fff;padding:5px 7px;display:inline-flex;align-items:center;justify-content:center;gap:4px;color:#3c4043;font-size:11.5px;box-shadow:0 1px 1px #3c404314;white-space:nowrap}.bulkBar button svg{flex:0 0 auto}.bulkBar button:hover{border-color:#c2d7ff;background:#f7faff;color:#174ea6}.mailboxTitle{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#5f6368;font-size:13px}.mailboxTitle b{color:#202124;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.threads{height:calc(100vh - 108px);overflow:auto;padding-bottom:76px}.bulkBar+.threads{height:calc(100vh - 178px)}.listScrollControls{position:absolute;right:10px;bottom:14px;z-index:8;display:grid;gap:6px;pointer-events:none}.listScrollControls button{width:34px;height:34px;border:1px solid #dfe3eb;border-radius:50%;background:#fffffff0;color:#3c4043;display:grid;place-items:center;padding:0;box-shadow:0 2px 8px #3c40432e;pointer-events:auto}.listScrollControls button:hover{background:#e8f0fe;border-color:#c2d7ff;color:#174ea6}.loadMoreThreads{width:calc(100% - 24px);margin:12px;min-height:38px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;color:#174ea6;font-weight:650}.loadMoreThreads:hover{background:#f7faff;border-color:#c2d7ff}.loadMoreThreads:disabled{color:#5f6368;background:#f8fafd;cursor:wait}.threadItem{padding:12px 16px;border-bottom:1px solid #edf0f5;display:grid;gap:6px;cursor:pointer}.threadItem:hover{box-shadow:inset 3px 0 #c2e7ff;background:#f8fbff}.threadItem.active{background:#eaf1fb}.threadItem.unread{background:#fff}.threadItem.unread b,.threadItem.unread p{font-weight:800}.threadItem.read{background:#fafafa;color:#5f6368}.threadItem div{display:flex;gap:8px;justify-content:space-between;align-items:center;min-width:0}.threadSender{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}.threadCheck{display:grid;place-items:center;width:22px;height:22px;min-width:22px;margin:-3px 0;border-radius:6px;cursor:pointer}.threadCheck:hover{background:#e8f0fe}.threadCheck input{width:16px;height:16px;flex:0 0 auto}.threadItem b,.threadItem p,.threadItem span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.threadItem p{margin:0;font-size:14px;font-weight:560}.threadItem time,.threadItem span{color:#5f6368;font-size:12px}.thread{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100vh;height:100dvh;background:#f5f5f5}.thread header{padding:16px 22px;border-bottom:1px solid #e6e8ee;display:flex;gap:12px;justify-content:space-between;align-items:flex-start;background:#fff}h1{margin:0;font-size:22px;line-height:1.2;font-weight:500;letter-spacing:0}h2{margin:0;font-size:18px;letter-spacing:0}header p{margin:5px 0 0;color:#5f6368;overflow-wrap:anywhere}.mobileMenu{display:none}.badges,.threadItem div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-start}.badge{border-radius:999px;border:1px solid #dadce0;background:#fff;padding:3px 9px;font-size:12px;color:#5f6368}.badge.важное,.badge.доставлено,.badge.отвечено{color:#137333;border-color:#a8dab5;background:#e6f4ea}.badge.на-проверку,.badge.ошибка{color:#b06000;border-color:#fdd663;background:#fef7e0}.actions{padding:9px 18px;border-bottom:1px solid #edf0f5;display:flex;gap:8px;flex-wrap:wrap;overflow:hidden;background:#fff}.actions button{min-height:34px;white-space:nowrap;flex:0 1 auto}.actions button:hover,.topbar button:hover{background:#f1f3f4}.actions .primaryAction{background:#ffdb4d;border-color:#ffdb4d;color:#202124;font-weight:700}.actions .danger{color:#b3261e}.messages{overflow:auto;padding:22px 28px 28px;display:grid;align-content:start;gap:14px;background:#f5f5f5}.bubble{max-width:min(880px,96%);border:1px solid #e0e3eb;border-radius:12px;padding:16px 18px;background:#fff;white-space:pre-wrap;box-shadow:0 1px 3px #3c40431f}.bubble.inbound{justify-self:stretch}.bubble.outbound{justify-self:end;background:#fff7d6}.bubble div{display:flex;justify-content:space-between;gap:12px;color:#5f6368;font-size:12px;margin-bottom:8px}.bubble p{margin:0;line-height:1.48;overflow-wrap:anywhere}.htmlMessage{display:grid;gap:8px}.htmlMessage iframe{width:100%;min-height:420px;max-height:70vh;border:1px solid #edf0f5;border-radius:10px;background:#fff}.htmlMessage details{border-top:1px solid #edf0f5;padding-top:8px;color:#5f6368;font-size:13px}.htmlMessage summary{cursor:pointer;-webkit-user-select:none;user-select:none}.htmlMessage details p{margin-top:8px;white-space:pre-wrap;color:#202124}.composer{border-top:1px solid #dfe3eb;padding:12px 18px;background:#fff;display:grid;gap:8px;box-shadow:0 -2px 12px #3c404314;resize:vertical;overflow:auto;min-height:220px;max-height:72vh}.composerHead{display:flex;justify-content:space-between;align-items:center;gap:10px}.composerHead div{display:flex;gap:4px}.composerHead button{width:32px;height:32px;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;color:#5f6368}.composerHead button:hover{background:#f1f3f4}.row{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:8px}.composer textarea{min-height:112px;resize:both}.fullscreenComposer{position:fixed;inset:18px;z-index:35;border:1px solid #dfe3eb;border-radius:18px;max-height:none;min-height:0;grid-template-rows:auto auto auto auto minmax(240px,1fr) auto;box-shadow:0 24px 80px #00000047}.fullscreenComposer textarea{height:100%;min-height:260px}.floatingComposer{position:fixed;right:24px;bottom:20px;z-index:30;width:min(720px,calc(100vw - 32px));border:1px solid #dfe3eb;border-radius:16px;max-height:calc(100vh - 44px)}.composerMini{position:fixed;right:24px;bottom:20px;z-index:31;width:min(340px,calc(100vw - 32px));height:46px;padding:0 12px;border-radius:14px 14px 0 0;background:#202124;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 12px 36px #0000004d;cursor:pointer}.composerMini button{border:0;background:transparent;color:#fff;display:grid;place-items:center}.composerTools{display:grid;grid-template-columns:minmax(180px,260px) auto;align-items:center;gap:8px}.composerTools select{width:100%;border:1px solid #dadce0;border-radius:10px;padding:9px 12px;background:#fff}.bulkComposer{width:min(760px,calc(100vw - 32px))}.bulkComposer .recipientsBox{min-height:74px;resize:vertical}.attachBtn{min-height:40px;border:1px solid #dadce0;border-radius:999px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;cursor:pointer;white-space:nowrap}.attachBtn input{display:none}.attachments{display:flex;gap:6px;flex-wrap:wrap}.attachments span{display:inline-flex;align-items:center;gap:5px;max-width:240px;border:1px solid #dadce0;border-radius:999px;padding:5px 8px;color:#5f6368;font-size:12px}.attachments button{border:0;background:transparent;color:#5f6368;padding:0 2px}.composerFooter{display:flex;justify-content:flex-end;align-items:center;min-height:48px}.composerFooter .send{flex:0 0 auto;width:auto;min-width:128px;max-width:100%;min-height:40px;max-height:44px;padding:9px 16px;border-radius:10px;white-space:nowrap}.send,.auth button,.accountForm button{justify-content:center;background:#1a73e8;color:#fff;border-color:#1a73e8;font-weight:650}.templateSaveBtn{min-width:172px}.send:disabled{opacity:.55;cursor:default}.auth,.center{width:min(430px,calc(100vw - 32px));margin:12vh auto;display:grid;gap:12px;border:1px solid #dfe3eb;border-radius:16px;background:#fff;padding:24px;box-shadow:0 12px 32px #3c40431f}.auth p{margin:0;color:#5f6368}.empty{display:grid;place-items:center;align-content:center;gap:10px;color:#5f6368}.modalBackdrop{position:fixed;inset:0;background:#2021245c;display:grid;place-items:center;padding:18px;z-index:20}.modal{width:min(720px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:18px;background:#fff;box-shadow:0 20px 60px #00000040}.modal header{padding:16px 18px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between}.modal .composer{border-top:0}.accountForm,.exportForm{padding:18px;display:grid;gap:12px}.exportForm label{display:grid;gap:6px;color:#5f6368;font-size:13px}.exportForm fieldset{border:1px solid #dfe3eb;border-radius:12px;padding:12px;display:grid;gap:8px}.exportForm legend{padding:0 6px;color:#5f6368}.exportForm .checkRow{grid-template-columns:18px 1fr;align-items:center;color:#202124}.exportForm .checkRow input{width:16px;height:16px;padding:0}.modalActions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.templateItem button,.templateGrid button,.templateEditor button{border:1px solid #dadce0;border-radius:999px;background:#fff;padding:7px 10px}.templatesPanel{min-width:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100vh;background:#f5f5f5;overflow:auto}.templatesPanel header{padding:18px 22px;border-bottom:1px solid #e6e8ee;background:#fff;display:flex;justify-content:space-between;gap:12px;align-items:center}.templatesPanel .primaryAction{border:1px solid #ffdb4d;border-radius:999px;background:#ffdb4d;padding:9px 13px;display:inline-flex;align-items:center;gap:8px;color:#202124;font-weight:700;white-space:nowrap}.templateEditor{margin:18px 22px 8px;display:grid;gap:10px;max-width:860px}.templateEditor input,.templateEditor textarea{width:100%;border:1px solid #dadce0;border-radius:10px;padding:11px 12px;background:#fff}.templateEditor textarea{min-height:140px;resize:vertical}.templateEditor button{justify-content:center;background:#1a73e8;color:#fff;border-color:#1a73e8;display:inline-flex;align-items:center;gap:8px;width:fit-content}.templateGrid{padding:14px 22px 24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.templateGrid article{border:1px solid #dfe3eb;border-radius:12px;padding:14px;background:#fff;display:grid;gap:8px;cursor:pointer}.templateGrid article:hover{border-color:#c2e7ff;box-shadow:0 2px 10px #3c40431f}.templateGrid p{margin:0;color:#5f6368;font-weight:600}.templateGrid span{color:#5f6368;white-space:pre-wrap;overflow-wrap:anywhere;max-height:120px;overflow:auto}.templateGrid div,.templateItem div:last-child{display:flex;gap:8px;justify-content:flex-start}.templateWindowLayer{position:fixed;inset:0;z-index:38;pointer-events:none}.templateWindowScrim{position:absolute;inset:0;background:#ffffff9e;pointer-events:auto}.templateWindow{position:fixed;right:24px;bottom:20px;z-index:39;width:min(720px,calc(100vw - 32px));min-height:430px;max-height:calc(100vh - 44px);border:1px solid #dfe3eb;border-radius:16px;grid-template-rows:auto auto auto minmax(180px,1fr) auto;pointer-events:auto;resize:both}.templateWindow textarea{min-height:180px;resize:both}.templateWindow.fullscreenComposer{z-index:39;width:auto;max-height:none;grid-template-rows:auto auto auto minmax(260px,1fr) auto;resize:none}.templateWindow .composerFooter{position:sticky;bottom:0;padding-top:8px;background:linear-gradient(180deg,#ffffffb8,#fff 45%)}.templateItem button,.templateGrid button{min-height:34px;display:inline-flex;align-items:center;justify-content:center}.dangerText{color:#b3261e!important}.empty.small{height:220px}@media(max-width:1120px){.shell{grid-template-columns:86px minmax(300px,40vw) 8px 1fr}.sidebar{padding:10px}.brand div,nav button span,.logout,.accountSwitch label{display:none}.composeBtn,.sync,.export,nav button{justify-content:center;padding:11px}.accountSwitch{padding:8px}.accountSwitch button{font-size:0}}@media(max-width:760px){.shell{height:auto;min-height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(280px,42dvh) auto;overflow:visible}.columnResizer{display:none}.sidebar{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:min-content;align-items:center;align-content:start;gap:6px;overflow:visible;border-right:0;border-bottom:1px solid #dfe3eb;max-height:none;padding:8px}.brand{grid-column:1 / -1;padding:2px 4px 4px}.brand div{display:block;min-width:0}.collapseBtn{display:none}.composeBtn,.sync,.export{width:100%;height:36px;min-height:36px;max-height:36px;border-radius:10px;padding:6px 8px;font-size:12px;line-height:1.1;gap:5px;box-shadow:none;overflow:hidden}.composeBtn svg,.sync svg,.export svg{width:14px;height:14px;flex:0 0 auto}.composeBtn,.bulkSendBtn,.mailRefreshBtn,.exportBtn{grid-column:span 2}.accountSwitch{grid-column:1 / -1;min-width:0;grid-template-columns:1fr auto;align-items:center}.accountSwitch select{min-width:0}.accountSwitch button{width:40px;height:40px;padding:0;font-size:0;border-radius:10px}nav{grid-column:1 / -1;display:flex;gap:5px;flex-wrap:wrap}nav button{border-radius:999px;white-space:nowrap;width:auto;min-height:34px;padding:8px 10px;font-size:12px;flex:1 1 auto;justify-content:center}.logout{display:none}.list,.thread{min-width:0;height:auto;max-height:none}.threads{height:34dvh;min-height:250px}.syncStatus{align-items:flex-start;flex-direction:column;gap:3px}.syncStatus small{white-space:normal}.bulkBar{margin-inline:8px}.bulkBar b{flex-basis:70px}.bulkBar button{flex-basis:68px;font-size:11px;padding-inline:6px}.bulkBar+.threads{height:calc(34dvh - 92px);min-height:190px}.listScrollControls{right:8px;bottom:10px}.listScrollControls button{width:32px;height:32px}.loadMoreThreads{min-height:36px;margin:10px;width:calc(100% - 20px);font-size:12px}.thread header{padding:14px 16px}.actions{padding:8px 12px;gap:6px}.actions button{flex:1 1 118px;justify-content:center;min-width:0;padding:8px 10px;font-size:12px}h1{font-size:18px}.messages{padding:14px}.bubble{max-width:100%;padding:13px}.bubble div{align-items:flex-start;flex-wrap:wrap}.htmlMessage iframe{min-height:320px;max-height:58dvh}.row,.composerTools{grid-template-columns:1fr}.floatingComposer{right:10px;bottom:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.templateWindow{right:10px;bottom:10px;width:calc(100vw - 20px);min-height:360px}.fullscreenComposer{inset:8px;border-radius:12px}}
