/* R10.4 - only its own dialogs and the Daily Work page. Work Form stays white. */
#r104AssistantLayer{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;color:#163d55}#r104AssistantLayer:not([open]){display:none!important}#r104AssistantLayer[open]{display:block!important}#r104AssistantLayer::backdrop{background:#08223988;backdrop-filter:blur(5px)}#r104AssistantLayer #r10MobyHost{position:fixed!important;z-index:3!important;filter:none!important;visibility:visible!important;opacity:1!important;display:block!important}#r10MobyHost{width:78px!important;height:100px!important}#r10MobyHost[hidden]{display:none!important}#r10MobyLauncher{width:78px!important;height:100px!important;touch-action:none}#r10MobyLauncher svg{width:72px!important;height:83px!important;display:block;margin:auto}.r10-moby-label{font:650 10px "Segoe UI",Arial,sans-serif!important;background:#eaf7fc!important;color:#15536e!important;padding:3px 9px!important;border-radius:12px!important;box-shadow:0 2px 10px #062d5a24}#r104AssistantLayer #r10MobyPanel{position:fixed!important;inset:auto!important;margin:0!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;border:1px solid #c5dbe7!important;border-radius:20px!important;background:#f5fafc!important;color:#153e58!important;box-shadow:0 20px 70px #001a3e40!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:visible!important;z-index:2!important;resize:none!important;font-family:"Segoe UI",Arial,sans-serif!important}#r104AssistantLayer #r10MobyPanel[hidden]{display:none!important}.r104-chat-card::after{content:"";position:absolute;left:calc(var(--tail-x,50%) - 8px);bottom:-8px;width:15px;height:15px;background:#f5fafc;border-bottom:1px solid #c5dbe7;border-right:1px solid #c5dbe7;transform:rotate(45deg)}.r104-chat-card[data-anchor=below]::after{bottom:auto;top:-8px;transform:rotate(225deg);background:#145a78;border-color:#145a78}.r104-chat-head{border-radius:19px 19px 0 0;background:linear-gradient(110deg,#184879,#116b7e);color:#fff!important;display:flex;justify-content:space-between;align-items:center;padding:16px 18px;gap:10px;flex:none}.r104-chat-head strong{font-size:16px;color:#fff!important;display:block}.r104-chat-head small{display:block;font-size:10px;color:#d5f0f5!important;margin-top:5px;line-height:1.4}.r104-head-actions{display:flex;gap:6px}.r104-head-actions button{width:34px;height:34px;min-height:34px;padding:0;border:1px solid #a8e0e65c;border-radius:10px;background:#ffffff19;color:white;font-size:17px;box-shadow:none;cursor:pointer}.r104-chat-feed{flex:1;min-height:0;overflow:auto;padding:16px 15px;scrollbar-width:thin;overscroll-behavior:contain}.r104-message{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:16px;max-width:100%}.r104-message.user{align-items:flex-end}.r104-message-label{font-size:10px;color:#537180;margin-bottom:5px;padding:0 3px}.r104-bubble{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:15px 15px 15px 4px;padding:12px 14px;background:#e1f2f3;color:#164c58;max-width:95%;box-shadow:0 2px 5px #15475406}.user .r104-bubble{background:linear-gradient(110deg,#2456a8,#1873a5);color:#fff;border-radius:15px 15px 4px 15px;max-width:91%}.r104-sources{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px;max-width:95%}.r104-sources span{font-size:9px;color:#235d76;background:#f1f8fb;border:1px solid #c4dce7;padding:3px 6px;border-radius:6px}.r104-chat-meta{font-size:9px!important;line-height:1.5!important;color:#506b7b!important;margin-top:6px;max-width:96%;overflow-wrap:anywhere}.r104-chat-compose{display:flex;align-items:stretch;gap:9px;padding:11px 12px 6px;border-top:1px solid #d3e5eb;background:#fff;flex:none;margin:0}.r104-chat-compose textarea{resize:none!important;min-height:58px!important;max-height:100px!important;border:1px solid #bfd5e0!important;border-radius:11px!important;background:#f9fcff!important;color:#193d53!important;padding:10px!important;font:13px/1.5 "Segoe UI",Arial,sans-serif!important;box-shadow:none!important;outline:none!important;flex:1!important;width:100%!important}.r104-chat-compose textarea:focus{border-color:#258faa!important;box-shadow:0 0 0 2px #36a3af20!important}.r104-chat-compose button{width:44px;min-width:44px;max-height:58px;padding:0;background:#216bae!important;color:#fff!important;border:0!important;border-radius:12px!important;font-size:25px!important;cursor:pointer}.r104-chat-compose button:disabled{opacity:.5;cursor:wait}.r104-chat-footer{border-radius:0 0 19px 19px;background:#fff;padding:6px 12px 10px;font-size:9px;text-align:center;color:#597385;flex:none}.r104-thinking{display:flex;align-items:center;gap:5px;color:#37637b;font-size:11px;margin:12px 0}.r104-thinking i{width:6px;height:6px;background:#2795a2;border-radius:50%;animation:r104-dot 1.2s ease-in-out infinite}.r104-thinking i:nth-child(2){animation-delay:.15s}.r104-thinking i:nth-child(3){animation-delay:.3s}.r104-thinking span{margin-left:5px}.r104-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes r104-dot{50%{transform:translateY(-5px);opacity:.45}}
/* Native confirmation forms, explicitly separated from work entry forms. */
.r104-dialog{width:min(590px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:21px;background:#fff;color:#173e56;box-shadow:0 22px 90px #0b294d55;font-family:"Segoe UI",Arial,sans-serif;overflow:auto}.r104-dialog::backdrop{background:#0c253579;backdrop-filter:blur(5px)}.r104-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 23px;background:#f0f7fa;position:sticky;top:0;z-index:2}.r104-dialog header small{font-size:9px;color:#466d82;letter-spacing:1px}.r104-dialog h2{font-size:20px;margin:6px 0 0;color:#163e59}.r104-dialog header button{width:32px;height:32px;border:1px solid #cbdee8;border-radius:9px;background:white;color:#285474;font-size:15px;cursor:pointer}.r104-dialog-body{padding:20px 23px 25px}.r104-dialog label{display:block;font-size:12px;font-weight:650;margin:15px 0 7px}.r104-dialog input:not([type=checkbox]),.r104-dialog textarea,.r104-dialog select{display:block;width:100%;box-sizing:border-box;margin-top:8px;border:1px solid #c4d8e3;border-radius:10px;background:#fbfdff;color:#23475e;padding:11px 12px;font:13px/1.5 "Segoe UI",Arial,sans-serif;outline:0}.r104-dialog input:focus,.r104-dialog textarea:focus,.r104-dialog select:focus{border-color:#36869e;box-shadow:0 0 0 3px #4b9bac1c}.r104-dialog [data-status]{font-size:12px;line-height:1.5;color:#6d4050}.r104-check{display:flex!important;gap:9px;align-items:flex-start;line-height:1.55;font-weight:400!important}.r104-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:21px}.r104-actions button,.r104-registration button{padding:10px 14px;border:1px solid #bcd3df;border-radius:10px;background:#f8fbfd;color:#284d64;font:600 12px "Segoe UI",Arial,sans-serif;cursor:pointer}.r104-actions .primary,.r104-registration .primary{background:#1d728d;border-color:#1d728d;color:#fff}.r104-actions .danger{background:#b33b50;border-color:#b33b50;color:#fff}.r104-actions button:disabled{opacity:.45;cursor:default}.r104-danger-note{padding:13px 15px;background:#fff1f1;border-radius:12px;border-left:3px solid #c74d5e;color:#893746;font-size:12px;line-height:1.6}.r104-danger-note p{margin:6px 0 0}.r104-delete-preview{background:#f0f7fa;border-radius:12px;padding:13px 15px;font-size:13px;margin:12px 0;color:#285269}.r104-delete-preview p{margin:6px 0;font-size:12px}.r104-delete-preview small{font-size:11px;color:#546c7f}.r104-danger-zone{margin:25px 0 8px;padding:18px;border:1px solid #dfbcc4;border-radius:14px;background:#fff6f7;color:#7c3344;display:flex;align-items:center;justify-content:space-between;gap:15px}.r104-danger-zone h3{margin:7px 0;font-size:15px;color:#812a3e}.r104-danger-zone p{font-size:11px;line-height:1.6;margin:0;color:#7c5260}.r104-danger-label{font-size:9px;letter-spacing:1px;font-weight:750}.r104-danger-zone button{background:#aa374d;color:#fff;border:0;border-radius:9px;padding:11px 13px;font-size:11px;white-space:nowrap;cursor:pointer}.r104-registration-inbox{margin-bottom:15px!important}.r104-inbox-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.r104-kicker{font-size:9px;letter-spacing:1px;font-weight:700;color:#337b90}.r104-inbox-head h2{font-size:19px;margin:7px 0;color:inherit}.r104-inbox-head h2 small{font-size:10px;border-radius:12px;background:#e2f1f4;color:#286072;padding:4px 8px;margin-left:7px;white-space:nowrap}.r104-inbox-head p,.r104-inbox-status,.r104-empty{font-size:12px;line-height:1.65}.r104-inbox-status{opacity:.85}.r104-registration{display:flex;align-items:center;gap:12px;border-bottom:1px solid #b9d3e34d;padding:14px 0}.r104-person-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#daeff1;color:#267184;font-weight:700}.r104-person-info{flex:1;min-width:0}.r104-person-info strong,.r104-person-info span,.r104-person-info small{display:block;line-height:1.5}.r104-person-info strong{font-size:13px}.r104-person-info span{font-size:12px;overflow-wrap:anywhere}.r104-person-info small{font-size:10px;opacity:.8}.r104-person-actions{display:flex;gap:6px;flex-wrap:wrap}.r104-admin-bell.has-pending{background:#eaf6ee!important;border-color:#94cdb0!important;color:#255d45!important}
/* Daily Work scope: high contrast, compact cards, readable grid, real horizontal scroll. */
html[data-emd-page="dashboard"] #content{--r104-ink:#153c54;--r104-muted:#506a7d;--r104-panel:#fff;--r104-row:#f6fafc;--r104-line:#d8e5ed;color:var(--r104-ink)}
html[data-emd-page="dashboard"] body[data-theme="dark"] #content,html[data-emd-page="dashboard"] body[data-theme="hybrid"] #content{--r104-ink:#e3f2fb;--r104-muted:#b8ccd9;--r104-panel:#102d40;--r104-row:#15364a;--r104-line:#35566b}
html[data-emd-page="dashboard"] #content .daily-hero{background:linear-gradient(110deg,#e6f1f9,#d9edf3)!important;border:1px solid #bcd7e4!important;border-radius:18px!important;min-height:126px!important;padding:20px 24px!important;box-shadow:none!important;gap:22px!important}
html[data-emd-page="dashboard"] #content .daily-hero h1{color:#123951!important;font-size:27px!important;line-height:1.2!important;letter-spacing:-.7px!important;margin:4px 0 8px!important}
html[data-emd-page="dashboard"] #content .daily-hero p{color:#3a6278!important;opacity:1!important;font-size:12px!important}
html[data-emd-page="dashboard"] #content .daily-hero .emd-daily-eyebrow{color:#31637d!important;opacity:1!important;font-size:10px!important;font-weight:700!important;letter-spacing:1.1px!important}
html[data-emd-page="dashboard"] #content .daily-hero .daily-actions small{color:#385e73!important;font-size:10px!important}
html[data-emd-page="dashboard"] #content .daily-hero .emd-work-art{z-index:0!important;opacity:.52!important;right:18px!important;width:225px!important;pointer-events:none}
html[data-emd-page="dashboard"] #content .daily-hero>div{position:relative;z-index:1}html[data-emd-page="dashboard"] #content .daily-hero .daily-actions{margin-left:auto;margin-right:190px}
html[data-emd-page="dashboard"] #content .daily-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important}
html[data-emd-page="dashboard"] #content .daily-kpis .parity-kpi{background:var(--r104-panel)!important;border-color:var(--r104-line)!important;box-shadow:0 3px 10px #173e5506!important;min-height:92px!important;padding:12px!important;gap:6px!important;border-radius:13px!important;animation:r104-card-in .28s ease both}
html[data-emd-page="dashboard"] #content .daily-kpis .parity-kpi::before{background:linear-gradient(90deg,#217caa,#32a296)!important;opacity:1!important;height:3px!important}
html[data-emd-page="dashboard"] #content .daily-kpis .label{color:var(--r104-muted)!important;font-size:10px!important;line-height:1.35!important;letter-spacing:.2px!important;font-weight:750!important;opacity:1!important}
html[data-emd-page="dashboard"] #content .daily-kpis .num{color:var(--r104-ink)!important;font-size:26px!important;line-height:1.1!important;opacity:1!important;font-weight:750!important}
html[data-emd-page="dashboard"] #content .daily-kpis .sub{color:var(--r104-muted)!important;opacity:1!important;font-size:10px!important;line-height:1.4!important}
html[data-emd-page="dashboard"] #content .card{background:var(--r104-panel)!important;border:1px solid var(--r104-line)!important;box-shadow:none!important;color:var(--r104-ink)!important;border-radius:14px!important;min-width:0}
html[data-emd-page="dashboard"] #content h3{color:var(--r104-ink)!important;font-size:15px!important}
html[data-emd-page="dashboard"] #content .muted,html[data-emd-page="dashboard"] #content .mini-stat small,html[data-emd-page="dashboard"] #content .chart-head small{color:var(--r104-muted)!important;opacity:1!important}
html[data-emd-page="dashboard"] #content .mini-stat{background:var(--r104-row)!important;border-color:var(--r104-line)!important;border-radius:10px!important;padding:10px!important}
html[data-emd-page="dashboard"] #content .mini-stat b{color:var(--r104-ink)!important;font-size:21px!important}
html[data-emd-page="dashboard"] #content .daily-insights{gap:12px!important;margin:12px 0!important}html[data-emd-page="dashboard"] #content .daily-insights>.card{padding:14px!important;min-height:0!important}
html[data-emd-page="dashboard"] #content .work-toolbar{margin-top:12px!important;padding:11px!important;background:var(--r104-panel)!important;border-color:var(--r104-line)!important;border-radius:13px!important;gap:9px!important}
html[data-emd-page="dashboard"] #content .work-toolbar input,html[data-emd-page="dashboard"] #content .work-toolbar select{color:var(--r104-ink)!important;background:var(--r104-row)!important;border-color:var(--r104-line)!important;font-family:"Segoe UI",Arial,sans-serif!important;font-size:12px!important;min-height:37px!important}
html[data-emd-page="dashboard"] #content .work-toolbar input::placeholder{color:var(--r104-muted)!important;opacity:1!important}
html[data-emd-page="dashboard"] #content .r104-work-scroll{width:100%!important;max-width:100%!important;overflow:auto!important;max-height:590px!important;border:1px solid var(--r104-line)!important;border-radius:11px!important;scrollbar-width:thin;overscroll-behavior:contain}
html[data-emd-page="dashboard"] #content .work-table{table-layout:fixed!important;width:2070px!important;min-width:2070px!important;max-width:none!important;border-collapse:separate!important;border-spacing:0!important;font:12px/1.5 "Segoe UI",Arial,sans-serif!important;color:var(--r104-ink)!important}
html[data-emd-page="dashboard"] #content .work-table th{font:700 10px/1.4 "Segoe UI",Arial,sans-serif!important;color:var(--r104-muted)!important;background:var(--r104-row)!important;padding:12px 13px!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;border-bottom:1px solid var(--r104-line)!important;text-transform:uppercase;position:sticky!important;top:0!important;z-index:2!important}
html[data-emd-page="dashboard"] #content .work-table td{font:12px/1.55 "Segoe UI",Arial,sans-serif!important;color:var(--r104-ink)!important;padding:12px 13px!important;vertical-align:top!important;max-width:none!important;word-break:normal!important;overflow-wrap:break-word!important;background:var(--r104-panel)!important;border-bottom:1px solid var(--r104-line)!important}
html[data-emd-page="dashboard"] #content .work-table tr:nth-child(even) td{background:var(--r104-row)!important}
html[data-emd-page="dashboard"] #content .work-table td:nth-child(1),html[data-emd-page="dashboard"] #content .work-table td:nth-child(2),html[data-emd-page="dashboard"] #content .work-table td:nth-child(5),html[data-emd-page="dashboard"] #content .work-table td:nth-child(8){white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
html[data-emd-page="dashboard"] #content .work-table td:first-child,html[data-emd-page="dashboard"] #content .work-table th:first-child{position:sticky!important;left:0!important;z-index:1!important;box-shadow:3px 0 6px #153a4b08}
html[data-emd-page="dashboard"] #content .work-table th:first-child{z-index:4!important}
html[data-emd-page="dashboard"] #content .work-table .record-link{font:700 12px/1.55 "Segoe UI",Arial,sans-serif!important;color:#126a96!important;white-space:nowrap!important;word-break:normal!important;text-decoration:none!important;padding:0!important;min-width:0!important;background:none!important;border:0!important}
html[data-emd-page="dashboard"] body[data-theme="dark"] #content .work-table .record-link,html[data-emd-page="dashboard"] body[data-theme="hybrid"] #content .work-table .record-link{color:#82d6f3!important}
html[data-emd-page="dashboard"] #content .work-table .chip{display:inline-flex!important;align-items:center;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;max-width:none!important;width:auto!important;min-width:0!important;border-radius:7px!important;padding:5px 9px!important;font-size:10px!important;line-height:1.35!important}
html[data-emd-page="dashboard"] #content .work-table .work-desc{white-space:normal!important;line-height:1.55!important}
html[data-emd-page="dashboard"] #content .work-table .work-desc>span{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
@keyframes r104-card-in{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:1100px){html[data-emd-page="dashboard"] #content .daily-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}html[data-emd-page="dashboard"] #content .daily-hero .daily-actions{margin-right:100px}html[data-emd-page="dashboard"] #content .daily-hero .emd-work-art{width:145px!important}}
@media(max-width:700px){html[data-emd-page="dashboard"] #content .daily-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}html[data-emd-page="dashboard"] #content .daily-hero{padding:17px!important;flex-wrap:wrap}html[data-emd-page="dashboard"] #content .daily-hero h1{font-size:23px!important}html[data-emd-page="dashboard"] #content .daily-hero .daily-actions{margin:0!important}html[data-emd-page="dashboard"] #content .daily-hero .emd-work-art{opacity:.23!important}html[data-emd-page="dashboard"] #content .work-table td:first-child,html[data-emd-page="dashboard"] #content .work-table th:first-child{position:static!important}.r104-danger-zone,.r104-inbox-head{align-items:flex-start;flex-direction:column}.r104-registration{flex-wrap:wrap}.r104-person-actions{width:100%;justify-content:flex-end}.r104-dialog-body{padding:17px}.r104-dialog>header{padding:17px}.r104-chat-head{padding:12px 14px}.r104-chat-head strong{font-size:15px}.r104-chat-head small{font-size:9px}.r104-bubble{font-size:12px;line-height:1.65;padding:11px 12px}.r104-chat-feed{padding:12px}.r104-chat-footer{font-size:8px}.r104-admin-bell{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){#r104AssistantLayer *,#r10MobyHost *,html[data-emd-page="dashboard"] #content *,html[data-emd-page="dashboard"] #content *::before{animation:none!important;transition:none!important}}
/* Compact summaries: keep the work register nearer the top, without hiding data. */
html[data-emd-page="dashboard"] #content .daily-insights>.card{min-height:0!important;padding:14px!important}
html[data-emd-page="dashboard"] #content .daily-insights .mini-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px}
html[data-emd-page="dashboard"] #content .mini-stat{padding:10px!important;min-height:66px!important}
html[data-emd-page="dashboard"] #content .mini-stat small{font-size:10px!important;line-height:1.4;color:var(--r104-muted)!important}
html[data-emd-page="dashboard"] #content .r4-chart-grid>.card{min-height:0!important;padding:14px!important}
html[data-emd-page="dashboard"] #content .r4-donut-wrap{grid-template-columns:130px minmax(0,1fr)!important;min-height:138px!important;gap:16px!important}
html[data-emd-page="dashboard"] #content .r4-donut{width:128px!important;height:128px!important}
html[data-emd-page="dashboard"] #content .r4-donut:after{inset:20px!important}
html[data-emd-page="dashboard"] #content .r4-legend span{color:var(--r104-muted)!important}
html[data-emd-page="dashboard"] #content .r4-progress-stats{align-items:start;gap:9px}
@media(max-width:720px){html[data-emd-page="dashboard"] #content .daily-insights .mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.r105-ai-state{display:block;font-size:10px;color:#355d6c;background:#e7f3f4;padding:5px 8px;border-radius:7px;margin-top:7px}
