/* The support workspace owns a viewport; long messages never resize its iframe. */
html.support-workspace,html.support-workspace body{height:100%;height:100dvh;overflow:hidden}
html.support-workspace #shell{height:100%;min-height:0}
html.support-workspace .workspace-main{display:flex;flex-direction:column;height:100%;min-height:0}
html.support-workspace .main-topbar{flex-shrink:0}
html.support-workspace:not(.support-tools-open) .main-topbar{display:none}
#support-hide-toolbar{display:none}
html.support-workspace.support-tools-open #support-hide-toolbar{display:inline-flex;min-height:28px;padding:4px 9px;font-size:12px;white-space:nowrap}
html.support-workspace #content,html.support-workspace .workspace-footer{display:none}
html.support-workspace #module-area{display:flex;flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:10px 18px 12px!important;overflow:hidden}
html.support-workspace #module-area>.module-frame:not([hidden]){display:block;flex:1;min-height:0!important;height:100%!important;width:100%;border:0}
html:has(>body.support-page){height:100%;overflow:hidden}
body.support-page{height:var(--support-viewport-height,100dvh);min-height:0;overflow:hidden}
body.support-page #support-app{display:flex;flex-direction:column;height:100%;min-height:0}
body.support-page .sp-toolbar{flex-shrink:0;padding:0 2px 6px;gap:6px 12px;align-items:center;min-height:36px}
body.support-page .sp-toolbar h2{margin:0;font-size:16px;line-height:1.5;white-space:nowrap}
body.support-page .sp-toolbar-actions button{min-height:30px;font-size:12px;padding:4px 10px}
body.support-page .sp-toolbar-actions{gap:6px;align-items:center}
body.support-page .sp-worker{font-size:11px;min-height:30px}
.sp-toolbar-menu{position:relative;z-index:12;border:0;margin:0;padding:0}
.sp-toolbar-menu>summary{display:grid;place-items:center;list-style:none;width:32px;height:30px;cursor:pointer;color:var(--sr-muted);font-size:23px;line-height:1;border:1px solid var(--sr-line);border-radius:8px;background:var(--sr-surface)}
.sp-toolbar-menu>summary::-webkit-details-marker{display:none}
.sp-toolbar-menu>summary:focus-visible{outline:2px solid var(--sr-accent);outline-offset:2px}
.sp-toolbar-menu-panel{position:absolute;right:0;top:calc(100% + 6px);width:190px;padding:5px;border:1px solid var(--sr-line);border-radius:9px;background:var(--sr-surface);box-shadow:0 8px 25px #203d6322}
body.support-page .sp-toolbar-menu-panel button{display:block;width:100%;text-align:left;color:var(--sr-text);background:transparent;border:0;border-radius:5px;font-size:13px;min-height:36px;padding:7px 10px}
body.support-page .sp-toolbar-menu-panel button:hover{background:var(--sr-soft)}
body.support-page .sp-layout{position:relative;flex:1;min-height:0;height:0;grid-template-rows:minmax(0,1fr);align-items:stretch;padding:10px;gap:10px;overflow:hidden}
body.support-page :is(.sp-sidebar,.sp-mail-column,.sp-detail){min-height:0;max-height:100%}
body.support-page .sp-sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
body.support-page .sp-store-options{max-height:none;overflow:visible}
body.support-page .sp-mail-column{display:flex;flex-direction:column;overflow:hidden}
body.support-page :is(.sp-search,.sp-list-heading,#sp-pagination){flex-shrink:0}
body.support-page .sp-search{padding:10px}
body.support-page .sp-search input{min-height:38px;margin:0;padding:8px 10px;font-size:13px}
body.support-page .sp-list-heading{padding:10px 12px}
body.support-page #sp-mail-list{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-gutter:stable}
body.support-page .sp-detail{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:auto}
body.support-page .sp-detail-head{position:sticky;top:0;z-index:3;padding:10px 14px;background:var(--sr-surface)}
body.support-page .sp-detail-head h2{font-size:16px;line-height:1.5;margin:9px 0}
body.support-page .sp-identity{padding:8px 10px;align-items:center;gap:9px}
body.support-page .sp-identity>.support-store-mark{width:30px;height:30px;flex-basis:30px;font-size:12px;border-radius:8px}
body.support-page .sp-identity-copy{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px}
body.support-page .sp-identity-copy b{font-size:14px}
body.support-page .sp-identity-line,body.support-page .sp-identity .sp-identity-domain{font-size:12px;line-height:1.5}
body.support-page .sp-detail-meta{gap:6px 9px;font-size:12px}
body.support-page .sp-detail-meta :is(#sp-reply-toggle,#sp-no-reply,#sp-category){font-size:12px;min-height:30px;padding:4px 8px;margin-left:0}
body.support-page .sp-detail-meta #sp-reply-toggle{margin-left:auto}
body.support-page .sp-detail-body{display:flex;flex-direction:column;min-width:0}
body.support-page .sp-thread-context{border:0;margin:0;padding:0;min-width:0}
body.support-page .sp-thread-context>summary{display:none}
body.support-page .is-composing .sp-thread-context{order:2;margin:0 14px 14px;border:1px solid var(--sr-line);border-radius:9px;overflow:hidden}
body.support-page .is-composing .sp-thread-context>summary{display:list-item;cursor:pointer;font-size:13px;padding:12px 14px;background:var(--sr-soft);color:var(--sr-muted)}
body.support-page .sp-conversation{max-height:none;overflow:visible;padding:14px 14px 5px}
body.support-page .sp-editor{order:1}
body.support-page .sp-compose-modes{display:flex;align-items:center;gap:4px;margin-left:auto}
body.support-page .sp-compose-modes button{font-size:12px;min-height:28px;padding:4px 9px;color:var(--sr-muted);border:1px solid var(--sr-line);border-radius:6px;background:var(--sr-surface)}
body.support-page .sp-compose-modes button[aria-pressed=true]{color:var(--sr-accent);border-color:var(--sr-accent);background:var(--sr-selected)}
body.support-page .sp-manual-hint{display:none;font-size:12px;color:var(--sr-muted);line-height:1.7;margin:0 0 10px}
body.support-page #sp-manual-zh{display:none}
body.support-page .sp-editor.is-manual .sp-manual-hint{display:block}
body.support-page .sp-editor.is-manual :is(.sp-template-row,.sp-instruction,.sp-zh-preview){display:none}
body.support-page .sp-editor.is-manual #sp-manual-zh{display:block;font-size:15px;line-height:1.8;color:var(--sr-text);background:var(--sr-surface);border-color:var(--sr-accent)}
body.support-page .sp-editor.is-manual .sp-bilingual textarea{height:112px;min-height:112px!important;resize:vertical;overscroll-behavior:contain}
body.support-page .sp-editor.is-manual .sp-label{font-size:12px;min-height:28px}
body.support-page .sp-editor.is-dismissed :is(.sp-compose-modes,.sp-manual-hint){display:none}
body.support-page .is-composing .sp-reply-context{display:none}
body.support-page .sp-notes{order:3}
body.support-page .sp-reply-prompt{padding:0 14px 16px;background:var(--sr-soft)}
body.support-page .sp-reply-prompt button{font-size:13px;min-height:36px;padding:7px 16px}
body.support-page .is-composing .sp-reply-prompt{display:none}
body.support-page .sp-templates{height:100%;overflow-y:auto;overscroll-behavior:contain;padding-right:8px}
body.support-page #sp-back-list{display:none}
@media(max-width:1240px){body.support-page .sp-layout.is-filter-open .sp-sidebar{position:absolute;inset:0 auto 0 0;width:min(330px,95%);max-height:none;z-index:8;box-shadow:10px 0 30px #183c6126}body.support-page .sp-layout{grid-template-columns:300px minmax(0,1fr)}body.support-page #sp-status-nav{display:block}}
@media(max-width:800px){body.support-page .sp-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}body.support-page .sp-layout:not(.is-detail-open) .sp-detail{display:none}body.support-page .sp-layout.is-detail-open .sp-mail-column{display:none}body.support-page .sp-layout.is-detail-open .sp-detail{display:block}body.support-page #sp-back-list{display:inline-flex;font-size:12px;min-height:28px;padding:4px 8px;margin:0 0 7px}body.support-page #sp-mail-list{max-height:none}body.support-page .sp-toolbar{flex-direction:row;align-items:center}body.support-page .sp-toolbar>div:first-child p{display:none}body.support-page .sp-toolbar-actions{gap:5px}body.support-page .sp-toolbar-actions button{font-size:12px;padding:6px 9px;min-height:32px}body.support-page .sp-identity-domain{display:none}body.support-page .sp-detail-head{padding:8px 10px}}
@media(max-width:650px){html.support-workspace #module-area{padding:10px 12px 12px!important}body.support-page .sp-toolbar h2{font-size:18px}body.support-page .sp-identity-copy{gap:2px 8px}body.support-page .sp-detail-head h2{font-size:15px}body.support-page .sp-detail-meta .sp-customer-email{flex-basis:100%}body.support-page .sp-conversation{padding:10px 10px 3px}}
@media(max-width:800px){body.support-page .sp-toolbar h2{font-size:16px}body.support-page .sp-toolbar-actions button{min-height:30px;padding:4px 8px;font-size:12px}body.support-page .sp-filter-toggle span{display:none}body.support-page .sp-worker{display:none}}
@media(max-width:760px){html.support-workspace .main-topbar{display:flex!important;min-height:40px;height:40px;margin:0!important;padding:0 10px!important;border-radius:0!important}html.support-workspace .main-topbar :is(.private-badge,#today,#support-hide-toolbar){display:none!important}html.support-workspace #module-area{padding-top:6px!important}}
