@font-face{font-family:"Material Symbols Outlined";font-style:normal;font-weight:400;font-display:block;src:url("/assets/material-symbols-outlined.ttf") format("truetype")}
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC","Microsoft YaHei",sans-serif;color:#1f2328;background:#fff;font-synthesis:none;font-size:14px;--border:#d1d9e0;--muted:#59636e;--subtle:#f6f8fa;--blue:#0969da;--green:#1f883d}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{touch-action:manipulation}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}.material-symbols-outlined{font-family:"Material Symbols Outlined";font-weight:400;font-style:normal;font-size:18px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";-webkit-font-smoothing:antialiased;width:1em;height:1em;vertical-align:middle;flex-shrink:0;overflow:hidden}.topbar{height:64px;background:#25292e;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px}.brand{display:flex;align-items:center;gap:12px;font-weight:650;font-size:18px;color:#fff}.brand:hover{text-decoration:none}.brand .material-symbols-outlined{font-size:30px}.topbar .muted{color:#bbc1c9}.top-meta{display:flex;gap:18px;align-items:center;font-size:12px}.topbar button{background:#333940;border-color:#5b626c;color:white}.avatar{background:#e6edf3;border-radius:50%;color:#343b43;padding:7px 10px;font-weight:700}.repo-shell{background:var(--subtle);border-bottom:1px solid var(--border)}.repo-heading{max-width:1344px;margin:auto;padding:24px 32px 20px;display:flex;align-items:center;gap:10px;color:var(--muted)}.repo-heading a{font-size:20px}.repo-heading strong{font-weight:600}.badge{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:20px;padding:2px 9px;font-size:12px;font-weight:500;white-space:nowrap;color:var(--muted);background:#fff}.badge.green{color:#1a7f37;border-color:#a5d8b3;background:#dafbe1}.badge.red{color:#cf222e;background:#ffebe9;border-color:#ffcecb}.repo-heading .right{margin-left:auto}.tabs{max-width:1344px;margin:auto;display:flex;gap:8px;padding:0 24px;overflow:auto}.tab{display:flex;gap:8px;align-items:center;white-space:nowrap;padding:13px 12px;color:#1f2328;border-bottom:3px solid transparent}.tab:hover{background:#eaeef2;text-decoration:none}.tab.active{border-bottom-color:#fd8c73;font-weight:600}.main{max-width:1280px;margin:0 auto;padding:32px;min-height:65vh}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;padding:6px 13px;font-weight:500;color:#25292e;background:var(--subtle);border:1px solid var(--border);border-radius:6px;box-shadow:0 1px 0 #1f23280a;text-decoration:none;white-space:nowrap}.btn:hover{background:#eef1f4;text-decoration:none}.btn.primary{background:var(--green);color:#fff;border-color:#1f7536}.btn.primary:hover{background:#1a7f37}.btn.danger{color:#cf222e}.btn.small{min-height:28px;font-size:12px;padding:3px 9px}.btn.icon{padding:5px 8px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.muted{color:var(--muted)}.small-text{font-size:12px}.page-title{margin:0 0 8px;font-size:24px;font-weight:600;letter-spacing:-.5px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-head p{margin:5px 0 0;color:var(--muted);line-height:1.7}.panel{border:1px solid var(--border);border-radius:7px;background:#fff;overflow:hidden}.panel-head{padding:13px 17px;border-bottom:1px solid var(--border);background:var(--subtle);display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600}.panel-body{padding:24px}.hero{padding:14px 0 32px}.eyebrow{font-size:12px;color:var(--muted);letter-spacing:2px;font-weight:600;margin-bottom:18px}.hero h1{font-size:36px;line-height:1.45;font-weight:650;letter-spacing:-1px;max-width:780px;margin:0 0 14px}.hero p{font-size:16px;color:var(--muted);line-height:1.9;margin:0 0 24px;max-width:760px}.hero .actions{margin-top:22px}.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px}.file-row{display:flex;align-items:center;gap:12px;padding:14px 17px;border-bottom:1px solid #d8dee466}.file-row:last-child{border:0}.file-row:hover{background:var(--subtle)}.file-row .file-name{font-weight:500;min-width:150px}.file-row .muted{margin-left:auto;font-size:12px}.readme{margin-top:24px}.readme h2{font-size:23px;border-bottom:1px solid #d8dee4;padding-bottom:15px;margin-top:0}.readme p{line-height:1.9;color:#444d56}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.feature-grid h3{font-size:14px;display:flex;align-items:center;gap:8px}.feature-grid p{font-size:13px;margin:8px 0}.aside-section{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #d8dee4}.aside-section h3{margin:0 0 13px;font-size:16px}.aside-section p{line-height:1.8;color:var(--muted)}.aside-line{display:flex;gap:10px;align-items:center;color:var(--muted);margin:12px 0}.dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:#2da44e}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stat{border:1px solid var(--border);padding:19px;border-radius:6px}.stat strong{font-size:27px;display:block;margin-top:10px;font-weight:600}.toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:16px}.search{max-width:380px;flex:1}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:var(--subtle);color:var(--muted);font-weight:500;padding:12px 16px;border-bottom:1px solid var(--border)}td{padding:15px 16px;border-bottom:1px solid #d8dee466;vertical-align:middle}tr:last-child td{border-bottom:0}td .muted{margin-top:4px;font-size:12px;word-break:break-all}td:first-child{min-width:140px}.table-title{font-weight:600;color:var(--blue)}.empty{padding:64px 24px;text-align:center;color:var(--muted)}.empty .material-symbols-outlined{font-size:38px;margin-bottom:10px}.empty h3{color:#1f2328;font-size:18px;margin:8px}.loading{padding:80px 24px;text-align:center;color:var(--muted)}input,select,textarea{border:1px solid var(--border);border-radius:6px;background:#fff;color:#1f2328;padding:8px 11px;width:100%;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #0969da;outline-offset:-1px}textarea{resize:vertical;line-height:1.7;min-height:120px}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}label.field{display:block;font-weight:500;margin-bottom:18px}.field input,.field textarea,.field select{display:block;margin-top:7px;font-weight:400}.field small{display:block;color:var(--muted);font-weight:400;line-height:1.6;margin-top:5px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.check{display:flex;gap:8px;align-items:center;margin:12px 0 20px}.code{font-family:"Cascadia Code",Consolas,monospace;font-size:12px;tab-size:2}.editor{width:100%;min-height:530px;border:0;border-radius:0;padding:20px;resize:vertical;background:#fff;font-size:13px;line-height:1.8;white-space:pre;overflow:auto}.editor:focus{outline:none;box-shadow:inset 0 0 0 2px #0969da}.file-layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:24px}.file-tree{padding:8px}.file-tree button{background:transparent;border:0;display:flex;gap:8px;align-items:center;width:100%;padding:10px;text-align:left;color:#1f2328;border-radius:5px;word-break:break-all;font-size:12px}.file-tree button:hover{background:var(--subtle)}.file-tree button.active{background:#ddf4ff;font-weight:600}.editor-status{display:flex;justify-content:space-between;padding:9px 15px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}.notice{border:1px solid #9dd3fa;background:#ddf4ff;padding:13px 17px;border-radius:6px;line-height:1.8;margin-bottom:20px;color:#1f2328}.notice.warning{background:#fff8c5;border-color:#eac54f}.notice.error{background:#ffebe9;border-color:#ffcecb;color:#a40e26}.settings-layout{max-width:850px}.settings-section{padding-bottom:12px;margin-bottom:25px;border-bottom:1px solid var(--border)}.settings-section h3{font-size:17px;font-weight:600;margin:0 0 20px}.footer{border-top:1px solid var(--border);padding:26px 32px;display:flex;justify-content:center;gap:20px;color:var(--muted);font-size:12px;margin:30px auto 0;max-width:1216px}.login-box{max-width:390px;margin:10px auto 20px}.login-box h2{font-size:22px;text-align:center;font-weight:500}.login-box .panel-body{background:var(--subtle)}.login-box .btn{width:100%;margin-top:4px}.login-note{text-align:center;line-height:1.8;margin-top:18px;color:var(--muted);font-size:12px}dialog{border:1px solid var(--border);border-radius:10px;padding:0;width:min(760px,calc(100vw - 32px));max-height:90vh;box-shadow:0 16px 48px #1f232833;color:#1f2328}dialog::backdrop{background:#1f232866}dialog .modal-body{padding:24px;max-height:65vh;overflow:auto}dialog .modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--border);background:var(--subtle)}dialog .panel-head{padding:17px 24px}dialog h2{font-size:17px;margin:0}.inline-error{color:#cf222e;line-height:1.6;white-space:pre-wrap;margin:12px 0}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border:1px solid var(--border);border-radius:8px;padding:13px 22px;background:#25292e;color:#fff;box-shadow:0 8px 24px #0002;max-width:90vw;z-index:20}#toast.show{display:block}.url-box{display:flex;gap:8px;margin:14px 0}.url-box input{background:var(--subtle)}.break{word-break:break-all}.resource-name{max-width:320px;word-break:break-word}.saved-dot{color:var(--green)}details{margin:14px 0}summary{cursor:pointer;color:var(--blue);font-size:13px}pre.preview{margin:0;padding:20px;max-height:58vh;overflow:auto;white-space:pre-wrap;word-break:break-all;background:var(--subtle)}.row-count{font-size:12px;background:#e8ecf0;padding:1px 7px;border-radius:20px;margin-left:5px}
@media(max-width:900px){.topbar{padding:0 20px}.top-meta .muted{display:none}.main{padding:24px 20px}.repo-heading{padding:22px 20px}.repo-heading .right{display:none}.tabs{padding:0 12px}.home-grid{grid-template-columns:1fr}.home-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:24px}.file-layout{grid-template-columns:180px minmax(0,1fr)}.hero h1{font-size:30px}.page-head{align-items:flex-start}.page-head .actions{justify-content:flex-end}.stats{gap:8px}.stat{padding:14px}}
@media(max-width:600px){.main{padding:22px 16px}.hero h1{font-size:27px}.hero{padding-top:6px}.topbar{padding:0 16px}.top-meta{gap:10px}.top-meta .username{display:none}.repo-heading a{font-size:17px}.repo-heading{padding:20px 16px}.tab{padding:12px 9px;font-size:13px}.home-grid{gap:24px}.home-grid aside{display:block}.feature-grid,.field-grid{grid-template-columns:1fr;gap:0}.panel-body{padding:20px}.page-head{display:block}.page-head .actions{margin-top:14px;justify-content:flex-start}.file-layout{grid-template-columns:1fr;gap:12px}.file-tree{display:flex;overflow:auto;max-height:160px;flex-wrap:wrap}.file-tree button{width:auto}.editor{min-height:400px}.file-row .muted{display:none}.stat strong{font-size:22px}.stat{padding:12px}.stat span{font-size:12px}.footer{gap:10px;flex-wrap:wrap;padding:22px 16px}.toolbar{flex-wrap:wrap}.toolbar .search{max-width:none}.table-wrap .actions{flex-wrap:nowrap}dialog .modal-body{padding:18px}.url-box{flex-wrap:wrap}.url-box input{flex-basis:100%}}

.demo-file{width:100%;border:0;border-bottom:1px solid #d8dee466;border-radius:0;background:#fff;text-align:left;color:var(--blue)}.demo-file .file-name{min-width:0;overflow-wrap:anywhere}.demo-file .muted{white-space:nowrap}.demo-workspace{max-width:100%}

.status-toggle{background:transparent;border-color:transparent;box-shadow:none;font-size:12px;padding:6px 2px;gap:8px}.status-toggle:hover{background:var(--subtle)}.switch-track{display:inline-block;position:relative;width:30px;height:18px;border-radius:12px;background:#6e7781;flex-shrink:0}.switch-track::after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:white;transition:transform .15s}.status-toggle[aria-checked=true] .switch-track{background:var(--green)}.status-toggle[aria-checked=true] .switch-track::after{transform:translateX(12px)}.status-toggle:focus-visible{outline:2px solid var(--blue)}
@media(prefers-reduced-motion:reduce){.switch-track::after{transition:none}}
.server-select{display:flex;align-items:center;gap:12px;min-width:220px;white-space:nowrap}.server-select select{max-width:420px}.service-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.service-logs{margin-top:24px}.log-lines{display:flex;gap:6px;align-items:center}.log-lines select{width:85px}#sing-box-panel .panel-head{flex-wrap:wrap}#sing-box-editor{min-height:380px}#sing-box-path{overflow-wrap:anywhere}#sing-box-log{min-height:140px;max-height:480px}
