:root{color:#17233d;background:#f3f7fc;font-family:Microsoft YaHei UI,Microsoft YaHei,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--blue: #2f86f6;--blue-deep: #176de0;--blue-soft: #eaf4ff;--ink: #17233d;--muted: #71809a;--line: #dfe7f1;--card: rgba(255, 255, 255, .9);--danger: #e25c5c}*{box-sizing:border-box}html{min-width:320px;background:#f3f7fc}body{min-width:320px;min-height:100vh;margin:0;background:radial-gradient(circle at 8% 0%,rgba(91,172,255,.14),transparent 27rem),radial-gradient(circle at 95% 11%,rgba(119,94,255,.1),transparent 24rem),linear-gradient(180deg,#f9fbfe 0,#f3f7fc 46rem,#eef4fa)}button,input,select,textarea{font:inherit}button,label,select{-webkit-tap-highlight-color:transparent}button{border:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(47,134,246,.25);outline-offset:2px}.page-shell{width:min(1680px,calc(100% - 40px));margin:0 auto;padding:40px 0 28px}.hero{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;min-height:128px;text-align:left}.brand-mark{display:grid;width:58px;height:58px;place-items:center;border-radius:17px;color:#fff;background:linear-gradient(135deg,#2b95fc,#2767e5);box-shadow:0 12px 28px #2874e640;font-size:19px;font-weight:800;letter-spacing:-1px;transform:rotate(-3deg)}.eyebrow{margin:0 0 2px;color:#7a8aa5;font-size:10px;font-weight:700;letter-spacing:.17em}.hero h1{margin:0;color:var(--ink);font-size:clamp(29px,3vw,43px);line-height:1.14;letter-spacing:-.04em}.hero h1 span{color:var(--blue)}.subtitle{margin:7px 0 0;color:var(--muted);font-size:14px}.privacy-badge{position:absolute;top:21px;right:8px;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #d9e8dc;border-radius:99px;color:#327d4d;background:#f1fdf5d1;font-size:12px;font-weight:600}.pulse-dot{width:8px;height:8px;border-radius:50%;background:#39b768;box-shadow:0 0 0 4px #39b7681f}.workspace{overflow:hidden;border:1px solid rgba(212,224,238,.95);border-radius:18px;background:var(--card);box-shadow:0 20px 60px #274b7914,0 2px 8px #274b790a;backdrop-filter:blur(14px)}.tabs{display:flex;align-items:stretch;min-height:53px;padding:0 20px;border-bottom:1px solid var(--line);background:#f6f9fdd1}.tab{position:relative;min-width:144px;padding:0 20px;border-right:1px solid transparent;border-left:1px solid transparent;color:#77859b;background:transparent;cursor:pointer;font-size:14px;transition:color .18s ease,background .18s ease}.tab span{margin-right:6px;font-size:17px}.tab:hover:not(:disabled){color:var(--blue-deep);background:#eaf4ff8c}.tab.active{z-index:1;border-right-color:var(--line);border-left-color:var(--line);color:var(--blue-deep);background:#fff;font-weight:600}.tab.active:after{position:absolute;right:18px;bottom:-1px;left:18px;height:3px;border-radius:3px 3px 0 0;background:var(--blue);content:""}.tab:disabled{opacity:.46;cursor:not-allowed}.tab-indicator{position:absolute;top:12px;right:13px;width:6px;height:6px;border-radius:50%;background:#36b36a}.editor-panel{min-height:360px;padding:20px;background:#fff}.code-editor{display:block;width:100%;min-height:320px;resize:vertical;padding:20px;border:1px solid #d8e1ec;border-radius:12px;color:#263650;background:linear-gradient(90deg,#fbfcfe 0 49px,#f6f8fb 49px 50px,#fbfcfe 50px);box-shadow:inset 0 1px 2px #274b7908;font-family:Cascadia Code,Cascadia Mono,Consolas,monospace;font-size:14px;line-height:1.75;tab-size:2}.code-editor::placeholder{color:#a5afbf}.result-editor{color:#2d4663;background:#f9fbfe}.file-view{display:grid;grid-template-columns:minmax(250px,.62fr) minmax(0,1.38fr);gap:18px;min-height:320px}.drop-zone{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:320px;padding:30px;border:1.5px dashed #b9cce1;border-radius:13px;color:#677892;background:#f8fbff;text-align:center;transition:border .2s ease,background .2s ease,transform .2s ease}.drop-zone.dragging{border-color:var(--blue);background:#edf6ff;transform:scale(.995)}.drop-zone strong{max-width:100%;overflow:hidden;color:#29415f;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.drop-zone>span{color:#8a98ab;font-size:12px}.upload-icon{display:grid;width:54px;height:54px;margin-bottom:4px;place-items:center;border:1px solid #cce1f8;border-radius:16px;color:var(--blue-deep);background:#eaf4ff;font-size:15px;font-weight:800}.file-preview{min-height:320px;resize:none}.action-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:83px;padding:14px 20px;border-top:1px solid var(--line);background:#fbfcfe}.action-buttons{display:flex;align-items:center;flex:0 0 auto;gap:9px}.primary-button,.danger-button,.secondary-button,.ghost-button{min-height:40px;padding:0 18px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:600;transition:transform .16s ease,box-shadow .16s ease,border .16s ease}.primary-button{min-height:46px;padding:0 24px;color:#fff;background:linear-gradient(135deg,#379bff,#2e7af1);box-shadow:0 8px 20px #2f86f63b}.primary-button span,.danger-button span{margin-right:7px}.danger-button{min-height:46px;padding:0 24px;color:#fff;background:linear-gradient(135deg,#ed6b6b,#d94e61);box-shadow:0 8px 20px #d94e6133}.secondary-button{border:1px solid #cfdbea;color:#3f5875;background:#fff}.ghost-button{color:#728198;background:transparent}.primary-button:hover,.danger-button:hover,.secondary-button:hover,.ghost-button:hover{transform:translateY(-1px)}.secondary-button:hover{border-color:#9dbce0;box-shadow:0 5px 14px #2e598a17}.status-area{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 12px;min-width:0;color:#7c899b;font-size:12px;text-align:right}.status-message{color:#576b85}.size-stat{padding:5px 8px;border-radius:6px;background:#f0f4f9;font-variant-numeric:tabular-nums}.spinner{width:16px;height:16px;border:2px solid #cce0fa;border-top-color:var(--blue);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.notice{display:flex;align-items:center;gap:10px;margin-top:15px;padding:11px 15px;border:1px solid;border-radius:10px;font-size:12px}.notice>span{display:grid;width:20px;height:20px;place-items:center;border-radius:50%;color:#fff;font-weight:700}.warning-notice{border-color:#f0dcac;color:#846321;background:#fffbef}.warning-notice>span{background:#dcaa39}.danger-notice{border-color:#efc9c9;color:#9f4545;background:#fff5f5}.danger-notice>span{background:var(--danger)}.settings-grid{display:grid;grid-template-columns:.86fr 1.05fr 1.05fr 1.24fr;gap:18px;margin-top:22px}.settings-card{min-width:0;padding:23px;border:1px solid rgba(218,228,239,.95);border-radius:16px;background:#ffffffe0;box-shadow:0 10px 32px #2c4f7a0e;backdrop-filter:blur(10px)}.card-heading{display:flex;align-items:center;gap:11px;padding-bottom:16px;border-bottom:1px solid var(--line)}.heading-icon{display:grid;width:33px;height:33px;flex:0 0 auto;place-items:center;border-radius:9px;color:var(--blue-deep);background:var(--blue-soft);font-size:17px}.card-heading h2{margin:0;color:#236fda;font-size:17px;line-height:1.25}.card-heading p{margin:3px 0 0;color:#9aa6b6;font-size:11px}.preset-list{display:grid;gap:8px;margin-top:16px}.preset-option{position:relative;display:flex;align-items:center;gap:11px;min-height:57px;padding:8px 11px;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:border .17s ease,background .17s ease}.preset-option:hover{background:#f7faff}.preset-option.selected{border-color:#cae1fb;background:#f0f7ff}.preset-option input{position:absolute;opacity:0}.radio-circle{display:block;width:17px;height:17px;flex:0 0 auto;border:1.5px solid #c4cfdd;border-radius:50%;background:#fff}.preset-option.selected .radio-circle{border:5px solid var(--blue)}.preset-option>span:last-child{display:flex;flex-direction:column;min-width:0}.preset-option strong{color:#40536e;font-size:13px;font-weight:600}.preset-option.selected strong{color:var(--blue-deep)}.preset-option small{margin-top:2px;color:#99a5b5;font-size:10px}.preset-note{margin-top:14px;padding:10px 11px;border-radius:9px;color:#7c8a9f;background:#f6f8fb;font-size:10px;line-height:1.55}.option-list{display:grid;gap:2px;margin-top:13px}.toggle-row{position:relative;display:flex;align-items:flex-start;gap:10px;min-height:48px;padding:8px 5px;border-radius:8px;cursor:pointer;transition:background .15s ease}.toggle-row:hover{background:#f7faff}.toggle-row.toggle-disabled{opacity:.62;cursor:not-allowed}.toggle-row.toggle-disabled:hover{background:transparent}.toggle-row input{position:absolute;opacity:0;pointer-events:none}.toggle-box{position:relative;width:18px;height:18px;flex:0 0 auto;margin-top:1px;border:1px solid #ccd7e4;border-radius:4px;background:#fff;transition:border .15s ease,background .15s ease}.toggle-row input:checked+.toggle-box{border-color:var(--blue);background:var(--blue)}.toggle-row input:focus-visible+.toggle-box,.preset-option input:focus-visible+.radio-circle{outline:3px solid rgba(47,134,246,.25);outline-offset:2px}.toggle-row input:checked+.toggle-box:after{position:absolute;top:2px;left:5px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;content:"";transform:rotate(45deg)}.toggle-copy{display:flex;flex-direction:column;min-width:0}.toggle-label{color:#40516a;font-size:13px;line-height:1.3}.toggle-row input:checked~.toggle-copy .toggle-label{color:var(--blue-deep)}.toggle-copy small{margin-top:3px;color:#a0aaba;font-size:10px;line-height:1.35}.risk-dot{display:inline-block;margin-left:6px;padding:1px 4px;border-radius:4px;color:#bd6a32;background:#fff1df;font-size:8px;font-weight:700;vertical-align:2px}.range-field{display:grid;gap:7px;margin:1px 4px 11px 33px;padding:9px 11px;border-radius:8px;background:#f6f9fc;transition:opacity .15s ease}.range-field.disabled{opacity:.42}.range-field>span{display:flex;justify-content:space-between;color:#687991;font-size:10px}.range-field .threshold-number{width:68px;min-height:28px;padding:0 6px;border:1px solid #d5dfeb;border-radius:6px;color:var(--blue-deep);background:#fff;font-size:10px;text-align:right;font-variant-numeric:tabular-nums}.range-field input[type=range]{width:100%;height:4px;accent-color:var(--blue)}.select-field,.text-field{display:grid;gap:7px;padding:9px 4px;color:#53647c;font-size:11px}.select-field>span small{margin-left:5px;color:#a0aaba;font-size:9px}.select-field select,.text-field input,.tag-input-row input{width:100%;min-height:39px;padding:0 11px;border:1px solid #d5dfeb;border-radius:7px;color:#485c75;background:#fbfcfe;font-size:12px}.select-field select:focus,.text-field input:focus,.tag-input-row input:focus{border-color:#86b8f1;background:#fff}.rules-list{display:grid;gap:10px;margin-top:13px}.tag-field{display:grid;gap:6px;padding:6px 4px}.field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#53647c;font-size:11px}.field-heading small{color:#a0aaba;font-size:9px}.tag-input-row{display:grid;grid-template-columns:minmax(0,1fr) 39px}.tag-input-row input{border-radius:7px 0 0 7px}.add-button{border:1px solid #d5dfeb;border-left:0;border-radius:0 7px 7px 0;color:#5c79a8;background:#f3f7fc;cursor:pointer;font-size:18px;transition:color .15s ease,background .15s ease}.add-button:hover{color:#fff;background:var(--blue)}.tags{display:flex;flex-wrap:wrap;gap:5px}.tag{display:inline-flex;align-items:center;max-width:100%;min-height:25px;padding:3px 4px 3px 8px;border:1px solid #cee1f8;border-radius:6px;color:#47719f;background:#eff7ff;font-family:Cascadia Code,Cascadia Mono,Consolas,monospace;font-size:9px}.tag>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag button{padding:0 3px;color:#7b9cbe;background:transparent;cursor:pointer;font-size:15px;line-height:1}.tag button:hover{color:var(--danger)}footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 8px 0;color:#8c99aa;font-size:11px}footer p{margin:0}footer span{color:#5f8d72;font-weight:600}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);white-space:nowrap}@media(max-width:1240px){.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.privacy-badge{right:0}}@media(max-width:820px){.page-shell{width:min(100% - 24px,720px);padding-top:20px}.hero{justify-content:flex-start;min-height:126px;padding-right:0}.privacy-badge{top:0}.subtitle{max-width:440px}.action-bar{align-items:stretch;flex-direction:column;gap:12px}.status-area{justify-content:flex-start;text-align:left}.file-view{grid-template-columns:1fr}.drop-zone{min-height:210px}}@media(max-width:640px){.page-shell{width:min(100% - 16px,560px)}.hero{align-items:flex-start;gap:11px;min-height:142px;padding-top:42px}.brand-mark{width:46px;height:46px;border-radius:13px;font-size:15px}.hero h1{font-size:27px}.subtitle{font-size:11px}.privacy-badge{right:auto;left:0}.tabs{overflow-x:auto;padding:0}.tab{min-width:118px;padding:0 10px;font-size:12px}.editor-panel{min-height:320px;padding:10px}.code-editor{min-height:300px;padding:14px;background:#fbfcfe;font-size:12px}.action-buttons{align-items:stretch;flex-direction:column}.primary-button,.danger-button,.secondary-button,.ghost-button{width:100%}.settings-grid{grid-template-columns:1fr;gap:12px;margin-top:14px}.settings-card{padding:18px}footer{align-items:flex-start;flex-direction:column;gap:7px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
