.mmcrm-app{--bg:#f5f7fb;--card:#fff;--text:#172033;--muted:#6f7b91;--line:#e5e9f2;--primary:#5c47ff;--primary2:#4734dd;--danger:#c63737;--shadow:0 14px 40px rgba(29,36,61,.08);font-family:Tahoma,Arial,sans-serif;color:var(--text);background:var(--bg);min-height:calc(100vh - 32px);margin:0 -20px -20px}.mmcrm-app *{box-sizing:border-box}.mmcrm-app .mmcrm-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.mmcrm-app .mmcrm-side{background:#121726;color:#fff;padding:22px 14px;position:sticky;top:32px;height:calc(100vh - 32px)}.mmcrm-app .mmcrm-brand{padding:10px 12px 24px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:16px}.mmcrm-app .mmcrm-brand b{font-size:20px;display:block}.mmcrm-app .mmcrm-brand small{color:#9aa6bd}.mmcrm-app .mmcrm-side nav{display:grid;gap:5px}.mmcrm-app .mmcrm-side nav button{appearance:none;border:0;background:transparent;color:#bac3d5;padding:12px 13px;border-radius:10px;text-align:right;display:flex;gap:10px;align-items:center;cursor:pointer}.mmcrm-app .mmcrm-side nav button:hover,.mmcrm-app .mmcrm-side nav button.active{background:rgba(255,255,255,.08);color:#fff}.mmcrm-app .mmcrm-main{min-width:0}.mmcrm-app .mmcrm-main>header{height:92px;padding:20px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.85);position:sticky;top:32px;z-index:20;backdrop-filter:blur(12px)}.mmcrm-app .mmcrm-main>header h1{margin:0;font-size:22px}.mmcrm-app .mmcrm-main>header p{margin:5px 0 0;color:var(--muted)}.mmcrm-app #mmcrm-view{padding:24px 28px 60px}.mmcrm-app .mmcrm-mobile-nav{display:none}.mmcrm-app .mmcrm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.mmcrm-app .mmcrm-stat,.mmcrm-app .card,.mmcrm-app .client-card,.mmcrm-app .timer-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px}.mmcrm-app .mmcrm-stat{padding:18px;display:flex;gap:14px;align-items:center}.mmcrm-app .mmcrm-stat>.dashicons{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#f0edff;color:var(--primary)}.mmcrm-app .mmcrm-stat small,.mmcrm-app .mmcrm-stat em{display:block;color:var(--muted);font-style:normal}.mmcrm-app .mmcrm-stat strong{display:block;font-size:21px;margin:4px 0}.mmcrm-app .mmcrm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mmcrm-app .card{padding:18px}.mmcrm-app .card h3{margin:0 0 14px}.mmcrm-app .card-head,.mmcrm-app .section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.mmcrm-app .btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:9px 13px;border-radius:9px;cursor:pointer}.mmcrm-app .btn:hover{border-color:#c8d0df}.mmcrm-app .btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.mmcrm-app .btn.primary:hover{background:var(--primary2)}.mmcrm-app .btn.danger{color:#fff;background:var(--danger);border-color:var(--danger)}.mmcrm-app .btn.sm{padding:6px 9px;font-size:12px}.mmcrm-app .btn.active{border-color:var(--primary);color:var(--primary)}.mmcrm-app .rows{display:grid}.mmcrm-app .row{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-bottom:1px solid var(--line);padding:12px 4px;background:transparent;text-align:right;cursor:pointer}.mmcrm-app .row:last-child{border-bottom:0}.mmcrm-app .row small{display:block;color:var(--muted);margin-top:4px}.mmcrm-app .status-dot{width:8px;height:8px;border-radius:50%;background:#9aa6bd}.mmcrm-app .status-dot.in_progress{background:#5c47ff}.mmcrm-app .status-dot.review{background:#e5a427}.mmcrm-app .status-dot.done,.mmcrm-app .status-dot.closed{background:#2d9a61}.mmcrm-app .status-dot.handed_off{background:#2382c8}.mmcrm-app .danger{color:var(--danger)!important}.mmcrm-app .module-bars,.mmcrm-app .dim-list{display:grid;gap:8px}.mmcrm-app .module-bars>div,.mmcrm-app .dim-list>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.mmcrm-app .client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.mmcrm-app .client-card{padding:17px}.mmcrm-app .client-card h3{margin:0}.mmcrm-app .client-card p{color:var(--muted)}.mmcrm-app .client-card footer{display:flex;gap:8px;margin-top:14px}.mmcrm-app .chips{display:flex;gap:6px;flex-wrap:wrap}.mmcrm-app .chips span{background:#f2f4f8;padding:5px 8px;border-radius:20px;font-size:12px}.mmcrm-app .filters{display:flex;gap:8px}.mmcrm-app .filters select,.mmcrm-app .report-filter select,.mmcrm-app .report-filter input,.mmcrm-app input,.mmcrm-app select,.mmcrm-app textarea{border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:#fff;max-width:100%}.mmcrm-app .modal-back{position:fixed;inset:0;background:rgba(9,13,24,.55);z-index:99999;display:grid;place-items:center;padding:18px}.mmcrm-app .modal{width:min(760px,96vw);max-height:90vh;background:#fff;border-radius:16px;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.28)}.mmcrm-app .modal>header,.mmcrm-app .modal>footer{position:sticky;background:#fff;z-index:2;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.mmcrm-app .modal>footer{bottom:0;border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end;gap:8px}.mmcrm-app .modal>header{top:0}.mmcrm-app .modal>header h3{margin:0}.mmcrm-app .modal>header button{border:0;background:none;font-size:26px;cursor:pointer}.mmcrm-app .modal-body{padding:18px}.mmcrm-app .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mmcrm-app .form-grid label{display:grid;gap:7px}.mmcrm-app .span2{grid-column:span 2}.mmcrm-app .form-grid input,.mmcrm-app .form-grid select,.mmcrm-app .form-grid textarea{width:100%}.mmcrm-app .tag-picks{display:flex;gap:7px;flex-wrap:wrap}.mmcrm-app .tag-picks label{display:flex;gap:5px;align-items:center;border:1px solid var(--line);padding:7px 9px;border-radius:20px}.mmcrm-app .asset-list{display:grid;gap:8px;margin-bottom:16px}.mmcrm-app .asset-list>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px}.mmcrm-app .work-detail{display:grid;gap:16px}.mmcrm-app .detail-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.mmcrm-app .detail-kpis>div{background:#f7f8fb;padding:10px;border-radius:10px}.mmcrm-app .detail-kpis small{display:block;color:var(--muted);margin-bottom:4px}.mmcrm-app .detail-desc{line-height:1.9;background:#fbfbfd;border:1px solid var(--line);padding:12px;border-radius:10px}.mmcrm-app .action-grid,.mmcrm-app .status-actions,.mmcrm-app .actions{display:flex;gap:8px;flex-wrap:wrap}.mmcrm-app .timer-list{display:grid;gap:10px;margin-bottom:18px}.mmcrm-app .timer-card{padding:15px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center}.mmcrm-app .timer-card small{display:block;color:var(--muted);margin-top:4px}.mmcrm-app .timer-card>strong{font:700 22px monospace}.mmcrm-app .work-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mmcrm-app .work-picker button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px;text-align:right;cursor:pointer}.mmcrm-app .work-picker small{display:block;color:var(--muted);margin-top:4px}.mmcrm-app .mmcrm-top-timers{display:flex;gap:7px}.mmcrm-app .timer-pill{border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 10px;display:grid;gap:2px;text-align:right}.mmcrm-app .timer-pill b{font-family:monospace}.mmcrm-app .timer-pill.running{border-color:#bce4cd}.mmcrm-app .table{display:grid;overflow:auto}.mmcrm-app .tr{display:grid;grid-template-columns:2fr 1.5fr 1fr 1fr;gap:10px;padding:10px 8px;border-bottom:1px solid var(--line);min-width:680px}.mmcrm-app .tr.th{background:#f7f8fb;color:var(--muted);font-weight:700}.mmcrm-app .report-filter{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:18px}.mmcrm-app .report-filter>div{display:flex;gap:8px;flex-wrap:wrap}.mmcrm-app .report-filter label{display:grid;gap:5px}.mmcrm-app .settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mmcrm-app .settings-grid .span2{grid-column:span 2}.mmcrm-app .switch{display:flex;gap:8px;align-items:center;margin:16px 0}.mmcrm-app .codebox{width:100%;min-height:360px;direction:ltr;text-align:left;font-family:monospace;font-size:12px;white-space:pre}.mmcrm-app .perm-wrap{display:grid;gap:12px}.mmcrm-app .perm-table{display:grid;overflow:auto}.mmcrm-app .perm-head,.mmcrm-app .perm-row{display:grid;grid-template-columns:2fr 1.4fr repeat(6,.7fr);gap:8px;align-items:center;min-width:980px;padding:8px;border-bottom:1px solid var(--line)}.mmcrm-app .perm-head{font-weight:700;color:var(--muted);background:#f7f8fb}.mmcrm-app .empty,.mmcrm-app .mmcrm-loading,.mmcrm-app .mmcrm-fatal{padding:28px;text-align:center;color:var(--muted)}.mmcrm-app .mmcrm-toast{position:fixed;left:24px;bottom:24px;background:#1f8c59;color:#fff;padding:11px 15px;border-radius:9px;z-index:100000;box-shadow:var(--shadow)}.mmcrm-app .mmcrm-toast.bad{background:#b63636}@media (max-width:1100px){.mmcrm-app .client-grid,.mmcrm-app .work-picker{grid-template-columns:1fr 1fr}.mmcrm-app .mmcrm-stats{grid-template-columns:1fr 1fr}.mmcrm-app .detail-kpis{grid-template-columns:1fr 1fr}}@media (max-width:782px){.mmcrm-app{margin:0 -10px -10px}.mmcrm-app .mmcrm-shell{grid-template-columns:1fr}.mmcrm-app .mmcrm-side{position:fixed;right:0;top:0;height:100vh;width:245px;z-index:99998;transform:translateX(105%);transition:.2s}.mmcrm-app .mmcrm-side.open{transform:none}.mmcrm-app .mmcrm-mobile-nav{display:block;border:0;background:#f0f2f7;border-radius:8px;padding:9px}.mmcrm-app .mmcrm-main>header{top:0;padding:14px 15px;height:auto}.mmcrm-app .mmcrm-main>header p{display:none}.mmcrm-app #mmcrm-view{padding:16px}.mmcrm-app .mmcrm-top-timers{display:none}.mmcrm-app .mmcrm-grid2,.mmcrm-app .client-grid,.mmcrm-app .work-picker,.mmcrm-app .settings-grid,.mmcrm-app .form-grid{grid-template-columns:1fr}.mmcrm-app .settings-grid .span2,.mmcrm-app .span2{grid-column:span 1}.mmcrm-app .mmcrm-stats{grid-template-columns:1fr 1fr}.mmcrm-app .timer-card{grid-template-columns:1fr auto}.mmcrm-app .timer-card>div:last-child{grid-column:1/-1}.mmcrm-app .report-filter{display:grid}.mmcrm-app .detail-kpis{grid-template-columns:1fr 1fr}.mmcrm-app .section-head{align-items:stretch}.mmcrm-app .filters{display:grid;grid-template-columns:1fr 1fr}}@media print{.mmcrm-app .mmcrm-side,.mmcrm-app .mmcrm-main>header,.mmcrm-app .section-head,.mmcrm-app .report-filter{display:none!important}.mmcrm-app .mmcrm-shell{display:block}.mmcrm-app{background:#fff;margin:0}.mmcrm-app .card,.mmcrm-app .mmcrm-stat{box-shadow:none;break-inside:avoid}.mmcrm-app #mmcrm-view{padding:0}}.mmcrm-app .kanban{display:grid;grid-template-columns:repeat(5,minmax(240px,1fr));gap:12px;overflow:auto;padding-bottom:8px}.mmcrm-app .kanban-col{background:#eef1f7;border:1px solid var(--line);border-radius:13px;min-height:520px}.mmcrm-app .kanban-col>header{padding:12px 13px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.mmcrm-app .kanban-col>header span{background:#fff;border:1px solid var(--line);border-radius:20px;padding:3px 8px;font-size:12px}.mmcrm-app .kanban-drop{padding:10px;min-height:460px;display:grid;align-content:start;gap:9px}.mmcrm-app .kanban-drop.over{outline:2px dashed var(--primary);outline-offset:-6px;border-radius:10px}.mmcrm-app .kanban-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px;box-shadow:0 8px 20px rgba(26,34,56,.05);display:grid;gap:6px;cursor:grab}.mmcrm-app .kanban-card small,.mmcrm-app .kanban-card span,.mmcrm-app .kanban-card em{color:var(--muted);font-size:12px;font-style:normal}.mmcrm-app .kanban-card.locked{border-color:#e4bcbc}.mmcrm-app .kanban-col.readonly{background:#f3f5f8}.mmcrm-app .tag-cloud{margin-top:14px}.mmcrm-app .tag-admin{display:grid;gap:12px}@media (max-width:782px){.mmcrm-app .kanban{grid-template-columns:repeat(5,82vw)}}
/* v2 alpha.2 — classic ProCRM-inspired frontend */
.mmcrm-frontend-wrap{width:100%;max-width:100%;margin:0 auto;direction:rtl}
.mmcrm-classic{--bg:#f8f8fc;--card:#fff;--text:#242236;--muted:#817f96;--line:#e9e7f1;--primary:#5b50ba;--primary2:#463ba6;--shadow:0 8px 28px rgba(41,35,85,.055);background:var(--bg);font-family:Tahoma,Arial,sans-serif}
.mmcrm-classic.mmcrm-frontend{margin:0;min-height:96vh;border:1px solid #e6e3ef;border-radius:22px;overflow:hidden}
.mmcrm-classic .mmcrm-shell{grid-template-columns:264px minmax(0,1fr);min-height:96vh}
.mmcrm-classic .mmcrm-side{background:#fff;color:var(--text);padding:22px 15px 14px;border-left:1px solid var(--line);box-shadow:-5px 0 28px rgba(35,31,72,.03);display:flex;flex-direction:column;top:32px}
.mmcrm-classic .mmcrm-brand{display:flex;align-items:center;gap:11px;padding:4px 10px 20px;margin-bottom:10px;border-bottom:0}
.mmcrm-classic .mmcrm-brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#6b5ed0,#4d43ac);color:#fff;font-size:19px;font-weight:800;box-shadow:0 8px 20px rgba(91,80,186,.22)}
.mmcrm-classic .mmcrm-brand b{font-size:17px;color:#29263b;line-height:1.25}
.mmcrm-classic .mmcrm-brand small{display:block;color:#9a97aa;font-size:10px;margin-top:3px}
.mmcrm-classic .mmcrm-side nav{gap:4px;flex:1}
.mmcrm-classic .mmcrm-side nav button{width:100%;color:#6d6a7f;padding:11px 13px;border-radius:9px;font-size:13px;font-weight:500;transition:.16s ease}
.mmcrm-classic .mmcrm-side nav button .dashicons{font-size:18px;width:20px;height:20px;color:#8c89a1}
.mmcrm-classic .mmcrm-side nav button:hover{background:#f7f5ff;color:#5045aa}
.mmcrm-classic .mmcrm-side nav button.active{background:#eeeafd;color:#574bb5;font-weight:700}
.mmcrm-classic .mmcrm-side nav button.active .dashicons{color:#574bb5}
.mmcrm-classic .mmcrm-side-user{display:grid;grid-template-columns:38px minmax(0,1fr) 28px;gap:9px;align-items:center;border-top:1px solid var(--line);padding:15px 7px 2px;margin-top:12px}
.mmcrm-classic .mmcrm-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eeeafd;color:#574bb5;font-weight:800}
.mmcrm-classic .mmcrm-side-user b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmcrm-classic .mmcrm-side-user small{display:block;color:#9a97aa;font-size:10px;margin-top:2px}
.mmcrm-classic .mmcrm-side-user a{color:#aaa5ba;text-decoration:none}
.mmcrm-classic .mmcrm-main>header{height:75px;padding:14px 26px;background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none;top:32px}
.mmcrm-classic .mmcrm-main>header h1{font-size:19px;color:#2e2b40}
.mmcrm-classic .mmcrm-main>header p{font-size:11px;color:#9a97aa;margin-top:4px}
.mmcrm-classic .mmcrm-header-left{display:flex;align-items:center;gap:13px}
.mmcrm-classic .mmcrm-welcome{font-size:11px;color:#858197;white-space:nowrap}
.mmcrm-classic .mmcrm-welcome b{color:#4e4868}
.mmcrm-classic #mmcrm-view{padding:22px 24px 48px}
.mmcrm-classic .mmcrm-stats{gap:12px;margin-bottom:15px}
.mmcrm-classic .mmcrm-stat,.mmcrm-classic .card,.mmcrm-classic .client-card,.mmcrm-classic .timer-card{border-color:var(--line);border-radius:12px;box-shadow:var(--shadow)}
.mmcrm-classic .mmcrm-stat{padding:16px 17px;min-height:92px}
.mmcrm-classic .mmcrm-stat>.dashicons{width:38px;height:38px;border-radius:10px;background:#f0edff;color:#5b50ba;font-size:18px}
.mmcrm-classic .mmcrm-stat small{font-size:10px;color:#9793a8}
.mmcrm-classic .mmcrm-stat strong{font-size:18px;color:#302d43}
.mmcrm-classic .mmcrm-stat em{font-size:9px;color:#aaa6b7}
.mmcrm-classic .mmcrm-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:17px}
.mmcrm-classic .mmcrm-quick-action{border:1px solid var(--line);background:#fff;color:#373347;border-radius:11px;padding:13px 14px;display:flex;align-items:center;gap:10px;text-align:right;cursor:pointer;box-shadow:var(--shadow);font-family:inherit;transition:.16s ease}
.mmcrm-classic .mmcrm-quick-action:hover{border-color:#cac4ec;transform:translateY(-1px);box-shadow:0 10px 26px rgba(74,63,150,.09)}
.mmcrm-classic .mmcrm-quick-action>span{width:35px;height:35px;border-radius:9px;display:grid;place-items:center;background:#f0edff;color:#5b50ba;font-size:17px}
.mmcrm-classic .mmcrm-quick-action b{display:block;font-size:12px}
.mmcrm-classic .mmcrm-quick-action small{display:block;font-size:9px;color:#a19daf;margin-top:3px}
.mmcrm-classic .mmcrm-quick-action.primary{background:#5b50ba;border-color:#5b50ba;color:#fff}
.mmcrm-classic .mmcrm-quick-action.primary>span{background:rgba(255,255,255,.15);color:#fff}
.mmcrm-classic .mmcrm-quick-action.primary small{color:#dedaf7}
.mmcrm-classic .card{padding:16px}
.mmcrm-classic .card h3{font-size:13px;color:#302d43}
.mmcrm-classic .card-head>small{font-size:9px;color:#aaa6b7}
.mmcrm-classic .btn{border-radius:8px;font-family:inherit;font-size:11px;padding:8px 11px}
.mmcrm-classic .btn.primary{background:#5b50ba;border-color:#5b50ba}
.mmcrm-classic .btn.primary:hover{background:#4b40a8}
.mmcrm-classic .row{padding:11px 4px}
.mmcrm-classic .row b{font-size:11px}
.mmcrm-classic .row small,.mmcrm-classic .row-meta{font-size:9px}
.mmcrm-classic .module-bars>div,.mmcrm-classic .dim-list>div{font-size:11px;padding:9px 0}
.mmcrm-classic .timer-pill{border-radius:9px;font-size:9px;padding:6px 9px;box-shadow:none}
.mmcrm-login-card,.mmcrm-shortcode-notice{direction:rtl;max-width:440px;margin:36px auto;padding:24px;background:#fff;border:1px solid #e7e4ef;border-radius:18px;box-shadow:0 14px 42px rgba(37,31,77,.09);font-family:Tahoma,Arial,sans-serif;color:#29263b}
.mmcrm-login-logo{width:46px;height:46px;display:grid;place-items:center;margin:0 auto 12px;border-radius:14px;background:#5b50ba;color:#fff;font-size:21px;font-weight:800}
.mmcrm-login-card h3{text-align:center;margin:0 0 8px;color:#4f44ad;font-size:18px}
.mmcrm-login-card>p{text-align:center;color:#817f96;font-size:12px;line-height:1.8;margin:0 0 18px}
.mmcrm-login-card label{display:block;font-size:11px;color:#646176;margin-bottom:5px}
.mmcrm-login-card input[type=text],.mmcrm-login-card input[type=password]{width:100%;box-sizing:border-box;border:1px solid #dcd8e9;border-radius:9px;padding:10px 11px}
.mmcrm-login-card .login-remember label{display:flex;gap:7px;align-items:center}
.mmcrm-login-card input[type=submit]{border:0;border-radius:9px;background:#5b50ba;color:#fff;padding:10px 18px;cursor:pointer;font-family:inherit}
.mmcrm-shortcode-notice-error{border-right:4px solid #c63737}
@media(max-width:1200px){.mmcrm-classic .mmcrm-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.mmcrm-classic.mmcrm-frontend{border-radius:0;border-left:0;border-right:0}.mmcrm-classic .mmcrm-shell{grid-template-columns:1fr}.mmcrm-classic .mmcrm-side{top:0;width:264px}.mmcrm-classic .mmcrm-main>header{top:0}.mmcrm-classic .mmcrm-welcome{display:none}.mmcrm-classic .mmcrm-quick-actions{grid-template-columns:1fr 1fr}.mmcrm-classic #mmcrm-view{padding:15px}}
@media(max-width:520px){.mmcrm-classic .mmcrm-stats,.mmcrm-classic .mmcrm-quick-actions{grid-template-columns:1fr}.mmcrm-classic #mmcrm-view{padding:12px}}
/* alpha.3 — project tag empty-state / inline tag creation */
.mmcrm-app .tag-picks>.tag-empty{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px dashed #cfc9ee;background:#faf9ff;border-radius:10px;color:var(--muted)}
.mmcrm-app .tag-picks>.tag-empty small{color:var(--muted)}
.mmcrm-app .tag-picks>.tag-add{border-style:dashed;color:var(--primary)}
@media (max-width:782px){.mmcrm-app .tag-picks>.tag-empty{align-items:stretch;flex-direction:column}}


/* alpha.4 — timer selector, same-day edit/delete, visible alerts, dark mode */
.mmcrm-theme-toggle{border:1px solid var(--line);background:transparent;color:inherit;border-radius:10px;padding:9px 11px;margin:10px 4px 2px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-family:inherit}
.mmcrm-theme-toggle em{font-style:normal;font-size:11px}
.mmcrm-classic .mmcrm-theme-toggle{background:#faf9fd;color:#6f6b80;border-color:#ece9f3}
.mmcrm-classic .mmcrm-theme-toggle:hover{background:#f2efff;color:#574bb5}
.mmcrm-app .timer-launch .card-head small,.mmcrm-app .timer-history .card-head small{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin-top:4px}
.mmcrm-app .timer-launch-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:end}
.mmcrm-app .timer-launch-row label{display:grid;gap:7px;color:var(--muted);font-size:11px}
.mmcrm-app .timer-launch-row select{width:100%;min-height:42px}
.mmcrm-app .timer-launch-row .btn{height:42px;display:flex;align-items:center;justify-content:center;gap:5px}
.mmcrm-app .timer-selected-info{margin-top:10px;padding:10px 12px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.mmcrm-app .timer-selected-info b{color:var(--text)}
.mmcrm-app .time-history-list{display:grid}
.mmcrm-app .time-history-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 90px auto;gap:12px;align-items:center;padding:12px 5px;border-bottom:1px solid var(--line)}
.mmcrm-app .time-history-row:last-child{border-bottom:0}
.mmcrm-app .time-history-main small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.mmcrm-app .time-history-row>strong{font-family:monospace;font-size:16px}
.mmcrm-app .time-status{display:inline-flex;justify-content:center;border-radius:20px;padding:5px 8px;font-size:10px;background:#f0f2f7;color:var(--muted)}
.mmcrm-app .time-status.stopped{background:#eaf7ef;color:#25784b}
.mmcrm-app .time-status.running{background:#eeeafd;color:#574bb5}
.mmcrm-app .time-row-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.mmcrm-app .locked-note{color:var(--muted);font-size:10px}
.mmcrm-app .mmcrm-info-note{background:#f5f3ff;border:1px solid #dfdafb;color:#675e93;padding:10px 12px;border-radius:9px;font-size:11px;line-height:1.8}
.mmcrm-app .empty.compact{padding:14px}

/* Alerts are intentionally mounted on body so modal scroll can never hide them. */
.mmcrm-toast-stack{position:fixed;top:max(20px,calc(var(--wp-admin--admin-bar--height,0px) + 12px));left:50%;transform:translateX(-50%);z-index:1000005;display:grid;gap:9px;width:min(520px,calc(100vw - 28px));pointer-events:none;direction:rtl}
.mmcrm-toast-stack .mmcrm-toast{pointer-events:auto;background:#1f8c59;color:#fff;border-radius:12px;padding:12px 14px;box-shadow:0 18px 50px rgba(16,26,43,.28);display:grid;grid-template-columns:24px minmax(0,1fr) 26px;align-items:center;gap:9px;font-family:Tahoma,Arial,sans-serif;animation:mmcrmToastIn .16s ease-out}
.mmcrm-toast-stack .mmcrm-toast.bad{background:#b72f3b;border:1px solid rgba(255,255,255,.18)}
.mmcrm-toast-stack .mmcrm-toast b{font-size:12px;line-height:1.8;font-weight:700}
.mmcrm-toast-stack .mmcrm-toast button{appearance:none;border:0;background:rgba(255,255,255,.13);color:#fff;border-radius:7px;width:26px;height:26px;cursor:pointer;font-size:18px;line-height:1}
@keyframes mmcrmToastIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}

/* Dark theme */
.mmcrm-app.mmcrm-dark{--bg:#0f1118;--card:#171a23;--text:#eef0f7;--muted:#9aa2b2;--line:#2a2e3a;--primary:#8173ff;--primary2:#6e5ef2;--danger:#e05b67;--shadow:0 14px 40px rgba(0,0,0,.26);color-scheme:dark;background:var(--bg)}
.mmcrm-app.mmcrm-dark.mmcrm-classic{--bg:#0f1118;--card:#171a23;--text:#eef0f7;--muted:#9aa2b2;--line:#2a2e3a;--primary:#8173ff;--primary2:#6e5ef2;--shadow:0 10px 30px rgba(0,0,0,.25);border-color:#252936}
.mmcrm-app.mmcrm-dark .mmcrm-side,.mmcrm-app.mmcrm-dark .mmcrm-main>header,.mmcrm-app.mmcrm-dark .card,.mmcrm-app.mmcrm-dark .client-card,.mmcrm-app.mmcrm-dark .timer-card,.mmcrm-app.mmcrm-dark .modal,.mmcrm-app.mmcrm-dark .modal>header,.mmcrm-app.mmcrm-dark .modal>footer{background:var(--card);color:var(--text);border-color:var(--line)}
.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-side{background:#141720;color:var(--text);box-shadow:-5px 0 28px rgba(0,0,0,.18)}
.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-brand b,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-main>header h1,.mmcrm-app.mmcrm-dark.mmcrm-classic .card h3,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-stat strong,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-quick-action b{color:var(--text)}
.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-brand small,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-main>header p,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-welcome,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-quick-action small{color:var(--muted)}
.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-side nav button{color:#aaaec0}
.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-side nav button:hover,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-side nav button.active{background:#252238;color:#bbb2ff}
.mmcrm-app.mmcrm-dark .mmcrm-theme-toggle,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-theme-toggle{background:#1b1e29;color:#c8c5d7;border-color:var(--line)}
.mmcrm-app.mmcrm-dark .btn,.mmcrm-app.mmcrm-dark input,.mmcrm-app.mmcrm-dark select,.mmcrm-app.mmcrm-dark textarea,.mmcrm-app.mmcrm-dark .work-picker button,.mmcrm-app.mmcrm-dark .timer-pill,.mmcrm-app.mmcrm-dark .mmcrm-quick-action{background:#1b1e29;color:var(--text);border-color:var(--line)}
.mmcrm-app.mmcrm-dark .btn.primary,.mmcrm-app.mmcrm-dark .mmcrm-quick-action.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.mmcrm-app.mmcrm-dark input::placeholder,.mmcrm-app.mmcrm-dark textarea::placeholder{color:#6f7686}
.mmcrm-app.mmcrm-dark .chips span,.mmcrm-app.mmcrm-dark .detail-kpis>div,.mmcrm-app.mmcrm-dark .detail-desc,.mmcrm-app.mmcrm-dark .tr.th,.mmcrm-app.mmcrm-dark .perm-head,.mmcrm-app.mmcrm-dark .time-status{background:#1d202b;color:var(--muted);border-color:var(--line)}
.mmcrm-app.mmcrm-dark .detail-desc{color:#d8dbe5}
.mmcrm-app.mmcrm-dark .kanban-col{background:#141720;border-color:var(--line)}
.mmcrm-app.mmcrm-dark .kanban-col>header span,.mmcrm-app.mmcrm-dark .kanban-card{background:#1b1e29;color:var(--text);border-color:var(--line)}
.mmcrm-app.mmcrm-dark .kanban-col.readonly{background:#12151d}
.mmcrm-app.mmcrm-dark .tag-picks>.tag-empty{background:#171a23;border-color:#45405f}
.mmcrm-app.mmcrm-dark .mmcrm-info-note{background:#211e34;border-color:#393353;color:#b7afe6}
.mmcrm-app.mmcrm-dark .time-status.stopped{background:#173126;color:#82d5a6}
.mmcrm-app.mmcrm-dark .time-status.running{background:#292441;color:#b8afff}
.mmcrm-app.mmcrm-dark .mmcrm-stat>.dashicons,.mmcrm-app.mmcrm-dark.mmcrm-classic .mmcrm-quick-action>span{background:#28233f;color:#aa9fff}
.mmcrm-app.mmcrm-dark .modal-back{background:rgba(0,0,0,.72)}

@media(max-width:782px){.mmcrm-app .timer-launch-row{grid-template-columns:1fr 1fr}.mmcrm-app .timer-launch-row label{grid-column:1/-1}.mmcrm-app .time-history-row{grid-template-columns:minmax(0,1fr) auto}.mmcrm-app .time-history-row .time-status{justify-self:start}.mmcrm-app .time-row-actions{justify-self:end}.mmcrm-toast-stack{top:14px}}
@media(max-width:520px){.mmcrm-app .timer-launch-row{grid-template-columns:1fr}.mmcrm-app .timer-launch-row label{grid-column:auto}.mmcrm-app .time-history-row{grid-template-columns:1fr auto}.mmcrm-app .time-row-actions{grid-column:1/-1;justify-self:stretch}.mmcrm-app .time-row-actions .btn{flex:1}}

/* alpha.5 context forms */
.mmcrm-app [hidden]{display:none!important}.mmcrm-app .form-grid label small{color:var(--muted);font-size:11px;line-height:1.7}.mmcrm-app .table .tr span small{display:block;color:var(--muted);margin-top:3px}

/* alpha.6 — modern SaaS redesign inspired by contemporary CRM dashboards */
.mmcrm-classic{
  --bg:#f3f6fd;
  --card:#ffffff;
  --text:#20263a;
  --muted:#7d879f;
  --line:#e5eaf5;
  --primary:#7c4dff;
  --primary2:#5f3df0;
  --primary-soft:#f2ecff;
  --shadow:0 18px 45px rgba(22,34,66,.08);
  font-family:Inter,Segoe UI,Tahoma,Arial,sans-serif;
  background:radial-gradient(circle at top left,rgba(124,77,255,.10),transparent 30%),linear-gradient(180deg,#f7f9ff 0%,#f3f6fd 100%);
}
.mmcrm-classic.mmcrm-frontend{margin:0;min-height:96vh;border:0;border-radius:28px;overflow:hidden;box-shadow:0 30px 90px rgba(18,27,56,.10)}
.mmcrm-classic .mmcrm-shell{grid-template-columns:278px minmax(0,1fr);min-height:96vh}
.mmcrm-classic .mmcrm-side{background:rgba(255,255,255,.84);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-left:1px solid rgba(226,231,244,.92);box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 24px 60px rgba(22,34,66,.04);padding:28px 18px 18px;display:flex;flex-direction:column;gap:14px;top:32px}
.mmcrm-classic .mmcrm-brand{display:flex;align-items:center;gap:12px;padding:4px 10px 12px;margin:0;border-bottom:0}
.mmcrm-classic .mmcrm-brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#7c4dff 0%,#5f3df0 52%,#36bffa 100%);color:#fff;font-weight:900;font-size:20px;box-shadow:0 14px 34px rgba(124,77,255,.28)}
.mmcrm-classic .mmcrm-brand b{font-size:20px;line-height:1.1;color:#1f2435;letter-spacing:-.02em}
.mmcrm-classic .mmcrm-brand small{display:block;color:#8e96ab;font-size:11px;margin-top:5px;line-height:1.7}
.mmcrm-classic .mmcrm-side-caption{padding:0 12px;color:#9ba4bb;font-size:11px;text-transform:uppercase;letter-spacing:.12em}
.mmcrm-classic .mmcrm-side nav{gap:7px;flex:1}
.mmcrm-classic .mmcrm-side nav button{width:100%;display:flex;align-items:center;gap:11px;padding:13px 14px;border-radius:16px;color:#61697f;font-size:13px;font-weight:600;transition:all .18s ease;background:transparent;position:relative}
.mmcrm-classic .mmcrm-side nav button .dashicons{font-size:18px;width:20px;height:20px;color:#8d96ac;transition:inherit}
.mmcrm-classic .mmcrm-side nav button:hover{background:#f7f9ff;color:#5142d4;transform:translateX(-2px)}
.mmcrm-classic .mmcrm-side nav button.active{background:linear-gradient(135deg,rgba(124,77,255,.12),rgba(86,185,255,.09));color:#4c3fd0;box-shadow:inset 0 0 0 1px rgba(124,77,255,.12)}
.mmcrm-classic .mmcrm-side nav button.active:before{content:"";position:absolute;right:8px;top:10px;bottom:10px;width:4px;border-radius:10px;background:linear-gradient(180deg,#7c4dff,#46b0ff)}
.mmcrm-classic .mmcrm-side nav button.active .dashicons,.mmcrm-classic .mmcrm-side nav button:hover .dashicons{color:#5842e5}
.mmcrm-classic .mmcrm-side-bottom{display:grid;gap:12px;margin-top:auto}
.mmcrm-classic .mmcrm-theme-toggle{justify-content:flex-start;background:#fff;color:#666f86;border-color:#e8ebf5;border-radius:16px;padding:12px 14px;box-shadow:0 10px 30px rgba(19,28,57,.05)}
.mmcrm-classic .mmcrm-theme-toggle:hover{background:#faf8ff;color:#5743dc;border-color:#d9d2ff}
.mmcrm-classic .mmcrm-side-user{display:grid;grid-template-columns:42px minmax(0,1fr) 34px;gap:11px;align-items:center;background:#fff;border:1px solid #edf1f9;border-radius:18px;padding:14px 12px;box-shadow:0 10px 25px rgba(18,27,56,.05);margin-top:0}
.mmcrm-classic .mmcrm-avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#7c4dff,#4e64ff);color:#fff;font-size:14px;font-weight:800;box-shadow:0 12px 24px rgba(92,71,255,.20)}
.mmcrm-classic .mmcrm-side-user b,.mmcrm-classic .mmcrm-user-chip b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#1f2435}
.mmcrm-classic .mmcrm-side-user small,.mmcrm-classic .mmcrm-user-chip small{display:block;color:#9aa2b7;font-size:10px;margin-top:3px}
.mmcrm-classic .mmcrm-side-user a{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#f8f9ff;color:#8e95a8;text-decoration:none;transition:.18s}
.mmcrm-classic .mmcrm-side-user a:hover{background:#f0ecff;color:#5a43e6}
.mmcrm-classic .mmcrm-main>header{display:flex;align-items:center;justify-content:space-between;gap:16px;height:auto;padding:26px 28px 16px;background:transparent;border:0;backdrop-filter:none;box-shadow:none;top:32px}
.mmcrm-classic .mmcrm-head-copy h1{font-size:28px;line-height:1.1;margin:0;color:#191f31;letter-spacing:-.03em}
.mmcrm-classic .mmcrm-head-copy p{font-size:13px;color:#8b93a7;margin:8px 0 0}
.mmcrm-classic .mmcrm-header-left{display:flex;align-items:center;gap:12px;min-width:0}
.mmcrm-classic .mmcrm-searchbox{display:flex;align-items:center;gap:10px;min-width:320px;background:rgba(255,255,255,.92);border:1px solid rgba(229,234,245,.95);border-radius:18px;padding:12px 14px;box-shadow:0 12px 30px rgba(22,34,66,.06)}
.mmcrm-classic .mmcrm-searchbox .dashicons{color:#9aa2b5;font-size:18px;width:18px;height:18px}
.mmcrm-classic .mmcrm-searchbox input{border:0!important;background:transparent!important;padding:0!important;outline:none;box-shadow:none!important;color:#36405a;min-width:220px}
.mmcrm-classic .mmcrm-searchbox input::placeholder{color:#a2a9bb}
.mmcrm-classic .mmcrm-header-actions{display:flex;align-items:center;gap:10px}
.mmcrm-classic .mmcrm-icon-btn{width:46px;height:46px;border-radius:16px;border:1px solid rgba(229,234,245,.95);background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer;color:#717a92;box-shadow:0 12px 30px rgba(22,34,66,.05);transition:.18s}
.mmcrm-classic .mmcrm-icon-btn:hover{transform:translateY(-1px);color:#533ee1;border-color:#d9d1ff;box-shadow:0 16px 34px rgba(88,66,229,.10)}
.mmcrm-classic .mmcrm-icon-btn .dashicons{font-size:18px;width:18px;height:18px}
.mmcrm-classic .mmcrm-icon-btn.is-theme em{display:none}
.mmcrm-classic .mmcrm-user-chip{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;background:rgba(255,255,255,.92);border:1px solid rgba(229,234,245,.95);border-radius:18px;padding:8px 12px;box-shadow:0 12px 30px rgba(22,34,66,.05);min-width:170px}
.mmcrm-classic .mmcrm-top-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px 6px}
.mmcrm-classic .mmcrm-mobile-nav{display:none;border:1px solid #e8ecf6;background:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 10px 20px rgba(22,34,66,.05)}
.mmcrm-classic .mmcrm-mobile-nav .dashicons{font-size:18px;width:18px;height:18px;color:#5b45e4}
.mmcrm-classic #mmcrm-view{padding:16px 28px 56px}
.mmcrm-classic .mmcrm-top-timers{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.mmcrm-classic .timer-pill{border:1px solid #e8edf8;background:rgba(255,255,255,.96);border-radius:16px;padding:10px 12px;display:grid;gap:3px;min-width:148px;box-shadow:0 12px 24px rgba(22,34,66,.05)}
.mmcrm-classic .timer-pill span{font-size:11px;color:#6f7890;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmcrm-classic .timer-pill b{font-size:14px;color:#161c2d;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.mmcrm-classic .timer-pill.running{border-color:#d8d0ff;background:linear-gradient(135deg,#ffffff,#f7f4ff)}
.mmcrm-classic .mmcrm-stats{gap:16px;margin-bottom:18px}
.mmcrm-classic .mmcrm-stat{position:relative;overflow:hidden;border:0;box-shadow:0 18px 40px rgba(29,44,91,.14);border-radius:24px;padding:22px 22px 24px;min-height:138px;color:#fff;display:flex;align-items:flex-end}
.mmcrm-classic .mmcrm-stats .mmcrm-stat:nth-child(1){background:linear-gradient(135deg,#4f8dff 0%,#2ec9ff 100%)}
.mmcrm-classic .mmcrm-stats .mmcrm-stat:nth-child(2){background:linear-gradient(135deg,#23c483 0%,#0ba980 100%)}
.mmcrm-classic .mmcrm-stats .mmcrm-stat:nth-child(3){background:linear-gradient(135deg,#9858ff 0%,#f362b6 100%)}
.mmcrm-classic .mmcrm-stats .mmcrm-stat:nth-child(4){background:linear-gradient(135deg,#ffb31a 0%,#ff7f1a 100%)}
.mmcrm-classic .mmcrm-stat:after{content:"";position:absolute;left:-18px;bottom:-18px;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.13)}
.mmcrm-classic .mmcrm-stat>.dashicons{position:absolute;left:18px;top:18px;width:46px;height:46px;border-radius:15px;background:rgba(255,255,255,.18);color:#fff;font-size:20px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.15)}
.mmcrm-classic .mmcrm-stat small,.mmcrm-classic .mmcrm-stat em{color:rgba(255,255,255,.78);font-size:12px}
.mmcrm-classic .mmcrm-stat strong{display:block;font-size:34px;line-height:1.05;color:#fff;margin:9px 0 5px;letter-spacing:-.03em}
.mmcrm-classic .mmcrm-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.mmcrm-classic .mmcrm-quick-action{background:rgba(255,255,255,.95);border:1px solid rgba(229,234,245,.95);border-radius:22px;padding:17px 18px;display:flex;align-items:center;gap:14px;text-align:right;cursor:pointer;box-shadow:0 18px 40px rgba(22,34,66,.07);transition:all .18s ease}
.mmcrm-classic .mmcrm-quick-action:hover{transform:translateY(-2px);border-color:#d8cffd;box-shadow:0 22px 46px rgba(92,71,255,.12)}
.mmcrm-classic .mmcrm-quick-action>span{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#f4efff,#eef5ff);color:#5a43e7;font-size:18px;box-shadow:inset 0 0 0 1px rgba(124,77,255,.08)}
.mmcrm-classic .mmcrm-quick-action b{display:block;font-size:14px;color:#1d2435}
.mmcrm-classic .mmcrm-quick-action small{display:block;font-size:11px;color:#8b93a7;margin-top:4px;line-height:1.65}
.mmcrm-classic .mmcrm-quick-action.primary{background:linear-gradient(135deg,#7b4dff,#5f3df0);border-color:transparent;color:#fff}
.mmcrm-classic .mmcrm-quick-action.primary>span{background:rgba(255,255,255,.17);color:#fff;box-shadow:none}
.mmcrm-classic .mmcrm-quick-action.primary b,.mmcrm-classic .mmcrm-quick-action.primary small{color:#fff}
.mmcrm-classic .mmcrm-grid2{gap:18px}
.mmcrm-classic .card,.mmcrm-classic .client-card,.mmcrm-classic .timer-card{background:rgba(255,255,255,.96);border:1px solid rgba(229,234,245,.95);border-radius:24px;box-shadow:0 18px 45px rgba(22,34,66,.07)}
.mmcrm-classic .card{padding:22px}
.mmcrm-classic .card h3{font-size:16px;line-height:1.4;color:#1d2435;margin:0}
.mmcrm-classic .card-head,.mmcrm-classic .section-head{margin-bottom:18px;gap:14px}
.mmcrm-classic .card-head small{font-size:11px;color:#95a0b6}
.mmcrm-classic .btn{border-radius:14px;padding:11px 14px;font-size:12px;font-weight:700;border:1px solid #e7ebf6;background:#fff;color:#26304a;box-shadow:0 10px 24px rgba(22,34,66,.03);transition:all .18s ease;font-family:inherit}
.mmcrm-classic .btn:hover{transform:translateY(-1px);border-color:#dadcf1;box-shadow:0 14px 28px rgba(22,34,66,.08)}
.mmcrm-classic .btn.primary{background:linear-gradient(135deg,#7c4dff,#5f3df0);border-color:transparent;color:#fff;box-shadow:0 16px 34px rgba(92,71,255,.24)}
.mmcrm-classic .btn.primary:hover{background:linear-gradient(135deg,#6f45ef,#5635e7)}
.mmcrm-classic .btn.danger{background:linear-gradient(135deg,#e34c63,#c93646);border-color:transparent;box-shadow:0 16px 34px rgba(201,54,70,.18)}
.mmcrm-classic .filters{display:flex;gap:10px;flex-wrap:wrap}
.mmcrm-classic .filters select,.mmcrm-classic .report-filter select,.mmcrm-classic .report-filter input,.mmcrm-classic input,.mmcrm-classic select,.mmcrm-classic textarea{border:1px solid #e7ebf5;border-radius:16px;padding:12px 13px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);color:#1d2435;transition:.18s}
.mmcrm-classic input:focus,.mmcrm-classic select:focus,.mmcrm-classic textarea:focus{outline:none;border-color:#cfc6ff;box-shadow:0 0 0 4px rgba(124,77,255,.10)}
.mmcrm-classic .rows{display:grid;gap:8px}
.mmcrm-classic .row{border:1px solid transparent;border-bottom:0;background:#fff;border-radius:18px;padding:14px 16px;transition:.16s;box-shadow:0 8px 20px rgba(22,34,66,.04)}
.mmcrm-classic .row:hover{border-color:#e6e0ff;box-shadow:0 14px 30px rgba(92,71,255,.09);transform:translateY(-1px)}
.mmcrm-classic .row b{font-size:14px;color:#1d2435}
.mmcrm-classic .row small,.mmcrm-classic .row-meta{font-size:11px;color:#8a93a8}
.mmcrm-classic .status-dot{width:10px;height:10px}
.mmcrm-classic .module-bars>div,.mmcrm-classic .dim-list>div{padding:12px 0;border-bottom:1px dashed #e8edf7;font-size:13px}
.mmcrm-classic .client-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mmcrm-classic .client-card{padding:20px;display:flex;flex-direction:column;gap:10px}
.mmcrm-classic .client-card h3{font-size:16px}
.mmcrm-classic .client-card p{color:#8a92a8;line-height:1.8;margin:0}
.mmcrm-classic .client-card footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.mmcrm-classic .chips{gap:8px}
.mmcrm-classic .chips span{background:#f6f8fd;padding:7px 10px;border-radius:999px;font-size:11px;color:#6c7690;border:1px solid #edf1fa}
.mmcrm-classic .work-detail{gap:18px}
.mmcrm-classic .detail-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mmcrm-classic .detail-kpis>div{background:#f7f9ff;border:1px solid #edf2fb;border-radius:18px;padding:14px 15px}
.mmcrm-classic .detail-kpis strong{display:block;font-size:16px;color:#1c2234}
.mmcrm-classic .detail-kpis small{color:#8d96ab}
.mmcrm-classic .detail-desc{background:#fbfcff;border-radius:18px;border:1px solid #edf2fb;padding:16px;line-height:2}
.mmcrm-classic .timer-list{gap:12px;margin-bottom:18px}
.mmcrm-classic .timer-card{padding:18px 20px;grid-template-columns:minmax(0,1fr) 120px auto;gap:16px}
.mmcrm-classic .timer-card>strong{font-size:22px;color:#1b2234}
.mmcrm-classic .timer-card small{color:#8d96ab}
.mmcrm-classic .timer-launch-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}
.mmcrm-classic .timer-selected-info{margin-top:12px;border-radius:18px;background:#f8faff;border:1px dashed #dce3f4;padding:13px 15px}
.mmcrm-classic .time-history-list{display:grid;gap:8px}
.mmcrm-classic .time-history-row{grid-template-columns:minmax(0,1fr) 115px 96px auto;background:#fff;border:1px solid #edf1fa;border-radius:18px;padding:14px 15px;box-shadow:0 10px 24px rgba(22,34,66,.04)}
.mmcrm-classic .time-history-main b{font-size:14px;color:#1d2435}
.mmcrm-classic .time-history-main small{line-height:1.8;color:#8d96ab}
.mmcrm-classic .time-history-row>strong{font-size:16px;color:#25314d}
.mmcrm-classic .time-status{border-radius:999px;padding:6px 10px;font-size:10px;background:#f1f4fb;color:#6f7890}
.mmcrm-classic .time-status.stopped{background:#eaf8f0;color:#1d8e58}
.mmcrm-classic .time-status.running{background:#f2efff;color:#5e47ec}
.mmcrm-classic .table{gap:8px}
.mmcrm-classic .tr{align-items:center;background:#fff;border:1px solid #eef2fa;border-radius:18px;padding:12px 14px;box-shadow:0 10px 24px rgba(22,34,66,.04);border-bottom:0}
.mmcrm-classic .tr.th{background:#fafbff;border-style:dashed;color:#8e97ab;font-weight:800}
.mmcrm-classic .report-filter{display:flex;justify-content:space-between;gap:14px;align-items:end;margin-bottom:18px;padding:18px;background:rgba(255,255,255,.84);border:1px solid rgba(229,234,245,.95);border-radius:22px;box-shadow:0 14px 34px rgba(22,34,66,.05)}
.mmcrm-classic .report-filter label{font-size:11px;color:#8c95aa}
.mmcrm-classic .settings-grid{gap:18px}
.mmcrm-classic .perm-head,.mmcrm-classic .perm-row{border-bottom:0;border:1px solid #eef2fa;border-radius:16px;padding:10px 12px;margin-bottom:8px;background:#fff;box-shadow:0 10px 24px rgba(22,34,66,.04)}
.mmcrm-classic .perm-head{background:#f9faff;color:#8e97ab;font-weight:800}
.mmcrm-classic .tag-picks label{background:#fff;border:1px solid #e8edf7;border-radius:999px;padding:10px 12px;box-shadow:0 8px 18px rgba(22,34,66,.03)}
.mmcrm-classic .modal-back{background:rgba(14,20,36,.38);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.mmcrm-classic .modal{width:min(920px,96vw);max-height:90vh;background:rgba(255,255,255,.97);border-radius:28px;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.22)}
.mmcrm-classic .modal>header,.mmcrm-classic .modal>footer{background:rgba(255,255,255,.97);padding:18px 22px;border-color:#edf1fa}
.mmcrm-classic .modal>header h3{font-size:18px;color:#1d2435}
.mmcrm-classic .modal>header button{width:38px;height:38px;border-radius:12px;background:#f5f7fc;border:1px solid #eceff7;color:#677188;font-size:22px}
.mmcrm-classic .modal-body{padding:22px}
.mmcrm-classic .form-grid{gap:16px}
.mmcrm-classic .form-grid label{font-size:12px;color:#717c95;font-weight:600}
.mmcrm-classic .mmcrm-info-note{background:#f7f4ff;border:1px solid #e2dafa;color:#6a5aa0;border-radius:16px;padding:12px 14px}
.mmcrm-classic .empty,.mmcrm-classic .mmcrm-loading,.mmcrm-classic .mmcrm-fatal{padding:32px;border:1px dashed #dfe5f3;border-radius:20px;background:rgba(255,255,255,.8);color:#8690a8}
.mmcrm-login-card,.mmcrm-shortcode-notice{max-width:470px;margin:48px auto;padding:32px;background:rgba(255,255,255,.97);border:1px solid rgba(231,236,246,.98);border-radius:30px;box-shadow:0 28px 80px rgba(18,27,56,.10);font-family:Inter,Segoe UI,Tahoma,Arial,sans-serif;color:#20263a;position:relative;overflow:hidden}
.mmcrm-login-card:before{content:"";position:absolute;inset:auto auto -40px -40px;width:180px;height:180px;background:radial-gradient(circle,rgba(124,77,255,.15),transparent 70%)}
.mmcrm-login-card .mmcrm-login-mark{width:74px;height:74px;border-radius:24px;background:linear-gradient(135deg,#7c4dff,#36bffa);box-shadow:0 18px 40px rgba(124,77,255,.22)}
.mmcrm-login-card h3{font-size:30px;color:#1a2030;margin:0 0 8px}
.mmcrm-login-card>p{font-size:13px;color:#8c95aa;margin-bottom:22px}
.mmcrm-login-card label{font-size:12px;color:#68738d;margin-bottom:7px;font-weight:600}
.mmcrm-login-card input[type=text],.mmcrm-login-card input[type=password]{border:1px solid #e3e8f3;border-radius:16px;padding:13px 14px;background:#fff}
.mmcrm-login-card input[type=submit]{border-radius:16px;background:linear-gradient(135deg,#7c4dff,#5f3df0);padding:13px 18px;box-shadow:0 18px 36px rgba(92,71,255,.18)}

/* dark mode refinement */
.mmcrm-classic.mmcrm-dark{--bg:#090e18;--card:#111827;--text:#eef2ff;--muted:#97a3bb;--line:#1f293d;--primary:#8b73ff;--primary2:#6d5af2;--primary-soft:#1b1830;--shadow:0 18px 45px rgba(0,0,0,.28);background:radial-gradient(circle at top left,rgba(124,77,255,.18),transparent 28%),linear-gradient(180deg,#090e18 0%,#0c1220 100%)}
.mmcrm-classic.mmcrm-dark.mmcrm-frontend{box-shadow:0 30px 90px rgba(0,0,0,.34)}
.mmcrm-classic.mmcrm-dark .mmcrm-side{background:rgba(16,22,36,.92);border-left-color:#20283b;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.mmcrm-classic.mmcrm-dark .mmcrm-brand b,.mmcrm-classic.mmcrm-dark .mmcrm-head-copy h1,.mmcrm-classic.mmcrm-dark .card h3,.mmcrm-classic.mmcrm-dark .client-card h3,.mmcrm-classic.mmcrm-dark .row b{color:var(--text)}
.mmcrm-classic.mmcrm-dark .mmcrm-brand small,.mmcrm-classic.mmcrm-dark .mmcrm-side-caption,.mmcrm-classic.mmcrm-dark .mmcrm-head-copy p,.mmcrm-classic.mmcrm-dark .client-card p{color:var(--muted)}
.mmcrm-classic.mmcrm-dark .mmcrm-side nav button{color:#a9b2c5}
.mmcrm-classic.mmcrm-dark .mmcrm-side nav button .dashicons{color:#8f9ab1}
.mmcrm-classic.mmcrm-dark .mmcrm-side nav button:hover{background:#141c2c;color:#c3b6ff}
.mmcrm-classic.mmcrm-dark .mmcrm-side nav button.active{background:linear-gradient(135deg,rgba(139,115,255,.18),rgba(54,191,250,.08));color:#cabfff;box-shadow:inset 0 0 0 1px rgba(139,115,255,.18)}
.mmcrm-classic.mmcrm-dark .mmcrm-theme-toggle,.mmcrm-classic.mmcrm-dark .mmcrm-side-user,.mmcrm-classic.mmcrm-dark .mmcrm-icon-btn,.mmcrm-classic.mmcrm-dark .mmcrm-user-chip,.mmcrm-classic.mmcrm-dark .mmcrm-searchbox,.mmcrm-classic.mmcrm-dark .card,.mmcrm-classic.mmcrm-dark .client-card,.mmcrm-classic.mmcrm-dark .timer-card,.mmcrm-classic.mmcrm-dark .time-history-row,.mmcrm-classic.mmcrm-dark .tr,.mmcrm-classic.mmcrm-dark .perm-head,.mmcrm-classic.mmcrm-dark .perm-row,.mmcrm-classic.mmcrm-dark .row,.mmcrm-classic.mmcrm-dark .report-filter,.mmcrm-classic.mmcrm-dark .empty,.mmcrm-classic.mmcrm-dark .mmcrm-loading,.mmcrm-classic.mmcrm-dark .mmcrm-fatal,.mmcrm-classic.mmcrm-dark .modal,.mmcrm-classic.mmcrm-dark .modal>header,.mmcrm-classic.mmcrm-dark .modal>footer{background:rgba(16,22,36,.92);border-color:#212b3f;color:var(--text)}
.mmcrm-classic.mmcrm-dark .mmcrm-searchbox input,.mmcrm-classic.mmcrm-dark input,.mmcrm-classic.mmcrm-dark select,.mmcrm-classic.mmcrm-dark textarea{background:#111827;color:var(--text)!important;border-color:#253149}
.mmcrm-classic.mmcrm-dark .btn{background:#131b2b;color:var(--text);border-color:#223049;box-shadow:none}
.mmcrm-classic.mmcrm-dark .btn:hover{border-color:#33425e;box-shadow:0 16px 28px rgba(0,0,0,.18)}
.mmcrm-classic.mmcrm-dark .btn.primary{background:linear-gradient(135deg,#8b73ff,#6d5af2);border-color:transparent}
.mmcrm-classic.mmcrm-dark .btn.danger{background:linear-gradient(135deg,#e25d71,#cb4455);border-color:transparent}
.mmcrm-classic.mmcrm-dark .mmcrm-quick-action{background:rgba(16,22,36,.92);border-color:#212b3f}
.mmcrm-classic.mmcrm-dark .mmcrm-quick-action>span,.mmcrm-classic.mmcrm-dark .detail-kpis>div,.mmcrm-classic.mmcrm-dark .chips span,.mmcrm-classic.mmcrm-dark .timer-selected-info,.mmcrm-classic.mmcrm-dark .detail-desc,.mmcrm-classic.mmcrm-dark .tag-picks label{background:#121b2d;border-color:#253149;color:var(--text)}
.mmcrm-classic.mmcrm-dark .mmcrm-quick-action small,.mmcrm-classic.mmcrm-dark .row small,.mmcrm-classic.mmcrm-dark .row-meta,.mmcrm-classic.mmcrm-dark .time-history-main small,.mmcrm-classic.mmcrm-dark .timer-card small,.mmcrm-classic.mmcrm-dark .mmcrm-searchbox input::placeholder{color:var(--muted)}
.mmcrm-classic.mmcrm-dark .timer-pill{background:#121b2d;border-color:#243149;box-shadow:none}
.mmcrm-classic.mmcrm-dark .timer-pill span,.mmcrm-classic.mmcrm-dark .time-status,.mmcrm-classic.mmcrm-dark .perm-head{color:var(--muted)}
.mmcrm-classic.mmcrm-dark .tr.th{background:#0f1728;border-style:solid}
.mmcrm-classic.mmcrm-dark .module-bars>div,.mmcrm-classic.mmcrm-dark .dim-list>div{border-bottom-color:#20283b}
.mmcrm-classic.mmcrm-dark .status-dot.in_progress{background:#907cff}
.mmcrm-classic.mmcrm-dark .status-dot.review{background:#f7b23c}
.mmcrm-classic.mmcrm-dark .time-status.stopped{background:#163024;color:#8de0ad}
.mmcrm-classic.mmcrm-dark .time-status.running{background:#241f42;color:#cabfff}
.mmcrm-classic.mmcrm-dark .mmcrm-info-note{background:#181d30;border-color:#2d3653;color:#bcc5e6}
.mmcrm-classic.mmcrm-dark .modal-back{background:rgba(4,7,13,.74)}
.mmcrm-classic.mmcrm-dark .mmcrm-login-card,.mmcrm-classic.mmcrm-dark .mmcrm-shortcode-notice{background:rgba(16,22,36,.96);border-color:#20283b;color:var(--text)}
.mmcrm-classic.mmcrm-dark .mmcrm-login-card label,.mmcrm-classic.mmcrm-dark .mmcrm-login-card>p{color:var(--muted)}
.mmcrm-classic.mmcrm-dark .mmcrm-login-card input[type=text],.mmcrm-classic.mmcrm-dark .mmcrm-login-card input[type=password]{background:#111827;border-color:#253149;color:var(--text)}

@media(max-width:1200px){
  .mmcrm-classic .mmcrm-stats,.mmcrm-classic .mmcrm-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mmcrm-classic .client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .mmcrm-classic .mmcrm-shell{grid-template-columns:1fr}
  .mmcrm-classic .mmcrm-side{position:fixed;right:0;top:0;bottom:0;height:100vh;width:286px;z-index:99998;transform:translateX(105%);transition:transform .2s ease}
  .mmcrm-classic .mmcrm-side.open{transform:none}
  .mmcrm-classic .mmcrm-main>header{padding:18px 18px 12px;top:0;flex-direction:column;align-items:stretch}
  .mmcrm-classic .mmcrm-head-copy h1{font-size:24px}
  .mmcrm-classic .mmcrm-top-strip{padding:0 18px 6px}
  .mmcrm-classic .mmcrm-mobile-nav{display:grid;place-items:center}
  .mmcrm-classic #mmcrm-view{padding:14px 18px 42px}
  .mmcrm-classic .mmcrm-header-left{flex-wrap:wrap}
  .mmcrm-classic .mmcrm-searchbox{min-width:0;flex:1 1 260px}
  .mmcrm-classic .detail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:782px){
  .mmcrm-classic.mmcrm-frontend{border-radius:0}
  .mmcrm-classic .mmcrm-stats,.mmcrm-classic .mmcrm-quick-actions,.mmcrm-classic .client-grid,.mmcrm-classic .mmcrm-grid2{grid-template-columns:1fr}
  .mmcrm-classic .timer-card{grid-template-columns:1fr;justify-items:start}
  .mmcrm-classic .timer-launch-row,.mmcrm-classic .time-history-row{grid-template-columns:1fr}
  .mmcrm-classic .tr{min-width:640px}
  .mmcrm-classic .report-filter{padding:14px}
  .mmcrm-classic .mmcrm-user-chip{min-width:0;flex:1}
}
@media(max-width:520px){
  .mmcrm-classic .mmcrm-main>header,.mmcrm-classic .mmcrm-top-strip,.mmcrm-classic #mmcrm-view{padding-left:12px;padding-right:12px}
  .mmcrm-classic .mmcrm-icon-btn{width:42px;height:42px;border-radius:14px}
  .mmcrm-classic .mmcrm-searchbox{padding:10px 12px;border-radius:16px}
  .mmcrm-classic .card,.mmcrm-classic .client-card,.mmcrm-classic .timer-card,.mmcrm-classic .mmcrm-stat,.mmcrm-classic .mmcrm-quick-action{border-radius:20px}
}

/* alpha.8 — dashboard analytics, data grid, kanban polish, mobile UX */
.mmcrm-classic .mmcrm-dashboard-analytics{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:18px;margin-bottom:18px}
.mmcrm-classic .mmcrm-dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:18px;align-items:start}
.mmcrm-classic .mmcrm-dashboard-side{display:grid;gap:18px}
.mmcrm-classic .trend-badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#f4f0ff;color:#674cf0;font-size:11px;font-weight:800;border:1px solid #e7ddff}
.mmcrm-classic .mmcrm-line-chart{padding-top:4px}
.mmcrm-classic .mmcrm-line-chart svg{width:100%;height:220px;overflow:visible;display:block}
.mmcrm-classic .mmcrm-line-chart svg:before{content:""}
.mmcrm-classic .mmcrm-line-chart .chart-area{fill:url(#mmcrmTrendFill);stroke:none}
.mmcrm-classic .mmcrm-line-chart .chart-line{fill:none;stroke:#7c4dff;stroke-width:2.2;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 5px 8px rgba(124,77,255,.18))}
.mmcrm-classic .mmcrm-line-chart circle{fill:#fff;stroke:#7c4dff;stroke-width:1.2;vector-effect:non-scaling-stroke}
.mmcrm-classic .chart-axis{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:2px}
.mmcrm-classic .chart-axis span{text-align:center;display:grid;gap:2px;color:#8d96ab;font-size:10px}
.mmcrm-classic .chart-axis span b{font-weight:600;color:#7f899f}
.mmcrm-classic .chart-axis span em{font-style:normal;font-size:12px;color:#29324a;font-weight:800}
.mmcrm-classic .mmcrm-donut-wrap{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;min-height:220px}
.mmcrm-classic .mmcrm-donut{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;position:relative;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),0 14px 30px rgba(38,45,80,.08)}
.mmcrm-classic .mmcrm-donut:after{content:"";position:absolute;inset:25px;background:var(--card);border-radius:50%;box-shadow:0 0 0 1px var(--line)}
.mmcrm-classic .mmcrm-donut>div{position:relative;z-index:1;text-align:center;display:grid;gap:2px}
.mmcrm-classic .mmcrm-donut strong{font-size:25px;color:var(--text)}
.mmcrm-classic .mmcrm-donut small{font-size:10px;color:var(--muted)}
.mmcrm-classic .mmcrm-chart-legend{display:grid;gap:9px}
.mmcrm-classic .mmcrm-chart-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:11px;color:#6f7890}
.mmcrm-classic .mmcrm-chart-legend i{width:9px;height:9px;border-radius:50%}
.mmcrm-classic .mmcrm-chart-legend b{color:#27314b;font-size:11px}
.mmcrm-classic .mmcrm-bar-chart{display:grid;gap:13px}
.mmcrm-classic .bar-row{display:grid;gap:7px}
.mmcrm-classic .bar-row>div{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#69738b}
.mmcrm-classic .bar-row>div b{color:#20283d;font-size:11px}
.mmcrm-classic .bar-row>i,.mmcrm-classic .mmcrm-team-load i{height:7px;background:#eef1f8;border-radius:999px;overflow:hidden;display:block}
.mmcrm-classic .bar-row>i>em,.mmcrm-classic .mmcrm-team-load i>em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c4dff,#3bbdf6);min-width:3px}
.mmcrm-classic .mmcrm-team-load{display:grid;gap:12px}
.mmcrm-classic .mmcrm-team-load>div{display:grid;grid-template-columns:34px minmax(0,1fr) 28px;gap:10px;align-items:center}
.mmcrm-classic .mini-avatar{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#f0eaff,#eaf6ff);color:#654ee8;font-size:11px;font-weight:900;border:1px solid #e4defb;flex:0 0 auto}
.mmcrm-classic .mmcrm-team-load>div>div{display:grid;gap:6px}
.mmcrm-classic .mmcrm-team-load b{font-size:11px;color:#2c354c}
.mmcrm-classic .mmcrm-team-load strong{font-size:11px;color:#58637d;text-align:left}

.mmcrm-classic .mmcrm-work-toolbar{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,2fr) auto;gap:12px;align-items:center;margin-bottom:12px;padding:14px;background:rgba(255,255,255,.88);border:1px solid #e8edf7;border-radius:22px;box-shadow:0 14px 34px rgba(22,34,66,.05)}
.mmcrm-classic .mmcrm-work-search{display:flex;align-items:center;gap:9px;background:#f8faff;border:1px solid #e8edf7;border-radius:15px;padding:0 12px}
.mmcrm-classic .mmcrm-work-search .dashicons{color:#9aa3b7;font-size:17px;width:17px;height:17px}
.mmcrm-classic .mmcrm-work-search input{border:0!important;background:transparent!important;box-shadow:none!important;width:100%;padding:11px 0!important}
.mmcrm-classic .mmcrm-work-toolbar .filters{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px}
.mmcrm-classic .mmcrm-work-toolbar .filters select{min-width:0;width:100%;padding:10px 11px;border-radius:13px;font-size:11px}
.mmcrm-classic .mmcrm-grid-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 10px;color:#8b94aa}
.mmcrm-classic .mmcrm-grid-summary span{font-weight:800;font-size:12px;color:#56617b}
.mmcrm-classic .mmcrm-grid-summary small{font-size:10px}
.mmcrm-classic .mmcrm-data-grid{display:grid;gap:8px;min-width:940px}
.mmcrm-classic #work-list{overflow-x:auto;padding-bottom:4px}
.mmcrm-classic .dg-row{display:grid;grid-template-columns:2.1fr 1.35fr 1.05fr 1fr .9fr 1.25fr;gap:12px;align-items:center;padding:13px 15px;border-radius:17px;font-size:11px}
.mmcrm-classic .dg-head{position:sticky;top:0;z-index:2;background:#f8faff;border:1px solid #ebeff8;color:#8f98ac;font-weight:800;box-shadow:0 8px 22px rgba(22,34,66,.03)}
.mmcrm-classic .dg-item{background:#fff;border:1px solid #edf1f9;box-shadow:0 9px 22px rgba(22,34,66,.035);cursor:pointer;transition:all .16s ease;color:#606b83}
.mmcrm-classic .dg-item:hover{transform:translateY(-1px);border-color:#dbd3ff;box-shadow:0 15px 32px rgba(92,71,255,.09)}
.mmcrm-classic .dg-title{display:grid;grid-template-columns:10px minmax(0,1fr);gap:10px;align-items:center}
.mmcrm-classic .dg-title b{display:block;color:#20283b;font-size:12px;margin-bottom:4px}
.mmcrm-classic .dg-title small{display:block;color:#929bb0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmcrm-classic .module-pill,.mmcrm-classic .status-pill,.mmcrm-classic .deadline-pill,.mmcrm-classic .lock-badge{font-style:normal;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;font-size:9px;line-height:1.2;white-space:nowrap}
.mmcrm-classic .module-pill{background:#f3efff;color:#654de6;border:1px solid #e5dcff}
.mmcrm-classic .status-pill{background:#f2f4f9;color:#69748b;border:1px solid #e6ebf4}
.mmcrm-classic .status-pill.in_progress{background:#efeaff;color:#654ae9;border-color:#dfd4ff}
.mmcrm-classic .status-pill.review{background:#fff7df;color:#a16b00;border-color:#f5e7b6}
.mmcrm-classic .status-pill.done,.mmcrm-classic .status-pill.closed{background:#eaf8f0;color:#198353;border-color:#ceeeda}
.mmcrm-classic .status-pill.handed_off{background:#eaf5ff;color:#2475ae;border-color:#d4eaff}
.mmcrm-classic .deadline-pill{background:#f5f7fb;color:#818ca3;border:1px solid #e7ecf5;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.mmcrm-classic .deadline-pill.overdue{background:#fff0f1;color:#bd3c4a;border-color:#ffd8dc}
.mmcrm-classic .deadline-pill.soon{background:#fff6df;color:#9a6500;border-color:#f4e0aa}
.mmcrm-classic .deadline-pill.done{background:#eef8f2;color:#4f7c62;border-color:#d8eddf}
.mmcrm-classic .deadline-pill.none{color:#9da6ba;background:#f8f9fc}

.mmcrm-classic .mmcrm-kanban-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:14px;padding:14px 16px;background:rgba(255,255,255,.88);border:1px solid #e8edf7;border-radius:22px;box-shadow:0 14px 34px rgba(22,34,66,.05)}
.mmcrm-classic .mmcrm-kanban-toolbar>div:first-child{display:flex;gap:10px;flex-wrap:wrap;align-items:end}
.mmcrm-classic .mmcrm-kanban-toolbar label{display:grid;gap:6px;font-size:10px;color:#8b94aa}
.mmcrm-classic .mmcrm-kanban-toolbar select,.mmcrm-classic .mmcrm-kanban-toolbar input{min-width:150px;padding:10px 11px;border-radius:13px}
.mmcrm-classic .kanban-hint{display:flex;align-items:center;gap:7px;color:#8993a8;font-size:10px;white-space:nowrap}
.mmcrm-classic .kanban-hint .dashicons{color:#7056ed}
.mmcrm-classic .kanban{grid-template-columns:repeat(5,minmax(285px,1fr));gap:14px;padding:2px 2px 12px}
.mmcrm-classic .kanban-col{background:rgba(247,249,253,.82);border:1px solid #e7ecf5;border-radius:22px;min-height:560px;overflow:hidden}
.mmcrm-classic .kanban-col>header{padding:15px 15px;border-bottom:1px solid #e8edf6;background:rgba(255,255,255,.76)}
.mmcrm-classic .kanban-col>header>div{display:flex;align-items:center;gap:8px}
.mmcrm-classic .kanban-col>header b{font-size:12px;color:#344058}
.mmcrm-classic .kanban-col>header span{background:#f3f5fa;border:1px solid #e6ebf4;border-radius:999px;padding:5px 9px;font-size:10px;color:#737e95}
.mmcrm-classic .kanban-status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#94a3b8}
.mmcrm-classic .kanban-status-dot.planned{background:#36bffa}.mmcrm-classic .kanban-status-dot.in_progress{background:#7c4dff}.mmcrm-classic .kanban-status-dot.review{background:#ffb31a}.mmcrm-classic .kanban-status-dot.handed_off{background:#14b8a6}.mmcrm-classic .kanban-status-dot.done{background:#22c55e}
.mmcrm-classic .kanban-drop{padding:12px;min-height:510px;display:grid;align-content:start;gap:10px;transition:.15s}
.mmcrm-classic .kanban-drop.over{outline:2px dashed #8a74ff;outline-offset:-7px;background:rgba(124,77,255,.035);border-radius:16px}
.mmcrm-classic .kanban-card{background:#fff;border:1px solid #e9eef7;border-radius:18px;padding:14px;box-shadow:0 12px 28px rgba(22,34,66,.055);display:grid;gap:9px;cursor:grab;transition:.17s;position:relative}
.mmcrm-classic .kanban-card:hover{transform:translateY(-2px);border-color:#dcd4ff;box-shadow:0 18px 34px rgba(92,71,255,.10)}
.mmcrm-classic .kanban-card.dragging{opacity:.55;transform:rotate(-1deg) scale(.99)}
.mmcrm-classic .kanban-card.locked{border-color:#ffd1d6;box-shadow:0 12px 28px rgba(190,57,73,.08)}
.mmcrm-classic .kanban-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.mmcrm-classic .kanban-card>b{font-size:13px;line-height:1.65;color:#222b40}
.mmcrm-classic .kanban-card>small{font-size:10px;line-height:1.6;color:#8b95aa}
.mmcrm-classic .lock-badge{background:#fff0f1;color:#bd3c4a;border:1px solid #ffd8dc}
.mmcrm-classic .kanban-card-tags{display:flex;gap:6px;flex-wrap:wrap;min-height:20px}
.mmcrm-classic .kanban-card-tags span{padding:4px 7px;border-radius:999px;background:#f7f8fc;border:1px solid #edf1f8;color:#7c869c;font-size:9px}
.mmcrm-classic .kanban-card footer{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:7px;align-items:center;padding-top:8px;border-top:1px dashed #edf1f8}
.mmcrm-classic .kanban-card footer .mini-avatar{width:28px;height:28px;border-radius:9px;font-size:9px}
.mmcrm-classic .kanban-card footer>span:nth-child(2){font-size:9px;color:#7e889e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mmcrm-classic .kanban-card footer .deadline-pill{font-size:8px;padding:5px 7px}
.mmcrm-classic .handoff-note{font-style:normal;font-size:9px;color:#2b7e82;background:#eaf9f7;border:1px solid #d3efeb;border-radius:10px;padding:7px 8px}
.mmcrm-classic .kanban-empty{padding:26px 12px;text-align:center;border:1px dashed #dfe5ef;border-radius:15px;color:#a0a9bb;font-size:10px;background:rgba(255,255,255,.45)}

/* micro-interactions and focus */
.mmcrm-classic button,.mmcrm-classic .dg-item,.mmcrm-classic .kanban-card{touch-action:manipulation}
.mmcrm-classic button:focus-visible,.mmcrm-classic input:focus-visible,.mmcrm-classic select:focus-visible,.mmcrm-classic textarea:focus-visible{outline:3px solid rgba(124,77,255,.18);outline-offset:2px}
.mmcrm-classic .modal{scrollbar-width:thin;scrollbar-color:#d9deea transparent}
.mmcrm-classic .kanban,.mmcrm-classic #work-list{scrollbar-width:thin;scrollbar-color:#d9deea transparent}

/* alpha.8 dark polish */
.mmcrm-classic.mmcrm-dark .trend-badge{background:#211b39;color:#c6b9ff;border-color:#342a58}
.mmcrm-classic.mmcrm-dark .chart-axis span b,.mmcrm-classic.mmcrm-dark .chart-axis span em,.mmcrm-classic.mmcrm-dark .mmcrm-chart-legend b,.mmcrm-classic.mmcrm-dark .bar-row>div b,.mmcrm-classic.mmcrm-dark .mmcrm-team-load b,.mmcrm-classic.mmcrm-dark .mmcrm-team-load strong{color:#dfe6f5}
.mmcrm-classic.mmcrm-dark .mmcrm-donut:after{background:#101624;border-color:#263149}
.mmcrm-classic.mmcrm-dark .mmcrm-line-chart circle{fill:#101624;stroke:#9a84ff}
.mmcrm-classic.mmcrm-dark .mmcrm-line-chart .chart-line{stroke:#9a84ff}
.mmcrm-classic.mmcrm-dark .bar-row>i,.mmcrm-classic.mmcrm-dark .mmcrm-team-load i{background:#202a3d}
.mmcrm-classic.mmcrm-dark .mini-avatar{background:linear-gradient(135deg,#241e3d,#162b3d);color:#c7bbff;border-color:#332b51}
.mmcrm-classic.mmcrm-dark .mmcrm-work-toolbar,.mmcrm-classic.mmcrm-dark .mmcrm-kanban-toolbar{background:rgba(16,22,36,.92);border-color:#222d42;box-shadow:0 14px 34px rgba(0,0,0,.18)}
.mmcrm-classic.mmcrm-dark .mmcrm-work-search{background:#0f1728;border-color:#27334a}
.mmcrm-classic.mmcrm-dark .mmcrm-grid-summary span{color:#c1c9da}
.mmcrm-classic.mmcrm-dark .dg-head{background:#101827;border-color:#263149;color:#929db4}
.mmcrm-classic.mmcrm-dark .dg-item{background:#111827;border-color:#222d42;color:#aeb8cb;box-shadow:none}
.mmcrm-classic.mmcrm-dark .dg-item:hover{border-color:#4a3e75;box-shadow:0 15px 32px rgba(0,0,0,.20)}
.mmcrm-classic.mmcrm-dark .dg-title b,.mmcrm-classic.mmcrm-dark .kanban-card>b,.mmcrm-classic.mmcrm-dark .kanban-col>header b{color:#eef2ff}
.mmcrm-classic.mmcrm-dark .dg-title small{color:#8c97ad}
.mmcrm-classic.mmcrm-dark .module-pill{background:#211b39;color:#c2b5ff;border-color:#342b57}
.mmcrm-classic.mmcrm-dark .status-pill,.mmcrm-classic.mmcrm-dark .deadline-pill{background:#172033;color:#aab4c8;border-color:#263149}
.mmcrm-classic.mmcrm-dark .status-pill.in_progress{background:#241e42;color:#c6b9ff;border-color:#3b315e}
.mmcrm-classic.mmcrm-dark .status-pill.review,.mmcrm-classic.mmcrm-dark .deadline-pill.soon{background:#352a14;color:#f7ca68;border-color:#4a3918}
.mmcrm-classic.mmcrm-dark .status-pill.done,.mmcrm-classic.mmcrm-dark .status-pill.closed,.mmcrm-classic.mmcrm-dark .deadline-pill.done{background:#153025;color:#8fddb0;border-color:#234734}
.mmcrm-classic.mmcrm-dark .status-pill.handed_off{background:#112a3d;color:#8dcef4;border-color:#1d4058}
.mmcrm-classic.mmcrm-dark .deadline-pill.overdue,.mmcrm-classic.mmcrm-dark .lock-badge{background:#371d26;color:#f5a1ae;border-color:#542632}
.mmcrm-classic.mmcrm-dark .kanban-col{background:#0d1422;border-color:#222d42}
.mmcrm-classic.mmcrm-dark .kanban-col>header{background:#101827;border-color:#222d42}
.mmcrm-classic.mmcrm-dark .kanban-col>header span{background:#172033;border-color:#263149;color:#aab4c8}
.mmcrm-classic.mmcrm-dark .kanban-card{background:#111827;border-color:#222d42;box-shadow:none}
.mmcrm-classic.mmcrm-dark .kanban-card:hover{border-color:#493d72;box-shadow:0 18px 34px rgba(0,0,0,.22)}
.mmcrm-classic.mmcrm-dark .kanban-card-tags span{background:#172033;border-color:#263149;color:#9ca8be}
.mmcrm-classic.mmcrm-dark .kanban-card footer{border-top-color:#273148}
.mmcrm-classic.mmcrm-dark .kanban-empty{background:#101827;border-color:#29344a;color:#77849d}
.mmcrm-classic.mmcrm-dark .handoff-note{background:#13302e;border-color:#214946;color:#8ed5ce}

@media(max-width:1280px){
  .mmcrm-classic .mmcrm-work-toolbar{grid-template-columns:1fr auto}
  .mmcrm-classic .mmcrm-work-search{grid-column:1/-1}
  .mmcrm-classic .mmcrm-work-toolbar .filters{grid-template-columns:repeat(5,minmax(110px,1fr))}
}
@media(max-width:1100px){
  .mmcrm-classic .mmcrm-dashboard-analytics,.mmcrm-classic .mmcrm-dashboard-bottom{grid-template-columns:1fr}
  .mmcrm-classic .mmcrm-dashboard-side{grid-template-columns:1fr 1fr}
  .mmcrm-classic .mmcrm-work-toolbar{grid-template-columns:1fr}
  .mmcrm-classic .mmcrm-work-toolbar .filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mmcrm-classic .mmcrm-work-toolbar .btn.primary{justify-self:start}
}
@media(max-width:782px){
  .mmcrm-classic .mmcrm-dashboard-side{grid-template-columns:1fr}
  .mmcrm-classic .mmcrm-donut-wrap{grid-template-columns:130px minmax(0,1fr)}
  .mmcrm-classic .mmcrm-donut{width:130px;height:130px}
  .mmcrm-classic .mmcrm-work-toolbar .filters{grid-template-columns:1fr 1fr}
  .mmcrm-classic .mmcrm-kanban-toolbar{align-items:stretch;flex-direction:column}
  .mmcrm-classic .mmcrm-kanban-toolbar>div:first-child{display:grid;grid-template-columns:1fr 1fr}
  .mmcrm-classic .mmcrm-kanban-toolbar label:last-child{grid-column:1/-1}
  .mmcrm-classic .mmcrm-kanban-toolbar select,.mmcrm-classic .mmcrm-kanban-toolbar input{min-width:0;width:100%}
  .mmcrm-classic .kanban{grid-template-columns:repeat(5,84vw)}
}
@media(max-width:520px){
  .mmcrm-classic .mmcrm-donut-wrap{grid-template-columns:1fr;justify-items:center}
  .mmcrm-classic .mmcrm-chart-legend{width:100%}
  .mmcrm-classic .mmcrm-line-chart svg{height:170px}
  .mmcrm-classic .mmcrm-work-toolbar .filters{grid-template-columns:1fr}
  .mmcrm-classic .mmcrm-grid-summary{align-items:flex-start;flex-direction:column}
  .mmcrm-classic .mmcrm-kanban-toolbar>div:first-child{grid-template-columns:1fr}
  .mmcrm-classic .mmcrm-kanban-toolbar label:last-child{grid-column:auto}
}
.mmcrm-classic .mmcrm-pagination{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 0 2px;color:#8b94aa;font-size:10px}
.mmcrm-classic .mmcrm-pagination .btn[disabled]{opacity:.42;cursor:not-allowed;transform:none;box-shadow:none}
.mmcrm-classic.mmcrm-dark .mmcrm-pagination{color:#8f9ab0}

/* alpha.9 — employee client/project creation permissions */
.mmcrm-classic .mmcrm-global-perm{margin:2px 0 14px;padding:14px 16px;border:1px solid #e8ecf6;border-radius:18px;background:linear-gradient(135deg,#faf8ff,#f7fbff);box-shadow:0 10px 24px rgba(22,34,66,.04)}
.mmcrm-classic .mmcrm-global-perm label{display:flex;align-items:center;gap:12px;cursor:pointer}
.mmcrm-classic .mmcrm-global-perm input{width:18px;height:18px;accent-color:var(--primary);flex:0 0 auto}
.mmcrm-classic .mmcrm-global-perm b{display:block;font-size:13px;color:#1f2638}
.mmcrm-classic .mmcrm-global-perm small{display:block;margin-top:4px;color:#8a94aa;font-size:11px;line-height:1.7}
.mmcrm-classic.mmcrm-dark .mmcrm-global-perm{background:linear-gradient(135deg,#151b2d,#101a2b);border-color:#263149}
.mmcrm-classic.mmcrm-dark .mmcrm-global-perm b{color:var(--text)}
.mmcrm-classic.mmcrm-dark .mmcrm-global-perm small{color:var(--muted)}

/* alpha.10 — stable sticky header, global timer controls, theme icons, contrast fixes */
.mmcrm-classic.mmcrm-frontend{overflow:visible}
.mmcrm-classic .mmcrm-sticky-head{position:sticky;top:32px;z-index:90;background:rgba(247,249,255,.97);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(225,231,244,.9);box-shadow:0 12px 32px rgba(22,34,66,.045)}
.mmcrm-classic.mmcrm-frontend .mmcrm-sticky-head{top:0}
.mmcrm-classic .mmcrm-main>header.mmcrm-topbar{position:relative!important;top:auto!important;z-index:auto!important;display:grid!important;grid-template-columns:minmax(240px,1fr) auto;align-items:center;gap:18px;min-height:92px;padding:20px 28px 14px;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
.mmcrm-classic .mmcrm-head-copy{min-width:0;align-self:center}
.mmcrm-classic .mmcrm-head-copy h1{white-space:normal;overflow:visible}
.mmcrm-classic .mmcrm-head-copy p{max-width:640px;line-height:1.7}
.mmcrm-classic .mmcrm-header-left{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap}
.mmcrm-classic .mmcrm-searchbox{min-width:280px;max-width:420px;flex:1 1 340px}
.mmcrm-classic .mmcrm-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.mmcrm-classic .mmcrm-user-chip{flex:0 0 auto}
.mmcrm-classic .mmcrm-mobile-row{display:none;padding:0 18px 10px}
.mmcrm-classic .mmcrm-top-strip{display:none!important}

.mmcrm-classic .mmcrm-theme-svg{width:20px;height:20px;display:block;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:0 0 auto}
.mmcrm-classic .mmcrm-icon-btn.is-theme{color:#59647b}
.mmcrm-classic .mmcrm-icon-btn.is-theme em{display:none!important}
.mmcrm-classic .mmcrm-theme-toggle .mmcrm-theme-svg{width:19px;height:19px}
.mmcrm-classic .mmcrm-theme-toggle em{display:inline!important}

.mmcrm-classic .mmcrm-global-timerbar{display:none;padding:0 28px 12px;background:transparent}
.mmcrm-classic .mmcrm-global-timerbar.has-timer{display:block}
.mmcrm-classic .mmcrm-global-timer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:11px 13px 11px 16px;border:1px solid #ded8ff;border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(247,244,255,.98));box-shadow:0 14px 32px rgba(76,59,169,.10)}
.mmcrm-classic .mmcrm-global-timer-copy{display:flex;align-items:center;gap:10px;min-width:0}
.mmcrm-classic .mmcrm-global-timer-copy>div{min-width:0;display:grid;gap:2px}
.mmcrm-classic .mmcrm-global-timer-copy small{font-size:10px;color:#8a84a5}
.mmcrm-classic .mmcrm-global-timer-copy b{font-size:12px;color:#292440;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:460px}
.mmcrm-classic .mmcrm-global-timer-copy em{font-style:normal;font-size:9px;color:#8c84b7}
.mmcrm-classic .mmcrm-live-dot{width:10px;height:10px;border-radius:50%;background:#f1b22a;box-shadow:0 0 0 5px rgba(241,178,42,.12);flex:0 0 auto}
.mmcrm-classic .mmcrm-live-dot.running{background:#1fc77e;box-shadow:0 0 0 5px rgba(31,199,126,.12);animation:mmcrmPulse 1.8s ease-in-out infinite}
.mmcrm-classic .mmcrm-global-timer>strong{font:800 20px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#1e2340;direction:ltr;min-width:96px;text-align:center}
.mmcrm-classic .mmcrm-global-timer-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.mmcrm-classic .mmcrm-global-timer-actions .btn{min-height:36px;padding:8px 11px;display:inline-flex;align-items:center;justify-content:center;gap:5px;box-shadow:none}
.mmcrm-classic .mmcrm-global-timer-actions .dashicons{font-size:16px;width:16px;height:16px}
.mmcrm-classic .mmcrm-global-timer-actions .timer-pause{background:#fff7e7;border-color:#f1dba8;color:#8a5b08}
.mmcrm-classic .mmcrm-global-timer-actions .timer-open{background:#fff;color:#5f6780}
@keyframes mmcrmPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 5px rgba(31,199,126,.10)}50%{transform:scale(1.08);box-shadow:0 0 0 8px rgba(31,199,126,.04)}}

/* Danger actions must stay readable in both themes and after nested overrides. */
.mmcrm-classic .btn.danger,.mmcrm-classic button.btn.danger,.mmcrm-classic .timer-stop{background:linear-gradient(135deg,#ef5269,#d83a50)!important;border-color:transparent!important;color:#fff!important;text-shadow:0 1px 1px rgba(80,0,10,.16)}
.mmcrm-classic .btn.danger *,.mmcrm-classic .timer-stop *{color:#fff!important}
.mmcrm-classic .btn.danger:hover,.mmcrm-classic .timer-stop:hover{background:linear-gradient(135deg,#df445c,#c92f45)!important;color:#fff!important;box-shadow:0 10px 22px rgba(210,54,73,.20)}
.mmcrm-classic .time-row-actions .btn.danger{opacity:1!important}

/* Settings toggle for global employee client creation policy. */
.mmcrm-classic .mmcrm-setting-switch{margin:18px 0 16px;padding:13px 14px;border:1px solid #e8ecf6;border-radius:16px;background:#f9faff;align-items:center}
.mmcrm-classic .mmcrm-setting-switch b{font-size:12px;color:#273149}

/* Dark: opaque sticky surface prevents timer/header from bleeding over content. */
.mmcrm-classic.mmcrm-dark .mmcrm-sticky-head{background:rgba(9,14,24,.985);border-bottom-color:#202a3d;box-shadow:0 12px 34px rgba(0,0,0,.22)}
.mmcrm-classic.mmcrm-dark .mmcrm-main>header.mmcrm-topbar{background:transparent!important}
.mmcrm-classic.mmcrm-dark .mmcrm-icon-btn.is-theme{color:#c7d0e3}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer{background:linear-gradient(135deg,#121a2b,#17152a);border-color:#34305a;box-shadow:0 16px 36px rgba(0,0,0,.25)}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer-copy small{color:#949db2}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer-copy b{color:#f1f4fb}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer-copy em{color:#a99edf}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer>strong{color:#f3f6ff}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer-actions .timer-pause{background:#332914;border-color:#4b3b18;color:#ffd376}
.mmcrm-classic.mmcrm-dark .mmcrm-global-timer-actions .timer-open{background:#141d2e;border-color:#27344d;color:#c3ccdd}
.mmcrm-classic.mmcrm-dark .mmcrm-setting-switch{background:#101827;border-color:#263149}
.mmcrm-classic.mmcrm-dark .mmcrm-setting-switch b{color:#eef2ff}

/* Keep content safely below sticky header stack. */
.mmcrm-classic #mmcrm-view{position:relative;z-index:1}
.mmcrm-classic .mmcrm-main{isolation:isolate}

@media(max-width:1180px){
  .mmcrm-classic .mmcrm-main>header.mmcrm-topbar{grid-template-columns:1fr;gap:12px}
  .mmcrm-classic .mmcrm-header-left{justify-content:stretch;flex-wrap:wrap}
  .mmcrm-classic .mmcrm-searchbox{min-width:220px;max-width:none;flex:1 1 260px}
  .mmcrm-classic .mmcrm-user-chip{margin-inline-start:auto}
  .mmcrm-classic .mmcrm-global-timer{grid-template-columns:minmax(0,1fr) auto}
  .mmcrm-classic .mmcrm-global-timer-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:980px){
  .mmcrm-classic .mmcrm-sticky-head{top:0}
  .mmcrm-classic .mmcrm-main>header.mmcrm-topbar{padding:16px 18px 10px}
  .mmcrm-classic .mmcrm-mobile-row{display:flex;align-items:center;justify-content:flex-start}
  .mmcrm-classic .mmcrm-global-timerbar{padding:0 18px 10px}
}
@media(max-width:680px){
  .mmcrm-classic .mmcrm-header-left{display:grid;grid-template-columns:1fr auto;gap:9px}
  .mmcrm-classic .mmcrm-searchbox{grid-column:1/-1;min-width:0;width:100%}
  .mmcrm-classic .mmcrm-user-chip{min-width:0;margin:0}
  .mmcrm-classic .mmcrm-header-actions{justify-content:flex-end}
  .mmcrm-classic .mmcrm-global-timer{grid-template-columns:1fr auto;gap:10px;padding:11px}
  .mmcrm-classic .mmcrm-global-timer-copy b{max-width:56vw}
  .mmcrm-classic .mmcrm-global-timer>strong{font-size:17px;min-width:84px}
  .mmcrm-classic .mmcrm-global-timer-actions{display:grid;grid-template-columns:1fr 1fr 1fr;width:100%}
  .mmcrm-classic .mmcrm-global-timer-actions .btn{width:100%}
  .mmcrm-classic .mmcrm-global-timer-actions .timer-open{grid-column:auto}
}
@media(max-width:460px){
  .mmcrm-classic .mmcrm-main>header.mmcrm-topbar{padding:13px 12px 9px}
  .mmcrm-classic .mmcrm-global-timerbar{padding:0 12px 9px}
  .mmcrm-classic .mmcrm-user-chip>div{display:none}
  .mmcrm-classic .mmcrm-user-chip{min-width:auto;padding:7px}
  .mmcrm-classic .mmcrm-global-timer{grid-template-columns:1fr;align-items:start}
  .mmcrm-classic .mmcrm-global-timer>strong{justify-self:start}
  .mmcrm-classic .mmcrm-global-timer-actions{grid-template-columns:1fr 1fr}
  .mmcrm-classic .mmcrm-global-timer-actions .timer-open{grid-column:1/-1}
}
