body,html{margin:0;padding:0;background:#f0f2f5;color:rgba(0,0,0,.88);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;line-height:1.5715}h1,h2,h3,h4,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}.back-link,.note,.outline-field,.q-help,.result-meta dt,.ui-label{color:rgba(0,0,0,.45);font-size:14px;font-weight:400;line-height:1.5}.banner.err{background:#fff2f0;color:#cf1322;border-radius:8px;padding:10px 12px;margin-bottom:12px}.studio-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 16px;background:#fff;border:1px solid #f0f0f0;border-radius:8px;flex-wrap:wrap}.studio-bar .title-input,.studio-bar h1{margin:0;font-size:22px;font-weight:600;line-height:1.4}.save-state{color:#389e0d;font-size:14px}.studio-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.btn{border:1px solid #d9d9d9;background:#fff;color:rgba(0,0,0,.88);border-radius:6px;padding:4px 15px;min-height:36px;cursor:pointer}.btn.primary{background:#1677ff;border-color:#1677ff;color:#fff}.btn.ghost{background:#fff;color:#1677ff;border-color:#1677ff}.btn.danger,.btn.small.danger{background:#fff;color:#ff4d4f;border-color:#ff4d4f}.btn.small{min-height:28px;padding:0 8px;font-size:16px}.back-link{color:#1677ff;text-decoration:none;display:inline-block;margin-bottom:2px}.skeleton{background:#f5f5f5;border-radius:6px}.studio{display:flex;flex-direction:column;gap:12px}.studio-body{flex:1 1;min-height:360px;display:grid;grid-gap:12px;gap:12px;align-items:start}.studio-body.editing{grid-template-columns:220px minmax(0,1fr)}.studio-body.filling{grid-template-columns:minmax(0,1fr) 300px}.studio-body.solo{grid-template-columns:minmax(0,1fr)}.studio-canvas,.studio-outline,.studio-rail{background:#fff;border:1px solid #f0f0f0;border-radius:8px;min-height:0;overflow:auto}.studio-canvas{padding:16px}.studio-canvas.excel-canvas{display:flex;flex-direction:column;overflow:hidden;height:min(72vh,calc(100dvh - 300px));min-height:420px;padding:12px 16px}.studio-outline,.studio-rail{padding:10px}.rail-block+.rail-block{margin-top:14px;padding-top:12px;border-top:1px solid #f0f0f0}.rail-block h2{font-size:16px;font-weight:600;margin:0 0 8px;line-height:1.4}.outline-field,.outline-section{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:6px;padding:6px 8px;cursor:pointer}.outline-section{font-size:16px;font-weight:600;text-transform:uppercase}.outline-field{padding-left:16px;color:rgba(0,0,0,.65)}.outline-field.active,.outline-field:hover,.outline-section:hover{background:#e6f4ff;color:#1677ff}.section-block{margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #f0f0f0}.q-tools,.section-head{display:flex;gap:6px;align-items:center}.q-card,.section-head{margin-bottom:8px}.q-card{border:1px solid #f0f0f0;border-radius:8px;padding:8px 10px;background:#fff}.q-card.active,.q-card:focus-within{border-color:#1677ff}.bare-input{width:100%;border:0;background:transparent;border-radius:6px;padding:4px 6px;font:inherit}.bare-input:focus,.bare-input:hover{background:#fafafa;outline:none}.section-title,.title-input{font-size:18px;font-weight:600;line-height:1.4}.section-title{text-transform:uppercase}.q-label{font-weight:600;font-size:16px}.section-block>h2{font-size:18px;font-weight:600;margin:0 0 8px;padding-left:10px;border-left:3px solid #1677ff;text-transform:uppercase}.preview-fields{display:grid;grid-gap:6px;gap:6px}.preview-field{margin:0;font-size:16px}.q-tools{margin:4px 0;flex-wrap:wrap}.q-tools select,.sheet input:not([type=checkbox]):not([type=radio]):not([type=file]),.sheet select{height:36px;border:1px solid #d9d9d9;border-radius:6px;padding:4px 11px;background:#fff}.q-tools select:focus,.sheet input:focus,.sheet select:focus{border-color:#1677ff;outline:none;box-shadow:0 0 0 2px rgba(22,119,255,.12)}.stack{display:flex;flex-direction:column;gap:8px}.actions,.form-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.icon-btn{width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:rgba(0,0,0,.45);cursor:pointer}.icon-btn:hover{background:rgba(0,0,0,.06)}.icon-btn.armed,.icon-btn.danger{background:#fff2f0;color:#ff4d4f}.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}.chip{border:0;background:#e6f4ff;color:#1677ff;border-radius:6px;padding:3px 8px}.chip-input{border:0;min-width:110px;flex:1 1;padding:4px}.add-row,.chip-input{background:transparent}.add-row{width:100%;border:1px dashed #d9d9d9;border-radius:8px;padding:8px;color:#1677ff;margin-top:8px;cursor:pointer}.add-row:hover{border-color:#1677ff;background:#e6f4ff}.choice-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}.choice-card{text-align:left;border:1px solid #f0f0f0;background:#fff;border-radius:8px;padding:18px;display:grid;grid-gap:8px;gap:8px;cursor:pointer}.choice-card strong{font-size:18px;font-weight:600;line-height:1.4}.choice-card span{color:rgba(0,0,0,.45);font-size:16px;line-height:1.5715}.choice-card:hover{border-color:#1677ff}.sheet-section+.sheet-section{margin-top:16px}.sheet-section h2{font-size:18px;font-weight:600;line-height:1.4;margin:0 0 12px;padding-left:10px;border-left:3px solid #1677ff;text-transform:uppercase}.sheet-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px 14px;gap:12px 14px;padding-left:24px}.sheet-grid .wide{grid-column:1/-1}.sheet .field{display:flex;flex-direction:column;gap:6px}.sheet .field>span{font-size:16px;font-weight:600;line-height:1.4}.sheet .field p{margin:0;font-size:16px;font-weight:400}.sheet .editor{min-height:96px}.editor{min-height:120px;border:1px solid #d9d9d9;border-radius:6px;padding:8px 12px;background:#fff}.choices{display:flex;flex-wrap:wrap;gap:8px 14px}.choice{align-items:center}.choice,.sheet-bar{display:flex;gap:8px}.sheet-bar{position:-webkit-sticky;position:sticky;bottom:0;justify-content:flex-end;padding:12px 0 4px;background:#fff;border-top:1px solid #f0f0f0}.progress-row{display:flex;justify-content:space-between;gap:8px;padding:8px 2px;border-bottom:1px solid #f0f0f0}.progress-row em{font-style:normal;color:rgba(0,0,0,.45)}.source-item{padding:8px 0;border-bottom:1px solid #f0f0f0}.source-item strong{display:block;font-size:16px;font-weight:600}.banner.warn{background:#fff7e6;color:#d46b08;border-radius:8px;padding:10px 12px;margin-bottom:12px}.excel-panel{display:flex;flex-direction:column;min-height:0;height:100%;gap:8px}.excel-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.excel-wrap{overflow:auto;flex:1 1;min-height:0;border:1px solid #f0f0f0;background:#fff;border-radius:8px}.excel{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:16px}.excel td,.excel th{border-right:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0;padding:8px 10px;text-align:left;vertical-align:top;background:#fff;max-width:280px;white-space:pre-wrap;font-weight:400;line-height:24px}.excel thead th{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fafafa;font-size:14px;font-weight:600;color:rgba(0,0,0,.65)}.excel thead tr:nth-child(2) th{top:41px}.excel thead th.section-cell{background:#e6f4ff;color:#1677ff;text-align:center;font-size:16px;font-weight:600;white-space:nowrap;max-width:none;text-transform:uppercase}.excel .col-status,.excel .col-unit{position:-webkit-sticky;position:sticky;z-index:1;background:#fff}.excel .col-unit{left:0;min-width:180px}.excel .col-status{left:180px;min-width:110px}.excel thead .col-status,.excel thead .col-unit{z-index:3;background:#fafafa}.excel .col-status small,.excel .col-unit small{display:block;color:rgba(0,0,0,.45);font-size:14px;font-weight:400;line-height:1.4}.excel td.missing{color:rgba(0,0,0,.45)}.excel tbody tr.clickable{cursor:pointer}.excel tbody tr.clickable:hover td,.excel tbody tr.clickable:hover th,.excel tbody tr.picked td,.excel tbody tr.picked th{background:#e6f4ff}.result-meta{display:flex;flex-wrap:wrap;gap:16px 24px;margin:0 0 16px}.result-meta div{display:grid;grid-gap:2px;gap:2px}.result-meta dt{margin:0}.result-meta dd{margin:0;font-size:16px;font-weight:600}.return-box{margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #f0f0f0}.result-section{display:grid;grid-gap:10px;gap:10px;margin-bottom:20px}.result-section h3{margin:0;padding-left:10px;border-left:3px solid #1677ff;font-size:18px;font-weight:600;line-height:1.4;text-transform:uppercase}.result-fields{display:grid;grid-gap:12px;gap:12px;padding-left:24px}.result-field{display:grid;grid-gap:2px;gap:2px;padding-bottom:8px;border-bottom:1px solid #f0f0f0}.ui-label{font-size:14px;color:rgba(0,0,0,.45)}.result-field .value{font-size:16px;font-weight:400;white-space:pre-wrap;line-height:1.5715}.split-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);grid-gap:16px;gap:16px;align-items:start}@media (max-width:960px){.choice-grid,.sheet-grid,.split-layout,.studio-body,.studio-body.editing,.studio-body.filling{grid-template-columns:1fr}.studio-outline,.studio-rail{max-height:220px}.studio-canvas.excel-canvas{height:70vh}}