/* Contextual help: the action stays separate from its explanation. */
.ico-context-question{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 23px!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;padding:0!important;border:1px solid #cbd9e9!important;border-radius:50%!important;background:#f4f8fd!important;color:#366594!important;font-size:12px!important;font-weight:700;line-height:1!important;box-shadow:none!important;cursor:help;vertical-align:middle}
.ico-context-question:hover{background:#e4f0ff!important;border-color:#83b5ed!important;color:#1556a0!important}
.ico-context-question:focus-visible{outline:3px solid #8ebaff;outline-offset:3px}
.ico-help-label{display:inline-flex;align-items:center;gap:8px;max-width:100%;line-height:1.5}
.ico-help-label>small{font-weight:400}
.ico-help-action{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-width:0;vertical-align:middle}
.ico-help-action>button:first-child{min-width:0}
.ico-help-action:has(>button[hidden]){display:none!important}
.cw-tabs .ico-help-action,.cw-document-filters .ico-help-action{flex-shrink:0;max-width:none}
.cw-tree-task>.ico-help-action>button:first-child{display:grid;gap:5px;text-align:left;background:none;border:0;padding:0;min-height:32px;white-space:normal}
.cw-calendar-row>.ico-help-action>button:first-child{border:0;border-radius:0;font-size:11px;text-align:left;padding:10px 14px;white-space:normal}
.cw-private{flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:100%}
.cw-private .ico-context-question{margin-left:0}
.cw-private .ico-help-action{flex-shrink:0}
@media(max-width:600px){.cw-header{flex-wrap:wrap;gap:12px}.cw-private{gap:6px}.cw-private .ico-help-action>button:first-child{margin-left:0}}
.editor-global-footer .ico-help-action,.cw-sticky-actions .ico-help-action{flex:1}
.editor-global-footer .ico-help-action>button:first-child,.cw-sticky-actions .ico-help-action>button:first-child{flex:1}
.report-formats .ico-help-action{flex:1;justify-content:center}
.report-templates .ico-help-action{width:100%}
.report-templates .ico-help-action>button:first-child{flex:1}
.viewer-tools .ico-help-action{gap:1px}
.viewer-tools .ico-context-question{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;flex-basis:20px;font-size:11px!important}
[data-context-help-scope] :is(input[type=text],input[type=number],input[type=date],select,textarea){border-color:#d3deeb;border-radius:11px;background-color:#fff;transition:border-color .15s,box-shadow .15s}
[data-context-help-scope] :is(input,select,textarea):focus-visible{outline:0;border-color:#77a9ec;box-shadow:0 0 0 3px #2878ef19}
[data-context-help-scope] textarea{line-height:1.6;padding:12px 14px}
.ico-help-card{position:fixed;inset:auto;margin:0;width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #d8e4f1;border-radius:17px;background:#fff;color:#1b2a40;box-shadow:0 18px 60px #0c203533;z-index:10000;text-align:left;font-family:inherit;font-size:14px;line-height:1.65}
.ico-help-card::backdrop{background:transparent}
.ico-help-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.ico-help-card h2{font-size:17px;line-height:1.4;margin:0;font-weight:750;letter-spacing:-.3px}
.ico-help-card>p{margin:0 0 16px;color:#42566e}
.ico-help-card .ico-help-close{flex:none;display:grid;place-items:center;width:28px;height:28px;min-height:28px;min-width:28px;padding:0;border:0;border-radius:8px;color:#5b6d84;background:#f0f4f9;font-size:22px;line-height:1}
.ico-help-example{padding:14px 16px;border:1px solid #dbeafe;background:#f1f7ff;border-radius:12px}
.ico-help-example strong{display:block;margin-bottom:5px;color:#285d9c;font-size:12px;letter-spacing:.2px}
.ico-help-example p{margin:0;color:#29445f}
@media(max-width:600px){.ico-help-card{padding:17px}.ico-help-label{gap:6px}.ico-help-action{gap:4px}.viewer-tools{flex-wrap:wrap}.ico-context-question{flex-basis:24px;min-width:24px!important;min-height:24px!important}}
@media(prefers-reduced-motion:reduce){[data-context-help-scope] :is(input,select,textarea){transition:none}}

.editor-progress-reference{border:1px solid #d6e4f4;border-radius:12px;padding:12px;margin:12px 0;background:#f1f7ff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.editor-progress-reference>small{grid-column:1/-1;font-size:10px;line-height:1.5}.editor-progress-reference button{font-size:11px;padding:8px}

.ico-help-input-wrap{display:inline-flex;align-items:center;gap:5px;min-width:0}.ico-help-input-wrap>input{min-width:0}.editor-face-row .ico-help-input-wrap{max-width:100%}.viewer-tools{max-width:calc(100% - 24px)}

.editor-face{grid-template-columns:44px minmax(0,1fr)}.editor-face>.ico-help-input-wrap{align-items:flex-start;padding-top:5px;gap:2px}.editor-face>.ico-help-input-wrap input{width:16px;min-height:16px;margin:3px 0}.editor-face-name>.ico-help-input-wrap{flex:1}.editor-face-name .ico-context-question{flex-basis:19px!important;width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important}.editor-progress-reference .ico-help-action{align-self:end}

/* Main menu guides stay beside navigation controls, never inside their buttons. */
.ico-nav-help-item{position:relative;min-width:0}.ico-nav-help-item>.nav-item{width:100%}.ico-nav-help-item>.ico-context-question{position:absolute;right:2px;top:2px}.ico-help-card ol{padding-left:22px;margin:0 0 16px}.ico-help-card li{margin:8px 0}[data-menu-guide]{margin-left:8px;vertical-align:middle}
.material-history-controls{display:flex;align-items:center;gap:8px;margin:12px 0}.material-history-controls[hidden]{display:none!important}.material-history-controls button{flex:1;min-width:40px;min-height:42px;padding:8px 10px;font-size:13px}
