:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#21332c;background:#f4f7f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:#177c67}input,textarea,select{width:100%;padding:10px 11px;border:1px solid #d8e2dc;border-radius:6px;background:#fff;color:#243b30;font-size:13px}input:focus,textarea:focus,select:focus{outline:2px solid #b7dccc;outline-offset:1px}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:auto}label{font-size:12px;color:#536c5e}small,.muted{font-size:12px;color:#7d8e84;line-height:1.7}.field{display:grid;gap:7px}.stack{display:grid;gap:16px}.row,.actions,.between{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.actions{justify-content:flex-end}.btn{border:1px solid #d4e0d8;background:#fff;padding:9px 14px;color:#365c46;border-radius:6px;white-space:nowrap;font-size:12px}.btn:hover{background:#f1f7f3}.btn.primary{background:#167b63;border-color:#167b63;color:#fff}.btn.primary:hover{background:#10634f}.btn.danger{color:#a74c41;border-color:#e7c9c2}.btn.small{padding:6px 9px;font-size:11px}.link{background:transparent;border:0;color:#177c67;padding:4px;font-size:12px}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{background:#193d37;color:#d9e8df;padding:25px 15px;display:flex;flex-direction:column;gap:26px}.brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700}.mark{width:30px;height:30px;border-radius:7px;background:#81cfab;color:#183c31;display:grid;place-items:center;font-size:12px}.nav{display:grid;gap:5px}.nav button{background:none;border:0;color:inherit;text-align:left;padding:12px;border-radius:6px;font-size:13px}.nav button:hover,.nav button.active{background:#2b574b;color:#fff}.side-foot{margin-top:auto;font-size:11px;color:#a6c1b1;line-height:1.8;border-top:1px solid #37604e;padding:18px 8px}.main{min-width:0}.topbar{min-height:65px;padding:12px 30px;background:white;border-bottom:1px solid #e0e9e3;display:flex;align-items:center;justify-content:space-between;gap:15px}.topbar .actions{font-size:12px}.profile{border:1px solid #dce6df;border-radius:20px;padding:7px 11px;color:#365c46}.content{max-width:1500px;margin:auto;padding:28px 30px 70px}h1{font-size:25px;font-weight:680;margin:0 0 8px}h2{font-size:16px;margin:0}h3{font-size:14px;margin:0}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}.page-head p{font-size:12px;color:#7c8d82;margin:0;line-height:1.8}.panel{background:#fff;border:1px solid #dfe8e1;border-radius:8px;padding:21px;margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:17px}.panel-head p{margin:6px 0 0}.grid{display:grid;gap:18px}.two{grid-template-columns:1fr 1fr}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.stat{background:#fff;border:1px solid #dfe8e1;border-radius:7px;padding:18px 20px}.stat strong{display:block;font-size:28px;color:#234c3a;margin:11px 0 6px}.notice{border-left:3px solid #d1a658;background:#fbf7ec;color:#8b713e;padding:12px 15px;font-size:12px;line-height:1.8}.empty{text-align:center;padding:38px 20px}.empty h2{font-size:20px;margin:15px 0}.empty p{max-width:580px;margin:10px auto;color:#859287;font-size:13px;line-height:1.9}.empty .actions{justify-content:center;margin-top:20px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px auto;max-width:800px;text-align:left}.steps>div{border:1px solid #e3eae5;border-radius:6px;padding:16px;font-size:13px}.steps small{display:block;margin-top:8px}.tag{display:inline-flex;align-items:center;gap:5px;background:#edf6f0;color:#427d5d;padding:5px 8px;border-radius:4px;font-size:11px;white-space:nowrap}.tag.orange{background:#fbf1e4;color:#ac7840}.tag.red{background:#fcf0ed;color:#a15649}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4f9c73;margin-right:7px}.dot.off{background:#b8c5bd}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;font-weight:550;color:#8a978f;background:#f7f9f7}td,th{padding:13px 11px;border-bottom:1px solid #edf1ee}td{color:#476050;vertical-align:top}td.wrap{white-space:normal;max-width:350px;overflow-wrap:anywhere}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.account-context{display:flex;align-items:center;justify-content:space-between;gap:20px}.account-context select{min-width:210px}.save-status{font-size:12px;color:#819087}.save-status.dirty{color:#b17d35}.settings-layout{display:grid;grid-template-columns:185px minmax(330px,1fr) 250px;gap:18px;align-items:start}.rule-nav{padding:8px}.rule-choice{border:1px solid transparent;border-radius:6px;background:white;width:100%;padding:14px 10px;text-align:left;color:#385c47}.rule-choice.active{background:#edf7f0;border-color:#b7dbc5}.rule-choice strong{display:block;font-size:13px}.rule-choice small{display:block;margin:7px 0 0 14px;font-size:11px}.rule-nav .muted{padding:12px;font-size:11px}.rule-editor{padding:0;overflow:hidden}.editor-head{padding:22px;border-bottom:1px solid #e8eee9}.editor-head p{margin:7px 0 0}.editor-section{padding:20px 22px;display:grid;gap:15px;border-bottom:1px solid #edf1ed}.section-label{font-size:12px;font-weight:700;color:#69836e}.editor-foot{padding:16px 22px;background:#fafcf9}.switch{appearance:none;width:35px!important;height:20px;padding:0;border:0;border-radius:15px;background:#bdcec2;position:relative;cursor:pointer}.switch:before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:white;top:2px;left:2px;transition:.15s}.switch:checked{background:#208462}.switch:checked:before{transform:translateX(15px)}.segmented{display:flex;gap:4px;background:#f2f6f2;border:1px solid #dae5da;border-radius:5px;padding:3px;width:max-content}.segmented button{border:0;background:none;color:#7a8e7d;font-size:12px;padding:7px 12px;border-radius:3px}.segmented button.active{background:white;color:#236b45;box-shadow:0 1px 3px #193a2515}.tabs{display:flex;gap:18px;border-bottom:1px solid #e0e9e0;margin-bottom:15px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 3px;color:#7d8e81;font-size:12px}.tabs button.active{color:#197448;border-color:#218759}.preview{position:sticky;top:20px}.preview-chat{margin:17px 0;background:#f0f5ef;padding:14px 10px;min-height:145px;border-radius:7px}.bubble{padding:12px;background:white;border:1px solid #dce7dc;border-radius:3px 10px 10px;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.card-preview{background:white;border:1px solid #dce7dc;border-radius:6px;overflow:hidden;overflow-wrap:anywhere}.card-preview img{display:block;width:100%;height:110px;object-fit:cover}.card-preview h3,.card-preview p{padding:0 12px}.card-preview h3{margin:15px 0 8px;font-size:13px}.card-preview p{font-size:11px;color:#8d9a8d;line-height:1.8}.card-preview .card-link{padding:10px 12px;border-top:1px solid #e9efe7;font-size:11px;color:#38814f}.card-import{background:#f5f8f4;padding:14px;border-radius:6px;border:1px solid #e0e8dd;display:grid;gap:10px}.preview-meta{font-size:11px;line-height:1.9;color:#7e9481}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.auth-side{background:#193d37;color:white;padding:7vw;display:flex;flex-direction:column;justify-content:space-between}.auth-side h1{font-size:37px;line-height:1.5}.auth-side p{color:#b6cdbd;line-height:1.9;max-width:430px;font-size:14px}.auth-side small{color:#a4bdaa}.auth-box{align-self:center;justify-self:center;width:min(390px,calc(100% - 40px));padding:30px;background:white;border:1px solid #dee7dc;border-radius:9px;margin:35px 0}.auth-box h2{font-size:24px;margin:10px 0}.auth-box>p{font-size:12px;color:#8a978a;line-height:1.8;margin-bottom:22px}.auth-tabs{display:flex;border-bottom:1px solid #e3e9df;gap:25px;margin-bottom:23px}.auth-tabs button{padding:10px 0;background:none;border:0;border-bottom:2px solid transparent;font-size:14px;color:#8c998b}.auth-tabs button.active{color:#237b50;border-color:#237b50}.auth-submit{width:100%;padding:12px}.error{font-size:12px;color:#aa5345;background:#fcf0e9;border-radius:5px;padding:10px;line-height:1.7}.error:empty{display:none}.toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);background:#19422e;color:white;padding:12px 19px;border-radius:6px;box-shadow:0 7px 22px #16412625;font-size:13px;z-index:100;display:none;max-width:90vw}.toast.visible{display:block}.initial-loading{display:grid;place-items:center;min-height:100vh;color:#8c9c8c}dialog{padding:0;border:1px solid #d9e4d5;border-radius:9px;box-shadow:0 25px 80px #10291d50;width:min(660px,calc(100vw - 30px));max-height:calc(100vh - 40px);color:#304e36}dialog::backdrop{background:#172c2075}.modal-head{padding:22px;border-bottom:1px solid #e4ebe0;display:flex;justify-content:space-between;gap:15px}.modal-head h2{font-size:19px}.modal-head p{margin:7px 0 0}.modal-body{padding:22px}.modal-foot{padding:16px 22px;border-top:1px solid #e5ece0;display:flex;justify-content:flex-end;gap:10px}.dialog-progress{display:flex;gap:15px;font-size:11px;color:#8d9c88;border-bottom:1px solid #e2e9dd;padding-bottom:14px}.dialog-progress .active{color:#23774a;font-weight:700}.verify-result{background:#edf7eb;padding:15px;border:1px solid #cde2c5;border-radius:6px;font-size:13px;line-height:1.8}.button-grid{display:flex;gap:8px;flex-wrap:wrap}.help-item{padding:16px 0;border-bottom:1px solid #e5ece0}.help-item p{font-size:12px;color:#83917d;line-height:1.9}.code-list{white-space:pre-wrap;font-family:Consolas,monospace;background:#f5f9f1;border:1px dashed #c3d5b9;padding:15px;font-size:12px;max-height:240px;overflow:auto}.log-reason{max-width:260px;overflow-wrap:anywhere;white-space:normal}.account-item{padding:16px;border:1px solid #e0e8db;border-radius:6px;margin-bottom:12px}.account-item:last-child{margin-bottom:0}.secret{font:14px Consolas,monospace;word-break:break-all;padding:15px;border:1px dashed #b4cba6;background:#f2f8eb}.page-error{padding:22px;line-height:1.8;color:#a25a43}.inline-check{display:flex;gap:9px;align-items:center;font-size:12px}.nowrap{white-space:nowrap}.good{color:#2c8755}.danger-text{color:#ab5a45}.hidden{display:none!important}
@media(max-width:1250px){.settings-layout{grid-template-columns:170px minmax(0,1fr)}.preview{grid-column:2;position:static}.preview-chat{min-height:70px}.stats{gap:10px}.account-context{flex-wrap:wrap}.account-context .actions{justify-content:flex-start}.topbar{padding:12px 20px}.content{padding:24px 20px}}
@media(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{padding:15px;gap:15px}.sidebar .nav{display:flex;overflow:auto}.nav button{white-space:nowrap;padding:9px 12px}.side-foot{display:none}.sidebar .brand{font-size:14px}.topbar{flex-wrap:wrap}.two{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-side{padding:25px;min-height:220px}.auth-side h1{font-size:27px;margin:22px 0 0}.auth-side p,.auth-side>small{display:none}.auth-box{margin:25px 0}.page-head{flex-wrap:wrap}.stats{grid-template-columns:1fr 1fr}.settings-layout{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:560px){.content{padding:20px 12px}.topbar{padding:12px}.settings-layout{grid-template-columns:1fr}.rule-nav{display:flex;overflow:auto}.rule-nav>.muted{display:none}.rule-choice{min-width:132px}.preview{grid-column:1}.control-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr}.page-head h1{font-size:22px}.actions{justify-content:flex-start}.editor-head,.editor-section,.editor-foot,.panel{padding:17px}.rule-editor,.rule-nav{padding:0}.topbar .profile{display:none}.account-context select{min-width:0}.modal-body,.modal-head,.modal-foot{padding:17px}.stat{padding:15px}.stat strong{font-size:25px}}
