/* Shared design language for the existing business components. */
:root{--workspace-ink:#203344;--workspace-teal:#087f79;--workspace-line:#e3eae9;--workspace-bg:#f3f6f5}
body{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;background:var(--workspace-bg);color:var(--workspace-ink)}
/* Reserve space for the local preview's environment banner only. */
body:has(>div[style*="2147483647"]){padding-top:26px!important}
body:has(>div[style*="2147483647"]) .app-shell>.sidebar{top:26px}
body:has(>div[style*="2147483647"]) .app-shell .topbar{top:26px}
body:has(>div[style*="2147483647"]) .unified-frame{height:calc(100dvh - 96px)}
.app-shell>.sidebar{width:226px;background:#112f35;color:#c3d2d3;border-right:1px solid #173c42}
.app-shell>.sidebar .brand{height:85px;min-height:85px;padding:0 23px;border-bottom:1px solid #ffffff13;gap:12px}
.app-shell>.sidebar .brand-mark{width:35px;height:35px;border-radius:10px;background:#7dd8ca;color:#123c3c;border:0;transform:none}
.app-shell>.sidebar .brand-mark span{font-size:24px;color:inherit;transform:none}
.app-shell>.sidebar .brand-copy strong{font-size:18px;letter-spacing:2px}
.app-shell>.sidebar .brand-copy>span{font-size:9px;letter-spacing:1.6px;color:#8cb5b6}
.app-shell>.sidebar .nav-scroll{padding:12px 12px 18px;scrollbar-width:thin;scrollbar-color:#3d6063 transparent}
.app-shell>.sidebar .nav-group{margin:0 0 14px}
.unified-nav-group summary{list-style:none;padding:11px 12px;color:#8aadae;font-size:11px;letter-spacing:1px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;user-select:none}.unified-nav-group summary::-webkit-details-marker{display:none}.unified-nav-group summary:after{content:'›';font-size:17px;transform:rotate(0deg);transition:transform .15s}.unified-nav-group[open] summary:after{transform:rotate(90deg)}.unified-nav-group summary:hover{color:#e5f5ef}.app-shell>.sidebar .unified-nav-group{margin-bottom:5px}
.app-shell>.sidebar .nav-group>p{margin:12px 12px 6px;color:#7fa2a5;font-size:10px;letter-spacing:1.8px}
.app-shell>.sidebar .nav-item{min-height:38px;padding:9px 12px;margin:2px 0;border:1px solid transparent;border-radius:8px;color:#b7cccd;font-size:12px;gap:11px;line-height:1.5}
.app-shell>.sidebar .nav-item svg{width:17px;height:17px;color:#7da5a8}
.app-shell>.sidebar .nav-item:hover{background:#ffffff09;color:#fff}
.app-shell>.sidebar .nav-item.active{background:#d9f2eb;color:#124f4a;border-color:#d9f2eb;font-weight:650;box-shadow:none}
.app-shell>.sidebar .nav-item.active:before{display:none}
.app-shell>.sidebar .nav-item.active svg{color:#137e71}
.app-shell>.sidebar .account-card{padding:16px 20px;border-top:1px solid #ffffff13;background:#0c272d}
.app-shell>.sidebar .account-card .avatar{background:#294c51;color:#d2eee8}
.app-shell>.main-area{margin-left:226px;width:calc(100% - 226px);min-width:0}
.app-shell>.sidebar.sidebar-hidden{transform:translateX(-100%)}
.app-shell>.sidebar.sidebar-hidden+.main-area{margin-left:0;width:100%}
.app-shell .topbar{height:70px;background:#ffffffed;border-bottom:1px solid var(--workspace-line);padding:0 28px;backdrop-filter:blur(16px)}
.app-shell .breadcrumb{font-size:12px;gap:10px}.app-shell .breadcrumb strong{color:#213e45}
.app-shell .global-search{background:#f5f7f6;border:1px solid #e7ecea;border-radius:8px;width:250px;height:36px}
.app-shell .top-account>span{background:#e0f0e9;color:#226d5b}
.app-shell .page{padding:30px 32px 48px;max-width:1640px}.app-shell .page-heading{margin-bottom:26px}.app-shell .page-heading h1{font-size:27px;letter-spacing:-.8px;color:#203c42;font-weight:650}.app-shell .page-heading p{line-height:1.8;color:#778a8b}
.app-shell .eyebrow{color:#648580;letter-spacing:2px;font-size:10px}.app-shell .eyebrow span{background:#168f80}
.app-shell :is(.panel,.metric-card,.crm-stat,.task-stats>article){border-color:var(--workspace-line);box-shadow:0 3px 14px #213d3503;border-radius:13px}
.app-shell .metric-card{padding:23px;background:#fff}.app-shell .metric-card>strong{font-size:32px;color:#204c49;font-weight:600}.app-shell .metric-card>span{color:#748983}
.app-shell :is(.primary-btn,.ai-action){background:#087f79;color:#fff;border-color:#087f79;border-radius:8px;box-shadow:none}
.app-shell .secondary-btn{background:#fff;border:1px solid #d8e4df;border-radius:8px;color:#385951}
.app-shell :is(button,a,input,select,textarea):focus-visible{outline:3px solid #55bca8;outline-offset:3px}
.app-shell .crm-row:hover,.app-shell tbody tr:hover{background:#f5faf8}.app-shell th{color:#6f8581;background:#f7f9f8}
.unified-frame{display:block;width:100%;height:calc(100dvh - 70px);border:0;background:var(--workspace-bg)}
.unified-shortcuts{display:flex;align-items:center;gap:12px;padding:20px 32px 0;flex-wrap:wrap}.unified-shortcuts>div{display:grid;gap:4px;margin-right:auto}.shortcut-kicker{color:#819990;font-size:9px;letter-spacing:1.8px}.unified-shortcuts strong{font-size:14px;color:#38594d}.unified-shortcuts button{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #dfe9e3;border-radius:9px;padding:11px 14px;color:#47695c;font-size:12px}.unified-shortcuts button:hover{border-color:#25977e;background:#edf8f1}
@media(min-width:1600px){.app-shell>.sidebar{width:244px}.app-shell>.main-area{margin-left:244px;width:calc(100% - 244px)}}
@media(max-width:1150px){.app-shell .topbar{padding:0 18px}.app-shell .global-search{width:180px}.app-shell .top-actions>a{font-size:11px!important}.app-shell .page{padding:24px}.app-shell .breadcrumb>span{display:none}}
@media(max-width:899px){.app-shell>.sidebar{width:220px;box-shadow:10px 0 40px #102f3530}.app-shell>.main-area{width:100%;margin-left:0}.app-shell .topbar{padding:0 12px}.app-shell .top-actions>a,.app-shell .top-account>div,.app-shell .top-actions>.icon-btn{display:none}.app-shell .global-search{width:170px}.app-shell .page{padding:20px 16px}.unified-shortcuts{padding:16px}.unified-shortcuts>div{width:100%}.app-shell .breadcrumb{margin-left:4px;gap:3px}.unified-shortcuts button{flex:1;white-space:nowrap}}
@media(max-width:480px){.app-shell .global-search{width:130px}.app-shell .global-search input{min-width:0;width:100%}.app-shell .top-account{padding:0}.app-shell .page-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.app-shell .page-heading h1{font-size:23px}}
@media(max-width:899px){.app-shell .top-actions{display:flex!important}.app-shell .global-search-wrap{display:block!important}.app-shell .breadcrumb{display:flex!important;font-size:11px;white-space:nowrap}.app-shell .top-account{display:none}.app-shell .topbar{gap:4px}.app-shell .global-search{margin-right:0}}
