:root{
  --slds-blue:#0176d3;
  --slds-blue-dark:#014486;
  --slds-cloud:#f3f3f3;
  --slds-border:#c9c9c9;
  --slds-text:#181818;
  --slds-muted:#444;
  --slds-shadow:0 2px 2px rgba(0,0,0,.08);
}
body.crm-app{background:#f3f3f3;color:var(--slds-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.app-rail{width:68px;background:#032d60;border-right:0;box-shadow:2px 0 8px rgba(3,45,96,.18)}
.rail-brand{height:64px;background:#fff;border-radius:0;margin:0 0 8px;display:grid;place-items:center}
.rail-brand img{width:38px;height:38px;object-fit:contain}
.rail-nav{gap:2px;padding:0 7px}.rail-nav a{min-height:54px;border-radius:4px;color:#eaf5fe}.rail-nav a:hover{background:#0b5cab}.rail-nav a.active{background:#0176d3;color:#fff;box-shadow:inset 3px 0 #fff}
.rail-nav a span{font-size:10px;font-weight:600}.rail-profile{border:2px solid rgba(255,255,255,.9)}
.sf-shell{margin-left:68px}.global-bar{height:52px;background:#fff;border-bottom:1px solid #e5e5e5;box-shadow:0 1px 3px rgba(0,0,0,.08);padding:0 16px}
.global-brand{color:#032d60;font-weight:700}.global-brand img{width:27px;height:27px}.global-brand span{letter-spacing:.01em}
.global-search{max-width:540px;height:34px;background:#fff;border:1px solid #939393;border-radius:4px;box-shadow:none}.global-search:focus-within{border-color:#1b96ff;box-shadow:0 0 0 1px #1b96ff}
.global-search input{font-size:13px}.global-actions{gap:4px}.icon-action{width:34px;height:34px;border-radius:50%;color:#706e6b}.icon-action:hover{background:#eef4ff;color:#0176d3}
.workspace-nav{min-height:48px;background:#fff;border-bottom:1px solid #c9c9c9;padding:0 16px}.workspace-name{min-width:150px;color:#181818}.app-grid{color:#0176d3;font-size:22px}
.workspace-tabs{height:48px}.workspace-tabs>a,.more-menu>summary{height:48px;padding:0 14px;border-bottom:3px solid transparent;font-size:13px;color:#181818}.workspace-tabs>a:hover{background:#f3f3f3;color:#0176d3}.workspace-tabs>a.active{color:#032d60;border-bottom-color:#0176d3;font-weight:700}
.shell-main{padding:16px 20px 48px;max-width:none}.page-titlebar,.sf-list-view>header,.record-page>header,.sf-home>header{background:#fff;border:1px solid #c9c9c9;border-radius:4px;box-shadow:var(--slds-shadow)}
.page-titlebar{padding:14px 16px;margin-bottom:12px}.page-titlebar h1{font-size:24px;font-weight:400;color:#181818}.page-titlebar small,.page-titlebar p{color:#444}.object-icon{background:#0176d3;border-radius:4px}
.card,.panel,.metric-card,.dashboard-card,.sf-card{background:#fff;border:1px solid #c9c9c9;border-radius:4px;box-shadow:var(--slds-shadow)}
.card:hover,.dashboard-card:hover{box-shadow:0 3px 7px rgba(0,0,0,.14)}
.btn{border-radius:4px;min-height:32px;font-weight:600;font-size:13px;padding:0 16px}.btn.primary,.btn:not(.secondary):not(.danger){background:#0176d3;border-color:#0176d3;color:#fff}.btn.primary:hover,.btn:not(.secondary):not(.danger):hover{background:#014486}.btn.secondary{background:#fff;border:1px solid #0176d3;color:#0176d3}.btn.secondary:hover{background:#eef4ff}
table{background:#fff;border-collapse:collapse}th{background:#f3f3f3;color:#444;font-size:12px;text-transform:none;border-bottom:1px solid #c9c9c9}td{border-bottom:1px solid #e5e5e5}tbody tr:hover{background:#f3f3f3}
input,select,textarea{border-color:#939393!important;border-radius:4px!important}input:focus,select:focus,textarea:focus{border-color:#1b96ff!important;box-shadow:0 0 0 1px #1b96ff!important;outline:0}
.badge,.pill,.status-pill{border-radius:999px}.alert{border-radius:4px}.utility-bar{background:#fff;border:1px solid #c9c9c9;border-bottom:0;box-shadow:0 -2px 5px rgba(0,0,0,.12)}
.assistant-drawer{border-left:1px solid #c9c9c9}.assistant-head{background:#032d60;color:#fff}
[data-theme="dark"] body.crm-app{background:#0b1220;color:#e7edf6}[data-theme="dark"] .global-bar,[data-theme="dark"] .workspace-nav,[data-theme="dark"] .page-titlebar,[data-theme="dark"] .card,[data-theme="dark"] .panel,[data-theme="dark"] .dashboard-card{background:#111c2e;border-color:#304158}[data-theme="dark"] .workspace-tabs>a,[data-theme="dark"] .workspace-name{color:#e7edf6}
@media (max-width:900px){.app-rail{width:58px}.sf-shell{margin-left:58px}.global-search{max-width:320px}.workspace-tabs>a{padding:0 9px}}
@media (max-width:680px){.app-rail{display:none}.sf-shell{margin-left:0}.global-bar{padding:0 10px}.global-brand span{display:none}.workspace-nav{padding:0 8px}.workspace-name{min-width:auto}.workspace-tabs{overflow-x:auto}.shell-main{padding:10px 8px 44px}}
