/* Coverage Desk — new phone app (2026-11-22). Everything is scoped to html.mx-on (set by m.js only on phones, when the
   new layout is drawn), so the desktop look is untouched. Flat design on purpose: no blur, no big shadows, no animated
   gradients — those are what made the old phone screens lag. Light / dark follow the phone (or the choice in More). */
html.mx-on{
  --m-bg:#0b0d12; --m-bg2:#11151c; --m-card:#151a23; --m-line:#232a36; --m-text:#eef1f6; --m-mute:#9aa4b6; --m-faint:#8590a3;
  --m-acc:#4f8cff; --m-acc-t:#0b1e3d; --m-on-acc:#061326; --m-ok:#2fbf71; --m-warn:#f5a524; --m-bad:#f0556a; --m-on-bad:#1c0509; --m-vio:#a48bff; --m-sky:#38bdf8;
  --m-chip:#1d2330; --m-r:14px; --m-safe-b:env(safe-area-inset-bottom, 0px); --m-safe-t:env(safe-area-inset-top, 0px);
  color-scheme:dark;
}
html.mx-on[data-theme="light"]{
  --m-bg:#f3f5f9; --m-bg2:#ffffff; --m-card:#ffffff; --m-line:#e2e6ee; --m-text:#111722; --m-mute:#4b5566; --m-faint:#586173;
  --m-acc:#1d4ed8; --m-acc-t:#e8efff; --m-on-acc:#ffffff; --m-ok:#15803d; --m-warn:#9a5b08; --m-bad:#c81e3a; --m-on-bad:#ffffff; --m-vio:#6d48d8; --m-sky:#0369a1;
  --m-chip:#eef1f6; color-scheme:light;
}
html.mx-on body{background:var(--m-bg)!important;color:var(--m-text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-tap-highlight-color:transparent;padding:0!important;margin:0} /* no overscroll-behavior here: on body it stops touch scrolling of the whole page in Chrome */
/* the old phone chrome never shows under the new app */
html.mx-on #bottomNav, html.mx-on #scrollToTopBtn, html.mx-on #liveFeedBell, html.mx-on #installBanner, html.mx-on #m63More,
html.mx-on .m63-bar, html.mx-on #navToday, html.mx-on #navSearch, html.mx-on #d30Orb, html.mx-on #d30Wrap{display:none!important}
html.mx-on.mx-native #dcdWrap, html.mx-on.mx-native #d2Pill{display:none!important}
html.mx-on.mx-native #app{display:none!important}
html.mx-on:not(.mx-native) #mRoot{display:none}
html.mx-on:not(.mx-native) #app{padding-bottom:calc(76px + var(--m-safe-b))!important}
#mRoot{display:none}
html.mx-on.mx-native #mRoot{display:block;min-height:100vh;padding-bottom:calc(84px + var(--m-safe-b))}
#mRoot *, #mTabs *, .mx-sheet *{box-sizing:border-box;text-transform:none;letter-spacing:normal}
:where(#mRoot, #mTabs, .mx-sheet) button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;touch-action:manipulation}
:where(#mRoot, .mx-sheet) :where(input, select, textarea){font:inherit;color:var(--m-text)}

/* ---------- top bar ---------- */
#mTopWrap{position:sticky;top:0;z-index:20}
.mx-top{background:var(--m-bg);padding:calc(8px + var(--m-safe-t)) 14px 8px;border-bottom:1px solid var(--m-line)}
.mx-row{display:flex;align-items:center;gap:8px}
.mx-date{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0}
.mx-date .mx-dl{flex:1;text-align:center;min-width:0;padding:6px 4px;border-radius:10px;position:relative}
.mx-date .mx-dl b{display:block;font-size:17px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mx-date .mx-dl small{display:block;font-size:12px;color:var(--m-mute);margin-top:1px}
.mx-date .mx-dl input{position:absolute;inset:0;opacity:0;width:100%;height:100%}
.mx-ib{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:20px;color:var(--m-text);flex:none}
.mx-ib:active{background:var(--m-chip)}
.mx-ib.on{background:var(--m-acc-t);color:var(--m-acc)}
.mx-search{display:none;margin-top:8px;position:relative}
.mx-search.on{display:block}
.mx-search input{width:100%;height:42px;border-radius:12px;border:1px solid var(--m-line);background:var(--m-bg2);padding:0 40px 0 14px;font-size:16px;outline:none}
.mx-search input:focus{border-color:var(--m-acc)}
.mx-search button{position:absolute;right:4px;top:4px;width:34px;height:34px;border-radius:10px;color:var(--m-mute)}
.mx-seg{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-top:8px;padding-bottom:2px}
.mx-seg::-webkit-scrollbar{display:none}
.mx-seg button{flex:none;height:34px;padding:0 12px;border-radius:999px;background:var(--m-chip);color:var(--m-mute);font-size:14px;font-weight:600;white-space:nowrap}
.mx-seg button.on{background:var(--m-text);color:var(--m-bg)}
.mx-seg button i{font-style:normal;opacity:.7;margin-left:4px;font-variant-numeric:tabular-nums}
.mx-seg button.warn:not(.on){color:var(--m-warn)}
.mx-fin{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.mx-fin .mx-btn{flex:1 1 auto;min-height:40px;font-size:13.5px}
.mx-fin .mx-btn.ghost{flex:0 0 auto}
.mx-fin i{font-style:normal;opacity:.75;margin-left:4px}
.mx-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px}
.mx-stat{background:var(--m-bg2);border:1px solid var(--m-line);border-radius:12px;padding:7px 4px;text-align:center}
.mx-stat b{display:block;font-size:18px;font-variant-numeric:tabular-nums;line-height:1.1}
.mx-stat small{font-size:11px;color:var(--m-mute)}
.mx-stat.on{border-color:var(--m-acc);background:var(--m-acc-t)}
.mx-stat.warn b{color:var(--m-warn)} .mx-stat.bad b{color:var(--m-bad)} .mx-stat.ok b{color:var(--m-ok)}

/* ---------- list ---------- */
.mx-list{padding:6px 12px 0}
.mx-h{position:sticky;top:var(--m-toph,150px);z-index:5;background:var(--m-bg);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--m-faint);padding:12px 4px 6px}
.mx-c{display:flex;gap:12px;background:var(--m-card);border:1px solid var(--m-line);border-radius:var(--m-r);padding:12px;margin-bottom:8px;position:relative;
}
/* no content-visibility on cards: their real height (chips wrap) differs from any estimate, and the page jumped while
   scrolling as cards came into view — a day's list is small enough to draw in full */
.mx-c:active{background:var(--m-bg2)}
.mx-c::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:transparent}
.mx-c.s-own::before{background:var(--m-warn)} .mx-c.s-clash::before{background:var(--m-bad)} .mx-c.s-st::before{background:var(--m-vio)}
.mx-c.s-soon{border-color:var(--m-acc)} .mx-c.s-done{opacity:.55}
.mx-t{width:62px;flex:none}
.mx-t b{display:block;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.mx-t small{display:block;font-size:12px;color:var(--m-mute);margin-top:2px}
.mx-t em{display:inline-block;margin-top:4px;font-style:normal;font-size:11px;font-weight:700;color:var(--m-acc)}
.mx-cb{flex:1;min-width:0}
.mx-n{font-size:16px;font-weight:650;line-height:1.25;display:flex;align-items:center;gap:6px;min-width:0}
.mx-n span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-co{font-size:14px;color:var(--m-mute);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-f{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.mx-k{display:inline-flex;align-items:center;gap:3px;height:24px;padding:0 8px;border-radius:7px;background:var(--m-chip);font-size:12px;font-weight:600;color:var(--m-mute);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.mx-k.acc{color:var(--m-acc);background:var(--m-acc-t)} .mx-k.warn{color:var(--m-warn)} .mx-k.bad{color:var(--m-bad)} .mx-k.vio{color:var(--m-vio)} .mx-k.ok{color:var(--m-ok)} .mx-k.sky{color:var(--m-sky)}
.mx-rd{flex:none;font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px;background:var(--m-chip);color:var(--m-mute)}
.mx-rd.adv{color:var(--m-vio)}
.mx-empty{text-align:center;color:var(--m-mute);padding:48px 24px;font-size:15px;line-height:1.5}
.mx-empty b{display:block;font-size:34px;margin-bottom:8px}
.mx-loading{height:3px;background:linear-gradient(90deg,transparent,var(--m-acc),transparent);background-size:50% 100%;background-repeat:no-repeat;animation:mx-load 1s linear infinite}
@keyframes mx-load{from{background-position:-50% 0}to{background-position:150% 0}}

/* save bar */
.mx-save{position:fixed;left:12px;right:12px;bottom:calc(72px + var(--m-safe-b));z-index:30;display:none;align-items:center;gap:10px;background:var(--m-text);color:var(--m-bg);border-radius:14px;padding:10px 10px 10px 14px;font-size:14px;font-weight:600}
.mx-save.on{display:flex}
.mx-save span{flex:1}
.mx-save button{background:var(--m-acc)!important;color:var(--m-on-acc)!important;border-radius:10px!important;height:36px;padding:0 16px!important;font-weight:700}
.mx-save.err{background:var(--m-bad);color:var(--m-on-bad)}

/* ---------- tab bar ---------- */
#mTabs{display:none}
html.mx-on #mTabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:var(--m-bg2);border-top:1px solid var(--m-line);padding:6px 6px calc(6px + var(--m-safe-b))}
#mTabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;height:52px;justify-content:center;border-radius:12px;color:var(--m-mute);font-size:11px;font-weight:600;position:relative;background:none;border:0;font-family:inherit}
#mTabs button b{font-size:21px;line-height:1;font-weight:400}
#mTabs button.on{color:var(--m-acc)}
#mTabs button.add b{width:46px;height:34px;border-radius:12px;background:var(--m-acc);color:var(--m-on-acc);display:grid;place-items:center;font-size:24px}
#mTabs button i{position:absolute;top:4px;left:calc(50% + 6px);min-width:17px;height:17px;border-radius:9px;background:var(--m-bad);color:var(--m-on-bad);font-style:normal;font-size:10px;font-weight:700;display:grid;place-items:center;padding:0 4px}

/* ---------- pages (alerts / reports / more) ---------- */
.mx-page{padding:calc(12px + var(--m-safe-t)) 14px 0}
.mx-title{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.mx-title h1{flex:1;font-size:26px;font-weight:750;letter-spacing:-.02em;margin:0}
.mx-btn{height:36px;padding:0 14px;border-radius:10px;background:var(--m-chip)!important;font-size:14px;font-weight:600}
.mx-btn.pri{background:var(--m-acc)!important;color:var(--m-on-acc)!important}
.mx-btn.bad{color:var(--m-bad)!important}
.mx-grp{margin-bottom:16px}
.mx-grp > h2{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--m-faint);margin:0 4px 6px}
.mx-box{background:var(--m-card);border:1px solid var(--m-line);border-radius:var(--m-r);overflow:hidden}
.mx-it{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;min-height:56px;border-top:1px solid var(--m-line)}
.mx-it:first-child{border-top:0}
.mx-it:active{background:var(--m-bg2)}
.mx-it .ic{width:34px;height:34px;border-radius:10px;background:var(--m-chip);display:grid;place-items:center;font-size:18px;flex:none}
.mx-it .tx{flex:1;min-width:0}
.mx-it .tx b{display:block;font-size:15px;font-weight:600}
.mx-it .tx small{display:block;font-size:12.5px;color:var(--m-mute);margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-it .ch{color:var(--m-faint);font-size:18px}
.mx-it .val{color:var(--m-mute);font-size:14px}
details.mx-grp > summary{list-style:none;cursor:pointer;display:flex;align-items:center;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--m-faint);margin:0 4px 6px}
details.mx-grp > summary::-webkit-details-marker{display:none}
details.mx-grp > summary::after{content:"▸";margin-left:auto;font-size:13px}
details.mx-grp[open] > summary::after{content:"▾"}
.mx-psearch{width:100%;height:42px;border-radius:12px;border:1px solid var(--m-line);background:var(--m-bg2);padding:0 14px;font-size:16px;outline:none;margin-bottom:14px}
.mx-al{display:flex;gap:10px;padding:12px 14px;border-top:1px solid var(--m-line)}
.mx-al:first-child{border-top:0}
.mx-al .dot{width:8px;height:8px;border-radius:4px;background:transparent;margin-top:7px;flex:none}
.mx-al.unread .dot{background:var(--m-acc)}
.mx-al .tx{flex:1;min-width:0}
.mx-al .tx b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.mx-al .tx p{margin:3px 0 0;font-size:13.5px;color:var(--m-mute);line-height:1.4;word-break:break-word}
.mx-al .tx small{display:block;font-size:12px;color:var(--m-faint);margin-top:4px}
.mx-al .acts{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.mx-al .acts button{height:30px;padding:0 10px;border-radius:8px;background:var(--m-chip);font-size:13px;font-weight:600}
.mx-al .acts button.pri{background:var(--m-acc-t);color:var(--m-acc)}

/* ---------- sheets ---------- */
.mx-sheet{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;justify-content:flex-end;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--m-text)}
.mx-sheet .bd{position:absolute;inset:0;background:rgba(0,0,0,.5);animation:mx-fade .15s ease-out}
.mx-sheet .pn{position:relative;overflow:hidden;background:var(--m-bg2);border-radius:20px 20px 0 0;max-height:92vh;display:flex;flex-direction:column;animation:mx-up .2s cubic-bezier(.2,.8,.2,1);will-change:transform}
.mx-sheet.full .pn{height:92vh}
.mx-sheet .gr{width:40px;height:5px;border-radius:3px;background:var(--m-line);margin:8px auto 0;flex:none}
.mx-sheet .hd{display:flex;align-items:flex-start;gap:8px;padding:10px 16px 10px;border-bottom:1px solid var(--m-line);flex:none}
.mx-sheet .hd .tt{flex:1;min-width:0}
.mx-sheet .hd .tt b{display:block;font-size:19px;font-weight:700;line-height:1.25}
.mx-sheet .hd .tt small{display:block;font-size:13.5px;color:var(--m-mute);margin-top:2px}
.mx-sheet .bdy{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:12px 16px calc(20px + var(--m-safe-b))}
.mx-sheet .x{width:36px;height:36px;border-radius:18px;background:var(--m-chip)!important;font-size:16px;flex:none;color:var(--m-mute)!important}
@keyframes mx-up{from{transform:translateY(40%);opacity:.4}to{transform:none;opacity:1}}
@keyframes mx-fade{from{opacity:0}to{opacity:1}}
.mx-sec{margin-bottom:16px}
.mx-sec > h3{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--m-faint);margin:0 0 8px}
.mx-acts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.mx-acts button{min-height:48px;border-radius:12px;background:var(--m-card)!important;border:1px solid var(--m-line)!important;padding:8px 10px!important;font-size:14px;font-weight:600;text-align:left;display:flex;align-items:center;gap:8px}
.mx-acts button small{display:block;font-size:12px;color:var(--m-mute);font-weight:500}
.mx-acts button.on{border-color:var(--m-acc)!important;background:var(--m-acc-t)!important;color:var(--m-acc)}
.mx-acts button.wide{grid-column:1/-1}
.mx-kv{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;font-size:14px;background:var(--m-card);border:1px solid var(--m-line);border-radius:12px;padding:12px}
.mx-kv dt{color:var(--m-mute)} .mx-kv dd{margin:0;word-break:break-word}
.mx-docs{display:flex;flex-wrap:wrap;gap:8px}
.mx-docs a{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:10px;background:var(--m-acc-t);color:var(--m-acc);font-weight:600;font-size:14px;text-decoration:none}
.mx-docs span{display:inline-flex;align-items:center;height:38px;padding:0 12px;border-radius:10px;background:var(--m-chip);color:var(--m-warn);font-size:13.5px;font-weight:600}
.mx-fb{background:var(--m-card);border:1px solid var(--m-line);border-radius:12px;padding:12px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.mx-doubt{background:var(--m-card);border:1px solid var(--m-warn);border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:6px}
.mx-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mx-form label{display:block;font-size:12px;font-weight:600;color:var(--m-mute)}
.mx-form label.wide{grid-column:1/-1}
.mx-form input, .mx-form select, .mx-form textarea{display:block;width:100%;margin-top:4px;height:44px;border-radius:10px;border:1px solid var(--m-line);background:var(--m-card);padding:0 12px;font-size:16px;outline:none}
.mx-form textarea{height:auto;min-height:90px;padding:10px 12px}
.mx-form input:focus, .mx-form select:focus, .mx-form textarea:focus{border-color:var(--m-acc)}
.mx-pick{display:flex;flex-direction:column}
.mx-pick button{display:flex;align-items:center;gap:10px;text-align:left;padding:12px 4px;border-bottom:1px solid var(--m-line);min-height:52px}
.mx-pick button .tx{flex:1;min-width:0}
.mx-pick button .tx b{display:block;font-size:15px;font-weight:600}
.mx-pick button .tx small{display:block;font-size:12.5px;color:var(--m-mute)}
.mx-pick button.on{color:var(--m-acc)}
.mx-pick button:disabled{opacity:.45}
.mx-raw{font-size:12.5px;color:var(--m-mute);white-space:pre-wrap;word-break:break-word;background:var(--m-card);border:1px solid var(--m-line);border-radius:12px;padding:10px 12px;margin:0}

/* toast */
.mx-toast{position:fixed;left:16px;right:16px;bottom:calc(140px + var(--m-safe-b));z-index:2000;display:flex;align-items:center;gap:10px;background:var(--m-text);color:var(--m-bg);border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;animation:mx-up .2s ease-out;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.mx-toast span{flex:1}
.mx-toast button{background:none;border:0;color:var(--m-acc);font-weight:700;font-size:14px;font-family:inherit}

/* the small "new phone view" switch shown on the classic layout */
#mBackNew{position:fixed;left:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:60;height:34px;padding:0 12px;border-radius:17px;border:1px solid #2e3746;background:#151a23;color:#eef1f6;font:600 13px system-ui,-apple-system,sans-serif}
@media (prefers-reduced-motion: reduce){ .mx-sheet .pn, .mx-sheet .bd, .mx-toast, .mx-loading{animation:none!important} }

/* =====================================================================================================================
   Old screens in the new look (2026-11-22, step 1 of rebuilding them). On phones every old screen and tool keeps its
   features but takes the new palette, font, flat surfaces and touch sizes: the old colour variables are remapped here
   (so every screen follows at once), blur is switched off everywhere (the biggest cost on phones), and the shared parts —
   header bar, buttons, inputs, tabs, pop-up sheets — get the new style. m.js also drops the old "glass" look on phones.
   ===================================================================================================================== */
html.mx-on{
  --bg:#0b0d12!important; --surface:#151a23!important; --surface-2:#11151c!important; --surface-3:#1d2330!important;
  --border:#232a36!important; --border-soft:#1b212b!important; --text:#eef1f6!important; --text-muted:#9aa4b6!important; --text-faint:#8590a3!important;
  --teal:#4f8cff!important; --teal-dim:#0b1e3d!important; --blue:#4f8cff!important;
  --amber:#f5a524!important; --coral:#f0556a!important; --green:#2fbf71!important; --violet:#a48bff!important; --sky:#38bdf8!important;
  --display:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important; --body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace!important;
  --shadow-sm:none!important; --shadow-md:0 10px 30px rgba(0,0,0,.35)!important;
}
html.mx-on[data-theme="light"]{
  --bg:#f3f5f9!important; --surface:#ffffff!important; --surface-2:#f6f7fa!important; --surface-3:#eef1f6!important;
  --border:#e2e6ee!important; --border-soft:#eceff4!important; --text:#111722!important; --text-muted:#4b5566!important; --text-faint:#586173!important;
  --teal:#1d4ed8!important; --teal-dim:#e8efff!important; --blue:#1d4ed8!important; --amber:#9a5b08!important; --coral:#c81e3a!important; --green:#15803d!important; --violet:#6d48d8!important; --sky:#0369a1!important;
}
html.mx-on *, html.mx-on *::before, html.mx-on *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.mx-on body, html.mx-on #app, html.mx-on .d27-ov, html.mx-on .my-name-picker-overlay{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}

/* the old phone header above an old screen: the new tab bar replaces it */
html.mx-on #m63Head, html.mx-on #app > .header, html.mx-on #d4Info, html.mx-on #d4Drawer, html.mx-on #app > .d4-sec{display:none!important}
html.mx-on:not(.mx-native) #app{max-width:none!important;padding:0 14px calc(84px + var(--m-safe-b))!important;margin:0!important;background:var(--m-bg)}
html.mx-on .panel-header-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:6px;margin:0 -14px 12px!important;padding:calc(8px + var(--m-safe-t)) 10px 8px!important;
  background:var(--m-bg)!important;border:0!important;border-bottom:1px solid var(--m-line)!important;border-radius:0!important;box-shadow:none!important;min-height:56px}
html.mx-on .panel-header-bar #backToCalls{height:40px;padding:0 12px 0 6px!important;border:0!important;background:none!important;color:var(--m-acc)!important;font-weight:600;font-size:15px;box-shadow:none!important}
html.mx-on .panel-header-title{flex:1;font-size:18px!important;font-weight:700!important;letter-spacing:-.01em;text-align:left!important;color:var(--m-text)!important;font-family:inherit!important;text-transform:none!important}

/* shared parts */
html.mx-on #app .btn, html.mx-on .d27-ov .btn, html.mx-on .my-name-picker-overlay .btn{min-height:40px;border-radius:10px!important;font-weight:600;font-family:inherit!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important}
html.mx-on #app .btn.primary, html.mx-on .d27-ov .btn.primary{background:var(--m-acc)!important;border-color:var(--m-acc)!important;color:var(--m-on-acc)!important}
html.mx-on #app input:not([type=checkbox]):not([type=radio]):not([type=range]), html.mx-on #app select, html.mx-on #app textarea,
html.mx-on .d27-ov input:not([type=checkbox]):not([type=radio]):not([type=range]), html.mx-on .d27-ov select, html.mx-on .d27-ov textarea{
  font-size:16px!important;border-radius:10px!important;border:1px solid var(--m-line)!important;background:var(--m-card)!important;color:var(--m-text)!important;min-height:42px;font-family:inherit!important}
html.mx-on #app textarea, html.mx-on .d27-ov textarea{padding:10px 12px!important;line-height:1.45}
html.mx-on #app input:focus-visible, html.mx-on #app select:focus-visible, html.mx-on #app textarea:focus-visible, html.mx-on .d27-ov input:focus-visible, html.mx-on .d27-ov textarea:focus-visible,
html.mx-on button:focus-visible, .mx-search input:focus-visible, .mx-psearch:focus-visible, .mx-in:focus-visible, .mx-ta:focus-visible, .mx-sel:focus-visible{border-color:var(--m-acc)!important;outline:2px solid var(--m-acc)!important;outline-offset:1px}
@media (prefers-reduced-motion:reduce){.mx-loading,html.mx-on .d27-ov,html.mx-on .d27-card{animation:none!important;transition:none!important}}
html.mx-on #app .hint, html.mx-on .d27-ov .hint{font-size:13.5px;line-height:1.5;color:var(--m-mute)}
html.mx-on .notif-tabs{display:flex!important;gap:6px;overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:none;padding-bottom:2px}
html.mx-on .notif-tabs::-webkit-scrollbar{display:none}
html.mx-on .notif-tab-btn{flex:none;height:34px;padding:0 12px!important;border-radius:999px!important;border:0!important;background:var(--m-chip)!important;color:var(--m-mute)!important;font-weight:600;font-size:13.5px!important;white-space:nowrap}
html.mx-on .notif-tab-btn.active{background:var(--m-text)!important;color:var(--m-bg)!important}
html.mx-on:not(.mx-native) #app .import-panel, html.mx-on:not(.mx-native) #app .panel{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
html.mx-on:not(.mx-native) #app table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
html.mx-on #app .summary .cell, html.mx-on .d27-ov .d61-kpis > *{border-radius:12px!important;box-shadow:none!important}

/* old pop-up sheets (tools, Today, WhatsApp hub, CareerX, Ask Desk …) */
html.mx-on .d27-ov, html.mx-on .my-name-picker-overlay, html.mx-on .d3-overlay{background:rgba(0,0,0,.5)!important;animation:mx-fade .15s ease-out!important}
html.mx-on .d27-card{width:100%!important;max-width:none!important;border-radius:20px 20px 0 0!important;background:var(--m-bg2)!important;border:0!important;box-shadow:none!important;
  padding:12px 16px calc(16px + var(--m-safe-b))!important;max-height:92vh!important;max-height:92dvh!important;animation:mx-up .2s cubic-bezier(.2,.8,.2,1)!important}
html.mx-on .d27-card::before{content:"";display:block;width:40px;height:5px;border-radius:3px;background:var(--m-line);margin:-4px auto 8px;flex:none}
html.mx-on .d27-hd{border-bottom:1px solid var(--m-line);padding-bottom:10px;margin-bottom:10px}
html.mx-on .d27-hd b, html.mx-on .d27-hd h3, html.mx-on .d27-hd h2{font-family:inherit!important;letter-spacing:-.01em!important;text-transform:none!important}
html.mx-on .d27-x{width:36px!important;height:36px!important;border-radius:18px!important;background:var(--m-chip)!important;border:0!important;color:var(--m-mute)!important}
html.mx-on .d27-list > *, html.mx-on .d27-row{border-radius:12px!important;box-shadow:none!important}
html.mx-on .panel-header-bar #backToCalls{font-size:0!important}
html.mx-on .panel-header-bar #backToCalls .ic{display:none!important}
html.mx-on .panel-header-bar #backToCalls::before{content:"‹ Calls"!important;font-size:16px!important;font-weight:600;color:var(--m-acc)}

/* ---------- rebuilt screens (step 2): shared parts ---------- */
.mx-scr{padding:0 14px}
.mx-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;margin:0 -14px 12px;padding:calc(8px + var(--m-safe-t)) 10px 8px;background:var(--m-bg);border-bottom:1px solid var(--m-line);min-height:56px}
.mx-bar > b{flex:1;min-width:0;font-size:18px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mx-back{height:40px;padding:0 8px 0 4px;color:var(--m-acc)!important;font-weight:600;font-size:16px;flex:none}
.mx-bar-r{display:flex;gap:6px;flex:none}
.mx-scr-b{padding-bottom:16px}
.mx-seg2{display:flex;background:var(--m-chip);border-radius:12px;padding:3px;margin-bottom:12px}
.mx-seg2 button{flex:1;height:36px;border-radius:9px;font-size:14px;font-weight:600;color:var(--m-mute)}
.mx-seg2 button.on{background:var(--m-bg2);color:var(--m-text);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.mx-card{background:var(--m-card);border:1px solid var(--m-line);border-radius:var(--m-r);padding:12px;margin-bottom:10px}
.mx-card.warn{border-color:var(--m-warn)} .mx-card.bad{border-color:var(--m-bad)} .mx-card.ok{border-color:var(--m-ok)} .mx-card.off{opacity:.55}
.mx-card h4{margin:0 0 4px;font-size:15.5px;font-weight:650;line-height:1.3}
.mx-card p{margin:0;font-size:13.5px;color:var(--m-mute);line-height:1.45}
.mx-lbl{display:block;font-size:12px;font-weight:600;color:var(--m-mute);margin:0 0 5px}
.mx-in, .mx-ta, .mx-sel{display:block;width:100%;height:44px;border-radius:10px;border:1px solid var(--m-line);background:var(--m-card);padding:0 12px;font-size:16px;outline:none;color:var(--m-text);font-family:inherit}
.mx-ta{height:auto;min-height:150px;padding:10px 12px;line-height:1.45;resize:vertical}
.mx-in:focus, .mx-ta:focus, .mx-sel:focus{border-color:var(--m-acc)}
.mx-fl{margin-bottom:12px}
.mx-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mx-row > .grow{flex:1;min-width:0}
.mx-b{height:44px;padding:0 16px;border-radius:12px;background:var(--m-chip)!important;font-size:15px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.mx-b.pri{background:var(--m-acc)!important;color:var(--m-on-acc)!important}
.mx-b.bad{color:var(--m-bad)!important}
.mx-b.sm{height:34px;padding:0 12px;font-size:13.5px;border-radius:10px}
.mx-b.wide{width:100%}
.mx-b:disabled{opacity:.45}
.mx-note{font-size:13px;color:var(--m-mute);line-height:1.5;margin:6px 2px 12px}
.mx-note.warn{color:var(--m-warn)} .mx-note.bad{color:var(--m-bad)} .mx-note.ok{color:var(--m-ok)}
.mx-sticky-foot{position:sticky;bottom:calc(72px + var(--m-safe-b));z-index:15;background:var(--m-bg);padding:10px 0 8px;margin-top:8px;display:flex;gap:8px;border-top:1px solid var(--m-line)}
.mx-sticky-foot .mx-b{flex:1}
.mx-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.mx-kpi{background:var(--m-card);border:1px solid var(--m-line);border-radius:12px;padding:10px;text-align:left;width:100%}
.mx-kpi b{display:block;font-size:22px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.1}
.mx-kpi small{display:block;font-size:12px;color:var(--m-mute);margin-top:2px}
.mx-kpi.warn b{color:var(--m-warn)} .mx-kpi.bad b{color:var(--m-bad)} .mx-kpi.ok b{color:var(--m-ok)} .mx-kpi.acc b{color:var(--m-acc)}
.mx-sec-h{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--m-faint);margin:16px 4px 8px}
.mx-sec-h span{flex:1}
.mx-chips{display:flex;gap:6px;flex-wrap:wrap}
.mx-chip{height:34px;padding:0 12px;border-radius:999px;background:var(--m-chip);font-size:13.5px;font-weight:600;color:var(--m-mute)}
.mx-chip.on{background:var(--m-acc-t);color:var(--m-acc)}
.mx-line{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--m-line)}
.mx-line:first-child{border-top:0}
.mx-line .tx{flex:1;min-width:0}
.mx-line .tx b{display:block;font-size:15px;font-weight:600}
.mx-line .tx small{display:block;font-size:12.5px;color:var(--m-mute)}
/* the old body rule overflow-x:hidden makes <body> its own scroll box, so "position:sticky" headers scrolled away;
   clip hides sideways overflow the same way without creating a scroll box */
html.mx-on body{overflow-x:clip!important}
html.mx-on body:not([style*="overflow"]){overflow-y:visible!important}
/* call board on phones (2026-12-01): descriptions wrap to 2 lines instead of "…"; the filter chips fade at the edge so they read as scrollable */
.mx-it .tx small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mx-seg{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:28px}
