/* R10.3: scoped presentation fixes. No global theme preference is written. */
[hidden]{display:none!important}
html[data-r103-workform="true"]{color-scheme:light!important;--bg:#f0f5fc;--text:#18334e;--muted:#526b85;--card:#fff}
html[data-r103-workform="true"] body{background:#f0f5fc!important;color:#18334e!important}
html[data-r103-workform="true"] .company-header{width:100%;padding:0!important;overflow:hidden;background:#fff}
html[data-r103-workform="true"] .company-header img{display:block;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;object-fit:contain;margin:0}
#r96Notifications{display:none!important}
/* Dark KPI contrast fix belongs to Daily Work only, not other main pages. */
html[data-emd-page="dashboard"] body:not([data-theme="light"]) #content .daily-kpis .parity-kpi .label{color:#c2d9e9!important}
html[data-emd-page="dashboard"] body:not([data-theme="light"]) #content .daily-kpis .parity-kpi .num{color:#f2f9ff!important}
html[data-emd-page="dashboard"] body:not([data-theme="light"]) #content .daily-kpis .parity-kpi .sub{color:#bbcedd!important}
html[data-emd-page="dashboard"] body[data-theme="light"] #content .daily-kpis .parity-kpi .label{color:#405e77!important}
html[data-emd-page="dashboard"] body[data-theme="light"] #content .daily-kpis .parity-kpi .num{color:#123457!important}
dialog::backdrop{background:rgba(15,33,57,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
dialog[open]{animation:r103-enter .18s ease-out}
@keyframes r103-enter{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
#r968ProfilePanel{position:fixed!important;inset:auto 20px auto auto;margin:0 0 0 auto!important;width:min(452px,calc(100vw - 24px))!important;max-height:calc(100dvh - 96px)!important;overflow:auto!important;padding:0 22px 18px!important;border:0!important;border-radius:22px!important;color:#18334e!important;background:#fff!important;box-shadow:0 25px 80px #0b294b45!important;z-index:1000}
#r968ProfilePanel .r968-profile-head{position:sticky;top:0;display:flex;align-items:center;gap:10px;background:linear-gradient(115deg,#eaf5ff,#fff);margin:0 -22px 12px;padding:18px 16px;z-index:2;border:0!important;border-radius:0}
#r968ProfilePanel .r969-profile-identity{flex:1;min-width:0}
#r968ProfilePanel .r969-profile-identity strong{display:block;font-size:16px;color:#163b61;overflow-wrap:anywhere}
#r968ProfilePanel .r969-profile-identity small{color:#59738b}
#r968ProfilePanel #r968SignOut{white-space:nowrap;font-size:11px;color:#8b3349;background:#fff0f2;border:0!important;border-radius:9px;padding:8px 9px}
#r968ProfilePanel #r968ProfileClose{border:0;background:#e6eef8;color:#204a72;border-radius:50%;min-width:30px;min-height:30px;padding:4px}
#r968ProfilePanel .r968-profile-avatar{flex-shrink:0;width:48px;height:48px;border:0!important;box-shadow:none}
#r968ProfilePanel h3{font-size:13px;letter-spacing:.02em;margin:17px 0 10px;color:#305576}
#r968ProfilePanel .r968-profile-fields{display:grid;gap:10px}
#r968ProfilePanel .r968-profile-fields label{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:8px;color:#526b85;font-size:12px}
#r968ProfilePanel input[readonly]{background:#f5f8fc!important;border:0!important;box-shadow:none!important;color:#18334e!important;padding:9px 11px;min-width:0}
#r968ProfilePanel input:not([readonly]){background:#fff;border:1px solid #5a91d4;min-width:0}
#r968ProfilePanel .r968-profile-edit-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
#r968ProfilePanel .r968-profile-edit-controls button,#r969AdminQuick,#r968AllUsersButton{border:0!important;background:#eaf3ff;color:#17599b;border-radius:10px;padding:9px 12px;font-size:12px}
#r968ProfilePanel #r969AdminQuick{width:100%;text-align:left;font-weight:700;margin-bottom:8px;background:#e5f5f3;color:#12615d}
#r968ProfilePanel .r968-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#r968ProfilePanel .r968-stat{border:0!important;border-radius:15px;background:linear-gradient(135deg,#eef5fd,#f8fbff);padding:14px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:78px;box-shadow:none;animation:r103-enter .24s ease-out}
#r968ProfilePanel .r968-stat small{font-size:11px;line-height:1.4;color:#486680}
#r968ProfilePanel .r968-stat strong{font-size:26px;font-weight:750;line-height:1.2;color:#155db5}
#r968ProfilePanel .r968-stat:nth-child(2n){background:linear-gradient(135deg,#edf8f6,#f8fcfc)}
#r968ProfilePanel .r968-profile-note{border:0!important;background:transparent;color:#64778b;padding:6px 0;font-size:11px;line-height:1.5}
#r968AdminStatsDialog{border:0;border-radius:20px;padding:22px;max-width:min(960px,calc(100vw - 24px));background:white;color:#18334e}
#r968AdminStatsDialog .r968-admin-table{overflow:auto}
#r968AdminStatsDialog th,#r968AdminStatsDialog td{padding:12px;border:0;border-bottom:1px solid #eef3f9;white-space:nowrap}
#r968AdminStatsDialog th{background:#edf5fd;color:#355674;font-size:11px}
#r968AdminStatsDialog td small{display:block;color:#627c92}
#r968AdminStatsDialog tbody tr:hover{background:#f2f8ff}
#r103PtwDialog{width:min(1000px,calc(100vw - 24px));max-height:92dvh;overflow:auto;border:0;border-radius:18px;padding:18px;background:#f7faff;color:#18334e}
#r103PtwDialog>.r103-dialog-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-18px;background:#f7faff;padding:12px 0;z-index:2}
#r103PtwDialog .panel-shell{background:#fff}
#r96PdfModal{inset:0;margin:auto;width:min(1100px,calc(100vw - 24px));height:92dvh;max-height:92dvh;border:0;border-radius:16px;padding:0;background:#fff}
#r96PdfModal:not([open]){display:none}
#r96PdfModal .r96-pdf-dialog{width:100%;height:100%;max-height:none;margin:0;border-radius:0;display:flex;flex-direction:column}
#r96PdfFrame{width:100%;flex:1;border:0;min-height:400px}
#r966AlertsDialog{width:min(430px,calc(100vw - 24px));border:0;border-radius:18px;padding:0;background:white;color:#163b61}
#r966AlertsDialog .r966-alert-list{max-height:40dvh;overflow:auto;min-height:0}
.r103-feedback{width:min(390px,calc(100vw - 30px));border:0;border-radius:22px;background:white;color:#18334e;text-align:center;padding:30px;box-shadow:0 24px 80px #18334e33}
.r103-success-icon{display:grid;place-items:center;margin:0 auto 15px;width:62px;height:62px;border-radius:50%;background:#e0f6ee;color:#178459;font-size:34px;animation:r103-enter .3s ease-out}
.r103-feedback p{line-height:1.6;color:#4b667e}.r103-feedback button{padding:10px 25px;border:0;border-radius:10px;background:#1e63b4;color:white}
#r10MobyPanel{position:fixed;inset:76px 18px auto auto!important;margin:0 0 0 auto!important;width:min(440px,calc(100vw - 24px))!important;height:min(650px,calc(100dvh - 96px));max-height:calc(100dvh - 96px);border:0!important;border-radius:22px!important;background:#fff;color:#18334e;box-shadow:0 24px 90px #0a284750;overflow:hidden;padding:0}
#r10MobyPanel[open]{display:flex;flex-direction:column}
#r10MobyPanel:not([open]){display:none}
#r10MobyPanel .r10-moby-header{background:linear-gradient(120deg,#124a84,#166d88);border:0;padding:18px 16px;min-height:78px;color:white}
#r10MobyPanel .r10-moby-header strong{font-size:16px;color:white}
#r10MobyPanel .r10-moby-header small{font-size:11px;color:#d4eaf3}
#r10MobyPanel .r10-moby-feed{flex:1;min-height:0;overflow:auto;background:#f5f8fc;padding:16px;gap:14px}
#r10MobyPanel .r10-moby-bubble{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;border:0;padding:12px 14px;border-radius:15px;background:white;color:#244463;box-shadow:0 2px 8px #18334e07}
#r10MobyPanel .user .r10-moby-bubble{background:#1963aa;color:#fff}
#r10MobyPanel .r10-moby-compose{border:0;border-top:1px solid #e8eff7;padding:12px;background:white}
#r10MobyPanel textarea{color:#18334e;background:#f5f8fc;border:1px solid #c9d9ea;border-radius:14px;font-size:13px;line-height:1.5}
#r10MobyPanel .r10-moby-foot{background:white;color:#586f86;font-size:10px;border:0;padding:5px 12px 10px;text-align:center}
.r10-moby-wait{display:flex;align-items:center;gap:7px;padding:12px;font-size:12px;color:#385f7e}
.r10-moby-wait i{width:5px;height:5px;border-radius:50%;background:#227ca5;animation:r103-pulse 1s ease-in-out infinite}.r10-moby-wait i:nth-child(2){animation-delay:.15s}.r10-moby-wait i:nth-child(3){animation-delay:.3s}
@keyframes r103-pulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
@media(max-width:600px){#r968ProfilePanel,#r10MobyPanel{top:12px!important;right:12px!important;max-height:calc(100dvh - 24px)!important}#r10MobyPanel{height:calc(100dvh - 24px)}#r968ProfilePanel{padding:0 15px 15px!important}#r968ProfilePanel .r968-profile-head{margin:0 -15px 12px;padding:16px 12px;gap:8px}#r968ProfilePanel .r968-profile-avatar{width:38px;height:38px}#r968ProfilePanel .r969-profile-identity strong{font-size:13px}#r968ProfilePanel .r968-profile-fields label{grid-template-columns:88px 1fr}#r103PtwDialog{padding:12px}#r96PdfFrame{min-height:200px}}
@media(prefers-reduced-motion:reduce){dialog[open],.r968-stat,.r103-success-icon,.r10-moby-wait i{animation:none!important;transition:none!important}}
#r968ProfilePanel .r968-profile-fields label{margin:0!important;padding:0!important}
#r968ProfilePanel .r968-profile-fields input{height:34px!important;min-height:34px!important;margin:0!important;font-size:12px!important}
#r968ProfilePanel .r968-profile-fields{gap:8px}
#r968ProfilePanel .r968-stat{min-height:68px;padding:11px 12px}
#r968ProfilePanel .r968-stat strong{font-size:24px!important}
.r103-dash-heading{display:flex;align-items:center;justify-content:space-between}
.r103-circuit{position:relative;display:inline-flex;align-items:center;color:#189590;width:76px;height:18px;overflow:hidden;font-size:17px}
.r103-circuit:before{content:'';height:2px;width:58px;background:#d1e9ee;position:absolute;left:18px}
.r103-circuit:after{content:'';position:absolute;left:18px;width:12px;height:2px;background:#1ca7a0;animation:r103-circuit 2.8s linear infinite}
@keyframes r103-circuit{from{transform:translateX(0)}to{transform:translateX(58px)}}
@media(prefers-reduced-motion:reduce){.r103-circuit:after{animation:none}}
.r103-cutover{width:min(740px,calc(100vw - 28px));max-height:88dvh;overflow:auto;border:0;border-radius:18px;background:#fff;color:#173650;padding:22px;box-sizing:border-box}.r103-cutover::backdrop{background:rgba(12,28,48,.56);backdrop-filter:blur(7px)}.r103-cutover label{display:block;margin:16px 0;font-size:14px}.r103-cutover input[type=text],.r103-cutover input[type=file]{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:10px;border:1px solid #aec4d5;border-radius:8px}.r103-cutover pre{white-space:pre-wrap;max-height:190px;overflow:auto;font-size:12px;background:#f4f7fb;padding:12px}.r103-cutover button{padding:10px 14px;border-radius:9px;border:1px solid #b8ccd9;background:#f5f8fc;color:#153c63;cursor:pointer}.r103-cutover-actions{display:flex;gap:12px;flex-wrap:wrap}.r103-cutover [data-apply]{background:#a52d37;color:#fff;border:0}.r103-cutover button:disabled{opacity:.48;cursor:default}#r103CutoverTools{padding:18px}
