/* Veyora workspace: compact navigation and consistent data surfaces. */
:root{--workspace-bg:#f7f6fa;--workspace-panel:#fff;--workspace-soft:#f0edf5;--workspace-text:#282334;--workspace-border:#e5e1ec;--workspace-accent:#7255a8;--workspace-hover:#f6f3fa;--workspace-sidebar:#fcfbfe;--workspace-radius:12px}
[data-theme="dark"]{--workspace-bg:#11121a;--workspace-panel:#1b1c28;--workspace-soft:#242535;--workspace-text:#e8e7ef;--workspace-border:#323344;--workspace-accent:#b09ae6;--workspace-hover:#232230;--workspace-sidebar:#191a25}
body{background:var(--workspace-bg);color:var(--workspace-text);font-size:14px;line-height:1.45}.ui-icon{width:19px;height:19px;display:inline-block;flex:none;vertical-align:middle}.crm-shell.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh;align-items:start}.crm-sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100dvh;min-width:0;border-right:1px solid var(--workspace-border);background:var(--workspace-sidebar);z-index:20;padding:22px 14px 16px}.crm-brand{display:flex;align-items:center;gap:11px;padding:4px 12px 26px;color:var(--workspace-text)!important;letter-spacing:2px;font-size:16px;font-weight:750}.brand-symbol{display:grid;place-items:center;background:var(--workspace-soft);border:1px solid var(--workspace-border);border-radius:10px;width:36px;height:36px;font-size:24px;color:var(--workspace-accent)}.crm-brand small{display:block;letter-spacing:0;font-size:10px;font-weight:400;margin-top:3px}.crm-shell .crm-sidebar nav{position:static;display:block;flex:1;height:auto;overflow-y:auto;background:none!important;padding:0;border:0!important}.nav-group{margin-bottom:20px}.nav-group-label{display:block;font-size:10px;letter-spacing:.6px;color:var(--muted);padding:0 13px 8px}.crm-shell .crm-sidebar nav a{display:flex;align-items:center;gap:11px;min-height:39px;padding:8px 12px;border-radius:8px;font-size:13px;margin:3px 0;color:var(--muted);white-space:nowrap}.crm-shell .crm-sidebar nav a:hover{background:var(--workspace-soft)}.crm-shell .crm-sidebar nav a.active{background:#7555b51c!important;color:var(--workspace-accent)!important;font-weight:650}.crm-shell .crm-sidebar nav a .ui-icon{width:17px;height:17px}.crm-shell .crm-sidebar nav a .inbox-badge{margin-left:auto}.sidebar-account{display:flex;gap:10px;align-items:center;border-top:1px solid var(--workspace-border);padding:17px 9px 0;min-width:0}.sidebar-account>span:last-child{min-width:0}.sidebar-account b{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-account small{font-size:10px}.account-avatar,.visitor-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;font-weight:650;background:#8468c31a;color:var(--workspace-accent)}.crm-workspace{min-width:0}.crm-topbar{position:sticky;top:0;z-index:10;background:var(--workspace-bg)!important;color:var(--workspace-text)!important;border-bottom:1px solid var(--workspace-border);height:62px;padding:10px 32px;display:flex;justify-content:space-between;gap:16px}.workspace-location{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);min-width:0}.workspace-location b{font-weight:500;color:var(--workspace-text)}.workspace-location i{font-style:normal;opacity:.4}.workspace-actions{display:flex;gap:8px}.workspace-actions button{font-size:12px;padding:6px 11px;min-height:32px;background:transparent!important;border:1px solid var(--workspace-border);color:var(--workspace-text)!important}.crm-shell main{max-width:1440px;margin:0 auto;width:100%;padding:34px 32px 60px;min-width:0}.crm-shell h1{font-size:26px;font-weight:650;line-height:1.25;letter-spacing:-.6px;margin:0 0 8px}.crm-shell h2{font-size:17px;font-weight:600;letter-spacing:-.25px;margin:0 0 12px}.crm-shell h3{font-size:14px}.crm-shell main>p.muted{margin:0 0 22px;font-size:13px;max-width:850px}.crm-shell .eyebrow{font-size:10px;letter-spacing:.5px}.crm-shell button,.crm-shell .primary,.crm-shell .secondary{font-size:13px;min-height:35px;padding:8px 13px;border-radius:8px;line-height:1.3;display:inline-flex;justify-content:center;align-items:center;gap:6px;transition:background .12s}.crm-shell .primary{background:#7255a8;color:white}.crm-shell [data-analytics-mode]{min-height:30px}.crm-shell input,.crm-shell select,.crm-shell textarea{font-size:13px;border-radius:8px;border-color:var(--workspace-border);color:var(--workspace-text)}.crm-shell input:not([type=checkbox]),.crm-shell select{min-height:36px;padding:8px 10px}.crm-shell label{font-size:12px;line-height:1.5}.crm-shell input[type=checkbox]{accent-color:#8065bb;width:15px;height:15px;min-height:0}.crm-shell .panel,.crm-shell .tablewrap{box-shadow:none;border:1px solid var(--workspace-border);border-radius:var(--workspace-radius);background:var(--workspace-panel);color:var(--workspace-text)}.crm-shell .panel{padding:22px;margin:20px 0;background-image:none!important}.crm-shell .panel p.muted{font-size:12px}.crm-shell .section-head,.crm-shell .panel-title{align-items:center}.crm-shell .section-head{margin-bottom:24px}.crm-shell .section-head p{margin:5px 0 0;font-size:13px}.crm-shell .tablewrap{margin:16px 0;max-width:100%;overflow:auto}.crm-shell table{font-size:12px;border-collapse:collapse;width:100%;background:var(--workspace-panel)}.crm-shell th{padding:12px 16px;font-size:11px;font-weight:500;white-space:nowrap;color:var(--muted);background:var(--workspace-soft);border-bottom:1px solid var(--workspace-border)}.crm-shell td{padding:14px 16px;vertical-align:middle;border-bottom:1px solid var(--workspace-border);line-height:1.5;max-width:330px;overflow-wrap:anywhere}.crm-shell tbody tr:last-child td{border-bottom:0}.crm-shell tbody tr:hover{background:var(--workspace-hover)}.crm-shell td small{font-size:10px;display:block;line-height:1.45;margin-top:4px}.crm-shell td b{font-weight:550}.crm-shell th a{color:inherit}.crm-shell .badge,.crm-shell .delivery-status{font-size:10px;font-weight:500;border-radius:5px;padding:4px 7px;max-width:100%;width:fit-content;line-height:1.4;white-space:normal}.crm-shell .clickable-row{cursor:pointer}.visitor-identity{display:flex;gap:10px;align-items:center;min-width:180px;margin-bottom:7px}.visitor-identity a{font-weight:600;color:var(--workspace-text)!important;font-size:13px}.visitor-identity small{margin-top:2px!important}.crm-shell .pager{font-size:12px;padding:6px 2px}.crm-shell .tabs{gap:3px;margin:16px 0;display:flex;border:0}.crm-shell .tabs a{font-size:12px;border-radius:7px;padding:8px 12px;background:transparent!important;color:var(--muted);min-height:32px}.crm-shell .tabs a.active{color:var(--workspace-accent)!important;background:#8065bb18!important;font-weight:600}.crm-shell .tabs a:hover{background:var(--workspace-soft)!important}.crm-shell .status-filter{gap:6px;padding:5px 0;margin:0 0 16px;border:0}.crm-shell .status-filter a{border-radius:6px;font-size:11px;padding:6px 10px}.crm-shell .tools{background:none!important;gap:12px;padding:0;margin:16px 0}.crm-shell .search{gap:8px}.crm-shell .search input{min-width:220px}.crm-shell .rangebar{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;background:var(--workspace-panel)!important;border:1px solid var(--workspace-border);border-radius:10px;padding:12px;margin:22px 0}.crm-shell .rangebar .tabs{margin:0;flex-shrink:0}.crm-shell .rangebar .period-picker{width:auto!important;display:flex!important;gap:9px!important;flex-wrap:wrap;align-items:end;justify-content:flex-end;min-width:0!important;grid-template-columns:none!important}.crm-shell .rangebar .period-dates,.crm-shell .rangebar .time-fields{display:flex;gap:8px;min-width:0}.crm-shell .rangebar .time-fields{display:none!important}.crm-shell .rangebar .time-enabled .time-fields{display:flex!important}.crm-shell .rangebar .period-picker input{width:125px!important;min-height:34px!important;height:34px;max-width:100%;padding:6px 8px!important;background:var(--workspace-bg)!important;color:var(--workspace-text)!important;border-color:var(--workspace-border)!important;font-size:12px!important}.crm-shell .rangebar .period-picker input[type=time]{width:91px!important}.crm-shell .rangebar .period-picker .time-toggle{display:flex!important;align-items:center;gap:6px;min-height:34px;white-space:nowrap;margin:0;font-size:11px}.crm-shell .rangebar .time-toggle input{width:14px!important;min-height:0!important;height:14px;flex:none}.crm-shell .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.crm-shell .metric-card{border:1px solid var(--workspace-border);border-radius:12px;background:var(--workspace-panel)!important;box-shadow:none!important;transform:none!important;min-width:0}.crm-shell .metric-card summary{padding:18px;gap:8px}.crm-shell .metric-card summary small{font-size:11px}.crm-shell .metric-card b,.crm-shell .purchase-summary b{font:500 30px/1.15 inherit; font-family:inherit;font-size:30px;font-weight:500;color:var(--workspace-text)!important;letter-spacing:-1px;overflow-wrap:anywhere}.crm-shell .metric-card summary span{font-size:10px;opacity:.75}.crm-shell .metric-card p{font-size:12px}.crm-shell .purchase-summary{background:none!important;gap:12px}.crm-shell .purchase-summary>div{background:var(--workspace-panel)!important;border-color:var(--workspace-border);border-radius:12px;padding:18px}.crm-shell .purchase-summary b{font-family:inherit;font-size:28px;line-height:1.2}.crm-shell .mailing-kpis>a,.crm-shell .mailing-kpis>article,.crm-shell .mailing-stats>a{background:var(--workspace-panel)!important;border:1px solid var(--workspace-border);border-radius:12px;padding:18px;box-shadow:none}.crm-shell .mailing-kpis b,.crm-shell .mailing-stats b{font-family:inherit!important;font-size:28px;font-weight:500;color:var(--workspace-text)!important}.crm-shell .mailing-kpis span,.crm-shell .mailing-stats span{font-size:11px}.crm-shell .funnel{background:var(--workspace-panel)!important;gap:24px}.crm-shell .bar{height:6px;background:var(--workspace-soft)}.crm-shell .bar i{background:#8d75cf;border-radius:8px;max-width:100%}.crm-shell .mailing-tracker{background:var(--workspace-panel)!important}.crm-shell .mail-card,.crm-shell .product-card,.crm-shell .admin-card,.crm-shell .support-card,.crm-shell .forecast-item{background:var(--workspace-panel)!important;border:1px solid var(--workspace-border);border-radius:10px;box-shadow:none!important}.crm-shell .mail-card{padding:17px}.crm-shell .mail-card h3{margin:7px 0;font-size:14px}.crm-shell .mail-card small{font-size:11px}.crm-shell .product-card>summary{padding:17px!important;gap:16px}.crm-shell .product-card{padding:0!important}.crm-shell .product-card form{padding:20px!important;margin:0!important;border-top:1px solid var(--workspace-border)}.crm-shell .product-icon{width:36px;height:36px;border-radius:9px;font-size:20px;background:var(--workspace-soft)}.crm-shell .product-meta strong{font-family:inherit;font-size:17px;font-weight:500}.crm-shell .product-overview b{font-size:14px;font-weight:550}.crm-shell .admin-card{padding:15px}.crm-shell .support-card>summary{padding:18px}.crm-shell .support-card summary>span:first-child{gap:5px}.crm-shell .support-card summary b{font-size:13px;font-weight:550}.crm-shell .support-body{border-color:var(--workspace-border)}.crm-shell .support-message{background:var(--workspace-soft);font-size:13px}.crm-shell .management-search{display:flex;align-items:center;gap:9px;margin:18px 0 12px;padding:0 12px;min-height:38px;background:var(--workspace-soft);border:1px solid var(--workspace-border);border-radius:8px;color:var(--muted)}.crm-shell .management-search input{flex:1;min-width:0;border:0;background:transparent!important;padding:8px 0;outline:none}.crm-shell .management-search span{font-size:11px}.crm-shell [hidden]{display:none!important}.crm-shell .mail-modal{border-radius:14px}.crm-shell .modal-shell{background:var(--workspace-panel)!important;padding:24px}.crm-shell .modal-head{border-bottom:1px solid var(--workspace-border);padding-bottom:18px;margin-bottom:20px}.crm-shell .modal-head h2{font-size:21px}.crm-shell .modal-actions{background:var(--workspace-panel);border-color:var(--workspace-border)}.crm-shell .mail-step{background:var(--workspace-soft)!important;border:1px solid var(--workspace-border);border-radius:10px}.crm-shell .mail-health{border-radius:10px;padding:14px 16px;background:var(--workspace-panel)!important;border-color:var(--workspace-border)}.crm-shell .mail-health small,.crm-shell .mail-health li{font-size:11px}.crm-shell .health-chip{font-size:10px}.crm-shell .mail-log-toolbar{padding:0;gap:8px}.crm-shell .mail-log-toolbar label{font-size:11px}.crm-shell .mail-log-toolbar button{font-size:12px}.crm-shell .mail-delivery-table td{font-size:11px}.crm-shell .mail-delivery-table .delivery-error{max-width:270px;font-size:10px;line-height:1.5}.crm-shell .delivery-actions{flex-wrap:nowrap;gap:6px}.crm-shell .delivery-actions button{min-width:0;font-size:11px;padding:6px 9px}.crm-shell .facts{gap:12px}.crm-shell .fact{border:0;background:var(--workspace-soft);border-radius:8px;padding:12px}.crm-shell .fact small{font-size:10px}.crm-shell .fact span{font-size:13px}.crm-shell .inbox-toolbar{padding:12px 16px}.crm-shell .inbox-toolbar .tabs{margin:0}.crm-shell .inbox-card{border-radius:9px;padding:16px;box-shadow:none}.crm-shell .inbox-card-main strong{font-size:13px;font-weight:500}.crm-shell .inbox-card-main b{font-size:13px}.crm-shell .inbox-card-main p{font-size:12px}.crm-shell .inbox-card-meta small{font-size:11px}.crm-shell .inbox-card-main small{font-size:10px}.crm-shell .inbox-avatar{width:34px;height:34px;border-radius:9px;font-size:13px}.crm-shell .inbox-card{gap:13px}.crm-shell .mail-message{border-radius:12px;padding:20px;background:var(--workspace-panel)}.crm-shell .mail-text{font-size:13px}.crm-shell .mail-message-head b{font-size:13px}.crm-shell .mail-message-head small{font-size:10px}
.trend-chart{margin-top:20px}.chart-series-controls{display:flex;flex-wrap:wrap;gap:22px;margin-bottom:20px}.chart-series-control{display:flex!important;align-items:center;gap:6px;font-size:11px!important;cursor:pointer}.chart-series-control input{position:absolute;opacity:0;pointer-events:none}.chart-series-control:has(input:focus-visible){outline:2px solid var(--workspace-accent);outline-offset:5px;border-radius:4px}.chart-series-control i{width:8px;height:8px;border-radius:50%;background:var(--series-color)}.chart-series-control b{font-size:17px;font-weight:500;margin-left:3px;letter-spacing:-.4px}.chart-series-control.series-hidden{opacity:.35}.chart-scroll{width:100%;overflow:auto}.trend-svg{width:100%;min-width:580px;height:auto;display:block;overflow:visible}.trend-svg text{font:11px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;fill:var(--muted)}.chart-gridline{stroke:var(--workspace-border);stroke-width:1;stroke-dasharray:3 5}.chart-caption{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px;margin:12px 0 0}.chart-empty,.data-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:210px;text-align:center;color:var(--muted)}.chart-empty .ui-icon,.data-empty .ui-icon{width:44px;height:44px;padding:9px;border:1px solid var(--workspace-border);border-radius:12px;color:var(--workspace-accent);background:var(--workspace-soft)}.data-empty b,.chart-empty b{font-size:14px!important;font-weight:500!important;color:var(--workspace-text)}.data-empty span,.chart-empty span{font-size:12px}.sidebar-toggle,.sidebar-close,.sidebar-backdrop{display:none!important}
@media(min-width:1500px){.crm-shell main{padding:40px 52px 70px}.crm-shell .metric-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.crm-shell .metric-card summary{padding:17px 14px}.crm-shell .metric-card b{font-size:27px}.crm-topbar{padding-inline:42px}}
@media(max-width:1100px) and (min-width:821px){.crm-shell.layout{grid-template-columns:210px minmax(0,1fr)}.crm-shell main{padding:28px 24px}.crm-sidebar{padding-inline:10px}.crm-shell .metric-grid{gap:10px}.crm-shell .metric-card b{font-size:27px}}
@media(max-width:820px){.crm-shell.layout{display:block}.crm-shell .crm-sidebar{position:fixed;left:0;top:0;bottom:0;width:264px;height:100dvh;transform:translateX(-100%);transition:transform .18s ease;z-index:60;box-shadow:12px 0 40px #0004;padding-top:max(24px,env(safe-area-inset-top))}.crm-shell.menu-open .crm-sidebar{transform:translateX(0)}.crm-shell .sidebar-backdrop:not([hidden]){display:block!important;position:fixed;inset:0;background:#0007;z-index:50;border:0;border-radius:0;padding:0}.crm-shell .sidebar-close{display:flex!important;position:absolute;top:18px;right:12px;width:32px;height:32px;padding:6px;border:0;background:transparent;min-height:32px}.crm-shell .crm-brand{padding-bottom:24px;padding-right:25px}.crm-shell .sidebar-toggle{display:flex!important;padding:6px;width:36px;min-height:36px;color:var(--workspace-text);background:var(--workspace-soft);border:1px solid var(--workspace-border)}.crm-shell .crm-topbar{height:60px;padding:10px 16px}.workspace-location>span,.workspace-location>i{display:none}.workspace-location{gap:9px}.workspace-location b{font-size:12px}.workspace-actions{gap:6px}.crm-shell .workspace-actions button{font-size:10px;min-height:34px;padding:5px 8px}.crm-shell main{padding:24px 16px 40px}.crm-shell h1{font-size:24px}.crm-shell h2{font-size:17px}.crm-shell main>p.muted{font-size:12px;margin-bottom:18px}.crm-shell button,.crm-shell .primary,.crm-shell .secondary{min-height:42px;font-size:13px}.crm-shell input,.crm-shell select,.crm-shell textarea{font-size:16px}.crm-shell .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.crm-shell .metric-card summary{padding:15px;gap:7px}.crm-shell .metric-card summary small{font-size:10px}.crm-shell .metric-card b{font-size:26px;letter-spacing:-.7px}.crm-shell .metric-card summary span{font-size:9px}.crm-shell .panel{padding:18px;margin:18px 0}.crm-shell .tablewrap{margin:16px 0;border-radius:10px;width:100%}.crm-shell table{font-size:12px;min-width:620px}.crm-shell th,.crm-shell td{padding:12px}.crm-shell .rangebar{margin:18px 0;padding:12px;gap:12px;display:block}.crm-shell .rangebar .tabs{margin:0 0 12px;display:flex;flex-wrap:wrap;gap:2px;overflow:visible}.crm-shell .rangebar .tabs a{padding:7px 9px;font-size:11px;min-height:32px}.crm-shell .rangebar .period-picker{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;width:100%!important;gap:10px!important;justify-content:stretch}.crm-shell .rangebar .period-dates{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.crm-shell .rangebar .period-dates label,.crm-shell .rangebar .time-fields label{grid-area:auto!important;min-width:0!important;width:100%;display:grid!important;gap:4px;margin:0;overflow:hidden}.crm-shell .rangebar .period-picker .period-dates input,.crm-shell .rangebar .period-picker .time-fields input{width:100%!important;min-width:0!important;max-width:100%!important;min-height:38px!important;height:38px;font-size:14px!important;border-radius:8px!important}.crm-shell .rangebar .period-picker .time-toggle{grid-column:1;margin:0;min-width:0;min-height:38px;font-size:11px;white-space:normal}.crm-shell .rangebar .period-picker>button{grid-column:2!important;grid-row:2!important;min-height:38px;margin:0}.crm-shell .rangebar .period-picker.time-enabled .time-fields{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-shell .rangebar .period-picker .time-toggle input{width:14px!important;height:14px;min-height:0!important}.crm-shell .search input{min-width:0;width:100%}.crm-shell .tools{display:grid;grid-template-columns:1fr}.crm-shell .tools .search{display:flex;width:100%;min-width:0}.crm-shell .tools .search input{flex:1}.crm-shell .tools>button{width:100%}.crm-shell .section-head{align-items:flex-start;gap:14px;flex-wrap:wrap}.crm-shell .section-head>button{width:auto}.crm-shell .panel-title{gap:12px}.crm-shell .status-filter{overflow-x:auto;flex-wrap:nowrap}.crm-shell .status-filter a{font-size:10px;min-height:32px}.crm-shell .purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-shell .purchase-summary>div{padding:14px}.crm-shell .purchase-summary>div:last-child{grid-column:1/-1}.crm-shell .purchase-summary b{font-size:26px}.crm-shell .mailing-kpis,.crm-shell .mailing-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crm-shell .mailing-kpis>a,.crm-shell .mailing-kpis>article,.crm-shell .mailing-stats>a{padding:14px;display:block;min-width:0}.crm-shell .mailing-kpis b,.crm-shell .mailing-stats b{display:block;font-size:25px;margin:8px 0}.crm-shell .mailing-stats a span{display:block;font-size:10px}.crm-shell .mailing-stats a small{font-size:10px}.chart-series-controls{gap:12px 18px}.chart-series-control{font-size:10px!important}.chart-series-control b{font-size:15px}.trend-svg{min-width:520px}.chart-caption{font-size:9px}.crm-shell .mail-log-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crm-shell .mail-log-toolbar>button{width:100%;font-size:11px;min-width:0}.crm-shell .delivery-actions button{min-width:0;min-height:34px}.crm-shell .modal-shell{padding:18px}.crm-shell .modal-head{gap:12px}.crm-shell .modal-head h2{font-size:20px}.crm-shell .management-search input{font-size:16px}.crm-shell .management-search{min-height:44px}.crm-shell .inbox-card{padding:14px}.crm-shell .inbox-card-meta{padding-left:47px}.crm-shell .inbox-card-main{width:calc(100% - 47px)}.crm-shell .admin-create button{width:100%}.crm-shell .sidebar-account b{font-size:11px}.crm-shell .mailing-nav{flex-wrap:wrap;overflow:visible}.crm-shell .mailing-nav a{font-size:11px;padding:7px 9px}.crm-shell .product-card form{padding:16px!important}.crm-shell .chart-empty{min-height:160px}.crm-shell .workspace-actions #logout{min-width:50px}.crm-shell .inbox-toolbar input{min-width:0}.crm-shell .inbox-thread{grid-template-columns:1fr}.crm-shell .mail-reply textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.crm-shell *{transition:none!important}}

.crm-shell .mail-card-list{border:1px solid var(--workspace-border);border-radius:10px;gap:0;overflow:hidden;background:var(--workspace-panel)}.crm-shell .mail-card-list .mail-card{border:0;border-bottom:1px solid var(--workspace-border);border-radius:0;margin:0;box-shadow:none;padding:16px 18px;align-items:center}.crm-shell .mail-card-list .mail-card:last-child{border-bottom:0}.crm-shell .mail-card-list .mail-card:hover{background:var(--workspace-hover)!important}.crm-shell .mail-card-list.empty-list{min-height:280px;display:grid;place-items:center}.crm-shell .mail-card .badge{width:fit-content}.crm-shell .list-heading{background:none!important;border:0;padding:0;margin:22px 0 16px;box-shadow:none}.crm-shell .list-heading h2{font-size:18px;margin-bottom:5px}.crm-shell .list-heading p{margin:0}.crm-shell .health-details{margin-top:10px;border-top:1px solid var(--workspace-border);padding-top:10px}.crm-shell .health-details summary{cursor:pointer;font-size:11px;color:var(--muted)}.crm-shell .health-details .health-checks{margin:12px 0}.crm-shell .health-heading b{font-size:12px}.crm-shell .mailing-hero{padding:18px 20px;margin:20px 0}.crm-shell .mailing-hero h2{font-size:17px;margin:4px 0}.crm-shell .mailing-hero p{margin:0}.crm-shell .mail-card-actions{display:flex;gap:7px;flex-wrap:wrap}.crm-shell .mail-card-actions>*{font-size:12px!important}.crm-shell .campaign-form,.crm-shell .template-form{gap:18px}.crm-shell .inbox-list .inbox-card{border:0;border-bottom:1px solid var(--workspace-border);border-radius:0;margin:0}.crm-shell .inbox-list{border:1px solid var(--workspace-border);border-radius:10px;overflow:hidden;gap:0;background:var(--workspace-panel)}.crm-shell .inbox-list .inbox-card:last-child{border-bottom:0}.crm-shell .inbox-list .inbox-card.unread{border-left:3px solid #3aba88}.crm-shell .inbox-card-main strong{margin:4px 0}.crm-shell .inbox-card-main p{margin:3px 0}.crm-shell .performance-panel .tablewrap{margin-bottom:0}.crm-shell .performance-panel{padding:20px}.crm-shell .analytics-switch{border-radius:8px;padding:3px}.crm-shell .analytics-switch button{min-height:28px;font-size:11px;padding:5px 10px}.crm-shell .template-help{border-radius:8px;font-size:11px}
@media(max-width:820px){.crm-shell .mail-card-list .mail-card{padding:15px}.crm-shell .mail-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.crm-shell .mail-card-actions>*{width:100%;min-width:0}.crm-shell .health-heading{align-items:flex-start;gap:8px}.crm-shell .health-heading>a{font-size:10px;white-space:nowrap}.crm-shell .mailing-hero{padding:16px}.crm-shell .health-heading small{font-size:9px}.crm-shell .health-dot{margin-top:3px}.crm-shell .performance-panel{padding:16px}.crm-shell .performance-panel .panel-title{align-items:flex-start}.crm-shell .mail-card-list .mail-card .row{justify-content:stretch}.crm-shell .list-heading{padding:0;margin:20px 0}}

/* Compact period chooser, shared across reports and lists. */
.crm-shell .period-dropdown{position:relative;display:block;margin:20px 0 16px;text-align:right;z-index:12}.crm-shell .period-dropdown>summary{list-style:none;display:inline-flex;align-items:center;gap:18px;cursor:pointer;border:1px solid var(--workspace-border);background:var(--workspace-soft);border-radius:8px;padding:8px 12px;font-size:12px;min-height:36px;max-width:100%;text-align:left}.period-dropdown>summary::-webkit-details-marker{display:none}.crm-shell .period-dropdown>summary:hover{border-color:var(--workspace-accent)}.crm-shell .period-dropdown>.rangebar{position:absolute;right:0;top:calc(100% + 8px);width:480px;max-width:calc(100vw - 32px);margin:0;padding:16px;box-shadow:0 12px 36px #0003;text-align:left;display:block}.crm-shell .period-dropdown .rangebar .tabs{display:grid;grid-template-columns:1fr 1fr;margin:0 0 18px;gap:6px}.crm-shell .period-dropdown .rangebar .tabs a{background:var(--workspace-soft)!important;text-align:center}.crm-shell .period-dropdown .period-picker{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:12px!important}.crm-shell .period-dropdown .period-dates,.crm-shell .period-dropdown .time-fields{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}.crm-shell .period-dropdown .time-fields{display:none!important}.crm-shell .period-dropdown .time-enabled .time-fields{display:grid!important}.crm-shell .period-dropdown .period-picker input:not([type=checkbox]){width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box}.crm-shell .period-dropdown .period-picker label{min-width:0}.crm-shell .period-dropdown .time-toggle{grid-column:1;align-self:center}.crm-shell .period-dropdown .period-picker>button{grid-column:2;justify-self:end}.crm-shell .correspondence-tabs{margin-top:0;border-bottom:1px solid var(--workspace-border);padding-bottom:12px;margin-bottom:24px}
@media(max-width:820px){.crm-shell .period-dropdown>summary{min-height:42px;font-size:13px}.crm-shell .period-dropdown .period-picker input:not([type=checkbox]){font-size:16px!important;height:42px!important}.crm-shell .period-dropdown .time-toggle{grid-column:1!important;grid-row:auto!important}.crm-shell .period-dropdown .period-picker>button{grid-column:2!important;grid-row:auto!important}.crm-shell .period-dropdown .time-fields{grid-row:auto!important}.crm-shell .period-dropdown .period-dates{grid-row:auto!important}}

/* Action status palette: identical in visitor badges and filters, both themes. */
.crm-shell .badge.stage-visit,.crm-shell .status-filter a.status-visit{--stage-bg:#edf0f5;--stage-ink:#526176;--stage-border:#d4dce6;background:var(--stage-bg)!important;color:var(--stage-ink)!important;border:1px solid var(--stage-border)!important}
[data-theme="dark"] .crm-shell .badge.stage-visit,[data-theme="dark"] .crm-shell .status-filter a.status-visit{--stage-bg:#293342;--stage-ink:#c1ccdb;--stage-border:#48586d}
.crm-shell .badge.stage-chat_started,.crm-shell .status-filter a.status-chat_started{--stage-bg:#eee8fb;--stage-ink:#7145ab;--stage-border:#dacbf1;background:var(--stage-bg)!important;color:var(--stage-ink)!important;border:1px solid var(--stage-border)!important}
[data-theme="dark"] .crm-shell .badge.stage-chat_started,[data-theme="dark"] .crm-shell .status-filter a.status-chat_started{--stage-bg:#382c50;--stage-ink:#ceb5f3;--stage-border:#675085}
.crm-shell .badge.stage-conversation,.crm-shell .status-filter a.status-conversation{--stage-bg:#e4f1fc;--stage-ink:#246d9a;--stage-border:#bfdef3;background:var(--stage-bg)!important;color:var(--stage-ink)!important;border:1px solid var(--stage-border)!important}
[data-theme="dark"] .crm-shell .badge.stage-conversation,[data-theme="dark"] .crm-shell .status-filter a.status-conversation{--stage-bg:#203c50;--stage-ink:#99d4fa;--stage-border:#3d6b88}
.crm-shell .badge.stage-one_purchase,.crm-shell .status-filter a.status-one_purchase{--stage-bg:#fff0df;--stage-ink:#965315;--stage-border:#efc793;background:var(--stage-bg)!important;color:var(--stage-ink)!important;border:1px solid var(--stage-border)!important}
[data-theme="dark"] .crm-shell .badge.stage-one_purchase,[data-theme="dark"] .crm-shell .status-filter a.status-one_purchase{--stage-bg:#493422;--stage-ink:#ffc48b;--stage-border:#855a35}
.crm-shell .badge.stage-repeat_purchase,.crm-shell .status-filter a.status-repeat_purchase{--stage-bg:#e4f4ea;--stage-ink:#246948;--stage-border:#b9dec9;background:var(--stage-bg)!important;color:var(--stage-ink)!important;border:1px solid var(--stage-border)!important}
[data-theme="dark"] .crm-shell .badge.stage-repeat_purchase,[data-theme="dark"] .crm-shell .status-filter a.status-repeat_purchase{--stage-bg:#223e30;--stage-ink:#9ee3bc;--stage-border:#3d7356}
.crm-shell .status-filter a.active{outline:2px solid currentColor;outline-offset:2px;box-shadow:none;font-weight:700}.crm-shell .badge[class*="stage-"]::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1px}.crm-shell .status-filter a.status-all{background:var(--workspace-soft)!important;color:var(--workspace-accent)!important;border-color:var(--workspace-border)!important}

html{background:var(--workspace-bg)!important;min-height:100%;color-scheme:light}html[data-theme="dark"]{color-scheme:dark}body,#app{width:100%;min-height:100dvh}.crm-loading-screen{width:100%!important;max-width:none!important;margin:0!important}.workspace-actions #workspace-export{white-space:nowrap;color:var(--workspace-accent)!important}.crm-shell main{min-height:calc(100dvh - 62px)}@media(max-width:820px){.workspace-location b{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-shell .crm-topbar{padding-inline:10px;gap:6px}.workspace-actions{gap:4px}.crm-shell .workspace-actions #workspace-export{font-size:11px;padding-inline:7px}.crm-shell .workspace-location{gap:6px}}

#mailbox-form{display:grid;gap:16px}#mailbox-editor{max-width:560px}#mailbox-form input:not([type=checkbox]),#mailbox-form select{width:100%}.inbox-toolbar #inbox-search{display:flex;gap:8px;flex-wrap:wrap}.inbox-toolbar #inbox-search select{max-width:100%;min-width:180px}.mail-reply label{display:grid;gap:7px;margin-bottom:16px}@media(max-width:820px){.inbox-toolbar #inbox-search select{width:100%}.correspondence-tabs{flex-wrap:wrap}}
