:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20324e;background:#f5f7fb}
*{box-sizing:border-box}
body{margin:0}
[v-cloak]{display:none}
button,input{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.topbar{border-bottom:1px solid #e7ecf3;background:#fff}
.topbar-inner{max-width:1560px;margin:auto;min-height:65px;padding:0 25px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.brand{font-weight:750;font-size:14px;display:flex;align-items:center;gap:10px}
.brand-symbol{display:grid;place-items:center;height:32px;width:32px;border-radius:10px;background:#1d5fcd;color:#fff;font-size:20px}
.brand-badge{font-size:10px;color:#275caa;background:#e9f1ff;border:1px solid #d5e5ff;padding:4px 8px;border-radius:20px}
.top-links{display:flex;gap:23px;font-size:12px;color:#576a83;font-weight:600}
.layout{max-width:1560px;margin:auto;padding:26px 25px 55px}
code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;align-items:start}
.sidebar,.main-column{display:grid;gap:15px;min-width:0}
.panel,.viewer-card{background:#fff;border:1px solid #e3e9f2;border-radius:14px;box-shadow:0 4px 20px #1e385909}
.panel{padding:18px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
h2{font-size:13px;letter-spacing:-.05px;margin:0;font-weight:750}
.small-tag,.framework-chip{font-size:10px;border-radius:20px;padding:5px 8px;border:1px solid #dbe8fb;background:#f3f7fe;color:#396aad;font-weight:700;white-space:nowrap}
.sample-grid{display:grid;gap:8px}
.sample-item{background:#fff;border:1px solid #e4e9f2;padding:10px;display:flex;align-items:center;gap:10px;text-align:left;border-radius:10px;transition:border-color .15s,background .15s}
.sample-item:hover{background:#f7faff;border-color:#b7cdec}
.sample-item.selected{background:#eef5ff;border-color:#4f89d9;box-shadow:0 0 0 1px #4f89d91c}
.sample-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:#f0f5fd;color:#3068be;font-size:15px;font-weight:800;flex:none}
.icon--docx{background:#e8f2ff;color:#205aa4}.icon--letterhead{background:#e7f6ff;color:#1a6fa8}.icon--pdf{background:#fff0ee;color:#c94d39}.icon--xlsx{background:#e4f7ee;color:#168153}.icon--image{background:#f5eeff;color:#7645a7}.icon--csv{background:#eaf6f5;color:#177f85}.icon--json{background:#fff4dc;color:#986e12;font-size:11px}
.sample-meta{min-width:0;display:flex;flex-direction:column;gap:3px}
.sample-meta strong{font-size:12px;color:#223752}
.sample-meta small{color:#8190a4;font-size:11px}
.helper{font-size:11px;color:#74829a;line-height:1.6;margin-top:12px}
.helper.warning{border-radius:9px;background:#fff8e9;border:1px solid #f7eacc;color:#7c6645;padding:10px;margin-top:14px}
.setting-alert{margin-top:8px!important}
.setting-alert--ok{border-radius:9px;background:#eefaf3;border:1px solid #cfe9d9;color:#2f6b4a;padding:10px}
.field-label{display:block;font-size:11px;font-weight:700;margin:12px 0 7px;color:#3e526e}
input[type=url],input[type=text],input[type=file]{width:100%;min-width:0;font-size:12px}
input[type=url],input[type=text]{border:1px solid #dce4ee;border-radius:9px;padding:11px;outline:none}
input[type=url]:focus,input[type=text]:focus{border-color:#4a87d7;box-shadow:0 0 0 3px #4a87d718}
input[type=file]{padding:10px;border:1px dashed #bfcce0;background:#f8fafd;border-radius:9px;color:#526580}
input[type=file]::file-selector-button{border:0;background:#e4eefe;color:#255b9e;border-radius:6px;font-size:11px;padding:7px 9px;font-weight:700;margin-right:8px}
.separator-label{position:relative;text-align:center;font-weight:750;color:#acb6c3;margin:18px 0;font-size:10px;letter-spacing:.8px}
.separator-label:before,.separator-label:after{content:"";position:absolute;top:50%;height:1px;background:#edf0f5;width:34%}.separator-label:before{left:0}.separator-label:after{right:0}
.actions{display:flex;gap:7px;margin-top:13px}
.btn{border-radius:8px;border:0;padding:10px 12px;font-size:11px;font-weight:750}
.btn-primary{background:#2466cb;color:#fff}.btn-primary:hover{background:#1856b6}.btn-primary:disabled{background:#b5c8df;cursor:not-allowed}
.btn-quiet{color:#376398;background:#eaf1fc}
.setting{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;border-top:1px solid #f1f3f7;cursor:pointer}
.setting span{display:flex;flex-direction:column;gap:4px}
.setting strong{font-size:12px;color:#314967}.setting small{font-size:10px;color:#91a0b1}
.setting input{accent-color:#2466cb;width:17px;height:17px;flex:none}
.setting-sub{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 8px;padding:0 0 8px}
.small-setting{display:flex;align-items:center;gap:5px;color:#64758b;font-size:11px}
.small-setting input{accent-color:#2466cb}
.viewer-card{overflow:hidden}
.viewer-card-head{padding:15px 18px 13px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;border-bottom:1px solid #eef2f7}
.live-dot{display:inline-block;border-radius:50%;background:#25a17a;width:7px;height:7px;margin-right:9px;box-shadow:0 0 0 4px #e2f7f0}
.viewer-title{font-size:13px;font-weight:800;color:#25405d}
.viewer-subtitle{font-size:11px;color:#8c9aad;margin:5px 0 0 16px;max-width:550px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewer-status{display:flex;gap:10px;align-items:center;padding:10px 18px;font-size:11px;background:#f8fafe;border-bottom:1px solid #edf1f7;color:#526b89;line-height:1.45}
.status-circle{width:8px;height:8px;border-radius:50%;background:#b4c0cf;flex:none}.status-loading{background:#3e85d9}.status-warning{background:#e6a635}.status-error{background:#d7595d}.status-success{background:#27a57c}
.viewer-card .dv-root{border:0;border-radius:0}
.footer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}
.lower-panel{min-width:0}
.code-block{overflow:auto;max-height:240px;margin:0;background:#15253d;color:#dce8f9;border-radius:10px;padding:15px;font-size:11px;line-height:1.7;white-space:pre}
.copy{font-size:11px;color:#2466cb;border:0;background:#eff5ff;padding:7px 10px;border-radius:8px;font-weight:700}
.footnote{font-size:11px;line-height:1.6;color:#8290a2;margin:13px 0 0}
.event-list{padding:0;margin:0;list-style:none;max-height:240px;overflow:auto}
.event-list li{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #f0f3f7;font-size:11px;line-height:1.45;color:#5f7390}
.event-time{white-space:nowrap;color:#9aa7b9;font-variant-numeric:tabular-nums}
.event-empty{color:#9aa7b9!important}
@media(max-width:1200px){.footer-grid{grid-template-columns:1fr}}
@media(max-width:880px){.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar>.panel:last-child{grid-column:1/-1}}
@media(max-width:630px){.sidebar{grid-template-columns:1fr}.sidebar>.panel:last-child{grid-column:auto}.layout{padding:17px 12px 32px}.topbar-inner{padding:0 12px}.top-links{gap:10px}.brand{font-size:12px}.footer-grid{grid-template-columns:1fr}.panel{padding:14px}.sample-grid{grid-template-columns:1fr 1fr}.sample-item{padding:8px}.sample-icon{width:28px;height:28px}.sample-meta strong{font-size:11px}.sample-meta small{font-size:9px}}
