html {color-scheme:light}
html[data-crm-appearance=dark] {color-scheme:dark}
body .topbar .appearance-toggle {display:inline-grid!important;place-items:center;flex:none;background:var(--paper,#fff);color:var(--primary-link,#99183c);border:1px solid var(--line,#e5dce0);border-radius:10px;width:40px;height:40px;padding:0;cursor:pointer}
.appearance-toggle svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.appearance-toggle .sun,html[data-crm-appearance=dark] .appearance-toggle .moon {display:none}
html[data-crm-appearance=dark] .appearance-toggle .sun {display:block}
body .leave-register .panel-head .tabs {display:inline-flex;align-items:stretch;gap:3px;padding:3px;border:1px solid #dcbdc7;border-radius:11px;background:#f8eff2}
html body .leave-register .panel-head .tabs button {flex:1 1 auto;min-height:40px;padding:7px 14px!important;border:0!important;border-radius:8px!important;color:#5a3341!important;background:transparent!important;opacity:1}
html body .leave-register .panel-head .tabs button.primary {background:#99183c!important;color:white!important}
html body .workspace-settings-tabs button {color:#503e46!important;opacity:1}
html body .workspace-settings-tabs button.active {color:#94173b!important;background:transparent!important;box-shadow:inset 0 -3px #99183c!important;font-weight:750}
body .signin-mobile .signin-surface {zoom:.8;min-height:0;margin-inline:auto}
.signin-mobile .signin-surface :is(button,input,select) {min-height:55px}
.signin-mobile .signin-surface .signin-languages button {min-width:55px}
.signin-mobile .signin-surface input {font-size:20px}
@media(max-width:760px){
  body .app-main[data-page-route=inbox]:has(.inbox-layout:not(.is-thread-open)) #page-content {padding:0!important;margin:0!important;overflow:hidden}
  body .app-main[data-page-route=inbox]:has(.inbox-layout:not(.is-thread-open)) .app-status {display:none!important}
  html body .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open)){height:var(--customer-list-height,calc(100dvh - 160px))!important;max-height:none!important;min-height:0!important;gap:0!important;margin:0!important}
  html body .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open))>.page-head {display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:0!important;padding:3px 10px!important;min-height:0!important;background:transparent!important}
  html body .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open))>.page-head>div:first-child {display:none!important}
  html body .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open))>.page-head .page-actions {margin:0!important;display:flex;gap:6px}
  html body .triq-inbox-screen .inbox-layout:not(.is-thread-open) {border-radius:0!important;border-inline:0!important;box-shadow:none!important;width:100%!important}
  html body .triq-inbox-screen .inbox-layout:not(.is-thread-open) .inbox-list {padding:0!important;max-width:none!important;width:100%!important}
  html body .triq-inbox-screen .inbox-list-caption {display:none}
  html body .triq-inbox-screen .triq-inbox-rows {flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;padding-bottom:0!important}
  html body .triq-inbox-screen .conversation-row {flex-shrink:0}
  html body .triq-inbox-screen .triq-pagination {flex:none;margin-block:0!important;padding-block:3px!important}
  body .topbar .appearance-toggle {width:clamp(29px,8vw,40px);height:40px}
  body .leave-register .panel-head .tabs {width:100%;max-width:420px}
  body .signin-mobile {display:grid!important;align-content:center;justify-content:center}
  body .signin-mobile .signin-surface {width:min(100vw,460px);border-radius:16px}
}
@media(max-width:400px) {
  html body .topbar-actions {gap:3px!important}
  html body .topbar .topbar-start {min-width:0!important;flex:0 1 auto!important}
  html body .topbar .triq-mobile-workspace::after,html body .topbar .topbar-context {display:none!important}
}
@media(max-width:760px) {
  html body .app-main[data-page-route=inbox] .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open)){position:relative}
  html body .app-main[data-page-route=inbox] .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open))>.page-head {position:absolute!important;inset-block-start:2px;inset-inline-end:4px;z-index:2;max-width:65%;width:auto!important;display:flex!important;height:42px!important;padding:0 3px!important}
  html body .app-main[data-page-route=inbox] .triq-inbox-screen:has(.inbox-layout:not(.is-thread-open))>.page-head .btn{min-height:36px!important;padding:4px 8px!important}
  html body .app-main[data-page-route=inbox] .inbox-layout:not(.is-thread-open),html body .app-main[data-page-route=inbox] .inbox-layout:not(.is-thread-open)>.inbox-list {padding:0!important;gap:0!important;height:100%!important;box-sizing:border-box}
  html body .app-main[data-page-route=inbox] .inbox-list-head{justify-content:flex-start!important;gap:5px;min-height:46px!important;padding:6px 8px!important}
  html body .app-main[data-page-route=inbox] .triq-inbox-search{margin:0 8px 3px!important;min-height:40px!important}
  html body .app-main[data-page-route=inbox] .inbox-list .triq-pagination {margin:0!important;padding:2px 8px!important}
}
html body #app #page-content .workspace-settings-tabs button.btn {color:#503e46!important;opacity:1}
html body #app #page-content .workspace-settings-tabs button.btn.active {color:#94173b!important;background:transparent!important;box-shadow:inset 0 -3px #99183c!important}
