:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#171923;background:#f4f5f8;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 15% 0,#e8e1ff 0,transparent 34%),#f4f5f8}
.shell{width:min(940px,calc(100% - 32px));margin:0 auto;padding:64px 0}.hero{text-align:center;margin-bottom:28px}.hero h1,.admin-head h1{font-size:clamp(32px,5vw,54px);line-height:1.05;margin:10px 0}.hero p{color:#606577;max-width:620px;margin:auto}.eyebrow{font-size:12px;letter-spacing:.2em;color:#7157d9;font-weight:800}
.card{background:rgba(255,255,255,.92);border:1px solid #e5e7ef;border-radius:22px;padding:26px;box-shadow:0 16px 50px rgba(41,37,77,.08);margin-bottom:20px}.steps{display:flex;justify-content:space-between;color:#9599a8;font-size:13px;border-bottom:1px solid #eceef3;padding-bottom:18px;margin-bottom:22px}.steps .active{color:#7157d9;font-weight:800}
label{display:block;font-size:13px;font-weight:700;margin:16px 0 7px}input,select,textarea{width:100%;border:1px solid #dfe1e9;border-radius:12px;padding:12px 14px;background:#fff;color:#171923;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#8169df;box-shadow:0 0 0 3px #e9e4ff}
.platform-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.platform{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #dddfea;background:#fafafe;border-radius:15px;padding:18px;cursor:pointer}.platform.active{border-color:#7257da;background:#f0edff;color:#563db8}.platform small{color:#85899a;margin-top:3px}.inline{display:grid;grid-template-columns:1fr auto;gap:10px}
button{border:0;border-radius:12px;padding:12px 18px;font:inherit;font-weight:800;cursor:pointer}.primary{width:100%;margin-top:20px;background:#171923;color:#fff}.secondary{background:#ece9fb;color:#5740b5}.check{font-weight:500;color:#606577;display:flex;gap:9px;align-items:flex-start}.check input{width:auto;margin-top:5px}.notice,.result{padding:14px;border-radius:12px;margin-top:14px;background:#f0edff;color:#4e38a7}.error{background:#fff0f0;color:#b42318}.success{background:#eafaf2;color:#08734d}.hidden{display:none!important}
.admin-shell{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:38px 0}.admin-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.admin-head h1{font-size:38px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-grid .card{margin:0}.card h2{margin:0 0 12px}.admin-grid textarea{height:180px;margin-top:14px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid #eceef3;font-size:13px}.tag{display:inline-block;padding:4px 9px;border-radius:999px;background:#ece9fb;color:#5740b5;font-weight:800}
.uuid-detect{margin:20px 0 4px;padding:18px;border:1px solid #e4e1f3;border-radius:16px;background:linear-gradient(145deg,#fbfaff,#f5f2ff)}.subhead,.query-head,.query-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}.subhead b{display:block;font-size:14px}.subhead small{display:block;color:#777c8e;font-weight:500;margin-top:2px}.subhead>span,.query-shield{flex:none;font-size:11px;padding:5px 9px;border-radius:999px;background:#e9e4ff;color:#5841b5;font-weight:800}.uuid-detect textarea{min-height:112px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;margin-top:13px;resize:vertical}.detect-btn{width:100%;margin-top:9px}
.query-card{margin-top:24px}.query-head{align-items:flex-start;margin-bottom:20px}.query-head h2{font-size:25px;margin:4px 0}.query-head p{margin:0;color:#666b7d;font-size:13px}.query-result{margin-top:16px;border:1px solid #e3e5ec;border-radius:16px;background:#fafbfc;overflow:hidden}.query-result.loading,.query-result.error{padding:17px}.query-result.error{background:#fff0f0;border-color:#ffd2d2;color:#b42318}.query-result.error b,.query-result.error small{display:block}.query-result.error small{margin-top:4px;font-weight:500}.query-summary{padding:16px 18px;background:#fff;border-bottom:1px solid #eceef3;justify-content:flex-start}.query-summary div{flex:1}.query-summary small,.query-summary b{display:block}.query-summary small{color:#85899a;font-size:11px}.query-summary b{font-size:16px}.status-dot{width:11px;height:11px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 5px #fef3c7}.status-dot.success,.status-dot.unused{background:#10b981;box-shadow:0 0 0 5px #d1fae5}.status-dot.fail{background:#ef4444;box-shadow:0 0 0 5px #fee2e2}.platform-pill{font-size:11px;font-weight:800;border-radius:999px;padding:5px 10px;background:#ece9fb;color:#5740b5}.query-grid{display:grid;grid-template-columns:150px 1fr;margin:0;padding:8px 18px 14px}.query-grid dt,.query-grid dd{padding:10px 0;border-bottom:1px solid #eceef3;font-size:13px}.query-grid dt{color:#7a7f90}.query-grid dd{margin:0;font-weight:650;word-break:break-all}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:760px){.shell{padding:32px 0}.admin-grid{grid-template-columns:1fr}.admin-head{align-items:flex-start;gap:12px;flex-direction:column}.platform-grid{grid-template-columns:1fr}.inline{grid-template-columns:1fr}.card{padding:20px}}
@media(max-width:560px){.subhead,.query-head{flex-direction:column}.subhead>span,.query-shield{align-self:flex-start}.query-grid{grid-template-columns:1fr}.query-grid dt{border-bottom:0;padding-bottom:2px}.query-grid dd{padding-top:2px}}
