:root{color-scheme:light;--bg:#f4f6fb;--sidebar:#ffffff;--panel:#ffffff;--panel2:#f0f3fa;--line:#dfe5ee;--muted:#62718a;--text:#202b43;--accent:#3b4380;--cyan:#3367ac;--red:#c33350;--orange:#a8620c;--yellow:#907016;--radius:12px;--font:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:13px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--cyan);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{color:var(--text)}svg.icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.8px;font-weight:650}h2{font-size:14px;font-weight:600;letter-spacing:-.1px}h3{font-size:15px}small{font-size:11px}strong{font-weight:600}code,.mono{font-family:"Cascadia Code",Consolas,monospace;font-size:11px}.muted{color:var(--muted)}.accent{color:var(--accent)}.red{color:var(--red)}.nowrap{white-space:nowrap}.truncate{max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted)}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:27px 15px 16px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 12px;margin-bottom:31px}.workspace{border:1px solid var(--line);background:#f4f5fc;border-radius:8px;padding:11px 12px;display:flex;align-items:center;gap:10px;margin:0 3px 26px}.workspace-avatar{width:30px;height:30px;border:1px solid #d7dbef;background:#e9ecfa;color:var(--accent);border-radius:7px;font-size:11px;font-weight:700;display:grid;place-items:center}.workspace-name{font-size:11px;font-weight:600}.workspace small{display:block;color:var(--muted);font-size:9px}.workspace .icon{width:13px;margin-left:auto;color:var(--muted)}.nav-group{margin-bottom:26px}.nav-label{font-size:9px;color:#74819a;letter-spacing:1.5px;margin:0 14px 9px;font-weight:600}.nav-link{display:flex;align-items:center;gap:12px;padding:10px 13px;color:#52617c;border-radius:7px;margin:3px 0;font-size:12px;font-weight:500;text-decoration:none!important}.nav-link:hover{background:#f2f4fb;color:#27334b}.nav-link.active{background:#e9ecfa;color:var(--accent)}.nav-link .icon{width:17px;height:17px}.nav-tag{margin-left:auto;font-size:9px;padding:0 6px;border:1px solid #d3d9ef;background:#eff1fc;border-radius:4px;line-height:17px;color:var(--accent)}.sidebar-bottom{margin-top:auto}.system-status{margin:0 5px 15px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:10px}.system-status .row{display:flex;align-items:center;gap:7px}.status-dot{height:6px;width:6px;border-radius:50%;background:var(--accent);display:inline-block;flex:none;box-shadow:0 0 9px #3b43802a}.system-status small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.sidebar-foot{display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding:17px 8px 0}.avatar{width:31px;height:31px;display:grid;place-items:center;background:#efecf9;border:1px solid #ded8ef;border-radius:50%;color:#6d5799;font-size:11px;font-weight:600}.profile-info{flex:1;min-width:0}.profile-info strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-info small{font-size:9px;color:var(--muted)}.main{grid-column:2;min-width:0}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:#ffffff;gap:16px}.breadcrumb{color:#6b7a92;font-size:11px;display:flex;align-items:center;gap:10px;white-space:nowrap}.breadcrumb .icon{width:14px}.breadcrumb span:last-child{color:#34415c}.topbar-right{display:flex;align-items:center;gap:15px}.global-search{position:relative}.global-search input{width:245px;height:33px;padding:0 35px;border-radius:6px;background:#f7f9fc;border:1px solid var(--line);color:var(--text);font-size:10px}.global-search .icon{position:absolute;left:11px;top:9px;width:14px;height:14px;color:#73829a}.keyhint{position:absolute;right:10px;top:7px;color:#7a879e;border:1px solid var(--line);padding:0 4px;border-radius:3px;font-size:9px}.demo-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #e9d8ac;color:#8a651b;background:#fff8e7;border-radius:5px;padding:4px 8px;font-size:9px;white-space:nowrap}.demo-badge .icon{width:12px;height:12px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);padding:5px}.icon-btn:hover{color:var(--text);background:var(--panel2);border-color:var(--line)}.icon-btn .icon{width:16px;height:16px}.content{padding:27px 30px 34px;max-width:1760px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.page-head p{color:var(--muted);font-size:11px;margin-top:5px}.head-actions{display:flex;gap:9px;align-items:center}.btn{border:1px solid #d5deeb;border-radius:6px;padding:8px 12px;background:#ffffff;color:#42516d;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:500;white-space:nowrap}.btn .icon{width:14px;height:14px}.btn:hover{background:#edf0f9;border-color:#a4afd0}.btn-primary{background:var(--accent);border-color:var(--accent);color:#ffffff;font-weight:650}.btn-primary:hover{background:#2d356c;border-color:#2d356c}.btn-danger{background:#fff0f3;color:#b5314b;border-color:#ebbdc8}.btn-small{padding:5px 9px;font-size:10px}.time-select{height:33px;border:1px solid #d5deeb;background:#f6f8fc;padding:0 10px;border-radius:6px;color:#495975;font-size:10px;cursor:pointer}.summary-strip{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;background:#f0f7f4;border:1px solid #d1e5d9;border-radius:8px;margin-bottom:20px;font-size:11px;gap:12px}.summary-strip>div{display:flex;gap:9px;align-items:center}.summary-strip .icon{width:15px;height:15px;color:var(--accent)}.summary-strip .muted{font-size:10px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.kpi{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:17px 18px;position:relative;overflow:hidden}.kpi-title{font-size:10px;color:#60718a;display:flex;align-items:center;justify-content:space-between}.kpi-symbol{width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#edf3fc;color:var(--cyan)}.kpi-symbol .icon{width:15px;height:15px}.kpi-symbol.red-tone{background:#fff0f3;color:var(--red)}.kpi-symbol.green-tone{background:#edf7f1;color:var(--accent)}.kpi-symbol.purple-tone{background:#f1edfb;color:#77619e}.kpi-value{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:7px 0 9px;font-weight:650}.kpi-footer{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:6px}.kpi-footer span{font-weight:600}.sparkline{position:absolute;right:16px;bottom:17px;width:75px;height:28px;opacity:.8}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0}.panel-header{padding:17px 19px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-header p{font-size:10px;color:var(--muted);margin-top:3px}.panel-link{font-size:10px;display:flex;align-items:center;gap:5px}.panel-link .icon{width:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:19px;margin-bottom:20px}.chart-wrap{padding:0 19px 14px;min-height:213px}.event-chart{width:100%;height:170px;display:block;overflow:visible}.chart-labels{display:flex;justify-content:space-between;color:#74839b;font-size:9px;margin:5px 5px 0 32px}.chart-stats{display:flex;gap:24px;align-items:center;border-top:1px solid var(--line);padding:12px 19px;font-size:9px;color:var(--muted)}.chart-stats strong{color:#44546e;font-size:11px;font-weight:500;margin-left:5px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:6px}.severity-overview{display:flex;align-items:center;justify-content:center;gap:24px;padding:9px 19px 23px}.donut{width:134px;height:134px;flex:none}.donut text{font-family:var(--font)}.severity-legend{display:grid;gap:12px;min-width:108px}.severity-legend>div{display:flex;align-items:center;justify-content:space-between;gap:22px;color:#64738d;font-size:10px}.severity-legend strong{color:#33425d;font-size:11px}.severity-legend .legend-dot{margin-right:8px}.panel-bottom-note{padding:11px 19px;border-top:1px solid var(--line);font-size:9px;color:var(--muted);display:flex;align-items:center;gap:7px}.panel-bottom-note .icon{width:12px;height:12px}.section-kicker{font-size:9px;font-weight:500;color:#6b7c96;letter-spacing:.8px;text-transform:uppercase}.table-scroll{overflow:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#c8d2e3 transparent}table{border-collapse:collapse;width:100%;text-align:left;font-size:11px}th{background:#f6f8fc;color:#64758f;font-size:10px;font-weight:600;letter-spacing:.3px;white-space:nowrap;padding:10px 16px;border-bottom:1px solid var(--line)}td{padding:12px 16px;border-bottom:1px solid #e6ebf2;color:#465771;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr{transition:background .1s}tbody tr:hover{background:#f7f9fd}.clickable{cursor:pointer}.table-title{color:#2c3c58;font-weight:500;line-height:1.5}.table-sub{color:#718099;font-size:10px;margin-top:3px}.severity-badge{font-size:9px;font-weight:600;border-radius:4px;padding:3px 7px;border:1px solid;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.sev-critical{color:#b72947;background:#fff0f3;border-color:#efc3cd}.sev-high{color:#9c5b09;background:#fff5e8;border-color:#eed4ae}.sev-medium{color:#88650d;background:#fff9e6;border-color:#e8dda9}.sev-low{color:#2c6ba1;background:#edf5fc;border-color:#c6ddef}.sev-info{color:#5b6d86;background:#f1f4f8;border-color:#d7dfeb}.severity-badge i{height:4px;width:4px;background:currentColor;border-radius:50%}.pill{border-radius:4px;padding:3px 7px;background:#f2f4f9;border:1px solid #d9e0eb;display:inline-block;white-space:nowrap;font-size:9px;color:#566b87}.pill-green{background:#edf8f1;border-color:#c4e5d0;color:#23754a}.pill-blue{background:#edf4fc;border-color:#c6daee;color:#2c67a2}.pill-red{background:#fff0f3;border-color:#efc4ce;color:#b82f4c}.pill-yellow{background:#fff8e8;border-color:#eddda9;color:#8a681c}.source-icon{display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid #dbe2ef;background:#f1f4fc;border-radius:5px;color:#586c9b;margin-right:9px;vertical-align:middle;font-size:10px;font-weight:600}.source-cell{display:flex;align-items:center;gap:9px}.source-cell .source-icon{margin:0}.inline-actions{display:flex;gap:4px}.source-list{padding:0 19px 12px}.source-item{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid #e5eaf2}.source-item:last-child{border:0}.source-info{flex:1}.source-info strong{font-size:10px;font-weight:500}.source-info p{font-size:9px;color:var(--muted);margin-top:4px}.source-meter{height:4px;background:#edf0f6;border-radius:4px;width:100%;max-width:145px;overflow:hidden}.source-meter span{display:block;height:100%;background:#707cb5;border-radius:4px}.source-count{font-size:11px;font-weight:500;color:#40516e}.table-toolbar{padding:13px 16px;display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);flex-wrap:wrap}.filter-search{position:relative;min-width:200px;flex:1;max-width:380px}.filter-search .icon{position:absolute;top:10px;left:10px;width:13px;height:13px;color:#7485a0}.filter-search input{width:100%;padding:8px 12px 8px 31px;background:#ffffff;border:1px solid #d6deec;color:var(--text);border-radius:6px;font-size:10px}.filter-select{height:32px;min-width:110px;background:#ffffff;color:#526784;border:1px solid #d6deec;border-radius:6px;padding:0 9px;font-size:10px}.toolbar-count{margin-left:auto;font-size:10px;color:var(--muted)}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.pagination-controls{display:flex;gap:6px;align-items:center}.pagination-controls .btn{padding:4px 7px}.pagination-controls span{margin:0 8px;color:#4d6383}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty .icon{width:30px;height:30px;margin-bottom:9px;opacity:.7}.empty strong{display:block;color:#415374;font-size:13px;margin-bottom:5px}.empty p{font-size:11px}.state-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:20px}.state-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:14px 17px;display:flex;align-items:center;gap:12px}.state-card .icon{color:var(--cyan);width:19px}.state-card span{color:var(--muted);font-size:10px}.state-card strong{display:block;font-size:20px;font-weight:600;line-height:1.2;margin-top:4px}.toggle{width:30px;height:17px;border-radius:20px;border:1px solid #cbd4e4;background:#e5eaf2;position:relative;display:inline-block;vertical-align:middle;padding:0}.toggle:before{content:"";width:11px;height:11px;border-radius:50%;background:#ffffff;position:absolute;top:2px;left:2px;transition:all .15s}.toggle.on{background:#3b4380;border-color:#3b4380}.toggle.on:before{background:#ffffff;left:15px}.rule-description{max-width:310px;font-size:11px;color:#60738e;line-height:1.5}.technique{color:#3869aa;font-size:9px;line-height:1.5}.rule-name{min-width:210px;max-width:290px}.rule-name strong{font-size:11px;font-weight:500;color:#354965}.asset-icon{color:#527ca6}.event-histogram{height:144px;padding:8px 18px 0;border-bottom:1px solid var(--line);background:#f6f8fc}.event-histogram .event-chart{height:105px}.event-histogram .chart-labels{font-size:8px;margin-top:0;margin-bottom:9px}.raw-preview{font-size:10px;font-family:"Cascadia Code",Consolas,monospace;color:#607793;max-width:370px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.table-events td{padding-top:10px;padding-bottom:10px}.table-events th{font-size:10px}.table-events .table-title{max-width:240px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:20px}.tab{padding:0 0 13px;border:0;border-bottom:2px solid transparent;background:none;color:#6b7e99;font-size:11px}.tab.active{color:var(--accent);border-bottom-color:var(--accent)}.settings-intro{background:#eff4fc;border:1px solid #d5dfed;border-radius:8px;padding:16px 19px;margin-bottom:20px;display:flex;align-items:flex-start;gap:12px;font-size:11px;color:#5c7290;line-height:1.7}.settings-intro .icon{color:var(--cyan);margin-top:2px}.settings-intro code{display:block;margin-top:5px;color:#3f618f;white-space:normal;overflow-wrap:anywhere}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-card{padding:20px}.settings-card h2{margin-bottom:12px}.settings-row{padding:11px 0;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px}.settings-row:last-child{border:0}.settings-row span:first-child{color:var(--muted)}.footer{display:flex;justify-content:space-between;margin-top:22px;color:#71829b;font-size:9px;gap:12px}.footer span{display:flex;align-items:center;gap:6px}.footer .icon{width:11px;height:11px}.mobile-menu{display:none}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:var(--muted)}.boot-icon{font-weight:700;font-size:30px;border:1px solid #d7dcf1;border-radius:16px;background:#edf0fb;color:var(--accent);width:62px;height:62px;display:grid;place-items:center}.loading{padding:85px 20px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:12px}.spinner{height:16px;width:16px;border:2px solid #d8deed;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-state{border:1px solid #edc6cf;background:#fff4f6;border-radius:10px;padding:24px;color:#9e3e52}.error-state p{margin:5px 0 16px;font-size:11px}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(420px,.8fr)}.login-visual{background:radial-gradient(ellipse at 30% 60%,#e5eafa 0,transparent 60%),linear-gradient(135deg,#ffffff,#f2f4fc);padding:42px 9%;position:relative;overflow:hidden;border-right:1px solid var(--line);display:flex;flex-direction:column}.login-visual:before{content:"";position:absolute;inset:0;opacity:.15;background-image:linear-gradient(#c9d1e8 1px,transparent 1px),linear-gradient(90deg,#c9d1e8 1px,transparent 1px);background-size:50px 50px;mask-image:linear-gradient(transparent,#000)}.login-visual>*{position:relative}.login-visual .brand{padding:0;margin:0}.login-message{margin:auto 0;padding:60px 0}.login-message h1{font-size:46px;max-width:500px;line-height:1.15;font-weight:600;letter-spacing:-1.5px}.login-message h1 span{color:var(--accent)}.login-message p{max-width:390px;color:#657794;font-size:14px;line-height:1.8;margin-top:23px}.login-feature{display:flex;gap:13px;align-items:center;color:#5a6c89;font-size:12px;margin-top:24px}.login-feature .icon{color:var(--accent);width:16px}.login-badge{display:flex;gap:9px;align-items:center;color:#74839b;font-size:10px}.login-form-area{display:flex;align-items:center;justify-content:center;padding:40px;background:#ffffff}.login-form-wrap{width:100%;max-width:340px}.login-form-wrap h2{font-size:25px;margin:21px 0 6px;letter-spacing:-.6px}.login-form-wrap>p{font-size:12px;color:var(--muted);margin-bottom:29px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:17px;font-size:11px}.field>span{color:#4d5f7a;font-size:11px}.field input,.field select,.field textarea{width:100%;background:#ffffff;border:1px solid #d1dbe9;color:#304360;border-radius:6px;padding:10px 11px;min-height:37px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6675ac}.field textarea{min-height:105px;resize:vertical;font-size:11px;line-height:1.6}.field small{font-size:10px;color:#71849d}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.full-width{width:100%}.login-note{font-size:10px!important;line-height:1.8;color:#6b7d97!important;margin-top:21px}.login-note .icon{width:12px;height:12px;vertical-align:middle;margin-right:4px}.form-error{padding:10px;background:#fff0f3;border:1px solid #eac0cb;color:#b32c48;border-radius:6px;margin-bottom:16px;font-size:11px}.form-error:empty{display:none}dialog{color:var(--text);background:var(--panel);border:1px solid #c8d2e3;border-radius:12px;padding:0;width:min(640px,calc(100vw - 32px));max-height:90vh;box-shadow:0 24px 100px #1f2c4630}dialog::backdrop{background:#26314f66;backdrop-filter:blur(3px)}dialog.drawer{position:fixed;inset:0 0 0 auto;margin:0;border-radius:0;width:min(710px,100vw);max-height:100vh;height:100vh;border-top:0;border-bottom:0;border-right:0}dialog.drawer #dialog-content{min-height:100%;display:flex;flex-direction:column}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;padding:21px 23px;border-bottom:1px solid var(--line);gap:12px}.dialog-header h2{font-size:17px;letter-spacing:-.3px}.dialog-header p{font-size:10px;color:var(--muted);margin-top:5px}.dialog-header .icon-btn{margin:-5px -7px 0 0}.dialog-body{padding:22px 23px}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:16px 23px;border-top:1px solid var(--line);margin-top:auto;background:#f7f9fd}.drawer .dialog-body{flex:1}.detail-heading{font-size:10px;font-weight:600;letter-spacing:.8px;color:#61738e;text-transform:uppercase;margin-bottom:12px}.raw-box{background:#f4f6fb;border:1px solid #d9e1ee;border-radius:7px;padding:14px;color:#526b8e;font-size:10px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;margin:0 0 24px}.attribute-table{width:100%;margin-bottom:25px;font-size:10px}.attribute-table th{width:40%;background:transparent;letter-spacing:0;font-size:10px;color:#657a97;padding:9px 10px;font-weight:400;border-bottom:1px solid #e0e7f1}.attribute-table td{padding:9px 10px;overflow-wrap:anywhere;word-break:break-word;max-width:340px;font-size:10px}.detail-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:22px}.detail-block{margin-bottom:23px}.evidence-box{font-size:10px;padding:14px;background:#f4f6fb;border:1px solid var(--line);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;color:#526c8e}.key-reveal{border:1px solid #bfe1ce;background:#f0faf4;border-radius:8px;padding:16px;margin-bottom:20px}.key-reveal p{font-size:11px;color:#347750;margin-bottom:10px}.key-reveal code{display:block;padding:12px;background:#ffffff;border:1px solid #cae5d5;border-radius:5px;color:#276f46;overflow-wrap:anywhere;user-select:all}.toasts{position:fixed;bottom:22px;right:24px;z-index:100;display:flex;flex-direction:column;gap:8px;max-width:400px}.toast{padding:12px 16px;border:1px solid #c0e1cd;background:#f0faf4;color:#2f6f49;border-radius:8px;box-shadow:0 5px 25px #2736551c;font-size:11px;display:flex;align-items:center;gap:9px}.toast.error{border-color:#eac1cc;background:#fff1f4;color:#ad3a53}.toast .icon{width:15px;height:15px}.scenario-grid{display:grid;gap:11px}.scenario-option{border:1px solid var(--line);background:#ffffff;border-radius:8px;padding:15px;text-align:left;display:flex;gap:13px;color:#536b8b}.scenario-option .icon{color:var(--accent);margin-top:2px}.scenario-option strong{display:block;font-size:12px;color:#334b6c}.scenario-option small{display:block;font-size:10px;color:#6a819f;margin-top:5px}.scenario-option:hover{border-color:#aeb9dc;background:#f4f6fc}.mobile-backdrop{display:none}
@media(min-width:1600px){.shell{grid-template-columns:244px minmax(0,1fr)}.sidebar{width:244px}.content{padding:32px 38px}.topbar{padding:0 38px}td{padding-top:14px;padding-bottom:14px}.chart-wrap{min-height:240px}.event-chart{height:193px}.event-histogram .event-chart{height:105px}.severity-overview{padding-top:20px;padding-bottom:35px}.donut{height:150px;width:150px}}
@media(max-width:1200px){.shell{grid-template-columns:204px minmax(0,1fr)}.sidebar{width:204px;padding-left:10px;padding-right:10px}.brand{padding:0 10px;gap:8px}.content{padding:24px 22px}.topbar{padding:0 22px}.global-search input{width:190px}.dashboard-grid{grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr)}.severity-overview{gap:14px}.donut{width:115px;height:115px}.kpi{padding:14px}.kpi-value{font-size:26px}.sparkline{width:55px}.severity-legend{min-width:90px}.severity-legend>div{gap:10px}.kpi-footer{max-width:135px;flex-wrap:wrap}}
@media(max-width:1000px){.global-search{display:none}.dashboard-grid{grid-template-columns:1fr}.severity-overview{justify-content:flex-start;padding-left:28px;gap:40px}.severity-legend{min-width:180px}.donut{width:135px;height:135px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.kpi-footer{max-width:none}.sparkline{width:75px}.state-cards{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.head-actions{flex-wrap:wrap;justify-content:flex-end}.page-head{align-items:flex-start}.login-message h1{font-size:36px}.login-page{grid-template-columns:minmax(0,1fr) 420px}.login-visual{padding:35px}.login-message p{font-size:12px}}
@media(max-width:720px){.shell{display:block}.sidebar{transform:translateX(-100%);width:228px;transition:transform .2s}.shell.menu-open .sidebar{transform:translateX(0)}.shell.menu-open .mobile-backdrop{display:block;position:fixed;inset:0;z-index:19;background:#26314f66}.main{width:100%}.mobile-menu{display:inline-flex}.topbar{height:58px;padding:0 15px}.topbar-right{gap:8px}.breadcrumb{font-size:10px;gap:6px}.breadcrumb>span:first-of-type{display:none}.content{padding:21px 15px}.page-head{flex-direction:column;align-items:stretch;gap:13px}.page-head h1{font-size:24px}.head-actions{justify-content:flex-start}.kpi-grid{gap:10px}.kpi{padding:13px}.kpi-value{font-size:26px}.kpi-title{font-size:9px}.kpi-symbol{width:24px;height:24px}.sparkline{width:50px;bottom:14px;right:13px;opacity:.45}.kpi-footer{font-size:8px;max-width:125px}.summary-strip{align-items:flex-start}.summary-strip .muted{display:none}.panel-header{padding:15px}.chart-wrap{padding-left:15px;padding-right:15px}.panel-header h2{font-size:12px}.filter-search{min-width:100%;max-width:none}.filter-select{flex:1;min-width:90px}.toolbar-count{margin-left:0}.footer{font-size:8px;flex-wrap:wrap}.footer>span:last-child{display:none}.state-card{padding:12px;gap:9px}.state-card span{font-size:9px}.state-card strong{font-size:18px}.login-page{display:block}.login-visual{padding:27px 25px;border-right:0;border-bottom:1px solid var(--line)}.login-message{padding:35px 0 10px}.login-message h1{font-size:30px;max-width:330px}.login-message p,.login-feature,.login-badge{display:none}.login-form-area{padding:34px 25px;min-height:450px}.login-form-wrap{max-width:420px}.login-form-wrap h2{font-size:23px;margin-top:17px}.dialog-body,.dialog-header{padding:18px}.field-row{grid-template-columns:1fr;gap:0}.pagination{font-size:9px;padding:12px}.pagination-controls span{margin:0 3px}.toasts{right:15px;left:15px;bottom:15px}.severity-overview{padding-left:22px;gap:25px}.severity-legend{min-width:130px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.source-meter{display:block}
/* Keep the document fluid; wide forensic tables scroll within their panel. */
html,body,#app{width:100%;min-width:0;max-width:100%}
.shell,.main,.content,.page-head,.head-actions,.dashboard-grid,.chart-wrap,.event-histogram,.table-scroll{min-width:0;max-width:100%}
.main,.content{width:100%}
.event-chart{display:block;width:100%;max-width:100%;min-width:0}
.table-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.panel-header>div,.summary-strip>div,.source-info{min-width:0}
.summary-strip>div{overflow-wrap:anywhere}
.chart-stats{flex-wrap:wrap;gap:10px 22px}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.dialog-body,.dialog-footer,.dialog-header{min-width:0;max-width:100%}
.dialog-header h2,.dialog-header p{overflow-wrap:anywhere}
.dialog-body form,.field,.field input,.field select,.field textarea{min-width:0;max-width:100%}
.raw-box,.evidence-box{max-width:100%}
.attribute-table{table-layout:fixed}
.dialog-footer{flex-wrap:wrap}
@media(max-width:720px){
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .topbar{gap:8px;max-width:100%;min-width:0}
  .breadcrumb{min-width:0;flex:1;overflow:hidden}
  .breadcrumb #breadcrumb-page{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .breadcrumb .mobile-menu{flex:none}
  .topbar-right{flex:none;gap:6px}
  .head-actions{flex-wrap:wrap;max-width:100%}
  .head-actions>.btn,.head-actions>.time-select{max-width:100%}
  .panel-header{flex-wrap:wrap}
  .panel-header>div{flex:1 1 150px}
  .pagination{flex-wrap:wrap}
  .settings-row{gap:14px;overflow-wrap:anywhere}
  .settings-row>span{min-width:0}
}
@media(max-width:480px){
  .topbar{padding-left:12px;padding-right:12px}
  .breadcrumb #breadcrumb-page,.breadcrumb>span{display:none}
  .topbar-right .demo-badge{font-size:8px;padding:4px 6px;gap:4px}
  .topbar-right .demo-badge .icon{width:11px;height:11px}
  .content{padding-left:12px;padding-right:12px}
  .kpi-grid{gap:8px}
  .kpi{padding:11px}
  .kpi-symbol{width:20px;height:20px;flex:none}
  .kpi-title{gap:5px}
  .kpi-value{font-size:25px}
  .kpi-footer{line-height:1.6}
  .severity-overview{padding:8px 15px 21px;gap:18px;justify-content:space-between}
  .donut{width:110px;height:110px}
  .severity-legend{min-width:0;flex:1;max-width:160px}
  .severity-legend>div{gap:8px;font-size:9px}
  .severity-legend strong{font-size:10px}
  .chart-labels{font-size:8px;margin-left:26px}
  .chart-stats{font-size:8px;padding:11px 14px;gap:7px 13px}
  .chart-stats strong{font-size:10px}
  .state-cards{gap:8px}
  .state-card{padding:10px;gap:7px;min-width:0}
  .state-card .icon{width:16px;height:16px}
  .state-card>div{min-width:0}
  .btn{font-size:10px;padding:8px 10px}
  .time-select{font-size:10px;padding:0 8px}
  .source-count{font-size:10px}
  .source-item{gap:8px}
  .source-info strong{font-size:9px}
  .dialog-header,.dialog-body{padding:16px}
  .dialog-footer{padding:13px 16px}
  .dialog-header h2{font-size:15px}
  .tabs{gap:17px}
  .tab{font-size:10px}
}


/* Corporate light console and multi-tenant workspace components. */
::selection{background:#dde3fa;color:#1b184b}
input::placeholder,textarea::placeholder{color:#8591a6;opacity:1}
.sidebar{box-shadow:3px 0 18px #26375904}
.topbar{background:#ffffffed}
/* Reuse the corporate artwork on the light console background. */
.shell .brand {
  gap: 9px;
  min-height: 44px;
  margin-bottom: 22px;
  border-radius: 8px;
  text-decoration: none;
}
.sidebar-logo {
  position: relative;
  flex: 0 1 138px;
  min-width: 0;
  aspect-ratio: 4.1;
  overflow: hidden;
}
.sidebar-logo img {
  position: absolute;
  inset: -109% auto auto -19%;
  width: 145%;
  height: auto;
  max-width: none;
}
.sidebar-product {
  flex: none;
  padding: 2px 6px;
  border: 1px solid #ccd3eb;
  border-radius: 5px;
  background: #eef1fb;
  color: #303b78;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .03em;
}
.shell .monitoring-deploy-grid h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shell .deploy-symbol {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #eaf1fb;
  color: #2b5d95;
}
.shell .deploy-symbol .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.85;
}
.workspace{box-shadow:0 2px 7px #3b438005}
.nav-link.active{font-weight:650;box-shadow:inset 3px 0 #3b4380}
.system-status{background:#f8fafc}
.system-status .status-dot,.source-item .status-dot{background:#2d9868;box-shadow:0 0 0 3px #2d986810}
.kpi,.panel,.state-card{box-shadow:0 3px 12px #23365204}
.kpi-title{font-size:11px}
.kpi-footer{font-size:10px}
.kpi-footer span[style]{color:#6c5d96!important}
.summary-strip span[style]{color:#507061!important}
.summary-strip .accent,.summary-strip .icon{color:#2e7d56}
.kpi-symbol.green-tone{color:#25835a}
.kpi-symbol.purple-tone{color:#79649f}
.btn{box-shadow:0 1px 2px #25385705}
.btn-primary{background:#3b4380;border-color:#3b4380;color:#fff;box-shadow:0 3px 8px #3b43801a}
.btn-primary:hover{background:#2c356d;border-color:#2c356d}
.btn-danger:hover{background:#ffe3ea;border-color:#e29aad}
.field input:focus,.field select:focus,.field textarea:focus{box-shadow:0 0 0 3px #3b438012}
.event-chart line{stroke:#dfe6f1}
.event-chart text{fill:#71829b}
.event-chart rect[fill="#5cb89b"]{fill:#7382b8}
.event-chart rect[fill="#588abd"]{fill:#6f8fbd}
.donut>circle:first-child{stroke:#edf0f6}
.donut text{fill:#26324d}
.donut text:last-child{fill:#7584a0}
.attribute-table th{color:#687b96}
.raw-box,.evidence-box{font-size:11px;line-height:1.8}
.detail-meta .pill{border-color:#d5dfec}
.scenario-option:hover{box-shadow:0 3px 12px #3b438009}
.scope-select{width:100%;min-width:0;min-height:36px;padding:8px 10px;color:#35456a;background:#fff;border:1px solid #d5ddeb;border-radius:7px;font-size:11px}
.tenant-switcher{display:grid;gap:7px;padding:12px;margin:0 3px 20px;border:1px solid #dce2ee;background:#f6f7fc;border-radius:10px}
.tenant-switcher label{font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:650;color:#7a86a2}
.tenant-switcher .scope-select{font-weight:550}
.scope-caption{font-size:10px;color:#6c7e99;line-height:1.6}
.scope-chip{display:inline-flex;gap:6px;align-items:center;padding:5px 9px;background:#eef1fc;border:1px solid #d9dff2;color:#4a568d;border-radius:5px;font-size:10px}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:18px;margin-bottom:22px}
.project-card{background:#fff;border:1px solid #dfe5ee;border-radius:12px;padding:21px;box-shadow:0 3px 12px #23365204;display:flex;flex-direction:column;gap:16px;min-width:0}
.project-card:hover{border-color:#aeb9d9;box-shadow:0 5px 20px #3b43800b}
.project-card h2{font-size:16px;color:#283455}
.project-card p{font-size:12px;color:#697a94;line-height:1.75}
.project-card-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.project-card-header .source-icon{width:35px;height:35px;margin:0;background:#edf0fc;border-color:#dce2f5;color:#54629e}
.project-meta{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.project-meta>div{padding:10px;background:#f7f9fc;border:1px solid #e8edf4;border-radius:7px;font-size:10px;color:#7888a0}
.project-meta strong{display:block;color:#3f5171;font-size:12px;margin-top:3px}
.project-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:14px;border-top:1px solid #e7ebf3;margin-top:auto}
.tenant-summary{display:flex;align-items:center;gap:12px;padding:16px 18px;background:#eff2fc;border:1px solid #dce2f5;border-radius:10px;margin-bottom:20px;color:#4e5b8d}
.tenant-summary strong{color:#34406b}
.context-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 30px;background:#f9faff;border-bottom:1px solid #e3e8f2}
.context-bar>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.context-bar .scope-chip{font-size:10px;background:#fff;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.context-bar .scope-chip .icon{width:13px;height:13px;flex:none}
.context-bar .scope-chip strong{font-weight:650;margin-left:5px}
.context-status{display:flex;align-items:center;gap:10px;font-size:10px;color:#6a7995;flex:none}
.tenant-switcher .scope-caption{display:flex;align-items:center;gap:5px;font-size:9px}
.tenant-switcher .scope-caption .icon{width:11px;height:11px}
.tenant-switcher select{overflow:hidden;text-overflow:ellipsis}
.tabs{max-width:100%;overflow-x:auto;scrollbar-width:thin}
.tabs .tab{flex:none;white-space:nowrap}
.project-card-footer{flex-wrap:wrap}
.project-card-footer .inline-actions{align-items:center;flex-wrap:wrap}
@media(max-width:1200px){.context-bar{padding-left:22px;padding-right:22px}.context-status>span:last-child{display:none}}
@media(max-width:720px){.context-bar{padding:9px 15px;align-items:flex-start}.context-status{padding-top:3px}.context-bar .scope-chip{font-size:9px;padding:4px 7px}.context-bar .scope-chip strong{margin-left:3px}}
@media(max-width:720px){.project-grid{grid-template-columns:minmax(0,1fr)}.project-card{padding:17px}.tenant-summary{align-items:flex-start}.tenant-switcher{margin-bottom:16px}.kpi-title{font-size:10px}.kpi-footer{font-size:9px}}

/* Authentication pages keep their own palette and layout. */
.login-page {
  color-scheme: dark;
  --accent: #8ab7ff;
  --text: #eef4ff;
  --muted: #aab9d4;
  --line: #2b3958;
  --auth-field: #162340;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(12px, 2.35vw, 36px);
  min-height: 100dvh;
  background: radial-gradient(ellipse at 15% 5%, #172c51 0, transparent 54%), #080f20;
  color: var(--text);
}
.login-shell {
  width: min(100%, 1400px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #101b33;
  box-shadow: 0 18px 54px #03081170;
}
.login-page--split .login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: min(800px, calc(100dvh - 72px));
}
.login-page--standalone .login-shell { width: min(100%, 660px); }
.login-page .login-visual {
  justify-content: space-between;
  gap: clamp(48px, 12vh, 150px);
  background: radial-gradient(ellipse at 82% 88%, #19386a 0, transparent 61%), linear-gradient(145deg, #16294a, #0d1932 68%);
  border-color: var(--line);
  padding: clamp(32px, 4.4vw, 68px);
}
.login-page .login-visual::before {
  opacity: .65;
  background-image: linear-gradient(#38578660 1px, transparent 1px), linear-gradient(90deg, #38578660 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, transparent 20%, #000 100%);
  pointer-events: none;
}
.login-page .login-visual::after {
  content: '';
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  inset: auto -17% -18% auto;
  transform: rotate(-22deg);
  border: 1px solid #73b1ff38;
  border-radius: 24%;
  box-shadow: 0 0 0 33px #5d98e40d, 0 0 0 71px #5d98e40b;
  pointer-events: none;
}
.login-page .login-visual > * { z-index: 1; }
.login-page .login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.login-page .login-logo-window { width: 270px; aspect-ratio: 4.1; max-width: 100%; position: relative; overflow: hidden; }
.login-page .login-logo { width: 143%; height: auto; max-width: none; position: absolute; left: -20%; top: -106%; filter: brightness(0) invert(1); }
.login-page .login-product-tag { color: #adc4e7; font-size: 11px; font-weight: 650; letter-spacing: 2.5px; }
.login-page .login-message { margin: 0; padding: 0; }
.login-page .login-message h2 {
  color: var(--text);
  max-width: 520px;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 690;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.login-page .login-message p { display: block; color: #b8c9e4; margin-top: 14px; max-width: 48ch; font-size: clamp(14px, 1.35vw, 18px); line-height: 1.6; }
.login-features { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 26px 0 0; list-style: none; }
.login-page .login-feature { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 11px; border: 1px solid #45648d66; border-radius: 7px; background: #101e3aba; color: #d1e3ff; font-size: 12px; }
.login-page .login-feature .icon { color: #7dc8ed; width: 15px; height: 15px; }
.login-page .login-form-area {
  min-height: 0;
  padding: clamp(28px, 4.1vw, 62px);
  background: radial-gradient(ellipse at 100% 0, #1b2949 0, transparent 62%), #101b33;
}
.login-page--standalone .login-form-area { padding: clamp(24px, 4vw, 48px); }
.login-page .login-form-wrap { max-width: 530px; min-width: 0; }
.login-page--standalone .login-form-wrap { max-width: none; }
.login-form-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.login-page--split .login-form-header { justify-content: flex-end; }
.login-card-brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-size: 17px; font-weight: 690; }
.login-card-brand strong { color: #a5c8ff; }
.login-card-mark { display: grid; place-items: center; width: 39px; height: 39px; color: #091527; background: linear-gradient(130deg,#8caeff,#59ddd8); border-radius: 11px; }
.login-card-mark .icon { width: 22px; height: 22px; }
.login-page .login-locale { align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; }
.login-page .locale-picker { color: #c9d9f3; }
.login-page .locale-picker select { background: #15213b; border-color: #394d73; }
.login-page .locale-picker select:focus-visible { outline-color: var(--accent); }
.login-page .field > span { color: #d6e1f6; }
.login-page .field input {
  color: var(--text);
  background: var(--auth-field);
  border-color: #3a4d74;
  min-height: 54px;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.login-page .field input::placeholder { color: #93a5c5; opacity: 1; }
.login-page .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #77bafa3b; }
.login-page .field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: inset 0 0 0 1000px var(--auth-field); }
.login-page .field input:-webkit-autofill:focus { box-shadow: inset 0 0 0 1000px var(--auth-field), 0 0 0 3px #77bafa3b; }
.login-page .btn-primary {
  color: #071629;
  background: linear-gradient(110deg, #8cacff, #57dcd4);
  border-color: transparent;
  min-height: 52px;
  padding-inline: 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 740;
  box-shadow: 0 9px 24px #509eff2c;
}
.login-page .btn-primary:hover:not(:disabled) { background: linear-gradient(110deg, #a5bfff, #7ae7e0); }
.login-page .btn-primary:disabled { color: #b4c4e0; background: #273656; box-shadow: none; opacity: 1; }
.login-page .btn-primary:focus-visible { outline-color: var(--accent); }
.login-page .demo-badge { color: #f1dba5; background: #352d23; border-color: #675637; }
.login-page .form-error { color: #ffd5de; background: #3a2438; border-color: #795172; }
.login-page ::selection { color: #0a1730; background: #b6cbff; }
@media (max-width: 760px) {
  .login-page--split .login-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login-page .login-visual { padding: 20px clamp(20px, 5vw, 34px); border-right: 0; border-bottom: 1px solid var(--line); }
  .login-page .login-logo-window { width: 160px; }
  .login-page .login-brand { gap: 3px; }
  .login-page .login-product-tag { font-size: 9px; letter-spacing: 1.7px; }
  .login-page .login-message { display: none; }
  .login-page .login-form-area { padding: 22px clamp(20px, 5vw, 34px) 26px; }
  .login-form-header { margin-bottom: 18px; }
}

.monitoring-workers{margin-bottom:20px}.monitoring-worker-list{padding:0 20px 18px;display:grid;gap:10px}.monitoring-worker-list>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#f6f7fc;border:1px solid var(--line);border-radius:7px}.monitoring-worker-list span:first-child{display:inline-flex;gap:8px;align-items:center;font-size:11px}.monitoring-worker-list small{color:var(--muted);margin-left:auto}.monitoring-deploy-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.monitoring-deploy-grid p{color:var(--muted);font-size:12px;line-height:1.8}.collector-downloads{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 18px}.collector-secret code{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.monitoring-workers .panel-header p{max-width:500px}@media(max-width:720px){.monitoring-deploy-grid{grid-template-columns:minmax(0,1fr)}.monitoring-worker-list small{margin-left:0;flex-basis:100%}.collector-downloads .btn{width:100%}}

/* Detection authoring: scoped controls, explicit state and readable criteria. */
dialog.rule-editor{width:min(1100px,calc(100vw - 32px));max-height:90vh;overflow:hidden}
.rule-editor #dialog-content{display:flex;flex-direction:column;max-height:89vh}
.rule-editor .dialog-header,.rule-editor .dialog-footer{flex-shrink:0}
.rule-editor .dialog-body{overflow-y:auto;overscroll-behavior:contain;background:#fff}
.rule-editor .dialog-header h2{font-size:20px}
.rule-editor .dialog-header p{font-size:11px;line-height:1.6}
.rule-editor [hidden]{display:none!important}
.rule-editor .field>span{font-size:11px;font-weight:600;color:#3e496b}
.rule-editor .field input,.rule-editor .field select,.rule-editor .field textarea{font-size:12px;line-height:1.6;color:#263253;background:#fff;border-color:#ccd4e6}
.rule-editor .field input:disabled,.rule-editor .field select:disabled,.rule-editor .field textarea:disabled{color:#54607c;background:#f7f8fc;opacity:1}
.rule-editor .field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px;align-items:start}
.rule-editor .field textarea{min-height:85px;resize:vertical}
.rule-editor .field textarea.mono{font-size:11px;line-height:1.8;tab-size:2;background:#f8f9fd}
.rule-editor .form-error:not(:empty){margin-bottom:15px}
.rule-scope-note{display:flex;gap:9px;align-items:flex-start;padding:11px 14px;background:#f3f5fc;border:1px solid #e1e5f2;border-radius:8px;color:#596584;font-size:11px;line-height:1.7;margin-bottom:17px}
.rule-scope-note .icon{width:15px;height:15px;flex-shrink:0;margin-top:2px;color:#515c95}
.rule-editor-tabs{display:flex;align-items:stretch;gap:4px;overflow-x:auto;border-bottom:1px solid #e0e5ef;margin-bottom:24px;padding-bottom:0;scrollbar-width:thin;position:sticky;top:-23px;background:#fff;z-index:3}
.rule-editor-tab{border:0;border-bottom:3px solid transparent;background:transparent;color:#69728e;font:inherit;font-size:11px;font-weight:600;padding:13px 12px;white-space:nowrap;cursor:pointer;transition:color .15s,background .15s}
.rule-editor-tab:hover{color:#394482;background:#f7f8fc}
.rule-editor-tab.active{color:#3b4380;border-bottom-color:#4b5595}
.rule-editor-tab:focus-visible{outline:2px solid #5967ad;outline-offset:-3px;border-radius:4px}
.rule-tab-panel{min-height:315px}
.rule-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.rule-section-heading h3{font-size:16px;font-weight:650;color:#263253;margin:0 0 6px}
.rule-section-heading h4{font-size:12px;font-weight:650;color:#354165;margin:0}
.rule-section-heading p,.rule-hint{font-size:11px;color:#6a7591;line-height:1.8;margin:0}
.rule-hint{margin:0 0 18px}
.rule-editor .field small{font-size:10px;color:#6a7591;line-height:1.8;margin-top:7px}
.rule-subheading{font-size:12px;font-weight:650;color:#344265;margin:20px 0 12px}
.rule-grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rule-check{display:flex;align-items:center;gap:8px;color:#45516f;font-size:12px;line-height:1.6;margin:0 0 12px;cursor:pointer}
.rule-check input{accent-color:#49528e;flex-shrink:0;width:15px;height:15px;margin:0}
.rule-check input:disabled{cursor:default}
.rule-mode-picker{display:flex;gap:24px;flex-wrap:wrap;padding:13px 15px;background:#f7f8fc;border:1px solid #e3e6f0;border-radius:7px;margin:18px 0}
.rule-mode-picker .rule-check{font-size:11px;margin:0}
.rule-divider{height:1px;background:#e3e7f0;margin:25px 0}
.rule-condition-group{background:#fafbfe;border:1px solid #e0e5f0;border-radius:8px;padding:15px;margin-bottom:15px}
.rule-group-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:12px}
.rule-group-toolbar .field{width:260px;max-width:65%;margin:0}
.rule-condition-group .rule-hint{margin:12px 0 0;font-size:10px}
.rule-predicate{display:grid;grid-template-columns:minmax(120px,1.1fr) minmax(125px,.95fr) minmax(140px,1.3fr) 120px auto;gap:10px;align-items:end;padding:13px 0;border-bottom:1px solid #e7eaf2}
.rule-predicate:last-child{border-bottom:0;padding-bottom:0}
.rule-predicate .field{margin:0}
.rule-predicate .field>span{font-size:10px}
.rule-predicate .field input,.rule-predicate .field select{font-size:11px;min-height:38px}
.rule-predicate .btn{margin-bottom:2px}
.rule-case{font-size:10px;margin:0 0 8px;gap:6px}
.rule-case input{width:13px;height:13px}
.rule-exception-card{border:1px solid #dce2ee;border-radius:8px;padding:15px;margin-bottom:15px}
.rule-exception-card .rule-section-heading{align-items:center;margin-bottom:10px}
.rule-exception-card .rule-condition-group{border:0;padding:0;margin:0;background:transparent}
.rule-definition-meta{display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid #e3e7f0;margin-top:26px;padding-top:17px;color:#7a839c;font-size:10px}
.rule-definition-meta strong{font-weight:650;color:#566185}
.rule-test-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.rule-test-actions .field{margin:0;width:180px}
.rule-test-actions>.btn{min-height:38px}
.rule-results{margin-bottom:20px}
.rule-feedback{display:flex;gap:10px;padding:14px 15px;border:1px solid #dce2ef;border-radius:8px;font-size:11px;line-height:1.7;margin:12px 0;background:#f6f8fd;color:#53617e}
.rule-feedback .icon{flex-shrink:0;width:17px;height:17px;margin-top:2px}
.rule-feedback strong{display:block;font-size:12px;font-weight:650;margin-bottom:3px}
.rule-feedback p{margin:0;overflow-wrap:anywhere}
.rule-feedback.success{color:#2a6a54;background:#f1faf6;border-color:#c8e6d7}
.rule-feedback.error{color:#9d3b4e;background:#fff3f5;border-color:#eccbd3}
.rule-feedback.warning{color:#8d6726;background:#fff9eb;border-color:#eadbb7}
.rule-warnings{padding:12px 15px 12px 30px;margin:12px 0;border:1px solid #eadbb7;border-radius:8px;background:#fffaf0;color:#87642b;font-size:11px;line-height:1.9}
.rule-preview-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0}
.rule-preview-metrics>div{background:#f5f7fc;border:1px solid #e1e6f1;padding:15px 12px;border-radius:8px;min-width:0}
.rule-preview-metrics strong{display:block;font-size:22px;font-weight:650;color:#3b4680;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rule-preview-metrics span{display:block;font-size:10px;color:#727d96;margin-top:4px}
.rule-history-list{display:grid;gap:10px}
.rule-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:15px;align-items:start;padding:14px 15px;background:#fafbfe;border:1px solid #e0e5ef;border-radius:8px}
.rule-history-item>div>strong{display:block;font-size:12px;color:#3b486d;margin-bottom:5px}
.rule-history-item>div>span{font-size:10px;color:#768199}
.rule-history-item details{min-width:0;font-size:11px;color:#4c5b91;padding-top:3px}
.rule-history-item summary{cursor:pointer;white-space:nowrap}
.rule-history-item details[open]{grid-column:1/-1;grid-row:2}
.rule-history-item .raw-box{margin:12px 0 0;max-height:350px}
.rule-fingerprint{display:block;font-size:9px;letter-spacing:.2px;color:#8790a8;margin-top:5px}
.rules-catalog .rule-name{min-width:230px}
.rules-catalog .rule-description{max-width:240px}
.rule-lifecycle.active{background:#edf7f1;border-color:#c9e7d6;color:#3c7a5c}
.rule-lifecycle.testing{background:#fff8e8;border-color:#eadcb8;color:#97712e}
.rule-lifecycle.deprecated{background:#f2f3f7;border-color:#dfe2ea;color:#8a91a3}
.rule-execution-error{color:#ab4256!important;max-width:220px;overflow-wrap:anywhere;white-space:normal}
@media(max-width:1000px){.rule-predicate{grid-template-columns:1fr 1fr 1.2fr}.rule-case{grid-column:1/3;margin:0;align-self:center}.rule-predicate>.btn{justify-self:end}.rule-editor-tab{padding:12px 10px}}
@media(max-width:650px){dialog.rule-editor{width:calc(100vw - 16px);max-height:94vh}.rule-editor #dialog-content{max-height:93vh}.rule-editor .dialog-header,.rule-editor .dialog-body,.rule-editor .dialog-footer{padding:17px}.rule-editor .dialog-header h2{font-size:17px}.rule-editor-tabs{top:-17px;margin-bottom:20px}.rule-editor .field-row,.rule-grid-three{grid-template-columns:minmax(0,1fr);gap:0}.rule-predicate{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rule-predicate>.field:nth-child(3){grid-column:1/-1}.rule-case{grid-column:1}.rule-group-toolbar{align-items:center}.rule-group-toolbar .field{max-width:62%}.rule-group-toolbar>.btn{font-size:10px;padding:8px}.rule-preview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-mode-picker{gap:12px}.rule-history-item{grid-template-columns:minmax(0,1fr) auto}.rule-history-item details{grid-row:2;grid-column:1/-1}.rule-test-actions{gap:10px}.rule-test-actions .field{width:100%}.rule-test-actions>.btn{flex:1;min-width:160px}.rule-definition-meta{gap:12px}.rule-condition-group{padding:12px}.rule-scope-note{padding:10px}}
