:root{--eqs-primary:#0f766e;--eqs-primary-dark:#115e59;--eqs-primary-light:#ecfdf5;--eqs-bg:#f0fdfa;--eqs-card:#ffffff;--eqs-text:#134e4a;--eqs-muted:#64748b;--eqs-border:#99f6e4;--eqs-ok:#16a34a;--eqs-warn:#ca8a04;--eqs-bad:#dc2626;--eqs-radius:8px;--eqs-sidebar-w:320px;--eqs-header-h:48px;--primary:var(--eqs-primary);--primary-dark:var(--eqs-primary-dark);--primary-hover:var(--eqs-primary-dark);--accent-color:var(--eqs-primary);--bg:var(--eqs-bg);--border:var(--eqs-border)}*,::after,::before{box-sizing:border-box}body.eqs-tool{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:var(--eqs-bg);color:#334155;margin:0;min-height:100vh;-webkit-font-smoothing:antialiased}.eqs-header{background:linear-gradient(135deg,var(--eqs-primary),var(--eqs-primary-dark));color:#fff;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;min-height:var(--eqs-header-h);flex-shrink:0}.eqs-header h1{font-size:16px;font-weight:700;margin:0;line-height:1.3}.eqs-header p{font-size:11px;opacity:.92;margin:2px 0 0}.eqs-header-note{font-size:11px;opacity:.85}.eqs-badge{background:rgba(255,255,255,.2);padding:3px 10px;border-radius:999px;font-size:11px;white-space:nowrap}.eqs-layout{display:flex;flex-wrap:wrap;max-width:1400px;margin:0 auto;min-height:calc(100vh - var(--eqs-header-h))}.eqs-sidebar{width:var(--eqs-sidebar-w);max-width:100%;background:var(--eqs-card);border-right:1px solid var(--eqs-border);padding:12px;flex-shrink:0;overflow-y:auto;max-height:calc(100vh - var(--eqs-header-h))}.eqs-main{flex:1;min-width:0;min-width:min(100%,280px);padding:12px;overflow-y:auto}.eqs-app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.eqs-app .eqs-body{display:flex;flex:1;overflow:hidden;min-height:0}.eqs-app .eqs-sidebar{max-height:none;height:100%}.eqs-app .eqs-main{flex:1;overflow-y:auto;padding:12px;background:var(--eqs-bg)}.eqs-sec-title{font-size:12px;font-weight:700;color:var(--eqs-primary-dark);margin:10px 0 6px;padding-left:8px;border-left:3px solid var(--eqs-primary)}.eqs-label{display:block;font-size:11px;color:var(--eqs-muted);margin-bottom:3px;font-weight:500}.eqs-input,.eqs-select,.eqs-textarea,body.eqs-tool input[type=email],body.eqs-tool input[type=number],body.eqs-tool input[type=password],body.eqs-tool input[type=text],body.eqs-tool select,body.eqs-tool textarea{width:100%;padding:7px 9px;border:1px solid #cbd5e1;border-radius:6px;font-size:13px;margin-bottom:8px}.eqs-input:focus,.eqs-textarea:focus,body.eqs-tool input:focus,body.eqs-tool select:focus,body.eqs-tool textarea:focus{outline:0;border-color:var(--eqs-primary);box-shadow:0 0 0 2px rgba(15,118,110,.12)}.eqs-textarea,body.eqs-tool textarea{min-height:120px;font-family:Menlo,Consolas,monospace;font-size:12px;line-height:1.45;resize:vertical}.eqs-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.eqs-hint{font-size:11px;color:#94a3b8;line-height:1.45;margin-bottom:8px;background:#f8fafc;padding:7px 8px;border-radius:6px}.eqs-btn{width:100%;padding:9px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;margin-bottom:6px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.eqs-btn-primary{background:var(--eqs-primary);color:#fff}.eqs-btn-primary:hover{background:var(--eqs-primary-dark)}.eqs-btn-ghost{background:#fff;border:1px solid var(--eqs-primary);color:var(--eqs-primary)}.eqs-btn-ghost:hover{background:var(--eqs-primary-light)}.eqs-btn-export{background:#fff;border:1px solid #cbd5e1;color:#475569}.eqs-btn-export:hover{border-color:var(--eqs-primary);color:var(--eqs-primary)}.eqs-btn-sm{width:auto;padding:4px 10px;font-size:11px;margin:0}.eqs-guide{background:var(--eqs-primary-light);border:1px solid var(--eqs-border);border-radius:var(--eqs-radius);margin-bottom:10px;overflow:hidden}.eqs-guide-toggle{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;cursor:pointer;font-size:11px;font-weight:600;color:var(--eqs-primary-dark)}.eqs-guide-toggle:hover{background:#ccfbf1}.eqs-guide-toggle .arrow{transition:transform .3s;font-size:10px}.eqs-guide-toggle .arrow.open{transform:rotate(90deg)}.eqs-guide-body{padding:0 10px;max-height:0;overflow:hidden;transition:max-height .35s,padding .35s;font-size:11px;line-height:1.65}.eqs-guide-body.open{padding:0 10px 10px;max-height:800px}.eqs-guide-step{display:flex;gap:7px;margin-bottom:6px;padding:5px 7px;background:#fff;border-radius:6px;border-left:3px solid var(--eqs-primary)}.eqs-guide-num{width:18px;height:18px;background:var(--eqs-primary);color:#fff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.eqs-card{background:var(--eqs-card);border:1px solid var(--eqs-border);border-radius:10px;padding:12px;margin-bottom:12px}.eqs-card h3{font-size:14px;color:var(--eqs-primary-dark);margin:0 0 10px}.eqs-kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;margin-bottom:10px}.eqs-kpi{background:#f8fafc;border-radius:8px;padding:10px 8px;text-align:center;border:1px solid #e2e8f0}.eqs-kpi .val{font-size:20px;font-weight:800;font-family:ui-monospace,monospace;color:var(--eqs-primary-dark)}.eqs-kpi .lbl{font-size:10px;color:var(--eqs-muted);margin-top:3px}.eqs-kpi.ok .val{color:var(--eqs-ok)}.eqs-kpi.warn .val{color:var(--eqs-warn)}.eqs-kpi.bad .val{color:var(--eqs-bad)}.eqs-verdict{padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.55;margin-bottom:10px}.eqs-verdict.ok{background:#ecfdf5;border:1px solid #86efac;color:#166534}.eqs-verdict.warn{background:#fefce8;border:1px solid #fde047;color:#854d0e}.eqs-verdict.bad{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b}.eqs-stat-table{width:100%;font-size:12px;border-collapse:collapse}.eqs-stat-table td{padding:5px 6px;border-bottom:1px solid #f1f5f9}.eqs-stat-table td:first-child{color:var(--eqs-muted)}.eqs-stat-table td:last-child{text-align:right;font-family:ui-monospace,monospace;font-weight:600}.eqs-chart-wrap{height:220px;position:relative}.eqs-formula{font-size:10px;color:var(--eqs-muted);line-height:1.65;background:#f8fafc;padding:8px;border-radius:6px;margin-top:8px}body.eqs-tool .header{background:linear-gradient(135deg,var(--eqs-primary),var(--eqs-primary-dark))!important;height:auto!important;min-height:var(--eqs-header-h);padding:10px 14px!important;color:#fff!important}body.eqs-tool .header .logo .badge,body.eqs-tool .logo .badge{background:rgba(255,255,255,.25)!important}body.eqs-tool .sidebar{border-right-color:var(--eqs-border)!important;padding:12px!important;width:var(--eqs-sidebar-w)!important}body.eqs-tool .main,body.eqs-tool .main-content{background:var(--eqs-bg)!important;padding:12px!important}body.eqs-tool .control-label,body.eqs-tool .panel-title{border-left-color:var(--eqs-primary)!important}body.eqs-tool .input-mode-tab.active,body.eqs-tool .method-tab.active{color:var(--eqs-primary)!important}body.eqs-tool .btn-primary,body.eqs-tool .btn-success.eqs-themed{background:var(--eqs-primary)!important}body.eqs-tool .btn-primary:hover{background:var(--eqs-primary-dark)!important}body.eqs-tool .guide-box{background:var(--eqs-primary-light)!important;border-color:var(--eqs-border)!important}body.eqs-tool .guide-toggle{color:var(--eqs-primary-dark)!important}body.eqs-tool .guide-toggle:hover{background:#ccfbf1!important}body.eqs-tool .guide-step{border-left-color:var(--eqs-primary)!important}body.eqs-tool .guide-step-num{background:var(--eqs-primary)!important}@media (max-width:768px){:root{--eqs-sidebar-w:100%}.eqs-app .eqs-body,.eqs-layout{flex-direction:column}.eqs-sidebar,body.eqs-tool .sidebar{width:100%!important;max-height:42vh;border-right:none!important;border-bottom:1px solid var(--eqs-border)}.eqs-main,body.eqs-tool .main{padding:10px!important}.eqs-kpi-grid{grid-template-columns:repeat(2,1fr)}.eqs-chart-wrap{height:200px}.eqs-header h1{font-size:15px}.eqs-row2{grid-template-columns:1fr}}@media (max-width:480px){.eqs-kpi .val{font-size:18px}}body.eqs-tool .layout{display:flex;flex-wrap:wrap;max-width:1400px;margin:0 auto;min-height:calc(100vh - var(--eqs-header-h))}body.eqs-tool .sidebar{width:var(--eqs-sidebar-w);max-width:100%;background:var(--eqs-card);border-right:1px solid var(--eqs-border);flex-shrink:0;overflow-y:auto;max-height:calc(100vh - var(--eqs-header-h))}body.eqs-tool .main{flex:1;min-width:min(100%,280px);padding:12px;overflow-y:auto}body.eqs-tool .sec-title{font-size:12px;font-weight:700;color:var(--eqs-primary-dark);margin:10px 0 6px;padding-left:8px;border-left:3px solid var(--eqs-primary)}body.eqs-tool label{display:block;font-size:11px;color:var(--eqs-muted);margin-bottom:3px;font-weight:500}body.eqs-tool .row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}body.eqs-tool .hint{font-size:11px;color:#94a3b8;line-height:1.45;margin-bottom:8px;background:#f8fafc;padding:7px 8px;border-radius:6px}body.eqs-tool .btn{width:100%;padding:9px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;margin-bottom:6px}body.eqs-tool .btn-primary{background:var(--eqs-primary);color:#fff}body.eqs-tool .btn-primary:hover{background:var(--eqs-primary-dark)}body.eqs-tool .btn-ghost{background:#fff;border:1px solid var(--eqs-primary);color:var(--eqs-primary)}body.eqs-tool .btn-export{background:#fff;border:1px solid #cbd5e1;color:#475569}body.eqs-tool .guide-box{background:var(--eqs-primary-light);border:1px solid var(--eqs-border);border-radius:var(--eqs-radius);margin-bottom:10px;overflow:hidden}body.eqs-tool .guide-toggle{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;cursor:pointer;font-size:11px;font-weight:600;color:var(--eqs-primary-dark)}body.eqs-tool .guide-body{padding:0 10px;max-height:0;overflow:hidden;transition:max-height .35s,padding .35s;font-size:11px;line-height:1.65}body.eqs-tool .guide-body.open{padding:0 10px 10px;max-height:800px}body.eqs-tool .guide-step{display:flex;gap:7px;margin-bottom:6px;padding:5px 7px;background:#fff;border-radius:6px;border-left:3px solid var(--eqs-primary)}body.eqs-tool .guide-step-num{width:18px;height:18px;background:var(--eqs-primary);color:#fff;border-radius:50%;font-size:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}body.eqs-tool .guide-divider{text-align:center;font-size:11px;color:var(--eqs-primary);margin:8px 0;display:flex;align-items:center;gap:8px}body.eqs-tool .guide-divider::after,body.eqs-tool .guide-divider::before{content:'';flex:1;height:1px;background:var(--eqs-border)}body.eqs-tool .guide-flow{background:#f0fdf4;padding:7px;border-radius:6px;font-size:11px;margin-bottom:8px;border:1px dashed #86efac;text-align:center}body.eqs-tool .result-card{background:var(--eqs-card);border:1px solid var(--eqs-border);border-radius:10px;padding:12px;margin-bottom:12px}body.eqs-tool .result-card h3{font-size:14px;color:var(--eqs-primary-dark);margin:0 0 10px}body.eqs-tool .kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;margin-bottom:10px}body.eqs-tool .kpi{background:#f8fafc;border-radius:8px;padding:10px 8px;text-align:center;border:1px solid #e2e8f0}body.eqs-tool .kpi .val{font-size:20px;font-weight:800;font-family:ui-monospace,monospace;color:var(--eqs-primary-dark)}body.eqs-tool .kpi .lbl{font-size:10px;color:var(--eqs-muted);margin-top:3px}body.eqs-tool .kpi.ok .val{color:var(--eqs-ok)}body.eqs-tool .kpi.warn .val{color:var(--eqs-warn)}body.eqs-tool .kpi.bad .val{color:var(--eqs-bad)}body.eqs-tool .verdict{padding:10px 12px;border-radius:8px;font-size:12px;line-height:1.55;margin-bottom:10px}body.eqs-tool .verdict.ok{background:#ecfdf5;border:1px solid #86efac;color:#166534}body.eqs-tool .verdict.warn{background:#fefce8;border:1px solid #fde047;color:#854d0e}body.eqs-tool .verdict.bad{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b}body.eqs-tool .stat-table{width:100%;font-size:12px;border-collapse:collapse}body.eqs-tool .stat-table td{padding:5px 6px;border-bottom:1px solid #f1f5f9}body.eqs-tool .stat-table td:first-child{color:var(--eqs-muted)}body.eqs-tool .stat-table td:last-child{text-align:right;font-family:ui-monospace,monospace;font-weight:600}body.eqs-tool .chart-wrap{height:220px;position:relative}body.eqs-tool .formula-box{font-size:10px;color:var(--eqs-muted);line-height:1.65;background:#f8fafc;padding:8px;border-radius:6px;margin-top:8px}body.eqs-tool .export-group{display:flex;gap:8px}body.eqs-tool .export-group .btn{flex:1;margin-bottom:0}@media (max-width:768px){body.eqs-tool .layout{flex-direction:column}body.eqs-tool .sidebar{width:100%!important;max-height:42vh;border-right:none;border-bottom:1px solid var(--eqs-border)}body.eqs-tool .row2{grid-template-columns:1fr}body.eqs-tool .kpi-grid{grid-template-columns:repeat(2,1fr)}}