/* Shared controls and deliberate semantic exceptions to the legacy palette. */
html[data-mpscope-theme] #mpscopeThemeToggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px!important;margin:0;border:1px solid #c2cec6;border-radius:12px;background:#fff!important;color:#365544!important;box-shadow:none!important;cursor:pointer;line-height:1;order:1}
html[data-mpscope-theme] #mpscopeThemeToggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-mpscope-theme] #mpscopeThemeToggle.theme-floating{position:fixed;right:16px;top:16px;z-index:200}
html[data-mpscope-theme] #mpscopeThemeToggle:focus-visible{outline:3px solid #006e49;outline-offset:3px}
html[data-theme=dark][data-mpscope-theme] #mpscopeThemeToggle{background:var(--theme-raised)!important;color:var(--theme-accent)!important;border-color:var(--theme-control)!important}
html[data-theme=dark][data-mpscope-theme] #mpscopeThemeToggle:focus-visible{outline-color:var(--theme-accent)}
html[data-mpscope-theme] #themeToggle{display:none!important}
html[data-mpscope-theme] #rdTopTools{flex-wrap:wrap;gap:8px;min-width:0}
html[data-theme=dark][data-mpscope-theme] body#mpscope-dashboard.redesign{background:var(--theme-bg)!important;color:var(--theme-text)!important}
html[data-theme=dark][data-mpscope-theme] body#mpscope-dashboard.redesign>.wrap{background:var(--theme-bg)!important}
html[data-theme=dark][data-mpscope-theme] :is(input,textarea,select){color-scheme:dark;caret-color:var(--theme-text)}
html[data-theme=dark][data-mpscope-theme] :is(input,textarea)::placeholder{color:var(--theme-muted)!important;opacity:1}
html[data-theme=dark][data-mpscope-theme] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--theme-accent)!important;outline-offset:3px}
html[data-theme=dark][data-mpscope-theme] input:-webkit-autofill{-webkit-text-fill-color:var(--theme-text);box-shadow:0 0 0 1000px var(--theme-raised) inset!important}
html[data-theme=dark][data-mpscope-theme] ::selection{background:#365e49;color:#fff}
html[data-theme=dark][data-mpscope-theme] *{scrollbar-color:#708b7b #1b2420}
html[data-theme=dark][data-mpscope-theme] dialog::backdrop{background:#050c09b3}
html[data-theme=dark][data-mpscope-theme] :is(dialog,[role=dialog]){color:var(--theme-text);background:var(--theme-surface);border-color:var(--theme-line)}
html[data-theme=dark][data-mpscope-theme] :is(#rnpFrame,#ideasFrame,#crmFrame){background:var(--theme-bg)!important;border-color:var(--theme-line)!important}
html[data-theme=dark][data-mpscope-theme] svg text{fill:var(--theme-muted)!important}
html[data-theme=dark][data-mpscope-theme] :is(.rdLead,.primary,.btn-primary) svg text{fill:var(--theme-on-accent)!important}
html[data-theme=dark][data-mpscope-theme] :is(.primary,.btn-primary){background:var(--theme-accent-fill)!important;color:var(--theme-on-accent)!important;border-color:var(--theme-control)!important}
html[data-theme=dark][data-mpscope-theme] body#mpscope-dashboard.redesign #rdKpis .rdKpi{background:var(--theme-surface)!important;color:var(--theme-text)!important}
html[data-theme=dark][data-mpscope-theme] body#mpscope-dashboard.redesign #rdKpis .rdLead{background:#005e3b!important;color:#fff!important}
html[data-theme=dark][data-mpscope-theme] body#mpscope-dashboard.redesign #rdKpis .rdLead :is(span,small,strong){color:#fff!important}
html[data-theme=dark][data-mpscope-theme] .rdBrand img{filter:brightness(1.8) saturate(.7)}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] body{font-family:Inter,system-ui,sans-serif}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] :is(th,td,input,select,button){color:var(--theme-text);border-color:var(--theme-line)}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] .val input{background:transparent!important;color:var(--theme-text)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node{color:var(--theme-text)!important;background:var(--theme-surface)!important;border-color:var(--theme-control)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node.image{background:transparent!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=public] :is(body,main,.page,.content,.story,.copy,.gate,.form-panel,.box,.form-shell){background:var(--theme-bg)!important;color:var(--theme-text)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=public] :is(p,label,.muted,.lead,.intro,.note,.line){color:var(--theme-muted)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=public] :is(input,select,textarea){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-control)!important}
@media(max-width:760px){html[data-mpscope-theme] #rdOverviewHeader{flex-wrap:wrap;gap:8px}html[data-mpscope-theme] #rdTopTools{margin-left:auto}html[data-mpscope-theme] :is(dialog input,dialog textarea,dialog select){font-size:16px!important}html[data-mpscope-theme] dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}html[data-mpscope-theme] #mpscopeThemeToggle.theme-floating{top:8px;right:8px}}
@media(prefers-reduced-motion:reduce){#mpscopeThemeToggle{transition:none!important}}
html[data-theme=dark][data-mpscope-theme][data-theme-page] body select{background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:12px!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=dashboard] body#mpscope-dashboard.redesign #rdSidebar{background:var(--theme-surface)!important;box-shadow:none!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=dashboard] body#mpscope-dashboard.redesign #rdSidebar .market-mark{box-shadow:none!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=dashboard] body#mpscope-dashboard.redesign .finance-kpi{background:var(--theme-surface)!important;color:var(--theme-text)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=dashboard] body#mpscope-dashboard.redesign .finance-refresh{background:var(--theme-accent-fill)!important;color:var(--theme-on-accent)!important}

html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node[data-fill="#f9e9a4"]{background:var(--theme-warning-soft)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node[data-fill="#dcece2"]{background:var(--theme-accent-soft)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node[data-fill="#e5dff8"]{background:var(--theme-purple-soft)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node[data-fill="#f5dcd5"]{background:var(--theme-danger-soft)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node[data-fill="#dce9f5"]{background:var(--theme-info-soft)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=ideas] .node.text{background:transparent!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=crm] .crm-top nav button.active{background:var(--theme-accent-fill)!important;color:var(--theme-on-accent)!important}
@media(max-width:760px){html[data-mpscope-theme][data-theme-page=crm] .crm-top nav{width:100%;overflow:visible}html[data-mpscope-theme][data-theme-page=crm] .crm-top nav button{min-width:0;white-space:normal!important;overflow-wrap:anywhere;flex:1 1 0;padding:8px 5px!important}html[data-mpscope-theme][data-theme-page=crm] .crm-controls .pipeline-tab{min-width:0;white-space:normal!important;flex:1 1 0}html[data-mpscope-theme][data-theme-page=crm] .pipeline-tab strong{white-space:normal!important}html[data-mpscope-theme][data-theme-page=crm] .crm-controls .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}html[data-mpscope-theme][data-theme-page=crm] #newDeal{grid-column:1/-1;width:100%;min-width:0}html[data-mpscope-theme][data-theme-page=crm] .filters input{min-width:0;width:100%}}
/* Public app entry screens share the same explicit light/dark preference. */
html[data-theme=light][data-mpscope-theme][data-theme-page=public]{--bg:#f7f7f7;--panel:#fff;--panel2:#f1f5f2;--line:#c2cec6;--text:#1b1d18;--muted:#53615a;color-scheme:light;background:#f7f7f7}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] body{background:#f7f7f7!important;color:#1b1d18!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(main,.page,.content,.story,.copy,.gate,.form-panel,.box,.form-shell,.shell,.card){background:#fff!important;color:#1b1d18!important;border-color:#c2cec6!important;box-shadow:none!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(h1,h2,h3,h4,strong,b,label,.field,.price){color:#1b1d18!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(p,.lead,.intro,.muted,.note,.line,.form-foot,.gate-foot,.security-note,small,footer){color:#53615a!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(input,textarea,select,.control){background:#fff!important;color:#1b1d18!important;border-color:#9aaba0!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(a,.eyebrow){color:#006e49!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(button,.button,.submit){background:#006e49!important;color:#fff!important;border-color:#006e49!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] button.reveal{background:transparent!important;color:#53615a!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=public] :is(button,.button,.submit) :is(span,b,strong){color:inherit!important}

html[data-theme=dark][data-mpscope-theme][data-theme-page=account] :is(input,select,textarea){color:var(--theme-text)!important}

@layer mpscope-accessibility {
/* Deep mobile review: readable segments, preserved select arrows and quiet overlays. */
html[data-theme=dark][data-mpscope-theme] body#mpscope-dashboard :is(#financeApp,#financeWorkspace) select{background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px 14px!important}
html[data-theme=light][data-mpscope-theme] body#mpscope-dashboard :is(.finance-overhead-form label,.finance-overhead-form small,.finance-overhead-panel small,.finance-cost-kpi p,.finance-cost-kpi small,.finance-overhead-kpi small,.fq-presets>span,.finance-quick-ranges button,.finance-cost-alert small,.finance-period-presets button,.finance-view-switch button){color:#53645b!important}
@media(max-width:480px){
 html[data-mpscope-theme] body#mpscope-dashboard.redesign #allApp #rdOverviewFilters [aria-label="Период общей сводки"] button{white-space:normal!important;overflow-wrap:anywhere;min-width:0;padding-left:6px!important;padding-right:6px!important}
 html[data-mpscope-theme] body#mpscope-dashboard.redesign #financeWorkspace .fq-presets button{white-space:normal!important;min-width:0;overflow-wrap:anywhere;padding-left:6px!important;padding-right:6px!important}
}

html[data-theme=light][data-mpscope-theme] :is(.fr-panel p,.fr-workspace .finance-overhead-panel small,#pl-panel-rules p,.decision-dialog p){color:#53645b!important}
html[data-theme=light][data-mpscope-theme] .finance-quick-ranges button:not(.active){color:#53645b!important}
}

@layer mpscope-accessibility {
html[data-theme=light][data-mpscope-theme][data-theme-page=account] :is(.profile-tabs button:not(.active),.profile-body small,.profile-body .muted){color:#53645b!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=account] .profile-body .badge{color:#32684f!important}
html[data-theme=light][data-mpscope-theme][data-theme-page=account] .profile-body .badge.off{color:#6b573d!important}
}

/* Chart period targets and marketplace RNP cells contain dynamic SVG/inline
   colours, so their semantic dark surfaces cannot be inferred at build time. */
@layer mpscope-accessibility {
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart .rdPeriodBand {fill:transparent!important;stroke:none!important}
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart .rdLinkedPeriod[aria-pressed="true"] .rdPeriodBand {fill:#233c31!important;stroke:#456d58!important;stroke-width:1px!important}
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart .rdLinkedPeriod:hover .rdPeriodBand {fill:#2d493a!important}
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart .rdLinkedPeriod:focus-visible .rdPeriodBand {stroke:#80d3ae!important;stroke-width:2px!important}
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart :is(.chxlab,.chgrid,.axis) {fill:#bccdc3!important}
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart :is(line,path).chgrid {fill:none!important;stroke:#3a5145!important}
 html[data-theme=dark][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) .rnp-current-value {background:#22362c!important;color:#e6eee9!important}
 html[data-theme=dark][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) td[style*="--rnp-tone"] {background:color-mix(in srgb,var(--rnp-tone) 27%,#17251e)!important;color:#f2f6f3!important}
 html[data-theme=dark][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) .rnp-current-value.rnp-missing {background:#22362c!important;color:#b7c8be!important}
 html[data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) :is(.rnp-photo img,.rnp-mobile-photo,.rnp-mobile-photo img) {border-radius:14px!important;overflow:hidden;object-fit:contain!important}
}
@layer mpscope-accessibility {
 html[data-theme=dark][data-mpscope-theme] #overviewDynamicsChart line[stroke="#e8edf4"] {stroke:#3a5145!important}
}

@layer mpscope-accessibility {
 html[data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) .rnp-photo img {position:relative!important;inset:auto!important;width:calc(100% - 12px)!important;height:auto!important;max-width:100%!important;max-height:none!important;margin:6px auto!important}
 @media(max-width:760px){html[data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) .rnp-photo img {width:calc(100% - 6px)!important;border-radius:8px!important;margin:3px auto!important}}
}

/* Compact marketplace identity: raised brand tiles, shared across themes. */
@layer mpscope-marketplace-identity {
 html[data-mpscope-theme] #marketplaceDirectory:not([hidden]) {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;padding:4px!important}
 html[data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace] {display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:46px!important;padding:4px!important;border-radius:14px!important;border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;position:relative}
 html[data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace].workspace-market-unconnected {display:none!important}
 html[data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace]>:is(b,small) {display:none!important}
 html[data-mpscope-theme] #marketplaceDirectory .marketplace-directory-mark {display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:36px!important;height:36px!important;border-radius:10px!important;color:#fff!important;font:700 13px/1 Inter,system-ui,sans-serif!important;letter-spacing:-.3px!important;text-shadow:none!important;box-shadow:inset 0 1px 0 #ffffff20,0 2px 4px #122a1d18!important;border:1px solid #ffffff18!important;transform:translateY(0);background:linear-gradient(145deg,#657e70,#314d3e)!important}
 html[data-mpscope-theme] #marketplaceDirectory .marketplace-directory-mark.ozon {background:linear-gradient(155deg,#286be0,#1752b8)!important;font-size:10px!important;letter-spacing:-.4px!important}
 html[data-mpscope-theme] #marketplaceDirectory .marketplace-directory-mark.wb {background:linear-gradient(155deg,#a94abc,#7c329c)!important}
 html[data-mpscope-theme] #marketplaceDirectory .marketplace-directory-mark.ym {background:linear-gradient(155deg,#f0d26c,#dfb83d)!important;color:#302415!important;font-size:23px!important}
 html[data-theme=light][data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace][aria-selected=true] {background:#edf5f0!important;border-color:#b7cdbf!important}
 html[data-theme=dark][data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace][aria-selected=true] {background:#233c31!important;border-color:#4d7560!important}
 html[data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace]:focus-visible {outline:2px solid #1fa577!important;outline-offset:3px!important}
 html[data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace]:hover .marketplace-directory-mark {transform:translateY(-1px)}
 @media(max-width:480px){html[data-mpscope-theme] #marketplaceDirectory {gap:6px!important}html[data-mpscope-theme] #marketplaceDirectory [data-marketplace-workspace] {flex-basis:44px!important;width:44px!important;min-width:44px!important;height:44px!important;padding:4px!important}html[data-mpscope-theme] #marketplaceDirectory .workspace-summary-add {margin-left:auto!important;flex:0 0 auto!important}}
}
/* Keep the product identity columns equally compact in all marketplace RNPs. */
@layer mpscope-rnp-mobile {
 @media(max-width:760px){
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) :is(.rnp-scroll,.rnp-page-head) table {table-layout:fixed!important;width:calc(var(--rnp-table-width) - 284px)!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-col-0 {width:40px!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-col-1 {width:88px!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-col-2 {width:90px!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-col-3 {width:70px!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-photo:not([colspan]) {width:40px!important;min-width:40px!important;max-width:40px!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-photo[colspan] {width:128px!important;min-width:128px!important;max-width:128px!important;padding:6px!important;overflow-wrap:anywhere}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-card {width:88px!important;min-width:88px!important;max-width:88px!important;left:40px!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-card .rnp-name {max-height:none!important;overflow:visible!important;font-size:12px!important;line-height:1.35!important}
 html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-photo :is(select,input) {box-sizing:border-box;max-width:100%!important;min-width:0!important;width:100%!important}
 }
}
@layer mpscope-rnp-mobile {
 html[data-theme=light][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) td[style*="--rnp-tone"] {background:color-mix(in srgb,var(--rnp-tone) 55%,white)!important;color:#1b1d18!important}
}

@layer mpscope-rnp-mobile {html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-native-head {display:none!important}
@media(max-width:760px){html[data-mpscope-theme] :is(#wbRnpZone,#ymRnpZone) .rnp-product-list {width:calc(var(--rnp-table-width) - 284px)!important}}}
@layer mpscope-rnp-mobile {
 html[data-theme=dark][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) td.rnp-heat-good {background:#203c2e!important;color:#e5ede8!important}
 html[data-theme=dark][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) td.rnp-heat-bad {background:#442b2c!important;color:#e5ede8!important}
 html[data-theme=light][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) td.rnp-heat-good {background:#e3f1e9!important;color:#1b1d18!important}
 html[data-theme=light][data-mpscope-theme] :is(#ozonRnpZone,#wbRnpZone,#ymRnpZone) td.rnp-heat-bad {background:#fae5e3!important;color:#1b1d18!important}
}

@layer mpscope-marketplace-identity {html[data-mpscope-theme] #marketplaceDirectory[hidden] {display:none!important}}

/* Separate mobile navigation and actions; training uses the full application viewport. */
@media(max-width:760px){html[data-mpscope-theme][data-theme-page=crm] .crm-top nav{flex:0 0 100%;width:100%;max-width:100%;display:flex;overflow:auto}html[data-mpscope-theme][data-theme-page=crm] .crm-top .top-tools{width:100%;justify-content:flex-end}html[data-mpscope-theme][data-theme-page=crm] .crm-top nav button{min-height:44px;word-break:normal;overflow-wrap:normal}html[data-mpscope-theme][data-theme-page=crm] .crm-top{align-items:stretch}}

html[data-theme=dark][data-mpscope-theme][data-theme-page=crm] :is(button.primary,#newDeal,#crmTrainingDialog .training-actions button:last-child){color:var(--theme-on-accent)!important;background:var(--theme-accent-fill)!important}

/* RNP semantic tokens must not pass through the legacy colour classifier. */
@layer mpscope-accessibility {
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] #sheet#sheet{
 --rnp-bg:#1b2420!important;--rnp-head:#25312b!important;--rnp-line:#42594b!important;
 --rnp-today:#294438!important;--rnp-text:#e5ede8!important;--group-line:#526b5c!important;
 --fact-bg:#22362c!important;--good-bg:#284535!important;--good-ink:#c6ecd5!important;
 --warn-bg:#443d29!important;--warn-ink:#f2d99d!important;--bad-bg:#49302e!important;
 --bad-ink:#f4c2ba!important;--growth-bg:#284535!important;
}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] #sheet :is(.scope,.channel-title,.marketing-marker){background:transparent!important;color:inherit!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] #sheet :is(.pinned-kpi td,.pinned-kpi th,.week-total){background:var(--rnp-head)!important;color:var(--rnp-text)!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] #sheet :is(.month-button,.week-button,.metric-settings,.mp-tabs button){color:var(--rnp-text)!important;background:transparent!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] #sheet .mp-tabs button.selected{background:#304c3d!important;border-color:#6b927d!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] .tools :is(select,input:not([type=range]),button){background:#25312b!important;color:#e5ede8!important;border-color:#526b5c!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] .tools #today-open{background:#294438!important;color:#e5ede8!important;border-color:#6b927d!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] .tools :is(label,span,output){color:#becdc3!important}
html[data-mpscope-theme][data-theme-page=rnp] main{padding:8px!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools{gap:8px!important;margin:0 0 8px!important;padding-right:52px;align-items:center}
html[data-mpscope-theme][data-theme-page=rnp] .tools .period-control{display:flex;align-items:center;gap:6px;min-width:0}
html[data-mpscope-theme][data-theme-page=rnp] .tools :is(button,select,input:not([type=range])){min-height:36px!important;height:36px!important;padding:6px 10px!important;border-radius:8px!important;max-width:100%;margin:0!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools #period-range:not([hidden]){display:flex;gap:8px;flex-wrap:wrap}
html[data-mpscope-theme][data-theme-page=rnp] .tools #year{width:84px!important}
@media(max-width:700px){
html[data-mpscope-theme][data-theme-page=rnp] .tools{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;padding-right:0!important;gap:8px!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools .period-control:first-child{grid-column:1/-1!important;padding-right:52px!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools .period-control:first-child select{flex:1!important;min-width:0!important;width:100%!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools #period-range{grid-column:1/-1}
html[data-mpscope-theme][data-theme-page=rnp] .tools :is(button,select,input:not([type=range])){min-height:44px!important;height:44px!important;font-size:14px!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools input#year{font-size:16px!important}
html[data-mpscope-theme][data-theme-page=rnp] .tools .zoom-control{grid-column:1/-1!important;grid-row:4!important;gap:8px;min-height:32px}
html[data-mpscope-theme][data-theme-page=rnp] .tools .zoom-control input{flex:1;width:0;min-width:40px}
html[data-mpscope-theme][data-theme-page=rnp] .tools #blocks-open{grid-column:1/-1}
html[data-mpscope-theme][data-theme-page=rnp] .tools #today-open{font-size:12px!important;padding:6px!important}
}
}
@layer mpscope-accessibility {
html[data-mpscope-theme][data-theme-page=rnp] .tools #period-select{max-width:none!important}
html[data-theme=dark][data-mpscope-theme][data-theme-page=rnp] .decision-actions button:last-child{background:#006e49!important;color:#fff!important}
}

/* Full-screen settings override legacy compact dialog bounds. */
@layer mpscope-accessibility {
@media(max-width:700px){html[data-mpscope-theme] dialog:is(.crm-config,.metrics-dialog,#workspacePersonalization){box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;inset:0!important;margin:0!important;border:0!important;border-radius:0!important}html[data-mpscope-theme] .crm-config footer{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}}
}

/* CRM follows the MPSCOPE dashboard; standalone MINDLY has its own stylesheet. */
html[data-mpscope-theme][data-theme-page=crm]{--crm-bg:#f7f7f7;--crm-card:#fff;--crm-text:#1b1d18;--crm-muted:#6c756e;--crm-line:#e7e8e6;--crm-accent:#006e49;--crm-fill:#006e49;--crm-soft:#edf5f0;--crm-lane:#f0f3f1}
html[data-mpscope-theme][data-theme-page=crm][data-theme=dark]{--crm-bg:var(--theme-surface);--crm-card:var(--theme-bg);--crm-text:var(--theme-text);--crm-muted:var(--theme-muted);--crm-line:var(--theme-line);--crm-accent:var(--theme-accent);--crm-fill:var(--theme-accent-fill);--crm-soft:var(--theme-accent-soft);--crm-lane:#18221c}

html[data-mpscope-theme][data-theme-page=crm][data-theme] body{font:13px/1.45 Inter,system-ui,sans-serif!important;font-variant-numeric:tabular-nums;background:var(--crm-bg)!important;color:var(--crm-text)!important;--bg:var(--crm-bg);--card:var(--crm-card);--text:var(--crm-text);--muted:var(--crm-muted);--line:var(--crm-line);--accent:var(--crm-accent);--soft:var(--crm-soft)}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body :is(button,input,select,textarea){font-family:Inter,system-ui,sans-serif!important;font-size:13px;letter-spacing:normal}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-top{padding:0 0 10px;gap:8px;flex-wrap:wrap;border:0!important;background:transparent!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-top nav{padding:0!important;gap:4px!important;border:0!important;border-radius:0!important;background:transparent!important;flex:1 1 auto}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-top nav button{min-height:38px;padding:8px 12px!important;border:0!important;border-radius:9px!important;font-size:13px!important;font-weight:500;background:transparent!important;color:var(--muted)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-top nav button.active{background:var(--soft)!important;color:var(--accent)!important;box-shadow:none!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .top-tools{gap:6px;flex-wrap:wrap}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .top-tools button{min-height:36px;font-size:13px;padding:6px 10px;border-radius:9px}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls{padding:0 0 12px!important;gap:10px;flex-wrap:wrap}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .pipeline-tabs{border:0!important;background:transparent!important;gap:6px!important;max-width:100%;overflow:auto}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .pipeline-tab{border:1px solid var(--line)!important;border-radius:9px!important;padding:8px 12px!important;min-height:36px!important;background:var(--card)!important;box-shadow:none!important;color:var(--muted)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .pipeline-tab strong{font-size:13px!important;font-weight:500!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .pipeline-tab.active{background:var(--soft)!important;border-color:var(--accent)!important;color:var(--accent)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .filters{flex:1 1 300px;gap:7px}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .filters input{font-size:13px!important;min-height:36px!important}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .filters>button{font-size:13px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .primary{background:var(--crm-fill)!important;color:#fff!important;border-color:var(--crm-fill)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .board,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .task-board{padding:0 0 12px!important;gap:12px}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .column,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .task-column{flex:0 0 310px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--crm-lane)!important;padding:0 10px 10px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .colhead{background:var(--crm-lane)!important;min-height:76px!important;padding:12px 2px 10px!important;border-bottom:1px solid var(--line)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .colhead h3{text-transform:none!important;letter-spacing:normal!important;text-align:left!important;font-size:14px!important;font-weight:600!important;line-height:1.4;min-height:0!important;margin:0 0 6px}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .colhead small{text-align:left!important;font-size:12px!important;line-height:1.4;color:var(--muted)!important;margin:0}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .column>[data-add]{text-align:left;min-height:36px;padding:7px 9px;font-size:13px!important;border-radius:9px;background:transparent!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal{border:1px solid var(--line)!important;border-radius:11px!important;box-shadow:none!important;padding:11px!important;background:var(--card)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal strong{font-size:14px!important;font-weight:600!important;line-height:1.4;color:var(--text)!important;text-transform:none!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal .meta,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal p,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal small{font-size:12px!important;line-height:1.45}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .next-task-top small,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .next-task-copy>small{font-size:12px!important;line-height:1.35}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .next-task-top strong{font-size:13px!important;font-weight:500!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .card-next-task{min-height:50px!important}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .next-task-top{flex-wrap:wrap}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .board-scroll-controls{padding:6px 0!important;background:transparent!important;border:0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body h2{font-size:18px;font-weight:600}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .head h2{font-size:18px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .record-data div,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .history,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .conversation button{font-size:13px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields h3,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .conversation-head h3{font-size:14px!important;font-weight:600}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label input,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label select{min-height:34px!important;height:auto!important;font-size:13px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label textarea{min-height:46px!important;font-size:13px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .listcard{border-radius:14px;box-shadow:none;background:var(--card)!important}
@media(max-width:760px){
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-top nav{flex:1 0 100%;overflow:auto;flex-wrap:nowrap!important}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-top nav button{min-height:44px;font-size:13px!important;white-space:nowrap!important;flex:0 0 auto!important;padding:8px 10px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .top-tools{width:100%;justify-content:flex-end}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .top-tools button{min-height:40px}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls{gap:8px}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .pipeline-tab{flex:0 0 auto!important;white-space:nowrap!important;min-height:44px!important}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .pipeline-tabs{width:100%}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .crm-controls .filters{flex:0 0 auto;width:100%}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .filters input,html[data-mpscope-theme][data-theme-page=crm][data-theme] body input,html[data-mpscope-theme][data-theme-page=crm][data-theme] body select,html[data-mpscope-theme][data-theme-page=crm][data-theme] body textarea,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label input,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label select,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label textarea{font-size:16px!important;min-height:44px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .column,html[data-mpscope-theme][data-theme-page=crm][data-theme] body .task-column{flex-basis:min(310px,calc(100vw - 48px))!important}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .filter-body{right:0;max-width:calc(100vw - 32px)}
}

html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal>strong{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-height:none!important}

/* CRM deal detail: compact MPSCOPE fields and activity, 2026-10-25. */
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer>.head{height:54px!important;padding:8px 16px!important;background:var(--card)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer>.head h2{font-size:16px!important;font-weight:600!important;line-height:1.4!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer .body#detail{height:calc(100dvh - 54px)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-layout{grid-template-columns:minmax(390px,40%) minmax(0,1fr)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields{padding:12px 16px 0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields h3, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .conversation-head h3{font-size:14px!important;font-weight:600!important;margin:0!important;line-height:1.4!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .stage-context{border-bottom:1px solid var(--line)!important;padding:0 0 8px!important;margin:0 0 10px!important;font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields .grid{gap:3px!important;margin-top:8px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label{grid-template-columns:120px minmax(0,1fr)!important;font-size:13px!important;gap:8px!important;min-height:34px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label input, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label select, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label textarea{border:1px solid var(--line)!important;border-radius:7px!important;background:var(--card)!important;padding:5px 8px!important;font-size:13px!important;line-height:20px!important;min-height:34px!important;height:34px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label textarea{height:46px!important;min-height:46px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label input:focus, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label select:focus, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label textarea:focus{border-color:var(--accent)!important;outline:2px solid var(--soft)!important;outline-offset:1px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields .related-record{padding:10px 0!important;margin:14px 0 0!important;background:transparent!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .related-record .record-heading{min-height:30px!important;gap:8px!important;margin:0 0 6px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .record-heading small{display:none!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .record-avatar{width:28px!important;height:28px!important;flex-basis:28px!important;background:var(--soft)!important;color:var(--accent)!important;font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields .related-record label{grid-template-columns:85px minmax(0,1fr)!important;margin-top:3px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .related-record .record-picker{margin:0 0 6px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .related-record .record-picker summary{padding:4px 8px!important;font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .related-record>div[id$=Data]{border:0!important;padding:0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields .inline-pair{gap:8px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields .inline-pair label{font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .savebar{padding:8px 0!important;gap:10px!important;margin-top:12px!important;z-index:2!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .savebar small{font-size:12px!important;color:var(--muted)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer button, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal button{min-height:34px!important;height:auto!important;font-size:13px!important;padding:6px 10px!important;border-radius:8px!important;line-height:20px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .conversation-head{padding:10px 16px!important;min-height:54px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .activity-scroll{padding:4px 16px 12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task{position:relative!important;padding:10px 86px 10px 12px!important;margin:8px 0!important;border:1px solid var(--line)!important;border-left:3px solid var(--accent)!important;border-radius:10px!important;background:var(--card)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task-main{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task-main strong{font-size:14px!important;font-weight:600!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task-status{font-size:12px!important;color:var(--muted)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task-meta{display:flex!important;flex-wrap:wrap!important;gap:6px 12px!important;align-items:center!important;margin-top:5px!important;font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task-owner{padding:2px 7px!important;background:var(--soft)!important;color:var(--accent)!important;border-radius:6px!important;font-weight:500!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task-note{font-size:13px!important;line-height:1.45!important;margin:6px 0 0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task>button{position:absolute!important;right:10px!important;top:10px!important;float:none!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task[data-status=done], html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task[data-status=cancelled]{border-left-color:var(--line)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .message{padding:10px 12px!important;margin:8px 0!important;max-width:none!important;border-radius:10px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .message-meta{font-size:12px!important;flex-wrap:wrap!important;gap:4px 10px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .message-meta time{font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .message .comment-text{font-size:13px!important;line-height:1.5!important;margin-top:6px!important;overflow-wrap:anywhere!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .composer{padding:10px 16px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .composer label{font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .composer textarea{min-height:58px!important;height:58px!important;font-size:13px!important;padding:8px 10px!important;border-radius:8px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .compose-actions{gap:8px!important;margin-top:6px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .compose-actions small{font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .attach-button{min-height:34px!important;display:flex!important;align-items:center!important;padding:5px 10px!important;border-radius:8px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-menu{padding:6px 16px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-menu summary, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .audit-log summary{font-size:12px!important;line-height:20px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .audit-log{opacity:1!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .empty-comments{padding:16px 0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal .body{padding:16px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal .grid{gap:10px 12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal label{font-size:13px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal input, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal select, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal textarea{font-size:13px!important;border-radius:8px!important;min-height:34px!important}
@media(max-width:760px){
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-layout{display:block!important;height:calc(100% - 53px)!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .detail-tabs{height:53px!important;padding:4px 12px!important;box-sizing:border-box!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .detail-tabs button{min-height:44px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields{padding:10px 12px 0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label{grid-template-columns:100px minmax(0,1fr)!important;min-height:44px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label input, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label select, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-fields label textarea, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal input, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal select, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal textarea, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .composer textarea{font-size:16px!important;min-height:44px!important;height:auto!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer button, html[data-mpscope-theme][data-theme-page=crm][data-theme] body #modal button, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .attach-button{min-height:44px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .conversation-head, html[data-mpscope-theme][data-theme-page=crm][data-theme] body .composer{padding:8px 12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .activity-scroll{padding:4px 12px 10px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .compose-actions{flex-wrap:wrap!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .compose-actions small{order:3!important;width:100%!important;font-size:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task{padding-right:12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-task>button{position:static!important;margin-top:8px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .savebar{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer>.head{height:60px!important;padding:8px 12px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .drawer .body#detail{height:calc(100dvh - 60px)!important}
}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #drawer[open]{display:flex!important;flex-direction:column!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #drawer>.head{flex:0 0 54px!important;box-sizing:border-box!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #drawer>.head h2{flex:1!important;min-width:0!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #drawer>.head .actions{display:flex!important;flex-flow:row nowrap!important;flex-shrink:0!important;gap:8px!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body #drawer .body#detail{flex:1!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important}
html[data-mpscope-theme][data-theme-page=crm][data-theme] body .deal-layout{min-height:0!important}
@media(max-width:760px){html[data-mpscope-theme][data-theme-page=crm][data-theme] body #drawer>.head{flex-basis:60px!important}html[data-mpscope-theme][data-theme-page=crm][data-theme] body .detail-tabs button{white-space:nowrap!important;font-size:12px!important;padding:4px 6px!important}}
