/* Local system fonts, comfortable density, no remote assets. */
:root{--ed-ink:#202937;--ed-muted:#56657a;--ed-blue:#244fc7;--ed-border:#dfe5ef;--ed-soft:#f5f7fb}
*{box-sizing:border-box}body{background:#f3f5f8;color:var(--ed-ink);font:15px/1.5 'Inter','Segoe UI',Arial,sans-serif;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #729df3;outline-offset:2px}.hidden,[hidden]{display:none!important}
#main-screen:not(.hidden){height:100dvh;display:grid;grid-template-columns:184px minmax(0,1fr);grid-template-rows:58px minmax(0,1fr);overflow:hidden}
#main-screen>header{grid-column:2;grid-row:1;padding:8px 20px;box-shadow:none;background:#fff;color:var(--ed-ink);border-bottom:1px solid var(--ed-border);min-height:0}#main-screen>header h1{font-size:16px;margin:0}#main-screen>header .header-right{gap:10px}#main-screen>header button{min-height:40px;font-size:14px}#main-screen>header #header-translator-wrap{display:none!important}
.editor-nav{grid-row:1/3;grid-column:1;border-right:1px solid var(--ed-border);background:#fff;display:flex;flex-direction:column;min-height:0;padding:24px 12px 12px;gap:18px;overflow:auto}.editor-brand{display:flex;align-items:center;gap:9px;margin:0 4px 16px}.editor-brand>b{background:var(--ed-blue);border-radius:8px;padding:10px 7px;color:white;font-size:17px}.editor-brand>span{line-height:1.3;font-size:14px;font-weight:650}.editor-brand small{color:var(--ed-muted);font-size:11px;font-weight:400}.editor-nav-links{display:grid;gap:5px}.editor-nav-links button{border:0;background:transparent;color:#4b5c73;text-align:left;border-radius:6px;min-height:44px;padding:10px 12px;font-size:14px}.editor-nav-links button[aria-current=page]{background:#edf2ff;color:var(--ed-blue);font-weight:650}.editor-nav-account{margin-top:auto;border-top:1px solid var(--ed-border);padding-top:16px;display:grid;gap:10px;font-size:14px;overflow-wrap:anywhere}.editor-nav-account #notify-switch-wrap{font-size:12px}.editor-nav-account button{min-height:44px}.editor-nav .bot-panel{margin:0;padding:10px;font-size:12px;box-shadow:none;border:1px solid var(--ed-border);background:#f8fafc}.editor-nav .bot-panel strong{font-size:12px}.editor-nav .bot-panel-row{font-size:12px}.editor-nav .bot-panel-foot{font-size:11px}.editor-nav .bot-panel-head{align-items:flex-start}
#main-screen>.container{grid-column:2;grid-row:2;max-width:none;width:100%;margin:0;padding:0;display:grid;grid-template-columns:320px minmax(0,1fr);min-height:0;overflow:hidden}.editor-queue{background:#f8f9fc;border-right:1px solid var(--ed-border);min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 14px}.editor-queue>h2{font-size:22px;margin:0 4px 18px}.editor-queue .role-panel{background:none;border:0;padding:0;margin:0;box-shadow:none}.editor-queue .panel-header,.editor-queue #author-panel h2{display:none}.editor-queue .filters{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 16px}.editor-queue .filter-btn{font-size:13px;padding:7px 9px;min-height:40px;border:1px solid var(--ed-border);background:#fff;color:#4b5c73;border-radius:6px}.editor-queue .filter-btn.active{background:#eaf0ff;border-color:#bbccef;color:#244fc7}.editor-queue .task-search-bar{padding:0;margin:0 0 18px;background:none;border:0;box-shadow:none}.editor-queue .task-search-bar label{font-size:13px}.editor-queue .task-search-controls{gap:5px}.editor-queue #task-search{font-size:14px;min-width:0;width:100%;padding:10px;border:1px solid var(--ed-border);border-radius:6px}.editor-queue #task-search-clear{font-size:12px;min-height:44px;padding:6px}.editor-queue #task-search-summary{font-size:12px}.editor-queue #tasks-list{display:grid;gap:7px}.editor-task{width:100%;min-height:110px;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;padding:13px 12px;display:flex;flex-direction:column;gap:7px;color:var(--ed-ink);box-shadow:none}.editor-task:hover{background:#edf1f8}.editor-task.selected{background:#fff;border-color:#a9bff2;box-shadow:0 2px 6px #18367407}.editor-task-meta,.editor-task-author{font-size:12px;color:var(--ed-muted)}.editor-task strong{font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}.editor-task-status{font-size:12px;color:#365b9d}.editor-queue .pagination-container{margin-top:20px;padding:10px 0;border-top:1px solid var(--ed-border);display:grid;gap:10px;box-shadow:none;background:transparent}.editor-queue .pagination-controls{display:flex;flex-wrap:wrap;gap:6px}.editor-queue .page-info{font-size:12px}.editor-queue .btn-pagination{font-size:13px;min-height:44px;padding:6px 12px}.editor-queue .pagination-settings{font-size:12px}
.editor-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}.editor-empty{padding:50px 30px;color:var(--ed-muted)}.editor-toolbar{min-height:55px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--ed-border);padding:5px 25px;gap:12px;font-size:13px;color:var(--ed-muted)}.editor-toolbar button{min-height:40px;padding:7px 12px;background:#fff;color:#345ba9;border:1px solid var(--ed-border);border-radius:6px;font-size:13px}.editor-toolbar [data-editor-back]{display:none}.editor-heading{padding:20px 26px 8px;flex-shrink:0}.editor-heading>p:first-child{margin:0 0 8px;font-size:12px;color:var(--ed-muted);letter-spacing:.6px}.editor-heading h1{font-size:23px;line-height:1.3;margin:0 0 10px;overflow-wrap:anywhere;max-height:90px;overflow:auto}.editor-heading>span{font-size:13px;color:var(--ed-muted)}.editor-update-notice{margin:6px 0 0;font-size:13px;color:#825b14}.editor-update-notice:empty{display:none}.editor-readonly{font-size:13px;color:#5a6370;margin:7px 0}.editor-tabs{display:flex;flex-shrink:0;gap:22px;border-bottom:1px solid var(--ed-border);padding:0 26px;overflow-x:auto}.editor-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--ed-muted);font-size:14px;padding:13px 0;white-space:nowrap;min-height:46px}.editor-tabs button[aria-selected=true]{color:var(--ed-blue);border-bottom-color:var(--ed-blue);font-weight:650}.editor-panels{min-height:0;overflow:auto;padding:20px 26px 28px;overscroll-behavior:contain;flex:1}.editor-panels h2{font-size:17px;margin:0 0 12px}.editor-panels h3{font-size:14px;margin:0 0 10px}.editor-panels button[type=submit]{background:var(--ed-blue);color:#fff;border:0;border-radius:6px;padding:10px 16px;min-height:44px;margin-top:12px}.editor-help{font-size:13px;color:var(--ed-muted);margin:0 0 14px;max-width:90ch}.editor-field{display:flex;flex-direction:column;gap:8px;font-size:14px;color:#40516a;margin-bottom:16px}.editor-field textarea,.editor-field input{width:100%;padding:12px 14px;color:var(--ed-ink);background:#fff;border:1px solid #ccd5e2;border-radius:6px;font:15px/1.55 'Inter','Segoe UI',Arial,sans-serif}.editor-field textarea{min-height:240px;resize:vertical}.editor-field textarea[readonly],.editor-field input[readonly]{background:#fafbfc;color:#374151}.editor-source-form textarea{min-height:320px}.editor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.editor-section-heading h2{margin:0}.editor-language{font-size:13px;color:var(--ed-muted);display:flex;align-items:center;gap:8px}.editor-language select{min-height:44px;padding:7px;border:1px solid var(--ed-border);border-radius:6px;background:#fff;color:var(--ed-ink)}.editor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-bottom:16px}.editor-original{border:1px solid var(--ed-border);border-radius:6px;padding:12px 14px;background:#fafbfc;min-width:0}.editor-original-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:15px;max-height:460px;overflow:auto}.editor-target{min-width:0}.editor-target textarea{min-height:360px}.editor-translation-form>.editor-field textarea{min-height:140px}.editor-social-copy{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.editor-social-copy button,.editor-bot-request button{min-height:44px;border:1px solid #cbd6e8;border-radius:6px;background:#fff;padding:9px 13px;color:#2e56ab;font-size:14px}.editor-social-view{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.65 'Inter','Segoe UI',Arial,sans-serif;background:#f8fafc;border:1px solid var(--ed-border);padding:14px;border-radius:6px;max-height:280px;overflow:auto;margin:0 0 18px}.editor-social-form textarea{min-height:220px}.editor-message{margin:25px;color:var(--ed-muted)}.editor-workspace .task-card{border:0;box-shadow:none;background:none;padding:0;margin:0}.editor-workspace .task-card__body{padding:0}.editor-workspace .task-actions{margin:16px 0;display:flex;flex-wrap:wrap;gap:8px}.editor-workspace .task-actions button{min-height:44px;font-size:14px}.editor-workspace .attachments-list{display:flex;flex-wrap:wrap;gap:12px}.editor-workspace .attachment-item{max-width:100%}.editor-workspace .task-attachment-thumb{width:160px;height:120px;object-fit:cover}.editor-aux{grid-column:1/-1;background:white;min-height:0;overflow:auto;padding:28px;max-width:100%}.editor-aux .create-task{margin:0;max-width:900px}.editor-aux .stats{flex-wrap:wrap}.editor-bot-request{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border:1px solid var(--ed-border);border-radius:7px;margin:12px 0;font-size:14px}.editor-bot-request button{display:block;margin-top:12px}.editor-bot-home>h2,.editor-aux h2{font-size:22px;margin-top:0}.editor-bot-home>p{color:var(--ed-muted);font-size:14px}
@media(max-width:1100px) and (min-width:761px){#main-screen:not(.hidden){grid-template-columns:160px minmax(0,1fr)}#main-screen>.container{grid-template-columns:275px minmax(0,1fr)}.editor-tabs{gap:14px;padding:0 18px}.editor-panels,.editor-heading{padding-left:18px;padding-right:18px}.editor-columns{grid-template-columns:1fr}.editor-original-text{max-height:160px}}
@media(max-width:760px){#main-screen:not(.hidden){height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 48px minmax(0,1fr)}.editor-nav{grid-column:1;grid-row:1;flex-direction:row;align-items:center;padding:6px 10px;gap:8px;overflow-x:auto;max-height:75px;border-right:0;border-bottom:1px solid var(--ed-border)}.editor-brand{margin:0;flex-shrink:0}.editor-brand>span{display:none}.editor-brand>b{font-size:14px;padding:9px 7px}.editor-nav-links{display:flex;gap:4px;flex-shrink:0}.editor-nav-links button{white-space:nowrap;font-size:13px;padding:8px;min-height:44px}.editor-nav-account{display:none}.editor-nav .bot-panel{display:none!important}#main-screen>header{grid-column:1;grid-row:2;padding:4px 12px}#main-screen>header h1{font-size:14px}#main-screen>header .header-right>div{max-width:100%}#main-screen>.container{grid-column:1;grid-row:3;display:block;position:relative;overflow:hidden}.editor-queue{height:100%;padding:16px}.editor-workspace{display:none;height:100%}.editor-mobile-detail .editor-queue{display:none}.editor-mobile-detail .editor-workspace:not(.hidden){display:flex}.editor-toolbar{padding:4px 12px;min-height:52px;font-size:12px}.editor-toolbar [data-editor-back]{display:block}.editor-toolbar button{min-height:44px;font-size:13px;padding:5px 8px}.editor-heading{padding:14px 16px 8px}.editor-heading h1{font-size:20px;max-height:80px}.editor-heading>p:first-child{font-size:11px}.editor-tabs{padding:0 16px;gap:22px}.editor-tabs button{font-size:14px;min-height:46px}.editor-panels{padding:16px}.editor-columns{grid-template-columns:1fr}.editor-original-text{max-height:180px}.editor-target textarea{min-height:280px}.editor-field textarea{font-size:16px}.editor-section-heading{align-items:flex-start}.editor-section-heading h2{font-size:16px}.editor-aux{height:100%;padding:16px}.editor-queue .filter-btn{min-height:44px}.editor-task{min-height:115px}.editor-nav-account #logout-btn{display:block}.header-users-dropdown{position:fixed;left:8px;right:8px;top:125px;max-width:none!important}.header-mail-panel{max-width:calc(100vw - 16px)}.editor-workspace .task-actions{flex-direction:column}.editor-workspace .task-actions button{width:100%}.editor-help{font-size:13px}}
#header-users-btn,#header-mail-btn{display:none!important}
#main-screen>header{flex-direction:row;align-items:center}
#main-screen>header .header-right{width:auto;flex-wrap:nowrap}
@media(max-width:760px){#main-screen .header-users-dropdown{width:calc(100vw - 16px);max-height:calc(100dvh - 140px);top:120px;overflow:auto}#main-screen .header-users-wrap{width:auto}}
.editor-queue{overflow-anchor:none}
.editor-workspace.task-card{margin:0;border:0;border-radius:0;box-shadow:none;padding:0}
@media(max-width:760px){.editor-nav-account{display:flex;position:fixed;right:10px;top:61px;z-index:20;margin:0;padding:0;border:0}.editor-nav-account>*:not(#logout-btn){display:none!important}.editor-nav-account #logout-btn{display:block;min-height:44px;padding:7px 12px;font-size:13px}.editor-nav .bot-panel:not(.hidden){display:block!important;min-width:180px;max-width:180px;max-height:58px;overflow:auto;flex-shrink:0}}
.editor-task-bot{flex-shrink:0;display:flex;align-items:center;gap:12px;margin:6px 26px 8px;padding:8px 12px;border:1px solid #dfe5ef;border-radius:6px;background:#f5f8fe;color:#344b6b}.editor-task-bot-text{flex:1;min-width:0;font-size:13px;line-height:1.5;max-height:78px;overflow:auto;overflow-wrap:anywhere}.editor-task-bot-actions{display:flex;gap:6px;flex-shrink:0}.editor-task-bot-actions button{min-height:44px;background:white;color:#244fc7;border:1px solid #ccd7e9;border-radius:5px;padding:6px 10px;font-size:13px}.editor-task-bot[data-state=stale]{background:#fff7e8;color:#785415}@media(max-width:760px){.editor-task-bot{margin:4px 16px 6px;padding:6px 9px;gap:8px}.editor-task-bot-text{font-size:12px;max-height:72px}.editor-task-bot-actions{flex-direction:column;gap:3px}.editor-task-bot-actions button{padding:4px 8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Translation editor links: public preview and private attachment inventory. */
.editor-link-toolbar,.editor-link-preview{padding:12px;margin:12px 0;border:1px solid #d5dce7;border-radius:8px;background:#f8fafc}.editor-link-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.editor-link-toolbar p{flex-basis:100%;margin:0;color:#526174;font-size:13px}.editor-link-toolbar button,.editor-link-toolbar select{min-height:44px;border:1px solid #cbd6e5;border-radius:6px;background:#fff;color:#24559a;padding:8px 12px;font-size:15px}.editor-link-toolbar button{background:#e8f0ff;font-weight:600}.editor-link-toolbar label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.editor-link-preview .editor-preview-content{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.editor-private-files{display:flex;flex-wrap:wrap;gap:8px}.editor-private-files strong{flex-basis:100%}.editor-link-preview a{color:#1261a0;text-decoration:underline}
@media(max-width:760px){.editor-translation-form .editor-target{order:1}.editor-translation-form .editor-original{order:2}.editor-link-toolbar button,.editor-link-toolbar select{font-size:16px}}
/* Shared approved concept polish for all roles. */
/* Approved concept v2: 196px navigation, 342px queue, quiet metadata and white editor cards. */
:root{--ed-border:#e1e6ee;--ed-muted:#798392}
@media(min-width:1101px){#main-screen:not(.hidden){grid-template-columns:196px minmax(0,1fr)}#main-screen>.container{grid-template-columns:342px minmax(0,1fr)}}
.editor-nav{padding:28px 16px 16px;gap:16px}.editor-brand{margin:0 6px 24px;gap:12px}.editor-nav-links{gap:4px}.editor-nav-links button{min-height:40px;padding:8px 12px;font-size:14px}.editor-nav-account{font-size:12px;gap:8px}.editor-nav-account button{min-height:40px}.editor-nav .bot-panel{display:none!important}
.editor-queue{padding:28px 18px}.editor-queue>h2{font-size:21px;margin:0 0 20px}.editor-task{padding:16px 14px;gap:8px;min-height:112px;margin:0;border-radius:8px}.editor-task-meta,.editor-task-author{font-size:11px;color:#8590a0}.editor-task-status{font-size:11px;font-weight:600;color:#315fc0}.editor-task strong{font-size:14px;font-weight:600}.editor-queue #tasks-list{gap:8px}.editor-queue .task-search-bar label{font-size:12px}.editor-queue .filter-btn{font-size:12px;min-height:36px;padding:8px}.editor-queue .filters{gap:4px}.editor-queue #task-search{font-size:13px;height:40px}.editor-queue #task-search-clear{min-height:40px}
.editor-toolbar{padding:8px 30px;min-height:56px;font-size:12px}.editor-toolbar button{min-height:40px;font-size:12px}.editor-heading{padding:24px 30px 12px;position:relative}.editor-heading>p:first-child{font-size:11px;letter-spacing:.6px;color:#65758d}.editor-heading h1{font-size:24px;line-height:1.33;font-weight:650;letter-spacing:-.4px;margin:0 0 8px;max-height:none;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.editor-heading h1.expanded{display:block;max-height:160px;overflow:auto}.editor-heading>span{display:block;font-size:12px;color:#8691a2}.editor-expand-title{background:none;border:0;padding:0;min-height:24px;font-size:11px;color:#65758d;margin:0 0 4px}.editor-readonly{font-size:12px;margin:8px 0 0;color:#7a8493}.editor-update-notice{font-size:12px}
.editor-task-bot{margin:4px 30px 12px;padding:12px 16px;border-radius:8px;background:#f7f9fd;align-items:flex-start;gap:12px}.editor-bot-icon{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;background:#e8effc;border-radius:8px;color:#355bbe;font-size:22px}.editor-bot-body{flex:1;min-width:0}.editor-task-bot-text{font-size:13px;line-height:1.5;font-weight:600;max-height:none;overflow:visible}.editor-bot-details{font-size:11px;color:#7a889b}.editor-bot-details summary{cursor:pointer;min-height:20px}.editor-bot-diagnostics{font-size:12px;line-height:1.6;overflow-wrap:anywhere;max-height:160px;overflow:auto}.editor-bot-details button{min-height:32px;font-size:12px;margin-top:8px}.editor-task-bot-actions button{min-height:36px;padding:8px 12px;font-size:11px;color:#526987;border-color:#dce3ed}.editor-task-bot[data-state=historical]{background:#f7f9fd;color:#344b6b}
.editor-tabs{margin:0 30px;padding:0;gap:24px}.editor-tabs button{font-size:13px;min-height:44px;padding:12px 0}.editor-panels{padding:24px 30px 28px}.editor-panels h2{font-size:16px;font-weight:600;margin:0 0 8px}.editor-help{font-size:12px;color:#8993a2;line-height:1.6;margin:0 0 16px}.editor-field{font-size:12px;gap:8px;margin-bottom:16px}.editor-field input{min-height:40px;border-radius:6px}.editor-field textarea{font-size:14px;line-height:1.75;min-height:220px;border-radius:6px;padding:16px;resize:vertical}.editor-source-form textarea{min-height:280px}.editor-columns{gap:16px;align-items:stretch}.editor-original,.editor-target{border:1px solid #dce3ed;border-radius:8px;overflow:hidden;background:#fff;min-width:0}.editor-original h3{margin:0;padding:12px 16px;font-size:12px;background:#f9fafc;border-bottom:1px solid #e3e8f0}.editor-original-text{padding:16px;font-size:14px;line-height:1.75;min-height:280px;max-height:360px;overflow:auto}.editor-target .editor-field{margin:0;gap:0}.editor-target .editor-field>textarea{border:0;border-top:1px solid #e3e8f0;border-radius:0;min-height:320px;padding:16px}.editor-target .editor-field{padding-top:12px;text-indent:16px;background:#f9fafc}.editor-target .editor-field textarea{text-indent:0;background:#fff}.editor-translation-form>.editor-field{margin-top:16px}.editor-panels button[type=submit]{min-height:40px;font-size:12px;margin-top:8px}.editor-social-view{border:1px solid #dce3ed;border-radius:8px;padding:24px;font:14px/1.75 'Inter','Segoe UI',Arial,sans-serif;min-height:240px;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff}.editor-social-copy button,.editor-language select{min-height:40px;font-size:12px}.editor-social-copy{gap:8px}.editor-section-heading{margin-bottom:16px}.editor-social-form .editor-field textarea[readonly]{min-height:160px}.editor-social-form{margin-top:16px}.editor-social-form>.editor-help{background:#fafbfd;border:1px solid #e5eaf2;border-radius:6px;padding:16px}
/* Native mail workspace, not a widened modal. */
#main-screen[data-editor-view=mail]>.container{grid-template-columns:minmax(0,1fr)}#main-screen[data-editor-view=mail] .editor-aux{padding:0;overflow:hidden}.editor-mail-view{height:100%;min-height:0}.editor-mail-view #header-mail-panel{position:static;inset:auto;transform:none;width:100%;height:100%;max-width:none;max-height:none;min-width:0;box-shadow:none;border:0;border-radius:0;display:flex;flex-direction:column;background:#fff;z-index:auto;padding:0}.editor-mail-view .mail-panel-heading{padding:20px 24px;border-bottom:1px solid var(--ed-border);gap:8px;flex-wrap:wrap}.editor-mail-view .mail-panel-heading h2{font-size:20px;flex:1;min-width:160px;margin:0}.editor-mail-view button{min-height:40px;font-size:13px}.editor-mail-view #mail-close{position:static;font-size:13px;width:auto;padding:8px 12px}.editor-mail-view .mail-status{padding:8px 24px;font-size:13px}.editor-mail-view .mail-status:empty{display:none}.editor-mail-view .mail-content{display:grid;grid-template-columns:320px minmax(0,1fr);gap:0;flex:1;min-height:0;overflow:hidden;padding:0}.editor-mail-view .mail-list{border-right:1px solid var(--ed-border);overflow:auto;background:#f8f9fc;padding:16px;min-width:0}.editor-mail-view .mail-row{width:100%;padding:16px 12px;margin:0 0 8px;border-radius:8px;overflow-wrap:anywhere;white-space:normal;text-align:left}.editor-mail-view .mail-row strong{font-size:14px}.editor-mail-view .mail-row small{font-size:12px;overflow-wrap:anywhere}.editor-mail-view .mail-detail{padding:24px;overflow:auto;min-width:0;overflow-wrap:anywhere}.editor-mail-view .mail-detail h3{font-size:20px;line-height:1.4;overflow-wrap:anywhere}.editor-mail-view .mail-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.editor-mail-view .mail-detail input,.editor-mail-view .mail-detail textarea{max-width:100%;font-size:14px}.mail-back-to-list{display:none}.editor-mail-view a{overflow-wrap:anywhere}
@media(max-width:760px){.editor-nav{padding:4px 8px;gap:8px}.editor-brand{margin:0}.editor-nav-links button{min-height:44px;font-size:13px;padding:8px}.editor-queue{padding:16px}.editor-heading{padding:12px 16px 8px}.editor-heading h1{font-size:20px}.editor-toolbar{padding:4px 12px;min-height:52px}.editor-task-bot{margin:4px 16px 8px;padding:8px;gap:8px}.editor-bot-icon{width:28px;height:28px;font-size:18px}.editor-task-bot-text{font-size:12px}.editor-task-bot-actions{display:block}.editor-task-bot-actions button{min-height:44px;padding:8px}.editor-tabs{margin:0 16px;gap:20px}.editor-tabs button{min-height:44px}.editor-panels{padding:16px}.editor-field textarea{font-size:16px}.editor-source-form textarea{min-height:240px}.editor-columns{grid-template-columns:1fr}.editor-original-text{min-height:160px;max-height:200px}.editor-panels button[type=submit],.editor-social-copy button,.editor-language select{min-height:44px}.editor-mail-view .mail-panel-heading{padding:12px;gap:8px}.editor-mail-view .mail-panel-heading h2{flex-basis:100%;font-size:18px}.editor-mail-view button{min-height:44px}.editor-mail-view .mail-content{display:block;overflow:auto}.editor-mail-view .mail-list{border:0;padding:12px;height:100%}.editor-mail-view .mail-detail{display:none;padding:16px}.editor-mail-view .mail-detail-open .mail-list{display:none}.editor-mail-view .mail-detail-open .mail-detail{display:block}.editor-mail-view .mail-detail-open .mail-back-to-list{display:block;align-self:flex-start;margin:8px 12px}.editor-mail-view .mail-detail h3{font-size:18px}.editor-mail-view .mail-detail textarea{font-size:16px}}
.editor-social-card{border:1px solid #dce3ed;border-radius:8px;overflow:hidden}.editor-social-card .editor-social-view{border:0;border-radius:0;margin:0;padding:24px;min-height:280px}.editor-language-tabs{display:flex;gap:4px;padding:12px 16px;background:#f8fafc;border-bottom:1px solid #e1e7ef;flex-wrap:wrap}.editor-language-tabs button{font-size:12px;border:1px solid transparent;background:none;border-radius:5px;min-height:32px;padding:4px 12px;color:#78879c}.editor-language-tabs button[aria-pressed=true]{color:#315bc0;background:white;border-color:#ccd9f2;font-weight:600}.editor-social-card .editor-social-copy{border-top:1px solid #e4e9f1;padding:12px 16px;margin:0}.editor-language-select{display:none}.editor-note-details{margin-top:20px;font-size:12px;color:#65758d}.editor-note-details>summary{cursor:pointer;min-height:32px}.editor-note-details[open]>summary{margin-bottom:8px}
@media(max-width:760px){.editor-language-tabs{padding:8px}.editor-language-tabs button{min-height:44px;padding:8px}.editor-social-card .editor-social-view{padding:16px;min-height:240px}}
@media(min-width:761px){#main-screen:not(.hidden){grid-template-rows:0 minmax(0,1fr)}#main-screen>header{height:0;padding:0;border:0;min-height:0;overflow:visible;z-index:25}#main-screen>header>h1{display:none}#main-screen>header .header-right{position:absolute;right:20px;top:0}.header-users-dropdown{top:48px}}
.editor-nav-links button{display:flex;align-items:center;gap:12px}.editor-nav-links svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7}.editor-bot-icon svg{width:24px;height:24px}.editor-task-status{align-self:flex-start;border-radius:4px;padding:3px 6px;background:#edf2ff;display:flex;align-items:center;gap:6px}.editor-task-status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.editor-task-status--completed{background:#e9f5ee;color:#18734d}.editor-task-status--pending{background:#fff2d9;color:#8e6014}.editor-nav-account #role-badge{background:none;color:#798392;padding:0;font-size:11px;font-weight:400}.editor-nav-account #logout-btn{background:#fff;color:#596a82;border:1px solid #dce3ef;border-radius:6px}.editor-section-heading{margin-bottom:8px}.editor-section-heading h2{margin-bottom:0}.editor-mail-view .mail-ai-draft{background:#fafbfd;border:1px solid #e5eaf2;border-radius:8px;padding:16px}.editor-mail-view .mail-ai-draft textarea{font-weight:400;line-height:1.6;border:1px solid #dce3ed;border-radius:6px;padding:12px}.editor-mail-view .mail-detail button{border:1px solid #dce3ef;border-radius:6px;background:#fff;color:#596a82;padding:8px 12px}.editor-mail-view .mail-detail label{font-size:13px;font-weight:500;display:block;margin-bottom:12px}.editor-mail-view .mail-detail h4{font-size:14px}.editor-mail-view .mail-back-to-list{border:1px solid #dce3ef;border-radius:6px;background:#fff;color:#526987;padding:8px 12px}.editor-mail-view .mail-content:has(.mail-load-error){display:flex;flex-direction:column;align-items:flex-start;padding:24px}.editor-mail-view .mail-content:has(.mail-load-error)>button{flex:none;padding:8px 16px}.editor-mail-view .mail-row strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:760px){.editor-nav-links button{gap:6px}.editor-nav-links svg{width:16px;height:16px}.editor-mail-view .mail-ai-draft{padding:12px}.editor-mail-view .mail-detail textarea{font-size:16px}}
@media(max-width:760px){#main-screen:not(.hidden){grid-template-rows:auto 0 minmax(0,1fr)}#main-screen>header{height:0;min-height:0;padding:0;border:0;overflow:visible}#main-screen>header>h1{display:none}.editor-nav{padding-right:80px}.editor-nav-account{top:6px;right:8px;background:#fff}.editor-heading{padding-top:12px}.editor-readonly{margin-top:4px}.editor-heading>p:first-child{margin-bottom:4px}.editor-task-bot{margin-top:0}.editor-help{margin-bottom:12px}}
.editor-heading h1{max-width:720px}
.editor-mail-view .mail-detail h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 8px}.editor-mail-view .mail-detail h3.expanded{display:block}.editor-mail-view .mail-detail .mail-subject-toggle{border:0;background:none;color:#65758d;font-size:12px;padding:0;min-height:32px}.editor-mail-view .mail-detail>p{font-size:12px;color:#798392;margin:8px 0 16px;overflow-wrap:anywhere}
/* Photo cells start at the upper-left; retain uncropped original targets. */
.editor-panels:has([data-editor-panel="photos"]:not([hidden])){padding:24px}
[data-editor-panel="photos"]{min-height:0;align-content:start;justify-content:start}
.editor-photo-group{margin:0 0 24px;padding:0;min-height:0;min-width:0}
.editor-photo-group.photographer-attachments-block{padding:0;margin:0 0 24px;border:0;background:transparent;border-radius:0}.editor-photo-group .photographer-attachments-title{color:#40516a}
.editor-photo-group>h3,.editor-photo-group>h4{margin:0 0 12px;font-size:14px;font-weight:600;line-height:1.5}
.editor-workspace .editor-photo-group .attachments-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,220px));gap:16px;justify-content:start;align-items:start;margin:0;min-height:0;width:100%}
.editor-workspace .editor-photo-group .attachment-item{width:100%;height:auto;min-width:0;min-height:0;max-width:none;aspect-ratio:4/3;align-self:start;justify-self:start;margin:0;padding:0;border:1px solid #dfe5ef;border-radius:8px;overflow:hidden;background:#f8fafc}
.editor-workspace .editor-photo-group .task-attachment-thumb{width:100%;height:100%;max-width:100%;max-height:none;object-fit:contain;display:block;margin:0;transform:none;transition:none;border-radius:0}
.editor-workspace .editor-photo-group .task-attachment-thumb:hover{transform:none}
.editor-photo-group .file-name{overflow-wrap:anywhere;white-space:normal}
/* Фотограф: крупная кнопка-плюсик во вкладке «Фото» */
.editor-photo-add{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;padding:16px;border:2px dashed #b9c6d4;border-radius:16px;background:#f8fbff}
.editor-photo-add-btn{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;padding:14px 18px;border:0;border-radius:12px;background:#1c4e80;color:#fff;cursor:pointer;text-align:left;font:inherit;transition:background .15s}
.editor-photo-add-btn:hover{background:#173f68}
.editor-photo-add-btn:focus-visible{outline:3px solid #7fb2e5;outline-offset:3px}
.editor-photo-add-btn[disabled]{opacity:.65;cursor:progress}
.editor-photo-add-icon{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);font-size:28px;line-height:1;font-weight:400}
.editor-photo-add-text{font-size:17px;font-weight:700}
.editor-photo-add-hint{display:block;margin-left:auto;font-size:12.5px;opacity:.85;text-align:right}
.editor-photo-add-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.editor-photo-add-bar{height:8px;border-radius:999px;background:#dbe6f1;overflow:hidden}
.editor-photo-add-bar span{display:block;height:100%;width:0;background:#2e7d32;transition:width .2s}
.editor-photo-add-status{margin:0;font-size:13.5px;color:#33475b;min-height:1.3em}
@media(max-width:760px){.editor-photo-add{padding:12px;margin-bottom:14px}.editor-photo-add-btn{min-height:84px;flex-wrap:wrap}.editor-photo-add-hint{margin-left:58px;text-align:left;font-size:12px}.editor-photo-add-icon{width:48px;height:48px;font-size:30px}}
/* Мобильная оптимизация: шапка без обрезки, вкладки с прокруткой, касания >=44px, читаемые подписи. */
@media(max-width:760px){
html{-webkit-text-size-adjust:100%}
.editor-nav{overflow:visible;align-items:center;padding:4px 8px;gap:6px}
.editor-nav-links{flex:1 1 auto;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.editor-nav-links::-webkit-scrollbar{display:none;height:0}
.editor-nav-links button{scroll-snap-align:start;font-size:13.5px;min-height:44px;padding:8px 10px}
.editor-nav-account{position:static;right:auto;top:auto;margin:0;padding:0;border:0;background:transparent;flex-shrink:0;order:3}
.editor-nav-account #logout-btn{min-height:44px;padding:8px 12px;font-size:13.5px;white-space:nowrap}
.editor-tabs{margin:0;padding:0 16px;gap:18px;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.editor-tabs::-webkit-scrollbar{display:none;height:0}
.editor-tabs button{scroll-snap-align:start;font-size:14px;min-height:46px;padding:12px 2px}
.editor-queue .filters .filter-btn,.filters .filter-btn{min-height:44px;padding:9px 12px;font-size:13.5px}
.editor-queue .items-per-page-select,.pagination-settings select{min-height:44px;font-size:15px;padding:8px}
.editor-queue .btn-pagination{min-height:44px;padding:8px 14px;font-size:13.5px}
.editor-expand-title{min-height:44px;padding:2px 4px;font-size:12.5px}
.editor-task-bot .editor-bot-details>summary{min-height:44px;display:flex;align-items:center;font-size:12.5px}
.editor-task-bot-actions button{min-height:44px;padding:8px 12px;font-size:13px}
.editor-note-details>summary{min-height:44px;display:flex;align-items:center}
.mail-subject-toggle{min-height:44px;font-size:12.5px}
.editor-task-meta,.editor-task-author,.editor-task-status,.editor-heading>p:first-child,.editor-readonly{font-size:12.5px;line-height:1.45}
.editor-nav-account #role-badge{font-size:12px}
.editor-help,.editor-task-bot-text,.editor-mail-view .mail-detail>p,.editor-mail-view .mail-row small{font-size:13px}
.editor-workspace input,.editor-workspace textarea,.editor-workspace select,#task-search,.items-per-page-select,.editor-mail-view input,.editor-mail-view textarea,.editor-mail-view select{font-size:16px}
.editor-mail-view .mail-row small{overflow-wrap:anywhere}
.editor-nav-links,.editor-tabs{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 14px),transparent 100%);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 14px),transparent 100%)}
.editor-bot-details button[data-bot-refresh]{min-height:44px;padding:8px 12px;font-size:13px}
.editor-mail-view .mail-panel-heading button{min-height:44px;padding:9px 12px;font-size:13px}
}
@media(max-width:760px){.editor-panels:has([data-editor-panel="photos"]:not([hidden])){padding:16px}.editor-workspace .editor-photo-group .attachments-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.editor-photo-group{margin-bottom:24px}.editor-photo-group>h3,.editor-photo-group>h4{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Вложения управляются во вкладке «Фото и файлы»; на «Исходнике» остаётся один путь сохранения. */
.editor-workspace.has-save-bar [data-editor-panel="source"] .editor-source-form>button[type=submit]{display:none}
[data-editor-panel="photos"] .editor-section-heading .btn-edit{min-height:40px;padding:8px 14px;border:1px solid #ccd7e9;border-radius:6px;background:#fff;color:#2e56ab;font-size:13px;cursor:pointer}
[data-editor-panel="photos"] .editor-section-heading .btn-edit:hover{background:#f3f7ff}
/* Страница «Пользователи»: полноценный раздел вместо всплывающей панели в шапке. */
.editor-users-view{max-width:1180px}
.editor-users-view .editor-users-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 6px}
.editor-users-view .editor-users-head h2{margin:0}
.editor-users-view .editor-users-head button{min-height:40px;padding:8px 14px;border:1px solid #ccd7e9;border-radius:6px;background:#fff;color:#2e56ab;font-size:13px;cursor:pointer}
.editor-users-view .editor-users-head button:hover{background:#f3f7ff}
.editor-users-view .admin-users-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;max-height:none;overflow:visible;padding:0}
.editor-users-view .admin-user-card{margin:0}
@media(max-width:760px){.editor-users-view .admin-users-list{grid-template-columns:1fr}.editor-users-view .editor-users-head{align-items:flex-start;flex-direction:column;gap:10px}}

/* Предпросмотр задачи из письма */
.mail-task-preview-content{max-width:860px}
#mail-task-preview .editor-help{font-size:13px;color:#606b7b;margin:0 0 12px}
#mail-task-preview .translation-field textarea{min-height:240px}
#mail-task-preview-title-input{font-size:16px}
.mail-task-preview-attachments{display:flex;flex-direction:column;gap:6px;max-height:230px;overflow:auto;padding:10px 12px;border:1px solid #e1e7ef;border-radius:8px;background:#fbfcfe}
.mail-task-preview-file{display:flex;align-items:center;gap:10px;font-size:13.5px;color:#374151;min-height:32px;cursor:pointer;margin:0}
.mail-task-preview-file input{width:16px;height:16px;flex:0 0 auto;accent-color:#2e56ab}
.mail-task-preview-file span{overflow-wrap:anywhere;min-width:0}
.mail-task-preview-file small{color:#798392;font-size:12px;white-space:nowrap;margin-left:auto}
.mail-task-preview-note{font-size:12.5px;color:#798392;margin:0}

/* === Современная типографика: Inter, точные метрики === */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body{font-family:'Inter','Segoe UI',Arial,sans-serif;letter-spacing:-.006em}
button,input,select,textarea{font-family:inherit;letter-spacing:inherit}
::selection{background:#cfe0ff;color:#0f172a}
.editor-heading h1{letter-spacing:-.024em;line-height:1.22;font-weight:660}
.editor-queue-head h2,.editor-users-head h2,.editor-bot-home>h2,.editor-aux h2,.editor-mail-view .mail-panel-heading h2{letter-spacing:-.02em;font-weight:660}
.editor-panels h2,.editor-section-heading h2{letter-spacing:-.014em;font-weight:650}
.editor-task strong{letter-spacing:-.008em;font-weight:600}
.editor-task-meta,.editor-task-side,.editor-task-langs{font-variant-numeric:tabular-nums;letter-spacing:.008em}
.editor-toolbar,.editor-tabs button,.editor-nav-links button{letter-spacing:-.002em}
.editor-help{letter-spacing:0}
.stat-value{font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-weight:700}
.editor-mail-view .mail-detail h3{letter-spacing:-.014em}
.editor-mail-view .mail-row strong{letter-spacing:-.008em;font-weight:600}
.editor-users-view .admin-user-info strong{letter-spacing:-.008em}
.editor-task-status--social-missing{background:#ffdfbd;color:#823c13}
.editor-task:has(.editor-task-status--social-missing){background:#fff4e8;border-color:#efc99d;box-shadow:inset 4px 0 #c6732e}
.editor-task:has(.editor-task-status--social-missing):hover{background:#ffecd9}
.editor-task.selected:has(.editor-task-status--social-missing){background:#fff0df;border-color:#7c9ae5;box-shadow:inset 4px 0 #c6732e,0 1px 3px #2f56d914}
.editor-task-status--completed:before{flex:none}
.editor-panels .social-toggle{min-height:44px}
.editor-photo-group>h3,.editor-photo-group>h4{letter-spacing:.01em}
