/* Plan switch and Premium previews for the demo. Loaded by nav.js and app.html. */
.dm-hdr h1{margin-bottom:12px}
.dm-plan{gap:12px}
.dm-plan-label{font-size:13px;opacity:.9}
.dm-switch{display:inline-flex;border:1px solid #9DB0C4;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08)}
.dm-switch button{border:0;background:transparent;color:#dbe6f2;padding:7px 16px;font-size:14px;font-weight:600;cursor:pointer;border-radius:999px}
.dm-switch button.on{background:#245B90;color:#fff}
.dm-switch button:not(.on):hover{background:rgba(255,255,255,.12)}
.dm-price{display:block;width:100%;margin:8px 0 0;font-size:13px;opacity:.95}
.dm-ctl{margin-left:auto;font-size:13px}
.dm-ctl a{color:#dbe6f2;text-decoration:none;border:1px solid #9DB0C4;border-radius:999px;padding:6px 14px;display:inline-block}
.dm-ctl a:hover{background:rgba(255,255,255,.12);color:#fff}
.dm-plan-tag{display:inline-block;margin-left:8px;font-size:11px;font-weight:600;color:#101F30;background:#e3eefa;border:1px solid #b9d1ee;border-radius:999px;padding:2px 8px;vertical-align:middle}
.dm-preview{position:relative;margin-top:16px;border-radius:8px;overflow:hidden}
.dm-preview-body{filter:blur(3px);opacity:.55;pointer-events:none;user-select:none}
.dm-preview-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(244,246,248,.2),rgba(244,246,248,.75))}
.dm-preview-card{background:#fff;border:1px solid #cfd8e1;border-radius:8px;padding:16px 18px;max-width:520px;box-shadow:0 8px 24px rgba(20,50,74,.12)}
.dm-preview-card h3{margin:0 0 6px;font-size:15px}.dm-preview-card p{margin:0 0 6px;font-size:13px;line-height:1.5}
.dm-roster-preview{position:relative;margin-top:2px}
.dm-roster-preview .dm-preview-cover{align-items:flex-start;padding-top:28px}
.dm-wrap,.dm-foot{max-width:1440px}
.dm-app .btn-settings-toggle,.dm-app .btn-export-top,.dm-app .tb-role-btn{cursor:pointer}
/* Tab strip inside the Zendesk frame, in the app's .tab-btn pattern. */
.dm-tabs{display:flex;gap:2px;align-items:stretch;background:#fff;border-bottom:1px solid var(--grey-200,#e9ebed);padding:0 clamp(12px,2vw,24px);flex-wrap:wrap}
.dm-tabs .tab-btn{border:0;background:transparent;padding:11px 14px;font:inherit;font-size:13px;font-weight:600;color:var(--grey-600,#5c6970);border-bottom:2px solid transparent;cursor:pointer;text-decoration:none;display:inline-block}
.dm-tabs .tab-btn:hover{color:var(--kale-900,#101F30)}
.dm-tabs .tab-btn.on{color:var(--kale-900,#101F30);border-bottom-color:var(--kale-800,#172B41)}
.dm-tabs .tab-btn.tab-premium{color:var(--grey-500,#87929d)}
.dm-tabs .dm-tab-note{margin-left:auto;align-self:center;font-size:12px;color:var(--grey-600,#5c6970);padding:0 6px}
.dm-subtabs{display:flex;gap:14px;padding:10px clamp(12px,2vw,24px) 0;font-size:13px}
.dm-subtabs a{color:var(--grey-600,#5c6970);text-decoration:none;font-weight:600;padding-bottom:4px;border-bottom:2px solid transparent}
.dm-subtabs a.on{color:var(--kale-900,#101F30);border-bottom-color:var(--kale-800,#172B41)}
.dm-stub{max-width:720px;margin:24px auto;background:#fff;border:1px solid var(--grey-200,#e9ebed);border-radius:8px;padding:20px 22px}
.dm-stub h3{margin:0 0 6px;font-size:17px;font-weight:700;color:var(--grey-900,#101F30)}
.dm-stub p{margin:0 0 10px;font-size:13px;line-height:1.5;color:var(--grey-800,#2f3941)}
.dm-stub ul{margin:0 0 12px;padding-left:18px;font-size:13px;line-height:1.55}
.dm-stub .lv-muted{font-size:12px}
/* A Premium screen viewed on Free: greyed out under the Premium message. */
.dm-screen.dm-locked .dm-main{position:relative}
.dm-screen.dm-locked .dm-main>*:not(.dm-lock-cover){filter:blur(3px);opacity:.5;pointer-events:none;user-select:none}
.dm-lock-cover{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:center;padding-top:48px;background:linear-gradient(180deg,rgba(244,246,248,.25),rgba(244,246,248,.8));z-index:2}
/* Sample-state feedback: status lines, Launched card, Learn more card. */
.dm-status{margin:8px 0 0;font-size:12.5px;color:#047857;min-height:1.2em}
.dm-status.is-quiet{color:var(--grey-600,#5c6970)}
.tb-role-btn.is-away,.btn-secondary.is-on{background:#fff;color:#0f172a}
.dm-launched{display:flex;flex-direction:column;gap:12px}
.dm-launched h2{font-size:17px;font-weight:700;color:var(--grey-900,#101F30);margin:0}
.dm-launched ul{margin:0;padding-left:18px;font-size:13px;line-height:1.55}
.dm-history{display:none}
.learn-more-card{display:none;margin-top:8px;padding:10px 12px;background:#f8fafc;border:1px solid var(--grey-200,#e9ebed);border-radius:6px;font-size:12.5px;line-height:1.5;color:var(--grey-800,#2f3941)}
.learn-more-card.is-open{display:block}
/* Data-dependent setup controls: no live dataset in the demo. */
.dm-nodata{cursor:help;opacity:.75}
.dm-nodata-line{font-size:12px;color:var(--grey-600,#5c6970);margin:6px 0 0}
.weight-sum.warn{color:#b45309}
/* Skills rows: menu, evidence list, notes, paused. */
.dm-menu{position:absolute;z-index:50;background:#fff;border:1px solid var(--grey-300,#d8dcde);border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.12);min-width:220px;padding:4px;font-size:12.5px}
.dm-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:4px;font:inherit;color:var(--grey-800,#2f3941);cursor:pointer}
.dm-menu button:hover{background:#f1f5f9}
.dm-menu button.is-premium{color:var(--grey-500,#87929d)}
.dm-row-extra{grid-column:1 / -1;background:#f8fafc;border-top:1px solid var(--grey-200,#e9ebed);padding:10px 14px;font-size:12.5px}
.dm-row-extra table{width:100%;border-collapse:collapse}.dm-row-extra td,.dm-row-extra th{text-align:left;padding:4px 6px;border-bottom:1px solid var(--grey-200,#e9ebed)}.dm-row-extra th{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--grey-500,#87929d)}
.dm-row-extra textarea{width:100%;min-height:64px;border:1px solid var(--grey-300,#d8dcde);border-radius:4px;padding:6px 8px;font:inherit;font-size:12.5px;margin:6px 0}
.agent-row.is-paused{opacity:.55}
.agent-row.is-paused .sb-status-text:after{content:" \00B7 Paused today";color:var(--grey-600,#5c6970)}
/* Highlights (Rewind) modal, in the app's rw-* pattern. */
.rw-modal{position:fixed;inset:0;z-index:100;display:none;align-items:flex-start;justify-content:center;padding:48px 16px;background:rgba(15,23,32,.45);overflow:auto}
.rw-card{background:#fff;border-radius:10px;width:min(960px,100%);box-shadow:0 16px 48px rgba(0,0,0,.25);padding:18px 22px 20px;font-size:13px;color:var(--grey-800,#2f3941)}
.rw-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.rw-top h3{margin:0;font-size:16px;font-weight:700;color:var(--grey-900,#101F30)}
.rw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.rw-day{font-size:15px;font-weight:700;color:var(--grey-900,#101F30)}.rw-sub{font-size:12px;color:var(--grey-600,#5c6970)}
.rw-tabs{display:flex;gap:14px;border-bottom:1px solid var(--grey-200,#e9ebed);margin:10px 0 14px;flex-wrap:wrap}
.rw-tab{border:0;background:transparent;padding:8px 2px;font:inherit;font-size:13px;color:var(--grey-600,#5c6970);border-bottom:2px solid transparent;cursor:pointer}
.rw-tab.active{color:#245B90;border-bottom-color:#245B90;font-weight:600}
.rw-count{display:inline-block;min-width:16px;padding:0 5px;border-radius:999px;background:#eef2f6;color:var(--grey-700,#49545c);font-size:11px;font-weight:700;text-align:center;margin-left:2px}
.rw-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:12px}
.rw-stats>div{border:1px solid var(--grey-200,#e9ebed);border-radius:6px;padding:10px 12px}
.rw-stats span{display:block;font-size:11.5px;color:var(--grey-600,#5c6970)}.rw-stats strong{font-size:15px;color:var(--grey-900,#101F30)}
.rw-list{margin:0;padding-left:18px;line-height:1.55}.rw-highlights{background:#f8fafc;border:1px solid var(--grey-200,#e9ebed);border-radius:6px;padding:8px 8px 8px 26px}
.rw-section{font-weight:700;margin:14px 0 6px;color:var(--grey-900,#101F30)}.rw-empty{color:var(--grey-600,#5c6970);font-size:12.5px}
.rw-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.rw-key{font-size:12px;color:var(--grey-600,#5c6970)}
.rw-dot{display:inline-block;width:10px;height:10px;border-radius:2px;margin:0 3px 0 6px;vertical-align:-1px}.rw-dot.rw-new,.rw-bar.rw-new{background:#245B90}.rw-dot.rw-solved,.rw-bar.rw-solved{background:#059669}
.rw-hours{display:flex;gap:3px;align-items:flex-end;height:140px}.rw-hour{flex:1;display:flex;flex-direction:column;align-items:center;height:100%}
.rw-bars{flex:1;width:100%;display:flex;align-items:flex-end;gap:2px}.rw-bar{flex:1;border-radius:2px 2px 0 0;min-height:1px}.rw-hour-label{font-size:9.5px;color:var(--grey-500,#87929d);height:14px;white-space:nowrap}
.rw-table{width:100%;border-collapse:collapse;font-size:12.5px}.rw-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--grey-500,#87929d);border-bottom:1px solid var(--grey-200,#e9ebed);padding:6px 8px}.rw-table td{padding:7px 8px;border-bottom:1px solid var(--grey-100,#f8f9f9);vertical-align:top}
.rw-link{background:none;border:0;padding:0;font:inherit;color:#245B90;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.rw-notes{margin-top:12px;font-size:12px;color:var(--grey-600,#5c6970)}.rw-notes summary{cursor:pointer}.rw-notes div{margin-top:4px}
.rw-card-head{font-size:14px;margin-bottom:8px}
.rw-so{display:flex;gap:8px;align-items:flex-start;padding:6px 0;border-bottom:1px solid var(--grey-100,#f8f9f9)}.rw-tag{font-style:normal;font-size:11px;color:var(--grey-600,#5c6970);background:#f1f5f9;border-radius:999px;padding:1px 7px;margin-left:4px}
/* Skill groups and the IVR menu: the app's drawer markup, made to fit the demo frame. */
.dm-main .dm-pad{overflow-x:auto}
.dm-drawer,.dm-drawer .sd-group,.dm-drawer .sd-group-body{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.dm-drawer select.zd-input-sm{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.dm-drawer label[style*="display:flex"] select.zd-input-sm{flex:1 1 0;width:auto;min-width:0}
.dm-drawer table{width:100%;table-layout:fixed;word-break:break-word}
.dm-drawer .zd-table td,.dm-drawer .zd-table th,.dm-drawer .pull-times td,.dm-drawer .pull-times th{white-space:normal;vertical-align:top}
.dm-drawer td.mono-num[style*="nowrap"]{white-space:nowrap;width:1%}
.dm-drawer #phone-general-group,.dm-drawer #phone-greeting,.dm-drawer #phone-ring{width:auto;max-width:100%}
/* Dark frame around the Zendesk view. The view itself stays Zendesk-light. */
:root[data-theme=dark] body.dm{background:#0f1720;color:#e6edf3}
:root[data-theme=dark] .dm-cap{color:#e6edf3}
:root[data-theme=dark] .dm-plan-tag{color:#e6edf3;background:#1d3550;border-color:#2a4a6a}
:root[data-theme=dark] .dm-banner{background:#16304A;color:#E9ECEA;border-color:#2F5578}
:root[data-theme=dark] .dm-loading{color:#9fb0c2}
:root[data-theme=dark] .dm-preview-cover{background:linear-gradient(180deg,rgba(15,23,32,.2),rgba(15,23,32,.75))}
:root[data-theme=dark] .dm-preview-card{background:#17222e;color:#e6edf3;border-color:#2a3745}
@media (prefers-color-scheme:dark){
:root:not([data-theme=light]) body.dm{background:#0f1720;color:#e6edf3}
:root:not([data-theme=light]) .dm-cap{color:#e6edf3}
:root:not([data-theme=light]) .dm-plan-tag{color:#e6edf3;background:#1d3550;border-color:#2a4a6a}
:root:not([data-theme=light]) .dm-banner{background:#16304A;color:#E9ECEA;border-color:#2F5578}
:root:not([data-theme=light]) .dm-loading{color:#9fb0c2}
:root:not([data-theme=light]) .dm-preview-cover{background:linear-gradient(180deg,rgba(15,23,32,.2),rgba(15,23,32,.75))}
:root:not([data-theme=light]) .dm-preview-card{background:#17222e;color:#e6edf3;border-color:#2a3745}
}

/* The Forte app window is always light, like Zendesk. Keep its text dark when the page is in dark mode. */
body.dm .dm-app{color:#2F3941}
body.dm .stf-hour{color:#5c6970}
