:root{color-scheme:light;--primary:#245b4d;--bg:#f5f7f5;--card:#fff;--text:#252c29;--muted:#69726d;--border:#dde2de;--input:#f8f9f8;--danger:#a13b33;font-family:"Segoe UI",Arial,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}a{color:var(--primary)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;background:var(--card);border:1px solid var(--border);color:var(--text);border-radius:5px;padding:9px 13px;line-height:1.3}button:hover{border-color:#8bada0;background:#f2f7f4}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.primary{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.primary:hover{background:#194638;color:#fff}.full{width:100%}.topbar{height:77px;border-bottom:1px solid var(--border);background:var(--card);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-size:19px;font-weight:650;color:var(--text)}.brand svg{color:var(--primary)}.brand small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:var(--muted);font-weight:400;margin-top:4px}.top-actions{display:flex;align-items:center;gap:22px;font-size:12px}.top-actions a{text-decoration:none}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 77px)}aside{min-width:0;border-right:1px solid var(--border);background:var(--card);padding:30px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}nav{display:flex;flex-direction:column;gap:7px}nav button{text-align:left;border-color:transparent;padding:12px 14px;background:transparent;color:var(--muted)}nav button.active{background:#edf4f0;color:var(--primary);font-weight:650}nav button span{float:right;font-size:11px}.sidebar-note{padding:14px;font-size:11px;line-height:1.6;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--primary);margin-right:5px}.sidebar-note p{margin:12px 0}.heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 28px}main{padding:34px 36px;max-width:1520px;width:100%;min-width:0}h1{font-size:28px;line-height:1.2;letter-spacing:-.6px;margin:0 0 9px;font-weight:600}h2{font-size:18px;margin:0;line-height:1.4;font-weight:600}h3{font-size:15px;margin:0 0 8px}.heading p,p.helper{font-size:13px;color:var(--muted);line-height:1.6;margin:0}.panel{background:var(--card);border:1px solid var(--border);border-radius:7px}.toolbar{padding:18px;display:flex;flex-wrap:wrap;align-items:end;gap:12px;border-bottom:1px solid var(--border)}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);font-weight:500}input,select,textarea{min-width:0;border:1px solid #d4dbd6;border-radius:5px;background:var(--input);padding:10px 11px;color:var(--text);line-height:1.45}input:focus,textarea:focus{background:#fff}textarea{resize:vertical;min-height:100px;width:100%}.toolbar input[type=search]{min-width:200px}.toolbar .search-label{flex:1}.toolbar input[type=date]{max-width:145px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#f7f8f7;color:var(--muted);font-size:11px;font-weight:500;padding:13px 17px;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:17px;vertical-align:top;border-bottom:1px solid #edf0ed;line-height:1.5}tbody tr:last-child td{border-bottom:0}td strong{font-size:13px;font-weight:600}tbody tr:hover{background:#fafcfb}.sub{color:var(--muted);font-size:11px;margin-top:5px}.status{display:inline-block;font-size:10px;padding:3px 7px;border-radius:4px;background:#eef3ef;color:#38634f;white-space:nowrap}.status.new{background:#eaf2fa;color:#355b81}.status.archived,.status.off{background:#f0f1f0;color:#69726d}.status.high{background:#fff1e8;color:#8b5520}.status.blocked{background:#fff0ee;color:#a13b33}.table-actions{display:flex;gap:7px}.table-actions button{font-size:11px;padding:6px 9px}.empty{padding:55px 25px;text-align:center}.empty svg{color:var(--muted);margin-bottom:15px}.empty p{color:var(--muted);line-height:1.7;font-size:13px;max-width:420px;margin:12px auto}.pagination{padding:15px 18px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:var(--muted)}.actions-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.actions-row p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.carrier-logo{width:64px;height:30px;object-fit:contain;background:#fff;border:1px solid #edf0ed;padding:3px;border-radius:3px}.wrap{overflow-wrap:anywhere;max-width:420px}.feature-list{padding:8px 22px}.feature-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:22px;padding:22px 0;border-bottom:1px solid var(--border)}.feature-row:last-child{border:0}.feature-row p{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.5}.feature-row input{width:19px;height:19px;accent-color:var(--primary)}.feature-actions{padding:18px 22px;border-top:1px solid var(--border);display:flex;justify-content:flex-end}.auth{max-width:430px;margin:8vh auto;padding:32px}.auth h1{font-size:25px;margin:20px 0 12px}.auth p{color:var(--muted);line-height:1.65;font-size:13px}.auth form{margin-top:26px}.auth label{margin:0 0 18px}.small{font-size:11px!important}.icon-mark{display:inline-flex;color:var(--primary);background:#edf4f0;padding:12px;border-radius:7px}.error{color:var(--danger)!important;font-size:12px;line-height:1.5}#toast{position:fixed;right:24px;bottom:24px;background:var(--primary);color:#fff;z-index:20;padding:13px 18px;border-radius:6px;max-width:390px;display:none;box-shadow:0 4px 18px #0001}#toast.visible{display:block}#toast.error-toast{background:#8b3933}dialog{width:min(620px,calc(100vw - 30px));max-height:90vh;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:0;color:var(--text);background:var(--card)}dialog::backdrop{background:#17231db3}dialog form{padding:25px}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dialog-head button{font-size:24px;line-height:1;padding:3px 8px;border-color:transparent}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#editor-fields label{margin:17px 0}#editor-fields input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary)}.detail{font-size:12px;color:var(--muted);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.code-id{font-family:ui-monospace,monospace;font-size:11px}.rule-editor{padding:24px}.rule-editor label{margin:18px 0}.rule-editor textarea{font-family:ui-monospace,monospace;font-size:12px;min-height:400px}.skip{position:fixed;left:10px;top:-80px;z-index:100;background:white;padding:12px}.skip:focus{top:10px}@media(max-width:850px){.shell{grid-template-columns:minmax(0,1fr)}aside{padding:12px 16px;border-right:0;border-bottom:1px solid var(--border)}nav{max-width:100%;flex-direction:row;overflow-x:auto;gap:4px}nav button{white-space:nowrap;padding:10px}.sidebar-note{display:none}main{padding:24px 18px}.topbar{padding:0 18px}.top-actions{gap:12px}.heading{align-items:flex-start}h1{font-size:25px}.toolbar{padding:15px}.feature-list{padding:0 17px}}@media(max-width:480px){.topbar{height:70px}.brand{font-size:17px}.top-actions a{max-width:85px;line-height:1.6}.top-actions button{font-size:11px;padding:7px}main{padding:24px 12px}.auth{margin:28px 14px;padding:25px}.toolbar label{flex:1;min-width:130px}.toolbar .search-label{min-width:100%}.toolbar input[type=search]{min-width:0;width:100%}.heading{gap:12px}.heading p{font-size:12px}.actions-row{align-items:flex-start}td,th{padding:12px}.feature-row{gap:14px}.table-scroll{max-width:100%}}
