
        :root {
            --primary: #2563eb; --primary-hover: #1d4ed8; --bg-body: #f8fafc; --bg-sidebar: #0f172a;
            --bg-card: #ffffff; --text-main: #1e293b; --text-muted: #64748b; --border: #e2e8f0;
            --danger: #ef4444; --warning: #f59e0b; --success: #10b981;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; }
        body { display: flex; height: 100vh; background: var(--bg-body); overflow: hidden; }
        .sidebar { width: 250px; background: var(--bg-sidebar); color: white; display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
        .sidebar-header { padding: 20px; font-size: 18px; font-weight: bold; border-bottom: 1px solid #334155; display: flex; align-items: center; gap: 10px; }
        .nav-item { width:100%; padding:15px 25px; cursor:pointer; transition:background .2s,color .2s; color:#cbd5e1; display:flex; align-items:center; gap:12px; font:inherit; font-size:14px; text-align:left; user-select:none; appearance:none; background:transparent; border:0; border-left:4px solid transparent; }
        .nav-item:hover, .nav-item.active { background: #1e293b; color: white; border-left: 4px solid var(--primary); }
        .icon { width: 18px; height: 18px; fill: currentColor; }
        .sidebar-footer { margin-top: auto; padding: 20px; font-size: 12px; color: #94a3b8; border-top: 1px solid #334155; line-height: 1.8; }
        .sidebar-footer span { color: #e2e8f0; font-weight: 500; }
        .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .topbar { height: 64px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); z-index: 10; }
        .page-title { font-size: 20px; font-weight: 600; color: var(--text-main); }
        .content-body { padding: 24px 30px; overflow-y: auto; flex: 1; }
        
        .metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
        .card { background: var(--bg-card); border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); margin-bottom: 20px; }
        .card-title { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
        .card-value { font-size: 28px; font-weight: bold; color: var(--text-main); }
        .charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
        .chart-box { height: 320px; width: 100%; min-height: 320px; }
        
        /* 选项卡 */
        .tabs { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
        .tab { padding: 8px 16px; cursor: pointer; border-radius: 6px; font-size: 14px; color: var(--text-muted); transition: 0.2s; }
        .tab:hover { background: #e2e8f0; }
        .tab.active { background: var(--primary); color: white; font-weight: 500; }

        .action-bar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
        .search-box { flex: 1; min-width: 150px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
        .btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px; }
        .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-hover); }
        .btn-outline { background: white; border: 1px solid var(--border); color: var(--text-main); } .btn-outline:hover { background: #f1f5f9; }
        .btn-danger { background: var(--danger); color: white; } .btn-danger:hover { background: #dc2626; }
        .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
        
        table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid var(--border); }
        th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
        th { background: #f8fafc; font-weight: 600; color: var(--text-muted); }
        tr:hover { background: #f8fafc; }
        
        .badge { padding: 4px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; display: inline-block; }
        .badge-danger { background: #fee2e2; color: var(--danger); } .badge-warning { background: #fef3c7; color: #b45309; }
        .badge-success { background: #d1fae5; color: #047857; } .badge-normal { background: #e0f2fe; color: #0369a1; }
        
        .save-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-right: 15px; }
        .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
        .dot.active { background: var(--success); animation: pulse 2s infinite; }
        @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
        
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(2px); }
        .modal { background: white; border-radius: 12px; width: 750px; max-width: 95%; max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 18px; font-weight: 600; }
        .modal-close { cursor: pointer; font-size: 24px; color: var(--text-muted); line-height: 1; }
        .form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
        .form-control { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
        .toast { position: fixed; top: 20px; right: 20px; padding: 14px 24px; border-radius: 8px; color: white; font-weight: 500; z-index: 2000; opacity: 0; transition: 0.3s; pointer-events: none; }
        .toast.show { opacity: 1; } .toast-success { background: var(--success); } .toast-error { background: var(--danger); }
        .hidden { display: none !important; }
    
/* Ternence UX foundation: keyboard access, reduced motion, resilient small screens. */
:focus-visible{outline:2px solid var(--focus-ring,#60a5fa);outline-offset:3px}
button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none}
img,svg,canvas,video{max-width:100%}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media print{*{box-shadow:none!important;text-shadow:none!important}body{overflow:visible!important;height:auto!important;min-height:0!important;background:#fff!important;color:#111!important}.sidebar,.bottomnav,.bottomnav,.tabbar,.toast,.toast-container,.modal-backdrop{display:none!important}.main,.main-content,.content,.view{overflow:visible!important;height:auto!important;min-height:0!important;margin:0!important;width:100%!important;color:#111!important;background:#fff!important}}

/* EKPO LabOS product redesign v1 */
.labos-intro{--intro-accent:#0d9488;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:16px;border:1px solid #cfe8e4;border-radius:15px;background:linear-gradient(110deg,#f1fbf9,#eaf7f5 62%,#f8fcfb);box-shadow:0 7px 20px rgba(15,118,110,.05)}.labos-intro .eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#0f766e}.labos-intro h2{font-size:21px;color:#123b3a;margin:4px 0}.labos-intro p{font-size:12px;color:#547674;line-height:1.65;max-width:650px}.labos-intro .labos-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.labos-intro .labos-tags span{font-size:10px;padding:5px 9px;border-radius:7px;border:1px solid #cde8e3;background:#fff;color:#286b66}.labos-intro .labos-stamp{width:74px;height:74px;flex:0 0 74px;border-radius:19px;background:linear-gradient(145deg,#ccfbf1,#ecfdf5);color:#0f766e;display:grid;place-items:center;font-size:27px;font-weight:900}@media(max-width:680px){.labos-intro{padding:14px}.labos-intro .labos-stamp{display:none}}
