/* Guided example workflows. All styles are scoped to the local demo coach. */
.demo-role-dialog{width:min(780px,calc(100% - 32px));max-width:780px;padding:32px;border:1px solid #dce4ed;border-radius:20px;background:#fff;color:#20334a;box-shadow:0 32px 96px #10233938}
.demo-role-dialog::backdrop{background:#132c4766;backdrop-filter:blur(5px)}
.demo-role-header,.demo-coach-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.demo-role-header h2{font-size:1.65rem;letter-spacing:-.04em;margin:0;line-height:1.25}.demo-coach-eyebrow{color:#a3263c;font-size:.7rem;font-weight:750;letter-spacing:.11em;text-transform:uppercase;margin:0 0 8px;line-height:1.4}
.demo-role-intro{color:#65758a;line-height:1.65;margin:14px 0 24px;max-width:590px}.demo-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.demo-coach-button{border:1px solid transparent;border-radius:8px;padding:8px 10px;min-height:40px;font:inherit;font-size:.78rem;line-height:1.35;font-weight:650;cursor:pointer;color:#435772;background:transparent;white-space:normal}
.demo-coach-button:hover{background:#edf2f7}.demo-coach-button:focus-visible{outline:3px solid #326fd1;outline-offset:3px}.demo-coach-button--primary{background:#b8243b;color:#fff;padding:10px 14px}.demo-coach-button--primary:hover{background:#9f1e32}
.demo-coach-button--card{display:grid;text-align:left;align-content:start;justify-items:start;gap:9px;min-height:210px;padding:21px;border:1px solid #dce4ee;border-radius:13px;background:#fff;transition:border-color .16s,background-color .16s,box-shadow .16s}.demo-coach-button--card:hover{border-color:#c65468;background:#fffafb;box-shadow:0 5px 16px #9c27470c}.demo-coach-button--card strong{font-size:1.05rem;color:#20334a}.demo-role-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:9px;color:#a3263c;background:#f9eaf0;font-size:1.55rem;font-weight:500;line-height:1}.demo-role-description{font-size:.86rem;line-height:1.6;font-weight:400;color:#65758a}.demo-role-detail{margin-top:auto;padding-top:6px;font-size:.76rem;color:#a3263c}
.demo-role-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px;padding-top:17px;border-top:1px solid #e8edf3}.demo-role-footer>span{font-size:.78rem;line-height:1.55;color:#65758a}.demo-role-footer button{flex-shrink:0}
.demo-coach-layer{position:static;pointer-events:none;font-family:inherit;color:#20334a}.demo-coach-layer [hidden]{display:none!important}.demo-coach-panel{position:fixed;z-index:2147483001;pointer-events:auto;width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 102px);overflow:auto;padding:20px;border-radius:14px;border:1px solid #d6dfeb;background:#fff;box-shadow:0 16px 60px #10294433,0 2px 7px #10294416}.demo-coach-heading>.demo-coach-button{font-size:1.35rem;line-height:1;min-width:36px;min-height:36px;margin:-8px -8px 0 0}.demo-coach-title{font-size:1.06rem;line-height:1.4;letter-spacing:-.02em;margin:0;color:#20334a}.demo-coach-description{font-size:.85rem;line-height:1.65;color:#52657d;margin:12px 0 0;overflow-wrap:anywhere}.demo-coach-hint{font-size:.75rem;line-height:1.55;color:#65758a;padding:11px 0 0;margin:11px 0 0;border-top:1px solid #edf1f6}.demo-coach-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:12px -5px -5px}.demo-coach-ring{position:fixed;z-index:2147483000;pointer-events:none;border:2px solid #bb2440;border-radius:9px;box-shadow:0 0 0 5px #bc264022;animation:demo-coach-pulse 1.8s ease-out infinite}.demo-coach-toolbar{position:fixed;z-index:2147483002;pointer-events:auto;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;left:50%;bottom:16px;transform:translateX(-50%);max-width:calc(100vw - 24px);width:max-content;padding:6px 10px;background:#172d44;color:#fff;border:1px solid #314c66;border-radius:12px;box-shadow:0 7px 28px #11294033}.demo-coach-toolbar .demo-coach-button{color:#f2f6fc;font-size:.75rem;min-height:36px}.demo-coach-toolbar .demo-coach-button:hover{background:#29445f}.demo-coach-toolbar-label{font-size:.75rem;font-weight:700;color:#e0e9f3;padding:0 8px}.demo-coach-toolbar .demo-coach-button:focus-visible{outline-color:#a4ceff}
@keyframes demo-coach-pulse{0%{box-shadow:0 0 0 3px #bc264033}70%{box-shadow:0 0 0 12px #bc264000}100%{box-shadow:0 0 0 3px #bc264000}}
@media(max-width:600px){.demo-role-dialog{padding:24px 20px;max-height:calc(100dvh - 24px);overflow:auto}.demo-role-header h2{font-size:1.35rem}.demo-role-grid{grid-template-columns:1fr;gap:10px}.demo-coach-button--card{min-height:0;padding:17px;grid-template-columns:34px 1fr;column-gap:13px;row-gap:4px}.demo-role-icon{grid-row:1 / 4}.demo-role-description,.demo-role-detail{grid-column:2}.demo-role-intro{font-size:.88rem;margin-bottom:20px}.demo-role-footer{align-items:flex-start;flex-direction:column;gap:10px}.demo-coach-panel{padding:16px;max-height:45dvh}.demo-coach-title{font-size:1rem}.demo-coach-description{font-size:.8rem;margin-top:9px}.demo-coach-eyebrow{font-size:.64rem;margin-bottom:6px}.demo-coach-toolbar{bottom:8px;padding:4px 7px;gap:1px;border-radius:10px}.demo-coach-toolbar-label{display:none}.demo-coach-toolbar .demo-coach-button{font-size:.7rem;padding:6px 8px;min-height:34px}.demo-coach-hint{font-size:.72rem}.demo-coach-actions{gap:2px;margin-top:8px}.demo-coach-button{font-size:.74rem}}
@media(prefers-reduced-motion:reduce){.demo-coach-ring{animation:none;box-shadow:0 0 0 5px #bc264022}.demo-coach-button--card{transition:none}}

.worker-guide-page .worker-guide-launch{float:right;display:inline-flex;align-items:center;gap:5px;border:1px solid #d2ddeb;border-radius:6px;background:#fff;color:#8f263e;font-size:.7rem;font-weight:650;padding:5px 8px;min-height:30px;margin:0 0 4px 8px}.worker-guide-page .worker-guide-launch:focus-visible{outline:3px solid #326fd1;outline-offset:2px}

body:has(>.demo-coach-layer .demo-coach-toolbar:not([hidden])){padding-bottom:82px}dialog:not(.demo-role-dialog):has(>.demo-coach-layer .demo-coach-toolbar:not([hidden])){padding-bottom:90px}

/* When a form leaves no free viewport space, reserve real space for the guide. */
.demo-coach-inline-host{position:relative;display:block;width:100%;max-width:600px;min-width:0;margin:12px 0 20px;grid-column:1 / -1;align-self:stretch;pointer-events:auto}
.demo-coach-panel.demo-coach-panel--inline{position:relative;z-index:auto;max-width:100%;max-height:none;padding:16px;border-color:#dfcbd1;background:#fffafb;box-shadow:0 3px 12px #1029440a;overflow:visible}
.demo-coach-inline-toggle{display:none}.demo-coach-panel--inline .demo-coach-inline-toggle{display:inline-flex;align-items:center;font-size:.7rem;padding:5px 7px;min-height:34px;flex-shrink:0;color:#8f263e}
.demo-coach-panel--inline .demo-coach-heading{gap:8px}.demo-coach-panel--inline .demo-coach-heading>div{min-width:0;flex:1}.demo-coach-panel--inline .demo-coach-title{font-size:.95rem}.demo-coach-panel--inline .demo-coach-description{font-size:.8rem}
.demo-coach-panel--inline[data-expanded="false"] .demo-coach-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.demo-coach-panel--inline[data-expanded="false"] .demo-coach-hint{display:none}.demo-coach-panel--inline[data-expanded="false"] .demo-coach-actions [data-coach-action="restart"]{display:none}
@media(max-width:600px){.demo-coach-inline-host{margin:10px 0 16px}.demo-coach-panel.demo-coach-panel--inline{padding:13px}.demo-coach-panel--inline .demo-coach-heading{flex-wrap:wrap}.demo-coach-panel--inline .demo-coach-heading>div{flex-basis:calc(100% - 44px)}.demo-coach-panel--inline .demo-coach-inline-toggle{order:3;margin:-4px 0 0;padding-left:0}.demo-coach-panel--inline .demo-coach-description{margin-top:5px}}
