/* Intelecto21 2026: original-brand writing workspace, product-first layout */
:root{--ws-ink:#142443;--ws-secondary:#62718a;--ws-brand:#175ce2;--ws-border:#e3e8f1;--ws-canvas:#f6f8fb}
.ws-icon{width:19px;height:19px;stroke-width:1.7!important;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.site-header{background:#fff;box-shadow:none!important;border-bottom:1px solid #e5eaf3}
.ws-product{background:var(--ws-canvas);color:var(--ws-ink);border-bottom:1px solid #e3e8f1;font-family:Manrope,Inter,system-ui,sans-serif}
.ws-app-frame{display:grid;grid-template-columns:215px minmax(0,1fr);width:min(1400px,100%);margin:0 auto;align-items:stretch;min-height:694px}
.ws-sidebar{display:flex;flex-direction:column;gap:0;background:#fff;border-right:1px solid #e5eaf2;padding:34px 14px 26px;min-width:0}
.ws-sidebar-caption{font-size:10px;color:#93a0b4;font-weight:900;letter-spacing:.12em;padding:0 14px;margin-bottom:18px}
.ws-tool-list{display:grid;gap:5px}
.ws-tool{border:1px solid transparent;background:transparent;border-radius:10px;display:flex;align-items:center;gap:11px;min-height:59px;padding:10px 12px;text-align:left;color:#526580;cursor:pointer;transition:background .18s,border-color .18s;min-width:0}
.ws-tool .ws-icon{width:22px;height:22px;color:#697a96}
.ws-tool span{display:flex;flex-direction:column;gap:4px;min-width:0}
.ws-tool b{font-size:12px;color:#2d4166;font-weight:850;line-height:1.2}
.ws-tool small{font-size:10px;color:#8090a6;line-height:1.25}
.ws-tool[aria-selected=true]{background:#eaf1ff;border-color:#ccdffb}
.ws-tool[aria-selected=true] b,.ws-tool[aria-selected=true] .ws-icon{color:#165bdc}
.ws-tool:hover{background:#f2f6fc}
.ws-tool:focus-visible,.ws-sidebar-link:focus-visible,.ws-editor button:focus-visible,.ws-editor a:focus-visible{outline:3px solid #95baff;outline-offset:2px}
.ws-sidebar-line{height:1px;background:#e9edf5;margin:24px 8px 23px}
.ws-shortcut-title{font-size:10px;color:#96a2b5;font-weight:900;letter-spacing:.1em;padding:0 14px;margin-bottom:9px}
.ws-sidebar-link{display:flex;align-items:center;gap:12px;padding:12px 14px;text-decoration:none;color:#536681;font-weight:780;font-size:11px;border-radius:9px;line-height:1.4}
.ws-sidebar-link .ws-icon{width:18px;height:18px;color:#76849e}
.ws-sidebar-link:hover{background:#f3f7fd;color:#1d54be}
.ws-sidebar-upgrade{margin-top:auto;background:#f5f8ff;border:1px solid #d9e5fa;padding:17px 14px;border-radius:13px}
.ws-sidebar-upgrade-icon{width:33px;height:33px;background:#e4eeff;border-radius:9px;display:grid;place-items:center;color:#2160d1;margin-bottom:11px}
.ws-sidebar-upgrade-icon svg{width:18px;height:18px}
.ws-sidebar-upgrade strong{font-size:11px;display:block;line-height:1.45;color:#223c68}
.ws-sidebar-upgrade p{font-size:10px;line-height:1.7;color:#667994;margin:7px 0}
.ws-sidebar-upgrade a{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:900;color:#1557cc;margin-top:6px;text-decoration:none}
.ws-sidebar-upgrade a svg{width:14px;height:14px}
.ws-content{min-width:0;padding:27px clamp(20px,3vw,48px) 29px}
.ws-breadcrumb{display:flex;align-items:center;gap:10px;color:#8694ab;font-size:10px;font-weight:760;margin-bottom:20px}
.ws-breadcrumb strong{color:#416db6}
.ws-breadcrumb .ws-slash{color:#bdc7d6}
.ws-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.ws-heading-copy{max-width:760px}
.ws-heading h1{font-size:clamp(24px,2.5vw,33px);font-weight:900;letter-spacing:-.052em;line-height:1.26;margin:0;color:#13244b}
.ws-heading p{font-size:12px;color:#62728a;line-height:1.7;max-width:680px;margin-top:7px}
.ws-heading-link{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:#1d57cc;font-weight:850;white-space:nowrap;text-decoration:none}
.ws-heading-link svg{width:15px;height:15px}
.ws-editor{background:#fff;border:1px solid #d9e3f0;border-radius:15px;box-shadow:0 12px 30px rgba(25,52,93,.045);overflow:hidden;min-width:0}
.ws-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;background:#fff;border-bottom:1px solid #e6ecf5}
.ws-current-tool{display:inline-flex;align-items:center;gap:9px;font-size:12px;color:#23385a;font-weight:900}
.ws-current-tool .ws-icon{color:#1c5ede}
.ws-editor-options{display:flex;align-items:center;gap:12px}
.ws-editor-options label{font-size:11px;font-weight:780;color:#8390a5}
.ws-editor-options select{min-width:140px;color:#24436d;font-weight:800;font-size:11px;padding:10px 28px 10px 13px;border:1px solid #d5e0f1;background:#f8faff;border-radius:9px;outline:none}
.ws-editor-options select:focus{border-color:#7ea7f1}
.ws-panels{display:grid;grid-template-columns:1fr 1fr;min-height:377px}
.ws-panel{display:flex;flex-direction:column;min-width:0;padding:0;background:#fff}
.ws-panel+.ws-panel{border-left:1px solid #e4e9f1;background:#fbfcff}
.ws-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:9px 16px;border-bottom:1px solid #edf1f6}
.ws-panel-label{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:900;color:#344b6e;line-height:1.25}
.ws-chip{font-size:9px;letter-spacing:.03em;font-weight:800;background:#f1f4f8;color:#798ba4;border-radius:6px;padding:5px 8px}
.ws-chip-blue{background:#e8f1ff;color:#2866d3}
.ws-icon-actions{display:flex;align-items:center;gap:3px}
.ws-icon-actions button{border:0;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;background:transparent;color:#7586a1;cursor:pointer}
.ws-icon-actions button:hover:not(:disabled){background:#eef4ff;color:#1b60dc}
.ws-icon-actions button:disabled{opacity:.4;cursor:not-allowed}
.ws-icon-actions button svg{width:17px;height:17px}
#ws-input{border:0;outline:none;resize:vertical;flex:1;min-height:249px;width:100%;color:#243954;padding:22px;font-size:13px;line-height:1.88;font-family:inherit;background:#fff}
#ws-input:focus-visible{box-shadow:inset 0 0 0 2px #e4efff}
.ws-output{flex:1;min-height:249px;padding:22px;font-size:13px;line-height:1.88;color:#24416a;white-space:pre-wrap;overflow-wrap:anywhere;background:linear-gradient(140deg,#faffff,#f7faff)}
.ws-output.ws-empty{color:#7b89a3}
.ws-panel-bottom{min-height:40px;border-top:1px solid #edf1f6;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8290a7;font-size:10px}
.ws-panel-bottom>span:first-child{display:flex;align-items:center;gap:6px}
.ws-panel-bottom .ws-icon{width:14px;height:14px;color:#5182d9}
.ws-panel-bottom>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.ws-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 19px;border-top:1px solid #e3eaf3;background:#fff}
.ws-footer-note{font-size:10px;color:#7888a2;display:flex;align-items:center;gap:8px;max-width:470px}
.ws-footer-note svg{width:17px;height:17px;color:#668bd1}
.ws-footer-actions{display:flex;gap:9px;align-items:center}
.ws-soft-button,.ws-primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;border-radius:9px;padding:11px 15px;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer;text-decoration:none}
.ws-soft-button{background:white;border:1px solid #d7e2f2;color:#486285}
.ws-soft-button:hover{background:#f3f7fc}
.ws-primary-button{color:white;background:#185be2;border:1px solid #1453d6;box-shadow:0 6px 13px #1555d225}
.ws-primary-button:hover{color:white;background:#0e4bd0}
.ws-soft-button .ws-icon,.ws-primary-button .ws-icon{height:15px;width:15px}
.ws-proofrow{display:flex;align-items:center;gap:26px;flex-wrap:wrap;padding:19px 4px 0}
.ws-proofrow span{display:inline-flex;align-items:center;gap:7px;color:#7888a2;font-size:10px;font-weight:750}
.ws-proofrow .ws-icon{width:16px;height:16px;color:#4978c9}
@media(max-width:1150px){
 .ws-app-frame{grid-template-columns:188px minmax(0,1fr)}
 .ws-sidebar{padding-inline:9px}
 .ws-sidebar-upgrade{padding:13px}
 .ws-content{padding:25px 24px}
 .ws-editor-footer{align-items:flex-start}
 .ws-footer-note{max-width:260px}
}
@media(max-width:920px){
 .ws-app-frame{display:flex;flex-direction:column}
 .ws-sidebar{padding:13px 22px;border-right:0;border-bottom:1px solid #e5eaf2}
 .ws-sidebar-caption,.ws-sidebar-line,.ws-shortcut-title,.ws-sidebar-link,.ws-sidebar-upgrade{display:none}
 .ws-tool-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .ws-tool{min-height:48px;padding:9px 14px}
 .ws-tool small{display:none}
 .ws-content{padding:24px 22px}
 .ws-panels{min-height:340px}
}
@media(max-width:660px){
 .ws-sidebar{padding:10px 15px}
 .ws-content{padding:17px 14px 24px}
 .ws-breadcrumb{margin-bottom:13px}
 .ws-heading{margin-bottom:15px}
 .ws-heading h1{font-size:23px}
 .ws-heading p{font-size:11px}
 .ws-heading-link{display:none}
 .ws-editor-toolbar{padding:13px 13px;align-items:flex-start;flex-direction:column;gap:10px}
 .ws-editor-options{width:100%;justify-content:space-between}
 .ws-editor-options select{min-width:140px}
 .ws-panels{grid-template-columns:1fr}
 .ws-panel+.ws-panel{border-left:0;border-top:1px solid #e5eaf2}
 #ws-input,.ws-output{min-height:166px;font-size:13px;padding:17px}
 .ws-panel-top{padding:8px 12px;min-height:48px}
 .ws-editor-footer{padding:14px;flex-direction:column;align-items:stretch}
 .ws-footer-note{max-width:none}
 .ws-footer-actions{width:100%}
 .ws-soft-button,.ws-primary-button{flex:1;white-space:normal;text-align:center;padding:10px 9px;min-height:44px}
 .ws-proofrow{gap:9px;padding:16px 0 0}
 .ws-proofrow span{font-size:9px}
}
@media(max-width:375px){
 .ws-content{padding:13px 10px 20px}
 .ws-tool{padding:9px}
 .ws-tool b{font-size:11px}
 .ws-heading h1{font-size:21px}
 .ws-panel-label{font-size:10px}
 .ws-chip{padding:4px 6px}
 .ws-editor-options label{font-size:10px}
 .ws-panel-bottom{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.ws-tool{transition:none}}
