/* RCW CRM «Модерн». Direction adapted from the approved RCW Dashboard release.
   Method: Unslop by Damir Sokolovsky, CC BY 4.0, https://github.com/heydamir/unslop
   Every rule is scoped to Modern. Existing graphite glass remains independent. */
:root:is([data-crm-theme="modern"],[data-crm-theme="olive"]){
 --crm-text:#f7f7f7;--crm-muted:#c4c4c8;--crm-line:#ffffff1a;--crm-focus:#ededed;
 --crm-background:#242426;--crm-glass:#2a2a2d;--crm-chrome:#202022;
 --crm-mobile-header:#202022;--crm-mobile-menu:#242426;--crm-dialog:#2a2a2d;
 --crm-raised:#343438;--crm-control:#333337;--crm-inset:#222224;--crm-field:#222224;
 --crm-solid:#2a2a2d;--crm-hover:#3b3b40;--crm-primary:#ededed;--crm-primary-hover:#fff;
 --crm-primary-border:#ededed;--crm-on-primary:#242426;--crm-backdrop:#101012ba;
 --crm-link:#ededed;--crm-message-mine:#38383d;
 --crm-error:#ffb6ad;--crm-error-line:#b9827b;--crm-error-surface:#442d2c;
 --crm-warning:#f0ce94;--crm-warning-line:#a89373;--crm-warning-surface:#3e352b;
 color-scheme:dark;background:var(--crm-background);accent-color:var(--crm-primary);
}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) body{background:var(--crm-background);color:var(--crm-text)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(h1,h2,h3){font-weight:500;letter-spacing:0}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) h1{font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.2}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.eyebrow,.sectionlabel,.task-bento-label){text-transform:none;letter-spacing:0;font-size:var(--crm-text-footnote);font-weight:400}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .eyebrow{display:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.sidebar,.topbar,.page-heading,.overview-panel,.overview-metric,.board-card,.counterparty-card,dialog,.deal-card,.task-list,.journal-entry,.mail-list-pane,.mail-detail-pane,#team-workspace){box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar{padding:24px 16px;gap:24px;background:var(--crm-chrome);border-color:var(--crm-line)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar nav{gap:4px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar nav button{min-height:44px;padding:8px 12px;gap:12px;border-radius:8px;font-size:1rem;line-height:1.4;font-weight:400;background:transparent;border-color:transparent;transition:background .16s cubic-bezier(.22,1,.36,1),border-color .16s cubic-bezier(.22,1,.36,1)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar nav button:hover{background:var(--crm-control)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar nav button.active{background:#ffffff0e;border-color:#ffffff24;color:var(--crm-text);font-weight:500;box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar nav button svg{width:18px;height:18px;stroke-width:1.5}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar nav button .nav-count:not(:empty){background:transparent;border-radius:0;padding:0;color:var(--crm-muted)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar-bottom{padding:24px 12px 0;gap:16px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .task-groups{padding-left:28px;gap:4px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .topbar{min-height:64px;padding:12px 32px;background:transparent;border-color:var(--crm-line)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .workspace{padding:24px 32px 48px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .page-heading{padding:0;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;margin-bottom:24px;gap:24px;overflow:visible;isolation:auto}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .page-heading::after{content:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .page-heading h1{margin:0 0 8px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .page-heading p{margin:0;color:var(--crm-muted)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:8px;box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--crm-field);border-color:#85858b;color:var(--crm-text);min-height:48px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(button,input,select,textarea,a,summary):focus-visible{outline:2px solid var(--crm-focus);outline-offset:3px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) button{transition:color .16s cubic-bezier(.22,1,.36,1),background .16s cubic-bezier(.22,1,.36,1),border-color .16s cubic-bezier(.22,1,.36,1)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(button.primary,.primary){background:var(--crm-primary);color:var(--crm-on-primary);border-color:var(--crm-primary-border)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.overview-panel,.overview-metric,.counterparty-card,.deal-card,.task-list,.journal-entry,.mail-list-pane,.mail-detail-pane){background:var(--crm-glass);border:1px solid var(--crm-line);border-radius:12px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.overview-panel,.overview-metric,.counterparty-card){padding:20px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .settings-accordion{padding:0}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .settings-summary{padding:16px 20px;min-height:56px;font-weight:500}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .settings-accordion-body{padding:0 20px 20px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.overview-metrics,.overview-grid,.crm-roadmap-grid){gap:16px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .overview-metric strong{font-size:2rem;font-weight:500;letter-spacing:0;font-variant-numeric:tabular-nums}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .overview-stage progress::-webkit-progress-value{background:#d5d5d8}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .overview-stage progress::-moz-progress-bar{background:#d5d5d8}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .overview-stage progress::-webkit-progress-bar{background:#48484e}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.owner-filter,.deal-layout-switch,.tabs){border-radius:8px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.owner-filter button[aria-pressed=true],.deal-layout-switch button[aria-pressed=true],.tabs button[aria-selected=true]){background:var(--crm-control);color:var(--crm-text);border-color:#ffffff50;box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.kanban-board,.task-board){gap:16px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .kanban-column{background:var(--crm-inset);border:1px solid var(--crm-line);border-radius:12px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.kanban-column .kanban-column-head,.task-board .kanban-column-head){min-height:52px;margin:0;padding:12px 16px;background:var(--crm-control);border-radius:12px 12px 0 0;box-shadow:inset 0 2px rgb(var(--kanban-stage-accent) / .7)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.kanban-cards){padding:12px 12px 16px;gap:12px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.board-card,.task-board .task-row){padding:0;background:var(--crm-glass);border:1px solid var(--crm-line);border-radius:8px;box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .task-board .task-row{padding:16px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .board-card-open{padding:16px;gap:8px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.kanban-board,.deal-time-list) .board-card-title{background:rgb(var(--kanban-stage-accent) / .12);box-shadow:inset 3px 0 rgb(var(--kanban-stage-accent) / .8);border-radius:4px;font-weight:500}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.board-card-title,.board-card-owner,.board-card-created){letter-spacing:0}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.pill,.stage-pill){box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(dialog,.drive-menu,.card-context-menu,.task-card-menu,.team-dialog,.emoji-panel,.calendar){background:var(--crm-dialog);border-color:var(--crm-line);box-shadow:none;border-radius:12px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.task-bento-card,.task-info-card,.task-description-card,.task-detail-panel,.chat-profile-panel){background:var(--crm-glass);border-color:var(--crm-line);border-radius:12px;box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .deal-stage-heading{background:rgb(var(--kanban-stage-accent) / .12);box-shadow:inset 3px 0 rgb(var(--kanban-stage-accent) / .8);border-radius:8px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.interface-theme-option-body,.typography-option,.notification-preference,.app-install-options a){border-radius:12px;box-shadow:none}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .interface-themes{max-width:640px;gap:16px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .interface-theme-option-body{padding:12px}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .interface-theme-option input:checked+.interface-theme-option-body{border-color:var(--crm-focus);background:var(--crm-control)}
:is([data-crm-theme="modern"],[data-crm-theme="olive"]) ::selection{background:#dedee0;color:#242426}
@media(min-width:981px){:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .shell{grid-template-columns:248px minmax(0,1fr)}}
@media(max-width:680px){
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .sidebar{margin:0;padding:12px 16px;min-height:72px;border-radius:0;border-width:0 0 1px;background:var(--crm-mobile-header);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .mobile-menu-toggle{border-radius:8px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .topbar{padding:12px 16px;min-height:48px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .workspace{padding:24px 16px calc(112px + env(safe-area-inset-bottom,0px))}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .page-heading{align-items:flex-start;gap:16px;margin-bottom:24px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) :is(.overview-panel,.overview-metric,.counterparty-card){padding:16px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .settings-accordion{padding:0}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .settings-summary{padding:16px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .settings-accordion-body{padding:0 16px 16px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .liquid-glass-navigation:not([hidden]){position:fixed;z-index:25;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:12px;right:12px;max-width:520px;margin-inline:auto;display:flex;gap:4px;padding:8px;border-radius:16px;border:1px solid #ffffff2a;background:var(--crm-chrome);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .liquid-glass-navigation button{border-radius:8px;color:var(--crm-muted);font-weight:500;box-shadow:none}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .liquid-glass-navigation button[aria-current=page]{background:var(--crm-control);color:var(--crm-text);border-color:#ffffff40;box-shadow:none}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .liquid-glass-navigation button:hover{background:var(--crm-hover)}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .kanban-column{border-radius:12px;overflow:hidden}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .kanban-column-head{padding:12px 16px;min-height:48px}
 :is([data-crm-theme="modern"],[data-crm-theme="olive"]) .interface-themes{gap:12px}
 :root[data-crm-native="ios"]:is([data-crm-theme="modern"],[data-crm-theme="olive"]) .workspace{padding-bottom:24px}
}
@media(prefers-reduced-motion:reduce){:is([data-crm-theme="modern"],[data-crm-theme="olive"]) button{transition:none}}
