.crm-help-slot { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: flex-end; margin-inline-start: auto; min-width: 44px; }
.crm-help-slot.crm-help-floating { position: fixed; inset-block-start: max(8px,env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 120; }
.crm-support-entry[hidden] { display:none; }
.crm-support-entry,.crm-training-entry {
  display: inline-flex; justify-content: center; align-items: center; box-sizing: border-box;
  min-height: 44px; padding: 6px 12px; max-width: 100%; text-align: center; text-decoration: none;
  font: 700 .85rem/1.2 system-ui,sans-serif; color: #17354b; background: #ecf3f8;
  border: 1px solid #829fb5; border-radius: 9px;
}
.crm-support-entry:hover { background: #dbeaf5; color: #17354b; }
.crm-support-entry:focus-visible { outline: 2px solid #426f98; outline-offset: 2px; }
.crm-training-entry { color:inherit; background:transparent; border-color:currentColor; }
.crm-training-entry:hover { text-decoration:underline; text-underline-offset:.2em; }
.crm-training-entry:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.crm-password-entry[hidden] { display:none !important; }
.crm-password-entry {
  display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box;
  min-height:44px; max-width:100%; padding:6px 12px; margin:0 0 0 8px;
  border:1px solid #72877b; border-radius:9px; background:#f0f6f2; color:#264238;
  text-align:center; text-decoration:none; font:700 .85rem/1.2 system-ui,sans-serif;
}
.crm-password-entry:hover { background:#dfede4; color:#1d392c; }
.crm-password-entry:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
html:is([data-theme="dark"],[data-studio-mode="dark"]) .crm-password-entry { background:#253c36; color:#e5f3eb; border-color:#729589; }
@media (max-width:560px) {
  :is(.sales-settings-support,.constructor-settings-support) > :is(.crm-password-entry,.crm-support-entry,.crm-training-entry) { width:100%; margin:0; }
  :is(.sales-settings-support,.constructor-settings-support) > a + a { margin-block-start:8px; }
}
@media (min-width:561px) {
  :is(.sales-settings-support,.constructor-settings-support) > .crm-training-entry { margin-inline-end:8px; }
}
:is(.sales-settings-support,.constructor-settings-support):not(:empty) { margin-block: 0 12px; }
.crm-support-faq-action { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: inherit; }
.client-hero .crm-help-slot { width: 100%; }
.crm-help-slot > .crm-help-button {
  display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0;
  font: 800 20px/1 system-ui,sans-serif; color: #f4f9ff; background: #254966; border: 1px solid #93b6d2; border-radius: 50%; cursor: pointer;
}
.crm-help-dialog {
  width: min(560px,calc(100vw - 28px)); max-width: calc(100vw - 28px); max-height: min(76dvh,620px); overflow: auto;
  box-sizing: border-box; padding: 0; border: 1px solid #97aebf; border-radius: 16px;
  color: #182333; background: #f7fafc; font: 16px/1.5 system-ui,sans-serif; box-shadow: 0 12px 46px #0006;
}
.crm-help-dialog::backdrop { background: #10182790; }
.crm-help-dialog > section { min-width: 0; padding: clamp(14px,4vw,24px); }
.crm-help-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.crm-help-dialog h2 { margin: 0; font-size: clamp(1.15rem,5vw,1.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.crm-help-dialog .crm-help-close {
  min-height: 44px; flex-shrink: 0; padding: 6px 10px; background: #dfebf5; color: #163653;
  border: 1px solid #91abc0; border-radius: 8px; font: inherit; cursor: pointer;
}
.crm-help-dialog :focus-visible { outline: 2px solid #285b90; outline-offset: 2px; }
.crm-help-answers,.guide-faq-items { display: grid; gap: 8px; margin-top: 16px; }
.crm-help-answers details,.guide-faq-items details { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid currentColor; border-radius: 8px; overflow-wrap: anywhere; }
.crm-help-answers summary,.guide-faq-items summary { min-height: 32px; font-weight: 680; cursor: pointer; }
.crm-help-answers summary { min-height:44px; align-content:center; }
.crm-help-answers p,.guide-faq-items p { margin: 7px 0 0; }
#guide-faq { margin-top: 24px; }
.guide-faq-items.guide-faq-grouped { grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr)); align-items:start; gap:18px; }
.guide-faq-group { display:grid; gap:7px; }
#guide-faq-filter { max-width:420px; }
#guide-faq-search { min-height:44px; }
.guide-faq-group summary { min-height:44px; align-content:center; }
.guide-faq-group summary:focus-visible { outline:2px solid #254966; outline-offset:2px; border-radius:4px; }
.guide-faq-group ol { margin:8px 0; padding-inline-start:1.6em; }
.guide-faq-group li + li { margin-top:6px; }
.guide-faq-group h3 { margin:0 0 3px; }
.guide-faq-group details { border-color:var(--ui-line,#d1d9d1); }
.crm-guide-actions { display:flex; flex-wrap:wrap; gap:8px; }
.crm-guide-button { min-width:0; min-height:44px; max-width:100%; padding:7px 12px; border:1px solid #91abc0; border-radius:8px; color:#163653; background:#f0f5fa; font:inherit; text-align:left; overflow-wrap:anywhere; }
.crm-guide-button:enabled { cursor:pointer; }
.crm-guide-link { display:inline-flex; align-items:center; justify-self:start; box-sizing:border-box; text-decoration:none; }
.crm-guide-next:enabled,.crm-guide-button[aria-pressed="true"] { background:#254966; color:#fff; }
.crm-guide-next:disabled { color:#526477; }
.crm-help-answers progress { width:100%; accent-color:#254966; }
.crm-guide-details { margin:0; }
.crm-guide-details dt { margin:6px 0 2px; font-weight:700; }
.crm-guide-details dd { margin:0 0 8px; }


/* Reserve a row so the fixed controls never cover the first working row. */
body:has(> .crm-corner-bar){--crm-corner-height:calc(50px + env(safe-area-inset-top,0px));padding-block-start:var(--crm-corner-height);box-sizing:border-box}
.crm-corner-bar{position:fixed;z-index:110;inset:0 0 auto auto;display:flex;align-items:center;
  box-sizing:border-box;height:var(--crm-corner-height);padding:max(3px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 3px max(8px,env(safe-area-inset-left));
  color:var(--ink,var(--constructor-ink,#28343b));background:transparent;border:0;pointer-events:none}
.crm-corner-bar .demo-back{position:fixed;top:max(4px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));margin:0;min-height:40px;pointer-events:auto}
.crm-corner-bar .crm-help-slot{position:static;display:flex;align-items:center;gap:6px;flex:none;width:auto;margin-inline-start:auto}
.crm-corner-bar .crm-help-slot>button{pointer-events:auto;display:inline-grid;place-items:center;box-sizing:border-box;flex:0 0 42px;
  height:42px;width:42px;min-width:42px;min-height:42px;margin:0;padding:0;border-radius:50%;border:1px solid var(--wl-control-line,#8a999f);
  color:inherit;background:var(--paper,var(--surface,var(--constructor-paper,#fff)));font:700 20px/1 system-ui,sans-serif;cursor:pointer}
.crm-corner-bar button:hover,.crm-corner-bar button[aria-pressed=true]{background:var(--soft,var(--constructor-soft,#e4edf0));border-color:currentColor}
.crm-corner-bar .crm-help-slot>button:is(:hover,:focus,:active,[aria-pressed]){transform:none;translate:none}
.crm-corner-bar button:focus-visible{outline:3px solid var(--wl-link,#6399d1);outline-offset:1px}
html[data-theme=dark] .crm-corner-bar{color:#f0f5fa}
html[data-theme=dark] .crm-corner-bar button{background:#303d4a;color:#f6f9fc;border-color:#8393a2}
html[data-theme=dark] .crm-corner-bar button[aria-pressed=true]{background:#435569}
html:has(.crm-corner-bar),html:has(.crm-corner-bar) * {scrollbar-width:none;scrollbar-gutter:auto}
html:has(.crm-corner-bar)::-webkit-scrollbar,html:has(.crm-corner-bar) *::-webkit-scrollbar{display:none}
html:has(.crm-corner-bar) .sidebar-resizer::before,html:has(.crm-corner-bar) .sidebar-resizer>span{display:none}
html:has(.crm-corner-bar){scroll-padding-top:calc(52px + env(safe-area-inset-top,0px))}
@media print{body:has(> .crm-corner-bar){padding-block-start:0}.crm-corner-bar{display:none}}
html[data-theme=dark] .crm-help-dialog {color:#f1f5fa;background:#222c37;border-color:#738393}
html[data-theme=dark] .crm-help-dialog :is(button,.crm-guide-link){background:#344556;color:#f4f8fb;border-color:#788c9e}
html[data-theme=dark] .crm-help-dialog :is(p,summary,dt,dd,small,h2,h3){color:inherit}
@media print{.crm-help-slot:has(.crm-theme-switch){display:none}}


html.crm-auxiliary[data-theme=dark]{color-scheme:dark;background:#182028;color:#f1f5f8;--ink:#f1f5f8;--paper:#25313a;--line:#657583;--soft:#35434f;--muted:#c1cdd4}
html.crm-auxiliary[data-theme=dark] body{color:var(--ink);background-color:#182028}
html.crm-auxiliary[data-theme=dark] :is(.panel,dialog,.card,fieldset,.public-header,.guide-group,.guide-lesson,.guide-result,.guide-step-details>div,details,input,select,textarea){
  color:var(--ink);background-color:var(--paper);border-color:var(--line)
}
html.crm-auxiliary[data-theme=dark] :is(.wordmark,a,.muted,small,label,.help,.guide-lesson-name,dt,dd){color:var(--ink)}
html.crm-auxiliary[data-theme=dark] :is(.secondary,button:not(.primary):not(.crm-help-button):not(.crm-theme-switch)){color:var(--ink);background:var(--soft);border-color:var(--line)}
html.crm-auxiliary[data-theme=dark] a.button-link{color:var(--wl-accent-ink,#fff)}
.guide-actions:has(> :nth-child(2)){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));grid-auto-rows:1fr}
.guide-actions>:is(button,a){min-width:0;min-height:44px;text-align:center;align-content:center}

html.crm-auxiliary[data-theme=dark] :is(.client-card,.signup-card,.signup-summary,.signup-wrap .support-message,.guide-step-details,.portal-grid>section){background-color:var(--paper);color:var(--ink);border-color:var(--line)}
html.crm-auxiliary[data-theme=light]:has([data-support-chat=customer]){color-scheme:light;background:#edf1f4;color:#182c38;--surface:#fff;--muted:#485965;--ink:#182c38;--line:#aab7c3;--light:#24578b;--action:#285f59}
html.crm-auxiliary[data-theme=light] :is(.support-panel) :is(input,textarea,select){color:#1f3140;background:#fff}

html.crm-auxiliary[data-theme=light] .support-panel{background:#fff;color:#182c38;border-color:var(--line)}
html.crm-auxiliary[data-theme=light]:has(.support-panel) .secondary{background:#edf3f8;color:#263b4c;border-color:#9aaaba}

dialog .crm-layer-help{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;min-height:40px;padding:0;border:1px solid currentColor;border-radius:50%;font-weight:700}
#guide-assist{display:grid;gap:10px;margin-block:12px;text-align:start}#guide-assist[hidden]{display:none}#guide-task{width:100%;max-width:100%;min-width:0;font:inherit}#guide-assist .guide-actions{margin:0}

#guide-assist .guide-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch;gap:8px}
#guide-assist .guide-actions :is(button,a){display:grid;place-items:center;text-align:center;align-self:stretch;min-height:44px;width:100%;margin:0;box-sizing:border-box}
#guide-assist .guide-actions [hidden]{display:none}

.guide-support-home .demo-back{display:none}

.crm-page-return{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 1rem;margin:.5rem;border:1px solid currentColor;border-radius:.7rem;color:inherit;font:inherit;font-weight:600;text-decoration:none}

.crm-practical-panel {box-sizing:border-box;width:min(100%,54rem);margin:0 auto 8px;padding:8px 12px;border:1px solid var(--line,#b6c3bf);border-top:3px solid var(--accent,#365c55);border-radius:12px;background:var(--paper,Canvas);color:var(--ink,CanvasText);line-height:1.35;text-align:start}
.crm-practical-panel p,.crm-practical-panel strong {display:block;margin:4px 0}
.crm-practical-actions {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;align-items:stretch}
.crm-practical-actions span {align-self:center;text-align:center;font-size:.84em}
.crm-practical-actions button {min-width:0;min-height:40px;padding:5px;border:1px solid currentColor;border-radius:8px;text-align:center}

/* The lesson provides its own navigation while the working screen is embedded. */
.wl-working-lesson body > :is(.demo-back,.demo-shortcuts) {display:none!important}
